From 935d0917701dd1601a0bed83b032061c123cccee Mon Sep 17 00:00:00 2001 From: jsalant Date: Wed, 22 Jan 2025 10:13:31 -0500 Subject: [PATCH 01/86] EMIT API branch Reconfigure Revision class for some API changes --- src/ansys/aedt/core/Test.py | 28 +++ src/ansys/aedt/core/emit_core/__init__.py | 111 ++++++++--- .../aedt/core/emit_core/emit_constants.py | 13 ++ .../aedt/core/emit_core/results/revision.py | 183 +++++++++++------- 4 files changed, 238 insertions(+), 97 deletions(-) create mode 100644 src/ansys/aedt/core/Test.py diff --git a/src/ansys/aedt/core/Test.py b/src/ansys/aedt/core/Test.py new file mode 100644 index 00000000000..4f56d605cf8 --- /dev/null +++ b/src/ansys/aedt/core/Test.py @@ -0,0 +1,28 @@ +import ansys.aedt.core +import tempfile + +from emit_core.emit_constants import EmiCategoryFilter + +AEDT_VERSION = "2025.1" +NG_MODE = False + +temp_folder = tempfile.TemporaryDirectory(suffix=".ansys") + +project_name = ansys.aedt.core.generate_unique_project_name( + root_name=temp_folder.name, project_name="antenna_cosite") +d = ansys.aedt.core.launch_desktop(AEDT_VERSION, NG_MODE, new_desktop=True) + +emit = ansys.aedt.core.Emit(project_name, version=AEDT_VERSION) + +# add a couple quick radios +radio = emit.modeler.components.create_component("New Radio") +radio = emit.modeler.components.create_component("New Radio") + +rev = emit.results.analyze() +cats = rev.get_emi_category_filter_enabled(EmiCategoryFilter.IN_CHANNEL_TX_INTERMOD) +#n1limit = rev.n_to_1_limit +#receivers = rev.get_receiver_names() +pass + +emit.save_project() +emit.release_desktop() \ No newline at end of file diff --git a/src/ansys/aedt/core/emit_core/__init__.py b/src/ansys/aedt/core/emit_core/__init__.py index ee70a199e8d..e5e4680279d 100644 --- a/src/ansys/aedt/core/emit_core/__init__.py +++ b/src/ansys/aedt/core/emit_core/__init__.py @@ -55,37 +55,88 @@ def emit_api_python(): def _init_enums(aedt_version): - ResultType.EMI = emit_api_python().result_type().emi - ResultType.DESENSE = emit_api_python().result_type().desense - ResultType.SENSITIVITY = emit_api_python().result_type().sensitivity - ResultType.POWER_AT_RX = emit_api_python().result_type().powerAtRx - - TxRxMode.TX = emit_api_python().tx_rx_mode().tx - TxRxMode.RX = emit_api_python().tx_rx_mode().rx - TxRxMode.BOTH = emit_api_python().tx_rx_mode().both - - InterfererType.TRANSMITTERS = emit_api_python().interferer_type().transmitters - InterfererType.EMITTERS = emit_api_python().interferer_type().emitters - InterfererType.TRANSMITTERS_AND_EMITTERS = emit_api_python().interferer_type().transmitters_and_emitters - - UnitType.POWER = emit_api_python().unit_type().power - UnitType.FREQUENCY = emit_api_python().unit_type().frequency - UnitType.LENGTH = emit_api_python().unit_type().length - UnitType.TIME = emit_api_python().unit_type().time - UnitType.VOLTAGE = emit_api_python().unit_type().voltage - UnitType.DATA_RATE = emit_api_python().unit_type().dataRate - UnitType.RESISTANCE = emit_api_python().unit_type().resistance - numeric_version = int(aedt_version[-3:]) - if numeric_version >= 241: - emi_cat_filter = emit_api_python().emi_category_filter() - EmiCategoryFilter.IN_CHANNEL_TX_FUNDAMENTAL = emi_cat_filter.in_channel_tx_fundamental - EmiCategoryFilter.IN_CHANNEL_TX_HARMONIC_SPURIOUS = emi_cat_filter.in_channel_tx_harmonic_spurious - EmiCategoryFilter.IN_CHANNEL_TX_INTERMOD = emi_cat_filter.in_channel_tx_intermod - EmiCategoryFilter.IN_CHANNEL_TX_BROADBAND = emi_cat_filter.in_channel_tx_broadband - EmiCategoryFilter.OUT_OF_CHANNEL_TX_FUNDAMENTAL = emi_cat_filter.out_of_channel_tx_fundamental - EmiCategoryFilter.OUT_OF_CHANNEL_TX_HARMONIC_SPURIOUS = emi_cat_filter.out_of_channel_tx_harmonic_spurious - EmiCategoryFilter.OUT_OF_CHANNEL_TX_INTERMOD = emi_cat_filter.out_of_channel_tx_intermod + + if numeric_version >= 251: + ResultType.EMI = emit_api_python().result_type().emi + ResultType.DESENSE = emit_api_python().result_type().desense + ResultType.SENSITIVITY = emit_api_python().result_type().sensitivity + ResultType.POWER_AT_RX = emit_api_python().result_type().powerAtRx + + TxRxMode.TX = emit_api_python().tx_rx_mode().tx + TxRxMode.RX = emit_api_python().tx_rx_mode().rx + TxRxMode.BOTH = emit_api_python().tx_rx_mode().both + + InterfererType.TRANSMITTERS = emit_api_python().interferer_type().transmitters + InterfererType.EMITTERS = emit_api_python().interferer_type().emitters + InterfererType.TRANSMITTERS_AND_EMITTERS = emit_api_python().interferer_type().transmitters_and_emitters + + UnitType.POWER = emit_api_python().unit_type().power + UnitType.FREQUENCY = emit_api_python().unit_type().frequency + UnitType.LENGTH = emit_api_python().unit_type().length + UnitType.TIME = emit_api_python().unit_type().time + UnitType.VOLTAGE = emit_api_python().unit_type().voltage + UnitType.DATA_RATE = emit_api_python().unit_type().dataRate + UnitType.RESISTANCE = emit_api_python().unit_type().resistance + """ResultType.EMI = 0 + ResultType.DESENSE = 1 + ResultType.SENSITIVITY = 2 + ResultType.POWER_AT_RX = 3 + + TxRxMode.TX = 0 + TxRxMode.RX = 1 + TxRxMode.BOTH = 2 + + InterfererType.TRANSMITTERS = 0 + InterfererType.EMITTERS = 1 + InterfererType.TRANSMITTERS_AND_EMITTERS = 2 + + UnitType.POWER = 0 + UnitType.FREQUENCY = 1 + UnitType.LENGTH = 2 + UnitType.TIME = 3 + UnitType.VOLTAGE = 4 + UnitType.DATA_RATE = 5 + UnitType.RESISTANCE = 6""" + + EmiCategoryFilter.IN_CHANNEL_TX_FUNDAMENTAL = 0 + EmiCategoryFilter.IN_CHANNEL_TX_HARMONIC_SPURIOUS = 1 + EmiCategoryFilter.IN_CHANNEL_TX_INTERMOD = 2 + EmiCategoryFilter.IN_CHANNEL_TX_BROADBAND = 3 + EmiCategoryFilter.OUT_OF_CHANNEL_TX_FUNDAMENTAL = 4 + EmiCategoryFilter.OUT_OF_CHANNEL_TX_HARMONIC_SPURIOUS = 5 + EmiCategoryFilter.OUT_OF_CHANNEL_TX_INTERMOD = 6 + else: + ResultType.EMI = emit_api_python().result_type().emi + ResultType.DESENSE = emit_api_python().result_type().desense + ResultType.SENSITIVITY = emit_api_python().result_type().sensitivity + ResultType.POWER_AT_RX = emit_api_python().result_type().powerAtRx + + TxRxMode.TX = emit_api_python().tx_rx_mode().tx + TxRxMode.RX = emit_api_python().tx_rx_mode().rx + TxRxMode.BOTH = emit_api_python().tx_rx_mode().both + + InterfererType.TRANSMITTERS = emit_api_python().interferer_type().transmitters + InterfererType.EMITTERS = emit_api_python().interferer_type().emitters + InterfererType.TRANSMITTERS_AND_EMITTERS = emit_api_python().interferer_type().transmitters_and_emitters + + UnitType.POWER = emit_api_python().unit_type().power + UnitType.FREQUENCY = emit_api_python().unit_type().frequency + UnitType.LENGTH = emit_api_python().unit_type().length + UnitType.TIME = emit_api_python().unit_type().time + UnitType.VOLTAGE = emit_api_python().unit_type().voltage + UnitType.DATA_RATE = emit_api_python().unit_type().dataRate + UnitType.RESISTANCE = emit_api_python().unit_type().resistance + + if numeric_version >= 241: + emi_cat_filter = emit_api_python().emi_category_filter() + EmiCategoryFilter.IN_CHANNEL_TX_FUNDAMENTAL = emi_cat_filter.in_channel_tx_fundamental + EmiCategoryFilter.IN_CHANNEL_TX_HARMONIC_SPURIOUS = emi_cat_filter.in_channel_tx_harmonic_spurious + EmiCategoryFilter.IN_CHANNEL_TX_INTERMOD = emi_cat_filter.in_channel_tx_intermod + EmiCategoryFilter.IN_CHANNEL_TX_BROADBAND = emi_cat_filter.in_channel_tx_broadband + EmiCategoryFilter.OUT_OF_CHANNEL_TX_FUNDAMENTAL = emi_cat_filter.out_of_channel_tx_fundamental + EmiCategoryFilter.OUT_OF_CHANNEL_TX_HARMONIC_SPURIOUS = emi_cat_filter.out_of_channel_tx_harmonic_spurious + EmiCategoryFilter.OUT_OF_CHANNEL_TX_INTERMOD = emi_cat_filter.out_of_channel_tx_intermod # need this as a function so that it can be set diff --git a/src/ansys/aedt/core/emit_core/emit_constants.py b/src/ansys/aedt/core/emit_core/emit_constants.py index 108bc579bf5..f08ff359020 100644 --- a/src/ansys/aedt/core/emit_core/emit_constants.py +++ b/src/ansys/aedt/core/emit_core/emit_constants.py @@ -98,6 +98,19 @@ def emit_unit_type_string_to_enum(unit_string): return EMIT_UNIT_TYPE_STRING_TO_ENUM[unit_string] +def emi_cat_enum_to_string(emi_cat_enum): + EMI_CAT_ENUM_TO_STR = { + EmiCategoryFilter.IN_CHANNEL_TX_FUNDAMENTAL: "In-Channel Tx Fundamental", + EmiCategoryFilter.IN_CHANNEL_TX_HARMONIC_SPURIOUS: "In-Channel Tx Harmonic/Spurious", + EmiCategoryFilter.IN_CHANNEL_TX_INTERMOD: "In-Channel Intermod", + EmiCategoryFilter.IN_CHANNEL_TX_BROADBAND: "In-Channel Broadband", + EmiCategoryFilter.OUT_OF_CHANNEL_TX_FUNDAMENTAL: "Out-of-Channel Tx Fundamental", + EmiCategoryFilter.OUT_OF_CHANNEL_TX_HARMONIC_SPURIOUS: "Out-of-Channel Tx Harmonic/Spurious", + EmiCategoryFilter.OUT_OF_CHANNEL_TX_INTERMOD: "Out-of-Channel Intermod", + } + return EMI_CAT_ENUM_TO_STR[emi_cat_enum] + + class EmiCategoryFilter(MutableEnum): IN_CHANNEL_TX_FUNDAMENTAL = None IN_CHANNEL_TX_HARMONIC_SPURIOUS = None diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index dc2cd528f19..740bd571e38 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -60,42 +60,57 @@ class Revision: """ def __init__(self, parent_results, emit_obj, name=None): - if not name: - name = emit_obj.odesign.GetCurrentResult() - if not name: - name = emit_obj.odesign.AddResult("") - else: - if name not in emit_obj.odesign.GetResultList(): - name = emit_obj.odesign.AddResult(name) - full = emit_obj.odesign.GetResultDirectory(name) + self.emit_project = emit_obj + """EMIT project.""" - self.name = name - """Name of the revision.""" + self.parent_results = parent_results + """Parent Results object""" - self.path = full - """Full path of the revision.""" + self.aedt_version = int(parent_results.emit_project.aedt_version_id[-3:]) + if self.aedt_version > 251: + self._emit_com = emit_obj.odesign.GetModule("EmitCom") + if name == None: + self.results_index = 0 + else: + self.results_index = self._emit_com.GetKeptResultIndex(name) - self.emit_project = emit_obj - """EMIT project.""" + # Get the SimulationNodeID for the current result + self._sim_node_id = self._get_top_level_node_id("Simulation") + else: + if not name: + name = emit_obj.odesign.GetCurrentResult() + if not name: + name = emit_obj.odesign.AddResult("") + else: + if name not in emit_obj.odesign.GetResultList(): + name = emit_obj.odesign.AddResult(name) + full = emit_obj.odesign.GetResultDirectory(name) - raw_props = emit_obj.odesign.GetResultProperties(name) - key = lambda s: s.split("=", 1)[0] - val = lambda s: s.split("=", 1)[1] - props = {key(s): val(s) for s in raw_props} + self.name = name + """Name of the revision.""" - self.revision_number = int(props["Revision"]) - """Unique revision number from the EMIT design""" + self.path = full + """Full path of the revision.""" - self.timestamp = props["Timestamp"] - """Unique timestamp for the revision""" + raw_props = emit_obj.odesign.GetResultProperties(name) + key = lambda s: s.split("=", 1)[0] + val = lambda s: s.split("=", 1)[1] + props = {key(s): val(s) for s in raw_props} - self.parent_results = parent_results - """Parent Results object""" + self.revision_number = int(props["Revision"]) + """Unique revision number from the EMIT design""" - # load the revision after creating it - self.revision_loaded = False - """``True`` if the revision is loaded and ``False`` if it is not.""" - self._load_revision() + self.timestamp = props["Timestamp"] + """Unique timestamp for the revision""" + + # load the revision after creating it + self.revision_loaded = False + """``True`` if the revision is loaded and ``False`` if it is not.""" + self._load_revision() + + @pyaedt_function_handler() + def _get_top_level_node_id(self, node_name): + return self._emit_com.GetTopLevelNodeID(self.results_index, node_name) @pyaedt_function_handler() def _load_revision(self): @@ -147,6 +162,7 @@ def get_interaction(self, domain): >>> rev.get_interaction(domain) """ + # TODO: update when Domain methods are added to API self._load_revision() engine = self.emit_project._emit_api.get_engine() if domain.interferer_names and engine.max_simultaneous_interferers != len(domain.interferer_names): @@ -175,23 +191,28 @@ def run(self, domain): >>> rev.run(domain) """ - if domain.receiver_channel_frequency > 0: - raise ValueError("The domain must not have channels specified.") - if len(domain.interferer_channel_frequencies) != 0: - for freq in domain.interferer_channel_frequencies: - if freq > 0: - raise ValueError("The domain must not have channels specified.") - self._load_revision() - engine = self.emit_project._emit_api.get_engine() - if self.emit_project._aedt_version < "2024.1": - if len(domain.interferer_names) == 1: - engine.max_simultaneous_interferers = 1 - if len(domain.interferer_names) > 1: - raise ValueError("Multiple interferers cannot be specified prior to AEDT version 2024 R1.") - interaction = engine.run(domain) - # save the project and revision - self.emit_project.save_project() - return interaction + # TODO: update when Domain methods are added to API + # for now, just run the whole project + if self.aedt_version > 251: + self.emit_project.Run() + else: + if domain.receiver_channel_frequency > 0: + raise ValueError("The domain must not have channels specified.") + if len(domain.interferer_channel_frequencies) != 0: + for freq in domain.interferer_channel_frequencies: + if freq > 0: + raise ValueError("The domain must not have channels specified.") + self._load_revision() + engine = self.emit_project._emit_api.get_engine() + if self.emit_project._aedt_version < "2024.1": + if len(domain.interferer_names) == 1: + engine.max_simultaneous_interferers = 1 + if len(domain.interferer_names) > 1: + raise ValueError("Multiple interferers cannot be specified prior to AEDT version 2024 R1.") + interaction = engine.run(domain) + # save the project and revision + self.emit_project.save_project() + return interaction @pyaedt_function_handler() def is_domain_valid(self, domain): @@ -209,6 +230,7 @@ def is_domain_valid(self, domain): >>> aedtapp.results.current_revision.is_domain_valid(domain) True """ + # TODO: update when Domain methods are added to API self._load_revision() engine = self.emit_project._emit_api.get_engine() return engine.is_domain_valid(domain) @@ -233,9 +255,14 @@ def get_instance_count(self, domain): >>> domain = aedtapp.interaction_domain() >>> num_instances = aedtapp.results.current_revision.get_instance_count(domain) """ - self._load_revision() - engine = self.emit_project._emit_api.get_engine() - return engine.get_instance_count(domain) + # TODO: update when Domain methods are added to API + if self.aedt_version > 251: + return 0 + pass + else: + self._load_revision() + engine = self.emit_project._emit_api.get_engine() + return engine.get_instance_count(domain) @pyaedt_function_handler() def get_receiver_names(self): @@ -255,16 +282,24 @@ def get_receiver_names(self): -------- >>> rxs = aedtapp.results.current_revision.get_reciver_names() """ - if self.revision_loaded: - radios = self.emit_project._emit_api.get_radio_names(TxRxMode.RX, InterfererType.TRANSMITTERS_AND_EMITTERS) + # TODO: update when Domain methods are added to API + if self.aedt_version > 251: + comps = self.emit_project.oeditor.GetAllComponents() + for comp in comps: + comp_id = self._emit_com.GetComponentNodeID(self.results_index, comp) + props = self._emit_com.GetEmitNodeProperties(self.results_index, comp_id) + pass else: - radios = None - err_msg = self.result_mode_error() - warnings.warn(err_msg) + if self.revision_loaded: + radios = self.emit_project._emit_api.get_radio_names(TxRxMode.RX, InterfererType.TRANSMITTERS_AND_EMITTERS) + else: + radios = None + err_msg = self.result_mode_error() + warnings.warn(err_msg) + return radios + if len(radios) == 0: + warnings.warn("No valid receivers in the project.") return radios - if len(radios) == 0: - warnings.warn("No valid receivers in the project.") - return radios @pyaedt_function_handler() def get_interferer_names(self, interferer_type=None): @@ -412,13 +447,20 @@ def n_to_1_limit(self): >>> aedtapp.results.current_revision.n_to_1_limit 1048576 """ - if self.emit_project._aedt_version < "2024.1": # pragma: no cover - raise RuntimeError("This function is only supported in AEDT version 2024.1 and later.") - if self.revision_loaded: - engine = self.emit_project._emit_api.get_engine() - max_instances = engine.n_to_1_limit - else: # pragma: no cover - max_instances = None + # TODO: update when Domain methods are added to API + if self.aedt_version > 251: + # get the SimulationNode props + props = self._emit_com.GetEmitNodeProperties(self.results_index, + self._sim_node_id) + pass + else: + if self.emit_project._aedt_version < "2024.1": # pragma: no cover + raise RuntimeError("This function is only supported in AEDT version 2024.1 and later.") + if self.revision_loaded: + engine = self.emit_project._emit_api.get_engine() + max_instances = engine.n_to_1_limit + else: # pragma: no cover + max_instances = None return max_instances @n_to_1_limit.setter @@ -734,10 +776,17 @@ def get_emi_category_filter_enabled(self, category: EmiCategoryFilter) -> bool: bool ``True`` when the EMI category filter is enabled, ``False`` otherwise. """ - if self.emit_project._aedt_version < "2024.1": # pragma: no cover - raise RuntimeError("This function is only supported in AEDT version 2024 R1 and later.") - engine = self.emit_project._emit_api.get_engine() - return engine.get_emi_category_filter_enabled(category) + # TODO: update when Domain methods are added to API + if self.aedt_version > 251: + cat_node_id = self._get_top_level_node_id("Windows-*-Result Categorization") + props = self._emit_com.GetEmitNodeProperties(self.results_index, + cat_node_id) + pass + else: + if self.emit_project._aedt_version < "2024.1": # pragma: no cover + raise RuntimeError("This function is only supported in AEDT version 2024 R1 and later.") + engine = self.emit_project._emit_api.get_engine() + return engine.get_emi_category_filter_enabled(category) def set_emi_category_filter_enabled(self, category: EmiCategoryFilter, enabled: bool): """Set whether the EMI category filter is enabled. From f14755b7cfdcea78be3b57b876a055a0c02ad74d Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Tue, 28 Jan 2025 11:05:54 -0600 Subject: [PATCH 02/86] Add first draft of generated nodes and basic interface --- .../core/emit_core/nodes/GenericEmitNode.py | 122 ++++ .../nodes/generated/Node_Amplifier.py | 163 +++++ .../nodes/generated/Node_AntennaGroup.py | 8 + .../nodes/generated/Node_AntennaNode.py | 652 +++++++++++++++++ .../nodes/generated/Node_AntennaPassband.py | 93 +++ .../emit_core/nodes/generated/Node_Band.py | 688 ++++++++++++++++++ .../nodes/generated/Node_BandFolder.py | 17 + .../nodes/generated/Node_BandTraceNode.py | 190 +++++ .../emit_core/nodes/generated/Node_CADNode.py | 432 +++++++++++ .../emit_core/nodes/generated/Node_Cable.py | 118 +++ .../nodes/generated/Node_Circulator.py | 171 +++++ .../nodes/generated/Node_ComponentGroup.py | 5 + .../generated/Node_ConfigurationGroup.py | 5 + .../nodes/generated/Node_ConfigurationNode.py | 26 + .../nodes/generated/Node_CouplingLinkNode.py | 15 + .../nodes/generated/Node_CouplingTraceNode.py | 240 ++++++ .../nodes/generated/Node_CouplingsNode.py | 35 + .../generated/Node_CustomCouplingNode.py | 60 ++ .../nodes/generated/Node_EmiPlotMarkerNode.py | 272 +++++++ .../nodes/generated/Node_EmitSceneNode.py | 42 ++ .../nodes/generated/Node_ErcegCouplingNode.py | 217 ++++++ .../emit_core/nodes/generated/Node_Filter.py | 252 +++++++ .../nodes/generated/Node_FiveGChannelModel.py | 251 +++++++ .../nodes/generated/Node_HataCouplingNode.py | 218 ++++++ .../Node_IndoorPropagationCouplingNode.py | 229 ++++++ .../generated/Node_InteractionDiagramNode.py | 9 + .../nodes/generated/Node_Isolator.py | 171 +++++ .../generated/Node_LogDistanceCouplingNode.py | 231 ++++++ .../generated/Node_MPlexBandTraceNode.py | 172 +++++ .../nodes/generated/Node_Multiplexer.py | 91 +++ .../nodes/generated/Node_MultiplexerBand.py | 150 ++++ .../emit_core/nodes/generated/Node_Node.py | 5 + .../nodes/generated/Node_OutboardTraceNode.py | 180 +++++ .../Node_ParametricCouplingTraceNode.py | 160 ++++ .../nodes/generated/Node_PlotMarkerNode.py | 277 +++++++ .../nodes/generated/Node_PlotNode.py | 317 ++++++++ .../nodes/generated/Node_PowerDivider.py | 172 +++++ .../nodes/generated/Node_PowerTraceNode.py | 174 +++++ .../nodes/generated/Node_ProfileTraceNode.py | 160 ++++ .../Node_PropagationLossCouplingNode.py | 202 +++++ .../nodes/generated/Node_RFSystemNode.py | 26 + .../nodes/generated/Node_RadioGroup.py | 5 + .../nodes/generated/Node_RadioNode.py | 26 + .../nodes/generated/Node_ResultPlotNode.py | 315 ++++++++ .../nodes/generated/Node_RfSystemGroup.py | 25 + .../nodes/generated/Node_RxMeasNode.py | 238 ++++++ .../generated/Node_RxMixerProductNode.py | 197 +++++ .../nodes/generated/Node_RxSaturationNode.py | 20 + .../nodes/generated/Node_RxSelectivityNode.py | 30 + .../nodes/generated/Node_RxSpurNode.py | 34 + .../Node_RxSusceptibilityProfNode.py | 158 ++++ .../nodes/generated/Node_SamplingNode.py | 81 +++ .../nodes/generated/Node_SceneGroupNode.py | 112 +++ .../generated/Node_SelectivityTraceNode.py | 160 ++++ .../generated/Node_SolutionCouplingNode.py | 44 ++ .../nodes/generated/Node_SolutionsNode.py | 15 + .../nodes/generated/Node_Sparameter.py | 81 +++ .../generated/Node_SparameterTraceNode.py | 186 +++++ .../nodes/generated/Node_SpurTraceNode.py | 176 +++++ .../nodes/generated/Node_TRSwitchTraceNode.py | 180 +++++ .../nodes/generated/Node_TR_Switch.py | 164 +++++ .../nodes/generated/Node_Terminator.py | 91 +++ .../generated/Node_TestNoiseTraceNode.py | 250 +++++++ .../generated/Node_TopLevelSimulation.py | 5 + .../generated/Node_TouchstoneCouplingNode.py | 92 +++ .../nodes/generated/Node_TunableTraceNode.py | 189 +++++ .../Node_TwoRayPathLossCouplingNode.py | 222 ++++++ .../nodes/generated/Node_TwoToneTraceNode.py | 250 +++++++ .../nodes/generated/Node_TxBbEmissionNode.py | 46 ++ .../nodes/generated/Node_TxHarmonicNode.py | 34 + .../nodes/generated/Node_TxMeasNode.py | 83 +++ .../nodes/generated/Node_TxNbEmissionNode.py | 43 ++ .../generated/Node_TxSpectralProfNode.py | 265 +++++++ .../nodes/generated/Node_TxSpurNode.py | 34 + .../generated/Node_WalfischCouplingNode.py | 270 +++++++ src/ansys/aedt/core/emit_core/nodes/nodes.py | 137 ++++ 76 files changed, 11276 insertions(+) create mode 100644 src/ansys/aedt/core/emit_core/nodes/GenericEmitNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_Amplifier.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_AntennaGroup.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_AntennaNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_AntennaPassband.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_Band.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_BandFolder.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_BandTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_CADNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_Cable.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_Circulator.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_ComponentGroup.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_ConfigurationGroup.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_ConfigurationNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_CouplingLinkNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_CouplingTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_CouplingsNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_CustomCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_EmiPlotMarkerNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_EmitSceneNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_ErcegCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_Filter.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_FiveGChannelModel.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_HataCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_IndoorPropagationCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_InteractionDiagramNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_Isolator.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_LogDistanceCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_MPlexBandTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_Multiplexer.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_MultiplexerBand.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_Node.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_OutboardTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_ParametricCouplingTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_PlotMarkerNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_PlotNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_PowerDivider.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_PowerTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_ProfileTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_PropagationLossCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_RFSystemNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_RadioGroup.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_RadioNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_ResultPlotNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_RfSystemGroup.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_RxMeasNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_RxMixerProductNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSaturationNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSelectivityNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSpurNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSusceptibilityProfNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_SamplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_SceneGroupNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_SelectivityTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_SolutionCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_SolutionsNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_Sparameter.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_SparameterTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_SpurTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TRSwitchTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TR_Switch.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_Terminator.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TestNoiseTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TopLevelSimulation.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TouchstoneCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TunableTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TwoRayPathLossCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TwoToneTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TxBbEmissionNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TxHarmonicNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TxMeasNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TxNbEmissionNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TxSpectralProfNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TxSpurNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_WalfischCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/nodes.py diff --git a/src/ansys/aedt/core/emit_core/nodes/GenericEmitNode.py b/src/ansys/aedt/core/emit_core/nodes/GenericEmitNode.py new file mode 100644 index 00000000000..acd2cb7bc9f --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/GenericEmitNode.py @@ -0,0 +1,122 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + +import warnings + +from . import generated + +def props_to_dict(props): + result = {} + for prop in props: + split_prop = prop.split("=") + result[split_prop[0]] = split_prop[1] + + return result + +class GenericEmitNode: + # meant to only be used as a parent class + def __init__(self, oDesign, result_id, node_id): + self._oDesign = oDesign + self._result_id = result_id + self._node_id = node_id + self.valid = True + + @property + def get_valid(self): + """Is false if this object has been detached from its EMIT node.""" + return self.valid + + def get_name(self): + props = self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id, self._node_id, True) + props = props_to_dict(props) + return props["Name"] + + @property + def parent(self): + # parent_id = self._oDesign.GetModule('EmitCom').GetParentNodeID(self._result_id, self._node_id) + parent_id = 1 + + parent_props = self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id, parent_id, True) + parent_props = props_to_dict(parent_props) + + parent_type = parent_props['Type'] + parent_type = f'Node_{parent_type}' + + parent_type_module = getattr(generated, parent_type) + parent_type_class = getattr(parent_type_module, parent_type) + parent_node = parent_type_class(self._oDesign, self._result_id, parent_id) + + return parent_node + + def get_parent(self): + #TODO how to create a parent of the appropriate pyaedt node type? + return self._oDesign.GetModule('EmitCom').GetEmitNodeParent(self._result_id, self._node_id) + props = self.get_properties() + parent_path = props['Parent'] + + def get_properties(self): + props = self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id, self._node_id, True) + props = props_to_dict(props) + return props + + def get_warnings(self): + props = self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id, self._node_id, True) + props = props_to_dict(props) + return props["Warnings"] + + def get_allowed_child_types(self): + return self._oDesign.GetModule('EmitCom').GetAllowedChildTypes(self._result_id, self._node_id) + + def _delete(self): + if self._is_component(): self._oDesign.GetModule('EmitCom').DeleteEmitComponent(self._result_id, self._node_id) + else: self._oDesign.GetModule('EmitCom').DeleteEmitNode(self._result_id, self._node_id) + + def _rename(self, requested_name): + new_name = self._oDesign.GetModule('EmitCom').RenameEmitNode(self._result_id, self._node_id, requested_name) + return new_name + + def _duplicate(self): + # TODO (maybe needs to be custom?) + pass + + def _import(self, file_path, import_type): + self._oDesign.GetModule('EmitCom').EmitNodeImport(self._result_id, self._node_id, file_path, import_type) + + def _export_model(self, file_path): + self._oDesign.GetModule('EmitCom').EmitExportModel(self._result_id, self._node_id, file_path) + + def _is_component(self): + return self._is_component + + def _get_child_node_id(self, child_name): + return self._oDesign.GetModule('EmitCom').GetChildNodeID(self._result_id, self._node_id, child_name) + + def _get_table_data(self): + rows = self._oDesign.GetModule('EmitCom').GetTableData(self._result_id, self._node_id) + nested_list = [col.split(' ') for col in rows] + return nested_list + + def _set_table_data(self, nested_list): + rows = [col.join(' ') for col in nested_list] + self._oDesign.GetModule('EmitCom').SetTableData(self._result_id, self._node_id, rows) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Amplifier.py new file mode 100644 index 00000000000..f3ad1986aec --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Amplifier.py @@ -0,0 +1,163 @@ + +from ..GenericEmitNode import GenericEmitNode +from enum import Enum + +class Node_Amplifier(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_filename(self): + """Filename + "Name of file defining the outboard component." + "Value should be a full file path." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + def set_filename(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + + @property + def get_noise_temperature(self): + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + def set_noise_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + + @property + def get_notes(self): + """Notes + "Expand to view/edit notes stored with the project." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + def set_notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def get_amplifier_type(self): + """Amplifier Type + "Configures the amplifier as a Tx or Rx amplifier." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplifier Type') + def set_amplifier_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplifier Type=' + value]) + + class AmplifierTypeOption(Enum): + TRANSMIT_AMPLIFIER = "Transmit Amplifier" + RECEIVE_AMPLIFIER = "Receive Amplifier" + + @property + def get_gain(self): + """Gain + "Amplifier in-band gain." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Gain') + def set_gain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Gain=' + value]) + + @property + def get_center_frequency(self): + """Center Frequency + "Center frequency of amplifiers operational bandwidth." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Center Frequency') + def set_center_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Center Frequency=' + value]) + + @property + def get_bandwidth(self): + """Bandwidth + "Frequency region where the gain applies." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bandwidth') + def set_bandwidth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Bandwidth=' + value]) + + @property + def get_noise_figure(self): + """Noise Figure + "Amplifier noise figure." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Figure') + def set_noise_figure(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Figure=' + value]) + + @property + def get_saturation_level(self): + """Saturation Level + "Saturation level." + "Value should be between -200 and 200." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Saturation Level') + def set_saturation_level(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Saturation Level=' + value]) + + @property + def get__1_db_point_ref_input(self): + """1-dB Point, Ref. Input + "Incoming signals > this value saturate the amplifier." + "Value should be between -200 and 200." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'1-dB Point, Ref. Input') + def set__1_db_point_ref_input(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input=' + value]) + + @property + def get_ip3_ref_input(self): + """IP3, Ref. Input + "3rd order intercept point." + "Value should be between -200 and 200." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'IP3, Ref. Input') + def set_ip3_ref_input(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + value]) + + @property + def get_shape_factor(self): + """Shape Factor + "Ratio defining the selectivity of the amplifier." + "Value should be between 1 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Shape Factor') + def set_shape_factor(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Shape Factor=' + value]) + + @property + def get_reverse_isolation(self): + """Reverse Isolation + "Amplifier reverse isolation." + "Value should be between 0 and 200." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reverse Isolation') + def set_reverse_isolation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) + + @property + def get_max_intermod_order(self): + """Max Intermod Order + "Maximum order of intermods to compute." + "Value should be between 3 and 20." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Intermod Order') + def set_max_intermod_order(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_AntennaGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_AntennaGroup.py new file mode 100644 index 00000000000..ff7ea6dc73a --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_AntennaGroup.py @@ -0,0 +1,8 @@ + +from ..GenericEmitNode import GenericEmitNode + +class Node_AntennaGroup(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_AntennaNode.py new file mode 100644 index 00000000000..c7092399573 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_AntennaNode.py @@ -0,0 +1,652 @@ + +from ..GenericEmitNode import GenericEmitNode +from enum import Enum + +class Node_AntennaNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_tags(self): + """Tags + "Space delimited list of tags for coupling selections." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tags') + def set_tags(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Tags=' + value]) + + @property + def get_show_relative_coordinates(self): + """Show Relative Coordinates + "Show antenna position and orientation in parent-node coords (False) or relative to placement coords (True)." + "Value should be 'true' or 'false'." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Relative Coordinates') + def set_show_relative_coordinates(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) + + @property + def get_position(self): + """Position + "Set position of the antenna in parent-node coordinates." + "Value should be x/y/z, delimited by spaces." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') + def set_position(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position=' + value]) + + @property + def get_relative_position(self): + """Relative Position + "Set position of the antenna relative to placement coordinates." + "Value should be x/y/z, delimited by spaces." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Position') + def set_relative_position(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Relative Position=' + value]) + + @property + def get_orientation_mode(self): + """Orientation Mode + "Select the convention (order of rotations) for configuring orientation." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation Mode') + def set_orientation_mode(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Orientation Mode=' + value]) + class OrientationModeOption(Enum): + RPYDEG = "Roll-Pitch-Yaw" + AETDEG = "Az-El-Twist" + + @property + def get_orientation(self): + """Orientation + "Set orientation of the antenna relative to parent-node coordinates." + "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation') + def set_orientation(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Orientation=' + value]) + + @property + def get_relative_orientation(self): + """Relative Orientation + "Set orientation of the antenna relative to placement coordinates." + "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Orientation') + def set_relative_orientation(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) + + @property + def get_position_defined(self): + """Position Defined + "Toggles on/off the ability to define a position for the antenna." + "Value should be 'true' or 'false'." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position Defined') + def set_position_defined(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position Defined=' + value]) + + @property + def get_antenna_temperature(self): + """Antenna Temperature + "Antenna noise temperature." + "Value should be between 0 and 100000." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna Temperature') + def set_antenna_temperature(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Antenna Temperature=' + value]) + + @property + def get_type(self): + """Type + "Defines the type of antenna." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + def set_type(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) + class TypeOption(Enum): + SUBTYPECHOICES = "::SubTypeChoiceLabels" + + @property + def get_antenna_file(self): + """Antenna File + "Value should be a full file path." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna File') + def set_antenna_file(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Antenna File=' + value]) + + @property + def get_project_name(self): + """Project Name + "Name of imported HFSS Antenna project." + "Value should be a full file path." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Project Name') + def set_project_name(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Project Name=' + value]) + + @property + def get_peak_gain(self): + """Peak Gain + "Set peak gain of antenna (dBi)." + "Value should be between -200 and 200." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Peak Gain') + def set_peak_gain(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Peak Gain=' + value]) + + @property + def get_boresight(self): + """Boresight + "Select peak beam direction in local coordinates." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Boresight') + def set_boresight(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Boresight=' + value]) + class BoresightOption(Enum): + XAXIS = "+X Axis" + YAXIS = "+Y Axis" + ZAXIS = "+Z Axis" + + @property + def get_vertical_beamwidth(self): + """Vertical Beamwidth + "Set half-power beamwidth in local-coordinates elevation plane." + "Value should be between 0.1 and 360." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Vertical Beamwidth') + def set_vertical_beamwidth(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Vertical Beamwidth=' + value]) + + @property + def get_horizontal_beamwidth(self): + """Horizontal Beamwidth + "Set half-power beamwidth in local-coordinates azimuth plane." + "Value should be between 0.1 and 360." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Horizontal Beamwidth') + def set_horizontal_beamwidth(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Horizontal Beamwidth=' + value]) + + @property + def get_extra_sidelobe(self): + """Extra Sidelobe + "Toggle (on/off) option to define two sidelobe levels." + "Value should be 'true' or 'false'." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Extra Sidelobe') + def set_extra_sidelobe(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Extra Sidelobe=' + value]) + + @property + def get_first_sidelobe_level(self): + """First Sidelobe Level + "Set reduction in the gain of Directive Beam antenna for first sidelobe level." + "Value should be between 0 and 200." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'First Sidelobe Level') + def set_first_sidelobe_level(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['First Sidelobe Level=' + value]) + + @property + def get_first_sidelobe_vert_bw(self): + """First Sidelobe Vert. BW + "Set beamwidth of first sidelobe beam in theta direction." + "Value should be between 0.1 and 360." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'First Sidelobe Vert. BW') + def set_first_sidelobe_vert_bw(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['First Sidelobe Vert. BW=' + value]) + + @property + def get_first_sidelobe_hor_bw(self): + """First Sidelobe Hor. BW + "Set beamwidth of first sidelobe beam in phi direction." + "Value should be between 0.1 and 360." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'First Sidelobe Hor. BW') + def set_first_sidelobe_hor_bw(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['First Sidelobe Hor. BW=' + value]) + + @property + def get_outerbacklobe_level(self): + """Outer/Backlobe Level + "Set reduction in gain of Directive Beam antenna for outer/backlobe level." + "Value should be between 0 and 200." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Outer/Backlobe Level') + def set_outerbacklobe_level(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Outer/Backlobe Level=' + value]) + + @property + def get_resonant_frequency(self): + """Resonant Frequency + "Set first resonant frequency of wire dipole, monopole, or parametric antenna." + "Value should be between 1.0 and 1e13." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Resonant Frequency') + def set_resonant_frequency(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Resonant Frequency=' + value]) + + @property + def get_slot_length(self): + """Slot Length + "Set slot length of parametric slot." + "Value should be greater than 1e-6." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Slot Length') + def set_slot_length(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Slot Length=' + value]) + + @property + def get_mouth_width(self): + """Mouth Width + "Set mouth width (along local y-axis) of the horn antenna." + "Value should be between 1e-6 and 100." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mouth Width') + def set_mouth_width(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mouth Width=' + value]) + + @property + def get_mouth_height(self): + """Mouth Height + "Set mouth height (along local x-axis) of the horn antenna." + "Value should be between 1e-6 and 100." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mouth Height') + def set_mouth_height(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mouth Height=' + value]) + + @property + def get_waveguide_width(self): + """Waveguide Width + "Set waveguide width (along local y-axis) where flared horn walls meet the feed, determines cut-off frequency." + "Value should be between 1e-6 and 100." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Waveguide Width') + def set_waveguide_width(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Waveguide Width=' + value]) + + @property + def get_width_flare_half_angle(self): + """Width Flare Half-angle + "Set half-angle (degrees) of flared horn walls measured in local yz-plane from boresight (z) axis to either wall." + "Value should be between 1 and 89.9." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Width Flare Half-angle') + def set_width_flare_half_angle(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Width Flare Half-angle=' + value]) + + @property + def get_height_flare_half_angle(self): + """Height Flare Half-angle + "Set half-angle (degrees) of flared horn walls measured in local xz-plane from boresight (z) axis to either wall." + "Value should be between 1 and 89.9." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Height Flare Half-angle') + def set_height_flare_half_angle(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Height Flare Half-angle=' + value]) + + @property + def get_mouth_diameter(self): + """Mouth Diameter + "Set aperture (mouth) diameter of horn antenna." + "Value should be between 1e-6 and 100." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mouth Diameter') + def set_mouth_diameter(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mouth Diameter=' + value]) + + @property + def get_flare_half_angle(self): + """Flare Half-angle + "Set half-angle (degrees) of conical horn wall measured from boresight (z)." + "Value should be between 1 and 89.9." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Flare Half-angle') + def set_flare_half_angle(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Flare Half-angle=' + value]) + + @property + def get_vswr(self): + """VSWR + "The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch between the antenna and the RF System (or outboard component)." + "Value should be between 1 and 100." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'VSWR') + def set_vswr(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['VSWR=' + value]) + + @property + def get_antenna_polarization(self): + """Antenna Polarization + "Choose local-coordinates polarization along boresight." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna Polarization') + def set_antenna_polarization(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Antenna Polarization=' + value]) + class AntennaPolarizationOption(Enum): + VERTICAL = "Vertical" + HORIZONTAL = "Horizontal" + RHCP = "RHCP" + LHCP = "LHCP" + + @property + def get_cross_dipole_mode(self): + """Cross Dipole Mode + "Choose the Cross Dipole type." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Cross Dipole Mode') + def set_cross_dipole_mode(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Cross Dipole Mode=' + value]) + class CrossDipoleModeOption(Enum): + FREESTANDING = "Freestanding" + OVER_GROUND_PLANE = "Over Ground Plane" + + @property + def get_cross_dipole_polarization(self): + """Cross Dipole Polarization + "Choose local-coordinates polarization along boresight." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Cross Dipole Polarization') + def set_cross_dipole_polarization(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Cross Dipole Polarization=' + value]) + class CrossDipolePolarizationOption(Enum): + RHCP = "RHCP" + LHCP = "LHCP" + + @property + def get_override_height(self): + """Override Height + "Ignores the default placement of quarter design wavelength over the ground plane." + "Value should be 'true' or 'false'." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Override Height') + def set_override_height(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Override Height=' + value]) + + @property + def get_offset_height(self): + """Offset Height + "Sets the offset height for the current sources above the ground plane." + "Value should be greater than 0." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Offset Height') + def set_offset_height(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Offset Height=' + value]) + + @property + def get_auto_height_offset(self): + """Auto Height Offset + "Switch on to automatically place slot current at sub-wavelength offset height above ground plane." + "Value should be 'true' or 'false'." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Auto Height Offset') + def set_auto_height_offset(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Auto Height Offset=' + value]) + + @property + def get_conform__adjust_antenna(self): + """Conform / Adjust Antenna + "Toggle (on/off) conformal adjustment for array antenna elements." + "Value should be 'true' or 'false'." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Conform / Adjust Antenna') + def set_conform__adjust_antenna(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Conform / Adjust Antenna=' + value]) + + @property + def get_element_offset(self): + """Element Offset + "Set vector for shifting element positions in antenna local coordinates." + "Value should be x/y/z, delimited by spaces." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Element Offset') + def set_element_offset(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Element Offset=' + value]) + + @property + def get_conform_to_platform(self): + """Conform to Platform + "Select method of automated conforming applied after Element Offset." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Conform to Platform') + def set_conform_to_platform(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Conform to Platform=' + value]) + class ConformtoPlatformOption(Enum): + NONE = "None" + ALONG_NORMAL = "Along Normal" + PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" + + @property + def get_reference_plane(self): + """Reference Plane + "Select reference plane for determining original element heights." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reference Plane') + def set_reference_plane(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Reference Plane=' + value]) + class ReferencePlaneOption(Enum): + XY_PLANE = "XY Plane" + YZ_PLANE = "YZ Plane" + ZX_PLANE = "ZX Plane" + + @property + def get_conform_element_orientation(self): + """Conform Element Orientation + "Toggle (on/off) re-orientation of elements to conform to curved placement surface." + "Value should be 'true' or 'false'." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Conform Element Orientation') + def set_conform_element_orientation(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Conform Element Orientation=' + value]) + + @property + def get_show_axes(self): + """Show Axes + "Toggle (on/off) display of antenna coordinate axes in 3-D window." + "Value should be 'true' or 'false'." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Axes') + def set_show_axes(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Axes=' + value]) + + @property + def get_show_icon(self): + """Show Icon + "Toggle (on/off) display of antenna marker (cone) in 3-D window." + "Value should be 'true' or 'false'." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Icon') + def set_show_icon(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Icon=' + value]) + + @property + def get_size(self): + """Size + "Adjust relative size of antenna marker (cone) in 3-D window." + "Value should be between 0.001 and 1." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Size') + def set_size(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Size=' + value]) + + @property + def get_color(self): + """Color + "Set color of antenna marker (cone) in 3-D window." + "Color should be in RGB form: #RRGGBB." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Color') + def set_color(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Color=' + value]) + + @property + def get_el_sample_interval(self): + """El Sample Interval + "Space between elevation-angle samples of pattern." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'El Sample Interval') + + @property + def get_az_sample_interval(self): + """Az Sample Interval + "Space between azimuth-angle samples of pattern." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Az Sample Interval') + + @property + def get_has_frequency_domain(self): + """Has Frequency Domain + "False if antenna can be used at any frequency." + "Value should be 'true' or 'false'." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Has Frequency Domain') + + @property + def get_frequency_domain(self): + """Frequency Domain + "Frequency sample(s) defining antenna." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency Domain') + + @property + def get_number_of_electric_sources(self): + """Number of Electric Sources + "Number of freestanding electric current sources defining antenna." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Electric Sources') + + @property + def get_number_of_magnetic_sources(self): + """Number of Magnetic Sources + "Number of freestanding magnetic current sources defining antenna." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Magnetic Sources') + + @property + def get_number_of_imaged_electric_sources(self): + """Number of Imaged Electric Sources + "Number of imaged, half-space radiating electric current sources defining antenna." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Imaged Electric Sources') + + @property + def get_number_of_imaged_magnetic_sources(self): + """Number of Imaged Magnetic Sources + "Number of imaged, half-space radiating magnetic current sources defining antenna." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Imaged Magnetic Sources') + + @property + def get_waveguide_height(self): + """Waveguide Height + "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Waveguide Height') + + @property + def get_waveguide_cutoff_frequency(self): + """Waveguide Cutoff Frequency + "Implied lowest operating frequency of pyramidal horn antenna." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Waveguide Cutoff Frequency') + + @property + def get_aperture_cutoff_frequency(self): + """Aperture Cutoff Frequency + "Implied lowest operating frequency of conical horn antenna." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Aperture Cutoff Frequency') + + @property + def get_swe_mode_truncation(self): + """SWE Mode Truncation + "Select the method for stability-enhancing truncation of spherical wave expansion terms." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'SWE Mode Truncation') + def set_swe_mode_truncation(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['SWE Mode Truncation=' + value]) + class SWEModeTruncationOption(Enum): + DYNAMIC = "Dynamic" + CUSTOM = "Fixed (Custom)" + NONE = "None" + + @property + def get_max_n_index(self): + """Max N Index + "Set maximum allowed index N for spherical wave expansion terms." + "Value should be greater than 1." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max N Index') + def set_max_n_index(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max N Index=' + value]) + + @property + def get_notes(self): + """Notes + "Expand to view/edit notes stored with the project." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + def set_notes(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def get_show_composite_passband(self): + """Show Composite Passband + "Show plot instead of 3D window." + "Value should be 'true' or 'false'." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Composite Passband') + def set_show_composite_passband(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Composite Passband=' + value]) + + @property + def get_use_phase_center(self): + """Use Phase Center + "Use the phase center defined in the HFSS design." + "Value should be 'true' or 'false'." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Phase Center') + def set_use_phase_center(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use Phase Center=' + value]) + + @property + def get_coordinate_systems(self): + """Coordinate Systems + "Specifies the coordinate system for the phase center of this antenna." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Coordinate Systems') + + @property + def get_phasecenterposition(self): + """PhaseCenterPosition + "Set position of the antennas linked coordinate system.." + "Value should be x/y/z, delimited by spaces." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'PhaseCenterPosition') + + @property + def get_phasecenterorientation(self): + """PhaseCenterOrientation + "Set orientation of the antennas linked coordinate system.." + "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'PhaseCenterOrientation') + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_AntennaPassband.py new file mode 100644 index 00000000000..1dc34bdf6da --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_AntennaPassband.py @@ -0,0 +1,93 @@ +class Node_AntennaPassband(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_enabled(self): + """Enabled state for this node.""" + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + + @property + def get_passband_loss(self): + """Passband Loss + "Passband loss." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Passband Loss') + def set_passband_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Passband Loss=' + value]) + + @property + def get_out_of_band_attenuation(self): + """Out of Band Attenuation + "Out of band antenna loss." + "Value should be between 0 and 200." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out of Band Attenuation') + def set_out_of_band_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Out of Band Attenuation=' + value]) + + @property + def get_lower_stop_band(self): + """Lower Stop Band + "Lower stop band frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') + def set_lower_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + + @property + def get_lower_cutoff(self): + """Lower Cutoff + "Lower cutoff frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') + def set_lower_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + + @property + def get_higher_cutoff(self): + """Higher Cutoff + "Higher cutoff frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') + def set_higher_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + + @property + def get_higher_stop_band(self): + """Higher Stop Band + "Higher stop band frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') + def set_higher_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + + @property + def get_notes(self): + """Notes + "Expand to view/edit notes stored with the project." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + def set_notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Band.py new file mode 100644 index 00000000000..25a9ba2c876 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Band.py @@ -0,0 +1,688 @@ +class Node_Band(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def get_enabled(self): + """Enabled state for this node.""" + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + + @property + def get_port(self): + """Port + "Radio Port associated with this Band." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port') + def set_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Port=' + value]) + class PortOption(Enum): + ( + ::PARENT::ANTENNASIDEPORTS = "::Parent::AntennaSidePorts" + ) + + @property + def get_use_dd_1494_mode(self): + """Use DD-1494 Mode + "Uses DD-1494 parameters to define the Tx/Rx spectrum." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use DD-1494 Mode') + def set_use_dd_1494_mode(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use DD-1494 Mode=' + value]) + + @property + def get_use_emission_designator(self): + """Use Emission Designator + "Uses the Emission Designator to define the bandwidth and modulation." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Emission Designator') + def set_use_emission_designator(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use Emission Designator=' + value]) + + @property + def get_emission_designator(self): + """Emission Designator + "Enter the Emission Designator to define the bandwidth and modulation." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Emission Designator') + def set_emission_designator(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Emission Designator=' + value]) + + @property + def get_emission_designator_ch_bw(self): + """Emission Designator Ch. BW + "Channel Bandwidth based off the emission designator." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Emission Designator Ch. BW') + + @property + def get_emit_modulation_type(self): + """EMIT Modulation Type + "Modulation based off the emission designator." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'EMIT Modulation Type') + + @property + def get_override_emission_designator_bw(self): + """Override Emission Designator BW + "Enables the 3 dB channel bandwidth to equal a value < emission designator bandwidth." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Override Emission Designator BW') + def set_override_emission_designator_bw(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Override Emission Designator BW=' + value]) + + @property + def get_channel_bandwidth(self): + """Channel Bandwidth + "Channel Bandwidth." + "Value should be between 1 and unbounded." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Channel Bandwidth') + def set_channel_bandwidth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Channel Bandwidth=' + value]) + + @property + def get_modulation(self): + """Modulation + "Modulation used for the transmitted/received signal." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Modulation') + def set_modulation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Modulation=' + value]) + class ModulationOption(Enum): + ( + GENERIC = "Generic" + AM = "AM" + LSB = "LSB" + USB = "USB" + FM = "FM" + FSK = "FSK" + MSK = "MSK" + PSK = "PSK" + QAM = "QAM" + APSK = "APSK" + RADAR = "Radar" + ) + + @property + def get_waveform(self): + """Waveform + "Modulation used for the transmitted/received signal." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Waveform') + def set_waveform(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Waveform=' + value]) + class WaveformOption(Enum): + ( + PERIODIC_CLOCK = "Periodic Clock" + SPREAD_SPECTRUM = "Spread Spectrum Clock" + PRBS = "PRBS" + PRBS_PERIODIC = "PRBS (Periodic)" + IMPORTED = "Imported" + ) + + @property + def get_max_modulating_freq(self): + """Max Modulating Freq. + "Maximum modulating frequency: helps determine spectral profile." + "Value should be between 1 and unbounded." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Modulating Freq.') + def set_max_modulating_freq(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Modulating Freq.=' + value]) + + @property + def get_modulation_index(self): + """Modulation Index + "AM modulation index: helps determine spectral profile." + "Value should be between 0.01 and 1." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Modulation Index') + def set_modulation_index(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Modulation Index=' + value]) + + @property + def get_freq_deviation(self): + """Freq. Deviation + "Frequency deviation: helps determine spectral profile." + "Value should be between 1 and unbounded." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Freq. Deviation') + def set_freq_deviation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Freq. Deviation=' + value]) + + @property + def get_bit_rate(self): + """Bit Rate + "Maximum bit rate: helps determine width of spectral profile." + "Value should be between 1 and unbounded." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bit Rate') + def set_bit_rate(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Bit Rate=' + value]) + + @property + def get_sidelobes(self): + """Sidelobes + "Number of sidelobes in spectral profile." + "Value should be between 0 and unbounded." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Sidelobes') + def set_sidelobes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Sidelobes=' + value]) + + @property + def get_freq_deviation_(self): + """Freq. Deviation + "FSK frequency deviation: helps determine spectral profile." + "Value should be between 1 and unbounded." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Freq. Deviation ') + def set_freq_deviation_(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Freq. Deviation =' + value]) + + @property + def get_psk_type(self): + """PSK Type + "PSK modulation order: helps determine spectral profile." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'PSK Type') + def set_psk_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['PSK Type=' + value]) + class PSKTypeOption(Enum): + ( + BPSK = "BPSK" + QPSK = "QPSK" + _8_PSK = "8-PSK" + _16_PSK = "16-PSK" + _32_PSK = "32-PSK" + _64_PSK = "64-PSK" + ) + + @property + def get_fsk_type(self): + """FSK Type + "FSK modulation order: helps determine spectral profile." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'FSK Type') + def set_fsk_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['FSK Type=' + value]) + class FSKTypeOption(Enum): + ( + _2_FSK = "2-FSK" + _4_FSK = "4-FSK" + _8_FSK = "8-FSK" + ) + + @property + def get_qam_type(self): + """QAM Type + "QAM modulation order: helps determine spectral profile." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'QAM Type') + def set_qam_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['QAM Type=' + value]) + class QAMTypeOption(Enum): + ( + _4_QAM = "4-QAM" + _16_QAM = "16-QAM" + _64_QAM = "64-QAM" + _256_QAM = "256-QAM" + _1024_QAM = "1024-QAM" + ) + + @property + def get_apsk_type(self): + """APSK Type + "APSK modulation order: helps determine spectral profile." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'APSK Type') + def set_apsk_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['APSK Type=' + value]) + class APSKTypeOption(Enum): + ( + _4_APSK = "4-APSK" + _16_APSK = "16-APSK" + _64_APSK = "64-APSK" + _256_APSK = "256-APSK" + _1024_APSK = "1024-APSK" + ) + + @property + def get_start_frequency(self): + """Start Frequency + "First frequency for this band." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Start Frequency') + def set_start_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Start Frequency=' + value]) + + @property + def get_stop_frequency(self): + """Stop Frequency + "Last frequency for this band." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop Frequency') + def set_stop_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Stop Frequency=' + value]) + + @property + def get_channel_spacing(self): + """Channel Spacing + "Spacing between channels within this band." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Channel Spacing') + def set_channel_spacing(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Channel Spacing=' + value]) + + @property + def get_tx_offset(self): + """Tx Offset + "Frequency offset between Tx and Rx channels." + "Value should be between ::TxOffsetMin and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx Offset') + def set_tx_offset(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Tx Offset=' + value]) + + @property + def get_clock_duty_cycle(self): + """Clock Duty Cycle + "Clock signals duty cycle." + "Value should be between 0.001 and 1.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Clock Duty Cycle') + def set_clock_duty_cycle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Clock Duty Cycle=' + value]) + + @property + def get_clock_risefall_time(self): + """Clock Rise/Fall Time + "Clock signals rise/fall time." + "Value should be greater than 0.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Clock Rise/Fall Time') + def set_clock_risefall_time(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Clock Rise/Fall Time=' + value]) + + @property + def get_spreading_type(self): + """Spreading Type + "Type of spreading employed by the Spread Spectrum Clock." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spreading Type') + def set_spreading_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Spreading Type=' + value]) + class SpreadingTypeOption(Enum): + ( + LOW_SPREAD = "Low Spread" + CENTER_SPREAD = "Center Spread" + HIGH_SPREAD = "High Spread" + ) + + @property + def get_spread_percentage(self): + """Spread Percentage + "Peak-to-peak spread percentage." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spread Percentage') + def set_spread_percentage(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Spread Percentage=' + value]) + + @property + def get_imported_spectrum(self): + """Imported Spectrum + "Value should be a full file path." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Imported Spectrum') + def set_imported_spectrum(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Imported Spectrum=' + value]) + + @property + def get_raw_data_format(self): + """Raw Data Format + "Format of the imported raw data." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Raw Data Format') + + @property + def get_system_impedance(self): + """System Impedance + "System impedance for the imported data." + "Value should be between 0.0 and 1.0e6." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'System Impedance') + def set_system_impedance(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['System Impedance=' + value]) + + @property + def get_advanced_extraction_params(self): + """Advanced Extraction Params + "Show/hide advanced extraction params." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Advanced Extraction Params') + def set_advanced_extraction_params(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Advanced Extraction Params=' + value]) + + @property + def get_nb_window_size(self): + """NB Window Size + "Window size for computing the moving average during narrowband signal detection." + "Value should be greater than 3." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'NB Window Size') + def set_nb_window_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['NB Window Size=' + value]) + + @property + def get_bb_smoothing_factor(self): + """BB Smoothing Factor + "Reduces the number of frequency points used for the broadband noise." + "Value should be greater than 1." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BB Smoothing Factor') + def set_bb_smoothing_factor(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['BB Smoothing Factor=' + value]) + + @property + def get_nb_detector_threshold(self): + """NB Detector Threshold + "Narrowband Detector threshold standard deviation." + "Value should be between 2 and 10." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'NB Detector Threshold') + def set_nb_detector_threshold(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['NB Detector Threshold=' + value]) + + @property + def get_algorithm(self): + """Algorithm + "Algorithm used to transform the imported time domain spectrum." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Algorithm') + def set_algorithm(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Algorithm=' + value]) + class AlgorithmOption(Enum): + ( + FFT = "FFT" + FOURIER_TRANSFORM = "Fourier Transform" + ) + + @property + def get_start(self): + """Start + "Initial time of the imported spectrum." + "Value should be between 0.0 and ::TDStartMax." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Start') + def set_start(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Start=' + value]) + + @property + def get_stop(self): + """Stop + "Final time of the imported time domain spectrum." + "Value should be between ::TDStopMin and ::TDStopMax." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop') + def set_stop(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Stop=' + value]) + + @property + def get_max_frequency(self): + """Max Frequency + "Frequency cutoff of the imported time domain spectrum." + "Value should be between 1.0 and 100.0e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Frequency') + def set_max_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Frequency=' + value]) + + @property + def get_window_type(self): + """Window Type + "Windowing scheme used for importing time domain spectrum." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Window Type') + def set_window_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Window Type=' + value]) + class WindowTypeOption(Enum): + ( + RECTANGULAR = "Rectangular" + BARTLETT = "Bartlett" + BLACKMAN = "Blackman" + HAMMING = "Hamming" + HANNING = "Hanning" + KAISER = "Kaiser" + LANZCOS = "Lanzcos" + WELCH = "Welch" + WEBER = "Weber" + ) + + @property + def get_kaiser_parameter(self): + """Kaiser Parameter + "Shape factor applied to the transform." + "Value should be greater than 0.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Kaiser Parameter') + def set_kaiser_parameter(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Kaiser Parameter=' + value]) + + @property + def get_adjust_coherent_gain(self): + """Adjust Coherent Gain + "Shape factor applied to the transform." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adjust Coherent Gain') + def set_adjust_coherent_gain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adjust Coherent Gain=' + value]) + + @property + def get_data_rate(self): + """Data Rate + "Maximum data rate: helps determine shape of spectral profile." + "Value should be between 1 and unbounded." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Rate') + def set_data_rate(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Rate=' + value]) + + @property + def get__of_bits(self): + """# of Bits + "Length of the Pseudo Random Binary Sequence." + "Value should be between 1 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'# of Bits') + def set__of_bits(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['# of Bits=' + value]) + + @property + def get_use_envelope(self): + """Use Envelope + "Model the waveform as a worst case envelope.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Envelope') + def set_use_envelope(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use Envelope=' + value]) + + @property + def get_min_ptsnull(self): + """Min Pts/Null + "Minimum number of points to use between each null frequency." + "Value should be between 2 and 50." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Pts/Null') + def set_min_ptsnull(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Min Pts/Null=' + value]) + + @property + def get_delay_skew(self): + """Delay Skew + "Delay Skew of the differential signal pairs." + "Value should be greater than 0.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Delay Skew') + def set_delay_skew(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Delay Skew=' + value]) + + @property + def get_radar_type(self): + """Radar Type + "Radar type: helps determine spectral profile." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Radar Type') + def set_radar_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Radar Type=' + value]) + class RadarTypeOption(Enum): + ( + CW = "CW" + FM_CW = "FM-CW" + FM_PULSE = "FM Pulse" + NON_FM_PULSE = "Non-FM Pulse" + PHASE_CODED = "Phase Coded" + ) + + @property + def get_hopping_radar(self): + """Hopping Radar + "True for hopping radars; false otherwise." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Hopping Radar') + def set_hopping_radar(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Hopping Radar=' + value]) + + @property + def get_post_october_2020_procurement(self): + """Post October 2020 Procurement + "Procurement date: helps determine spectral profile, particularly the roll-off." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Post October 2020 Procurement') + def set_post_october_2020_procurement(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Post October 2020 Procurement=' + value]) + + @property + def get_hop_range_min_freq(self): + """Hop Range Min Freq + "Sets the minimum frequency of the hopping range." + "Value should be between 1.0 and 100.0e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Hop Range Min Freq') + def set_hop_range_min_freq(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Hop Range Min Freq=' + value]) + + @property + def get_hop_range_max_freq(self): + """Hop Range Max Freq + "Sets the maximum frequency of the hopping range." + "Value should be between 1.0 and 100.0e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Hop Range Max Freq') + def set_hop_range_max_freq(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Hop Range Max Freq=' + value]) + + @property + def get_pulse_duration(self): + """Pulse Duration + "Pulse duration." + "Value should be greater than 0.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Duration') + def set_pulse_duration(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pulse Duration=' + value]) + + @property + def get_pulse_rise_time(self): + """Pulse Rise Time + "Pulse rise time." + "Value should be greater than 0.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Rise Time') + def set_pulse_rise_time(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pulse Rise Time=' + value]) + + @property + def get_pulse_fall_time(self): + """Pulse Fall Time + "Pulse fall time." + "Value should be greater than 0.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Fall Time') + def set_pulse_fall_time(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pulse Fall Time=' + value]) + + @property + def get_pulse_repetition_rate(self): + """Pulse Repetition Rate + "Pulse repetition rate [pulses/sec]." + "Value should be greater than 1.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Repetition Rate') + def set_pulse_repetition_rate(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pulse Repetition Rate=' + value]) + + @property + def get_number_of_chips(self): + """Number of Chips + "Total number of chips (subpulses) contained in the pulse." + "Value should be greater than 1.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Chips') + def set_number_of_chips(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Number of Chips=' + value]) + + @property + def get_pulse_compression_ratio(self): + """Pulse Compression Ratio + "Pulse compression ratio." + "Value should be greater than 1.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Compression Ratio') + def set_pulse_compression_ratio(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pulse Compression Ratio=' + value]) + + @property + def get_fm_chirp_period(self): + """FM Chirp Period + "FM Chirp period for the FM/CW radar." + "Value should be greater than 0.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'FM Chirp Period') + def set_fm_chirp_period(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['FM Chirp Period=' + value]) + + @property + def get_fm_freq_deviation(self): + """FM Freq Deviation + "Total frequency deviation for the carrier frequency for the FM/CW radar." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'FM Freq Deviation') + def set_fm_freq_deviation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['FM Freq Deviation=' + value]) + + @property + def get_fm_freq_dev_bandwidth(self): + """FM Freq Dev Bandwidth + "Bandwidth of freq deviation for FM modulated pulsed waveform (total freq shift during pulse duration)." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'FM Freq Dev Bandwidth') + def set_fm_freq_dev_bandwidth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['FM Freq Dev Bandwidth=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_BandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_BandFolder.py new file mode 100644 index 00000000000..a12f7ef8198 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_BandFolder.py @@ -0,0 +1,17 @@ +class Node_BandFolder(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_BandTraceNode.py new file mode 100644 index 00000000000..aa143d97dc6 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_BandTraceNode.py @@ -0,0 +1,190 @@ +class Node_BandTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + def set_data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def get_tx_or_rx(self): + """Tx or Rx + "Specifies whether the trace is a Tx or Rx channel." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx or Rx') + def set_tx_or_rx(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Tx or Rx=' + value]) + class TxorRxOption(Enum): + ( + TX = "Tx" + RX = "Rx" + ) + + @property + def get_channel_frequency(self): + """Channel Frequency + "Select band channel frequency to display." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Channel Frequency') + def set_channel_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Channel Frequency=' + value]) + + @property + def get_transmit_frequency(self): + """Transmit Frequency + "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Transmit Frequency') + + @property + def get_visible(self): + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + def set_visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def get_custom_legend(self): + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + def set_custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def get_name(self): + """Name + "Enter name of plot trace as it will appear in legend." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + def set_name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def get_style(self): + """Style + "Specify line style of plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + def set_style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + ( + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + ) + + @property + def get_line_width(self): + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + def set_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def get_line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + def set_line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def get_symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + def set_symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + ( + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + ) + + @property + def get_symbol_size(self): + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + def set_symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def get_symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + def set_symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def get_symbol_line_width(self): + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + def set_symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def get_symbol_filled(self): + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + def set_symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_CADNode.py new file mode 100644 index 00000000000..e7c867eaa0e --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_CADNode.py @@ -0,0 +1,432 @@ +class Node_CADNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_file(self): + """File + "Name of the imported CAD file." + "Value should be a full file path." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'File') + + @property + def get_model_type(self): + """Model Type + "Select type of parametric model to create." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Model Type') + def set_model_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Model Type=' + value]) + class ModelTypeOption(Enum): + PLATE = "Plate" + BOX = "Box" + DIHEDRAL = "Dihedral" + TRIHEDRAL = "Trihedral" + CYLINDER = "Cylinder" + TAPERED_CYLINDER = "Tapered Cylinder" + CONE = "Cone" + SPHERE = "Sphere" + ELLIPSOID = "Ellipsoid" + CIRCULAR_PLATE = "Circular Plate" + PARABOLA = "Parabola" + PRISM = "Prism" + TAPERED_PRISM = "Tapered Prism" + TOPHAT = "Tophat" + + @property + def get_length(self): + """Length + "Length of the model." + "Value should be greater than 0.000001." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Length') + def set_length(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Length=' + value]) + + @property + def get_width(self): + """Width + "Width of the model." + "Value should be greater than 0.000001." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Width') + def set_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Width=' + value]) + + @property + def get_height(self): + """Height + "Height of the model." + "Value should be greater than 0.000001." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Height') + def set_height(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Height=' + value]) + + @property + def get_angle(self): + """Angle + "Angle (deg) between the plates." + "Value should be between 0.0 and 360.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Angle') + def set_angle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Angle=' + value]) + + @property + def get_top_side(self): + """Top Side + "Side of the top of a equilateral triangular cylinder model." + "Value should be greater than 0.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Top Side') + def set_top_side(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Top Side=' + value]) + + @property + def get_top_radius(self): + """Top Radius + "Radius of the top of a tapered cylinder model." + "Value should be greater than 0.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Top Radius') + def set_top_radius(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Top Radius=' + value]) + + @property + def get_side(self): + """Side + "Side of the equilateral triangular cylinder." + "Value should be greater than 0.000001." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Side') + def set_side(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Side=' + value]) + + @property + def get_radius(self): + """Radius + "Radius of the sphere or cylinder." + "Value should be greater than 0.000001." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Radius') + def set_radius(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Radius=' + value]) + + @property + def get_base_radius(self): + """Base Radius + "Radius of the base of a tophat model." + "Value should be greater than 0.000001." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Base Radius') + def set_base_radius(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Base Radius=' + value]) + + @property + def get_center_radius(self): + """Center Radius + "Radius of the raised portion of a tophat model." + "Value should be greater than 0.000001." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Center Radius') + def set_center_radius(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Center Radius=' + value]) + + @property + def get_x_axis_ellipsoid_radius(self): + """X Axis Ellipsoid Radius + "Ellipsoid semi-principal radius for the X axis." + "Value should be greater than 0.000001." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X Axis Ellipsoid Radius') + def set_x_axis_ellipsoid_radius(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['X Axis Ellipsoid Radius=' + value]) + + @property + def get_y_axis_ellipsoid_radius(self): + """Y Axis Ellipsoid Radius + "Ellipsoid semi-principal radius for the Y axis." + "Value should be greater than 0.000001." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y Axis Ellipsoid Radius') + def set_y_axis_ellipsoid_radius(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y Axis Ellipsoid Radius=' + value]) + + @property + def get_z_axis_ellipsoid_radius(self): + """Z Axis Ellipsoid Radius + "Ellipsoid semi-principal radius for the Z axis." + "Value should be greater than 0.000001." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Z Axis Ellipsoid Radius') + def set_z_axis_ellipsoid_radius(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Z Axis Ellipsoid Radius=' + value]) + + @property + def get_focal_length(self): + """Focal Length + "Focal length of a parabolic reflector (f = 1/4a where y=ax^2)." + "Value should be greater than 0.000001." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Focal Length') + def set_focal_length(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Focal Length=' + value]) + + @property + def get_offset(self): + """Offset + "Offset of parabolic reflector." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Offset') + def set_offset(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Offset=' + value]) + + @property + def get_x_direction_taper(self): + """X Direction Taper + "Amount (%) that the prism tapers in the X dimension from one end to the other." + "Value should be greater than 0.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X Direction Taper') + def set_x_direction_taper(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['X Direction Taper=' + value]) + + @property + def get_y_direction_taper(self): + """Y Direction Taper + "Amount (%) that the prism tapers in the Y dimension from one end to the other." + "Value should be greater than 0.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y Direction Taper') + def set_y_direction_taper(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y Direction Taper=' + value]) + + @property + def get_prism_direction(self): + """Prism Direction + "Direction vector between the center of the base and center of the top." + "Value should be x/y/z, delimited by spaces." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Prism Direction') + def set_prism_direction(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Prism Direction=' + value]) + + @property + def get_closed_top(self): + """Closed Top + "Control whether the top of the model is closed." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Closed Top') + def set_closed_top(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Closed Top=' + value]) + + @property + def get_closed_base(self): + """Closed Base + "Control whether the base of the model is closed." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Closed Base') + def set_closed_base(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Closed Base=' + value]) + + @property + def get_mesh_density(self): + """Mesh Density + "Unitless mesh density parameter where higher value improves mesh smoothness." + "Value should be between 1 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mesh Density') + def set_mesh_density(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mesh Density=' + value]) + + @property + def get_use_symmetric_mesh(self): + """Use Symmetric Mesh + "Convert quads to a symmetric triangle mesh by adding a center point (4 triangles per quad instead of 2)." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Symmetric Mesh') + def set_use_symmetric_mesh(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use Symmetric Mesh=' + value]) + + @property + def get_mesh_option(self): + """Mesh Option + "Select from different meshing options." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mesh Option') + def set_mesh_option(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mesh Option=' + value]) + class MeshOptionOption(Enum): + IMPROVED = "Improved" + LEGACY = "Legacy" + + @property + def get_coating_index(self): + """Coating Index + "Coating index for the parametric model primitive." + "Value should be between 0 and 100000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Coating Index') + def set_coating_index(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Coating Index=' + value]) + + @property + def get_show_relative_coordinates(self): + """Show Relative Coordinates + "Show CAD model node position and orientation in parent-node coords (False) or relative to placement coords (True)." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Relative Coordinates') + def set_show_relative_coordinates(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) + + @property + def get_position(self): + """Position + "Set position of the CAD node in parent-node coordinates." + "Value should be x/y/z, delimited by spaces." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') + def set_position(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position=' + value]) + + @property + def get_relative_position(self): + """Relative Position + "Set position of the CAD model node relative to placement coordinates." + "Value should be x/y/z, delimited by spaces." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Position') + def set_relative_position(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Relative Position=' + value]) + + @property + def get_orientation_mode(self): + """Orientation Mode + "Select the convention (order of rotations) for configuring orientation." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation Mode') + def set_orientation_mode(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Orientation Mode=' + value]) + class OrientationModeOption(Enum): + ( + RPYDEG = "Roll-Pitch-Yaw" + AETDEG = "Az-El-Twist" + ) + + @property + def get_orientation(self): + """Orientation + "Set orientation of the CAD node in parent-node coordinates." + "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation') + def set_orientation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Orientation=' + value]) + + @property + def get_relative_orientation(self): + """Relative Orientation + "Set orientation of the CAD model node relative to placement coordinates." + "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Orientation') + def set_relative_orientation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) + + @property + def get_visible(self): + """Visible + "Toggle (on/off) display of CAD model in 3-D window." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + def set_visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def get_render_mode(self): + """Render Mode + "Select drawing style for surfaces." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Render Mode') + def set_render_mode(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Render Mode=' + value]) + class RenderModeOption(Enum): + ( + FLAT_SHADED = "Flat-Shaded" + WIRE_FRAME = "Wire-Frame" + HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" + OUTLINE = "Outline" + ) + + @property + def get_show_axes(self): + """Show Axes + "Toggle (on/off) display of CAD model coordinate axes in 3-D window." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Axes') + def set_show_axes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Axes=' + value]) + + @property + def get_min(self): + """Min + "Minimum x,y,z extents of CAD model in local coordinates." + "Value should be x/y/z, delimited by spaces." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min') + + @property + def get_max(self): + """Max + "Maximum x,y,z extents of CAD model in local coordinates." + "Value should be x/y/z, delimited by spaces." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max') + + @property + def get_number_of_surfaces(self): + """Number of Surfaces + "Number of surfaces in the model." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Surfaces') + + @property + def get_color(self): + """Color + "Defines the CAD nodes color." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Color') + def set_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Color=' + value]) + + @property + def get_notes(self): + """Notes + "Expand to view/edit notes stored with the project." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + def set_notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Cable.py new file mode 100644 index 00000000000..da152739d51 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Cable.py @@ -0,0 +1,118 @@ +class Node_Cable(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_filename(self): + """Filename + "Name of file defining the outboard component." + "Value should be a full file path." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + def set_filename(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + + @property + def get_noise_temperature(self): + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + def set_noise_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + + @property + def get_notes(self): + """Notes + "Expand to view/edit notes stored with the project." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + def set_notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def get_type(self): + """Type + "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + def set_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) + class TypeOption(Enum): + ( + BYFILE = "By File" + CONSTANT = "Constant Loss" + COAXIAL = "Coaxial Cable" + ) + + @property + def get_length(self): + """Length + "Length of cable." + "Value should be between 0 and 500." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Length') + def set_length(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Length=' + value]) + + @property + def get_loss_per_length(self): + """Loss Per Length + "Cable loss per unit length (dB/meter)." + "Value should be between 0 and 20." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Loss Per Length') + def set_loss_per_length(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Loss Per Length=' + value]) + + @property + def get_measurement_length(self): + """Measurement Length + "Length of the cable used for the measurements." + "Value should be between 0 and 500." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measurement Length') + def set_measurement_length(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Measurement Length=' + value]) + + @property + def get_resistive_loss_constant(self): + """Resistive Loss Constant + "Coaxial cable resistive loss constant." + "Value should be between 0 and 2." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Resistive Loss Constant') + def set_resistive_loss_constant(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Resistive Loss Constant=' + value]) + + @property + def get_dielectric_loss_constant(self): + """Dielectric Loss Constant + "Coaxial cable dielectric loss constant." + "Value should be between 0 and 1." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Dielectric Loss Constant') + def set_dielectric_loss_constant(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Dielectric Loss Constant=' + value]) + + @property + def get_warnings(self): + """Warnings + "Warning(s) for this node." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Circulator.py new file mode 100644 index 00000000000..3f26cce21d9 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Circulator.py @@ -0,0 +1,171 @@ +class Node_Circulator(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_filename(self): + """Filename + "Name of file defining the Isolator/Circulator." + "Value should be a full file path." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + def set_filename(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + + @property + def get_noise_temperature(self): + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + def set_noise_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + + @property + def get_notes(self): + """Notes + "Expand to view/edit notes stored with the project." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + def set_notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def get_type(self): + """Type + "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + def set_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) + class TypeOption(Enum): + ( + BYFILE = "By File" + PARAMETRIC = "Parametric" + ) + + @property + def get_port_1_location(self): + """Port 1 Location + "Defines the orientation of the circulator.." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port 1 Location') + def set_port_1_location(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Port 1 Location=' + value]) + class Port1LocationOption(Enum): + ( + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" + ) + + @property + def get_insertion_loss(self): + """Insertion Loss + "Circulator in-band loss in forward direction.." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') + def set_insertion_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + + @property + def get_finite_reverse_isolation(self): + """Finite Reverse Isolation + "Use a finite reverse isolation. If disabled, the circulator model is ideal (infinite reverse isolation).." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Reverse Isolation') + def set_finite_reverse_isolation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Reverse Isolation=' + value]) + + @property + def get_reverse_isolation(self): + """Reverse Isolation + "Circulator reverse isolation (i.e., loss in the reverse direction).." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reverse Isolation') + def set_reverse_isolation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) + + @property + def get_finite_bandwidth(self): + """Finite Bandwidth + "Use a finite bandwidth. If disabled, the circulator model is ideal (infinite bandwidth).." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Bandwidth') + def set_finite_bandwidth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) + + @property + def get_out_of_band_attenuation(self): + """Out-of-band Attenuation + "Out-of-band loss (attenuation)." + "Value should be between 0 and 200." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out-of-band Attenuation') + def set_out_of_band_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) + + @property + def get_lower_stop_band(self): + """Lower Stop Band + "Lower stop band frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') + def set_lower_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + + @property + def get_lower_cutoff(self): + """Lower Cutoff + "Lower cutoff frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') + def set_lower_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + + @property + def get_higher_cutoff(self): + """Higher Cutoff + "Higher cutoff frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') + def set_higher_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + + @property + def get_higher_stop_band(self): + """Higher Stop Band + "Higher stop band frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') + def set_higher_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + + @property + def get_warnings(self): + """Warnings + "Warning(s) for this node." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_ComponentGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_ComponentGroup.py new file mode 100644 index 00000000000..20becdb4df1 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_ComponentGroup.py @@ -0,0 +1,5 @@ +class Node_ComponentGroup(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_ConfigurationGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_ConfigurationGroup.py new file mode 100644 index 00000000000..d65640a5992 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_ConfigurationGroup.py @@ -0,0 +1,5 @@ +class Node_ConfigurationGroup(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_ConfigurationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_ConfigurationNode.py new file mode 100644 index 00000000000..b711ad89362 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_ConfigurationNode.py @@ -0,0 +1,26 @@ +class Node_ConfigurationNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_notes(self): + """Notes + "Expand to view/edit notes stored with the project." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + def set_notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_CouplingLinkNode.py new file mode 100644 index 00000000000..a283b48a2d6 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_CouplingLinkNode.py @@ -0,0 +1,15 @@ +class Node_CouplingLinkNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def get_enabled(self): + """Enabled + "Enable/Disable coupling link." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_CouplingTraceNode.py new file mode 100644 index 00000000000..f9215d1a0c6 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_CouplingTraceNode.py @@ -0,0 +1,240 @@ +class Node_CouplingTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + def set_data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def get_visible(self): + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + def set_visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def get_custom_legend(self): + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + def set_custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def get_name(self): + """Name + "Enter name of plot trace as it will appear in legend." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + def set_name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def get_style(self): + """Style + "Specify line style of plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + def set_style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + ( + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + ) + + @property + def get_line_width(self): + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + def set_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def get_line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + def set_line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def get_symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + def set_symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + ( + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + ) + + @property + def get_symbol_size(self): + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + def set_symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def get_symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + def set_symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def get_symbol_line_width(self): + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + def set_symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def get_symbol_filled(self): + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + def set_symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + + @property + def get_highlight_regions(self): + """Highlight Regions + "If true, regions of the trace are highlighted." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Highlight Regions') + def set_highlight_regions(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Highlight Regions=' + value]) + + @property + def get_show_region_labels(self): + """Show Region Labels + "If true, regions of the trace are labelled." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Region Labels') + def set_show_region_labels(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Region Labels=' + value]) + + @property + def get_font(self): + """Font + "Specify font used for the label." + "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Font') + def set_font(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Font=' + value]) + + @property + def get_color(self): + """Color + "Specify color of the label text." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Color') + def set_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Color=' + value]) + + @property + def get_background_color(self): + """Background Color + "Set color of the label text background." + "Color should be in RGBA form: #AARRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Background Color') + def set_background_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Background Color=' + value]) + + @property + def get_border(self): + """Border + "Display a border around the label text." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border') + def set_border(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border=' + value]) + + @property + def get_border_width(self): + """Border Width + "Set the width of the border around the label text." + "Value should be between 1 and 20." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border Width') + def set_border_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border Width=' + value]) + + @property + def get_border_color(self): + """Border Color + "Set color of the border around the label text." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border Color') + def set_border_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border Color=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_CouplingsNode.py new file mode 100644 index 00000000000..c1e2587105b --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_CouplingsNode.py @@ -0,0 +1,35 @@ + +from ..GenericEmitNode import GenericEmitNode + +class Node_CouplingsNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def get_minimum_allowed_coupling(self): + """Minimum Allowed Coupling + "Global minimum allowed coupling value. All computed coupling within this project will be >= this value." + "Value should be between -1000 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minimum Allowed Coupling') + def set_minimum_allowed_coupling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Minimum Allowed Coupling=' + value]) + + @property + def get_global_default_coupling(self): + """Global Default Coupling + "Default antenna-to-antenna coupling loss value." + "Value should be between -1000 and 0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Global Default Coupling') + def set_global_default_coupling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Global Default Coupling=' + value]) + + @property + def get_antenna_tags(self): + """Antenna Tags + "All tags currently used by all antennas in the project." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna Tags') + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_CustomCouplingNode.py new file mode 100644 index 00000000000..37e4edbd61a --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_CustomCouplingNode.py @@ -0,0 +1,60 @@ +class Node_CustomCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def import_csv_file(self, file_name): + """Import a CSV File...""" + return self._import(file_name,'Csv') + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_enabled(self): + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def get_enable_refinement(self): + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + def set_enable_refinement(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + + @property + def get_adaptive_sampling(self): + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + def set_adaptive_sampling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + + @property + def get_refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + def set_refinement_domain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_EmiPlotMarkerNode.py new file mode 100644 index 00000000000..489ed297f1f --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_EmiPlotMarkerNode.py @@ -0,0 +1,272 @@ +class Node_EmiPlotMarkerNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_visible(self): + """Visible + "Toggle (on/off) this marker." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + def set_visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def get_attached(self): + """Attached + "Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False)." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Attached') + def set_attached(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Attached=' + value]) + + @property + def get_position(self): + """Position + "Set position of the marker along the X-axis." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') + + @property + def get_position(self): + """Position + "Set position of the marker along the Y-axis." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') + + @property + def get_floating_label(self): + """Floating Label + "Allow marker label to be positioned at a fixed point on the plot window (the marker symbol remains fixed to the specified X-Y point)." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Floating Label') + def set_floating_label(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Floating Label=' + value]) + + @property + def get_position_from_left(self): + """Position from Left + "Set position of label from left to right as a percentage of the width of the plot window." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position from Left') + def set_position_from_left(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position from Left=' + value]) + + @property + def get_position_from_top(self): + """Position from Top + "Set position of label from top to bottom as a percentage of the height of the plot window." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position from Top') + def set_position_from_top(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position from Top=' + value]) + + @property + def get_text(self): + """Text + "Set the text of the label." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Text') + def set_text(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Text=' + value]) + + @property + def get_horizontal_position(self): + """Horizontal Position + "Specify horizontal position of the label as compared to the symbol." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Horizontal Position') + def set_horizontal_position(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Horizontal Position=' + value]) + class HorizontalPositionOption(Enum): + ( + LEFT = "Left" + RIGHT = "Right" + CENTER = "Center" + ) + + @property + def get_vertical_position(self): + """Vertical Position + "Specify vertical position of the label as compared to the symbol." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Vertical Position') + def set_vertical_position(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Vertical Position=' + value]) + class VerticalPositionOption(Enum): + ( + TOP = "Top" + BOTTOM = "Bottom" + CENTER = "Center" + ) + + @property + def get_text_alignment(self): + """Text Alignment + "Specify justification applied to multi-line text." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Text Alignment') + def set_text_alignment(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Text Alignment=' + value]) + class TextAlignmentOption(Enum): + ( + LEFT = "Left" + RIGHT = "Right" + CENTER = "Center" + ) + + @property + def get_font(self): + """Font + "Specify font used for the label." + "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Font') + def set_font(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Font=' + value]) + + @property + def get_color(self): + """Color + "Specify color of the label text." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Color') + def set_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Color=' + value]) + + @property + def get_background_color(self): + """Background Color + "Set color of the label text background." + "Color should be in RGBA form: #AARRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Background Color') + def set_background_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Background Color=' + value]) + + @property + def get_border(self): + """Border + "Display a border around the label text." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border') + def set_border(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border=' + value]) + + @property + def get_border_width(self): + """Border Width + "Set the width of the border around the label text." + "Value should be between 1 and 20." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border Width') + def set_border_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border Width=' + value]) + + @property + def get_border_color(self): + """Border Color + "Set color of the border around the label text." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border Color') + def set_border_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border Color=' + value]) + + @property + def get_symbol(self): + """Symbol + "Specify symbol displayed next to the label." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + def set_symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + ( + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + ARROW = "Arrow" + ) + + @property + def get_arrow_direction(self): + """Arrow Direction + "Set direction of the arrow; zero degrees is up." + "Value should be between -360 and 360." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Arrow Direction') + def set_arrow_direction(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Arrow Direction=' + value]) + + @property + def get_symbol_size(self): + """Symbol Size + "Set size of the symbol used for this marker." + "Value should be between 1 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + def set_symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def get_symbol_color(self): + """Symbol Color + "Set color of the symbol used for this marker." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + def set_symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def get_line_width(self): + """Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + def set_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def get_filled(self): + """Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filled') + def set_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_EmitSceneNode.py new file mode 100644 index 00000000000..d7955ef9627 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_EmitSceneNode.py @@ -0,0 +1,42 @@ + +from ..GenericEmitNode import GenericEmitNode +from enum import Enum + +class Node_EmitSceneNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def notes(self): + """Notes + "Expand to view/edit notes stored with the project." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + @notes.setter + def set_notes(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def get_ground_plane_normal(self): + """Ground Plane Normal + "Specifies the axis of the normal to the ground plane." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Ground Plane Normal') + def set_ground_plane_normal(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Ground Plane Normal=' + value]) + class GroundPlaneNormalOption(Enum): + XAXIS = "X Axis" + YAXIS = "Y Axis" + ZAXIS = "Z Axis" + + @property + def get_gp_position_along_normal(self): + """GP Position Along Normal + "Offset of ground plane in direction normal to the ground planes orientation." + "Value should be between unbounded and unbounded." + """ + return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'GP Position Along Normal') + def set_gp_position_along_normal(self, value): + self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['GP Position Along Normal=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_ErcegCouplingNode.py new file mode 100644 index 00000000000..e8666e3a5b2 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_ErcegCouplingNode.py @@ -0,0 +1,217 @@ +class Node_ErcegCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_enabled(self): + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def get_enable_refinement(self): + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + def set_enable_refinement(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + + @property + def get_adaptive_sampling(self): + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + def set_adaptive_sampling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + + @property + def get_refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + def set_refinement_domain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + + @property + def get_terrain_category(self): + """Terrain Category + "Specify the terrain category type for the Erceg model." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Terrain Category') + def set_terrain_category(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Terrain Category=' + value]) + class TerrainCategoryOption(Enum): + ( + TYPEA = "Type A" + TYPEB = "Type B" + TYPEC = "Type C" + ) + + @property + def get_custom_fading_margin(self): + """Custom Fading Margin + "Sets a custom fading margin to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') + def set_custom_fading_margin(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + + @property + def get_polarization_mismatch(self): + """Polarization Mismatch + "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') + def set_polarization_mismatch(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + + @property + def get_pointing_error_loss(self): + """Pointing Error Loss + "Sets a margin for pointing error loss to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') + def set_pointing_error_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + + @property + def get_fading_type(self): + """Fading Type + "Specify the type of fading to include." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') + def set_fading_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) + class FadingTypeOption(Enum): + ( + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + ) + + @property + def get_fading_availability(self): + """Fading Availability + "The probability that the propagation loss in dB is below its median value plus the margin." + "Value should be between 0.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') + def set_fading_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + + @property + def get_std_deviation(self): + """Std Deviation + "Standard deviation modeling the random amount of shadowing loss." + "Value should be between 0.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') + def set_std_deviation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + + @property + def get_include_rain_attenuation(self): + """Include Rain Attenuation + "Adds a margin for rain attenuation to the computed coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') + def set_include_rain_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + + @property + def get_rain_availability(self): + """Rain Availability + "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." + "Value should be between 99 and 99.999." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') + def set_rain_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + + @property + def get_rain_rate(self): + """Rain Rate + "Rain rate (mm/hr) exceeded for 0.01% of the time." + "Value should be between 0.0 and 1000.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') + def set_rain_rate(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + + @property + def get_polarization_tilt_angle(self): + """Polarization Tilt Angle + "Polarization tilt angle of the transmitted signal relative to the horizontal." + "Value should be between 0.0 and 180.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') + def set_polarization_tilt_angle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + + @property + def get_include_atmospheric_absorption(self): + """Include Atmospheric Absorption + "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') + def set_include_atmospheric_absorption(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + + @property + def get_temperature(self): + """Temperature + "Air temperature in degrees Celsius." + "Value should be between -273.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') + def set_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) + + @property + def get_total_air_pressure(self): + """Total Air Pressure + "Total air pressure." + "Value should be between 0.0 and 2000.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') + def set_total_air_pressure(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + + @property + def get_water_vapor_concentration(self): + """Water Vapor Concentration + "Water vapor concentration." + "Value should be between 0.0 and 2000.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') + def set_water_vapor_concentration(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Filter.py new file mode 100644 index 00000000000..40f761454ee --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Filter.py @@ -0,0 +1,252 @@ +class Node_Filter(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_filename(self): + """Filename + "Name of file defining the outboard component." + "Value should be a full file path." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + def set_filename(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + + @property + def get_noise_temperature(self): + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + def set_noise_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + + @property + def get_notes(self): + """Notes + "Expand to view/edit notes stored with the project." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + def set_notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def get_type(self): + """Type + "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + def set_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) + class TypeOption(Enum): + ( + BYFILE = "By File" + LOWPASS = "Low Pass" + HIGHPASS = "High Pass" + BANDPASS = "Band Pass" + BANDSTOP = "Band Stop" + TUNABLEBANDPASS = "Tunable Bandpass" + TUNABLEBANDSTOP = "Tunable Bandstop" + ) + + @property + def get_insertion_loss(self): + """Insertion Loss + "Filter pass band loss." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') + def set_insertion_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + + @property + def get_stop_band_attenuation(self): + """Stop band Attenuation + "Filter stop band loss (attenuation)." + "Value should be between ::InsertionLoss and 200." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop band Attenuation') + def set_stop_band_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Stop band Attenuation=' + value]) + + @property + def get_max_pass_band(self): + """Max Pass Band + "Maximum pass band frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Pass Band') + def set_max_pass_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Pass Band=' + value]) + + @property + def get_min_stop_band(self): + """Min Stop Band + "Minimum stop band frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Stop Band') + def set_min_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Min Stop Band=' + value]) + + @property + def get_max_stop_band(self): + """Max Stop Band + "Maximum stop band frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Stop Band') + def set_max_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Stop Band=' + value]) + + @property + def get_min_pass_band(self): + """Min Pass Band + "Minimum pass band frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Pass Band') + def set_min_pass_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Min Pass Band=' + value]) + + @property + def get_lower_stop_band(self): + """Lower Stop Band + "Lower stop band frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') + def set_lower_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + + @property + def get_lower_cutoff(self): + """Lower Cutoff + "Lower cutoff frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') + def set_lower_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + + @property + def get_higher_cutoff(self): + """Higher Cutoff + "Higher cutoff frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') + def set_higher_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + + @property + def get_higher_stop_band(self): + """Higher Stop Band + "Higher stop band frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') + def set_higher_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + + @property + def get_lower_cutoff_(self): + """Lower Cutoff + "Lower cutoff frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff ') + def set_lower_cutoff_(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff =' + value]) + + @property + def get_lower_stop_band_(self): + """Lower Stop Band + "Lower stop band frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band ') + def set_lower_stop_band_(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band =' + value]) + + @property + def get_higher_stop_band_(self): + """Higher Stop Band + "Higher stop band frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band ') + def set_higher_stop_band_(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band =' + value]) + + @property + def get_higher_cutoff_(self): + """Higher Cutoff + "Higher cutoff frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff ') + def set_higher_cutoff_(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff =' + value]) + + @property + def get_lowest_tuned_frequency_(self): + """Lowest Tuned Frequency + "Lowest tuned frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lowest Tuned Frequency ') + def set_lowest_tuned_frequency_(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lowest Tuned Frequency =' + value]) + + @property + def get_highest_tuned_frequency_(self): + """Highest Tuned Frequency + "Highest tuned frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Highest Tuned Frequency ') + def set_highest_tuned_frequency_(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Highest Tuned Frequency =' + value]) + + @property + def get_percent_bandwidth(self): + """Percent Bandwidth + "Tunable filter 3-dB bandwidth." + "Value should be between 0.001 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Percent Bandwidth') + def set_percent_bandwidth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Percent Bandwidth=' + value]) + + @property + def get_shape_factor(self): + """Shape Factor + "Ratio defining the filter rolloff." + "Value should be between 1 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Shape Factor') + def set_shape_factor(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Shape Factor=' + value]) + + @property + def get_warnings(self): + """Warnings + "Warning(s) for this node." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_FiveGChannelModel.py new file mode 100644 index 00000000000..bb47f6f2e54 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_FiveGChannelModel.py @@ -0,0 +1,251 @@ +class Node_FiveGChannelModel(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_enabled(self): + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def get_enable_refinement(self): + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + def set_enable_refinement(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + + @property + def get_adaptive_sampling(self): + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + def set_adaptive_sampling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + + @property + def get_refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + def set_refinement_domain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + + @property + def get_environment(self): + """Environment + "Specify the environment for the 5G channel model." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Environment') + def set_environment(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Environment=' + value]) + class EnvironmentOption(Enum): + ( + URBANMICROCELL = "Urban Microcell" + URBANMACROCELL = "Urban Macrocell" + RURALMACROCELL = "Rural Macrocell" + ) + + @property + def get_los(self): + """LOS + "True if the operating environment is line-of-sight." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'LOS') + def set_los(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['LOS=' + value]) + + @property + def get_include_bpl(self): + """Include BPL + "Includes building penetration loss if true." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include BPL') + def set_include_bpl(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include BPL=' + value]) + + @property + def get_nyu_bpl_model(self): + """NYU BPL Model + "Specify the NYU Building Penetration Loss model." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'NYU BPL Model') + def set_nyu_bpl_model(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['NYU BPL Model=' + value]) + class NYUBPLModelOption(Enum): + ( + LOWLOSSMODEL = "Low-loss model" + HIGHLOSSMODEL = "High-loss model" + ) + + @property + def get_custom_fading_margin(self): + """Custom Fading Margin + "Sets a custom fading margin to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') + def set_custom_fading_margin(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + + @property + def get_polarization_mismatch(self): + """Polarization Mismatch + "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') + def set_polarization_mismatch(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + + @property + def get_pointing_error_loss(self): + """Pointing Error Loss + "Sets a margin for pointing error loss to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') + def set_pointing_error_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + + @property + def get_fading_type(self): + """Fading Type + "Specify the type of fading to include." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') + def set_fading_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) + class FadingTypeOption(Enum): + ( + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + ) + + @property + def get_fading_availability(self): + """Fading Availability + "The probability that the propagation loss in dB is below its median value plus the margin." + "Value should be between 0.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') + def set_fading_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + + @property + def get_std_deviation(self): + """Std Deviation + "Standard deviation modeling the random amount of shadowing loss." + "Value should be between 0.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') + def set_std_deviation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + + @property + def get_include_rain_attenuation(self): + """Include Rain Attenuation + "Adds a margin for rain attenuation to the computed coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') + def set_include_rain_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + + @property + def get_rain_availability(self): + """Rain Availability + "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." + "Value should be between 99 and 99.999." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') + def set_rain_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + + @property + def get_rain_rate(self): + """Rain Rate + "Rain rate (mm/hr) exceeded for 0.01% of the time." + "Value should be between 0.0 and 1000.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') + def set_rain_rate(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + + @property + def get_polarization_tilt_angle(self): + """Polarization Tilt Angle + "Polarization tilt angle of the transmitted signal relative to the horizontal." + "Value should be between 0.0 and 180.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') + def set_polarization_tilt_angle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + + @property + def get_include_atmospheric_absorption(self): + """Include Atmospheric Absorption + "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') + def set_include_atmospheric_absorption(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + + @property + def get_temperature(self): + """Temperature + "Air temperature in degrees Celsius." + "Value should be between -273.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') + def set_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) + + @property + def get_total_air_pressure(self): + """Total Air Pressure + "Total air pressure." + "Value should be between 0.0 and 2000.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') + def set_total_air_pressure(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + + @property + def get_water_vapor_concentration(self): + """Water Vapor Concentration + "Water vapor concentration." + "Value should be between 0.0 and 2000.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') + def set_water_vapor_concentration(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_HataCouplingNode.py new file mode 100644 index 00000000000..c210c51b1e8 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_HataCouplingNode.py @@ -0,0 +1,218 @@ +class Node_HataCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_enabled(self): + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def get_enable_refinement(self): + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + def set_enable_refinement(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + + @property + def get_adaptive_sampling(self): + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + def set_adaptive_sampling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + + @property + def get_refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + def set_refinement_domain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + + @property + def get_environment(self): + """Environment + "Specify the environment type for the Hata model." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Environment') + def set_environment(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Environment=' + value]) + class EnvironmentOption(Enum): + ( + LARGECITY = "Large City" + SMALLMEDCITY = "Small/Medium City" + SUBURBAN = "Suburban" + RURAL = "Rural" + ) + + @property + def get_custom_fading_margin(self): + """Custom Fading Margin + "Sets a custom fading margin to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') + def set_custom_fading_margin(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + + @property + def get_polarization_mismatch(self): + """Polarization Mismatch + "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') + def set_polarization_mismatch(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + + @property + def get_pointing_error_loss(self): + """Pointing Error Loss + "Sets a margin for pointing error loss to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') + def set_pointing_error_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + + @property + def get_fading_type(self): + """Fading Type + "Specify the type of fading to include." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') + def set_fading_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) + class FadingTypeOption(Enum): + ( + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + ) + + @property + def get_fading_availability(self): + """Fading Availability + "The probability that the propagation loss in dB is below its median value plus the margin." + "Value should be between 0.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') + def set_fading_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + + @property + def get_std_deviation(self): + """Std Deviation + "Standard deviation modeling the random amount of shadowing loss." + "Value should be between 0.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') + def set_std_deviation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + + @property + def get_include_rain_attenuation(self): + """Include Rain Attenuation + "Adds a margin for rain attenuation to the computed coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') + def set_include_rain_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + + @property + def get_rain_availability(self): + """Rain Availability + "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." + "Value should be between 99 and 99.999." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') + def set_rain_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + + @property + def get_rain_rate(self): + """Rain Rate + "Rain rate (mm/hr) exceeded for 0.01% of the time." + "Value should be between 0.0 and 1000.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') + def set_rain_rate(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + + @property + def get_polarization_tilt_angle(self): + """Polarization Tilt Angle + "Polarization tilt angle of the transmitted signal relative to the horizontal." + "Value should be between 0.0 and 180.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') + def set_polarization_tilt_angle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + + @property + def get_include_atmospheric_absorption(self): + """Include Atmospheric Absorption + "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') + def set_include_atmospheric_absorption(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + + @property + def get_temperature(self): + """Temperature + "Air temperature in degrees Celsius." + "Value should be between -273.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') + def set_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) + + @property + def get_total_air_pressure(self): + """Total Air Pressure + "Total air pressure." + "Value should be between 0.0 and 2000.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') + def set_total_air_pressure(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + + @property + def get_water_vapor_concentration(self): + """Water Vapor Concentration + "Water vapor concentration." + "Value should be between 0.0 and 2000.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') + def set_water_vapor_concentration(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_IndoorPropagationCouplingNode.py new file mode 100644 index 00000000000..829396b7260 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_IndoorPropagationCouplingNode.py @@ -0,0 +1,229 @@ +class Node_IndoorPropagationCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_enabled(self): + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def get_enable_refinement(self): + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + def set_enable_refinement(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + + @property + def get_adaptive_sampling(self): + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + def set_adaptive_sampling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + + @property + def get_refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + def set_refinement_domain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + + @property + def get_building_type(self): + """Building Type + "Specify the building type for the Indoor Propagation model." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Building Type') + def set_building_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Building Type=' + value]) + class BuildingTypeOption(Enum): + ( + RESIDENTIALAPARTMENT = "Residential Apartment" + RESIDENTIALHOUSE = "Residential House" + OFFICEBUILDING = "Office Building" + COMMERCIALBUILDING = "Commercial Building" + CUSTOMBUILDING = "Custom Building" + ) + + @property + def get_number_of_floors(self): + """Number of Floors + "The number of floors separating the antennas.." + "Value should be between 1 and 3." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Floors') + def set_number_of_floors(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Number of Floors=' + value]) + + @property + def get_custom_fading_margin(self): + """Custom Fading Margin + "Sets a custom fading margin to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') + def set_custom_fading_margin(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + + @property + def get_polarization_mismatch(self): + """Polarization Mismatch + "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') + def set_polarization_mismatch(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + + @property + def get_pointing_error_loss(self): + """Pointing Error Loss + "Sets a margin for pointing error loss to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') + def set_pointing_error_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + + @property + def get_fading_type(self): + """Fading Type + "Specify the type of fading to include." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') + def set_fading_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) + class FadingTypeOption(Enum): + ( + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + ) + + @property + def get_fading_availability(self): + """Fading Availability + "The probability that the propagation loss in dB is below its median value plus the margin." + "Value should be between 0.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') + def set_fading_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + + @property + def get_std_deviation(self): + """Std Deviation + "Standard deviation modeling the random amount of shadowing loss." + "Value should be between 0.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') + def set_std_deviation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + + @property + def get_include_rain_attenuation(self): + """Include Rain Attenuation + "Adds a margin for rain attenuation to the computed coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') + def set_include_rain_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + + @property + def get_rain_availability(self): + """Rain Availability + "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." + "Value should be between 99 and 99.999." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') + def set_rain_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + + @property + def get_rain_rate(self): + """Rain Rate + "Rain rate (mm/hr) exceeded for 0.01% of the time." + "Value should be between 0.0 and 1000.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') + def set_rain_rate(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + + @property + def get_polarization_tilt_angle(self): + """Polarization Tilt Angle + "Polarization tilt angle of the transmitted signal relative to the horizontal." + "Value should be between 0.0 and 180.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') + def set_polarization_tilt_angle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + + @property + def get_include_atmospheric_absorption(self): + """Include Atmospheric Absorption + "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') + def set_include_atmospheric_absorption(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + + @property + def get_temperature(self): + """Temperature + "Air temperature in degrees Celsius." + "Value should be between -273.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') + def set_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) + + @property + def get_total_air_pressure(self): + """Total Air Pressure + "Total air pressure." + "Value should be between 0.0 and 2000.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') + def set_total_air_pressure(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + + @property + def get_water_vapor_concentration(self): + """Water Vapor Concentration + "Water vapor concentration." + "Value should be between 0.0 and 2000.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') + def set_water_vapor_concentration(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_InteractionDiagramNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_InteractionDiagramNode.py new file mode 100644 index 00000000000..eedd0e540b8 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_InteractionDiagramNode.py @@ -0,0 +1,9 @@ +class Node_InteractionDiagramNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def delete(self): + """Delete this node""" + self._delete() + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Isolator.py new file mode 100644 index 00000000000..2d8c0167c34 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Isolator.py @@ -0,0 +1,171 @@ +class Node_Isolator(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_filename(self): + """Filename + "Name of file defining the outboard component." + "Value should be a full file path." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + def set_filename(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + + @property + def get_noise_temperature(self): + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + def set_noise_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + + @property + def get_notes(self): + """Notes + "Expand to view/edit notes stored with the project." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + def set_notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def get_type(self): + """Type + "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + def set_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) + class TypeOption(Enum): + ( + BYFILE = "By File" + PARAMETRIC = "Parametric" + ) + + @property + def get_port_1_location(self): + """Port 1 Location + "Defines the orientation of the isolator.." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port 1 Location') + def set_port_1_location(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Port 1 Location=' + value]) + class Port1LocationOption(Enum): + ( + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" + ) + + @property + def get_insertion_loss(self): + """Insertion Loss + "Isolator in-band loss in forward direction.." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') + def set_insertion_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + + @property + def get_finite_reverse_isolation(self): + """Finite Reverse Isolation + "Use a finite reverse isolation. If disabled, the isolator model is ideal (infinite reverse isolation).." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Reverse Isolation') + def set_finite_reverse_isolation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Reverse Isolation=' + value]) + + @property + def get_reverse_isolation(self): + """Reverse Isolation + "Isolator reverse isolation (i.e., loss in the reverse direction).." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reverse Isolation') + def set_reverse_isolation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) + + @property + def get_finite_bandwidth(self): + """Finite Bandwidth + "Use a finite bandwidth. If disabled, the isolator model is ideal (infinite bandwidth).." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Bandwidth') + def set_finite_bandwidth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) + + @property + def get_out_of_band_attenuation(self): + """Out-of-band Attenuation + "Out-of-band loss (attenuation)." + "Value should be between 0 and 200." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out-of-band Attenuation') + def set_out_of_band_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) + + @property + def get_lower_stop_band(self): + """Lower Stop Band + "Lower stop band frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') + def set_lower_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + + @property + def get_lower_cutoff(self): + """Lower Cutoff + "Lower cutoff frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') + def set_lower_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + + @property + def get_higher_cutoff(self): + """Higher Cutoff + "Higher cutoff frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') + def set_higher_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + + @property + def get_higher_stop_band(self): + """Higher Stop Band + "Higher stop band frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') + def set_higher_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + + @property + def get_warnings(self): + """Warnings + "Warning(s) for this node." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_LogDistanceCouplingNode.py new file mode 100644 index 00000000000..bd9f2fb8f5a --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_LogDistanceCouplingNode.py @@ -0,0 +1,231 @@ +class Node_LogDistanceCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_enabled(self): + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def get_enable_refinement(self): + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + def set_enable_refinement(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + + @property + def get_adaptive_sampling(self): + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + def set_adaptive_sampling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + + @property + def get_refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + def set_refinement_domain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + + @property + def get_environment(self): + """Environment + "Specify the environment type for the Log Distance model." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Environment') + def set_environment(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Environment=' + value]) + class EnvironmentOption(Enum): + ( + FREESPACE = "Free Space" + URBAN = "Urban" + SHADOWEDURBAN = "Shadowed Urban" + BUILDINGLINEOFSIGHT = "Building - Line of Sight" + BUILDINGOBSTRUCTED = "Building - Obstructed" + FACTORYOBSTRUCTED = "Factory - Obstructed" + CUSTOMEXPONENT = "Custom" + ) + + @property + def get_path_loss_exponent(self): + """Path Loss Exponent + "Path Loss Exponent." + "Value should be between 0.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Path Loss Exponent') + def set_path_loss_exponent(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Path Loss Exponent=' + value]) + + @property + def get_custom_fading_margin(self): + """Custom Fading Margin + "Sets a custom fading margin to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') + def set_custom_fading_margin(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + + @property + def get_polarization_mismatch(self): + """Polarization Mismatch + "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') + def set_polarization_mismatch(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + + @property + def get_pointing_error_loss(self): + """Pointing Error Loss + "Sets a margin for pointing error loss to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') + def set_pointing_error_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + + @property + def get_fading_type(self): + """Fading Type + "Specify the type of fading to include." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') + def set_fading_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) + class FadingTypeOption(Enum): + ( + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + ) + + @property + def get_fading_availability(self): + """Fading Availability + "The probability that the propagation loss in dB is below its median value plus the margin." + "Value should be between 0.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') + def set_fading_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + + @property + def get_std_deviation(self): + """Std Deviation + "Standard deviation modeling the random amount of shadowing loss." + "Value should be between 0.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') + def set_std_deviation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + + @property + def get_include_rain_attenuation(self): + """Include Rain Attenuation + "Adds a margin for rain attenuation to the computed coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') + def set_include_rain_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + + @property + def get_rain_availability(self): + """Rain Availability + "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." + "Value should be between 99 and 99.999." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') + def set_rain_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + + @property + def get_rain_rate(self): + """Rain Rate + "Rain rate (mm/hr) exceeded for 0.01% of the time." + "Value should be between 0.0 and 1000.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') + def set_rain_rate(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + + @property + def get_polarization_tilt_angle(self): + """Polarization Tilt Angle + "Polarization tilt angle of the transmitted signal relative to the horizontal." + "Value should be between 0.0 and 180.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') + def set_polarization_tilt_angle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + + @property + def get_include_atmospheric_absorption(self): + """Include Atmospheric Absorption + "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') + def set_include_atmospheric_absorption(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + + @property + def get_temperature(self): + """Temperature + "Air temperature in degrees Celsius." + "Value should be between -273.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') + def set_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) + + @property + def get_total_air_pressure(self): + """Total Air Pressure + "Total air pressure." + "Value should be between 0.0 and 2000.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') + def set_total_air_pressure(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + + @property + def get_water_vapor_concentration(self): + """Water Vapor Concentration + "Water vapor concentration." + "Value should be between 0.0 and 2000.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') + def set_water_vapor_concentration(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_MPlexBandTraceNode.py new file mode 100644 index 00000000000..acd9b9c3274 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_MPlexBandTraceNode.py @@ -0,0 +1,172 @@ +class Node_MPlexBandTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_power_direction(self): + """Power Direction + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Power Direction') + def set_power_direction(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Power Direction=' + value]) + class PowerDirectionOption(Enum): + ( + INCOMMONPORT|OUTCOMMONPORT = "Into Common Port|Out of Common Port" + ) + + @property + def get_data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + def set_data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def get_visible(self): + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + def set_visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def get_custom_legend(self): + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + def set_custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def get_name(self): + """Name + "Enter name of plot trace as it will appear in legend." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + def set_name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def get_style(self): + """Style + "Specify line style of plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + def set_style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + ( + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + ) + + @property + def get_line_width(self): + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + def set_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def get_line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + def set_line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def get_symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + def set_symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + ( + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + ) + + @property + def get_symbol_size(self): + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + def set_symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def get_symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + def set_symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def get_symbol_line_width(self): + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + def set_symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def get_symbol_filled(self): + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + def set_symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Multiplexer.py new file mode 100644 index 00000000000..2a368e7be96 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Multiplexer.py @@ -0,0 +1,91 @@ +class Node_Multiplexer(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_filename(self): + """Filename + "Name of file defining the multiplexer." + "Value should be a full file path." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + def set_filename(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + + @property + def get_noise_temperature(self): + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + def set_noise_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + + @property + def get_notes(self): + """Notes + "Expand to view/edit notes stored with the project." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + def set_notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def get_type(self): + """Type + "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + def set_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) + class TypeOption(Enum): + ( + PARAMETRIC = "By Pass Band" + BYFILE = "By File" + ) + + @property + def get_port_1_location(self): + """Port 1 Location + "Defines the orientation of the multiplexer.." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port 1 Location') + def set_port_1_location(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Port 1 Location=' + value]) + class Port1LocationOption(Enum): + ( + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" + ) + + @property + def get_flip_ports_vertically(self): + """Flip Ports Vertically + "Reverses the port order on the multi-port side of the multiplexer.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Flip Ports Vertically') + def set_flip_ports_vertically(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Flip Ports Vertically=' + value]) + + @property + def get_warnings(self): + """Warnings + "Warning(s) for this node." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_MultiplexerBand.py new file mode 100644 index 00000000000..ce4b9623c5b --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_MultiplexerBand.py @@ -0,0 +1,150 @@ +class Node_MultiplexerBand(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_type(self): + """Type + "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + def set_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) + class TypeOption(Enum): + ( + BYFILE = "By File" + LOWPASS = "Low Pass" + HIGHPASS = "High Pass" + BANDPASS = "Band Pass" + ) + + @property + def get_filename(self): + """Filename + "Name of file defining the multiplexer band." + "Value should be a full file path." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + def set_filename(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + + @property + def get_insertion_loss(self): + """Insertion Loss + "Multiplexer pass band insertion loss." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') + def set_insertion_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + + @property + def get_stop_band_attenuation(self): + """Stop band Attenuation + "Stop-band loss (attenuation)." + "Value should be between 0 and 200." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop band Attenuation') + def set_stop_band_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Stop band Attenuation=' + value]) + + @property + def get_max_pass_band(self): + """Max Pass Band + "Maximum pass band frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Pass Band') + def set_max_pass_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Pass Band=' + value]) + + @property + def get_min_stop_band(self): + """Min Stop Band + "Minimum stop band frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Stop Band') + def set_min_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Min Stop Band=' + value]) + + @property + def get_max_stop_band(self): + """Max Stop Band + "Maximum stop band frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Stop Band') + def set_max_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Stop Band=' + value]) + + @property + def get_min_pass_band(self): + """Min Pass Band + "Minimum pass band frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Pass Band') + def set_min_pass_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Min Pass Band=' + value]) + + @property + def get_lower_stop_band(self): + """Lower Stop Band + "Lower stop band frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') + def set_lower_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + + @property + def get_lower_cutoff(self): + """Lower Cutoff + "Lower cutoff frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') + def set_lower_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + + @property + def get_higher_cutoff(self): + """Higher Cutoff + "Higher cutoff frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') + def set_higher_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + + @property + def get_higher_stop_band(self): + """Higher Stop Band + "Higher stop band frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') + def set_higher_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + + @property + def get_warnings(self): + """Warnings + "Warning(s) for this node." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Node.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Node.py new file mode 100644 index 00000000000..fb5f1f29ca2 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Node.py @@ -0,0 +1,5 @@ +class Node_Node(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_OutboardTraceNode.py new file mode 100644 index 00000000000..4de3c1c1498 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_OutboardTraceNode.py @@ -0,0 +1,180 @@ +class Node_OutboardTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_input_port(self): + """Input Port + "Specifies input port for the plotted outboard component." + "Value should be greater than 1." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Input Port') + def set_input_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Input Port=' + value]) + + @property + def get_output_port(self): + """Output Port + "Specifies output port for the plotted outboard component." + "Value should be greater than 1." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Port') + def set_output_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Port=' + value]) + + @property + def get_data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + def set_data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def get_visible(self): + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + def set_visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def get_custom_legend(self): + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + def set_custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def get_name(self): + """Name + "Enter name of plot trace as it will appear in legend." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + def set_name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def get_style(self): + """Style + "Specify line style of plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + def set_style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + ( + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + ) + + @property + def get_line_width(self): + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + def set_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def get_line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + def set_line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def get_symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + def set_symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + ( + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + ) + + @property + def get_symbol_size(self): + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + def set_symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def get_symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + def set_symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def get_symbol_line_width(self): + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + def set_symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def get_symbol_filled(self): + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + def set_symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_ParametricCouplingTraceNode.py new file mode 100644 index 00000000000..969234fd548 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_ParametricCouplingTraceNode.py @@ -0,0 +1,160 @@ +class Node_ParametricCouplingTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + def set_data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def get_visible(self): + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + def set_visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def get_custom_legend(self): + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + def set_custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def get_name(self): + """Name + "Enter name of plot trace as it will appear in legend." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + def set_name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def get_style(self): + """Style + "Specify line style of plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + def set_style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + ( + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + ) + + @property + def get_line_width(self): + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + def set_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def get_line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + def set_line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def get_symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + def set_symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + ( + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + ) + + @property + def get_symbol_size(self): + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + def set_symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def get_symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + def set_symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def get_symbol_line_width(self): + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + def set_symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def get_symbol_filled(self): + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + def set_symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_PlotMarkerNode.py new file mode 100644 index 00000000000..96783850af5 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_PlotMarkerNode.py @@ -0,0 +1,277 @@ +class Node_PlotMarkerNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_visible(self): + """Visible + "Toggle (on/off) this marker." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + def set_visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def get_attached(self): + """Attached + "Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False)." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Attached') + def set_attached(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Attached=' + value]) + + @property + def get_position(self): + """Position + "Set position of the marker along the X-axis." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') + def set_position(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position=' + value]) + + @property + def get_position(self): + """Position + "Set position of the marker along the Y-axis." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') + def set_position(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position=' + value]) + + @property + def get_floating_label(self): + """Floating Label + "Allow marker label to be positioned at a fixed point on the plot window (the marker symbol remains fixed to the specified X-Y point)." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Floating Label') + def set_floating_label(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Floating Label=' + value]) + + @property + def get_position_from_left(self): + """Position from Left + "Set position of label from left to right as a percentage of the width of the plot window." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position from Left') + def set_position_from_left(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position from Left=' + value]) + + @property + def get_position_from_top(self): + """Position from Top + "Set position of label from top to bottom as a percentage of the height of the plot window." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position from Top') + def set_position_from_top(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position from Top=' + value]) + + @property + def get_text(self): + """Text + "Set the text of the label." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Text') + def set_text(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Text=' + value]) + + @property + def get_horizontal_position(self): + """Horizontal Position + "Specify horizontal position of the label as compared to the symbol." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Horizontal Position') + def set_horizontal_position(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Horizontal Position=' + value]) + class HorizontalPositionOption(Enum): + ( + LEFT = "Left" + RIGHT = "Right" + CENTER = "Center" + ) + + @property + def get_vertical_position(self): + """Vertical Position + "Specify vertical position of the label as compared to the symbol." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Vertical Position') + def set_vertical_position(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Vertical Position=' + value]) + class VerticalPositionOption(Enum): + ( + TOP = "Top" + BOTTOM = "Bottom" + CENTER = "Center" + ) + + @property + def get_text_alignment(self): + """Text Alignment + "Specify justification applied to multi-line text." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Text Alignment') + def set_text_alignment(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Text Alignment=' + value]) + class TextAlignmentOption(Enum): + ( + LEFT = "Left" + RIGHT = "Right" + CENTER = "Center" + ) + + @property + def get_font(self): + """Font + "Specify font used for the label." + "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Font') + def set_font(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Font=' + value]) + + @property + def get_color(self): + """Color + "Specify color of the label text." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Color') + def set_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Color=' + value]) + + @property + def get_background_color(self): + """Background Color + "Set color of the label text background." + "Color should be in RGBA form: #AARRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Background Color') + def set_background_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Background Color=' + value]) + + @property + def get_border(self): + """Border + "Display a border around the label text." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border') + def set_border(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border=' + value]) + + @property + def get_border_width(self): + """Border Width + "Set the width of the border around the label text." + "Value should be between 1 and 20." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border Width') + def set_border_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border Width=' + value]) + + @property + def get_border_color(self): + """Border Color + "Set color of the border around the label text." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border Color') + def set_border_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border Color=' + value]) + + @property + def get_symbol(self): + """Symbol + "Specify symbol displayed next to the label." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + def set_symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + ( + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + ARROW = "Arrow" + ) + + @property + def get_arrow_direction(self): + """Arrow Direction + "Set direction of the arrow; zero degrees is up." + "Value should be between -360 and 360." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Arrow Direction') + def set_arrow_direction(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Arrow Direction=' + value]) + + @property + def get_symbol_size(self): + """Symbol Size + "Set size of the symbol used for this marker." + "Value should be between 1 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + def set_symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def get_symbol_color(self): + """Symbol Color + "Set color of the symbol used for this marker." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + def set_symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def get_line_width(self): + """Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + def set_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def get_filled(self): + """Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filled') + def set_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_PlotNode.py new file mode 100644 index 00000000000..ef7e2d731a0 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_PlotNode.py @@ -0,0 +1,317 @@ +class Node_PlotNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_title(self): + """Title + "Enter title at the top of the plot, room will be made for it." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Title') + def set_title(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Title=' + value]) + + @property + def get_title_font(self): + """Title Font + "Configure title font family, typeface, and size." + "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Title Font') + def set_title_font(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Title Font=' + value]) + + @property + def get_show_legend(self): + """Show Legend + "Toggle (on/off) display of plot legend." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Legend') + def set_show_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Legend=' + value]) + + @property + def get_legend_font(self): + """Legend Font + "Configure legend font family, typeface, and size." + "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Legend Font') + def set_legend_font(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Legend Font=' + value]) + + @property + def get_display_cad_overlay(self): + """Display CAD Overlay + "Toggle on/off overlay of CAD model in plot." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Display CAD Overlay') + def set_display_cad_overlay(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Display CAD Overlay=' + value]) + + @property + def get_opacity(self): + """Opacity + "Adjust opacity of CAD model overlay: 0 Transparent - 1 Opaque." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Opacity') + def set_opacity(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Opacity=' + value]) + + @property + def get_vertical_offset(self): + """Vertical Offset + "Adjust vertical position of CAD model overlay." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Vertical Offset') + def set_vertical_offset(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Vertical Offset=' + value]) + + @property + def get_range_axis_rotation(self): + """Range Axis Rotation + "Adjust view angle for CAD model overlay by rotating it about plot horizontal axis." + "Value should be between -180 and 180." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Range Axis Rotation') + def set_range_axis_rotation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Range Axis Rotation=' + value]) + + @property + def get_lock_axes(self): + """Lock Axes + "Allow or prevent changing of axes when displayed plot traces are updated." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lock Axes') + def set_lock_axes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lock Axes=' + value]) + + @property + def get_x_axis_min(self): + """X-axis Min + "Set lower extent of horizontal axis." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X-axis Min') + def set_x_axis_min(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['X-axis Min=' + value]) + + @property + def get_x_axis_max(self): + """X-axis Max + "Set upper extent of horizontal axis." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X-axis Max') + def set_x_axis_max(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['X-axis Max=' + value]) + + @property + def get_y_axis_min(self): + """Y-axis Min + "Set lower extent of vertical axis." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y-axis Min') + def set_y_axis_min(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y-axis Min=' + value]) + + @property + def get_y_axis_max(self): + """Y-axis Max + "Set upper extent of vertical axis." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y-axis Max') + def set_y_axis_max(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y-axis Max=' + value]) + + @property + def get_y_axis_range(self): + """Y-axis Range + "Adjust dB span of vertical axis, makes corresponding adjustment in Y-axis Min." + "Value should be greater than 0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y-axis Range') + def set_y_axis_range(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y-axis Range=' + value]) + + @property + def get_max_major_ticks(self): + """Max Major Ticks + "Set maximum number of major tick-mark intervals along horizontal axis." + "Value should be between 1 and 30." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Major Ticks') + def set_max_major_ticks(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) + + @property + def get_max_minor_ticks(self): + """Max Minor Ticks + "Set maximum number of minor tick-mark intervals between major ticks along horizontal axis." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Minor Ticks') + def set_max_minor_ticks(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) + + @property + def get_max_major_ticks(self): + """Max Major Ticks + "Set maximum number of major tick-mark intervals along vertical axis." + "Value should be between 1 and 30." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Major Ticks') + def set_max_major_ticks(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) + + @property + def get_max_minor_ticks(self): + """Max Minor Ticks + "Set maximum number of minor tick-mark intervals between major ticks along vertical axis." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Minor Ticks') + def set_max_minor_ticks(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) + + @property + def get_axis_label_font(self): + """Axis Label Font + "Configure axis text labels font family, typeface, and size." + "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Axis Label Font') + def set_axis_label_font(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Axis Label Font=' + value]) + + @property + def get_axis_tick_label_font(self): + """Axis Tick Label Font + "Configure axis tick numeric labels font family, typeface, and size." + "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Axis Tick Label Font') + def set_axis_tick_label_font(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Axis Tick Label Font=' + value]) + + @property + def get_major_grid_line_style(self): + """Major Grid Line Style + "Select line style of major-tick grid lines." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Major Grid Line Style') + def set_major_grid_line_style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Major Grid Line Style=' + value]) + class MajorGridLineStyleOption(Enum): + ( + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + ) + + @property + def get_major_grid_color(self): + """Major Grid Color + "Set color of major-tick grid lines." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Major Grid Color') + def set_major_grid_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Major Grid Color=' + value]) + + @property + def get_minor_grid_line_style(self): + """Minor Grid Line Style + "Select line style of minor-tick grid lines." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minor Grid Line Style') + def set_minor_grid_line_style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Minor Grid Line Style=' + value]) + class MinorGridLineStyleOption(Enum): + ( + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + ) + + @property + def get_minor_grid_color(self): + """Minor Grid Color + "Set color of minor-tick grid lines." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minor Grid Color') + def set_minor_grid_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Minor Grid Color=' + value]) + + @property + def get_background_color(self): + """Background Color + "Set background color of entire plot." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Background Color') + def set_background_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Background Color=' + value]) + + @property + def get_bb_power_for_plots_unit(self): + """BB Power for Plots Unit + "Units to use for plotting broadband power densities." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BB Power for Plots Unit') + def set_bb_power_for_plots_unit(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['BB Power for Plots Unit=' + value]) + class BBPowerforPlotsUnitOption(Enum): + ( + HERTZ = "hertz" + KILOHERTZ = "kilohertz" + MEGAHERTZ = "megahertz" + GIGAHERTZ = "gigahertz" + ) + + @property + def get_bb_power_bandwidth(self): + """BB Power Bandwidth + "Resolution bandwidth for broadband power." + "Value should be between 1.0 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BB Power Bandwidth') + def set_bb_power_bandwidth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['BB Power Bandwidth=' + value]) + + @property + def get_log_scale(self): + """Log Scale + "Toggles on/off using a log scale for the X-Axis." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Log Scale') + def set_log_scale(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Log Scale=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_PowerDivider.py new file mode 100644 index 00000000000..a1e17f75a6b --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_PowerDivider.py @@ -0,0 +1,172 @@ +class Node_PowerDivider(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_filename(self): + """Filename + "Name of file defining the Power Divider." + "Value should be a full file path." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + def set_filename(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + + @property + def get_noise_temperature(self): + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + def set_noise_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + + @property + def get_notes(self): + """Notes + "Expand to view/edit notes stored with the project." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + def set_notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def get_type(self): + """Type + "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + def set_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) + class TypeOption(Enum): + ( + BYFILE = "By File" + _3DB = "3 dB" + RESISTIVE = "Resistive" + ) + + @property + def get_orientation(self): + """Orientation + "Defines the orientation of the Power Divider.." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation') + def set_orientation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Orientation=' + value]) + class OrientationOption(Enum): + ( + RADIOSIDE = "Divider" + ANTENNASIDE = "Combiner" + ) + + @property + def get_insertion_loss_above_ideal(self): + """Insertion Loss Above Ideal + "Additional loss beyond the ideal insertion loss. The ideal insertion loss is 3 dB for the 3 dB Divider and 6 dB for the Resistive Divider.." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss Above Ideal') + def set_insertion_loss_above_ideal(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Insertion Loss Above Ideal=' + value]) + + @property + def get_finite_isolation(self): + """Finite Isolation + "Use a finite isolation between output ports. If disabled, the Power Divider isolation is ideal (infinite isolation between output ports).." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Isolation') + def set_finite_isolation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Isolation=' + value]) + + @property + def get_isolation(self): + """Isolation + "Power Divider isolation between output ports.." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Isolation') + def set_isolation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Isolation=' + value]) + + @property + def get_finite_bandwidth(self): + """Finite Bandwidth + "Use a finite bandwidth. If disabled, the Power Divider model is ideal (infinite bandwidth).." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Bandwidth') + def set_finite_bandwidth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) + + @property + def get_out_of_band_attenuation(self): + """Out-of-band Attenuation + "Out-of-band loss (attenuation)." + "Value should be between 0 and 200." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out-of-band Attenuation') + def set_out_of_band_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) + + @property + def get_lower_stop_band(self): + """Lower Stop Band + "Lower stop band frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') + def set_lower_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + + @property + def get_lower_cutoff(self): + """Lower Cutoff + "Lower cutoff frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') + def set_lower_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + + @property + def get_higher_cutoff(self): + """Higher Cutoff + "Higher cutoff frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') + def set_higher_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + + @property + def get_higher_stop_band(self): + """Higher Stop Band + "Higher stop band frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') + def set_higher_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + + @property + def get_warnings(self): + """Warnings + "Warning(s) for this node." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_PowerTraceNode.py new file mode 100644 index 00000000000..c9c81da33fe --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_PowerTraceNode.py @@ -0,0 +1,174 @@ +class Node_PowerTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_direction(self): + """Direction + "Direction of power flow (towards or away from the transmitter) to plot." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Direction') + def set_direction(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Direction=' + value]) + class DirectionOption(Enum): + ( + AWAY = "Away From Tx" + TOWARD = "Toward Tx" + ) + + @property + def get_data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + def set_data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def get_visible(self): + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + def set_visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def get_custom_legend(self): + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + def set_custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def get_name(self): + """Name + "Enter name of plot trace as it will appear in legend." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + def set_name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def get_style(self): + """Style + "Specify line style of plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + def set_style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + ( + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + ) + + @property + def get_line_width(self): + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + def set_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def get_line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + def set_line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def get_symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + def set_symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + ( + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + ) + + @property + def get_symbol_size(self): + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + def set_symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def get_symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + def set_symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def get_symbol_line_width(self): + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + def set_symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def get_symbol_filled(self): + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + def set_symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_ProfileTraceNode.py new file mode 100644 index 00000000000..6d873af7244 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_ProfileTraceNode.py @@ -0,0 +1,160 @@ +class Node_ProfileTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + def set_data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def get_visible(self): + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + def set_visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def get_custom_legend(self): + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + def set_custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def get_name(self): + """Name + "Enter name of plot trace as it will appear in legend." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + def set_name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def get_style(self): + """Style + "Specify line style of plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + def set_style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + ( + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + ) + + @property + def get_line_width(self): + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + def set_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def get_line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + def set_line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def get_symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + def set_symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + ( + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + ) + + @property + def get_symbol_size(self): + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + def set_symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def get_symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + def set_symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def get_symbol_line_width(self): + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + def set_symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def get_symbol_filled(self): + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + def set_symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_PropagationLossCouplingNode.py new file mode 100644 index 00000000000..64f0dad469d --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_PropagationLossCouplingNode.py @@ -0,0 +1,202 @@ +class Node_PropagationLossCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_enabled(self): + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def get_enable_refinement(self): + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + def set_enable_refinement(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + + @property + def get_adaptive_sampling(self): + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + def set_adaptive_sampling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + + @property + def get_refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + def set_refinement_domain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + + @property + def get_custom_fading_margin(self): + """Custom Fading Margin + "Sets a custom fading margin to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') + def set_custom_fading_margin(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + + @property + def get_polarization_mismatch(self): + """Polarization Mismatch + "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') + def set_polarization_mismatch(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + + @property + def get_pointing_error_loss(self): + """Pointing Error Loss + "Sets a margin for pointing error loss to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') + def set_pointing_error_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + + @property + def get_fading_type(self): + """Fading Type + "Specify the type of fading to include." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') + def set_fading_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) + class FadingTypeOption(Enum): + ( + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + ) + + @property + def get_fading_availability(self): + """Fading Availability + "The probability that the propagation loss in dB is below its median value plus the margin." + "Value should be between 0.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') + def set_fading_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + + @property + def get_std_deviation(self): + """Std Deviation + "Standard deviation modeling the random amount of shadowing loss." + "Value should be between 0.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') + def set_std_deviation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + + @property + def get_include_rain_attenuation(self): + """Include Rain Attenuation + "Adds a margin for rain attenuation to the computed coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') + def set_include_rain_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + + @property + def get_rain_availability(self): + """Rain Availability + "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." + "Value should be between 99 and 99.999." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') + def set_rain_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + + @property + def get_rain_rate(self): + """Rain Rate + "Rain rate (mm/hr) exceeded for 0.01% of the time." + "Value should be between 0.0 and 1000.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') + def set_rain_rate(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + + @property + def get_polarization_tilt_angle(self): + """Polarization Tilt Angle + "Polarization tilt angle of the transmitted signal relative to the horizontal." + "Value should be between 0.0 and 180.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') + def set_polarization_tilt_angle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + + @property + def get_include_atmospheric_absorption(self): + """Include Atmospheric Absorption + "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') + def set_include_atmospheric_absorption(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + + @property + def get_temperature(self): + """Temperature + "Air temperature in degrees Celsius." + "Value should be between -273.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') + def set_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) + + @property + def get_total_air_pressure(self): + """Total Air Pressure + "Total air pressure." + "Value should be between 0.0 and 2000.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') + def set_total_air_pressure(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + + @property + def get_water_vapor_concentration(self): + """Water Vapor Concentration + "Water vapor concentration." + "Value should be between 0.0 and 2000.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') + def set_water_vapor_concentration(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RFSystemNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RFSystemNode.py new file mode 100644 index 00000000000..45a141f29b8 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RFSystemNode.py @@ -0,0 +1,26 @@ +class Node_RFSystemNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_notes(self): + """Notes + "Expand to view/edit notes stored with the project." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + def set_notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RadioGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RadioGroup.py new file mode 100644 index 00000000000..259ad68820c --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RadioGroup.py @@ -0,0 +1,5 @@ +class Node_RadioGroup(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RadioNode.py new file mode 100644 index 00000000000..5342f4ebea0 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RadioNode.py @@ -0,0 +1,26 @@ +class Node_RadioNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_notes(self): + """Notes + "Expand to view/edit notes stored with the project." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + def set_notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_ResultPlotNode.py new file mode 100644 index 00000000000..f9815ef1f07 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_ResultPlotNode.py @@ -0,0 +1,315 @@ +class Node_ResultPlotNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + @property + def get_title(self): + """Title + "Enter title at the top of the plot, room will be made for it." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Title') + def set_title(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Title=' + value]) + + @property + def get_title_font(self): + """Title Font + "Configure title font family, typeface, and size." + "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Title Font') + def set_title_font(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Title Font=' + value]) + + @property + def get_show_legend(self): + """Show Legend + "Toggle (on/off) display of plot legend." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Legend') + def set_show_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Legend=' + value]) + + @property + def get_legend_font(self): + """Legend Font + "Configure legend font family, typeface, and size." + "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Legend Font') + def set_legend_font(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Legend Font=' + value]) + + @property + def get_show_emi_thresholds(self): + """Show EMI Thresholds + "Toggles on/off visibility of the EMI Thresholds." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show EMI Thresholds') + def set_show_emi_thresholds(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show EMI Thresholds=' + value]) + + @property + def get_display_cad_overlay(self): + """Display CAD Overlay + "Toggle on/off overlay of CAD model in plot." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Display CAD Overlay') + def set_display_cad_overlay(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Display CAD Overlay=' + value]) + + @property + def get_opacity(self): + """Opacity + "Adjust opacity of CAD model overlay: 0 Transparent - 1 Opaque." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Opacity') + def set_opacity(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Opacity=' + value]) + + @property + def get_vertical_offset(self): + """Vertical Offset + "Adjust vertical position of CAD model overlay." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Vertical Offset') + def set_vertical_offset(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Vertical Offset=' + value]) + + @property + def get_range_axis_rotation(self): + """Range Axis Rotation + "Adjust view angle for CAD model overlay by rotating it about plot horizontal axis." + "Value should be between -180 and 180." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Range Axis Rotation') + def set_range_axis_rotation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Range Axis Rotation=' + value]) + + @property + def get_lock_axes(self): + """Lock Axes + "Allow or prevent changing of axes when displayed plot traces are updated." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lock Axes') + def set_lock_axes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lock Axes=' + value]) + + @property + def get_x_axis_min(self): + """X-axis Min + "Set lower extent of horizontal axis." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X-axis Min') + def set_x_axis_min(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['X-axis Min=' + value]) + + @property + def get_x_axis_max(self): + """X-axis Max + "Set upper extent of horizontal axis." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X-axis Max') + def set_x_axis_max(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['X-axis Max=' + value]) + + @property + def get_y_axis_min(self): + """Y-axis Min + "Set lower extent of vertical axis." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y-axis Min') + def set_y_axis_min(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y-axis Min=' + value]) + + @property + def get_y_axis_max(self): + """Y-axis Max + "Set upper extent of vertical axis." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y-axis Max') + def set_y_axis_max(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y-axis Max=' + value]) + + @property + def get_y_axis_range(self): + """Y-axis Range + "Adjust dB span of vertical axis, makes corresponding adjustment in Y-axis Min." + "Value should be greater than 0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y-axis Range') + def set_y_axis_range(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y-axis Range=' + value]) + + @property + def get_max_major_ticks(self): + """Max Major Ticks + "Set maximum number of major tick-mark intervals along horizontal axis." + "Value should be between 1 and 30." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Major Ticks') + def set_max_major_ticks(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) + + @property + def get_max_minor_ticks(self): + """Max Minor Ticks + "Set maximum number of minor tick-mark intervals between major ticks along horizontal axis." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Minor Ticks') + def set_max_minor_ticks(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) + + @property + def get_max_major_ticks(self): + """Max Major Ticks + "Set maximum number of major tick-mark intervals along vertical axis." + "Value should be between 1 and 30." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Major Ticks') + def set_max_major_ticks(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) + + @property + def get_max_minor_ticks(self): + """Max Minor Ticks + "Set maximum number of minor tick-mark intervals between major ticks along vertical axis." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Minor Ticks') + def set_max_minor_ticks(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) + + @property + def get_axis_label_font(self): + """Axis Label Font + "Configure axis text labels font family, typeface, and size." + "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Axis Label Font') + def set_axis_label_font(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Axis Label Font=' + value]) + + @property + def get_axis_tick_label_font(self): + """Axis Tick Label Font + "Configure axis tick numeric labels font family, typeface, and size." + "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Axis Tick Label Font') + def set_axis_tick_label_font(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Axis Tick Label Font=' + value]) + + @property + def get_major_grid_line_style(self): + """Major Grid Line Style + "Select line style of major-tick grid lines." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Major Grid Line Style') + def set_major_grid_line_style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Major Grid Line Style=' + value]) + class MajorGridLineStyleOption(Enum): + ( + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + ) + + @property + def get_major_grid_color(self): + """Major Grid Color + "Set color of major-tick grid lines." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Major Grid Color') + def set_major_grid_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Major Grid Color=' + value]) + + @property + def get_minor_grid_line_style(self): + """Minor Grid Line Style + "Select line style of minor-tick grid lines." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minor Grid Line Style') + def set_minor_grid_line_style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Minor Grid Line Style=' + value]) + class MinorGridLineStyleOption(Enum): + ( + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + ) + + @property + def get_minor_grid_color(self): + """Minor Grid Color + "Set color of minor-tick grid lines." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minor Grid Color') + def set_minor_grid_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Minor Grid Color=' + value]) + + @property + def get_background_color(self): + """Background Color + "Set background color of entire plot." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Background Color') + def set_background_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Background Color=' + value]) + + @property + def get_bb_power_for_plots_unit(self): + """BB Power for Plots Unit + "Units to use for plotting broadband power densities." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BB Power for Plots Unit') + def set_bb_power_for_plots_unit(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['BB Power for Plots Unit=' + value]) + class BBPowerforPlotsUnitOption(Enum): + ( + HERTZ = "hertz" + KILOHERTZ = "kilohertz" + MEGAHERTZ = "megahertz" + GIGAHERTZ = "gigahertz" + ) + + @property + def get_bb_power_bandwidth(self): + """BB Power Bandwidth + "Resolution bandwidth for broadband power." + "Value should be between 1.0 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BB Power Bandwidth') + def set_bb_power_bandwidth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['BB Power Bandwidth=' + value]) + + @property + def get_log_scale(self): + """Log Scale + "Toggles on/off using a log scale for the X-Axis." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Log Scale') + def set_log_scale(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Log Scale=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RfSystemGroup.py new file mode 100644 index 00000000000..9ec7491954b --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RfSystemGroup.py @@ -0,0 +1,25 @@ +class Node_RfSystemGroup(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def get_enable_passive_noise(self): + """Enable Passive Noise + "If true, the noise contributions of antennas and passive components are included in cosite simulation. Note: Antenna and passive component noise is always included in link analysis simulation.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Passive Noise') + def set_enable_passive_noise(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Passive Noise=' + value]) + + @property + def get_enforce_thermal_noise_floor(self): + """Enforce Thermal Noise Floor + "If true, all broadband noise is limited by the thermal noise floor (-174 dBm/Hz)." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enforce Thermal Noise Floor') + def set_enforce_thermal_noise_floor(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enforce Thermal Noise Floor=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxMeasNode.py new file mode 100644 index 00000000000..8c2f96e2c82 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxMeasNode.py @@ -0,0 +1,238 @@ +class Node_RxMeasNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_file(self): + """File + "Name of the measurement source." + "Value should be a full file path." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'File') + + @property + def get_source_file(self): + """Source File + "Name of the measurement source." + "Value should be a full file path." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Source File') + + @property + def get_receive_frequency(self): + """Receive Frequency + "Channel associated with the measurement file." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Receive Frequency') + + @property + def get_measurement_mode(self): + """Measurement Mode + "Defines the mode for the receiver measurement." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measurement Mode') + def set_measurement_mode(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Measurement Mode=' + value]) + class MeasurementModeOption(Enum): + ( + AUDIO_SINAD = "Audio SINAD" + DIGITAL_BER = "Digital BER" + GPS_CNR = "GPS CNR" + ) + + @property + def get_sinad_threshold(self): + """SINAD Threshold + "SINAD Threshold used for the receiver measurements." + "Value should be between 5 and 20." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'SINAD Threshold') + def set_sinad_threshold(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['SINAD Threshold=' + value]) + + @property + def get_gps_cnr_threshold(self): + """GPS CNR Threshold + "GPS CNR Threshold used for the receiver measurements." + "Value should be between 15 and 30." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'GPS CNR Threshold') + def set_gps_cnr_threshold(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['GPS CNR Threshold=' + value]) + + @property + def get_ber_threshold(self): + """BER Threshold + "BER Threshold used for the receiver measurements." + "Value should be between -12 and -1." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BER Threshold') + def set_ber_threshold(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['BER Threshold=' + value]) + + @property + def get_default_intended_power(self): + """Default Intended Power + "Specify the intended signal." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Default Intended Power') + def set_default_intended_power(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Default Intended Power=' + value]) + + @property + def get_intended_signal_power(self): + """Intended Signal Power + "Specify the power level of the intended signal." + "Value should be between -140 and -50." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Intended Signal Power') + def set_intended_signal_power(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Intended Signal Power=' + value]) + + @property + def get_freq_deviation(self): + """Freq. Deviation + "Specify the frequency deviation of the intended signal." + "Value should be between 1000 and 200000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Freq. Deviation') + def set_freq_deviation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Freq. Deviation=' + value]) + + @property + def get_modulation_depth(self): + """Modulation Depth + "Specify the modulation depth of the intended signal." + "Value should be between 10 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Modulation Depth') + def set_modulation_depth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Modulation Depth=' + value]) + + @property + def get_measure_selectivity(self): + """Measure Selectivity + "Enable/disable the measurement of the receiver's selectivity." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measure Selectivity') + def set_measure_selectivity(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Measure Selectivity=' + value]) + + @property + def get_measure_mixer_products(self): + """Measure Mixer Products + "Enable/disable the measurement of the receiver's mixer products." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measure Mixer Products') + def set_measure_mixer_products(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Measure Mixer Products=' + value]) + + @property + def get_max_rf_order(self): + """Max RF Order + "Max RF Order of the mixer products to measure." + "Value should be between 1 and unbounded." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max RF Order') + def set_max_rf_order(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max RF Order=' + value]) + + @property + def get_max_lo_order(self): + """Max LO Order + "Max LO Order of the mixer products to measure." + "Value should be between 1 and unbounded." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max LO Order') + def set_max_lo_order(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max LO Order=' + value]) + + @property + def get_include_if(self): + """Include IF + "Enable/disable the measurement of the IF channel." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include IF') + def set_include_if(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include IF=' + value]) + + @property + def get_measure_saturation(self): + """Measure Saturation + "Enable/disable measurement of the receiver's saturation level." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measure Saturation') + def set_measure_saturation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Measure Saturation=' + value]) + + @property + def get_use_ams_limits(self): + """Use AMS Limits + "Allow AMS to determine the limits for measuring saturation." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use AMS Limits') + def set_use_ams_limits(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use AMS Limits=' + value]) + + @property + def get_start_frequency(self): + """Start Frequency + "Starting frequency for the measurement sweep." + "Value should be greater than 1e6." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Start Frequency') + def set_start_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Start Frequency=' + value]) + + @property + def get_stop_frequency(self): + """Stop Frequency + "Stopping frequency for the measurement sweep." + "Value should be less than 6e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop Frequency') + def set_stop_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Stop Frequency=' + value]) + + @property + def get_samples(self): + """Samples + "Number of measurement samples for each frequency." + "Value should be between 2 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Samples') + def set_samples(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Samples=' + value]) + + @property + def get_exclude_mixer_products_below_noise(self): + """Exclude Mixer Products Below Noise + "Include/Exclude Mixer Products below the noise." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Exclude Mixer Products Below Noise') + def set_exclude_mixer_products_below_noise(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Exclude Mixer Products Below Noise=' + value]) + + @property + def get_enabled(self): + """Enabled state for this node.""" + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxMixerProductNode.py new file mode 100644 index 00000000000..8498c09422f --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxMixerProductNode.py @@ -0,0 +1,197 @@ +class Node_RxMixerProductNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def import_csv_file(self, file_name): + """Import a CSV File...""" + return self._import(file_name,'Csv') + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_enabled(self): + """Enabled state for this node.""" + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + + @property + def get_mixer_product_taper(self): + """Mixer Product Taper + "Taper for setting amplitude of mixer products." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Taper') + def set_mixer_product_taper(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mixer Product Taper=' + value]) + class MixerProductTaperOption(Enum): + ( + CONSTANT = "Constant" + MIL_STD_461G = "MIL-STD-461G" + DUFF_MODEL = "Duff Model" + ) + + @property + def get_mixer_product_susceptibility(self): + """Mixer Product Susceptibility + "Mixer product amplitudes (relative to the in-band susceptibility)." + "Value should be between -200 and 200." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Susceptibility') + def set_mixer_product_susceptibility(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mixer Product Susceptibility=' + value]) + + @property + def get_spurious_rejection(self): + """Spurious Rejection + "Mixer product amplitudes (relative to the in-band susceptibility)." + "Value should be between -200 and 200." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spurious Rejection') + def set_spurious_rejection(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Spurious Rejection=' + value]) + + @property + def get_minimum_tuning_frequency(self): + """Minimum Tuning Frequency + "Minimum tuning frequency of Rx's local oscillator." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minimum Tuning Frequency') + def set_minimum_tuning_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Minimum Tuning Frequency=' + value]) + + @property + def get_maximum_tuning_frequency(self): + """Maximum Tuning Frequency + "Maximum tuning frequency of Rx's local oscillator." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Maximum Tuning Frequency') + def set_maximum_tuning_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Maximum Tuning Frequency=' + value]) + + @property + def get_mixer_product_slope(self): + """Mixer Product Slope + "Rate of decrease for amplitude of Rx's local oscillator harmonics (dB/decade)." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Slope') + def set_mixer_product_slope(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mixer Product Slope=' + value]) + + @property + def get_mixer_product_intercept(self): + """Mixer Product Intercept + "Mixer product intercept (dBc)." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Intercept') + def set_mixer_product_intercept(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mixer Product Intercept=' + value]) + + @property + def get__80_db_bandwidth(self): + """80 dB Bandwidth + "Bandwidth where Rx's susceptibility envelope is 80 dB above in-band susceptibility level." + "Value should be between 1 and unbounded." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'80 dB Bandwidth') + def set__80_db_bandwidth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['80 dB Bandwidth=' + value]) + + @property + def get_image_rejection(self): + """Image Rejection + "Image frequency amplitude (relative to the in-band susceptibility)." + "Value should be between -200 and 200." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Image Rejection') + def set_image_rejection(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Image Rejection=' + value]) + + @property + def get_maximum_rf_harmonic_order(self): + """Maximum RF Harmonic Order + "Maximum order of RF frequency." + "Value should be between 1 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Maximum RF Harmonic Order') + def set_maximum_rf_harmonic_order(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Maximum RF Harmonic Order=' + value]) + + @property + def get_maximum_lo_harmonic_order(self): + """Maximum LO Harmonic Order + "Maximum order of the LO frequency." + "Value should be between 1 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Maximum LO Harmonic Order') + def set_maximum_lo_harmonic_order(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Maximum LO Harmonic Order=' + value]) + + @property + def get_mixing_mode(self): + """Mixing Mode + "Specifies whether the IF frequency is > or < RF channel frequency." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixing Mode') + def set_mixing_mode(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mixing Mode=' + value]) + class MixingModeOption(Enum): + ( + ABOVETUNEDFREQUENCY = "LO Above Tuned (RF) Frequency" + BELOWTUNEDFREQUENCY = "LO Below Tuned (RF) Frequency" + BOTHTUNEDFREQUENCIES = "LO Above/Below Tuned (RF) Frequency" + ) + + @property + def get__1st_if_frequency(self): + """1st IF Frequency + "Intermediate frequency for Rx's 1st conversion stage." + "Value should be a mathematical expression." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'1st IF Frequency') + def set__1st_if_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['1st IF Frequency=' + value]) + + @property + def get_rf_transition_frequency(self): + """RF Transition Frequency + "RF Frequency Transition point." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'RF Transition Frequency') + def set_rf_transition_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['RF Transition Frequency=' + value]) + + @property + def get_use_high_lo(self): + """Use High LO + "Use High LO above/below the transition frequency." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use High LO') + def set_use_high_lo(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use High LO=' + value]) + class UseHighLOOption(Enum): + ( + ABOVETRANSITION = "Above Transition Frequency" + BELOWTRANSITION = "Below Transition Frequency" + ) + + @property + def get_mixer_product_table_units(self): + """Mixer Product Table Units + "Specifies the units for the Mixer Products." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Table Units') + def set_mixer_product_table_units(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mixer Product Table Units=' + value]) + class MixerProductTableUnitsOption(Enum): + ( + ABSOLUTE = "Absolute" + RELATIVE = "Relative" + ) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSaturationNode.py new file mode 100644 index 00000000000..c87057833ee --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSaturationNode.py @@ -0,0 +1,20 @@ +class Node_RxSaturationNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def import_csv_file(self, file_name): + """Import a CSV File...""" + return self._import(file_name,'Csv') + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_enabled(self): + """Enabled state for this node.""" + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSelectivityNode.py new file mode 100644 index 00000000000..b34fe4e04d7 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSelectivityNode.py @@ -0,0 +1,30 @@ +class Node_RxSelectivityNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def import_csv_file(self, file_name): + """Import a CSV File...""" + return self._import(file_name,'Csv') + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_enabled(self): + """Enabled state for this node.""" + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + + @property + def get_use_arithmetic_mean(self): + """Use Arithmetic Mean + "Uses arithmetic mean to center bandwidths about the tuned channel frequency." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Arithmetic Mean') + def set_use_arithmetic_mean(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use Arithmetic Mean=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSpurNode.py new file mode 100644 index 00000000000..38995c68c96 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSpurNode.py @@ -0,0 +1,34 @@ +class Node_RxSpurNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def import_csv_file(self, file_name): + """Import a CSV File...""" + return self._import(file_name,'Csv') + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_enabled(self): + """Enabled state for this node.""" + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + + @property + def get_spur_table_units(self): + """Spur Table Units + "Specifies the units for the Spurs." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spur Table Units') + def set_spur_table_units(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Spur Table Units=' + value]) + class SpurTableUnitsOption(Enum): + ( + ABSOLUTE = "Absolute" + RELATIVE = "Relative" + ) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSusceptibilityProfNode.py new file mode 100644 index 00000000000..bdb920b6150 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSusceptibilityProfNode.py @@ -0,0 +1,158 @@ +class Node_RxSusceptibilityProfNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def get_enabled(self): + """Enabled state for this node.""" + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + + @property + def get_sensitivity_units(self): + """Sensitivity Units + "Units to use for the Rx Sensitivity." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Sensitivity Units') + def set_sensitivity_units(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Sensitivity Units=' + value]) + class SensitivityUnitsOption(Enum): + ( + DBM = "dBm" + DBUV = "dBuV" + MILLIWATTS = "milliwatts" + MICROVOLTS = "microvolts" + ) + + @property + def get_min_receive_signal_pwr_(self): + """Min. Receive Signal Pwr + "Received signal power level at the Rx's antenna terminal." + "Value should be between -1000 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min. Receive Signal Pwr ') + def set_min_receive_signal_pwr_(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Min. Receive Signal Pwr =' + value]) + + @property + def get_snr_at_rx_signal_pwr(self): + """SNR at Rx Signal Pwr + "Signal-to-Noise Ratio (dB) at specified received signal power at the Rx's antenna terminal." + "Value should be between -1000 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'SNR at Rx Signal Pwr') + def set_snr_at_rx_signal_pwr(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['SNR at Rx Signal Pwr=' + value]) + + @property + def get_processing_gain(self): + """Processing Gain + "Rx processing gain (dB) of (optional) despreader." + "Value should be between -1000 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Processing Gain') + def set_processing_gain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Processing Gain=' + value]) + + @property + def get_apply_pg_to_narrowband_only(self): + """Apply PG to Narrowband Only + "Processing gain captures the despreading effect and applies to NB signals only (not BB noise) when enabled." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Apply PG to Narrowband Only') + def set_apply_pg_to_narrowband_only(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Apply PG to Narrowband Only=' + value]) + + @property + def get_saturation_level(self): + """Saturation Level + "Rx input saturation level." + "Value should be between -1000 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Saturation Level') + def set_saturation_level(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Saturation Level=' + value]) + + @property + def get_rx_noise_figure(self): + """Rx Noise Figure + "Rx noise figure (dB)." + "Value should be between 0 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rx Noise Figure') + def set_rx_noise_figure(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rx Noise Figure=' + value]) + + @property + def get_receiver_sensitivity_(self): + """Receiver Sensitivity + "Rx minimum sensitivity level (dBm)." + "Value should be between -1000 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Receiver Sensitivity ') + def set_receiver_sensitivity_(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Receiver Sensitivity =' + value]) + + @property + def get_snrsinad_at_sensitivity_(self): + """SNR/SINAD at Sensitivity + "SNR or SINAD at the specified sensitivity level." + "Value should be between -1000 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'SNR/SINAD at Sensitivity ') + def set_snrsinad_at_sensitivity_(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['SNR/SINAD at Sensitivity =' + value]) + + @property + def get_perform_rx_intermod_analysis(self): + """Perform Rx Intermod Analysis + "Performs a non-linear intermod analysis for the Rx." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Perform Rx Intermod Analysis') + def set_perform_rx_intermod_analysis(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Perform Rx Intermod Analysis=' + value]) + + @property + def get_amplifier_saturation_level(self): + """Amplifier Saturation Level + "Internal Rx Amplifier's Saturation Level." + "Value should be between -200 and 200." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplifier Saturation Level') + def set_amplifier_saturation_level(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplifier Saturation Level=' + value]) + + @property + def get__1_db_point_ref_input_(self): + """1-dB Point, Ref. Input + "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." + "Value should be between -1000 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'1-dB Point, Ref. Input ') + def set__1_db_point_ref_input_(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input =' + value]) + + @property + def get_ip3_ref_input(self): + """IP3, Ref. Input + "Internal Rx Amplifier's 3rd order intercept point." + "Value should be between -1000 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'IP3, Ref. Input') + def set_ip3_ref_input(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + value]) + + @property + def get_max_intermod_order(self): + """Max Intermod Order + "Internal Rx Amplifier's maximum intermod order to compute." + "Value should be between 3 and 20." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Intermod Order') + def set_max_intermod_order(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_SamplingNode.py new file mode 100644 index 00000000000..db4197077a4 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_SamplingNode.py @@ -0,0 +1,81 @@ +class Node_SamplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def get_sampling_type(self): + """Sampling Type + "Sampling to apply to this configuration." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Sampling Type') + def set_sampling_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Sampling Type=' + value]) + class SamplingTypeOption(Enum): + ( + SAMPLEALLCHANNELS = "Sample All Channels in Range(s)" + RANDOMSAMPLING = "Random Sampling" + UNIFORMSAMPLING = "Uniform Sampling" + ) + + @property + def get_specify_percentage(self): + """Specify Percentage + "Specify the number of channels to simulate via a percentage of the total available band channels." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Specify Percentage') + def set_specify_percentage(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Specify Percentage=' + value]) + + @property + def get_percentage_of_channels(self): + """Percentage of Channels + "Percentage of the Band Channels to simulate." + "Value should be between 1 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Percentage of Channels') + def set_percentage_of_channels(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Percentage of Channels=' + value]) + + @property + def get_max__channelsrangeband(self): + """Max # Channels/Range/Band + "Maximum number of Band Channels to simulate." + "Value should be between 1 and 100000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max # Channels/Range/Band') + def set_max__channelsrangeband(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max # Channels/Range/Band=' + value]) + + @property + def get_seed(self): + """Seed + "Seed for random channel generator." + "Value should be greater than 0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Seed') + def set_seed(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Seed=' + value]) + + @property + def get_total_tx_channels(self): + """Total Tx Channels + "Total number of transmit channels this configuration is capable of operating on." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Tx Channels') + + @property + def get_total_rx_channels(self): + """Total Rx Channels + "Total number of receive channels this configuration is capable of operating on." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Rx Channels') + + @property + def get_warnings(self): + """Warnings + "Warning(s) for this node." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_SceneGroupNode.py new file mode 100644 index 00000000000..13b1eccc507 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_SceneGroupNode.py @@ -0,0 +1,112 @@ + +from ..GenericEmitNode import GenericEmitNode +from enum import Enum + +class Node_SceneGroupNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_show_relative_coordinates(self): + """Show Relative Coordinates + "Show Scene Group position and orientation in parent-node coords (False) or relative to placement coords (True)." + "Value should be 'true' or 'false'." + """ + return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'Show Relative Coordinates') + def set_show_relative_coordinates(self, value): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) + + @property + def get_position(self): + """Position + "Set position of the Scene Group in parent-node coordinates." + "Value should be x/y/z, delimited by spaces." + """ + return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'Position') + def set_position(self, value): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) + + @property + def get_relative_position(self): + """Relative Position + "Set position of the Scene Group relative to placement coordinates." + "Value should be x/y/z, delimited by spaces." + """ + return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'Relative Position') + def set_relative_position(self, value): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Relative Position=' + value]) + + @property + def get_orientation_mode(self): + """Orientation Mode + "Select the convention (order of rotations) for configuring orientation." + """ + return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'Orientation Mode') + def set_orientation_mode(self, value): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation Mode=' + value]) + class OrientationModeOption(Enum): + RPYDEG = "Roll-Pitch-Yaw" + AETDEG = "Az-El-Twist" + + @property + def get_orientation(self): + """Orientation + "Set orientation of the Scene Group relative to parent-node coordinates." + "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + """ + return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'Orientation') + def set_orientation(self, value): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation=' + value]) + + @property + def get_relative_orientation(self): + """Relative Orientation + "Set orientation of the Scene Group relative to placement coordinates." + "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + """ + return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'Relative Orientation') + def set_relative_orientation(self, value): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) + + @property + def get_show_axes(self): + """Show Axes + "Toggle (on/off) display of Scene Group coordinate axes in 3-D window." + "Value should be 'true' or 'false'." + """ + return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'Show Axes') + def set_show_axes(self, value): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Axes=' + value]) + + @property + def get_box_color(self): + """Box Color + "Set color of the bounding box of the Scene Group." + "Color should be in RGB form: #RRGGBB." + """ + return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'Box Color') + def set_box_color(self, value): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Box Color=' + value]) + + @property + def get_notes(self): + """Notes + "Expand to view/edit notes stored with the project." + """ + return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'Notes') + def set_notes(self, value): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_SelectivityTraceNode.py new file mode 100644 index 00000000000..87c71fa6c42 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_SelectivityTraceNode.py @@ -0,0 +1,160 @@ +class Node_SelectivityTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + def set_data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def get_visible(self): + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + def set_visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def get_custom_legend(self): + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + def set_custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def get_name(self): + """Name + "Enter name of plot trace as it will appear in legend." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + def set_name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def get_style(self): + """Style + "Specify line style of plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + def set_style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + ( + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + ) + + @property + def get_line_width(self): + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + def set_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def get_line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + def set_line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def get_symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + def set_symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + ( + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + ) + + @property + def get_symbol_size(self): + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + def set_symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def get_symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + def set_symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def get_symbol_line_width(self): + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + def set_symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def get_symbol_filled(self): + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + def set_symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_SolutionCouplingNode.py new file mode 100644 index 00000000000..276731a374f --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_SolutionCouplingNode.py @@ -0,0 +1,44 @@ +class Node_SolutionCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def get_enabled(self): + """Enabled + "Enable/Disable coupling (A sweep disabled in HFSS/Layout cannot be enabled in EMIT)." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def get_enable_refinement(self): + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + def set_enable_refinement(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + + @property + def get_adaptive_sampling(self): + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + def set_adaptive_sampling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + + @property + def get_refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + def set_refinement_domain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_SolutionsNode.py new file mode 100644 index 00000000000..7bb95149d35 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_SolutionsNode.py @@ -0,0 +1,15 @@ +class Node_SolutionsNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def get_enabled(self): + """Enabled + "Enable/Disable coupling (A setup disabled in HFSS/Layout cannot be enabled in EMIT)." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Sparameter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Sparameter.py new file mode 100644 index 00000000000..e793bc42d66 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Sparameter.py @@ -0,0 +1,81 @@ +class Node_Sparameter(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_file(self): + """File + "S-Parameter file defining the component." + "Value should be a full file path." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'File') + def set_file(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['File=' + value]) + + @property + def get_noise_temperature(self): + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + def set_noise_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + + @property + def get_notes(self): + """Notes + "Expand to view/edit notes stored with the project." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + def set_notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def get_radio_side_ports(self): + """Radio Side Ports + "Assigns the child port nodes to the multiplexers ports." + "A list of values, delimited with pipe ('|')." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Radio Side Ports') + def set_radio_side_ports(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Radio Side Ports=' + value]) + class RadioSidePortsOption(Enum): + ( + ::PORTNAMES = "::PortNames" + ) + + @property + def get_antenna_side_ports(self): + """Antenna Side Ports + "Assigns the child port nodes to the multiplexers ports." + "A list of values, delimited with pipe ('|')." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna Side Ports') + def set_antenna_side_ports(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Antenna Side Ports=' + value]) + class AntennaSidePortsOption(Enum): + ( + ::PORTNAMES = "::PortNames" + ) + + @property + def get_warnings(self): + """Warnings + "Warning(s) for this node." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_SparameterTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_SparameterTraceNode.py new file mode 100644 index 00000000000..b1bfb0c172e --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_SparameterTraceNode.py @@ -0,0 +1,186 @@ +class Node_SparameterTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_input_port(self): + """Input Port + "Specifies input port for the plotted S-Parameter component." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Input Port') + def set_input_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Input Port=' + value]) + class InputPortOption(Enum): + ( + ::DATASOURCE::PORTNAMES = "::DataSource::PortNames" + ) + + @property + def get_output_port(self): + """Output Port + "Specifies output port for the plotted S-Parameter component." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Port') + def set_output_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Port=' + value]) + class OutputPortOption(Enum): + ( + ::DATASOURCE::PORTNAMES = "::DataSource::PortNames" + ) + + @property + def get_data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + def set_data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def get_visible(self): + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + def set_visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def get_custom_legend(self): + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + def set_custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def get_name(self): + """Name + "Enter name of plot trace as it will appear in legend." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + def set_name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def get_style(self): + """Style + "Specify line style of plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + def set_style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + ( + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + ) + + @property + def get_line_width(self): + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + def set_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def get_line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + def set_line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def get_symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + def set_symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + ( + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + ) + + @property + def get_symbol_size(self): + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + def set_symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def get_symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + def set_symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def get_symbol_line_width(self): + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + def set_symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def get_symbol_filled(self): + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + def set_symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_SpurTraceNode.py new file mode 100644 index 00000000000..630e1dbdec9 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_SpurTraceNode.py @@ -0,0 +1,176 @@ +class Node_SpurTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_channel_frequency(self): + """Channel Frequency + "Select band channel frequency to display." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Channel Frequency') + def set_channel_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Channel Frequency=' + value]) + + @property + def get_transmit_frequency(self): + """Transmit Frequency + "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Transmit Frequency') + + @property + def get_data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + def set_data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def get_visible(self): + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + def set_visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def get_custom_legend(self): + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + def set_custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def get_name(self): + """Name + "Enter name of plot trace as it will appear in legend." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + def set_name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def get_style(self): + """Style + "Specify line style of plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + def set_style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + ( + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + ) + + @property + def get_line_width(self): + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + def set_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def get_line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + def set_line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def get_symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + def set_symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + ( + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + ) + + @property + def get_symbol_size(self): + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + def set_symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def get_symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + def set_symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def get_symbol_line_width(self): + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + def set_symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def get_symbol_filled(self): + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + def set_symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TRSwitchTraceNode.py new file mode 100644 index 00000000000..4c6706c9eef --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TRSwitchTraceNode.py @@ -0,0 +1,180 @@ +class Node_TRSwitchTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_input_port(self): + """Input Port + "Specifies input port for the plotted outboard component." + "Value should be greater than 1." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Input Port') + def set_input_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Input Port=' + value]) + + @property + def get_output_port(self): + """Output Port + "Specifies output port for the plotted outboard component." + "Value should be greater than 1." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Port') + def set_output_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Port=' + value]) + + @property + def get_data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + def set_data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def get_visible(self): + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + def set_visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def get_custom_legend(self): + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + def set_custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def get_name(self): + """Name + "Enter name of plot trace as it will appear in legend." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + def set_name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def get_style(self): + """Style + "Specify line style of plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + def set_style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + ( + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + ) + + @property + def get_line_width(self): + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + def set_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def get_line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + def set_line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def get_symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + def set_symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + ( + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + ) + + @property + def get_symbol_size(self): + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + def set_symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def get_symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + def set_symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def get_symbol_line_width(self): + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + def set_symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def get_symbol_filled(self): + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + def set_symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TR_Switch.py new file mode 100644 index 00000000000..88f34f6636f --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TR_Switch.py @@ -0,0 +1,164 @@ +class Node_TR_Switch(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_filename(self): + """Filename + "Name of file defining the outboard component." + "Value should be a full file path." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + def set_filename(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + + @property + def get_noise_temperature(self): + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + def set_noise_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + + @property + def get_notes(self): + """Notes + "Expand to view/edit notes stored with the project." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + def set_notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def get_tx_port(self): + """Tx Port + "Specifies which port on the TR Switch is part of the Tx path.." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx Port') + def set_tx_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Tx Port=' + value]) + class TxPortOption(Enum): + ( + _0 = "Port 1" + _1 = "Port 2" + ) + + @property + def get_common_port_location(self): + """Common Port Location + "Defines the orientation of the tr switch.." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Common Port Location') + def set_common_port_location(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Common Port Location=' + value]) + class CommonPortLocationOption(Enum): + ( + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" + ) + + @property + def get_insertion_loss(self): + """Insertion Loss + "TR Switch in-band loss in forward direction.." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') + def set_insertion_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + + @property + def get_finite_isolation(self): + """Finite Isolation + "Use a finite isolation. If disabled, the tr switch model is ideal (infinite isolation).." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Isolation') + def set_finite_isolation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Isolation=' + value]) + + @property + def get_isolation(self): + """Isolation + "TR Switch reverse isolation (i.e., loss between the Tx/Rx ports).." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Isolation') + def set_isolation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Isolation=' + value]) + + @property + def get_finite_bandwidth(self): + """Finite Bandwidth + "Use a finite bandwidth. If disabled, the tr switch model is ideal (infinite bandwidth).." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Bandwidth') + def set_finite_bandwidth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) + + @property + def get_out_of_band_attenuation(self): + """Out-of-band Attenuation + "Out-of-band loss (attenuation)." + "Value should be between 0 and 200." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out-of-band Attenuation') + def set_out_of_band_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) + + @property + def get_lower_stop_band(self): + """Lower Stop Band + "Lower stop band frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') + def set_lower_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + + @property + def get_lower_cutoff(self): + """Lower Cutoff + "Lower cutoff frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') + def set_lower_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + + @property + def get_higher_cutoff(self): + """Higher Cutoff + "Higher cutoff frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') + def set_higher_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + + @property + def get_higher_stop_band(self): + """Higher Stop Band + "Higher stop band frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') + def set_higher_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Terminator.py new file mode 100644 index 00000000000..41ccc5f3ecd --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Terminator.py @@ -0,0 +1,91 @@ +class Node_Terminator(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_filename(self): + """Filename + "Name of file defining the Terminator." + "Value should be a full file path." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + def set_filename(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + + @property + def get_noise_temperature(self): + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + def set_noise_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + + @property + def get_notes(self): + """Notes + "Expand to view/edit notes stored with the project." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + def set_notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def get_type(self): + """Type + "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + def set_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) + class TypeOption(Enum): + ( + BYFILE = "By File" + PARAMETRIC = "Parametric" + ) + + @property + def get_port_location(self): + """Port Location + "Defines the orientation of the terminator.." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port Location') + def set_port_location(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Port Location=' + value]) + class PortLocationOption(Enum): + ( + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" + ) + + @property + def get_vswr(self): + """VSWR + "The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch between the terminator and the connected component (RF System, Antenna, etc)." + "Value should be between 1.0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'VSWR') + def set_vswr(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['VSWR=' + value]) + + @property + def get_warnings(self): + """Warnings + "Warning(s) for this node." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TestNoiseTraceNode.py new file mode 100644 index 00000000000..33afb2b6aa6 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TestNoiseTraceNode.py @@ -0,0 +1,250 @@ +class Node_TestNoiseTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_input_port(self): + """Input Port + "Specifies input port for the plotted outboard component." + "Value should be greater than 1." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Input Port') + def set_input_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Input Port=' + value]) + + @property + def get_output_port(self): + """Output Port + "Specifies output port for the plotted outboard component." + "Value should be greater than 1." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Port') + def set_output_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Port=' + value]) + + @property + def get_data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + def set_data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def get_visible(self): + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + def set_visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def get_custom_legend(self): + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + def set_custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def get_name(self): + """Name + "Enter name of plot trace as it will appear in legend." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + def set_name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def get_style(self): + """Style + "Specify line style of plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + def set_style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + ( + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + ) + + @property + def get_line_width(self): + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + def set_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def get_line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + def set_line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def get_symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + def set_symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + ( + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + ) + + @property + def get_symbol_size(self): + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + def set_symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def get_symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + def set_symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def get_symbol_line_width(self): + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + def set_symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def get_symbol_filled(self): + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + def set_symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + + @property + def get_frequency_1(self): + """Frequency 1 + "1st test tone frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency 1') + def set_frequency_1(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Frequency 1=' + value]) + + @property + def get_amplitude_1(self): + """Amplitude 1 + "1st test tone amplitude." + "Value should be between -100 and 200." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplitude 1') + def set_amplitude_1(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplitude 1=' + value]) + + @property + def get_bandwidth_1(self): + """Bandwidth 1 + "1st test tone bandwidth." + "Value should be between 1 and unbounded." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bandwidth 1') + def set_bandwidth_1(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Bandwidth 1=' + value]) + + @property + def get_frequency_2(self): + """Frequency 2 + "2nd test tone frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency 2') + def set_frequency_2(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Frequency 2=' + value]) + + @property + def get_amplitude_2(self): + """Amplitude 2 + "2nd test tone amplitude." + "Value should be between -100 and 200." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplitude 2') + def set_amplitude_2(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplitude 2=' + value]) + + @property + def get_bandwidth_2(self): + """Bandwidth 2 + "2nd test tone bandwidth." + "Value should be between 1 and unbounded." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bandwidth 2') + def set_bandwidth_2(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Bandwidth 2=' + value]) + + @property + def get_noise_level(self): + """Noise Level + "Broadband noise level." + "Value should be between -200 and 0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Level') + def set_noise_level(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Level=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TopLevelSimulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TopLevelSimulation.py new file mode 100644 index 00000000000..10fae5c6bb7 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TopLevelSimulation.py @@ -0,0 +1,5 @@ +class Node_TopLevelSimulation(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TouchstoneCouplingNode.py new file mode 100644 index 00000000000..efb050d80ea --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TouchstoneCouplingNode.py @@ -0,0 +1,92 @@ +class Node_TouchstoneCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_enabled(self): + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def get_enable_refinement(self): + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + def set_enable_refinement(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + + @property + def get_adaptive_sampling(self): + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + def set_adaptive_sampling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + + @property + def get_refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + def set_refinement_domain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + + @property + def get_filename(self): + """Filename + "Name of file with coupling data.." + "Value should be a full file path." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + def set_filename(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + + @property + def get_savant_matched_coupling_file(self): + """Savant Matched Coupling File + "Coupling data generated by Savant and exported as a matched file." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Savant Matched Coupling File') + + @property + def get_enable_em_isolation(self): + """Enable EM Isolation + "Enables/disables EM isolation." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable EM Isolation') + def set_enable_em_isolation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable EM Isolation=' + value]) + + @property + def get_notes(self): + """Notes + "Expand to view/edit notes stored with the project." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + def set_notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TunableTraceNode.py new file mode 100644 index 00000000000..48e241b399a --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TunableTraceNode.py @@ -0,0 +1,189 @@ +class Node_TunableTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_input_port(self): + """Input Port + "Specifies input port for the plotted outboard component." + "Value should be greater than 1." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Input Port') + def set_input_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Input Port=' + value]) + + @property + def get_output_port(self): + """Output Port + "Specifies output port for the plotted outboard component." + "Value should be greater than 1." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Port') + def set_output_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Port=' + value]) + + @property + def get_frequency(self): + """Frequency + "Tunable filter center frequency." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency') + def set_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Frequency=' + value]) + + @property + def get_data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + def set_data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def get_visible(self): + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + def set_visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def get_custom_legend(self): + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + def set_custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def get_name(self): + """Name + "Enter name of plot trace as it will appear in legend." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + def set_name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def get_style(self): + """Style + "Specify line style of plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + def set_style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + ( + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + ) + + @property + def get_line_width(self): + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + def set_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def get_line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + def set_line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def get_symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + def set_symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + ( + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + ) + + @property + def get_symbol_size(self): + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + def set_symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def get_symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + def set_symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def get_symbol_line_width(self): + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + def set_symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def get_symbol_filled(self): + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + def set_symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TwoRayPathLossCouplingNode.py new file mode 100644 index 00000000000..da4f7825e16 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TwoRayPathLossCouplingNode.py @@ -0,0 +1,222 @@ +class Node_TwoRayPathLossCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_enabled(self): + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def get_enable_refinement(self): + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + def set_enable_refinement(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + + @property + def get_adaptive_sampling(self): + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + def set_adaptive_sampling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + + @property + def get_refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + def set_refinement_domain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + + @property + def get_ground_reflection_coeff(self): + """Ground Reflection Coeff. + "The ground reflection coefficient." + "Value should be between -100 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Ground Reflection Coeff.') + def set_ground_reflection_coeff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Ground Reflection Coeff.=' + value]) + + @property + def get_pointspeak(self): + """Points/Peak + "Number of points used to model each peak in frequency vs loss curve." + "Value should be between 3 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Points/Peak') + def set_pointspeak(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Points/Peak=' + value]) + + @property + def get_custom_fading_margin(self): + """Custom Fading Margin + "Sets a custom fading margin to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') + def set_custom_fading_margin(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + + @property + def get_polarization_mismatch(self): + """Polarization Mismatch + "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') + def set_polarization_mismatch(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + + @property + def get_pointing_error_loss(self): + """Pointing Error Loss + "Sets a margin for pointing error loss to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') + def set_pointing_error_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + + @property + def get_fading_type(self): + """Fading Type + "Specify the type of fading to include." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') + def set_fading_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) + class FadingTypeOption(Enum): + ( + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + ) + + @property + def get_fading_availability(self): + """Fading Availability + "The probability that the propagation loss in dB is below its median value plus the margin." + "Value should be between 0.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') + def set_fading_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + + @property + def get_std_deviation(self): + """Std Deviation + "Standard deviation modeling the random amount of shadowing loss." + "Value should be between 0.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') + def set_std_deviation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + + @property + def get_include_rain_attenuation(self): + """Include Rain Attenuation + "Adds a margin for rain attenuation to the computed coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') + def set_include_rain_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + + @property + def get_rain_availability(self): + """Rain Availability + "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." + "Value should be between 99 and 99.999." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') + def set_rain_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + + @property + def get_rain_rate(self): + """Rain Rate + "Rain rate (mm/hr) exceeded for 0.01% of the time." + "Value should be between 0.0 and 1000.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') + def set_rain_rate(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + + @property + def get_polarization_tilt_angle(self): + """Polarization Tilt Angle + "Polarization tilt angle of the transmitted signal relative to the horizontal." + "Value should be between 0.0 and 180.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') + def set_polarization_tilt_angle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + + @property + def get_include_atmospheric_absorption(self): + """Include Atmospheric Absorption + "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') + def set_include_atmospheric_absorption(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + + @property + def get_temperature(self): + """Temperature + "Air temperature in degrees Celsius." + "Value should be between -273.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') + def set_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) + + @property + def get_total_air_pressure(self): + """Total Air Pressure + "Total air pressure." + "Value should be between 0.0 and 2000.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') + def set_total_air_pressure(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + + @property + def get_water_vapor_concentration(self): + """Water Vapor Concentration + "Water vapor concentration." + "Value should be between 0.0 and 2000.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') + def set_water_vapor_concentration(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TwoToneTraceNode.py new file mode 100644 index 00000000000..3772f3aab13 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TwoToneTraceNode.py @@ -0,0 +1,250 @@ +class Node_TwoToneTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_input_port(self): + """Input Port + "Specifies input port for the plotted outboard component." + "Value should be greater than 1." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Input Port') + def set_input_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Input Port=' + value]) + + @property + def get_output_port(self): + """Output Port + "Specifies output port for the plotted outboard component." + "Value should be greater than 1." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Port') + def set_output_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Port=' + value]) + + @property + def get_data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + def set_data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def get_visible(self): + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + def set_visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def get_custom_legend(self): + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + def set_custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def get_name(self): + """Name + "Enter name of plot trace as it will appear in legend." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + def set_name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def get_style(self): + """Style + "Specify line style of plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + def set_style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + ( + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + ) + + @property + def get_line_width(self): + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + def set_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def get_line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + def set_line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def get_symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + def set_symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + ( + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + ) + + @property + def get_symbol_size(self): + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + def set_symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def get_symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + def set_symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def get_symbol_line_width(self): + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + def set_symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def get_symbol_filled(self): + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + def set_symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + + @property + def get_frequency_1(self): + """Frequency 1 + "1st test tone frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency 1') + def set_frequency_1(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Frequency 1=' + value]) + + @property + def get_amplitude_1(self): + """Amplitude 1 + "1st test tone amplitude." + "Value should be between -100 and 200." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplitude 1') + def set_amplitude_1(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplitude 1=' + value]) + + @property + def get_bandwidth_1(self): + """Bandwidth 1 + "1st test tone bandwidth." + "Value should be between 1 and unbounded." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bandwidth 1') + def set_bandwidth_1(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Bandwidth 1=' + value]) + + @property + def get_frequency_2(self): + """Frequency 2 + "2nd test tone frequency." + "Value should be between 1 and 100e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency 2') + def set_frequency_2(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Frequency 2=' + value]) + + @property + def get_amplitude_2(self): + """Amplitude 2 + "2nd test tone amplitude." + "Value should be between -100 and 200." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplitude 2') + def set_amplitude_2(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplitude 2=' + value]) + + @property + def get_bandwidth_2(self): + """Bandwidth 2 + "2nd test tone bandwidth." + "Value should be between 1 and unbounded." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bandwidth 2') + def set_bandwidth_2(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Bandwidth 2=' + value]) + + @property + def get_noise_level(self): + """Noise Level + "Broadband noise level." + "Value should be between -200 and 0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Level') + def set_noise_level(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Level=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxBbEmissionNode.py new file mode 100644 index 00000000000..e49bf154fb0 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxBbEmissionNode.py @@ -0,0 +1,46 @@ +class Node_TxBbEmissionNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def import_csv_file(self, file_name): + """Import a CSV File...""" + return self._import(file_name,'Csv') + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_enabled(self): + """Enabled state for this node.""" + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + + @property + def get_noise_behavior(self): + """Noise Behavior + "Specifies the behavior of the parametric noise profile." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Behavior') + def set_noise_behavior(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Behavior=' + value]) + class NoiseBehaviorOption(Enum): + ( + ABSOLUTE = "Absolute" + RELATIVEBANDWIDTH = "Relative (Bandwidth)" + RELATIVEOFFSET = "Relative (Offset)" + BROADBANDEQUATION = "Equation" + ) + + @property + def get_use_log_linear_interpolation(self): + """Use Log-Linear Interpolation + "If true, linear interpolation in the log domain is used. If false, linear interpolation in the linear domain is used.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Log-Linear Interpolation') + def set_use_log_linear_interpolation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use Log-Linear Interpolation=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxHarmonicNode.py new file mode 100644 index 00000000000..bb5cd535c21 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxHarmonicNode.py @@ -0,0 +1,34 @@ +class Node_TxHarmonicNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def import_csv_file(self, file_name): + """Import a CSV File...""" + return self._import(file_name,'Csv') + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_enabled(self): + """Enabled state for this node.""" + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + + @property + def get_harmonic_table_units(self): + """Harmonic Table Units + "Specifies the units for the Harmonics." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Table Units') + def set_harmonic_table_units(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Harmonic Table Units=' + value]) + class HarmonicTableUnitsOption(Enum): + ( + ABSOLUTE = "Absolute" + RELATIVE = "Relative" + ) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxMeasNode.py new file mode 100644 index 00000000000..c45f40804ac --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxMeasNode.py @@ -0,0 +1,83 @@ +class Node_TxMeasNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_file(self): + """File + "Name of the measurement source." + "Value should be a full file path." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'File') + + @property + def get_source_file(self): + """Source File + "Name of the measurement source." + "Value should be a full file path." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Source File') + + @property + def get_transmit_frequency(self): + """Transmit Frequency + "Channel associated with the measurement file." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Transmit Frequency') + + @property + def get_use_ams_limits(self): + """Use AMS Limits + "Allow AMS to define the frequency limits for the measurements." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use AMS Limits') + def set_use_ams_limits(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use AMS Limits=' + value]) + + @property + def get_start_frequency(self): + """Start Frequency + "Starting frequency for the measurement sweep." + "Value should be between 1e6 and TxStopFreq." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Start Frequency') + def set_start_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Start Frequency=' + value]) + + @property + def get_stop_frequency(self): + """Stop Frequency + "Stopping frequency for the measurement sweep." + "Value should be between TxStartFreq and 6e9." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop Frequency') + def set_stop_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Stop Frequency=' + value]) + + @property + def get_exclude_harmonics_below_noise(self): + """Exclude Harmonics Below Noise + "Include/Exclude Harmonics below the noise." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Exclude Harmonics Below Noise') + def set_exclude_harmonics_below_noise(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Exclude Harmonics Below Noise=' + value]) + + @property + def get_enabled(self): + """Enabled state for this node.""" + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxNbEmissionNode.py new file mode 100644 index 00000000000..559978b5c5c --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxNbEmissionNode.py @@ -0,0 +1,43 @@ +class Node_TxNbEmissionNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def import_csv_file(self, file_name): + """Import a CSV File...""" + return self._import(file_name,'Csv') + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_enabled(self): + """Enabled state for this node.""" + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + + @property + def get_narrowband_behavior(self): + """Narrowband Behavior + "Specifies the behavior of the parametric narrowband emissions mask." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Narrowband Behavior') + def set_narrowband_behavior(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Narrowband Behavior=' + value]) + class NarrowbandBehaviorOption(Enum): + ( + ABSOLUTE = "Absolute Freqs and Power" + RELATIVEBANDWIDTH = "Relative Freqs and Attenuation" + ) + + @property + def get_measurement_frequency(self): + """Measurement Frequency + "Measurement frequency for the absolute freq/amp pairs.." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measurement Frequency') + def set_measurement_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Measurement Frequency=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxSpectralProfNode.py new file mode 100644 index 00000000000..641c5a0896c --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxSpectralProfNode.py @@ -0,0 +1,265 @@ +class Node_TxSpectralProfNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def get_enabled(self): + """Enabled state for this node.""" + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + + @property + def get_spectrum_type(self): + """Spectrum Type + "Specifies EMI Margins to calculate." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spectrum Type') + def set_spectrum_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Spectrum Type=' + value]) + class SpectrumTypeOption(Enum): + ( + BOTH = "Narrowband & Broadband" + BROADBANDONLY = "Broadband Only" + ) + + @property + def get_tx_power(self): + """Tx Power + "Method used to specify the power." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx Power') + def set_tx_power(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Tx Power=' + value]) + class TxPowerOption(Enum): + ( + PEAK_POWER = "Peak Power" + AVERAGE_POWER = "Average Power" + ) + + @property + def get_peak_power(self): + """Peak Power + "Tx's carrier frequency peak power." + "Value should be between -1000 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Peak Power') + def set_peak_power(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Peak Power=' + value]) + + @property + def get_average_power(self): + """Average Power + "Tx's fundamental level specified by average power." + "Value should be between -1000 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Average Power') + def set_average_power(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Average Power=' + value]) + + @property + def get_output_voltage_peak(self): + """Output Voltage Peak + "Output High Voltage Level: maximum voltage of the digital signal." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Voltage Peak') + def set_output_voltage_peak(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Voltage Peak=' + value]) + + @property + def get_include_phase_noise(self): + """Include Phase Noise + "Include oscillator phase noise in Tx spectral profile." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Phase Noise') + def set_include_phase_noise(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Phase Noise=' + value]) + + @property + def get_tx_broadband_noise(self): + """Tx Broadband Noise + "Transmitters broadband noise level." + "Value should be less than 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx Broadband Noise') + def set_tx_broadband_noise(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Tx Broadband Noise=' + value]) + + @property + def get_harmonic_taper(self): + """Harmonic Taper + "Taper type used to set amplitude of harmonics." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Taper') + def set_harmonic_taper(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Harmonic Taper=' + value]) + class HarmonicTaperOption(Enum): + ( + CONSTANT = "Constant" + MIL_STD_461G = "MIL-STD-461G" + MIL_STD_461G_NAVY = "MIL-STD-461G Navy" + DUFF_MODEL = "Duff Model" + ) + + @property + def get_harmonic_amplitude(self): + """Harmonic Amplitude + "Amplitude (relative to the carrier power) of harmonics." + "Value should be between -1000 and 0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Amplitude') + def set_harmonic_amplitude(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Harmonic Amplitude=' + value]) + + @property + def get_harmonic_slope(self): + """Harmonic Slope + "Rate of decrease for harmonics' amplitudes (dB/decade)." + "Value should be between -1000 and 0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Slope') + def set_harmonic_slope(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Harmonic Slope=' + value]) + + @property + def get_harmonic_intercept(self): + """Harmonic Intercept + "Amplitude intercept at the fundamental (dBc)." + "Value should be between -1000 and 0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Intercept') + def set_harmonic_intercept(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Harmonic Intercept=' + value]) + + @property + def get_enable_harmonic_bw_expansion(self): + """Enable Harmonic BW Expansion + "If (True), bandwidth of harmonics increases proportional to the harmonic number." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Harmonic BW Expansion') + def set_enable_harmonic_bw_expansion(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Harmonic BW Expansion=' + value]) + + @property + def get_number_of_harmonics(self): + """Number of Harmonics + "Maximum number of harmonics modeled." + "Value should be between 1 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Harmonics') + def set_number_of_harmonics(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Number of Harmonics=' + value]) + + @property + def get__2nd_harmonic_level(self): + """2nd Harmonic Level + "Amplitude (relative to the carrier power) of the 2nd harmonic." + "Value should be between -1000 and 0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'2nd Harmonic Level') + def set__2nd_harmonic_level(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['2nd Harmonic Level=' + value]) + + @property + def get__3rd_harmonic_level(self): + """3rd Harmonic Level + "Amplitude (relative to the carrier power) of the 3rd harmonic." + "Value should be between -1000 and 0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'3rd Harmonic Level') + def set__3rd_harmonic_level(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['3rd Harmonic Level=' + value]) + + @property + def get_other_harmonic_levels(self): + """Other Harmonic Levels + "Amplitude (relative to the carrier power) of the higher order harmonics." + "Value should be between -1000 and 0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Other Harmonic Levels') + def set_other_harmonic_levels(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Other Harmonic Levels=' + value]) + + @property + def get_perform_tx_intermod_analysis(self): + """Perform Tx Intermod Analysis + "Performs a non-linear intermod analysis for the Tx." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Perform Tx Intermod Analysis') + def set_perform_tx_intermod_analysis(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Perform Tx Intermod Analysis=' + value]) + + @property + def get_internal_amp_gain(self): + """Internal Amp Gain + "Internal Tx Amplifier's Gain." + "Value should be between -1000 and 1000." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Internal Amp Gain') + def set_internal_amp_gain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Internal Amp Gain=' + value]) + + @property + def get_noise_figure(self): + """Noise Figure + "Internal Tx Amplifier's noise figure." + "Value should be between 0 and 50." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Figure') + def set_noise_figure(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Figure=' + value]) + + @property + def get_amplifier_saturation_level(self): + """Amplifier Saturation Level + "Internal Tx Amplifier's Saturation Level." + "Value should be between -200 and 200." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplifier Saturation Level') + def set_amplifier_saturation_level(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplifier Saturation Level=' + value]) + + @property + def get__1_db_point_ref_input_(self): + """1-dB Point, Ref. Input + "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." + "Value should be between -200 and 200." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'1-dB Point, Ref. Input ') + def set__1_db_point_ref_input_(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input =' + value]) + + @property + def get_ip3_ref_input(self): + """IP3, Ref. Input + "Internal Tx Amplifier's 3rd order intercept point." + "Value should be between -200 and 200." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'IP3, Ref. Input') + def set_ip3_ref_input(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + value]) + + @property + def get_reverse_isolation(self): + """Reverse Isolation + "Internal Tx Amplifier's Reverse Isolation." + "Value should be between -200 and 200." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reverse Isolation') + def set_reverse_isolation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) + + @property + def get_max_intermod_order(self): + """Max Intermod Order + "Internal Tx Amplifier's maximum intermod order to compute." + "Value should be between 3 and 20." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Intermod Order') + def set_max_intermod_order(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxSpurNode.py new file mode 100644 index 00000000000..0fde02d27db --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxSpurNode.py @@ -0,0 +1,34 @@ +class Node_TxSpurNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def import_csv_file(self, file_name): + """Import a CSV File...""" + return self._import(file_name,'Csv') + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_enabled(self): + """Enabled state for this node.""" + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + + @property + def get_spur_table_units(self): + """Spur Table Units + "Specifies the units for the Spurs." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spur Table Units') + def set_spur_table_units(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Spur Table Units=' + value]) + class SpurTableUnitsOption(Enum): + ( + ABSOLUTE = "Absolute" + RELATIVE = "Relative" + ) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_WalfischCouplingNode.py new file mode 100644 index 00000000000..169d3b03ae7 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Node_WalfischCouplingNode.py @@ -0,0 +1,270 @@ +class Node_WalfischCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def get_enabled(self): + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + def set_enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def get_enable_refinement(self): + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + def set_enable_refinement(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + + @property + def get_adaptive_sampling(self): + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + def set_adaptive_sampling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + + @property + def get_refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + def set_refinement_domain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + + @property + def get_path_loss_type(self): + """Path Loss Type + "Specify LOS vs NLOS for the Walfisch-Ikegami model." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Path Loss Type') + def set_path_loss_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Path Loss Type=' + value]) + class PathLossTypeOption(Enum): + ( + WALFISCHLOS = "LOS (Urban Canyon)" + WALFISCHNLOS = "NLOS" + ) + + @property + def get_environment(self): + """Environment + "Specify the environment type for the Walfisch model." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Environment') + def set_environment(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Environment=' + value]) + class EnvironmentOption(Enum): + ( + DENSEMETROAREA = "Dense Metro" + SMALLURBANORSUBURBAN = "Small/Medium City or Suburban" + ) + + @property + def get_roof_height(self): + """Roof Height + "The height of the building where the antenna is located.." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Roof Height') + def set_roof_height(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Roof Height=' + value]) + + @property + def get_distance_between_buildings(self): + """Distance Between Buildings + "The distance between two buildings.." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Distance Between Buildings') + def set_distance_between_buildings(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Distance Between Buildings=' + value]) + + @property + def get_street_width(self): + """Street Width + "Width of the street.." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Street Width') + def set_street_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Street Width=' + value]) + + @property + def get_incidence_angle(self): + """Incidence Angle + "Angle between the street orientation and direction of incidence.." + "Value should be between 0 and 90." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Incidence Angle') + def set_incidence_angle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Incidence Angle=' + value]) + + @property + def get_custom_fading_margin(self): + """Custom Fading Margin + "Sets a custom fading margin to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') + def set_custom_fading_margin(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + + @property + def get_polarization_mismatch(self): + """Polarization Mismatch + "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') + def set_polarization_mismatch(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + + @property + def get_pointing_error_loss(self): + """Pointing Error Loss + "Sets a margin for pointing error loss to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') + def set_pointing_error_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + + @property + def get_fading_type(self): + """Fading Type + "Specify the type of fading to include." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') + def set_fading_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) + class FadingTypeOption(Enum): + ( + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + ) + + @property + def get_fading_availability(self): + """Fading Availability + "The probability that the propagation loss in dB is below its median value plus the margin." + "Value should be between 0.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') + def set_fading_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + + @property + def get_std_deviation(self): + """Std Deviation + "Standard deviation modeling the random amount of shadowing loss." + "Value should be between 0.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') + def set_std_deviation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + + @property + def get_include_rain_attenuation(self): + """Include Rain Attenuation + "Adds a margin for rain attenuation to the computed coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') + def set_include_rain_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + + @property + def get_rain_availability(self): + """Rain Availability + "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." + "Value should be between 99 and 99.999." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') + def set_rain_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + + @property + def get_rain_rate(self): + """Rain Rate + "Rain rate (mm/hr) exceeded for 0.01% of the time." + "Value should be between 0.0 and 1000.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') + def set_rain_rate(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + + @property + def get_polarization_tilt_angle(self): + """Polarization Tilt Angle + "Polarization tilt angle of the transmitted signal relative to the horizontal." + "Value should be between 0.0 and 180.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') + def set_polarization_tilt_angle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + + @property + def get_include_atmospheric_absorption(self): + """Include Atmospheric Absorption + "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." + "Value should be 'true' or 'false'." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') + def set_include_atmospheric_absorption(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + + @property + def get_temperature(self): + """Temperature + "Air temperature in degrees Celsius." + "Value should be between -273.0 and 100.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') + def set_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) + + @property + def get_total_air_pressure(self): + """Total Air Pressure + "Total air pressure." + "Value should be between 0.0 and 2000.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') + def set_total_air_pressure(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + + @property + def get_water_vapor_concentration(self): + """Water Vapor Concentration + "Water vapor concentration." + "Value should be between 0.0 and 2000.0." + """ + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') + def set_water_vapor_concentration(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/nodes.py b/src/ansys/aedt/core/emit_core/nodes/nodes.py new file mode 100644 index 00000000000..f8e4685d89b --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/nodes.py @@ -0,0 +1,137 @@ + +from .GenericEmitNode import GenericEmitNode, props_to_dict + +from . import generated + +from .generated.Node_Amplifier import Node_Amplifier +from .generated.Node_AntennaGroup import Node_AntennaGroup +from .generated.Node_AntennaNode import Node_AntennaNode +# from .generated.Node_AntennaPassband import Node_AntennaPassband +# from .generated.Node_Band import Node_Band +# from .generated.Node_BandFolder import Node_BandFolder +# from .generated.Node_BandTraceNode import Node_BandTraceNode +# from .generated.Node_Cable import Node_Cable +# from .generated.Node_CADNode import Node_CADNode +# from .generated.Node_Circulator import Node_Circulator +# from .generated.Node_ComponentGroup import Node_ComponentGroup +# from .generated.Node_ConfigurationGroup import Node_ConfigurationGroup +# from .generated.Node_ConfigurationNode import Node_ConfigurationNode +# from .generated.Node_CouplingLinkNode import Node_CouplingLinkNode +from .generated.Node_CouplingsNode import Node_CouplingsNode +# from .generated.Node_CouplingTraceNode import Node_CouplingTraceNode +# from .generated.Node_CustomCouplingNode import Node_CustomCouplingNode +# from .generated.Node_EmiPlotMarkerNode import Node_EmiPlotMarkerNode +from .generated.Node_EmitSceneNode import Node_EmitSceneNode +# from .generated.Node_ErcegCouplingNode import Node_ErcegCouplingNode +# from .generated.Node_Filter import Node_Filter +# from .generated.Node_FiveGChannelModel import Node_FiveGChannelModel +# from .generated.Node_HataCouplingNode import Node_HataCouplingNode +# from .generated.Node_IndoorPropagationCouplingNode import Node_IndoorPropagationCouplingNode +# from .generated.Node_InteractionDiagramNode import Node_InteractionDiagramNode +# from .generated.Node_Isolator import Node_Isolator +# from .generated.Node_LogDistanceCouplingNode import Node_LogDistanceCouplingNode +# from .generated.Node_MPlexBandTraceNode import Node_MPlexBandTraceNode +# from .generated.Node_Multiplexer import Node_Multiplexer +# from .generated.Node_MultiplexerBand import Node_MultiplexerBand +# from .generated.Node_Node import Node_Node +# from .generated.Node_OutboardTraceNode import Node_OutboardTraceNode +# from .generated.Node_ParametricCouplingTraceNode import Node_ParametricCouplingTraceNode +# from .generated.Node_PlotMarkerNode import Node_PlotMarkerNode +# from .generated.Node_PlotNode import Node_PlotNode +# from .generated.Node_PowerDivider import Node_PowerDivider +# from .generated.Node_PowerTraceNode import Node_PowerTraceNode +# from .generated.Node_ProfileTraceNode import Node_ProfileTraceNode +# from .generated.Node_PropagationLossCouplingNode import Node_PropagationLossCouplingNode +# from .generated.Node_RadioGroup import Node_RadioGroup +# from .generated.Node_RadioNode import Node_RadioNode +# from .generated.Node_ResultPlotNode import Node_ResultPlotNode +# from .generated.Node_RfSystemGroup import Node_RfSystemGroup +# from .generated.Node_RFSystemNode import Node_RFSystemNode +# from .generated.Node_RxMeasNode import Node_RxMeasNode +# from .generated.Node_RxMixerProductNode import Node_RxMixerProductNode +# from .generated.Node_RxSaturationNode import Node_RxSaturationNode +# from .generated.Node_RxSelectivityNode import Node_RxSelectivityNode +# from .generated.Node_RxSpurNode import Node_RxSpurNode +# from .generated.Node_RxSusceptibilityProfNode import Node_RxSusceptibilityProfNode +# from .generated.Node_SamplingNode import Node_SamplingNode +# from .generated.Node_SceneGroupNode import Node_SceneGroupNode +# from .generated.Node_SelectivityTraceNode import Node_SelectivityTraceNode +# from .generated.Node_SolutionCouplingNode import Node_SolutionCouplingNode +# from .generated.Node_SolutionsNode import Node_SolutionsNode +# from .generated.Node_Sparameter import Node_Sparameter +# from .generated.Node_SparameterTraceNode import Node_SparameterTraceNode +# from .generated.Node_SpurTraceNode import Node_SpurTraceNode +# from .generated.Node_Terminator import Node_Terminator +# from .generated.Node_TestNoiseTraceNode import Node_TestNoiseTraceNode +# from .generated.Node_TopLevelSimulation import Node_TopLevelSimulation +# from .generated.Node_TouchstoneCouplingNode import Node_TouchstoneCouplingNode +# from .generated.Node_TR_Switch import Node_TR_Switch +# from .generated.Node_TRSwitchTraceNode import Node_TRSwitchTraceNode +# from .generated.Node_TunableTraceNode import Node_TunableTraceNode +# from .generated.Node_TwoRayPathLossCouplingNode import Node_TwoRayPathLossCouplingNode +# from .generated.Node_TwoToneTraceNode import Node_TwoToneTraceNode +# from .generated.Node_TxBbEmissionNode import Node_TxBbEmissionNode +# from .generated.Node_TxHarmonicNode import Node_TxHarmonicNode +# from .generated.Node_TxMeasNode import Node_TxMeasNode +# from .generated.Node_TxNbEmissionNode import Node_TxNbEmissionNode +# from .generated.Node_TxSpectralProfNode import Node_TxSpectralProfNode +# from .generated.Node_TxSpurNode import Node_TxSpurNode +# from .generated.Node_WalfischCouplingNode import Node_WalfischCouplingNode + +class NodeInterface: + + def __init__(self, oDesign): + self.oDesign = oDesign + self.oEmitCom = oDesign.GetModule("EmitCom") + + def get_all_node_ids(self) -> list[int]: + scene_node_id = self.oEmitCom.GetToplevelNodeID(0, "Scene") + + node_ids = [] + node_ids_to_search = [scene_node_id] + + while len(node_ids_to_search) > 0: + node_id_to_search = node_ids_to_search.pop() + if node_id_to_search not in node_ids: + node_ids.append(node_id_to_search) + + child_names = self.oEmitCom.GetChildNodeNames(0, node_id_to_search) + child_ids = [self.oEmitCom.GetChildNodeID(0, node_id_to_search, name) for name in child_names] + if len(child_ids) > 0: + node_ids_to_search.extend(child_ids) + + return node_ids + + def get_node(self, id: int) -> GenericEmitNode: + props = self.oEmitCom.GetEmitNodeProperties(0, id) + props = props_to_dict(props) + parent_props = self.oEmitCom.GetEmitNodeProperties(0, id, True) + parent_props = props_to_dict(parent_props) + + type = parent_props['Type'] + type = f'Node_{type}' + + node = None + try: + type_module = getattr(generated, type) + type_class = getattr(type_module, type) + node = type_class(self.oDesign, 0, id) + except AttributeError: + node = GenericEmitNode(self.oDesign, 0, id) + + return node + + def get_all_nodes(self) -> list[GenericEmitNode]: + ids = self.get_all_node_ids() + nodes = [self.get_node(id) for id in ids] + return nodes + + def get_scene_node(self) -> Node_EmitSceneNode: + scene_node_id = self.oEmitCom.GetTopLevelNodeID(0, "Scene") + scene_node = self.get_node(scene_node_id) + return scene_node + + def get_couplings_node(self) -> Node_CouplingsNode: + couplings_node_id = self.oEmitCom.GetTopLevelNodeID(0, "Couplings") + couplings_node = self.get_node(couplings_node_id) + return couplings_node \ No newline at end of file From 4aef45e018c1d6d476fe10027514d01a47018e49 Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Fri, 31 Jan 2025 10:20:30 -0600 Subject: [PATCH 03/86] New version of generated nodes --- .../core/emit_core/nodes/GenericEmitNode.py | 3 +- .../emit_core/nodes/generated/Amplifier.py | 243 ++++ .../emit_core/nodes/generated/AntennaNode.py | 1034 ++++++++++++++++ .../nodes/generated/AntennaPassband.py | 142 +++ .../core/emit_core/nodes/generated/Band.py | 1035 +++++++++++++++++ .../{Node_BandFolder.py => BandFolder.py} | 12 +- .../nodes/generated/BandTraceNode.py | 279 +++++ .../core/emit_core/nodes/generated/CADNode.py | 670 +++++++++++ .../core/emit_core/nodes/generated/Cable.py | 176 +++ ...omponentGroup.py => CategoriesViewNode.py} | 3 +- .../emit_core/nodes/generated/Circulator.py | 257 ++++ .../nodes/generated/CouplingLinkNode.py | 27 + .../nodes/generated/CouplingTraceNode.py | 362 ++++++ .../nodes/generated/CouplingsNode.py | 90 ++ .../nodes/generated/CustomCouplingNode.py | 90 ++ .../nodes/generated/EmiPlotMarkerNode.py | 406 +++++++ .../nodes/generated/EmitSceneNode.py | 59 + .../nodes/generated/ErcegCouplingNode.py | 333 ++++++ .../core/emit_core/nodes/generated/Filter.py | 388 ++++++ .../nodes/generated/FiveGChannelModel.py | 383 ++++++ .../nodes/generated/HataCouplingNode.py | 334 ++++++ .../IndoorPropagationCouplingNode.py | 351 ++++++ .../emit_core/nodes/generated/Isolator.py | 257 ++++ .../generated/LogDistanceCouplingNode.py | 353 ++++++ .../nodes/generated/MPlexBandTraceNode.py | 250 ++++ .../emit_core/nodes/generated/Multiplexer.py | 133 +++ .../nodes/generated/MultiplexerBand.py | 231 ++++ .../nodes/generated/Node_Amplifier.py | 163 --- .../nodes/generated/Node_AntennaGroup.py | 8 - .../nodes/generated/Node_AntennaNode.py | 652 ----------- .../nodes/generated/Node_AntennaPassband.py | 93 -- .../emit_core/nodes/generated/Node_Band.py | 688 ----------- .../nodes/generated/Node_BandTraceNode.py | 190 --- .../emit_core/nodes/generated/Node_CADNode.py | 432 ------- .../emit_core/nodes/generated/Node_Cable.py | 118 -- .../nodes/generated/Node_Circulator.py | 171 --- .../generated/Node_ConfigurationGroup.py | 5 - .../nodes/generated/Node_ConfigurationNode.py | 26 - .../nodes/generated/Node_CouplingLinkNode.py | 15 - .../nodes/generated/Node_CouplingTraceNode.py | 240 ---- .../nodes/generated/Node_CouplingsNode.py | 35 - .../generated/Node_CustomCouplingNode.py | 60 - .../nodes/generated/Node_EmiPlotMarkerNode.py | 272 ----- .../nodes/generated/Node_EmitSceneNode.py | 42 - .../nodes/generated/Node_ErcegCouplingNode.py | 217 ---- .../emit_core/nodes/generated/Node_Filter.py | 252 ---- .../nodes/generated/Node_FiveGChannelModel.py | 251 ---- .../nodes/generated/Node_HataCouplingNode.py | 218 ---- .../Node_IndoorPropagationCouplingNode.py | 229 ---- .../generated/Node_InteractionDiagramNode.py | 9 - .../nodes/generated/Node_Isolator.py | 171 --- .../generated/Node_LogDistanceCouplingNode.py | 231 ---- .../generated/Node_MPlexBandTraceNode.py | 172 --- .../nodes/generated/Node_Multiplexer.py | 91 -- .../nodes/generated/Node_MultiplexerBand.py | 150 --- .../emit_core/nodes/generated/Node_Node.py | 5 - .../nodes/generated/Node_OutboardTraceNode.py | 180 --- .../Node_ParametricCouplingTraceNode.py | 160 --- .../nodes/generated/Node_PlotMarkerNode.py | 277 ----- .../nodes/generated/Node_PlotNode.py | 317 ----- .../nodes/generated/Node_PowerDivider.py | 172 --- .../nodes/generated/Node_PowerTraceNode.py | 174 --- .../nodes/generated/Node_ProfileTraceNode.py | 160 --- .../Node_PropagationLossCouplingNode.py | 202 ---- .../nodes/generated/Node_RFSystemNode.py | 26 - .../nodes/generated/Node_RadioNode.py | 26 - .../nodes/generated/Node_ResultPlotNode.py | 315 ----- .../nodes/generated/Node_RfSystemGroup.py | 25 - .../nodes/generated/Node_RxMeasNode.py | 238 ---- .../generated/Node_RxMixerProductNode.py | 197 ---- .../Node_RxSusceptibilityProfNode.py | 158 --- .../nodes/generated/Node_SamplingNode.py | 81 -- .../nodes/generated/Node_SceneGroupNode.py | 112 -- .../generated/Node_SelectivityTraceNode.py | 160 --- .../generated/Node_SolutionCouplingNode.py | 44 - .../nodes/generated/Node_SolutionsNode.py | 15 - .../nodes/generated/Node_Sparameter.py | 81 -- .../generated/Node_SparameterTraceNode.py | 186 --- .../nodes/generated/Node_SpurTraceNode.py | 176 --- .../nodes/generated/Node_TRSwitchTraceNode.py | 180 --- .../nodes/generated/Node_TR_Switch.py | 164 --- .../nodes/generated/Node_Terminator.py | 91 -- .../generated/Node_TestNoiseTraceNode.py | 250 ---- .../generated/Node_TopLevelSimulation.py | 5 - .../generated/Node_TouchstoneCouplingNode.py | 92 -- .../nodes/generated/Node_TunableTraceNode.py | 189 --- .../Node_TwoRayPathLossCouplingNode.py | 222 ---- .../nodes/generated/Node_TwoToneTraceNode.py | 250 ---- .../nodes/generated/Node_TxBbEmissionNode.py | 46 - .../nodes/generated/Node_TxMeasNode.py | 83 -- .../generated/Node_TxSpectralProfNode.py | 265 ----- .../generated/Node_WalfischCouplingNode.py | 270 ----- .../nodes/generated/OutboardTraceNode.py | 266 +++++ .../generated/ParametricCouplingTraceNode.py | 234 ++++ .../nodes/generated/PlotMarkerNode.py | 413 +++++++ .../emit_core/nodes/generated/PlotNode.py | 484 ++++++++ .../emit_core/nodes/generated/PowerDivider.py | 258 ++++ .../nodes/generated/PowerTraceNode.py | 252 ++++ .../nodes/generated/ProfileTraceNode.py | 234 ++++ .../generated/PropagationLossCouplingNode.py | 314 +++++ .../emit_core/nodes/generated/RadioNode.py | 42 + .../nodes/generated/ReadOnlyAmplifier.py | 189 +++ .../nodes/generated/ReadOnlyAntennaNode.py | 865 ++++++++++++++ .../generated/ReadOnlyAntennaPassband.py | 101 ++ .../emit_core/nodes/generated/ReadOnlyBand.py | 853 ++++++++++++++ .../nodes/generated/ReadOnlyBandFolder.py | 11 + .../nodes/generated/ReadOnlyCADNode.py | 550 +++++++++ .../nodes/generated/ReadOnlyCable.py | 137 +++ .../nodes/generated/ReadOnlyCirculator.py | 203 ++++ .../generated/ReadOnlyCouplingLinkNode.py | 24 + .../nodes/generated/ReadOnlyCouplingsNode.py | 44 + .../generated/ReadOnlyCustomCouplingNode.py | 62 + .../nodes/generated/ReadOnlyEmitSceneNode.py | 46 + .../generated/ReadOnlyErcegCouplingNode.py | 264 +++++ .../nodes/generated/ReadOnlyFilter.py | 310 +++++ .../generated/ReadOnlyFiveGChannelModel.py | 305 +++++ .../generated/ReadOnlyHataCouplingNode.py | 265 +++++ .../ReadOnlyIndoorPropagationCouplingNode.py | 279 +++++ .../nodes/generated/ReadOnlyIsolator.py | 203 ++++ .../ReadOnlyLogDistanceCouplingNode.py | 281 +++++ .../nodes/generated/ReadOnlyMultiplexer.py | 99 ++ .../generated/ReadOnlyMultiplexerBand.py | 183 +++ .../nodes/generated/ReadOnlyPowerDivider.py | 204 ++++ .../ReadOnlyPropagationLossCouplingNode.py | 248 ++++ .../nodes/generated/ReadOnlyRadioNode.py | 23 + .../nodes/generated/ReadOnlyRfSystemGroup.py | 37 + .../nodes/generated/ReadOnlyRxMeasNode.py | 299 +++++ .../generated/ReadOnlyRxMixerProductNode.py | 228 ++++ .../generated/ReadOnlyRxSaturationNode.py | 11 + .../generated/ReadOnlyRxSelectivityNode.py | 24 + .../nodes/generated/ReadOnlyRxSpurNode.py | 26 + .../ReadOnlyRxSusceptibilityProfNode.py | 197 ++++ .../nodes/generated/ReadOnlySamplingNode.py | 115 ++ .../nodes/generated/ReadOnlySceneGroupNode.py | 129 ++ .../generated/ReadOnlySolutionCouplingNode.py | 62 + .../nodes/generated/ReadOnlySolutionsNode.py | 24 + .../nodes/generated/ReadOnlySparameter.py | 86 ++ .../nodes/generated/ReadOnlyTR_Switch.py | 191 +++ .../nodes/generated/ReadOnlyTerminator.py | 99 ++ .../ReadOnlyTouchstoneCouplingNode.py | 112 ++ .../ReadOnlyTwoRayPathLossCouplingNode.py | 274 +++++ .../generated/ReadOnlyTxBbEmissionNode.py | 52 + .../nodes/generated/ReadOnlyTxHarmonicNode.py | 26 + .../nodes/generated/ReadOnlyTxMeasNode.py | 101 ++ .../generated/ReadOnlyTxNbEmissionNode.py | 38 + .../generated/ReadOnlyTxSpectralProfNode.py | 330 ++++++ .../nodes/generated/ReadOnlyTxSpurNode.py | 26 + .../generated/ReadOnlyWalfischCouplingNode.py | 330 ++++++ .../nodes/generated/ResultPlotNode.py | 488 ++++++++ .../nodes/generated/RfSystemGroup.py | 43 + .../emit_core/nodes/generated/RxMeasNode.py | 372 ++++++ .../nodes/generated/RxMixerProductNode.py | 292 +++++ ...xSaturationNode.py => RxSaturationNode.py} | 13 +- ...electivityNode.py => RxSelectivityNode.py} | 25 +- .../{Node_TxSpurNode.py => RxSpurNode.py} | 29 +- .../generated/RxSusceptibilityProfNode.py | 247 ++++ .../emit_core/nodes/generated/SamplingNode.py | 130 +++ .../nodes/generated/SceneGroupNode.py | 172 +++ .../nodes/generated/SelectivityTraceNode.py | 234 ++++ .../nodes/generated/SolutionCouplingNode.py | 74 ++ .../nodes/generated/SolutionsNode.py | 27 + .../emit_core/nodes/generated/Sparameter.py | 113 ++ .../nodes/generated/SpurTraceNode.py | 261 +++++ .../nodes/generated/TRSwitchTraceNode.py | 266 +++++ .../emit_core/nodes/generated/TR_Switch.py | 245 ++++ .../emit_core/nodes/generated/Terminator.py | 129 ++ .../nodes/generated/TestNoiseTraceNode.py | 378 ++++++ ...de_RadioGroup.py => TopLevelSimulation.py} | 3 +- .../nodes/generated/TouchstoneCouplingNode.py | 145 +++ .../nodes/generated/TunableTraceNode.py | 281 +++++ .../generated/TwoRayPathLossCouplingNode.py | 346 ++++++ .../nodes/generated/TwoToneTraceNode.py | 378 ++++++ .../nodes/generated/TxBbEmissionNode.py | 77 ++ ...de_TxHarmonicNode.py => TxHarmonicNode.py} | 29 +- .../emit_core/nodes/generated/TxMeasNode.py | 129 ++ ...xNbEmissionNode.py => TxNbEmissionNode.py} | 43 +- .../nodes/generated/TxSpectralProfNode.py | 410 +++++++ .../{Node_RxSpurNode.py => TxSpurNode.py} | 29 +- .../nodes/generated/WalfischCouplingNode.py | 414 +++++++ src/ansys/aedt/core/emit_core/nodes/nodes.py | 195 ++-- 180 files changed, 24849 insertions(+), 10927 deletions(-) create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Band.py rename src/ansys/aedt/core/emit_core/nodes/generated/{Node_BandFolder.py => BandFolder.py} (61%) create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Cable.py rename src/ansys/aedt/core/emit_core/nodes/generated/{Node_ComponentGroup.py => CategoriesViewNode.py} (67%) create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Filter.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_Amplifier.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_AntennaGroup.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_AntennaNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_AntennaPassband.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_Band.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_BandTraceNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_CADNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_Cable.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_Circulator.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_ConfigurationGroup.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_ConfigurationNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_CouplingLinkNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_CouplingTraceNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_CouplingsNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_CustomCouplingNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_EmiPlotMarkerNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_EmitSceneNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_ErcegCouplingNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_Filter.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_FiveGChannelModel.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_HataCouplingNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_IndoorPropagationCouplingNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_InteractionDiagramNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_Isolator.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_LogDistanceCouplingNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_MPlexBandTraceNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_Multiplexer.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_MultiplexerBand.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_Node.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_OutboardTraceNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_ParametricCouplingTraceNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_PlotMarkerNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_PlotNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_PowerDivider.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_PowerTraceNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_ProfileTraceNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_PropagationLossCouplingNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_RFSystemNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_RadioNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_ResultPlotNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_RfSystemGroup.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_RxMeasNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_RxMixerProductNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSusceptibilityProfNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_SamplingNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_SceneGroupNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_SelectivityTraceNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_SolutionCouplingNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_SolutionsNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_Sparameter.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_SparameterTraceNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_SpurTraceNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TRSwitchTraceNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TR_Switch.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_Terminator.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TestNoiseTraceNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TopLevelSimulation.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TouchstoneCouplingNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TunableTraceNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TwoRayPathLossCouplingNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TwoToneTraceNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TxBbEmissionNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TxMeasNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_TxSpectralProfNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Node_WalfischCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py rename src/ansys/aedt/core/emit_core/nodes/generated/{Node_RxSaturationNode.py => RxSaturationNode.py} (70%) rename src/ansys/aedt/core/emit_core/nodes/generated/{Node_RxSelectivityNode.py => RxSelectivityNode.py} (57%) rename src/ansys/aedt/core/emit_core/nodes/generated/{Node_TxSpurNode.py => RxSpurNode.py} (57%) create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py rename src/ansys/aedt/core/emit_core/nodes/generated/{Node_RadioGroup.py => TopLevelSimulation.py} (67%) create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py rename src/ansys/aedt/core/emit_core/nodes/generated/{Node_TxHarmonicNode.py => TxHarmonicNode.py} (57%) create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py rename src/ansys/aedt/core/emit_core/nodes/generated/{Node_TxNbEmissionNode.py => TxNbEmissionNode.py} (52%) create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py rename src/ansys/aedt/core/emit_core/nodes/generated/{Node_RxSpurNode.py => TxSpurNode.py} (57%) create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py diff --git a/src/ansys/aedt/core/emit_core/nodes/GenericEmitNode.py b/src/ansys/aedt/core/emit_core/nodes/GenericEmitNode.py index acd2cb7bc9f..6d0810b0e03 100644 --- a/src/ansys/aedt/core/emit_core/nodes/GenericEmitNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/GenericEmitNode.py @@ -24,6 +24,8 @@ import warnings +from enum import Enum + from . import generated def props_to_dict(props): @@ -61,7 +63,6 @@ def parent(self): parent_props = props_to_dict(parent_props) parent_type = parent_props['Type'] - parent_type = f'Node_{parent_type}' parent_type_module = getattr(generated, parent_type) parent_type_class = getattr(parent_type_module, parent_type) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py new file mode 100644 index 00000000000..61431b80f99 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -0,0 +1,243 @@ +from ..GenericEmitNode import * +class Amplifier(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def filename(self) -> str: + """Filename + "Name of file defining the outboard component." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + key_val_pair = [i for i in props if 'Filename=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @filename.setter + def filename(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + + @property + def noise_temperature(self) -> float: + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + key_val_pair = [i for i in props if 'Noise Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @noise_temperature.setter + def noise_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @notes.setter + def notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def amplifier_type(self): + """Amplifier Type + "Configures the amplifier as a Tx or Rx amplifier." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplifier Type') + key_val_pair = [i for i in props if 'Amplifier Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @amplifier_type.setter + def amplifier_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplifier Type=' + value]) + class AmplifierTypeOption(Enum): + TRANSMIT_AMPLIFIER = "Transmit Amplifier" + RECEIVE_AMPLIFIER = "Receive Amplifier" + + @property + def gain(self) -> float: + """Gain + "Amplifier in-band gain." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Gain') + key_val_pair = [i for i in props if 'Gain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @gain.setter + def gain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Gain=' + value]) + + @property + def center_frequency(self) -> float: + """Center Frequency + "Center frequency of amplifiers operational bandwidth." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Center Frequency') + key_val_pair = [i for i in props if 'Center Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @center_frequency.setter + def center_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Center Frequency=' + value]) + + @property + def bandwidth(self) -> float: + """Bandwidth + "Frequency region where the gain applies." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bandwidth') + key_val_pair = [i for i in props if 'Bandwidth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @bandwidth.setter + def bandwidth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Bandwidth=' + value]) + + @property + def noise_figure(self) -> float: + """Noise Figure + "Amplifier noise figure." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Figure') + key_val_pair = [i for i in props if 'Noise Figure=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @noise_figure.setter + def noise_figure(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Figure=' + value]) + + @property + def saturation_level(self) -> float: + """Saturation Level + "Saturation level." + "Value should be between -200 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Saturation Level') + key_val_pair = [i for i in props if 'Saturation Level=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @saturation_level.setter + def saturation_level(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Saturation Level=' + value]) + + @property + def _1_db_point_ref_input(self) -> float: + """1-dB Point, Ref. Input + "Incoming signals > this value saturate the amplifier." + "Value should be between -200 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'1-dB Point, Ref. Input') + key_val_pair = [i for i in props if '1-dB Point, Ref. Input=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @_1_db_point_ref_input.setter + def _1_db_point_ref_input(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input=' + value]) + + @property + def ip3_ref_input(self) -> float: + """IP3, Ref. Input + "3rd order intercept point." + "Value should be between -200 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'IP3, Ref. Input') + key_val_pair = [i for i in props if 'IP3, Ref. Input=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @ip3_ref_input.setter + def ip3_ref_input(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + value]) + + @property + def shape_factor(self) -> float: + """Shape Factor + "Ratio defining the selectivity of the amplifier." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Shape Factor') + key_val_pair = [i for i in props if 'Shape Factor=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @shape_factor.setter + def shape_factor(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Shape Factor=' + value]) + + @property + def reverse_isolation(self) -> float: + """Reverse Isolation + "Amplifier reverse isolation." + "Value should be between 0 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reverse Isolation') + key_val_pair = [i for i in props if 'Reverse Isolation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @reverse_isolation.setter + def reverse_isolation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) + + @property + def max_intermod_order(self) -> int: + """Max Intermod Order + "Maximum order of intermods to compute." + "Value should be between 3 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Intermod Order') + key_val_pair = [i for i in props if 'Max Intermod Order=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @max_intermod_order.setter + def max_intermod_order(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py new file mode 100644 index 00000000000..a268b9556d5 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py @@ -0,0 +1,1034 @@ +from ..GenericEmitNode import * +class AntennaNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def add_antenna_passband(self): + """Add a New Passband to this Antenna""" + return self._add_child_node("AntennaPassband") + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def tags(self) -> str: + """Tags + "Space delimited list of tags for coupling selections." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tags') + key_val_pair = [i for i in props if 'Tags=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @tags.setter + def tags(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Tags=' + value]) + + @property + def show_relative_coordinates(self) -> bool: + """Show Relative Coordinates + "Show antenna position and orientation in parent-node coords (False) or relative to placement coords (True)." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Relative Coordinates') + key_val_pair = [i for i in props if 'Show Relative Coordinates=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @show_relative_coordinates.setter + def show_relative_coordinates(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) + + @property + def position(self): + """Position + "Set position of the antenna in parent-node coordinates." + "Value should be x/y/z, delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') + key_val_pair = [i for i in props if 'Position=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @position.setter + def position(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position=' + value]) + + @property + def relative_position(self): + """Relative Position + "Set position of the antenna relative to placement coordinates." + "Value should be x/y/z, delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Position') + key_val_pair = [i for i in props if 'Relative Position=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @relative_position.setter + def relative_position(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Relative Position=' + value]) + + @property + def orientation_mode(self): + """Orientation Mode + "Select the convention (order of rotations) for configuring orientation." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation Mode') + key_val_pair = [i for i in props if 'Orientation Mode=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @orientation_mode.setter + def orientation_mode(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Orientation Mode=' + value]) + class OrientationModeOption(Enum): + RPYDEG = "Roll-Pitch-Yaw" + AETDEG = "Az-El-Twist" + + @property + def orientation(self): + """Orientation + "Set orientation of the antenna relative to parent-node coordinates." + "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation') + key_val_pair = [i for i in props if 'Orientation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @orientation.setter + def orientation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Orientation=' + value]) + + @property + def relative_orientation(self): + """Relative Orientation + "Set orientation of the antenna relative to placement coordinates." + "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Orientation') + key_val_pair = [i for i in props if 'Relative Orientation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @relative_orientation.setter + def relative_orientation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) + + @property + def position_defined(self) -> bool: + """Position Defined + "Toggles on/off the ability to define a position for the antenna." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position Defined') + key_val_pair = [i for i in props if 'Position Defined=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @position_defined.setter + def position_defined(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position Defined=' + value]) + + @property + def antenna_temperature(self) -> float: + """Antenna Temperature + "Antenna noise temperature." + "Value should be between 0 and 100000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna Temperature') + key_val_pair = [i for i in props if 'Antenna Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @antenna_temperature.setter + def antenna_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Antenna Temperature=' + value]) + + @property + def type(self): + """Type + "Defines the type of antenna." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + key_val_pair = [i for i in props if 'Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @type.setter + def type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) + class TypeOption(Enum): + SUBTYPECHOICES = "::SubTypeChoiceLabels" + + @property + def antenna_file(self) -> str: + """Antenna File + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna File') + key_val_pair = [i for i in props if 'Antenna File=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @antenna_file.setter + def antenna_file(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Antenna File=' + value]) + + @property + def project_name(self) -> str: + """Project Name + "Name of imported HFSS Antenna project." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Project Name') + key_val_pair = [i for i in props if 'Project Name=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @project_name.setter + def project_name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Project Name=' + value]) + + @property + def peak_gain(self) -> float: + """Peak Gain + "Set peak gain of antenna (dBi)." + "Value should be between -200 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Peak Gain') + key_val_pair = [i for i in props if 'Peak Gain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @peak_gain.setter + def peak_gain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Peak Gain=' + value]) + + @property + def boresight(self): + """Boresight + "Select peak beam direction in local coordinates." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Boresight') + key_val_pair = [i for i in props if 'Boresight=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @boresight.setter + def boresight(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Boresight=' + value]) + class BoresightOption(Enum): + XAXIS = "+X Axis" + YAXIS = "+Y Axis" + ZAXIS = "+Z Axis" + + @property + def vertical_beamwidth(self) -> float: + """Vertical Beamwidth + "Set half-power beamwidth in local-coordinates elevation plane." + "Value should be between 0.1 and 360." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Vertical Beamwidth') + key_val_pair = [i for i in props if 'Vertical Beamwidth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @vertical_beamwidth.setter + def vertical_beamwidth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Vertical Beamwidth=' + value]) + + @property + def horizontal_beamwidth(self) -> float: + """Horizontal Beamwidth + "Set half-power beamwidth in local-coordinates azimuth plane." + "Value should be between 0.1 and 360." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Horizontal Beamwidth') + key_val_pair = [i for i in props if 'Horizontal Beamwidth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @horizontal_beamwidth.setter + def horizontal_beamwidth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Horizontal Beamwidth=' + value]) + + @property + def extra_sidelobe(self) -> bool: + """Extra Sidelobe + "Toggle (on/off) option to define two sidelobe levels." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Extra Sidelobe') + key_val_pair = [i for i in props if 'Extra Sidelobe=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @extra_sidelobe.setter + def extra_sidelobe(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Extra Sidelobe=' + value]) + + @property + def first_sidelobe_level(self) -> float: + """First Sidelobe Level + "Set reduction in the gain of Directive Beam antenna for first sidelobe level." + "Value should be between 0 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'First Sidelobe Level') + key_val_pair = [i for i in props if 'First Sidelobe Level=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @first_sidelobe_level.setter + def first_sidelobe_level(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['First Sidelobe Level=' + value]) + + @property + def first_sidelobe_vert_bw(self) -> float: + """First Sidelobe Vert. BW + "Set beamwidth of first sidelobe beam in theta direction." + "Value should be between 0.1 and 360." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'First Sidelobe Vert. BW') + key_val_pair = [i for i in props if 'First Sidelobe Vert. BW=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @first_sidelobe_vert_bw.setter + def first_sidelobe_vert_bw(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['First Sidelobe Vert. BW=' + value]) + + @property + def first_sidelobe_hor_bw(self) -> float: + """First Sidelobe Hor. BW + "Set beamwidth of first sidelobe beam in phi direction." + "Value should be between 0.1 and 360." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'First Sidelobe Hor. BW') + key_val_pair = [i for i in props if 'First Sidelobe Hor. BW=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @first_sidelobe_hor_bw.setter + def first_sidelobe_hor_bw(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['First Sidelobe Hor. BW=' + value]) + + @property + def outerbacklobe_level(self) -> float: + """Outer/Backlobe Level + "Set reduction in gain of Directive Beam antenna for outer/backlobe level." + "Value should be between 0 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Outer/Backlobe Level') + key_val_pair = [i for i in props if 'Outer/Backlobe Level=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @outerbacklobe_level.setter + def outerbacklobe_level(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Outer/Backlobe Level=' + value]) + + @property + def resonant_frequency(self) -> float: + """Resonant Frequency + "Set first resonant frequency of wire dipole, monopole, or parametric antenna." + "Value should be between 1 and 1e+13." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Resonant Frequency') + key_val_pair = [i for i in props if 'Resonant Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @resonant_frequency.setter + def resonant_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Resonant Frequency=' + value]) + + @property + def slot_length(self) -> float: + """Slot Length + "Set slot length of parametric slot." + "Value should be greater than 1e-06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Slot Length') + key_val_pair = [i for i in props if 'Slot Length=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @slot_length.setter + def slot_length(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Slot Length=' + value]) + + @property + def mouth_width(self) -> float: + """Mouth Width + "Set mouth width (along local y-axis) of the horn antenna." + "Value should be between 1e-06 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mouth Width') + key_val_pair = [i for i in props if 'Mouth Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @mouth_width.setter + def mouth_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mouth Width=' + value]) + + @property + def mouth_height(self) -> float: + """Mouth Height + "Set mouth height (along local x-axis) of the horn antenna." + "Value should be between 1e-06 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mouth Height') + key_val_pair = [i for i in props if 'Mouth Height=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @mouth_height.setter + def mouth_height(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mouth Height=' + value]) + + @property + def waveguide_width(self) -> float: + """Waveguide Width + "Set waveguide width (along local y-axis) where flared horn walls meet the feed, determines cut-off frequency." + "Value should be between 1e-06 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Waveguide Width') + key_val_pair = [i for i in props if 'Waveguide Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @waveguide_width.setter + def waveguide_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Waveguide Width=' + value]) + + @property + def width_flare_half_angle(self) -> float: + """Width Flare Half-angle + "Set half-angle (degrees) of flared horn walls measured in local yz-plane from boresight (z) axis to either wall." + "Value should be between 1 and 89.9." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Width Flare Half-angle') + key_val_pair = [i for i in props if 'Width Flare Half-angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @width_flare_half_angle.setter + def width_flare_half_angle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Width Flare Half-angle=' + value]) + + @property + def height_flare_half_angle(self) -> float: + """Height Flare Half-angle + "Set half-angle (degrees) of flared horn walls measured in local xz-plane from boresight (z) axis to either wall." + "Value should be between 1 and 89.9." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Height Flare Half-angle') + key_val_pair = [i for i in props if 'Height Flare Half-angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @height_flare_half_angle.setter + def height_flare_half_angle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Height Flare Half-angle=' + value]) + + @property + def mouth_diameter(self) -> float: + """Mouth Diameter + "Set aperture (mouth) diameter of horn antenna." + "Value should be between 1e-06 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mouth Diameter') + key_val_pair = [i for i in props if 'Mouth Diameter=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @mouth_diameter.setter + def mouth_diameter(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mouth Diameter=' + value]) + + @property + def flare_half_angle(self) -> float: + """Flare Half-angle + "Set half-angle (degrees) of conical horn wall measured from boresight (z)." + "Value should be between 1 and 89.9." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Flare Half-angle') + key_val_pair = [i for i in props if 'Flare Half-angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @flare_half_angle.setter + def flare_half_angle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Flare Half-angle=' + value]) + + @property + def vswr(self) -> float: + """VSWR + "The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch between the antenna and the RF System (or outboard component)." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'VSWR') + key_val_pair = [i for i in props if 'VSWR=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @vswr.setter + def vswr(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['VSWR=' + value]) + + @property + def antenna_polarization(self): + """Antenna Polarization + "Choose local-coordinates polarization along boresight." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna Polarization') + key_val_pair = [i for i in props if 'Antenna Polarization=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @antenna_polarization.setter + def antenna_polarization(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Antenna Polarization=' + value]) + class AntennaPolarizationOption(Enum): + VERTICAL = "Vertical" + HORIZONTAL = "Horizontal" + RHCP = "RHCP" + LHCP = "LHCP" + + @property + def cross_dipole_mode(self): + """Cross Dipole Mode + "Choose the Cross Dipole type." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Cross Dipole Mode') + key_val_pair = [i for i in props if 'Cross Dipole Mode=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @cross_dipole_mode.setter + def cross_dipole_mode(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Cross Dipole Mode=' + value]) + class CrossDipoleModeOption(Enum): + FREESTANDING = "Freestanding" + OVER_GROUND_PLANE = "Over Ground Plane" + + @property + def cross_dipole_polarization(self): + """Cross Dipole Polarization + "Choose local-coordinates polarization along boresight." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Cross Dipole Polarization') + key_val_pair = [i for i in props if 'Cross Dipole Polarization=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @cross_dipole_polarization.setter + def cross_dipole_polarization(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Cross Dipole Polarization=' + value]) + class CrossDipolePolarizationOption(Enum): + RHCP = "RHCP" + LHCP = "LHCP" + + @property + def override_height(self) -> bool: + """Override Height + "Ignores the default placement of quarter design wavelength over the ground plane." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Override Height') + key_val_pair = [i for i in props if 'Override Height=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @override_height.setter + def override_height(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Override Height=' + value]) + + @property + def offset_height(self) -> float: + """Offset Height + "Sets the offset height for the current sources above the ground plane." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Offset Height') + key_val_pair = [i for i in props if 'Offset Height=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @offset_height.setter + def offset_height(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Offset Height=' + value]) + + @property + def auto_height_offset(self) -> bool: + """Auto Height Offset + "Switch on to automatically place slot current at sub-wavelength offset height above ground plane." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Auto Height Offset') + key_val_pair = [i for i in props if 'Auto Height Offset=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @auto_height_offset.setter + def auto_height_offset(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Auto Height Offset=' + value]) + + @property + def conform__adjust_antenna(self) -> bool: + """Conform / Adjust Antenna + "Toggle (on/off) conformal adjustment for array antenna elements." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Conform / Adjust Antenna') + key_val_pair = [i for i in props if 'Conform / Adjust Antenna=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @conform__adjust_antenna.setter + def conform__adjust_antenna(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Conform / Adjust Antenna=' + value]) + + @property + def element_offset(self): + """Element Offset + "Set vector for shifting element positions in antenna local coordinates." + "Value should be x/y/z, delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Element Offset') + key_val_pair = [i for i in props if 'Element Offset=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @element_offset.setter + def element_offset(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Element Offset=' + value]) + + @property + def conform_to_platform(self): + """Conform to Platform + "Select method of automated conforming applied after Element Offset." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Conform to Platform') + key_val_pair = [i for i in props if 'Conform to Platform=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @conform_to_platform.setter + def conform_to_platform(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Conform to Platform=' + value]) + class ConformtoPlatformOption(Enum): + NONE = "None" + ALONG_NORMAL = "Along Normal" + PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" + + @property + def reference_plane(self): + """Reference Plane + "Select reference plane for determining original element heights." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reference Plane') + key_val_pair = [i for i in props if 'Reference Plane=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @reference_plane.setter + def reference_plane(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Reference Plane=' + value]) + class ReferencePlaneOption(Enum): + XY_PLANE = "XY Plane" + YZ_PLANE = "YZ Plane" + ZX_PLANE = "ZX Plane" + + @property + def conform_element_orientation(self) -> bool: + """Conform Element Orientation + "Toggle (on/off) re-orientation of elements to conform to curved placement surface." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Conform Element Orientation') + key_val_pair = [i for i in props if 'Conform Element Orientation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @conform_element_orientation.setter + def conform_element_orientation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Conform Element Orientation=' + value]) + + @property + def show_axes(self) -> bool: + """Show Axes + "Toggle (on/off) display of antenna coordinate axes in 3-D window." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Axes') + key_val_pair = [i for i in props if 'Show Axes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @show_axes.setter + def show_axes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Axes=' + value]) + + @property + def show_icon(self) -> bool: + """Show Icon + "Toggle (on/off) display of antenna marker (cone) in 3-D window." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Icon') + key_val_pair = [i for i in props if 'Show Icon=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @show_icon.setter + def show_icon(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Icon=' + value]) + + @property + def size(self) -> float: + """Size + "Adjust relative size of antenna marker (cone) in 3-D window." + "Value should be between 0.001 and 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Size') + key_val_pair = [i for i in props if 'Size=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @size.setter + def size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Size=' + value]) + + @property + def color(self): + """Color + "Set color of antenna marker (cone) in 3-D window." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Color') + key_val_pair = [i for i in props if 'Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @color.setter + def color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Color=' + value]) + + @property + def el_sample_interval(self) -> float: + """El Sample Interval + "Space between elevation-angle samples of pattern." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'El Sample Interval') + key_val_pair = [i for i in props if 'El Sample Interval=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def az_sample_interval(self) -> float: + """Az Sample Interval + "Space between azimuth-angle samples of pattern." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Az Sample Interval') + key_val_pair = [i for i in props if 'Az Sample Interval=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def has_frequency_domain(self) -> bool: + """Has Frequency Domain + "False if antenna can be used at any frequency." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Has Frequency Domain') + key_val_pair = [i for i in props if 'Has Frequency Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def frequency_domain(self): + """Frequency Domain + "Frequency sample(s) defining antenna." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency Domain') + key_val_pair = [i for i in props if 'Frequency Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def number_of_electric_sources(self) -> int: + """Number of Electric Sources + "Number of freestanding electric current sources defining antenna." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Electric Sources') + key_val_pair = [i for i in props if 'Number of Electric Sources=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def number_of_magnetic_sources(self) -> int: + """Number of Magnetic Sources + "Number of freestanding magnetic current sources defining antenna." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Magnetic Sources') + key_val_pair = [i for i in props if 'Number of Magnetic Sources=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def number_of_imaged_electric_sources(self) -> int: + """Number of Imaged Electric Sources + "Number of imaged, half-space radiating electric current sources defining antenna." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Imaged Electric Sources') + key_val_pair = [i for i in props if 'Number of Imaged Electric Sources=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def number_of_imaged_magnetic_sources(self) -> int: + """Number of Imaged Magnetic Sources + "Number of imaged, half-space radiating magnetic current sources defining antenna." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Imaged Magnetic Sources') + key_val_pair = [i for i in props if 'Number of Imaged Magnetic Sources=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def waveguide_height(self) -> float: + """Waveguide Height + "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Waveguide Height') + key_val_pair = [i for i in props if 'Waveguide Height=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def waveguide_cutoff_frequency(self) -> float: + """Waveguide Cutoff Frequency + "Implied lowest operating frequency of pyramidal horn antenna." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Waveguide Cutoff Frequency') + key_val_pair = [i for i in props if 'Waveguide Cutoff Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def aperture_cutoff_frequency(self) -> float: + """Aperture Cutoff Frequency + "Implied lowest operating frequency of conical horn antenna." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Aperture Cutoff Frequency') + key_val_pair = [i for i in props if 'Aperture Cutoff Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def swe_mode_truncation(self): + """SWE Mode Truncation + "Select the method for stability-enhancing truncation of spherical wave expansion terms." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'SWE Mode Truncation') + key_val_pair = [i for i in props if 'SWE Mode Truncation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @swe_mode_truncation.setter + def swe_mode_truncation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['SWE Mode Truncation=' + value]) + class SWEModeTruncationOption(Enum): + DYNAMIC = "Dynamic" + CUSTOM = "Fixed (Custom)" + NONE = "None" + + @property + def max_n_index(self) -> int: + """Max N Index + "Set maximum allowed index N for spherical wave expansion terms." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max N Index') + key_val_pair = [i for i in props if 'Max N Index=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @max_n_index.setter + def max_n_index(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max N Index=' + value]) + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @notes.setter + def notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def show_composite_passband(self) -> bool: + """Show Composite Passband + "Show plot instead of 3D window." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Composite Passband') + key_val_pair = [i for i in props if 'Show Composite Passband=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @show_composite_passband.setter + def show_composite_passband(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Composite Passband=' + value]) + + @property + def use_phase_center(self) -> bool: + """Use Phase Center + "Use the phase center defined in the HFSS design." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Phase Center') + key_val_pair = [i for i in props if 'Use Phase Center=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @use_phase_center.setter + def use_phase_center(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use Phase Center=' + value]) + + @property + def coordinate_systems(self) -> str: + """Coordinate Systems + "Specifies the coordinate system for the phase center of this antenna." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Coordinate Systems') + key_val_pair = [i for i in props if 'Coordinate Systems=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def phasecenterposition(self): + """PhaseCenterPosition + "Set position of the antennas linked coordinate system.." + "Value should be x/y/z, delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'PhaseCenterPosition') + key_val_pair = [i for i in props if 'PhaseCenterPosition=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def phasecenterorientation(self): + """PhaseCenterOrientation + "Set orientation of the antennas linked coordinate system.." + "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'PhaseCenterOrientation') + key_val_pair = [i for i in props if 'PhaseCenterOrientation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py new file mode 100644 index 00000000000..eae11eb3287 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py @@ -0,0 +1,142 @@ +from ..GenericEmitNode import * +class AntennaPassband(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def enabled(self): + """Enabled state for this node.""" + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + @enabled.setter + def enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + + @property + def passband_loss(self) -> float: + """Passband Loss + "Passband loss." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Passband Loss') + key_val_pair = [i for i in props if 'Passband Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @passband_loss.setter + def passband_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Passband Loss=' + value]) + + @property + def out_of_band_attenuation(self) -> float: + """Out of Band Attenuation + "Out of band antenna loss." + "Value should be between 0 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out of Band Attenuation') + key_val_pair = [i for i in props if 'Out of Band Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @out_of_band_attenuation.setter + def out_of_band_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Out of Band Attenuation=' + value]) + + @property + def lower_stop_band(self) -> float: + """Lower Stop Band + "Lower stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') + key_val_pair = [i for i in props if 'Lower Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @lower_stop_band.setter + def lower_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + + @property + def lower_cutoff(self) -> float: + """Lower Cutoff + "Lower cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') + key_val_pair = [i for i in props if 'Lower Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @lower_cutoff.setter + def lower_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + + @property + def higher_cutoff(self) -> float: + """Higher Cutoff + "Higher cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') + key_val_pair = [i for i in props if 'Higher Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @higher_cutoff.setter + def higher_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + + @property + def higher_stop_band(self) -> float: + """Higher Stop Band + "Higher stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') + key_val_pair = [i for i in props if 'Higher Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @higher_stop_band.setter + def higher_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @notes.setter + def notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py new file mode 100644 index 00000000000..47a9960d931 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -0,0 +1,1035 @@ +from ..GenericEmitNode import * +class Band(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def enabled(self): + """Enabled state for this node.""" + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + @enabled.setter + def enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + + @property + def port(self): + """Port + "Radio Port associated with this Band." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port') + key_val_pair = [i for i in props if 'Port=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @port.setter + def port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Port=' + value]) + class PortOption(Enum): + PARENTANTENNASIDEPORTS = "::Parent::AntennaSidePorts" + + @property + def use_dd_1494_mode(self) -> bool: + """Use DD-1494 Mode + "Uses DD-1494 parameters to define the Tx/Rx spectrum." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use DD-1494 Mode') + key_val_pair = [i for i in props if 'Use DD-1494 Mode=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @use_dd_1494_mode.setter + def use_dd_1494_mode(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use DD-1494 Mode=' + value]) + + @property + def use_emission_designator(self) -> bool: + """Use Emission Designator + "Uses the Emission Designator to define the bandwidth and modulation." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Emission Designator') + key_val_pair = [i for i in props if 'Use Emission Designator=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @use_emission_designator.setter + def use_emission_designator(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use Emission Designator=' + value]) + + @property + def emission_designator(self) -> str: + """Emission Designator + "Enter the Emission Designator to define the bandwidth and modulation." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Emission Designator') + key_val_pair = [i for i in props if 'Emission Designator=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @emission_designator.setter + def emission_designator(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Emission Designator=' + value]) + + @property + def emission_designator_ch_bw(self) -> float: + """Emission Designator Ch. BW + "Channel Bandwidth based off the emission designator." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Emission Designator Ch. BW') + key_val_pair = [i for i in props if 'Emission Designator Ch. BW=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def emit_modulation_type(self) -> str: + """EMIT Modulation Type + "Modulation based off the emission designator." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'EMIT Modulation Type') + key_val_pair = [i for i in props if 'EMIT Modulation Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def override_emission_designator_bw(self) -> bool: + """Override Emission Designator BW + "Enables the 3 dB channel bandwidth to equal a value < emission designator bandwidth." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Override Emission Designator BW') + key_val_pair = [i for i in props if 'Override Emission Designator BW=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @override_emission_designator_bw.setter + def override_emission_designator_bw(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Override Emission Designator BW=' + value]) + + @property + def channel_bandwidth(self) -> float: + """Channel Bandwidth + "Channel Bandwidth." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Channel Bandwidth') + key_val_pair = [i for i in props if 'Channel Bandwidth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @channel_bandwidth.setter + def channel_bandwidth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Channel Bandwidth=' + value]) + + @property + def modulation(self): + """Modulation + "Modulation used for the transmitted/received signal." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Modulation') + key_val_pair = [i for i in props if 'Modulation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @modulation.setter + def modulation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Modulation=' + value]) + class ModulationOption(Enum): + GENERIC = "Generic" + AM = "AM" + LSB = "LSB" + USB = "USB" + FM = "FM" + FSK = "FSK" + MSK = "MSK" + PSK = "PSK" + QAM = "QAM" + APSK = "APSK" + RADAR = "Radar" + + @property + def waveform(self): + """Waveform + "Modulation used for the transmitted/received signal." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Waveform') + key_val_pair = [i for i in props if 'Waveform=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @waveform.setter + def waveform(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Waveform=' + value]) + class WaveformOption(Enum): + PERIODIC_CLOCK = "Periodic Clock" + SPREAD_SPECTRUM = "Spread Spectrum Clock" + PRBS = "PRBS" + PRBS_PERIODIC = "PRBS (Periodic)" + IMPORTED = "Imported" + + @property + def max_modulating_freq(self) -> float: + """Max Modulating Freq. + "Maximum modulating frequency: helps determine spectral profile." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Modulating Freq.') + key_val_pair = [i for i in props if 'Max Modulating Freq.=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @max_modulating_freq.setter + def max_modulating_freq(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Modulating Freq.=' + value]) + + @property + def modulation_index(self) -> float: + """Modulation Index + "AM modulation index: helps determine spectral profile." + "Value should be between 0.01 and 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Modulation Index') + key_val_pair = [i for i in props if 'Modulation Index=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @modulation_index.setter + def modulation_index(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Modulation Index=' + value]) + + @property + def freq_deviation(self) -> float: + """Freq. Deviation + "Frequency deviation: helps determine spectral profile." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Freq. Deviation') + key_val_pair = [i for i in props if 'Freq. Deviation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @freq_deviation.setter + def freq_deviation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Freq. Deviation=' + value]) + + @property + def bit_rate(self) -> float: + """Bit Rate + "Maximum bit rate: helps determine width of spectral profile." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bit Rate') + key_val_pair = [i for i in props if 'Bit Rate=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @bit_rate.setter + def bit_rate(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Bit Rate=' + value]) + + @property + def sidelobes(self) -> int: + """Sidelobes + "Number of sidelobes in spectral profile." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Sidelobes') + key_val_pair = [i for i in props if 'Sidelobes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @sidelobes.setter + def sidelobes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Sidelobes=' + value]) + + @property + def freq_deviation_(self) -> float: + """Freq. Deviation + "FSK frequency deviation: helps determine spectral profile." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Freq. Deviation ') + key_val_pair = [i for i in props if 'Freq. Deviation =' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @freq_deviation_.setter + def freq_deviation_(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Freq. Deviation =' + value]) + + @property + def psk_type(self): + """PSK Type + "PSK modulation order: helps determine spectral profile." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'PSK Type') + key_val_pair = [i for i in props if 'PSK Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @psk_type.setter + def psk_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['PSK Type=' + value]) + class PSKTypeOption(Enum): + BPSK = "BPSK" + QPSK = "QPSK" + _8_PSK = "8-PSK" + _16_PSK = "16-PSK" + _32_PSK = "32-PSK" + _64_PSK = "64-PSK" + + @property + def fsk_type(self): + """FSK Type + "FSK modulation order: helps determine spectral profile." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'FSK Type') + key_val_pair = [i for i in props if 'FSK Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @fsk_type.setter + def fsk_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['FSK Type=' + value]) + class FSKTypeOption(Enum): + _2_FSK = "2-FSK" + _4_FSK = "4-FSK" + _8_FSK = "8-FSK" + + @property + def qam_type(self): + """QAM Type + "QAM modulation order: helps determine spectral profile." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'QAM Type') + key_val_pair = [i for i in props if 'QAM Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @qam_type.setter + def qam_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['QAM Type=' + value]) + class QAMTypeOption(Enum): + _4_QAM = "4-QAM" + _16_QAM = "16-QAM" + _64_QAM = "64-QAM" + _256_QAM = "256-QAM" + _1024_QAM = "1024-QAM" + + @property + def apsk_type(self): + """APSK Type + "APSK modulation order: helps determine spectral profile." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'APSK Type') + key_val_pair = [i for i in props if 'APSK Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @apsk_type.setter + def apsk_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['APSK Type=' + value]) + class APSKTypeOption(Enum): + _4_APSK = "4-APSK" + _16_APSK = "16-APSK" + _64_APSK = "64-APSK" + _256_APSK = "256-APSK" + _1024_APSK = "1024-APSK" + + @property + def start_frequency(self) -> float: + """Start Frequency + "First frequency for this band." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Start Frequency') + key_val_pair = [i for i in props if 'Start Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @start_frequency.setter + def start_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Start Frequency=' + value]) + + @property + def stop_frequency(self) -> float: + """Stop Frequency + "Last frequency for this band." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop Frequency') + key_val_pair = [i for i in props if 'Stop Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @stop_frequency.setter + def stop_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Stop Frequency=' + value]) + + @property + def channel_spacing(self) -> float: + """Channel Spacing + "Spacing between channels within this band." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Channel Spacing') + key_val_pair = [i for i in props if 'Channel Spacing=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @channel_spacing.setter + def channel_spacing(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Channel Spacing=' + value]) + + @property + def tx_offset(self) -> float: + """Tx Offset + "Frequency offset between Tx and Rx channels." + "Value should be less than 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx Offset') + key_val_pair = [i for i in props if 'Tx Offset=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @tx_offset.setter + def tx_offset(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Tx Offset=' + value]) + + @property + def clock_duty_cycle(self) -> float: + """Clock Duty Cycle + "Clock signals duty cycle." + "Value should be between 0.001 and 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Clock Duty Cycle') + key_val_pair = [i for i in props if 'Clock Duty Cycle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @clock_duty_cycle.setter + def clock_duty_cycle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Clock Duty Cycle=' + value]) + + @property + def clock_risefall_time(self) -> float: + """Clock Rise/Fall Time + "Clock signals rise/fall time." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Clock Rise/Fall Time') + key_val_pair = [i for i in props if 'Clock Rise/Fall Time=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @clock_risefall_time.setter + def clock_risefall_time(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Clock Rise/Fall Time=' + value]) + + @property + def spreading_type(self): + """Spreading Type + "Type of spreading employed by the Spread Spectrum Clock." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spreading Type') + key_val_pair = [i for i in props if 'Spreading Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @spreading_type.setter + def spreading_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Spreading Type=' + value]) + class SpreadingTypeOption(Enum): + LOW_SPREAD = "Low Spread" + CENTER_SPREAD = "Center Spread" + HIGH_SPREAD = "High Spread" + + @property + def spread_percentage(self) -> float: + """Spread Percentage + "Peak-to-peak spread percentage." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spread Percentage') + key_val_pair = [i for i in props if 'Spread Percentage=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @spread_percentage.setter + def spread_percentage(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Spread Percentage=' + value]) + + @property + def imported_spectrum(self) -> str: + """Imported Spectrum + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Imported Spectrum') + key_val_pair = [i for i in props if 'Imported Spectrum=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @imported_spectrum.setter + def imported_spectrum(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Imported Spectrum=' + value]) + + @property + def raw_data_format(self) -> str: + """Raw Data Format + "Format of the imported raw data." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Raw Data Format') + key_val_pair = [i for i in props if 'Raw Data Format=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def system_impedance(self) -> float: + """System Impedance + "System impedance for the imported data." + "Value should be between 0 and 1e+06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'System Impedance') + key_val_pair = [i for i in props if 'System Impedance=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @system_impedance.setter + def system_impedance(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['System Impedance=' + value]) + + @property + def advanced_extraction_params(self) -> bool: + """Advanced Extraction Params + "Show/hide advanced extraction params." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Advanced Extraction Params') + key_val_pair = [i for i in props if 'Advanced Extraction Params=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @advanced_extraction_params.setter + def advanced_extraction_params(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Advanced Extraction Params=' + value]) + + @property + def nb_window_size(self) -> float: + """NB Window Size + "Window size for computing the moving average during narrowband signal detection." + "Value should be greater than 3." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'NB Window Size') + key_val_pair = [i for i in props if 'NB Window Size=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @nb_window_size.setter + def nb_window_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['NB Window Size=' + value]) + + @property + def bb_smoothing_factor(self) -> float: + """BB Smoothing Factor + "Reduces the number of frequency points used for the broadband noise." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BB Smoothing Factor') + key_val_pair = [i for i in props if 'BB Smoothing Factor=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @bb_smoothing_factor.setter + def bb_smoothing_factor(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['BB Smoothing Factor=' + value]) + + @property + def nb_detector_threshold(self) -> float: + """NB Detector Threshold + "Narrowband Detector threshold standard deviation." + "Value should be between 2 and 10." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'NB Detector Threshold') + key_val_pair = [i for i in props if 'NB Detector Threshold=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @nb_detector_threshold.setter + def nb_detector_threshold(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['NB Detector Threshold=' + value]) + + @property + def algorithm(self): + """Algorithm + "Algorithm used to transform the imported time domain spectrum." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Algorithm') + key_val_pair = [i for i in props if 'Algorithm=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @algorithm.setter + def algorithm(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Algorithm=' + value]) + class AlgorithmOption(Enum): + FFT = "FFT" + FOURIER_TRANSFORM = "Fourier Transform" + + @property + def start(self) -> float: + """Start + "Initial time of the imported spectrum." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Start') + key_val_pair = [i for i in props if 'Start=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @start.setter + def start(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Start=' + value]) + + @property + def stop(self) -> float: + """Stop + "Final time of the imported time domain spectrum." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop') + key_val_pair = [i for i in props if 'Stop=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @stop.setter + def stop(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Stop=' + value]) + + @property + def max_frequency(self) -> float: + """Max Frequency + "Frequency cutoff of the imported time domain spectrum." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Frequency') + key_val_pair = [i for i in props if 'Max Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @max_frequency.setter + def max_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Frequency=' + value]) + + @property + def window_type(self): + """Window Type + "Windowing scheme used for importing time domain spectrum." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Window Type') + key_val_pair = [i for i in props if 'Window Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @window_type.setter + def window_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Window Type=' + value]) + class WindowTypeOption(Enum): + RECTANGULAR = "Rectangular" + BARTLETT = "Bartlett" + BLACKMAN = "Blackman" + HAMMING = "Hamming" + HANNING = "Hanning" + KAISER = "Kaiser" + LANZCOS = "Lanzcos" + WELCH = "Welch" + WEBER = "Weber" + + @property + def kaiser_parameter(self) -> float: + """Kaiser Parameter + "Shape factor applied to the transform." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Kaiser Parameter') + key_val_pair = [i for i in props if 'Kaiser Parameter=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @kaiser_parameter.setter + def kaiser_parameter(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Kaiser Parameter=' + value]) + + @property + def adjust_coherent_gain(self) -> bool: + """Adjust Coherent Gain + "Shape factor applied to the transform." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adjust Coherent Gain') + key_val_pair = [i for i in props if 'Adjust Coherent Gain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @adjust_coherent_gain.setter + def adjust_coherent_gain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adjust Coherent Gain=' + value]) + + @property + def data_rate(self) -> float: + """Data Rate + "Maximum data rate: helps determine shape of spectral profile." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Rate') + key_val_pair = [i for i in props if 'Data Rate=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @data_rate.setter + def data_rate(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Rate=' + value]) + + @property + def _of_bits(self) -> int: + """# of Bits + "Length of the Pseudo Random Binary Sequence." + "Value should be between 1 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'# of Bits') + key_val_pair = [i for i in props if '# of Bits=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @_of_bits.setter + def _of_bits(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['# of Bits=' + value]) + + @property + def use_envelope(self) -> bool: + """Use Envelope + "Model the waveform as a worst case envelope.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Envelope') + key_val_pair = [i for i in props if 'Use Envelope=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @use_envelope.setter + def use_envelope(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use Envelope=' + value]) + + @property + def min_ptsnull(self) -> int: + """Min Pts/Null + "Minimum number of points to use between each null frequency." + "Value should be between 2 and 50." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Pts/Null') + key_val_pair = [i for i in props if 'Min Pts/Null=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @min_ptsnull.setter + def min_ptsnull(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Min Pts/Null=' + value]) + + @property + def delay_skew(self) -> float: + """Delay Skew + "Delay Skew of the differential signal pairs." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Delay Skew') + key_val_pair = [i for i in props if 'Delay Skew=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @delay_skew.setter + def delay_skew(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Delay Skew=' + value]) + + @property + def radar_type(self): + """Radar Type + "Radar type: helps determine spectral profile." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Radar Type') + key_val_pair = [i for i in props if 'Radar Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @radar_type.setter + def radar_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Radar Type=' + value]) + class RadarTypeOption(Enum): + CW = "CW" + FM_CW = "FM-CW" + FM_PULSE = "FM Pulse" + NON_FM_PULSE = "Non-FM Pulse" + PHASE_CODED = "Phase Coded" + + @property + def hopping_radar(self) -> bool: + """Hopping Radar + "True for hopping radars; false otherwise." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Hopping Radar') + key_val_pair = [i for i in props if 'Hopping Radar=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @hopping_radar.setter + def hopping_radar(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Hopping Radar=' + value]) + + @property + def post_october_2020_procurement(self) -> bool: + """Post October 2020 Procurement + "Procurement date: helps determine spectral profile, particularly the roll-off." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Post October 2020 Procurement') + key_val_pair = [i for i in props if 'Post October 2020 Procurement=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @post_october_2020_procurement.setter + def post_october_2020_procurement(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Post October 2020 Procurement=' + value]) + + @property + def hop_range_min_freq(self) -> float: + """Hop Range Min Freq + "Sets the minimum frequency of the hopping range." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Hop Range Min Freq') + key_val_pair = [i for i in props if 'Hop Range Min Freq=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @hop_range_min_freq.setter + def hop_range_min_freq(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Hop Range Min Freq=' + value]) + + @property + def hop_range_max_freq(self) -> float: + """Hop Range Max Freq + "Sets the maximum frequency of the hopping range." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Hop Range Max Freq') + key_val_pair = [i for i in props if 'Hop Range Max Freq=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @hop_range_max_freq.setter + def hop_range_max_freq(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Hop Range Max Freq=' + value]) + + @property + def pulse_duration(self) -> float: + """Pulse Duration + "Pulse duration." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Duration') + key_val_pair = [i for i in props if 'Pulse Duration=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @pulse_duration.setter + def pulse_duration(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pulse Duration=' + value]) + + @property + def pulse_rise_time(self) -> float: + """Pulse Rise Time + "Pulse rise time." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Rise Time') + key_val_pair = [i for i in props if 'Pulse Rise Time=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @pulse_rise_time.setter + def pulse_rise_time(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pulse Rise Time=' + value]) + + @property + def pulse_fall_time(self) -> float: + """Pulse Fall Time + "Pulse fall time." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Fall Time') + key_val_pair = [i for i in props if 'Pulse Fall Time=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @pulse_fall_time.setter + def pulse_fall_time(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pulse Fall Time=' + value]) + + @property + def pulse_repetition_rate(self) -> float: + """Pulse Repetition Rate + "Pulse repetition rate [pulses/sec]." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Repetition Rate') + key_val_pair = [i for i in props if 'Pulse Repetition Rate=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @pulse_repetition_rate.setter + def pulse_repetition_rate(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pulse Repetition Rate=' + value]) + + @property + def number_of_chips(self) -> float: + """Number of Chips + "Total number of chips (subpulses) contained in the pulse." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Chips') + key_val_pair = [i for i in props if 'Number of Chips=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @number_of_chips.setter + def number_of_chips(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Number of Chips=' + value]) + + @property + def pulse_compression_ratio(self) -> float: + """Pulse Compression Ratio + "Pulse compression ratio." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Compression Ratio') + key_val_pair = [i for i in props if 'Pulse Compression Ratio=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @pulse_compression_ratio.setter + def pulse_compression_ratio(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pulse Compression Ratio=' + value]) + + @property + def fm_chirp_period(self) -> float: + """FM Chirp Period + "FM Chirp period for the FM/CW radar." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'FM Chirp Period') + key_val_pair = [i for i in props if 'FM Chirp Period=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @fm_chirp_period.setter + def fm_chirp_period(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['FM Chirp Period=' + value]) + + @property + def fm_freq_deviation(self) -> float: + """FM Freq Deviation + "Total frequency deviation for the carrier frequency for the FM/CW radar." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'FM Freq Deviation') + key_val_pair = [i for i in props if 'FM Freq Deviation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @fm_freq_deviation.setter + def fm_freq_deviation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['FM Freq Deviation=' + value]) + + @property + def fm_freq_dev_bandwidth(self) -> float: + """FM Freq Dev Bandwidth + "Bandwidth of freq deviation for FM modulated pulsed waveform (total freq shift during pulse duration)." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'FM Freq Dev Bandwidth') + key_val_pair = [i for i in props if 'FM Freq Dev Bandwidth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @fm_freq_dev_bandwidth.setter + def fm_freq_dev_bandwidth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['FM Freq Dev Bandwidth=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_BandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py similarity index 61% rename from src/ansys/aedt/core/emit_core/nodes/generated/Node_BandFolder.py rename to src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py index a12f7ef8198..40e463af537 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_BandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py @@ -1,8 +1,18 @@ -class Node_BandFolder(GenericEmitNode): +from ..GenericEmitNode import * +class BandFolder(GenericEmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False GenericEmitNode.__init__(self, oDesign, result_id, node_id) + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def add_band(self): + """Create a New Band""" + return self._add_child_node("Band") + def rename(self, new_name): """Rename this node""" self._rename(new_name) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py new file mode 100644 index 00000000000..d16d0891e08 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py @@ -0,0 +1,279 @@ +from ..GenericEmitNode import * +class BandTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + key_val_pair = [i for i in props if 'Data Source=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @data_source.setter + def data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def tx_or_rx(self): + """Tx or Rx + "Specifies whether the trace is a Tx or Rx channel." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx or Rx') + key_val_pair = [i for i in props if 'Tx or Rx=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @tx_or_rx.setter + def tx_or_rx(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Tx or Rx=' + value]) + class TxorRxOption(Enum): + TX = "Tx" + RX = "Rx" + + @property + def channel_frequency(self): + """Channel Frequency + "Select band channel frequency to display." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Channel Frequency') + key_val_pair = [i for i in props if 'Channel Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @channel_frequency.setter + def channel_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Channel Frequency=' + value]) + + @property + def transmit_frequency(self) -> float: + """Transmit Frequency + "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Transmit Frequency') + key_val_pair = [i for i in props if 'Transmit Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def visible(self) -> bool: + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + key_val_pair = [i for i in props if 'Visible=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @visible.setter + def visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def custom_legend(self) -> bool: + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + key_val_pair = [i for i in props if 'Custom Legend=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @custom_legend.setter + def custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def name(self) -> str: + """Name + "Enter name of plot trace as it will appear in legend." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + key_val_pair = [i for i in props if 'Name=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @name.setter + def name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def style(self): + """Style + "Specify line style of plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + key_val_pair = [i for i in props if 'Style=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @style.setter + def style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + + @property + def line_width(self) -> int: + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + key_val_pair = [i for i in props if 'Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_width.setter + def line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + key_val_pair = [i for i in props if 'Line Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_color.setter + def line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + key_val_pair = [i for i in props if 'Symbol=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol.setter + def symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + + @property + def symbol_size(self) -> int: + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + key_val_pair = [i for i in props if 'Symbol Size=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_size.setter + def symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + key_val_pair = [i for i in props if 'Symbol Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_color.setter + def symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def symbol_line_width(self) -> int: + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + key_val_pair = [i for i in props if 'Symbol Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_line_width.setter + def symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def symbol_filled(self) -> bool: + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + key_val_pair = [i for i in props if 'Symbol Filled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_filled.setter + def symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py new file mode 100644 index 00000000000..6a3de209a06 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py @@ -0,0 +1,670 @@ +from ..GenericEmitNode import * +class CADNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def file(self) -> str: + """File + "Name of the imported CAD file." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'File') + key_val_pair = [i for i in props if 'File=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def model_type(self): + """Model Type + "Select type of parametric model to create." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Model Type') + key_val_pair = [i for i in props if 'Model Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @model_type.setter + def model_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Model Type=' + value]) + class ModelTypeOption(Enum): + PLATE = "Plate" + BOX = "Box" + DIHEDRAL = "Dihedral" + TRIHEDRAL = "Trihedral" + CYLINDER = "Cylinder" + TAPERED_CYLINDER = "Tapered Cylinder" + CONE = "Cone" + SPHERE = "Sphere" + ELLIPSOID = "Ellipsoid" + CIRCULAR_PLATE = "Circular Plate" + PARABOLA = "Parabola" + PRISM = "Prism" + TAPERED_PRISM = "Tapered Prism" + TOPHAT = "Tophat" + + @property + def length(self) -> float: + """Length + "Length of the model." + "Value should be greater than 1e-06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Length') + key_val_pair = [i for i in props if 'Length=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @length.setter + def length(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Length=' + value]) + + @property + def width(self) -> float: + """Width + "Width of the model." + "Value should be greater than 1e-06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Width') + key_val_pair = [i for i in props if 'Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @width.setter + def width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Width=' + value]) + + @property + def height(self) -> float: + """Height + "Height of the model." + "Value should be greater than 1e-06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Height') + key_val_pair = [i for i in props if 'Height=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @height.setter + def height(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Height=' + value]) + + @property + def angle(self) -> float: + """Angle + "Angle (deg) between the plates." + "Value should be between 0 and 360." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Angle') + key_val_pair = [i for i in props if 'Angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @angle.setter + def angle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Angle=' + value]) + + @property + def top_side(self) -> float: + """Top Side + "Side of the top of a equilateral triangular cylinder model." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Top Side') + key_val_pair = [i for i in props if 'Top Side=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @top_side.setter + def top_side(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Top Side=' + value]) + + @property + def top_radius(self) -> float: + """Top Radius + "Radius of the top of a tapered cylinder model." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Top Radius') + key_val_pair = [i for i in props if 'Top Radius=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @top_radius.setter + def top_radius(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Top Radius=' + value]) + + @property + def side(self) -> float: + """Side + "Side of the equilateral triangular cylinder." + "Value should be greater than 1e-06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Side') + key_val_pair = [i for i in props if 'Side=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @side.setter + def side(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Side=' + value]) + + @property + def radius(self) -> float: + """Radius + "Radius of the sphere or cylinder." + "Value should be greater than 1e-06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Radius') + key_val_pair = [i for i in props if 'Radius=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @radius.setter + def radius(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Radius=' + value]) + + @property + def base_radius(self) -> float: + """Base Radius + "Radius of the base of a tophat model." + "Value should be greater than 1e-06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Base Radius') + key_val_pair = [i for i in props if 'Base Radius=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @base_radius.setter + def base_radius(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Base Radius=' + value]) + + @property + def center_radius(self) -> float: + """Center Radius + "Radius of the raised portion of a tophat model." + "Value should be greater than 1e-06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Center Radius') + key_val_pair = [i for i in props if 'Center Radius=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @center_radius.setter + def center_radius(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Center Radius=' + value]) + + @property + def x_axis_ellipsoid_radius(self) -> float: + """X Axis Ellipsoid Radius + "Ellipsoid semi-principal radius for the X axis." + "Value should be greater than 1e-06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X Axis Ellipsoid Radius') + key_val_pair = [i for i in props if 'X Axis Ellipsoid Radius=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @x_axis_ellipsoid_radius.setter + def x_axis_ellipsoid_radius(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['X Axis Ellipsoid Radius=' + value]) + + @property + def y_axis_ellipsoid_radius(self) -> float: + """Y Axis Ellipsoid Radius + "Ellipsoid semi-principal radius for the Y axis." + "Value should be greater than 1e-06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y Axis Ellipsoid Radius') + key_val_pair = [i for i in props if 'Y Axis Ellipsoid Radius=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @y_axis_ellipsoid_radius.setter + def y_axis_ellipsoid_radius(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y Axis Ellipsoid Radius=' + value]) + + @property + def z_axis_ellipsoid_radius(self) -> float: + """Z Axis Ellipsoid Radius + "Ellipsoid semi-principal radius for the Z axis." + "Value should be greater than 1e-06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Z Axis Ellipsoid Radius') + key_val_pair = [i for i in props if 'Z Axis Ellipsoid Radius=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @z_axis_ellipsoid_radius.setter + def z_axis_ellipsoid_radius(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Z Axis Ellipsoid Radius=' + value]) + + @property + def focal_length(self) -> float: + """Focal Length + "Focal length of a parabolic reflector (f = 1/4a where y=ax^2)." + "Value should be greater than 1e-06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Focal Length') + key_val_pair = [i for i in props if 'Focal Length=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @focal_length.setter + def focal_length(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Focal Length=' + value]) + + @property + def offset(self) -> float: + """Offset + "Offset of parabolic reflector." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Offset') + key_val_pair = [i for i in props if 'Offset=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @offset.setter + def offset(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Offset=' + value]) + + @property + def x_direction_taper(self) -> float: + """X Direction Taper + "Amount (%) that the prism tapers in the X dimension from one end to the other." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X Direction Taper') + key_val_pair = [i for i in props if 'X Direction Taper=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @x_direction_taper.setter + def x_direction_taper(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['X Direction Taper=' + value]) + + @property + def y_direction_taper(self) -> float: + """Y Direction Taper + "Amount (%) that the prism tapers in the Y dimension from one end to the other." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y Direction Taper') + key_val_pair = [i for i in props if 'Y Direction Taper=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @y_direction_taper.setter + def y_direction_taper(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y Direction Taper=' + value]) + + @property + def prism_direction(self): + """Prism Direction + "Direction vector between the center of the base and center of the top." + "Value should be x/y/z, delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Prism Direction') + key_val_pair = [i for i in props if 'Prism Direction=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @prism_direction.setter + def prism_direction(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Prism Direction=' + value]) + + @property + def closed_top(self) -> bool: + """Closed Top + "Control whether the top of the model is closed." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Closed Top') + key_val_pair = [i for i in props if 'Closed Top=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @closed_top.setter + def closed_top(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Closed Top=' + value]) + + @property + def closed_base(self) -> bool: + """Closed Base + "Control whether the base of the model is closed." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Closed Base') + key_val_pair = [i for i in props if 'Closed Base=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @closed_base.setter + def closed_base(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Closed Base=' + value]) + + @property + def mesh_density(self) -> int: + """Mesh Density + "Unitless mesh density parameter where higher value improves mesh smoothness." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mesh Density') + key_val_pair = [i for i in props if 'Mesh Density=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @mesh_density.setter + def mesh_density(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mesh Density=' + value]) + + @property + def use_symmetric_mesh(self) -> bool: + """Use Symmetric Mesh + "Convert quads to a symmetric triangle mesh by adding a center point (4 triangles per quad instead of 2)." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Symmetric Mesh') + key_val_pair = [i for i in props if 'Use Symmetric Mesh=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @use_symmetric_mesh.setter + def use_symmetric_mesh(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use Symmetric Mesh=' + value]) + + @property + def mesh_option(self): + """Mesh Option + "Select from different meshing options." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mesh Option') + key_val_pair = [i for i in props if 'Mesh Option=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @mesh_option.setter + def mesh_option(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mesh Option=' + value]) + class MeshOptionOption(Enum): + IMPROVED = "Improved" + LEGACY = "Legacy" + + @property + def coating_index(self) -> int: + """Coating Index + "Coating index for the parametric model primitive." + "Value should be between 0 and 100000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Coating Index') + key_val_pair = [i for i in props if 'Coating Index=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @coating_index.setter + def coating_index(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Coating Index=' + value]) + + @property + def show_relative_coordinates(self) -> bool: + """Show Relative Coordinates + "Show CAD model node position and orientation in parent-node coords (False) or relative to placement coords (True)." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Relative Coordinates') + key_val_pair = [i for i in props if 'Show Relative Coordinates=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @show_relative_coordinates.setter + def show_relative_coordinates(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) + + @property + def position(self): + """Position + "Set position of the CAD node in parent-node coordinates." + "Value should be x/y/z, delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') + key_val_pair = [i for i in props if 'Position=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @position.setter + def position(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position=' + value]) + + @property + def relative_position(self): + """Relative Position + "Set position of the CAD model node relative to placement coordinates." + "Value should be x/y/z, delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Position') + key_val_pair = [i for i in props if 'Relative Position=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @relative_position.setter + def relative_position(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Relative Position=' + value]) + + @property + def orientation_mode(self): + """Orientation Mode + "Select the convention (order of rotations) for configuring orientation." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation Mode') + key_val_pair = [i for i in props if 'Orientation Mode=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @orientation_mode.setter + def orientation_mode(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Orientation Mode=' + value]) + class OrientationModeOption(Enum): + RPYDEG = "Roll-Pitch-Yaw" + AETDEG = "Az-El-Twist" + + @property + def orientation(self): + """Orientation + "Set orientation of the CAD node in parent-node coordinates." + "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation') + key_val_pair = [i for i in props if 'Orientation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @orientation.setter + def orientation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Orientation=' + value]) + + @property + def relative_orientation(self): + """Relative Orientation + "Set orientation of the CAD model node relative to placement coordinates." + "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Orientation') + key_val_pair = [i for i in props if 'Relative Orientation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @relative_orientation.setter + def relative_orientation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) + + @property + def visible(self) -> bool: + """Visible + "Toggle (on/off) display of CAD model in 3-D window." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + key_val_pair = [i for i in props if 'Visible=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @visible.setter + def visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def render_mode(self): + """Render Mode + "Select drawing style for surfaces." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Render Mode') + key_val_pair = [i for i in props if 'Render Mode=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @render_mode.setter + def render_mode(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Render Mode=' + value]) + class RenderModeOption(Enum): + FLAT_SHADED = "Flat-Shaded" + WIRE_FRAME = "Wire-Frame" + HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" + OUTLINE = "Outline" + + @property + def show_axes(self) -> bool: + """Show Axes + "Toggle (on/off) display of CAD model coordinate axes in 3-D window." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Axes') + key_val_pair = [i for i in props if 'Show Axes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @show_axes.setter + def show_axes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Axes=' + value]) + + @property + def min(self): + """Min + "Minimum x,y,z extents of CAD model in local coordinates." + "Value should be x/y/z, delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min') + key_val_pair = [i for i in props if 'Min=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def max(self): + """Max + "Maximum x,y,z extents of CAD model in local coordinates." + "Value should be x/y/z, delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max') + key_val_pair = [i for i in props if 'Max=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def number_of_surfaces(self) -> int: + """Number of Surfaces + "Number of surfaces in the model." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Surfaces') + key_val_pair = [i for i in props if 'Number of Surfaces=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def color(self): + """Color + "Defines the CAD nodes color." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Color') + key_val_pair = [i for i in props if 'Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @color.setter + def color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Color=' + value]) + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @notes.setter + def notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py new file mode 100644 index 00000000000..47366e46765 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -0,0 +1,176 @@ +from ..GenericEmitNode import * +class Cable(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def filename(self) -> str: + """Filename + "Name of file defining the outboard component." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + key_val_pair = [i for i in props if 'Filename=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @filename.setter + def filename(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + + @property + def noise_temperature(self) -> float: + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + key_val_pair = [i for i in props if 'Noise Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @noise_temperature.setter + def noise_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @notes.setter + def notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def type(self): + """Type + "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + key_val_pair = [i for i in props if 'Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @type.setter + def type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) + class TypeOption(Enum): + BYFILE = "By File" + CONSTANT = "Constant Loss" + COAXIAL = "Coaxial Cable" + + @property + def length(self) -> float: + """Length + "Length of cable." + "Value should be between 0 and 500." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Length') + key_val_pair = [i for i in props if 'Length=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @length.setter + def length(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Length=' + value]) + + @property + def loss_per_length(self) -> float: + """Loss Per Length + "Cable loss per unit length (dB/meter)." + "Value should be between 0 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Loss Per Length') + key_val_pair = [i for i in props if 'Loss Per Length=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @loss_per_length.setter + def loss_per_length(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Loss Per Length=' + value]) + + @property + def measurement_length(self) -> float: + """Measurement Length + "Length of the cable used for the measurements." + "Value should be between 0 and 500." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measurement Length') + key_val_pair = [i for i in props if 'Measurement Length=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @measurement_length.setter + def measurement_length(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Measurement Length=' + value]) + + @property + def resistive_loss_constant(self) -> float: + """Resistive Loss Constant + "Coaxial cable resistive loss constant." + "Value should be between 0 and 2." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Resistive Loss Constant') + key_val_pair = [i for i in props if 'Resistive Loss Constant=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @resistive_loss_constant.setter + def resistive_loss_constant(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Resistive Loss Constant=' + value]) + + @property + def dielectric_loss_constant(self) -> float: + """Dielectric Loss Constant + "Coaxial cable dielectric loss constant." + "Value should be between 0 and 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Dielectric Loss Constant') + key_val_pair = [i for i in props if 'Dielectric Loss Constant=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @dielectric_loss_constant.setter + def dielectric_loss_constant(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Dielectric Loss Constant=' + value]) + + @property + def warnings(self) -> str: + """Warnings + "Warning(s) for this node." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + key_val_pair = [i for i in props if 'Warnings=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_ComponentGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py similarity index 67% rename from src/ansys/aedt/core/emit_core/nodes/generated/Node_ComponentGroup.py rename to src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py index 20becdb4df1..b64ae5b791d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_ComponentGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py @@ -1,4 +1,5 @@ -class Node_ComponentGroup(GenericEmitNode): +from ..GenericEmitNode import * +class CategoriesViewNode(GenericEmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False GenericEmitNode.__init__(self, oDesign, result_id, node_id) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py new file mode 100644 index 00000000000..b48f6e9a176 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -0,0 +1,257 @@ +from ..GenericEmitNode import * +class Circulator(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def filename(self) -> str: + """Filename + "Name of file defining the Isolator/Circulator." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + key_val_pair = [i for i in props if 'Filename=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @filename.setter + def filename(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + + @property + def noise_temperature(self) -> float: + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + key_val_pair = [i for i in props if 'Noise Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @noise_temperature.setter + def noise_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @notes.setter + def notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def type(self): + """Type + "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + key_val_pair = [i for i in props if 'Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @type.setter + def type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) + class TypeOption(Enum): + BYFILE = "By File" + PARAMETRIC = "Parametric" + + @property + def port_1_location(self): + """Port 1 Location + "Defines the orientation of the circulator.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port 1 Location') + key_val_pair = [i for i in props if 'Port 1 Location=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @port_1_location.setter + def port_1_location(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Port 1 Location=' + value]) + class Port1LocationOption(Enum): + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" + + @property + def insertion_loss(self) -> float: + """Insertion Loss + "Circulator in-band loss in forward direction.." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') + key_val_pair = [i for i in props if 'Insertion Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @insertion_loss.setter + def insertion_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + + @property + def finite_reverse_isolation(self) -> bool: + """Finite Reverse Isolation + "Use a finite reverse isolation. If disabled, the circulator model is ideal (infinite reverse isolation).." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Reverse Isolation') + key_val_pair = [i for i in props if 'Finite Reverse Isolation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @finite_reverse_isolation.setter + def finite_reverse_isolation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Reverse Isolation=' + value]) + + @property + def reverse_isolation(self) -> float: + """Reverse Isolation + "Circulator reverse isolation (i.e., loss in the reverse direction).." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reverse Isolation') + key_val_pair = [i for i in props if 'Reverse Isolation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @reverse_isolation.setter + def reverse_isolation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) + + @property + def finite_bandwidth(self) -> bool: + """Finite Bandwidth + "Use a finite bandwidth. If disabled, the circulator model is ideal (infinite bandwidth).." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Bandwidth') + key_val_pair = [i for i in props if 'Finite Bandwidth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @finite_bandwidth.setter + def finite_bandwidth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) + + @property + def out_of_band_attenuation(self) -> float: + """Out-of-band Attenuation + "Out-of-band loss (attenuation)." + "Value should be between 0 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out-of-band Attenuation') + key_val_pair = [i for i in props if 'Out-of-band Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @out_of_band_attenuation.setter + def out_of_band_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) + + @property + def lower_stop_band(self) -> float: + """Lower Stop Band + "Lower stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') + key_val_pair = [i for i in props if 'Lower Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @lower_stop_band.setter + def lower_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + + @property + def lower_cutoff(self) -> float: + """Lower Cutoff + "Lower cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') + key_val_pair = [i for i in props if 'Lower Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @lower_cutoff.setter + def lower_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + + @property + def higher_cutoff(self) -> float: + """Higher Cutoff + "Higher cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') + key_val_pair = [i for i in props if 'Higher Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @higher_cutoff.setter + def higher_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + + @property + def higher_stop_band(self) -> float: + """Higher Stop Band + "Higher stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') + key_val_pair = [i for i in props if 'Higher Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @higher_stop_band.setter + def higher_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + + @property + def warnings(self) -> str: + """Warnings + "Warning(s) for this node." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + key_val_pair = [i for i in props if 'Warnings=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py new file mode 100644 index 00000000000..09bbddbcf25 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py @@ -0,0 +1,27 @@ +from ..GenericEmitNode import * +class CouplingLinkNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling link." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enabled.setter + def enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py new file mode 100644 index 00000000000..ee6d54d8cd8 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py @@ -0,0 +1,362 @@ +from ..GenericEmitNode import * +class CouplingTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + key_val_pair = [i for i in props if 'Data Source=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @data_source.setter + def data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def visible(self) -> bool: + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + key_val_pair = [i for i in props if 'Visible=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @visible.setter + def visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def custom_legend(self) -> bool: + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + key_val_pair = [i for i in props if 'Custom Legend=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @custom_legend.setter + def custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def name(self) -> str: + """Name + "Enter name of plot trace as it will appear in legend." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + key_val_pair = [i for i in props if 'Name=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @name.setter + def name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def style(self): + """Style + "Specify line style of plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + key_val_pair = [i for i in props if 'Style=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @style.setter + def style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + + @property + def line_width(self) -> int: + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + key_val_pair = [i for i in props if 'Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_width.setter + def line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + key_val_pair = [i for i in props if 'Line Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_color.setter + def line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + key_val_pair = [i for i in props if 'Symbol=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol.setter + def symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + + @property + def symbol_size(self) -> int: + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + key_val_pair = [i for i in props if 'Symbol Size=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_size.setter + def symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + key_val_pair = [i for i in props if 'Symbol Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_color.setter + def symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def symbol_line_width(self) -> int: + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + key_val_pair = [i for i in props if 'Symbol Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_line_width.setter + def symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def symbol_filled(self) -> bool: + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + key_val_pair = [i for i in props if 'Symbol Filled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_filled.setter + def symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + + @property + def highlight_regions(self) -> bool: + """Highlight Regions + "If true, regions of the trace are highlighted." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Highlight Regions') + key_val_pair = [i for i in props if 'Highlight Regions=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @highlight_regions.setter + def highlight_regions(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Highlight Regions=' + value]) + + @property + def show_region_labels(self) -> bool: + """Show Region Labels + "If true, regions of the trace are labelled." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Region Labels') + key_val_pair = [i for i in props if 'Show Region Labels=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @show_region_labels.setter + def show_region_labels(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Region Labels=' + value]) + + @property + def font(self): + """Font + "Specify font used for the label." + "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Font') + key_val_pair = [i for i in props if 'Font=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @font.setter + def font(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Font=' + value]) + + @property + def color(self): + """Color + "Specify color of the label text." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Color') + key_val_pair = [i for i in props if 'Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @color.setter + def color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Color=' + value]) + + @property + def background_color(self): + """Background Color + "Set color of the label text background." + "Color should be in RGBA form: #AARRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Background Color') + key_val_pair = [i for i in props if 'Background Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @background_color.setter + def background_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Background Color=' + value]) + + @property + def border(self) -> bool: + """Border + "Display a border around the label text." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border') + key_val_pair = [i for i in props if 'Border=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @border.setter + def border(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border=' + value]) + + @property + def border_width(self) -> int: + """Border Width + "Set the width of the border around the label text." + "Value should be between 1 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border Width') + key_val_pair = [i for i in props if 'Border Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @border_width.setter + def border_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border Width=' + value]) + + @property + def border_color(self): + """Border Color + "Set color of the border around the label text." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border Color') + key_val_pair = [i for i in props if 'Border Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @border_color.setter + def border_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border Color=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py new file mode 100644 index 00000000000..f05f9953092 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py @@ -0,0 +1,90 @@ +from ..GenericEmitNode import * +class CouplingsNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def import_touchstone(self, file_name): + """Open an Existing S-Matrix Data File""" + return self._import(file_name,'TouchstoneCoupling') + + def add_custom_coupling(self): + """Add a new node to define custom coupling between antennas""" + return self._add_child_node("CustomCouplingNode") + + def add_path_loss_coupling(self): + """Add a new node to define path loss coupling between antennas""" + return self._add_child_node("PropagationLossCouplingNode") + + def add_two_ray_path_loss_coupling(self): + """Add a new node to define two ray ground reflection coupling between antennas""" + return self._add_child_node("TwoRayPathLossCouplingNode") + + def add_log_distance_coupling(self): + """Add a new node to define coupling between antennas using the Log Distance model""" + return self._add_child_node("LogDistanceCouplingNode") + + def add_hata_coupling(self): + """Add a new node to define coupling between antennas using the Hata COST 231 model""" + return self._add_child_node("HataCouplingNode") + + def add_walfisch_ikegami_coupling(self): + """Add a new node to define coupling between antennas using the Walfisch-Ikegami model""" + return self._add_child_node("WalfischCouplingNode") + + def add_erceg_coupling(self): + """Add a new node to define coupling between antennas using the Erceg coupling model""" + return self._add_child_node("ErcegCouplingNode") + + def add_indoor_propagation_coupling(self): + """Add a new node to define coupling between antennas using the ITU Indoor Propagation model""" + return self._add_child_node("IndoorPropagationCouplingNode") + + def add__5g_channel_model_coupling(self): + """Add a new node to define coupling between antennas using the 5G channel coupling model""" + return self._add_child_node("FiveGChannelModel") + + @property + def minimum_allowed_coupling(self) -> float: + """Minimum Allowed Coupling + "Global minimum allowed coupling value. All computed coupling within this project will be >= this value." + "Value should be between -1000 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minimum Allowed Coupling') + key_val_pair = [i for i in props if 'Minimum Allowed Coupling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @minimum_allowed_coupling.setter + def minimum_allowed_coupling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Minimum Allowed Coupling=' + value]) + + @property + def global_default_coupling(self) -> float: + """Global Default Coupling + "Default antenna-to-antenna coupling loss value." + "Value should be between -1000 and 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Global Default Coupling') + key_val_pair = [i for i in props if 'Global Default Coupling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @global_default_coupling.setter + def global_default_coupling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Global Default Coupling=' + value]) + + @property + def antenna_tags(self) -> str: + """Antenna Tags + "All tags currently used by all antennas in the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna Tags') + key_val_pair = [i for i in props if 'Antenna Tags=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py new file mode 100644 index 00000000000..0ee027c3385 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py @@ -0,0 +1,90 @@ +from ..GenericEmitNode import * +class CustomCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def import_csv_file(self, file_name): + """Import a CSV File...""" + return self._import(file_name,'Csv') + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enabled.setter + def enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def enable_refinement(self) -> bool: + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + key_val_pair = [i for i in props if 'Enable Refinement=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enable_refinement.setter + def enable_refinement(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + + @property + def adaptive_sampling(self) -> bool: + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @adaptive_sampling.setter + def adaptive_sampling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + + @property + def refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + key_val_pair = [i for i in props if 'Refinement Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @refinement_domain.setter + def refinement_domain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py new file mode 100644 index 00000000000..7720b977568 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py @@ -0,0 +1,406 @@ +from ..GenericEmitNode import * +class EmiPlotMarkerNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def visible(self) -> bool: + """Visible + "Toggle (on/off) this marker." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + key_val_pair = [i for i in props if 'Visible=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @visible.setter + def visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def attached(self): + """Attached + "Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False)." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Attached') + key_val_pair = [i for i in props if 'Attached=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @attached.setter + def attached(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Attached=' + value]) + + @property + def position(self) -> float: + """Position + "Set position of the marker along the X-axis." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') + key_val_pair = [i for i in props if 'Position=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def position(self) -> float: + """Position + "Set position of the marker along the Y-axis." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') + key_val_pair = [i for i in props if 'Position=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def floating_label(self) -> bool: + """Floating Label + "Allow marker label to be positioned at a fixed point on the plot window (the marker symbol remains fixed to the specified X-Y point)." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Floating Label') + key_val_pair = [i for i in props if 'Floating Label=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @floating_label.setter + def floating_label(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Floating Label=' + value]) + + @property + def position_from_left(self) -> float: + """Position from Left + "Set position of label from left to right as a percentage of the width of the plot window." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position from Left') + key_val_pair = [i for i in props if 'Position from Left=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @position_from_left.setter + def position_from_left(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position from Left=' + value]) + + @property + def position_from_top(self) -> float: + """Position from Top + "Set position of label from top to bottom as a percentage of the height of the plot window." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position from Top') + key_val_pair = [i for i in props if 'Position from Top=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @position_from_top.setter + def position_from_top(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position from Top=' + value]) + + @property + def text(self) -> str: + """Text + "Set the text of the label." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Text') + key_val_pair = [i for i in props if 'Text=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @text.setter + def text(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Text=' + value]) + + @property + def horizontal_position(self): + """Horizontal Position + "Specify horizontal position of the label as compared to the symbol." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Horizontal Position') + key_val_pair = [i for i in props if 'Horizontal Position=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @horizontal_position.setter + def horizontal_position(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Horizontal Position=' + value]) + class HorizontalPositionOption(Enum): + LEFT = "Left" + RIGHT = "Right" + CENTER = "Center" + + @property + def vertical_position(self): + """Vertical Position + "Specify vertical position of the label as compared to the symbol." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Vertical Position') + key_val_pair = [i for i in props if 'Vertical Position=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @vertical_position.setter + def vertical_position(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Vertical Position=' + value]) + class VerticalPositionOption(Enum): + TOP = "Top" + BOTTOM = "Bottom" + CENTER = "Center" + + @property + def text_alignment(self): + """Text Alignment + "Specify justification applied to multi-line text." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Text Alignment') + key_val_pair = [i for i in props if 'Text Alignment=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @text_alignment.setter + def text_alignment(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Text Alignment=' + value]) + class TextAlignmentOption(Enum): + LEFT = "Left" + RIGHT = "Right" + CENTER = "Center" + + @property + def font(self): + """Font + "Specify font used for the label." + "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Font') + key_val_pair = [i for i in props if 'Font=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @font.setter + def font(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Font=' + value]) + + @property + def color(self): + """Color + "Specify color of the label text." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Color') + key_val_pair = [i for i in props if 'Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @color.setter + def color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Color=' + value]) + + @property + def background_color(self): + """Background Color + "Set color of the label text background." + "Color should be in RGBA form: #AARRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Background Color') + key_val_pair = [i for i in props if 'Background Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @background_color.setter + def background_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Background Color=' + value]) + + @property + def border(self) -> bool: + """Border + "Display a border around the label text." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border') + key_val_pair = [i for i in props if 'Border=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @border.setter + def border(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border=' + value]) + + @property + def border_width(self) -> int: + """Border Width + "Set the width of the border around the label text." + "Value should be between 1 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border Width') + key_val_pair = [i for i in props if 'Border Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @border_width.setter + def border_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border Width=' + value]) + + @property + def border_color(self): + """Border Color + "Set color of the border around the label text." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border Color') + key_val_pair = [i for i in props if 'Border Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @border_color.setter + def border_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border Color=' + value]) + + @property + def symbol(self): + """Symbol + "Specify symbol displayed next to the label." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + key_val_pair = [i for i in props if 'Symbol=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol.setter + def symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + ARROW = "Arrow" + + @property + def arrow_direction(self) -> int: + """Arrow Direction + "Set direction of the arrow; zero degrees is up." + "Value should be between -360 and 360." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Arrow Direction') + key_val_pair = [i for i in props if 'Arrow Direction=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @arrow_direction.setter + def arrow_direction(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Arrow Direction=' + value]) + + @property + def symbol_size(self) -> int: + """Symbol Size + "Set size of the symbol used for this marker." + "Value should be between 1 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + key_val_pair = [i for i in props if 'Symbol Size=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_size.setter + def symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def symbol_color(self): + """Symbol Color + "Set color of the symbol used for this marker." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + key_val_pair = [i for i in props if 'Symbol Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_color.setter + def symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def line_width(self) -> int: + """Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + key_val_pair = [i for i in props if 'Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_width.setter + def line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def filled(self) -> bool: + """Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filled') + key_val_pair = [i for i in props if 'Filled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @filled.setter + def filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py new file mode 100644 index 00000000000..c1ad7b2e964 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py @@ -0,0 +1,59 @@ +from ..GenericEmitNode import * +class EmitSceneNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def add_group(self): + """Add a new scene group""" + return self._add_child_node("sceneGroupNode") + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @notes.setter + def notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def ground_plane_normal(self): + """Ground Plane Normal + "Specifies the axis of the normal to the ground plane." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Ground Plane Normal') + key_val_pair = [i for i in props if 'Ground Plane Normal=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @ground_plane_normal.setter + def ground_plane_normal(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Ground Plane Normal=' + value]) + class GroundPlaneNormalOption(Enum): + XAXIS = "X Axis" + YAXIS = "Y Axis" + ZAXIS = "Z Axis" + + @property + def gp_position_along_normal(self) -> float: + """GP Position Along Normal + "Offset of ground plane in direction normal to the ground planes orientation." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'GP Position Along Normal') + key_val_pair = [i for i in props if 'GP Position Along Normal=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @gp_position_along_normal.setter + def gp_position_along_normal(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['GP Position Along Normal=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py new file mode 100644 index 00000000000..7bf7335e6a5 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py @@ -0,0 +1,333 @@ +from ..GenericEmitNode import * +class ErcegCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enabled.setter + def enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def enable_refinement(self) -> bool: + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + key_val_pair = [i for i in props if 'Enable Refinement=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enable_refinement.setter + def enable_refinement(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + + @property + def adaptive_sampling(self) -> bool: + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @adaptive_sampling.setter + def adaptive_sampling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + + @property + def refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + key_val_pair = [i for i in props if 'Refinement Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @refinement_domain.setter + def refinement_domain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + + @property + def terrain_category(self): + """Terrain Category + "Specify the terrain category type for the Erceg model." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Terrain Category') + key_val_pair = [i for i in props if 'Terrain Category=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @terrain_category.setter + def terrain_category(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Terrain Category=' + value]) + class TerrainCategoryOption(Enum): + TYPEA = "Type A" + TYPEB = "Type B" + TYPEC = "Type C" + + @property + def custom_fading_margin(self) -> float: + """Custom Fading Margin + "Sets a custom fading margin to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') + key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @custom_fading_margin.setter + def custom_fading_margin(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + + @property + def polarization_mismatch(self) -> float: + """Polarization Mismatch + "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') + key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @polarization_mismatch.setter + def polarization_mismatch(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + + @property + def pointing_error_loss(self) -> float: + """Pointing Error Loss + "Sets a margin for pointing error loss to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') + key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @pointing_error_loss.setter + def pointing_error_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + + @property + def fading_type(self): + """Fading Type + "Specify the type of fading to include." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') + key_val_pair = [i for i in props if 'Fading Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @fading_type.setter + def fading_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) + class FadingTypeOption(Enum): + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + + @property + def fading_availability(self) -> float: + """Fading Availability + "The probability that the propagation loss in dB is below its median value plus the margin." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') + key_val_pair = [i for i in props if 'Fading Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @fading_availability.setter + def fading_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + + @property + def std_deviation(self) -> float: + """Std Deviation + "Standard deviation modeling the random amount of shadowing loss." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') + key_val_pair = [i for i in props if 'Std Deviation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @std_deviation.setter + def std_deviation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + + @property + def include_rain_attenuation(self) -> bool: + """Include Rain Attenuation + "Adds a margin for rain attenuation to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') + key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @include_rain_attenuation.setter + def include_rain_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + + @property + def rain_availability(self) -> float: + """Rain Availability + "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." + "Value should be between 99 and 99.999." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') + key_val_pair = [i for i in props if 'Rain Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @rain_availability.setter + def rain_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + + @property + def rain_rate(self) -> float: + """Rain Rate + "Rain rate (mm/hr) exceeded for 0.01% of the time." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') + key_val_pair = [i for i in props if 'Rain Rate=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @rain_rate.setter + def rain_rate(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + + @property + def polarization_tilt_angle(self) -> float: + """Polarization Tilt Angle + "Polarization tilt angle of the transmitted signal relative to the horizontal." + "Value should be between 0 and 180." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') + key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @polarization_tilt_angle.setter + def polarization_tilt_angle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + + @property + def include_atmospheric_absorption(self) -> bool: + """Include Atmospheric Absorption + "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') + key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @include_atmospheric_absorption.setter + def include_atmospheric_absorption(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + + @property + def temperature(self) -> float: + """Temperature + "Air temperature in degrees Celsius." + "Value should be between -273 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') + key_val_pair = [i for i in props if 'Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @temperature.setter + def temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) + + @property + def total_air_pressure(self) -> float: + """Total Air Pressure + "Total air pressure." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') + key_val_pair = [i for i in props if 'Total Air Pressure=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @total_air_pressure.setter + def total_air_pressure(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + + @property + def water_vapor_concentration(self) -> float: + """Water Vapor Concentration + "Water vapor concentration." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') + key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @water_vapor_concentration.setter + def water_vapor_concentration(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py new file mode 100644 index 00000000000..b6e6e4bc46b --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -0,0 +1,388 @@ +from ..GenericEmitNode import * +class Filter(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def filename(self) -> str: + """Filename + "Name of file defining the outboard component." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + key_val_pair = [i for i in props if 'Filename=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @filename.setter + def filename(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + + @property + def noise_temperature(self) -> float: + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + key_val_pair = [i for i in props if 'Noise Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @noise_temperature.setter + def noise_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @notes.setter + def notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def type(self): + """Type + "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + key_val_pair = [i for i in props if 'Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @type.setter + def type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) + class TypeOption(Enum): + BYFILE = "By File" + LOWPASS = "Low Pass" + HIGHPASS = "High Pass" + BANDPASS = "Band Pass" + BANDSTOP = "Band Stop" + TUNABLEBANDPASS = "Tunable Bandpass" + TUNABLEBANDSTOP = "Tunable Bandstop" + + @property + def insertion_loss(self) -> float: + """Insertion Loss + "Filter pass band loss." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') + key_val_pair = [i for i in props if 'Insertion Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @insertion_loss.setter + def insertion_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + + @property + def stop_band_attenuation(self) -> float: + """Stop band Attenuation + "Filter stop band loss (attenuation)." + "Value should be less than 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop band Attenuation') + key_val_pair = [i for i in props if 'Stop band Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @stop_band_attenuation.setter + def stop_band_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Stop band Attenuation=' + value]) + + @property + def max_pass_band(self) -> float: + """Max Pass Band + "Maximum pass band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Pass Band') + key_val_pair = [i for i in props if 'Max Pass Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @max_pass_band.setter + def max_pass_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Pass Band=' + value]) + + @property + def min_stop_band(self) -> float: + """Min Stop Band + "Minimum stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Stop Band') + key_val_pair = [i for i in props if 'Min Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @min_stop_band.setter + def min_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Min Stop Band=' + value]) + + @property + def max_stop_band(self) -> float: + """Max Stop Band + "Maximum stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Stop Band') + key_val_pair = [i for i in props if 'Max Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @max_stop_band.setter + def max_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Stop Band=' + value]) + + @property + def min_pass_band(self) -> float: + """Min Pass Band + "Minimum pass band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Pass Band') + key_val_pair = [i for i in props if 'Min Pass Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @min_pass_band.setter + def min_pass_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Min Pass Band=' + value]) + + @property + def lower_stop_band(self) -> float: + """Lower Stop Band + "Lower stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') + key_val_pair = [i for i in props if 'Lower Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @lower_stop_band.setter + def lower_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + + @property + def lower_cutoff(self) -> float: + """Lower Cutoff + "Lower cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') + key_val_pair = [i for i in props if 'Lower Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @lower_cutoff.setter + def lower_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + + @property + def higher_cutoff(self) -> float: + """Higher Cutoff + "Higher cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') + key_val_pair = [i for i in props if 'Higher Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @higher_cutoff.setter + def higher_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + + @property + def higher_stop_band(self) -> float: + """Higher Stop Band + "Higher stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') + key_val_pair = [i for i in props if 'Higher Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @higher_stop_band.setter + def higher_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + + @property + def lower_cutoff_(self) -> float: + """Lower Cutoff + "Lower cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff ') + key_val_pair = [i for i in props if 'Lower Cutoff =' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @lower_cutoff_.setter + def lower_cutoff_(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff =' + value]) + + @property + def lower_stop_band_(self) -> float: + """Lower Stop Band + "Lower stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band ') + key_val_pair = [i for i in props if 'Lower Stop Band =' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @lower_stop_band_.setter + def lower_stop_band_(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band =' + value]) + + @property + def higher_stop_band_(self) -> float: + """Higher Stop Band + "Higher stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band ') + key_val_pair = [i for i in props if 'Higher Stop Band =' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @higher_stop_band_.setter + def higher_stop_band_(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band =' + value]) + + @property + def higher_cutoff_(self) -> float: + """Higher Cutoff + "Higher cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff ') + key_val_pair = [i for i in props if 'Higher Cutoff =' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @higher_cutoff_.setter + def higher_cutoff_(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff =' + value]) + + @property + def lowest_tuned_frequency_(self) -> float: + """Lowest Tuned Frequency + "Lowest tuned frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lowest Tuned Frequency ') + key_val_pair = [i for i in props if 'Lowest Tuned Frequency =' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @lowest_tuned_frequency_.setter + def lowest_tuned_frequency_(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lowest Tuned Frequency =' + value]) + + @property + def highest_tuned_frequency_(self) -> float: + """Highest Tuned Frequency + "Highest tuned frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Highest Tuned Frequency ') + key_val_pair = [i for i in props if 'Highest Tuned Frequency =' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @highest_tuned_frequency_.setter + def highest_tuned_frequency_(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Highest Tuned Frequency =' + value]) + + @property + def percent_bandwidth(self) -> float: + """Percent Bandwidth + "Tunable filter 3-dB bandwidth." + "Value should be between 0.001 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Percent Bandwidth') + key_val_pair = [i for i in props if 'Percent Bandwidth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @percent_bandwidth.setter + def percent_bandwidth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Percent Bandwidth=' + value]) + + @property + def shape_factor(self) -> float: + """Shape Factor + "Ratio defining the filter rolloff." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Shape Factor') + key_val_pair = [i for i in props if 'Shape Factor=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @shape_factor.setter + def shape_factor(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Shape Factor=' + value]) + + @property + def warnings(self) -> str: + """Warnings + "Warning(s) for this node." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + key_val_pair = [i for i in props if 'Warnings=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py new file mode 100644 index 00000000000..7feb8a2c5a5 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py @@ -0,0 +1,383 @@ +from ..GenericEmitNode import * +class FiveGChannelModel(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enabled.setter + def enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def enable_refinement(self) -> bool: + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + key_val_pair = [i for i in props if 'Enable Refinement=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enable_refinement.setter + def enable_refinement(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + + @property + def adaptive_sampling(self) -> bool: + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @adaptive_sampling.setter + def adaptive_sampling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + + @property + def refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + key_val_pair = [i for i in props if 'Refinement Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @refinement_domain.setter + def refinement_domain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + + @property + def environment(self): + """Environment + "Specify the environment for the 5G channel model." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Environment') + key_val_pair = [i for i in props if 'Environment=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @environment.setter + def environment(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Environment=' + value]) + class EnvironmentOption(Enum): + URBANMICROCELL = "Urban Microcell" + URBANMACROCELL = "Urban Macrocell" + RURALMACROCELL = "Rural Macrocell" + + @property + def los(self) -> bool: + """LOS + "True if the operating environment is line-of-sight." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'LOS') + key_val_pair = [i for i in props if 'LOS=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @los.setter + def los(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['LOS=' + value]) + + @property + def include_bpl(self) -> bool: + """Include BPL + "Includes building penetration loss if true." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include BPL') + key_val_pair = [i for i in props if 'Include BPL=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @include_bpl.setter + def include_bpl(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include BPL=' + value]) + + @property + def nyu_bpl_model(self): + """NYU BPL Model + "Specify the NYU Building Penetration Loss model." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'NYU BPL Model') + key_val_pair = [i for i in props if 'NYU BPL Model=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @nyu_bpl_model.setter + def nyu_bpl_model(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['NYU BPL Model=' + value]) + class NYUBPLModelOption(Enum): + LOWLOSSMODEL = "Low-loss model" + HIGHLOSSMODEL = "High-loss model" + + @property + def custom_fading_margin(self) -> float: + """Custom Fading Margin + "Sets a custom fading margin to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') + key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @custom_fading_margin.setter + def custom_fading_margin(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + + @property + def polarization_mismatch(self) -> float: + """Polarization Mismatch + "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') + key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @polarization_mismatch.setter + def polarization_mismatch(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + + @property + def pointing_error_loss(self) -> float: + """Pointing Error Loss + "Sets a margin for pointing error loss to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') + key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @pointing_error_loss.setter + def pointing_error_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + + @property + def fading_type(self): + """Fading Type + "Specify the type of fading to include." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') + key_val_pair = [i for i in props if 'Fading Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @fading_type.setter + def fading_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) + class FadingTypeOption(Enum): + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + + @property + def fading_availability(self) -> float: + """Fading Availability + "The probability that the propagation loss in dB is below its median value plus the margin." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') + key_val_pair = [i for i in props if 'Fading Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @fading_availability.setter + def fading_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + + @property + def std_deviation(self) -> float: + """Std Deviation + "Standard deviation modeling the random amount of shadowing loss." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') + key_val_pair = [i for i in props if 'Std Deviation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @std_deviation.setter + def std_deviation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + + @property + def include_rain_attenuation(self) -> bool: + """Include Rain Attenuation + "Adds a margin for rain attenuation to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') + key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @include_rain_attenuation.setter + def include_rain_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + + @property + def rain_availability(self) -> float: + """Rain Availability + "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." + "Value should be between 99 and 99.999." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') + key_val_pair = [i for i in props if 'Rain Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @rain_availability.setter + def rain_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + + @property + def rain_rate(self) -> float: + """Rain Rate + "Rain rate (mm/hr) exceeded for 0.01% of the time." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') + key_val_pair = [i for i in props if 'Rain Rate=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @rain_rate.setter + def rain_rate(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + + @property + def polarization_tilt_angle(self) -> float: + """Polarization Tilt Angle + "Polarization tilt angle of the transmitted signal relative to the horizontal." + "Value should be between 0 and 180." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') + key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @polarization_tilt_angle.setter + def polarization_tilt_angle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + + @property + def include_atmospheric_absorption(self) -> bool: + """Include Atmospheric Absorption + "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') + key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @include_atmospheric_absorption.setter + def include_atmospheric_absorption(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + + @property + def temperature(self) -> float: + """Temperature + "Air temperature in degrees Celsius." + "Value should be between -273 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') + key_val_pair = [i for i in props if 'Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @temperature.setter + def temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) + + @property + def total_air_pressure(self) -> float: + """Total Air Pressure + "Total air pressure." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') + key_val_pair = [i for i in props if 'Total Air Pressure=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @total_air_pressure.setter + def total_air_pressure(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + + @property + def water_vapor_concentration(self) -> float: + """Water Vapor Concentration + "Water vapor concentration." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') + key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @water_vapor_concentration.setter + def water_vapor_concentration(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py new file mode 100644 index 00000000000..65d380b384d --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py @@ -0,0 +1,334 @@ +from ..GenericEmitNode import * +class HataCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enabled.setter + def enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def enable_refinement(self) -> bool: + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + key_val_pair = [i for i in props if 'Enable Refinement=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enable_refinement.setter + def enable_refinement(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + + @property + def adaptive_sampling(self) -> bool: + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @adaptive_sampling.setter + def adaptive_sampling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + + @property + def refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + key_val_pair = [i for i in props if 'Refinement Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @refinement_domain.setter + def refinement_domain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + + @property + def environment(self): + """Environment + "Specify the environment type for the Hata model." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Environment') + key_val_pair = [i for i in props if 'Environment=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @environment.setter + def environment(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Environment=' + value]) + class EnvironmentOption(Enum): + LARGECITY = "Large City" + SMALLMEDCITY = "Small/Medium City" + SUBURBAN = "Suburban" + RURAL = "Rural" + + @property + def custom_fading_margin(self) -> float: + """Custom Fading Margin + "Sets a custom fading margin to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') + key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @custom_fading_margin.setter + def custom_fading_margin(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + + @property + def polarization_mismatch(self) -> float: + """Polarization Mismatch + "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') + key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @polarization_mismatch.setter + def polarization_mismatch(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + + @property + def pointing_error_loss(self) -> float: + """Pointing Error Loss + "Sets a margin for pointing error loss to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') + key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @pointing_error_loss.setter + def pointing_error_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + + @property + def fading_type(self): + """Fading Type + "Specify the type of fading to include." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') + key_val_pair = [i for i in props if 'Fading Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @fading_type.setter + def fading_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) + class FadingTypeOption(Enum): + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + + @property + def fading_availability(self) -> float: + """Fading Availability + "The probability that the propagation loss in dB is below its median value plus the margin." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') + key_val_pair = [i for i in props if 'Fading Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @fading_availability.setter + def fading_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + + @property + def std_deviation(self) -> float: + """Std Deviation + "Standard deviation modeling the random amount of shadowing loss." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') + key_val_pair = [i for i in props if 'Std Deviation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @std_deviation.setter + def std_deviation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + + @property + def include_rain_attenuation(self) -> bool: + """Include Rain Attenuation + "Adds a margin for rain attenuation to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') + key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @include_rain_attenuation.setter + def include_rain_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + + @property + def rain_availability(self) -> float: + """Rain Availability + "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." + "Value should be between 99 and 99.999." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') + key_val_pair = [i for i in props if 'Rain Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @rain_availability.setter + def rain_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + + @property + def rain_rate(self) -> float: + """Rain Rate + "Rain rate (mm/hr) exceeded for 0.01% of the time." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') + key_val_pair = [i for i in props if 'Rain Rate=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @rain_rate.setter + def rain_rate(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + + @property + def polarization_tilt_angle(self) -> float: + """Polarization Tilt Angle + "Polarization tilt angle of the transmitted signal relative to the horizontal." + "Value should be between 0 and 180." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') + key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @polarization_tilt_angle.setter + def polarization_tilt_angle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + + @property + def include_atmospheric_absorption(self) -> bool: + """Include Atmospheric Absorption + "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') + key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @include_atmospheric_absorption.setter + def include_atmospheric_absorption(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + + @property + def temperature(self) -> float: + """Temperature + "Air temperature in degrees Celsius." + "Value should be between -273 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') + key_val_pair = [i for i in props if 'Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @temperature.setter + def temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) + + @property + def total_air_pressure(self) -> float: + """Total Air Pressure + "Total air pressure." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') + key_val_pair = [i for i in props if 'Total Air Pressure=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @total_air_pressure.setter + def total_air_pressure(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + + @property + def water_vapor_concentration(self) -> float: + """Water Vapor Concentration + "Water vapor concentration." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') + key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @water_vapor_concentration.setter + def water_vapor_concentration(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py new file mode 100644 index 00000000000..71d97c1e96b --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py @@ -0,0 +1,351 @@ +from ..GenericEmitNode import * +class IndoorPropagationCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enabled.setter + def enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def enable_refinement(self) -> bool: + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + key_val_pair = [i for i in props if 'Enable Refinement=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enable_refinement.setter + def enable_refinement(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + + @property + def adaptive_sampling(self) -> bool: + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @adaptive_sampling.setter + def adaptive_sampling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + + @property + def refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + key_val_pair = [i for i in props if 'Refinement Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @refinement_domain.setter + def refinement_domain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + + @property + def building_type(self): + """Building Type + "Specify the building type for the Indoor Propagation model." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Building Type') + key_val_pair = [i for i in props if 'Building Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @building_type.setter + def building_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Building Type=' + value]) + class BuildingTypeOption(Enum): + RESIDENTIALAPARTMENT = "Residential Apartment" + RESIDENTIALHOUSE = "Residential House" + OFFICEBUILDING = "Office Building" + COMMERCIALBUILDING = "Commercial Building" + CUSTOMBUILDING = "Custom Building" + + @property + def number_of_floors(self) -> int: + """Number of Floors + "The number of floors separating the antennas.." + "Value should be between 1 and 3." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Floors') + key_val_pair = [i for i in props if 'Number of Floors=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @number_of_floors.setter + def number_of_floors(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Number of Floors=' + value]) + + @property + def custom_fading_margin(self) -> float: + """Custom Fading Margin + "Sets a custom fading margin to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') + key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @custom_fading_margin.setter + def custom_fading_margin(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + + @property + def polarization_mismatch(self) -> float: + """Polarization Mismatch + "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') + key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @polarization_mismatch.setter + def polarization_mismatch(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + + @property + def pointing_error_loss(self) -> float: + """Pointing Error Loss + "Sets a margin for pointing error loss to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') + key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @pointing_error_loss.setter + def pointing_error_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + + @property + def fading_type(self): + """Fading Type + "Specify the type of fading to include." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') + key_val_pair = [i for i in props if 'Fading Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @fading_type.setter + def fading_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) + class FadingTypeOption(Enum): + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + + @property + def fading_availability(self) -> float: + """Fading Availability + "The probability that the propagation loss in dB is below its median value plus the margin." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') + key_val_pair = [i for i in props if 'Fading Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @fading_availability.setter + def fading_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + + @property + def std_deviation(self) -> float: + """Std Deviation + "Standard deviation modeling the random amount of shadowing loss." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') + key_val_pair = [i for i in props if 'Std Deviation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @std_deviation.setter + def std_deviation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + + @property + def include_rain_attenuation(self) -> bool: + """Include Rain Attenuation + "Adds a margin for rain attenuation to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') + key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @include_rain_attenuation.setter + def include_rain_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + + @property + def rain_availability(self) -> float: + """Rain Availability + "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." + "Value should be between 99 and 99.999." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') + key_val_pair = [i for i in props if 'Rain Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @rain_availability.setter + def rain_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + + @property + def rain_rate(self) -> float: + """Rain Rate + "Rain rate (mm/hr) exceeded for 0.01% of the time." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') + key_val_pair = [i for i in props if 'Rain Rate=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @rain_rate.setter + def rain_rate(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + + @property + def polarization_tilt_angle(self) -> float: + """Polarization Tilt Angle + "Polarization tilt angle of the transmitted signal relative to the horizontal." + "Value should be between 0 and 180." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') + key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @polarization_tilt_angle.setter + def polarization_tilt_angle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + + @property + def include_atmospheric_absorption(self) -> bool: + """Include Atmospheric Absorption + "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') + key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @include_atmospheric_absorption.setter + def include_atmospheric_absorption(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + + @property + def temperature(self) -> float: + """Temperature + "Air temperature in degrees Celsius." + "Value should be between -273 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') + key_val_pair = [i for i in props if 'Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @temperature.setter + def temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) + + @property + def total_air_pressure(self) -> float: + """Total Air Pressure + "Total air pressure." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') + key_val_pair = [i for i in props if 'Total Air Pressure=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @total_air_pressure.setter + def total_air_pressure(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + + @property + def water_vapor_concentration(self) -> float: + """Water Vapor Concentration + "Water vapor concentration." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') + key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @water_vapor_concentration.setter + def water_vapor_concentration(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py new file mode 100644 index 00000000000..311ccf12943 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -0,0 +1,257 @@ +from ..GenericEmitNode import * +class Isolator(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def filename(self) -> str: + """Filename + "Name of file defining the outboard component." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + key_val_pair = [i for i in props if 'Filename=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @filename.setter + def filename(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + + @property + def noise_temperature(self) -> float: + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + key_val_pair = [i for i in props if 'Noise Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @noise_temperature.setter + def noise_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @notes.setter + def notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def type(self): + """Type + "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + key_val_pair = [i for i in props if 'Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @type.setter + def type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) + class TypeOption(Enum): + BYFILE = "By File" + PARAMETRIC = "Parametric" + + @property + def port_1_location(self): + """Port 1 Location + "Defines the orientation of the isolator.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port 1 Location') + key_val_pair = [i for i in props if 'Port 1 Location=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @port_1_location.setter + def port_1_location(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Port 1 Location=' + value]) + class Port1LocationOption(Enum): + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" + + @property + def insertion_loss(self) -> float: + """Insertion Loss + "Isolator in-band loss in forward direction.." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') + key_val_pair = [i for i in props if 'Insertion Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @insertion_loss.setter + def insertion_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + + @property + def finite_reverse_isolation(self) -> bool: + """Finite Reverse Isolation + "Use a finite reverse isolation. If disabled, the isolator model is ideal (infinite reverse isolation).." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Reverse Isolation') + key_val_pair = [i for i in props if 'Finite Reverse Isolation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @finite_reverse_isolation.setter + def finite_reverse_isolation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Reverse Isolation=' + value]) + + @property + def reverse_isolation(self) -> float: + """Reverse Isolation + "Isolator reverse isolation (i.e., loss in the reverse direction).." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reverse Isolation') + key_val_pair = [i for i in props if 'Reverse Isolation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @reverse_isolation.setter + def reverse_isolation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) + + @property + def finite_bandwidth(self) -> bool: + """Finite Bandwidth + "Use a finite bandwidth. If disabled, the isolator model is ideal (infinite bandwidth).." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Bandwidth') + key_val_pair = [i for i in props if 'Finite Bandwidth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @finite_bandwidth.setter + def finite_bandwidth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) + + @property + def out_of_band_attenuation(self) -> float: + """Out-of-band Attenuation + "Out-of-band loss (attenuation)." + "Value should be between 0 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out-of-band Attenuation') + key_val_pair = [i for i in props if 'Out-of-band Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @out_of_band_attenuation.setter + def out_of_band_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) + + @property + def lower_stop_band(self) -> float: + """Lower Stop Band + "Lower stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') + key_val_pair = [i for i in props if 'Lower Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @lower_stop_band.setter + def lower_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + + @property + def lower_cutoff(self) -> float: + """Lower Cutoff + "Lower cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') + key_val_pair = [i for i in props if 'Lower Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @lower_cutoff.setter + def lower_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + + @property + def higher_cutoff(self) -> float: + """Higher Cutoff + "Higher cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') + key_val_pair = [i for i in props if 'Higher Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @higher_cutoff.setter + def higher_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + + @property + def higher_stop_band(self) -> float: + """Higher Stop Band + "Higher stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') + key_val_pair = [i for i in props if 'Higher Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @higher_stop_band.setter + def higher_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + + @property + def warnings(self) -> str: + """Warnings + "Warning(s) for this node." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + key_val_pair = [i for i in props if 'Warnings=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py new file mode 100644 index 00000000000..bf97053bb47 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py @@ -0,0 +1,353 @@ +from ..GenericEmitNode import * +class LogDistanceCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enabled.setter + def enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def enable_refinement(self) -> bool: + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + key_val_pair = [i for i in props if 'Enable Refinement=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enable_refinement.setter + def enable_refinement(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + + @property + def adaptive_sampling(self) -> bool: + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @adaptive_sampling.setter + def adaptive_sampling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + + @property + def refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + key_val_pair = [i for i in props if 'Refinement Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @refinement_domain.setter + def refinement_domain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + + @property + def environment(self): + """Environment + "Specify the environment type for the Log Distance model." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Environment') + key_val_pair = [i for i in props if 'Environment=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @environment.setter + def environment(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Environment=' + value]) + class EnvironmentOption(Enum): + FREESPACE = "Free Space" + URBAN = "Urban" + SHADOWEDURBAN = "Shadowed Urban" + BUILDINGLINEOFSIGHT = "Building - Line of Sight" + BUILDINGOBSTRUCTED = "Building - Obstructed" + FACTORYOBSTRUCTED = "Factory - Obstructed" + CUSTOMEXPONENT = "Custom" + + @property + def path_loss_exponent(self) -> float: + """Path Loss Exponent + "Path Loss Exponent." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Path Loss Exponent') + key_val_pair = [i for i in props if 'Path Loss Exponent=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @path_loss_exponent.setter + def path_loss_exponent(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Path Loss Exponent=' + value]) + + @property + def custom_fading_margin(self) -> float: + """Custom Fading Margin + "Sets a custom fading margin to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') + key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @custom_fading_margin.setter + def custom_fading_margin(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + + @property + def polarization_mismatch(self) -> float: + """Polarization Mismatch + "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') + key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @polarization_mismatch.setter + def polarization_mismatch(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + + @property + def pointing_error_loss(self) -> float: + """Pointing Error Loss + "Sets a margin for pointing error loss to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') + key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @pointing_error_loss.setter + def pointing_error_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + + @property + def fading_type(self): + """Fading Type + "Specify the type of fading to include." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') + key_val_pair = [i for i in props if 'Fading Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @fading_type.setter + def fading_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) + class FadingTypeOption(Enum): + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + + @property + def fading_availability(self) -> float: + """Fading Availability + "The probability that the propagation loss in dB is below its median value plus the margin." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') + key_val_pair = [i for i in props if 'Fading Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @fading_availability.setter + def fading_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + + @property + def std_deviation(self) -> float: + """Std Deviation + "Standard deviation modeling the random amount of shadowing loss." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') + key_val_pair = [i for i in props if 'Std Deviation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @std_deviation.setter + def std_deviation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + + @property + def include_rain_attenuation(self) -> bool: + """Include Rain Attenuation + "Adds a margin for rain attenuation to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') + key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @include_rain_attenuation.setter + def include_rain_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + + @property + def rain_availability(self) -> float: + """Rain Availability + "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." + "Value should be between 99 and 99.999." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') + key_val_pair = [i for i in props if 'Rain Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @rain_availability.setter + def rain_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + + @property + def rain_rate(self) -> float: + """Rain Rate + "Rain rate (mm/hr) exceeded for 0.01% of the time." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') + key_val_pair = [i for i in props if 'Rain Rate=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @rain_rate.setter + def rain_rate(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + + @property + def polarization_tilt_angle(self) -> float: + """Polarization Tilt Angle + "Polarization tilt angle of the transmitted signal relative to the horizontal." + "Value should be between 0 and 180." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') + key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @polarization_tilt_angle.setter + def polarization_tilt_angle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + + @property + def include_atmospheric_absorption(self) -> bool: + """Include Atmospheric Absorption + "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') + key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @include_atmospheric_absorption.setter + def include_atmospheric_absorption(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + + @property + def temperature(self) -> float: + """Temperature + "Air temperature in degrees Celsius." + "Value should be between -273 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') + key_val_pair = [i for i in props if 'Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @temperature.setter + def temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) + + @property + def total_air_pressure(self) -> float: + """Total Air Pressure + "Total air pressure." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') + key_val_pair = [i for i in props if 'Total Air Pressure=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @total_air_pressure.setter + def total_air_pressure(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + + @property + def water_vapor_concentration(self) -> float: + """Water Vapor Concentration + "Water vapor concentration." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') + key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @water_vapor_concentration.setter + def water_vapor_concentration(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py new file mode 100644 index 00000000000..6d797845e28 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py @@ -0,0 +1,250 @@ +from ..GenericEmitNode import * +class MPlexBandTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def power_direction(self): + """Power Direction + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Power Direction') + key_val_pair = [i for i in props if 'Power Direction=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @power_direction.setter + def power_direction(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Power Direction=' + value]) + class PowerDirectionOption(Enum): + INCOMMONPORTOUTCOMMONPORT = "Into Common Port|Out of Common Port" + + @property + def data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + key_val_pair = [i for i in props if 'Data Source=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @data_source.setter + def data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def visible(self) -> bool: + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + key_val_pair = [i for i in props if 'Visible=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @visible.setter + def visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def custom_legend(self) -> bool: + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + key_val_pair = [i for i in props if 'Custom Legend=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @custom_legend.setter + def custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def name(self) -> str: + """Name + "Enter name of plot trace as it will appear in legend." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + key_val_pair = [i for i in props if 'Name=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @name.setter + def name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def style(self): + """Style + "Specify line style of plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + key_val_pair = [i for i in props if 'Style=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @style.setter + def style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + + @property + def line_width(self) -> int: + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + key_val_pair = [i for i in props if 'Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_width.setter + def line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + key_val_pair = [i for i in props if 'Line Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_color.setter + def line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + key_val_pair = [i for i in props if 'Symbol=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol.setter + def symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + + @property + def symbol_size(self) -> int: + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + key_val_pair = [i for i in props if 'Symbol Size=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_size.setter + def symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + key_val_pair = [i for i in props if 'Symbol Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_color.setter + def symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def symbol_line_width(self) -> int: + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + key_val_pair = [i for i in props if 'Symbol Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_line_width.setter + def symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def symbol_filled(self) -> bool: + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + key_val_pair = [i for i in props if 'Symbol Filled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_filled.setter + def symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py new file mode 100644 index 00000000000..bf3e68f73e6 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -0,0 +1,133 @@ +from ..GenericEmitNode import * +class Multiplexer(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def add_multiplexer_pass_band(self): + """Add a New Multiplexer Band to this Multiplexer""" + return self._add_child_node("MultiplexerBand") + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def filename(self) -> str: + """Filename + "Name of file defining the multiplexer." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + key_val_pair = [i for i in props if 'Filename=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @filename.setter + def filename(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + + @property + def noise_temperature(self) -> float: + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + key_val_pair = [i for i in props if 'Noise Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @noise_temperature.setter + def noise_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @notes.setter + def notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def type(self): + """Type + "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + key_val_pair = [i for i in props if 'Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @type.setter + def type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) + class TypeOption(Enum): + PARAMETRIC = "By Pass Band" + BYFILE = "By File" + + @property + def port_1_location(self): + """Port 1 Location + "Defines the orientation of the multiplexer.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port 1 Location') + key_val_pair = [i for i in props if 'Port 1 Location=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @port_1_location.setter + def port_1_location(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Port 1 Location=' + value]) + class Port1LocationOption(Enum): + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" + + @property + def flip_ports_vertically(self) -> bool: + """Flip Ports Vertically + "Reverses the port order on the multi-port side of the multiplexer.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Flip Ports Vertically') + key_val_pair = [i for i in props if 'Flip Ports Vertically=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @flip_ports_vertically.setter + def flip_ports_vertically(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Flip Ports Vertically=' + value]) + + @property + def warnings(self) -> str: + """Warnings + "Warning(s) for this node." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + key_val_pair = [i for i in props if 'Warnings=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py new file mode 100644 index 00000000000..2a98d6e2ec8 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py @@ -0,0 +1,231 @@ +from ..GenericEmitNode import * +class MultiplexerBand(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def type(self): + """Type + "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + key_val_pair = [i for i in props if 'Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @type.setter + def type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) + class TypeOption(Enum): + BYFILE = "By File" + LOWPASS = "Low Pass" + HIGHPASS = "High Pass" + BANDPASS = "Band Pass" + + @property + def filename(self) -> str: + """Filename + "Name of file defining the multiplexer band." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + key_val_pair = [i for i in props if 'Filename=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @filename.setter + def filename(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + + @property + def insertion_loss(self) -> float: + """Insertion Loss + "Multiplexer pass band insertion loss." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') + key_val_pair = [i for i in props if 'Insertion Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @insertion_loss.setter + def insertion_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + + @property + def stop_band_attenuation(self) -> float: + """Stop band Attenuation + "Stop-band loss (attenuation)." + "Value should be between 0 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop band Attenuation') + key_val_pair = [i for i in props if 'Stop band Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @stop_band_attenuation.setter + def stop_band_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Stop band Attenuation=' + value]) + + @property + def max_pass_band(self) -> float: + """Max Pass Band + "Maximum pass band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Pass Band') + key_val_pair = [i for i in props if 'Max Pass Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @max_pass_band.setter + def max_pass_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Pass Band=' + value]) + + @property + def min_stop_band(self) -> float: + """Min Stop Band + "Minimum stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Stop Band') + key_val_pair = [i for i in props if 'Min Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @min_stop_band.setter + def min_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Min Stop Band=' + value]) + + @property + def max_stop_band(self) -> float: + """Max Stop Band + "Maximum stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Stop Band') + key_val_pair = [i for i in props if 'Max Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @max_stop_band.setter + def max_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Stop Band=' + value]) + + @property + def min_pass_band(self) -> float: + """Min Pass Band + "Minimum pass band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Pass Band') + key_val_pair = [i for i in props if 'Min Pass Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @min_pass_band.setter + def min_pass_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Min Pass Band=' + value]) + + @property + def lower_stop_band(self) -> float: + """Lower Stop Band + "Lower stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') + key_val_pair = [i for i in props if 'Lower Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @lower_stop_band.setter + def lower_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + + @property + def lower_cutoff(self) -> float: + """Lower Cutoff + "Lower cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') + key_val_pair = [i for i in props if 'Lower Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @lower_cutoff.setter + def lower_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + + @property + def higher_cutoff(self) -> float: + """Higher Cutoff + "Higher cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') + key_val_pair = [i for i in props if 'Higher Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @higher_cutoff.setter + def higher_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + + @property + def higher_stop_band(self) -> float: + """Higher Stop Band + "Higher stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') + key_val_pair = [i for i in props if 'Higher Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @higher_stop_band.setter + def higher_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + + @property + def warnings(self) -> str: + """Warnings + "Warning(s) for this node." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + key_val_pair = [i for i in props if 'Warnings=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Amplifier.py deleted file mode 100644 index f3ad1986aec..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Amplifier.py +++ /dev/null @@ -1,163 +0,0 @@ - -from ..GenericEmitNode import GenericEmitNode -from enum import Enum - -class Node_Amplifier(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_filename(self): - """Filename - "Name of file defining the outboard component." - "Value should be a full file path." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - def set_filename(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) - - @property - def get_noise_temperature(self): - """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - def set_noise_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) - - @property - def get_notes(self): - """Notes - "Expand to view/edit notes stored with the project." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - def set_notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) - - @property - def get_amplifier_type(self): - """Amplifier Type - "Configures the amplifier as a Tx or Rx amplifier." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplifier Type') - def set_amplifier_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplifier Type=' + value]) - - class AmplifierTypeOption(Enum): - TRANSMIT_AMPLIFIER = "Transmit Amplifier" - RECEIVE_AMPLIFIER = "Receive Amplifier" - - @property - def get_gain(self): - """Gain - "Amplifier in-band gain." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Gain') - def set_gain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Gain=' + value]) - - @property - def get_center_frequency(self): - """Center Frequency - "Center frequency of amplifiers operational bandwidth." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Center Frequency') - def set_center_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Center Frequency=' + value]) - - @property - def get_bandwidth(self): - """Bandwidth - "Frequency region where the gain applies." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bandwidth') - def set_bandwidth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Bandwidth=' + value]) - - @property - def get_noise_figure(self): - """Noise Figure - "Amplifier noise figure." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Figure') - def set_noise_figure(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Figure=' + value]) - - @property - def get_saturation_level(self): - """Saturation Level - "Saturation level." - "Value should be between -200 and 200." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Saturation Level') - def set_saturation_level(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Saturation Level=' + value]) - - @property - def get__1_db_point_ref_input(self): - """1-dB Point, Ref. Input - "Incoming signals > this value saturate the amplifier." - "Value should be between -200 and 200." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'1-dB Point, Ref. Input') - def set__1_db_point_ref_input(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input=' + value]) - - @property - def get_ip3_ref_input(self): - """IP3, Ref. Input - "3rd order intercept point." - "Value should be between -200 and 200." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'IP3, Ref. Input') - def set_ip3_ref_input(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + value]) - - @property - def get_shape_factor(self): - """Shape Factor - "Ratio defining the selectivity of the amplifier." - "Value should be between 1 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Shape Factor') - def set_shape_factor(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Shape Factor=' + value]) - - @property - def get_reverse_isolation(self): - """Reverse Isolation - "Amplifier reverse isolation." - "Value should be between 0 and 200." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reverse Isolation') - def set_reverse_isolation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) - - @property - def get_max_intermod_order(self): - """Max Intermod Order - "Maximum order of intermods to compute." - "Value should be between 3 and 20." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Intermod Order') - def set_max_intermod_order(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_AntennaGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_AntennaGroup.py deleted file mode 100644 index ff7ea6dc73a..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_AntennaGroup.py +++ /dev/null @@ -1,8 +0,0 @@ - -from ..GenericEmitNode import GenericEmitNode - -class Node_AntennaGroup(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_AntennaNode.py deleted file mode 100644 index c7092399573..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_AntennaNode.py +++ /dev/null @@ -1,652 +0,0 @@ - -from ..GenericEmitNode import GenericEmitNode -from enum import Enum - -class Node_AntennaNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_tags(self): - """Tags - "Space delimited list of tags for coupling selections." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tags') - def set_tags(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Tags=' + value]) - - @property - def get_show_relative_coordinates(self): - """Show Relative Coordinates - "Show antenna position and orientation in parent-node coords (False) or relative to placement coords (True)." - "Value should be 'true' or 'false'." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Relative Coordinates') - def set_show_relative_coordinates(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) - - @property - def get_position(self): - """Position - "Set position of the antenna in parent-node coordinates." - "Value should be x/y/z, delimited by spaces." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') - def set_position(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position=' + value]) - - @property - def get_relative_position(self): - """Relative Position - "Set position of the antenna relative to placement coordinates." - "Value should be x/y/z, delimited by spaces." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Position') - def set_relative_position(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Relative Position=' + value]) - - @property - def get_orientation_mode(self): - """Orientation Mode - "Select the convention (order of rotations) for configuring orientation." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation Mode') - def set_orientation_mode(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Orientation Mode=' + value]) - class OrientationModeOption(Enum): - RPYDEG = "Roll-Pitch-Yaw" - AETDEG = "Az-El-Twist" - - @property - def get_orientation(self): - """Orientation - "Set orientation of the antenna relative to parent-node coordinates." - "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation') - def set_orientation(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Orientation=' + value]) - - @property - def get_relative_orientation(self): - """Relative Orientation - "Set orientation of the antenna relative to placement coordinates." - "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Orientation') - def set_relative_orientation(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) - - @property - def get_position_defined(self): - """Position Defined - "Toggles on/off the ability to define a position for the antenna." - "Value should be 'true' or 'false'." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position Defined') - def set_position_defined(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position Defined=' + value]) - - @property - def get_antenna_temperature(self): - """Antenna Temperature - "Antenna noise temperature." - "Value should be between 0 and 100000." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna Temperature') - def set_antenna_temperature(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Antenna Temperature=' + value]) - - @property - def get_type(self): - """Type - "Defines the type of antenna." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - def set_type(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) - class TypeOption(Enum): - SUBTYPECHOICES = "::SubTypeChoiceLabels" - - @property - def get_antenna_file(self): - """Antenna File - "Value should be a full file path." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna File') - def set_antenna_file(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Antenna File=' + value]) - - @property - def get_project_name(self): - """Project Name - "Name of imported HFSS Antenna project." - "Value should be a full file path." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Project Name') - def set_project_name(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Project Name=' + value]) - - @property - def get_peak_gain(self): - """Peak Gain - "Set peak gain of antenna (dBi)." - "Value should be between -200 and 200." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Peak Gain') - def set_peak_gain(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Peak Gain=' + value]) - - @property - def get_boresight(self): - """Boresight - "Select peak beam direction in local coordinates." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Boresight') - def set_boresight(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Boresight=' + value]) - class BoresightOption(Enum): - XAXIS = "+X Axis" - YAXIS = "+Y Axis" - ZAXIS = "+Z Axis" - - @property - def get_vertical_beamwidth(self): - """Vertical Beamwidth - "Set half-power beamwidth in local-coordinates elevation plane." - "Value should be between 0.1 and 360." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Vertical Beamwidth') - def set_vertical_beamwidth(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Vertical Beamwidth=' + value]) - - @property - def get_horizontal_beamwidth(self): - """Horizontal Beamwidth - "Set half-power beamwidth in local-coordinates azimuth plane." - "Value should be between 0.1 and 360." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Horizontal Beamwidth') - def set_horizontal_beamwidth(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Horizontal Beamwidth=' + value]) - - @property - def get_extra_sidelobe(self): - """Extra Sidelobe - "Toggle (on/off) option to define two sidelobe levels." - "Value should be 'true' or 'false'." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Extra Sidelobe') - def set_extra_sidelobe(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Extra Sidelobe=' + value]) - - @property - def get_first_sidelobe_level(self): - """First Sidelobe Level - "Set reduction in the gain of Directive Beam antenna for first sidelobe level." - "Value should be between 0 and 200." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'First Sidelobe Level') - def set_first_sidelobe_level(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['First Sidelobe Level=' + value]) - - @property - def get_first_sidelobe_vert_bw(self): - """First Sidelobe Vert. BW - "Set beamwidth of first sidelobe beam in theta direction." - "Value should be between 0.1 and 360." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'First Sidelobe Vert. BW') - def set_first_sidelobe_vert_bw(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['First Sidelobe Vert. BW=' + value]) - - @property - def get_first_sidelobe_hor_bw(self): - """First Sidelobe Hor. BW - "Set beamwidth of first sidelobe beam in phi direction." - "Value should be between 0.1 and 360." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'First Sidelobe Hor. BW') - def set_first_sidelobe_hor_bw(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['First Sidelobe Hor. BW=' + value]) - - @property - def get_outerbacklobe_level(self): - """Outer/Backlobe Level - "Set reduction in gain of Directive Beam antenna for outer/backlobe level." - "Value should be between 0 and 200." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Outer/Backlobe Level') - def set_outerbacklobe_level(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Outer/Backlobe Level=' + value]) - - @property - def get_resonant_frequency(self): - """Resonant Frequency - "Set first resonant frequency of wire dipole, monopole, or parametric antenna." - "Value should be between 1.0 and 1e13." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Resonant Frequency') - def set_resonant_frequency(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Resonant Frequency=' + value]) - - @property - def get_slot_length(self): - """Slot Length - "Set slot length of parametric slot." - "Value should be greater than 1e-6." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Slot Length') - def set_slot_length(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Slot Length=' + value]) - - @property - def get_mouth_width(self): - """Mouth Width - "Set mouth width (along local y-axis) of the horn antenna." - "Value should be between 1e-6 and 100." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mouth Width') - def set_mouth_width(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mouth Width=' + value]) - - @property - def get_mouth_height(self): - """Mouth Height - "Set mouth height (along local x-axis) of the horn antenna." - "Value should be between 1e-6 and 100." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mouth Height') - def set_mouth_height(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mouth Height=' + value]) - - @property - def get_waveguide_width(self): - """Waveguide Width - "Set waveguide width (along local y-axis) where flared horn walls meet the feed, determines cut-off frequency." - "Value should be between 1e-6 and 100." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Waveguide Width') - def set_waveguide_width(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Waveguide Width=' + value]) - - @property - def get_width_flare_half_angle(self): - """Width Flare Half-angle - "Set half-angle (degrees) of flared horn walls measured in local yz-plane from boresight (z) axis to either wall." - "Value should be between 1 and 89.9." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Width Flare Half-angle') - def set_width_flare_half_angle(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Width Flare Half-angle=' + value]) - - @property - def get_height_flare_half_angle(self): - """Height Flare Half-angle - "Set half-angle (degrees) of flared horn walls measured in local xz-plane from boresight (z) axis to either wall." - "Value should be between 1 and 89.9." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Height Flare Half-angle') - def set_height_flare_half_angle(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Height Flare Half-angle=' + value]) - - @property - def get_mouth_diameter(self): - """Mouth Diameter - "Set aperture (mouth) diameter of horn antenna." - "Value should be between 1e-6 and 100." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mouth Diameter') - def set_mouth_diameter(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mouth Diameter=' + value]) - - @property - def get_flare_half_angle(self): - """Flare Half-angle - "Set half-angle (degrees) of conical horn wall measured from boresight (z)." - "Value should be between 1 and 89.9." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Flare Half-angle') - def set_flare_half_angle(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Flare Half-angle=' + value]) - - @property - def get_vswr(self): - """VSWR - "The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch between the antenna and the RF System (or outboard component)." - "Value should be between 1 and 100." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'VSWR') - def set_vswr(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['VSWR=' + value]) - - @property - def get_antenna_polarization(self): - """Antenna Polarization - "Choose local-coordinates polarization along boresight." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna Polarization') - def set_antenna_polarization(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Antenna Polarization=' + value]) - class AntennaPolarizationOption(Enum): - VERTICAL = "Vertical" - HORIZONTAL = "Horizontal" - RHCP = "RHCP" - LHCP = "LHCP" - - @property - def get_cross_dipole_mode(self): - """Cross Dipole Mode - "Choose the Cross Dipole type." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Cross Dipole Mode') - def set_cross_dipole_mode(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Cross Dipole Mode=' + value]) - class CrossDipoleModeOption(Enum): - FREESTANDING = "Freestanding" - OVER_GROUND_PLANE = "Over Ground Plane" - - @property - def get_cross_dipole_polarization(self): - """Cross Dipole Polarization - "Choose local-coordinates polarization along boresight." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Cross Dipole Polarization') - def set_cross_dipole_polarization(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Cross Dipole Polarization=' + value]) - class CrossDipolePolarizationOption(Enum): - RHCP = "RHCP" - LHCP = "LHCP" - - @property - def get_override_height(self): - """Override Height - "Ignores the default placement of quarter design wavelength over the ground plane." - "Value should be 'true' or 'false'." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Override Height') - def set_override_height(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Override Height=' + value]) - - @property - def get_offset_height(self): - """Offset Height - "Sets the offset height for the current sources above the ground plane." - "Value should be greater than 0." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Offset Height') - def set_offset_height(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Offset Height=' + value]) - - @property - def get_auto_height_offset(self): - """Auto Height Offset - "Switch on to automatically place slot current at sub-wavelength offset height above ground plane." - "Value should be 'true' or 'false'." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Auto Height Offset') - def set_auto_height_offset(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Auto Height Offset=' + value]) - - @property - def get_conform__adjust_antenna(self): - """Conform / Adjust Antenna - "Toggle (on/off) conformal adjustment for array antenna elements." - "Value should be 'true' or 'false'." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Conform / Adjust Antenna') - def set_conform__adjust_antenna(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Conform / Adjust Antenna=' + value]) - - @property - def get_element_offset(self): - """Element Offset - "Set vector for shifting element positions in antenna local coordinates." - "Value should be x/y/z, delimited by spaces." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Element Offset') - def set_element_offset(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Element Offset=' + value]) - - @property - def get_conform_to_platform(self): - """Conform to Platform - "Select method of automated conforming applied after Element Offset." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Conform to Platform') - def set_conform_to_platform(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Conform to Platform=' + value]) - class ConformtoPlatformOption(Enum): - NONE = "None" - ALONG_NORMAL = "Along Normal" - PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" - - @property - def get_reference_plane(self): - """Reference Plane - "Select reference plane for determining original element heights." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reference Plane') - def set_reference_plane(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Reference Plane=' + value]) - class ReferencePlaneOption(Enum): - XY_PLANE = "XY Plane" - YZ_PLANE = "YZ Plane" - ZX_PLANE = "ZX Plane" - - @property - def get_conform_element_orientation(self): - """Conform Element Orientation - "Toggle (on/off) re-orientation of elements to conform to curved placement surface." - "Value should be 'true' or 'false'." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Conform Element Orientation') - def set_conform_element_orientation(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Conform Element Orientation=' + value]) - - @property - def get_show_axes(self): - """Show Axes - "Toggle (on/off) display of antenna coordinate axes in 3-D window." - "Value should be 'true' or 'false'." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Axes') - def set_show_axes(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Axes=' + value]) - - @property - def get_show_icon(self): - """Show Icon - "Toggle (on/off) display of antenna marker (cone) in 3-D window." - "Value should be 'true' or 'false'." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Icon') - def set_show_icon(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Icon=' + value]) - - @property - def get_size(self): - """Size - "Adjust relative size of antenna marker (cone) in 3-D window." - "Value should be between 0.001 and 1." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Size') - def set_size(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Size=' + value]) - - @property - def get_color(self): - """Color - "Set color of antenna marker (cone) in 3-D window." - "Color should be in RGB form: #RRGGBB." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Color') - def set_color(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Color=' + value]) - - @property - def get_el_sample_interval(self): - """El Sample Interval - "Space between elevation-angle samples of pattern." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'El Sample Interval') - - @property - def get_az_sample_interval(self): - """Az Sample Interval - "Space between azimuth-angle samples of pattern." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Az Sample Interval') - - @property - def get_has_frequency_domain(self): - """Has Frequency Domain - "False if antenna can be used at any frequency." - "Value should be 'true' or 'false'." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Has Frequency Domain') - - @property - def get_frequency_domain(self): - """Frequency Domain - "Frequency sample(s) defining antenna." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency Domain') - - @property - def get_number_of_electric_sources(self): - """Number of Electric Sources - "Number of freestanding electric current sources defining antenna." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Electric Sources') - - @property - def get_number_of_magnetic_sources(self): - """Number of Magnetic Sources - "Number of freestanding magnetic current sources defining antenna." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Magnetic Sources') - - @property - def get_number_of_imaged_electric_sources(self): - """Number of Imaged Electric Sources - "Number of imaged, half-space radiating electric current sources defining antenna." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Imaged Electric Sources') - - @property - def get_number_of_imaged_magnetic_sources(self): - """Number of Imaged Magnetic Sources - "Number of imaged, half-space radiating magnetic current sources defining antenna." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Imaged Magnetic Sources') - - @property - def get_waveguide_height(self): - """Waveguide Height - "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Waveguide Height') - - @property - def get_waveguide_cutoff_frequency(self): - """Waveguide Cutoff Frequency - "Implied lowest operating frequency of pyramidal horn antenna." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Waveguide Cutoff Frequency') - - @property - def get_aperture_cutoff_frequency(self): - """Aperture Cutoff Frequency - "Implied lowest operating frequency of conical horn antenna." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Aperture Cutoff Frequency') - - @property - def get_swe_mode_truncation(self): - """SWE Mode Truncation - "Select the method for stability-enhancing truncation of spherical wave expansion terms." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'SWE Mode Truncation') - def set_swe_mode_truncation(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['SWE Mode Truncation=' + value]) - class SWEModeTruncationOption(Enum): - DYNAMIC = "Dynamic" - CUSTOM = "Fixed (Custom)" - NONE = "None" - - @property - def get_max_n_index(self): - """Max N Index - "Set maximum allowed index N for spherical wave expansion terms." - "Value should be greater than 1." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max N Index') - def set_max_n_index(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max N Index=' + value]) - - @property - def get_notes(self): - """Notes - "Expand to view/edit notes stored with the project." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - def set_notes(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) - - @property - def get_show_composite_passband(self): - """Show Composite Passband - "Show plot instead of 3D window." - "Value should be 'true' or 'false'." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Composite Passband') - def set_show_composite_passband(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Composite Passband=' + value]) - - @property - def get_use_phase_center(self): - """Use Phase Center - "Use the phase center defined in the HFSS design." - "Value should be 'true' or 'false'." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Phase Center') - def set_use_phase_center(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use Phase Center=' + value]) - - @property - def get_coordinate_systems(self): - """Coordinate Systems - "Specifies the coordinate system for the phase center of this antenna." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Coordinate Systems') - - @property - def get_phasecenterposition(self): - """PhaseCenterPosition - "Set position of the antennas linked coordinate system.." - "Value should be x/y/z, delimited by spaces." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'PhaseCenterPosition') - - @property - def get_phasecenterorientation(self): - """PhaseCenterOrientation - "Set orientation of the antennas linked coordinate system.." - "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'PhaseCenterOrientation') - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_AntennaPassband.py deleted file mode 100644 index 1dc34bdf6da..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_AntennaPassband.py +++ /dev/null @@ -1,93 +0,0 @@ -class Node_AntennaPassband(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_enabled(self): - """Enabled state for this node.""" - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') - def set_enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) - - @property - def get_passband_loss(self): - """Passband Loss - "Passband loss." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Passband Loss') - def set_passband_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Passband Loss=' + value]) - - @property - def get_out_of_band_attenuation(self): - """Out of Band Attenuation - "Out of band antenna loss." - "Value should be between 0 and 200." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out of Band Attenuation') - def set_out_of_band_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Out of Band Attenuation=' + value]) - - @property - def get_lower_stop_band(self): - """Lower Stop Band - "Lower stop band frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') - def set_lower_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) - - @property - def get_lower_cutoff(self): - """Lower Cutoff - "Lower cutoff frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') - def set_lower_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) - - @property - def get_higher_cutoff(self): - """Higher Cutoff - "Higher cutoff frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') - def set_higher_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) - - @property - def get_higher_stop_band(self): - """Higher Stop Band - "Higher stop band frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') - def set_higher_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) - - @property - def get_notes(self): - """Notes - "Expand to view/edit notes stored with the project." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - def set_notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Band.py deleted file mode 100644 index 25a9ba2c876..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Band.py +++ /dev/null @@ -1,688 +0,0 @@ -class Node_Band(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - @property - def get_enabled(self): - """Enabled state for this node.""" - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') - def set_enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) - - @property - def get_port(self): - """Port - "Radio Port associated with this Band." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port') - def set_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Port=' + value]) - class PortOption(Enum): - ( - ::PARENT::ANTENNASIDEPORTS = "::Parent::AntennaSidePorts" - ) - - @property - def get_use_dd_1494_mode(self): - """Use DD-1494 Mode - "Uses DD-1494 parameters to define the Tx/Rx spectrum." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use DD-1494 Mode') - def set_use_dd_1494_mode(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use DD-1494 Mode=' + value]) - - @property - def get_use_emission_designator(self): - """Use Emission Designator - "Uses the Emission Designator to define the bandwidth and modulation." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Emission Designator') - def set_use_emission_designator(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use Emission Designator=' + value]) - - @property - def get_emission_designator(self): - """Emission Designator - "Enter the Emission Designator to define the bandwidth and modulation." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Emission Designator') - def set_emission_designator(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Emission Designator=' + value]) - - @property - def get_emission_designator_ch_bw(self): - """Emission Designator Ch. BW - "Channel Bandwidth based off the emission designator." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Emission Designator Ch. BW') - - @property - def get_emit_modulation_type(self): - """EMIT Modulation Type - "Modulation based off the emission designator." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'EMIT Modulation Type') - - @property - def get_override_emission_designator_bw(self): - """Override Emission Designator BW - "Enables the 3 dB channel bandwidth to equal a value < emission designator bandwidth." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Override Emission Designator BW') - def set_override_emission_designator_bw(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Override Emission Designator BW=' + value]) - - @property - def get_channel_bandwidth(self): - """Channel Bandwidth - "Channel Bandwidth." - "Value should be between 1 and unbounded." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Channel Bandwidth') - def set_channel_bandwidth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Channel Bandwidth=' + value]) - - @property - def get_modulation(self): - """Modulation - "Modulation used for the transmitted/received signal." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Modulation') - def set_modulation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Modulation=' + value]) - class ModulationOption(Enum): - ( - GENERIC = "Generic" - AM = "AM" - LSB = "LSB" - USB = "USB" - FM = "FM" - FSK = "FSK" - MSK = "MSK" - PSK = "PSK" - QAM = "QAM" - APSK = "APSK" - RADAR = "Radar" - ) - - @property - def get_waveform(self): - """Waveform - "Modulation used for the transmitted/received signal." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Waveform') - def set_waveform(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Waveform=' + value]) - class WaveformOption(Enum): - ( - PERIODIC_CLOCK = "Periodic Clock" - SPREAD_SPECTRUM = "Spread Spectrum Clock" - PRBS = "PRBS" - PRBS_PERIODIC = "PRBS (Periodic)" - IMPORTED = "Imported" - ) - - @property - def get_max_modulating_freq(self): - """Max Modulating Freq. - "Maximum modulating frequency: helps determine spectral profile." - "Value should be between 1 and unbounded." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Modulating Freq.') - def set_max_modulating_freq(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Modulating Freq.=' + value]) - - @property - def get_modulation_index(self): - """Modulation Index - "AM modulation index: helps determine spectral profile." - "Value should be between 0.01 and 1." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Modulation Index') - def set_modulation_index(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Modulation Index=' + value]) - - @property - def get_freq_deviation(self): - """Freq. Deviation - "Frequency deviation: helps determine spectral profile." - "Value should be between 1 and unbounded." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Freq. Deviation') - def set_freq_deviation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Freq. Deviation=' + value]) - - @property - def get_bit_rate(self): - """Bit Rate - "Maximum bit rate: helps determine width of spectral profile." - "Value should be between 1 and unbounded." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bit Rate') - def set_bit_rate(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Bit Rate=' + value]) - - @property - def get_sidelobes(self): - """Sidelobes - "Number of sidelobes in spectral profile." - "Value should be between 0 and unbounded." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Sidelobes') - def set_sidelobes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Sidelobes=' + value]) - - @property - def get_freq_deviation_(self): - """Freq. Deviation - "FSK frequency deviation: helps determine spectral profile." - "Value should be between 1 and unbounded." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Freq. Deviation ') - def set_freq_deviation_(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Freq. Deviation =' + value]) - - @property - def get_psk_type(self): - """PSK Type - "PSK modulation order: helps determine spectral profile." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'PSK Type') - def set_psk_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['PSK Type=' + value]) - class PSKTypeOption(Enum): - ( - BPSK = "BPSK" - QPSK = "QPSK" - _8_PSK = "8-PSK" - _16_PSK = "16-PSK" - _32_PSK = "32-PSK" - _64_PSK = "64-PSK" - ) - - @property - def get_fsk_type(self): - """FSK Type - "FSK modulation order: helps determine spectral profile." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'FSK Type') - def set_fsk_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['FSK Type=' + value]) - class FSKTypeOption(Enum): - ( - _2_FSK = "2-FSK" - _4_FSK = "4-FSK" - _8_FSK = "8-FSK" - ) - - @property - def get_qam_type(self): - """QAM Type - "QAM modulation order: helps determine spectral profile." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'QAM Type') - def set_qam_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['QAM Type=' + value]) - class QAMTypeOption(Enum): - ( - _4_QAM = "4-QAM" - _16_QAM = "16-QAM" - _64_QAM = "64-QAM" - _256_QAM = "256-QAM" - _1024_QAM = "1024-QAM" - ) - - @property - def get_apsk_type(self): - """APSK Type - "APSK modulation order: helps determine spectral profile." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'APSK Type') - def set_apsk_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['APSK Type=' + value]) - class APSKTypeOption(Enum): - ( - _4_APSK = "4-APSK" - _16_APSK = "16-APSK" - _64_APSK = "64-APSK" - _256_APSK = "256-APSK" - _1024_APSK = "1024-APSK" - ) - - @property - def get_start_frequency(self): - """Start Frequency - "First frequency for this band." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Start Frequency') - def set_start_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Start Frequency=' + value]) - - @property - def get_stop_frequency(self): - """Stop Frequency - "Last frequency for this band." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop Frequency') - def set_stop_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Stop Frequency=' + value]) - - @property - def get_channel_spacing(self): - """Channel Spacing - "Spacing between channels within this band." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Channel Spacing') - def set_channel_spacing(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Channel Spacing=' + value]) - - @property - def get_tx_offset(self): - """Tx Offset - "Frequency offset between Tx and Rx channels." - "Value should be between ::TxOffsetMin and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx Offset') - def set_tx_offset(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Tx Offset=' + value]) - - @property - def get_clock_duty_cycle(self): - """Clock Duty Cycle - "Clock signals duty cycle." - "Value should be between 0.001 and 1.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Clock Duty Cycle') - def set_clock_duty_cycle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Clock Duty Cycle=' + value]) - - @property - def get_clock_risefall_time(self): - """Clock Rise/Fall Time - "Clock signals rise/fall time." - "Value should be greater than 0.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Clock Rise/Fall Time') - def set_clock_risefall_time(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Clock Rise/Fall Time=' + value]) - - @property - def get_spreading_type(self): - """Spreading Type - "Type of spreading employed by the Spread Spectrum Clock." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spreading Type') - def set_spreading_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Spreading Type=' + value]) - class SpreadingTypeOption(Enum): - ( - LOW_SPREAD = "Low Spread" - CENTER_SPREAD = "Center Spread" - HIGH_SPREAD = "High Spread" - ) - - @property - def get_spread_percentage(self): - """Spread Percentage - "Peak-to-peak spread percentage." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spread Percentage') - def set_spread_percentage(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Spread Percentage=' + value]) - - @property - def get_imported_spectrum(self): - """Imported Spectrum - "Value should be a full file path." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Imported Spectrum') - def set_imported_spectrum(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Imported Spectrum=' + value]) - - @property - def get_raw_data_format(self): - """Raw Data Format - "Format of the imported raw data." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Raw Data Format') - - @property - def get_system_impedance(self): - """System Impedance - "System impedance for the imported data." - "Value should be between 0.0 and 1.0e6." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'System Impedance') - def set_system_impedance(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['System Impedance=' + value]) - - @property - def get_advanced_extraction_params(self): - """Advanced Extraction Params - "Show/hide advanced extraction params." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Advanced Extraction Params') - def set_advanced_extraction_params(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Advanced Extraction Params=' + value]) - - @property - def get_nb_window_size(self): - """NB Window Size - "Window size for computing the moving average during narrowband signal detection." - "Value should be greater than 3." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'NB Window Size') - def set_nb_window_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['NB Window Size=' + value]) - - @property - def get_bb_smoothing_factor(self): - """BB Smoothing Factor - "Reduces the number of frequency points used for the broadband noise." - "Value should be greater than 1." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BB Smoothing Factor') - def set_bb_smoothing_factor(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['BB Smoothing Factor=' + value]) - - @property - def get_nb_detector_threshold(self): - """NB Detector Threshold - "Narrowband Detector threshold standard deviation." - "Value should be between 2 and 10." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'NB Detector Threshold') - def set_nb_detector_threshold(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['NB Detector Threshold=' + value]) - - @property - def get_algorithm(self): - """Algorithm - "Algorithm used to transform the imported time domain spectrum." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Algorithm') - def set_algorithm(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Algorithm=' + value]) - class AlgorithmOption(Enum): - ( - FFT = "FFT" - FOURIER_TRANSFORM = "Fourier Transform" - ) - - @property - def get_start(self): - """Start - "Initial time of the imported spectrum." - "Value should be between 0.0 and ::TDStartMax." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Start') - def set_start(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Start=' + value]) - - @property - def get_stop(self): - """Stop - "Final time of the imported time domain spectrum." - "Value should be between ::TDStopMin and ::TDStopMax." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop') - def set_stop(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Stop=' + value]) - - @property - def get_max_frequency(self): - """Max Frequency - "Frequency cutoff of the imported time domain spectrum." - "Value should be between 1.0 and 100.0e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Frequency') - def set_max_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Frequency=' + value]) - - @property - def get_window_type(self): - """Window Type - "Windowing scheme used for importing time domain spectrum." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Window Type') - def set_window_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Window Type=' + value]) - class WindowTypeOption(Enum): - ( - RECTANGULAR = "Rectangular" - BARTLETT = "Bartlett" - BLACKMAN = "Blackman" - HAMMING = "Hamming" - HANNING = "Hanning" - KAISER = "Kaiser" - LANZCOS = "Lanzcos" - WELCH = "Welch" - WEBER = "Weber" - ) - - @property - def get_kaiser_parameter(self): - """Kaiser Parameter - "Shape factor applied to the transform." - "Value should be greater than 0.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Kaiser Parameter') - def set_kaiser_parameter(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Kaiser Parameter=' + value]) - - @property - def get_adjust_coherent_gain(self): - """Adjust Coherent Gain - "Shape factor applied to the transform." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adjust Coherent Gain') - def set_adjust_coherent_gain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adjust Coherent Gain=' + value]) - - @property - def get_data_rate(self): - """Data Rate - "Maximum data rate: helps determine shape of spectral profile." - "Value should be between 1 and unbounded." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Rate') - def set_data_rate(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Rate=' + value]) - - @property - def get__of_bits(self): - """# of Bits - "Length of the Pseudo Random Binary Sequence." - "Value should be between 1 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'# of Bits') - def set__of_bits(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['# of Bits=' + value]) - - @property - def get_use_envelope(self): - """Use Envelope - "Model the waveform as a worst case envelope.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Envelope') - def set_use_envelope(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use Envelope=' + value]) - - @property - def get_min_ptsnull(self): - """Min Pts/Null - "Minimum number of points to use between each null frequency." - "Value should be between 2 and 50." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Pts/Null') - def set_min_ptsnull(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Min Pts/Null=' + value]) - - @property - def get_delay_skew(self): - """Delay Skew - "Delay Skew of the differential signal pairs." - "Value should be greater than 0.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Delay Skew') - def set_delay_skew(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Delay Skew=' + value]) - - @property - def get_radar_type(self): - """Radar Type - "Radar type: helps determine spectral profile." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Radar Type') - def set_radar_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Radar Type=' + value]) - class RadarTypeOption(Enum): - ( - CW = "CW" - FM_CW = "FM-CW" - FM_PULSE = "FM Pulse" - NON_FM_PULSE = "Non-FM Pulse" - PHASE_CODED = "Phase Coded" - ) - - @property - def get_hopping_radar(self): - """Hopping Radar - "True for hopping radars; false otherwise." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Hopping Radar') - def set_hopping_radar(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Hopping Radar=' + value]) - - @property - def get_post_october_2020_procurement(self): - """Post October 2020 Procurement - "Procurement date: helps determine spectral profile, particularly the roll-off." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Post October 2020 Procurement') - def set_post_october_2020_procurement(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Post October 2020 Procurement=' + value]) - - @property - def get_hop_range_min_freq(self): - """Hop Range Min Freq - "Sets the minimum frequency of the hopping range." - "Value should be between 1.0 and 100.0e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Hop Range Min Freq') - def set_hop_range_min_freq(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Hop Range Min Freq=' + value]) - - @property - def get_hop_range_max_freq(self): - """Hop Range Max Freq - "Sets the maximum frequency of the hopping range." - "Value should be between 1.0 and 100.0e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Hop Range Max Freq') - def set_hop_range_max_freq(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Hop Range Max Freq=' + value]) - - @property - def get_pulse_duration(self): - """Pulse Duration - "Pulse duration." - "Value should be greater than 0.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Duration') - def set_pulse_duration(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pulse Duration=' + value]) - - @property - def get_pulse_rise_time(self): - """Pulse Rise Time - "Pulse rise time." - "Value should be greater than 0.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Rise Time') - def set_pulse_rise_time(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pulse Rise Time=' + value]) - - @property - def get_pulse_fall_time(self): - """Pulse Fall Time - "Pulse fall time." - "Value should be greater than 0.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Fall Time') - def set_pulse_fall_time(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pulse Fall Time=' + value]) - - @property - def get_pulse_repetition_rate(self): - """Pulse Repetition Rate - "Pulse repetition rate [pulses/sec]." - "Value should be greater than 1.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Repetition Rate') - def set_pulse_repetition_rate(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pulse Repetition Rate=' + value]) - - @property - def get_number_of_chips(self): - """Number of Chips - "Total number of chips (subpulses) contained in the pulse." - "Value should be greater than 1.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Chips') - def set_number_of_chips(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Number of Chips=' + value]) - - @property - def get_pulse_compression_ratio(self): - """Pulse Compression Ratio - "Pulse compression ratio." - "Value should be greater than 1.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Compression Ratio') - def set_pulse_compression_ratio(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pulse Compression Ratio=' + value]) - - @property - def get_fm_chirp_period(self): - """FM Chirp Period - "FM Chirp period for the FM/CW radar." - "Value should be greater than 0.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'FM Chirp Period') - def set_fm_chirp_period(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['FM Chirp Period=' + value]) - - @property - def get_fm_freq_deviation(self): - """FM Freq Deviation - "Total frequency deviation for the carrier frequency for the FM/CW radar." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'FM Freq Deviation') - def set_fm_freq_deviation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['FM Freq Deviation=' + value]) - - @property - def get_fm_freq_dev_bandwidth(self): - """FM Freq Dev Bandwidth - "Bandwidth of freq deviation for FM modulated pulsed waveform (total freq shift during pulse duration)." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'FM Freq Dev Bandwidth') - def set_fm_freq_dev_bandwidth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['FM Freq Dev Bandwidth=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_BandTraceNode.py deleted file mode 100644 index aa143d97dc6..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_BandTraceNode.py +++ /dev/null @@ -1,190 +0,0 @@ -class Node_BandTraceNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def export_model(self, file_name): - """Save this data to a file""" - return self._export_model(file_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_data_source(self): - """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - def set_data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) - - @property - def get_tx_or_rx(self): - """Tx or Rx - "Specifies whether the trace is a Tx or Rx channel." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx or Rx') - def set_tx_or_rx(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Tx or Rx=' + value]) - class TxorRxOption(Enum): - ( - TX = "Tx" - RX = "Rx" - ) - - @property - def get_channel_frequency(self): - """Channel Frequency - "Select band channel frequency to display." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Channel Frequency') - def set_channel_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Channel Frequency=' + value]) - - @property - def get_transmit_frequency(self): - """Transmit Frequency - "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Transmit Frequency') - - @property - def get_visible(self): - """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - def set_visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) - - @property - def get_custom_legend(self): - """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - def set_custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) - - @property - def get_name(self): - """Name - "Enter name of plot trace as it will appear in legend." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - def set_name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) - - @property - def get_style(self): - """Style - "Specify line style of plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - def set_style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) - class StyleOption(Enum): - ( - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" - ) - - @property - def get_line_width(self): - """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - def set_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) - - @property - def get_line_color(self): - """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - def set_line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) - - @property - def get_symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - def set_symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) - class SymbolOption(Enum): - ( - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" - ) - - @property - def get_symbol_size(self): - """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - def set_symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) - - @property - def get_symbol_color(self): - """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - def set_symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) - - @property - def get_symbol_line_width(self): - """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - def set_symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) - - @property - def get_symbol_filled(self): - """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - def set_symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_CADNode.py deleted file mode 100644 index e7c867eaa0e..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_CADNode.py +++ /dev/null @@ -1,432 +0,0 @@ -class Node_CADNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_file(self): - """File - "Name of the imported CAD file." - "Value should be a full file path." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'File') - - @property - def get_model_type(self): - """Model Type - "Select type of parametric model to create." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Model Type') - def set_model_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Model Type=' + value]) - class ModelTypeOption(Enum): - PLATE = "Plate" - BOX = "Box" - DIHEDRAL = "Dihedral" - TRIHEDRAL = "Trihedral" - CYLINDER = "Cylinder" - TAPERED_CYLINDER = "Tapered Cylinder" - CONE = "Cone" - SPHERE = "Sphere" - ELLIPSOID = "Ellipsoid" - CIRCULAR_PLATE = "Circular Plate" - PARABOLA = "Parabola" - PRISM = "Prism" - TAPERED_PRISM = "Tapered Prism" - TOPHAT = "Tophat" - - @property - def get_length(self): - """Length - "Length of the model." - "Value should be greater than 0.000001." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Length') - def set_length(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Length=' + value]) - - @property - def get_width(self): - """Width - "Width of the model." - "Value should be greater than 0.000001." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Width') - def set_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Width=' + value]) - - @property - def get_height(self): - """Height - "Height of the model." - "Value should be greater than 0.000001." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Height') - def set_height(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Height=' + value]) - - @property - def get_angle(self): - """Angle - "Angle (deg) between the plates." - "Value should be between 0.0 and 360.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Angle') - def set_angle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Angle=' + value]) - - @property - def get_top_side(self): - """Top Side - "Side of the top of a equilateral triangular cylinder model." - "Value should be greater than 0.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Top Side') - def set_top_side(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Top Side=' + value]) - - @property - def get_top_radius(self): - """Top Radius - "Radius of the top of a tapered cylinder model." - "Value should be greater than 0.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Top Radius') - def set_top_radius(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Top Radius=' + value]) - - @property - def get_side(self): - """Side - "Side of the equilateral triangular cylinder." - "Value should be greater than 0.000001." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Side') - def set_side(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Side=' + value]) - - @property - def get_radius(self): - """Radius - "Radius of the sphere or cylinder." - "Value should be greater than 0.000001." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Radius') - def set_radius(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Radius=' + value]) - - @property - def get_base_radius(self): - """Base Radius - "Radius of the base of a tophat model." - "Value should be greater than 0.000001." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Base Radius') - def set_base_radius(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Base Radius=' + value]) - - @property - def get_center_radius(self): - """Center Radius - "Radius of the raised portion of a tophat model." - "Value should be greater than 0.000001." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Center Radius') - def set_center_radius(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Center Radius=' + value]) - - @property - def get_x_axis_ellipsoid_radius(self): - """X Axis Ellipsoid Radius - "Ellipsoid semi-principal radius for the X axis." - "Value should be greater than 0.000001." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X Axis Ellipsoid Radius') - def set_x_axis_ellipsoid_radius(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['X Axis Ellipsoid Radius=' + value]) - - @property - def get_y_axis_ellipsoid_radius(self): - """Y Axis Ellipsoid Radius - "Ellipsoid semi-principal radius for the Y axis." - "Value should be greater than 0.000001." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y Axis Ellipsoid Radius') - def set_y_axis_ellipsoid_radius(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y Axis Ellipsoid Radius=' + value]) - - @property - def get_z_axis_ellipsoid_radius(self): - """Z Axis Ellipsoid Radius - "Ellipsoid semi-principal radius for the Z axis." - "Value should be greater than 0.000001." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Z Axis Ellipsoid Radius') - def set_z_axis_ellipsoid_radius(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Z Axis Ellipsoid Radius=' + value]) - - @property - def get_focal_length(self): - """Focal Length - "Focal length of a parabolic reflector (f = 1/4a where y=ax^2)." - "Value should be greater than 0.000001." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Focal Length') - def set_focal_length(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Focal Length=' + value]) - - @property - def get_offset(self): - """Offset - "Offset of parabolic reflector." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Offset') - def set_offset(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Offset=' + value]) - - @property - def get_x_direction_taper(self): - """X Direction Taper - "Amount (%) that the prism tapers in the X dimension from one end to the other." - "Value should be greater than 0.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X Direction Taper') - def set_x_direction_taper(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['X Direction Taper=' + value]) - - @property - def get_y_direction_taper(self): - """Y Direction Taper - "Amount (%) that the prism tapers in the Y dimension from one end to the other." - "Value should be greater than 0.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y Direction Taper') - def set_y_direction_taper(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y Direction Taper=' + value]) - - @property - def get_prism_direction(self): - """Prism Direction - "Direction vector between the center of the base and center of the top." - "Value should be x/y/z, delimited by spaces." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Prism Direction') - def set_prism_direction(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Prism Direction=' + value]) - - @property - def get_closed_top(self): - """Closed Top - "Control whether the top of the model is closed." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Closed Top') - def set_closed_top(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Closed Top=' + value]) - - @property - def get_closed_base(self): - """Closed Base - "Control whether the base of the model is closed." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Closed Base') - def set_closed_base(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Closed Base=' + value]) - - @property - def get_mesh_density(self): - """Mesh Density - "Unitless mesh density parameter where higher value improves mesh smoothness." - "Value should be between 1 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mesh Density') - def set_mesh_density(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mesh Density=' + value]) - - @property - def get_use_symmetric_mesh(self): - """Use Symmetric Mesh - "Convert quads to a symmetric triangle mesh by adding a center point (4 triangles per quad instead of 2)." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Symmetric Mesh') - def set_use_symmetric_mesh(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use Symmetric Mesh=' + value]) - - @property - def get_mesh_option(self): - """Mesh Option - "Select from different meshing options." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mesh Option') - def set_mesh_option(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mesh Option=' + value]) - class MeshOptionOption(Enum): - IMPROVED = "Improved" - LEGACY = "Legacy" - - @property - def get_coating_index(self): - """Coating Index - "Coating index for the parametric model primitive." - "Value should be between 0 and 100000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Coating Index') - def set_coating_index(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Coating Index=' + value]) - - @property - def get_show_relative_coordinates(self): - """Show Relative Coordinates - "Show CAD model node position and orientation in parent-node coords (False) or relative to placement coords (True)." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Relative Coordinates') - def set_show_relative_coordinates(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) - - @property - def get_position(self): - """Position - "Set position of the CAD node in parent-node coordinates." - "Value should be x/y/z, delimited by spaces." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') - def set_position(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position=' + value]) - - @property - def get_relative_position(self): - """Relative Position - "Set position of the CAD model node relative to placement coordinates." - "Value should be x/y/z, delimited by spaces." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Position') - def set_relative_position(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Relative Position=' + value]) - - @property - def get_orientation_mode(self): - """Orientation Mode - "Select the convention (order of rotations) for configuring orientation." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation Mode') - def set_orientation_mode(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Orientation Mode=' + value]) - class OrientationModeOption(Enum): - ( - RPYDEG = "Roll-Pitch-Yaw" - AETDEG = "Az-El-Twist" - ) - - @property - def get_orientation(self): - """Orientation - "Set orientation of the CAD node in parent-node coordinates." - "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation') - def set_orientation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Orientation=' + value]) - - @property - def get_relative_orientation(self): - """Relative Orientation - "Set orientation of the CAD model node relative to placement coordinates." - "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Orientation') - def set_relative_orientation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) - - @property - def get_visible(self): - """Visible - "Toggle (on/off) display of CAD model in 3-D window." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - def set_visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) - - @property - def get_render_mode(self): - """Render Mode - "Select drawing style for surfaces." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Render Mode') - def set_render_mode(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Render Mode=' + value]) - class RenderModeOption(Enum): - ( - FLAT_SHADED = "Flat-Shaded" - WIRE_FRAME = "Wire-Frame" - HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" - OUTLINE = "Outline" - ) - - @property - def get_show_axes(self): - """Show Axes - "Toggle (on/off) display of CAD model coordinate axes in 3-D window." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Axes') - def set_show_axes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Axes=' + value]) - - @property - def get_min(self): - """Min - "Minimum x,y,z extents of CAD model in local coordinates." - "Value should be x/y/z, delimited by spaces." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min') - - @property - def get_max(self): - """Max - "Maximum x,y,z extents of CAD model in local coordinates." - "Value should be x/y/z, delimited by spaces." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max') - - @property - def get_number_of_surfaces(self): - """Number of Surfaces - "Number of surfaces in the model." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Surfaces') - - @property - def get_color(self): - """Color - "Defines the CAD nodes color." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Color') - def set_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Color=' + value]) - - @property - def get_notes(self): - """Notes - "Expand to view/edit notes stored with the project." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - def set_notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Cable.py deleted file mode 100644 index da152739d51..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Cable.py +++ /dev/null @@ -1,118 +0,0 @@ -class Node_Cable(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_filename(self): - """Filename - "Name of file defining the outboard component." - "Value should be a full file path." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - def set_filename(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) - - @property - def get_noise_temperature(self): - """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - def set_noise_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) - - @property - def get_notes(self): - """Notes - "Expand to view/edit notes stored with the project." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - def set_notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) - - @property - def get_type(self): - """Type - "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - def set_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) - class TypeOption(Enum): - ( - BYFILE = "By File" - CONSTANT = "Constant Loss" - COAXIAL = "Coaxial Cable" - ) - - @property - def get_length(self): - """Length - "Length of cable." - "Value should be between 0 and 500." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Length') - def set_length(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Length=' + value]) - - @property - def get_loss_per_length(self): - """Loss Per Length - "Cable loss per unit length (dB/meter)." - "Value should be between 0 and 20." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Loss Per Length') - def set_loss_per_length(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Loss Per Length=' + value]) - - @property - def get_measurement_length(self): - """Measurement Length - "Length of the cable used for the measurements." - "Value should be between 0 and 500." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measurement Length') - def set_measurement_length(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Measurement Length=' + value]) - - @property - def get_resistive_loss_constant(self): - """Resistive Loss Constant - "Coaxial cable resistive loss constant." - "Value should be between 0 and 2." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Resistive Loss Constant') - def set_resistive_loss_constant(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Resistive Loss Constant=' + value]) - - @property - def get_dielectric_loss_constant(self): - """Dielectric Loss Constant - "Coaxial cable dielectric loss constant." - "Value should be between 0 and 1." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Dielectric Loss Constant') - def set_dielectric_loss_constant(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Dielectric Loss Constant=' + value]) - - @property - def get_warnings(self): - """Warnings - "Warning(s) for this node." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Circulator.py deleted file mode 100644 index 3f26cce21d9..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Circulator.py +++ /dev/null @@ -1,171 +0,0 @@ -class Node_Circulator(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_filename(self): - """Filename - "Name of file defining the Isolator/Circulator." - "Value should be a full file path." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - def set_filename(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) - - @property - def get_noise_temperature(self): - """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - def set_noise_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) - - @property - def get_notes(self): - """Notes - "Expand to view/edit notes stored with the project." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - def set_notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) - - @property - def get_type(self): - """Type - "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - def set_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) - class TypeOption(Enum): - ( - BYFILE = "By File" - PARAMETRIC = "Parametric" - ) - - @property - def get_port_1_location(self): - """Port 1 Location - "Defines the orientation of the circulator.." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port 1 Location') - def set_port_1_location(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Port 1 Location=' + value]) - class Port1LocationOption(Enum): - ( - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" - ) - - @property - def get_insertion_loss(self): - """Insertion Loss - "Circulator in-band loss in forward direction.." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') - def set_insertion_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) - - @property - def get_finite_reverse_isolation(self): - """Finite Reverse Isolation - "Use a finite reverse isolation. If disabled, the circulator model is ideal (infinite reverse isolation).." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Reverse Isolation') - def set_finite_reverse_isolation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Reverse Isolation=' + value]) - - @property - def get_reverse_isolation(self): - """Reverse Isolation - "Circulator reverse isolation (i.e., loss in the reverse direction).." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reverse Isolation') - def set_reverse_isolation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) - - @property - def get_finite_bandwidth(self): - """Finite Bandwidth - "Use a finite bandwidth. If disabled, the circulator model is ideal (infinite bandwidth).." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Bandwidth') - def set_finite_bandwidth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) - - @property - def get_out_of_band_attenuation(self): - """Out-of-band Attenuation - "Out-of-band loss (attenuation)." - "Value should be between 0 and 200." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out-of-band Attenuation') - def set_out_of_band_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) - - @property - def get_lower_stop_band(self): - """Lower Stop Band - "Lower stop band frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') - def set_lower_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) - - @property - def get_lower_cutoff(self): - """Lower Cutoff - "Lower cutoff frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') - def set_lower_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) - - @property - def get_higher_cutoff(self): - """Higher Cutoff - "Higher cutoff frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') - def set_higher_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) - - @property - def get_higher_stop_band(self): - """Higher Stop Band - "Higher stop band frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') - def set_higher_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) - - @property - def get_warnings(self): - """Warnings - "Warning(s) for this node." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_ConfigurationGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_ConfigurationGroup.py deleted file mode 100644 index d65640a5992..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_ConfigurationGroup.py +++ /dev/null @@ -1,5 +0,0 @@ -class Node_ConfigurationGroup(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_ConfigurationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_ConfigurationNode.py deleted file mode 100644 index b711ad89362..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_ConfigurationNode.py +++ /dev/null @@ -1,26 +0,0 @@ -class Node_ConfigurationNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_notes(self): - """Notes - "Expand to view/edit notes stored with the project." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - def set_notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_CouplingLinkNode.py deleted file mode 100644 index a283b48a2d6..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_CouplingLinkNode.py +++ /dev/null @@ -1,15 +0,0 @@ -class Node_CouplingLinkNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - @property - def get_enabled(self): - """Enabled - "Enable/Disable coupling link." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - def set_enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_CouplingTraceNode.py deleted file mode 100644 index f9215d1a0c6..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_CouplingTraceNode.py +++ /dev/null @@ -1,240 +0,0 @@ -class Node_CouplingTraceNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def export_model(self, file_name): - """Save this data to a file""" - return self._export_model(file_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_data_source(self): - """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - def set_data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) - - @property - def get_visible(self): - """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - def set_visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) - - @property - def get_custom_legend(self): - """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - def set_custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) - - @property - def get_name(self): - """Name - "Enter name of plot trace as it will appear in legend." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - def set_name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) - - @property - def get_style(self): - """Style - "Specify line style of plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - def set_style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) - class StyleOption(Enum): - ( - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" - ) - - @property - def get_line_width(self): - """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - def set_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) - - @property - def get_line_color(self): - """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - def set_line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) - - @property - def get_symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - def set_symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) - class SymbolOption(Enum): - ( - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" - ) - - @property - def get_symbol_size(self): - """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - def set_symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) - - @property - def get_symbol_color(self): - """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - def set_symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) - - @property - def get_symbol_line_width(self): - """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - def set_symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) - - @property - def get_symbol_filled(self): - """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - def set_symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) - - @property - def get_highlight_regions(self): - """Highlight Regions - "If true, regions of the trace are highlighted." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Highlight Regions') - def set_highlight_regions(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Highlight Regions=' + value]) - - @property - def get_show_region_labels(self): - """Show Region Labels - "If true, regions of the trace are labelled." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Region Labels') - def set_show_region_labels(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Region Labels=' + value]) - - @property - def get_font(self): - """Font - "Specify font used for the label." - "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Font') - def set_font(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Font=' + value]) - - @property - def get_color(self): - """Color - "Specify color of the label text." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Color') - def set_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Color=' + value]) - - @property - def get_background_color(self): - """Background Color - "Set color of the label text background." - "Color should be in RGBA form: #AARRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Background Color') - def set_background_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Background Color=' + value]) - - @property - def get_border(self): - """Border - "Display a border around the label text." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border') - def set_border(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border=' + value]) - - @property - def get_border_width(self): - """Border Width - "Set the width of the border around the label text." - "Value should be between 1 and 20." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border Width') - def set_border_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border Width=' + value]) - - @property - def get_border_color(self): - """Border Color - "Set color of the border around the label text." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border Color') - def set_border_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border Color=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_CouplingsNode.py deleted file mode 100644 index c1e2587105b..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_CouplingsNode.py +++ /dev/null @@ -1,35 +0,0 @@ - -from ..GenericEmitNode import GenericEmitNode - -class Node_CouplingsNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - @property - def get_minimum_allowed_coupling(self): - """Minimum Allowed Coupling - "Global minimum allowed coupling value. All computed coupling within this project will be >= this value." - "Value should be between -1000 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minimum Allowed Coupling') - def set_minimum_allowed_coupling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Minimum Allowed Coupling=' + value]) - - @property - def get_global_default_coupling(self): - """Global Default Coupling - "Default antenna-to-antenna coupling loss value." - "Value should be between -1000 and 0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Global Default Coupling') - def set_global_default_coupling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Global Default Coupling=' + value]) - - @property - def get_antenna_tags(self): - """Antenna Tags - "All tags currently used by all antennas in the project." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna Tags') - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_CustomCouplingNode.py deleted file mode 100644 index 37e4edbd61a..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_CustomCouplingNode.py +++ /dev/null @@ -1,60 +0,0 @@ -class Node_CustomCouplingNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def import_csv_file(self, file_name): - """Import a CSV File...""" - return self._import(file_name,'Csv') - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_enabled(self): - """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - def set_enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) - - @property - def get_enable_refinement(self): - """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - def set_enable_refinement(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) - - @property - def get_adaptive_sampling(self): - """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - def set_adaptive_sampling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) - - @property - def get_refinement_domain(self): - """Refinement Domain - "Points to use when refining the frequency domain.." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - def set_refinement_domain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_EmiPlotMarkerNode.py deleted file mode 100644 index 489ed297f1f..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_EmiPlotMarkerNode.py +++ /dev/null @@ -1,272 +0,0 @@ -class Node_EmiPlotMarkerNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_visible(self): - """Visible - "Toggle (on/off) this marker." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - def set_visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) - - @property - def get_attached(self): - """Attached - "Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False)." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Attached') - def set_attached(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Attached=' + value]) - - @property - def get_position(self): - """Position - "Set position of the marker along the X-axis." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') - - @property - def get_position(self): - """Position - "Set position of the marker along the Y-axis." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') - - @property - def get_floating_label(self): - """Floating Label - "Allow marker label to be positioned at a fixed point on the plot window (the marker symbol remains fixed to the specified X-Y point)." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Floating Label') - def set_floating_label(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Floating Label=' + value]) - - @property - def get_position_from_left(self): - """Position from Left - "Set position of label from left to right as a percentage of the width of the plot window." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position from Left') - def set_position_from_left(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position from Left=' + value]) - - @property - def get_position_from_top(self): - """Position from Top - "Set position of label from top to bottom as a percentage of the height of the plot window." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position from Top') - def set_position_from_top(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position from Top=' + value]) - - @property - def get_text(self): - """Text - "Set the text of the label." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Text') - def set_text(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Text=' + value]) - - @property - def get_horizontal_position(self): - """Horizontal Position - "Specify horizontal position of the label as compared to the symbol." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Horizontal Position') - def set_horizontal_position(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Horizontal Position=' + value]) - class HorizontalPositionOption(Enum): - ( - LEFT = "Left" - RIGHT = "Right" - CENTER = "Center" - ) - - @property - def get_vertical_position(self): - """Vertical Position - "Specify vertical position of the label as compared to the symbol." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Vertical Position') - def set_vertical_position(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Vertical Position=' + value]) - class VerticalPositionOption(Enum): - ( - TOP = "Top" - BOTTOM = "Bottom" - CENTER = "Center" - ) - - @property - def get_text_alignment(self): - """Text Alignment - "Specify justification applied to multi-line text." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Text Alignment') - def set_text_alignment(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Text Alignment=' + value]) - class TextAlignmentOption(Enum): - ( - LEFT = "Left" - RIGHT = "Right" - CENTER = "Center" - ) - - @property - def get_font(self): - """Font - "Specify font used for the label." - "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Font') - def set_font(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Font=' + value]) - - @property - def get_color(self): - """Color - "Specify color of the label text." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Color') - def set_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Color=' + value]) - - @property - def get_background_color(self): - """Background Color - "Set color of the label text background." - "Color should be in RGBA form: #AARRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Background Color') - def set_background_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Background Color=' + value]) - - @property - def get_border(self): - """Border - "Display a border around the label text." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border') - def set_border(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border=' + value]) - - @property - def get_border_width(self): - """Border Width - "Set the width of the border around the label text." - "Value should be between 1 and 20." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border Width') - def set_border_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border Width=' + value]) - - @property - def get_border_color(self): - """Border Color - "Set color of the border around the label text." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border Color') - def set_border_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border Color=' + value]) - - @property - def get_symbol(self): - """Symbol - "Specify symbol displayed next to the label." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - def set_symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) - class SymbolOption(Enum): - ( - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" - ARROW = "Arrow" - ) - - @property - def get_arrow_direction(self): - """Arrow Direction - "Set direction of the arrow; zero degrees is up." - "Value should be between -360 and 360." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Arrow Direction') - def set_arrow_direction(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Arrow Direction=' + value]) - - @property - def get_symbol_size(self): - """Symbol Size - "Set size of the symbol used for this marker." - "Value should be between 1 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - def set_symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) - - @property - def get_symbol_color(self): - """Symbol Color - "Set color of the symbol used for this marker." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - def set_symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) - - @property - def get_line_width(self): - """Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - def set_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) - - @property - def get_filled(self): - """Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filled') - def set_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filled=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_EmitSceneNode.py deleted file mode 100644 index d7955ef9627..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_EmitSceneNode.py +++ /dev/null @@ -1,42 +0,0 @@ - -from ..GenericEmitNode import GenericEmitNode -from enum import Enum - -class Node_EmitSceneNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - @property - def notes(self): - """Notes - "Expand to view/edit notes stored with the project." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - @notes.setter - def set_notes(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) - - @property - def get_ground_plane_normal(self): - """Ground Plane Normal - "Specifies the axis of the normal to the ground plane." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Ground Plane Normal') - def set_ground_plane_normal(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Ground Plane Normal=' + value]) - class GroundPlaneNormalOption(Enum): - XAXIS = "X Axis" - YAXIS = "Y Axis" - ZAXIS = "Z Axis" - - @property - def get_gp_position_along_normal(self): - """GP Position Along Normal - "Offset of ground plane in direction normal to the ground planes orientation." - "Value should be between unbounded and unbounded." - """ - return self._oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'GP Position Along Normal') - def set_gp_position_along_normal(self, value): - self._oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['GP Position Along Normal=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_ErcegCouplingNode.py deleted file mode 100644 index e8666e3a5b2..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_ErcegCouplingNode.py +++ /dev/null @@ -1,217 +0,0 @@ -class Node_ErcegCouplingNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_enabled(self): - """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - def set_enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) - - @property - def get_enable_refinement(self): - """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - def set_enable_refinement(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) - - @property - def get_adaptive_sampling(self): - """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - def set_adaptive_sampling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) - - @property - def get_refinement_domain(self): - """Refinement Domain - "Points to use when refining the frequency domain.." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - def set_refinement_domain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) - - @property - def get_terrain_category(self): - """Terrain Category - "Specify the terrain category type for the Erceg model." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Terrain Category') - def set_terrain_category(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Terrain Category=' + value]) - class TerrainCategoryOption(Enum): - ( - TYPEA = "Type A" - TYPEB = "Type B" - TYPEC = "Type C" - ) - - @property - def get_custom_fading_margin(self): - """Custom Fading Margin - "Sets a custom fading margin to be applied to all coupling defined by this node." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') - def set_custom_fading_margin(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) - - @property - def get_polarization_mismatch(self): - """Polarization Mismatch - "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') - def set_polarization_mismatch(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) - - @property - def get_pointing_error_loss(self): - """Pointing Error Loss - "Sets a margin for pointing error loss to be applied to all coupling defined by this node." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') - def set_pointing_error_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) - - @property - def get_fading_type(self): - """Fading Type - "Specify the type of fading to include." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') - def set_fading_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) - class FadingTypeOption(Enum): - ( - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" - ) - - @property - def get_fading_availability(self): - """Fading Availability - "The probability that the propagation loss in dB is below its median value plus the margin." - "Value should be between 0.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') - def set_fading_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) - - @property - def get_std_deviation(self): - """Std Deviation - "Standard deviation modeling the random amount of shadowing loss." - "Value should be between 0.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') - def set_std_deviation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) - - @property - def get_include_rain_attenuation(self): - """Include Rain Attenuation - "Adds a margin for rain attenuation to the computed coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') - def set_include_rain_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) - - @property - def get_rain_availability(self): - """Rain Availability - "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." - "Value should be between 99 and 99.999." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') - def set_rain_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) - - @property - def get_rain_rate(self): - """Rain Rate - "Rain rate (mm/hr) exceeded for 0.01% of the time." - "Value should be between 0.0 and 1000.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') - def set_rain_rate(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) - - @property - def get_polarization_tilt_angle(self): - """Polarization Tilt Angle - "Polarization tilt angle of the transmitted signal relative to the horizontal." - "Value should be between 0.0 and 180.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') - def set_polarization_tilt_angle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) - - @property - def get_include_atmospheric_absorption(self): - """Include Atmospheric Absorption - "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') - def set_include_atmospheric_absorption(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) - - @property - def get_temperature(self): - """Temperature - "Air temperature in degrees Celsius." - "Value should be between -273.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') - def set_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) - - @property - def get_total_air_pressure(self): - """Total Air Pressure - "Total air pressure." - "Value should be between 0.0 and 2000.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') - def set_total_air_pressure(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) - - @property - def get_water_vapor_concentration(self): - """Water Vapor Concentration - "Water vapor concentration." - "Value should be between 0.0 and 2000.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') - def set_water_vapor_concentration(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Filter.py deleted file mode 100644 index 40f761454ee..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Filter.py +++ /dev/null @@ -1,252 +0,0 @@ -class Node_Filter(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_filename(self): - """Filename - "Name of file defining the outboard component." - "Value should be a full file path." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - def set_filename(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) - - @property - def get_noise_temperature(self): - """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - def set_noise_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) - - @property - def get_notes(self): - """Notes - "Expand to view/edit notes stored with the project." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - def set_notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) - - @property - def get_type(self): - """Type - "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - def set_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) - class TypeOption(Enum): - ( - BYFILE = "By File" - LOWPASS = "Low Pass" - HIGHPASS = "High Pass" - BANDPASS = "Band Pass" - BANDSTOP = "Band Stop" - TUNABLEBANDPASS = "Tunable Bandpass" - TUNABLEBANDSTOP = "Tunable Bandstop" - ) - - @property - def get_insertion_loss(self): - """Insertion Loss - "Filter pass band loss." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') - def set_insertion_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) - - @property - def get_stop_band_attenuation(self): - """Stop band Attenuation - "Filter stop band loss (attenuation)." - "Value should be between ::InsertionLoss and 200." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop band Attenuation') - def set_stop_band_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Stop band Attenuation=' + value]) - - @property - def get_max_pass_band(self): - """Max Pass Band - "Maximum pass band frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Pass Band') - def set_max_pass_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Pass Band=' + value]) - - @property - def get_min_stop_band(self): - """Min Stop Band - "Minimum stop band frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Stop Band') - def set_min_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Min Stop Band=' + value]) - - @property - def get_max_stop_band(self): - """Max Stop Band - "Maximum stop band frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Stop Band') - def set_max_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Stop Band=' + value]) - - @property - def get_min_pass_band(self): - """Min Pass Band - "Minimum pass band frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Pass Band') - def set_min_pass_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Min Pass Band=' + value]) - - @property - def get_lower_stop_band(self): - """Lower Stop Band - "Lower stop band frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') - def set_lower_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) - - @property - def get_lower_cutoff(self): - """Lower Cutoff - "Lower cutoff frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') - def set_lower_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) - - @property - def get_higher_cutoff(self): - """Higher Cutoff - "Higher cutoff frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') - def set_higher_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) - - @property - def get_higher_stop_band(self): - """Higher Stop Band - "Higher stop band frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') - def set_higher_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) - - @property - def get_lower_cutoff_(self): - """Lower Cutoff - "Lower cutoff frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff ') - def set_lower_cutoff_(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff =' + value]) - - @property - def get_lower_stop_band_(self): - """Lower Stop Band - "Lower stop band frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band ') - def set_lower_stop_band_(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band =' + value]) - - @property - def get_higher_stop_band_(self): - """Higher Stop Band - "Higher stop band frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band ') - def set_higher_stop_band_(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band =' + value]) - - @property - def get_higher_cutoff_(self): - """Higher Cutoff - "Higher cutoff frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff ') - def set_higher_cutoff_(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff =' + value]) - - @property - def get_lowest_tuned_frequency_(self): - """Lowest Tuned Frequency - "Lowest tuned frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lowest Tuned Frequency ') - def set_lowest_tuned_frequency_(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lowest Tuned Frequency =' + value]) - - @property - def get_highest_tuned_frequency_(self): - """Highest Tuned Frequency - "Highest tuned frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Highest Tuned Frequency ') - def set_highest_tuned_frequency_(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Highest Tuned Frequency =' + value]) - - @property - def get_percent_bandwidth(self): - """Percent Bandwidth - "Tunable filter 3-dB bandwidth." - "Value should be between 0.001 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Percent Bandwidth') - def set_percent_bandwidth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Percent Bandwidth=' + value]) - - @property - def get_shape_factor(self): - """Shape Factor - "Ratio defining the filter rolloff." - "Value should be between 1 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Shape Factor') - def set_shape_factor(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Shape Factor=' + value]) - - @property - def get_warnings(self): - """Warnings - "Warning(s) for this node." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_FiveGChannelModel.py deleted file mode 100644 index bb47f6f2e54..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_FiveGChannelModel.py +++ /dev/null @@ -1,251 +0,0 @@ -class Node_FiveGChannelModel(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_enabled(self): - """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - def set_enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) - - @property - def get_enable_refinement(self): - """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - def set_enable_refinement(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) - - @property - def get_adaptive_sampling(self): - """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - def set_adaptive_sampling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) - - @property - def get_refinement_domain(self): - """Refinement Domain - "Points to use when refining the frequency domain.." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - def set_refinement_domain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) - - @property - def get_environment(self): - """Environment - "Specify the environment for the 5G channel model." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Environment') - def set_environment(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Environment=' + value]) - class EnvironmentOption(Enum): - ( - URBANMICROCELL = "Urban Microcell" - URBANMACROCELL = "Urban Macrocell" - RURALMACROCELL = "Rural Macrocell" - ) - - @property - def get_los(self): - """LOS - "True if the operating environment is line-of-sight." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'LOS') - def set_los(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['LOS=' + value]) - - @property - def get_include_bpl(self): - """Include BPL - "Includes building penetration loss if true." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include BPL') - def set_include_bpl(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include BPL=' + value]) - - @property - def get_nyu_bpl_model(self): - """NYU BPL Model - "Specify the NYU Building Penetration Loss model." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'NYU BPL Model') - def set_nyu_bpl_model(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['NYU BPL Model=' + value]) - class NYUBPLModelOption(Enum): - ( - LOWLOSSMODEL = "Low-loss model" - HIGHLOSSMODEL = "High-loss model" - ) - - @property - def get_custom_fading_margin(self): - """Custom Fading Margin - "Sets a custom fading margin to be applied to all coupling defined by this node." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') - def set_custom_fading_margin(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) - - @property - def get_polarization_mismatch(self): - """Polarization Mismatch - "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') - def set_polarization_mismatch(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) - - @property - def get_pointing_error_loss(self): - """Pointing Error Loss - "Sets a margin for pointing error loss to be applied to all coupling defined by this node." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') - def set_pointing_error_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) - - @property - def get_fading_type(self): - """Fading Type - "Specify the type of fading to include." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') - def set_fading_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) - class FadingTypeOption(Enum): - ( - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" - ) - - @property - def get_fading_availability(self): - """Fading Availability - "The probability that the propagation loss in dB is below its median value plus the margin." - "Value should be between 0.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') - def set_fading_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) - - @property - def get_std_deviation(self): - """Std Deviation - "Standard deviation modeling the random amount of shadowing loss." - "Value should be between 0.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') - def set_std_deviation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) - - @property - def get_include_rain_attenuation(self): - """Include Rain Attenuation - "Adds a margin for rain attenuation to the computed coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') - def set_include_rain_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) - - @property - def get_rain_availability(self): - """Rain Availability - "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." - "Value should be between 99 and 99.999." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') - def set_rain_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) - - @property - def get_rain_rate(self): - """Rain Rate - "Rain rate (mm/hr) exceeded for 0.01% of the time." - "Value should be between 0.0 and 1000.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') - def set_rain_rate(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) - - @property - def get_polarization_tilt_angle(self): - """Polarization Tilt Angle - "Polarization tilt angle of the transmitted signal relative to the horizontal." - "Value should be between 0.0 and 180.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') - def set_polarization_tilt_angle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) - - @property - def get_include_atmospheric_absorption(self): - """Include Atmospheric Absorption - "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') - def set_include_atmospheric_absorption(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) - - @property - def get_temperature(self): - """Temperature - "Air temperature in degrees Celsius." - "Value should be between -273.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') - def set_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) - - @property - def get_total_air_pressure(self): - """Total Air Pressure - "Total air pressure." - "Value should be between 0.0 and 2000.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') - def set_total_air_pressure(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) - - @property - def get_water_vapor_concentration(self): - """Water Vapor Concentration - "Water vapor concentration." - "Value should be between 0.0 and 2000.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') - def set_water_vapor_concentration(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_HataCouplingNode.py deleted file mode 100644 index c210c51b1e8..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_HataCouplingNode.py +++ /dev/null @@ -1,218 +0,0 @@ -class Node_HataCouplingNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_enabled(self): - """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - def set_enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) - - @property - def get_enable_refinement(self): - """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - def set_enable_refinement(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) - - @property - def get_adaptive_sampling(self): - """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - def set_adaptive_sampling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) - - @property - def get_refinement_domain(self): - """Refinement Domain - "Points to use when refining the frequency domain.." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - def set_refinement_domain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) - - @property - def get_environment(self): - """Environment - "Specify the environment type for the Hata model." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Environment') - def set_environment(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Environment=' + value]) - class EnvironmentOption(Enum): - ( - LARGECITY = "Large City" - SMALLMEDCITY = "Small/Medium City" - SUBURBAN = "Suburban" - RURAL = "Rural" - ) - - @property - def get_custom_fading_margin(self): - """Custom Fading Margin - "Sets a custom fading margin to be applied to all coupling defined by this node." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') - def set_custom_fading_margin(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) - - @property - def get_polarization_mismatch(self): - """Polarization Mismatch - "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') - def set_polarization_mismatch(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) - - @property - def get_pointing_error_loss(self): - """Pointing Error Loss - "Sets a margin for pointing error loss to be applied to all coupling defined by this node." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') - def set_pointing_error_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) - - @property - def get_fading_type(self): - """Fading Type - "Specify the type of fading to include." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') - def set_fading_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) - class FadingTypeOption(Enum): - ( - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" - ) - - @property - def get_fading_availability(self): - """Fading Availability - "The probability that the propagation loss in dB is below its median value plus the margin." - "Value should be between 0.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') - def set_fading_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) - - @property - def get_std_deviation(self): - """Std Deviation - "Standard deviation modeling the random amount of shadowing loss." - "Value should be between 0.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') - def set_std_deviation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) - - @property - def get_include_rain_attenuation(self): - """Include Rain Attenuation - "Adds a margin for rain attenuation to the computed coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') - def set_include_rain_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) - - @property - def get_rain_availability(self): - """Rain Availability - "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." - "Value should be between 99 and 99.999." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') - def set_rain_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) - - @property - def get_rain_rate(self): - """Rain Rate - "Rain rate (mm/hr) exceeded for 0.01% of the time." - "Value should be between 0.0 and 1000.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') - def set_rain_rate(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) - - @property - def get_polarization_tilt_angle(self): - """Polarization Tilt Angle - "Polarization tilt angle of the transmitted signal relative to the horizontal." - "Value should be between 0.0 and 180.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') - def set_polarization_tilt_angle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) - - @property - def get_include_atmospheric_absorption(self): - """Include Atmospheric Absorption - "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') - def set_include_atmospheric_absorption(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) - - @property - def get_temperature(self): - """Temperature - "Air temperature in degrees Celsius." - "Value should be between -273.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') - def set_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) - - @property - def get_total_air_pressure(self): - """Total Air Pressure - "Total air pressure." - "Value should be between 0.0 and 2000.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') - def set_total_air_pressure(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) - - @property - def get_water_vapor_concentration(self): - """Water Vapor Concentration - "Water vapor concentration." - "Value should be between 0.0 and 2000.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') - def set_water_vapor_concentration(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_IndoorPropagationCouplingNode.py deleted file mode 100644 index 829396b7260..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_IndoorPropagationCouplingNode.py +++ /dev/null @@ -1,229 +0,0 @@ -class Node_IndoorPropagationCouplingNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_enabled(self): - """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - def set_enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) - - @property - def get_enable_refinement(self): - """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - def set_enable_refinement(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) - - @property - def get_adaptive_sampling(self): - """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - def set_adaptive_sampling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) - - @property - def get_refinement_domain(self): - """Refinement Domain - "Points to use when refining the frequency domain.." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - def set_refinement_domain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) - - @property - def get_building_type(self): - """Building Type - "Specify the building type for the Indoor Propagation model." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Building Type') - def set_building_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Building Type=' + value]) - class BuildingTypeOption(Enum): - ( - RESIDENTIALAPARTMENT = "Residential Apartment" - RESIDENTIALHOUSE = "Residential House" - OFFICEBUILDING = "Office Building" - COMMERCIALBUILDING = "Commercial Building" - CUSTOMBUILDING = "Custom Building" - ) - - @property - def get_number_of_floors(self): - """Number of Floors - "The number of floors separating the antennas.." - "Value should be between 1 and 3." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Floors') - def set_number_of_floors(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Number of Floors=' + value]) - - @property - def get_custom_fading_margin(self): - """Custom Fading Margin - "Sets a custom fading margin to be applied to all coupling defined by this node." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') - def set_custom_fading_margin(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) - - @property - def get_polarization_mismatch(self): - """Polarization Mismatch - "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') - def set_polarization_mismatch(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) - - @property - def get_pointing_error_loss(self): - """Pointing Error Loss - "Sets a margin for pointing error loss to be applied to all coupling defined by this node." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') - def set_pointing_error_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) - - @property - def get_fading_type(self): - """Fading Type - "Specify the type of fading to include." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') - def set_fading_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) - class FadingTypeOption(Enum): - ( - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" - ) - - @property - def get_fading_availability(self): - """Fading Availability - "The probability that the propagation loss in dB is below its median value plus the margin." - "Value should be between 0.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') - def set_fading_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) - - @property - def get_std_deviation(self): - """Std Deviation - "Standard deviation modeling the random amount of shadowing loss." - "Value should be between 0.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') - def set_std_deviation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) - - @property - def get_include_rain_attenuation(self): - """Include Rain Attenuation - "Adds a margin for rain attenuation to the computed coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') - def set_include_rain_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) - - @property - def get_rain_availability(self): - """Rain Availability - "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." - "Value should be between 99 and 99.999." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') - def set_rain_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) - - @property - def get_rain_rate(self): - """Rain Rate - "Rain rate (mm/hr) exceeded for 0.01% of the time." - "Value should be between 0.0 and 1000.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') - def set_rain_rate(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) - - @property - def get_polarization_tilt_angle(self): - """Polarization Tilt Angle - "Polarization tilt angle of the transmitted signal relative to the horizontal." - "Value should be between 0.0 and 180.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') - def set_polarization_tilt_angle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) - - @property - def get_include_atmospheric_absorption(self): - """Include Atmospheric Absorption - "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') - def set_include_atmospheric_absorption(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) - - @property - def get_temperature(self): - """Temperature - "Air temperature in degrees Celsius." - "Value should be between -273.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') - def set_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) - - @property - def get_total_air_pressure(self): - """Total Air Pressure - "Total air pressure." - "Value should be between 0.0 and 2000.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') - def set_total_air_pressure(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) - - @property - def get_water_vapor_concentration(self): - """Water Vapor Concentration - "Water vapor concentration." - "Value should be between 0.0 and 2000.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') - def set_water_vapor_concentration(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_InteractionDiagramNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_InteractionDiagramNode.py deleted file mode 100644 index eedd0e540b8..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_InteractionDiagramNode.py +++ /dev/null @@ -1,9 +0,0 @@ -class Node_InteractionDiagramNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def delete(self): - """Delete this node""" - self._delete() - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Isolator.py deleted file mode 100644 index 2d8c0167c34..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Isolator.py +++ /dev/null @@ -1,171 +0,0 @@ -class Node_Isolator(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_filename(self): - """Filename - "Name of file defining the outboard component." - "Value should be a full file path." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - def set_filename(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) - - @property - def get_noise_temperature(self): - """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - def set_noise_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) - - @property - def get_notes(self): - """Notes - "Expand to view/edit notes stored with the project." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - def set_notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) - - @property - def get_type(self): - """Type - "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - def set_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) - class TypeOption(Enum): - ( - BYFILE = "By File" - PARAMETRIC = "Parametric" - ) - - @property - def get_port_1_location(self): - """Port 1 Location - "Defines the orientation of the isolator.." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port 1 Location') - def set_port_1_location(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Port 1 Location=' + value]) - class Port1LocationOption(Enum): - ( - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" - ) - - @property - def get_insertion_loss(self): - """Insertion Loss - "Isolator in-band loss in forward direction.." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') - def set_insertion_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) - - @property - def get_finite_reverse_isolation(self): - """Finite Reverse Isolation - "Use a finite reverse isolation. If disabled, the isolator model is ideal (infinite reverse isolation).." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Reverse Isolation') - def set_finite_reverse_isolation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Reverse Isolation=' + value]) - - @property - def get_reverse_isolation(self): - """Reverse Isolation - "Isolator reverse isolation (i.e., loss in the reverse direction).." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reverse Isolation') - def set_reverse_isolation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) - - @property - def get_finite_bandwidth(self): - """Finite Bandwidth - "Use a finite bandwidth. If disabled, the isolator model is ideal (infinite bandwidth).." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Bandwidth') - def set_finite_bandwidth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) - - @property - def get_out_of_band_attenuation(self): - """Out-of-band Attenuation - "Out-of-band loss (attenuation)." - "Value should be between 0 and 200." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out-of-band Attenuation') - def set_out_of_band_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) - - @property - def get_lower_stop_band(self): - """Lower Stop Band - "Lower stop band frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') - def set_lower_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) - - @property - def get_lower_cutoff(self): - """Lower Cutoff - "Lower cutoff frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') - def set_lower_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) - - @property - def get_higher_cutoff(self): - """Higher Cutoff - "Higher cutoff frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') - def set_higher_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) - - @property - def get_higher_stop_band(self): - """Higher Stop Band - "Higher stop band frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') - def set_higher_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) - - @property - def get_warnings(self): - """Warnings - "Warning(s) for this node." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_LogDistanceCouplingNode.py deleted file mode 100644 index bd9f2fb8f5a..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_LogDistanceCouplingNode.py +++ /dev/null @@ -1,231 +0,0 @@ -class Node_LogDistanceCouplingNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_enabled(self): - """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - def set_enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) - - @property - def get_enable_refinement(self): - """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - def set_enable_refinement(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) - - @property - def get_adaptive_sampling(self): - """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - def set_adaptive_sampling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) - - @property - def get_refinement_domain(self): - """Refinement Domain - "Points to use when refining the frequency domain.." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - def set_refinement_domain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) - - @property - def get_environment(self): - """Environment - "Specify the environment type for the Log Distance model." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Environment') - def set_environment(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Environment=' + value]) - class EnvironmentOption(Enum): - ( - FREESPACE = "Free Space" - URBAN = "Urban" - SHADOWEDURBAN = "Shadowed Urban" - BUILDINGLINEOFSIGHT = "Building - Line of Sight" - BUILDINGOBSTRUCTED = "Building - Obstructed" - FACTORYOBSTRUCTED = "Factory - Obstructed" - CUSTOMEXPONENT = "Custom" - ) - - @property - def get_path_loss_exponent(self): - """Path Loss Exponent - "Path Loss Exponent." - "Value should be between 0.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Path Loss Exponent') - def set_path_loss_exponent(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Path Loss Exponent=' + value]) - - @property - def get_custom_fading_margin(self): - """Custom Fading Margin - "Sets a custom fading margin to be applied to all coupling defined by this node." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') - def set_custom_fading_margin(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) - - @property - def get_polarization_mismatch(self): - """Polarization Mismatch - "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') - def set_polarization_mismatch(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) - - @property - def get_pointing_error_loss(self): - """Pointing Error Loss - "Sets a margin for pointing error loss to be applied to all coupling defined by this node." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') - def set_pointing_error_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) - - @property - def get_fading_type(self): - """Fading Type - "Specify the type of fading to include." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') - def set_fading_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) - class FadingTypeOption(Enum): - ( - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" - ) - - @property - def get_fading_availability(self): - """Fading Availability - "The probability that the propagation loss in dB is below its median value plus the margin." - "Value should be between 0.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') - def set_fading_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) - - @property - def get_std_deviation(self): - """Std Deviation - "Standard deviation modeling the random amount of shadowing loss." - "Value should be between 0.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') - def set_std_deviation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) - - @property - def get_include_rain_attenuation(self): - """Include Rain Attenuation - "Adds a margin for rain attenuation to the computed coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') - def set_include_rain_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) - - @property - def get_rain_availability(self): - """Rain Availability - "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." - "Value should be between 99 and 99.999." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') - def set_rain_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) - - @property - def get_rain_rate(self): - """Rain Rate - "Rain rate (mm/hr) exceeded for 0.01% of the time." - "Value should be between 0.0 and 1000.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') - def set_rain_rate(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) - - @property - def get_polarization_tilt_angle(self): - """Polarization Tilt Angle - "Polarization tilt angle of the transmitted signal relative to the horizontal." - "Value should be between 0.0 and 180.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') - def set_polarization_tilt_angle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) - - @property - def get_include_atmospheric_absorption(self): - """Include Atmospheric Absorption - "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') - def set_include_atmospheric_absorption(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) - - @property - def get_temperature(self): - """Temperature - "Air temperature in degrees Celsius." - "Value should be between -273.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') - def set_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) - - @property - def get_total_air_pressure(self): - """Total Air Pressure - "Total air pressure." - "Value should be between 0.0 and 2000.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') - def set_total_air_pressure(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) - - @property - def get_water_vapor_concentration(self): - """Water Vapor Concentration - "Water vapor concentration." - "Value should be between 0.0 and 2000.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') - def set_water_vapor_concentration(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_MPlexBandTraceNode.py deleted file mode 100644 index acd9b9c3274..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_MPlexBandTraceNode.py +++ /dev/null @@ -1,172 +0,0 @@ -class Node_MPlexBandTraceNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def export_model(self, file_name): - """Save this data to a file""" - return self._export_model(file_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_power_direction(self): - """Power Direction - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Power Direction') - def set_power_direction(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Power Direction=' + value]) - class PowerDirectionOption(Enum): - ( - INCOMMONPORT|OUTCOMMONPORT = "Into Common Port|Out of Common Port" - ) - - @property - def get_data_source(self): - """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - def set_data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) - - @property - def get_visible(self): - """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - def set_visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) - - @property - def get_custom_legend(self): - """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - def set_custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) - - @property - def get_name(self): - """Name - "Enter name of plot trace as it will appear in legend." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - def set_name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) - - @property - def get_style(self): - """Style - "Specify line style of plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - def set_style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) - class StyleOption(Enum): - ( - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" - ) - - @property - def get_line_width(self): - """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - def set_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) - - @property - def get_line_color(self): - """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - def set_line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) - - @property - def get_symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - def set_symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) - class SymbolOption(Enum): - ( - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" - ) - - @property - def get_symbol_size(self): - """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - def set_symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) - - @property - def get_symbol_color(self): - """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - def set_symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) - - @property - def get_symbol_line_width(self): - """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - def set_symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) - - @property - def get_symbol_filled(self): - """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - def set_symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Multiplexer.py deleted file mode 100644 index 2a368e7be96..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Multiplexer.py +++ /dev/null @@ -1,91 +0,0 @@ -class Node_Multiplexer(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_filename(self): - """Filename - "Name of file defining the multiplexer." - "Value should be a full file path." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - def set_filename(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) - - @property - def get_noise_temperature(self): - """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - def set_noise_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) - - @property - def get_notes(self): - """Notes - "Expand to view/edit notes stored with the project." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - def set_notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) - - @property - def get_type(self): - """Type - "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - def set_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) - class TypeOption(Enum): - ( - PARAMETRIC = "By Pass Band" - BYFILE = "By File" - ) - - @property - def get_port_1_location(self): - """Port 1 Location - "Defines the orientation of the multiplexer.." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port 1 Location') - def set_port_1_location(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Port 1 Location=' + value]) - class Port1LocationOption(Enum): - ( - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" - ) - - @property - def get_flip_ports_vertically(self): - """Flip Ports Vertically - "Reverses the port order on the multi-port side of the multiplexer.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Flip Ports Vertically') - def set_flip_ports_vertically(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Flip Ports Vertically=' + value]) - - @property - def get_warnings(self): - """Warnings - "Warning(s) for this node." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_MultiplexerBand.py deleted file mode 100644 index ce4b9623c5b..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_MultiplexerBand.py +++ /dev/null @@ -1,150 +0,0 @@ -class Node_MultiplexerBand(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_type(self): - """Type - "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - def set_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) - class TypeOption(Enum): - ( - BYFILE = "By File" - LOWPASS = "Low Pass" - HIGHPASS = "High Pass" - BANDPASS = "Band Pass" - ) - - @property - def get_filename(self): - """Filename - "Name of file defining the multiplexer band." - "Value should be a full file path." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - def set_filename(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) - - @property - def get_insertion_loss(self): - """Insertion Loss - "Multiplexer pass band insertion loss." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') - def set_insertion_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) - - @property - def get_stop_band_attenuation(self): - """Stop band Attenuation - "Stop-band loss (attenuation)." - "Value should be between 0 and 200." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop band Attenuation') - def set_stop_band_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Stop band Attenuation=' + value]) - - @property - def get_max_pass_band(self): - """Max Pass Band - "Maximum pass band frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Pass Band') - def set_max_pass_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Pass Band=' + value]) - - @property - def get_min_stop_band(self): - """Min Stop Band - "Minimum stop band frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Stop Band') - def set_min_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Min Stop Band=' + value]) - - @property - def get_max_stop_band(self): - """Max Stop Band - "Maximum stop band frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Stop Band') - def set_max_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Stop Band=' + value]) - - @property - def get_min_pass_band(self): - """Min Pass Band - "Minimum pass band frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Pass Band') - def set_min_pass_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Min Pass Band=' + value]) - - @property - def get_lower_stop_band(self): - """Lower Stop Band - "Lower stop band frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') - def set_lower_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) - - @property - def get_lower_cutoff(self): - """Lower Cutoff - "Lower cutoff frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') - def set_lower_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) - - @property - def get_higher_cutoff(self): - """Higher Cutoff - "Higher cutoff frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') - def set_higher_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) - - @property - def get_higher_stop_band(self): - """Higher Stop Band - "Higher stop band frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') - def set_higher_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) - - @property - def get_warnings(self): - """Warnings - "Warning(s) for this node." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Node.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Node.py deleted file mode 100644 index fb5f1f29ca2..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Node.py +++ /dev/null @@ -1,5 +0,0 @@ -class Node_Node(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_OutboardTraceNode.py deleted file mode 100644 index 4de3c1c1498..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_OutboardTraceNode.py +++ /dev/null @@ -1,180 +0,0 @@ -class Node_OutboardTraceNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def export_model(self, file_name): - """Save this data to a file""" - return self._export_model(file_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_input_port(self): - """Input Port - "Specifies input port for the plotted outboard component." - "Value should be greater than 1." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Input Port') - def set_input_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Input Port=' + value]) - - @property - def get_output_port(self): - """Output Port - "Specifies output port for the plotted outboard component." - "Value should be greater than 1." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Port') - def set_output_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Port=' + value]) - - @property - def get_data_source(self): - """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - def set_data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) - - @property - def get_visible(self): - """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - def set_visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) - - @property - def get_custom_legend(self): - """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - def set_custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) - - @property - def get_name(self): - """Name - "Enter name of plot trace as it will appear in legend." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - def set_name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) - - @property - def get_style(self): - """Style - "Specify line style of plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - def set_style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) - class StyleOption(Enum): - ( - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" - ) - - @property - def get_line_width(self): - """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - def set_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) - - @property - def get_line_color(self): - """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - def set_line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) - - @property - def get_symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - def set_symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) - class SymbolOption(Enum): - ( - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" - ) - - @property - def get_symbol_size(self): - """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - def set_symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) - - @property - def get_symbol_color(self): - """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - def set_symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) - - @property - def get_symbol_line_width(self): - """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - def set_symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) - - @property - def get_symbol_filled(self): - """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - def set_symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_ParametricCouplingTraceNode.py deleted file mode 100644 index 969234fd548..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_ParametricCouplingTraceNode.py +++ /dev/null @@ -1,160 +0,0 @@ -class Node_ParametricCouplingTraceNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def export_model(self, file_name): - """Save this data to a file""" - return self._export_model(file_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_data_source(self): - """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - def set_data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) - - @property - def get_visible(self): - """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - def set_visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) - - @property - def get_custom_legend(self): - """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - def set_custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) - - @property - def get_name(self): - """Name - "Enter name of plot trace as it will appear in legend." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - def set_name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) - - @property - def get_style(self): - """Style - "Specify line style of plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - def set_style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) - class StyleOption(Enum): - ( - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" - ) - - @property - def get_line_width(self): - """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - def set_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) - - @property - def get_line_color(self): - """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - def set_line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) - - @property - def get_symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - def set_symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) - class SymbolOption(Enum): - ( - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" - ) - - @property - def get_symbol_size(self): - """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - def set_symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) - - @property - def get_symbol_color(self): - """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - def set_symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) - - @property - def get_symbol_line_width(self): - """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - def set_symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) - - @property - def get_symbol_filled(self): - """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - def set_symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_PlotMarkerNode.py deleted file mode 100644 index 96783850af5..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_PlotMarkerNode.py +++ /dev/null @@ -1,277 +0,0 @@ -class Node_PlotMarkerNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_visible(self): - """Visible - "Toggle (on/off) this marker." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - def set_visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) - - @property - def get_attached(self): - """Attached - "Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False)." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Attached') - def set_attached(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Attached=' + value]) - - @property - def get_position(self): - """Position - "Set position of the marker along the X-axis." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') - def set_position(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position=' + value]) - - @property - def get_position(self): - """Position - "Set position of the marker along the Y-axis." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') - def set_position(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position=' + value]) - - @property - def get_floating_label(self): - """Floating Label - "Allow marker label to be positioned at a fixed point on the plot window (the marker symbol remains fixed to the specified X-Y point)." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Floating Label') - def set_floating_label(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Floating Label=' + value]) - - @property - def get_position_from_left(self): - """Position from Left - "Set position of label from left to right as a percentage of the width of the plot window." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position from Left') - def set_position_from_left(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position from Left=' + value]) - - @property - def get_position_from_top(self): - """Position from Top - "Set position of label from top to bottom as a percentage of the height of the plot window." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position from Top') - def set_position_from_top(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position from Top=' + value]) - - @property - def get_text(self): - """Text - "Set the text of the label." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Text') - def set_text(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Text=' + value]) - - @property - def get_horizontal_position(self): - """Horizontal Position - "Specify horizontal position of the label as compared to the symbol." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Horizontal Position') - def set_horizontal_position(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Horizontal Position=' + value]) - class HorizontalPositionOption(Enum): - ( - LEFT = "Left" - RIGHT = "Right" - CENTER = "Center" - ) - - @property - def get_vertical_position(self): - """Vertical Position - "Specify vertical position of the label as compared to the symbol." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Vertical Position') - def set_vertical_position(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Vertical Position=' + value]) - class VerticalPositionOption(Enum): - ( - TOP = "Top" - BOTTOM = "Bottom" - CENTER = "Center" - ) - - @property - def get_text_alignment(self): - """Text Alignment - "Specify justification applied to multi-line text." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Text Alignment') - def set_text_alignment(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Text Alignment=' + value]) - class TextAlignmentOption(Enum): - ( - LEFT = "Left" - RIGHT = "Right" - CENTER = "Center" - ) - - @property - def get_font(self): - """Font - "Specify font used for the label." - "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Font') - def set_font(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Font=' + value]) - - @property - def get_color(self): - """Color - "Specify color of the label text." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Color') - def set_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Color=' + value]) - - @property - def get_background_color(self): - """Background Color - "Set color of the label text background." - "Color should be in RGBA form: #AARRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Background Color') - def set_background_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Background Color=' + value]) - - @property - def get_border(self): - """Border - "Display a border around the label text." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border') - def set_border(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border=' + value]) - - @property - def get_border_width(self): - """Border Width - "Set the width of the border around the label text." - "Value should be between 1 and 20." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border Width') - def set_border_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border Width=' + value]) - - @property - def get_border_color(self): - """Border Color - "Set color of the border around the label text." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border Color') - def set_border_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border Color=' + value]) - - @property - def get_symbol(self): - """Symbol - "Specify symbol displayed next to the label." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - def set_symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) - class SymbolOption(Enum): - ( - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" - ARROW = "Arrow" - ) - - @property - def get_arrow_direction(self): - """Arrow Direction - "Set direction of the arrow; zero degrees is up." - "Value should be between -360 and 360." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Arrow Direction') - def set_arrow_direction(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Arrow Direction=' + value]) - - @property - def get_symbol_size(self): - """Symbol Size - "Set size of the symbol used for this marker." - "Value should be between 1 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - def set_symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) - - @property - def get_symbol_color(self): - """Symbol Color - "Set color of the symbol used for this marker." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - def set_symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) - - @property - def get_line_width(self): - """Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - def set_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) - - @property - def get_filled(self): - """Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filled') - def set_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filled=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_PlotNode.py deleted file mode 100644 index ef7e2d731a0..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_PlotNode.py +++ /dev/null @@ -1,317 +0,0 @@ -class Node_PlotNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def export_model(self, file_name): - """Save this data to a file""" - return self._export_model(file_name) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_title(self): - """Title - "Enter title at the top of the plot, room will be made for it." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Title') - def set_title(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Title=' + value]) - - @property - def get_title_font(self): - """Title Font - "Configure title font family, typeface, and size." - "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Title Font') - def set_title_font(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Title Font=' + value]) - - @property - def get_show_legend(self): - """Show Legend - "Toggle (on/off) display of plot legend." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Legend') - def set_show_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Legend=' + value]) - - @property - def get_legend_font(self): - """Legend Font - "Configure legend font family, typeface, and size." - "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Legend Font') - def set_legend_font(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Legend Font=' + value]) - - @property - def get_display_cad_overlay(self): - """Display CAD Overlay - "Toggle on/off overlay of CAD model in plot." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Display CAD Overlay') - def set_display_cad_overlay(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Display CAD Overlay=' + value]) - - @property - def get_opacity(self): - """Opacity - "Adjust opacity of CAD model overlay: 0 Transparent - 1 Opaque." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Opacity') - def set_opacity(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Opacity=' + value]) - - @property - def get_vertical_offset(self): - """Vertical Offset - "Adjust vertical position of CAD model overlay." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Vertical Offset') - def set_vertical_offset(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Vertical Offset=' + value]) - - @property - def get_range_axis_rotation(self): - """Range Axis Rotation - "Adjust view angle for CAD model overlay by rotating it about plot horizontal axis." - "Value should be between -180 and 180." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Range Axis Rotation') - def set_range_axis_rotation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Range Axis Rotation=' + value]) - - @property - def get_lock_axes(self): - """Lock Axes - "Allow or prevent changing of axes when displayed plot traces are updated." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lock Axes') - def set_lock_axes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lock Axes=' + value]) - - @property - def get_x_axis_min(self): - """X-axis Min - "Set lower extent of horizontal axis." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X-axis Min') - def set_x_axis_min(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['X-axis Min=' + value]) - - @property - def get_x_axis_max(self): - """X-axis Max - "Set upper extent of horizontal axis." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X-axis Max') - def set_x_axis_max(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['X-axis Max=' + value]) - - @property - def get_y_axis_min(self): - """Y-axis Min - "Set lower extent of vertical axis." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y-axis Min') - def set_y_axis_min(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y-axis Min=' + value]) - - @property - def get_y_axis_max(self): - """Y-axis Max - "Set upper extent of vertical axis." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y-axis Max') - def set_y_axis_max(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y-axis Max=' + value]) - - @property - def get_y_axis_range(self): - """Y-axis Range - "Adjust dB span of vertical axis, makes corresponding adjustment in Y-axis Min." - "Value should be greater than 0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y-axis Range') - def set_y_axis_range(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y-axis Range=' + value]) - - @property - def get_max_major_ticks(self): - """Max Major Ticks - "Set maximum number of major tick-mark intervals along horizontal axis." - "Value should be between 1 and 30." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Major Ticks') - def set_max_major_ticks(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) - - @property - def get_max_minor_ticks(self): - """Max Minor Ticks - "Set maximum number of minor tick-mark intervals between major ticks along horizontal axis." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Minor Ticks') - def set_max_minor_ticks(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) - - @property - def get_max_major_ticks(self): - """Max Major Ticks - "Set maximum number of major tick-mark intervals along vertical axis." - "Value should be between 1 and 30." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Major Ticks') - def set_max_major_ticks(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) - - @property - def get_max_minor_ticks(self): - """Max Minor Ticks - "Set maximum number of minor tick-mark intervals between major ticks along vertical axis." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Minor Ticks') - def set_max_minor_ticks(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) - - @property - def get_axis_label_font(self): - """Axis Label Font - "Configure axis text labels font family, typeface, and size." - "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Axis Label Font') - def set_axis_label_font(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Axis Label Font=' + value]) - - @property - def get_axis_tick_label_font(self): - """Axis Tick Label Font - "Configure axis tick numeric labels font family, typeface, and size." - "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Axis Tick Label Font') - def set_axis_tick_label_font(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Axis Tick Label Font=' + value]) - - @property - def get_major_grid_line_style(self): - """Major Grid Line Style - "Select line style of major-tick grid lines." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Major Grid Line Style') - def set_major_grid_line_style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Major Grid Line Style=' + value]) - class MajorGridLineStyleOption(Enum): - ( - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" - ) - - @property - def get_major_grid_color(self): - """Major Grid Color - "Set color of major-tick grid lines." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Major Grid Color') - def set_major_grid_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Major Grid Color=' + value]) - - @property - def get_minor_grid_line_style(self): - """Minor Grid Line Style - "Select line style of minor-tick grid lines." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minor Grid Line Style') - def set_minor_grid_line_style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Minor Grid Line Style=' + value]) - class MinorGridLineStyleOption(Enum): - ( - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" - ) - - @property - def get_minor_grid_color(self): - """Minor Grid Color - "Set color of minor-tick grid lines." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minor Grid Color') - def set_minor_grid_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Minor Grid Color=' + value]) - - @property - def get_background_color(self): - """Background Color - "Set background color of entire plot." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Background Color') - def set_background_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Background Color=' + value]) - - @property - def get_bb_power_for_plots_unit(self): - """BB Power for Plots Unit - "Units to use for plotting broadband power densities." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BB Power for Plots Unit') - def set_bb_power_for_plots_unit(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['BB Power for Plots Unit=' + value]) - class BBPowerforPlotsUnitOption(Enum): - ( - HERTZ = "hertz" - KILOHERTZ = "kilohertz" - MEGAHERTZ = "megahertz" - GIGAHERTZ = "gigahertz" - ) - - @property - def get_bb_power_bandwidth(self): - """BB Power Bandwidth - "Resolution bandwidth for broadband power." - "Value should be between 1.0 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BB Power Bandwidth') - def set_bb_power_bandwidth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['BB Power Bandwidth=' + value]) - - @property - def get_log_scale(self): - """Log Scale - "Toggles on/off using a log scale for the X-Axis." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Log Scale') - def set_log_scale(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Log Scale=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_PowerDivider.py deleted file mode 100644 index a1e17f75a6b..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_PowerDivider.py +++ /dev/null @@ -1,172 +0,0 @@ -class Node_PowerDivider(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_filename(self): - """Filename - "Name of file defining the Power Divider." - "Value should be a full file path." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - def set_filename(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) - - @property - def get_noise_temperature(self): - """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - def set_noise_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) - - @property - def get_notes(self): - """Notes - "Expand to view/edit notes stored with the project." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - def set_notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) - - @property - def get_type(self): - """Type - "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - def set_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) - class TypeOption(Enum): - ( - BYFILE = "By File" - _3DB = "3 dB" - RESISTIVE = "Resistive" - ) - - @property - def get_orientation(self): - """Orientation - "Defines the orientation of the Power Divider.." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation') - def set_orientation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Orientation=' + value]) - class OrientationOption(Enum): - ( - RADIOSIDE = "Divider" - ANTENNASIDE = "Combiner" - ) - - @property - def get_insertion_loss_above_ideal(self): - """Insertion Loss Above Ideal - "Additional loss beyond the ideal insertion loss. The ideal insertion loss is 3 dB for the 3 dB Divider and 6 dB for the Resistive Divider.." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss Above Ideal') - def set_insertion_loss_above_ideal(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Insertion Loss Above Ideal=' + value]) - - @property - def get_finite_isolation(self): - """Finite Isolation - "Use a finite isolation between output ports. If disabled, the Power Divider isolation is ideal (infinite isolation between output ports).." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Isolation') - def set_finite_isolation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Isolation=' + value]) - - @property - def get_isolation(self): - """Isolation - "Power Divider isolation between output ports.." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Isolation') - def set_isolation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Isolation=' + value]) - - @property - def get_finite_bandwidth(self): - """Finite Bandwidth - "Use a finite bandwidth. If disabled, the Power Divider model is ideal (infinite bandwidth).." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Bandwidth') - def set_finite_bandwidth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) - - @property - def get_out_of_band_attenuation(self): - """Out-of-band Attenuation - "Out-of-band loss (attenuation)." - "Value should be between 0 and 200." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out-of-band Attenuation') - def set_out_of_band_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) - - @property - def get_lower_stop_band(self): - """Lower Stop Band - "Lower stop band frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') - def set_lower_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) - - @property - def get_lower_cutoff(self): - """Lower Cutoff - "Lower cutoff frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') - def set_lower_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) - - @property - def get_higher_cutoff(self): - """Higher Cutoff - "Higher cutoff frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') - def set_higher_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) - - @property - def get_higher_stop_band(self): - """Higher Stop Band - "Higher stop band frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') - def set_higher_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) - - @property - def get_warnings(self): - """Warnings - "Warning(s) for this node." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_PowerTraceNode.py deleted file mode 100644 index c9c81da33fe..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_PowerTraceNode.py +++ /dev/null @@ -1,174 +0,0 @@ -class Node_PowerTraceNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def export_model(self, file_name): - """Save this data to a file""" - return self._export_model(file_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_direction(self): - """Direction - "Direction of power flow (towards or away from the transmitter) to plot." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Direction') - def set_direction(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Direction=' + value]) - class DirectionOption(Enum): - ( - AWAY = "Away From Tx" - TOWARD = "Toward Tx" - ) - - @property - def get_data_source(self): - """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - def set_data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) - - @property - def get_visible(self): - """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - def set_visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) - - @property - def get_custom_legend(self): - """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - def set_custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) - - @property - def get_name(self): - """Name - "Enter name of plot trace as it will appear in legend." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - def set_name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) - - @property - def get_style(self): - """Style - "Specify line style of plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - def set_style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) - class StyleOption(Enum): - ( - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" - ) - - @property - def get_line_width(self): - """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - def set_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) - - @property - def get_line_color(self): - """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - def set_line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) - - @property - def get_symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - def set_symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) - class SymbolOption(Enum): - ( - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" - ) - - @property - def get_symbol_size(self): - """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - def set_symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) - - @property - def get_symbol_color(self): - """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - def set_symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) - - @property - def get_symbol_line_width(self): - """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - def set_symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) - - @property - def get_symbol_filled(self): - """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - def set_symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_ProfileTraceNode.py deleted file mode 100644 index 6d873af7244..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_ProfileTraceNode.py +++ /dev/null @@ -1,160 +0,0 @@ -class Node_ProfileTraceNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def export_model(self, file_name): - """Save this data to a file""" - return self._export_model(file_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_data_source(self): - """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - def set_data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) - - @property - def get_visible(self): - """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - def set_visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) - - @property - def get_custom_legend(self): - """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - def set_custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) - - @property - def get_name(self): - """Name - "Enter name of plot trace as it will appear in legend." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - def set_name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) - - @property - def get_style(self): - """Style - "Specify line style of plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - def set_style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) - class StyleOption(Enum): - ( - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" - ) - - @property - def get_line_width(self): - """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - def set_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) - - @property - def get_line_color(self): - """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - def set_line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) - - @property - def get_symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - def set_symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) - class SymbolOption(Enum): - ( - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" - ) - - @property - def get_symbol_size(self): - """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - def set_symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) - - @property - def get_symbol_color(self): - """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - def set_symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) - - @property - def get_symbol_line_width(self): - """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - def set_symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) - - @property - def get_symbol_filled(self): - """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - def set_symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_PropagationLossCouplingNode.py deleted file mode 100644 index 64f0dad469d..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_PropagationLossCouplingNode.py +++ /dev/null @@ -1,202 +0,0 @@ -class Node_PropagationLossCouplingNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_enabled(self): - """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - def set_enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) - - @property - def get_enable_refinement(self): - """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - def set_enable_refinement(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) - - @property - def get_adaptive_sampling(self): - """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - def set_adaptive_sampling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) - - @property - def get_refinement_domain(self): - """Refinement Domain - "Points to use when refining the frequency domain.." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - def set_refinement_domain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) - - @property - def get_custom_fading_margin(self): - """Custom Fading Margin - "Sets a custom fading margin to be applied to all coupling defined by this node." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') - def set_custom_fading_margin(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) - - @property - def get_polarization_mismatch(self): - """Polarization Mismatch - "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') - def set_polarization_mismatch(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) - - @property - def get_pointing_error_loss(self): - """Pointing Error Loss - "Sets a margin for pointing error loss to be applied to all coupling defined by this node." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') - def set_pointing_error_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) - - @property - def get_fading_type(self): - """Fading Type - "Specify the type of fading to include." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') - def set_fading_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) - class FadingTypeOption(Enum): - ( - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" - ) - - @property - def get_fading_availability(self): - """Fading Availability - "The probability that the propagation loss in dB is below its median value plus the margin." - "Value should be between 0.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') - def set_fading_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) - - @property - def get_std_deviation(self): - """Std Deviation - "Standard deviation modeling the random amount of shadowing loss." - "Value should be between 0.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') - def set_std_deviation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) - - @property - def get_include_rain_attenuation(self): - """Include Rain Attenuation - "Adds a margin for rain attenuation to the computed coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') - def set_include_rain_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) - - @property - def get_rain_availability(self): - """Rain Availability - "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." - "Value should be between 99 and 99.999." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') - def set_rain_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) - - @property - def get_rain_rate(self): - """Rain Rate - "Rain rate (mm/hr) exceeded for 0.01% of the time." - "Value should be between 0.0 and 1000.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') - def set_rain_rate(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) - - @property - def get_polarization_tilt_angle(self): - """Polarization Tilt Angle - "Polarization tilt angle of the transmitted signal relative to the horizontal." - "Value should be between 0.0 and 180.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') - def set_polarization_tilt_angle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) - - @property - def get_include_atmospheric_absorption(self): - """Include Atmospheric Absorption - "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') - def set_include_atmospheric_absorption(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) - - @property - def get_temperature(self): - """Temperature - "Air temperature in degrees Celsius." - "Value should be between -273.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') - def set_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) - - @property - def get_total_air_pressure(self): - """Total Air Pressure - "Total air pressure." - "Value should be between 0.0 and 2000.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') - def set_total_air_pressure(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) - - @property - def get_water_vapor_concentration(self): - """Water Vapor Concentration - "Water vapor concentration." - "Value should be between 0.0 and 2000.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') - def set_water_vapor_concentration(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RFSystemNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RFSystemNode.py deleted file mode 100644 index 45a141f29b8..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RFSystemNode.py +++ /dev/null @@ -1,26 +0,0 @@ -class Node_RFSystemNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_notes(self): - """Notes - "Expand to view/edit notes stored with the project." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - def set_notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RadioNode.py deleted file mode 100644 index 5342f4ebea0..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RadioNode.py +++ /dev/null @@ -1,26 +0,0 @@ -class Node_RadioNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_notes(self): - """Notes - "Expand to view/edit notes stored with the project." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - def set_notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_ResultPlotNode.py deleted file mode 100644 index f9815ef1f07..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_ResultPlotNode.py +++ /dev/null @@ -1,315 +0,0 @@ -class Node_ResultPlotNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def export_model(self, file_name): - """Save this data to a file""" - return self._export_model(file_name) - - @property - def get_title(self): - """Title - "Enter title at the top of the plot, room will be made for it." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Title') - def set_title(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Title=' + value]) - - @property - def get_title_font(self): - """Title Font - "Configure title font family, typeface, and size." - "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Title Font') - def set_title_font(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Title Font=' + value]) - - @property - def get_show_legend(self): - """Show Legend - "Toggle (on/off) display of plot legend." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Legend') - def set_show_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Legend=' + value]) - - @property - def get_legend_font(self): - """Legend Font - "Configure legend font family, typeface, and size." - "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Legend Font') - def set_legend_font(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Legend Font=' + value]) - - @property - def get_show_emi_thresholds(self): - """Show EMI Thresholds - "Toggles on/off visibility of the EMI Thresholds." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show EMI Thresholds') - def set_show_emi_thresholds(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show EMI Thresholds=' + value]) - - @property - def get_display_cad_overlay(self): - """Display CAD Overlay - "Toggle on/off overlay of CAD model in plot." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Display CAD Overlay') - def set_display_cad_overlay(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Display CAD Overlay=' + value]) - - @property - def get_opacity(self): - """Opacity - "Adjust opacity of CAD model overlay: 0 Transparent - 1 Opaque." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Opacity') - def set_opacity(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Opacity=' + value]) - - @property - def get_vertical_offset(self): - """Vertical Offset - "Adjust vertical position of CAD model overlay." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Vertical Offset') - def set_vertical_offset(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Vertical Offset=' + value]) - - @property - def get_range_axis_rotation(self): - """Range Axis Rotation - "Adjust view angle for CAD model overlay by rotating it about plot horizontal axis." - "Value should be between -180 and 180." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Range Axis Rotation') - def set_range_axis_rotation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Range Axis Rotation=' + value]) - - @property - def get_lock_axes(self): - """Lock Axes - "Allow or prevent changing of axes when displayed plot traces are updated." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lock Axes') - def set_lock_axes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lock Axes=' + value]) - - @property - def get_x_axis_min(self): - """X-axis Min - "Set lower extent of horizontal axis." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X-axis Min') - def set_x_axis_min(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['X-axis Min=' + value]) - - @property - def get_x_axis_max(self): - """X-axis Max - "Set upper extent of horizontal axis." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X-axis Max') - def set_x_axis_max(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['X-axis Max=' + value]) - - @property - def get_y_axis_min(self): - """Y-axis Min - "Set lower extent of vertical axis." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y-axis Min') - def set_y_axis_min(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y-axis Min=' + value]) - - @property - def get_y_axis_max(self): - """Y-axis Max - "Set upper extent of vertical axis." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y-axis Max') - def set_y_axis_max(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y-axis Max=' + value]) - - @property - def get_y_axis_range(self): - """Y-axis Range - "Adjust dB span of vertical axis, makes corresponding adjustment in Y-axis Min." - "Value should be greater than 0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y-axis Range') - def set_y_axis_range(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y-axis Range=' + value]) - - @property - def get_max_major_ticks(self): - """Max Major Ticks - "Set maximum number of major tick-mark intervals along horizontal axis." - "Value should be between 1 and 30." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Major Ticks') - def set_max_major_ticks(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) - - @property - def get_max_minor_ticks(self): - """Max Minor Ticks - "Set maximum number of minor tick-mark intervals between major ticks along horizontal axis." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Minor Ticks') - def set_max_minor_ticks(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) - - @property - def get_max_major_ticks(self): - """Max Major Ticks - "Set maximum number of major tick-mark intervals along vertical axis." - "Value should be between 1 and 30." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Major Ticks') - def set_max_major_ticks(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) - - @property - def get_max_minor_ticks(self): - """Max Minor Ticks - "Set maximum number of minor tick-mark intervals between major ticks along vertical axis." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Minor Ticks') - def set_max_minor_ticks(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) - - @property - def get_axis_label_font(self): - """Axis Label Font - "Configure axis text labels font family, typeface, and size." - "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Axis Label Font') - def set_axis_label_font(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Axis Label Font=' + value]) - - @property - def get_axis_tick_label_font(self): - """Axis Tick Label Font - "Configure axis tick numeric labels font family, typeface, and size." - "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Axis Tick Label Font') - def set_axis_tick_label_font(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Axis Tick Label Font=' + value]) - - @property - def get_major_grid_line_style(self): - """Major Grid Line Style - "Select line style of major-tick grid lines." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Major Grid Line Style') - def set_major_grid_line_style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Major Grid Line Style=' + value]) - class MajorGridLineStyleOption(Enum): - ( - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" - ) - - @property - def get_major_grid_color(self): - """Major Grid Color - "Set color of major-tick grid lines." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Major Grid Color') - def set_major_grid_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Major Grid Color=' + value]) - - @property - def get_minor_grid_line_style(self): - """Minor Grid Line Style - "Select line style of minor-tick grid lines." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minor Grid Line Style') - def set_minor_grid_line_style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Minor Grid Line Style=' + value]) - class MinorGridLineStyleOption(Enum): - ( - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" - ) - - @property - def get_minor_grid_color(self): - """Minor Grid Color - "Set color of minor-tick grid lines." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minor Grid Color') - def set_minor_grid_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Minor Grid Color=' + value]) - - @property - def get_background_color(self): - """Background Color - "Set background color of entire plot." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Background Color') - def set_background_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Background Color=' + value]) - - @property - def get_bb_power_for_plots_unit(self): - """BB Power for Plots Unit - "Units to use for plotting broadband power densities." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BB Power for Plots Unit') - def set_bb_power_for_plots_unit(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['BB Power for Plots Unit=' + value]) - class BBPowerforPlotsUnitOption(Enum): - ( - HERTZ = "hertz" - KILOHERTZ = "kilohertz" - MEGAHERTZ = "megahertz" - GIGAHERTZ = "gigahertz" - ) - - @property - def get_bb_power_bandwidth(self): - """BB Power Bandwidth - "Resolution bandwidth for broadband power." - "Value should be between 1.0 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BB Power Bandwidth') - def set_bb_power_bandwidth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['BB Power Bandwidth=' + value]) - - @property - def get_log_scale(self): - """Log Scale - "Toggles on/off using a log scale for the X-Axis." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Log Scale') - def set_log_scale(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Log Scale=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RfSystemGroup.py deleted file mode 100644 index 9ec7491954b..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RfSystemGroup.py +++ /dev/null @@ -1,25 +0,0 @@ -class Node_RfSystemGroup(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - @property - def get_enable_passive_noise(self): - """Enable Passive Noise - "If true, the noise contributions of antennas and passive components are included in cosite simulation. Note: Antenna and passive component noise is always included in link analysis simulation.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Passive Noise') - def set_enable_passive_noise(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Passive Noise=' + value]) - - @property - def get_enforce_thermal_noise_floor(self): - """Enforce Thermal Noise Floor - "If true, all broadband noise is limited by the thermal noise floor (-174 dBm/Hz)." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enforce Thermal Noise Floor') - def set_enforce_thermal_noise_floor(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enforce Thermal Noise Floor=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxMeasNode.py deleted file mode 100644 index 8c2f96e2c82..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxMeasNode.py +++ /dev/null @@ -1,238 +0,0 @@ -class Node_RxMeasNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_file(self): - """File - "Name of the measurement source." - "Value should be a full file path." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'File') - - @property - def get_source_file(self): - """Source File - "Name of the measurement source." - "Value should be a full file path." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Source File') - - @property - def get_receive_frequency(self): - """Receive Frequency - "Channel associated with the measurement file." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Receive Frequency') - - @property - def get_measurement_mode(self): - """Measurement Mode - "Defines the mode for the receiver measurement." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measurement Mode') - def set_measurement_mode(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Measurement Mode=' + value]) - class MeasurementModeOption(Enum): - ( - AUDIO_SINAD = "Audio SINAD" - DIGITAL_BER = "Digital BER" - GPS_CNR = "GPS CNR" - ) - - @property - def get_sinad_threshold(self): - """SINAD Threshold - "SINAD Threshold used for the receiver measurements." - "Value should be between 5 and 20." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'SINAD Threshold') - def set_sinad_threshold(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['SINAD Threshold=' + value]) - - @property - def get_gps_cnr_threshold(self): - """GPS CNR Threshold - "GPS CNR Threshold used for the receiver measurements." - "Value should be between 15 and 30." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'GPS CNR Threshold') - def set_gps_cnr_threshold(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['GPS CNR Threshold=' + value]) - - @property - def get_ber_threshold(self): - """BER Threshold - "BER Threshold used for the receiver measurements." - "Value should be between -12 and -1." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BER Threshold') - def set_ber_threshold(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['BER Threshold=' + value]) - - @property - def get_default_intended_power(self): - """Default Intended Power - "Specify the intended signal." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Default Intended Power') - def set_default_intended_power(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Default Intended Power=' + value]) - - @property - def get_intended_signal_power(self): - """Intended Signal Power - "Specify the power level of the intended signal." - "Value should be between -140 and -50." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Intended Signal Power') - def set_intended_signal_power(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Intended Signal Power=' + value]) - - @property - def get_freq_deviation(self): - """Freq. Deviation - "Specify the frequency deviation of the intended signal." - "Value should be between 1000 and 200000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Freq. Deviation') - def set_freq_deviation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Freq. Deviation=' + value]) - - @property - def get_modulation_depth(self): - """Modulation Depth - "Specify the modulation depth of the intended signal." - "Value should be between 10 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Modulation Depth') - def set_modulation_depth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Modulation Depth=' + value]) - - @property - def get_measure_selectivity(self): - """Measure Selectivity - "Enable/disable the measurement of the receiver's selectivity." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measure Selectivity') - def set_measure_selectivity(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Measure Selectivity=' + value]) - - @property - def get_measure_mixer_products(self): - """Measure Mixer Products - "Enable/disable the measurement of the receiver's mixer products." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measure Mixer Products') - def set_measure_mixer_products(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Measure Mixer Products=' + value]) - - @property - def get_max_rf_order(self): - """Max RF Order - "Max RF Order of the mixer products to measure." - "Value should be between 1 and unbounded." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max RF Order') - def set_max_rf_order(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max RF Order=' + value]) - - @property - def get_max_lo_order(self): - """Max LO Order - "Max LO Order of the mixer products to measure." - "Value should be between 1 and unbounded." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max LO Order') - def set_max_lo_order(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max LO Order=' + value]) - - @property - def get_include_if(self): - """Include IF - "Enable/disable the measurement of the IF channel." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include IF') - def set_include_if(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include IF=' + value]) - - @property - def get_measure_saturation(self): - """Measure Saturation - "Enable/disable measurement of the receiver's saturation level." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measure Saturation') - def set_measure_saturation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Measure Saturation=' + value]) - - @property - def get_use_ams_limits(self): - """Use AMS Limits - "Allow AMS to determine the limits for measuring saturation." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use AMS Limits') - def set_use_ams_limits(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use AMS Limits=' + value]) - - @property - def get_start_frequency(self): - """Start Frequency - "Starting frequency for the measurement sweep." - "Value should be greater than 1e6." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Start Frequency') - def set_start_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Start Frequency=' + value]) - - @property - def get_stop_frequency(self): - """Stop Frequency - "Stopping frequency for the measurement sweep." - "Value should be less than 6e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop Frequency') - def set_stop_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Stop Frequency=' + value]) - - @property - def get_samples(self): - """Samples - "Number of measurement samples for each frequency." - "Value should be between 2 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Samples') - def set_samples(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Samples=' + value]) - - @property - def get_exclude_mixer_products_below_noise(self): - """Exclude Mixer Products Below Noise - "Include/Exclude Mixer Products below the noise." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Exclude Mixer Products Below Noise') - def set_exclude_mixer_products_below_noise(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Exclude Mixer Products Below Noise=' + value]) - - @property - def get_enabled(self): - """Enabled state for this node.""" - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') - def set_enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxMixerProductNode.py deleted file mode 100644 index 8498c09422f..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxMixerProductNode.py +++ /dev/null @@ -1,197 +0,0 @@ -class Node_RxMixerProductNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def import_csv_file(self, file_name): - """Import a CSV File...""" - return self._import(file_name,'Csv') - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_enabled(self): - """Enabled state for this node.""" - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') - def set_enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) - - @property - def get_mixer_product_taper(self): - """Mixer Product Taper - "Taper for setting amplitude of mixer products." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Taper') - def set_mixer_product_taper(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mixer Product Taper=' + value]) - class MixerProductTaperOption(Enum): - ( - CONSTANT = "Constant" - MIL_STD_461G = "MIL-STD-461G" - DUFF_MODEL = "Duff Model" - ) - - @property - def get_mixer_product_susceptibility(self): - """Mixer Product Susceptibility - "Mixer product amplitudes (relative to the in-band susceptibility)." - "Value should be between -200 and 200." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Susceptibility') - def set_mixer_product_susceptibility(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mixer Product Susceptibility=' + value]) - - @property - def get_spurious_rejection(self): - """Spurious Rejection - "Mixer product amplitudes (relative to the in-band susceptibility)." - "Value should be between -200 and 200." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spurious Rejection') - def set_spurious_rejection(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Spurious Rejection=' + value]) - - @property - def get_minimum_tuning_frequency(self): - """Minimum Tuning Frequency - "Minimum tuning frequency of Rx's local oscillator." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minimum Tuning Frequency') - def set_minimum_tuning_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Minimum Tuning Frequency=' + value]) - - @property - def get_maximum_tuning_frequency(self): - """Maximum Tuning Frequency - "Maximum tuning frequency of Rx's local oscillator." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Maximum Tuning Frequency') - def set_maximum_tuning_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Maximum Tuning Frequency=' + value]) - - @property - def get_mixer_product_slope(self): - """Mixer Product Slope - "Rate of decrease for amplitude of Rx's local oscillator harmonics (dB/decade)." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Slope') - def set_mixer_product_slope(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mixer Product Slope=' + value]) - - @property - def get_mixer_product_intercept(self): - """Mixer Product Intercept - "Mixer product intercept (dBc)." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Intercept') - def set_mixer_product_intercept(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mixer Product Intercept=' + value]) - - @property - def get__80_db_bandwidth(self): - """80 dB Bandwidth - "Bandwidth where Rx's susceptibility envelope is 80 dB above in-band susceptibility level." - "Value should be between 1 and unbounded." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'80 dB Bandwidth') - def set__80_db_bandwidth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['80 dB Bandwidth=' + value]) - - @property - def get_image_rejection(self): - """Image Rejection - "Image frequency amplitude (relative to the in-band susceptibility)." - "Value should be between -200 and 200." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Image Rejection') - def set_image_rejection(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Image Rejection=' + value]) - - @property - def get_maximum_rf_harmonic_order(self): - """Maximum RF Harmonic Order - "Maximum order of RF frequency." - "Value should be between 1 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Maximum RF Harmonic Order') - def set_maximum_rf_harmonic_order(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Maximum RF Harmonic Order=' + value]) - - @property - def get_maximum_lo_harmonic_order(self): - """Maximum LO Harmonic Order - "Maximum order of the LO frequency." - "Value should be between 1 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Maximum LO Harmonic Order') - def set_maximum_lo_harmonic_order(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Maximum LO Harmonic Order=' + value]) - - @property - def get_mixing_mode(self): - """Mixing Mode - "Specifies whether the IF frequency is > or < RF channel frequency." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixing Mode') - def set_mixing_mode(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mixing Mode=' + value]) - class MixingModeOption(Enum): - ( - ABOVETUNEDFREQUENCY = "LO Above Tuned (RF) Frequency" - BELOWTUNEDFREQUENCY = "LO Below Tuned (RF) Frequency" - BOTHTUNEDFREQUENCIES = "LO Above/Below Tuned (RF) Frequency" - ) - - @property - def get__1st_if_frequency(self): - """1st IF Frequency - "Intermediate frequency for Rx's 1st conversion stage." - "Value should be a mathematical expression." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'1st IF Frequency') - def set__1st_if_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['1st IF Frequency=' + value]) - - @property - def get_rf_transition_frequency(self): - """RF Transition Frequency - "RF Frequency Transition point." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'RF Transition Frequency') - def set_rf_transition_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['RF Transition Frequency=' + value]) - - @property - def get_use_high_lo(self): - """Use High LO - "Use High LO above/below the transition frequency." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use High LO') - def set_use_high_lo(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use High LO=' + value]) - class UseHighLOOption(Enum): - ( - ABOVETRANSITION = "Above Transition Frequency" - BELOWTRANSITION = "Below Transition Frequency" - ) - - @property - def get_mixer_product_table_units(self): - """Mixer Product Table Units - "Specifies the units for the Mixer Products." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Table Units') - def set_mixer_product_table_units(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mixer Product Table Units=' + value]) - class MixerProductTableUnitsOption(Enum): - ( - ABSOLUTE = "Absolute" - RELATIVE = "Relative" - ) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSusceptibilityProfNode.py deleted file mode 100644 index bdb920b6150..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSusceptibilityProfNode.py +++ /dev/null @@ -1,158 +0,0 @@ -class Node_RxSusceptibilityProfNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - @property - def get_enabled(self): - """Enabled state for this node.""" - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') - def set_enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) - - @property - def get_sensitivity_units(self): - """Sensitivity Units - "Units to use for the Rx Sensitivity." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Sensitivity Units') - def set_sensitivity_units(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Sensitivity Units=' + value]) - class SensitivityUnitsOption(Enum): - ( - DBM = "dBm" - DBUV = "dBuV" - MILLIWATTS = "milliwatts" - MICROVOLTS = "microvolts" - ) - - @property - def get_min_receive_signal_pwr_(self): - """Min. Receive Signal Pwr - "Received signal power level at the Rx's antenna terminal." - "Value should be between -1000 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min. Receive Signal Pwr ') - def set_min_receive_signal_pwr_(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Min. Receive Signal Pwr =' + value]) - - @property - def get_snr_at_rx_signal_pwr(self): - """SNR at Rx Signal Pwr - "Signal-to-Noise Ratio (dB) at specified received signal power at the Rx's antenna terminal." - "Value should be between -1000 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'SNR at Rx Signal Pwr') - def set_snr_at_rx_signal_pwr(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['SNR at Rx Signal Pwr=' + value]) - - @property - def get_processing_gain(self): - """Processing Gain - "Rx processing gain (dB) of (optional) despreader." - "Value should be between -1000 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Processing Gain') - def set_processing_gain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Processing Gain=' + value]) - - @property - def get_apply_pg_to_narrowband_only(self): - """Apply PG to Narrowband Only - "Processing gain captures the despreading effect and applies to NB signals only (not BB noise) when enabled." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Apply PG to Narrowband Only') - def set_apply_pg_to_narrowband_only(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Apply PG to Narrowband Only=' + value]) - - @property - def get_saturation_level(self): - """Saturation Level - "Rx input saturation level." - "Value should be between -1000 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Saturation Level') - def set_saturation_level(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Saturation Level=' + value]) - - @property - def get_rx_noise_figure(self): - """Rx Noise Figure - "Rx noise figure (dB)." - "Value should be between 0 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rx Noise Figure') - def set_rx_noise_figure(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rx Noise Figure=' + value]) - - @property - def get_receiver_sensitivity_(self): - """Receiver Sensitivity - "Rx minimum sensitivity level (dBm)." - "Value should be between -1000 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Receiver Sensitivity ') - def set_receiver_sensitivity_(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Receiver Sensitivity =' + value]) - - @property - def get_snrsinad_at_sensitivity_(self): - """SNR/SINAD at Sensitivity - "SNR or SINAD at the specified sensitivity level." - "Value should be between -1000 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'SNR/SINAD at Sensitivity ') - def set_snrsinad_at_sensitivity_(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['SNR/SINAD at Sensitivity =' + value]) - - @property - def get_perform_rx_intermod_analysis(self): - """Perform Rx Intermod Analysis - "Performs a non-linear intermod analysis for the Rx." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Perform Rx Intermod Analysis') - def set_perform_rx_intermod_analysis(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Perform Rx Intermod Analysis=' + value]) - - @property - def get_amplifier_saturation_level(self): - """Amplifier Saturation Level - "Internal Rx Amplifier's Saturation Level." - "Value should be between -200 and 200." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplifier Saturation Level') - def set_amplifier_saturation_level(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplifier Saturation Level=' + value]) - - @property - def get__1_db_point_ref_input_(self): - """1-dB Point, Ref. Input - "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." - "Value should be between -1000 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'1-dB Point, Ref. Input ') - def set__1_db_point_ref_input_(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input =' + value]) - - @property - def get_ip3_ref_input(self): - """IP3, Ref. Input - "Internal Rx Amplifier's 3rd order intercept point." - "Value should be between -1000 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'IP3, Ref. Input') - def set_ip3_ref_input(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + value]) - - @property - def get_max_intermod_order(self): - """Max Intermod Order - "Internal Rx Amplifier's maximum intermod order to compute." - "Value should be between 3 and 20." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Intermod Order') - def set_max_intermod_order(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_SamplingNode.py deleted file mode 100644 index db4197077a4..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_SamplingNode.py +++ /dev/null @@ -1,81 +0,0 @@ -class Node_SamplingNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - @property - def get_sampling_type(self): - """Sampling Type - "Sampling to apply to this configuration." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Sampling Type') - def set_sampling_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Sampling Type=' + value]) - class SamplingTypeOption(Enum): - ( - SAMPLEALLCHANNELS = "Sample All Channels in Range(s)" - RANDOMSAMPLING = "Random Sampling" - UNIFORMSAMPLING = "Uniform Sampling" - ) - - @property - def get_specify_percentage(self): - """Specify Percentage - "Specify the number of channels to simulate via a percentage of the total available band channels." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Specify Percentage') - def set_specify_percentage(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Specify Percentage=' + value]) - - @property - def get_percentage_of_channels(self): - """Percentage of Channels - "Percentage of the Band Channels to simulate." - "Value should be between 1 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Percentage of Channels') - def set_percentage_of_channels(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Percentage of Channels=' + value]) - - @property - def get_max__channelsrangeband(self): - """Max # Channels/Range/Band - "Maximum number of Band Channels to simulate." - "Value should be between 1 and 100000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max # Channels/Range/Band') - def set_max__channelsrangeband(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max # Channels/Range/Band=' + value]) - - @property - def get_seed(self): - """Seed - "Seed for random channel generator." - "Value should be greater than 0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Seed') - def set_seed(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Seed=' + value]) - - @property - def get_total_tx_channels(self): - """Total Tx Channels - "Total number of transmit channels this configuration is capable of operating on." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Tx Channels') - - @property - def get_total_rx_channels(self): - """Total Rx Channels - "Total number of receive channels this configuration is capable of operating on." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Rx Channels') - - @property - def get_warnings(self): - """Warnings - "Warning(s) for this node." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_SceneGroupNode.py deleted file mode 100644 index 13b1eccc507..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_SceneGroupNode.py +++ /dev/null @@ -1,112 +0,0 @@ - -from ..GenericEmitNode import GenericEmitNode -from enum import Enum - -class Node_SceneGroupNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_show_relative_coordinates(self): - """Show Relative Coordinates - "Show Scene Group position and orientation in parent-node coords (False) or relative to placement coords (True)." - "Value should be 'true' or 'false'." - """ - return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'Show Relative Coordinates') - def set_show_relative_coordinates(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) - - @property - def get_position(self): - """Position - "Set position of the Scene Group in parent-node coordinates." - "Value should be x/y/z, delimited by spaces." - """ - return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'Position') - def set_position(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) - - @property - def get_relative_position(self): - """Relative Position - "Set position of the Scene Group relative to placement coordinates." - "Value should be x/y/z, delimited by spaces." - """ - return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'Relative Position') - def set_relative_position(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Relative Position=' + value]) - - @property - def get_orientation_mode(self): - """Orientation Mode - "Select the convention (order of rotations) for configuring orientation." - """ - return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'Orientation Mode') - def set_orientation_mode(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation Mode=' + value]) - class OrientationModeOption(Enum): - RPYDEG = "Roll-Pitch-Yaw" - AETDEG = "Az-El-Twist" - - @property - def get_orientation(self): - """Orientation - "Set orientation of the Scene Group relative to parent-node coordinates." - "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." - """ - return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'Orientation') - def set_orientation(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation=' + value]) - - @property - def get_relative_orientation(self): - """Relative Orientation - "Set orientation of the Scene Group relative to placement coordinates." - "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." - """ - return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'Relative Orientation') - def set_relative_orientation(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) - - @property - def get_show_axes(self): - """Show Axes - "Toggle (on/off) display of Scene Group coordinate axes in 3-D window." - "Value should be 'true' or 'false'." - """ - return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'Show Axes') - def set_show_axes(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Axes=' + value]) - - @property - def get_box_color(self): - """Box Color - "Set color of the bounding box of the Scene Group." - "Color should be in RGB form: #RRGGBB." - """ - return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'Box Color') - def set_box_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Box Color=' + value]) - - @property - def get_notes(self): - """Notes - "Expand to view/edit notes stored with the project." - """ - return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'Notes') - def set_notes(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_SelectivityTraceNode.py deleted file mode 100644 index 87c71fa6c42..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_SelectivityTraceNode.py +++ /dev/null @@ -1,160 +0,0 @@ -class Node_SelectivityTraceNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def export_model(self, file_name): - """Save this data to a file""" - return self._export_model(file_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_data_source(self): - """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - def set_data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) - - @property - def get_visible(self): - """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - def set_visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) - - @property - def get_custom_legend(self): - """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - def set_custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) - - @property - def get_name(self): - """Name - "Enter name of plot trace as it will appear in legend." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - def set_name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) - - @property - def get_style(self): - """Style - "Specify line style of plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - def set_style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) - class StyleOption(Enum): - ( - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" - ) - - @property - def get_line_width(self): - """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - def set_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) - - @property - def get_line_color(self): - """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - def set_line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) - - @property - def get_symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - def set_symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) - class SymbolOption(Enum): - ( - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" - ) - - @property - def get_symbol_size(self): - """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - def set_symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) - - @property - def get_symbol_color(self): - """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - def set_symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) - - @property - def get_symbol_line_width(self): - """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - def set_symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) - - @property - def get_symbol_filled(self): - """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - def set_symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_SolutionCouplingNode.py deleted file mode 100644 index 276731a374f..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_SolutionCouplingNode.py +++ /dev/null @@ -1,44 +0,0 @@ -class Node_SolutionCouplingNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - @property - def get_enabled(self): - """Enabled - "Enable/Disable coupling (A sweep disabled in HFSS/Layout cannot be enabled in EMIT)." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - def set_enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) - - @property - def get_enable_refinement(self): - """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - def set_enable_refinement(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) - - @property - def get_adaptive_sampling(self): - """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - def set_adaptive_sampling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) - - @property - def get_refinement_domain(self): - """Refinement Domain - "Points to use when refining the frequency domain.." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - def set_refinement_domain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_SolutionsNode.py deleted file mode 100644 index 7bb95149d35..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_SolutionsNode.py +++ /dev/null @@ -1,15 +0,0 @@ -class Node_SolutionsNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - @property - def get_enabled(self): - """Enabled - "Enable/Disable coupling (A setup disabled in HFSS/Layout cannot be enabled in EMIT)." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - def set_enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Sparameter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Sparameter.py deleted file mode 100644 index e793bc42d66..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Sparameter.py +++ /dev/null @@ -1,81 +0,0 @@ -class Node_Sparameter(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_file(self): - """File - "S-Parameter file defining the component." - "Value should be a full file path." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'File') - def set_file(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['File=' + value]) - - @property - def get_noise_temperature(self): - """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - def set_noise_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) - - @property - def get_notes(self): - """Notes - "Expand to view/edit notes stored with the project." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - def set_notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) - - @property - def get_radio_side_ports(self): - """Radio Side Ports - "Assigns the child port nodes to the multiplexers ports." - "A list of values, delimited with pipe ('|')." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Radio Side Ports') - def set_radio_side_ports(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Radio Side Ports=' + value]) - class RadioSidePortsOption(Enum): - ( - ::PORTNAMES = "::PortNames" - ) - - @property - def get_antenna_side_ports(self): - """Antenna Side Ports - "Assigns the child port nodes to the multiplexers ports." - "A list of values, delimited with pipe ('|')." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna Side Ports') - def set_antenna_side_ports(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Antenna Side Ports=' + value]) - class AntennaSidePortsOption(Enum): - ( - ::PORTNAMES = "::PortNames" - ) - - @property - def get_warnings(self): - """Warnings - "Warning(s) for this node." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_SparameterTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_SparameterTraceNode.py deleted file mode 100644 index b1bfb0c172e..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_SparameterTraceNode.py +++ /dev/null @@ -1,186 +0,0 @@ -class Node_SparameterTraceNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def export_model(self, file_name): - """Save this data to a file""" - return self._export_model(file_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_input_port(self): - """Input Port - "Specifies input port for the plotted S-Parameter component." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Input Port') - def set_input_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Input Port=' + value]) - class InputPortOption(Enum): - ( - ::DATASOURCE::PORTNAMES = "::DataSource::PortNames" - ) - - @property - def get_output_port(self): - """Output Port - "Specifies output port for the plotted S-Parameter component." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Port') - def set_output_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Port=' + value]) - class OutputPortOption(Enum): - ( - ::DATASOURCE::PORTNAMES = "::DataSource::PortNames" - ) - - @property - def get_data_source(self): - """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - def set_data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) - - @property - def get_visible(self): - """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - def set_visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) - - @property - def get_custom_legend(self): - """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - def set_custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) - - @property - def get_name(self): - """Name - "Enter name of plot trace as it will appear in legend." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - def set_name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) - - @property - def get_style(self): - """Style - "Specify line style of plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - def set_style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) - class StyleOption(Enum): - ( - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" - ) - - @property - def get_line_width(self): - """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - def set_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) - - @property - def get_line_color(self): - """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - def set_line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) - - @property - def get_symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - def set_symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) - class SymbolOption(Enum): - ( - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" - ) - - @property - def get_symbol_size(self): - """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - def set_symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) - - @property - def get_symbol_color(self): - """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - def set_symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) - - @property - def get_symbol_line_width(self): - """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - def set_symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) - - @property - def get_symbol_filled(self): - """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - def set_symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_SpurTraceNode.py deleted file mode 100644 index 630e1dbdec9..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_SpurTraceNode.py +++ /dev/null @@ -1,176 +0,0 @@ -class Node_SpurTraceNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def export_model(self, file_name): - """Save this data to a file""" - return self._export_model(file_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_channel_frequency(self): - """Channel Frequency - "Select band channel frequency to display." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Channel Frequency') - def set_channel_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Channel Frequency=' + value]) - - @property - def get_transmit_frequency(self): - """Transmit Frequency - "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Transmit Frequency') - - @property - def get_data_source(self): - """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - def set_data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) - - @property - def get_visible(self): - """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - def set_visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) - - @property - def get_custom_legend(self): - """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - def set_custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) - - @property - def get_name(self): - """Name - "Enter name of plot trace as it will appear in legend." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - def set_name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) - - @property - def get_style(self): - """Style - "Specify line style of plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - def set_style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) - class StyleOption(Enum): - ( - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" - ) - - @property - def get_line_width(self): - """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - def set_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) - - @property - def get_line_color(self): - """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - def set_line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) - - @property - def get_symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - def set_symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) - class SymbolOption(Enum): - ( - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" - ) - - @property - def get_symbol_size(self): - """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - def set_symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) - - @property - def get_symbol_color(self): - """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - def set_symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) - - @property - def get_symbol_line_width(self): - """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - def set_symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) - - @property - def get_symbol_filled(self): - """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - def set_symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TRSwitchTraceNode.py deleted file mode 100644 index 4c6706c9eef..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TRSwitchTraceNode.py +++ /dev/null @@ -1,180 +0,0 @@ -class Node_TRSwitchTraceNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def export_model(self, file_name): - """Save this data to a file""" - return self._export_model(file_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_input_port(self): - """Input Port - "Specifies input port for the plotted outboard component." - "Value should be greater than 1." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Input Port') - def set_input_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Input Port=' + value]) - - @property - def get_output_port(self): - """Output Port - "Specifies output port for the plotted outboard component." - "Value should be greater than 1." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Port') - def set_output_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Port=' + value]) - - @property - def get_data_source(self): - """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - def set_data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) - - @property - def get_visible(self): - """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - def set_visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) - - @property - def get_custom_legend(self): - """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - def set_custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) - - @property - def get_name(self): - """Name - "Enter name of plot trace as it will appear in legend." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - def set_name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) - - @property - def get_style(self): - """Style - "Specify line style of plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - def set_style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) - class StyleOption(Enum): - ( - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" - ) - - @property - def get_line_width(self): - """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - def set_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) - - @property - def get_line_color(self): - """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - def set_line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) - - @property - def get_symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - def set_symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) - class SymbolOption(Enum): - ( - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" - ) - - @property - def get_symbol_size(self): - """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - def set_symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) - - @property - def get_symbol_color(self): - """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - def set_symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) - - @property - def get_symbol_line_width(self): - """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - def set_symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) - - @property - def get_symbol_filled(self): - """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - def set_symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TR_Switch.py deleted file mode 100644 index 88f34f6636f..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TR_Switch.py +++ /dev/null @@ -1,164 +0,0 @@ -class Node_TR_Switch(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_filename(self): - """Filename - "Name of file defining the outboard component." - "Value should be a full file path." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - def set_filename(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) - - @property - def get_noise_temperature(self): - """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - def set_noise_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) - - @property - def get_notes(self): - """Notes - "Expand to view/edit notes stored with the project." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - def set_notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) - - @property - def get_tx_port(self): - """Tx Port - "Specifies which port on the TR Switch is part of the Tx path.." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx Port') - def set_tx_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Tx Port=' + value]) - class TxPortOption(Enum): - ( - _0 = "Port 1" - _1 = "Port 2" - ) - - @property - def get_common_port_location(self): - """Common Port Location - "Defines the orientation of the tr switch.." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Common Port Location') - def set_common_port_location(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Common Port Location=' + value]) - class CommonPortLocationOption(Enum): - ( - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" - ) - - @property - def get_insertion_loss(self): - """Insertion Loss - "TR Switch in-band loss in forward direction.." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') - def set_insertion_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) - - @property - def get_finite_isolation(self): - """Finite Isolation - "Use a finite isolation. If disabled, the tr switch model is ideal (infinite isolation).." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Isolation') - def set_finite_isolation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Isolation=' + value]) - - @property - def get_isolation(self): - """Isolation - "TR Switch reverse isolation (i.e., loss between the Tx/Rx ports).." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Isolation') - def set_isolation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Isolation=' + value]) - - @property - def get_finite_bandwidth(self): - """Finite Bandwidth - "Use a finite bandwidth. If disabled, the tr switch model is ideal (infinite bandwidth).." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Bandwidth') - def set_finite_bandwidth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) - - @property - def get_out_of_band_attenuation(self): - """Out-of-band Attenuation - "Out-of-band loss (attenuation)." - "Value should be between 0 and 200." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out-of-band Attenuation') - def set_out_of_band_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) - - @property - def get_lower_stop_band(self): - """Lower Stop Band - "Lower stop band frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') - def set_lower_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) - - @property - def get_lower_cutoff(self): - """Lower Cutoff - "Lower cutoff frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') - def set_lower_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) - - @property - def get_higher_cutoff(self): - """Higher Cutoff - "Higher cutoff frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') - def set_higher_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) - - @property - def get_higher_stop_band(self): - """Higher Stop Band - "Higher stop band frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') - def set_higher_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_Terminator.py deleted file mode 100644 index 41ccc5f3ecd..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_Terminator.py +++ /dev/null @@ -1,91 +0,0 @@ -class Node_Terminator(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_filename(self): - """Filename - "Name of file defining the Terminator." - "Value should be a full file path." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - def set_filename(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) - - @property - def get_noise_temperature(self): - """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - def set_noise_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) - - @property - def get_notes(self): - """Notes - "Expand to view/edit notes stored with the project." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - def set_notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) - - @property - def get_type(self): - """Type - "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - def set_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) - class TypeOption(Enum): - ( - BYFILE = "By File" - PARAMETRIC = "Parametric" - ) - - @property - def get_port_location(self): - """Port Location - "Defines the orientation of the terminator.." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port Location') - def set_port_location(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Port Location=' + value]) - class PortLocationOption(Enum): - ( - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" - ) - - @property - def get_vswr(self): - """VSWR - "The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch between the terminator and the connected component (RF System, Antenna, etc)." - "Value should be between 1.0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'VSWR') - def set_vswr(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['VSWR=' + value]) - - @property - def get_warnings(self): - """Warnings - "Warning(s) for this node." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TestNoiseTraceNode.py deleted file mode 100644 index 33afb2b6aa6..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TestNoiseTraceNode.py +++ /dev/null @@ -1,250 +0,0 @@ -class Node_TestNoiseTraceNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def export_model(self, file_name): - """Save this data to a file""" - return self._export_model(file_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_input_port(self): - """Input Port - "Specifies input port for the plotted outboard component." - "Value should be greater than 1." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Input Port') - def set_input_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Input Port=' + value]) - - @property - def get_output_port(self): - """Output Port - "Specifies output port for the plotted outboard component." - "Value should be greater than 1." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Port') - def set_output_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Port=' + value]) - - @property - def get_data_source(self): - """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - def set_data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) - - @property - def get_visible(self): - """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - def set_visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) - - @property - def get_custom_legend(self): - """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - def set_custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) - - @property - def get_name(self): - """Name - "Enter name of plot trace as it will appear in legend." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - def set_name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) - - @property - def get_style(self): - """Style - "Specify line style of plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - def set_style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) - class StyleOption(Enum): - ( - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" - ) - - @property - def get_line_width(self): - """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - def set_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) - - @property - def get_line_color(self): - """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - def set_line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) - - @property - def get_symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - def set_symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) - class SymbolOption(Enum): - ( - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" - ) - - @property - def get_symbol_size(self): - """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - def set_symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) - - @property - def get_symbol_color(self): - """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - def set_symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) - - @property - def get_symbol_line_width(self): - """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - def set_symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) - - @property - def get_symbol_filled(self): - """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - def set_symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) - - @property - def get_frequency_1(self): - """Frequency 1 - "1st test tone frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency 1') - def set_frequency_1(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Frequency 1=' + value]) - - @property - def get_amplitude_1(self): - """Amplitude 1 - "1st test tone amplitude." - "Value should be between -100 and 200." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplitude 1') - def set_amplitude_1(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplitude 1=' + value]) - - @property - def get_bandwidth_1(self): - """Bandwidth 1 - "1st test tone bandwidth." - "Value should be between 1 and unbounded." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bandwidth 1') - def set_bandwidth_1(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Bandwidth 1=' + value]) - - @property - def get_frequency_2(self): - """Frequency 2 - "2nd test tone frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency 2') - def set_frequency_2(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Frequency 2=' + value]) - - @property - def get_amplitude_2(self): - """Amplitude 2 - "2nd test tone amplitude." - "Value should be between -100 and 200." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplitude 2') - def set_amplitude_2(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplitude 2=' + value]) - - @property - def get_bandwidth_2(self): - """Bandwidth 2 - "2nd test tone bandwidth." - "Value should be between 1 and unbounded." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bandwidth 2') - def set_bandwidth_2(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Bandwidth 2=' + value]) - - @property - def get_noise_level(self): - """Noise Level - "Broadband noise level." - "Value should be between -200 and 0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Level') - def set_noise_level(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Level=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TopLevelSimulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TopLevelSimulation.py deleted file mode 100644 index 10fae5c6bb7..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TopLevelSimulation.py +++ /dev/null @@ -1,5 +0,0 @@ -class Node_TopLevelSimulation(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TouchstoneCouplingNode.py deleted file mode 100644 index efb050d80ea..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TouchstoneCouplingNode.py +++ /dev/null @@ -1,92 +0,0 @@ -class Node_TouchstoneCouplingNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_enabled(self): - """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - def set_enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) - - @property - def get_enable_refinement(self): - """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - def set_enable_refinement(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) - - @property - def get_adaptive_sampling(self): - """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - def set_adaptive_sampling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) - - @property - def get_refinement_domain(self): - """Refinement Domain - "Points to use when refining the frequency domain.." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - def set_refinement_domain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) - - @property - def get_filename(self): - """Filename - "Name of file with coupling data.." - "Value should be a full file path." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - def set_filename(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) - - @property - def get_savant_matched_coupling_file(self): - """Savant Matched Coupling File - "Coupling data generated by Savant and exported as a matched file." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Savant Matched Coupling File') - - @property - def get_enable_em_isolation(self): - """Enable EM Isolation - "Enables/disables EM isolation." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable EM Isolation') - def set_enable_em_isolation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable EM Isolation=' + value]) - - @property - def get_notes(self): - """Notes - "Expand to view/edit notes stored with the project." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - def set_notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TunableTraceNode.py deleted file mode 100644 index 48e241b399a..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TunableTraceNode.py +++ /dev/null @@ -1,189 +0,0 @@ -class Node_TunableTraceNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def export_model(self, file_name): - """Save this data to a file""" - return self._export_model(file_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_input_port(self): - """Input Port - "Specifies input port for the plotted outboard component." - "Value should be greater than 1." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Input Port') - def set_input_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Input Port=' + value]) - - @property - def get_output_port(self): - """Output Port - "Specifies output port for the plotted outboard component." - "Value should be greater than 1." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Port') - def set_output_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Port=' + value]) - - @property - def get_frequency(self): - """Frequency - "Tunable filter center frequency." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency') - def set_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Frequency=' + value]) - - @property - def get_data_source(self): - """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - def set_data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) - - @property - def get_visible(self): - """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - def set_visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) - - @property - def get_custom_legend(self): - """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - def set_custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) - - @property - def get_name(self): - """Name - "Enter name of plot trace as it will appear in legend." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - def set_name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) - - @property - def get_style(self): - """Style - "Specify line style of plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - def set_style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) - class StyleOption(Enum): - ( - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" - ) - - @property - def get_line_width(self): - """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - def set_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) - - @property - def get_line_color(self): - """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - def set_line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) - - @property - def get_symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - def set_symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) - class SymbolOption(Enum): - ( - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" - ) - - @property - def get_symbol_size(self): - """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - def set_symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) - - @property - def get_symbol_color(self): - """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - def set_symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) - - @property - def get_symbol_line_width(self): - """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - def set_symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) - - @property - def get_symbol_filled(self): - """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - def set_symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TwoRayPathLossCouplingNode.py deleted file mode 100644 index da4f7825e16..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TwoRayPathLossCouplingNode.py +++ /dev/null @@ -1,222 +0,0 @@ -class Node_TwoRayPathLossCouplingNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_enabled(self): - """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - def set_enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) - - @property - def get_enable_refinement(self): - """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - def set_enable_refinement(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) - - @property - def get_adaptive_sampling(self): - """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - def set_adaptive_sampling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) - - @property - def get_refinement_domain(self): - """Refinement Domain - "Points to use when refining the frequency domain.." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - def set_refinement_domain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) - - @property - def get_ground_reflection_coeff(self): - """Ground Reflection Coeff. - "The ground reflection coefficient." - "Value should be between -100 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Ground Reflection Coeff.') - def set_ground_reflection_coeff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Ground Reflection Coeff.=' + value]) - - @property - def get_pointspeak(self): - """Points/Peak - "Number of points used to model each peak in frequency vs loss curve." - "Value should be between 3 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Points/Peak') - def set_pointspeak(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Points/Peak=' + value]) - - @property - def get_custom_fading_margin(self): - """Custom Fading Margin - "Sets a custom fading margin to be applied to all coupling defined by this node." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') - def set_custom_fading_margin(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) - - @property - def get_polarization_mismatch(self): - """Polarization Mismatch - "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') - def set_polarization_mismatch(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) - - @property - def get_pointing_error_loss(self): - """Pointing Error Loss - "Sets a margin for pointing error loss to be applied to all coupling defined by this node." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') - def set_pointing_error_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) - - @property - def get_fading_type(self): - """Fading Type - "Specify the type of fading to include." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') - def set_fading_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) - class FadingTypeOption(Enum): - ( - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" - ) - - @property - def get_fading_availability(self): - """Fading Availability - "The probability that the propagation loss in dB is below its median value plus the margin." - "Value should be between 0.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') - def set_fading_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) - - @property - def get_std_deviation(self): - """Std Deviation - "Standard deviation modeling the random amount of shadowing loss." - "Value should be between 0.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') - def set_std_deviation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) - - @property - def get_include_rain_attenuation(self): - """Include Rain Attenuation - "Adds a margin for rain attenuation to the computed coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') - def set_include_rain_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) - - @property - def get_rain_availability(self): - """Rain Availability - "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." - "Value should be between 99 and 99.999." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') - def set_rain_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) - - @property - def get_rain_rate(self): - """Rain Rate - "Rain rate (mm/hr) exceeded for 0.01% of the time." - "Value should be between 0.0 and 1000.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') - def set_rain_rate(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) - - @property - def get_polarization_tilt_angle(self): - """Polarization Tilt Angle - "Polarization tilt angle of the transmitted signal relative to the horizontal." - "Value should be between 0.0 and 180.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') - def set_polarization_tilt_angle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) - - @property - def get_include_atmospheric_absorption(self): - """Include Atmospheric Absorption - "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') - def set_include_atmospheric_absorption(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) - - @property - def get_temperature(self): - """Temperature - "Air temperature in degrees Celsius." - "Value should be between -273.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') - def set_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) - - @property - def get_total_air_pressure(self): - """Total Air Pressure - "Total air pressure." - "Value should be between 0.0 and 2000.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') - def set_total_air_pressure(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) - - @property - def get_water_vapor_concentration(self): - """Water Vapor Concentration - "Water vapor concentration." - "Value should be between 0.0 and 2000.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') - def set_water_vapor_concentration(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TwoToneTraceNode.py deleted file mode 100644 index 3772f3aab13..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TwoToneTraceNode.py +++ /dev/null @@ -1,250 +0,0 @@ -class Node_TwoToneTraceNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def export_model(self, file_name): - """Save this data to a file""" - return self._export_model(file_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_input_port(self): - """Input Port - "Specifies input port for the plotted outboard component." - "Value should be greater than 1." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Input Port') - def set_input_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Input Port=' + value]) - - @property - def get_output_port(self): - """Output Port - "Specifies output port for the plotted outboard component." - "Value should be greater than 1." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Port') - def set_output_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Port=' + value]) - - @property - def get_data_source(self): - """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - def set_data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) - - @property - def get_visible(self): - """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - def set_visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) - - @property - def get_custom_legend(self): - """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - def set_custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) - - @property - def get_name(self): - """Name - "Enter name of plot trace as it will appear in legend." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - def set_name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) - - @property - def get_style(self): - """Style - "Specify line style of plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - def set_style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) - class StyleOption(Enum): - ( - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" - ) - - @property - def get_line_width(self): - """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - def set_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) - - @property - def get_line_color(self): - """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - def set_line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) - - @property - def get_symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - def set_symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) - class SymbolOption(Enum): - ( - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" - ) - - @property - def get_symbol_size(self): - """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - def set_symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) - - @property - def get_symbol_color(self): - """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - def set_symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) - - @property - def get_symbol_line_width(self): - """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - def set_symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) - - @property - def get_symbol_filled(self): - """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - def set_symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) - - @property - def get_frequency_1(self): - """Frequency 1 - "1st test tone frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency 1') - def set_frequency_1(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Frequency 1=' + value]) - - @property - def get_amplitude_1(self): - """Amplitude 1 - "1st test tone amplitude." - "Value should be between -100 and 200." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplitude 1') - def set_amplitude_1(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplitude 1=' + value]) - - @property - def get_bandwidth_1(self): - """Bandwidth 1 - "1st test tone bandwidth." - "Value should be between 1 and unbounded." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bandwidth 1') - def set_bandwidth_1(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Bandwidth 1=' + value]) - - @property - def get_frequency_2(self): - """Frequency 2 - "2nd test tone frequency." - "Value should be between 1 and 100e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency 2') - def set_frequency_2(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Frequency 2=' + value]) - - @property - def get_amplitude_2(self): - """Amplitude 2 - "2nd test tone amplitude." - "Value should be between -100 and 200." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplitude 2') - def set_amplitude_2(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplitude 2=' + value]) - - @property - def get_bandwidth_2(self): - """Bandwidth 2 - "2nd test tone bandwidth." - "Value should be between 1 and unbounded." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bandwidth 2') - def set_bandwidth_2(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Bandwidth 2=' + value]) - - @property - def get_noise_level(self): - """Noise Level - "Broadband noise level." - "Value should be between -200 and 0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Level') - def set_noise_level(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Level=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxBbEmissionNode.py deleted file mode 100644 index e49bf154fb0..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxBbEmissionNode.py +++ /dev/null @@ -1,46 +0,0 @@ -class Node_TxBbEmissionNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def import_csv_file(self, file_name): - """Import a CSV File...""" - return self._import(file_name,'Csv') - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_enabled(self): - """Enabled state for this node.""" - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') - def set_enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) - - @property - def get_noise_behavior(self): - """Noise Behavior - "Specifies the behavior of the parametric noise profile." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Behavior') - def set_noise_behavior(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Behavior=' + value]) - class NoiseBehaviorOption(Enum): - ( - ABSOLUTE = "Absolute" - RELATIVEBANDWIDTH = "Relative (Bandwidth)" - RELATIVEOFFSET = "Relative (Offset)" - BROADBANDEQUATION = "Equation" - ) - - @property - def get_use_log_linear_interpolation(self): - """Use Log-Linear Interpolation - "If true, linear interpolation in the log domain is used. If false, linear interpolation in the linear domain is used.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Log-Linear Interpolation') - def set_use_log_linear_interpolation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use Log-Linear Interpolation=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxMeasNode.py deleted file mode 100644 index c45f40804ac..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxMeasNode.py +++ /dev/null @@ -1,83 +0,0 @@ -class Node_TxMeasNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_file(self): - """File - "Name of the measurement source." - "Value should be a full file path." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'File') - - @property - def get_source_file(self): - """Source File - "Name of the measurement source." - "Value should be a full file path." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Source File') - - @property - def get_transmit_frequency(self): - """Transmit Frequency - "Channel associated with the measurement file." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Transmit Frequency') - - @property - def get_use_ams_limits(self): - """Use AMS Limits - "Allow AMS to define the frequency limits for the measurements." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use AMS Limits') - def set_use_ams_limits(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use AMS Limits=' + value]) - - @property - def get_start_frequency(self): - """Start Frequency - "Starting frequency for the measurement sweep." - "Value should be between 1e6 and TxStopFreq." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Start Frequency') - def set_start_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Start Frequency=' + value]) - - @property - def get_stop_frequency(self): - """Stop Frequency - "Stopping frequency for the measurement sweep." - "Value should be between TxStartFreq and 6e9." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop Frequency') - def set_stop_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Stop Frequency=' + value]) - - @property - def get_exclude_harmonics_below_noise(self): - """Exclude Harmonics Below Noise - "Include/Exclude Harmonics below the noise." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Exclude Harmonics Below Noise') - def set_exclude_harmonics_below_noise(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Exclude Harmonics Below Noise=' + value]) - - @property - def get_enabled(self): - """Enabled state for this node.""" - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') - def set_enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxSpectralProfNode.py deleted file mode 100644 index 641c5a0896c..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxSpectralProfNode.py +++ /dev/null @@ -1,265 +0,0 @@ -class Node_TxSpectralProfNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - @property - def get_enabled(self): - """Enabled state for this node.""" - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') - def set_enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) - - @property - def get_spectrum_type(self): - """Spectrum Type - "Specifies EMI Margins to calculate." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spectrum Type') - def set_spectrum_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Spectrum Type=' + value]) - class SpectrumTypeOption(Enum): - ( - BOTH = "Narrowband & Broadband" - BROADBANDONLY = "Broadband Only" - ) - - @property - def get_tx_power(self): - """Tx Power - "Method used to specify the power." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx Power') - def set_tx_power(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Tx Power=' + value]) - class TxPowerOption(Enum): - ( - PEAK_POWER = "Peak Power" - AVERAGE_POWER = "Average Power" - ) - - @property - def get_peak_power(self): - """Peak Power - "Tx's carrier frequency peak power." - "Value should be between -1000 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Peak Power') - def set_peak_power(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Peak Power=' + value]) - - @property - def get_average_power(self): - """Average Power - "Tx's fundamental level specified by average power." - "Value should be between -1000 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Average Power') - def set_average_power(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Average Power=' + value]) - - @property - def get_output_voltage_peak(self): - """Output Voltage Peak - "Output High Voltage Level: maximum voltage of the digital signal." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Voltage Peak') - def set_output_voltage_peak(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Voltage Peak=' + value]) - - @property - def get_include_phase_noise(self): - """Include Phase Noise - "Include oscillator phase noise in Tx spectral profile." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Phase Noise') - def set_include_phase_noise(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Phase Noise=' + value]) - - @property - def get_tx_broadband_noise(self): - """Tx Broadband Noise - "Transmitters broadband noise level." - "Value should be less than 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx Broadband Noise') - def set_tx_broadband_noise(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Tx Broadband Noise=' + value]) - - @property - def get_harmonic_taper(self): - """Harmonic Taper - "Taper type used to set amplitude of harmonics." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Taper') - def set_harmonic_taper(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Harmonic Taper=' + value]) - class HarmonicTaperOption(Enum): - ( - CONSTANT = "Constant" - MIL_STD_461G = "MIL-STD-461G" - MIL_STD_461G_NAVY = "MIL-STD-461G Navy" - DUFF_MODEL = "Duff Model" - ) - - @property - def get_harmonic_amplitude(self): - """Harmonic Amplitude - "Amplitude (relative to the carrier power) of harmonics." - "Value should be between -1000 and 0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Amplitude') - def set_harmonic_amplitude(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Harmonic Amplitude=' + value]) - - @property - def get_harmonic_slope(self): - """Harmonic Slope - "Rate of decrease for harmonics' amplitudes (dB/decade)." - "Value should be between -1000 and 0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Slope') - def set_harmonic_slope(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Harmonic Slope=' + value]) - - @property - def get_harmonic_intercept(self): - """Harmonic Intercept - "Amplitude intercept at the fundamental (dBc)." - "Value should be between -1000 and 0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Intercept') - def set_harmonic_intercept(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Harmonic Intercept=' + value]) - - @property - def get_enable_harmonic_bw_expansion(self): - """Enable Harmonic BW Expansion - "If (True), bandwidth of harmonics increases proportional to the harmonic number." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Harmonic BW Expansion') - def set_enable_harmonic_bw_expansion(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Harmonic BW Expansion=' + value]) - - @property - def get_number_of_harmonics(self): - """Number of Harmonics - "Maximum number of harmonics modeled." - "Value should be between 1 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Harmonics') - def set_number_of_harmonics(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Number of Harmonics=' + value]) - - @property - def get__2nd_harmonic_level(self): - """2nd Harmonic Level - "Amplitude (relative to the carrier power) of the 2nd harmonic." - "Value should be between -1000 and 0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'2nd Harmonic Level') - def set__2nd_harmonic_level(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['2nd Harmonic Level=' + value]) - - @property - def get__3rd_harmonic_level(self): - """3rd Harmonic Level - "Amplitude (relative to the carrier power) of the 3rd harmonic." - "Value should be between -1000 and 0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'3rd Harmonic Level') - def set__3rd_harmonic_level(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['3rd Harmonic Level=' + value]) - - @property - def get_other_harmonic_levels(self): - """Other Harmonic Levels - "Amplitude (relative to the carrier power) of the higher order harmonics." - "Value should be between -1000 and 0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Other Harmonic Levels') - def set_other_harmonic_levels(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Other Harmonic Levels=' + value]) - - @property - def get_perform_tx_intermod_analysis(self): - """Perform Tx Intermod Analysis - "Performs a non-linear intermod analysis for the Tx." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Perform Tx Intermod Analysis') - def set_perform_tx_intermod_analysis(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Perform Tx Intermod Analysis=' + value]) - - @property - def get_internal_amp_gain(self): - """Internal Amp Gain - "Internal Tx Amplifier's Gain." - "Value should be between -1000 and 1000." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Internal Amp Gain') - def set_internal_amp_gain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Internal Amp Gain=' + value]) - - @property - def get_noise_figure(self): - """Noise Figure - "Internal Tx Amplifier's noise figure." - "Value should be between 0 and 50." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Figure') - def set_noise_figure(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Figure=' + value]) - - @property - def get_amplifier_saturation_level(self): - """Amplifier Saturation Level - "Internal Tx Amplifier's Saturation Level." - "Value should be between -200 and 200." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplifier Saturation Level') - def set_amplifier_saturation_level(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplifier Saturation Level=' + value]) - - @property - def get__1_db_point_ref_input_(self): - """1-dB Point, Ref. Input - "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." - "Value should be between -200 and 200." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'1-dB Point, Ref. Input ') - def set__1_db_point_ref_input_(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input =' + value]) - - @property - def get_ip3_ref_input(self): - """IP3, Ref. Input - "Internal Tx Amplifier's 3rd order intercept point." - "Value should be between -200 and 200." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'IP3, Ref. Input') - def set_ip3_ref_input(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + value]) - - @property - def get_reverse_isolation(self): - """Reverse Isolation - "Internal Tx Amplifier's Reverse Isolation." - "Value should be between -200 and 200." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reverse Isolation') - def set_reverse_isolation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) - - @property - def get_max_intermod_order(self): - """Max Intermod Order - "Internal Tx Amplifier's maximum intermod order to compute." - "Value should be between 3 and 20." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Intermod Order') - def set_max_intermod_order(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/Node_WalfischCouplingNode.py deleted file mode 100644 index 169d3b03ae7..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_WalfischCouplingNode.py +++ /dev/null @@ -1,270 +0,0 @@ -class Node_WalfischCouplingNode(GenericEmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def get_enabled(self): - """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - def set_enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) - - @property - def get_enable_refinement(self): - """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - def set_enable_refinement(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) - - @property - def get_adaptive_sampling(self): - """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - def set_adaptive_sampling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) - - @property - def get_refinement_domain(self): - """Refinement Domain - "Points to use when refining the frequency domain.." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - def set_refinement_domain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) - - @property - def get_path_loss_type(self): - """Path Loss Type - "Specify LOS vs NLOS for the Walfisch-Ikegami model." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Path Loss Type') - def set_path_loss_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Path Loss Type=' + value]) - class PathLossTypeOption(Enum): - ( - WALFISCHLOS = "LOS (Urban Canyon)" - WALFISCHNLOS = "NLOS" - ) - - @property - def get_environment(self): - """Environment - "Specify the environment type for the Walfisch model." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Environment') - def set_environment(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Environment=' + value]) - class EnvironmentOption(Enum): - ( - DENSEMETROAREA = "Dense Metro" - SMALLURBANORSUBURBAN = "Small/Medium City or Suburban" - ) - - @property - def get_roof_height(self): - """Roof Height - "The height of the building where the antenna is located.." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Roof Height') - def set_roof_height(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Roof Height=' + value]) - - @property - def get_distance_between_buildings(self): - """Distance Between Buildings - "The distance between two buildings.." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Distance Between Buildings') - def set_distance_between_buildings(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Distance Between Buildings=' + value]) - - @property - def get_street_width(self): - """Street Width - "Width of the street.." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Street Width') - def set_street_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Street Width=' + value]) - - @property - def get_incidence_angle(self): - """Incidence Angle - "Angle between the street orientation and direction of incidence.." - "Value should be between 0 and 90." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Incidence Angle') - def set_incidence_angle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Incidence Angle=' + value]) - - @property - def get_custom_fading_margin(self): - """Custom Fading Margin - "Sets a custom fading margin to be applied to all coupling defined by this node." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') - def set_custom_fading_margin(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) - - @property - def get_polarization_mismatch(self): - """Polarization Mismatch - "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') - def set_polarization_mismatch(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) - - @property - def get_pointing_error_loss(self): - """Pointing Error Loss - "Sets a margin for pointing error loss to be applied to all coupling defined by this node." - "Value should be between 0 and 100." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') - def set_pointing_error_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) - - @property - def get_fading_type(self): - """Fading Type - "Specify the type of fading to include." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') - def set_fading_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) - class FadingTypeOption(Enum): - ( - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" - ) - - @property - def get_fading_availability(self): - """Fading Availability - "The probability that the propagation loss in dB is below its median value plus the margin." - "Value should be between 0.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') - def set_fading_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) - - @property - def get_std_deviation(self): - """Std Deviation - "Standard deviation modeling the random amount of shadowing loss." - "Value should be between 0.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') - def set_std_deviation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) - - @property - def get_include_rain_attenuation(self): - """Include Rain Attenuation - "Adds a margin for rain attenuation to the computed coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') - def set_include_rain_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) - - @property - def get_rain_availability(self): - """Rain Availability - "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." - "Value should be between 99 and 99.999." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') - def set_rain_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) - - @property - def get_rain_rate(self): - """Rain Rate - "Rain rate (mm/hr) exceeded for 0.01% of the time." - "Value should be between 0.0 and 1000.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') - def set_rain_rate(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) - - @property - def get_polarization_tilt_angle(self): - """Polarization Tilt Angle - "Polarization tilt angle of the transmitted signal relative to the horizontal." - "Value should be between 0.0 and 180.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') - def set_polarization_tilt_angle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) - - @property - def get_include_atmospheric_absorption(self): - """Include Atmospheric Absorption - "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." - "Value should be 'true' or 'false'." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') - def set_include_atmospheric_absorption(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) - - @property - def get_temperature(self): - """Temperature - "Air temperature in degrees Celsius." - "Value should be between -273.0 and 100.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') - def set_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) - - @property - def get_total_air_pressure(self): - """Total Air Pressure - "Total air pressure." - "Value should be between 0.0 and 2000.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') - def set_total_air_pressure(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) - - @property - def get_water_vapor_concentration(self): - """Water Vapor Concentration - "Water vapor concentration." - "Value should be between 0.0 and 2000.0." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') - def set_water_vapor_concentration(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py new file mode 100644 index 00000000000..51a91b84fb9 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py @@ -0,0 +1,266 @@ +from ..GenericEmitNode import * +class OutboardTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def input_port(self) -> int: + """Input Port + "Specifies input port for the plotted outboard component." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Input Port') + key_val_pair = [i for i in props if 'Input Port=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @input_port.setter + def input_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Input Port=' + value]) + + @property + def output_port(self) -> int: + """Output Port + "Specifies output port for the plotted outboard component." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Port') + key_val_pair = [i for i in props if 'Output Port=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @output_port.setter + def output_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Port=' + value]) + + @property + def data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + key_val_pair = [i for i in props if 'Data Source=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @data_source.setter + def data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def visible(self) -> bool: + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + key_val_pair = [i for i in props if 'Visible=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @visible.setter + def visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def custom_legend(self) -> bool: + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + key_val_pair = [i for i in props if 'Custom Legend=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @custom_legend.setter + def custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def name(self) -> str: + """Name + "Enter name of plot trace as it will appear in legend." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + key_val_pair = [i for i in props if 'Name=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @name.setter + def name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def style(self): + """Style + "Specify line style of plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + key_val_pair = [i for i in props if 'Style=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @style.setter + def style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + + @property + def line_width(self) -> int: + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + key_val_pair = [i for i in props if 'Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_width.setter + def line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + key_val_pair = [i for i in props if 'Line Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_color.setter + def line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + key_val_pair = [i for i in props if 'Symbol=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol.setter + def symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + + @property + def symbol_size(self) -> int: + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + key_val_pair = [i for i in props if 'Symbol Size=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_size.setter + def symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + key_val_pair = [i for i in props if 'Symbol Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_color.setter + def symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def symbol_line_width(self) -> int: + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + key_val_pair = [i for i in props if 'Symbol Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_line_width.setter + def symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def symbol_filled(self) -> bool: + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + key_val_pair = [i for i in props if 'Symbol Filled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_filled.setter + def symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py new file mode 100644 index 00000000000..10bbbc1cee9 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py @@ -0,0 +1,234 @@ +from ..GenericEmitNode import * +class ParametricCouplingTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + key_val_pair = [i for i in props if 'Data Source=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @data_source.setter + def data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def visible(self) -> bool: + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + key_val_pair = [i for i in props if 'Visible=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @visible.setter + def visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def custom_legend(self) -> bool: + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + key_val_pair = [i for i in props if 'Custom Legend=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @custom_legend.setter + def custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def name(self) -> str: + """Name + "Enter name of plot trace as it will appear in legend." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + key_val_pair = [i for i in props if 'Name=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @name.setter + def name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def style(self): + """Style + "Specify line style of plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + key_val_pair = [i for i in props if 'Style=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @style.setter + def style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + + @property + def line_width(self) -> int: + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + key_val_pair = [i for i in props if 'Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_width.setter + def line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + key_val_pair = [i for i in props if 'Line Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_color.setter + def line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + key_val_pair = [i for i in props if 'Symbol=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol.setter + def symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + + @property + def symbol_size(self) -> int: + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + key_val_pair = [i for i in props if 'Symbol Size=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_size.setter + def symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + key_val_pair = [i for i in props if 'Symbol Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_color.setter + def symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def symbol_line_width(self) -> int: + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + key_val_pair = [i for i in props if 'Symbol Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_line_width.setter + def symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def symbol_filled(self) -> bool: + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + key_val_pair = [i for i in props if 'Symbol Filled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_filled.setter + def symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py new file mode 100644 index 00000000000..22c94aee9b8 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py @@ -0,0 +1,413 @@ +from ..GenericEmitNode import * +class PlotMarkerNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def visible(self) -> bool: + """Visible + "Toggle (on/off) this marker." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + key_val_pair = [i for i in props if 'Visible=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @visible.setter + def visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def attached(self) -> bool: + """Attached + "Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False)." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Attached') + key_val_pair = [i for i in props if 'Attached=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @attached.setter + def attached(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Attached=' + value]) + + @property + def position(self) -> float: + """Position + "Set position of the marker along the X-axis." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') + key_val_pair = [i for i in props if 'Position=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @position.setter + def position(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position=' + value]) + + @property + def position(self) -> float: + """Position + "Set position of the marker along the Y-axis." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') + key_val_pair = [i for i in props if 'Position=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @position.setter + def position(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position=' + value]) + + @property + def floating_label(self) -> bool: + """Floating Label + "Allow marker label to be positioned at a fixed point on the plot window (the marker symbol remains fixed to the specified X-Y point)." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Floating Label') + key_val_pair = [i for i in props if 'Floating Label=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @floating_label.setter + def floating_label(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Floating Label=' + value]) + + @property + def position_from_left(self) -> float: + """Position from Left + "Set position of label from left to right as a percentage of the width of the plot window." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position from Left') + key_val_pair = [i for i in props if 'Position from Left=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @position_from_left.setter + def position_from_left(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position from Left=' + value]) + + @property + def position_from_top(self) -> float: + """Position from Top + "Set position of label from top to bottom as a percentage of the height of the plot window." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position from Top') + key_val_pair = [i for i in props if 'Position from Top=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @position_from_top.setter + def position_from_top(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position from Top=' + value]) + + @property + def text(self) -> str: + """Text + "Set the text of the label." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Text') + key_val_pair = [i for i in props if 'Text=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @text.setter + def text(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Text=' + value]) + + @property + def horizontal_position(self): + """Horizontal Position + "Specify horizontal position of the label as compared to the symbol." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Horizontal Position') + key_val_pair = [i for i in props if 'Horizontal Position=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @horizontal_position.setter + def horizontal_position(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Horizontal Position=' + value]) + class HorizontalPositionOption(Enum): + LEFT = "Left" + RIGHT = "Right" + CENTER = "Center" + + @property + def vertical_position(self): + """Vertical Position + "Specify vertical position of the label as compared to the symbol." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Vertical Position') + key_val_pair = [i for i in props if 'Vertical Position=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @vertical_position.setter + def vertical_position(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Vertical Position=' + value]) + class VerticalPositionOption(Enum): + TOP = "Top" + BOTTOM = "Bottom" + CENTER = "Center" + + @property + def text_alignment(self): + """Text Alignment + "Specify justification applied to multi-line text." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Text Alignment') + key_val_pair = [i for i in props if 'Text Alignment=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @text_alignment.setter + def text_alignment(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Text Alignment=' + value]) + class TextAlignmentOption(Enum): + LEFT = "Left" + RIGHT = "Right" + CENTER = "Center" + + @property + def font(self): + """Font + "Specify font used for the label." + "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Font') + key_val_pair = [i for i in props if 'Font=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @font.setter + def font(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Font=' + value]) + + @property + def color(self): + """Color + "Specify color of the label text." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Color') + key_val_pair = [i for i in props if 'Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @color.setter + def color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Color=' + value]) + + @property + def background_color(self): + """Background Color + "Set color of the label text background." + "Color should be in RGBA form: #AARRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Background Color') + key_val_pair = [i for i in props if 'Background Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @background_color.setter + def background_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Background Color=' + value]) + + @property + def border(self) -> bool: + """Border + "Display a border around the label text." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border') + key_val_pair = [i for i in props if 'Border=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @border.setter + def border(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border=' + value]) + + @property + def border_width(self) -> int: + """Border Width + "Set the width of the border around the label text." + "Value should be between 1 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border Width') + key_val_pair = [i for i in props if 'Border Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @border_width.setter + def border_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border Width=' + value]) + + @property + def border_color(self): + """Border Color + "Set color of the border around the label text." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border Color') + key_val_pair = [i for i in props if 'Border Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @border_color.setter + def border_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border Color=' + value]) + + @property + def symbol(self): + """Symbol + "Specify symbol displayed next to the label." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + key_val_pair = [i for i in props if 'Symbol=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol.setter + def symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + ARROW = "Arrow" + + @property + def arrow_direction(self) -> int: + """Arrow Direction + "Set direction of the arrow; zero degrees is up." + "Value should be between -360 and 360." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Arrow Direction') + key_val_pair = [i for i in props if 'Arrow Direction=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @arrow_direction.setter + def arrow_direction(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Arrow Direction=' + value]) + + @property + def symbol_size(self) -> int: + """Symbol Size + "Set size of the symbol used for this marker." + "Value should be between 1 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + key_val_pair = [i for i in props if 'Symbol Size=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_size.setter + def symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def symbol_color(self): + """Symbol Color + "Set color of the symbol used for this marker." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + key_val_pair = [i for i in props if 'Symbol Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_color.setter + def symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def line_width(self) -> int: + """Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + key_val_pair = [i for i in props if 'Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_width.setter + def line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def filled(self) -> bool: + """Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filled') + key_val_pair = [i for i in props if 'Filled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @filled.setter + def filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py new file mode 100644 index 00000000000..5feff0b131e --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py @@ -0,0 +1,484 @@ +from ..GenericEmitNode import * +class PlotNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def add_marker(self): + """Add an icon and/or label to this plot""" + return self._add_child_node("PlotMarkerNode") + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def title(self) -> str: + """Title + "Enter title at the top of the plot, room will be made for it." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Title') + key_val_pair = [i for i in props if 'Title=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @title.setter + def title(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Title=' + value]) + + @property + def title_font(self): + """Title Font + "Configure title font family, typeface, and size." + "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Title Font') + key_val_pair = [i for i in props if 'Title Font=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @title_font.setter + def title_font(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Title Font=' + value]) + + @property + def show_legend(self) -> bool: + """Show Legend + "Toggle (on/off) display of plot legend." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Legend') + key_val_pair = [i for i in props if 'Show Legend=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @show_legend.setter + def show_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Legend=' + value]) + + @property + def legend_font(self): + """Legend Font + "Configure legend font family, typeface, and size." + "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Legend Font') + key_val_pair = [i for i in props if 'Legend Font=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @legend_font.setter + def legend_font(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Legend Font=' + value]) + + @property + def display_cad_overlay(self) -> bool: + """Display CAD Overlay + "Toggle on/off overlay of CAD model in plot." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Display CAD Overlay') + key_val_pair = [i for i in props if 'Display CAD Overlay=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @display_cad_overlay.setter + def display_cad_overlay(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Display CAD Overlay=' + value]) + + @property + def opacity(self) -> float: + """Opacity + "Adjust opacity of CAD model overlay: 0 Transparent - 1 Opaque." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Opacity') + key_val_pair = [i for i in props if 'Opacity=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @opacity.setter + def opacity(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Opacity=' + value]) + + @property + def vertical_offset(self) -> float: + """Vertical Offset + "Adjust vertical position of CAD model overlay." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Vertical Offset') + key_val_pair = [i for i in props if 'Vertical Offset=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @vertical_offset.setter + def vertical_offset(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Vertical Offset=' + value]) + + @property + def range_axis_rotation(self) -> float: + """Range Axis Rotation + "Adjust view angle for CAD model overlay by rotating it about plot horizontal axis." + "Value should be between -180 and 180." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Range Axis Rotation') + key_val_pair = [i for i in props if 'Range Axis Rotation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @range_axis_rotation.setter + def range_axis_rotation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Range Axis Rotation=' + value]) + + @property + def lock_axes(self) -> bool: + """Lock Axes + "Allow or prevent changing of axes when displayed plot traces are updated." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lock Axes') + key_val_pair = [i for i in props if 'Lock Axes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @lock_axes.setter + def lock_axes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lock Axes=' + value]) + + @property + def x_axis_min(self) -> float: + """X-axis Min + "Set lower extent of horizontal axis." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X-axis Min') + key_val_pair = [i for i in props if 'X-axis Min=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @x_axis_min.setter + def x_axis_min(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['X-axis Min=' + value]) + + @property + def x_axis_max(self) -> float: + """X-axis Max + "Set upper extent of horizontal axis." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X-axis Max') + key_val_pair = [i for i in props if 'X-axis Max=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @x_axis_max.setter + def x_axis_max(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['X-axis Max=' + value]) + + @property + def y_axis_min(self) -> float: + """Y-axis Min + "Set lower extent of vertical axis." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y-axis Min') + key_val_pair = [i for i in props if 'Y-axis Min=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @y_axis_min.setter + def y_axis_min(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y-axis Min=' + value]) + + @property + def y_axis_max(self) -> float: + """Y-axis Max + "Set upper extent of vertical axis." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y-axis Max') + key_val_pair = [i for i in props if 'Y-axis Max=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @y_axis_max.setter + def y_axis_max(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y-axis Max=' + value]) + + @property + def y_axis_range(self) -> float: + """Y-axis Range + "Adjust dB span of vertical axis, makes corresponding adjustment in Y-axis Min." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y-axis Range') + key_val_pair = [i for i in props if 'Y-axis Range=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @y_axis_range.setter + def y_axis_range(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y-axis Range=' + value]) + + @property + def max_major_ticks(self) -> int: + """Max Major Ticks + "Set maximum number of major tick-mark intervals along horizontal axis." + "Value should be between 1 and 30." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Major Ticks') + key_val_pair = [i for i in props if 'Max Major Ticks=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @max_major_ticks.setter + def max_major_ticks(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) + + @property + def max_minor_ticks(self) -> int: + """Max Minor Ticks + "Set maximum number of minor tick-mark intervals between major ticks along horizontal axis." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Minor Ticks') + key_val_pair = [i for i in props if 'Max Minor Ticks=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @max_minor_ticks.setter + def max_minor_ticks(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) + + @property + def max_major_ticks(self) -> int: + """Max Major Ticks + "Set maximum number of major tick-mark intervals along vertical axis." + "Value should be between 1 and 30." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Major Ticks') + key_val_pair = [i for i in props if 'Max Major Ticks=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @max_major_ticks.setter + def max_major_ticks(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) + + @property + def max_minor_ticks(self) -> int: + """Max Minor Ticks + "Set maximum number of minor tick-mark intervals between major ticks along vertical axis." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Minor Ticks') + key_val_pair = [i for i in props if 'Max Minor Ticks=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @max_minor_ticks.setter + def max_minor_ticks(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) + + @property + def axis_label_font(self): + """Axis Label Font + "Configure axis text labels font family, typeface, and size." + "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Axis Label Font') + key_val_pair = [i for i in props if 'Axis Label Font=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @axis_label_font.setter + def axis_label_font(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Axis Label Font=' + value]) + + @property + def axis_tick_label_font(self): + """Axis Tick Label Font + "Configure axis tick numeric labels font family, typeface, and size." + "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Axis Tick Label Font') + key_val_pair = [i for i in props if 'Axis Tick Label Font=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @axis_tick_label_font.setter + def axis_tick_label_font(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Axis Tick Label Font=' + value]) + + @property + def major_grid_line_style(self): + """Major Grid Line Style + "Select line style of major-tick grid lines." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Major Grid Line Style') + key_val_pair = [i for i in props if 'Major Grid Line Style=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @major_grid_line_style.setter + def major_grid_line_style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Major Grid Line Style=' + value]) + class MajorGridLineStyleOption(Enum): + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + + @property + def major_grid_color(self): + """Major Grid Color + "Set color of major-tick grid lines." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Major Grid Color') + key_val_pair = [i for i in props if 'Major Grid Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @major_grid_color.setter + def major_grid_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Major Grid Color=' + value]) + + @property + def minor_grid_line_style(self): + """Minor Grid Line Style + "Select line style of minor-tick grid lines." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minor Grid Line Style') + key_val_pair = [i for i in props if 'Minor Grid Line Style=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @minor_grid_line_style.setter + def minor_grid_line_style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Minor Grid Line Style=' + value]) + class MinorGridLineStyleOption(Enum): + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + + @property + def minor_grid_color(self): + """Minor Grid Color + "Set color of minor-tick grid lines." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minor Grid Color') + key_val_pair = [i for i in props if 'Minor Grid Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @minor_grid_color.setter + def minor_grid_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Minor Grid Color=' + value]) + + @property + def background_color(self): + """Background Color + "Set background color of entire plot." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Background Color') + key_val_pair = [i for i in props if 'Background Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @background_color.setter + def background_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Background Color=' + value]) + + @property + def bb_power_for_plots_unit(self): + """BB Power for Plots Unit + "Units to use for plotting broadband power densities." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BB Power for Plots Unit') + key_val_pair = [i for i in props if 'BB Power for Plots Unit=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @bb_power_for_plots_unit.setter + def bb_power_for_plots_unit(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['BB Power for Plots Unit=' + value]) + class BBPowerforPlotsUnitOption(Enum): + HERTZ = "hertz" + KILOHERTZ = "kilohertz" + MEGAHERTZ = "megahertz" + GIGAHERTZ = "gigahertz" + + @property + def bb_power_bandwidth(self) -> float: + """BB Power Bandwidth + "Resolution bandwidth for broadband power." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BB Power Bandwidth') + key_val_pair = [i for i in props if 'BB Power Bandwidth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @bb_power_bandwidth.setter + def bb_power_bandwidth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['BB Power Bandwidth=' + value]) + + @property + def log_scale(self) -> bool: + """Log Scale + "Toggles on/off using a log scale for the X-Axis." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Log Scale') + key_val_pair = [i for i in props if 'Log Scale=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @log_scale.setter + def log_scale(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Log Scale=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py new file mode 100644 index 00000000000..eda90303ee4 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py @@ -0,0 +1,258 @@ +from ..GenericEmitNode import * +class PowerDivider(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def filename(self) -> str: + """Filename + "Name of file defining the Power Divider." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + key_val_pair = [i for i in props if 'Filename=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @filename.setter + def filename(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + + @property + def noise_temperature(self) -> float: + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + key_val_pair = [i for i in props if 'Noise Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @noise_temperature.setter + def noise_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @notes.setter + def notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def type(self): + """Type + "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + key_val_pair = [i for i in props if 'Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @type.setter + def type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) + class TypeOption(Enum): + BYFILE = "By File" + _3DB = "3 dB" + RESISTIVE = "Resistive" + + @property + def orientation(self): + """Orientation + "Defines the orientation of the Power Divider.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation') + key_val_pair = [i for i in props if 'Orientation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @orientation.setter + def orientation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Orientation=' + value]) + class OrientationOption(Enum): + RADIOSIDE = "Divider" + ANTENNASIDE = "Combiner" + + @property + def insertion_loss_above_ideal(self) -> float: + """Insertion Loss Above Ideal + "Additional loss beyond the ideal insertion loss. The ideal insertion loss is 3 dB for the 3 dB Divider and 6 dB for the Resistive Divider.." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss Above Ideal') + key_val_pair = [i for i in props if 'Insertion Loss Above Ideal=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @insertion_loss_above_ideal.setter + def insertion_loss_above_ideal(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Insertion Loss Above Ideal=' + value]) + + @property + def finite_isolation(self) -> bool: + """Finite Isolation + "Use a finite isolation between output ports. If disabled, the Power Divider isolation is ideal (infinite isolation between output ports).." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Isolation') + key_val_pair = [i for i in props if 'Finite Isolation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @finite_isolation.setter + def finite_isolation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Isolation=' + value]) + + @property + def isolation(self) -> float: + """Isolation + "Power Divider isolation between output ports.." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Isolation') + key_val_pair = [i for i in props if 'Isolation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @isolation.setter + def isolation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Isolation=' + value]) + + @property + def finite_bandwidth(self) -> bool: + """Finite Bandwidth + "Use a finite bandwidth. If disabled, the Power Divider model is ideal (infinite bandwidth).." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Bandwidth') + key_val_pair = [i for i in props if 'Finite Bandwidth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @finite_bandwidth.setter + def finite_bandwidth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) + + @property + def out_of_band_attenuation(self) -> float: + """Out-of-band Attenuation + "Out-of-band loss (attenuation)." + "Value should be between 0 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out-of-band Attenuation') + key_val_pair = [i for i in props if 'Out-of-band Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @out_of_band_attenuation.setter + def out_of_band_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) + + @property + def lower_stop_band(self) -> float: + """Lower Stop Band + "Lower stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') + key_val_pair = [i for i in props if 'Lower Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @lower_stop_band.setter + def lower_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + + @property + def lower_cutoff(self) -> float: + """Lower Cutoff + "Lower cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') + key_val_pair = [i for i in props if 'Lower Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @lower_cutoff.setter + def lower_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + + @property + def higher_cutoff(self) -> float: + """Higher Cutoff + "Higher cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') + key_val_pair = [i for i in props if 'Higher Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @higher_cutoff.setter + def higher_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + + @property + def higher_stop_band(self) -> float: + """Higher Stop Band + "Higher stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') + key_val_pair = [i for i in props if 'Higher Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @higher_stop_band.setter + def higher_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + + @property + def warnings(self) -> str: + """Warnings + "Warning(s) for this node." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + key_val_pair = [i for i in props if 'Warnings=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py new file mode 100644 index 00000000000..3228bfab0ef --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py @@ -0,0 +1,252 @@ +from ..GenericEmitNode import * +class PowerTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def direction(self): + """Direction + "Direction of power flow (towards or away from the transmitter) to plot." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Direction') + key_val_pair = [i for i in props if 'Direction=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @direction.setter + def direction(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Direction=' + value]) + class DirectionOption(Enum): + AWAY = "Away From Tx" + TOWARD = "Toward Tx" + + @property + def data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + key_val_pair = [i for i in props if 'Data Source=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @data_source.setter + def data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def visible(self) -> bool: + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + key_val_pair = [i for i in props if 'Visible=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @visible.setter + def visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def custom_legend(self) -> bool: + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + key_val_pair = [i for i in props if 'Custom Legend=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @custom_legend.setter + def custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def name(self) -> str: + """Name + "Enter name of plot trace as it will appear in legend." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + key_val_pair = [i for i in props if 'Name=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @name.setter + def name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def style(self): + """Style + "Specify line style of plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + key_val_pair = [i for i in props if 'Style=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @style.setter + def style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + + @property + def line_width(self) -> int: + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + key_val_pair = [i for i in props if 'Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_width.setter + def line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + key_val_pair = [i for i in props if 'Line Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_color.setter + def line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + key_val_pair = [i for i in props if 'Symbol=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol.setter + def symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + + @property + def symbol_size(self) -> int: + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + key_val_pair = [i for i in props if 'Symbol Size=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_size.setter + def symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + key_val_pair = [i for i in props if 'Symbol Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_color.setter + def symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def symbol_line_width(self) -> int: + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + key_val_pair = [i for i in props if 'Symbol Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_line_width.setter + def symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def symbol_filled(self) -> bool: + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + key_val_pair = [i for i in props if 'Symbol Filled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_filled.setter + def symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py new file mode 100644 index 00000000000..f7ed5054bbb --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py @@ -0,0 +1,234 @@ +from ..GenericEmitNode import * +class ProfileTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + key_val_pair = [i for i in props if 'Data Source=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @data_source.setter + def data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def visible(self) -> bool: + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + key_val_pair = [i for i in props if 'Visible=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @visible.setter + def visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def custom_legend(self) -> bool: + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + key_val_pair = [i for i in props if 'Custom Legend=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @custom_legend.setter + def custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def name(self) -> str: + """Name + "Enter name of plot trace as it will appear in legend." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + key_val_pair = [i for i in props if 'Name=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @name.setter + def name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def style(self): + """Style + "Specify line style of plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + key_val_pair = [i for i in props if 'Style=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @style.setter + def style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + + @property + def line_width(self) -> int: + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + key_val_pair = [i for i in props if 'Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_width.setter + def line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + key_val_pair = [i for i in props if 'Line Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_color.setter + def line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + key_val_pair = [i for i in props if 'Symbol=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol.setter + def symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + + @property + def symbol_size(self) -> int: + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + key_val_pair = [i for i in props if 'Symbol Size=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_size.setter + def symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + key_val_pair = [i for i in props if 'Symbol Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_color.setter + def symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def symbol_line_width(self) -> int: + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + key_val_pair = [i for i in props if 'Symbol Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_line_width.setter + def symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def symbol_filled(self) -> bool: + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + key_val_pair = [i for i in props if 'Symbol Filled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_filled.setter + def symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py new file mode 100644 index 00000000000..c9ab683b1af --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py @@ -0,0 +1,314 @@ +from ..GenericEmitNode import * +class PropagationLossCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enabled.setter + def enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def enable_refinement(self) -> bool: + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + key_val_pair = [i for i in props if 'Enable Refinement=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enable_refinement.setter + def enable_refinement(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + + @property + def adaptive_sampling(self) -> bool: + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @adaptive_sampling.setter + def adaptive_sampling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + + @property + def refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + key_val_pair = [i for i in props if 'Refinement Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @refinement_domain.setter + def refinement_domain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + + @property + def custom_fading_margin(self) -> float: + """Custom Fading Margin + "Sets a custom fading margin to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') + key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @custom_fading_margin.setter + def custom_fading_margin(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + + @property + def polarization_mismatch(self) -> float: + """Polarization Mismatch + "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') + key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @polarization_mismatch.setter + def polarization_mismatch(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + + @property + def pointing_error_loss(self) -> float: + """Pointing Error Loss + "Sets a margin for pointing error loss to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') + key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @pointing_error_loss.setter + def pointing_error_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + + @property + def fading_type(self): + """Fading Type + "Specify the type of fading to include." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') + key_val_pair = [i for i in props if 'Fading Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @fading_type.setter + def fading_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) + class FadingTypeOption(Enum): + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + + @property + def fading_availability(self) -> float: + """Fading Availability + "The probability that the propagation loss in dB is below its median value plus the margin." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') + key_val_pair = [i for i in props if 'Fading Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @fading_availability.setter + def fading_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + + @property + def std_deviation(self) -> float: + """Std Deviation + "Standard deviation modeling the random amount of shadowing loss." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') + key_val_pair = [i for i in props if 'Std Deviation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @std_deviation.setter + def std_deviation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + + @property + def include_rain_attenuation(self) -> bool: + """Include Rain Attenuation + "Adds a margin for rain attenuation to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') + key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @include_rain_attenuation.setter + def include_rain_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + + @property + def rain_availability(self) -> float: + """Rain Availability + "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." + "Value should be between 99 and 99.999." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') + key_val_pair = [i for i in props if 'Rain Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @rain_availability.setter + def rain_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + + @property + def rain_rate(self) -> float: + """Rain Rate + "Rain rate (mm/hr) exceeded for 0.01% of the time." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') + key_val_pair = [i for i in props if 'Rain Rate=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @rain_rate.setter + def rain_rate(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + + @property + def polarization_tilt_angle(self) -> float: + """Polarization Tilt Angle + "Polarization tilt angle of the transmitted signal relative to the horizontal." + "Value should be between 0 and 180." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') + key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @polarization_tilt_angle.setter + def polarization_tilt_angle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + + @property + def include_atmospheric_absorption(self) -> bool: + """Include Atmospheric Absorption + "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') + key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @include_atmospheric_absorption.setter + def include_atmospheric_absorption(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + + @property + def temperature(self) -> float: + """Temperature + "Air temperature in degrees Celsius." + "Value should be between -273 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') + key_val_pair = [i for i in props if 'Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @temperature.setter + def temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) + + @property + def total_air_pressure(self) -> float: + """Total Air Pressure + "Total air pressure." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') + key_val_pair = [i for i in props if 'Total Air Pressure=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @total_air_pressure.setter + def total_air_pressure(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + + @property + def water_vapor_concentration(self) -> float: + """Water Vapor Concentration + "Water vapor concentration." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') + key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @water_vapor_concentration.setter + def water_vapor_concentration(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py new file mode 100644 index 00000000000..d41d7ae17db --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py @@ -0,0 +1,42 @@ +from ..GenericEmitNode import * +class RadioNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def add_band(self): + """Create a New Band""" + return self._add_child_node("Band") + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @notes.setter + def notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py new file mode 100644 index 00000000000..6b950500c23 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py @@ -0,0 +1,189 @@ +from ..GenericEmitNode import * +class ReadOnlyAmplifier(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def filename(self) -> str: + """Filename + "Name of file defining the outboard component." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + key_val_pair = [i for i in props if 'Filename=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def noise_temperature(self) -> float: + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + key_val_pair = [i for i in props if 'Noise Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def amplifier_type(self): + """Amplifier Type + "Configures the amplifier as a Tx or Rx amplifier." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplifier Type') + key_val_pair = [i for i in props if 'Amplifier Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class AmplifierTypeOption(Enum): + TRANSMIT_AMPLIFIER = "Transmit Amplifier" + RECEIVE_AMPLIFIER = "Receive Amplifier" + + @property + def gain(self) -> float: + """Gain + "Amplifier in-band gain." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Gain') + key_val_pair = [i for i in props if 'Gain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def center_frequency(self) -> float: + """Center Frequency + "Center frequency of amplifiers operational bandwidth." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Center Frequency') + key_val_pair = [i for i in props if 'Center Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def bandwidth(self) -> float: + """Bandwidth + "Frequency region where the gain applies." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bandwidth') + key_val_pair = [i for i in props if 'Bandwidth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def noise_figure(self) -> float: + """Noise Figure + "Amplifier noise figure." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Figure') + key_val_pair = [i for i in props if 'Noise Figure=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def saturation_level(self) -> float: + """Saturation Level + "Saturation level." + "Value should be between -200 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Saturation Level') + key_val_pair = [i for i in props if 'Saturation Level=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def _1_db_point_ref_input(self) -> float: + """1-dB Point, Ref. Input + "Incoming signals > this value saturate the amplifier." + "Value should be between -200 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'1-dB Point, Ref. Input') + key_val_pair = [i for i in props if '1-dB Point, Ref. Input=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def ip3_ref_input(self) -> float: + """IP3, Ref. Input + "3rd order intercept point." + "Value should be between -200 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'IP3, Ref. Input') + key_val_pair = [i for i in props if 'IP3, Ref. Input=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def shape_factor(self) -> float: + """Shape Factor + "Ratio defining the selectivity of the amplifier." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Shape Factor') + key_val_pair = [i for i in props if 'Shape Factor=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def reverse_isolation(self) -> float: + """Reverse Isolation + "Amplifier reverse isolation." + "Value should be between 0 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reverse Isolation') + key_val_pair = [i for i in props if 'Reverse Isolation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def max_intermod_order(self) -> int: + """Max Intermod Order + "Maximum order of intermods to compute." + "Value should be between 3 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Intermod Order') + key_val_pair = [i for i in props if 'Max Intermod Order=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py new file mode 100644 index 00000000000..e888f03acbf --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py @@ -0,0 +1,865 @@ +from ..GenericEmitNode import * +class ReadOnlyAntennaNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def tags(self) -> str: + """Tags + "Space delimited list of tags for coupling selections." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tags') + key_val_pair = [i for i in props if 'Tags=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def show_relative_coordinates(self) -> bool: + """Show Relative Coordinates + "Show antenna position and orientation in parent-node coords (False) or relative to placement coords (True)." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Relative Coordinates') + key_val_pair = [i for i in props if 'Show Relative Coordinates=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def position(self): + """Position + "Set position of the antenna in parent-node coordinates." + "Value should be x/y/z, delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') + key_val_pair = [i for i in props if 'Position=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def relative_position(self): + """Relative Position + "Set position of the antenna relative to placement coordinates." + "Value should be x/y/z, delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Position') + key_val_pair = [i for i in props if 'Relative Position=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def orientation_mode(self): + """Orientation Mode + "Select the convention (order of rotations) for configuring orientation." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation Mode') + key_val_pair = [i for i in props if 'Orientation Mode=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class OrientationModeOption(Enum): + RPYDEG = "Roll-Pitch-Yaw" + AETDEG = "Az-El-Twist" + + @property + def orientation(self): + """Orientation + "Set orientation of the antenna relative to parent-node coordinates." + "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation') + key_val_pair = [i for i in props if 'Orientation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def relative_orientation(self): + """Relative Orientation + "Set orientation of the antenna relative to placement coordinates." + "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Orientation') + key_val_pair = [i for i in props if 'Relative Orientation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def position_defined(self) -> bool: + """Position Defined + "Toggles on/off the ability to define a position for the antenna." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position Defined') + key_val_pair = [i for i in props if 'Position Defined=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def antenna_temperature(self) -> float: + """Antenna Temperature + "Antenna noise temperature." + "Value should be between 0 and 100000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna Temperature') + key_val_pair = [i for i in props if 'Antenna Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def type(self): + """Type + "Defines the type of antenna." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + key_val_pair = [i for i in props if 'Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class TypeOption(Enum): + SUBTYPECHOICES = "::SubTypeChoiceLabels" + + @property + def antenna_file(self) -> str: + """Antenna File + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna File') + key_val_pair = [i for i in props if 'Antenna File=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def project_name(self) -> str: + """Project Name + "Name of imported HFSS Antenna project." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Project Name') + key_val_pair = [i for i in props if 'Project Name=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def peak_gain(self) -> float: + """Peak Gain + "Set peak gain of antenna (dBi)." + "Value should be between -200 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Peak Gain') + key_val_pair = [i for i in props if 'Peak Gain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def boresight(self): + """Boresight + "Select peak beam direction in local coordinates." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Boresight') + key_val_pair = [i for i in props if 'Boresight=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class BoresightOption(Enum): + XAXIS = "+X Axis" + YAXIS = "+Y Axis" + ZAXIS = "+Z Axis" + + @property + def vertical_beamwidth(self) -> float: + """Vertical Beamwidth + "Set half-power beamwidth in local-coordinates elevation plane." + "Value should be between 0.1 and 360." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Vertical Beamwidth') + key_val_pair = [i for i in props if 'Vertical Beamwidth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def horizontal_beamwidth(self) -> float: + """Horizontal Beamwidth + "Set half-power beamwidth in local-coordinates azimuth plane." + "Value should be between 0.1 and 360." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Horizontal Beamwidth') + key_val_pair = [i for i in props if 'Horizontal Beamwidth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def extra_sidelobe(self) -> bool: + """Extra Sidelobe + "Toggle (on/off) option to define two sidelobe levels." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Extra Sidelobe') + key_val_pair = [i for i in props if 'Extra Sidelobe=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def first_sidelobe_level(self) -> float: + """First Sidelobe Level + "Set reduction in the gain of Directive Beam antenna for first sidelobe level." + "Value should be between 0 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'First Sidelobe Level') + key_val_pair = [i for i in props if 'First Sidelobe Level=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def first_sidelobe_vert_bw(self) -> float: + """First Sidelobe Vert. BW + "Set beamwidth of first sidelobe beam in theta direction." + "Value should be between 0.1 and 360." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'First Sidelobe Vert. BW') + key_val_pair = [i for i in props if 'First Sidelobe Vert. BW=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def first_sidelobe_hor_bw(self) -> float: + """First Sidelobe Hor. BW + "Set beamwidth of first sidelobe beam in phi direction." + "Value should be between 0.1 and 360." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'First Sidelobe Hor. BW') + key_val_pair = [i for i in props if 'First Sidelobe Hor. BW=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def outerbacklobe_level(self) -> float: + """Outer/Backlobe Level + "Set reduction in gain of Directive Beam antenna for outer/backlobe level." + "Value should be between 0 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Outer/Backlobe Level') + key_val_pair = [i for i in props if 'Outer/Backlobe Level=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def resonant_frequency(self) -> float: + """Resonant Frequency + "Set first resonant frequency of wire dipole, monopole, or parametric antenna." + "Value should be between 1 and 1e+13." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Resonant Frequency') + key_val_pair = [i for i in props if 'Resonant Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def slot_length(self) -> float: + """Slot Length + "Set slot length of parametric slot." + "Value should be greater than 1e-06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Slot Length') + key_val_pair = [i for i in props if 'Slot Length=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def mouth_width(self) -> float: + """Mouth Width + "Set mouth width (along local y-axis) of the horn antenna." + "Value should be between 1e-06 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mouth Width') + key_val_pair = [i for i in props if 'Mouth Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def mouth_height(self) -> float: + """Mouth Height + "Set mouth height (along local x-axis) of the horn antenna." + "Value should be between 1e-06 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mouth Height') + key_val_pair = [i for i in props if 'Mouth Height=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def waveguide_width(self) -> float: + """Waveguide Width + "Set waveguide width (along local y-axis) where flared horn walls meet the feed, determines cut-off frequency." + "Value should be between 1e-06 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Waveguide Width') + key_val_pair = [i for i in props if 'Waveguide Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def width_flare_half_angle(self) -> float: + """Width Flare Half-angle + "Set half-angle (degrees) of flared horn walls measured in local yz-plane from boresight (z) axis to either wall." + "Value should be between 1 and 89.9." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Width Flare Half-angle') + key_val_pair = [i for i in props if 'Width Flare Half-angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def height_flare_half_angle(self) -> float: + """Height Flare Half-angle + "Set half-angle (degrees) of flared horn walls measured in local xz-plane from boresight (z) axis to either wall." + "Value should be between 1 and 89.9." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Height Flare Half-angle') + key_val_pair = [i for i in props if 'Height Flare Half-angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def mouth_diameter(self) -> float: + """Mouth Diameter + "Set aperture (mouth) diameter of horn antenna." + "Value should be between 1e-06 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mouth Diameter') + key_val_pair = [i for i in props if 'Mouth Diameter=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def flare_half_angle(self) -> float: + """Flare Half-angle + "Set half-angle (degrees) of conical horn wall measured from boresight (z)." + "Value should be between 1 and 89.9." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Flare Half-angle') + key_val_pair = [i for i in props if 'Flare Half-angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def vswr(self) -> float: + """VSWR + "The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch between the antenna and the RF System (or outboard component)." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'VSWR') + key_val_pair = [i for i in props if 'VSWR=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def antenna_polarization(self): + """Antenna Polarization + "Choose local-coordinates polarization along boresight." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna Polarization') + key_val_pair = [i for i in props if 'Antenna Polarization=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class AntennaPolarizationOption(Enum): + VERTICAL = "Vertical" + HORIZONTAL = "Horizontal" + RHCP = "RHCP" + LHCP = "LHCP" + + @property + def cross_dipole_mode(self): + """Cross Dipole Mode + "Choose the Cross Dipole type." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Cross Dipole Mode') + key_val_pair = [i for i in props if 'Cross Dipole Mode=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class CrossDipoleModeOption(Enum): + FREESTANDING = "Freestanding" + OVER_GROUND_PLANE = "Over Ground Plane" + + @property + def cross_dipole_polarization(self): + """Cross Dipole Polarization + "Choose local-coordinates polarization along boresight." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Cross Dipole Polarization') + key_val_pair = [i for i in props if 'Cross Dipole Polarization=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class CrossDipolePolarizationOption(Enum): + RHCP = "RHCP" + LHCP = "LHCP" + + @property + def override_height(self) -> bool: + """Override Height + "Ignores the default placement of quarter design wavelength over the ground plane." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Override Height') + key_val_pair = [i for i in props if 'Override Height=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def offset_height(self) -> float: + """Offset Height + "Sets the offset height for the current sources above the ground plane." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Offset Height') + key_val_pair = [i for i in props if 'Offset Height=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def auto_height_offset(self) -> bool: + """Auto Height Offset + "Switch on to automatically place slot current at sub-wavelength offset height above ground plane." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Auto Height Offset') + key_val_pair = [i for i in props if 'Auto Height Offset=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def conform__adjust_antenna(self) -> bool: + """Conform / Adjust Antenna + "Toggle (on/off) conformal adjustment for array antenna elements." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Conform / Adjust Antenna') + key_val_pair = [i for i in props if 'Conform / Adjust Antenna=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def element_offset(self): + """Element Offset + "Set vector for shifting element positions in antenna local coordinates." + "Value should be x/y/z, delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Element Offset') + key_val_pair = [i for i in props if 'Element Offset=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def conform_to_platform(self): + """Conform to Platform + "Select method of automated conforming applied after Element Offset." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Conform to Platform') + key_val_pair = [i for i in props if 'Conform to Platform=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class ConformtoPlatformOption(Enum): + NONE = "None" + ALONG_NORMAL = "Along Normal" + PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" + + @property + def reference_plane(self): + """Reference Plane + "Select reference plane for determining original element heights." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reference Plane') + key_val_pair = [i for i in props if 'Reference Plane=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class ReferencePlaneOption(Enum): + XY_PLANE = "XY Plane" + YZ_PLANE = "YZ Plane" + ZX_PLANE = "ZX Plane" + + @property + def conform_element_orientation(self) -> bool: + """Conform Element Orientation + "Toggle (on/off) re-orientation of elements to conform to curved placement surface." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Conform Element Orientation') + key_val_pair = [i for i in props if 'Conform Element Orientation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def show_axes(self) -> bool: + """Show Axes + "Toggle (on/off) display of antenna coordinate axes in 3-D window." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Axes') + key_val_pair = [i for i in props if 'Show Axes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def show_icon(self) -> bool: + """Show Icon + "Toggle (on/off) display of antenna marker (cone) in 3-D window." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Icon') + key_val_pair = [i for i in props if 'Show Icon=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def size(self) -> float: + """Size + "Adjust relative size of antenna marker (cone) in 3-D window." + "Value should be between 0.001 and 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Size') + key_val_pair = [i for i in props if 'Size=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def color(self): + """Color + "Set color of antenna marker (cone) in 3-D window." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Color') + key_val_pair = [i for i in props if 'Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def el_sample_interval(self) -> float: + """El Sample Interval + "Space between elevation-angle samples of pattern." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'El Sample Interval') + key_val_pair = [i for i in props if 'El Sample Interval=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def az_sample_interval(self) -> float: + """Az Sample Interval + "Space between azimuth-angle samples of pattern." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Az Sample Interval') + key_val_pair = [i for i in props if 'Az Sample Interval=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def has_frequency_domain(self) -> bool: + """Has Frequency Domain + "False if antenna can be used at any frequency." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Has Frequency Domain') + key_val_pair = [i for i in props if 'Has Frequency Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def frequency_domain(self): + """Frequency Domain + "Frequency sample(s) defining antenna." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency Domain') + key_val_pair = [i for i in props if 'Frequency Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def number_of_electric_sources(self) -> int: + """Number of Electric Sources + "Number of freestanding electric current sources defining antenna." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Electric Sources') + key_val_pair = [i for i in props if 'Number of Electric Sources=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def number_of_magnetic_sources(self) -> int: + """Number of Magnetic Sources + "Number of freestanding magnetic current sources defining antenna." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Magnetic Sources') + key_val_pair = [i for i in props if 'Number of Magnetic Sources=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def number_of_imaged_electric_sources(self) -> int: + """Number of Imaged Electric Sources + "Number of imaged, half-space radiating electric current sources defining antenna." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Imaged Electric Sources') + key_val_pair = [i for i in props if 'Number of Imaged Electric Sources=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def number_of_imaged_magnetic_sources(self) -> int: + """Number of Imaged Magnetic Sources + "Number of imaged, half-space radiating magnetic current sources defining antenna." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Imaged Magnetic Sources') + key_val_pair = [i for i in props if 'Number of Imaged Magnetic Sources=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def waveguide_height(self) -> float: + """Waveguide Height + "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Waveguide Height') + key_val_pair = [i for i in props if 'Waveguide Height=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def waveguide_cutoff_frequency(self) -> float: + """Waveguide Cutoff Frequency + "Implied lowest operating frequency of pyramidal horn antenna." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Waveguide Cutoff Frequency') + key_val_pair = [i for i in props if 'Waveguide Cutoff Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def aperture_cutoff_frequency(self) -> float: + """Aperture Cutoff Frequency + "Implied lowest operating frequency of conical horn antenna." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Aperture Cutoff Frequency') + key_val_pair = [i for i in props if 'Aperture Cutoff Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def swe_mode_truncation(self): + """SWE Mode Truncation + "Select the method for stability-enhancing truncation of spherical wave expansion terms." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'SWE Mode Truncation') + key_val_pair = [i for i in props if 'SWE Mode Truncation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class SWEModeTruncationOption(Enum): + DYNAMIC = "Dynamic" + CUSTOM = "Fixed (Custom)" + NONE = "None" + + @property + def max_n_index(self) -> int: + """Max N Index + "Set maximum allowed index N for spherical wave expansion terms." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max N Index') + key_val_pair = [i for i in props if 'Max N Index=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def show_composite_passband(self) -> bool: + """Show Composite Passband + "Show plot instead of 3D window." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Composite Passband') + key_val_pair = [i for i in props if 'Show Composite Passband=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def use_phase_center(self) -> bool: + """Use Phase Center + "Use the phase center defined in the HFSS design." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Phase Center') + key_val_pair = [i for i in props if 'Use Phase Center=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def coordinate_systems(self) -> str: + """Coordinate Systems + "Specifies the coordinate system for the phase center of this antenna." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Coordinate Systems') + key_val_pair = [i for i in props if 'Coordinate Systems=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def phasecenterposition(self): + """PhaseCenterPosition + "Set position of the antennas linked coordinate system.." + "Value should be x/y/z, delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'PhaseCenterPosition') + key_val_pair = [i for i in props if 'PhaseCenterPosition=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def phasecenterorientation(self): + """PhaseCenterOrientation + "Set orientation of the antennas linked coordinate system.." + "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'PhaseCenterOrientation') + key_val_pair = [i for i in props if 'PhaseCenterOrientation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py new file mode 100644 index 00000000000..9c27a72e1dc --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py @@ -0,0 +1,101 @@ +from ..GenericEmitNode import * +class ReadOnlyAntennaPassband(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def passband_loss(self) -> float: + """Passband Loss + "Passband loss." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Passband Loss') + key_val_pair = [i for i in props if 'Passband Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def out_of_band_attenuation(self) -> float: + """Out of Band Attenuation + "Out of band antenna loss." + "Value should be between 0 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out of Band Attenuation') + key_val_pair = [i for i in props if 'Out of Band Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def lower_stop_band(self) -> float: + """Lower Stop Band + "Lower stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') + key_val_pair = [i for i in props if 'Lower Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def lower_cutoff(self) -> float: + """Lower Cutoff + "Lower cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') + key_val_pair = [i for i in props if 'Lower Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def higher_cutoff(self) -> float: + """Higher Cutoff + "Higher cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') + key_val_pair = [i for i in props if 'Higher Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def higher_stop_band(self) -> float: + """Higher Stop Band + "Higher stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') + key_val_pair = [i for i in props if 'Higher Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py new file mode 100644 index 00000000000..b33342958d0 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py @@ -0,0 +1,853 @@ +from ..GenericEmitNode import * +class ReadOnlyBand(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def port(self): + """Port + "Radio Port associated with this Band." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port') + key_val_pair = [i for i in props if 'Port=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class PortOption(Enum): + PARENTANTENNASIDEPORTS = "::Parent::AntennaSidePorts" + + @property + def use_dd_1494_mode(self) -> bool: + """Use DD-1494 Mode + "Uses DD-1494 parameters to define the Tx/Rx spectrum." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use DD-1494 Mode') + key_val_pair = [i for i in props if 'Use DD-1494 Mode=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def use_emission_designator(self) -> bool: + """Use Emission Designator + "Uses the Emission Designator to define the bandwidth and modulation." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Emission Designator') + key_val_pair = [i for i in props if 'Use Emission Designator=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def emission_designator(self) -> str: + """Emission Designator + "Enter the Emission Designator to define the bandwidth and modulation." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Emission Designator') + key_val_pair = [i for i in props if 'Emission Designator=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def emission_designator_ch_bw(self) -> float: + """Emission Designator Ch. BW + "Channel Bandwidth based off the emission designator." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Emission Designator Ch. BW') + key_val_pair = [i for i in props if 'Emission Designator Ch. BW=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def emit_modulation_type(self) -> str: + """EMIT Modulation Type + "Modulation based off the emission designator." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'EMIT Modulation Type') + key_val_pair = [i for i in props if 'EMIT Modulation Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def override_emission_designator_bw(self) -> bool: + """Override Emission Designator BW + "Enables the 3 dB channel bandwidth to equal a value < emission designator bandwidth." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Override Emission Designator BW') + key_val_pair = [i for i in props if 'Override Emission Designator BW=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def channel_bandwidth(self) -> float: + """Channel Bandwidth + "Channel Bandwidth." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Channel Bandwidth') + key_val_pair = [i for i in props if 'Channel Bandwidth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def modulation(self): + """Modulation + "Modulation used for the transmitted/received signal." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Modulation') + key_val_pair = [i for i in props if 'Modulation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class ModulationOption(Enum): + GENERIC = "Generic" + AM = "AM" + LSB = "LSB" + USB = "USB" + FM = "FM" + FSK = "FSK" + MSK = "MSK" + PSK = "PSK" + QAM = "QAM" + APSK = "APSK" + RADAR = "Radar" + + @property + def waveform(self): + """Waveform + "Modulation used for the transmitted/received signal." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Waveform') + key_val_pair = [i for i in props if 'Waveform=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class WaveformOption(Enum): + PERIODIC_CLOCK = "Periodic Clock" + SPREAD_SPECTRUM = "Spread Spectrum Clock" + PRBS = "PRBS" + PRBS_PERIODIC = "PRBS (Periodic)" + IMPORTED = "Imported" + + @property + def max_modulating_freq(self) -> float: + """Max Modulating Freq. + "Maximum modulating frequency: helps determine spectral profile." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Modulating Freq.') + key_val_pair = [i for i in props if 'Max Modulating Freq.=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def modulation_index(self) -> float: + """Modulation Index + "AM modulation index: helps determine spectral profile." + "Value should be between 0.01 and 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Modulation Index') + key_val_pair = [i for i in props if 'Modulation Index=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def freq_deviation(self) -> float: + """Freq. Deviation + "Frequency deviation: helps determine spectral profile." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Freq. Deviation') + key_val_pair = [i for i in props if 'Freq. Deviation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def bit_rate(self) -> float: + """Bit Rate + "Maximum bit rate: helps determine width of spectral profile." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bit Rate') + key_val_pair = [i for i in props if 'Bit Rate=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def sidelobes(self) -> int: + """Sidelobes + "Number of sidelobes in spectral profile." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Sidelobes') + key_val_pair = [i for i in props if 'Sidelobes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def freq_deviation_(self) -> float: + """Freq. Deviation + "FSK frequency deviation: helps determine spectral profile." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Freq. Deviation ') + key_val_pair = [i for i in props if 'Freq. Deviation =' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def psk_type(self): + """PSK Type + "PSK modulation order: helps determine spectral profile." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'PSK Type') + key_val_pair = [i for i in props if 'PSK Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class PSKTypeOption(Enum): + BPSK = "BPSK" + QPSK = "QPSK" + _8_PSK = "8-PSK" + _16_PSK = "16-PSK" + _32_PSK = "32-PSK" + _64_PSK = "64-PSK" + + @property + def fsk_type(self): + """FSK Type + "FSK modulation order: helps determine spectral profile." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'FSK Type') + key_val_pair = [i for i in props if 'FSK Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class FSKTypeOption(Enum): + _2_FSK = "2-FSK" + _4_FSK = "4-FSK" + _8_FSK = "8-FSK" + + @property + def qam_type(self): + """QAM Type + "QAM modulation order: helps determine spectral profile." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'QAM Type') + key_val_pair = [i for i in props if 'QAM Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class QAMTypeOption(Enum): + _4_QAM = "4-QAM" + _16_QAM = "16-QAM" + _64_QAM = "64-QAM" + _256_QAM = "256-QAM" + _1024_QAM = "1024-QAM" + + @property + def apsk_type(self): + """APSK Type + "APSK modulation order: helps determine spectral profile." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'APSK Type') + key_val_pair = [i for i in props if 'APSK Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class APSKTypeOption(Enum): + _4_APSK = "4-APSK" + _16_APSK = "16-APSK" + _64_APSK = "64-APSK" + _256_APSK = "256-APSK" + _1024_APSK = "1024-APSK" + + @property + def start_frequency(self) -> float: + """Start Frequency + "First frequency for this band." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Start Frequency') + key_val_pair = [i for i in props if 'Start Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def stop_frequency(self) -> float: + """Stop Frequency + "Last frequency for this band." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop Frequency') + key_val_pair = [i for i in props if 'Stop Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def channel_spacing(self) -> float: + """Channel Spacing + "Spacing between channels within this band." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Channel Spacing') + key_val_pair = [i for i in props if 'Channel Spacing=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def tx_offset(self) -> float: + """Tx Offset + "Frequency offset between Tx and Rx channels." + "Value should be less than 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx Offset') + key_val_pair = [i for i in props if 'Tx Offset=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def clock_duty_cycle(self) -> float: + """Clock Duty Cycle + "Clock signals duty cycle." + "Value should be between 0.001 and 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Clock Duty Cycle') + key_val_pair = [i for i in props if 'Clock Duty Cycle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def clock_risefall_time(self) -> float: + """Clock Rise/Fall Time + "Clock signals rise/fall time." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Clock Rise/Fall Time') + key_val_pair = [i for i in props if 'Clock Rise/Fall Time=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def spreading_type(self): + """Spreading Type + "Type of spreading employed by the Spread Spectrum Clock." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spreading Type') + key_val_pair = [i for i in props if 'Spreading Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class SpreadingTypeOption(Enum): + LOW_SPREAD = "Low Spread" + CENTER_SPREAD = "Center Spread" + HIGH_SPREAD = "High Spread" + + @property + def spread_percentage(self) -> float: + """Spread Percentage + "Peak-to-peak spread percentage." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spread Percentage') + key_val_pair = [i for i in props if 'Spread Percentage=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def imported_spectrum(self) -> str: + """Imported Spectrum + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Imported Spectrum') + key_val_pair = [i for i in props if 'Imported Spectrum=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def raw_data_format(self) -> str: + """Raw Data Format + "Format of the imported raw data." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Raw Data Format') + key_val_pair = [i for i in props if 'Raw Data Format=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def system_impedance(self) -> float: + """System Impedance + "System impedance for the imported data." + "Value should be between 0 and 1e+06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'System Impedance') + key_val_pair = [i for i in props if 'System Impedance=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def advanced_extraction_params(self) -> bool: + """Advanced Extraction Params + "Show/hide advanced extraction params." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Advanced Extraction Params') + key_val_pair = [i for i in props if 'Advanced Extraction Params=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def nb_window_size(self) -> float: + """NB Window Size + "Window size for computing the moving average during narrowband signal detection." + "Value should be greater than 3." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'NB Window Size') + key_val_pair = [i for i in props if 'NB Window Size=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def bb_smoothing_factor(self) -> float: + """BB Smoothing Factor + "Reduces the number of frequency points used for the broadband noise." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BB Smoothing Factor') + key_val_pair = [i for i in props if 'BB Smoothing Factor=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def nb_detector_threshold(self) -> float: + """NB Detector Threshold + "Narrowband Detector threshold standard deviation." + "Value should be between 2 and 10." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'NB Detector Threshold') + key_val_pair = [i for i in props if 'NB Detector Threshold=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def algorithm(self): + """Algorithm + "Algorithm used to transform the imported time domain spectrum." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Algorithm') + key_val_pair = [i for i in props if 'Algorithm=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class AlgorithmOption(Enum): + FFT = "FFT" + FOURIER_TRANSFORM = "Fourier Transform" + + @property + def start(self) -> float: + """Start + "Initial time of the imported spectrum." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Start') + key_val_pair = [i for i in props if 'Start=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def stop(self) -> float: + """Stop + "Final time of the imported time domain spectrum." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop') + key_val_pair = [i for i in props if 'Stop=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def max_frequency(self) -> float: + """Max Frequency + "Frequency cutoff of the imported time domain spectrum." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Frequency') + key_val_pair = [i for i in props if 'Max Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def window_type(self): + """Window Type + "Windowing scheme used for importing time domain spectrum." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Window Type') + key_val_pair = [i for i in props if 'Window Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class WindowTypeOption(Enum): + RECTANGULAR = "Rectangular" + BARTLETT = "Bartlett" + BLACKMAN = "Blackman" + HAMMING = "Hamming" + HANNING = "Hanning" + KAISER = "Kaiser" + LANZCOS = "Lanzcos" + WELCH = "Welch" + WEBER = "Weber" + + @property + def kaiser_parameter(self) -> float: + """Kaiser Parameter + "Shape factor applied to the transform." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Kaiser Parameter') + key_val_pair = [i for i in props if 'Kaiser Parameter=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def adjust_coherent_gain(self) -> bool: + """Adjust Coherent Gain + "Shape factor applied to the transform." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adjust Coherent Gain') + key_val_pair = [i for i in props if 'Adjust Coherent Gain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def data_rate(self) -> float: + """Data Rate + "Maximum data rate: helps determine shape of spectral profile." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Rate') + key_val_pair = [i for i in props if 'Data Rate=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def _of_bits(self) -> int: + """# of Bits + "Length of the Pseudo Random Binary Sequence." + "Value should be between 1 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'# of Bits') + key_val_pair = [i for i in props if '# of Bits=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def use_envelope(self) -> bool: + """Use Envelope + "Model the waveform as a worst case envelope.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Envelope') + key_val_pair = [i for i in props if 'Use Envelope=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def min_ptsnull(self) -> int: + """Min Pts/Null + "Minimum number of points to use between each null frequency." + "Value should be between 2 and 50." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Pts/Null') + key_val_pair = [i for i in props if 'Min Pts/Null=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def delay_skew(self) -> float: + """Delay Skew + "Delay Skew of the differential signal pairs." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Delay Skew') + key_val_pair = [i for i in props if 'Delay Skew=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def radar_type(self): + """Radar Type + "Radar type: helps determine spectral profile." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Radar Type') + key_val_pair = [i for i in props if 'Radar Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class RadarTypeOption(Enum): + CW = "CW" + FM_CW = "FM-CW" + FM_PULSE = "FM Pulse" + NON_FM_PULSE = "Non-FM Pulse" + PHASE_CODED = "Phase Coded" + + @property + def hopping_radar(self) -> bool: + """Hopping Radar + "True for hopping radars; false otherwise." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Hopping Radar') + key_val_pair = [i for i in props if 'Hopping Radar=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def post_october_2020_procurement(self) -> bool: + """Post October 2020 Procurement + "Procurement date: helps determine spectral profile, particularly the roll-off." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Post October 2020 Procurement') + key_val_pair = [i for i in props if 'Post October 2020 Procurement=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def hop_range_min_freq(self) -> float: + """Hop Range Min Freq + "Sets the minimum frequency of the hopping range." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Hop Range Min Freq') + key_val_pair = [i for i in props if 'Hop Range Min Freq=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def hop_range_max_freq(self) -> float: + """Hop Range Max Freq + "Sets the maximum frequency of the hopping range." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Hop Range Max Freq') + key_val_pair = [i for i in props if 'Hop Range Max Freq=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def pulse_duration(self) -> float: + """Pulse Duration + "Pulse duration." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Duration') + key_val_pair = [i for i in props if 'Pulse Duration=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def pulse_rise_time(self) -> float: + """Pulse Rise Time + "Pulse rise time." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Rise Time') + key_val_pair = [i for i in props if 'Pulse Rise Time=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def pulse_fall_time(self) -> float: + """Pulse Fall Time + "Pulse fall time." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Fall Time') + key_val_pair = [i for i in props if 'Pulse Fall Time=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def pulse_repetition_rate(self) -> float: + """Pulse Repetition Rate + "Pulse repetition rate [pulses/sec]." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Repetition Rate') + key_val_pair = [i for i in props if 'Pulse Repetition Rate=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def number_of_chips(self) -> float: + """Number of Chips + "Total number of chips (subpulses) contained in the pulse." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Chips') + key_val_pair = [i for i in props if 'Number of Chips=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def pulse_compression_ratio(self) -> float: + """Pulse Compression Ratio + "Pulse compression ratio." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Compression Ratio') + key_val_pair = [i for i in props if 'Pulse Compression Ratio=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def fm_chirp_period(self) -> float: + """FM Chirp Period + "FM Chirp period for the FM/CW radar." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'FM Chirp Period') + key_val_pair = [i for i in props if 'FM Chirp Period=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def fm_freq_deviation(self) -> float: + """FM Freq Deviation + "Total frequency deviation for the carrier frequency for the FM/CW radar." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'FM Freq Deviation') + key_val_pair = [i for i in props if 'FM Freq Deviation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def fm_freq_dev_bandwidth(self) -> float: + """FM Freq Dev Bandwidth + "Bandwidth of freq deviation for FM modulated pulsed waveform (total freq shift during pulse duration)." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'FM Freq Dev Bandwidth') + key_val_pair = [i for i in props if 'FM Freq Dev Bandwidth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py new file mode 100644 index 00000000000..3de43c7fd2b --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py @@ -0,0 +1,11 @@ +from ..GenericEmitNode import * +class ReadOnlyBandFolder(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py new file mode 100644 index 00000000000..50a84497335 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py @@ -0,0 +1,550 @@ +from ..GenericEmitNode import * +class ReadOnlyCADNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def file(self) -> str: + """File + "Name of the imported CAD file." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'File') + key_val_pair = [i for i in props if 'File=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def model_type(self): + """Model Type + "Select type of parametric model to create." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Model Type') + key_val_pair = [i for i in props if 'Model Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class ModelTypeOption(Enum): + PLATE = "Plate" + BOX = "Box" + DIHEDRAL = "Dihedral" + TRIHEDRAL = "Trihedral" + CYLINDER = "Cylinder" + TAPERED_CYLINDER = "Tapered Cylinder" + CONE = "Cone" + SPHERE = "Sphere" + ELLIPSOID = "Ellipsoid" + CIRCULAR_PLATE = "Circular Plate" + PARABOLA = "Parabola" + PRISM = "Prism" + TAPERED_PRISM = "Tapered Prism" + TOPHAT = "Tophat" + + @property + def length(self) -> float: + """Length + "Length of the model." + "Value should be greater than 1e-06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Length') + key_val_pair = [i for i in props if 'Length=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def width(self) -> float: + """Width + "Width of the model." + "Value should be greater than 1e-06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Width') + key_val_pair = [i for i in props if 'Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def height(self) -> float: + """Height + "Height of the model." + "Value should be greater than 1e-06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Height') + key_val_pair = [i for i in props if 'Height=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def angle(self) -> float: + """Angle + "Angle (deg) between the plates." + "Value should be between 0 and 360." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Angle') + key_val_pair = [i for i in props if 'Angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def top_side(self) -> float: + """Top Side + "Side of the top of a equilateral triangular cylinder model." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Top Side') + key_val_pair = [i for i in props if 'Top Side=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def top_radius(self) -> float: + """Top Radius + "Radius of the top of a tapered cylinder model." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Top Radius') + key_val_pair = [i for i in props if 'Top Radius=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def side(self) -> float: + """Side + "Side of the equilateral triangular cylinder." + "Value should be greater than 1e-06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Side') + key_val_pair = [i for i in props if 'Side=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def radius(self) -> float: + """Radius + "Radius of the sphere or cylinder." + "Value should be greater than 1e-06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Radius') + key_val_pair = [i for i in props if 'Radius=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def base_radius(self) -> float: + """Base Radius + "Radius of the base of a tophat model." + "Value should be greater than 1e-06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Base Radius') + key_val_pair = [i for i in props if 'Base Radius=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def center_radius(self) -> float: + """Center Radius + "Radius of the raised portion of a tophat model." + "Value should be greater than 1e-06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Center Radius') + key_val_pair = [i for i in props if 'Center Radius=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def x_axis_ellipsoid_radius(self) -> float: + """X Axis Ellipsoid Radius + "Ellipsoid semi-principal radius for the X axis." + "Value should be greater than 1e-06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X Axis Ellipsoid Radius') + key_val_pair = [i for i in props if 'X Axis Ellipsoid Radius=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def y_axis_ellipsoid_radius(self) -> float: + """Y Axis Ellipsoid Radius + "Ellipsoid semi-principal radius for the Y axis." + "Value should be greater than 1e-06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y Axis Ellipsoid Radius') + key_val_pair = [i for i in props if 'Y Axis Ellipsoid Radius=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def z_axis_ellipsoid_radius(self) -> float: + """Z Axis Ellipsoid Radius + "Ellipsoid semi-principal radius for the Z axis." + "Value should be greater than 1e-06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Z Axis Ellipsoid Radius') + key_val_pair = [i for i in props if 'Z Axis Ellipsoid Radius=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def focal_length(self) -> float: + """Focal Length + "Focal length of a parabolic reflector (f = 1/4a where y=ax^2)." + "Value should be greater than 1e-06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Focal Length') + key_val_pair = [i for i in props if 'Focal Length=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def offset(self) -> float: + """Offset + "Offset of parabolic reflector." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Offset') + key_val_pair = [i for i in props if 'Offset=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def x_direction_taper(self) -> float: + """X Direction Taper + "Amount (%) that the prism tapers in the X dimension from one end to the other." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X Direction Taper') + key_val_pair = [i for i in props if 'X Direction Taper=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def y_direction_taper(self) -> float: + """Y Direction Taper + "Amount (%) that the prism tapers in the Y dimension from one end to the other." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y Direction Taper') + key_val_pair = [i for i in props if 'Y Direction Taper=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def prism_direction(self): + """Prism Direction + "Direction vector between the center of the base and center of the top." + "Value should be x/y/z, delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Prism Direction') + key_val_pair = [i for i in props if 'Prism Direction=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def closed_top(self) -> bool: + """Closed Top + "Control whether the top of the model is closed." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Closed Top') + key_val_pair = [i for i in props if 'Closed Top=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def closed_base(self) -> bool: + """Closed Base + "Control whether the base of the model is closed." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Closed Base') + key_val_pair = [i for i in props if 'Closed Base=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def mesh_density(self) -> int: + """Mesh Density + "Unitless mesh density parameter where higher value improves mesh smoothness." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mesh Density') + key_val_pair = [i for i in props if 'Mesh Density=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def use_symmetric_mesh(self) -> bool: + """Use Symmetric Mesh + "Convert quads to a symmetric triangle mesh by adding a center point (4 triangles per quad instead of 2)." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Symmetric Mesh') + key_val_pair = [i for i in props if 'Use Symmetric Mesh=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def mesh_option(self): + """Mesh Option + "Select from different meshing options." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mesh Option') + key_val_pair = [i for i in props if 'Mesh Option=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class MeshOptionOption(Enum): + IMPROVED = "Improved" + LEGACY = "Legacy" + + @property + def coating_index(self) -> int: + """Coating Index + "Coating index for the parametric model primitive." + "Value should be between 0 and 100000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Coating Index') + key_val_pair = [i for i in props if 'Coating Index=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def show_relative_coordinates(self) -> bool: + """Show Relative Coordinates + "Show CAD model node position and orientation in parent-node coords (False) or relative to placement coords (True)." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Relative Coordinates') + key_val_pair = [i for i in props if 'Show Relative Coordinates=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def position(self): + """Position + "Set position of the CAD node in parent-node coordinates." + "Value should be x/y/z, delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') + key_val_pair = [i for i in props if 'Position=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def relative_position(self): + """Relative Position + "Set position of the CAD model node relative to placement coordinates." + "Value should be x/y/z, delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Position') + key_val_pair = [i for i in props if 'Relative Position=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def orientation_mode(self): + """Orientation Mode + "Select the convention (order of rotations) for configuring orientation." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation Mode') + key_val_pair = [i for i in props if 'Orientation Mode=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class OrientationModeOption(Enum): + RPYDEG = "Roll-Pitch-Yaw" + AETDEG = "Az-El-Twist" + + @property + def orientation(self): + """Orientation + "Set orientation of the CAD node in parent-node coordinates." + "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation') + key_val_pair = [i for i in props if 'Orientation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def relative_orientation(self): + """Relative Orientation + "Set orientation of the CAD model node relative to placement coordinates." + "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Orientation') + key_val_pair = [i for i in props if 'Relative Orientation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def visible(self) -> bool: + """Visible + "Toggle (on/off) display of CAD model in 3-D window." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + key_val_pair = [i for i in props if 'Visible=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def render_mode(self): + """Render Mode + "Select drawing style for surfaces." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Render Mode') + key_val_pair = [i for i in props if 'Render Mode=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class RenderModeOption(Enum): + FLAT_SHADED = "Flat-Shaded" + WIRE_FRAME = "Wire-Frame" + HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" + OUTLINE = "Outline" + + @property + def show_axes(self) -> bool: + """Show Axes + "Toggle (on/off) display of CAD model coordinate axes in 3-D window." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Axes') + key_val_pair = [i for i in props if 'Show Axes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def min(self): + """Min + "Minimum x,y,z extents of CAD model in local coordinates." + "Value should be x/y/z, delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min') + key_val_pair = [i for i in props if 'Min=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def max(self): + """Max + "Maximum x,y,z extents of CAD model in local coordinates." + "Value should be x/y/z, delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max') + key_val_pair = [i for i in props if 'Max=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def number_of_surfaces(self) -> int: + """Number of Surfaces + "Number of surfaces in the model." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Surfaces') + key_val_pair = [i for i in props if 'Number of Surfaces=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def color(self): + """Color + "Defines the CAD nodes color." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Color') + key_val_pair = [i for i in props if 'Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py new file mode 100644 index 00000000000..bc167e0dc5e --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py @@ -0,0 +1,137 @@ +from ..GenericEmitNode import * +class ReadOnlyCable(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def filename(self) -> str: + """Filename + "Name of file defining the outboard component." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + key_val_pair = [i for i in props if 'Filename=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def noise_temperature(self) -> float: + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + key_val_pair = [i for i in props if 'Noise Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def type(self): + """Type + "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + key_val_pair = [i for i in props if 'Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class TypeOption(Enum): + BYFILE = "By File" + CONSTANT = "Constant Loss" + COAXIAL = "Coaxial Cable" + + @property + def length(self) -> float: + """Length + "Length of cable." + "Value should be between 0 and 500." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Length') + key_val_pair = [i for i in props if 'Length=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def loss_per_length(self) -> float: + """Loss Per Length + "Cable loss per unit length (dB/meter)." + "Value should be between 0 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Loss Per Length') + key_val_pair = [i for i in props if 'Loss Per Length=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def measurement_length(self) -> float: + """Measurement Length + "Length of the cable used for the measurements." + "Value should be between 0 and 500." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measurement Length') + key_val_pair = [i for i in props if 'Measurement Length=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def resistive_loss_constant(self) -> float: + """Resistive Loss Constant + "Coaxial cable resistive loss constant." + "Value should be between 0 and 2." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Resistive Loss Constant') + key_val_pair = [i for i in props if 'Resistive Loss Constant=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def dielectric_loss_constant(self) -> float: + """Dielectric Loss Constant + "Coaxial cable dielectric loss constant." + "Value should be between 0 and 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Dielectric Loss Constant') + key_val_pair = [i for i in props if 'Dielectric Loss Constant=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def warnings(self) -> str: + """Warnings + "Warning(s) for this node." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + key_val_pair = [i for i in props if 'Warnings=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py new file mode 100644 index 00000000000..06af14db333 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py @@ -0,0 +1,203 @@ +from ..GenericEmitNode import * +class ReadOnlyCirculator(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def filename(self) -> str: + """Filename + "Name of file defining the Isolator/Circulator." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + key_val_pair = [i for i in props if 'Filename=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def noise_temperature(self) -> float: + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + key_val_pair = [i for i in props if 'Noise Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def type(self): + """Type + "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + key_val_pair = [i for i in props if 'Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class TypeOption(Enum): + BYFILE = "By File" + PARAMETRIC = "Parametric" + + @property + def port_1_location(self): + """Port 1 Location + "Defines the orientation of the circulator.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port 1 Location') + key_val_pair = [i for i in props if 'Port 1 Location=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class Port1LocationOption(Enum): + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" + + @property + def insertion_loss(self) -> float: + """Insertion Loss + "Circulator in-band loss in forward direction.." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') + key_val_pair = [i for i in props if 'Insertion Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def finite_reverse_isolation(self) -> bool: + """Finite Reverse Isolation + "Use a finite reverse isolation. If disabled, the circulator model is ideal (infinite reverse isolation).." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Reverse Isolation') + key_val_pair = [i for i in props if 'Finite Reverse Isolation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def reverse_isolation(self) -> float: + """Reverse Isolation + "Circulator reverse isolation (i.e., loss in the reverse direction).." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reverse Isolation') + key_val_pair = [i for i in props if 'Reverse Isolation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def finite_bandwidth(self) -> bool: + """Finite Bandwidth + "Use a finite bandwidth. If disabled, the circulator model is ideal (infinite bandwidth).." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Bandwidth') + key_val_pair = [i for i in props if 'Finite Bandwidth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def out_of_band_attenuation(self) -> float: + """Out-of-band Attenuation + "Out-of-band loss (attenuation)." + "Value should be between 0 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out-of-band Attenuation') + key_val_pair = [i for i in props if 'Out-of-band Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def lower_stop_band(self) -> float: + """Lower Stop Band + "Lower stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') + key_val_pair = [i for i in props if 'Lower Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def lower_cutoff(self) -> float: + """Lower Cutoff + "Lower cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') + key_val_pair = [i for i in props if 'Lower Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def higher_cutoff(self) -> float: + """Higher Cutoff + "Higher cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') + key_val_pair = [i for i in props if 'Higher Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def higher_stop_band(self) -> float: + """Higher Stop Band + "Higher stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') + key_val_pair = [i for i in props if 'Higher Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def warnings(self) -> str: + """Warnings + "Warning(s) for this node." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + key_val_pair = [i for i in props if 'Warnings=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py new file mode 100644 index 00000000000..8cc35a64db3 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py @@ -0,0 +1,24 @@ +from ..GenericEmitNode import * +class ReadOnlyCouplingLinkNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling link." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py new file mode 100644 index 00000000000..b376bd8241c --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py @@ -0,0 +1,44 @@ +from ..GenericEmitNode import * +class ReadOnlyCouplingsNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def minimum_allowed_coupling(self) -> float: + """Minimum Allowed Coupling + "Global minimum allowed coupling value. All computed coupling within this project will be >= this value." + "Value should be between -1000 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minimum Allowed Coupling') + key_val_pair = [i for i in props if 'Minimum Allowed Coupling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def global_default_coupling(self) -> float: + """Global Default Coupling + "Default antenna-to-antenna coupling loss value." + "Value should be between -1000 and 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Global Default Coupling') + key_val_pair = [i for i in props if 'Global Default Coupling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def antenna_tags(self) -> str: + """Antenna Tags + "All tags currently used by all antennas in the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna Tags') + key_val_pair = [i for i in props if 'Antenna Tags=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py new file mode 100644 index 00000000000..402e15c0d0f --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py @@ -0,0 +1,62 @@ +from ..GenericEmitNode import * +class ReadOnlyCustomCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def enable_refinement(self) -> bool: + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + key_val_pair = [i for i in props if 'Enable Refinement=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def adaptive_sampling(self) -> bool: + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + key_val_pair = [i for i in props if 'Refinement Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py new file mode 100644 index 00000000000..3d358822780 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py @@ -0,0 +1,46 @@ +from ..GenericEmitNode import * +class ReadOnlyEmitSceneNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def ground_plane_normal(self): + """Ground Plane Normal + "Specifies the axis of the normal to the ground plane." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Ground Plane Normal') + key_val_pair = [i for i in props if 'Ground Plane Normal=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class GroundPlaneNormalOption(Enum): + XAXIS = "X Axis" + YAXIS = "Y Axis" + ZAXIS = "Z Axis" + + @property + def gp_position_along_normal(self) -> float: + """GP Position Along Normal + "Offset of ground plane in direction normal to the ground planes orientation." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'GP Position Along Normal') + key_val_pair = [i for i in props if 'GP Position Along Normal=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py new file mode 100644 index 00000000000..4ffaa23d6b0 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py @@ -0,0 +1,264 @@ +from ..GenericEmitNode import * +class ReadOnlyErcegCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def enable_refinement(self) -> bool: + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + key_val_pair = [i for i in props if 'Enable Refinement=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def adaptive_sampling(self) -> bool: + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + key_val_pair = [i for i in props if 'Refinement Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def terrain_category(self): + """Terrain Category + "Specify the terrain category type for the Erceg model." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Terrain Category') + key_val_pair = [i for i in props if 'Terrain Category=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class TerrainCategoryOption(Enum): + TYPEA = "Type A" + TYPEB = "Type B" + TYPEC = "Type C" + + @property + def custom_fading_margin(self) -> float: + """Custom Fading Margin + "Sets a custom fading margin to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') + key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def polarization_mismatch(self) -> float: + """Polarization Mismatch + "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') + key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def pointing_error_loss(self) -> float: + """Pointing Error Loss + "Sets a margin for pointing error loss to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') + key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def fading_type(self): + """Fading Type + "Specify the type of fading to include." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') + key_val_pair = [i for i in props if 'Fading Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class FadingTypeOption(Enum): + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + + @property + def fading_availability(self) -> float: + """Fading Availability + "The probability that the propagation loss in dB is below its median value plus the margin." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') + key_val_pair = [i for i in props if 'Fading Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def std_deviation(self) -> float: + """Std Deviation + "Standard deviation modeling the random amount of shadowing loss." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') + key_val_pair = [i for i in props if 'Std Deviation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def include_rain_attenuation(self) -> bool: + """Include Rain Attenuation + "Adds a margin for rain attenuation to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') + key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def rain_availability(self) -> float: + """Rain Availability + "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." + "Value should be between 99 and 99.999." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') + key_val_pair = [i for i in props if 'Rain Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def rain_rate(self) -> float: + """Rain Rate + "Rain rate (mm/hr) exceeded for 0.01% of the time." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') + key_val_pair = [i for i in props if 'Rain Rate=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def polarization_tilt_angle(self) -> float: + """Polarization Tilt Angle + "Polarization tilt angle of the transmitted signal relative to the horizontal." + "Value should be between 0 and 180." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') + key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def include_atmospheric_absorption(self) -> bool: + """Include Atmospheric Absorption + "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') + key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def temperature(self) -> float: + """Temperature + "Air temperature in degrees Celsius." + "Value should be between -273 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') + key_val_pair = [i for i in props if 'Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def total_air_pressure(self) -> float: + """Total Air Pressure + "Total air pressure." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') + key_val_pair = [i for i in props if 'Total Air Pressure=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def water_vapor_concentration(self) -> float: + """Water Vapor Concentration + "Water vapor concentration." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') + key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py new file mode 100644 index 00000000000..9861ae9140f --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py @@ -0,0 +1,310 @@ +from ..GenericEmitNode import * +class ReadOnlyFilter(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def filename(self) -> str: + """Filename + "Name of file defining the outboard component." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + key_val_pair = [i for i in props if 'Filename=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def noise_temperature(self) -> float: + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + key_val_pair = [i for i in props if 'Noise Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def type(self): + """Type + "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + key_val_pair = [i for i in props if 'Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class TypeOption(Enum): + BYFILE = "By File" + LOWPASS = "Low Pass" + HIGHPASS = "High Pass" + BANDPASS = "Band Pass" + BANDSTOP = "Band Stop" + TUNABLEBANDPASS = "Tunable Bandpass" + TUNABLEBANDSTOP = "Tunable Bandstop" + + @property + def insertion_loss(self) -> float: + """Insertion Loss + "Filter pass band loss." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') + key_val_pair = [i for i in props if 'Insertion Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def stop_band_attenuation(self) -> float: + """Stop band Attenuation + "Filter stop band loss (attenuation)." + "Value should be less than 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop band Attenuation') + key_val_pair = [i for i in props if 'Stop band Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def max_pass_band(self) -> float: + """Max Pass Band + "Maximum pass band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Pass Band') + key_val_pair = [i for i in props if 'Max Pass Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def min_stop_band(self) -> float: + """Min Stop Band + "Minimum stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Stop Band') + key_val_pair = [i for i in props if 'Min Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def max_stop_band(self) -> float: + """Max Stop Band + "Maximum stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Stop Band') + key_val_pair = [i for i in props if 'Max Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def min_pass_band(self) -> float: + """Min Pass Band + "Minimum pass band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Pass Band') + key_val_pair = [i for i in props if 'Min Pass Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def lower_stop_band(self) -> float: + """Lower Stop Band + "Lower stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') + key_val_pair = [i for i in props if 'Lower Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def lower_cutoff(self) -> float: + """Lower Cutoff + "Lower cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') + key_val_pair = [i for i in props if 'Lower Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def higher_cutoff(self) -> float: + """Higher Cutoff + "Higher cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') + key_val_pair = [i for i in props if 'Higher Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def higher_stop_band(self) -> float: + """Higher Stop Band + "Higher stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') + key_val_pair = [i for i in props if 'Higher Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def lower_cutoff_(self) -> float: + """Lower Cutoff + "Lower cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff ') + key_val_pair = [i for i in props if 'Lower Cutoff =' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def lower_stop_band_(self) -> float: + """Lower Stop Band + "Lower stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band ') + key_val_pair = [i for i in props if 'Lower Stop Band =' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def higher_stop_band_(self) -> float: + """Higher Stop Band + "Higher stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band ') + key_val_pair = [i for i in props if 'Higher Stop Band =' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def higher_cutoff_(self) -> float: + """Higher Cutoff + "Higher cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff ') + key_val_pair = [i for i in props if 'Higher Cutoff =' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def lowest_tuned_frequency_(self) -> float: + """Lowest Tuned Frequency + "Lowest tuned frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lowest Tuned Frequency ') + key_val_pair = [i for i in props if 'Lowest Tuned Frequency =' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def highest_tuned_frequency_(self) -> float: + """Highest Tuned Frequency + "Highest tuned frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Highest Tuned Frequency ') + key_val_pair = [i for i in props if 'Highest Tuned Frequency =' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def percent_bandwidth(self) -> float: + """Percent Bandwidth + "Tunable filter 3-dB bandwidth." + "Value should be between 0.001 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Percent Bandwidth') + key_val_pair = [i for i in props if 'Percent Bandwidth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def shape_factor(self) -> float: + """Shape Factor + "Ratio defining the filter rolloff." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Shape Factor') + key_val_pair = [i for i in props if 'Shape Factor=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def warnings(self) -> str: + """Warnings + "Warning(s) for this node." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + key_val_pair = [i for i in props if 'Warnings=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py new file mode 100644 index 00000000000..f7bc70133f7 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py @@ -0,0 +1,305 @@ +from ..GenericEmitNode import * +class ReadOnlyFiveGChannelModel(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def enable_refinement(self) -> bool: + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + key_val_pair = [i for i in props if 'Enable Refinement=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def adaptive_sampling(self) -> bool: + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + key_val_pair = [i for i in props if 'Refinement Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def environment(self): + """Environment + "Specify the environment for the 5G channel model." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Environment') + key_val_pair = [i for i in props if 'Environment=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class EnvironmentOption(Enum): + URBANMICROCELL = "Urban Microcell" + URBANMACROCELL = "Urban Macrocell" + RURALMACROCELL = "Rural Macrocell" + + @property + def los(self) -> bool: + """LOS + "True if the operating environment is line-of-sight." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'LOS') + key_val_pair = [i for i in props if 'LOS=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def include_bpl(self) -> bool: + """Include BPL + "Includes building penetration loss if true." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include BPL') + key_val_pair = [i for i in props if 'Include BPL=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def nyu_bpl_model(self): + """NYU BPL Model + "Specify the NYU Building Penetration Loss model." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'NYU BPL Model') + key_val_pair = [i for i in props if 'NYU BPL Model=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class NYUBPLModelOption(Enum): + LOWLOSSMODEL = "Low-loss model" + HIGHLOSSMODEL = "High-loss model" + + @property + def custom_fading_margin(self) -> float: + """Custom Fading Margin + "Sets a custom fading margin to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') + key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def polarization_mismatch(self) -> float: + """Polarization Mismatch + "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') + key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def pointing_error_loss(self) -> float: + """Pointing Error Loss + "Sets a margin for pointing error loss to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') + key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def fading_type(self): + """Fading Type + "Specify the type of fading to include." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') + key_val_pair = [i for i in props if 'Fading Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class FadingTypeOption(Enum): + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + + @property + def fading_availability(self) -> float: + """Fading Availability + "The probability that the propagation loss in dB is below its median value plus the margin." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') + key_val_pair = [i for i in props if 'Fading Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def std_deviation(self) -> float: + """Std Deviation + "Standard deviation modeling the random amount of shadowing loss." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') + key_val_pair = [i for i in props if 'Std Deviation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def include_rain_attenuation(self) -> bool: + """Include Rain Attenuation + "Adds a margin for rain attenuation to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') + key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def rain_availability(self) -> float: + """Rain Availability + "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." + "Value should be between 99 and 99.999." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') + key_val_pair = [i for i in props if 'Rain Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def rain_rate(self) -> float: + """Rain Rate + "Rain rate (mm/hr) exceeded for 0.01% of the time." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') + key_val_pair = [i for i in props if 'Rain Rate=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def polarization_tilt_angle(self) -> float: + """Polarization Tilt Angle + "Polarization tilt angle of the transmitted signal relative to the horizontal." + "Value should be between 0 and 180." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') + key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def include_atmospheric_absorption(self) -> bool: + """Include Atmospheric Absorption + "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') + key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def temperature(self) -> float: + """Temperature + "Air temperature in degrees Celsius." + "Value should be between -273 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') + key_val_pair = [i for i in props if 'Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def total_air_pressure(self) -> float: + """Total Air Pressure + "Total air pressure." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') + key_val_pair = [i for i in props if 'Total Air Pressure=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def water_vapor_concentration(self) -> float: + """Water Vapor Concentration + "Water vapor concentration." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') + key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py new file mode 100644 index 00000000000..6b55834984e --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py @@ -0,0 +1,265 @@ +from ..GenericEmitNode import * +class ReadOnlyHataCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def enable_refinement(self) -> bool: + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + key_val_pair = [i for i in props if 'Enable Refinement=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def adaptive_sampling(self) -> bool: + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + key_val_pair = [i for i in props if 'Refinement Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def environment(self): + """Environment + "Specify the environment type for the Hata model." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Environment') + key_val_pair = [i for i in props if 'Environment=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class EnvironmentOption(Enum): + LARGECITY = "Large City" + SMALLMEDCITY = "Small/Medium City" + SUBURBAN = "Suburban" + RURAL = "Rural" + + @property + def custom_fading_margin(self) -> float: + """Custom Fading Margin + "Sets a custom fading margin to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') + key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def polarization_mismatch(self) -> float: + """Polarization Mismatch + "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') + key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def pointing_error_loss(self) -> float: + """Pointing Error Loss + "Sets a margin for pointing error loss to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') + key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def fading_type(self): + """Fading Type + "Specify the type of fading to include." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') + key_val_pair = [i for i in props if 'Fading Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class FadingTypeOption(Enum): + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + + @property + def fading_availability(self) -> float: + """Fading Availability + "The probability that the propagation loss in dB is below its median value plus the margin." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') + key_val_pair = [i for i in props if 'Fading Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def std_deviation(self) -> float: + """Std Deviation + "Standard deviation modeling the random amount of shadowing loss." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') + key_val_pair = [i for i in props if 'Std Deviation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def include_rain_attenuation(self) -> bool: + """Include Rain Attenuation + "Adds a margin for rain attenuation to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') + key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def rain_availability(self) -> float: + """Rain Availability + "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." + "Value should be between 99 and 99.999." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') + key_val_pair = [i for i in props if 'Rain Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def rain_rate(self) -> float: + """Rain Rate + "Rain rate (mm/hr) exceeded for 0.01% of the time." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') + key_val_pair = [i for i in props if 'Rain Rate=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def polarization_tilt_angle(self) -> float: + """Polarization Tilt Angle + "Polarization tilt angle of the transmitted signal relative to the horizontal." + "Value should be between 0 and 180." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') + key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def include_atmospheric_absorption(self) -> bool: + """Include Atmospheric Absorption + "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') + key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def temperature(self) -> float: + """Temperature + "Air temperature in degrees Celsius." + "Value should be between -273 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') + key_val_pair = [i for i in props if 'Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def total_air_pressure(self) -> float: + """Total Air Pressure + "Total air pressure." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') + key_val_pair = [i for i in props if 'Total Air Pressure=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def water_vapor_concentration(self) -> float: + """Water Vapor Concentration + "Water vapor concentration." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') + key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py new file mode 100644 index 00000000000..b61e27d83e4 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py @@ -0,0 +1,279 @@ +from ..GenericEmitNode import * +class ReadOnlyIndoorPropagationCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def enable_refinement(self) -> bool: + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + key_val_pair = [i for i in props if 'Enable Refinement=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def adaptive_sampling(self) -> bool: + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + key_val_pair = [i for i in props if 'Refinement Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def building_type(self): + """Building Type + "Specify the building type for the Indoor Propagation model." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Building Type') + key_val_pair = [i for i in props if 'Building Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class BuildingTypeOption(Enum): + RESIDENTIALAPARTMENT = "Residential Apartment" + RESIDENTIALHOUSE = "Residential House" + OFFICEBUILDING = "Office Building" + COMMERCIALBUILDING = "Commercial Building" + CUSTOMBUILDING = "Custom Building" + + @property + def number_of_floors(self) -> int: + """Number of Floors + "The number of floors separating the antennas.." + "Value should be between 1 and 3." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Floors') + key_val_pair = [i for i in props if 'Number of Floors=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def custom_fading_margin(self) -> float: + """Custom Fading Margin + "Sets a custom fading margin to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') + key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def polarization_mismatch(self) -> float: + """Polarization Mismatch + "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') + key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def pointing_error_loss(self) -> float: + """Pointing Error Loss + "Sets a margin for pointing error loss to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') + key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def fading_type(self): + """Fading Type + "Specify the type of fading to include." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') + key_val_pair = [i for i in props if 'Fading Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class FadingTypeOption(Enum): + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + + @property + def fading_availability(self) -> float: + """Fading Availability + "The probability that the propagation loss in dB is below its median value plus the margin." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') + key_val_pair = [i for i in props if 'Fading Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def std_deviation(self) -> float: + """Std Deviation + "Standard deviation modeling the random amount of shadowing loss." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') + key_val_pair = [i for i in props if 'Std Deviation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def include_rain_attenuation(self) -> bool: + """Include Rain Attenuation + "Adds a margin for rain attenuation to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') + key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def rain_availability(self) -> float: + """Rain Availability + "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." + "Value should be between 99 and 99.999." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') + key_val_pair = [i for i in props if 'Rain Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def rain_rate(self) -> float: + """Rain Rate + "Rain rate (mm/hr) exceeded for 0.01% of the time." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') + key_val_pair = [i for i in props if 'Rain Rate=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def polarization_tilt_angle(self) -> float: + """Polarization Tilt Angle + "Polarization tilt angle of the transmitted signal relative to the horizontal." + "Value should be between 0 and 180." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') + key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def include_atmospheric_absorption(self) -> bool: + """Include Atmospheric Absorption + "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') + key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def temperature(self) -> float: + """Temperature + "Air temperature in degrees Celsius." + "Value should be between -273 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') + key_val_pair = [i for i in props if 'Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def total_air_pressure(self) -> float: + """Total Air Pressure + "Total air pressure." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') + key_val_pair = [i for i in props if 'Total Air Pressure=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def water_vapor_concentration(self) -> float: + """Water Vapor Concentration + "Water vapor concentration." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') + key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py new file mode 100644 index 00000000000..6c78f086038 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py @@ -0,0 +1,203 @@ +from ..GenericEmitNode import * +class ReadOnlyIsolator(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def filename(self) -> str: + """Filename + "Name of file defining the outboard component." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + key_val_pair = [i for i in props if 'Filename=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def noise_temperature(self) -> float: + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + key_val_pair = [i for i in props if 'Noise Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def type(self): + """Type + "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + key_val_pair = [i for i in props if 'Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class TypeOption(Enum): + BYFILE = "By File" + PARAMETRIC = "Parametric" + + @property + def port_1_location(self): + """Port 1 Location + "Defines the orientation of the isolator.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port 1 Location') + key_val_pair = [i for i in props if 'Port 1 Location=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class Port1LocationOption(Enum): + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" + + @property + def insertion_loss(self) -> float: + """Insertion Loss + "Isolator in-band loss in forward direction.." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') + key_val_pair = [i for i in props if 'Insertion Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def finite_reverse_isolation(self) -> bool: + """Finite Reverse Isolation + "Use a finite reverse isolation. If disabled, the isolator model is ideal (infinite reverse isolation).." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Reverse Isolation') + key_val_pair = [i for i in props if 'Finite Reverse Isolation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def reverse_isolation(self) -> float: + """Reverse Isolation + "Isolator reverse isolation (i.e., loss in the reverse direction).." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reverse Isolation') + key_val_pair = [i for i in props if 'Reverse Isolation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def finite_bandwidth(self) -> bool: + """Finite Bandwidth + "Use a finite bandwidth. If disabled, the isolator model is ideal (infinite bandwidth).." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Bandwidth') + key_val_pair = [i for i in props if 'Finite Bandwidth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def out_of_band_attenuation(self) -> float: + """Out-of-band Attenuation + "Out-of-band loss (attenuation)." + "Value should be between 0 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out-of-band Attenuation') + key_val_pair = [i for i in props if 'Out-of-band Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def lower_stop_band(self) -> float: + """Lower Stop Band + "Lower stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') + key_val_pair = [i for i in props if 'Lower Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def lower_cutoff(self) -> float: + """Lower Cutoff + "Lower cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') + key_val_pair = [i for i in props if 'Lower Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def higher_cutoff(self) -> float: + """Higher Cutoff + "Higher cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') + key_val_pair = [i for i in props if 'Higher Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def higher_stop_band(self) -> float: + """Higher Stop Band + "Higher stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') + key_val_pair = [i for i in props if 'Higher Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def warnings(self) -> str: + """Warnings + "Warning(s) for this node." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + key_val_pair = [i for i in props if 'Warnings=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py new file mode 100644 index 00000000000..fabc3b11d34 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py @@ -0,0 +1,281 @@ +from ..GenericEmitNode import * +class ReadOnlyLogDistanceCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def enable_refinement(self) -> bool: + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + key_val_pair = [i for i in props if 'Enable Refinement=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def adaptive_sampling(self) -> bool: + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + key_val_pair = [i for i in props if 'Refinement Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def environment(self): + """Environment + "Specify the environment type for the Log Distance model." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Environment') + key_val_pair = [i for i in props if 'Environment=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class EnvironmentOption(Enum): + FREESPACE = "Free Space" + URBAN = "Urban" + SHADOWEDURBAN = "Shadowed Urban" + BUILDINGLINEOFSIGHT = "Building - Line of Sight" + BUILDINGOBSTRUCTED = "Building - Obstructed" + FACTORYOBSTRUCTED = "Factory - Obstructed" + CUSTOMEXPONENT = "Custom" + + @property + def path_loss_exponent(self) -> float: + """Path Loss Exponent + "Path Loss Exponent." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Path Loss Exponent') + key_val_pair = [i for i in props if 'Path Loss Exponent=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def custom_fading_margin(self) -> float: + """Custom Fading Margin + "Sets a custom fading margin to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') + key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def polarization_mismatch(self) -> float: + """Polarization Mismatch + "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') + key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def pointing_error_loss(self) -> float: + """Pointing Error Loss + "Sets a margin for pointing error loss to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') + key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def fading_type(self): + """Fading Type + "Specify the type of fading to include." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') + key_val_pair = [i for i in props if 'Fading Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class FadingTypeOption(Enum): + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + + @property + def fading_availability(self) -> float: + """Fading Availability + "The probability that the propagation loss in dB is below its median value plus the margin." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') + key_val_pair = [i for i in props if 'Fading Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def std_deviation(self) -> float: + """Std Deviation + "Standard deviation modeling the random amount of shadowing loss." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') + key_val_pair = [i for i in props if 'Std Deviation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def include_rain_attenuation(self) -> bool: + """Include Rain Attenuation + "Adds a margin for rain attenuation to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') + key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def rain_availability(self) -> float: + """Rain Availability + "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." + "Value should be between 99 and 99.999." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') + key_val_pair = [i for i in props if 'Rain Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def rain_rate(self) -> float: + """Rain Rate + "Rain rate (mm/hr) exceeded for 0.01% of the time." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') + key_val_pair = [i for i in props if 'Rain Rate=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def polarization_tilt_angle(self) -> float: + """Polarization Tilt Angle + "Polarization tilt angle of the transmitted signal relative to the horizontal." + "Value should be between 0 and 180." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') + key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def include_atmospheric_absorption(self) -> bool: + """Include Atmospheric Absorption + "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') + key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def temperature(self) -> float: + """Temperature + "Air temperature in degrees Celsius." + "Value should be between -273 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') + key_val_pair = [i for i in props if 'Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def total_air_pressure(self) -> float: + """Total Air Pressure + "Total air pressure." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') + key_val_pair = [i for i in props if 'Total Air Pressure=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def water_vapor_concentration(self) -> float: + """Water Vapor Concentration + "Water vapor concentration." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') + key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py new file mode 100644 index 00000000000..9d2e2c4ede9 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py @@ -0,0 +1,99 @@ +from ..GenericEmitNode import * +class ReadOnlyMultiplexer(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def filename(self) -> str: + """Filename + "Name of file defining the multiplexer." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + key_val_pair = [i for i in props if 'Filename=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def noise_temperature(self) -> float: + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + key_val_pair = [i for i in props if 'Noise Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def type(self): + """Type + "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + key_val_pair = [i for i in props if 'Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class TypeOption(Enum): + PARAMETRIC = "By Pass Band" + BYFILE = "By File" + + @property + def port_1_location(self): + """Port 1 Location + "Defines the orientation of the multiplexer.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port 1 Location') + key_val_pair = [i for i in props if 'Port 1 Location=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class Port1LocationOption(Enum): + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" + + @property + def flip_ports_vertically(self) -> bool: + """Flip Ports Vertically + "Reverses the port order on the multi-port side of the multiplexer.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Flip Ports Vertically') + key_val_pair = [i for i in props if 'Flip Ports Vertically=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def warnings(self) -> str: + """Warnings + "Warning(s) for this node." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + key_val_pair = [i for i in props if 'Warnings=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py new file mode 100644 index 00000000000..30d8f205cbc --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py @@ -0,0 +1,183 @@ +from ..GenericEmitNode import * +class ReadOnlyMultiplexerBand(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def type(self): + """Type + "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + key_val_pair = [i for i in props if 'Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class TypeOption(Enum): + BYFILE = "By File" + LOWPASS = "Low Pass" + HIGHPASS = "High Pass" + BANDPASS = "Band Pass" + + @property + def filename(self) -> str: + """Filename + "Name of file defining the multiplexer band." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + key_val_pair = [i for i in props if 'Filename=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def insertion_loss(self) -> float: + """Insertion Loss + "Multiplexer pass band insertion loss." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') + key_val_pair = [i for i in props if 'Insertion Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def stop_band_attenuation(self) -> float: + """Stop band Attenuation + "Stop-band loss (attenuation)." + "Value should be between 0 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop band Attenuation') + key_val_pair = [i for i in props if 'Stop band Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def max_pass_band(self) -> float: + """Max Pass Band + "Maximum pass band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Pass Band') + key_val_pair = [i for i in props if 'Max Pass Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def min_stop_band(self) -> float: + """Min Stop Band + "Minimum stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Stop Band') + key_val_pair = [i for i in props if 'Min Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def max_stop_band(self) -> float: + """Max Stop Band + "Maximum stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Stop Band') + key_val_pair = [i for i in props if 'Max Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def min_pass_band(self) -> float: + """Min Pass Band + "Minimum pass band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Pass Band') + key_val_pair = [i for i in props if 'Min Pass Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def lower_stop_band(self) -> float: + """Lower Stop Band + "Lower stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') + key_val_pair = [i for i in props if 'Lower Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def lower_cutoff(self) -> float: + """Lower Cutoff + "Lower cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') + key_val_pair = [i for i in props if 'Lower Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def higher_cutoff(self) -> float: + """Higher Cutoff + "Higher cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') + key_val_pair = [i for i in props if 'Higher Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def higher_stop_band(self) -> float: + """Higher Stop Band + "Higher stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') + key_val_pair = [i for i in props if 'Higher Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def warnings(self) -> str: + """Warnings + "Warning(s) for this node." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + key_val_pair = [i for i in props if 'Warnings=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py new file mode 100644 index 00000000000..d58196e6381 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py @@ -0,0 +1,204 @@ +from ..GenericEmitNode import * +class ReadOnlyPowerDivider(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def filename(self) -> str: + """Filename + "Name of file defining the Power Divider." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + key_val_pair = [i for i in props if 'Filename=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def noise_temperature(self) -> float: + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + key_val_pair = [i for i in props if 'Noise Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def type(self): + """Type + "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + key_val_pair = [i for i in props if 'Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class TypeOption(Enum): + BYFILE = "By File" + _3DB = "3 dB" + RESISTIVE = "Resistive" + + @property + def orientation(self): + """Orientation + "Defines the orientation of the Power Divider.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation') + key_val_pair = [i for i in props if 'Orientation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class OrientationOption(Enum): + RADIOSIDE = "Divider" + ANTENNASIDE = "Combiner" + + @property + def insertion_loss_above_ideal(self) -> float: + """Insertion Loss Above Ideal + "Additional loss beyond the ideal insertion loss. The ideal insertion loss is 3 dB for the 3 dB Divider and 6 dB for the Resistive Divider.." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss Above Ideal') + key_val_pair = [i for i in props if 'Insertion Loss Above Ideal=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def finite_isolation(self) -> bool: + """Finite Isolation + "Use a finite isolation between output ports. If disabled, the Power Divider isolation is ideal (infinite isolation between output ports).." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Isolation') + key_val_pair = [i for i in props if 'Finite Isolation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def isolation(self) -> float: + """Isolation + "Power Divider isolation between output ports.." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Isolation') + key_val_pair = [i for i in props if 'Isolation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def finite_bandwidth(self) -> bool: + """Finite Bandwidth + "Use a finite bandwidth. If disabled, the Power Divider model is ideal (infinite bandwidth).." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Bandwidth') + key_val_pair = [i for i in props if 'Finite Bandwidth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def out_of_band_attenuation(self) -> float: + """Out-of-band Attenuation + "Out-of-band loss (attenuation)." + "Value should be between 0 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out-of-band Attenuation') + key_val_pair = [i for i in props if 'Out-of-band Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def lower_stop_band(self) -> float: + """Lower Stop Band + "Lower stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') + key_val_pair = [i for i in props if 'Lower Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def lower_cutoff(self) -> float: + """Lower Cutoff + "Lower cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') + key_val_pair = [i for i in props if 'Lower Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def higher_cutoff(self) -> float: + """Higher Cutoff + "Higher cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') + key_val_pair = [i for i in props if 'Higher Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def higher_stop_band(self) -> float: + """Higher Stop Band + "Higher stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') + key_val_pair = [i for i in props if 'Higher Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def warnings(self) -> str: + """Warnings + "Warning(s) for this node." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + key_val_pair = [i for i in props if 'Warnings=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py new file mode 100644 index 00000000000..fbb4d92af3e --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py @@ -0,0 +1,248 @@ +from ..GenericEmitNode import * +class ReadOnlyPropagationLossCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def enable_refinement(self) -> bool: + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + key_val_pair = [i for i in props if 'Enable Refinement=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def adaptive_sampling(self) -> bool: + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + key_val_pair = [i for i in props if 'Refinement Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def custom_fading_margin(self) -> float: + """Custom Fading Margin + "Sets a custom fading margin to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') + key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def polarization_mismatch(self) -> float: + """Polarization Mismatch + "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') + key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def pointing_error_loss(self) -> float: + """Pointing Error Loss + "Sets a margin for pointing error loss to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') + key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def fading_type(self): + """Fading Type + "Specify the type of fading to include." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') + key_val_pair = [i for i in props if 'Fading Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class FadingTypeOption(Enum): + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + + @property + def fading_availability(self) -> float: + """Fading Availability + "The probability that the propagation loss in dB is below its median value plus the margin." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') + key_val_pair = [i for i in props if 'Fading Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def std_deviation(self) -> float: + """Std Deviation + "Standard deviation modeling the random amount of shadowing loss." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') + key_val_pair = [i for i in props if 'Std Deviation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def include_rain_attenuation(self) -> bool: + """Include Rain Attenuation + "Adds a margin for rain attenuation to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') + key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def rain_availability(self) -> float: + """Rain Availability + "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." + "Value should be between 99 and 99.999." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') + key_val_pair = [i for i in props if 'Rain Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def rain_rate(self) -> float: + """Rain Rate + "Rain rate (mm/hr) exceeded for 0.01% of the time." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') + key_val_pair = [i for i in props if 'Rain Rate=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def polarization_tilt_angle(self) -> float: + """Polarization Tilt Angle + "Polarization tilt angle of the transmitted signal relative to the horizontal." + "Value should be between 0 and 180." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') + key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def include_atmospheric_absorption(self) -> bool: + """Include Atmospheric Absorption + "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') + key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def temperature(self) -> float: + """Temperature + "Air temperature in degrees Celsius." + "Value should be between -273 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') + key_val_pair = [i for i in props if 'Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def total_air_pressure(self) -> float: + """Total Air Pressure + "Total air pressure." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') + key_val_pair = [i for i in props if 'Total Air Pressure=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def water_vapor_concentration(self) -> float: + """Water Vapor Concentration + "Water vapor concentration." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') + key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py new file mode 100644 index 00000000000..449c9054c63 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py @@ -0,0 +1,23 @@ +from ..GenericEmitNode import * +class ReadOnlyRadioNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py new file mode 100644 index 00000000000..1da8b8f2e81 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py @@ -0,0 +1,37 @@ +from ..GenericEmitNode import * +class ReadOnlyRfSystemGroup(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def enable_passive_noise(self) -> bool: + """Enable Passive Noise + "If true, the noise contributions of antennas and passive components are included in cosite simulation. Note: Antenna and passive component noise is always included in link analysis simulation.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Passive Noise') + key_val_pair = [i for i in props if 'Enable Passive Noise=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def enforce_thermal_noise_floor(self) -> bool: + """Enforce Thermal Noise Floor + "If true, all broadband noise is limited by the thermal noise floor (-174 dBm/Hz)." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enforce Thermal Noise Floor') + key_val_pair = [i for i in props if 'Enforce Thermal Noise Floor=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py new file mode 100644 index 00000000000..1686f59b9dc --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py @@ -0,0 +1,299 @@ +from ..GenericEmitNode import * +class ReadOnlyRxMeasNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def file(self) -> str: + """File + "Name of the measurement source." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'File') + key_val_pair = [i for i in props if 'File=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def source_file(self) -> str: + """Source File + "Name of the measurement source." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Source File') + key_val_pair = [i for i in props if 'Source File=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def receive_frequency(self) -> float: + """Receive Frequency + "Channel associated with the measurement file." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Receive Frequency') + key_val_pair = [i for i in props if 'Receive Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def measurement_mode(self): + """Measurement Mode + "Defines the mode for the receiver measurement." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measurement Mode') + key_val_pair = [i for i in props if 'Measurement Mode=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class MeasurementModeOption(Enum): + AUDIO_SINAD = "Audio SINAD" + DIGITAL_BER = "Digital BER" + GPS_CNR = "GPS CNR" + + @property + def sinad_threshold(self) -> float: + """SINAD Threshold + "SINAD Threshold used for the receiver measurements." + "Value should be between 5 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'SINAD Threshold') + key_val_pair = [i for i in props if 'SINAD Threshold=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def gps_cnr_threshold(self) -> float: + """GPS CNR Threshold + "GPS CNR Threshold used for the receiver measurements." + "Value should be between 15 and 30." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'GPS CNR Threshold') + key_val_pair = [i for i in props if 'GPS CNR Threshold=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def ber_threshold(self) -> float: + """BER Threshold + "BER Threshold used for the receiver measurements." + "Value should be between -12 and -1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BER Threshold') + key_val_pair = [i for i in props if 'BER Threshold=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def default_intended_power(self) -> bool: + """Default Intended Power + "Specify the intended signal." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Default Intended Power') + key_val_pair = [i for i in props if 'Default Intended Power=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def intended_signal_power(self) -> float: + """Intended Signal Power + "Specify the power level of the intended signal." + "Value should be between -140 and -50." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Intended Signal Power') + key_val_pair = [i for i in props if 'Intended Signal Power=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def freq_deviation(self) -> float: + """Freq. Deviation + "Specify the frequency deviation of the intended signal." + "Value should be between 1000 and 200000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Freq. Deviation') + key_val_pair = [i for i in props if 'Freq. Deviation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def modulation_depth(self) -> float: + """Modulation Depth + "Specify the modulation depth of the intended signal." + "Value should be between 10 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Modulation Depth') + key_val_pair = [i for i in props if 'Modulation Depth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def measure_selectivity(self) -> bool: + """Measure Selectivity + "Enable/disable the measurement of the receiver's selectivity." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measure Selectivity') + key_val_pair = [i for i in props if 'Measure Selectivity=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def measure_mixer_products(self) -> bool: + """Measure Mixer Products + "Enable/disable the measurement of the receiver's mixer products." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measure Mixer Products') + key_val_pair = [i for i in props if 'Measure Mixer Products=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def max_rf_order(self) -> int: + """Max RF Order + "Max RF Order of the mixer products to measure." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max RF Order') + key_val_pair = [i for i in props if 'Max RF Order=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def max_lo_order(self) -> int: + """Max LO Order + "Max LO Order of the mixer products to measure." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max LO Order') + key_val_pair = [i for i in props if 'Max LO Order=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def include_if(self) -> bool: + """Include IF + "Enable/disable the measurement of the IF channel." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include IF') + key_val_pair = [i for i in props if 'Include IF=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def measure_saturation(self) -> bool: + """Measure Saturation + "Enable/disable measurement of the receiver's saturation level." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measure Saturation') + key_val_pair = [i for i in props if 'Measure Saturation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def use_ams_limits(self) -> bool: + """Use AMS Limits + "Allow AMS to determine the limits for measuring saturation." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use AMS Limits') + key_val_pair = [i for i in props if 'Use AMS Limits=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def start_frequency(self) -> float: + """Start Frequency + "Starting frequency for the measurement sweep." + "Value should be greater than 1e+06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Start Frequency') + key_val_pair = [i for i in props if 'Start Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def stop_frequency(self) -> float: + """Stop Frequency + "Stopping frequency for the measurement sweep." + "Value should be less than 6e+09." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop Frequency') + key_val_pair = [i for i in props if 'Stop Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def samples(self) -> int: + """Samples + "Number of measurement samples for each frequency." + "Value should be between 2 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Samples') + key_val_pair = [i for i in props if 'Samples=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def exclude_mixer_products_below_noise(self) -> bool: + """Exclude Mixer Products Below Noise + "Include/Exclude Mixer Products below the noise." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Exclude Mixer Products Below Noise') + key_val_pair = [i for i in props if 'Exclude Mixer Products Below Noise=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py new file mode 100644 index 00000000000..131a16d126d --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py @@ -0,0 +1,228 @@ +from ..GenericEmitNode import * +class ReadOnlyRxMixerProductNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def mixer_product_taper(self): + """Mixer Product Taper + "Taper for setting amplitude of mixer products." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Taper') + key_val_pair = [i for i in props if 'Mixer Product Taper=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class MixerProductTaperOption(Enum): + CONSTANT = "Constant" + MIL_STD_461G = "MIL-STD-461G" + DUFF_MODEL = "Duff Model" + + @property + def mixer_product_susceptibility(self) -> float: + """Mixer Product Susceptibility + "Mixer product amplitudes (relative to the in-band susceptibility)." + "Value should be between -200 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Susceptibility') + key_val_pair = [i for i in props if 'Mixer Product Susceptibility=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def spurious_rejection(self) -> float: + """Spurious Rejection + "Mixer product amplitudes (relative to the in-band susceptibility)." + "Value should be between -200 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spurious Rejection') + key_val_pair = [i for i in props if 'Spurious Rejection=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def minimum_tuning_frequency(self) -> float: + """Minimum Tuning Frequency + "Minimum tuning frequency of Rx's local oscillator." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minimum Tuning Frequency') + key_val_pair = [i for i in props if 'Minimum Tuning Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def maximum_tuning_frequency(self) -> float: + """Maximum Tuning Frequency + "Maximum tuning frequency of Rx's local oscillator." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Maximum Tuning Frequency') + key_val_pair = [i for i in props if 'Maximum Tuning Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def mixer_product_slope(self) -> float: + """Mixer Product Slope + "Rate of decrease for amplitude of Rx's local oscillator harmonics (dB/decade)." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Slope') + key_val_pair = [i for i in props if 'Mixer Product Slope=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def mixer_product_intercept(self) -> float: + """Mixer Product Intercept + "Mixer product intercept (dBc)." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Intercept') + key_val_pair = [i for i in props if 'Mixer Product Intercept=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def _80_db_bandwidth(self) -> float: + """80 dB Bandwidth + "Bandwidth where Rx's susceptibility envelope is 80 dB above in-band susceptibility level." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'80 dB Bandwidth') + key_val_pair = [i for i in props if '80 dB Bandwidth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def image_rejection(self) -> float: + """Image Rejection + "Image frequency amplitude (relative to the in-band susceptibility)." + "Value should be between -200 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Image Rejection') + key_val_pair = [i for i in props if 'Image Rejection=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def maximum_rf_harmonic_order(self) -> int: + """Maximum RF Harmonic Order + "Maximum order of RF frequency." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Maximum RF Harmonic Order') + key_val_pair = [i for i in props if 'Maximum RF Harmonic Order=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def maximum_lo_harmonic_order(self) -> int: + """Maximum LO Harmonic Order + "Maximum order of the LO frequency." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Maximum LO Harmonic Order') + key_val_pair = [i for i in props if 'Maximum LO Harmonic Order=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def mixing_mode(self): + """Mixing Mode + "Specifies whether the IF frequency is > or < RF channel frequency." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixing Mode') + key_val_pair = [i for i in props if 'Mixing Mode=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class MixingModeOption(Enum): + ABOVETUNEDFREQUENCY = "LO Above Tuned (RF) Frequency" + BELOWTUNEDFREQUENCY = "LO Below Tuned (RF) Frequency" + BOTHTUNEDFREQUENCIES = "LO Above/Below Tuned (RF) Frequency" + + @property + def _1st_if_frequency(self): + """1st IF Frequency + "Intermediate frequency for Rx's 1st conversion stage." + "Value should be a mathematical expression." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'1st IF Frequency') + key_val_pair = [i for i in props if '1st IF Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def rf_transition_frequency(self) -> float: + """RF Transition Frequency + "RF Frequency Transition point." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'RF Transition Frequency') + key_val_pair = [i for i in props if 'RF Transition Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def use_high_lo(self): + """Use High LO + "Use High LO above/below the transition frequency." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use High LO') + key_val_pair = [i for i in props if 'Use High LO=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class UseHighLOOption(Enum): + ABOVETRANSITION = "Above Transition Frequency" + BELOWTRANSITION = "Below Transition Frequency" + + @property + def mixer_product_table_units(self): + """Mixer Product Table Units + "Specifies the units for the Mixer Products." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Table Units') + key_val_pair = [i for i in props if 'Mixer Product Table Units=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class MixerProductTableUnitsOption(Enum): + ABSOLUTE = "Absolute" + RELATIVE = "Relative" + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py new file mode 100644 index 00000000000..979dce82e3f --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py @@ -0,0 +1,11 @@ +from ..GenericEmitNode import * +class ReadOnlyRxSaturationNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py new file mode 100644 index 00000000000..7fa96b4ab1a --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py @@ -0,0 +1,24 @@ +from ..GenericEmitNode import * +class ReadOnlyRxSelectivityNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def use_arithmetic_mean(self) -> bool: + """Use Arithmetic Mean + "Uses arithmetic mean to center bandwidths about the tuned channel frequency." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Arithmetic Mean') + key_val_pair = [i for i in props if 'Use Arithmetic Mean=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py new file mode 100644 index 00000000000..83f8f661471 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py @@ -0,0 +1,26 @@ +from ..GenericEmitNode import * +class ReadOnlyRxSpurNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def spur_table_units(self): + """Spur Table Units + "Specifies the units for the Spurs." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spur Table Units') + key_val_pair = [i for i in props if 'Spur Table Units=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class SpurTableUnitsOption(Enum): + ABSOLUTE = "Absolute" + RELATIVE = "Relative" + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py new file mode 100644 index 00000000000..4ec266d66ae --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py @@ -0,0 +1,197 @@ +from ..GenericEmitNode import * +class ReadOnlyRxSusceptibilityProfNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def sensitivity_units(self): + """Sensitivity Units + "Units to use for the Rx Sensitivity." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Sensitivity Units') + key_val_pair = [i for i in props if 'Sensitivity Units=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class SensitivityUnitsOption(Enum): + DBM = "dBm" + DBUV = "dBuV" + MILLIWATTS = "milliwatts" + MICROVOLTS = "microvolts" + + @property + def min_receive_signal_pwr_(self) -> float: + """Min. Receive Signal Pwr + "Received signal power level at the Rx's antenna terminal." + "Value should be between -1000 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min. Receive Signal Pwr ') + key_val_pair = [i for i in props if 'Min. Receive Signal Pwr =' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def snr_at_rx_signal_pwr(self) -> float: + """SNR at Rx Signal Pwr + "Signal-to-Noise Ratio (dB) at specified received signal power at the Rx's antenna terminal." + "Value should be between -1000 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'SNR at Rx Signal Pwr') + key_val_pair = [i for i in props if 'SNR at Rx Signal Pwr=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def processing_gain(self) -> float: + """Processing Gain + "Rx processing gain (dB) of (optional) despreader." + "Value should be between -1000 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Processing Gain') + key_val_pair = [i for i in props if 'Processing Gain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def apply_pg_to_narrowband_only(self) -> bool: + """Apply PG to Narrowband Only + "Processing gain captures the despreading effect and applies to NB signals only (not BB noise) when enabled." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Apply PG to Narrowband Only') + key_val_pair = [i for i in props if 'Apply PG to Narrowband Only=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def saturation_level(self) -> float: + """Saturation Level + "Rx input saturation level." + "Value should be between -1000 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Saturation Level') + key_val_pair = [i for i in props if 'Saturation Level=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def rx_noise_figure(self) -> float: + """Rx Noise Figure + "Rx noise figure (dB)." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rx Noise Figure') + key_val_pair = [i for i in props if 'Rx Noise Figure=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def receiver_sensitivity_(self) -> float: + """Receiver Sensitivity + "Rx minimum sensitivity level (dBm)." + "Value should be between -1000 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Receiver Sensitivity ') + key_val_pair = [i for i in props if 'Receiver Sensitivity =' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def snrsinad_at_sensitivity_(self) -> float: + """SNR/SINAD at Sensitivity + "SNR or SINAD at the specified sensitivity level." + "Value should be between -1000 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'SNR/SINAD at Sensitivity ') + key_val_pair = [i for i in props if 'SNR/SINAD at Sensitivity =' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def perform_rx_intermod_analysis(self) -> bool: + """Perform Rx Intermod Analysis + "Performs a non-linear intermod analysis for the Rx." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Perform Rx Intermod Analysis') + key_val_pair = [i for i in props if 'Perform Rx Intermod Analysis=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def amplifier_saturation_level(self) -> float: + """Amplifier Saturation Level + "Internal Rx Amplifier's Saturation Level." + "Value should be between -200 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplifier Saturation Level') + key_val_pair = [i for i in props if 'Amplifier Saturation Level=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def _1_db_point_ref_input_(self) -> float: + """1-dB Point, Ref. Input + "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." + "Value should be between -1000 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'1-dB Point, Ref. Input ') + key_val_pair = [i for i in props if '1-dB Point, Ref. Input =' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def ip3_ref_input(self) -> float: + """IP3, Ref. Input + "Internal Rx Amplifier's 3rd order intercept point." + "Value should be between -1000 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'IP3, Ref. Input') + key_val_pair = [i for i in props if 'IP3, Ref. Input=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def max_intermod_order(self) -> int: + """Max Intermod Order + "Internal Rx Amplifier's maximum intermod order to compute." + "Value should be between 3 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Intermod Order') + key_val_pair = [i for i in props if 'Max Intermod Order=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py new file mode 100644 index 00000000000..b1b5d11414f --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py @@ -0,0 +1,115 @@ +from ..GenericEmitNode import * +class ReadOnlySamplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def sampling_type(self): + """Sampling Type + "Sampling to apply to this configuration." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Sampling Type') + key_val_pair = [i for i in props if 'Sampling Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class SamplingTypeOption(Enum): + SAMPLEALLCHANNELS = "Sample All Channels in Range(s)" + RANDOMSAMPLING = "Random Sampling" + UNIFORMSAMPLING = "Uniform Sampling" + + @property + def specify_percentage(self) -> bool: + """Specify Percentage + "Specify the number of channels to simulate via a percentage of the total available band channels." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Specify Percentage') + key_val_pair = [i for i in props if 'Specify Percentage=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def percentage_of_channels(self) -> float: + """Percentage of Channels + "Percentage of the Band Channels to simulate." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Percentage of Channels') + key_val_pair = [i for i in props if 'Percentage of Channels=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def max__channelsrangeband(self) -> int: + """Max # Channels/Range/Band + "Maximum number of Band Channels to simulate." + "Value should be between 1 and 100000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max # Channels/Range/Band') + key_val_pair = [i for i in props if 'Max # Channels/Range/Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def seed(self) -> int: + """Seed + "Seed for random channel generator." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Seed') + key_val_pair = [i for i in props if 'Seed=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def total_tx_channels(self) -> int: + """Total Tx Channels + "Total number of transmit channels this configuration is capable of operating on." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Tx Channels') + key_val_pair = [i for i in props if 'Total Tx Channels=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def total_rx_channels(self) -> int: + """Total Rx Channels + "Total number of receive channels this configuration is capable of operating on." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Rx Channels') + key_val_pair = [i for i in props if 'Total Rx Channels=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def warnings(self) -> str: + """Warnings + "Warning(s) for this node." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + key_val_pair = [i for i in props if 'Warnings=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py new file mode 100644 index 00000000000..516e86dbf5c --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py @@ -0,0 +1,129 @@ +from ..GenericEmitNode import * +class ReadOnlySceneGroupNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def show_relative_coordinates(self) -> bool: + """Show Relative Coordinates + "Show Scene Group position and orientation in parent-node coords (False) or relative to placement coords (True)." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Relative Coordinates') + key_val_pair = [i for i in props if 'Show Relative Coordinates=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def position(self): + """Position + "Set position of the Scene Group in parent-node coordinates." + "Value should be x/y/z, delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') + key_val_pair = [i for i in props if 'Position=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def relative_position(self): + """Relative Position + "Set position of the Scene Group relative to placement coordinates." + "Value should be x/y/z, delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Position') + key_val_pair = [i for i in props if 'Relative Position=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def orientation_mode(self): + """Orientation Mode + "Select the convention (order of rotations) for configuring orientation." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation Mode') + key_val_pair = [i for i in props if 'Orientation Mode=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class OrientationModeOption(Enum): + RPYDEG = "Roll-Pitch-Yaw" + AETDEG = "Az-El-Twist" + + @property + def orientation(self): + """Orientation + "Set orientation of the Scene Group relative to parent-node coordinates." + "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation') + key_val_pair = [i for i in props if 'Orientation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def relative_orientation(self): + """Relative Orientation + "Set orientation of the Scene Group relative to placement coordinates." + "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Orientation') + key_val_pair = [i for i in props if 'Relative Orientation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def show_axes(self) -> bool: + """Show Axes + "Toggle (on/off) display of Scene Group coordinate axes in 3-D window." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Axes') + key_val_pair = [i for i in props if 'Show Axes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def box_color(self): + """Box Color + "Set color of the bounding box of the Scene Group." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Box Color') + key_val_pair = [i for i in props if 'Box Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py new file mode 100644 index 00000000000..183fb3f2153 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py @@ -0,0 +1,62 @@ +from ..GenericEmitNode import * +class ReadOnlySolutionCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling (A sweep disabled in HFSS/Layout cannot be enabled in EMIT)." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def enable_refinement(self) -> bool: + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + key_val_pair = [i for i in props if 'Enable Refinement=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def adaptive_sampling(self) -> bool: + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + key_val_pair = [i for i in props if 'Refinement Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py new file mode 100644 index 00000000000..eb283f59a8c --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py @@ -0,0 +1,24 @@ +from ..GenericEmitNode import * +class ReadOnlySolutionsNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling (A setup disabled in HFSS/Layout cannot be enabled in EMIT)." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py new file mode 100644 index 00000000000..0f9e42d673d --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py @@ -0,0 +1,86 @@ +from ..GenericEmitNode import * +class ReadOnlySparameter(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def file(self) -> str: + """File + "S-Parameter file defining the component." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'File') + key_val_pair = [i for i in props if 'File=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def noise_temperature(self) -> float: + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + key_val_pair = [i for i in props if 'Noise Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def radio_side_ports(self): + """Radio Side Ports + "Assigns the child port nodes to the multiplexers ports." + "A list of values." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Radio Side Ports') + key_val_pair = [i for i in props if 'Radio Side Ports=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val.split('|') + class RadioSidePortsOption(Enum): + PORTNAMES = "::PortNames" + + @property + def antenna_side_ports(self): + """Antenna Side Ports + "Assigns the child port nodes to the multiplexers ports." + "A list of values." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna Side Ports') + key_val_pair = [i for i in props if 'Antenna Side Ports=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val.split('|') + class AntennaSidePortsOption(Enum): + PORTNAMES = "::PortNames" + + @property + def warnings(self) -> str: + """Warnings + "Warning(s) for this node." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + key_val_pair = [i for i in props if 'Warnings=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py new file mode 100644 index 00000000000..0911ff4649f --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -0,0 +1,191 @@ +from ..GenericEmitNode import * +class ReadOnlyTR_Switch(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def filename(self) -> str: + """Filename + "Name of file defining the outboard component." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + key_val_pair = [i for i in props if 'Filename=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def noise_temperature(self) -> float: + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + key_val_pair = [i for i in props if 'Noise Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def tx_port(self): + """Tx Port + "Specifies which port on the TR Switch is part of the Tx path.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx Port') + key_val_pair = [i for i in props if 'Tx Port=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class TxPortOption(Enum): + _0 = "Port 1" + _1 = "Port 2" + + @property + def common_port_location(self): + """Common Port Location + "Defines the orientation of the tr switch.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Common Port Location') + key_val_pair = [i for i in props if 'Common Port Location=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class CommonPortLocationOption(Enum): + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" + + @property + def insertion_loss(self) -> float: + """Insertion Loss + "TR Switch in-band loss in forward direction.." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') + key_val_pair = [i for i in props if 'Insertion Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def finite_isolation(self) -> bool: + """Finite Isolation + "Use a finite isolation. If disabled, the tr switch model is ideal (infinite isolation).." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Isolation') + key_val_pair = [i for i in props if 'Finite Isolation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def isolation(self) -> float: + """Isolation + "TR Switch reverse isolation (i.e., loss between the Tx/Rx ports).." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Isolation') + key_val_pair = [i for i in props if 'Isolation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def finite_bandwidth(self) -> bool: + """Finite Bandwidth + "Use a finite bandwidth. If disabled, the tr switch model is ideal (infinite bandwidth).." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Bandwidth') + key_val_pair = [i for i in props if 'Finite Bandwidth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def out_of_band_attenuation(self) -> float: + """Out-of-band Attenuation + "Out-of-band loss (attenuation)." + "Value should be between 0 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out-of-band Attenuation') + key_val_pair = [i for i in props if 'Out-of-band Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def lower_stop_band(self) -> float: + """Lower Stop Band + "Lower stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') + key_val_pair = [i for i in props if 'Lower Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def lower_cutoff(self) -> float: + """Lower Cutoff + "Lower cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') + key_val_pair = [i for i in props if 'Lower Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def higher_cutoff(self) -> float: + """Higher Cutoff + "Higher cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') + key_val_pair = [i for i in props if 'Higher Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def higher_stop_band(self) -> float: + """Higher Stop Band + "Higher stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') + key_val_pair = [i for i in props if 'Higher Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py new file mode 100644 index 00000000000..fd9070e0f93 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py @@ -0,0 +1,99 @@ +from ..GenericEmitNode import * +class ReadOnlyTerminator(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def filename(self) -> str: + """Filename + "Name of file defining the Terminator." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + key_val_pair = [i for i in props if 'Filename=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def noise_temperature(self) -> float: + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + key_val_pair = [i for i in props if 'Noise Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def type(self): + """Type + "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + key_val_pair = [i for i in props if 'Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class TypeOption(Enum): + BYFILE = "By File" + PARAMETRIC = "Parametric" + + @property + def port_location(self): + """Port Location + "Defines the orientation of the terminator.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port Location') + key_val_pair = [i for i in props if 'Port Location=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class PortLocationOption(Enum): + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" + + @property + def vswr(self) -> float: + """VSWR + "The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch between the terminator and the connected component (RF System, Antenna, etc)." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'VSWR') + key_val_pair = [i for i in props if 'VSWR=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def warnings(self) -> str: + """Warnings + "Warning(s) for this node." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + key_val_pair = [i for i in props if 'Warnings=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py new file mode 100644 index 00000000000..648de4d2d75 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py @@ -0,0 +1,112 @@ +from ..GenericEmitNode import * +class ReadOnlyTouchstoneCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def enable_refinement(self) -> bool: + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + key_val_pair = [i for i in props if 'Enable Refinement=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def adaptive_sampling(self) -> bool: + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + key_val_pair = [i for i in props if 'Refinement Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def filename(self) -> str: + """Filename + "Name of file with coupling data.." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + key_val_pair = [i for i in props if 'Filename=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def savant_matched_coupling_file(self) -> str: + """Savant Matched Coupling File + "Coupling data generated by Savant and exported as a matched file." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Savant Matched Coupling File') + key_val_pair = [i for i in props if 'Savant Matched Coupling File=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def enable_em_isolation(self) -> bool: + """Enable EM Isolation + "Enables/disables EM isolation." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable EM Isolation') + key_val_pair = [i for i in props if 'Enable EM Isolation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py new file mode 100644 index 00000000000..426adca64e3 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py @@ -0,0 +1,274 @@ +from ..GenericEmitNode import * +class ReadOnlyTwoRayPathLossCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def enable_refinement(self) -> bool: + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + key_val_pair = [i for i in props if 'Enable Refinement=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def adaptive_sampling(self) -> bool: + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + key_val_pair = [i for i in props if 'Refinement Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def ground_reflection_coeff(self) -> float: + """Ground Reflection Coeff. + "The ground reflection coefficient." + "Value should be between -100 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Ground Reflection Coeff.') + key_val_pair = [i for i in props if 'Ground Reflection Coeff.=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def pointspeak(self) -> int: + """Points/Peak + "Number of points used to model each peak in frequency vs loss curve." + "Value should be between 3 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Points/Peak') + key_val_pair = [i for i in props if 'Points/Peak=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def custom_fading_margin(self) -> float: + """Custom Fading Margin + "Sets a custom fading margin to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') + key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def polarization_mismatch(self) -> float: + """Polarization Mismatch + "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') + key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def pointing_error_loss(self) -> float: + """Pointing Error Loss + "Sets a margin for pointing error loss to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') + key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def fading_type(self): + """Fading Type + "Specify the type of fading to include." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') + key_val_pair = [i for i in props if 'Fading Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class FadingTypeOption(Enum): + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + + @property + def fading_availability(self) -> float: + """Fading Availability + "The probability that the propagation loss in dB is below its median value plus the margin." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') + key_val_pair = [i for i in props if 'Fading Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def std_deviation(self) -> float: + """Std Deviation + "Standard deviation modeling the random amount of shadowing loss." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') + key_val_pair = [i for i in props if 'Std Deviation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def include_rain_attenuation(self) -> bool: + """Include Rain Attenuation + "Adds a margin for rain attenuation to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') + key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def rain_availability(self) -> float: + """Rain Availability + "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." + "Value should be between 99 and 99.999." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') + key_val_pair = [i for i in props if 'Rain Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def rain_rate(self) -> float: + """Rain Rate + "Rain rate (mm/hr) exceeded for 0.01% of the time." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') + key_val_pair = [i for i in props if 'Rain Rate=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def polarization_tilt_angle(self) -> float: + """Polarization Tilt Angle + "Polarization tilt angle of the transmitted signal relative to the horizontal." + "Value should be between 0 and 180." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') + key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def include_atmospheric_absorption(self) -> bool: + """Include Atmospheric Absorption + "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') + key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def temperature(self) -> float: + """Temperature + "Air temperature in degrees Celsius." + "Value should be between -273 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') + key_val_pair = [i for i in props if 'Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def total_air_pressure(self) -> float: + """Total Air Pressure + "Total air pressure." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') + key_val_pair = [i for i in props if 'Total Air Pressure=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def water_vapor_concentration(self) -> float: + """Water Vapor Concentration + "Water vapor concentration." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') + key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py new file mode 100644 index 00000000000..8c5bf7f8d96 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py @@ -0,0 +1,52 @@ +from ..GenericEmitNode import * +class ReadOnlyTxBbEmissionNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def table_data(self): + """Tx Broadband Noise Profile Table" + "Table consists of 2 columns." + "Frequency (MHz): + " Value should be a mathematical expression." + "Amplitude (dBm/Hz): + " Value should be between -200 and 150." + """ + return self._get_table_data() + + @property + def noise_behavior(self): + """Noise Behavior + "Specifies the behavior of the parametric noise profile." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Behavior') + key_val_pair = [i for i in props if 'Noise Behavior=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class NoiseBehaviorOption(Enum): + ABSOLUTE = "Absolute" + RELATIVEBANDWIDTH = "Relative (Bandwidth)" + RELATIVEOFFSET = "Relative (Offset)" + BROADBANDEQUATION = "Equation" + + @property + def use_log_linear_interpolation(self) -> bool: + """Use Log-Linear Interpolation + "If true, linear interpolation in the log domain is used. If false, linear interpolation in the linear domain is used.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Log-Linear Interpolation') + key_val_pair = [i for i in props if 'Use Log-Linear Interpolation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py new file mode 100644 index 00000000000..ab0ae15dd21 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py @@ -0,0 +1,26 @@ +from ..GenericEmitNode import * +class ReadOnlyTxHarmonicNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def harmonic_table_units(self): + """Harmonic Table Units + "Specifies the units for the Harmonics." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Table Units') + key_val_pair = [i for i in props if 'Harmonic Table Units=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class HarmonicTableUnitsOption(Enum): + ABSOLUTE = "Absolute" + RELATIVE = "Relative" + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py new file mode 100644 index 00000000000..2b5cf277fb9 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py @@ -0,0 +1,101 @@ +from ..GenericEmitNode import * +class ReadOnlyTxMeasNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def file(self) -> str: + """File + "Name of the measurement source." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'File') + key_val_pair = [i for i in props if 'File=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def source_file(self) -> str: + """Source File + "Name of the measurement source." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Source File') + key_val_pair = [i for i in props if 'Source File=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def transmit_frequency(self) -> float: + """Transmit Frequency + "Channel associated with the measurement file." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Transmit Frequency') + key_val_pair = [i for i in props if 'Transmit Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def use_ams_limits(self) -> bool: + """Use AMS Limits + "Allow AMS to define the frequency limits for the measurements." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use AMS Limits') + key_val_pair = [i for i in props if 'Use AMS Limits=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def start_frequency(self) -> float: + """Start Frequency + "Starting frequency for the measurement sweep." + "Value should be greater than 1e+06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Start Frequency') + key_val_pair = [i for i in props if 'Start Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def stop_frequency(self) -> float: + """Stop Frequency + "Stopping frequency for the measurement sweep." + "Value should be less than 6e+09." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop Frequency') + key_val_pair = [i for i in props if 'Stop Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def exclude_harmonics_below_noise(self) -> bool: + """Exclude Harmonics Below Noise + "Include/Exclude Harmonics below the noise." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Exclude Harmonics Below Noise') + key_val_pair = [i for i in props if 'Exclude Harmonics Below Noise=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py new file mode 100644 index 00000000000..0098051971e --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py @@ -0,0 +1,38 @@ +from ..GenericEmitNode import * +class ReadOnlyTxNbEmissionNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def narrowband_behavior(self): + """Narrowband Behavior + "Specifies the behavior of the parametric narrowband emissions mask." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Narrowband Behavior') + key_val_pair = [i for i in props if 'Narrowband Behavior=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class NarrowbandBehaviorOption(Enum): + ABSOLUTE = "Absolute Freqs and Power" + RELATIVEBANDWIDTH = "Relative Freqs and Attenuation" + + @property + def measurement_frequency(self) -> float: + """Measurement Frequency + "Measurement frequency for the absolute freq/amp pairs.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measurement Frequency') + key_val_pair = [i for i in props if 'Measurement Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py new file mode 100644 index 00000000000..c7e2ebb4cfd --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py @@ -0,0 +1,330 @@ +from ..GenericEmitNode import * +class ReadOnlyTxSpectralProfNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def spectrum_type(self): + """Spectrum Type + "Specifies EMI Margins to calculate." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spectrum Type') + key_val_pair = [i for i in props if 'Spectrum Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class SpectrumTypeOption(Enum): + BOTH = "Narrowband & Broadband" + BROADBANDONLY = "Broadband Only" + + @property + def tx_power(self): + """Tx Power + "Method used to specify the power." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx Power') + key_val_pair = [i for i in props if 'Tx Power=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class TxPowerOption(Enum): + PEAK_POWER = "Peak Power" + AVERAGE_POWER = "Average Power" + + @property + def peak_power(self) -> float: + """Peak Power + "Tx's carrier frequency peak power." + "Value should be between -1000 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Peak Power') + key_val_pair = [i for i in props if 'Peak Power=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def average_power(self) -> float: + """Average Power + "Tx's fundamental level specified by average power." + "Value should be between -1000 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Average Power') + key_val_pair = [i for i in props if 'Average Power=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def output_voltage_peak(self) -> float: + """Output Voltage Peak + "Output High Voltage Level: maximum voltage of the digital signal." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Voltage Peak') + key_val_pair = [i for i in props if 'Output Voltage Peak=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def include_phase_noise(self) -> bool: + """Include Phase Noise + "Include oscillator phase noise in Tx spectral profile." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Phase Noise') + key_val_pair = [i for i in props if 'Include Phase Noise=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def tx_broadband_noise(self) -> float: + """Tx Broadband Noise + "Transmitters broadband noise level." + "Value should be less than 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx Broadband Noise') + key_val_pair = [i for i in props if 'Tx Broadband Noise=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def harmonic_taper(self): + """Harmonic Taper + "Taper type used to set amplitude of harmonics." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Taper') + key_val_pair = [i for i in props if 'Harmonic Taper=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class HarmonicTaperOption(Enum): + CONSTANT = "Constant" + MIL_STD_461G = "MIL-STD-461G" + MIL_STD_461G_NAVY = "MIL-STD-461G Navy" + DUFF_MODEL = "Duff Model" + + @property + def harmonic_amplitude(self) -> float: + """Harmonic Amplitude + "Amplitude (relative to the carrier power) of harmonics." + "Value should be between -1000 and 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Amplitude') + key_val_pair = [i for i in props if 'Harmonic Amplitude=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def harmonic_slope(self) -> float: + """Harmonic Slope + "Rate of decrease for harmonics' amplitudes (dB/decade)." + "Value should be between -1000 and 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Slope') + key_val_pair = [i for i in props if 'Harmonic Slope=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def harmonic_intercept(self) -> float: + """Harmonic Intercept + "Amplitude intercept at the fundamental (dBc)." + "Value should be between -1000 and 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Intercept') + key_val_pair = [i for i in props if 'Harmonic Intercept=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def enable_harmonic_bw_expansion(self) -> bool: + """Enable Harmonic BW Expansion + "If (True), bandwidth of harmonics increases proportional to the harmonic number." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Harmonic BW Expansion') + key_val_pair = [i for i in props if 'Enable Harmonic BW Expansion=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def number_of_harmonics(self) -> int: + """Number of Harmonics + "Maximum number of harmonics modeled." + "Value should be between 1 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Harmonics') + key_val_pair = [i for i in props if 'Number of Harmonics=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def _2nd_harmonic_level(self) -> float: + """2nd Harmonic Level + "Amplitude (relative to the carrier power) of the 2nd harmonic." + "Value should be between -1000 and 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'2nd Harmonic Level') + key_val_pair = [i for i in props if '2nd Harmonic Level=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def _3rd_harmonic_level(self) -> float: + """3rd Harmonic Level + "Amplitude (relative to the carrier power) of the 3rd harmonic." + "Value should be between -1000 and 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'3rd Harmonic Level') + key_val_pair = [i for i in props if '3rd Harmonic Level=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def other_harmonic_levels(self) -> float: + """Other Harmonic Levels + "Amplitude (relative to the carrier power) of the higher order harmonics." + "Value should be between -1000 and 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Other Harmonic Levels') + key_val_pair = [i for i in props if 'Other Harmonic Levels=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def perform_tx_intermod_analysis(self) -> bool: + """Perform Tx Intermod Analysis + "Performs a non-linear intermod analysis for the Tx." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Perform Tx Intermod Analysis') + key_val_pair = [i for i in props if 'Perform Tx Intermod Analysis=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def internal_amp_gain(self) -> float: + """Internal Amp Gain + "Internal Tx Amplifier's Gain." + "Value should be between -1000 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Internal Amp Gain') + key_val_pair = [i for i in props if 'Internal Amp Gain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def noise_figure(self) -> float: + """Noise Figure + "Internal Tx Amplifier's noise figure." + "Value should be between 0 and 50." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Figure') + key_val_pair = [i for i in props if 'Noise Figure=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def amplifier_saturation_level(self) -> float: + """Amplifier Saturation Level + "Internal Tx Amplifier's Saturation Level." + "Value should be between -200 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplifier Saturation Level') + key_val_pair = [i for i in props if 'Amplifier Saturation Level=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def _1_db_point_ref_input_(self) -> float: + """1-dB Point, Ref. Input + "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." + "Value should be between -200 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'1-dB Point, Ref. Input ') + key_val_pair = [i for i in props if '1-dB Point, Ref. Input =' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def ip3_ref_input(self) -> float: + """IP3, Ref. Input + "Internal Tx Amplifier's 3rd order intercept point." + "Value should be between -200 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'IP3, Ref. Input') + key_val_pair = [i for i in props if 'IP3, Ref. Input=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def reverse_isolation(self) -> float: + """Reverse Isolation + "Internal Tx Amplifier's Reverse Isolation." + "Value should be between -200 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reverse Isolation') + key_val_pair = [i for i in props if 'Reverse Isolation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def max_intermod_order(self) -> int: + """Max Intermod Order + "Internal Tx Amplifier's maximum intermod order to compute." + "Value should be between 3 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Intermod Order') + key_val_pair = [i for i in props if 'Max Intermod Order=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py new file mode 100644 index 00000000000..82c9a4211ff --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py @@ -0,0 +1,26 @@ +from ..GenericEmitNode import * +class ReadOnlyTxSpurNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def spur_table_units(self): + """Spur Table Units + "Specifies the units for the Spurs." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spur Table Units') + key_val_pair = [i for i in props if 'Spur Table Units=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class SpurTableUnitsOption(Enum): + ABSOLUTE = "Absolute" + RELATIVE = "Relative" + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py new file mode 100644 index 00000000000..64ef7f784c0 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py @@ -0,0 +1,330 @@ +from ..GenericEmitNode import * +class ReadOnlyWalfischCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def enable_refinement(self) -> bool: + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + key_val_pair = [i for i in props if 'Enable Refinement=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def adaptive_sampling(self) -> bool: + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + key_val_pair = [i for i in props if 'Refinement Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def path_loss_type(self): + """Path Loss Type + "Specify LOS vs NLOS for the Walfisch-Ikegami model." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Path Loss Type') + key_val_pair = [i for i in props if 'Path Loss Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class PathLossTypeOption(Enum): + WALFISCHLOS = "LOS (Urban Canyon)" + WALFISCHNLOS = "NLOS" + + @property + def environment(self): + """Environment + "Specify the environment type for the Walfisch model." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Environment') + key_val_pair = [i for i in props if 'Environment=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class EnvironmentOption(Enum): + DENSEMETROAREA = "Dense Metro" + SMALLURBANORSUBURBAN = "Small/Medium City or Suburban" + + @property + def roof_height(self) -> float: + """Roof Height + "The height of the building where the antenna is located.." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Roof Height') + key_val_pair = [i for i in props if 'Roof Height=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def distance_between_buildings(self) -> float: + """Distance Between Buildings + "The distance between two buildings.." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Distance Between Buildings') + key_val_pair = [i for i in props if 'Distance Between Buildings=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def street_width(self) -> float: + """Street Width + "Width of the street.." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Street Width') + key_val_pair = [i for i in props if 'Street Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def incidence_angle(self) -> float: + """Incidence Angle + "Angle between the street orientation and direction of incidence.." + "Value should be between 0 and 90." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Incidence Angle') + key_val_pair = [i for i in props if 'Incidence Angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def custom_fading_margin(self) -> float: + """Custom Fading Margin + "Sets a custom fading margin to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') + key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def polarization_mismatch(self) -> float: + """Polarization Mismatch + "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') + key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def pointing_error_loss(self) -> float: + """Pointing Error Loss + "Sets a margin for pointing error loss to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') + key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def fading_type(self): + """Fading Type + "Specify the type of fading to include." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') + key_val_pair = [i for i in props if 'Fading Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + class FadingTypeOption(Enum): + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + + @property + def fading_availability(self) -> float: + """Fading Availability + "The probability that the propagation loss in dB is below its median value plus the margin." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') + key_val_pair = [i for i in props if 'Fading Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def std_deviation(self) -> float: + """Std Deviation + "Standard deviation modeling the random amount of shadowing loss." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') + key_val_pair = [i for i in props if 'Std Deviation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def include_rain_attenuation(self) -> bool: + """Include Rain Attenuation + "Adds a margin for rain attenuation to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') + key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def rain_availability(self) -> float: + """Rain Availability + "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." + "Value should be between 99 and 99.999." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') + key_val_pair = [i for i in props if 'Rain Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def rain_rate(self) -> float: + """Rain Rate + "Rain rate (mm/hr) exceeded for 0.01% of the time." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') + key_val_pair = [i for i in props if 'Rain Rate=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def polarization_tilt_angle(self) -> float: + """Polarization Tilt Angle + "Polarization tilt angle of the transmitted signal relative to the horizontal." + "Value should be between 0 and 180." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') + key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def include_atmospheric_absorption(self) -> bool: + """Include Atmospheric Absorption + "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') + key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def temperature(self) -> float: + """Temperature + "Air temperature in degrees Celsius." + "Value should be between -273 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') + key_val_pair = [i for i in props if 'Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def total_air_pressure(self) -> float: + """Total Air Pressure + "Total air pressure." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') + key_val_pair = [i for i in props if 'Total Air Pressure=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def water_vapor_concentration(self) -> float: + """Water Vapor Concentration + "Water vapor concentration." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') + key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py new file mode 100644 index 00000000000..80d011e467b --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py @@ -0,0 +1,488 @@ +from ..GenericEmitNode import * +class ResultPlotNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def add_marker(self): + """Add an icon and/or label to this plot""" + return self._add_child_node("PlotMarkerNode") + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + @property + def title(self) -> str: + """Title + "Enter title at the top of the plot, room will be made for it." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Title') + key_val_pair = [i for i in props if 'Title=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @title.setter + def title(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Title=' + value]) + + @property + def title_font(self): + """Title Font + "Configure title font family, typeface, and size." + "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Title Font') + key_val_pair = [i for i in props if 'Title Font=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @title_font.setter + def title_font(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Title Font=' + value]) + + @property + def show_legend(self) -> bool: + """Show Legend + "Toggle (on/off) display of plot legend." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Legend') + key_val_pair = [i for i in props if 'Show Legend=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @show_legend.setter + def show_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Legend=' + value]) + + @property + def legend_font(self): + """Legend Font + "Configure legend font family, typeface, and size." + "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Legend Font') + key_val_pair = [i for i in props if 'Legend Font=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @legend_font.setter + def legend_font(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Legend Font=' + value]) + + @property + def show_emi_thresholds(self) -> bool: + """Show EMI Thresholds + "Toggles on/off visibility of the EMI Thresholds." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show EMI Thresholds') + key_val_pair = [i for i in props if 'Show EMI Thresholds=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @show_emi_thresholds.setter + def show_emi_thresholds(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show EMI Thresholds=' + value]) + + @property + def display_cad_overlay(self) -> bool: + """Display CAD Overlay + "Toggle on/off overlay of CAD model in plot." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Display CAD Overlay') + key_val_pair = [i for i in props if 'Display CAD Overlay=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @display_cad_overlay.setter + def display_cad_overlay(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Display CAD Overlay=' + value]) + + @property + def opacity(self) -> float: + """Opacity + "Adjust opacity of CAD model overlay: 0 Transparent - 1 Opaque." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Opacity') + key_val_pair = [i for i in props if 'Opacity=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @opacity.setter + def opacity(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Opacity=' + value]) + + @property + def vertical_offset(self) -> float: + """Vertical Offset + "Adjust vertical position of CAD model overlay." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Vertical Offset') + key_val_pair = [i for i in props if 'Vertical Offset=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @vertical_offset.setter + def vertical_offset(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Vertical Offset=' + value]) + + @property + def range_axis_rotation(self) -> float: + """Range Axis Rotation + "Adjust view angle for CAD model overlay by rotating it about plot horizontal axis." + "Value should be between -180 and 180." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Range Axis Rotation') + key_val_pair = [i for i in props if 'Range Axis Rotation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @range_axis_rotation.setter + def range_axis_rotation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Range Axis Rotation=' + value]) + + @property + def lock_axes(self) -> bool: + """Lock Axes + "Allow or prevent changing of axes when displayed plot traces are updated." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lock Axes') + key_val_pair = [i for i in props if 'Lock Axes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @lock_axes.setter + def lock_axes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lock Axes=' + value]) + + @property + def x_axis_min(self) -> float: + """X-axis Min + "Set lower extent of horizontal axis." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X-axis Min') + key_val_pair = [i for i in props if 'X-axis Min=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @x_axis_min.setter + def x_axis_min(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['X-axis Min=' + value]) + + @property + def x_axis_max(self) -> float: + """X-axis Max + "Set upper extent of horizontal axis." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X-axis Max') + key_val_pair = [i for i in props if 'X-axis Max=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @x_axis_max.setter + def x_axis_max(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['X-axis Max=' + value]) + + @property + def y_axis_min(self) -> float: + """Y-axis Min + "Set lower extent of vertical axis." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y-axis Min') + key_val_pair = [i for i in props if 'Y-axis Min=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @y_axis_min.setter + def y_axis_min(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y-axis Min=' + value]) + + @property + def y_axis_max(self) -> float: + """Y-axis Max + "Set upper extent of vertical axis." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y-axis Max') + key_val_pair = [i for i in props if 'Y-axis Max=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @y_axis_max.setter + def y_axis_max(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y-axis Max=' + value]) + + @property + def y_axis_range(self) -> float: + """Y-axis Range + "Adjust dB span of vertical axis, makes corresponding adjustment in Y-axis Min." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y-axis Range') + key_val_pair = [i for i in props if 'Y-axis Range=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @y_axis_range.setter + def y_axis_range(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y-axis Range=' + value]) + + @property + def max_major_ticks(self) -> int: + """Max Major Ticks + "Set maximum number of major tick-mark intervals along horizontal axis." + "Value should be between 1 and 30." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Major Ticks') + key_val_pair = [i for i in props if 'Max Major Ticks=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @max_major_ticks.setter + def max_major_ticks(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) + + @property + def max_minor_ticks(self) -> int: + """Max Minor Ticks + "Set maximum number of minor tick-mark intervals between major ticks along horizontal axis." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Minor Ticks') + key_val_pair = [i for i in props if 'Max Minor Ticks=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @max_minor_ticks.setter + def max_minor_ticks(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) + + @property + def max_major_ticks(self) -> int: + """Max Major Ticks + "Set maximum number of major tick-mark intervals along vertical axis." + "Value should be between 1 and 30." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Major Ticks') + key_val_pair = [i for i in props if 'Max Major Ticks=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @max_major_ticks.setter + def max_major_ticks(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) + + @property + def max_minor_ticks(self) -> int: + """Max Minor Ticks + "Set maximum number of minor tick-mark intervals between major ticks along vertical axis." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Minor Ticks') + key_val_pair = [i for i in props if 'Max Minor Ticks=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @max_minor_ticks.setter + def max_minor_ticks(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) + + @property + def axis_label_font(self): + """Axis Label Font + "Configure axis text labels font family, typeface, and size." + "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Axis Label Font') + key_val_pair = [i for i in props if 'Axis Label Font=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @axis_label_font.setter + def axis_label_font(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Axis Label Font=' + value]) + + @property + def axis_tick_label_font(self): + """Axis Tick Label Font + "Configure axis tick numeric labels font family, typeface, and size." + "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Axis Tick Label Font') + key_val_pair = [i for i in props if 'Axis Tick Label Font=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @axis_tick_label_font.setter + def axis_tick_label_font(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Axis Tick Label Font=' + value]) + + @property + def major_grid_line_style(self): + """Major Grid Line Style + "Select line style of major-tick grid lines." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Major Grid Line Style') + key_val_pair = [i for i in props if 'Major Grid Line Style=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @major_grid_line_style.setter + def major_grid_line_style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Major Grid Line Style=' + value]) + class MajorGridLineStyleOption(Enum): + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + + @property + def major_grid_color(self): + """Major Grid Color + "Set color of major-tick grid lines." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Major Grid Color') + key_val_pair = [i for i in props if 'Major Grid Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @major_grid_color.setter + def major_grid_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Major Grid Color=' + value]) + + @property + def minor_grid_line_style(self): + """Minor Grid Line Style + "Select line style of minor-tick grid lines." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minor Grid Line Style') + key_val_pair = [i for i in props if 'Minor Grid Line Style=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @minor_grid_line_style.setter + def minor_grid_line_style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Minor Grid Line Style=' + value]) + class MinorGridLineStyleOption(Enum): + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + + @property + def minor_grid_color(self): + """Minor Grid Color + "Set color of minor-tick grid lines." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minor Grid Color') + key_val_pair = [i for i in props if 'Minor Grid Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @minor_grid_color.setter + def minor_grid_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Minor Grid Color=' + value]) + + @property + def background_color(self): + """Background Color + "Set background color of entire plot." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Background Color') + key_val_pair = [i for i in props if 'Background Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @background_color.setter + def background_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Background Color=' + value]) + + @property + def bb_power_for_plots_unit(self): + """BB Power for Plots Unit + "Units to use for plotting broadband power densities." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BB Power for Plots Unit') + key_val_pair = [i for i in props if 'BB Power for Plots Unit=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @bb_power_for_plots_unit.setter + def bb_power_for_plots_unit(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['BB Power for Plots Unit=' + value]) + class BBPowerforPlotsUnitOption(Enum): + HERTZ = "hertz" + KILOHERTZ = "kilohertz" + MEGAHERTZ = "megahertz" + GIGAHERTZ = "gigahertz" + + @property + def bb_power_bandwidth(self) -> float: + """BB Power Bandwidth + "Resolution bandwidth for broadband power." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BB Power Bandwidth') + key_val_pair = [i for i in props if 'BB Power Bandwidth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @bb_power_bandwidth.setter + def bb_power_bandwidth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['BB Power Bandwidth=' + value]) + + @property + def log_scale(self) -> bool: + """Log Scale + "Toggles on/off using a log scale for the X-Axis." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Log Scale') + key_val_pair = [i for i in props if 'Log Scale=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @log_scale.setter + def log_scale(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Log Scale=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py new file mode 100644 index 00000000000..473a3eebbef --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py @@ -0,0 +1,43 @@ +from ..GenericEmitNode import * +class RfSystemGroup(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def enable_passive_noise(self) -> bool: + """Enable Passive Noise + "If true, the noise contributions of antennas and passive components are included in cosite simulation. Note: Antenna and passive component noise is always included in link analysis simulation.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Passive Noise') + key_val_pair = [i for i in props if 'Enable Passive Noise=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enable_passive_noise.setter + def enable_passive_noise(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Passive Noise=' + value]) + + @property + def enforce_thermal_noise_floor(self) -> bool: + """Enforce Thermal Noise Floor + "If true, all broadband noise is limited by the thermal noise floor (-174 dBm/Hz)." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enforce Thermal Noise Floor') + key_val_pair = [i for i in props if 'Enforce Thermal Noise Floor=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enforce_thermal_noise_floor.setter + def enforce_thermal_noise_floor(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enforce Thermal Noise Floor=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py new file mode 100644 index 00000000000..b248de2a42b --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py @@ -0,0 +1,372 @@ +from ..GenericEmitNode import * +class RxMeasNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def file(self) -> str: + """File + "Name of the measurement source." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'File') + key_val_pair = [i for i in props if 'File=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def source_file(self) -> str: + """Source File + "Name of the measurement source." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Source File') + key_val_pair = [i for i in props if 'Source File=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def receive_frequency(self) -> float: + """Receive Frequency + "Channel associated with the measurement file." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Receive Frequency') + key_val_pair = [i for i in props if 'Receive Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def measurement_mode(self): + """Measurement Mode + "Defines the mode for the receiver measurement." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measurement Mode') + key_val_pair = [i for i in props if 'Measurement Mode=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @measurement_mode.setter + def measurement_mode(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Measurement Mode=' + value]) + class MeasurementModeOption(Enum): + AUDIO_SINAD = "Audio SINAD" + DIGITAL_BER = "Digital BER" + GPS_CNR = "GPS CNR" + + @property + def sinad_threshold(self) -> float: + """SINAD Threshold + "SINAD Threshold used for the receiver measurements." + "Value should be between 5 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'SINAD Threshold') + key_val_pair = [i for i in props if 'SINAD Threshold=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @sinad_threshold.setter + def sinad_threshold(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['SINAD Threshold=' + value]) + + @property + def gps_cnr_threshold(self) -> float: + """GPS CNR Threshold + "GPS CNR Threshold used for the receiver measurements." + "Value should be between 15 and 30." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'GPS CNR Threshold') + key_val_pair = [i for i in props if 'GPS CNR Threshold=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @gps_cnr_threshold.setter + def gps_cnr_threshold(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['GPS CNR Threshold=' + value]) + + @property + def ber_threshold(self) -> float: + """BER Threshold + "BER Threshold used for the receiver measurements." + "Value should be between -12 and -1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BER Threshold') + key_val_pair = [i for i in props if 'BER Threshold=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @ber_threshold.setter + def ber_threshold(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['BER Threshold=' + value]) + + @property + def default_intended_power(self) -> bool: + """Default Intended Power + "Specify the intended signal." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Default Intended Power') + key_val_pair = [i for i in props if 'Default Intended Power=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @default_intended_power.setter + def default_intended_power(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Default Intended Power=' + value]) + + @property + def intended_signal_power(self) -> float: + """Intended Signal Power + "Specify the power level of the intended signal." + "Value should be between -140 and -50." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Intended Signal Power') + key_val_pair = [i for i in props if 'Intended Signal Power=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @intended_signal_power.setter + def intended_signal_power(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Intended Signal Power=' + value]) + + @property + def freq_deviation(self) -> float: + """Freq. Deviation + "Specify the frequency deviation of the intended signal." + "Value should be between 1000 and 200000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Freq. Deviation') + key_val_pair = [i for i in props if 'Freq. Deviation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @freq_deviation.setter + def freq_deviation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Freq. Deviation=' + value]) + + @property + def modulation_depth(self) -> float: + """Modulation Depth + "Specify the modulation depth of the intended signal." + "Value should be between 10 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Modulation Depth') + key_val_pair = [i for i in props if 'Modulation Depth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @modulation_depth.setter + def modulation_depth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Modulation Depth=' + value]) + + @property + def measure_selectivity(self) -> bool: + """Measure Selectivity + "Enable/disable the measurement of the receiver's selectivity." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measure Selectivity') + key_val_pair = [i for i in props if 'Measure Selectivity=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @measure_selectivity.setter + def measure_selectivity(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Measure Selectivity=' + value]) + + @property + def measure_mixer_products(self) -> bool: + """Measure Mixer Products + "Enable/disable the measurement of the receiver's mixer products." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measure Mixer Products') + key_val_pair = [i for i in props if 'Measure Mixer Products=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @measure_mixer_products.setter + def measure_mixer_products(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Measure Mixer Products=' + value]) + + @property + def max_rf_order(self) -> int: + """Max RF Order + "Max RF Order of the mixer products to measure." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max RF Order') + key_val_pair = [i for i in props if 'Max RF Order=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @max_rf_order.setter + def max_rf_order(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max RF Order=' + value]) + + @property + def max_lo_order(self) -> int: + """Max LO Order + "Max LO Order of the mixer products to measure." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max LO Order') + key_val_pair = [i for i in props if 'Max LO Order=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @max_lo_order.setter + def max_lo_order(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max LO Order=' + value]) + + @property + def include_if(self) -> bool: + """Include IF + "Enable/disable the measurement of the IF channel." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include IF') + key_val_pair = [i for i in props if 'Include IF=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @include_if.setter + def include_if(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include IF=' + value]) + + @property + def measure_saturation(self) -> bool: + """Measure Saturation + "Enable/disable measurement of the receiver's saturation level." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measure Saturation') + key_val_pair = [i for i in props if 'Measure Saturation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @measure_saturation.setter + def measure_saturation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Measure Saturation=' + value]) + + @property + def use_ams_limits(self) -> bool: + """Use AMS Limits + "Allow AMS to determine the limits for measuring saturation." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use AMS Limits') + key_val_pair = [i for i in props if 'Use AMS Limits=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @use_ams_limits.setter + def use_ams_limits(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use AMS Limits=' + value]) + + @property + def start_frequency(self) -> float: + """Start Frequency + "Starting frequency for the measurement sweep." + "Value should be greater than 1e+06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Start Frequency') + key_val_pair = [i for i in props if 'Start Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @start_frequency.setter + def start_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Start Frequency=' + value]) + + @property + def stop_frequency(self) -> float: + """Stop Frequency + "Stopping frequency for the measurement sweep." + "Value should be less than 6e+09." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop Frequency') + key_val_pair = [i for i in props if 'Stop Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @stop_frequency.setter + def stop_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Stop Frequency=' + value]) + + @property + def samples(self) -> int: + """Samples + "Number of measurement samples for each frequency." + "Value should be between 2 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Samples') + key_val_pair = [i for i in props if 'Samples=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @samples.setter + def samples(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Samples=' + value]) + + @property + def exclude_mixer_products_below_noise(self) -> bool: + """Exclude Mixer Products Below Noise + "Include/Exclude Mixer Products below the noise." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Exclude Mixer Products Below Noise') + key_val_pair = [i for i in props if 'Exclude Mixer Products Below Noise=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @exclude_mixer_products_below_noise.setter + def exclude_mixer_products_below_noise(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Exclude Mixer Products Below Noise=' + value]) + + @property + def enabled(self): + """Enabled state for this node.""" + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + @enabled.setter + def enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py new file mode 100644 index 00000000000..82dafa79b04 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py @@ -0,0 +1,292 @@ +from ..GenericEmitNode import * +class RxMixerProductNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def import_csv_file(self, file_name): + """Import a CSV File...""" + return self._import(file_name,'Csv') + + def delete(self): + """Delete this node""" + self._delete() + + @property + def enabled(self): + """Enabled state for this node.""" + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + @enabled.setter + def enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + + @property + def mixer_product_taper(self): + """Mixer Product Taper + "Taper for setting amplitude of mixer products." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Taper') + key_val_pair = [i for i in props if 'Mixer Product Taper=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @mixer_product_taper.setter + def mixer_product_taper(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mixer Product Taper=' + value]) + class MixerProductTaperOption(Enum): + CONSTANT = "Constant" + MIL_STD_461G = "MIL-STD-461G" + DUFF_MODEL = "Duff Model" + + @property + def mixer_product_susceptibility(self) -> float: + """Mixer Product Susceptibility + "Mixer product amplitudes (relative to the in-band susceptibility)." + "Value should be between -200 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Susceptibility') + key_val_pair = [i for i in props if 'Mixer Product Susceptibility=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @mixer_product_susceptibility.setter + def mixer_product_susceptibility(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mixer Product Susceptibility=' + value]) + + @property + def spurious_rejection(self) -> float: + """Spurious Rejection + "Mixer product amplitudes (relative to the in-band susceptibility)." + "Value should be between -200 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spurious Rejection') + key_val_pair = [i for i in props if 'Spurious Rejection=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @spurious_rejection.setter + def spurious_rejection(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Spurious Rejection=' + value]) + + @property + def minimum_tuning_frequency(self) -> float: + """Minimum Tuning Frequency + "Minimum tuning frequency of Rx's local oscillator." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minimum Tuning Frequency') + key_val_pair = [i for i in props if 'Minimum Tuning Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @minimum_tuning_frequency.setter + def minimum_tuning_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Minimum Tuning Frequency=' + value]) + + @property + def maximum_tuning_frequency(self) -> float: + """Maximum Tuning Frequency + "Maximum tuning frequency of Rx's local oscillator." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Maximum Tuning Frequency') + key_val_pair = [i for i in props if 'Maximum Tuning Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @maximum_tuning_frequency.setter + def maximum_tuning_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Maximum Tuning Frequency=' + value]) + + @property + def mixer_product_slope(self) -> float: + """Mixer Product Slope + "Rate of decrease for amplitude of Rx's local oscillator harmonics (dB/decade)." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Slope') + key_val_pair = [i for i in props if 'Mixer Product Slope=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @mixer_product_slope.setter + def mixer_product_slope(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mixer Product Slope=' + value]) + + @property + def mixer_product_intercept(self) -> float: + """Mixer Product Intercept + "Mixer product intercept (dBc)." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Intercept') + key_val_pair = [i for i in props if 'Mixer Product Intercept=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @mixer_product_intercept.setter + def mixer_product_intercept(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mixer Product Intercept=' + value]) + + @property + def _80_db_bandwidth(self) -> float: + """80 dB Bandwidth + "Bandwidth where Rx's susceptibility envelope is 80 dB above in-band susceptibility level." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'80 dB Bandwidth') + key_val_pair = [i for i in props if '80 dB Bandwidth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @_80_db_bandwidth.setter + def _80_db_bandwidth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['80 dB Bandwidth=' + value]) + + @property + def image_rejection(self) -> float: + """Image Rejection + "Image frequency amplitude (relative to the in-band susceptibility)." + "Value should be between -200 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Image Rejection') + key_val_pair = [i for i in props if 'Image Rejection=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @image_rejection.setter + def image_rejection(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Image Rejection=' + value]) + + @property + def maximum_rf_harmonic_order(self) -> int: + """Maximum RF Harmonic Order + "Maximum order of RF frequency." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Maximum RF Harmonic Order') + key_val_pair = [i for i in props if 'Maximum RF Harmonic Order=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @maximum_rf_harmonic_order.setter + def maximum_rf_harmonic_order(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Maximum RF Harmonic Order=' + value]) + + @property + def maximum_lo_harmonic_order(self) -> int: + """Maximum LO Harmonic Order + "Maximum order of the LO frequency." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Maximum LO Harmonic Order') + key_val_pair = [i for i in props if 'Maximum LO Harmonic Order=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @maximum_lo_harmonic_order.setter + def maximum_lo_harmonic_order(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Maximum LO Harmonic Order=' + value]) + + @property + def mixing_mode(self): + """Mixing Mode + "Specifies whether the IF frequency is > or < RF channel frequency." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixing Mode') + key_val_pair = [i for i in props if 'Mixing Mode=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @mixing_mode.setter + def mixing_mode(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mixing Mode=' + value]) + class MixingModeOption(Enum): + ABOVETUNEDFREQUENCY = "LO Above Tuned (RF) Frequency" + BELOWTUNEDFREQUENCY = "LO Below Tuned (RF) Frequency" + BOTHTUNEDFREQUENCIES = "LO Above/Below Tuned (RF) Frequency" + + @property + def _1st_if_frequency(self): + """1st IF Frequency + "Intermediate frequency for Rx's 1st conversion stage." + "Value should be a mathematical expression." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'1st IF Frequency') + key_val_pair = [i for i in props if '1st IF Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @_1st_if_frequency.setter + def _1st_if_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['1st IF Frequency=' + value]) + + @property + def rf_transition_frequency(self) -> float: + """RF Transition Frequency + "RF Frequency Transition point." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'RF Transition Frequency') + key_val_pair = [i for i in props if 'RF Transition Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @rf_transition_frequency.setter + def rf_transition_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['RF Transition Frequency=' + value]) + + @property + def use_high_lo(self): + """Use High LO + "Use High LO above/below the transition frequency." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use High LO') + key_val_pair = [i for i in props if 'Use High LO=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @use_high_lo.setter + def use_high_lo(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use High LO=' + value]) + class UseHighLOOption(Enum): + ABOVETRANSITION = "Above Transition Frequency" + BELOWTRANSITION = "Below Transition Frequency" + + @property + def mixer_product_table_units(self): + """Mixer Product Table Units + "Specifies the units for the Mixer Products." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Table Units') + key_val_pair = [i for i in props if 'Mixer Product Table Units=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @mixer_product_table_units.setter + def mixer_product_table_units(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mixer Product Table Units=' + value]) + class MixerProductTableUnitsOption(Enum): + ABSOLUTE = "Absolute" + RELATIVE = "Relative" + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py similarity index 70% rename from src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSaturationNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py index c87057833ee..176bc23a038 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py @@ -1,8 +1,14 @@ -class Node_RxSaturationNode(GenericEmitNode): +from ..GenericEmitNode import * +class RxSaturationNode(GenericEmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False GenericEmitNode.__init__(self, oDesign, result_id, node_id) + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + def import_csv_file(self, file_name): """Import a CSV File...""" return self._import(file_name,'Csv') @@ -12,9 +18,10 @@ def delete(self): self._delete() @property - def get_enabled(self): + def enabled(self): """Enabled state for this node.""" return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') - def set_enabled(self, value): + @enabled.setter + def enabled(self, value): oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py similarity index 57% rename from src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSelectivityNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py index b34fe4e04d7..f50bb252a12 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py @@ -1,8 +1,14 @@ -class Node_RxSelectivityNode(GenericEmitNode): +from ..GenericEmitNode import * +class RxSelectivityNode(GenericEmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False GenericEmitNode.__init__(self, oDesign, result_id, node_id) + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + def import_csv_file(self, file_name): """Import a CSV File...""" return self._import(file_name,'Csv') @@ -12,19 +18,26 @@ def delete(self): self._delete() @property - def get_enabled(self): + def enabled(self): """Enabled state for this node.""" return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') - def set_enabled(self, value): + @enabled.setter + def enabled(self, value): oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) @property - def get_use_arithmetic_mean(self): + def use_arithmetic_mean(self) -> bool: """Use Arithmetic Mean "Uses arithmetic mean to center bandwidths about the tuned channel frequency." "Value should be 'true' or 'false'." """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Arithmetic Mean') - def set_use_arithmetic_mean(self, value): + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Arithmetic Mean') + key_val_pair = [i for i in props if 'Use Arithmetic Mean=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @use_arithmetic_mean.setter + def use_arithmetic_mean(self, value): oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use Arithmetic Mean=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py similarity index 57% rename from src/ansys/aedt/core/emit_core/nodes/generated/Node_TxSpurNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py index 0fde02d27db..791095c4811 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py @@ -1,8 +1,14 @@ -class Node_TxSpurNode(GenericEmitNode): +from ..GenericEmitNode import * +class RxSpurNode(GenericEmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False GenericEmitNode.__init__(self, oDesign, result_id, node_id) + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + def import_csv_file(self, file_name): """Import a CSV File...""" return self._import(file_name,'Csv') @@ -12,23 +18,28 @@ def delete(self): self._delete() @property - def get_enabled(self): + def enabled(self): """Enabled state for this node.""" return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') - def set_enabled(self, value): + @enabled.setter + def enabled(self, value): oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) @property - def get_spur_table_units(self): + def spur_table_units(self): """Spur Table Units "Specifies the units for the Spurs." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spur Table Units') - def set_spur_table_units(self, value): + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spur Table Units') + key_val_pair = [i for i in props if 'Spur Table Units=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @spur_table_units.setter + def spur_table_units(self, value): oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Spur Table Units=' + value]) class SpurTableUnitsOption(Enum): - ( ABSOLUTE = "Absolute" RELATIVE = "Relative" - ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py new file mode 100644 index 00000000000..39a134a5b6a --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py @@ -0,0 +1,247 @@ +from ..GenericEmitNode import * +class RxSusceptibilityProfNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def enabled(self): + """Enabled state for this node.""" + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + @enabled.setter + def enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + + @property + def sensitivity_units(self): + """Sensitivity Units + "Units to use for the Rx Sensitivity." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Sensitivity Units') + key_val_pair = [i for i in props if 'Sensitivity Units=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @sensitivity_units.setter + def sensitivity_units(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Sensitivity Units=' + value]) + class SensitivityUnitsOption(Enum): + DBM = "dBm" + DBUV = "dBuV" + MILLIWATTS = "milliwatts" + MICROVOLTS = "microvolts" + + @property + def min_receive_signal_pwr_(self) -> float: + """Min. Receive Signal Pwr + "Received signal power level at the Rx's antenna terminal." + "Value should be between -1000 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min. Receive Signal Pwr ') + key_val_pair = [i for i in props if 'Min. Receive Signal Pwr =' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @min_receive_signal_pwr_.setter + def min_receive_signal_pwr_(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Min. Receive Signal Pwr =' + value]) + + @property + def snr_at_rx_signal_pwr(self) -> float: + """SNR at Rx Signal Pwr + "Signal-to-Noise Ratio (dB) at specified received signal power at the Rx's antenna terminal." + "Value should be between -1000 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'SNR at Rx Signal Pwr') + key_val_pair = [i for i in props if 'SNR at Rx Signal Pwr=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @snr_at_rx_signal_pwr.setter + def snr_at_rx_signal_pwr(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['SNR at Rx Signal Pwr=' + value]) + + @property + def processing_gain(self) -> float: + """Processing Gain + "Rx processing gain (dB) of (optional) despreader." + "Value should be between -1000 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Processing Gain') + key_val_pair = [i for i in props if 'Processing Gain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @processing_gain.setter + def processing_gain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Processing Gain=' + value]) + + @property + def apply_pg_to_narrowband_only(self) -> bool: + """Apply PG to Narrowband Only + "Processing gain captures the despreading effect and applies to NB signals only (not BB noise) when enabled." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Apply PG to Narrowband Only') + key_val_pair = [i for i in props if 'Apply PG to Narrowband Only=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @apply_pg_to_narrowband_only.setter + def apply_pg_to_narrowband_only(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Apply PG to Narrowband Only=' + value]) + + @property + def saturation_level(self) -> float: + """Saturation Level + "Rx input saturation level." + "Value should be between -1000 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Saturation Level') + key_val_pair = [i for i in props if 'Saturation Level=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @saturation_level.setter + def saturation_level(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Saturation Level=' + value]) + + @property + def rx_noise_figure(self) -> float: + """Rx Noise Figure + "Rx noise figure (dB)." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rx Noise Figure') + key_val_pair = [i for i in props if 'Rx Noise Figure=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @rx_noise_figure.setter + def rx_noise_figure(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rx Noise Figure=' + value]) + + @property + def receiver_sensitivity_(self) -> float: + """Receiver Sensitivity + "Rx minimum sensitivity level (dBm)." + "Value should be between -1000 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Receiver Sensitivity ') + key_val_pair = [i for i in props if 'Receiver Sensitivity =' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @receiver_sensitivity_.setter + def receiver_sensitivity_(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Receiver Sensitivity =' + value]) + + @property + def snrsinad_at_sensitivity_(self) -> float: + """SNR/SINAD at Sensitivity + "SNR or SINAD at the specified sensitivity level." + "Value should be between -1000 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'SNR/SINAD at Sensitivity ') + key_val_pair = [i for i in props if 'SNR/SINAD at Sensitivity =' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @snrsinad_at_sensitivity_.setter + def snrsinad_at_sensitivity_(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['SNR/SINAD at Sensitivity =' + value]) + + @property + def perform_rx_intermod_analysis(self) -> bool: + """Perform Rx Intermod Analysis + "Performs a non-linear intermod analysis for the Rx." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Perform Rx Intermod Analysis') + key_val_pair = [i for i in props if 'Perform Rx Intermod Analysis=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @perform_rx_intermod_analysis.setter + def perform_rx_intermod_analysis(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Perform Rx Intermod Analysis=' + value]) + + @property + def amplifier_saturation_level(self) -> float: + """Amplifier Saturation Level + "Internal Rx Amplifier's Saturation Level." + "Value should be between -200 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplifier Saturation Level') + key_val_pair = [i for i in props if 'Amplifier Saturation Level=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @amplifier_saturation_level.setter + def amplifier_saturation_level(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplifier Saturation Level=' + value]) + + @property + def _1_db_point_ref_input_(self) -> float: + """1-dB Point, Ref. Input + "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." + "Value should be between -1000 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'1-dB Point, Ref. Input ') + key_val_pair = [i for i in props if '1-dB Point, Ref. Input =' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @_1_db_point_ref_input_.setter + def _1_db_point_ref_input_(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input =' + value]) + + @property + def ip3_ref_input(self) -> float: + """IP3, Ref. Input + "Internal Rx Amplifier's 3rd order intercept point." + "Value should be between -1000 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'IP3, Ref. Input') + key_val_pair = [i for i in props if 'IP3, Ref. Input=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @ip3_ref_input.setter + def ip3_ref_input(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + value]) + + @property + def max_intermod_order(self) -> int: + """Max Intermod Order + "Internal Rx Amplifier's maximum intermod order to compute." + "Value should be between 3 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Intermod Order') + key_val_pair = [i for i in props if 'Max Intermod Order=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @max_intermod_order.setter + def max_intermod_order(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py new file mode 100644 index 00000000000..f199c9cb343 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py @@ -0,0 +1,130 @@ +from ..GenericEmitNode import * +class SamplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def sampling_type(self): + """Sampling Type + "Sampling to apply to this configuration." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Sampling Type') + key_val_pair = [i for i in props if 'Sampling Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @sampling_type.setter + def sampling_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Sampling Type=' + value]) + class SamplingTypeOption(Enum): + SAMPLEALLCHANNELS = "Sample All Channels in Range(s)" + RANDOMSAMPLING = "Random Sampling" + UNIFORMSAMPLING = "Uniform Sampling" + + @property + def specify_percentage(self) -> bool: + """Specify Percentage + "Specify the number of channels to simulate via a percentage of the total available band channels." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Specify Percentage') + key_val_pair = [i for i in props if 'Specify Percentage=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @specify_percentage.setter + def specify_percentage(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Specify Percentage=' + value]) + + @property + def percentage_of_channels(self) -> float: + """Percentage of Channels + "Percentage of the Band Channels to simulate." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Percentage of Channels') + key_val_pair = [i for i in props if 'Percentage of Channels=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @percentage_of_channels.setter + def percentage_of_channels(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Percentage of Channels=' + value]) + + @property + def max__channelsrangeband(self) -> int: + """Max # Channels/Range/Band + "Maximum number of Band Channels to simulate." + "Value should be between 1 and 100000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max # Channels/Range/Band') + key_val_pair = [i for i in props if 'Max # Channels/Range/Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @max__channelsrangeband.setter + def max__channelsrangeband(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max # Channels/Range/Band=' + value]) + + @property + def seed(self) -> int: + """Seed + "Seed for random channel generator." + "Value should be greater than 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Seed') + key_val_pair = [i for i in props if 'Seed=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @seed.setter + def seed(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Seed=' + value]) + + @property + def total_tx_channels(self) -> int: + """Total Tx Channels + "Total number of transmit channels this configuration is capable of operating on." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Tx Channels') + key_val_pair = [i for i in props if 'Total Tx Channels=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def total_rx_channels(self) -> int: + """Total Rx Channels + "Total number of receive channels this configuration is capable of operating on." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Rx Channels') + key_val_pair = [i for i in props if 'Total Rx Channels=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def warnings(self) -> str: + """Warnings + "Warning(s) for this node." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + key_val_pair = [i for i in props if 'Warnings=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py new file mode 100644 index 00000000000..9e09361d2f2 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py @@ -0,0 +1,172 @@ +from ..GenericEmitNode import * +class SceneGroupNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def add_group(self): + """Add a new scene group""" + return self._add_child_node("sceneGroupNode") + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def show_relative_coordinates(self) -> bool: + """Show Relative Coordinates + "Show Scene Group position and orientation in parent-node coords (False) or relative to placement coords (True)." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Relative Coordinates') + key_val_pair = [i for i in props if 'Show Relative Coordinates=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @show_relative_coordinates.setter + def show_relative_coordinates(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) + + @property + def position(self): + """Position + "Set position of the Scene Group in parent-node coordinates." + "Value should be x/y/z, delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') + key_val_pair = [i for i in props if 'Position=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @position.setter + def position(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position=' + value]) + + @property + def relative_position(self): + """Relative Position + "Set position of the Scene Group relative to placement coordinates." + "Value should be x/y/z, delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Position') + key_val_pair = [i for i in props if 'Relative Position=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @relative_position.setter + def relative_position(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Relative Position=' + value]) + + @property + def orientation_mode(self): + """Orientation Mode + "Select the convention (order of rotations) for configuring orientation." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation Mode') + key_val_pair = [i for i in props if 'Orientation Mode=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @orientation_mode.setter + def orientation_mode(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Orientation Mode=' + value]) + class OrientationModeOption(Enum): + RPYDEG = "Roll-Pitch-Yaw" + AETDEG = "Az-El-Twist" + + @property + def orientation(self): + """Orientation + "Set orientation of the Scene Group relative to parent-node coordinates." + "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation') + key_val_pair = [i for i in props if 'Orientation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @orientation.setter + def orientation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Orientation=' + value]) + + @property + def relative_orientation(self): + """Relative Orientation + "Set orientation of the Scene Group relative to placement coordinates." + "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Orientation') + key_val_pair = [i for i in props if 'Relative Orientation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @relative_orientation.setter + def relative_orientation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) + + @property + def show_axes(self) -> bool: + """Show Axes + "Toggle (on/off) display of Scene Group coordinate axes in 3-D window." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Axes') + key_val_pair = [i for i in props if 'Show Axes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @show_axes.setter + def show_axes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Axes=' + value]) + + @property + def box_color(self): + """Box Color + "Set color of the bounding box of the Scene Group." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Box Color') + key_val_pair = [i for i in props if 'Box Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @box_color.setter + def box_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Box Color=' + value]) + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @notes.setter + def notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py new file mode 100644 index 00000000000..a57cf24a15b --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py @@ -0,0 +1,234 @@ +from ..GenericEmitNode import * +class SelectivityTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + key_val_pair = [i for i in props if 'Data Source=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @data_source.setter + def data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def visible(self) -> bool: + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + key_val_pair = [i for i in props if 'Visible=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @visible.setter + def visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def custom_legend(self) -> bool: + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + key_val_pair = [i for i in props if 'Custom Legend=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @custom_legend.setter + def custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def name(self) -> str: + """Name + "Enter name of plot trace as it will appear in legend." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + key_val_pair = [i for i in props if 'Name=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @name.setter + def name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def style(self): + """Style + "Specify line style of plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + key_val_pair = [i for i in props if 'Style=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @style.setter + def style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + + @property + def line_width(self) -> int: + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + key_val_pair = [i for i in props if 'Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_width.setter + def line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + key_val_pair = [i for i in props if 'Line Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_color.setter + def line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + key_val_pair = [i for i in props if 'Symbol=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol.setter + def symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + + @property + def symbol_size(self) -> int: + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + key_val_pair = [i for i in props if 'Symbol Size=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_size.setter + def symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + key_val_pair = [i for i in props if 'Symbol Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_color.setter + def symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def symbol_line_width(self) -> int: + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + key_val_pair = [i for i in props if 'Symbol Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_line_width.setter + def symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def symbol_filled(self) -> bool: + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + key_val_pair = [i for i in props if 'Symbol Filled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_filled.setter + def symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py new file mode 100644 index 00000000000..7cf6de21883 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py @@ -0,0 +1,74 @@ +from ..GenericEmitNode import * +class SolutionCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling (A sweep disabled in HFSS/Layout cannot be enabled in EMIT)." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enabled.setter + def enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def enable_refinement(self) -> bool: + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + key_val_pair = [i for i in props if 'Enable Refinement=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enable_refinement.setter + def enable_refinement(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + + @property + def adaptive_sampling(self) -> bool: + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @adaptive_sampling.setter + def adaptive_sampling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + + @property + def refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + key_val_pair = [i for i in props if 'Refinement Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @refinement_domain.setter + def refinement_domain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py new file mode 100644 index 00000000000..fe598a8a3c7 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py @@ -0,0 +1,27 @@ +from ..GenericEmitNode import * +class SolutionsNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling (A setup disabled in HFSS/Layout cannot be enabled in EMIT)." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enabled.setter + def enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py new file mode 100644 index 00000000000..36ca6319f07 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py @@ -0,0 +1,113 @@ +from ..GenericEmitNode import * +class Sparameter(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def file(self) -> str: + """File + "S-Parameter file defining the component." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'File') + key_val_pair = [i for i in props if 'File=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @file.setter + def file(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['File=' + value]) + + @property + def noise_temperature(self) -> float: + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + key_val_pair = [i for i in props if 'Noise Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @noise_temperature.setter + def noise_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @notes.setter + def notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def radio_side_ports(self): + """Radio Side Ports + "Assigns the child port nodes to the multiplexers ports." + "A list of values." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Radio Side Ports') + key_val_pair = [i for i in props if 'Radio Side Ports=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val.split('|') + @radio_side_ports.setter + def radio_side_ports(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Radio Side Ports=' + value]) + class RadioSidePortsOption(Enum): + PORTNAMES = "::PortNames" + + @property + def antenna_side_ports(self): + """Antenna Side Ports + "Assigns the child port nodes to the multiplexers ports." + "A list of values." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna Side Ports') + key_val_pair = [i for i in props if 'Antenna Side Ports=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val.split('|') + @antenna_side_ports.setter + def antenna_side_ports(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Antenna Side Ports=' + value]) + class AntennaSidePortsOption(Enum): + PORTNAMES = "::PortNames" + + @property + def warnings(self) -> str: + """Warnings + "Warning(s) for this node." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + key_val_pair = [i for i in props if 'Warnings=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py new file mode 100644 index 00000000000..63eab397305 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py @@ -0,0 +1,261 @@ +from ..GenericEmitNode import * +class SpurTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def channel_frequency(self): + """Channel Frequency + "Select band channel frequency to display." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Channel Frequency') + key_val_pair = [i for i in props if 'Channel Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @channel_frequency.setter + def channel_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Channel Frequency=' + value]) + + @property + def transmit_frequency(self) -> float: + """Transmit Frequency + "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Transmit Frequency') + key_val_pair = [i for i in props if 'Transmit Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + key_val_pair = [i for i in props if 'Data Source=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @data_source.setter + def data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def visible(self) -> bool: + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + key_val_pair = [i for i in props if 'Visible=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @visible.setter + def visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def custom_legend(self) -> bool: + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + key_val_pair = [i for i in props if 'Custom Legend=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @custom_legend.setter + def custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def name(self) -> str: + """Name + "Enter name of plot trace as it will appear in legend." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + key_val_pair = [i for i in props if 'Name=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @name.setter + def name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def style(self): + """Style + "Specify line style of plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + key_val_pair = [i for i in props if 'Style=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @style.setter + def style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + + @property + def line_width(self) -> int: + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + key_val_pair = [i for i in props if 'Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_width.setter + def line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + key_val_pair = [i for i in props if 'Line Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_color.setter + def line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + key_val_pair = [i for i in props if 'Symbol=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol.setter + def symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + + @property + def symbol_size(self) -> int: + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + key_val_pair = [i for i in props if 'Symbol Size=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_size.setter + def symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + key_val_pair = [i for i in props if 'Symbol Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_color.setter + def symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def symbol_line_width(self) -> int: + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + key_val_pair = [i for i in props if 'Symbol Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_line_width.setter + def symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def symbol_filled(self) -> bool: + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + key_val_pair = [i for i in props if 'Symbol Filled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_filled.setter + def symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py new file mode 100644 index 00000000000..80622a17679 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py @@ -0,0 +1,266 @@ +from ..GenericEmitNode import * +class TRSwitchTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def input_port(self) -> int: + """Input Port + "Specifies input port for the plotted outboard component." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Input Port') + key_val_pair = [i for i in props if 'Input Port=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @input_port.setter + def input_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Input Port=' + value]) + + @property + def output_port(self) -> int: + """Output Port + "Specifies output port for the plotted outboard component." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Port') + key_val_pair = [i for i in props if 'Output Port=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @output_port.setter + def output_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Port=' + value]) + + @property + def data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + key_val_pair = [i for i in props if 'Data Source=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @data_source.setter + def data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def visible(self) -> bool: + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + key_val_pair = [i for i in props if 'Visible=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @visible.setter + def visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def custom_legend(self) -> bool: + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + key_val_pair = [i for i in props if 'Custom Legend=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @custom_legend.setter + def custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def name(self) -> str: + """Name + "Enter name of plot trace as it will appear in legend." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + key_val_pair = [i for i in props if 'Name=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @name.setter + def name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def style(self): + """Style + "Specify line style of plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + key_val_pair = [i for i in props if 'Style=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @style.setter + def style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + + @property + def line_width(self) -> int: + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + key_val_pair = [i for i in props if 'Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_width.setter + def line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + key_val_pair = [i for i in props if 'Line Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_color.setter + def line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + key_val_pair = [i for i in props if 'Symbol=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol.setter + def symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + + @property + def symbol_size(self) -> int: + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + key_val_pair = [i for i in props if 'Symbol Size=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_size.setter + def symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + key_val_pair = [i for i in props if 'Symbol Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_color.setter + def symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def symbol_line_width(self) -> int: + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + key_val_pair = [i for i in props if 'Symbol Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_line_width.setter + def symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def symbol_filled(self) -> bool: + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + key_val_pair = [i for i in props if 'Symbol Filled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_filled.setter + def symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py new file mode 100644 index 00000000000..06ab04759d8 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -0,0 +1,245 @@ +from ..GenericEmitNode import * +class TR_Switch(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def filename(self) -> str: + """Filename + "Name of file defining the outboard component." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + key_val_pair = [i for i in props if 'Filename=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @filename.setter + def filename(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + + @property + def noise_temperature(self) -> float: + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + key_val_pair = [i for i in props if 'Noise Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @noise_temperature.setter + def noise_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @notes.setter + def notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def tx_port(self): + """Tx Port + "Specifies which port on the TR Switch is part of the Tx path.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx Port') + key_val_pair = [i for i in props if 'Tx Port=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @tx_port.setter + def tx_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Tx Port=' + value]) + class TxPortOption(Enum): + _0 = "Port 1" + _1 = "Port 2" + + @property + def common_port_location(self): + """Common Port Location + "Defines the orientation of the tr switch.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Common Port Location') + key_val_pair = [i for i in props if 'Common Port Location=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @common_port_location.setter + def common_port_location(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Common Port Location=' + value]) + class CommonPortLocationOption(Enum): + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" + + @property + def insertion_loss(self) -> float: + """Insertion Loss + "TR Switch in-band loss in forward direction.." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') + key_val_pair = [i for i in props if 'Insertion Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @insertion_loss.setter + def insertion_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + + @property + def finite_isolation(self) -> bool: + """Finite Isolation + "Use a finite isolation. If disabled, the tr switch model is ideal (infinite isolation).." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Isolation') + key_val_pair = [i for i in props if 'Finite Isolation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @finite_isolation.setter + def finite_isolation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Isolation=' + value]) + + @property + def isolation(self) -> float: + """Isolation + "TR Switch reverse isolation (i.e., loss between the Tx/Rx ports).." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Isolation') + key_val_pair = [i for i in props if 'Isolation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @isolation.setter + def isolation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Isolation=' + value]) + + @property + def finite_bandwidth(self) -> bool: + """Finite Bandwidth + "Use a finite bandwidth. If disabled, the tr switch model is ideal (infinite bandwidth).." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Bandwidth') + key_val_pair = [i for i in props if 'Finite Bandwidth=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @finite_bandwidth.setter + def finite_bandwidth(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) + + @property + def out_of_band_attenuation(self) -> float: + """Out-of-band Attenuation + "Out-of-band loss (attenuation)." + "Value should be between 0 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out-of-band Attenuation') + key_val_pair = [i for i in props if 'Out-of-band Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @out_of_band_attenuation.setter + def out_of_band_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) + + @property + def lower_stop_band(self) -> float: + """Lower Stop Band + "Lower stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') + key_val_pair = [i for i in props if 'Lower Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @lower_stop_band.setter + def lower_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + + @property + def lower_cutoff(self) -> float: + """Lower Cutoff + "Lower cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') + key_val_pair = [i for i in props if 'Lower Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @lower_cutoff.setter + def lower_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + + @property + def higher_cutoff(self) -> float: + """Higher Cutoff + "Higher cutoff frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') + key_val_pair = [i for i in props if 'Higher Cutoff=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @higher_cutoff.setter + def higher_cutoff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + + @property + def higher_stop_band(self) -> float: + """Higher Stop Band + "Higher stop band frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') + key_val_pair = [i for i in props if 'Higher Stop Band=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @higher_stop_band.setter + def higher_stop_band(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py new file mode 100644 index 00000000000..81fbc8e82ef --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -0,0 +1,129 @@ +from ..GenericEmitNode import * +class Terminator(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def filename(self) -> str: + """Filename + "Name of file defining the Terminator." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + key_val_pair = [i for i in props if 'Filename=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @filename.setter + def filename(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + + @property + def noise_temperature(self) -> float: + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') + key_val_pair = [i for i in props if 'Noise Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @noise_temperature.setter + def noise_temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @notes.setter + def notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def type(self): + """Type + "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') + key_val_pair = [i for i in props if 'Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @type.setter + def type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) + class TypeOption(Enum): + BYFILE = "By File" + PARAMETRIC = "Parametric" + + @property + def port_location(self): + """Port Location + "Defines the orientation of the terminator.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port Location') + key_val_pair = [i for i in props if 'Port Location=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @port_location.setter + def port_location(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Port Location=' + value]) + class PortLocationOption(Enum): + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" + + @property + def vswr(self) -> float: + """VSWR + "The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch between the terminator and the connected component (RF System, Antenna, etc)." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'VSWR') + key_val_pair = [i for i in props if 'VSWR=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @vswr.setter + def vswr(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['VSWR=' + value]) + + @property + def warnings(self) -> str: + """Warnings + "Warning(s) for this node." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') + key_val_pair = [i for i in props if 'Warnings=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py new file mode 100644 index 00000000000..0284c613c08 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py @@ -0,0 +1,378 @@ +from ..GenericEmitNode import * +class TestNoiseTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def input_port(self) -> int: + """Input Port + "Specifies input port for the plotted outboard component." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Input Port') + key_val_pair = [i for i in props if 'Input Port=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @input_port.setter + def input_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Input Port=' + value]) + + @property + def output_port(self) -> int: + """Output Port + "Specifies output port for the plotted outboard component." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Port') + key_val_pair = [i for i in props if 'Output Port=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @output_port.setter + def output_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Port=' + value]) + + @property + def data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + key_val_pair = [i for i in props if 'Data Source=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @data_source.setter + def data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def visible(self) -> bool: + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + key_val_pair = [i for i in props if 'Visible=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @visible.setter + def visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def custom_legend(self) -> bool: + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + key_val_pair = [i for i in props if 'Custom Legend=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @custom_legend.setter + def custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def name(self) -> str: + """Name + "Enter name of plot trace as it will appear in legend." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + key_val_pair = [i for i in props if 'Name=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @name.setter + def name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def style(self): + """Style + "Specify line style of plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + key_val_pair = [i for i in props if 'Style=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @style.setter + def style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + + @property + def line_width(self) -> int: + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + key_val_pair = [i for i in props if 'Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_width.setter + def line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + key_val_pair = [i for i in props if 'Line Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_color.setter + def line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + key_val_pair = [i for i in props if 'Symbol=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol.setter + def symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + + @property + def symbol_size(self) -> int: + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + key_val_pair = [i for i in props if 'Symbol Size=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_size.setter + def symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + key_val_pair = [i for i in props if 'Symbol Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_color.setter + def symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def symbol_line_width(self) -> int: + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + key_val_pair = [i for i in props if 'Symbol Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_line_width.setter + def symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def symbol_filled(self) -> bool: + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + key_val_pair = [i for i in props if 'Symbol Filled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_filled.setter + def symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + + @property + def frequency_1(self) -> float: + """Frequency 1 + "1st test tone frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency 1') + key_val_pair = [i for i in props if 'Frequency 1=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @frequency_1.setter + def frequency_1(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Frequency 1=' + value]) + + @property + def amplitude_1(self) -> float: + """Amplitude 1 + "1st test tone amplitude." + "Value should be between -100 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplitude 1') + key_val_pair = [i for i in props if 'Amplitude 1=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @amplitude_1.setter + def amplitude_1(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplitude 1=' + value]) + + @property + def bandwidth_1(self) -> float: + """Bandwidth 1 + "1st test tone bandwidth." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bandwidth 1') + key_val_pair = [i for i in props if 'Bandwidth 1=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @bandwidth_1.setter + def bandwidth_1(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Bandwidth 1=' + value]) + + @property + def frequency_2(self) -> float: + """Frequency 2 + "2nd test tone frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency 2') + key_val_pair = [i for i in props if 'Frequency 2=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @frequency_2.setter + def frequency_2(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Frequency 2=' + value]) + + @property + def amplitude_2(self) -> float: + """Amplitude 2 + "2nd test tone amplitude." + "Value should be between -100 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplitude 2') + key_val_pair = [i for i in props if 'Amplitude 2=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @amplitude_2.setter + def amplitude_2(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplitude 2=' + value]) + + @property + def bandwidth_2(self) -> float: + """Bandwidth 2 + "2nd test tone bandwidth." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bandwidth 2') + key_val_pair = [i for i in props if 'Bandwidth 2=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @bandwidth_2.setter + def bandwidth_2(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Bandwidth 2=' + value]) + + @property + def noise_level(self) -> float: + """Noise Level + "Broadband noise level." + "Value should be between -200 and 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Level') + key_val_pair = [i for i in props if 'Noise Level=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @noise_level.setter + def noise_level(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Level=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RadioGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py similarity index 67% rename from src/ansys/aedt/core/emit_core/nodes/generated/Node_RadioGroup.py rename to src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py index 259ad68820c..104eb15d63a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RadioGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py @@ -1,4 +1,5 @@ -class Node_RadioGroup(GenericEmitNode): +from ..GenericEmitNode import * +class TopLevelSimulation(GenericEmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False GenericEmitNode.__init__(self, oDesign, result_id, node_id) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py new file mode 100644 index 00000000000..d9fa408ae91 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py @@ -0,0 +1,145 @@ +from ..GenericEmitNode import * +class TouchstoneCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enabled.setter + def enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def enable_refinement(self) -> bool: + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + key_val_pair = [i for i in props if 'Enable Refinement=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enable_refinement.setter + def enable_refinement(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + + @property + def adaptive_sampling(self) -> bool: + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @adaptive_sampling.setter + def adaptive_sampling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + + @property + def refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + key_val_pair = [i for i in props if 'Refinement Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @refinement_domain.setter + def refinement_domain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + + @property + def filename(self) -> str: + """Filename + "Name of file with coupling data.." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') + key_val_pair = [i for i in props if 'Filename=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @filename.setter + def filename(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + + @property + def savant_matched_coupling_file(self) -> str: + """Savant Matched Coupling File + "Coupling data generated by Savant and exported as a matched file." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Savant Matched Coupling File') + key_val_pair = [i for i in props if 'Savant Matched Coupling File=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def enable_em_isolation(self) -> bool: + """Enable EM Isolation + "Enables/disables EM isolation." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable EM Isolation') + key_val_pair = [i for i in props if 'Enable EM Isolation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enable_em_isolation.setter + def enable_em_isolation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable EM Isolation=' + value]) + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') + key_val_pair = [i for i in props if 'Notes=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @notes.setter + def notes(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py new file mode 100644 index 00000000000..01ce40026f3 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py @@ -0,0 +1,281 @@ +from ..GenericEmitNode import * +class TunableTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def input_port(self) -> int: + """Input Port + "Specifies input port for the plotted outboard component." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Input Port') + key_val_pair = [i for i in props if 'Input Port=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @input_port.setter + def input_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Input Port=' + value]) + + @property + def output_port(self) -> int: + """Output Port + "Specifies output port for the plotted outboard component." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Port') + key_val_pair = [i for i in props if 'Output Port=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @output_port.setter + def output_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Port=' + value]) + + @property + def frequency(self) -> float: + """Frequency + "Tunable filter center frequency." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency') + key_val_pair = [i for i in props if 'Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @frequency.setter + def frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Frequency=' + value]) + + @property + def data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + key_val_pair = [i for i in props if 'Data Source=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @data_source.setter + def data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def visible(self) -> bool: + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + key_val_pair = [i for i in props if 'Visible=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @visible.setter + def visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def custom_legend(self) -> bool: + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + key_val_pair = [i for i in props if 'Custom Legend=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @custom_legend.setter + def custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def name(self) -> str: + """Name + "Enter name of plot trace as it will appear in legend." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + key_val_pair = [i for i in props if 'Name=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @name.setter + def name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def style(self): + """Style + "Specify line style of plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + key_val_pair = [i for i in props if 'Style=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @style.setter + def style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + + @property + def line_width(self) -> int: + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + key_val_pair = [i for i in props if 'Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_width.setter + def line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + key_val_pair = [i for i in props if 'Line Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_color.setter + def line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + key_val_pair = [i for i in props if 'Symbol=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol.setter + def symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + + @property + def symbol_size(self) -> int: + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + key_val_pair = [i for i in props if 'Symbol Size=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_size.setter + def symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + key_val_pair = [i for i in props if 'Symbol Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_color.setter + def symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def symbol_line_width(self) -> int: + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + key_val_pair = [i for i in props if 'Symbol Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_line_width.setter + def symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def symbol_filled(self) -> bool: + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + key_val_pair = [i for i in props if 'Symbol Filled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_filled.setter + def symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py new file mode 100644 index 00000000000..712b1c5670d --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py @@ -0,0 +1,346 @@ +from ..GenericEmitNode import * +class TwoRayPathLossCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enabled.setter + def enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def enable_refinement(self) -> bool: + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + key_val_pair = [i for i in props if 'Enable Refinement=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enable_refinement.setter + def enable_refinement(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + + @property + def adaptive_sampling(self) -> bool: + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @adaptive_sampling.setter + def adaptive_sampling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + + @property + def refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + key_val_pair = [i for i in props if 'Refinement Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @refinement_domain.setter + def refinement_domain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + + @property + def ground_reflection_coeff(self) -> float: + """Ground Reflection Coeff. + "The ground reflection coefficient." + "Value should be between -100 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Ground Reflection Coeff.') + key_val_pair = [i for i in props if 'Ground Reflection Coeff.=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @ground_reflection_coeff.setter + def ground_reflection_coeff(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Ground Reflection Coeff.=' + value]) + + @property + def pointspeak(self) -> int: + """Points/Peak + "Number of points used to model each peak in frequency vs loss curve." + "Value should be between 3 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Points/Peak') + key_val_pair = [i for i in props if 'Points/Peak=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @pointspeak.setter + def pointspeak(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Points/Peak=' + value]) + + @property + def custom_fading_margin(self) -> float: + """Custom Fading Margin + "Sets a custom fading margin to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') + key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @custom_fading_margin.setter + def custom_fading_margin(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + + @property + def polarization_mismatch(self) -> float: + """Polarization Mismatch + "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') + key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @polarization_mismatch.setter + def polarization_mismatch(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + + @property + def pointing_error_loss(self) -> float: + """Pointing Error Loss + "Sets a margin for pointing error loss to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') + key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @pointing_error_loss.setter + def pointing_error_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + + @property + def fading_type(self): + """Fading Type + "Specify the type of fading to include." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') + key_val_pair = [i for i in props if 'Fading Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @fading_type.setter + def fading_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) + class FadingTypeOption(Enum): + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + + @property + def fading_availability(self) -> float: + """Fading Availability + "The probability that the propagation loss in dB is below its median value plus the margin." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') + key_val_pair = [i for i in props if 'Fading Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @fading_availability.setter + def fading_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + + @property + def std_deviation(self) -> float: + """Std Deviation + "Standard deviation modeling the random amount of shadowing loss." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') + key_val_pair = [i for i in props if 'Std Deviation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @std_deviation.setter + def std_deviation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + + @property + def include_rain_attenuation(self) -> bool: + """Include Rain Attenuation + "Adds a margin for rain attenuation to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') + key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @include_rain_attenuation.setter + def include_rain_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + + @property + def rain_availability(self) -> float: + """Rain Availability + "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." + "Value should be between 99 and 99.999." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') + key_val_pair = [i for i in props if 'Rain Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @rain_availability.setter + def rain_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + + @property + def rain_rate(self) -> float: + """Rain Rate + "Rain rate (mm/hr) exceeded for 0.01% of the time." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') + key_val_pair = [i for i in props if 'Rain Rate=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @rain_rate.setter + def rain_rate(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + + @property + def polarization_tilt_angle(self) -> float: + """Polarization Tilt Angle + "Polarization tilt angle of the transmitted signal relative to the horizontal." + "Value should be between 0 and 180." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') + key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @polarization_tilt_angle.setter + def polarization_tilt_angle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + + @property + def include_atmospheric_absorption(self) -> bool: + """Include Atmospheric Absorption + "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') + key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @include_atmospheric_absorption.setter + def include_atmospheric_absorption(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + + @property + def temperature(self) -> float: + """Temperature + "Air temperature in degrees Celsius." + "Value should be between -273 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') + key_val_pair = [i for i in props if 'Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @temperature.setter + def temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) + + @property + def total_air_pressure(self) -> float: + """Total Air Pressure + "Total air pressure." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') + key_val_pair = [i for i in props if 'Total Air Pressure=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @total_air_pressure.setter + def total_air_pressure(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + + @property + def water_vapor_concentration(self) -> float: + """Water Vapor Concentration + "Water vapor concentration." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') + key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @water_vapor_concentration.setter + def water_vapor_concentration(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py new file mode 100644 index 00000000000..27e0a94556e --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py @@ -0,0 +1,378 @@ +from ..GenericEmitNode import * +class TwoToneTraceNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def export_model(self, file_name): + """Save this data to a file""" + return self._export_model(file_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def input_port(self) -> int: + """Input Port + "Specifies input port for the plotted outboard component." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Input Port') + key_val_pair = [i for i in props if 'Input Port=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @input_port.setter + def input_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Input Port=' + value]) + + @property + def output_port(self) -> int: + """Output Port + "Specifies output port for the plotted outboard component." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Port') + key_val_pair = [i for i in props if 'Output Port=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @output_port.setter + def output_port(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Port=' + value]) + + @property + def data_source(self): + """Data Source + "Identifies tree node serving as data source for plot trace, click link to find it." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') + key_val_pair = [i for i in props if 'Data Source=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @data_source.setter + def data_source(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + + @property + def visible(self) -> bool: + """Visible + "Toggle (on/off) display of this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') + key_val_pair = [i for i in props if 'Visible=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @visible.setter + def visible(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + + @property + def custom_legend(self) -> bool: + """Custom Legend + "Enable/disable custom legend entry for this plot trace." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') + key_val_pair = [i for i in props if 'Custom Legend=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @custom_legend.setter + def custom_legend(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + + @property + def name(self) -> str: + """Name + "Enter name of plot trace as it will appear in legend." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') + key_val_pair = [i for i in props if 'Name=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @name.setter + def name(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + + @property + def style(self): + """Style + "Specify line style of plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') + key_val_pair = [i for i in props if 'Style=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @style.setter + def style(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) + class StyleOption(Enum): + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" + + @property + def line_width(self) -> int: + """Line Width + "Specify line width of plot trace." + "Value should be between 1 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') + key_val_pair = [i for i in props if 'Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_width.setter + def line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + + @property + def line_color(self): + """Line Color + "Specify line color of plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') + key_val_pair = [i for i in props if 'Line Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @line_color.setter + def line_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + + @property + def symbol(self): + """Symbol + "Select symbol to mark points along plot trace." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') + key_val_pair = [i for i in props if 'Symbol=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol.setter + def symbol(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) + class SymbolOption(Enum): + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + + @property + def symbol_size(self) -> int: + """Symbol Size + "Set size (in points) of symbols marking points along plot trace." + "Value should be between 1 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') + key_val_pair = [i for i in props if 'Symbol Size=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_size.setter + def symbol_size(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + + @property + def symbol_color(self): + """Symbol Color + "Specify color of symbols marking points along plot trace." + "Color should be in RGB form: #RRGGBB." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') + key_val_pair = [i for i in props if 'Symbol Color=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_color.setter + def symbol_color(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + + @property + def symbol_line_width(self) -> int: + """Symbol Line Width + "Set the width of the line used to draw the symbol." + "Value should be between 1 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') + key_val_pair = [i for i in props if 'Symbol Line Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_line_width.setter + def symbol_line_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + + @property + def symbol_filled(self) -> bool: + """Symbol Filled + "If true, the interior of the symbol is filled - has no effect for some symbol types." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') + key_val_pair = [i for i in props if 'Symbol Filled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @symbol_filled.setter + def symbol_filled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + + @property + def frequency_1(self) -> float: + """Frequency 1 + "1st test tone frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency 1') + key_val_pair = [i for i in props if 'Frequency 1=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @frequency_1.setter + def frequency_1(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Frequency 1=' + value]) + + @property + def amplitude_1(self) -> float: + """Amplitude 1 + "1st test tone amplitude." + "Value should be between -100 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplitude 1') + key_val_pair = [i for i in props if 'Amplitude 1=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @amplitude_1.setter + def amplitude_1(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplitude 1=' + value]) + + @property + def bandwidth_1(self) -> float: + """Bandwidth 1 + "1st test tone bandwidth." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bandwidth 1') + key_val_pair = [i for i in props if 'Bandwidth 1=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @bandwidth_1.setter + def bandwidth_1(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Bandwidth 1=' + value]) + + @property + def frequency_2(self) -> float: + """Frequency 2 + "2nd test tone frequency." + "Value should be between 1 and 1e+11." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency 2') + key_val_pair = [i for i in props if 'Frequency 2=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @frequency_2.setter + def frequency_2(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Frequency 2=' + value]) + + @property + def amplitude_2(self) -> float: + """Amplitude 2 + "2nd test tone amplitude." + "Value should be between -100 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplitude 2') + key_val_pair = [i for i in props if 'Amplitude 2=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @amplitude_2.setter + def amplitude_2(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplitude 2=' + value]) + + @property + def bandwidth_2(self) -> float: + """Bandwidth 2 + "2nd test tone bandwidth." + "Value should be greater than 1." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bandwidth 2') + key_val_pair = [i for i in props if 'Bandwidth 2=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @bandwidth_2.setter + def bandwidth_2(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Bandwidth 2=' + value]) + + @property + def noise_level(self) -> float: + """Noise Level + "Broadband noise level." + "Value should be between -200 and 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Level') + key_val_pair = [i for i in props if 'Noise Level=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @noise_level.setter + def noise_level(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Level=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py new file mode 100644 index 00000000000..3fc90e7d1ec --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py @@ -0,0 +1,77 @@ +from ..GenericEmitNode import * +class TxBbEmissionNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def import_csv_file(self, file_name): + """Import a CSV File...""" + return self._import(file_name,'Csv') + + def delete(self): + """Delete this node""" + self._delete() + + @property + def table_data(self): + """Tx Broadband Noise Profile Table" + "Table consists of 2 columns." + "Frequency (MHz): + " Value should be a mathematical expression." + "Amplitude (dBm/Hz): + " Value should be between -200 and 150." + """ + return self._get_table_data() + @table_data.setter + def table_data(self, value): + self._set_table_data(value) + + @property + def enabled(self): + """Enabled state for this node.""" + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + @enabled.setter + def enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + + @property + def noise_behavior(self): + """Noise Behavior + "Specifies the behavior of the parametric noise profile." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Behavior') + key_val_pair = [i for i in props if 'Noise Behavior=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @noise_behavior.setter + def noise_behavior(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Behavior=' + value]) + class NoiseBehaviorOption(Enum): + ABSOLUTE = "Absolute" + RELATIVEBANDWIDTH = "Relative (Bandwidth)" + RELATIVEOFFSET = "Relative (Offset)" + BROADBANDEQUATION = "Equation" + + @property + def use_log_linear_interpolation(self) -> bool: + """Use Log-Linear Interpolation + "If true, linear interpolation in the log domain is used. If false, linear interpolation in the linear domain is used.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Log-Linear Interpolation') + key_val_pair = [i for i in props if 'Use Log-Linear Interpolation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @use_log_linear_interpolation.setter + def use_log_linear_interpolation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use Log-Linear Interpolation=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py similarity index 57% rename from src/ansys/aedt/core/emit_core/nodes/generated/Node_TxHarmonicNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py index bb5cd535c21..b6cd7968876 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py @@ -1,8 +1,14 @@ -class Node_TxHarmonicNode(GenericEmitNode): +from ..GenericEmitNode import * +class TxHarmonicNode(GenericEmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False GenericEmitNode.__init__(self, oDesign, result_id, node_id) + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + def import_csv_file(self, file_name): """Import a CSV File...""" return self._import(file_name,'Csv') @@ -12,23 +18,28 @@ def delete(self): self._delete() @property - def get_enabled(self): + def enabled(self): """Enabled state for this node.""" return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') - def set_enabled(self, value): + @enabled.setter + def enabled(self, value): oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) @property - def get_harmonic_table_units(self): + def harmonic_table_units(self): """Harmonic Table Units "Specifies the units for the Harmonics." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Table Units') - def set_harmonic_table_units(self, value): + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Table Units') + key_val_pair = [i for i in props if 'Harmonic Table Units=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @harmonic_table_units.setter + def harmonic_table_units(self, value): oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Harmonic Table Units=' + value]) class HarmonicTableUnitsOption(Enum): - ( ABSOLUTE = "Absolute" RELATIVE = "Relative" - ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py new file mode 100644 index 00000000000..28db0730600 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py @@ -0,0 +1,129 @@ +from ..GenericEmitNode import * +class TxMeasNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def file(self) -> str: + """File + "Name of the measurement source." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'File') + key_val_pair = [i for i in props if 'File=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def source_file(self) -> str: + """Source File + "Name of the measurement source." + "Value should be a full file path." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Source File') + key_val_pair = [i for i in props if 'Source File=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def transmit_frequency(self) -> float: + """Transmit Frequency + "Channel associated with the measurement file." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Transmit Frequency') + key_val_pair = [i for i in props if 'Transmit Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + + @property + def use_ams_limits(self) -> bool: + """Use AMS Limits + "Allow AMS to define the frequency limits for the measurements." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use AMS Limits') + key_val_pair = [i for i in props if 'Use AMS Limits=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @use_ams_limits.setter + def use_ams_limits(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use AMS Limits=' + value]) + + @property + def start_frequency(self) -> float: + """Start Frequency + "Starting frequency for the measurement sweep." + "Value should be greater than 1e+06." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Start Frequency') + key_val_pair = [i for i in props if 'Start Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @start_frequency.setter + def start_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Start Frequency=' + value]) + + @property + def stop_frequency(self) -> float: + """Stop Frequency + "Stopping frequency for the measurement sweep." + "Value should be less than 6e+09." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop Frequency') + key_val_pair = [i for i in props if 'Stop Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @stop_frequency.setter + def stop_frequency(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Stop Frequency=' + value]) + + @property + def exclude_harmonics_below_noise(self) -> bool: + """Exclude Harmonics Below Noise + "Include/Exclude Harmonics below the noise." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Exclude Harmonics Below Noise') + key_val_pair = [i for i in props if 'Exclude Harmonics Below Noise=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @exclude_harmonics_below_noise.setter + def exclude_harmonics_below_noise(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Exclude Harmonics Below Noise=' + value]) + + @property + def enabled(self): + """Enabled state for this node.""" + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + @enabled.setter + def enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py similarity index 52% rename from src/ansys/aedt/core/emit_core/nodes/generated/Node_TxNbEmissionNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py index 559978b5c5c..f68f71f6e40 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_TxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py @@ -1,8 +1,14 @@ -class Node_TxNbEmissionNode(GenericEmitNode): +from ..GenericEmitNode import * +class TxNbEmissionNode(GenericEmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False GenericEmitNode.__init__(self, oDesign, result_id, node_id) + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + def import_csv_file(self, file_name): """Import a CSV File...""" return self._import(file_name,'Csv') @@ -12,32 +18,43 @@ def delete(self): self._delete() @property - def get_enabled(self): + def enabled(self): """Enabled state for this node.""" return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') - def set_enabled(self, value): + @enabled.setter + def enabled(self, value): oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) @property - def get_narrowband_behavior(self): + def narrowband_behavior(self): """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Narrowband Behavior') - def set_narrowband_behavior(self, value): + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Narrowband Behavior') + key_val_pair = [i for i in props if 'Narrowband Behavior=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @narrowband_behavior.setter + def narrowband_behavior(self, value): oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Narrowband Behavior=' + value]) class NarrowbandBehaviorOption(Enum): - ( ABSOLUTE = "Absolute Freqs and Power" RELATIVEBANDWIDTH = "Relative Freqs and Attenuation" - ) @property - def get_measurement_frequency(self): + def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measurement Frequency') - def set_measurement_frequency(self, value): + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measurement Frequency') + key_val_pair = [i for i in props if 'Measurement Frequency=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @measurement_frequency.setter + def measurement_frequency(self, value): oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Measurement Frequency=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py new file mode 100644 index 00000000000..5ec650e8741 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py @@ -0,0 +1,410 @@ +from ..GenericEmitNode import * +class TxSpectralProfNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def enabled(self): + """Enabled state for this node.""" + return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + @enabled.setter + def enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + + @property + def spectrum_type(self): + """Spectrum Type + "Specifies EMI Margins to calculate." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spectrum Type') + key_val_pair = [i for i in props if 'Spectrum Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @spectrum_type.setter + def spectrum_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Spectrum Type=' + value]) + class SpectrumTypeOption(Enum): + BOTH = "Narrowband & Broadband" + BROADBANDONLY = "Broadband Only" + + @property + def tx_power(self): + """Tx Power + "Method used to specify the power." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx Power') + key_val_pair = [i for i in props if 'Tx Power=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @tx_power.setter + def tx_power(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Tx Power=' + value]) + class TxPowerOption(Enum): + PEAK_POWER = "Peak Power" + AVERAGE_POWER = "Average Power" + + @property + def peak_power(self) -> float: + """Peak Power + "Tx's carrier frequency peak power." + "Value should be between -1000 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Peak Power') + key_val_pair = [i for i in props if 'Peak Power=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @peak_power.setter + def peak_power(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Peak Power=' + value]) + + @property + def average_power(self) -> float: + """Average Power + "Tx's fundamental level specified by average power." + "Value should be between -1000 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Average Power') + key_val_pair = [i for i in props if 'Average Power=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @average_power.setter + def average_power(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Average Power=' + value]) + + @property + def output_voltage_peak(self) -> float: + """Output Voltage Peak + "Output High Voltage Level: maximum voltage of the digital signal." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Voltage Peak') + key_val_pair = [i for i in props if 'Output Voltage Peak=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @output_voltage_peak.setter + def output_voltage_peak(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Voltage Peak=' + value]) + + @property + def include_phase_noise(self) -> bool: + """Include Phase Noise + "Include oscillator phase noise in Tx spectral profile." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Phase Noise') + key_val_pair = [i for i in props if 'Include Phase Noise=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @include_phase_noise.setter + def include_phase_noise(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Phase Noise=' + value]) + + @property + def tx_broadband_noise(self) -> float: + """Tx Broadband Noise + "Transmitters broadband noise level." + "Value should be less than 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx Broadband Noise') + key_val_pair = [i for i in props if 'Tx Broadband Noise=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @tx_broadband_noise.setter + def tx_broadband_noise(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Tx Broadband Noise=' + value]) + + @property + def harmonic_taper(self): + """Harmonic Taper + "Taper type used to set amplitude of harmonics." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Taper') + key_val_pair = [i for i in props if 'Harmonic Taper=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @harmonic_taper.setter + def harmonic_taper(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Harmonic Taper=' + value]) + class HarmonicTaperOption(Enum): + CONSTANT = "Constant" + MIL_STD_461G = "MIL-STD-461G" + MIL_STD_461G_NAVY = "MIL-STD-461G Navy" + DUFF_MODEL = "Duff Model" + + @property + def harmonic_amplitude(self) -> float: + """Harmonic Amplitude + "Amplitude (relative to the carrier power) of harmonics." + "Value should be between -1000 and 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Amplitude') + key_val_pair = [i for i in props if 'Harmonic Amplitude=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @harmonic_amplitude.setter + def harmonic_amplitude(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Harmonic Amplitude=' + value]) + + @property + def harmonic_slope(self) -> float: + """Harmonic Slope + "Rate of decrease for harmonics' amplitudes (dB/decade)." + "Value should be between -1000 and 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Slope') + key_val_pair = [i for i in props if 'Harmonic Slope=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @harmonic_slope.setter + def harmonic_slope(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Harmonic Slope=' + value]) + + @property + def harmonic_intercept(self) -> float: + """Harmonic Intercept + "Amplitude intercept at the fundamental (dBc)." + "Value should be between -1000 and 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Intercept') + key_val_pair = [i for i in props if 'Harmonic Intercept=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @harmonic_intercept.setter + def harmonic_intercept(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Harmonic Intercept=' + value]) + + @property + def enable_harmonic_bw_expansion(self) -> bool: + """Enable Harmonic BW Expansion + "If (True), bandwidth of harmonics increases proportional to the harmonic number." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Harmonic BW Expansion') + key_val_pair = [i for i in props if 'Enable Harmonic BW Expansion=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enable_harmonic_bw_expansion.setter + def enable_harmonic_bw_expansion(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Harmonic BW Expansion=' + value]) + + @property + def number_of_harmonics(self) -> int: + """Number of Harmonics + "Maximum number of harmonics modeled." + "Value should be between 1 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Harmonics') + key_val_pair = [i for i in props if 'Number of Harmonics=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @number_of_harmonics.setter + def number_of_harmonics(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Number of Harmonics=' + value]) + + @property + def _2nd_harmonic_level(self) -> float: + """2nd Harmonic Level + "Amplitude (relative to the carrier power) of the 2nd harmonic." + "Value should be between -1000 and 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'2nd Harmonic Level') + key_val_pair = [i for i in props if '2nd Harmonic Level=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @_2nd_harmonic_level.setter + def _2nd_harmonic_level(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['2nd Harmonic Level=' + value]) + + @property + def _3rd_harmonic_level(self) -> float: + """3rd Harmonic Level + "Amplitude (relative to the carrier power) of the 3rd harmonic." + "Value should be between -1000 and 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'3rd Harmonic Level') + key_val_pair = [i for i in props if '3rd Harmonic Level=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @_3rd_harmonic_level.setter + def _3rd_harmonic_level(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['3rd Harmonic Level=' + value]) + + @property + def other_harmonic_levels(self) -> float: + """Other Harmonic Levels + "Amplitude (relative to the carrier power) of the higher order harmonics." + "Value should be between -1000 and 0." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Other Harmonic Levels') + key_val_pair = [i for i in props if 'Other Harmonic Levels=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @other_harmonic_levels.setter + def other_harmonic_levels(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Other Harmonic Levels=' + value]) + + @property + def perform_tx_intermod_analysis(self) -> bool: + """Perform Tx Intermod Analysis + "Performs a non-linear intermod analysis for the Tx." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Perform Tx Intermod Analysis') + key_val_pair = [i for i in props if 'Perform Tx Intermod Analysis=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @perform_tx_intermod_analysis.setter + def perform_tx_intermod_analysis(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Perform Tx Intermod Analysis=' + value]) + + @property + def internal_amp_gain(self) -> float: + """Internal Amp Gain + "Internal Tx Amplifier's Gain." + "Value should be between -1000 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Internal Amp Gain') + key_val_pair = [i for i in props if 'Internal Amp Gain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @internal_amp_gain.setter + def internal_amp_gain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Internal Amp Gain=' + value]) + + @property + def noise_figure(self) -> float: + """Noise Figure + "Internal Tx Amplifier's noise figure." + "Value should be between 0 and 50." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Figure') + key_val_pair = [i for i in props if 'Noise Figure=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @noise_figure.setter + def noise_figure(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Figure=' + value]) + + @property + def amplifier_saturation_level(self) -> float: + """Amplifier Saturation Level + "Internal Tx Amplifier's Saturation Level." + "Value should be between -200 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplifier Saturation Level') + key_val_pair = [i for i in props if 'Amplifier Saturation Level=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @amplifier_saturation_level.setter + def amplifier_saturation_level(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplifier Saturation Level=' + value]) + + @property + def _1_db_point_ref_input_(self) -> float: + """1-dB Point, Ref. Input + "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." + "Value should be between -200 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'1-dB Point, Ref. Input ') + key_val_pair = [i for i in props if '1-dB Point, Ref. Input =' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @_1_db_point_ref_input_.setter + def _1_db_point_ref_input_(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input =' + value]) + + @property + def ip3_ref_input(self) -> float: + """IP3, Ref. Input + "Internal Tx Amplifier's 3rd order intercept point." + "Value should be between -200 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'IP3, Ref. Input') + key_val_pair = [i for i in props if 'IP3, Ref. Input=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @ip3_ref_input.setter + def ip3_ref_input(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + value]) + + @property + def reverse_isolation(self) -> float: + """Reverse Isolation + "Internal Tx Amplifier's Reverse Isolation." + "Value should be between -200 and 200." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reverse Isolation') + key_val_pair = [i for i in props if 'Reverse Isolation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @reverse_isolation.setter + def reverse_isolation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) + + @property + def max_intermod_order(self) -> int: + """Max Intermod Order + "Internal Tx Amplifier's maximum intermod order to compute." + "Value should be between 3 and 20." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Intermod Order') + key_val_pair = [i for i in props if 'Max Intermod Order=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @max_intermod_order.setter + def max_intermod_order(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py similarity index 57% rename from src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSpurNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py index 38995c68c96..8b530de2084 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Node_RxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py @@ -1,8 +1,14 @@ -class Node_RxSpurNode(GenericEmitNode): +from ..GenericEmitNode import * +class TxSpurNode(GenericEmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False GenericEmitNode.__init__(self, oDesign, result_id, node_id) + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + def import_csv_file(self, file_name): """Import a CSV File...""" return self._import(file_name,'Csv') @@ -12,23 +18,28 @@ def delete(self): self._delete() @property - def get_enabled(self): + def enabled(self): """Enabled state for this node.""" return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') - def set_enabled(self, value): + @enabled.setter + def enabled(self, value): oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) @property - def get_spur_table_units(self): + def spur_table_units(self): """Spur Table Units "Specifies the units for the Spurs." - """ - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spur Table Units') - def set_spur_table_units(self, value): + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spur Table Units') + key_val_pair = [i for i in props if 'Spur Table Units=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @spur_table_units.setter + def spur_table_units(self, value): oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Spur Table Units=' + value]) class SpurTableUnitsOption(Enum): - ( ABSOLUTE = "Absolute" RELATIVE = "Relative" - ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py new file mode 100644 index 00000000000..b54abe16bef --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py @@ -0,0 +1,414 @@ +from ..GenericEmitNode import * +class WalfischCouplingNode(GenericEmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + GenericEmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def enabled(self) -> bool: + """Enabled + "Enable/Disable coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') + key_val_pair = [i for i in props if 'Enabled=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enabled.setter + def enabled(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def enable_refinement(self) -> bool: + """Enable Refinement + "Enables/disables refined sampling of the frequency domain.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') + key_val_pair = [i for i in props if 'Enable Refinement=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @enable_refinement.setter + def enable_refinement(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + + @property + def adaptive_sampling(self) -> bool: + """Adaptive Sampling + "Enables/disables adaptive refinement the frequency domain sampling.." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') + key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @adaptive_sampling.setter + def adaptive_sampling(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + + @property + def refinement_domain(self): + """Refinement Domain + "Points to use when refining the frequency domain.." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') + key_val_pair = [i for i in props if 'Refinement Domain=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @refinement_domain.setter + def refinement_domain(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + + @property + def path_loss_type(self): + """Path Loss Type + "Specify LOS vs NLOS for the Walfisch-Ikegami model." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Path Loss Type') + key_val_pair = [i for i in props if 'Path Loss Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @path_loss_type.setter + def path_loss_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Path Loss Type=' + value]) + class PathLossTypeOption(Enum): + WALFISCHLOS = "LOS (Urban Canyon)" + WALFISCHNLOS = "NLOS" + + @property + def environment(self): + """Environment + "Specify the environment type for the Walfisch model." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Environment') + key_val_pair = [i for i in props if 'Environment=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @environment.setter + def environment(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Environment=' + value]) + class EnvironmentOption(Enum): + DENSEMETROAREA = "Dense Metro" + SMALLURBANORSUBURBAN = "Small/Medium City or Suburban" + + @property + def roof_height(self) -> float: + """Roof Height + "The height of the building where the antenna is located.." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Roof Height') + key_val_pair = [i for i in props if 'Roof Height=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @roof_height.setter + def roof_height(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Roof Height=' + value]) + + @property + def distance_between_buildings(self) -> float: + """Distance Between Buildings + "The distance between two buildings.." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Distance Between Buildings') + key_val_pair = [i for i in props if 'Distance Between Buildings=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @distance_between_buildings.setter + def distance_between_buildings(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Distance Between Buildings=' + value]) + + @property + def street_width(self) -> float: + """Street Width + "Width of the street.." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Street Width') + key_val_pair = [i for i in props if 'Street Width=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @street_width.setter + def street_width(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Street Width=' + value]) + + @property + def incidence_angle(self) -> float: + """Incidence Angle + "Angle between the street orientation and direction of incidence.." + "Value should be between 0 and 90." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Incidence Angle') + key_val_pair = [i for i in props if 'Incidence Angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @incidence_angle.setter + def incidence_angle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Incidence Angle=' + value]) + + @property + def custom_fading_margin(self) -> float: + """Custom Fading Margin + "Sets a custom fading margin to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') + key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @custom_fading_margin.setter + def custom_fading_margin(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + + @property + def polarization_mismatch(self) -> float: + """Polarization Mismatch + "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') + key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @polarization_mismatch.setter + def polarization_mismatch(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + + @property + def pointing_error_loss(self) -> float: + """Pointing Error Loss + "Sets a margin for pointing error loss to be applied to all coupling defined by this node." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') + key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @pointing_error_loss.setter + def pointing_error_loss(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + + @property + def fading_type(self): + """Fading Type + "Specify the type of fading to include." + " """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') + key_val_pair = [i for i in props if 'Fading Type=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @fading_type.setter + def fading_type(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) + class FadingTypeOption(Enum): + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + + @property + def fading_availability(self) -> float: + """Fading Availability + "The probability that the propagation loss in dB is below its median value plus the margin." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') + key_val_pair = [i for i in props if 'Fading Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @fading_availability.setter + def fading_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + + @property + def std_deviation(self) -> float: + """Std Deviation + "Standard deviation modeling the random amount of shadowing loss." + "Value should be between 0 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') + key_val_pair = [i for i in props if 'Std Deviation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @std_deviation.setter + def std_deviation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + + @property + def include_rain_attenuation(self) -> bool: + """Include Rain Attenuation + "Adds a margin for rain attenuation to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') + key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @include_rain_attenuation.setter + def include_rain_attenuation(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + + @property + def rain_availability(self) -> float: + """Rain Availability + "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." + "Value should be between 99 and 99.999." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') + key_val_pair = [i for i in props if 'Rain Availability=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @rain_availability.setter + def rain_availability(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + + @property + def rain_rate(self) -> float: + """Rain Rate + "Rain rate (mm/hr) exceeded for 0.01% of the time." + "Value should be between 0 and 1000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') + key_val_pair = [i for i in props if 'Rain Rate=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @rain_rate.setter + def rain_rate(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + + @property + def polarization_tilt_angle(self) -> float: + """Polarization Tilt Angle + "Polarization tilt angle of the transmitted signal relative to the horizontal." + "Value should be between 0 and 180." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') + key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @polarization_tilt_angle.setter + def polarization_tilt_angle(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + + @property + def include_atmospheric_absorption(self) -> bool: + """Include Atmospheric Absorption + "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." + "Value should be 'true' or 'false'." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') + key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @include_atmospheric_absorption.setter + def include_atmospheric_absorption(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + + @property + def temperature(self) -> float: + """Temperature + "Air temperature in degrees Celsius." + "Value should be between -273 and 100." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') + key_val_pair = [i for i in props if 'Temperature=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @temperature.setter + def temperature(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) + + @property + def total_air_pressure(self) -> float: + """Total Air Pressure + "Total air pressure." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') + key_val_pair = [i for i in props if 'Total Air Pressure=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @total_air_pressure.setter + def total_air_pressure(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + + @property + def water_vapor_concentration(self) -> float: + """Water Vapor Concentration + "Water vapor concentration." + "Value should be between 0 and 2000." + """ + props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') + key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] + if len(key_val_pair) != 1: + return '' + val = key_val_pair[1].split('=')[1] + return val + @water_vapor_concentration.setter + def water_vapor_concentration(self, value): + oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/nodes.py b/src/ansys/aedt/core/emit_core/nodes/nodes.py index f8e4685d89b..f344b5bab38 100644 --- a/src/ansys/aedt/core/emit_core/nodes/nodes.py +++ b/src/ansys/aedt/core/emit_core/nodes/nodes.py @@ -3,83 +3,121 @@ from . import generated -from .generated.Node_Amplifier import Node_Amplifier -from .generated.Node_AntennaGroup import Node_AntennaGroup -from .generated.Node_AntennaNode import Node_AntennaNode -# from .generated.Node_AntennaPassband import Node_AntennaPassband -# from .generated.Node_Band import Node_Band -# from .generated.Node_BandFolder import Node_BandFolder -# from .generated.Node_BandTraceNode import Node_BandTraceNode -# from .generated.Node_Cable import Node_Cable -# from .generated.Node_CADNode import Node_CADNode -# from .generated.Node_Circulator import Node_Circulator -# from .generated.Node_ComponentGroup import Node_ComponentGroup -# from .generated.Node_ConfigurationGroup import Node_ConfigurationGroup -# from .generated.Node_ConfigurationNode import Node_ConfigurationNode -# from .generated.Node_CouplingLinkNode import Node_CouplingLinkNode -from .generated.Node_CouplingsNode import Node_CouplingsNode -# from .generated.Node_CouplingTraceNode import Node_CouplingTraceNode -# from .generated.Node_CustomCouplingNode import Node_CustomCouplingNode -# from .generated.Node_EmiPlotMarkerNode import Node_EmiPlotMarkerNode -from .generated.Node_EmitSceneNode import Node_EmitSceneNode -# from .generated.Node_ErcegCouplingNode import Node_ErcegCouplingNode -# from .generated.Node_Filter import Node_Filter -# from .generated.Node_FiveGChannelModel import Node_FiveGChannelModel -# from .generated.Node_HataCouplingNode import Node_HataCouplingNode -# from .generated.Node_IndoorPropagationCouplingNode import Node_IndoorPropagationCouplingNode -# from .generated.Node_InteractionDiagramNode import Node_InteractionDiagramNode -# from .generated.Node_Isolator import Node_Isolator -# from .generated.Node_LogDistanceCouplingNode import Node_LogDistanceCouplingNode -# from .generated.Node_MPlexBandTraceNode import Node_MPlexBandTraceNode -# from .generated.Node_Multiplexer import Node_Multiplexer -# from .generated.Node_MultiplexerBand import Node_MultiplexerBand -# from .generated.Node_Node import Node_Node -# from .generated.Node_OutboardTraceNode import Node_OutboardTraceNode -# from .generated.Node_ParametricCouplingTraceNode import Node_ParametricCouplingTraceNode -# from .generated.Node_PlotMarkerNode import Node_PlotMarkerNode -# from .generated.Node_PlotNode import Node_PlotNode -# from .generated.Node_PowerDivider import Node_PowerDivider -# from .generated.Node_PowerTraceNode import Node_PowerTraceNode -# from .generated.Node_ProfileTraceNode import Node_ProfileTraceNode -# from .generated.Node_PropagationLossCouplingNode import Node_PropagationLossCouplingNode -# from .generated.Node_RadioGroup import Node_RadioGroup -# from .generated.Node_RadioNode import Node_RadioNode -# from .generated.Node_ResultPlotNode import Node_ResultPlotNode -# from .generated.Node_RfSystemGroup import Node_RfSystemGroup -# from .generated.Node_RFSystemNode import Node_RFSystemNode -# from .generated.Node_RxMeasNode import Node_RxMeasNode -# from .generated.Node_RxMixerProductNode import Node_RxMixerProductNode -# from .generated.Node_RxSaturationNode import Node_RxSaturationNode -# from .generated.Node_RxSelectivityNode import Node_RxSelectivityNode -# from .generated.Node_RxSpurNode import Node_RxSpurNode -# from .generated.Node_RxSusceptibilityProfNode import Node_RxSusceptibilityProfNode -# from .generated.Node_SamplingNode import Node_SamplingNode -# from .generated.Node_SceneGroupNode import Node_SceneGroupNode -# from .generated.Node_SelectivityTraceNode import Node_SelectivityTraceNode -# from .generated.Node_SolutionCouplingNode import Node_SolutionCouplingNode -# from .generated.Node_SolutionsNode import Node_SolutionsNode -# from .generated.Node_Sparameter import Node_Sparameter -# from .generated.Node_SparameterTraceNode import Node_SparameterTraceNode -# from .generated.Node_SpurTraceNode import Node_SpurTraceNode -# from .generated.Node_Terminator import Node_Terminator -# from .generated.Node_TestNoiseTraceNode import Node_TestNoiseTraceNode -# from .generated.Node_TopLevelSimulation import Node_TopLevelSimulation -# from .generated.Node_TouchstoneCouplingNode import Node_TouchstoneCouplingNode -# from .generated.Node_TR_Switch import Node_TR_Switch -# from .generated.Node_TRSwitchTraceNode import Node_TRSwitchTraceNode -# from .generated.Node_TunableTraceNode import Node_TunableTraceNode -# from .generated.Node_TwoRayPathLossCouplingNode import Node_TwoRayPathLossCouplingNode -# from .generated.Node_TwoToneTraceNode import Node_TwoToneTraceNode -# from .generated.Node_TxBbEmissionNode import Node_TxBbEmissionNode -# from .generated.Node_TxHarmonicNode import Node_TxHarmonicNode -# from .generated.Node_TxMeasNode import Node_TxMeasNode -# from .generated.Node_TxNbEmissionNode import Node_TxNbEmissionNode -# from .generated.Node_TxSpectralProfNode import Node_TxSpectralProfNode -# from .generated.Node_TxSpurNode import Node_TxSpurNode -# from .generated.Node_WalfischCouplingNode import Node_WalfischCouplingNode +from .generated.Amplifier import Amplifier +from .generated.ReadOnlyAmplifier import ReadOnlyAmplifier +from .generated.Circulator import Circulator +from .generated.CouplingLinkNode import CouplingLinkNode +from .generated.CouplingsNode import CouplingsNode +from .generated.CouplingTraceNode import CouplingTraceNode +from .generated.CustomCouplingNode import CustomCouplingNode +from .generated.EmiPlotMarkerNode import EmiPlotMarkerNode +from .generated.EmitSceneNode import EmitSceneNode +from .generated.ErcegCouplingNode import ErcegCouplingNode +from .generated.Filter import Filter +from .generated.FiveGChannelModel import FiveGChannelModel +from .generated.HataCouplingNode import HataCouplingNode +from .generated.IndoorPropagationCouplingNode import IndoorPropagationCouplingNode +from .generated.Isolator import Isolator +from .generated.LogDistanceCouplingNode import LogDistanceCouplingNode +from .generated.MPlexBandTraceNode import MPlexBandTraceNode +from .generated.Multiplexer import Multiplexer +from .generated.MultiplexerBand import MultiplexerBand +from .generated.OutboardTraceNode import OutboardTraceNode +from .generated.ParametricCouplingTraceNode import ParametricCouplingTraceNode +from .generated.PlotMarkerNode import PlotMarkerNode +from .generated.PlotNode import PlotNode +from .generated.PowerDivider import PowerDivider +from .generated.PowerTraceNode import PowerTraceNode +from .generated.ProfileTraceNode import ProfileTraceNode +from .generated.PropagationLossCouplingNode import PropagationLossCouplingNode +from .generated.RadioNode import RadioNode +from .generated.ReadOnlyAntennaNode import ReadOnlyAntennaNode +from .generated.ReadOnlyAntennaPassband import ReadOnlyAntennaPassband +from .generated.ReadOnlyBand import ReadOnlyBand +from .generated.ReadOnlyBandFolder import ReadOnlyBandFolder +from .generated.ReadOnlyCable import ReadOnlyCable +from .generated.ReadOnlyCADNode import ReadOnlyCADNode +from .generated.ReadOnlyCirculator import ReadOnlyCirculator +from .generated.ReadOnlyCouplingLinkNode import ReadOnlyCouplingLinkNode +from .generated.ReadOnlyCouplingsNode import ReadOnlyCouplingsNode +from .generated.ReadOnlyCustomCouplingNode import ReadOnlyCustomCouplingNode +from .generated.ReadOnlyEmitSceneNode import ReadOnlyEmitSceneNode +from .generated.ReadOnlyErcegCouplingNode import ReadOnlyErcegCouplingNode +from .generated.ReadOnlyFilter import ReadOnlyFilter +from .generated.ReadOnlyFiveGChannelModel import ReadOnlyFiveGChannelModel +from .generated.ReadOnlyHataCouplingNode import ReadOnlyHataCouplingNode +from .generated.ReadOnlyIndoorPropagationCouplingNode import ReadOnlyIndoorPropagationCouplingNode +from .generated.ReadOnlyIsolator import ReadOnlyIsolator +from .generated.ReadOnlyLogDistanceCouplingNode import ReadOnlyLogDistanceCouplingNode +from .generated.ReadOnlyMultiplexer import ReadOnlyMultiplexer +from .generated.ReadOnlyMultiplexerBand import ReadOnlyMultiplexerBand +from .generated.ReadOnlyPowerDivider import ReadOnlyPowerDivider +from .generated.ReadOnlyPropagationLossCouplingNode import ReadOnlyPropagationLossCouplingNode +from .generated.ReadOnlyRadioNode import ReadOnlyRadioNode +from .generated.ReadOnlyRfSystemGroup import ReadOnlyRfSystemGroup +from .generated.ReadOnlyRxMeasNode import ReadOnlyRxMeasNode +from .generated.ReadOnlyRxMixerProductNode import ReadOnlyRxMixerProductNode +from .generated.ReadOnlyRxSaturationNode import ReadOnlyRxSaturationNode +from .generated.ReadOnlyRxSelectivityNode import ReadOnlyRxSelectivityNode +from .generated.ReadOnlyRxSpurNode import ReadOnlyRxSpurNode +from .generated.ReadOnlyRxSusceptibilityProfNode import ReadOnlyRxSusceptibilityProfNode +from .generated.ReadOnlySamplingNode import ReadOnlySamplingNode +from .generated.ReadOnlySceneGroupNode import ReadOnlySceneGroupNode +from .generated.ReadOnlySolutionCouplingNode import ReadOnlySolutionCouplingNode +from .generated.ReadOnlySolutionsNode import ReadOnlySolutionsNode +from .generated.ReadOnlySparameter import ReadOnlySparameter +from .generated.ReadOnlyTerminator import ReadOnlyTerminator +from .generated.ReadOnlyTouchstoneCouplingNode import ReadOnlyTouchstoneCouplingNode +from .generated.ReadOnlyTR_Switch import ReadOnlyTR_Switch +from .generated.ReadOnlyTwoRayPathLossCouplingNode import ReadOnlyTwoRayPathLossCouplingNode +from .generated.ReadOnlyTxBbEmissionNode import ReadOnlyTxBbEmissionNode +from .generated.ReadOnlyTxHarmonicNode import ReadOnlyTxHarmonicNode +from .generated.ReadOnlyTxMeasNode import ReadOnlyTxMeasNode +from .generated.ReadOnlyTxNbEmissionNode import ReadOnlyTxNbEmissionNode +from .generated.ReadOnlyTxSpectralProfNode import ReadOnlyTxSpectralProfNode +from .generated.ReadOnlyTxSpurNode import ReadOnlyTxSpurNode +from .generated.ReadOnlyWalfischCouplingNode import ReadOnlyWalfischCouplingNode +from .generated.ResultPlotNode import ResultPlotNode +from .generated.RfSystemGroup import RfSystemGroup +from .generated.RxMeasNode import RxMeasNode +from .generated.RxMixerProductNode import RxMixerProductNode +from .generated.RxSaturationNode import RxSaturationNode +from .generated.RxSelectivityNode import RxSelectivityNode +from .generated.RxSpurNode import RxSpurNode +from .generated.RxSusceptibilityProfNode import RxSusceptibilityProfNode +from .generated.SamplingNode import SamplingNode +from .generated.SceneGroupNode import SceneGroupNode +from .generated.SelectivityTraceNode import SelectivityTraceNode +from .generated.SolutionCouplingNode import SolutionCouplingNode +from .generated.SolutionsNode import SolutionsNode +from .generated.Sparameter import Sparameter +from .generated.SpurTraceNode import SpurTraceNode +from .generated.Terminator import Terminator +from .generated.TestNoiseTraceNode import TestNoiseTraceNode +from .generated.TopLevelSimulation import TopLevelSimulation +from .generated.TouchstoneCouplingNode import TouchstoneCouplingNode +from .generated.TR_Switch import TR_Switch +from .generated.TRSwitchTraceNode import TRSwitchTraceNode +from .generated.TunableTraceNode import TunableTraceNode +from .generated.TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode +from .generated.TwoToneTraceNode import TwoToneTraceNode +from .generated.TxBbEmissionNode import TxBbEmissionNode +from .generated.TxHarmonicNode import TxHarmonicNode +from .generated.TxMeasNode import TxMeasNode +from .generated.TxNbEmissionNode import TxNbEmissionNode +from .generated.TxSpectralProfNode import TxSpectralProfNode +from .generated.TxSpurNode import TxSpurNode +from .generated.WalfischCouplingNode import WalfischCouplingNode +from .generated.AntennaNode import AntennaNode +from .generated.AntennaPassband import AntennaPassband +from .generated.Band import Band +from .generated.BandFolder import BandFolder +from .generated.BandTraceNode import BandTraceNode +from .generated.Cable import Cable +from .generated.CADNode import CADNode +from .generated.CategoriesViewNode import CategoriesViewNode class NodeInterface: - def __init__(self, oDesign): self.oDesign = oDesign self.oEmitCom = oDesign.GetModule("EmitCom") @@ -109,7 +147,6 @@ def get_node(self, id: int) -> GenericEmitNode: parent_props = props_to_dict(parent_props) type = parent_props['Type'] - type = f'Node_{type}' node = None try: @@ -126,12 +163,12 @@ def get_all_nodes(self) -> list[GenericEmitNode]: nodes = [self.get_node(id) for id in ids] return nodes - def get_scene_node(self) -> Node_EmitSceneNode: + def get_scene_node(self) -> EmitSceneNode: scene_node_id = self.oEmitCom.GetTopLevelNodeID(0, "Scene") scene_node = self.get_node(scene_node_id) return scene_node - def get_couplings_node(self) -> Node_CouplingsNode: + def get_couplings_node(self) -> CouplingsNode: couplings_node_id = self.oEmitCom.GetTopLevelNodeID(0, "Couplings") couplings_node = self.get_node(couplings_node_id) - return couplings_node \ No newline at end of file + return couplings_node From 3cce1c174081de12579fe0425c16fae8377470e0 Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Fri, 31 Jan 2025 20:12:00 -0600 Subject: [PATCH 04/86] Updated generated nodes and interface --- .../nodes/{GenericEmitNode.py => EmitNode.py} | 69 +- .../emit_core/nodes/generated/Amplifier.py | 159 ++-- .../emit_core/nodes/generated/AntennaNode.py | 690 +++++----------- .../nodes/generated/AntennaPassband.py | 88 +-- .../core/emit_core/nodes/generated/Band.py | 741 ++++++------------ .../emit_core/nodes/generated/BandFolder.py | 10 +- .../nodes/generated/BandTraceNode.py | 188 ++--- .../core/emit_core/nodes/generated/CADNode.py | 432 ++++------ .../core/emit_core/nodes/generated/Cable.py | 118 +-- .../nodes/generated/CategoriesViewNode.py | 10 +- .../emit_core/nodes/generated/Circulator.py | 175 ++--- .../nodes/generated/CouplingLinkNode.py | 32 +- .../nodes/generated/CouplingTraceNode.py | 246 +++--- .../nodes/generated/CouplingsNode.py | 37 +- .../nodes/generated/CustomCouplingNode.py | 84 +- .../nodes/generated/EmiPlotMarkerNode.py | 270 +++---- .../nodes/generated/EmitSceneNode.py | 51 +- .../nodes/generated/ErcegCouplingNode.py | 244 +++--- .../core/emit_core/nodes/generated/Filter.py | 252 ++---- .../nodes/generated/FiveGChannelModel.py | 283 +++---- .../nodes/generated/HataCouplingNode.py | 246 +++--- .../IndoorPropagationCouplingNode.py | 274 +++---- .../emit_core/nodes/generated/Isolator.py | 175 ++--- .../generated/LogDistanceCouplingNode.py | 258 +++--- .../nodes/generated/MPlexBandTraceNode.py | 171 ++-- .../emit_core/nodes/generated/Multiplexer.py | 107 ++- .../nodes/generated/MultiplexerBand.py | 150 ++-- .../nodes/generated/OutboardTraceNode.py | 174 ++-- .../generated/ParametricCouplingTraceNode.py | 174 ++-- .../nodes/generated/PlotMarkerNode.py | 278 +++---- .../emit_core/nodes/generated/PlotNode.py | 319 +++----- .../emit_core/nodes/generated/PowerDivider.py | 177 ++--- .../nodes/generated/PowerTraceNode.py | 173 ++-- .../nodes/generated/ProfileTraceNode.py | 154 ++-- .../generated/PropagationLossCouplingNode.py | 223 +++--- .../emit_core/nodes/generated/RadioNode.py | 32 +- .../nodes/generated/ReadOnlyAmplifier.py | 117 +-- .../nodes/generated/ReadOnlyAntennaNode.py | 547 +++---------- .../generated/ReadOnlyAntennaPassband.py | 59 +- .../emit_core/nodes/generated/ReadOnlyBand.py | 539 +++---------- .../nodes/generated/ReadOnlyBandFolder.py | 10 +- .../nodes/generated/ReadOnlyCADNode.py | 334 ++------ .../nodes/generated/ReadOnlyCable.py | 91 +-- .../nodes/generated/ReadOnlyCirculator.py | 133 +--- .../generated/ReadOnlyCouplingLinkNode.py | 25 +- .../nodes/generated/ReadOnlyCouplingsNode.py | 31 +- .../generated/ReadOnlyCustomCouplingNode.py | 63 +- .../nodes/generated/ReadOnlyEmitSceneNode.py | 42 +- .../generated/ReadOnlyErcegCouplingNode.py | 181 ++--- .../nodes/generated/ReadOnlyFilter.py | 184 +---- .../generated/ReadOnlyFiveGChannelModel.py | 211 ++--- .../generated/ReadOnlyHataCouplingNode.py | 183 ++--- .../ReadOnlyIndoorPropagationCouplingNode.py | 203 ++--- .../nodes/generated/ReadOnlyIsolator.py | 133 +--- .../ReadOnlyLogDistanceCouplingNode.py | 190 ++--- .../nodes/generated/ReadOnlyMultiplexer.py | 85 +- .../generated/ReadOnlyMultiplexerBand.py | 114 +-- .../nodes/generated/ReadOnlyPowerDivider.py | 135 +--- .../ReadOnlyPropagationLossCouplingNode.py | 163 ++-- .../nodes/generated/ReadOnlyRadioNode.py | 26 +- .../nodes/generated/ReadOnlyRfSystemGroup.py | 24 +- .../nodes/generated/ReadOnlyRxMeasNode.py | 175 +---- .../generated/ReadOnlyRxMixerProductNode.py | 162 ++-- .../generated/ReadOnlyRxSaturationNode.py | 10 +- .../generated/ReadOnlyRxSelectivityNode.py | 17 +- .../nodes/generated/ReadOnlyRxSpurNode.py | 39 +- .../ReadOnlyRxSusceptibilityProfNode.py | 121 +-- .../nodes/generated/ReadOnlySamplingNode.py | 88 +-- .../nodes/generated/ReadOnlySceneGroupNode.py | 82 +- .../generated/ReadOnlySolutionCouplingNode.py | 38 +- .../nodes/generated/ReadOnlySolutionsNode.py | 17 +- .../nodes/generated/ReadOnlySparameter.py | 60 +- .../nodes/generated/ReadOnlyTR_Switch.py | 126 +-- .../nodes/generated/ReadOnlyTerminator.py | 77 +- .../ReadOnlyTouchstoneCouplingNode.py | 74 +- .../ReadOnlyTwoRayPathLossCouplingNode.py | 177 ++--- .../generated/ReadOnlyTxBbEmissionNode.py | 37 +- .../nodes/generated/ReadOnlyTxHarmonicNode.py | 26 +- .../nodes/generated/ReadOnlyTxMeasNode.py | 59 +- .../generated/ReadOnlyTxNbEmissionNode.py | 33 +- .../generated/ReadOnlyTxSpectralProfNode.py | 209 ++--- .../nodes/generated/ReadOnlyTxSpurNode.py | 39 +- .../generated/ReadOnlyWalfischCouplingNode.py | 223 ++---- .../nodes/generated/ResultPlotNode.py | 329 +++----- .../nodes/generated/RfSystemGroup.py | 30 +- .../emit_core/nodes/generated/RxMeasNode.py | 240 ++---- .../nodes/generated/RxMixerProductNode.py | 216 ++--- .../nodes/generated/RxSaturationNode.py | 18 +- .../nodes/generated/RxSelectivityNode.py | 28 +- .../emit_core/nodes/generated/RxSpurNode.py | 53 +- .../generated/RxSusceptibilityProfNode.py | 171 ++-- .../emit_core/nodes/generated/SamplingNode.py | 106 ++- .../nodes/generated/SceneGroupNode.py | 99 +-- .../nodes/generated/SelectivityTraceNode.py | 154 ++-- .../nodes/generated/SolutionCouplingNode.py | 48 +- .../nodes/generated/SolutionsNode.py | 20 +- .../emit_core/nodes/generated/Sparameter.py | 71 +- .../nodes/generated/SpurTraceNode.py | 169 ++-- .../nodes/generated/TRSwitchTraceNode.py | 174 ++-- .../emit_core/nodes/generated/TR_Switch.py | 168 ++-- .../emit_core/nodes/generated/Terminator.py | 95 +-- .../nodes/generated/TestNoiseTraceNode.py | 244 ++---- .../nodes/generated/TopLevelSimulation.py | 10 +- .../nodes/generated/TouchstoneCouplingNode.py | 97 +-- .../nodes/generated/TunableTraceNode.py | 184 ++--- .../generated/TwoRayPathLossCouplingNode.py | 243 +++--- .../nodes/generated/TwoToneTraceNode.py | 244 ++---- .../nodes/generated/TxBbEmissionNode.py | 51 +- .../nodes/generated/TxHarmonicNode.py | 37 +- .../emit_core/nodes/generated/TxMeasNode.py | 79 +- .../nodes/generated/TxNbEmissionNode.py | 47 +- .../nodes/generated/TxSpectralProfNode.py | 289 +++---- .../emit_core/nodes/generated/TxSpurNode.py | 53 +- .../nodes/generated/WalfischCouplingNode.py | 301 +++---- src/ansys/aedt/core/emit_core/nodes/nodes.py | 12 +- 115 files changed, 5772 insertions(+), 11284 deletions(-) rename src/ansys/aedt/core/emit_core/nodes/{GenericEmitNode.py => EmitNode.py} (79%) diff --git a/src/ansys/aedt/core/emit_core/nodes/GenericEmitNode.py b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py similarity index 79% rename from src/ansys/aedt/core/emit_core/nodes/GenericEmitNode.py rename to src/ansys/aedt/core/emit_core/nodes/EmitNode.py index 6d0810b0e03..7fce7ce3e9f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/GenericEmitNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py @@ -28,39 +28,39 @@ from . import generated -def props_to_dict(props): - result = {} - for prop in props: - split_prop = prop.split("=") - result[split_prop[0]] = split_prop[1] - - return result - -class GenericEmitNode: +class EmitNode: # meant to only be used as a parent class def __init__(self, oDesign, result_id, node_id): self._oDesign = oDesign self._result_id = result_id self._node_id = node_id - self.valid = True + self._valid = True + + @staticmethod + def props_to_dict(props): + result = {} + for prop in props: + split_prop = prop.split("=") + result[split_prop[0]] = split_prop[1] + + return result @property - def get_valid(self): + def valid(self): """Is false if this object has been detached from its EMIT node.""" - return self.valid + return self._valid - def get_name(self): - props = self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id, self._node_id, True) - props = props_to_dict(props) - return props["Name"] + @property + def name(self): + return self._get_property("Name") @property - def parent(self): + def _parent(self): # parent_id = self._oDesign.GetModule('EmitCom').GetParentNodeID(self._result_id, self._node_id) parent_id = 1 parent_props = self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id, parent_id, True) - parent_props = props_to_dict(parent_props) + parent_props = self.props_to_dict(parent_props) parent_type = parent_props['Type'] @@ -69,25 +69,32 @@ def parent(self): parent_node = parent_type_class(self._oDesign, self._result_id, parent_id) return parent_node - - def get_parent(self): - #TODO how to create a parent of the appropriate pyaedt node type? - return self._oDesign.GetModule('EmitCom').GetEmitNodeParent(self._result_id, self._node_id) - props = self.get_properties() - parent_path = props['Parent'] - def get_properties(self): + @property + def properties(self): props = self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id, self._node_id, True) - props = props_to_dict(props) + props = self.props_to_dict(props) return props - def get_warnings(self): - props = self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id, self._node_id, True) - props = props_to_dict(props) - return props["Warnings"] + @property + def warnings(self): + return self._get_property("Warnings") - def get_allowed_child_types(self): + @property + def allowed_child_types(self): return self._oDesign.GetModule('EmitCom').GetAllowedChildTypes(self._result_id, self._node_id) + + def _get_property(self, prop): + props = self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id, self._node_id, True) + key_val_pair = [i for i in props if f'{prop}=' in i] + if len(key_val_pair) != 1: + return '' + + val = key_val_pair[0].split('=')[1] + if val.find('|') != -1: + return val.split('|') + else: + return val def _delete(self): if self._is_component(): self._oDesign.GetModule('EmitCom').DeleteEmitComponent(self._result_id, self._node_id) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index 61431b80f99..71d37553729 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class Amplifier(GenericEmitNode): +from ..EmitNode import * + +class Amplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) def rename(self, new_name): """Rename this node""" @@ -22,15 +26,11 @@ def filename(self) -> str: "Name of file defining the outboard component." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - key_val_pair = [i for i in props if 'Filename=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Filename') return val @filename.setter - def filename(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + def filename(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @property def noise_temperature(self) -> float: @@ -38,48 +38,37 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - key_val_pair = [i for i in props if 'Noise Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Temperature') return val @noise_temperature.setter - def noise_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + def noise_temperature(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val @notes.setter - def notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + def notes(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + class AmplifierTypeOption(Enum): + TRANSMIT_AMPLIFIER = "Transmit Amplifier" + RECEIVE_AMPLIFIER = "Receive Amplifier" @property - def amplifier_type(self): + def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type "Configures the amplifier as a Tx or Rx amplifier." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplifier Type') - key_val_pair = [i for i in props if 'Amplifier Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Amplifier Type') + val = self.AmplifierTypeOption[val] return val @amplifier_type.setter - def amplifier_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplifier Type=' + value]) - class AmplifierTypeOption(Enum): - TRANSMIT_AMPLIFIER = "Transmit Amplifier" - RECEIVE_AMPLIFIER = "Receive Amplifier" + def amplifier_type(self, value: AmplifierTypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Amplifier Type=' + value.value]) @property def gain(self) -> float: @@ -87,15 +76,11 @@ def gain(self) -> float: "Amplifier in-band gain." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Gain') - key_val_pair = [i for i in props if 'Gain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Gain') return val @gain.setter - def gain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Gain=' + value]) + def gain(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Gain=' + value]) @property def center_frequency(self) -> float: @@ -103,15 +88,11 @@ def center_frequency(self) -> float: "Center frequency of amplifiers operational bandwidth." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Center Frequency') - key_val_pair = [i for i in props if 'Center Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Center Frequency') return val @center_frequency.setter - def center_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Center Frequency=' + value]) + def center_frequency(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Center Frequency=' + value]) @property def bandwidth(self) -> float: @@ -119,15 +100,11 @@ def bandwidth(self) -> float: "Frequency region where the gain applies." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bandwidth') - key_val_pair = [i for i in props if 'Bandwidth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Bandwidth') return val @bandwidth.setter - def bandwidth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Bandwidth=' + value]) + def bandwidth(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth=' + value]) @property def noise_figure(self) -> float: @@ -135,15 +112,11 @@ def noise_figure(self) -> float: "Amplifier noise figure." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Figure') - key_val_pair = [i for i in props if 'Noise Figure=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Figure') return val @noise_figure.setter - def noise_figure(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Figure=' + value]) + def noise_figure(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Figure=' + value]) @property def saturation_level(self) -> float: @@ -151,15 +124,11 @@ def saturation_level(self) -> float: "Saturation level." "Value should be between -200 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Saturation Level') - key_val_pair = [i for i in props if 'Saturation Level=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Saturation Level') return val @saturation_level.setter - def saturation_level(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Saturation Level=' + value]) + def saturation_level(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Saturation Level=' + value]) @property def _1_db_point_ref_input(self) -> float: @@ -167,15 +136,11 @@ def _1_db_point_ref_input(self) -> float: "Incoming signals > this value saturate the amplifier." "Value should be between -200 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'1-dB Point, Ref. Input') - key_val_pair = [i for i in props if '1-dB Point, Ref. Input=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('1-dB Point, Ref. Input') return val @_1_db_point_ref_input.setter - def _1_db_point_ref_input(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input=' + value]) + def _1_db_point_ref_input(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input=' + value]) @property def ip3_ref_input(self) -> float: @@ -183,15 +148,11 @@ def ip3_ref_input(self) -> float: "3rd order intercept point." "Value should be between -200 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'IP3, Ref. Input') - key_val_pair = [i for i in props if 'IP3, Ref. Input=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('IP3, Ref. Input') return val @ip3_ref_input.setter - def ip3_ref_input(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + value]) + def ip3_ref_input(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + value]) @property def shape_factor(self) -> float: @@ -199,15 +160,11 @@ def shape_factor(self) -> float: "Ratio defining the selectivity of the amplifier." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Shape Factor') - key_val_pair = [i for i in props if 'Shape Factor=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Shape Factor') return val @shape_factor.setter - def shape_factor(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Shape Factor=' + value]) + def shape_factor(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Shape Factor=' + value]) @property def reverse_isolation(self) -> float: @@ -215,15 +172,11 @@ def reverse_isolation(self) -> float: "Amplifier reverse isolation." "Value should be between 0 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reverse Isolation') - key_val_pair = [i for i in props if 'Reverse Isolation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Reverse Isolation') return val @reverse_isolation.setter - def reverse_isolation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) + def reverse_isolation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) @property def max_intermod_order(self) -> int: @@ -231,13 +184,9 @@ def max_intermod_order(self) -> int: "Maximum order of intermods to compute." "Value should be between 3 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Intermod Order') - key_val_pair = [i for i in props if 'Max Intermod Order=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Intermod Order') return val @max_intermod_order.setter - def max_intermod_order(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) + def max_intermod_order(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py index a268b9556d5..a97e514e8b9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class AntennaNode(GenericEmitNode): +from ..EmitNode import * + +class AntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -30,15 +34,11 @@ def tags(self) -> str: """Tags "Space delimited list of tags for coupling selections." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tags') - key_val_pair = [i for i in props if 'Tags=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Tags') return val @tags.setter - def tags(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Tags=' + value]) + def tags(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Tags=' + value]) @property def show_relative_coordinates(self) -> bool: @@ -46,15 +46,11 @@ def show_relative_coordinates(self) -> bool: "Show antenna position and orientation in parent-node coords (False) or relative to placement coords (True)." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Relative Coordinates') - key_val_pair = [i for i in props if 'Show Relative Coordinates=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Show Relative Coordinates') return val @show_relative_coordinates.setter - def show_relative_coordinates(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) + def show_relative_coordinates(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) @property def position(self): @@ -62,15 +58,11 @@ def position(self): "Set position of the antenna in parent-node coordinates." "Value should be x/y/z, delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') - key_val_pair = [i for i in props if 'Position=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Position') return val @position.setter def position(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) @property def relative_position(self): @@ -78,33 +70,26 @@ def relative_position(self): "Set position of the antenna relative to placement coordinates." "Value should be x/y/z, delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Position') - key_val_pair = [i for i in props if 'Relative Position=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Relative Position') return val @relative_position.setter def relative_position(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Relative Position=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Relative Position=' + value]) + class OrientationModeOption(Enum): + RPYDEG = "Roll-Pitch-Yaw" + AETDEG = "Az-El-Twist" @property - def orientation_mode(self): + def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation Mode') - key_val_pair = [i for i in props if 'Orientation Mode=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Orientation Mode') + val = self.OrientationModeOption[val] return val @orientation_mode.setter - def orientation_mode(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Orientation Mode=' + value]) - class OrientationModeOption(Enum): - RPYDEG = "Roll-Pitch-Yaw" - AETDEG = "Az-El-Twist" + def orientation_mode(self, value: OrientationModeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation Mode=' + value.value]) @property def orientation(self): @@ -112,15 +97,11 @@ def orientation(self): "Set orientation of the antenna relative to parent-node coordinates." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation') - key_val_pair = [i for i in props if 'Orientation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Orientation') return val @orientation.setter def orientation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Orientation=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation=' + value]) @property def relative_orientation(self): @@ -128,15 +109,11 @@ def relative_orientation(self): "Set orientation of the antenna relative to placement coordinates." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Orientation') - key_val_pair = [i for i in props if 'Relative Orientation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Relative Orientation') return val @relative_orientation.setter def relative_orientation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) @property def position_defined(self) -> bool: @@ -144,15 +121,11 @@ def position_defined(self) -> bool: "Toggles on/off the ability to define a position for the antenna." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position Defined') - key_val_pair = [i for i in props if 'Position Defined=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Position Defined') return val @position_defined.setter - def position_defined(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position Defined=' + value]) + def position_defined(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position Defined=' + value]) @property def antenna_temperature(self) -> float: @@ -160,47 +133,33 @@ def antenna_temperature(self) -> float: "Antenna noise temperature." "Value should be between 0 and 100000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna Temperature') - key_val_pair = [i for i in props if 'Antenna Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Antenna Temperature') return val @antenna_temperature.setter - def antenna_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Antenna Temperature=' + value]) + def antenna_temperature(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna Temperature=' + value]) @property def type(self): """Type "Defines the type of antenna." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - key_val_pair = [i for i in props if 'Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Type') return val @type.setter def type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) - class TypeOption(Enum): - SUBTYPECHOICES = "::SubTypeChoiceLabels" + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value]) @property def antenna_file(self) -> str: """Antenna File "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna File') - key_val_pair = [i for i in props if 'Antenna File=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Antenna File') return val @antenna_file.setter - def antenna_file(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Antenna File=' + value]) + def antenna_file(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna File=' + value]) @property def project_name(self) -> str: @@ -208,15 +167,11 @@ def project_name(self) -> str: "Name of imported HFSS Antenna project." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Project Name') - key_val_pair = [i for i in props if 'Project Name=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Project Name') return val @project_name.setter - def project_name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Project Name=' + value]) + def project_name(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Project Name=' + value]) @property def peak_gain(self) -> float: @@ -224,34 +179,27 @@ def peak_gain(self) -> float: "Set peak gain of antenna (dBi)." "Value should be between -200 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Peak Gain') - key_val_pair = [i for i in props if 'Peak Gain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Peak Gain') return val @peak_gain.setter - def peak_gain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Peak Gain=' + value]) + def peak_gain(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Peak Gain=' + value]) + class BoresightOption(Enum): + XAXIS = "+X Axis" + YAXIS = "+Y Axis" + ZAXIS = "+Z Axis" @property - def boresight(self): + def boresight(self) -> BoresightOption: """Boresight "Select peak beam direction in local coordinates." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Boresight') - key_val_pair = [i for i in props if 'Boresight=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Boresight') + val = self.BoresightOption[val] return val @boresight.setter - def boresight(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Boresight=' + value]) - class BoresightOption(Enum): - XAXIS = "+X Axis" - YAXIS = "+Y Axis" - ZAXIS = "+Z Axis" + def boresight(self, value: BoresightOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Boresight=' + value.value]) @property def vertical_beamwidth(self) -> float: @@ -259,15 +207,11 @@ def vertical_beamwidth(self) -> float: "Set half-power beamwidth in local-coordinates elevation plane." "Value should be between 0.1 and 360." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Vertical Beamwidth') - key_val_pair = [i for i in props if 'Vertical Beamwidth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Vertical Beamwidth') return val @vertical_beamwidth.setter - def vertical_beamwidth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Vertical Beamwidth=' + value]) + def vertical_beamwidth(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Beamwidth=' + value]) @property def horizontal_beamwidth(self) -> float: @@ -275,15 +219,11 @@ def horizontal_beamwidth(self) -> float: "Set half-power beamwidth in local-coordinates azimuth plane." "Value should be between 0.1 and 360." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Horizontal Beamwidth') - key_val_pair = [i for i in props if 'Horizontal Beamwidth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Horizontal Beamwidth') return val @horizontal_beamwidth.setter - def horizontal_beamwidth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Horizontal Beamwidth=' + value]) + def horizontal_beamwidth(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Horizontal Beamwidth=' + value]) @property def extra_sidelobe(self) -> bool: @@ -291,15 +231,11 @@ def extra_sidelobe(self) -> bool: "Toggle (on/off) option to define two sidelobe levels." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Extra Sidelobe') - key_val_pair = [i for i in props if 'Extra Sidelobe=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Extra Sidelobe') return val @extra_sidelobe.setter - def extra_sidelobe(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Extra Sidelobe=' + value]) + def extra_sidelobe(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Extra Sidelobe=' + value]) @property def first_sidelobe_level(self) -> float: @@ -307,15 +243,11 @@ def first_sidelobe_level(self) -> float: "Set reduction in the gain of Directive Beam antenna for first sidelobe level." "Value should be between 0 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'First Sidelobe Level') - key_val_pair = [i for i in props if 'First Sidelobe Level=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('First Sidelobe Level') return val @first_sidelobe_level.setter - def first_sidelobe_level(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['First Sidelobe Level=' + value]) + def first_sidelobe_level(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['First Sidelobe Level=' + value]) @property def first_sidelobe_vert_bw(self) -> float: @@ -323,15 +255,11 @@ def first_sidelobe_vert_bw(self) -> float: "Set beamwidth of first sidelobe beam in theta direction." "Value should be between 0.1 and 360." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'First Sidelobe Vert. BW') - key_val_pair = [i for i in props if 'First Sidelobe Vert. BW=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('First Sidelobe Vert. BW') return val @first_sidelobe_vert_bw.setter - def first_sidelobe_vert_bw(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['First Sidelobe Vert. BW=' + value]) + def first_sidelobe_vert_bw(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['First Sidelobe Vert. BW=' + value]) @property def first_sidelobe_hor_bw(self) -> float: @@ -339,15 +267,11 @@ def first_sidelobe_hor_bw(self) -> float: "Set beamwidth of first sidelobe beam in phi direction." "Value should be between 0.1 and 360." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'First Sidelobe Hor. BW') - key_val_pair = [i for i in props if 'First Sidelobe Hor. BW=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('First Sidelobe Hor. BW') return val @first_sidelobe_hor_bw.setter - def first_sidelobe_hor_bw(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['First Sidelobe Hor. BW=' + value]) + def first_sidelobe_hor_bw(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['First Sidelobe Hor. BW=' + value]) @property def outerbacklobe_level(self) -> float: @@ -355,15 +279,11 @@ def outerbacklobe_level(self) -> float: "Set reduction in gain of Directive Beam antenna for outer/backlobe level." "Value should be between 0 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Outer/Backlobe Level') - key_val_pair = [i for i in props if 'Outer/Backlobe Level=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Outer/Backlobe Level') return val @outerbacklobe_level.setter - def outerbacklobe_level(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Outer/Backlobe Level=' + value]) + def outerbacklobe_level(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Outer/Backlobe Level=' + value]) @property def resonant_frequency(self) -> float: @@ -371,15 +291,11 @@ def resonant_frequency(self) -> float: "Set first resonant frequency of wire dipole, monopole, or parametric antenna." "Value should be between 1 and 1e+13." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Resonant Frequency') - key_val_pair = [i for i in props if 'Resonant Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Resonant Frequency') return val @resonant_frequency.setter - def resonant_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Resonant Frequency=' + value]) + def resonant_frequency(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Resonant Frequency=' + value]) @property def slot_length(self) -> float: @@ -387,15 +303,11 @@ def slot_length(self) -> float: "Set slot length of parametric slot." "Value should be greater than 1e-06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Slot Length') - key_val_pair = [i for i in props if 'Slot Length=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Slot Length') return val @slot_length.setter - def slot_length(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Slot Length=' + value]) + def slot_length(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Slot Length=' + value]) @property def mouth_width(self) -> float: @@ -403,15 +315,11 @@ def mouth_width(self) -> float: "Set mouth width (along local y-axis) of the horn antenna." "Value should be between 1e-06 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mouth Width') - key_val_pair = [i for i in props if 'Mouth Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Mouth Width') return val @mouth_width.setter - def mouth_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mouth Width=' + value]) + def mouth_width(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mouth Width=' + value]) @property def mouth_height(self) -> float: @@ -419,15 +327,11 @@ def mouth_height(self) -> float: "Set mouth height (along local x-axis) of the horn antenna." "Value should be between 1e-06 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mouth Height') - key_val_pair = [i for i in props if 'Mouth Height=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Mouth Height') return val @mouth_height.setter - def mouth_height(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mouth Height=' + value]) + def mouth_height(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mouth Height=' + value]) @property def waveguide_width(self) -> float: @@ -435,15 +339,11 @@ def waveguide_width(self) -> float: "Set waveguide width (along local y-axis) where flared horn walls meet the feed, determines cut-off frequency." "Value should be between 1e-06 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Waveguide Width') - key_val_pair = [i for i in props if 'Waveguide Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Waveguide Width') return val @waveguide_width.setter - def waveguide_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Waveguide Width=' + value]) + def waveguide_width(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Waveguide Width=' + value]) @property def width_flare_half_angle(self) -> float: @@ -451,15 +351,11 @@ def width_flare_half_angle(self) -> float: "Set half-angle (degrees) of flared horn walls measured in local yz-plane from boresight (z) axis to either wall." "Value should be between 1 and 89.9." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Width Flare Half-angle') - key_val_pair = [i for i in props if 'Width Flare Half-angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Width Flare Half-angle') return val @width_flare_half_angle.setter - def width_flare_half_angle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Width Flare Half-angle=' + value]) + def width_flare_half_angle(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Width Flare Half-angle=' + value]) @property def height_flare_half_angle(self) -> float: @@ -467,15 +363,11 @@ def height_flare_half_angle(self) -> float: "Set half-angle (degrees) of flared horn walls measured in local xz-plane from boresight (z) axis to either wall." "Value should be between 1 and 89.9." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Height Flare Half-angle') - key_val_pair = [i for i in props if 'Height Flare Half-angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Height Flare Half-angle') return val @height_flare_half_angle.setter - def height_flare_half_angle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Height Flare Half-angle=' + value]) + def height_flare_half_angle(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Height Flare Half-angle=' + value]) @property def mouth_diameter(self) -> float: @@ -483,15 +375,11 @@ def mouth_diameter(self) -> float: "Set aperture (mouth) diameter of horn antenna." "Value should be between 1e-06 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mouth Diameter') - key_val_pair = [i for i in props if 'Mouth Diameter=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Mouth Diameter') return val @mouth_diameter.setter - def mouth_diameter(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mouth Diameter=' + value]) + def mouth_diameter(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mouth Diameter=' + value]) @property def flare_half_angle(self) -> float: @@ -499,15 +387,11 @@ def flare_half_angle(self) -> float: "Set half-angle (degrees) of conical horn wall measured from boresight (z)." "Value should be between 1 and 89.9." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Flare Half-angle') - key_val_pair = [i for i in props if 'Flare Half-angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Flare Half-angle') return val @flare_half_angle.setter - def flare_half_angle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Flare Half-angle=' + value]) + def flare_half_angle(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Flare Half-angle=' + value]) @property def vswr(self) -> float: @@ -515,71 +399,58 @@ def vswr(self) -> float: "The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch between the antenna and the RF System (or outboard component)." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'VSWR') - key_val_pair = [i for i in props if 'VSWR=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('VSWR') return val @vswr.setter - def vswr(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['VSWR=' + value]) + def vswr(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['VSWR=' + value]) + class AntennaPolarizationOption(Enum): + VERTICAL = "Vertical" + HORIZONTAL = "Horizontal" + RHCP = "RHCP" + LHCP = "LHCP" @property - def antenna_polarization(self): + def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization "Choose local-coordinates polarization along boresight." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna Polarization') - key_val_pair = [i for i in props if 'Antenna Polarization=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Antenna Polarization') + val = self.AntennaPolarizationOption[val] return val @antenna_polarization.setter - def antenna_polarization(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Antenna Polarization=' + value]) - class AntennaPolarizationOption(Enum): - VERTICAL = "Vertical" - HORIZONTAL = "Horizontal" - RHCP = "RHCP" - LHCP = "LHCP" + def antenna_polarization(self, value: AntennaPolarizationOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna Polarization=' + value.value]) + class CrossDipoleModeOption(Enum): + FREESTANDING = "Freestanding" + OVER_GROUND_PLANE = "Over Ground Plane" @property - def cross_dipole_mode(self): + def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode "Choose the Cross Dipole type." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Cross Dipole Mode') - key_val_pair = [i for i in props if 'Cross Dipole Mode=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Cross Dipole Mode') + val = self.CrossDipoleModeOption[val] return val @cross_dipole_mode.setter - def cross_dipole_mode(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Cross Dipole Mode=' + value]) - class CrossDipoleModeOption(Enum): - FREESTANDING = "Freestanding" - OVER_GROUND_PLANE = "Over Ground Plane" + def cross_dipole_mode(self, value: CrossDipoleModeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Cross Dipole Mode=' + value.value]) + class CrossDipolePolarizationOption(Enum): + RHCP = "RHCP" + LHCP = "LHCP" @property - def cross_dipole_polarization(self): + def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization "Choose local-coordinates polarization along boresight." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Cross Dipole Polarization') - key_val_pair = [i for i in props if 'Cross Dipole Polarization=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Cross Dipole Polarization') + val = self.CrossDipolePolarizationOption[val] return val @cross_dipole_polarization.setter - def cross_dipole_polarization(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Cross Dipole Polarization=' + value]) - class CrossDipolePolarizationOption(Enum): - RHCP = "RHCP" - LHCP = "LHCP" + def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Cross Dipole Polarization=' + value.value]) @property def override_height(self) -> bool: @@ -587,15 +458,11 @@ def override_height(self) -> bool: "Ignores the default placement of quarter design wavelength over the ground plane." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Override Height') - key_val_pair = [i for i in props if 'Override Height=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Override Height') return val @override_height.setter - def override_height(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Override Height=' + value]) + def override_height(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Override Height=' + value]) @property def offset_height(self) -> float: @@ -603,15 +470,11 @@ def offset_height(self) -> float: "Sets the offset height for the current sources above the ground plane." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Offset Height') - key_val_pair = [i for i in props if 'Offset Height=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Offset Height') return val @offset_height.setter - def offset_height(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Offset Height=' + value]) + def offset_height(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Offset Height=' + value]) @property def auto_height_offset(self) -> bool: @@ -619,15 +482,11 @@ def auto_height_offset(self) -> bool: "Switch on to automatically place slot current at sub-wavelength offset height above ground plane." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Auto Height Offset') - key_val_pair = [i for i in props if 'Auto Height Offset=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Auto Height Offset') return val @auto_height_offset.setter - def auto_height_offset(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Auto Height Offset=' + value]) + def auto_height_offset(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Auto Height Offset=' + value]) @property def conform__adjust_antenna(self) -> bool: @@ -635,15 +494,11 @@ def conform__adjust_antenna(self) -> bool: "Toggle (on/off) conformal adjustment for array antenna elements." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Conform / Adjust Antenna') - key_val_pair = [i for i in props if 'Conform / Adjust Antenna=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Conform / Adjust Antenna') return val @conform__adjust_antenna.setter - def conform__adjust_antenna(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Conform / Adjust Antenna=' + value]) + def conform__adjust_antenna(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Conform / Adjust Antenna=' + value]) @property def element_offset(self): @@ -651,53 +506,43 @@ def element_offset(self): "Set vector for shifting element positions in antenna local coordinates." "Value should be x/y/z, delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Element Offset') - key_val_pair = [i for i in props if 'Element Offset=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Element Offset') return val @element_offset.setter def element_offset(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Element Offset=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Element Offset=' + value]) + class ConformtoPlatformOption(Enum): + NONE = "None" + ALONG_NORMAL = "Along Normal" + PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" @property - def conform_to_platform(self): + def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform "Select method of automated conforming applied after Element Offset." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Conform to Platform') - key_val_pair = [i for i in props if 'Conform to Platform=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Conform to Platform') + val = self.ConformtoPlatformOption[val] return val @conform_to_platform.setter - def conform_to_platform(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Conform to Platform=' + value]) - class ConformtoPlatformOption(Enum): - NONE = "None" - ALONG_NORMAL = "Along Normal" - PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" + def conform_to_platform(self, value: ConformtoPlatformOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Conform to Platform=' + value.value]) + class ReferencePlaneOption(Enum): + XY_PLANE = "XY Plane" + YZ_PLANE = "YZ Plane" + ZX_PLANE = "ZX Plane" @property - def reference_plane(self): + def reference_plane(self) -> ReferencePlaneOption: """Reference Plane "Select reference plane for determining original element heights." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reference Plane') - key_val_pair = [i for i in props if 'Reference Plane=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Reference Plane') + val = self.ReferencePlaneOption[val] return val @reference_plane.setter - def reference_plane(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Reference Plane=' + value]) - class ReferencePlaneOption(Enum): - XY_PLANE = "XY Plane" - YZ_PLANE = "YZ Plane" - ZX_PLANE = "ZX Plane" + def reference_plane(self, value: ReferencePlaneOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Reference Plane=' + value.value]) @property def conform_element_orientation(self) -> bool: @@ -705,15 +550,11 @@ def conform_element_orientation(self) -> bool: "Toggle (on/off) re-orientation of elements to conform to curved placement surface." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Conform Element Orientation') - key_val_pair = [i for i in props if 'Conform Element Orientation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Conform Element Orientation') return val @conform_element_orientation.setter - def conform_element_orientation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Conform Element Orientation=' + value]) + def conform_element_orientation(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Conform Element Orientation=' + value]) @property def show_axes(self) -> bool: @@ -721,15 +562,11 @@ def show_axes(self) -> bool: "Toggle (on/off) display of antenna coordinate axes in 3-D window." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Axes') - key_val_pair = [i for i in props if 'Show Axes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Show Axes') return val @show_axes.setter - def show_axes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Axes=' + value]) + def show_axes(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Axes=' + value]) @property def show_icon(self) -> bool: @@ -737,15 +574,11 @@ def show_icon(self) -> bool: "Toggle (on/off) display of antenna marker (cone) in 3-D window." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Icon') - key_val_pair = [i for i in props if 'Show Icon=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Show Icon') return val @show_icon.setter - def show_icon(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Icon=' + value]) + def show_icon(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Icon=' + value]) @property def size(self) -> float: @@ -753,15 +586,11 @@ def size(self) -> float: "Adjust relative size of antenna marker (cone) in 3-D window." "Value should be between 0.001 and 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Size') - key_val_pair = [i for i in props if 'Size=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Size') return val @size.setter - def size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Size=' + value]) + def size(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Size=' + value]) @property def color(self): @@ -769,167 +598,105 @@ def color(self): "Set color of antenna marker (cone) in 3-D window." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Color') - key_val_pair = [i for i in props if 'Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Color') return val @color.setter def color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) @property def el_sample_interval(self) -> float: """El Sample Interval "Space between elevation-angle samples of pattern." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'El Sample Interval') - key_val_pair = [i for i in props if 'El Sample Interval=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('El Sample Interval') return val - @property def az_sample_interval(self) -> float: """Az Sample Interval "Space between azimuth-angle samples of pattern." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Az Sample Interval') - key_val_pair = [i for i in props if 'Az Sample Interval=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Az Sample Interval') return val - @property def has_frequency_domain(self) -> bool: """Has Frequency Domain "False if antenna can be used at any frequency." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Has Frequency Domain') - key_val_pair = [i for i in props if 'Has Frequency Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Has Frequency Domain') return val - @property def frequency_domain(self): """Frequency Domain "Frequency sample(s) defining antenna." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency Domain') - key_val_pair = [i for i in props if 'Frequency Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Frequency Domain') return val - @property def number_of_electric_sources(self) -> int: """Number of Electric Sources "Number of freestanding electric current sources defining antenna." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Electric Sources') - key_val_pair = [i for i in props if 'Number of Electric Sources=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Number of Electric Sources') return val - @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources "Number of freestanding magnetic current sources defining antenna." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Magnetic Sources') - key_val_pair = [i for i in props if 'Number of Magnetic Sources=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Number of Magnetic Sources') return val - @property def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources "Number of imaged, half-space radiating electric current sources defining antenna." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Imaged Electric Sources') - key_val_pair = [i for i in props if 'Number of Imaged Electric Sources=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Number of Imaged Electric Sources') return val - @property def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources "Number of imaged, half-space radiating magnetic current sources defining antenna." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Imaged Magnetic Sources') - key_val_pair = [i for i in props if 'Number of Imaged Magnetic Sources=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Number of Imaged Magnetic Sources') return val - @property def waveguide_height(self) -> float: """Waveguide Height "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Waveguide Height') - key_val_pair = [i for i in props if 'Waveguide Height=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Waveguide Height') return val - @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Waveguide Cutoff Frequency') - key_val_pair = [i for i in props if 'Waveguide Cutoff Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Waveguide Cutoff Frequency') return val - @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Aperture Cutoff Frequency') - key_val_pair = [i for i in props if 'Aperture Cutoff Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Aperture Cutoff Frequency') return val - + class SWEModeTruncationOption(Enum): + DYNAMIC = "Dynamic" + CUSTOM = "Fixed (Custom)" + NONE = "None" @property - def swe_mode_truncation(self): + def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation "Select the method for stability-enhancing truncation of spherical wave expansion terms." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'SWE Mode Truncation') - key_val_pair = [i for i in props if 'SWE Mode Truncation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('SWE Mode Truncation') + val = self.SWEModeTruncationOption[val] return val @swe_mode_truncation.setter - def swe_mode_truncation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['SWE Mode Truncation=' + value]) - class SWEModeTruncationOption(Enum): - DYNAMIC = "Dynamic" - CUSTOM = "Fixed (Custom)" - NONE = "None" + def swe_mode_truncation(self, value: SWEModeTruncationOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['SWE Mode Truncation=' + value.value]) @property def max_n_index(self) -> int: @@ -937,30 +704,22 @@ def max_n_index(self) -> int: "Set maximum allowed index N for spherical wave expansion terms." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max N Index') - key_val_pair = [i for i in props if 'Max N Index=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max N Index') return val @max_n_index.setter - def max_n_index(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max N Index=' + value]) + def max_n_index(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max N Index=' + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val @notes.setter - def notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + def notes(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) @property def show_composite_passband(self) -> bool: @@ -968,15 +727,11 @@ def show_composite_passband(self) -> bool: "Show plot instead of 3D window." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Composite Passband') - key_val_pair = [i for i in props if 'Show Composite Passband=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Show Composite Passband') return val @show_composite_passband.setter - def show_composite_passband(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Composite Passband=' + value]) + def show_composite_passband(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Composite Passband=' + value]) @property def use_phase_center(self) -> bool: @@ -984,51 +739,32 @@ def use_phase_center(self) -> bool: "Use the phase center defined in the HFSS design." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Phase Center') - key_val_pair = [i for i in props if 'Use Phase Center=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Use Phase Center') return val @use_phase_center.setter - def use_phase_center(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use Phase Center=' + value]) + def use_phase_center(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use Phase Center=' + value]) @property def coordinate_systems(self) -> str: """Coordinate Systems "Specifies the coordinate system for the phase center of this antenna." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Coordinate Systems') - key_val_pair = [i for i in props if 'Coordinate Systems=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Coordinate Systems') return val - @property def phasecenterposition(self): """PhaseCenterPosition "Set position of the antennas linked coordinate system.." "Value should be x/y/z, delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'PhaseCenterPosition') - key_val_pair = [i for i in props if 'PhaseCenterPosition=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('PhaseCenterPosition') return val - @property def phasecenterorientation(self): """PhaseCenterOrientation "Set orientation of the antennas linked coordinate system.." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'PhaseCenterOrientation') - key_val_pair = [i for i in props if 'PhaseCenterOrientation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('PhaseCenterOrientation') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py index eae11eb3287..848bed555b4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class AntennaPassband(GenericEmitNode): +from ..EmitNode import * + +class AntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -22,12 +26,12 @@ def delete(self): self._delete() @property - def enabled(self): + def enabled(self) -> bool: """Enabled state for this node.""" - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) @property def passband_loss(self) -> float: @@ -35,15 +39,11 @@ def passband_loss(self) -> float: "Passband loss." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Passband Loss') - key_val_pair = [i for i in props if 'Passband Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Passband Loss') return val @passband_loss.setter - def passband_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Passband Loss=' + value]) + def passband_loss(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Passband Loss=' + value]) @property def out_of_band_attenuation(self) -> float: @@ -51,15 +51,11 @@ def out_of_band_attenuation(self) -> float: "Out of band antenna loss." "Value should be between 0 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out of Band Attenuation') - key_val_pair = [i for i in props if 'Out of Band Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Out of Band Attenuation') return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Out of Band Attenuation=' + value]) + def out_of_band_attenuation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Out of Band Attenuation=' + value]) @property def lower_stop_band(self) -> float: @@ -67,15 +63,11 @@ def lower_stop_band(self) -> float: "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') - key_val_pair = [i for i in props if 'Lower Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Stop Band') return val @lower_stop_band.setter - def lower_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + def lower_stop_band(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) @property def lower_cutoff(self) -> float: @@ -83,15 +75,11 @@ def lower_cutoff(self) -> float: "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') - key_val_pair = [i for i in props if 'Lower Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Cutoff') return val @lower_cutoff.setter - def lower_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + def lower_cutoff(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) @property def higher_cutoff(self) -> float: @@ -99,15 +87,11 @@ def higher_cutoff(self) -> float: "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') - key_val_pair = [i for i in props if 'Higher Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Cutoff') return val @higher_cutoff.setter - def higher_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + def higher_cutoff(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) @property def higher_stop_band(self) -> float: @@ -115,28 +99,20 @@ def higher_stop_band(self) -> float: "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') - key_val_pair = [i for i in props if 'Higher Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Stop Band') return val @higher_stop_band.setter - def higher_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + def higher_stop_band(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val @notes.setter - def notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + def notes(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index 47a9960d931..42ea596f730 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class Band(GenericEmitNode): +from ..EmitNode import * + +class Band(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -10,29 +14,23 @@ def parent(self): return self._parent @property - def enabled(self): + def enabled(self) -> bool: """Enabled state for this node.""" - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) @property def port(self): """Port "Radio Port associated with this Band." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port') - key_val_pair = [i for i in props if 'Port=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Port') return val @port.setter def port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Port=' + value]) - class PortOption(Enum): - PARENTANTENNASIDEPORTS = "::Parent::AntennaSidePorts" + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Port=' + value]) @property def use_dd_1494_mode(self) -> bool: @@ -40,15 +38,11 @@ def use_dd_1494_mode(self) -> bool: "Uses DD-1494 parameters to define the Tx/Rx spectrum." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use DD-1494 Mode') - key_val_pair = [i for i in props if 'Use DD-1494 Mode=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Use DD-1494 Mode') return val @use_dd_1494_mode.setter - def use_dd_1494_mode(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use DD-1494 Mode=' + value]) + def use_dd_1494_mode(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use DD-1494 Mode=' + value]) @property def use_emission_designator(self) -> bool: @@ -56,70 +50,48 @@ def use_emission_designator(self) -> bool: "Uses the Emission Designator to define the bandwidth and modulation." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Emission Designator') - key_val_pair = [i for i in props if 'Use Emission Designator=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Use Emission Designator') return val @use_emission_designator.setter - def use_emission_designator(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use Emission Designator=' + value]) + def use_emission_designator(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use Emission Designator=' + value]) @property def emission_designator(self) -> str: """Emission Designator "Enter the Emission Designator to define the bandwidth and modulation." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Emission Designator') - key_val_pair = [i for i in props if 'Emission Designator=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Emission Designator') return val @emission_designator.setter - def emission_designator(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Emission Designator=' + value]) + def emission_designator(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Emission Designator=' + value]) @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Emission Designator Ch. BW') - key_val_pair = [i for i in props if 'Emission Designator Ch. BW=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Emission Designator Ch. BW') return val - @property def emit_modulation_type(self) -> str: """EMIT Modulation Type "Modulation based off the emission designator." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'EMIT Modulation Type') - key_val_pair = [i for i in props if 'EMIT Modulation Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('EMIT Modulation Type') return val - @property def override_emission_designator_bw(self) -> bool: """Override Emission Designator BW "Enables the 3 dB channel bandwidth to equal a value < emission designator bandwidth." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Override Emission Designator BW') - key_val_pair = [i for i in props if 'Override Emission Designator BW=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Override Emission Designator BW') return val @override_emission_designator_bw.setter - def override_emission_designator_bw(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Override Emission Designator BW=' + value]) + def override_emission_designator_bw(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Override Emission Designator BW=' + value]) @property def channel_bandwidth(self) -> float: @@ -127,30 +99,12 @@ def channel_bandwidth(self) -> float: "Channel Bandwidth." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Channel Bandwidth') - key_val_pair = [i for i in props if 'Channel Bandwidth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Channel Bandwidth') return val @channel_bandwidth.setter - def channel_bandwidth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Channel Bandwidth=' + value]) + def channel_bandwidth(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Channel Bandwidth=' + value]) - @property - def modulation(self): - """Modulation - "Modulation used for the transmitted/received signal." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Modulation') - key_val_pair = [i for i in props if 'Modulation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @modulation.setter - def modulation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Modulation=' + value]) class ModulationOption(Enum): GENERIC = "Generic" AM = "AM" @@ -163,27 +117,35 @@ class ModulationOption(Enum): QAM = "QAM" APSK = "APSK" RADAR = "Radar" - @property - def waveform(self): - """Waveform + def modulation(self) -> ModulationOption: + """Modulation "Modulation used for the transmitted/received signal." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Waveform') - key_val_pair = [i for i in props if 'Waveform=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Modulation') + val = self.ModulationOption[val] return val - @waveform.setter - def waveform(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Waveform=' + value]) + @modulation.setter + def modulation(self, value: ModulationOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Modulation=' + value.value]) + class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" SPREAD_SPECTRUM = "Spread Spectrum Clock" PRBS = "PRBS" PRBS_PERIODIC = "PRBS (Periodic)" IMPORTED = "Imported" + @property + def waveform(self) -> WaveformOption: + """Waveform + "Modulation used for the transmitted/received signal." + " """ + val = self._get_property('Waveform') + val = self.WaveformOption[val] + return val + @waveform.setter + def waveform(self, value: WaveformOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Waveform=' + value.value]) @property def max_modulating_freq(self) -> float: @@ -191,15 +153,11 @@ def max_modulating_freq(self) -> float: "Maximum modulating frequency: helps determine spectral profile." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Modulating Freq.') - key_val_pair = [i for i in props if 'Max Modulating Freq.=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Modulating Freq.') return val @max_modulating_freq.setter - def max_modulating_freq(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Modulating Freq.=' + value]) + def max_modulating_freq(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Modulating Freq.=' + value]) @property def modulation_index(self) -> float: @@ -207,15 +165,11 @@ def modulation_index(self) -> float: "AM modulation index: helps determine spectral profile." "Value should be between 0.01 and 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Modulation Index') - key_val_pair = [i for i in props if 'Modulation Index=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Modulation Index') return val @modulation_index.setter - def modulation_index(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Modulation Index=' + value]) + def modulation_index(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Modulation Index=' + value]) @property def freq_deviation(self) -> float: @@ -223,15 +177,11 @@ def freq_deviation(self) -> float: "Frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Freq. Deviation') - key_val_pair = [i for i in props if 'Freq. Deviation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Freq. Deviation') return val @freq_deviation.setter - def freq_deviation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Freq. Deviation=' + value]) + def freq_deviation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Freq. Deviation=' + value]) @property def bit_rate(self) -> float: @@ -239,15 +189,11 @@ def bit_rate(self) -> float: "Maximum bit rate: helps determine width of spectral profile." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bit Rate') - key_val_pair = [i for i in props if 'Bit Rate=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Bit Rate') return val @bit_rate.setter - def bit_rate(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Bit Rate=' + value]) + def bit_rate(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Bit Rate=' + value]) @property def sidelobes(self) -> int: @@ -255,15 +201,11 @@ def sidelobes(self) -> int: "Number of sidelobes in spectral profile." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Sidelobes') - key_val_pair = [i for i in props if 'Sidelobes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Sidelobes') return val @sidelobes.setter - def sidelobes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Sidelobes=' + value]) + def sidelobes(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Sidelobes=' + value]) @property def freq_deviation_(self) -> float: @@ -271,30 +213,12 @@ def freq_deviation_(self) -> float: "FSK frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Freq. Deviation ') - key_val_pair = [i for i in props if 'Freq. Deviation =' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Freq. Deviation ') return val @freq_deviation_.setter - def freq_deviation_(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Freq. Deviation =' + value]) + def freq_deviation_(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Freq. Deviation =' + value]) - @property - def psk_type(self): - """PSK Type - "PSK modulation order: helps determine spectral profile." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'PSK Type') - key_val_pair = [i for i in props if 'PSK Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @psk_type.setter - def psk_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['PSK Type=' + value]) class PSKTypeOption(Enum): BPSK = "BPSK" QPSK = "QPSK" @@ -302,67 +226,69 @@ class PSKTypeOption(Enum): _16_PSK = "16-PSK" _32_PSK = "32-PSK" _64_PSK = "64-PSK" - @property - def fsk_type(self): - """FSK Type - "FSK modulation order: helps determine spectral profile." + def psk_type(self) -> PSKTypeOption: + """PSK Type + "PSK modulation order: helps determine spectral profile." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'FSK Type') - key_val_pair = [i for i in props if 'FSK Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('PSK Type') + val = self.PSKTypeOption[val] return val - @fsk_type.setter - def fsk_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['FSK Type=' + value]) + @psk_type.setter + def psk_type(self, value: PSKTypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['PSK Type=' + value.value]) + class FSKTypeOption(Enum): _2_FSK = "2-FSK" _4_FSK = "4-FSK" _8_FSK = "8-FSK" - @property - def qam_type(self): - """QAM Type - "QAM modulation order: helps determine spectral profile." + def fsk_type(self) -> FSKTypeOption: + """FSK Type + "FSK modulation order: helps determine spectral profile." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'QAM Type') - key_val_pair = [i for i in props if 'QAM Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('FSK Type') + val = self.FSKTypeOption[val] return val - @qam_type.setter - def qam_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['QAM Type=' + value]) + @fsk_type.setter + def fsk_type(self, value: FSKTypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['FSK Type=' + value.value]) + class QAMTypeOption(Enum): _4_QAM = "4-QAM" _16_QAM = "16-QAM" _64_QAM = "64-QAM" _256_QAM = "256-QAM" _1024_QAM = "1024-QAM" - @property - def apsk_type(self): - """APSK Type - "APSK modulation order: helps determine spectral profile." + def qam_type(self) -> QAMTypeOption: + """QAM Type + "QAM modulation order: helps determine spectral profile." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'APSK Type') - key_val_pair = [i for i in props if 'APSK Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('QAM Type') + val = self.QAMTypeOption[val] return val - @apsk_type.setter - def apsk_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['APSK Type=' + value]) + @qam_type.setter + def qam_type(self, value: QAMTypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['QAM Type=' + value.value]) + class APSKTypeOption(Enum): _4_APSK = "4-APSK" _16_APSK = "16-APSK" _64_APSK = "64-APSK" _256_APSK = "256-APSK" _1024_APSK = "1024-APSK" + @property + def apsk_type(self) -> APSKTypeOption: + """APSK Type + "APSK modulation order: helps determine spectral profile." + " """ + val = self._get_property('APSK Type') + val = self.APSKTypeOption[val] + return val + @apsk_type.setter + def apsk_type(self, value: APSKTypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['APSK Type=' + value.value]) @property def start_frequency(self) -> float: @@ -370,15 +296,11 @@ def start_frequency(self) -> float: "First frequency for this band." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Start Frequency') - key_val_pair = [i for i in props if 'Start Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Start Frequency') return val @start_frequency.setter - def start_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Start Frequency=' + value]) + def start_frequency(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Start Frequency=' + value]) @property def stop_frequency(self) -> float: @@ -386,15 +308,11 @@ def stop_frequency(self) -> float: "Last frequency for this band." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop Frequency') - key_val_pair = [i for i in props if 'Stop Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Stop Frequency') return val @stop_frequency.setter - def stop_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Stop Frequency=' + value]) + def stop_frequency(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Stop Frequency=' + value]) @property def channel_spacing(self) -> float: @@ -402,15 +320,11 @@ def channel_spacing(self) -> float: "Spacing between channels within this band." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Channel Spacing') - key_val_pair = [i for i in props if 'Channel Spacing=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Channel Spacing') return val @channel_spacing.setter - def channel_spacing(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Channel Spacing=' + value]) + def channel_spacing(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Channel Spacing=' + value]) @property def tx_offset(self) -> float: @@ -418,15 +332,11 @@ def tx_offset(self) -> float: "Frequency offset between Tx and Rx channels." "Value should be less than 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx Offset') - key_val_pair = [i for i in props if 'Tx Offset=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Tx Offset') return val @tx_offset.setter - def tx_offset(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Tx Offset=' + value]) + def tx_offset(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Tx Offset=' + value]) @property def clock_duty_cycle(self) -> float: @@ -434,15 +344,11 @@ def clock_duty_cycle(self) -> float: "Clock signals duty cycle." "Value should be between 0.001 and 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Clock Duty Cycle') - key_val_pair = [i for i in props if 'Clock Duty Cycle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Clock Duty Cycle') return val @clock_duty_cycle.setter - def clock_duty_cycle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Clock Duty Cycle=' + value]) + def clock_duty_cycle(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Clock Duty Cycle=' + value]) @property def clock_risefall_time(self) -> float: @@ -450,34 +356,27 @@ def clock_risefall_time(self) -> float: "Clock signals rise/fall time." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Clock Rise/Fall Time') - key_val_pair = [i for i in props if 'Clock Rise/Fall Time=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Clock Rise/Fall Time') return val @clock_risefall_time.setter - def clock_risefall_time(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Clock Rise/Fall Time=' + value]) + def clock_risefall_time(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Clock Rise/Fall Time=' + value]) + class SpreadingTypeOption(Enum): + LOW_SPREAD = "Low Spread" + CENTER_SPREAD = "Center Spread" + HIGH_SPREAD = "High Spread" @property - def spreading_type(self): + def spreading_type(self) -> SpreadingTypeOption: """Spreading Type "Type of spreading employed by the Spread Spectrum Clock." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spreading Type') - key_val_pair = [i for i in props if 'Spreading Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Spreading Type') + val = self.SpreadingTypeOption[val] return val @spreading_type.setter - def spreading_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Spreading Type=' + value]) - class SpreadingTypeOption(Enum): - LOW_SPREAD = "Low Spread" - CENTER_SPREAD = "Center Spread" - HIGH_SPREAD = "High Spread" + def spreading_type(self, value: SpreadingTypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Spreading Type=' + value.value]) @property def spread_percentage(self) -> float: @@ -485,58 +384,41 @@ def spread_percentage(self) -> float: "Peak-to-peak spread percentage." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spread Percentage') - key_val_pair = [i for i in props if 'Spread Percentage=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Spread Percentage') return val @spread_percentage.setter - def spread_percentage(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Spread Percentage=' + value]) + def spread_percentage(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Spread Percentage=' + value]) @property def imported_spectrum(self) -> str: """Imported Spectrum "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Imported Spectrum') - key_val_pair = [i for i in props if 'Imported Spectrum=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Imported Spectrum') return val @imported_spectrum.setter - def imported_spectrum(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Imported Spectrum=' + value]) + def imported_spectrum(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Imported Spectrum=' + value]) @property def raw_data_format(self) -> str: """Raw Data Format "Format of the imported raw data." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Raw Data Format') - key_val_pair = [i for i in props if 'Raw Data Format=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Raw Data Format') return val - @property def system_impedance(self) -> float: """System Impedance "System impedance for the imported data." "Value should be between 0 and 1e+06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'System Impedance') - key_val_pair = [i for i in props if 'System Impedance=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('System Impedance') return val @system_impedance.setter - def system_impedance(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['System Impedance=' + value]) + def system_impedance(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['System Impedance=' + value]) @property def advanced_extraction_params(self) -> bool: @@ -544,15 +426,11 @@ def advanced_extraction_params(self) -> bool: "Show/hide advanced extraction params." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Advanced Extraction Params') - key_val_pair = [i for i in props if 'Advanced Extraction Params=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Advanced Extraction Params') return val @advanced_extraction_params.setter - def advanced_extraction_params(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Advanced Extraction Params=' + value]) + def advanced_extraction_params(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Advanced Extraction Params=' + value]) @property def nb_window_size(self) -> float: @@ -560,15 +438,11 @@ def nb_window_size(self) -> float: "Window size for computing the moving average during narrowband signal detection." "Value should be greater than 3." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'NB Window Size') - key_val_pair = [i for i in props if 'NB Window Size=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('NB Window Size') return val @nb_window_size.setter - def nb_window_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['NB Window Size=' + value]) + def nb_window_size(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['NB Window Size=' + value]) @property def bb_smoothing_factor(self) -> float: @@ -576,15 +450,11 @@ def bb_smoothing_factor(self) -> float: "Reduces the number of frequency points used for the broadband noise." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BB Smoothing Factor') - key_val_pair = [i for i in props if 'BB Smoothing Factor=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('BB Smoothing Factor') return val @bb_smoothing_factor.setter - def bb_smoothing_factor(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['BB Smoothing Factor=' + value]) + def bb_smoothing_factor(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['BB Smoothing Factor=' + value]) @property def nb_detector_threshold(self) -> float: @@ -592,33 +462,26 @@ def nb_detector_threshold(self) -> float: "Narrowband Detector threshold standard deviation." "Value should be between 2 and 10." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'NB Detector Threshold') - key_val_pair = [i for i in props if 'NB Detector Threshold=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('NB Detector Threshold') return val @nb_detector_threshold.setter - def nb_detector_threshold(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['NB Detector Threshold=' + value]) + def nb_detector_threshold(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['NB Detector Threshold=' + value]) + class AlgorithmOption(Enum): + FFT = "FFT" + FOURIER_TRANSFORM = "Fourier Transform" @property - def algorithm(self): + def algorithm(self) -> AlgorithmOption: """Algorithm "Algorithm used to transform the imported time domain spectrum." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Algorithm') - key_val_pair = [i for i in props if 'Algorithm=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Algorithm') + val = self.AlgorithmOption[val] return val @algorithm.setter - def algorithm(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Algorithm=' + value]) - class AlgorithmOption(Enum): - FFT = "FFT" - FOURIER_TRANSFORM = "Fourier Transform" + def algorithm(self, value: AlgorithmOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Algorithm=' + value.value]) @property def start(self) -> float: @@ -626,30 +489,22 @@ def start(self) -> float: "Initial time of the imported spectrum." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Start') - key_val_pair = [i for i in props if 'Start=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Start') return val @start.setter - def start(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Start=' + value]) + def start(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Start=' + value]) @property def stop(self) -> float: """Stop "Final time of the imported time domain spectrum." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop') - key_val_pair = [i for i in props if 'Stop=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Stop') return val @stop.setter - def stop(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Stop=' + value]) + def stop(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Stop=' + value]) @property def max_frequency(self) -> float: @@ -657,30 +512,12 @@ def max_frequency(self) -> float: "Frequency cutoff of the imported time domain spectrum." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Frequency') - key_val_pair = [i for i in props if 'Max Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Frequency') return val @max_frequency.setter - def max_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Frequency=' + value]) + def max_frequency(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Frequency=' + value]) - @property - def window_type(self): - """Window Type - "Windowing scheme used for importing time domain spectrum." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Window Type') - key_val_pair = [i for i in props if 'Window Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @window_type.setter - def window_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Window Type=' + value]) class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" BARTLETT = "Bartlett" @@ -691,6 +528,17 @@ class WindowTypeOption(Enum): LANZCOS = "Lanzcos" WELCH = "Welch" WEBER = "Weber" + @property + def window_type(self) -> WindowTypeOption: + """Window Type + "Windowing scheme used for importing time domain spectrum." + " """ + val = self._get_property('Window Type') + val = self.WindowTypeOption[val] + return val + @window_type.setter + def window_type(self, value: WindowTypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Window Type=' + value.value]) @property def kaiser_parameter(self) -> float: @@ -698,15 +546,11 @@ def kaiser_parameter(self) -> float: "Shape factor applied to the transform." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Kaiser Parameter') - key_val_pair = [i for i in props if 'Kaiser Parameter=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Kaiser Parameter') return val @kaiser_parameter.setter - def kaiser_parameter(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Kaiser Parameter=' + value]) + def kaiser_parameter(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Kaiser Parameter=' + value]) @property def adjust_coherent_gain(self) -> bool: @@ -714,15 +558,11 @@ def adjust_coherent_gain(self) -> bool: "Shape factor applied to the transform." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adjust Coherent Gain') - key_val_pair = [i for i in props if 'Adjust Coherent Gain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Adjust Coherent Gain') return val @adjust_coherent_gain.setter - def adjust_coherent_gain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adjust Coherent Gain=' + value]) + def adjust_coherent_gain(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adjust Coherent Gain=' + value]) @property def data_rate(self) -> float: @@ -730,15 +570,11 @@ def data_rate(self) -> float: "Maximum data rate: helps determine shape of spectral profile." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Rate') - key_val_pair = [i for i in props if 'Data Rate=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Data Rate') return val @data_rate.setter - def data_rate(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Rate=' + value]) + def data_rate(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Rate=' + value]) @property def _of_bits(self) -> int: @@ -746,15 +582,11 @@ def _of_bits(self) -> int: "Length of the Pseudo Random Binary Sequence." "Value should be between 1 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'# of Bits') - key_val_pair = [i for i in props if '# of Bits=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('# of Bits') return val @_of_bits.setter - def _of_bits(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['# of Bits=' + value]) + def _of_bits(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['# of Bits=' + value]) @property def use_envelope(self) -> bool: @@ -762,15 +594,11 @@ def use_envelope(self) -> bool: "Model the waveform as a worst case envelope.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Envelope') - key_val_pair = [i for i in props if 'Use Envelope=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Use Envelope') return val @use_envelope.setter - def use_envelope(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use Envelope=' + value]) + def use_envelope(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use Envelope=' + value]) @property def min_ptsnull(self) -> int: @@ -778,15 +606,11 @@ def min_ptsnull(self) -> int: "Minimum number of points to use between each null frequency." "Value should be between 2 and 50." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Pts/Null') - key_val_pair = [i for i in props if 'Min Pts/Null=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Min Pts/Null') return val @min_ptsnull.setter - def min_ptsnull(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Min Pts/Null=' + value]) + def min_ptsnull(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Min Pts/Null=' + value]) @property def delay_skew(self) -> float: @@ -794,36 +618,29 @@ def delay_skew(self) -> float: "Delay Skew of the differential signal pairs." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Delay Skew') - key_val_pair = [i for i in props if 'Delay Skew=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Delay Skew') return val @delay_skew.setter - def delay_skew(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Delay Skew=' + value]) + def delay_skew(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Delay Skew=' + value]) - @property - def radar_type(self): - """Radar Type - "Radar type: helps determine spectral profile." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Radar Type') - key_val_pair = [i for i in props if 'Radar Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @radar_type.setter - def radar_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Radar Type=' + value]) class RadarTypeOption(Enum): CW = "CW" FM_CW = "FM-CW" FM_PULSE = "FM Pulse" NON_FM_PULSE = "Non-FM Pulse" PHASE_CODED = "Phase Coded" + @property + def radar_type(self) -> RadarTypeOption: + """Radar Type + "Radar type: helps determine spectral profile." + " """ + val = self._get_property('Radar Type') + val = self.RadarTypeOption[val] + return val + @radar_type.setter + def radar_type(self, value: RadarTypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Radar Type=' + value.value]) @property def hopping_radar(self) -> bool: @@ -831,15 +648,11 @@ def hopping_radar(self) -> bool: "True for hopping radars; false otherwise." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Hopping Radar') - key_val_pair = [i for i in props if 'Hopping Radar=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Hopping Radar') return val @hopping_radar.setter - def hopping_radar(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Hopping Radar=' + value]) + def hopping_radar(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Hopping Radar=' + value]) @property def post_october_2020_procurement(self) -> bool: @@ -847,15 +660,11 @@ def post_october_2020_procurement(self) -> bool: "Procurement date: helps determine spectral profile, particularly the roll-off." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Post October 2020 Procurement') - key_val_pair = [i for i in props if 'Post October 2020 Procurement=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Post October 2020 Procurement') return val @post_october_2020_procurement.setter - def post_october_2020_procurement(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Post October 2020 Procurement=' + value]) + def post_october_2020_procurement(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Post October 2020 Procurement=' + value]) @property def hop_range_min_freq(self) -> float: @@ -863,15 +672,11 @@ def hop_range_min_freq(self) -> float: "Sets the minimum frequency of the hopping range." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Hop Range Min Freq') - key_val_pair = [i for i in props if 'Hop Range Min Freq=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Hop Range Min Freq') return val @hop_range_min_freq.setter - def hop_range_min_freq(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Hop Range Min Freq=' + value]) + def hop_range_min_freq(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Hop Range Min Freq=' + value]) @property def hop_range_max_freq(self) -> float: @@ -879,15 +684,11 @@ def hop_range_max_freq(self) -> float: "Sets the maximum frequency of the hopping range." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Hop Range Max Freq') - key_val_pair = [i for i in props if 'Hop Range Max Freq=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Hop Range Max Freq') return val @hop_range_max_freq.setter - def hop_range_max_freq(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Hop Range Max Freq=' + value]) + def hop_range_max_freq(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Hop Range Max Freq=' + value]) @property def pulse_duration(self) -> float: @@ -895,15 +696,11 @@ def pulse_duration(self) -> float: "Pulse duration." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Duration') - key_val_pair = [i for i in props if 'Pulse Duration=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pulse Duration') return val @pulse_duration.setter - def pulse_duration(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pulse Duration=' + value]) + def pulse_duration(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Duration=' + value]) @property def pulse_rise_time(self) -> float: @@ -911,15 +708,11 @@ def pulse_rise_time(self) -> float: "Pulse rise time." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Rise Time') - key_val_pair = [i for i in props if 'Pulse Rise Time=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pulse Rise Time') return val @pulse_rise_time.setter - def pulse_rise_time(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pulse Rise Time=' + value]) + def pulse_rise_time(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Rise Time=' + value]) @property def pulse_fall_time(self) -> float: @@ -927,15 +720,11 @@ def pulse_fall_time(self) -> float: "Pulse fall time." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Fall Time') - key_val_pair = [i for i in props if 'Pulse Fall Time=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pulse Fall Time') return val @pulse_fall_time.setter - def pulse_fall_time(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pulse Fall Time=' + value]) + def pulse_fall_time(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Fall Time=' + value]) @property def pulse_repetition_rate(self) -> float: @@ -943,15 +732,11 @@ def pulse_repetition_rate(self) -> float: "Pulse repetition rate [pulses/sec]." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Repetition Rate') - key_val_pair = [i for i in props if 'Pulse Repetition Rate=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pulse Repetition Rate') return val @pulse_repetition_rate.setter - def pulse_repetition_rate(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pulse Repetition Rate=' + value]) + def pulse_repetition_rate(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Repetition Rate=' + value]) @property def number_of_chips(self) -> float: @@ -959,15 +744,11 @@ def number_of_chips(self) -> float: "Total number of chips (subpulses) contained in the pulse." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Chips') - key_val_pair = [i for i in props if 'Number of Chips=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Number of Chips') return val @number_of_chips.setter - def number_of_chips(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Number of Chips=' + value]) + def number_of_chips(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Number of Chips=' + value]) @property def pulse_compression_ratio(self) -> float: @@ -975,15 +756,11 @@ def pulse_compression_ratio(self) -> float: "Pulse compression ratio." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Compression Ratio') - key_val_pair = [i for i in props if 'Pulse Compression Ratio=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pulse Compression Ratio') return val @pulse_compression_ratio.setter - def pulse_compression_ratio(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pulse Compression Ratio=' + value]) + def pulse_compression_ratio(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Compression Ratio=' + value]) @property def fm_chirp_period(self) -> float: @@ -991,15 +768,11 @@ def fm_chirp_period(self) -> float: "FM Chirp period for the FM/CW radar." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'FM Chirp Period') - key_val_pair = [i for i in props if 'FM Chirp Period=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('FM Chirp Period') return val @fm_chirp_period.setter - def fm_chirp_period(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['FM Chirp Period=' + value]) + def fm_chirp_period(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['FM Chirp Period=' + value]) @property def fm_freq_deviation(self) -> float: @@ -1007,15 +780,11 @@ def fm_freq_deviation(self) -> float: "Total frequency deviation for the carrier frequency for the FM/CW radar." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'FM Freq Deviation') - key_val_pair = [i for i in props if 'FM Freq Deviation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('FM Freq Deviation') return val @fm_freq_deviation.setter - def fm_freq_deviation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['FM Freq Deviation=' + value]) + def fm_freq_deviation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['FM Freq Deviation=' + value]) @property def fm_freq_dev_bandwidth(self) -> float: @@ -1023,13 +792,9 @@ def fm_freq_dev_bandwidth(self) -> float: "Bandwidth of freq deviation for FM modulated pulsed waveform (total freq shift during pulse duration)." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'FM Freq Dev Bandwidth') - key_val_pair = [i for i in props if 'FM Freq Dev Bandwidth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('FM Freq Dev Bandwidth') return val @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['FM Freq Dev Bandwidth=' + value]) + def fm_freq_dev_bandwidth(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['FM Freq Dev Bandwidth=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py index 40e463af537..c26f234879d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class BandFolder(GenericEmitNode): +from ..EmitNode import * + +class BandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py index d16d0891e08..cb2ed6a7b97 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class BandTraceNode(GenericEmitNode): +from ..EmitNode import * + +class BandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -26,76 +30,56 @@ def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - key_val_pair = [i for i in props if 'Data Source=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Data Source') return val @data_source.setter def data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + class TxorRxOption(Enum): + TX = "Tx" + RX = "Rx" @property - def tx_or_rx(self): + def tx_or_rx(self) -> TxorRxOption: """Tx or Rx "Specifies whether the trace is a Tx or Rx channel." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx or Rx') - key_val_pair = [i for i in props if 'Tx or Rx=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Tx or Rx') + val = self.TxorRxOption[val] return val @tx_or_rx.setter - def tx_or_rx(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Tx or Rx=' + value]) - class TxorRxOption(Enum): - TX = "Tx" - RX = "Rx" + def tx_or_rx(self, value: TxorRxOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Tx or Rx=' + value.value]) @property def channel_frequency(self): """Channel Frequency "Select band channel frequency to display." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Channel Frequency') - key_val_pair = [i for i in props if 'Channel Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Channel Frequency') return val @channel_frequency.setter def channel_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Channel Frequency=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Channel Frequency=' + value]) @property def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Transmit Frequency') - key_val_pair = [i for i in props if 'Transmit Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Transmit Frequency') return val - @property def visible(self) -> bool: """Visible "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - key_val_pair = [i for i in props if 'Visible=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Visible') return val @visible.setter - def visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + def visible(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -103,45 +87,23 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - key_val_pair = [i for i in props if 'Custom Legend=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Legend') return val @custom_legend.setter - def custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + def custom_legend(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - key_val_pair = [i for i in props if 'Name=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Name') return val @name.setter - def name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + def name(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) - @property - def style(self): - """Style - "Specify line style of plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - key_val_pair = [i for i in props if 'Style=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @style.setter - def style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) class StyleOption(Enum): LINES = "Lines" DOTTED = "Dotted" @@ -149,6 +111,17 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property + def style(self) -> StyleOption: + """Style + "Specify line style of plot trace." + " """ + val = self._get_property('Style') + val = self.StyleOption[val] + return val + @style.setter + def style(self, value: StyleOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -156,15 +129,11 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - key_val_pair = [i for i in props if 'Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Width') return val @line_width.setter - def line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + def line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -172,30 +141,12 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - key_val_pair = [i for i in props if 'Line Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Color') return val @line_color.setter def line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) - @property - def symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - key_val_pair = [i for i in props if 'Symbol=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @symbol.setter - def symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" ELLIPSE = "Ellipse" @@ -212,6 +163,17 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property + def symbol(self) -> SymbolOption: + """Symbol + "Select symbol to mark points along plot trace." + " """ + val = self._get_property('Symbol') + val = self.SymbolOption[val] + return val + @symbol.setter + def symbol(self, value: SymbolOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -219,15 +181,11 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - key_val_pair = [i for i in props if 'Symbol Size=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Size') return val @symbol_size.setter - def symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + def symbol_size(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -235,15 +193,11 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - key_val_pair = [i for i in props if 'Symbol Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Color') return val @symbol_color.setter def symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -251,15 +205,11 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - key_val_pair = [i for i in props if 'Symbol Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Line Width') return val @symbol_line_width.setter - def symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + def symbol_line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -267,13 +217,9 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - key_val_pair = [i for i in props if 'Symbol Filled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Filled') return val @symbol_filled.setter - def symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + def symbol_filled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py index 6a3de209a06..74a4b3ec7c0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class CADNode(GenericEmitNode): +from ..EmitNode import * + +class CADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -27,27 +31,8 @@ def file(self) -> str: "Name of the imported CAD file." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'File') - key_val_pair = [i for i in props if 'File=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - - @property - def model_type(self): - """Model Type - "Select type of parametric model to create." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Model Type') - key_val_pair = [i for i in props if 'Model Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('File') return val - @model_type.setter - def model_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Model Type=' + value]) class ModelTypeOption(Enum): PLATE = "Plate" BOX = "Box" @@ -63,6 +48,17 @@ class ModelTypeOption(Enum): PRISM = "Prism" TAPERED_PRISM = "Tapered Prism" TOPHAT = "Tophat" + @property + def model_type(self) -> ModelTypeOption: + """Model Type + "Select type of parametric model to create." + " """ + val = self._get_property('Model Type') + val = self.ModelTypeOption[val] + return val + @model_type.setter + def model_type(self, value: ModelTypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Model Type=' + value.value]) @property def length(self) -> float: @@ -70,15 +66,11 @@ def length(self) -> float: "Length of the model." "Value should be greater than 1e-06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Length') - key_val_pair = [i for i in props if 'Length=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Length') return val @length.setter - def length(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Length=' + value]) + def length(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Length=' + value]) @property def width(self) -> float: @@ -86,15 +78,11 @@ def width(self) -> float: "Width of the model." "Value should be greater than 1e-06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Width') - key_val_pair = [i for i in props if 'Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Width') return val @width.setter - def width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Width=' + value]) + def width(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Width=' + value]) @property def height(self) -> float: @@ -102,15 +90,11 @@ def height(self) -> float: "Height of the model." "Value should be greater than 1e-06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Height') - key_val_pair = [i for i in props if 'Height=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Height') return val @height.setter - def height(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Height=' + value]) + def height(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Height=' + value]) @property def angle(self) -> float: @@ -118,15 +102,11 @@ def angle(self) -> float: "Angle (deg) between the plates." "Value should be between 0 and 360." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Angle') - key_val_pair = [i for i in props if 'Angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Angle') return val @angle.setter - def angle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Angle=' + value]) + def angle(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Angle=' + value]) @property def top_side(self) -> float: @@ -134,15 +114,11 @@ def top_side(self) -> float: "Side of the top of a equilateral triangular cylinder model." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Top Side') - key_val_pair = [i for i in props if 'Top Side=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Top Side') return val @top_side.setter - def top_side(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Top Side=' + value]) + def top_side(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Top Side=' + value]) @property def top_radius(self) -> float: @@ -150,15 +126,11 @@ def top_radius(self) -> float: "Radius of the top of a tapered cylinder model." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Top Radius') - key_val_pair = [i for i in props if 'Top Radius=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Top Radius') return val @top_radius.setter - def top_radius(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Top Radius=' + value]) + def top_radius(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Top Radius=' + value]) @property def side(self) -> float: @@ -166,15 +138,11 @@ def side(self) -> float: "Side of the equilateral triangular cylinder." "Value should be greater than 1e-06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Side') - key_val_pair = [i for i in props if 'Side=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Side') return val @side.setter - def side(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Side=' + value]) + def side(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Side=' + value]) @property def radius(self) -> float: @@ -182,15 +150,11 @@ def radius(self) -> float: "Radius of the sphere or cylinder." "Value should be greater than 1e-06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Radius') - key_val_pair = [i for i in props if 'Radius=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Radius') return val @radius.setter - def radius(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Radius=' + value]) + def radius(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Radius=' + value]) @property def base_radius(self) -> float: @@ -198,15 +162,11 @@ def base_radius(self) -> float: "Radius of the base of a tophat model." "Value should be greater than 1e-06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Base Radius') - key_val_pair = [i for i in props if 'Base Radius=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Base Radius') return val @base_radius.setter - def base_radius(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Base Radius=' + value]) + def base_radius(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Base Radius=' + value]) @property def center_radius(self) -> float: @@ -214,15 +174,11 @@ def center_radius(self) -> float: "Radius of the raised portion of a tophat model." "Value should be greater than 1e-06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Center Radius') - key_val_pair = [i for i in props if 'Center Radius=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Center Radius') return val @center_radius.setter - def center_radius(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Center Radius=' + value]) + def center_radius(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Center Radius=' + value]) @property def x_axis_ellipsoid_radius(self) -> float: @@ -230,15 +186,11 @@ def x_axis_ellipsoid_radius(self) -> float: "Ellipsoid semi-principal radius for the X axis." "Value should be greater than 1e-06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X Axis Ellipsoid Radius') - key_val_pair = [i for i in props if 'X Axis Ellipsoid Radius=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('X Axis Ellipsoid Radius') return val @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['X Axis Ellipsoid Radius=' + value]) + def x_axis_ellipsoid_radius(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['X Axis Ellipsoid Radius=' + value]) @property def y_axis_ellipsoid_radius(self) -> float: @@ -246,15 +198,11 @@ def y_axis_ellipsoid_radius(self) -> float: "Ellipsoid semi-principal radius for the Y axis." "Value should be greater than 1e-06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y Axis Ellipsoid Radius') - key_val_pair = [i for i in props if 'Y Axis Ellipsoid Radius=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Y Axis Ellipsoid Radius') return val @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y Axis Ellipsoid Radius=' + value]) + def y_axis_ellipsoid_radius(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Y Axis Ellipsoid Radius=' + value]) @property def z_axis_ellipsoid_radius(self) -> float: @@ -262,15 +210,11 @@ def z_axis_ellipsoid_radius(self) -> float: "Ellipsoid semi-principal radius for the Z axis." "Value should be greater than 1e-06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Z Axis Ellipsoid Radius') - key_val_pair = [i for i in props if 'Z Axis Ellipsoid Radius=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Z Axis Ellipsoid Radius') return val @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Z Axis Ellipsoid Radius=' + value]) + def z_axis_ellipsoid_radius(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Z Axis Ellipsoid Radius=' + value]) @property def focal_length(self) -> float: @@ -278,30 +222,22 @@ def focal_length(self) -> float: "Focal length of a parabolic reflector (f = 1/4a where y=ax^2)." "Value should be greater than 1e-06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Focal Length') - key_val_pair = [i for i in props if 'Focal Length=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Focal Length') return val @focal_length.setter - def focal_length(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Focal Length=' + value]) + def focal_length(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Focal Length=' + value]) @property def offset(self) -> float: """Offset "Offset of parabolic reflector." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Offset') - key_val_pair = [i for i in props if 'Offset=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Offset') return val @offset.setter - def offset(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Offset=' + value]) + def offset(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Offset=' + value]) @property def x_direction_taper(self) -> float: @@ -309,15 +245,11 @@ def x_direction_taper(self) -> float: "Amount (%) that the prism tapers in the X dimension from one end to the other." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X Direction Taper') - key_val_pair = [i for i in props if 'X Direction Taper=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('X Direction Taper') return val @x_direction_taper.setter - def x_direction_taper(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['X Direction Taper=' + value]) + def x_direction_taper(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['X Direction Taper=' + value]) @property def y_direction_taper(self) -> float: @@ -325,15 +257,11 @@ def y_direction_taper(self) -> float: "Amount (%) that the prism tapers in the Y dimension from one end to the other." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y Direction Taper') - key_val_pair = [i for i in props if 'Y Direction Taper=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Y Direction Taper') return val @y_direction_taper.setter - def y_direction_taper(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y Direction Taper=' + value]) + def y_direction_taper(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Y Direction Taper=' + value]) @property def prism_direction(self): @@ -341,15 +269,11 @@ def prism_direction(self): "Direction vector between the center of the base and center of the top." "Value should be x/y/z, delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Prism Direction') - key_val_pair = [i for i in props if 'Prism Direction=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Prism Direction') return val @prism_direction.setter def prism_direction(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Prism Direction=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Prism Direction=' + value]) @property def closed_top(self) -> bool: @@ -357,15 +281,11 @@ def closed_top(self) -> bool: "Control whether the top of the model is closed." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Closed Top') - key_val_pair = [i for i in props if 'Closed Top=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Closed Top') return val @closed_top.setter - def closed_top(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Closed Top=' + value]) + def closed_top(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Closed Top=' + value]) @property def closed_base(self) -> bool: @@ -373,15 +293,11 @@ def closed_base(self) -> bool: "Control whether the base of the model is closed." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Closed Base') - key_val_pair = [i for i in props if 'Closed Base=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Closed Base') return val @closed_base.setter - def closed_base(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Closed Base=' + value]) + def closed_base(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Closed Base=' + value]) @property def mesh_density(self) -> int: @@ -389,15 +305,11 @@ def mesh_density(self) -> int: "Unitless mesh density parameter where higher value improves mesh smoothness." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mesh Density') - key_val_pair = [i for i in props if 'Mesh Density=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Mesh Density') return val @mesh_density.setter - def mesh_density(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mesh Density=' + value]) + def mesh_density(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mesh Density=' + value]) @property def use_symmetric_mesh(self) -> bool: @@ -405,33 +317,26 @@ def use_symmetric_mesh(self) -> bool: "Convert quads to a symmetric triangle mesh by adding a center point (4 triangles per quad instead of 2)." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Symmetric Mesh') - key_val_pair = [i for i in props if 'Use Symmetric Mesh=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Use Symmetric Mesh') return val @use_symmetric_mesh.setter - def use_symmetric_mesh(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use Symmetric Mesh=' + value]) + def use_symmetric_mesh(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use Symmetric Mesh=' + value]) + class MeshOptionOption(Enum): + IMPROVED = "Improved" + LEGACY = "Legacy" @property - def mesh_option(self): + def mesh_option(self) -> MeshOptionOption: """Mesh Option "Select from different meshing options." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mesh Option') - key_val_pair = [i for i in props if 'Mesh Option=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Mesh Option') + val = self.MeshOptionOption[val] return val @mesh_option.setter - def mesh_option(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mesh Option=' + value]) - class MeshOptionOption(Enum): - IMPROVED = "Improved" - LEGACY = "Legacy" + def mesh_option(self, value: MeshOptionOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mesh Option=' + value.value]) @property def coating_index(self) -> int: @@ -439,15 +344,11 @@ def coating_index(self) -> int: "Coating index for the parametric model primitive." "Value should be between 0 and 100000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Coating Index') - key_val_pair = [i for i in props if 'Coating Index=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Coating Index') return val @coating_index.setter - def coating_index(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Coating Index=' + value]) + def coating_index(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Coating Index=' + value]) @property def show_relative_coordinates(self) -> bool: @@ -455,15 +356,11 @@ def show_relative_coordinates(self) -> bool: "Show CAD model node position and orientation in parent-node coords (False) or relative to placement coords (True)." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Relative Coordinates') - key_val_pair = [i for i in props if 'Show Relative Coordinates=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Show Relative Coordinates') return val @show_relative_coordinates.setter - def show_relative_coordinates(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) + def show_relative_coordinates(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) @property def position(self): @@ -471,15 +368,11 @@ def position(self): "Set position of the CAD node in parent-node coordinates." "Value should be x/y/z, delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') - key_val_pair = [i for i in props if 'Position=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Position') return val @position.setter def position(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) @property def relative_position(self): @@ -487,33 +380,26 @@ def relative_position(self): "Set position of the CAD model node relative to placement coordinates." "Value should be x/y/z, delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Position') - key_val_pair = [i for i in props if 'Relative Position=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Relative Position') return val @relative_position.setter def relative_position(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Relative Position=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Relative Position=' + value]) + class OrientationModeOption(Enum): + RPYDEG = "Roll-Pitch-Yaw" + AETDEG = "Az-El-Twist" @property - def orientation_mode(self): + def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation Mode') - key_val_pair = [i for i in props if 'Orientation Mode=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Orientation Mode') + val = self.OrientationModeOption[val] return val @orientation_mode.setter - def orientation_mode(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Orientation Mode=' + value]) - class OrientationModeOption(Enum): - RPYDEG = "Roll-Pitch-Yaw" - AETDEG = "Az-El-Twist" + def orientation_mode(self, value: OrientationModeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation Mode=' + value.value]) @property def orientation(self): @@ -521,15 +407,11 @@ def orientation(self): "Set orientation of the CAD node in parent-node coordinates." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation') - key_val_pair = [i for i in props if 'Orientation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Orientation') return val @orientation.setter def orientation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Orientation=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation=' + value]) @property def relative_orientation(self): @@ -537,15 +419,11 @@ def relative_orientation(self): "Set orientation of the CAD model node relative to placement coordinates." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Orientation') - key_val_pair = [i for i in props if 'Relative Orientation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Relative Orientation') return val @relative_orientation.setter def relative_orientation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) @property def visible(self) -> bool: @@ -553,35 +431,28 @@ def visible(self) -> bool: "Toggle (on/off) display of CAD model in 3-D window." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - key_val_pair = [i for i in props if 'Visible=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Visible') return val @visible.setter - def visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + def visible(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + class RenderModeOption(Enum): + FLAT_SHADED = "Flat-Shaded" + WIRE_FRAME = "Wire-Frame" + HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" + OUTLINE = "Outline" @property - def render_mode(self): + def render_mode(self) -> RenderModeOption: """Render Mode "Select drawing style for surfaces." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Render Mode') - key_val_pair = [i for i in props if 'Render Mode=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Render Mode') + val = self.RenderModeOption[val] return val @render_mode.setter - def render_mode(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Render Mode=' + value]) - class RenderModeOption(Enum): - FLAT_SHADED = "Flat-Shaded" - WIRE_FRAME = "Wire-Frame" - HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" - OUTLINE = "Outline" + def render_mode(self, value: RenderModeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Render Mode=' + value.value]) @property def show_axes(self) -> bool: @@ -589,15 +460,11 @@ def show_axes(self) -> bool: "Toggle (on/off) display of CAD model coordinate axes in 3-D window." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Axes') - key_val_pair = [i for i in props if 'Show Axes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Show Axes') return val @show_axes.setter - def show_axes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Axes=' + value]) + def show_axes(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Axes=' + value]) @property def min(self): @@ -605,66 +472,43 @@ def min(self): "Minimum x,y,z extents of CAD model in local coordinates." "Value should be x/y/z, delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min') - key_val_pair = [i for i in props if 'Min=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Min') return val - @property def max(self): """Max "Maximum x,y,z extents of CAD model in local coordinates." "Value should be x/y/z, delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max') - key_val_pair = [i for i in props if 'Max=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max') return val - @property def number_of_surfaces(self) -> int: """Number of Surfaces "Number of surfaces in the model." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Surfaces') - key_val_pair = [i for i in props if 'Number of Surfaces=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Number of Surfaces') return val - @property def color(self): """Color "Defines the CAD nodes color." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Color') - key_val_pair = [i for i in props if 'Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Color') return val @color.setter def color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val @notes.setter - def notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + def notes(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index 47366e46765..120925bfe23 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class Cable(GenericEmitNode): +from ..EmitNode import * + +class Cable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) def rename(self, new_name): """Rename this node""" @@ -22,15 +26,11 @@ def filename(self) -> str: "Name of file defining the outboard component." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - key_val_pair = [i for i in props if 'Filename=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Filename') return val @filename.setter - def filename(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + def filename(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @property def noise_temperature(self) -> float: @@ -38,49 +38,38 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - key_val_pair = [i for i in props if 'Noise Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Temperature') return val @noise_temperature.setter - def noise_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + def noise_temperature(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val @notes.setter - def notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + def notes(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + class TypeOption(Enum): + BYFILE = "By File" + CONSTANT = "Constant Loss" + COAXIAL = "Coaxial Cable" @property - def type(self): + def type(self) -> TypeOption: """Type "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - key_val_pair = [i for i in props if 'Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Type') + val = self.TypeOption[val] return val @type.setter - def type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) - class TypeOption(Enum): - BYFILE = "By File" - CONSTANT = "Constant Loss" - COAXIAL = "Coaxial Cable" + def type(self, value: TypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) @property def length(self) -> float: @@ -88,15 +77,11 @@ def length(self) -> float: "Length of cable." "Value should be between 0 and 500." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Length') - key_val_pair = [i for i in props if 'Length=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Length') return val @length.setter - def length(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Length=' + value]) + def length(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Length=' + value]) @property def loss_per_length(self) -> float: @@ -104,15 +89,11 @@ def loss_per_length(self) -> float: "Cable loss per unit length (dB/meter)." "Value should be between 0 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Loss Per Length') - key_val_pair = [i for i in props if 'Loss Per Length=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Loss Per Length') return val @loss_per_length.setter - def loss_per_length(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Loss Per Length=' + value]) + def loss_per_length(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Loss Per Length=' + value]) @property def measurement_length(self) -> float: @@ -120,15 +101,11 @@ def measurement_length(self) -> float: "Length of the cable used for the measurements." "Value should be between 0 and 500." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measurement Length') - key_val_pair = [i for i in props if 'Measurement Length=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Measurement Length') return val @measurement_length.setter - def measurement_length(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Measurement Length=' + value]) + def measurement_length(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Measurement Length=' + value]) @property def resistive_loss_constant(self) -> float: @@ -136,15 +113,11 @@ def resistive_loss_constant(self) -> float: "Coaxial cable resistive loss constant." "Value should be between 0 and 2." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Resistive Loss Constant') - key_val_pair = [i for i in props if 'Resistive Loss Constant=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Resistive Loss Constant') return val @resistive_loss_constant.setter - def resistive_loss_constant(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Resistive Loss Constant=' + value]) + def resistive_loss_constant(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Resistive Loss Constant=' + value]) @property def dielectric_loss_constant(self) -> float: @@ -152,25 +125,16 @@ def dielectric_loss_constant(self) -> float: "Coaxial cable dielectric loss constant." "Value should be between 0 and 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Dielectric Loss Constant') - key_val_pair = [i for i in props if 'Dielectric Loss Constant=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Dielectric Loss Constant') return val @dielectric_loss_constant.setter - def dielectric_loss_constant(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Dielectric Loss Constant=' + value]) + def dielectric_loss_constant(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Dielectric Loss Constant=' + value]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - key_val_pair = [i for i in props if 'Warnings=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Warnings') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py index b64ae5b791d..5200e35a6c8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py @@ -1,6 +1,10 @@ -from ..GenericEmitNode import * -class CategoriesViewNode(GenericEmitNode): +from ..EmitNode import * + +class CategoriesViewNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index b48f6e9a176..b6df5ee6463 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class Circulator(GenericEmitNode): +from ..EmitNode import * + +class Circulator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) def rename(self, new_name): """Rename this node""" @@ -22,15 +26,11 @@ def filename(self) -> str: "Name of file defining the Isolator/Circulator." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - key_val_pair = [i for i in props if 'Filename=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Filename') return val @filename.setter - def filename(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + def filename(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @property def noise_temperature(self) -> float: @@ -38,66 +38,52 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - key_val_pair = [i for i in props if 'Noise Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Temperature') return val @noise_temperature.setter - def noise_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + def noise_temperature(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val @notes.setter - def notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + def notes(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + class TypeOption(Enum): + BYFILE = "By File" + PARAMETRIC = "Parametric" @property - def type(self): + def type(self) -> TypeOption: """Type "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - key_val_pair = [i for i in props if 'Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Type') + val = self.TypeOption[val] return val @type.setter - def type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) - class TypeOption(Enum): - BYFILE = "By File" - PARAMETRIC = "Parametric" + def type(self, value: TypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) + class Port1LocationOption(Enum): + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" @property - def port_1_location(self): + def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the circulator.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port 1 Location') - key_val_pair = [i for i in props if 'Port 1 Location=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Port 1 Location') + val = self.Port1LocationOption[val] return val @port_1_location.setter - def port_1_location(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Port 1 Location=' + value]) - class Port1LocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + def port_1_location(self, value: Port1LocationOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Port 1 Location=' + value.value]) @property def insertion_loss(self) -> float: @@ -105,15 +91,11 @@ def insertion_loss(self) -> float: "Circulator in-band loss in forward direction.." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') - key_val_pair = [i for i in props if 'Insertion Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Insertion Loss') return val @insertion_loss.setter - def insertion_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + def insertion_loss(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) @property def finite_reverse_isolation(self) -> bool: @@ -121,15 +103,11 @@ def finite_reverse_isolation(self) -> bool: "Use a finite reverse isolation. If disabled, the circulator model is ideal (infinite reverse isolation).." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Reverse Isolation') - key_val_pair = [i for i in props if 'Finite Reverse Isolation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Finite Reverse Isolation') return val @finite_reverse_isolation.setter - def finite_reverse_isolation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Reverse Isolation=' + value]) + def finite_reverse_isolation(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Finite Reverse Isolation=' + value]) @property def reverse_isolation(self) -> float: @@ -137,15 +115,11 @@ def reverse_isolation(self) -> float: "Circulator reverse isolation (i.e., loss in the reverse direction).." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reverse Isolation') - key_val_pair = [i for i in props if 'Reverse Isolation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Reverse Isolation') return val @reverse_isolation.setter - def reverse_isolation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) + def reverse_isolation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) @property def finite_bandwidth(self) -> bool: @@ -153,15 +127,11 @@ def finite_bandwidth(self) -> bool: "Use a finite bandwidth. If disabled, the circulator model is ideal (infinite bandwidth).." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Bandwidth') - key_val_pair = [i for i in props if 'Finite Bandwidth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Finite Bandwidth') return val @finite_bandwidth.setter - def finite_bandwidth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) + def finite_bandwidth(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) @property def out_of_band_attenuation(self) -> float: @@ -169,15 +139,11 @@ def out_of_band_attenuation(self) -> float: "Out-of-band loss (attenuation)." "Value should be between 0 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out-of-band Attenuation') - key_val_pair = [i for i in props if 'Out-of-band Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Out-of-band Attenuation') return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) + def out_of_band_attenuation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) @property def lower_stop_band(self) -> float: @@ -185,15 +151,11 @@ def lower_stop_band(self) -> float: "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') - key_val_pair = [i for i in props if 'Lower Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Stop Band') return val @lower_stop_band.setter - def lower_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + def lower_stop_band(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) @property def lower_cutoff(self) -> float: @@ -201,15 +163,11 @@ def lower_cutoff(self) -> float: "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') - key_val_pair = [i for i in props if 'Lower Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Cutoff') return val @lower_cutoff.setter - def lower_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + def lower_cutoff(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) @property def higher_cutoff(self) -> float: @@ -217,15 +175,11 @@ def higher_cutoff(self) -> float: "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') - key_val_pair = [i for i in props if 'Higher Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Cutoff') return val @higher_cutoff.setter - def higher_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + def higher_cutoff(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) @property def higher_stop_band(self) -> float: @@ -233,25 +187,16 @@ def higher_stop_band(self) -> float: "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') - key_val_pair = [i for i in props if 'Higher Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Stop Band') return val @higher_stop_band.setter - def higher_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + def higher_stop_band(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - key_val_pair = [i for i in props if 'Warnings=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Warnings') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py index 09bbddbcf25..5236002a345 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class CouplingLinkNode(GenericEmitNode): +from ..EmitNode import * + +class CouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -15,13 +19,21 @@ def enabled(self) -> bool: "Enable/Disable coupling link." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') return val @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def ports(self): + """Ports + "Maps each port in the link to an antenna in the project." + "A list of values." + " """ + val = self._get_property('Ports') + return val + @ports.setter + def ports(self, value): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Ports=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py index ee6d54d8cd8..22f4b618dea 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class CouplingTraceNode(GenericEmitNode): +from ..EmitNode import * + +class CouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -21,20 +25,36 @@ def delete(self): """Delete this node""" self._delete() + @property + def transmitter(self) -> EmitNode: + """Transmitter + " """ + val = self._get_property('Transmitter') + return val + @transmitter.setter + def transmitter(self, value: EmitNode): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Transmitter=' + value]) + + @property + def receiver(self) -> EmitNode: + """Receiver + " """ + val = self._get_property('Receiver') + return val + @receiver.setter + def receiver(self, value: EmitNode): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Receiver=' + value]) + @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - key_val_pair = [i for i in props if 'Data Source=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Data Source') return val @data_source.setter def data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @property def visible(self) -> bool: @@ -42,15 +62,11 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - key_val_pair = [i for i in props if 'Visible=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Visible') return val @visible.setter - def visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + def visible(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -58,45 +74,23 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - key_val_pair = [i for i in props if 'Custom Legend=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Legend') return val @custom_legend.setter - def custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + def custom_legend(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - key_val_pair = [i for i in props if 'Name=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Name') return val @name.setter - def name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + def name(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) - @property - def style(self): - """Style - "Specify line style of plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - key_val_pair = [i for i in props if 'Style=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @style.setter - def style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) class StyleOption(Enum): LINES = "Lines" DOTTED = "Dotted" @@ -104,6 +98,17 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property + def style(self) -> StyleOption: + """Style + "Specify line style of plot trace." + " """ + val = self._get_property('Style') + val = self.StyleOption[val] + return val + @style.setter + def style(self, value: StyleOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -111,15 +116,11 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - key_val_pair = [i for i in props if 'Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Width') return val @line_width.setter - def line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + def line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -127,30 +128,12 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - key_val_pair = [i for i in props if 'Line Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Color') return val @line_color.setter def line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) - @property - def symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - key_val_pair = [i for i in props if 'Symbol=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @symbol.setter - def symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" ELLIPSE = "Ellipse" @@ -167,6 +150,17 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property + def symbol(self) -> SymbolOption: + """Symbol + "Select symbol to mark points along plot trace." + " """ + val = self._get_property('Symbol') + val = self.SymbolOption[val] + return val + @symbol.setter + def symbol(self, value: SymbolOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -174,15 +168,11 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - key_val_pair = [i for i in props if 'Symbol Size=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Size') return val @symbol_size.setter - def symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + def symbol_size(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -190,15 +180,11 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - key_val_pair = [i for i in props if 'Symbol Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Color') return val @symbol_color.setter def symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -206,15 +192,11 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - key_val_pair = [i for i in props if 'Symbol Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Line Width') return val @symbol_line_width.setter - def symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + def symbol_line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -222,15 +204,11 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - key_val_pair = [i for i in props if 'Symbol Filled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Filled') return val @symbol_filled.setter - def symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + def symbol_filled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) @property def highlight_regions(self) -> bool: @@ -238,15 +216,11 @@ def highlight_regions(self) -> bool: "If true, regions of the trace are highlighted." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Highlight Regions') - key_val_pair = [i for i in props if 'Highlight Regions=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Highlight Regions') return val @highlight_regions.setter - def highlight_regions(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Highlight Regions=' + value]) + def highlight_regions(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Highlight Regions=' + value]) @property def show_region_labels(self) -> bool: @@ -254,15 +228,11 @@ def show_region_labels(self) -> bool: "If true, regions of the trace are labelled." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Region Labels') - key_val_pair = [i for i in props if 'Show Region Labels=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Show Region Labels') return val @show_region_labels.setter - def show_region_labels(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Region Labels=' + value]) + def show_region_labels(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Region Labels=' + value]) @property def font(self): @@ -270,15 +240,11 @@ def font(self): "Specify font used for the label." "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Font') - key_val_pair = [i for i in props if 'Font=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Font') return val @font.setter def font(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Font=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Font=' + value]) @property def color(self): @@ -286,15 +252,11 @@ def color(self): "Specify color of the label text." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Color') - key_val_pair = [i for i in props if 'Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Color') return val @color.setter def color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) @property def background_color(self): @@ -302,15 +264,11 @@ def background_color(self): "Set color of the label text background." "Color should be in RGBA form: #AARRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Background Color') - key_val_pair = [i for i in props if 'Background Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Background Color') return val @background_color.setter def background_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Background Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) @property def border(self) -> bool: @@ -318,15 +276,11 @@ def border(self) -> bool: "Display a border around the label text." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border') - key_val_pair = [i for i in props if 'Border=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Border') return val @border.setter - def border(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border=' + value]) + def border(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border=' + value]) @property def border_width(self) -> int: @@ -334,15 +288,11 @@ def border_width(self) -> int: "Set the width of the border around the label text." "Value should be between 1 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border Width') - key_val_pair = [i for i in props if 'Border Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Border Width') return val @border_width.setter - def border_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border Width=' + value]) + def border_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border Width=' + value]) @property def border_color(self): @@ -350,13 +300,9 @@ def border_color(self): "Set color of the border around the label text." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border Color') - key_val_pair = [i for i in props if 'Border Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Border Color') return val @border_color.setter def border_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border Color=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py index f05f9953092..da8edfe3900 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class CouplingsNode(GenericEmitNode): +from ..EmitNode import * + +class CouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" @@ -50,15 +54,11 @@ def minimum_allowed_coupling(self) -> float: "Global minimum allowed coupling value. All computed coupling within this project will be >= this value." "Value should be between -1000 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minimum Allowed Coupling') - key_val_pair = [i for i in props if 'Minimum Allowed Coupling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Minimum Allowed Coupling') return val @minimum_allowed_coupling.setter - def minimum_allowed_coupling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Minimum Allowed Coupling=' + value]) + def minimum_allowed_coupling(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Minimum Allowed Coupling=' + value]) @property def global_default_coupling(self) -> float: @@ -66,25 +66,16 @@ def global_default_coupling(self) -> float: "Default antenna-to-antenna coupling loss value." "Value should be between -1000 and 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Global Default Coupling') - key_val_pair = [i for i in props if 'Global Default Coupling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Global Default Coupling') return val @global_default_coupling.setter - def global_default_coupling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Global Default Coupling=' + value]) + def global_default_coupling(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Global Default Coupling=' + value]) @property def antenna_tags(self) -> str: """Antenna Tags "All tags currently used by all antennas in the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna Tags') - key_val_pair = [i for i in props if 'Antenna Tags=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Antenna Tags') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py index 0ee027c3385..76bfb8e6f90 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class CustomCouplingNode(GenericEmitNode): +from ..EmitNode import * + +class CustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -25,21 +29,53 @@ def delete(self): """Delete this node""" self._delete() + @property + def table_data(self): + """ Table" + "Table consists of 2 columns." + "Frequency: + " Value should be between 1 and 1e+11." + "Value (dB): + " Value should be between -1000 and 0." + """ + return self._get_table_data() + @table_data.setter + def table_data(self, value): + self._set_table_data(value) + @property def enabled(self) -> bool: """Enabled "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') return val @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def antenna_a(self) -> EmitNode: + """Antenna A + "First antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Antenna A') + return val + @antenna_a.setter + def antenna_a(self, value: EmitNode): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) + + @property + def antenna_b(self) -> EmitNode: + """Antenna B + "Second antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Antenna B') + return val + @antenna_b.setter + def antenna_b(self, value: EmitNode): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) @property def enable_refinement(self) -> bool: @@ -47,15 +83,11 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - key_val_pair = [i for i in props if 'Enable Refinement=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Refinement') return val @enable_refinement.setter - def enable_refinement(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + def enable_refinement(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @property def adaptive_sampling(self) -> bool: @@ -63,28 +95,20 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Adaptive Sampling') return val @adaptive_sampling.setter - def adaptive_sampling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + def adaptive_sampling(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - key_val_pair = [i for i in props if 'Refinement Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Refinement Domain') return val @refinement_domain.setter def refinement_domain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py index 7720b977568..6031f5fec98 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class EmiPlotMarkerNode(GenericEmitNode): +from ..EmitNode import * + +class EmiPlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -27,70 +31,48 @@ def visible(self) -> bool: "Toggle (on/off) this marker." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - key_val_pair = [i for i in props if 'Visible=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Visible') return val @visible.setter - def visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + def visible(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def attached(self): """Attached "Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False)." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Attached') - key_val_pair = [i for i in props if 'Attached=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Attached') return val @attached.setter def attached(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Attached=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Attached=' + value]) @property def position(self) -> float: """Position "Set position of the marker along the X-axis." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') - key_val_pair = [i for i in props if 'Position=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Position') return val - @property def position(self) -> float: """Position "Set position of the marker along the Y-axis." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') - key_val_pair = [i for i in props if 'Position=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Position') return val - @property def floating_label(self) -> bool: """Floating Label "Allow marker label to be positioned at a fixed point on the plot window (the marker symbol remains fixed to the specified X-Y point)." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Floating Label') - key_val_pair = [i for i in props if 'Floating Label=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Floating Label') return val @floating_label.setter - def floating_label(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Floating Label=' + value]) + def floating_label(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Floating Label=' + value]) @property def position_from_left(self) -> float: @@ -98,15 +80,11 @@ def position_from_left(self) -> float: "Set position of label from left to right as a percentage of the width of the plot window." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position from Left') - key_val_pair = [i for i in props if 'Position from Left=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Position from Left') return val @position_from_left.setter - def position_from_left(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position from Left=' + value]) + def position_from_left(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position from Left=' + value]) @property def position_from_top(self) -> float: @@ -114,87 +92,70 @@ def position_from_top(self) -> float: "Set position of label from top to bottom as a percentage of the height of the plot window." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position from Top') - key_val_pair = [i for i in props if 'Position from Top=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Position from Top') return val @position_from_top.setter - def position_from_top(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position from Top=' + value]) + def position_from_top(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position from Top=' + value]) @property def text(self) -> str: """Text "Set the text of the label." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Text') - key_val_pair = [i for i in props if 'Text=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Text') return val @text.setter - def text(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Text=' + value]) + def text(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Text=' + value]) + class HorizontalPositionOption(Enum): + LEFT = "Left" + RIGHT = "Right" + CENTER = "Center" @property - def horizontal_position(self): + def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position "Specify horizontal position of the label as compared to the symbol." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Horizontal Position') - key_val_pair = [i for i in props if 'Horizontal Position=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Horizontal Position') + val = self.HorizontalPositionOption[val] return val @horizontal_position.setter - def horizontal_position(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Horizontal Position=' + value]) - class HorizontalPositionOption(Enum): - LEFT = "Left" - RIGHT = "Right" - CENTER = "Center" + def horizontal_position(self, value: HorizontalPositionOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Horizontal Position=' + value.value]) + class VerticalPositionOption(Enum): + TOP = "Top" + BOTTOM = "Bottom" + CENTER = "Center" @property - def vertical_position(self): + def vertical_position(self) -> VerticalPositionOption: """Vertical Position "Specify vertical position of the label as compared to the symbol." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Vertical Position') - key_val_pair = [i for i in props if 'Vertical Position=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Vertical Position') + val = self.VerticalPositionOption[val] return val @vertical_position.setter - def vertical_position(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Vertical Position=' + value]) - class VerticalPositionOption(Enum): - TOP = "Top" - BOTTOM = "Bottom" - CENTER = "Center" + def vertical_position(self, value: VerticalPositionOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Position=' + value.value]) + class TextAlignmentOption(Enum): + LEFT = "Left" + RIGHT = "Right" + CENTER = "Center" @property - def text_alignment(self): + def text_alignment(self) -> TextAlignmentOption: """Text Alignment "Specify justification applied to multi-line text." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Text Alignment') - key_val_pair = [i for i in props if 'Text Alignment=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Text Alignment') + val = self.TextAlignmentOption[val] return val @text_alignment.setter - def text_alignment(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Text Alignment=' + value]) - class TextAlignmentOption(Enum): - LEFT = "Left" - RIGHT = "Right" - CENTER = "Center" + def text_alignment(self, value: TextAlignmentOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Text Alignment=' + value.value]) @property def font(self): @@ -202,15 +163,11 @@ def font(self): "Specify font used for the label." "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Font') - key_val_pair = [i for i in props if 'Font=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Font') return val @font.setter def font(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Font=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Font=' + value]) @property def color(self): @@ -218,15 +175,11 @@ def color(self): "Specify color of the label text." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Color') - key_val_pair = [i for i in props if 'Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Color') return val @color.setter def color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) @property def background_color(self): @@ -234,15 +187,11 @@ def background_color(self): "Set color of the label text background." "Color should be in RGBA form: #AARRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Background Color') - key_val_pair = [i for i in props if 'Background Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Background Color') return val @background_color.setter def background_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Background Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) @property def border(self) -> bool: @@ -250,15 +199,11 @@ def border(self) -> bool: "Display a border around the label text." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border') - key_val_pair = [i for i in props if 'Border=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Border') return val @border.setter - def border(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border=' + value]) + def border(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border=' + value]) @property def border_width(self) -> int: @@ -266,15 +211,11 @@ def border_width(self) -> int: "Set the width of the border around the label text." "Value should be between 1 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border Width') - key_val_pair = [i for i in props if 'Border Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Border Width') return val @border_width.setter - def border_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border Width=' + value]) + def border_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border Width=' + value]) @property def border_color(self): @@ -282,30 +223,12 @@ def border_color(self): "Set color of the border around the label text." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border Color') - key_val_pair = [i for i in props if 'Border Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Border Color') return val @border_color.setter def border_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border Color=' + value]) - @property - def symbol(self): - """Symbol - "Specify symbol displayed next to the label." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - key_val_pair = [i for i in props if 'Symbol=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @symbol.setter - def symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" ELLIPSE = "Ellipse" @@ -323,6 +246,17 @@ class SymbolOption(Enum): STAR2 = "Star2" HEXAGON = "Hexagon" ARROW = "Arrow" + @property + def symbol(self) -> SymbolOption: + """Symbol + "Specify symbol displayed next to the label." + " """ + val = self._get_property('Symbol') + val = self.SymbolOption[val] + return val + @symbol.setter + def symbol(self, value: SymbolOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def arrow_direction(self) -> int: @@ -330,15 +264,11 @@ def arrow_direction(self) -> int: "Set direction of the arrow; zero degrees is up." "Value should be between -360 and 360." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Arrow Direction') - key_val_pair = [i for i in props if 'Arrow Direction=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Arrow Direction') return val @arrow_direction.setter - def arrow_direction(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Arrow Direction=' + value]) + def arrow_direction(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Arrow Direction=' + value]) @property def symbol_size(self) -> int: @@ -346,15 +276,11 @@ def symbol_size(self) -> int: "Set size of the symbol used for this marker." "Value should be between 1 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - key_val_pair = [i for i in props if 'Symbol Size=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Size') return val @symbol_size.setter - def symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + def symbol_size(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -362,15 +288,11 @@ def symbol_color(self): "Set color of the symbol used for this marker." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - key_val_pair = [i for i in props if 'Symbol Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Color') return val @symbol_color.setter def symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def line_width(self) -> int: @@ -378,15 +300,11 @@ def line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - key_val_pair = [i for i in props if 'Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Width') return val @line_width.setter - def line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + def line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def filled(self) -> bool: @@ -394,13 +312,9 @@ def filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filled') - key_val_pair = [i for i in props if 'Filled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Filled') return val @filled.setter - def filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filled=' + value]) + def filled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py index c1ad7b2e964..ca052634777 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class EmitSceneNode(GenericEmitNode): +from ..EmitNode import * + +class EmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) def add_group(self): """Add a new scene group""" @@ -13,47 +17,36 @@ def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val @notes.setter - def notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + def notes(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + class GroundPlaneNormalOption(Enum): + XAXIS = "X Axis" + YAXIS = "Y Axis" + ZAXIS = "Z Axis" @property - def ground_plane_normal(self): + def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal "Specifies the axis of the normal to the ground plane." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Ground Plane Normal') - key_val_pair = [i for i in props if 'Ground Plane Normal=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Ground Plane Normal') + val = self.GroundPlaneNormalOption[val.upper()] return val @ground_plane_normal.setter - def ground_plane_normal(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Ground Plane Normal=' + value]) - class GroundPlaneNormalOption(Enum): - XAXIS = "X Axis" - YAXIS = "Y Axis" - ZAXIS = "Z Axis" + def ground_plane_normal(self, value: GroundPlaneNormalOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Ground Plane Normal=' + value.value]) @property def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'GP Position Along Normal') - key_val_pair = [i for i in props if 'GP Position Along Normal=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('GP Position Along Normal') return val @gp_position_along_normal.setter - def gp_position_along_normal(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['GP Position Along Normal=' + value]) + def gp_position_along_normal(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['GP Position Along Normal=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py index 7bf7335e6a5..8961a60c9e1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ErcegCouplingNode(GenericEmitNode): +from ..EmitNode import * + +class ErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -27,15 +31,33 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') return val @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def base_antenna(self) -> EmitNode: + """Base Antenna + "First antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Base Antenna') + return val + @base_antenna.setter + def base_antenna(self, value: EmitNode): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Base Antenna=' + value]) + + @property + def mobile_antenna(self) -> EmitNode: + """Mobile Antenna + "Second antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Mobile Antenna') + return val + @mobile_antenna.setter + def mobile_antenna(self, value: EmitNode): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mobile Antenna=' + value]) @property def enable_refinement(self) -> bool: @@ -43,15 +65,11 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - key_val_pair = [i for i in props if 'Enable Refinement=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Refinement') return val @enable_refinement.setter - def enable_refinement(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + def enable_refinement(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @property def adaptive_sampling(self) -> bool: @@ -59,49 +77,38 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Adaptive Sampling') return val @adaptive_sampling.setter - def adaptive_sampling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + def adaptive_sampling(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - key_val_pair = [i for i in props if 'Refinement Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Refinement Domain') return val @refinement_domain.setter def refinement_domain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + class TerrainCategoryOption(Enum): + TYPEA = "Type A" + TYPEB = "Type B" + TYPEC = "Type C" @property - def terrain_category(self): + def terrain_category(self) -> TerrainCategoryOption: """Terrain Category "Specify the terrain category type for the Erceg model." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Terrain Category') - key_val_pair = [i for i in props if 'Terrain Category=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Terrain Category') + val = self.TerrainCategoryOption[val] return val @terrain_category.setter - def terrain_category(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Terrain Category=' + value]) - class TerrainCategoryOption(Enum): - TYPEA = "Type A" - TYPEB = "Type B" - TYPEC = "Type C" + def terrain_category(self, value: TerrainCategoryOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Terrain Category=' + value.value]) @property def custom_fading_margin(self) -> float: @@ -109,15 +116,11 @@ def custom_fading_margin(self) -> float: "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') - key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Fading Margin') return val @custom_fading_margin.setter - def custom_fading_margin(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + def custom_fading_margin(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) @property def polarization_mismatch(self) -> float: @@ -125,15 +128,11 @@ def polarization_mismatch(self) -> float: "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') - key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Mismatch') return val @polarization_mismatch.setter - def polarization_mismatch(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + def polarization_mismatch(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) @property def pointing_error_loss(self) -> float: @@ -141,35 +140,28 @@ def pointing_error_loss(self) -> float: "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') - key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pointing Error Loss') return val @pointing_error_loss.setter - def pointing_error_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + def pointing_error_loss(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + class FadingTypeOption(Enum): + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" @property - def fading_type(self): + def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') - key_val_pair = [i for i in props if 'Fading Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Fading Type') + val = self.FadingTypeOption[val] return val @fading_type.setter - def fading_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) - class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + def fading_type(self, value: FadingTypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) @property def fading_availability(self) -> float: @@ -177,15 +169,11 @@ def fading_availability(self) -> float: "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') - key_val_pair = [i for i in props if 'Fading Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Fading Availability') return val @fading_availability.setter - def fading_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + def fading_availability(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) @property def std_deviation(self) -> float: @@ -193,15 +181,11 @@ def std_deviation(self) -> float: "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') - key_val_pair = [i for i in props if 'Std Deviation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Std Deviation') return val @std_deviation.setter - def std_deviation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + def std_deviation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) @property def include_rain_attenuation(self) -> bool: @@ -209,15 +193,11 @@ def include_rain_attenuation(self) -> bool: "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') - key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Rain Attenuation') return val @include_rain_attenuation.setter - def include_rain_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + def include_rain_attenuation(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) @property def rain_availability(self) -> float: @@ -225,15 +205,11 @@ def rain_availability(self) -> float: "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') - key_val_pair = [i for i in props if 'Rain Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Availability') return val @rain_availability.setter - def rain_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + def rain_availability(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) @property def rain_rate(self) -> float: @@ -241,15 +217,11 @@ def rain_rate(self) -> float: "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') - key_val_pair = [i for i in props if 'Rain Rate=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Rate') return val @rain_rate.setter - def rain_rate(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + def rain_rate(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) @property def polarization_tilt_angle(self) -> float: @@ -257,15 +229,11 @@ def polarization_tilt_angle(self) -> float: "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') - key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Tilt Angle') return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + def polarization_tilt_angle(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) @property def include_atmospheric_absorption(self) -> bool: @@ -273,15 +241,11 @@ def include_atmospheric_absorption(self) -> bool: "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') - key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Atmospheric Absorption') return val @include_atmospheric_absorption.setter - def include_atmospheric_absorption(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + def include_atmospheric_absorption(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) @property def temperature(self) -> float: @@ -289,15 +253,11 @@ def temperature(self) -> float: "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') - key_val_pair = [i for i in props if 'Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Temperature') return val @temperature.setter - def temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) + def temperature(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) @property def total_air_pressure(self) -> float: @@ -305,15 +265,11 @@ def total_air_pressure(self) -> float: "Total air pressure." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') - key_val_pair = [i for i in props if 'Total Air Pressure=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Total Air Pressure') return val @total_air_pressure.setter - def total_air_pressure(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + def total_air_pressure(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) @property def water_vapor_concentration(self) -> float: @@ -321,13 +277,9 @@ def water_vapor_concentration(self) -> float: "Water vapor concentration." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') - key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Water Vapor Concentration') return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + def water_vapor_concentration(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index b6e6e4bc46b..2d96a635a6f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class Filter(GenericEmitNode): +from ..EmitNode import * + +class Filter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) def rename(self, new_name): """Rename this node""" @@ -22,15 +26,11 @@ def filename(self) -> str: "Name of file defining the outboard component." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - key_val_pair = [i for i in props if 'Filename=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Filename') return val @filename.setter - def filename(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + def filename(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @property def noise_temperature(self) -> float: @@ -38,45 +38,23 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - key_val_pair = [i for i in props if 'Noise Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Temperature') return val @noise_temperature.setter - def noise_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + def noise_temperature(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val @notes.setter - def notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + def notes(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) - @property - def type(self): - """Type - "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - key_val_pair = [i for i in props if 'Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @type.setter - def type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) class TypeOption(Enum): BYFILE = "By File" LOWPASS = "Low Pass" @@ -85,6 +63,17 @@ class TypeOption(Enum): BANDSTOP = "Band Stop" TUNABLEBANDPASS = "Tunable Bandpass" TUNABLEBANDSTOP = "Tunable Bandstop" + @property + def type(self) -> TypeOption: + """Type + "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." + " """ + val = self._get_property('Type') + val = self.TypeOption[val] + return val + @type.setter + def type(self, value: TypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) @property def insertion_loss(self) -> float: @@ -92,15 +81,11 @@ def insertion_loss(self) -> float: "Filter pass band loss." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') - key_val_pair = [i for i in props if 'Insertion Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Insertion Loss') return val @insertion_loss.setter - def insertion_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + def insertion_loss(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) @property def stop_band_attenuation(self) -> float: @@ -108,15 +93,11 @@ def stop_band_attenuation(self) -> float: "Filter stop band loss (attenuation)." "Value should be less than 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop band Attenuation') - key_val_pair = [i for i in props if 'Stop band Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Stop band Attenuation') return val @stop_band_attenuation.setter - def stop_band_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Stop band Attenuation=' + value]) + def stop_band_attenuation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Stop band Attenuation=' + value]) @property def max_pass_band(self) -> float: @@ -124,15 +105,11 @@ def max_pass_band(self) -> float: "Maximum pass band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Pass Band') - key_val_pair = [i for i in props if 'Max Pass Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Pass Band') return val @max_pass_band.setter - def max_pass_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Pass Band=' + value]) + def max_pass_band(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Pass Band=' + value]) @property def min_stop_band(self) -> float: @@ -140,15 +117,11 @@ def min_stop_band(self) -> float: "Minimum stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Stop Band') - key_val_pair = [i for i in props if 'Min Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Min Stop Band') return val @min_stop_band.setter - def min_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Min Stop Band=' + value]) + def min_stop_band(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Min Stop Band=' + value]) @property def max_stop_band(self) -> float: @@ -156,15 +129,11 @@ def max_stop_band(self) -> float: "Maximum stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Stop Band') - key_val_pair = [i for i in props if 'Max Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Stop Band') return val @max_stop_band.setter - def max_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Stop Band=' + value]) + def max_stop_band(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Stop Band=' + value]) @property def min_pass_band(self) -> float: @@ -172,15 +141,11 @@ def min_pass_band(self) -> float: "Minimum pass band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Pass Band') - key_val_pair = [i for i in props if 'Min Pass Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Min Pass Band') return val @min_pass_band.setter - def min_pass_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Min Pass Band=' + value]) + def min_pass_band(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Min Pass Band=' + value]) @property def lower_stop_band(self) -> float: @@ -188,15 +153,11 @@ def lower_stop_band(self) -> float: "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') - key_val_pair = [i for i in props if 'Lower Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Stop Band') return val @lower_stop_band.setter - def lower_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + def lower_stop_band(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) @property def lower_cutoff(self) -> float: @@ -204,15 +165,11 @@ def lower_cutoff(self) -> float: "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') - key_val_pair = [i for i in props if 'Lower Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Cutoff') return val @lower_cutoff.setter - def lower_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + def lower_cutoff(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) @property def higher_cutoff(self) -> float: @@ -220,15 +177,11 @@ def higher_cutoff(self) -> float: "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') - key_val_pair = [i for i in props if 'Higher Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Cutoff') return val @higher_cutoff.setter - def higher_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + def higher_cutoff(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) @property def higher_stop_band(self) -> float: @@ -236,15 +189,11 @@ def higher_stop_band(self) -> float: "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') - key_val_pair = [i for i in props if 'Higher Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Stop Band') return val @higher_stop_band.setter - def higher_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + def higher_stop_band(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) @property def lower_cutoff_(self) -> float: @@ -252,15 +201,11 @@ def lower_cutoff_(self) -> float: "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff ') - key_val_pair = [i for i in props if 'Lower Cutoff =' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Cutoff ') return val @lower_cutoff_.setter - def lower_cutoff_(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff =' + value]) + def lower_cutoff_(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff =' + value]) @property def lower_stop_band_(self) -> float: @@ -268,15 +213,11 @@ def lower_stop_band_(self) -> float: "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band ') - key_val_pair = [i for i in props if 'Lower Stop Band =' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Stop Band ') return val @lower_stop_band_.setter - def lower_stop_band_(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band =' + value]) + def lower_stop_band_(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band =' + value]) @property def higher_stop_band_(self) -> float: @@ -284,15 +225,11 @@ def higher_stop_band_(self) -> float: "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band ') - key_val_pair = [i for i in props if 'Higher Stop Band =' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Stop Band ') return val @higher_stop_band_.setter - def higher_stop_band_(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band =' + value]) + def higher_stop_band_(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band =' + value]) @property def higher_cutoff_(self) -> float: @@ -300,15 +237,11 @@ def higher_cutoff_(self) -> float: "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff ') - key_val_pair = [i for i in props if 'Higher Cutoff =' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Cutoff ') return val @higher_cutoff_.setter - def higher_cutoff_(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff =' + value]) + def higher_cutoff_(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff =' + value]) @property def lowest_tuned_frequency_(self) -> float: @@ -316,15 +249,11 @@ def lowest_tuned_frequency_(self) -> float: "Lowest tuned frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lowest Tuned Frequency ') - key_val_pair = [i for i in props if 'Lowest Tuned Frequency =' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lowest Tuned Frequency ') return val @lowest_tuned_frequency_.setter - def lowest_tuned_frequency_(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lowest Tuned Frequency =' + value]) + def lowest_tuned_frequency_(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lowest Tuned Frequency =' + value]) @property def highest_tuned_frequency_(self) -> float: @@ -332,15 +261,11 @@ def highest_tuned_frequency_(self) -> float: "Highest tuned frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Highest Tuned Frequency ') - key_val_pair = [i for i in props if 'Highest Tuned Frequency =' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Highest Tuned Frequency ') return val @highest_tuned_frequency_.setter - def highest_tuned_frequency_(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Highest Tuned Frequency =' + value]) + def highest_tuned_frequency_(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Highest Tuned Frequency =' + value]) @property def percent_bandwidth(self) -> float: @@ -348,15 +273,11 @@ def percent_bandwidth(self) -> float: "Tunable filter 3-dB bandwidth." "Value should be between 0.001 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Percent Bandwidth') - key_val_pair = [i for i in props if 'Percent Bandwidth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Percent Bandwidth') return val @percent_bandwidth.setter - def percent_bandwidth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Percent Bandwidth=' + value]) + def percent_bandwidth(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Percent Bandwidth=' + value]) @property def shape_factor(self) -> float: @@ -364,25 +285,16 @@ def shape_factor(self) -> float: "Ratio defining the filter rolloff." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Shape Factor') - key_val_pair = [i for i in props if 'Shape Factor=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Shape Factor') return val @shape_factor.setter - def shape_factor(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Shape Factor=' + value]) + def shape_factor(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Shape Factor=' + value]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - key_val_pair = [i for i in props if 'Warnings=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Warnings') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py index 7feb8a2c5a5..4d7118a87b5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class FiveGChannelModel(GenericEmitNode): +from ..EmitNode import * + +class FiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -27,15 +31,33 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') return val @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def base_antenna(self) -> EmitNode: + """Base Antenna + "First antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Base Antenna') + return val + @base_antenna.setter + def base_antenna(self, value: EmitNode): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Base Antenna=' + value]) + + @property + def mobile_antenna(self) -> EmitNode: + """Mobile Antenna + "Second antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Mobile Antenna') + return val + @mobile_antenna.setter + def mobile_antenna(self, value: EmitNode): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mobile Antenna=' + value]) @property def enable_refinement(self) -> bool: @@ -43,15 +65,11 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - key_val_pair = [i for i in props if 'Enable Refinement=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Refinement') return val @enable_refinement.setter - def enable_refinement(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + def enable_refinement(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @property def adaptive_sampling(self) -> bool: @@ -59,49 +77,38 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Adaptive Sampling') return val @adaptive_sampling.setter - def adaptive_sampling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + def adaptive_sampling(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - key_val_pair = [i for i in props if 'Refinement Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Refinement Domain') return val @refinement_domain.setter def refinement_domain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + class EnvironmentOption(Enum): + URBANMICROCELL = "Urban Microcell" + URBANMACROCELL = "Urban Macrocell" + RURALMACROCELL = "Rural Macrocell" @property - def environment(self): + def environment(self) -> EnvironmentOption: """Environment "Specify the environment for the 5G channel model." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Environment') - key_val_pair = [i for i in props if 'Environment=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Environment') + val = self.EnvironmentOption[val] return val @environment.setter - def environment(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Environment=' + value]) - class EnvironmentOption(Enum): - URBANMICROCELL = "Urban Microcell" - URBANMACROCELL = "Urban Macrocell" - RURALMACROCELL = "Rural Macrocell" + def environment(self, value: EnvironmentOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Environment=' + value.value]) @property def los(self) -> bool: @@ -109,15 +116,11 @@ def los(self) -> bool: "True if the operating environment is line-of-sight." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'LOS') - key_val_pair = [i for i in props if 'LOS=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('LOS') return val @los.setter - def los(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['LOS=' + value]) + def los(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['LOS=' + value]) @property def include_bpl(self) -> bool: @@ -125,33 +128,26 @@ def include_bpl(self) -> bool: "Includes building penetration loss if true." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include BPL') - key_val_pair = [i for i in props if 'Include BPL=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include BPL') return val @include_bpl.setter - def include_bpl(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include BPL=' + value]) + def include_bpl(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include BPL=' + value]) + class NYUBPLModelOption(Enum): + LOWLOSSMODEL = "Low-loss model" + HIGHLOSSMODEL = "High-loss model" @property - def nyu_bpl_model(self): + def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model "Specify the NYU Building Penetration Loss model." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'NYU BPL Model') - key_val_pair = [i for i in props if 'NYU BPL Model=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('NYU BPL Model') + val = self.NYUBPLModelOption[val] return val @nyu_bpl_model.setter - def nyu_bpl_model(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['NYU BPL Model=' + value]) - class NYUBPLModelOption(Enum): - LOWLOSSMODEL = "Low-loss model" - HIGHLOSSMODEL = "High-loss model" + def nyu_bpl_model(self, value: NYUBPLModelOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['NYU BPL Model=' + value.value]) @property def custom_fading_margin(self) -> float: @@ -159,15 +155,11 @@ def custom_fading_margin(self) -> float: "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') - key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Fading Margin') return val @custom_fading_margin.setter - def custom_fading_margin(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + def custom_fading_margin(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) @property def polarization_mismatch(self) -> float: @@ -175,15 +167,11 @@ def polarization_mismatch(self) -> float: "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') - key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Mismatch') return val @polarization_mismatch.setter - def polarization_mismatch(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + def polarization_mismatch(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) @property def pointing_error_loss(self) -> float: @@ -191,35 +179,28 @@ def pointing_error_loss(self) -> float: "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') - key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pointing Error Loss') return val @pointing_error_loss.setter - def pointing_error_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + def pointing_error_loss(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + class FadingTypeOption(Enum): + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" @property - def fading_type(self): + def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') - key_val_pair = [i for i in props if 'Fading Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Fading Type') + val = self.FadingTypeOption[val] return val @fading_type.setter - def fading_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) - class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + def fading_type(self, value: FadingTypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) @property def fading_availability(self) -> float: @@ -227,15 +208,11 @@ def fading_availability(self) -> float: "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') - key_val_pair = [i for i in props if 'Fading Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Fading Availability') return val @fading_availability.setter - def fading_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + def fading_availability(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) @property def std_deviation(self) -> float: @@ -243,15 +220,11 @@ def std_deviation(self) -> float: "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') - key_val_pair = [i for i in props if 'Std Deviation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Std Deviation') return val @std_deviation.setter - def std_deviation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + def std_deviation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) @property def include_rain_attenuation(self) -> bool: @@ -259,15 +232,11 @@ def include_rain_attenuation(self) -> bool: "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') - key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Rain Attenuation') return val @include_rain_attenuation.setter - def include_rain_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + def include_rain_attenuation(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) @property def rain_availability(self) -> float: @@ -275,15 +244,11 @@ def rain_availability(self) -> float: "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') - key_val_pair = [i for i in props if 'Rain Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Availability') return val @rain_availability.setter - def rain_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + def rain_availability(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) @property def rain_rate(self) -> float: @@ -291,15 +256,11 @@ def rain_rate(self) -> float: "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') - key_val_pair = [i for i in props if 'Rain Rate=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Rate') return val @rain_rate.setter - def rain_rate(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + def rain_rate(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) @property def polarization_tilt_angle(self) -> float: @@ -307,15 +268,11 @@ def polarization_tilt_angle(self) -> float: "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') - key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Tilt Angle') return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + def polarization_tilt_angle(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) @property def include_atmospheric_absorption(self) -> bool: @@ -323,15 +280,11 @@ def include_atmospheric_absorption(self) -> bool: "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') - key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Atmospheric Absorption') return val @include_atmospheric_absorption.setter - def include_atmospheric_absorption(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + def include_atmospheric_absorption(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) @property def temperature(self) -> float: @@ -339,15 +292,11 @@ def temperature(self) -> float: "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') - key_val_pair = [i for i in props if 'Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Temperature') return val @temperature.setter - def temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) + def temperature(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) @property def total_air_pressure(self) -> float: @@ -355,15 +304,11 @@ def total_air_pressure(self) -> float: "Total air pressure." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') - key_val_pair = [i for i in props if 'Total Air Pressure=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Total Air Pressure') return val @total_air_pressure.setter - def total_air_pressure(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + def total_air_pressure(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) @property def water_vapor_concentration(self) -> float: @@ -371,13 +316,9 @@ def water_vapor_concentration(self) -> float: "Water vapor concentration." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') - key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Water Vapor Concentration') return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + def water_vapor_concentration(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py index 65d380b384d..792945f98d7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class HataCouplingNode(GenericEmitNode): +from ..EmitNode import * + +class HataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -27,15 +31,33 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') return val @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def base_antenna(self) -> EmitNode: + """Base Antenna + "First antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Base Antenna') + return val + @base_antenna.setter + def base_antenna(self, value: EmitNode): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Base Antenna=' + value]) + + @property + def mobile_antenna(self) -> EmitNode: + """Mobile Antenna + "Second antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Mobile Antenna') + return val + @mobile_antenna.setter + def mobile_antenna(self, value: EmitNode): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mobile Antenna=' + value]) @property def enable_refinement(self) -> bool: @@ -43,15 +65,11 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - key_val_pair = [i for i in props if 'Enable Refinement=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Refinement') return val @enable_refinement.setter - def enable_refinement(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + def enable_refinement(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @property def adaptive_sampling(self) -> bool: @@ -59,50 +77,39 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Adaptive Sampling') return val @adaptive_sampling.setter - def adaptive_sampling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + def adaptive_sampling(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - key_val_pair = [i for i in props if 'Refinement Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Refinement Domain') return val @refinement_domain.setter def refinement_domain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + class EnvironmentOption(Enum): + LARGECITY = "Large City" + SMALLMEDCITY = "Small/Medium City" + SUBURBAN = "Suburban" + RURAL = "Rural" @property - def environment(self): + def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Hata model." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Environment') - key_val_pair = [i for i in props if 'Environment=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Environment') + val = self.EnvironmentOption[val] return val @environment.setter - def environment(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Environment=' + value]) - class EnvironmentOption(Enum): - LARGECITY = "Large City" - SMALLMEDCITY = "Small/Medium City" - SUBURBAN = "Suburban" - RURAL = "Rural" + def environment(self, value: EnvironmentOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Environment=' + value.value]) @property def custom_fading_margin(self) -> float: @@ -110,15 +117,11 @@ def custom_fading_margin(self) -> float: "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') - key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Fading Margin') return val @custom_fading_margin.setter - def custom_fading_margin(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + def custom_fading_margin(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) @property def polarization_mismatch(self) -> float: @@ -126,15 +129,11 @@ def polarization_mismatch(self) -> float: "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') - key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Mismatch') return val @polarization_mismatch.setter - def polarization_mismatch(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + def polarization_mismatch(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) @property def pointing_error_loss(self) -> float: @@ -142,35 +141,28 @@ def pointing_error_loss(self) -> float: "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') - key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pointing Error Loss') return val @pointing_error_loss.setter - def pointing_error_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + def pointing_error_loss(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + class FadingTypeOption(Enum): + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" @property - def fading_type(self): + def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') - key_val_pair = [i for i in props if 'Fading Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Fading Type') + val = self.FadingTypeOption[val] return val @fading_type.setter - def fading_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) - class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + def fading_type(self, value: FadingTypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) @property def fading_availability(self) -> float: @@ -178,15 +170,11 @@ def fading_availability(self) -> float: "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') - key_val_pair = [i for i in props if 'Fading Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Fading Availability') return val @fading_availability.setter - def fading_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + def fading_availability(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) @property def std_deviation(self) -> float: @@ -194,15 +182,11 @@ def std_deviation(self) -> float: "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') - key_val_pair = [i for i in props if 'Std Deviation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Std Deviation') return val @std_deviation.setter - def std_deviation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + def std_deviation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) @property def include_rain_attenuation(self) -> bool: @@ -210,15 +194,11 @@ def include_rain_attenuation(self) -> bool: "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') - key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Rain Attenuation') return val @include_rain_attenuation.setter - def include_rain_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + def include_rain_attenuation(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) @property def rain_availability(self) -> float: @@ -226,15 +206,11 @@ def rain_availability(self) -> float: "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') - key_val_pair = [i for i in props if 'Rain Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Availability') return val @rain_availability.setter - def rain_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + def rain_availability(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) @property def rain_rate(self) -> float: @@ -242,15 +218,11 @@ def rain_rate(self) -> float: "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') - key_val_pair = [i for i in props if 'Rain Rate=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Rate') return val @rain_rate.setter - def rain_rate(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + def rain_rate(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) @property def polarization_tilt_angle(self) -> float: @@ -258,15 +230,11 @@ def polarization_tilt_angle(self) -> float: "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') - key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Tilt Angle') return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + def polarization_tilt_angle(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) @property def include_atmospheric_absorption(self) -> bool: @@ -274,15 +242,11 @@ def include_atmospheric_absorption(self) -> bool: "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') - key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Atmospheric Absorption') return val @include_atmospheric_absorption.setter - def include_atmospheric_absorption(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + def include_atmospheric_absorption(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) @property def temperature(self) -> float: @@ -290,15 +254,11 @@ def temperature(self) -> float: "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') - key_val_pair = [i for i in props if 'Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Temperature') return val @temperature.setter - def temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) + def temperature(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) @property def total_air_pressure(self) -> float: @@ -306,15 +266,11 @@ def total_air_pressure(self) -> float: "Total air pressure." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') - key_val_pair = [i for i in props if 'Total Air Pressure=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Total Air Pressure') return val @total_air_pressure.setter - def total_air_pressure(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + def total_air_pressure(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) @property def water_vapor_concentration(self) -> float: @@ -322,13 +278,9 @@ def water_vapor_concentration(self) -> float: "Water vapor concentration." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') - key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Water Vapor Concentration') return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + def water_vapor_concentration(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py index 71d97c1e96b..051917b919d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class IndoorPropagationCouplingNode(GenericEmitNode): +from ..EmitNode import * + +class IndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -21,21 +25,55 @@ def delete(self): """Delete this node""" self._delete() + @property + def table_data(self): + """ Table" + "Table consists of 3 columns." + "Frequency: + " Value should be between 1 and 1e+11." + "Power Loss Coefficient: + " Value should be between 0 and 100." + "Floor Penetration Loss (dB): + " Value should be between 0 and 1000." + """ + return self._get_table_data() + @table_data.setter + def table_data(self, value): + self._set_table_data(value) + @property def enabled(self) -> bool: """Enabled "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') return val @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def antenna_a(self) -> EmitNode: + """Antenna A + "First antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Antenna A') + return val + @antenna_a.setter + def antenna_a(self, value: EmitNode): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) + + @property + def antenna_b(self) -> EmitNode: + """Antenna B + "Second antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Antenna B') + return val + @antenna_b.setter + def antenna_b(self, value: EmitNode): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) @property def enable_refinement(self) -> bool: @@ -43,15 +81,11 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - key_val_pair = [i for i in props if 'Enable Refinement=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Refinement') return val @enable_refinement.setter - def enable_refinement(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + def enable_refinement(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @property def adaptive_sampling(self) -> bool: @@ -59,51 +93,40 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Adaptive Sampling') return val @adaptive_sampling.setter - def adaptive_sampling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + def adaptive_sampling(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - key_val_pair = [i for i in props if 'Refinement Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Refinement Domain') return val @refinement_domain.setter def refinement_domain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) - @property - def building_type(self): - """Building Type - "Specify the building type for the Indoor Propagation model." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Building Type') - key_val_pair = [i for i in props if 'Building Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @building_type.setter - def building_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Building Type=' + value]) class BuildingTypeOption(Enum): RESIDENTIALAPARTMENT = "Residential Apartment" RESIDENTIALHOUSE = "Residential House" OFFICEBUILDING = "Office Building" COMMERCIALBUILDING = "Commercial Building" CUSTOMBUILDING = "Custom Building" + @property + def building_type(self) -> BuildingTypeOption: + """Building Type + "Specify the building type for the Indoor Propagation model." + " """ + val = self._get_property('Building Type') + val = self.BuildingTypeOption[val] + return val + @building_type.setter + def building_type(self, value: BuildingTypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Building Type=' + value.value]) @property def number_of_floors(self) -> int: @@ -111,15 +134,11 @@ def number_of_floors(self) -> int: "The number of floors separating the antennas.." "Value should be between 1 and 3." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Floors') - key_val_pair = [i for i in props if 'Number of Floors=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Number of Floors') return val @number_of_floors.setter - def number_of_floors(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Number of Floors=' + value]) + def number_of_floors(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Number of Floors=' + value]) @property def custom_fading_margin(self) -> float: @@ -127,15 +146,11 @@ def custom_fading_margin(self) -> float: "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') - key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Fading Margin') return val @custom_fading_margin.setter - def custom_fading_margin(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + def custom_fading_margin(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) @property def polarization_mismatch(self) -> float: @@ -143,15 +158,11 @@ def polarization_mismatch(self) -> float: "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') - key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Mismatch') return val @polarization_mismatch.setter - def polarization_mismatch(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + def polarization_mismatch(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) @property def pointing_error_loss(self) -> float: @@ -159,35 +170,28 @@ def pointing_error_loss(self) -> float: "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') - key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pointing Error Loss') return val @pointing_error_loss.setter - def pointing_error_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + def pointing_error_loss(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + class FadingTypeOption(Enum): + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" @property - def fading_type(self): + def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') - key_val_pair = [i for i in props if 'Fading Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Fading Type') + val = self.FadingTypeOption[val] return val @fading_type.setter - def fading_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) - class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + def fading_type(self, value: FadingTypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) @property def fading_availability(self) -> float: @@ -195,15 +199,11 @@ def fading_availability(self) -> float: "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') - key_val_pair = [i for i in props if 'Fading Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Fading Availability') return val @fading_availability.setter - def fading_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + def fading_availability(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) @property def std_deviation(self) -> float: @@ -211,15 +211,11 @@ def std_deviation(self) -> float: "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') - key_val_pair = [i for i in props if 'Std Deviation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Std Deviation') return val @std_deviation.setter - def std_deviation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + def std_deviation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) @property def include_rain_attenuation(self) -> bool: @@ -227,15 +223,11 @@ def include_rain_attenuation(self) -> bool: "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') - key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Rain Attenuation') return val @include_rain_attenuation.setter - def include_rain_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + def include_rain_attenuation(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) @property def rain_availability(self) -> float: @@ -243,15 +235,11 @@ def rain_availability(self) -> float: "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') - key_val_pair = [i for i in props if 'Rain Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Availability') return val @rain_availability.setter - def rain_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + def rain_availability(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) @property def rain_rate(self) -> float: @@ -259,15 +247,11 @@ def rain_rate(self) -> float: "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') - key_val_pair = [i for i in props if 'Rain Rate=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Rate') return val @rain_rate.setter - def rain_rate(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + def rain_rate(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) @property def polarization_tilt_angle(self) -> float: @@ -275,15 +259,11 @@ def polarization_tilt_angle(self) -> float: "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') - key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Tilt Angle') return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + def polarization_tilt_angle(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) @property def include_atmospheric_absorption(self) -> bool: @@ -291,15 +271,11 @@ def include_atmospheric_absorption(self) -> bool: "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') - key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Atmospheric Absorption') return val @include_atmospheric_absorption.setter - def include_atmospheric_absorption(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + def include_atmospheric_absorption(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) @property def temperature(self) -> float: @@ -307,15 +283,11 @@ def temperature(self) -> float: "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') - key_val_pair = [i for i in props if 'Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Temperature') return val @temperature.setter - def temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) + def temperature(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) @property def total_air_pressure(self) -> float: @@ -323,15 +295,11 @@ def total_air_pressure(self) -> float: "Total air pressure." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') - key_val_pair = [i for i in props if 'Total Air Pressure=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Total Air Pressure') return val @total_air_pressure.setter - def total_air_pressure(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + def total_air_pressure(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) @property def water_vapor_concentration(self) -> float: @@ -339,13 +307,9 @@ def water_vapor_concentration(self) -> float: "Water vapor concentration." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') - key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Water Vapor Concentration') return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + def water_vapor_concentration(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index 311ccf12943..38c226a180c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class Isolator(GenericEmitNode): +from ..EmitNode import * + +class Isolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) def rename(self, new_name): """Rename this node""" @@ -22,15 +26,11 @@ def filename(self) -> str: "Name of file defining the outboard component." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - key_val_pair = [i for i in props if 'Filename=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Filename') return val @filename.setter - def filename(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + def filename(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @property def noise_temperature(self) -> float: @@ -38,66 +38,52 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - key_val_pair = [i for i in props if 'Noise Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Temperature') return val @noise_temperature.setter - def noise_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + def noise_temperature(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val @notes.setter - def notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + def notes(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + class TypeOption(Enum): + BYFILE = "By File" + PARAMETRIC = "Parametric" @property - def type(self): + def type(self) -> TypeOption: """Type "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - key_val_pair = [i for i in props if 'Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Type') + val = self.TypeOption[val] return val @type.setter - def type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) - class TypeOption(Enum): - BYFILE = "By File" - PARAMETRIC = "Parametric" + def type(self, value: TypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) + class Port1LocationOption(Enum): + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" @property - def port_1_location(self): + def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the isolator.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port 1 Location') - key_val_pair = [i for i in props if 'Port 1 Location=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Port 1 Location') + val = self.Port1LocationOption[val] return val @port_1_location.setter - def port_1_location(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Port 1 Location=' + value]) - class Port1LocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + def port_1_location(self, value: Port1LocationOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Port 1 Location=' + value.value]) @property def insertion_loss(self) -> float: @@ -105,15 +91,11 @@ def insertion_loss(self) -> float: "Isolator in-band loss in forward direction.." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') - key_val_pair = [i for i in props if 'Insertion Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Insertion Loss') return val @insertion_loss.setter - def insertion_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + def insertion_loss(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) @property def finite_reverse_isolation(self) -> bool: @@ -121,15 +103,11 @@ def finite_reverse_isolation(self) -> bool: "Use a finite reverse isolation. If disabled, the isolator model is ideal (infinite reverse isolation).." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Reverse Isolation') - key_val_pair = [i for i in props if 'Finite Reverse Isolation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Finite Reverse Isolation') return val @finite_reverse_isolation.setter - def finite_reverse_isolation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Reverse Isolation=' + value]) + def finite_reverse_isolation(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Finite Reverse Isolation=' + value]) @property def reverse_isolation(self) -> float: @@ -137,15 +115,11 @@ def reverse_isolation(self) -> float: "Isolator reverse isolation (i.e., loss in the reverse direction).." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reverse Isolation') - key_val_pair = [i for i in props if 'Reverse Isolation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Reverse Isolation') return val @reverse_isolation.setter - def reverse_isolation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) + def reverse_isolation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) @property def finite_bandwidth(self) -> bool: @@ -153,15 +127,11 @@ def finite_bandwidth(self) -> bool: "Use a finite bandwidth. If disabled, the isolator model is ideal (infinite bandwidth).." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Bandwidth') - key_val_pair = [i for i in props if 'Finite Bandwidth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Finite Bandwidth') return val @finite_bandwidth.setter - def finite_bandwidth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) + def finite_bandwidth(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) @property def out_of_band_attenuation(self) -> float: @@ -169,15 +139,11 @@ def out_of_band_attenuation(self) -> float: "Out-of-band loss (attenuation)." "Value should be between 0 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out-of-band Attenuation') - key_val_pair = [i for i in props if 'Out-of-band Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Out-of-band Attenuation') return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) + def out_of_band_attenuation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) @property def lower_stop_band(self) -> float: @@ -185,15 +151,11 @@ def lower_stop_band(self) -> float: "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') - key_val_pair = [i for i in props if 'Lower Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Stop Band') return val @lower_stop_band.setter - def lower_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + def lower_stop_band(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) @property def lower_cutoff(self) -> float: @@ -201,15 +163,11 @@ def lower_cutoff(self) -> float: "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') - key_val_pair = [i for i in props if 'Lower Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Cutoff') return val @lower_cutoff.setter - def lower_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + def lower_cutoff(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) @property def higher_cutoff(self) -> float: @@ -217,15 +175,11 @@ def higher_cutoff(self) -> float: "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') - key_val_pair = [i for i in props if 'Higher Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Cutoff') return val @higher_cutoff.setter - def higher_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + def higher_cutoff(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) @property def higher_stop_band(self) -> float: @@ -233,25 +187,16 @@ def higher_stop_band(self) -> float: "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') - key_val_pair = [i for i in props if 'Higher Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Stop Band') return val @higher_stop_band.setter - def higher_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + def higher_stop_band(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - key_val_pair = [i for i in props if 'Warnings=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Warnings') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py index bf97053bb47..cb15e0d2212 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class LogDistanceCouplingNode(GenericEmitNode): +from ..EmitNode import * + +class LogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -27,15 +31,33 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') return val @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def antenna_a(self) -> EmitNode: + """Antenna A + "First antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Antenna A') + return val + @antenna_a.setter + def antenna_a(self, value: EmitNode): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) + + @property + def antenna_b(self) -> EmitNode: + """Antenna B + "Second antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Antenna B') + return val + @antenna_b.setter + def antenna_b(self, value: EmitNode): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) @property def enable_refinement(self) -> bool: @@ -43,15 +65,11 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - key_val_pair = [i for i in props if 'Enable Refinement=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Refinement') return val @enable_refinement.setter - def enable_refinement(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + def enable_refinement(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @property def adaptive_sampling(self) -> bool: @@ -59,45 +77,23 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Adaptive Sampling') return val @adaptive_sampling.setter - def adaptive_sampling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + def adaptive_sampling(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - key_val_pair = [i for i in props if 'Refinement Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Refinement Domain') return val @refinement_domain.setter def refinement_domain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) - @property - def environment(self): - """Environment - "Specify the environment type for the Log Distance model." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Environment') - key_val_pair = [i for i in props if 'Environment=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @environment.setter - def environment(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Environment=' + value]) class EnvironmentOption(Enum): FREESPACE = "Free Space" URBAN = "Urban" @@ -106,6 +102,17 @@ class EnvironmentOption(Enum): BUILDINGOBSTRUCTED = "Building - Obstructed" FACTORYOBSTRUCTED = "Factory - Obstructed" CUSTOMEXPONENT = "Custom" + @property + def environment(self) -> EnvironmentOption: + """Environment + "Specify the environment type for the Log Distance model." + " """ + val = self._get_property('Environment') + val = self.EnvironmentOption[val] + return val + @environment.setter + def environment(self, value: EnvironmentOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Environment=' + value.value]) @property def path_loss_exponent(self) -> float: @@ -113,15 +120,11 @@ def path_loss_exponent(self) -> float: "Path Loss Exponent." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Path Loss Exponent') - key_val_pair = [i for i in props if 'Path Loss Exponent=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Path Loss Exponent') return val @path_loss_exponent.setter - def path_loss_exponent(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Path Loss Exponent=' + value]) + def path_loss_exponent(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Path Loss Exponent=' + value]) @property def custom_fading_margin(self) -> float: @@ -129,15 +132,11 @@ def custom_fading_margin(self) -> float: "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') - key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Fading Margin') return val @custom_fading_margin.setter - def custom_fading_margin(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + def custom_fading_margin(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) @property def polarization_mismatch(self) -> float: @@ -145,15 +144,11 @@ def polarization_mismatch(self) -> float: "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') - key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Mismatch') return val @polarization_mismatch.setter - def polarization_mismatch(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + def polarization_mismatch(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) @property def pointing_error_loss(self) -> float: @@ -161,35 +156,28 @@ def pointing_error_loss(self) -> float: "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') - key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pointing Error Loss') return val @pointing_error_loss.setter - def pointing_error_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + def pointing_error_loss(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + class FadingTypeOption(Enum): + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" @property - def fading_type(self): + def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') - key_val_pair = [i for i in props if 'Fading Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Fading Type') + val = self.FadingTypeOption[val] return val @fading_type.setter - def fading_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) - class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + def fading_type(self, value: FadingTypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) @property def fading_availability(self) -> float: @@ -197,15 +185,11 @@ def fading_availability(self) -> float: "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') - key_val_pair = [i for i in props if 'Fading Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Fading Availability') return val @fading_availability.setter - def fading_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + def fading_availability(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) @property def std_deviation(self) -> float: @@ -213,15 +197,11 @@ def std_deviation(self) -> float: "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') - key_val_pair = [i for i in props if 'Std Deviation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Std Deviation') return val @std_deviation.setter - def std_deviation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + def std_deviation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) @property def include_rain_attenuation(self) -> bool: @@ -229,15 +209,11 @@ def include_rain_attenuation(self) -> bool: "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') - key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Rain Attenuation') return val @include_rain_attenuation.setter - def include_rain_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + def include_rain_attenuation(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) @property def rain_availability(self) -> float: @@ -245,15 +221,11 @@ def rain_availability(self) -> float: "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') - key_val_pair = [i for i in props if 'Rain Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Availability') return val @rain_availability.setter - def rain_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + def rain_availability(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) @property def rain_rate(self) -> float: @@ -261,15 +233,11 @@ def rain_rate(self) -> float: "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') - key_val_pair = [i for i in props if 'Rain Rate=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Rate') return val @rain_rate.setter - def rain_rate(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + def rain_rate(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) @property def polarization_tilt_angle(self) -> float: @@ -277,15 +245,11 @@ def polarization_tilt_angle(self) -> float: "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') - key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Tilt Angle') return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + def polarization_tilt_angle(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) @property def include_atmospheric_absorption(self) -> bool: @@ -293,15 +257,11 @@ def include_atmospheric_absorption(self) -> bool: "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') - key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Atmospheric Absorption') return val @include_atmospheric_absorption.setter - def include_atmospheric_absorption(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + def include_atmospheric_absorption(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) @property def temperature(self) -> float: @@ -309,15 +269,11 @@ def temperature(self) -> float: "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') - key_val_pair = [i for i in props if 'Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Temperature') return val @temperature.setter - def temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) + def temperature(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) @property def total_air_pressure(self) -> float: @@ -325,15 +281,11 @@ def total_air_pressure(self) -> float: "Total air pressure." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') - key_val_pair = [i for i in props if 'Total Air Pressure=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Total Air Pressure') return val @total_air_pressure.setter - def total_air_pressure(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + def total_air_pressure(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) @property def water_vapor_concentration(self) -> float: @@ -341,13 +293,9 @@ def water_vapor_concentration(self) -> float: "Water vapor concentration." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') - key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Water Vapor Concentration') return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + def water_vapor_concentration(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py index 6d797845e28..0b9c0daf5d4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class MPlexBandTraceNode(GenericEmitNode): +from ..EmitNode import * + +class MPlexBandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -21,36 +25,29 @@ def delete(self): """Delete this node""" self._delete() + class PowerDirectionOption(Enum): + INCOMMONPORTOUTCOMMONPORT = "Into Common Port|Out of Common Port" @property - def power_direction(self): + def power_direction(self) -> PowerDirectionOption: """Power Direction " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Power Direction') - key_val_pair = [i for i in props if 'Power Direction=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Power Direction') + val = self.PowerDirectionOption[val] return val @power_direction.setter - def power_direction(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Power Direction=' + value]) - class PowerDirectionOption(Enum): - INCOMMONPORTOUTCOMMONPORT = "Into Common Port|Out of Common Port" + def power_direction(self, value: PowerDirectionOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Power Direction=' + value.value]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - key_val_pair = [i for i in props if 'Data Source=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Data Source') return val @data_source.setter def data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @property def visible(self) -> bool: @@ -58,15 +55,11 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - key_val_pair = [i for i in props if 'Visible=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Visible') return val @visible.setter - def visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + def visible(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -74,45 +67,23 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - key_val_pair = [i for i in props if 'Custom Legend=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Legend') return val @custom_legend.setter - def custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + def custom_legend(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - key_val_pair = [i for i in props if 'Name=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Name') return val @name.setter - def name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + def name(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) - @property - def style(self): - """Style - "Specify line style of plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - key_val_pair = [i for i in props if 'Style=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @style.setter - def style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) class StyleOption(Enum): LINES = "Lines" DOTTED = "Dotted" @@ -120,6 +91,17 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property + def style(self) -> StyleOption: + """Style + "Specify line style of plot trace." + " """ + val = self._get_property('Style') + val = self.StyleOption[val] + return val + @style.setter + def style(self, value: StyleOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -127,15 +109,11 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - key_val_pair = [i for i in props if 'Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Width') return val @line_width.setter - def line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + def line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -143,30 +121,12 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - key_val_pair = [i for i in props if 'Line Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Color') return val @line_color.setter def line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) - @property - def symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - key_val_pair = [i for i in props if 'Symbol=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @symbol.setter - def symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" ELLIPSE = "Ellipse" @@ -183,6 +143,17 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property + def symbol(self) -> SymbolOption: + """Symbol + "Select symbol to mark points along plot trace." + " """ + val = self._get_property('Symbol') + val = self.SymbolOption[val] + return val + @symbol.setter + def symbol(self, value: SymbolOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -190,15 +161,11 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - key_val_pair = [i for i in props if 'Symbol Size=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Size') return val @symbol_size.setter - def symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + def symbol_size(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -206,15 +173,11 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - key_val_pair = [i for i in props if 'Symbol Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Color') return val @symbol_color.setter def symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -222,15 +185,11 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - key_val_pair = [i for i in props if 'Symbol Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Line Width') return val @symbol_line_width.setter - def symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + def symbol_line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -238,13 +197,9 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - key_val_pair = [i for i in props if 'Symbol Filled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Filled') return val @symbol_filled.setter - def symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + def symbol_filled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index bf3e68f73e6..b6245833187 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class Multiplexer(GenericEmitNode): +from ..EmitNode import * + +class Multiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) def add_multiplexer_pass_band(self): """Add a New Multiplexer Band to this Multiplexer""" @@ -26,15 +30,11 @@ def filename(self) -> str: "Name of file defining the multiplexer." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - key_val_pair = [i for i in props if 'Filename=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Filename') return val @filename.setter - def filename(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + def filename(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @property def noise_temperature(self) -> float: @@ -42,66 +42,52 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - key_val_pair = [i for i in props if 'Noise Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Temperature') return val @noise_temperature.setter - def noise_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + def noise_temperature(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val @notes.setter - def notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + def notes(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + class TypeOption(Enum): + PARAMETRIC = "By Pass Band" + BYFILE = "By File" @property - def type(self): + def type(self) -> TypeOption: """Type "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - key_val_pair = [i for i in props if 'Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Type') + val = self.TypeOption[val] return val @type.setter - def type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) - class TypeOption(Enum): - PARAMETRIC = "By Pass Band" - BYFILE = "By File" + def type(self, value: TypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) + class Port1LocationOption(Enum): + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" @property - def port_1_location(self): + def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the multiplexer.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port 1 Location') - key_val_pair = [i for i in props if 'Port 1 Location=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Port 1 Location') + val = self.Port1LocationOption[val] return val @port_1_location.setter - def port_1_location(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Port 1 Location=' + value]) - class Port1LocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + def port_1_location(self, value: Port1LocationOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Port 1 Location=' + value.value]) @property def flip_ports_vertically(self) -> bool: @@ -109,25 +95,28 @@ def flip_ports_vertically(self) -> bool: "Reverses the port order on the multi-port side of the multiplexer.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Flip Ports Vertically') - key_val_pair = [i for i in props if 'Flip Ports Vertically=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Flip Ports Vertically') return val @flip_ports_vertically.setter - def flip_ports_vertically(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Flip Ports Vertically=' + value]) + def flip_ports_vertically(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Flip Ports Vertically=' + value]) + + @property + def ports(self): + """Ports + "Assigns the child port nodes to the multiplexers ports." + "A list of values." + " """ + val = self._get_property('Ports') + return val + @ports.setter + def ports(self, value): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Ports=' + value]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - key_val_pair = [i for i in props if 'Warnings=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Warnings') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py index 2a98d6e2ec8..ecf54af7714 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class MultiplexerBand(GenericEmitNode): +from ..EmitNode import * + +class MultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -21,25 +25,22 @@ def delete(self): """Delete this node""" self._delete() + class TypeOption(Enum): + BYFILE = "By File" + LOWPASS = "Low Pass" + HIGHPASS = "High Pass" + BANDPASS = "Band Pass" @property - def type(self): + def type(self) -> TypeOption: """Type "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - key_val_pair = [i for i in props if 'Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Type') + val = self.TypeOption[val] return val @type.setter - def type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) - class TypeOption(Enum): - BYFILE = "By File" - LOWPASS = "Low Pass" - HIGHPASS = "High Pass" - BANDPASS = "Band Pass" + def type(self, value: TypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) @property def filename(self) -> str: @@ -47,15 +48,11 @@ def filename(self) -> str: "Name of file defining the multiplexer band." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - key_val_pair = [i for i in props if 'Filename=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Filename') return val @filename.setter - def filename(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + def filename(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @property def insertion_loss(self) -> float: @@ -63,15 +60,11 @@ def insertion_loss(self) -> float: "Multiplexer pass band insertion loss." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') - key_val_pair = [i for i in props if 'Insertion Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Insertion Loss') return val @insertion_loss.setter - def insertion_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + def insertion_loss(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) @property def stop_band_attenuation(self) -> float: @@ -79,15 +72,11 @@ def stop_band_attenuation(self) -> float: "Stop-band loss (attenuation)." "Value should be between 0 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop band Attenuation') - key_val_pair = [i for i in props if 'Stop band Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Stop band Attenuation') return val @stop_band_attenuation.setter - def stop_band_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Stop band Attenuation=' + value]) + def stop_band_attenuation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Stop band Attenuation=' + value]) @property def max_pass_band(self) -> float: @@ -95,15 +84,11 @@ def max_pass_band(self) -> float: "Maximum pass band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Pass Band') - key_val_pair = [i for i in props if 'Max Pass Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Pass Band') return val @max_pass_band.setter - def max_pass_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Pass Band=' + value]) + def max_pass_band(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Pass Band=' + value]) @property def min_stop_band(self) -> float: @@ -111,15 +96,11 @@ def min_stop_band(self) -> float: "Minimum stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Stop Band') - key_val_pair = [i for i in props if 'Min Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Min Stop Band') return val @min_stop_band.setter - def min_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Min Stop Band=' + value]) + def min_stop_band(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Min Stop Band=' + value]) @property def max_stop_band(self) -> float: @@ -127,15 +108,11 @@ def max_stop_band(self) -> float: "Maximum stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Stop Band') - key_val_pair = [i for i in props if 'Max Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Stop Band') return val @max_stop_band.setter - def max_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Stop Band=' + value]) + def max_stop_band(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Stop Band=' + value]) @property def min_pass_band(self) -> float: @@ -143,15 +120,11 @@ def min_pass_band(self) -> float: "Minimum pass band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Pass Band') - key_val_pair = [i for i in props if 'Min Pass Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Min Pass Band') return val @min_pass_band.setter - def min_pass_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Min Pass Band=' + value]) + def min_pass_band(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Min Pass Band=' + value]) @property def lower_stop_band(self) -> float: @@ -159,15 +132,11 @@ def lower_stop_band(self) -> float: "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') - key_val_pair = [i for i in props if 'Lower Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Stop Band') return val @lower_stop_band.setter - def lower_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + def lower_stop_band(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) @property def lower_cutoff(self) -> float: @@ -175,15 +144,11 @@ def lower_cutoff(self) -> float: "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') - key_val_pair = [i for i in props if 'Lower Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Cutoff') return val @lower_cutoff.setter - def lower_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + def lower_cutoff(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) @property def higher_cutoff(self) -> float: @@ -191,15 +156,11 @@ def higher_cutoff(self) -> float: "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') - key_val_pair = [i for i in props if 'Higher Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Cutoff') return val @higher_cutoff.setter - def higher_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + def higher_cutoff(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) @property def higher_stop_band(self) -> float: @@ -207,25 +168,16 @@ def higher_stop_band(self) -> float: "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') - key_val_pair = [i for i in props if 'Higher Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Stop Band') return val @higher_stop_band.setter - def higher_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + def higher_stop_band(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - key_val_pair = [i for i in props if 'Warnings=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Warnings') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py index 51a91b84fb9..d2609323aef 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class OutboardTraceNode(GenericEmitNode): +from ..EmitNode import * + +class OutboardTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -27,15 +31,11 @@ def input_port(self) -> int: "Specifies input port for the plotted outboard component." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Input Port') - key_val_pair = [i for i in props if 'Input Port=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Input Port') return val @input_port.setter - def input_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Input Port=' + value]) + def input_port(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) @property def output_port(self) -> int: @@ -43,30 +43,22 @@ def output_port(self) -> int: "Specifies output port for the plotted outboard component." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Port') - key_val_pair = [i for i in props if 'Output Port=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Output Port') return val @output_port.setter - def output_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Port=' + value]) + def output_port(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - key_val_pair = [i for i in props if 'Data Source=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Data Source') return val @data_source.setter def data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @property def visible(self) -> bool: @@ -74,15 +66,11 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - key_val_pair = [i for i in props if 'Visible=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Visible') return val @visible.setter - def visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + def visible(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -90,45 +78,23 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - key_val_pair = [i for i in props if 'Custom Legend=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Legend') return val @custom_legend.setter - def custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + def custom_legend(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - key_val_pair = [i for i in props if 'Name=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Name') return val @name.setter - def name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + def name(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) - @property - def style(self): - """Style - "Specify line style of plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - key_val_pair = [i for i in props if 'Style=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @style.setter - def style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) class StyleOption(Enum): LINES = "Lines" DOTTED = "Dotted" @@ -136,6 +102,17 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property + def style(self) -> StyleOption: + """Style + "Specify line style of plot trace." + " """ + val = self._get_property('Style') + val = self.StyleOption[val] + return val + @style.setter + def style(self, value: StyleOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -143,15 +120,11 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - key_val_pair = [i for i in props if 'Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Width') return val @line_width.setter - def line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + def line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -159,30 +132,12 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - key_val_pair = [i for i in props if 'Line Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Color') return val @line_color.setter def line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) - @property - def symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - key_val_pair = [i for i in props if 'Symbol=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @symbol.setter - def symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" ELLIPSE = "Ellipse" @@ -199,6 +154,17 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property + def symbol(self) -> SymbolOption: + """Symbol + "Select symbol to mark points along plot trace." + " """ + val = self._get_property('Symbol') + val = self.SymbolOption[val] + return val + @symbol.setter + def symbol(self, value: SymbolOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -206,15 +172,11 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - key_val_pair = [i for i in props if 'Symbol Size=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Size') return val @symbol_size.setter - def symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + def symbol_size(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -222,15 +184,11 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - key_val_pair = [i for i in props if 'Symbol Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Color') return val @symbol_color.setter def symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -238,15 +196,11 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - key_val_pair = [i for i in props if 'Symbol Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Line Width') return val @symbol_line_width.setter - def symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + def symbol_line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -254,13 +208,9 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - key_val_pair = [i for i in props if 'Symbol Filled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Filled') return val @symbol_filled.setter - def symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + def symbol_filled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py index 10bbbc1cee9..558afef4db9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ParametricCouplingTraceNode(GenericEmitNode): +from ..EmitNode import * + +class ParametricCouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -21,20 +25,36 @@ def delete(self): """Delete this node""" self._delete() + @property + def antenna_a(self) -> EmitNode: + """Antenna A + " """ + val = self._get_property('Antenna A') + return val + @antenna_a.setter + def antenna_a(self, value: EmitNode): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) + + @property + def antenna_b(self) -> EmitNode: + """Antenna B + " """ + val = self._get_property('Antenna B') + return val + @antenna_b.setter + def antenna_b(self, value: EmitNode): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) + @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - key_val_pair = [i for i in props if 'Data Source=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Data Source') return val @data_source.setter def data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @property def visible(self) -> bool: @@ -42,15 +62,11 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - key_val_pair = [i for i in props if 'Visible=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Visible') return val @visible.setter - def visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + def visible(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -58,45 +74,23 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - key_val_pair = [i for i in props if 'Custom Legend=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Legend') return val @custom_legend.setter - def custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + def custom_legend(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - key_val_pair = [i for i in props if 'Name=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Name') return val @name.setter - def name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + def name(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) - @property - def style(self): - """Style - "Specify line style of plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - key_val_pair = [i for i in props if 'Style=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @style.setter - def style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) class StyleOption(Enum): LINES = "Lines" DOTTED = "Dotted" @@ -104,6 +98,17 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property + def style(self) -> StyleOption: + """Style + "Specify line style of plot trace." + " """ + val = self._get_property('Style') + val = self.StyleOption[val] + return val + @style.setter + def style(self, value: StyleOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -111,15 +116,11 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - key_val_pair = [i for i in props if 'Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Width') return val @line_width.setter - def line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + def line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -127,30 +128,12 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - key_val_pair = [i for i in props if 'Line Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Color') return val @line_color.setter def line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) - @property - def symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - key_val_pair = [i for i in props if 'Symbol=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @symbol.setter - def symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" ELLIPSE = "Ellipse" @@ -167,6 +150,17 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property + def symbol(self) -> SymbolOption: + """Symbol + "Select symbol to mark points along plot trace." + " """ + val = self._get_property('Symbol') + val = self.SymbolOption[val] + return val + @symbol.setter + def symbol(self, value: SymbolOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -174,15 +168,11 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - key_val_pair = [i for i in props if 'Symbol Size=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Size') return val @symbol_size.setter - def symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + def symbol_size(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -190,15 +180,11 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - key_val_pair = [i for i in props if 'Symbol Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Color') return val @symbol_color.setter def symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -206,15 +192,11 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - key_val_pair = [i for i in props if 'Symbol Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Line Width') return val @symbol_line_width.setter - def symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + def symbol_line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -222,13 +204,9 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - key_val_pair = [i for i in props if 'Symbol Filled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Filled') return val @symbol_filled.setter - def symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + def symbol_filled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py index 22c94aee9b8..3b52b022b25 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class PlotMarkerNode(GenericEmitNode): +from ..EmitNode import * + +class PlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -27,15 +31,11 @@ def visible(self) -> bool: "Toggle (on/off) this marker." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - key_val_pair = [i for i in props if 'Visible=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Visible') return val @visible.setter - def visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + def visible(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def attached(self) -> bool: @@ -43,45 +43,33 @@ def attached(self) -> bool: "Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False)." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Attached') - key_val_pair = [i for i in props if 'Attached=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Attached') return val @attached.setter - def attached(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Attached=' + value]) + def attached(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Attached=' + value]) @property def position(self) -> float: """Position "Set position of the marker along the X-axis." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') - key_val_pair = [i for i in props if 'Position=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Position') return val @position.setter - def position(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position=' + value]) + def position(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) @property def position(self) -> float: """Position "Set position of the marker along the Y-axis." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') - key_val_pair = [i for i in props if 'Position=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Position') return val @position.setter - def position(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position=' + value]) + def position(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) @property def floating_label(self) -> bool: @@ -89,15 +77,11 @@ def floating_label(self) -> bool: "Allow marker label to be positioned at a fixed point on the plot window (the marker symbol remains fixed to the specified X-Y point)." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Floating Label') - key_val_pair = [i for i in props if 'Floating Label=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Floating Label') return val @floating_label.setter - def floating_label(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Floating Label=' + value]) + def floating_label(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Floating Label=' + value]) @property def position_from_left(self) -> float: @@ -105,15 +89,11 @@ def position_from_left(self) -> float: "Set position of label from left to right as a percentage of the width of the plot window." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position from Left') - key_val_pair = [i for i in props if 'Position from Left=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Position from Left') return val @position_from_left.setter - def position_from_left(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position from Left=' + value]) + def position_from_left(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position from Left=' + value]) @property def position_from_top(self) -> float: @@ -121,87 +101,70 @@ def position_from_top(self) -> float: "Set position of label from top to bottom as a percentage of the height of the plot window." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position from Top') - key_val_pair = [i for i in props if 'Position from Top=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Position from Top') return val @position_from_top.setter - def position_from_top(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position from Top=' + value]) + def position_from_top(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position from Top=' + value]) @property def text(self) -> str: """Text "Set the text of the label." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Text') - key_val_pair = [i for i in props if 'Text=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Text') return val @text.setter - def text(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Text=' + value]) + def text(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Text=' + value]) + class HorizontalPositionOption(Enum): + LEFT = "Left" + RIGHT = "Right" + CENTER = "Center" @property - def horizontal_position(self): + def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position "Specify horizontal position of the label as compared to the symbol." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Horizontal Position') - key_val_pair = [i for i in props if 'Horizontal Position=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Horizontal Position') + val = self.HorizontalPositionOption[val] return val @horizontal_position.setter - def horizontal_position(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Horizontal Position=' + value]) - class HorizontalPositionOption(Enum): - LEFT = "Left" - RIGHT = "Right" - CENTER = "Center" + def horizontal_position(self, value: HorizontalPositionOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Horizontal Position=' + value.value]) + class VerticalPositionOption(Enum): + TOP = "Top" + BOTTOM = "Bottom" + CENTER = "Center" @property - def vertical_position(self): + def vertical_position(self) -> VerticalPositionOption: """Vertical Position "Specify vertical position of the label as compared to the symbol." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Vertical Position') - key_val_pair = [i for i in props if 'Vertical Position=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Vertical Position') + val = self.VerticalPositionOption[val] return val @vertical_position.setter - def vertical_position(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Vertical Position=' + value]) - class VerticalPositionOption(Enum): - TOP = "Top" - BOTTOM = "Bottom" - CENTER = "Center" + def vertical_position(self, value: VerticalPositionOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Position=' + value.value]) + class TextAlignmentOption(Enum): + LEFT = "Left" + RIGHT = "Right" + CENTER = "Center" @property - def text_alignment(self): + def text_alignment(self) -> TextAlignmentOption: """Text Alignment "Specify justification applied to multi-line text." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Text Alignment') - key_val_pair = [i for i in props if 'Text Alignment=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Text Alignment') + val = self.TextAlignmentOption[val] return val @text_alignment.setter - def text_alignment(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Text Alignment=' + value]) - class TextAlignmentOption(Enum): - LEFT = "Left" - RIGHT = "Right" - CENTER = "Center" + def text_alignment(self, value: TextAlignmentOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Text Alignment=' + value.value]) @property def font(self): @@ -209,15 +172,11 @@ def font(self): "Specify font used for the label." "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Font') - key_val_pair = [i for i in props if 'Font=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Font') return val @font.setter def font(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Font=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Font=' + value]) @property def color(self): @@ -225,15 +184,11 @@ def color(self): "Specify color of the label text." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Color') - key_val_pair = [i for i in props if 'Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Color') return val @color.setter def color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) @property def background_color(self): @@ -241,15 +196,11 @@ def background_color(self): "Set color of the label text background." "Color should be in RGBA form: #AARRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Background Color') - key_val_pair = [i for i in props if 'Background Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Background Color') return val @background_color.setter def background_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Background Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) @property def border(self) -> bool: @@ -257,15 +208,11 @@ def border(self) -> bool: "Display a border around the label text." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border') - key_val_pair = [i for i in props if 'Border=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Border') return val @border.setter - def border(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border=' + value]) + def border(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border=' + value]) @property def border_width(self) -> int: @@ -273,15 +220,11 @@ def border_width(self) -> int: "Set the width of the border around the label text." "Value should be between 1 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border Width') - key_val_pair = [i for i in props if 'Border Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Border Width') return val @border_width.setter - def border_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border Width=' + value]) + def border_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border Width=' + value]) @property def border_color(self): @@ -289,30 +232,12 @@ def border_color(self): "Set color of the border around the label text." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Border Color') - key_val_pair = [i for i in props if 'Border Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Border Color') return val @border_color.setter def border_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Border Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border Color=' + value]) - @property - def symbol(self): - """Symbol - "Specify symbol displayed next to the label." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - key_val_pair = [i for i in props if 'Symbol=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @symbol.setter - def symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" ELLIPSE = "Ellipse" @@ -330,6 +255,17 @@ class SymbolOption(Enum): STAR2 = "Star2" HEXAGON = "Hexagon" ARROW = "Arrow" + @property + def symbol(self) -> SymbolOption: + """Symbol + "Specify symbol displayed next to the label." + " """ + val = self._get_property('Symbol') + val = self.SymbolOption[val] + return val + @symbol.setter + def symbol(self, value: SymbolOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def arrow_direction(self) -> int: @@ -337,15 +273,11 @@ def arrow_direction(self) -> int: "Set direction of the arrow; zero degrees is up." "Value should be between -360 and 360." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Arrow Direction') - key_val_pair = [i for i in props if 'Arrow Direction=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Arrow Direction') return val @arrow_direction.setter - def arrow_direction(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Arrow Direction=' + value]) + def arrow_direction(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Arrow Direction=' + value]) @property def symbol_size(self) -> int: @@ -353,15 +285,11 @@ def symbol_size(self) -> int: "Set size of the symbol used for this marker." "Value should be between 1 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - key_val_pair = [i for i in props if 'Symbol Size=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Size') return val @symbol_size.setter - def symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + def symbol_size(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -369,15 +297,11 @@ def symbol_color(self): "Set color of the symbol used for this marker." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - key_val_pair = [i for i in props if 'Symbol Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Color') return val @symbol_color.setter def symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def line_width(self) -> int: @@ -385,15 +309,11 @@ def line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - key_val_pair = [i for i in props if 'Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Width') return val @line_width.setter - def line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + def line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def filled(self) -> bool: @@ -401,13 +321,9 @@ def filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filled') - key_val_pair = [i for i in props if 'Filled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Filled') return val @filled.setter - def filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filled=' + value]) + def filled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py index 5feff0b131e..5793408e1bb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class PlotNode(GenericEmitNode): +from ..EmitNode import * + +class PlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) def add_marker(self): """Add an icon and/or label to this plot""" @@ -29,15 +33,11 @@ def title(self) -> str: """Title "Enter title at the top of the plot, room will be made for it." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Title') - key_val_pair = [i for i in props if 'Title=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Title') return val @title.setter - def title(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Title=' + value]) + def title(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Title=' + value]) @property def title_font(self): @@ -45,15 +45,11 @@ def title_font(self): "Configure title font family, typeface, and size." "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Title Font') - key_val_pair = [i for i in props if 'Title Font=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Title Font') return val @title_font.setter def title_font(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Title Font=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Title Font=' + value]) @property def show_legend(self) -> bool: @@ -61,15 +57,11 @@ def show_legend(self) -> bool: "Toggle (on/off) display of plot legend." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Legend') - key_val_pair = [i for i in props if 'Show Legend=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Show Legend') return val @show_legend.setter - def show_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Legend=' + value]) + def show_legend(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Legend=' + value]) @property def legend_font(self): @@ -77,15 +69,11 @@ def legend_font(self): "Configure legend font family, typeface, and size." "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Legend Font') - key_val_pair = [i for i in props if 'Legend Font=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Legend Font') return val @legend_font.setter def legend_font(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Legend Font=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Legend Font=' + value]) @property def display_cad_overlay(self) -> bool: @@ -93,15 +81,11 @@ def display_cad_overlay(self) -> bool: "Toggle on/off overlay of CAD model in plot." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Display CAD Overlay') - key_val_pair = [i for i in props if 'Display CAD Overlay=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Display CAD Overlay') return val @display_cad_overlay.setter - def display_cad_overlay(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Display CAD Overlay=' + value]) + def display_cad_overlay(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Display CAD Overlay=' + value]) @property def opacity(self) -> float: @@ -109,30 +93,22 @@ def opacity(self) -> float: "Adjust opacity of CAD model overlay: 0 Transparent - 1 Opaque." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Opacity') - key_val_pair = [i for i in props if 'Opacity=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Opacity') return val @opacity.setter - def opacity(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Opacity=' + value]) + def opacity(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Opacity=' + value]) @property def vertical_offset(self) -> float: """Vertical Offset "Adjust vertical position of CAD model overlay." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Vertical Offset') - key_val_pair = [i for i in props if 'Vertical Offset=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Vertical Offset') return val @vertical_offset.setter - def vertical_offset(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Vertical Offset=' + value]) + def vertical_offset(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Offset=' + value]) @property def range_axis_rotation(self) -> float: @@ -140,15 +116,11 @@ def range_axis_rotation(self) -> float: "Adjust view angle for CAD model overlay by rotating it about plot horizontal axis." "Value should be between -180 and 180." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Range Axis Rotation') - key_val_pair = [i for i in props if 'Range Axis Rotation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Range Axis Rotation') return val @range_axis_rotation.setter - def range_axis_rotation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Range Axis Rotation=' + value]) + def range_axis_rotation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Range Axis Rotation=' + value]) @property def lock_axes(self) -> bool: @@ -156,75 +128,55 @@ def lock_axes(self) -> bool: "Allow or prevent changing of axes when displayed plot traces are updated." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lock Axes') - key_val_pair = [i for i in props if 'Lock Axes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lock Axes') return val @lock_axes.setter - def lock_axes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lock Axes=' + value]) + def lock_axes(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lock Axes=' + value]) @property def x_axis_min(self) -> float: """X-axis Min "Set lower extent of horizontal axis." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X-axis Min') - key_val_pair = [i for i in props if 'X-axis Min=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('X-axis Min') return val @x_axis_min.setter - def x_axis_min(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['X-axis Min=' + value]) + def x_axis_min(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['X-axis Min=' + value]) @property def x_axis_max(self) -> float: """X-axis Max "Set upper extent of horizontal axis." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X-axis Max') - key_val_pair = [i for i in props if 'X-axis Max=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('X-axis Max') return val @x_axis_max.setter - def x_axis_max(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['X-axis Max=' + value]) + def x_axis_max(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['X-axis Max=' + value]) @property def y_axis_min(self) -> float: """Y-axis Min "Set lower extent of vertical axis." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y-axis Min') - key_val_pair = [i for i in props if 'Y-axis Min=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Y-axis Min') return val @y_axis_min.setter - def y_axis_min(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y-axis Min=' + value]) + def y_axis_min(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Min=' + value]) @property def y_axis_max(self) -> float: """Y-axis Max "Set upper extent of vertical axis." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y-axis Max') - key_val_pair = [i for i in props if 'Y-axis Max=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Y-axis Max') return val @y_axis_max.setter - def y_axis_max(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y-axis Max=' + value]) + def y_axis_max(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Max=' + value]) @property def y_axis_range(self) -> float: @@ -232,15 +184,11 @@ def y_axis_range(self) -> float: "Adjust dB span of vertical axis, makes corresponding adjustment in Y-axis Min." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y-axis Range') - key_val_pair = [i for i in props if 'Y-axis Range=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Y-axis Range') return val @y_axis_range.setter - def y_axis_range(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y-axis Range=' + value]) + def y_axis_range(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Range=' + value]) @property def max_major_ticks(self) -> int: @@ -248,15 +196,11 @@ def max_major_ticks(self) -> int: "Set maximum number of major tick-mark intervals along horizontal axis." "Value should be between 1 and 30." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Major Ticks') - key_val_pair = [i for i in props if 'Max Major Ticks=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Major Ticks') return val @max_major_ticks.setter - def max_major_ticks(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) + def max_major_ticks(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) @property def max_minor_ticks(self) -> int: @@ -264,15 +208,11 @@ def max_minor_ticks(self) -> int: "Set maximum number of minor tick-mark intervals between major ticks along horizontal axis." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Minor Ticks') - key_val_pair = [i for i in props if 'Max Minor Ticks=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Minor Ticks') return val @max_minor_ticks.setter - def max_minor_ticks(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) + def max_minor_ticks(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) @property def max_major_ticks(self) -> int: @@ -280,15 +220,11 @@ def max_major_ticks(self) -> int: "Set maximum number of major tick-mark intervals along vertical axis." "Value should be between 1 and 30." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Major Ticks') - key_val_pair = [i for i in props if 'Max Major Ticks=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Major Ticks') return val @max_major_ticks.setter - def max_major_ticks(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) + def max_major_ticks(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) @property def max_minor_ticks(self) -> int: @@ -296,15 +232,11 @@ def max_minor_ticks(self) -> int: "Set maximum number of minor tick-mark intervals between major ticks along vertical axis." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Minor Ticks') - key_val_pair = [i for i in props if 'Max Minor Ticks=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Minor Ticks') return val @max_minor_ticks.setter - def max_minor_ticks(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) + def max_minor_ticks(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) @property def axis_label_font(self): @@ -312,15 +244,11 @@ def axis_label_font(self): "Configure axis text labels font family, typeface, and size." "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Axis Label Font') - key_val_pair = [i for i in props if 'Axis Label Font=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Axis Label Font') return val @axis_label_font.setter def axis_label_font(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Axis Label Font=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Axis Label Font=' + value]) @property def axis_tick_label_font(self): @@ -328,30 +256,12 @@ def axis_tick_label_font(self): "Configure axis tick numeric labels font family, typeface, and size." "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Axis Tick Label Font') - key_val_pair = [i for i in props if 'Axis Tick Label Font=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Axis Tick Label Font') return val @axis_tick_label_font.setter def axis_tick_label_font(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Axis Tick Label Font=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Axis Tick Label Font=' + value]) - @property - def major_grid_line_style(self): - """Major Grid Line Style - "Select line style of major-tick grid lines." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Major Grid Line Style') - key_val_pair = [i for i in props if 'Major Grid Line Style=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @major_grid_line_style.setter - def major_grid_line_style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Major Grid Line Style=' + value]) class MajorGridLineStyleOption(Enum): LINES = "Lines" DOTTED = "Dotted" @@ -359,6 +269,17 @@ class MajorGridLineStyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property + def major_grid_line_style(self) -> MajorGridLineStyleOption: + """Major Grid Line Style + "Select line style of major-tick grid lines." + " """ + val = self._get_property('Major Grid Line Style') + val = self.MajorGridLineStyleOption[val] + return val + @major_grid_line_style.setter + def major_grid_line_style(self, value: MajorGridLineStyleOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Major Grid Line Style=' + value.value]) @property def major_grid_color(self): @@ -366,30 +287,12 @@ def major_grid_color(self): "Set color of major-tick grid lines." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Major Grid Color') - key_val_pair = [i for i in props if 'Major Grid Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Major Grid Color') return val @major_grid_color.setter def major_grid_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Major Grid Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Major Grid Color=' + value]) - @property - def minor_grid_line_style(self): - """Minor Grid Line Style - "Select line style of minor-tick grid lines." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minor Grid Line Style') - key_val_pair = [i for i in props if 'Minor Grid Line Style=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @minor_grid_line_style.setter - def minor_grid_line_style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Minor Grid Line Style=' + value]) class MinorGridLineStyleOption(Enum): LINES = "Lines" DOTTED = "Dotted" @@ -397,6 +300,17 @@ class MinorGridLineStyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property + def minor_grid_line_style(self) -> MinorGridLineStyleOption: + """Minor Grid Line Style + "Select line style of minor-tick grid lines." + " """ + val = self._get_property('Minor Grid Line Style') + val = self.MinorGridLineStyleOption[val] + return val + @minor_grid_line_style.setter + def minor_grid_line_style(self, value: MinorGridLineStyleOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Minor Grid Line Style=' + value.value]) @property def minor_grid_color(self): @@ -404,15 +318,11 @@ def minor_grid_color(self): "Set color of minor-tick grid lines." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minor Grid Color') - key_val_pair = [i for i in props if 'Minor Grid Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Minor Grid Color') return val @minor_grid_color.setter def minor_grid_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Minor Grid Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Minor Grid Color=' + value]) @property def background_color(self): @@ -420,35 +330,28 @@ def background_color(self): "Set background color of entire plot." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Background Color') - key_val_pair = [i for i in props if 'Background Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Background Color') return val @background_color.setter def background_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Background Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) + class BBPowerforPlotsUnitOption(Enum): + HERTZ = "hertz" + KILOHERTZ = "kilohertz" + MEGAHERTZ = "megahertz" + GIGAHERTZ = "gigahertz" @property - def bb_power_for_plots_unit(self): + def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit "Units to use for plotting broadband power densities." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BB Power for Plots Unit') - key_val_pair = [i for i in props if 'BB Power for Plots Unit=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('BB Power for Plots Unit') + val = self.BBPowerforPlotsUnitOption[val] return val @bb_power_for_plots_unit.setter - def bb_power_for_plots_unit(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['BB Power for Plots Unit=' + value]) - class BBPowerforPlotsUnitOption(Enum): - HERTZ = "hertz" - KILOHERTZ = "kilohertz" - MEGAHERTZ = "megahertz" - GIGAHERTZ = "gigahertz" + def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['BB Power for Plots Unit=' + value.value]) @property def bb_power_bandwidth(self) -> float: @@ -456,15 +359,11 @@ def bb_power_bandwidth(self) -> float: "Resolution bandwidth for broadband power." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BB Power Bandwidth') - key_val_pair = [i for i in props if 'BB Power Bandwidth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('BB Power Bandwidth') return val @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['BB Power Bandwidth=' + value]) + def bb_power_bandwidth(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['BB Power Bandwidth=' + value]) @property def log_scale(self) -> bool: @@ -472,13 +371,9 @@ def log_scale(self) -> bool: "Toggles on/off using a log scale for the X-Axis." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Log Scale') - key_val_pair = [i for i in props if 'Log Scale=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Log Scale') return val @log_scale.setter - def log_scale(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Log Scale=' + value]) + def log_scale(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Log Scale=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py index eda90303ee4..7876d8cab2d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class PowerDivider(GenericEmitNode): +from ..EmitNode import * + +class PowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) def rename(self, new_name): """Rename this node""" @@ -22,15 +26,11 @@ def filename(self) -> str: "Name of file defining the Power Divider." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - key_val_pair = [i for i in props if 'Filename=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Filename') return val @filename.setter - def filename(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + def filename(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @property def noise_temperature(self) -> float: @@ -38,67 +38,53 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - key_val_pair = [i for i in props if 'Noise Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Temperature') return val @noise_temperature.setter - def noise_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + def noise_temperature(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val @notes.setter - def notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + def notes(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + class TypeOption(Enum): + BYFILE = "By File" + _3DB = "3 dB" + RESISTIVE = "Resistive" @property - def type(self): + def type(self) -> TypeOption: """Type "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - key_val_pair = [i for i in props if 'Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Type') + val = self.TypeOption[val] return val @type.setter - def type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) - class TypeOption(Enum): - BYFILE = "By File" - _3DB = "3 dB" - RESISTIVE = "Resistive" + def type(self, value: TypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) + class OrientationOption(Enum): + RADIOSIDE = "Divider" + ANTENNASIDE = "Combiner" @property - def orientation(self): + def orientation(self) -> OrientationOption: """Orientation "Defines the orientation of the Power Divider.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation') - key_val_pair = [i for i in props if 'Orientation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Orientation') + val = self.OrientationOption[val] return val @orientation.setter - def orientation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Orientation=' + value]) - class OrientationOption(Enum): - RADIOSIDE = "Divider" - ANTENNASIDE = "Combiner" + def orientation(self, value: OrientationOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation=' + value.value]) @property def insertion_loss_above_ideal(self) -> float: @@ -106,15 +92,11 @@ def insertion_loss_above_ideal(self) -> float: "Additional loss beyond the ideal insertion loss. The ideal insertion loss is 3 dB for the 3 dB Divider and 6 dB for the Resistive Divider.." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss Above Ideal') - key_val_pair = [i for i in props if 'Insertion Loss Above Ideal=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Insertion Loss Above Ideal') return val @insertion_loss_above_ideal.setter - def insertion_loss_above_ideal(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Insertion Loss Above Ideal=' + value]) + def insertion_loss_above_ideal(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss Above Ideal=' + value]) @property def finite_isolation(self) -> bool: @@ -122,15 +104,11 @@ def finite_isolation(self) -> bool: "Use a finite isolation between output ports. If disabled, the Power Divider isolation is ideal (infinite isolation between output ports).." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Isolation') - key_val_pair = [i for i in props if 'Finite Isolation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Finite Isolation') return val @finite_isolation.setter - def finite_isolation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Isolation=' + value]) + def finite_isolation(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Finite Isolation=' + value]) @property def isolation(self) -> float: @@ -138,15 +116,11 @@ def isolation(self) -> float: "Power Divider isolation between output ports.." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Isolation') - key_val_pair = [i for i in props if 'Isolation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Isolation') return val @isolation.setter - def isolation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Isolation=' + value]) + def isolation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Isolation=' + value]) @property def finite_bandwidth(self) -> bool: @@ -154,15 +128,11 @@ def finite_bandwidth(self) -> bool: "Use a finite bandwidth. If disabled, the Power Divider model is ideal (infinite bandwidth).." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Bandwidth') - key_val_pair = [i for i in props if 'Finite Bandwidth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Finite Bandwidth') return val @finite_bandwidth.setter - def finite_bandwidth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) + def finite_bandwidth(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) @property def out_of_band_attenuation(self) -> float: @@ -170,15 +140,11 @@ def out_of_band_attenuation(self) -> float: "Out-of-band loss (attenuation)." "Value should be between 0 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out-of-band Attenuation') - key_val_pair = [i for i in props if 'Out-of-band Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Out-of-band Attenuation') return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) + def out_of_band_attenuation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) @property def lower_stop_band(self) -> float: @@ -186,15 +152,11 @@ def lower_stop_band(self) -> float: "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') - key_val_pair = [i for i in props if 'Lower Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Stop Band') return val @lower_stop_band.setter - def lower_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + def lower_stop_band(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) @property def lower_cutoff(self) -> float: @@ -202,15 +164,11 @@ def lower_cutoff(self) -> float: "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') - key_val_pair = [i for i in props if 'Lower Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Cutoff') return val @lower_cutoff.setter - def lower_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + def lower_cutoff(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) @property def higher_cutoff(self) -> float: @@ -218,15 +176,11 @@ def higher_cutoff(self) -> float: "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') - key_val_pair = [i for i in props if 'Higher Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Cutoff') return val @higher_cutoff.setter - def higher_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + def higher_cutoff(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) @property def higher_stop_band(self) -> float: @@ -234,25 +188,16 @@ def higher_stop_band(self) -> float: "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') - key_val_pair = [i for i in props if 'Higher Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Stop Band') return val @higher_stop_band.setter - def higher_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + def higher_stop_band(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - key_val_pair = [i for i in props if 'Warnings=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Warnings') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py index 3228bfab0ef..00848df20cc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class PowerTraceNode(GenericEmitNode): +from ..EmitNode import * + +class PowerTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -21,38 +25,31 @@ def delete(self): """Delete this node""" self._delete() + class DirectionOption(Enum): + AWAY = "Away From Tx" + TOWARD = "Toward Tx" @property - def direction(self): + def direction(self) -> DirectionOption: """Direction "Direction of power flow (towards or away from the transmitter) to plot." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Direction') - key_val_pair = [i for i in props if 'Direction=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Direction') + val = self.DirectionOption[val] return val @direction.setter - def direction(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Direction=' + value]) - class DirectionOption(Enum): - AWAY = "Away From Tx" - TOWARD = "Toward Tx" + def direction(self, value: DirectionOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Direction=' + value.value]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - key_val_pair = [i for i in props if 'Data Source=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Data Source') return val @data_source.setter def data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @property def visible(self) -> bool: @@ -60,15 +57,11 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - key_val_pair = [i for i in props if 'Visible=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Visible') return val @visible.setter - def visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + def visible(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -76,45 +69,23 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - key_val_pair = [i for i in props if 'Custom Legend=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Legend') return val @custom_legend.setter - def custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + def custom_legend(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - key_val_pair = [i for i in props if 'Name=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Name') return val @name.setter - def name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + def name(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) - @property - def style(self): - """Style - "Specify line style of plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - key_val_pair = [i for i in props if 'Style=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @style.setter - def style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) class StyleOption(Enum): LINES = "Lines" DOTTED = "Dotted" @@ -122,6 +93,17 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property + def style(self) -> StyleOption: + """Style + "Specify line style of plot trace." + " """ + val = self._get_property('Style') + val = self.StyleOption[val] + return val + @style.setter + def style(self, value: StyleOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -129,15 +111,11 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - key_val_pair = [i for i in props if 'Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Width') return val @line_width.setter - def line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + def line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -145,30 +123,12 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - key_val_pair = [i for i in props if 'Line Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Color') return val @line_color.setter def line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) - @property - def symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - key_val_pair = [i for i in props if 'Symbol=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @symbol.setter - def symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" ELLIPSE = "Ellipse" @@ -185,6 +145,17 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property + def symbol(self) -> SymbolOption: + """Symbol + "Select symbol to mark points along plot trace." + " """ + val = self._get_property('Symbol') + val = self.SymbolOption[val] + return val + @symbol.setter + def symbol(self, value: SymbolOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -192,15 +163,11 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - key_val_pair = [i for i in props if 'Symbol Size=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Size') return val @symbol_size.setter - def symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + def symbol_size(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -208,15 +175,11 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - key_val_pair = [i for i in props if 'Symbol Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Color') return val @symbol_color.setter def symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -224,15 +187,11 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - key_val_pair = [i for i in props if 'Symbol Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Line Width') return val @symbol_line_width.setter - def symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + def symbol_line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -240,13 +199,9 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - key_val_pair = [i for i in props if 'Symbol Filled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Filled') return val @symbol_filled.setter - def symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + def symbol_filled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py index f7ed5054bbb..f88be273f44 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ProfileTraceNode(GenericEmitNode): +from ..EmitNode import * + +class ProfileTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -26,15 +30,11 @@ def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - key_val_pair = [i for i in props if 'Data Source=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Data Source') return val @data_source.setter def data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @property def visible(self) -> bool: @@ -42,15 +42,11 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - key_val_pair = [i for i in props if 'Visible=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Visible') return val @visible.setter - def visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + def visible(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -58,45 +54,23 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - key_val_pair = [i for i in props if 'Custom Legend=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Legend') return val @custom_legend.setter - def custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + def custom_legend(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - key_val_pair = [i for i in props if 'Name=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Name') return val @name.setter - def name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + def name(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) - @property - def style(self): - """Style - "Specify line style of plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - key_val_pair = [i for i in props if 'Style=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @style.setter - def style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) class StyleOption(Enum): LINES = "Lines" DOTTED = "Dotted" @@ -104,6 +78,17 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property + def style(self) -> StyleOption: + """Style + "Specify line style of plot trace." + " """ + val = self._get_property('Style') + val = self.StyleOption[val] + return val + @style.setter + def style(self, value: StyleOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -111,15 +96,11 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - key_val_pair = [i for i in props if 'Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Width') return val @line_width.setter - def line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + def line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -127,30 +108,12 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - key_val_pair = [i for i in props if 'Line Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Color') return val @line_color.setter def line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) - @property - def symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - key_val_pair = [i for i in props if 'Symbol=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @symbol.setter - def symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" ELLIPSE = "Ellipse" @@ -167,6 +130,17 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property + def symbol(self) -> SymbolOption: + """Symbol + "Select symbol to mark points along plot trace." + " """ + val = self._get_property('Symbol') + val = self.SymbolOption[val] + return val + @symbol.setter + def symbol(self, value: SymbolOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -174,15 +148,11 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - key_val_pair = [i for i in props if 'Symbol Size=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Size') return val @symbol_size.setter - def symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + def symbol_size(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -190,15 +160,11 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - key_val_pair = [i for i in props if 'Symbol Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Color') return val @symbol_color.setter def symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -206,15 +172,11 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - key_val_pair = [i for i in props if 'Symbol Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Line Width') return val @symbol_line_width.setter - def symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + def symbol_line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -222,13 +184,9 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - key_val_pair = [i for i in props if 'Symbol Filled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Filled') return val @symbol_filled.setter - def symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + def symbol_filled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py index c9ab683b1af..a78115e065e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class PropagationLossCouplingNode(GenericEmitNode): +from ..EmitNode import * + +class PropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -27,15 +31,33 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') return val @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def antenna_a(self) -> EmitNode: + """Antenna A + "First antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Antenna A') + return val + @antenna_a.setter + def antenna_a(self, value: EmitNode): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) + + @property + def antenna_b(self) -> EmitNode: + """Antenna B + "Second antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Antenna B') + return val + @antenna_b.setter + def antenna_b(self, value: EmitNode): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) @property def enable_refinement(self) -> bool: @@ -43,15 +65,11 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - key_val_pair = [i for i in props if 'Enable Refinement=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Refinement') return val @enable_refinement.setter - def enable_refinement(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + def enable_refinement(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @property def adaptive_sampling(self) -> bool: @@ -59,30 +77,22 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Adaptive Sampling') return val @adaptive_sampling.setter - def adaptive_sampling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + def adaptive_sampling(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - key_val_pair = [i for i in props if 'Refinement Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Refinement Domain') return val @refinement_domain.setter def refinement_domain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) @property def custom_fading_margin(self) -> float: @@ -90,15 +100,11 @@ def custom_fading_margin(self) -> float: "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') - key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Fading Margin') return val @custom_fading_margin.setter - def custom_fading_margin(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + def custom_fading_margin(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) @property def polarization_mismatch(self) -> float: @@ -106,15 +112,11 @@ def polarization_mismatch(self) -> float: "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') - key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Mismatch') return val @polarization_mismatch.setter - def polarization_mismatch(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + def polarization_mismatch(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) @property def pointing_error_loss(self) -> float: @@ -122,35 +124,28 @@ def pointing_error_loss(self) -> float: "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') - key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pointing Error Loss') return val @pointing_error_loss.setter - def pointing_error_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + def pointing_error_loss(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + class FadingTypeOption(Enum): + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" @property - def fading_type(self): + def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') - key_val_pair = [i for i in props if 'Fading Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Fading Type') + val = self.FadingTypeOption[val] return val @fading_type.setter - def fading_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) - class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + def fading_type(self, value: FadingTypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) @property def fading_availability(self) -> float: @@ -158,15 +153,11 @@ def fading_availability(self) -> float: "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') - key_val_pair = [i for i in props if 'Fading Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Fading Availability') return val @fading_availability.setter - def fading_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + def fading_availability(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) @property def std_deviation(self) -> float: @@ -174,15 +165,11 @@ def std_deviation(self) -> float: "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') - key_val_pair = [i for i in props if 'Std Deviation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Std Deviation') return val @std_deviation.setter - def std_deviation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + def std_deviation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) @property def include_rain_attenuation(self) -> bool: @@ -190,15 +177,11 @@ def include_rain_attenuation(self) -> bool: "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') - key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Rain Attenuation') return val @include_rain_attenuation.setter - def include_rain_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + def include_rain_attenuation(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) @property def rain_availability(self) -> float: @@ -206,15 +189,11 @@ def rain_availability(self) -> float: "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') - key_val_pair = [i for i in props if 'Rain Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Availability') return val @rain_availability.setter - def rain_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + def rain_availability(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) @property def rain_rate(self) -> float: @@ -222,15 +201,11 @@ def rain_rate(self) -> float: "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') - key_val_pair = [i for i in props if 'Rain Rate=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Rate') return val @rain_rate.setter - def rain_rate(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + def rain_rate(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) @property def polarization_tilt_angle(self) -> float: @@ -238,15 +213,11 @@ def polarization_tilt_angle(self) -> float: "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') - key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Tilt Angle') return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + def polarization_tilt_angle(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) @property def include_atmospheric_absorption(self) -> bool: @@ -254,15 +225,11 @@ def include_atmospheric_absorption(self) -> bool: "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') - key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Atmospheric Absorption') return val @include_atmospheric_absorption.setter - def include_atmospheric_absorption(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + def include_atmospheric_absorption(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) @property def temperature(self) -> float: @@ -270,15 +237,11 @@ def temperature(self) -> float: "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') - key_val_pair = [i for i in props if 'Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Temperature') return val @temperature.setter - def temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) + def temperature(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) @property def total_air_pressure(self) -> float: @@ -286,15 +249,11 @@ def total_air_pressure(self) -> float: "Total air pressure." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') - key_val_pair = [i for i in props if 'Total Air Pressure=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Total Air Pressure') return val @total_air_pressure.setter - def total_air_pressure(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + def total_air_pressure(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) @property def water_vapor_concentration(self) -> float: @@ -302,13 +261,9 @@ def water_vapor_concentration(self) -> float: "Water vapor concentration." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') - key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Water Vapor Concentration') return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + def water_vapor_concentration(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py index d41d7ae17db..0274fba125b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class RadioNode(GenericEmitNode): +from ..EmitNode import * + +class RadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -25,18 +29,26 @@ def delete(self): """Delete this node""" self._delete() + @property + def table_data(self): + """ Table" + "Table consists of 2 columns." + "Name: + " "Type: + " """ + return self._get_table_data() + @table_data.setter + def table_data(self, value): + self._set_table_data(value) + @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val @notes.setter - def notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + def notes(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py index 6b950500c23..a2f54bf5f7d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyAmplifier(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyAmplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def filename(self) -> str: @@ -10,180 +14,111 @@ def filename(self) -> str: "Name of file defining the outboard component." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - key_val_pair = [i for i in props if 'Filename=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Filename') return val - @property def noise_temperature(self) -> float: """Noise Temperature "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - key_val_pair = [i for i in props if 'Noise Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Temperature') return val - @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val - + class AmplifierTypeOption(Enum): + TRANSMIT_AMPLIFIER = "Transmit Amplifier" + RECEIVE_AMPLIFIER = "Receive Amplifier" @property - def amplifier_type(self): + def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type "Configures the amplifier as a Tx or Rx amplifier." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplifier Type') - key_val_pair = [i for i in props if 'Amplifier Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Amplifier Type') + val = self.AmplifierTypeOption[val] return val - class AmplifierTypeOption(Enum): - TRANSMIT_AMPLIFIER = "Transmit Amplifier" - RECEIVE_AMPLIFIER = "Receive Amplifier" - @property def gain(self) -> float: """Gain "Amplifier in-band gain." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Gain') - key_val_pair = [i for i in props if 'Gain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Gain') return val - @property def center_frequency(self) -> float: """Center Frequency "Center frequency of amplifiers operational bandwidth." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Center Frequency') - key_val_pair = [i for i in props if 'Center Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Center Frequency') return val - @property def bandwidth(self) -> float: """Bandwidth "Frequency region where the gain applies." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bandwidth') - key_val_pair = [i for i in props if 'Bandwidth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Bandwidth') return val - @property def noise_figure(self) -> float: """Noise Figure "Amplifier noise figure." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Figure') - key_val_pair = [i for i in props if 'Noise Figure=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Figure') return val - @property def saturation_level(self) -> float: """Saturation Level "Saturation level." "Value should be between -200 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Saturation Level') - key_val_pair = [i for i in props if 'Saturation Level=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Saturation Level') return val - @property def _1_db_point_ref_input(self) -> float: """1-dB Point, Ref. Input "Incoming signals > this value saturate the amplifier." "Value should be between -200 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'1-dB Point, Ref. Input') - key_val_pair = [i for i in props if '1-dB Point, Ref. Input=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('1-dB Point, Ref. Input') return val - @property def ip3_ref_input(self) -> float: """IP3, Ref. Input "3rd order intercept point." "Value should be between -200 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'IP3, Ref. Input') - key_val_pair = [i for i in props if 'IP3, Ref. Input=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('IP3, Ref. Input') return val - @property def shape_factor(self) -> float: """Shape Factor "Ratio defining the selectivity of the amplifier." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Shape Factor') - key_val_pair = [i for i in props if 'Shape Factor=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Shape Factor') return val - @property def reverse_isolation(self) -> float: """Reverse Isolation "Amplifier reverse isolation." "Value should be between 0 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reverse Isolation') - key_val_pair = [i for i in props if 'Reverse Isolation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Reverse Isolation') return val - @property def max_intermod_order(self) -> int: """Max Intermod Order "Maximum order of intermods to compute." "Value should be between 3 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Intermod Order') - key_val_pair = [i for i in props if 'Max Intermod Order=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Intermod Order') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py index e888f03acbf..5ab5cee4459 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyAntennaNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyAntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -14,852 +18,533 @@ def tags(self) -> str: """Tags "Space delimited list of tags for coupling selections." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tags') - key_val_pair = [i for i in props if 'Tags=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Tags') return val - @property def show_relative_coordinates(self) -> bool: """Show Relative Coordinates "Show antenna position and orientation in parent-node coords (False) or relative to placement coords (True)." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Relative Coordinates') - key_val_pair = [i for i in props if 'Show Relative Coordinates=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Show Relative Coordinates') return val - @property def position(self): """Position "Set position of the antenna in parent-node coordinates." "Value should be x/y/z, delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') - key_val_pair = [i for i in props if 'Position=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Position') return val - @property def relative_position(self): """Relative Position "Set position of the antenna relative to placement coordinates." "Value should be x/y/z, delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Position') - key_val_pair = [i for i in props if 'Relative Position=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Relative Position') return val - + class OrientationModeOption(Enum): + RPYDEG = "Roll-Pitch-Yaw" + AETDEG = "Az-El-Twist" @property - def orientation_mode(self): + def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation Mode') - key_val_pair = [i for i in props if 'Orientation Mode=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Orientation Mode') + val = self.OrientationModeOption[val] return val - class OrientationModeOption(Enum): - RPYDEG = "Roll-Pitch-Yaw" - AETDEG = "Az-El-Twist" - @property def orientation(self): """Orientation "Set orientation of the antenna relative to parent-node coordinates." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation') - key_val_pair = [i for i in props if 'Orientation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Orientation') return val - @property def relative_orientation(self): """Relative Orientation "Set orientation of the antenna relative to placement coordinates." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Orientation') - key_val_pair = [i for i in props if 'Relative Orientation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Relative Orientation') return val - @property def position_defined(self) -> bool: """Position Defined "Toggles on/off the ability to define a position for the antenna." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position Defined') - key_val_pair = [i for i in props if 'Position Defined=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Position Defined') return val - @property def antenna_temperature(self) -> float: """Antenna Temperature "Antenna noise temperature." "Value should be between 0 and 100000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna Temperature') - key_val_pair = [i for i in props if 'Antenna Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Antenna Temperature') return val - @property def type(self): """Type "Defines the type of antenna." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - key_val_pair = [i for i in props if 'Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - class TypeOption(Enum): - SUBTYPECHOICES = "::SubTypeChoiceLabels" - + val = self._get_property('Type') + return val @property def antenna_file(self) -> str: """Antenna File "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna File') - key_val_pair = [i for i in props if 'Antenna File=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Antenna File') return val - @property def project_name(self) -> str: """Project Name "Name of imported HFSS Antenna project." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Project Name') - key_val_pair = [i for i in props if 'Project Name=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Project Name') return val - @property def peak_gain(self) -> float: """Peak Gain "Set peak gain of antenna (dBi)." "Value should be between -200 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Peak Gain') - key_val_pair = [i for i in props if 'Peak Gain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Peak Gain') return val - + class BoresightOption(Enum): + XAXIS = "+X Axis" + YAXIS = "+Y Axis" + ZAXIS = "+Z Axis" @property - def boresight(self): + def boresight(self) -> BoresightOption: """Boresight "Select peak beam direction in local coordinates." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Boresight') - key_val_pair = [i for i in props if 'Boresight=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Boresight') + val = self.BoresightOption[val] return val - class BoresightOption(Enum): - XAXIS = "+X Axis" - YAXIS = "+Y Axis" - ZAXIS = "+Z Axis" - @property def vertical_beamwidth(self) -> float: """Vertical Beamwidth "Set half-power beamwidth in local-coordinates elevation plane." "Value should be between 0.1 and 360." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Vertical Beamwidth') - key_val_pair = [i for i in props if 'Vertical Beamwidth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Vertical Beamwidth') return val - @property def horizontal_beamwidth(self) -> float: """Horizontal Beamwidth "Set half-power beamwidth in local-coordinates azimuth plane." "Value should be between 0.1 and 360." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Horizontal Beamwidth') - key_val_pair = [i for i in props if 'Horizontal Beamwidth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Horizontal Beamwidth') return val - @property def extra_sidelobe(self) -> bool: """Extra Sidelobe "Toggle (on/off) option to define two sidelobe levels." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Extra Sidelobe') - key_val_pair = [i for i in props if 'Extra Sidelobe=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Extra Sidelobe') return val - @property def first_sidelobe_level(self) -> float: """First Sidelobe Level "Set reduction in the gain of Directive Beam antenna for first sidelobe level." "Value should be between 0 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'First Sidelobe Level') - key_val_pair = [i for i in props if 'First Sidelobe Level=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('First Sidelobe Level') return val - @property def first_sidelobe_vert_bw(self) -> float: """First Sidelobe Vert. BW "Set beamwidth of first sidelobe beam in theta direction." "Value should be between 0.1 and 360." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'First Sidelobe Vert. BW') - key_val_pair = [i for i in props if 'First Sidelobe Vert. BW=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('First Sidelobe Vert. BW') return val - @property def first_sidelobe_hor_bw(self) -> float: """First Sidelobe Hor. BW "Set beamwidth of first sidelobe beam in phi direction." "Value should be between 0.1 and 360." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'First Sidelobe Hor. BW') - key_val_pair = [i for i in props if 'First Sidelobe Hor. BW=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('First Sidelobe Hor. BW') return val - @property def outerbacklobe_level(self) -> float: """Outer/Backlobe Level "Set reduction in gain of Directive Beam antenna for outer/backlobe level." "Value should be between 0 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Outer/Backlobe Level') - key_val_pair = [i for i in props if 'Outer/Backlobe Level=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Outer/Backlobe Level') return val - @property def resonant_frequency(self) -> float: """Resonant Frequency "Set first resonant frequency of wire dipole, monopole, or parametric antenna." "Value should be between 1 and 1e+13." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Resonant Frequency') - key_val_pair = [i for i in props if 'Resonant Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Resonant Frequency') return val - @property def slot_length(self) -> float: """Slot Length "Set slot length of parametric slot." "Value should be greater than 1e-06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Slot Length') - key_val_pair = [i for i in props if 'Slot Length=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Slot Length') return val - @property def mouth_width(self) -> float: """Mouth Width "Set mouth width (along local y-axis) of the horn antenna." "Value should be between 1e-06 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mouth Width') - key_val_pair = [i for i in props if 'Mouth Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Mouth Width') return val - @property def mouth_height(self) -> float: """Mouth Height "Set mouth height (along local x-axis) of the horn antenna." "Value should be between 1e-06 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mouth Height') - key_val_pair = [i for i in props if 'Mouth Height=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Mouth Height') return val - @property def waveguide_width(self) -> float: """Waveguide Width "Set waveguide width (along local y-axis) where flared horn walls meet the feed, determines cut-off frequency." "Value should be between 1e-06 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Waveguide Width') - key_val_pair = [i for i in props if 'Waveguide Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Waveguide Width') return val - @property def width_flare_half_angle(self) -> float: """Width Flare Half-angle "Set half-angle (degrees) of flared horn walls measured in local yz-plane from boresight (z) axis to either wall." "Value should be between 1 and 89.9." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Width Flare Half-angle') - key_val_pair = [i for i in props if 'Width Flare Half-angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Width Flare Half-angle') return val - @property def height_flare_half_angle(self) -> float: """Height Flare Half-angle "Set half-angle (degrees) of flared horn walls measured in local xz-plane from boresight (z) axis to either wall." "Value should be between 1 and 89.9." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Height Flare Half-angle') - key_val_pair = [i for i in props if 'Height Flare Half-angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Height Flare Half-angle') return val - @property def mouth_diameter(self) -> float: """Mouth Diameter "Set aperture (mouth) diameter of horn antenna." "Value should be between 1e-06 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mouth Diameter') - key_val_pair = [i for i in props if 'Mouth Diameter=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Mouth Diameter') return val - @property def flare_half_angle(self) -> float: """Flare Half-angle "Set half-angle (degrees) of conical horn wall measured from boresight (z)." "Value should be between 1 and 89.9." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Flare Half-angle') - key_val_pair = [i for i in props if 'Flare Half-angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Flare Half-angle') return val - @property def vswr(self) -> float: """VSWR "The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch between the antenna and the RF System (or outboard component)." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'VSWR') - key_val_pair = [i for i in props if 'VSWR=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - - @property - def antenna_polarization(self): - """Antenna Polarization - "Choose local-coordinates polarization along boresight." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna Polarization') - key_val_pair = [i for i in props if 'Antenna Polarization=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('VSWR') return val class AntennaPolarizationOption(Enum): VERTICAL = "Vertical" HORIZONTAL = "Horizontal" RHCP = "RHCP" LHCP = "LHCP" - @property - def cross_dipole_mode(self): - """Cross Dipole Mode - "Choose the Cross Dipole type." + def antenna_polarization(self) -> AntennaPolarizationOption: + """Antenna Polarization + "Choose local-coordinates polarization along boresight." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Cross Dipole Mode') - key_val_pair = [i for i in props if 'Cross Dipole Mode=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Antenna Polarization') + val = self.AntennaPolarizationOption[val] return val class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" OVER_GROUND_PLANE = "Over Ground Plane" - @property - def cross_dipole_polarization(self): - """Cross Dipole Polarization - "Choose local-coordinates polarization along boresight." + def cross_dipole_mode(self) -> CrossDipoleModeOption: + """Cross Dipole Mode + "Choose the Cross Dipole type." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Cross Dipole Polarization') - key_val_pair = [i for i in props if 'Cross Dipole Polarization=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Cross Dipole Mode') + val = self.CrossDipoleModeOption[val] return val class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" LHCP = "LHCP" - + @property + def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: + """Cross Dipole Polarization + "Choose local-coordinates polarization along boresight." + " """ + val = self._get_property('Cross Dipole Polarization') + val = self.CrossDipolePolarizationOption[val] + return val @property def override_height(self) -> bool: """Override Height "Ignores the default placement of quarter design wavelength over the ground plane." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Override Height') - key_val_pair = [i for i in props if 'Override Height=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Override Height') return val - @property def offset_height(self) -> float: """Offset Height "Sets the offset height for the current sources above the ground plane." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Offset Height') - key_val_pair = [i for i in props if 'Offset Height=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Offset Height') return val - @property def auto_height_offset(self) -> bool: """Auto Height Offset "Switch on to automatically place slot current at sub-wavelength offset height above ground plane." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Auto Height Offset') - key_val_pair = [i for i in props if 'Auto Height Offset=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Auto Height Offset') return val - @property def conform__adjust_antenna(self) -> bool: """Conform / Adjust Antenna "Toggle (on/off) conformal adjustment for array antenna elements." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Conform / Adjust Antenna') - key_val_pair = [i for i in props if 'Conform / Adjust Antenna=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Conform / Adjust Antenna') return val - @property def element_offset(self): """Element Offset "Set vector for shifting element positions in antenna local coordinates." "Value should be x/y/z, delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Element Offset') - key_val_pair = [i for i in props if 'Element Offset=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - - @property - def conform_to_platform(self): - """Conform to Platform - "Select method of automated conforming applied after Element Offset." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Conform to Platform') - key_val_pair = [i for i in props if 'Conform to Platform=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Element Offset') return val class ConformtoPlatformOption(Enum): NONE = "None" ALONG_NORMAL = "Along Normal" PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" - @property - def reference_plane(self): - """Reference Plane - "Select reference plane for determining original element heights." + def conform_to_platform(self) -> ConformtoPlatformOption: + """Conform to Platform + "Select method of automated conforming applied after Element Offset." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reference Plane') - key_val_pair = [i for i in props if 'Reference Plane=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Conform to Platform') + val = self.ConformtoPlatformOption[val] return val class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" YZ_PLANE = "YZ Plane" ZX_PLANE = "ZX Plane" - + @property + def reference_plane(self) -> ReferencePlaneOption: + """Reference Plane + "Select reference plane for determining original element heights." + " """ + val = self._get_property('Reference Plane') + val = self.ReferencePlaneOption[val] + return val @property def conform_element_orientation(self) -> bool: """Conform Element Orientation "Toggle (on/off) re-orientation of elements to conform to curved placement surface." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Conform Element Orientation') - key_val_pair = [i for i in props if 'Conform Element Orientation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Conform Element Orientation') return val - @property def show_axes(self) -> bool: """Show Axes "Toggle (on/off) display of antenna coordinate axes in 3-D window." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Axes') - key_val_pair = [i for i in props if 'Show Axes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Show Axes') return val - @property def show_icon(self) -> bool: """Show Icon "Toggle (on/off) display of antenna marker (cone) in 3-D window." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Icon') - key_val_pair = [i for i in props if 'Show Icon=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Show Icon') return val - @property def size(self) -> float: """Size "Adjust relative size of antenna marker (cone) in 3-D window." "Value should be between 0.001 and 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Size') - key_val_pair = [i for i in props if 'Size=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Size') return val - @property def color(self): """Color "Set color of antenna marker (cone) in 3-D window." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Color') - key_val_pair = [i for i in props if 'Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Color') return val - @property def el_sample_interval(self) -> float: """El Sample Interval "Space between elevation-angle samples of pattern." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'El Sample Interval') - key_val_pair = [i for i in props if 'El Sample Interval=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('El Sample Interval') return val - @property def az_sample_interval(self) -> float: """Az Sample Interval "Space between azimuth-angle samples of pattern." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Az Sample Interval') - key_val_pair = [i for i in props if 'Az Sample Interval=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Az Sample Interval') return val - @property def has_frequency_domain(self) -> bool: """Has Frequency Domain "False if antenna can be used at any frequency." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Has Frequency Domain') - key_val_pair = [i for i in props if 'Has Frequency Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Has Frequency Domain') return val - @property def frequency_domain(self): """Frequency Domain "Frequency sample(s) defining antenna." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency Domain') - key_val_pair = [i for i in props if 'Frequency Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Frequency Domain') return val - @property def number_of_electric_sources(self) -> int: """Number of Electric Sources "Number of freestanding electric current sources defining antenna." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Electric Sources') - key_val_pair = [i for i in props if 'Number of Electric Sources=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Number of Electric Sources') return val - @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources "Number of freestanding magnetic current sources defining antenna." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Magnetic Sources') - key_val_pair = [i for i in props if 'Number of Magnetic Sources=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Number of Magnetic Sources') return val - @property def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources "Number of imaged, half-space radiating electric current sources defining antenna." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Imaged Electric Sources') - key_val_pair = [i for i in props if 'Number of Imaged Electric Sources=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Number of Imaged Electric Sources') return val - @property def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources "Number of imaged, half-space radiating magnetic current sources defining antenna." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Imaged Magnetic Sources') - key_val_pair = [i for i in props if 'Number of Imaged Magnetic Sources=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Number of Imaged Magnetic Sources') return val - @property def waveguide_height(self) -> float: """Waveguide Height "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Waveguide Height') - key_val_pair = [i for i in props if 'Waveguide Height=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Waveguide Height') return val - @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Waveguide Cutoff Frequency') - key_val_pair = [i for i in props if 'Waveguide Cutoff Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Waveguide Cutoff Frequency') return val - @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Aperture Cutoff Frequency') - key_val_pair = [i for i in props if 'Aperture Cutoff Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Aperture Cutoff Frequency') return val - + class SWEModeTruncationOption(Enum): + DYNAMIC = "Dynamic" + CUSTOM = "Fixed (Custom)" + NONE = "None" @property - def swe_mode_truncation(self): + def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation "Select the method for stability-enhancing truncation of spherical wave expansion terms." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'SWE Mode Truncation') - key_val_pair = [i for i in props if 'SWE Mode Truncation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('SWE Mode Truncation') + val = self.SWEModeTruncationOption[val] return val - class SWEModeTruncationOption(Enum): - DYNAMIC = "Dynamic" - CUSTOM = "Fixed (Custom)" - NONE = "None" - @property def max_n_index(self) -> int: """Max N Index "Set maximum allowed index N for spherical wave expansion terms." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max N Index') - key_val_pair = [i for i in props if 'Max N Index=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max N Index') return val - @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val - @property def show_composite_passband(self) -> bool: """Show Composite Passband "Show plot instead of 3D window." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Composite Passband') - key_val_pair = [i for i in props if 'Show Composite Passband=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Show Composite Passband') return val - @property def use_phase_center(self) -> bool: """Use Phase Center "Use the phase center defined in the HFSS design." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Phase Center') - key_val_pair = [i for i in props if 'Use Phase Center=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Use Phase Center') return val - @property def coordinate_systems(self) -> str: """Coordinate Systems "Specifies the coordinate system for the phase center of this antenna." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Coordinate Systems') - key_val_pair = [i for i in props if 'Coordinate Systems=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Coordinate Systems') return val - @property def phasecenterposition(self): """PhaseCenterPosition "Set position of the antennas linked coordinate system.." "Value should be x/y/z, delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'PhaseCenterPosition') - key_val_pair = [i for i in props if 'PhaseCenterPosition=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('PhaseCenterPosition') return val - @property def phasecenterorientation(self): """PhaseCenterOrientation "Set orientation of the antennas linked coordinate system.." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'PhaseCenterOrientation') - key_val_pair = [i for i in props if 'PhaseCenterOrientation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('PhaseCenterOrientation') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py index 9c27a72e1dc..0a5e4e0e7a3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyAntennaPassband(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyAntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -15,87 +19,52 @@ def passband_loss(self) -> float: "Passband loss." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Passband Loss') - key_val_pair = [i for i in props if 'Passband Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Passband Loss') return val - @property def out_of_band_attenuation(self) -> float: """Out of Band Attenuation "Out of band antenna loss." "Value should be between 0 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out of Band Attenuation') - key_val_pair = [i for i in props if 'Out of Band Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Out of Band Attenuation') return val - @property def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') - key_val_pair = [i for i in props if 'Lower Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Stop Band') return val - @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') - key_val_pair = [i for i in props if 'Lower Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Cutoff') return val - @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') - key_val_pair = [i for i in props if 'Higher Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Cutoff') return val - @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') - key_val_pair = [i for i in props if 'Higher Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Stop Band') return val - @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py index b33342958d0..f8c8b81dd00 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyBand(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -14,113 +18,60 @@ def port(self): """Port "Radio Port associated with this Band." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port') - key_val_pair = [i for i in props if 'Port=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - class PortOption(Enum): - PARENTANTENNASIDEPORTS = "::Parent::AntennaSidePorts" - + val = self._get_property('Port') + return val @property def use_dd_1494_mode(self) -> bool: """Use DD-1494 Mode "Uses DD-1494 parameters to define the Tx/Rx spectrum." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use DD-1494 Mode') - key_val_pair = [i for i in props if 'Use DD-1494 Mode=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Use DD-1494 Mode') return val - @property def use_emission_designator(self) -> bool: """Use Emission Designator "Uses the Emission Designator to define the bandwidth and modulation." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Emission Designator') - key_val_pair = [i for i in props if 'Use Emission Designator=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Use Emission Designator') return val - @property def emission_designator(self) -> str: """Emission Designator "Enter the Emission Designator to define the bandwidth and modulation." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Emission Designator') - key_val_pair = [i for i in props if 'Emission Designator=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Emission Designator') return val - @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Emission Designator Ch. BW') - key_val_pair = [i for i in props if 'Emission Designator Ch. BW=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Emission Designator Ch. BW') return val - @property def emit_modulation_type(self) -> str: """EMIT Modulation Type "Modulation based off the emission designator." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'EMIT Modulation Type') - key_val_pair = [i for i in props if 'EMIT Modulation Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('EMIT Modulation Type') return val - @property def override_emission_designator_bw(self) -> bool: """Override Emission Designator BW "Enables the 3 dB channel bandwidth to equal a value < emission designator bandwidth." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Override Emission Designator BW') - key_val_pair = [i for i in props if 'Override Emission Designator BW=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Override Emission Designator BW') return val - @property def channel_bandwidth(self) -> float: """Channel Bandwidth "Channel Bandwidth." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Channel Bandwidth') - key_val_pair = [i for i in props if 'Channel Bandwidth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - - @property - def modulation(self): - """Modulation - "Modulation used for the transmitted/received signal." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Modulation') - key_val_pair = [i for i in props if 'Modulation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Channel Bandwidth') return val class ModulationOption(Enum): GENERIC = "Generic" @@ -134,17 +85,13 @@ class ModulationOption(Enum): QAM = "QAM" APSK = "APSK" RADAR = "Radar" - @property - def waveform(self): - """Waveform + def modulation(self) -> ModulationOption: + """Modulation "Modulation used for the transmitted/received signal." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Waveform') - key_val_pair = [i for i in props if 'Waveform=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Modulation') + val = self.ModulationOption[val] return val class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" @@ -152,95 +99,61 @@ class WaveformOption(Enum): PRBS = "PRBS" PRBS_PERIODIC = "PRBS (Periodic)" IMPORTED = "Imported" - + @property + def waveform(self) -> WaveformOption: + """Waveform + "Modulation used for the transmitted/received signal." + " """ + val = self._get_property('Waveform') + val = self.WaveformOption[val] + return val @property def max_modulating_freq(self) -> float: """Max Modulating Freq. "Maximum modulating frequency: helps determine spectral profile." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Modulating Freq.') - key_val_pair = [i for i in props if 'Max Modulating Freq.=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Modulating Freq.') return val - @property def modulation_index(self) -> float: """Modulation Index "AM modulation index: helps determine spectral profile." "Value should be between 0.01 and 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Modulation Index') - key_val_pair = [i for i in props if 'Modulation Index=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Modulation Index') return val - @property def freq_deviation(self) -> float: """Freq. Deviation "Frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Freq. Deviation') - key_val_pair = [i for i in props if 'Freq. Deviation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Freq. Deviation') return val - @property def bit_rate(self) -> float: """Bit Rate "Maximum bit rate: helps determine width of spectral profile." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bit Rate') - key_val_pair = [i for i in props if 'Bit Rate=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Bit Rate') return val - @property def sidelobes(self) -> int: """Sidelobes "Number of sidelobes in spectral profile." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Sidelobes') - key_val_pair = [i for i in props if 'Sidelobes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Sidelobes') return val - @property def freq_deviation_(self) -> float: """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Freq. Deviation ') - key_val_pair = [i for i in props if 'Freq. Deviation =' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - - @property - def psk_type(self): - """PSK Type - "PSK modulation order: helps determine spectral profile." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'PSK Type') - key_val_pair = [i for i in props if 'PSK Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Freq. Deviation ') return val class PSKTypeOption(Enum): BPSK = "BPSK" @@ -249,33 +162,25 @@ class PSKTypeOption(Enum): _16_PSK = "16-PSK" _32_PSK = "32-PSK" _64_PSK = "64-PSK" - @property - def fsk_type(self): - """FSK Type - "FSK modulation order: helps determine spectral profile." + def psk_type(self) -> PSKTypeOption: + """PSK Type + "PSK modulation order: helps determine spectral profile." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'FSK Type') - key_val_pair = [i for i in props if 'FSK Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('PSK Type') + val = self.PSKTypeOption[val] return val class FSKTypeOption(Enum): _2_FSK = "2-FSK" _4_FSK = "4-FSK" _8_FSK = "8-FSK" - @property - def qam_type(self): - """QAM Type - "QAM modulation order: helps determine spectral profile." + def fsk_type(self) -> FSKTypeOption: + """FSK Type + "FSK modulation order: helps determine spectral profile." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'QAM Type') - key_val_pair = [i for i in props if 'QAM Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('FSK Type') + val = self.FSKTypeOption[val] return val class QAMTypeOption(Enum): _4_QAM = "4-QAM" @@ -283,17 +188,13 @@ class QAMTypeOption(Enum): _64_QAM = "64-QAM" _256_QAM = "256-QAM" _1024_QAM = "1024-QAM" - @property - def apsk_type(self): - """APSK Type - "APSK modulation order: helps determine spectral profile." + def qam_type(self) -> QAMTypeOption: + """QAM Type + "QAM modulation order: helps determine spectral profile." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'APSK Type') - key_val_pair = [i for i in props if 'APSK Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('QAM Type') + val = self.QAMTypeOption[val] return val class APSKTypeOption(Enum): _4_APSK = "4-APSK" @@ -301,266 +202,169 @@ class APSKTypeOption(Enum): _64_APSK = "64-APSK" _256_APSK = "256-APSK" _1024_APSK = "1024-APSK" - + @property + def apsk_type(self) -> APSKTypeOption: + """APSK Type + "APSK modulation order: helps determine spectral profile." + " """ + val = self._get_property('APSK Type') + val = self.APSKTypeOption[val] + return val @property def start_frequency(self) -> float: """Start Frequency "First frequency for this band." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Start Frequency') - key_val_pair = [i for i in props if 'Start Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Start Frequency') return val - @property def stop_frequency(self) -> float: """Stop Frequency "Last frequency for this band." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop Frequency') - key_val_pair = [i for i in props if 'Stop Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Stop Frequency') return val - @property def channel_spacing(self) -> float: """Channel Spacing "Spacing between channels within this band." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Channel Spacing') - key_val_pair = [i for i in props if 'Channel Spacing=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Channel Spacing') return val - @property def tx_offset(self) -> float: """Tx Offset "Frequency offset between Tx and Rx channels." "Value should be less than 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx Offset') - key_val_pair = [i for i in props if 'Tx Offset=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Tx Offset') return val - @property def clock_duty_cycle(self) -> float: """Clock Duty Cycle "Clock signals duty cycle." "Value should be between 0.001 and 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Clock Duty Cycle') - key_val_pair = [i for i in props if 'Clock Duty Cycle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Clock Duty Cycle') return val - @property def clock_risefall_time(self) -> float: """Clock Rise/Fall Time "Clock signals rise/fall time." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Clock Rise/Fall Time') - key_val_pair = [i for i in props if 'Clock Rise/Fall Time=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Clock Rise/Fall Time') return val - + class SpreadingTypeOption(Enum): + LOW_SPREAD = "Low Spread" + CENTER_SPREAD = "Center Spread" + HIGH_SPREAD = "High Spread" @property - def spreading_type(self): + def spreading_type(self) -> SpreadingTypeOption: """Spreading Type "Type of spreading employed by the Spread Spectrum Clock." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spreading Type') - key_val_pair = [i for i in props if 'Spreading Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Spreading Type') + val = self.SpreadingTypeOption[val] return val - class SpreadingTypeOption(Enum): - LOW_SPREAD = "Low Spread" - CENTER_SPREAD = "Center Spread" - HIGH_SPREAD = "High Spread" - @property def spread_percentage(self) -> float: """Spread Percentage "Peak-to-peak spread percentage." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spread Percentage') - key_val_pair = [i for i in props if 'Spread Percentage=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Spread Percentage') return val - @property def imported_spectrum(self) -> str: """Imported Spectrum "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Imported Spectrum') - key_val_pair = [i for i in props if 'Imported Spectrum=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Imported Spectrum') return val - @property def raw_data_format(self) -> str: """Raw Data Format "Format of the imported raw data." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Raw Data Format') - key_val_pair = [i for i in props if 'Raw Data Format=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Raw Data Format') return val - @property def system_impedance(self) -> float: """System Impedance "System impedance for the imported data." "Value should be between 0 and 1e+06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'System Impedance') - key_val_pair = [i for i in props if 'System Impedance=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('System Impedance') return val - @property def advanced_extraction_params(self) -> bool: """Advanced Extraction Params "Show/hide advanced extraction params." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Advanced Extraction Params') - key_val_pair = [i for i in props if 'Advanced Extraction Params=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Advanced Extraction Params') return val - @property def nb_window_size(self) -> float: """NB Window Size "Window size for computing the moving average during narrowband signal detection." "Value should be greater than 3." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'NB Window Size') - key_val_pair = [i for i in props if 'NB Window Size=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('NB Window Size') return val - @property def bb_smoothing_factor(self) -> float: """BB Smoothing Factor "Reduces the number of frequency points used for the broadband noise." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BB Smoothing Factor') - key_val_pair = [i for i in props if 'BB Smoothing Factor=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('BB Smoothing Factor') return val - @property def nb_detector_threshold(self) -> float: """NB Detector Threshold "Narrowband Detector threshold standard deviation." "Value should be between 2 and 10." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'NB Detector Threshold') - key_val_pair = [i for i in props if 'NB Detector Threshold=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('NB Detector Threshold') return val - + class AlgorithmOption(Enum): + FFT = "FFT" + FOURIER_TRANSFORM = "Fourier Transform" @property - def algorithm(self): + def algorithm(self) -> AlgorithmOption: """Algorithm "Algorithm used to transform the imported time domain spectrum." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Algorithm') - key_val_pair = [i for i in props if 'Algorithm=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Algorithm') + val = self.AlgorithmOption[val] return val - class AlgorithmOption(Enum): - FFT = "FFT" - FOURIER_TRANSFORM = "Fourier Transform" - @property def start(self) -> float: """Start "Initial time of the imported spectrum." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Start') - key_val_pair = [i for i in props if 'Start=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Start') return val - @property def stop(self) -> float: """Stop "Final time of the imported time domain spectrum." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop') - key_val_pair = [i for i in props if 'Stop=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Stop') return val - @property def max_frequency(self) -> float: """Max Frequency "Frequency cutoff of the imported time domain spectrum." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Frequency') - key_val_pair = [i for i in props if 'Max Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - - @property - def window_type(self): - """Window Type - "Windowing scheme used for importing time domain spectrum." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Window Type') - key_val_pair = [i for i in props if 'Window Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Frequency') return val class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" @@ -572,108 +376,69 @@ class WindowTypeOption(Enum): LANZCOS = "Lanzcos" WELCH = "Welch" WEBER = "Weber" - + @property + def window_type(self) -> WindowTypeOption: + """Window Type + "Windowing scheme used for importing time domain spectrum." + " """ + val = self._get_property('Window Type') + val = self.WindowTypeOption[val] + return val @property def kaiser_parameter(self) -> float: """Kaiser Parameter "Shape factor applied to the transform." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Kaiser Parameter') - key_val_pair = [i for i in props if 'Kaiser Parameter=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Kaiser Parameter') return val - @property def adjust_coherent_gain(self) -> bool: """Adjust Coherent Gain "Shape factor applied to the transform." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adjust Coherent Gain') - key_val_pair = [i for i in props if 'Adjust Coherent Gain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Adjust Coherent Gain') return val - @property def data_rate(self) -> float: """Data Rate "Maximum data rate: helps determine shape of spectral profile." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Rate') - key_val_pair = [i for i in props if 'Data Rate=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Data Rate') return val - @property def _of_bits(self) -> int: """# of Bits "Length of the Pseudo Random Binary Sequence." "Value should be between 1 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'# of Bits') - key_val_pair = [i for i in props if '# of Bits=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('# of Bits') return val - @property def use_envelope(self) -> bool: """Use Envelope "Model the waveform as a worst case envelope.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Envelope') - key_val_pair = [i for i in props if 'Use Envelope=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Use Envelope') return val - @property def min_ptsnull(self) -> int: """Min Pts/Null "Minimum number of points to use between each null frequency." "Value should be between 2 and 50." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Pts/Null') - key_val_pair = [i for i in props if 'Min Pts/Null=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Min Pts/Null') return val - @property def delay_skew(self) -> float: """Delay Skew "Delay Skew of the differential signal pairs." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Delay Skew') - key_val_pair = [i for i in props if 'Delay Skew=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - - @property - def radar_type(self): - """Radar Type - "Radar type: helps determine spectral profile." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Radar Type') - key_val_pair = [i for i in props if 'Radar Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Delay Skew') return val class RadarTypeOption(Enum): CW = "CW" @@ -681,173 +446,115 @@ class RadarTypeOption(Enum): FM_PULSE = "FM Pulse" NON_FM_PULSE = "Non-FM Pulse" PHASE_CODED = "Phase Coded" - + @property + def radar_type(self) -> RadarTypeOption: + """Radar Type + "Radar type: helps determine spectral profile." + " """ + val = self._get_property('Radar Type') + val = self.RadarTypeOption[val] + return val @property def hopping_radar(self) -> bool: """Hopping Radar "True for hopping radars; false otherwise." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Hopping Radar') - key_val_pair = [i for i in props if 'Hopping Radar=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Hopping Radar') return val - @property def post_october_2020_procurement(self) -> bool: """Post October 2020 Procurement "Procurement date: helps determine spectral profile, particularly the roll-off." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Post October 2020 Procurement') - key_val_pair = [i for i in props if 'Post October 2020 Procurement=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Post October 2020 Procurement') return val - @property def hop_range_min_freq(self) -> float: """Hop Range Min Freq "Sets the minimum frequency of the hopping range." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Hop Range Min Freq') - key_val_pair = [i for i in props if 'Hop Range Min Freq=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Hop Range Min Freq') return val - @property def hop_range_max_freq(self) -> float: """Hop Range Max Freq "Sets the maximum frequency of the hopping range." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Hop Range Max Freq') - key_val_pair = [i for i in props if 'Hop Range Max Freq=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Hop Range Max Freq') return val - @property def pulse_duration(self) -> float: """Pulse Duration "Pulse duration." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Duration') - key_val_pair = [i for i in props if 'Pulse Duration=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pulse Duration') return val - @property def pulse_rise_time(self) -> float: """Pulse Rise Time "Pulse rise time." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Rise Time') - key_val_pair = [i for i in props if 'Pulse Rise Time=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pulse Rise Time') return val - @property def pulse_fall_time(self) -> float: """Pulse Fall Time "Pulse fall time." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Fall Time') - key_val_pair = [i for i in props if 'Pulse Fall Time=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pulse Fall Time') return val - @property def pulse_repetition_rate(self) -> float: """Pulse Repetition Rate "Pulse repetition rate [pulses/sec]." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Repetition Rate') - key_val_pair = [i for i in props if 'Pulse Repetition Rate=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pulse Repetition Rate') return val - @property def number_of_chips(self) -> float: """Number of Chips "Total number of chips (subpulses) contained in the pulse." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Chips') - key_val_pair = [i for i in props if 'Number of Chips=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Number of Chips') return val - @property def pulse_compression_ratio(self) -> float: """Pulse Compression Ratio "Pulse compression ratio." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pulse Compression Ratio') - key_val_pair = [i for i in props if 'Pulse Compression Ratio=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pulse Compression Ratio') return val - @property def fm_chirp_period(self) -> float: """FM Chirp Period "FM Chirp period for the FM/CW radar." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'FM Chirp Period') - key_val_pair = [i for i in props if 'FM Chirp Period=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('FM Chirp Period') return val - @property def fm_freq_deviation(self) -> float: """FM Freq Deviation "Total frequency deviation for the carrier frequency for the FM/CW radar." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'FM Freq Deviation') - key_val_pair = [i for i in props if 'FM Freq Deviation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('FM Freq Deviation') return val - @property def fm_freq_dev_bandwidth(self) -> float: """FM Freq Dev Bandwidth "Bandwidth of freq deviation for FM modulated pulsed waveform (total freq shift during pulse duration)." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'FM Freq Dev Bandwidth') - key_val_pair = [i for i in props if 'FM Freq Dev Bandwidth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('FM Freq Dev Bandwidth') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py index 3de43c7fd2b..a749fc5342c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyBandFolder(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyBandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py index 50a84497335..486b9da3fe6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyCADNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyCADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -15,23 +19,7 @@ def file(self) -> str: "Name of the imported CAD file." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'File') - key_val_pair = [i for i in props if 'File=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - - @property - def model_type(self): - """Model Type - "Select type of parametric model to create." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Model Type') - key_val_pair = [i for i in props if 'Model Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('File') return val class ModelTypeOption(Enum): PLATE = "Plate" @@ -48,503 +36,323 @@ class ModelTypeOption(Enum): PRISM = "Prism" TAPERED_PRISM = "Tapered Prism" TOPHAT = "Tophat" - + @property + def model_type(self) -> ModelTypeOption: + """Model Type + "Select type of parametric model to create." + " """ + val = self._get_property('Model Type') + val = self.ModelTypeOption[val] + return val @property def length(self) -> float: """Length "Length of the model." "Value should be greater than 1e-06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Length') - key_val_pair = [i for i in props if 'Length=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Length') return val - @property def width(self) -> float: """Width "Width of the model." "Value should be greater than 1e-06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Width') - key_val_pair = [i for i in props if 'Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Width') return val - @property def height(self) -> float: """Height "Height of the model." "Value should be greater than 1e-06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Height') - key_val_pair = [i for i in props if 'Height=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Height') return val - @property def angle(self) -> float: """Angle "Angle (deg) between the plates." "Value should be between 0 and 360." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Angle') - key_val_pair = [i for i in props if 'Angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Angle') return val - @property def top_side(self) -> float: """Top Side "Side of the top of a equilateral triangular cylinder model." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Top Side') - key_val_pair = [i for i in props if 'Top Side=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Top Side') return val - @property def top_radius(self) -> float: """Top Radius "Radius of the top of a tapered cylinder model." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Top Radius') - key_val_pair = [i for i in props if 'Top Radius=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Top Radius') return val - @property def side(self) -> float: """Side "Side of the equilateral triangular cylinder." "Value should be greater than 1e-06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Side') - key_val_pair = [i for i in props if 'Side=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Side') return val - @property def radius(self) -> float: """Radius "Radius of the sphere or cylinder." "Value should be greater than 1e-06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Radius') - key_val_pair = [i for i in props if 'Radius=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Radius') return val - @property def base_radius(self) -> float: """Base Radius "Radius of the base of a tophat model." "Value should be greater than 1e-06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Base Radius') - key_val_pair = [i for i in props if 'Base Radius=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Base Radius') return val - @property def center_radius(self) -> float: """Center Radius "Radius of the raised portion of a tophat model." "Value should be greater than 1e-06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Center Radius') - key_val_pair = [i for i in props if 'Center Radius=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Center Radius') return val - @property def x_axis_ellipsoid_radius(self) -> float: """X Axis Ellipsoid Radius "Ellipsoid semi-principal radius for the X axis." "Value should be greater than 1e-06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X Axis Ellipsoid Radius') - key_val_pair = [i for i in props if 'X Axis Ellipsoid Radius=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('X Axis Ellipsoid Radius') return val - @property def y_axis_ellipsoid_radius(self) -> float: """Y Axis Ellipsoid Radius "Ellipsoid semi-principal radius for the Y axis." "Value should be greater than 1e-06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y Axis Ellipsoid Radius') - key_val_pair = [i for i in props if 'Y Axis Ellipsoid Radius=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Y Axis Ellipsoid Radius') return val - @property def z_axis_ellipsoid_radius(self) -> float: """Z Axis Ellipsoid Radius "Ellipsoid semi-principal radius for the Z axis." "Value should be greater than 1e-06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Z Axis Ellipsoid Radius') - key_val_pair = [i for i in props if 'Z Axis Ellipsoid Radius=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Z Axis Ellipsoid Radius') return val - @property def focal_length(self) -> float: """Focal Length "Focal length of a parabolic reflector (f = 1/4a where y=ax^2)." "Value should be greater than 1e-06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Focal Length') - key_val_pair = [i for i in props if 'Focal Length=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Focal Length') return val - @property def offset(self) -> float: """Offset "Offset of parabolic reflector." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Offset') - key_val_pair = [i for i in props if 'Offset=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Offset') return val - @property def x_direction_taper(self) -> float: """X Direction Taper "Amount (%) that the prism tapers in the X dimension from one end to the other." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X Direction Taper') - key_val_pair = [i for i in props if 'X Direction Taper=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('X Direction Taper') return val - @property def y_direction_taper(self) -> float: """Y Direction Taper "Amount (%) that the prism tapers in the Y dimension from one end to the other." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y Direction Taper') - key_val_pair = [i for i in props if 'Y Direction Taper=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Y Direction Taper') return val - @property def prism_direction(self): """Prism Direction "Direction vector between the center of the base and center of the top." "Value should be x/y/z, delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Prism Direction') - key_val_pair = [i for i in props if 'Prism Direction=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Prism Direction') return val - @property def closed_top(self) -> bool: """Closed Top "Control whether the top of the model is closed." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Closed Top') - key_val_pair = [i for i in props if 'Closed Top=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Closed Top') return val - @property def closed_base(self) -> bool: """Closed Base "Control whether the base of the model is closed." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Closed Base') - key_val_pair = [i for i in props if 'Closed Base=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Closed Base') return val - @property def mesh_density(self) -> int: """Mesh Density "Unitless mesh density parameter where higher value improves mesh smoothness." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mesh Density') - key_val_pair = [i for i in props if 'Mesh Density=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Mesh Density') return val - @property def use_symmetric_mesh(self) -> bool: """Use Symmetric Mesh "Convert quads to a symmetric triangle mesh by adding a center point (4 triangles per quad instead of 2)." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Symmetric Mesh') - key_val_pair = [i for i in props if 'Use Symmetric Mesh=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Use Symmetric Mesh') return val - + class MeshOptionOption(Enum): + IMPROVED = "Improved" + LEGACY = "Legacy" @property - def mesh_option(self): + def mesh_option(self) -> MeshOptionOption: """Mesh Option "Select from different meshing options." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mesh Option') - key_val_pair = [i for i in props if 'Mesh Option=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Mesh Option') + val = self.MeshOptionOption[val] return val - class MeshOptionOption(Enum): - IMPROVED = "Improved" - LEGACY = "Legacy" - @property def coating_index(self) -> int: """Coating Index "Coating index for the parametric model primitive." "Value should be between 0 and 100000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Coating Index') - key_val_pair = [i for i in props if 'Coating Index=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Coating Index') return val - @property def show_relative_coordinates(self) -> bool: """Show Relative Coordinates "Show CAD model node position and orientation in parent-node coords (False) or relative to placement coords (True)." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Relative Coordinates') - key_val_pair = [i for i in props if 'Show Relative Coordinates=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Show Relative Coordinates') return val - @property def position(self): """Position "Set position of the CAD node in parent-node coordinates." "Value should be x/y/z, delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') - key_val_pair = [i for i in props if 'Position=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Position') return val - @property def relative_position(self): """Relative Position "Set position of the CAD model node relative to placement coordinates." "Value should be x/y/z, delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Position') - key_val_pair = [i for i in props if 'Relative Position=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Relative Position') return val - + class OrientationModeOption(Enum): + RPYDEG = "Roll-Pitch-Yaw" + AETDEG = "Az-El-Twist" @property - def orientation_mode(self): + def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation Mode') - key_val_pair = [i for i in props if 'Orientation Mode=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Orientation Mode') + val = self.OrientationModeOption[val] return val - class OrientationModeOption(Enum): - RPYDEG = "Roll-Pitch-Yaw" - AETDEG = "Az-El-Twist" - @property def orientation(self): """Orientation "Set orientation of the CAD node in parent-node coordinates." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation') - key_val_pair = [i for i in props if 'Orientation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Orientation') return val - @property def relative_orientation(self): """Relative Orientation "Set orientation of the CAD model node relative to placement coordinates." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Orientation') - key_val_pair = [i for i in props if 'Relative Orientation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Relative Orientation') return val - @property def visible(self) -> bool: """Visible "Toggle (on/off) display of CAD model in 3-D window." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - key_val_pair = [i for i in props if 'Visible=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - - @property - def render_mode(self): - """Render Mode - "Select drawing style for surfaces." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Render Mode') - key_val_pair = [i for i in props if 'Render Mode=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Visible') return val class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" WIRE_FRAME = "Wire-Frame" HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" OUTLINE = "Outline" - + @property + def render_mode(self) -> RenderModeOption: + """Render Mode + "Select drawing style for surfaces." + " """ + val = self._get_property('Render Mode') + val = self.RenderModeOption[val] + return val @property def show_axes(self) -> bool: """Show Axes "Toggle (on/off) display of CAD model coordinate axes in 3-D window." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Axes') - key_val_pair = [i for i in props if 'Show Axes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Show Axes') return val - @property def min(self): """Min "Minimum x,y,z extents of CAD model in local coordinates." "Value should be x/y/z, delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min') - key_val_pair = [i for i in props if 'Min=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Min') return val - @property def max(self): """Max "Maximum x,y,z extents of CAD model in local coordinates." "Value should be x/y/z, delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max') - key_val_pair = [i for i in props if 'Max=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max') return val - @property def number_of_surfaces(self) -> int: """Number of Surfaces "Number of surfaces in the model." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Surfaces') - key_val_pair = [i for i in props if 'Number of Surfaces=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Number of Surfaces') return val - @property def color(self): """Color "Defines the CAD nodes color." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Color') - key_val_pair = [i for i in props if 'Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Color') return val - @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py index bc167e0dc5e..dd1d7545426 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyCable(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyCable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def filename(self) -> str: @@ -10,128 +14,79 @@ def filename(self) -> str: "Name of file defining the outboard component." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - key_val_pair = [i for i in props if 'Filename=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Filename') return val - @property def noise_temperature(self) -> float: """Noise Temperature "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - key_val_pair = [i for i in props if 'Noise Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Temperature') return val - @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val - + class TypeOption(Enum): + BYFILE = "By File" + CONSTANT = "Constant Loss" + COAXIAL = "Coaxial Cable" @property - def type(self): + def type(self) -> TypeOption: """Type "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - key_val_pair = [i for i in props if 'Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Type') + val = self.TypeOption[val] return val - class TypeOption(Enum): - BYFILE = "By File" - CONSTANT = "Constant Loss" - COAXIAL = "Coaxial Cable" - @property def length(self) -> float: """Length "Length of cable." "Value should be between 0 and 500." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Length') - key_val_pair = [i for i in props if 'Length=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Length') return val - @property def loss_per_length(self) -> float: """Loss Per Length "Cable loss per unit length (dB/meter)." "Value should be between 0 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Loss Per Length') - key_val_pair = [i for i in props if 'Loss Per Length=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Loss Per Length') return val - @property def measurement_length(self) -> float: """Measurement Length "Length of the cable used for the measurements." "Value should be between 0 and 500." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measurement Length') - key_val_pair = [i for i in props if 'Measurement Length=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Measurement Length') return val - @property def resistive_loss_constant(self) -> float: """Resistive Loss Constant "Coaxial cable resistive loss constant." "Value should be between 0 and 2." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Resistive Loss Constant') - key_val_pair = [i for i in props if 'Resistive Loss Constant=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Resistive Loss Constant') return val - @property def dielectric_loss_constant(self) -> float: """Dielectric Loss Constant "Coaxial cable dielectric loss constant." "Value should be between 0 and 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Dielectric Loss Constant') - key_val_pair = [i for i in props if 'Dielectric Loss Constant=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Dielectric Loss Constant') return val - @property def warnings(self) -> str: """Warnings "Warning(s) for this node." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - key_val_pair = [i for i in props if 'Warnings=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Warnings') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py index 06af14db333..5a3b4fcae2a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyCirculator(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyCirculator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def filename(self) -> str: @@ -10,194 +14,121 @@ def filename(self) -> str: "Name of file defining the Isolator/Circulator." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - key_val_pair = [i for i in props if 'Filename=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Filename') return val - @property def noise_temperature(self) -> float: """Noise Temperature "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - key_val_pair = [i for i in props if 'Noise Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Temperature') return val - @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val - + class TypeOption(Enum): + BYFILE = "By File" + PARAMETRIC = "Parametric" @property - def type(self): + def type(self) -> TypeOption: """Type "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - key_val_pair = [i for i in props if 'Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Type') + val = self.TypeOption[val] return val - class TypeOption(Enum): - BYFILE = "By File" - PARAMETRIC = "Parametric" - + class Port1LocationOption(Enum): + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" @property - def port_1_location(self): + def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the circulator.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port 1 Location') - key_val_pair = [i for i in props if 'Port 1 Location=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Port 1 Location') + val = self.Port1LocationOption[val] return val - class Port1LocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" - @property def insertion_loss(self) -> float: """Insertion Loss "Circulator in-band loss in forward direction.." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') - key_val_pair = [i for i in props if 'Insertion Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Insertion Loss') return val - @property def finite_reverse_isolation(self) -> bool: """Finite Reverse Isolation "Use a finite reverse isolation. If disabled, the circulator model is ideal (infinite reverse isolation).." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Reverse Isolation') - key_val_pair = [i for i in props if 'Finite Reverse Isolation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Finite Reverse Isolation') return val - @property def reverse_isolation(self) -> float: """Reverse Isolation "Circulator reverse isolation (i.e., loss in the reverse direction).." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reverse Isolation') - key_val_pair = [i for i in props if 'Reverse Isolation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Reverse Isolation') return val - @property def finite_bandwidth(self) -> bool: """Finite Bandwidth "Use a finite bandwidth. If disabled, the circulator model is ideal (infinite bandwidth).." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Bandwidth') - key_val_pair = [i for i in props if 'Finite Bandwidth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Finite Bandwidth') return val - @property def out_of_band_attenuation(self) -> float: """Out-of-band Attenuation "Out-of-band loss (attenuation)." "Value should be between 0 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out-of-band Attenuation') - key_val_pair = [i for i in props if 'Out-of-band Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Out-of-band Attenuation') return val - @property def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') - key_val_pair = [i for i in props if 'Lower Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Stop Band') return val - @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') - key_val_pair = [i for i in props if 'Lower Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Cutoff') return val - @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') - key_val_pair = [i for i in props if 'Higher Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Cutoff') return val - @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') - key_val_pair = [i for i in props if 'Higher Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Stop Band') return val - @property def warnings(self) -> str: """Warnings "Warning(s) for this node." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - key_val_pair = [i for i in props if 'Warnings=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Warnings') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py index 8cc35a64db3..8901143637e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyCouplingLinkNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -15,10 +19,13 @@ def enabled(self) -> bool: "Enable/Disable coupling link." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') + return val + @property + def ports(self): + """Ports + "Maps each port in the link to an antenna in the project." + "A list of values." + " """ + val = self._get_property('Ports') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py index b376bd8241c..9eee5e56f5a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyCouplingsNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyCouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def minimum_allowed_coupling(self) -> float: @@ -10,35 +14,20 @@ def minimum_allowed_coupling(self) -> float: "Global minimum allowed coupling value. All computed coupling within this project will be >= this value." "Value should be between -1000 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minimum Allowed Coupling') - key_val_pair = [i for i in props if 'Minimum Allowed Coupling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Minimum Allowed Coupling') return val - @property def global_default_coupling(self) -> float: """Global Default Coupling "Default antenna-to-antenna coupling loss value." "Value should be between -1000 and 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Global Default Coupling') - key_val_pair = [i for i in props if 'Global Default Coupling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Global Default Coupling') return val - @property def antenna_tags(self) -> str: """Antenna Tags "All tags currently used by all antennas in the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna Tags') - key_val_pair = [i for i in props if 'Antenna Tags=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Antenna Tags') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py index 402e15c0d0f..35d992e800e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py @@ -1,62 +1,71 @@ -from ..GenericEmitNode import * -class ReadOnlyCustomCouplingNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): """The parent of this emit node.""" return self._parent + @property + def table_data(self): + """ Table" + "Table consists of 2 columns." + "Frequency: + " Value should be between 1 and 1e+11." + "Value (dB): + " Value should be between -1000 and 0." + """ + return self._get_table_data() + @property def enabled(self) -> bool: """Enabled "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') + return val + @property + def antenna_a(self) -> EmitNode: + """Antenna A + "First antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Antenna A') + return val + @property + def antenna_b(self) -> EmitNode: + """Antenna B + "Second antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Antenna B') return val - @property def enable_refinement(self) -> bool: """Enable Refinement "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - key_val_pair = [i for i in props if 'Enable Refinement=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Refinement') return val - @property def adaptive_sampling(self) -> bool: """Adaptive Sampling "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Adaptive Sampling') return val - @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - key_val_pair = [i for i in props if 'Refinement Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Refinement Domain') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py index 3d358822780..09f9ec84714 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py @@ -1,46 +1,36 @@ -from ..GenericEmitNode import * -class ReadOnlyEmitSceneNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val - + class GroundPlaneNormalOption(Enum): + XAXIS = "X Axis" + YAXIS = "Y Axis" + ZAXIS = "Z Axis" @property - def ground_plane_normal(self): + def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal "Specifies the axis of the normal to the ground plane." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Ground Plane Normal') - key_val_pair = [i for i in props if 'Ground Plane Normal=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Ground Plane Normal') + val = self.GroundPlaneNormalOption[val] return val - class GroundPlaneNormalOption(Enum): - XAXIS = "X Axis" - YAXIS = "Y Axis" - ZAXIS = "Z Axis" - @property def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'GP Position Along Normal') - key_val_pair = [i for i in props if 'GP Position Along Normal=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('GP Position Along Normal') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py index 4ffaa23d6b0..2116c1fe7a2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyErcegCouplingNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -15,250 +19,171 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') + return val + @property + def base_antenna(self) -> EmitNode: + """Base Antenna + "First antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Base Antenna') + return val + @property + def mobile_antenna(self) -> EmitNode: + """Mobile Antenna + "Second antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Mobile Antenna') return val - @property def enable_refinement(self) -> bool: """Enable Refinement "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - key_val_pair = [i for i in props if 'Enable Refinement=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Refinement') return val - @property def adaptive_sampling(self) -> bool: """Adaptive Sampling "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Adaptive Sampling') return val - @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - key_val_pair = [i for i in props if 'Refinement Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Refinement Domain') return val - + class TerrainCategoryOption(Enum): + TYPEA = "Type A" + TYPEB = "Type B" + TYPEC = "Type C" @property - def terrain_category(self): + def terrain_category(self) -> TerrainCategoryOption: """Terrain Category "Specify the terrain category type for the Erceg model." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Terrain Category') - key_val_pair = [i for i in props if 'Terrain Category=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Terrain Category') + val = self.TerrainCategoryOption[val] return val - class TerrainCategoryOption(Enum): - TYPEA = "Type A" - TYPEB = "Type B" - TYPEC = "Type C" - @property def custom_fading_margin(self) -> float: """Custom Fading Margin "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') - key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Fading Margin') return val - @property def polarization_mismatch(self) -> float: """Polarization Mismatch "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') - key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Mismatch') return val - @property def pointing_error_loss(self) -> float: """Pointing Error Loss "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') - key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - - @property - def fading_type(self): - """Fading Type - "Specify the type of fading to include." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') - key_val_pair = [i for i in props if 'Fading Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pointing Error Loss') return val class FadingTypeOption(Enum): NOFADING = "None" FASTFADINGONLY = "Fast Fading Only" SHADOWINGONLY = "Shadowing Only" SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" - + @property + def fading_type(self) -> FadingTypeOption: + """Fading Type + "Specify the type of fading to include." + " """ + val = self._get_property('Fading Type') + val = self.FadingTypeOption[val] + return val @property def fading_availability(self) -> float: """Fading Availability "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') - key_val_pair = [i for i in props if 'Fading Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Fading Availability') return val - @property def std_deviation(self) -> float: """Std Deviation "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') - key_val_pair = [i for i in props if 'Std Deviation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Std Deviation') return val - @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') - key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Rain Attenuation') return val - @property def rain_availability(self) -> float: """Rain Availability "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') - key_val_pair = [i for i in props if 'Rain Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Availability') return val - @property def rain_rate(self) -> float: """Rain Rate "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') - key_val_pair = [i for i in props if 'Rain Rate=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Rate') return val - @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') - key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Tilt Angle') return val - @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') - key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Atmospheric Absorption') return val - @property def temperature(self) -> float: """Temperature "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') - key_val_pair = [i for i in props if 'Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Temperature') return val - @property def total_air_pressure(self) -> float: """Total Air Pressure "Total air pressure." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') - key_val_pair = [i for i in props if 'Total Air Pressure=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Total Air Pressure') return val - @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration "Water vapor concentration." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') - key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Water Vapor Concentration') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py index 9861ae9140f..33e4af7d952 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyFilter(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyFilter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def filename(self) -> str: @@ -10,48 +14,22 @@ def filename(self) -> str: "Name of file defining the outboard component." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - key_val_pair = [i for i in props if 'Filename=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Filename') return val - @property def noise_temperature(self) -> float: """Noise Temperature "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - key_val_pair = [i for i in props if 'Noise Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Temperature') return val - @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - - @property - def type(self): - """Type - "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - key_val_pair = [i for i in props if 'Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val class TypeOption(Enum): BYFILE = "By File" @@ -61,250 +39,162 @@ class TypeOption(Enum): BANDSTOP = "Band Stop" TUNABLEBANDPASS = "Tunable Bandpass" TUNABLEBANDSTOP = "Tunable Bandstop" - + @property + def type(self) -> TypeOption: + """Type + "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." + " """ + val = self._get_property('Type') + val = self.TypeOption[val] + return val @property def insertion_loss(self) -> float: """Insertion Loss "Filter pass band loss." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') - key_val_pair = [i for i in props if 'Insertion Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Insertion Loss') return val - @property def stop_band_attenuation(self) -> float: """Stop band Attenuation "Filter stop band loss (attenuation)." "Value should be less than 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop band Attenuation') - key_val_pair = [i for i in props if 'Stop band Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Stop band Attenuation') return val - @property def max_pass_band(self) -> float: """Max Pass Band "Maximum pass band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Pass Band') - key_val_pair = [i for i in props if 'Max Pass Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Pass Band') return val - @property def min_stop_band(self) -> float: """Min Stop Band "Minimum stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Stop Band') - key_val_pair = [i for i in props if 'Min Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Min Stop Band') return val - @property def max_stop_band(self) -> float: """Max Stop Band "Maximum stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Stop Band') - key_val_pair = [i for i in props if 'Max Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Stop Band') return val - @property def min_pass_band(self) -> float: """Min Pass Band "Minimum pass band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Pass Band') - key_val_pair = [i for i in props if 'Min Pass Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Min Pass Band') return val - @property def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') - key_val_pair = [i for i in props if 'Lower Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Stop Band') return val - @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') - key_val_pair = [i for i in props if 'Lower Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Cutoff') return val - @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') - key_val_pair = [i for i in props if 'Higher Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Cutoff') return val - @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') - key_val_pair = [i for i in props if 'Higher Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Stop Band') return val - @property def lower_cutoff_(self) -> float: """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff ') - key_val_pair = [i for i in props if 'Lower Cutoff =' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Cutoff ') return val - @property def lower_stop_band_(self) -> float: """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band ') - key_val_pair = [i for i in props if 'Lower Stop Band =' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Stop Band ') return val - @property def higher_stop_band_(self) -> float: """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band ') - key_val_pair = [i for i in props if 'Higher Stop Band =' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Stop Band ') return val - @property def higher_cutoff_(self) -> float: """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff ') - key_val_pair = [i for i in props if 'Higher Cutoff =' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Cutoff ') return val - @property def lowest_tuned_frequency_(self) -> float: """Lowest Tuned Frequency "Lowest tuned frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lowest Tuned Frequency ') - key_val_pair = [i for i in props if 'Lowest Tuned Frequency =' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lowest Tuned Frequency ') return val - @property def highest_tuned_frequency_(self) -> float: """Highest Tuned Frequency "Highest tuned frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Highest Tuned Frequency ') - key_val_pair = [i for i in props if 'Highest Tuned Frequency =' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Highest Tuned Frequency ') return val - @property def percent_bandwidth(self) -> float: """Percent Bandwidth "Tunable filter 3-dB bandwidth." "Value should be between 0.001 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Percent Bandwidth') - key_val_pair = [i for i in props if 'Percent Bandwidth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Percent Bandwidth') return val - @property def shape_factor(self) -> float: """Shape Factor "Ratio defining the filter rolloff." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Shape Factor') - key_val_pair = [i for i in props if 'Shape Factor=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Shape Factor') return val - @property def warnings(self) -> str: """Warnings "Warning(s) for this node." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - key_val_pair = [i for i in props if 'Warnings=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Warnings') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py index f7bc70133f7..38c1bb1c648 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyFiveGChannelModel(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -15,291 +19,198 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') + return val + @property + def base_antenna(self) -> EmitNode: + """Base Antenna + "First antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Base Antenna') + return val + @property + def mobile_antenna(self) -> EmitNode: + """Mobile Antenna + "Second antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Mobile Antenna') return val - @property def enable_refinement(self) -> bool: """Enable Refinement "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - key_val_pair = [i for i in props if 'Enable Refinement=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Refinement') return val - @property def adaptive_sampling(self) -> bool: """Adaptive Sampling "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Adaptive Sampling') return val - @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - key_val_pair = [i for i in props if 'Refinement Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Refinement Domain') return val - + class EnvironmentOption(Enum): + URBANMICROCELL = "Urban Microcell" + URBANMACROCELL = "Urban Macrocell" + RURALMACROCELL = "Rural Macrocell" @property - def environment(self): + def environment(self) -> EnvironmentOption: """Environment "Specify the environment for the 5G channel model." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Environment') - key_val_pair = [i for i in props if 'Environment=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Environment') + val = self.EnvironmentOption[val] return val - class EnvironmentOption(Enum): - URBANMICROCELL = "Urban Microcell" - URBANMACROCELL = "Urban Macrocell" - RURALMACROCELL = "Rural Macrocell" - @property def los(self) -> bool: """LOS "True if the operating environment is line-of-sight." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'LOS') - key_val_pair = [i for i in props if 'LOS=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('LOS') return val - @property def include_bpl(self) -> bool: """Include BPL "Includes building penetration loss if true." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include BPL') - key_val_pair = [i for i in props if 'Include BPL=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include BPL') return val - + class NYUBPLModelOption(Enum): + LOWLOSSMODEL = "Low-loss model" + HIGHLOSSMODEL = "High-loss model" @property - def nyu_bpl_model(self): + def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model "Specify the NYU Building Penetration Loss model." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'NYU BPL Model') - key_val_pair = [i for i in props if 'NYU BPL Model=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('NYU BPL Model') + val = self.NYUBPLModelOption[val] return val - class NYUBPLModelOption(Enum): - LOWLOSSMODEL = "Low-loss model" - HIGHLOSSMODEL = "High-loss model" - @property def custom_fading_margin(self) -> float: """Custom Fading Margin "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') - key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Fading Margin') return val - @property def polarization_mismatch(self) -> float: """Polarization Mismatch "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') - key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Mismatch') return val - @property def pointing_error_loss(self) -> float: """Pointing Error Loss "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') - key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - - @property - def fading_type(self): - """Fading Type - "Specify the type of fading to include." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') - key_val_pair = [i for i in props if 'Fading Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pointing Error Loss') return val class FadingTypeOption(Enum): NOFADING = "None" FASTFADINGONLY = "Fast Fading Only" SHADOWINGONLY = "Shadowing Only" SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" - + @property + def fading_type(self) -> FadingTypeOption: + """Fading Type + "Specify the type of fading to include." + " """ + val = self._get_property('Fading Type') + val = self.FadingTypeOption[val] + return val @property def fading_availability(self) -> float: """Fading Availability "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') - key_val_pair = [i for i in props if 'Fading Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Fading Availability') return val - @property def std_deviation(self) -> float: """Std Deviation "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') - key_val_pair = [i for i in props if 'Std Deviation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Std Deviation') return val - @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') - key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Rain Attenuation') return val - @property def rain_availability(self) -> float: """Rain Availability "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') - key_val_pair = [i for i in props if 'Rain Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Availability') return val - @property def rain_rate(self) -> float: """Rain Rate "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') - key_val_pair = [i for i in props if 'Rain Rate=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Rate') return val - @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') - key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Tilt Angle') return val - @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') - key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Atmospheric Absorption') return val - @property def temperature(self) -> float: """Temperature "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') - key_val_pair = [i for i in props if 'Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Temperature') return val - @property def total_air_pressure(self) -> float: """Total Air Pressure "Total air pressure." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') - key_val_pair = [i for i in props if 'Total Air Pressure=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Total Air Pressure') return val - @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration "Water vapor concentration." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') - key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Water Vapor Concentration') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py index 6b55834984e..852e22b9f31 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyHataCouplingNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -15,251 +19,172 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') + return val + @property + def base_antenna(self) -> EmitNode: + """Base Antenna + "First antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Base Antenna') + return val + @property + def mobile_antenna(self) -> EmitNode: + """Mobile Antenna + "Second antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Mobile Antenna') return val - @property def enable_refinement(self) -> bool: """Enable Refinement "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - key_val_pair = [i for i in props if 'Enable Refinement=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Refinement') return val - @property def adaptive_sampling(self) -> bool: """Adaptive Sampling "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Adaptive Sampling') return val - @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - key_val_pair = [i for i in props if 'Refinement Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - - @property - def environment(self): - """Environment - "Specify the environment type for the Hata model." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Environment') - key_val_pair = [i for i in props if 'Environment=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Refinement Domain') return val class EnvironmentOption(Enum): LARGECITY = "Large City" SMALLMEDCITY = "Small/Medium City" SUBURBAN = "Suburban" RURAL = "Rural" - + @property + def environment(self) -> EnvironmentOption: + """Environment + "Specify the environment type for the Hata model." + " """ + val = self._get_property('Environment') + val = self.EnvironmentOption[val] + return val @property def custom_fading_margin(self) -> float: """Custom Fading Margin "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') - key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Fading Margin') return val - @property def polarization_mismatch(self) -> float: """Polarization Mismatch "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') - key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Mismatch') return val - @property def pointing_error_loss(self) -> float: """Pointing Error Loss "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') - key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - - @property - def fading_type(self): - """Fading Type - "Specify the type of fading to include." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') - key_val_pair = [i for i in props if 'Fading Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pointing Error Loss') return val class FadingTypeOption(Enum): NOFADING = "None" FASTFADINGONLY = "Fast Fading Only" SHADOWINGONLY = "Shadowing Only" SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" - + @property + def fading_type(self) -> FadingTypeOption: + """Fading Type + "Specify the type of fading to include." + " """ + val = self._get_property('Fading Type') + val = self.FadingTypeOption[val] + return val @property def fading_availability(self) -> float: """Fading Availability "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') - key_val_pair = [i for i in props if 'Fading Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Fading Availability') return val - @property def std_deviation(self) -> float: """Std Deviation "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') - key_val_pair = [i for i in props if 'Std Deviation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Std Deviation') return val - @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') - key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Rain Attenuation') return val - @property def rain_availability(self) -> float: """Rain Availability "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') - key_val_pair = [i for i in props if 'Rain Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Availability') return val - @property def rain_rate(self) -> float: """Rain Rate "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') - key_val_pair = [i for i in props if 'Rain Rate=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Rate') return val - @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') - key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Tilt Angle') return val - @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') - key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Atmospheric Absorption') return val - @property def temperature(self) -> float: """Temperature "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') - key_val_pair = [i for i in props if 'Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Temperature') return val - @property def total_air_pressure(self) -> float: """Total Air Pressure "Total air pressure." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') - key_val_pair = [i for i in props if 'Total Air Pressure=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Total Air Pressure') return val - @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration "Water vapor concentration." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') - key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Water Vapor Concentration') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py index b61e27d83e4..0a7dffcb612 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py @@ -1,75 +1,75 @@ -from ..GenericEmitNode import * -class ReadOnlyIndoorPropagationCouplingNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): """The parent of this emit node.""" return self._parent + @property + def table_data(self): + """ Table" + "Table consists of 3 columns." + "Frequency: + " Value should be between 1 and 1e+11." + "Power Loss Coefficient: + " Value should be between 0 and 100." + "Floor Penetration Loss (dB): + " Value should be between 0 and 1000." + """ + return self._get_table_data() + @property def enabled(self) -> bool: """Enabled "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') + return val + @property + def antenna_a(self) -> EmitNode: + """Antenna A + "First antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Antenna A') + return val + @property + def antenna_b(self) -> EmitNode: + """Antenna B + "Second antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Antenna B') return val - @property def enable_refinement(self) -> bool: """Enable Refinement "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - key_val_pair = [i for i in props if 'Enable Refinement=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Refinement') return val - @property def adaptive_sampling(self) -> bool: """Adaptive Sampling "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Adaptive Sampling') return val - @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - key_val_pair = [i for i in props if 'Refinement Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - - @property - def building_type(self): - """Building Type - "Specify the building type for the Indoor Propagation model." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Building Type') - key_val_pair = [i for i in props if 'Building Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Refinement Domain') return val class BuildingTypeOption(Enum): RESIDENTIALAPARTMENT = "Residential Apartment" @@ -77,203 +77,136 @@ class BuildingTypeOption(Enum): OFFICEBUILDING = "Office Building" COMMERCIALBUILDING = "Commercial Building" CUSTOMBUILDING = "Custom Building" - + @property + def building_type(self) -> BuildingTypeOption: + """Building Type + "Specify the building type for the Indoor Propagation model." + " """ + val = self._get_property('Building Type') + val = self.BuildingTypeOption[val] + return val @property def number_of_floors(self) -> int: """Number of Floors "The number of floors separating the antennas.." "Value should be between 1 and 3." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Floors') - key_val_pair = [i for i in props if 'Number of Floors=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Number of Floors') return val - @property def custom_fading_margin(self) -> float: """Custom Fading Margin "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') - key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Fading Margin') return val - @property def polarization_mismatch(self) -> float: """Polarization Mismatch "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') - key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Mismatch') return val - @property def pointing_error_loss(self) -> float: """Pointing Error Loss "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') - key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - - @property - def fading_type(self): - """Fading Type - "Specify the type of fading to include." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') - key_val_pair = [i for i in props if 'Fading Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pointing Error Loss') return val class FadingTypeOption(Enum): NOFADING = "None" FASTFADINGONLY = "Fast Fading Only" SHADOWINGONLY = "Shadowing Only" SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" - + @property + def fading_type(self) -> FadingTypeOption: + """Fading Type + "Specify the type of fading to include." + " """ + val = self._get_property('Fading Type') + val = self.FadingTypeOption[val] + return val @property def fading_availability(self) -> float: """Fading Availability "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') - key_val_pair = [i for i in props if 'Fading Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Fading Availability') return val - @property def std_deviation(self) -> float: """Std Deviation "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') - key_val_pair = [i for i in props if 'Std Deviation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Std Deviation') return val - @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') - key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Rain Attenuation') return val - @property def rain_availability(self) -> float: """Rain Availability "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') - key_val_pair = [i for i in props if 'Rain Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Availability') return val - @property def rain_rate(self) -> float: """Rain Rate "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') - key_val_pair = [i for i in props if 'Rain Rate=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Rate') return val - @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') - key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Tilt Angle') return val - @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') - key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Atmospheric Absorption') return val - @property def temperature(self) -> float: """Temperature "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') - key_val_pair = [i for i in props if 'Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Temperature') return val - @property def total_air_pressure(self) -> float: """Total Air Pressure "Total air pressure." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') - key_val_pair = [i for i in props if 'Total Air Pressure=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Total Air Pressure') return val - @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration "Water vapor concentration." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') - key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Water Vapor Concentration') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py index 6c78f086038..e2b45762f64 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyIsolator(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyIsolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def filename(self) -> str: @@ -10,194 +14,121 @@ def filename(self) -> str: "Name of file defining the outboard component." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - key_val_pair = [i for i in props if 'Filename=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Filename') return val - @property def noise_temperature(self) -> float: """Noise Temperature "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - key_val_pair = [i for i in props if 'Noise Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Temperature') return val - @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val - + class TypeOption(Enum): + BYFILE = "By File" + PARAMETRIC = "Parametric" @property - def type(self): + def type(self) -> TypeOption: """Type "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - key_val_pair = [i for i in props if 'Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Type') + val = self.TypeOption[val] return val - class TypeOption(Enum): - BYFILE = "By File" - PARAMETRIC = "Parametric" - + class Port1LocationOption(Enum): + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" @property - def port_1_location(self): + def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the isolator.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port 1 Location') - key_val_pair = [i for i in props if 'Port 1 Location=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Port 1 Location') + val = self.Port1LocationOption[val] return val - class Port1LocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" - @property def insertion_loss(self) -> float: """Insertion Loss "Isolator in-band loss in forward direction.." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') - key_val_pair = [i for i in props if 'Insertion Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Insertion Loss') return val - @property def finite_reverse_isolation(self) -> bool: """Finite Reverse Isolation "Use a finite reverse isolation. If disabled, the isolator model is ideal (infinite reverse isolation).." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Reverse Isolation') - key_val_pair = [i for i in props if 'Finite Reverse Isolation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Finite Reverse Isolation') return val - @property def reverse_isolation(self) -> float: """Reverse Isolation "Isolator reverse isolation (i.e., loss in the reverse direction).." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reverse Isolation') - key_val_pair = [i for i in props if 'Reverse Isolation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Reverse Isolation') return val - @property def finite_bandwidth(self) -> bool: """Finite Bandwidth "Use a finite bandwidth. If disabled, the isolator model is ideal (infinite bandwidth).." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Bandwidth') - key_val_pair = [i for i in props if 'Finite Bandwidth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Finite Bandwidth') return val - @property def out_of_band_attenuation(self) -> float: """Out-of-band Attenuation "Out-of-band loss (attenuation)." "Value should be between 0 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out-of-band Attenuation') - key_val_pair = [i for i in props if 'Out-of-band Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Out-of-band Attenuation') return val - @property def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') - key_val_pair = [i for i in props if 'Lower Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Stop Band') return val - @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') - key_val_pair = [i for i in props if 'Lower Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Cutoff') return val - @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') - key_val_pair = [i for i in props if 'Higher Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Cutoff') return val - @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') - key_val_pair = [i for i in props if 'Higher Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Stop Band') return val - @property def warnings(self) -> str: """Warnings "Warning(s) for this node." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - key_val_pair = [i for i in props if 'Warnings=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Warnings') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py index fabc3b11d34..4d27538b3d3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyLogDistanceCouplingNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -15,61 +19,44 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') + return val + @property + def antenna_a(self) -> EmitNode: + """Antenna A + "First antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Antenna A') + return val + @property + def antenna_b(self) -> EmitNode: + """Antenna B + "Second antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Antenna B') return val - @property def enable_refinement(self) -> bool: """Enable Refinement "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - key_val_pair = [i for i in props if 'Enable Refinement=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Refinement') return val - @property def adaptive_sampling(self) -> bool: """Adaptive Sampling "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Adaptive Sampling') return val - @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - key_val_pair = [i for i in props if 'Refinement Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - - @property - def environment(self): - """Environment - "Specify the environment type for the Log Distance model." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Environment') - key_val_pair = [i for i in props if 'Environment=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Refinement Domain') return val class EnvironmentOption(Enum): FREESPACE = "Free Space" @@ -79,203 +66,136 @@ class EnvironmentOption(Enum): BUILDINGOBSTRUCTED = "Building - Obstructed" FACTORYOBSTRUCTED = "Factory - Obstructed" CUSTOMEXPONENT = "Custom" - + @property + def environment(self) -> EnvironmentOption: + """Environment + "Specify the environment type for the Log Distance model." + " """ + val = self._get_property('Environment') + val = self.EnvironmentOption[val] + return val @property def path_loss_exponent(self) -> float: """Path Loss Exponent "Path Loss Exponent." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Path Loss Exponent') - key_val_pair = [i for i in props if 'Path Loss Exponent=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Path Loss Exponent') return val - @property def custom_fading_margin(self) -> float: """Custom Fading Margin "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') - key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Fading Margin') return val - @property def polarization_mismatch(self) -> float: """Polarization Mismatch "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') - key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Mismatch') return val - @property def pointing_error_loss(self) -> float: """Pointing Error Loss "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') - key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - - @property - def fading_type(self): - """Fading Type - "Specify the type of fading to include." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') - key_val_pair = [i for i in props if 'Fading Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pointing Error Loss') return val class FadingTypeOption(Enum): NOFADING = "None" FASTFADINGONLY = "Fast Fading Only" SHADOWINGONLY = "Shadowing Only" SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" - + @property + def fading_type(self) -> FadingTypeOption: + """Fading Type + "Specify the type of fading to include." + " """ + val = self._get_property('Fading Type') + val = self.FadingTypeOption[val] + return val @property def fading_availability(self) -> float: """Fading Availability "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') - key_val_pair = [i for i in props if 'Fading Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Fading Availability') return val - @property def std_deviation(self) -> float: """Std Deviation "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') - key_val_pair = [i for i in props if 'Std Deviation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Std Deviation') return val - @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') - key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Rain Attenuation') return val - @property def rain_availability(self) -> float: """Rain Availability "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') - key_val_pair = [i for i in props if 'Rain Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Availability') return val - @property def rain_rate(self) -> float: """Rain Rate "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') - key_val_pair = [i for i in props if 'Rain Rate=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Rate') return val - @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') - key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Tilt Angle') return val - @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') - key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Atmospheric Absorption') return val - @property def temperature(self) -> float: """Temperature "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') - key_val_pair = [i for i in props if 'Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Temperature') return val - @property def total_air_pressure(self) -> float: """Total Air Pressure "Total air pressure." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') - key_val_pair = [i for i in props if 'Total Air Pressure=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Total Air Pressure') return val - @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration "Water vapor concentration." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') - key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Water Vapor Concentration') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py index 9d2e2c4ede9..79dd81a2c95 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyMultiplexer(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyMultiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def filename(self) -> str: @@ -10,90 +14,65 @@ def filename(self) -> str: "Name of file defining the multiplexer." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - key_val_pair = [i for i in props if 'Filename=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Filename') return val - @property def noise_temperature(self) -> float: """Noise Temperature "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - key_val_pair = [i for i in props if 'Noise Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Temperature') return val - @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val - + class TypeOption(Enum): + PARAMETRIC = "By Pass Band" + BYFILE = "By File" @property - def type(self): + def type(self) -> TypeOption: """Type "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - key_val_pair = [i for i in props if 'Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Type') + val = self.TypeOption[val] return val - class TypeOption(Enum): - PARAMETRIC = "By Pass Band" - BYFILE = "By File" - + class Port1LocationOption(Enum): + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" @property - def port_1_location(self): + def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the multiplexer.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port 1 Location') - key_val_pair = [i for i in props if 'Port 1 Location=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Port 1 Location') + val = self.Port1LocationOption[val] return val - class Port1LocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" - @property def flip_ports_vertically(self) -> bool: """Flip Ports Vertically "Reverses the port order on the multi-port side of the multiplexer.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Flip Ports Vertically') - key_val_pair = [i for i in props if 'Flip Ports Vertically=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Flip Ports Vertically') + return val + @property + def ports(self): + """Ports + "Assigns the child port nodes to the multiplexers ports." + "A list of values." + " """ + val = self._get_property('Ports') return val - @property def warnings(self) -> str: """Warnings "Warning(s) for this node." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - key_val_pair = [i for i in props if 'Warnings=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Warnings') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py index 30d8f205cbc..24612b45492 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py @@ -1,183 +1,123 @@ -from ..GenericEmitNode import * -class ReadOnlyMultiplexerBand(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): """The parent of this emit node.""" return self._parent - @property - def type(self): - """Type - "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - key_val_pair = [i for i in props if 'Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val class TypeOption(Enum): BYFILE = "By File" LOWPASS = "Low Pass" HIGHPASS = "High Pass" BANDPASS = "Band Pass" - + @property + def type(self) -> TypeOption: + """Type + "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." + " """ + val = self._get_property('Type') + val = self.TypeOption[val] + return val @property def filename(self) -> str: """Filename "Name of file defining the multiplexer band." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - key_val_pair = [i for i in props if 'Filename=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Filename') return val - @property def insertion_loss(self) -> float: """Insertion Loss "Multiplexer pass band insertion loss." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') - key_val_pair = [i for i in props if 'Insertion Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Insertion Loss') return val - @property def stop_band_attenuation(self) -> float: """Stop band Attenuation "Stop-band loss (attenuation)." "Value should be between 0 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop band Attenuation') - key_val_pair = [i for i in props if 'Stop band Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Stop band Attenuation') return val - @property def max_pass_band(self) -> float: """Max Pass Band "Maximum pass band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Pass Band') - key_val_pair = [i for i in props if 'Max Pass Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Pass Band') return val - @property def min_stop_band(self) -> float: """Min Stop Band "Minimum stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Stop Band') - key_val_pair = [i for i in props if 'Min Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Min Stop Band') return val - @property def max_stop_band(self) -> float: """Max Stop Band "Maximum stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Stop Band') - key_val_pair = [i for i in props if 'Max Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Stop Band') return val - @property def min_pass_band(self) -> float: """Min Pass Band "Minimum pass band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min Pass Band') - key_val_pair = [i for i in props if 'Min Pass Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Min Pass Band') return val - @property def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') - key_val_pair = [i for i in props if 'Lower Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Stop Band') return val - @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') - key_val_pair = [i for i in props if 'Lower Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Cutoff') return val - @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') - key_val_pair = [i for i in props if 'Higher Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Cutoff') return val - @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') - key_val_pair = [i for i in props if 'Higher Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Stop Band') return val - @property def warnings(self) -> str: """Warnings "Warning(s) for this node." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - key_val_pair = [i for i in props if 'Warnings=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Warnings') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py index d58196e6381..81bae59ed4c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyPowerDivider(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyPowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def filename(self) -> str: @@ -10,195 +14,122 @@ def filename(self) -> str: "Name of file defining the Power Divider." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - key_val_pair = [i for i in props if 'Filename=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Filename') return val - @property def noise_temperature(self) -> float: """Noise Temperature "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - key_val_pair = [i for i in props if 'Noise Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Temperature') return val - @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - - @property - def type(self): - """Type - "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - key_val_pair = [i for i in props if 'Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val class TypeOption(Enum): BYFILE = "By File" _3DB = "3 dB" RESISTIVE = "Resistive" - @property - def orientation(self): - """Orientation - "Defines the orientation of the Power Divider.." + def type(self) -> TypeOption: + """Type + "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation') - key_val_pair = [i for i in props if 'Orientation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Type') + val = self.TypeOption[val] return val class OrientationOption(Enum): RADIOSIDE = "Divider" ANTENNASIDE = "Combiner" - + @property + def orientation(self) -> OrientationOption: + """Orientation + "Defines the orientation of the Power Divider.." + " """ + val = self._get_property('Orientation') + val = self.OrientationOption[val] + return val @property def insertion_loss_above_ideal(self) -> float: """Insertion Loss Above Ideal "Additional loss beyond the ideal insertion loss. The ideal insertion loss is 3 dB for the 3 dB Divider and 6 dB for the Resistive Divider.." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss Above Ideal') - key_val_pair = [i for i in props if 'Insertion Loss Above Ideal=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Insertion Loss Above Ideal') return val - @property def finite_isolation(self) -> bool: """Finite Isolation "Use a finite isolation between output ports. If disabled, the Power Divider isolation is ideal (infinite isolation between output ports).." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Isolation') - key_val_pair = [i for i in props if 'Finite Isolation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Finite Isolation') return val - @property def isolation(self) -> float: """Isolation "Power Divider isolation between output ports.." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Isolation') - key_val_pair = [i for i in props if 'Isolation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Isolation') return val - @property def finite_bandwidth(self) -> bool: """Finite Bandwidth "Use a finite bandwidth. If disabled, the Power Divider model is ideal (infinite bandwidth).." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Bandwidth') - key_val_pair = [i for i in props if 'Finite Bandwidth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Finite Bandwidth') return val - @property def out_of_band_attenuation(self) -> float: """Out-of-band Attenuation "Out-of-band loss (attenuation)." "Value should be between 0 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out-of-band Attenuation') - key_val_pair = [i for i in props if 'Out-of-band Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Out-of-band Attenuation') return val - @property def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') - key_val_pair = [i for i in props if 'Lower Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Stop Band') return val - @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') - key_val_pair = [i for i in props if 'Lower Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Cutoff') return val - @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') - key_val_pair = [i for i in props if 'Higher Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Cutoff') return val - @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') - key_val_pair = [i for i in props if 'Higher Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Stop Band') return val - @property def warnings(self) -> str: """Warnings "Warning(s) for this node." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - key_val_pair = [i for i in props if 'Warnings=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Warnings') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py index fbb4d92af3e..6d18ef96d66 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyPropagationLossCouplingNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -15,234 +19,159 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') + return val + @property + def antenna_a(self) -> EmitNode: + """Antenna A + "First antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Antenna A') + return val + @property + def antenna_b(self) -> EmitNode: + """Antenna B + "Second antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Antenna B') return val - @property def enable_refinement(self) -> bool: """Enable Refinement "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - key_val_pair = [i for i in props if 'Enable Refinement=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Refinement') return val - @property def adaptive_sampling(self) -> bool: """Adaptive Sampling "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Adaptive Sampling') return val - @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - key_val_pair = [i for i in props if 'Refinement Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Refinement Domain') return val - @property def custom_fading_margin(self) -> float: """Custom Fading Margin "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') - key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Fading Margin') return val - @property def polarization_mismatch(self) -> float: """Polarization Mismatch "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') - key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Mismatch') return val - @property def pointing_error_loss(self) -> float: """Pointing Error Loss "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') - key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - - @property - def fading_type(self): - """Fading Type - "Specify the type of fading to include." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') - key_val_pair = [i for i in props if 'Fading Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pointing Error Loss') return val class FadingTypeOption(Enum): NOFADING = "None" FASTFADINGONLY = "Fast Fading Only" SHADOWINGONLY = "Shadowing Only" SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" - + @property + def fading_type(self) -> FadingTypeOption: + """Fading Type + "Specify the type of fading to include." + " """ + val = self._get_property('Fading Type') + val = self.FadingTypeOption[val] + return val @property def fading_availability(self) -> float: """Fading Availability "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') - key_val_pair = [i for i in props if 'Fading Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Fading Availability') return val - @property def std_deviation(self) -> float: """Std Deviation "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') - key_val_pair = [i for i in props if 'Std Deviation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Std Deviation') return val - @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') - key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Rain Attenuation') return val - @property def rain_availability(self) -> float: """Rain Availability "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') - key_val_pair = [i for i in props if 'Rain Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Availability') return val - @property def rain_rate(self) -> float: """Rain Rate "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') - key_val_pair = [i for i in props if 'Rain Rate=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Rate') return val - @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') - key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Tilt Angle') return val - @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') - key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Atmospheric Absorption') return val - @property def temperature(self) -> float: """Temperature "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') - key_val_pair = [i for i in props if 'Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Temperature') return val - @property def total_air_pressure(self) -> float: """Total Air Pressure "Total air pressure." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') - key_val_pair = [i for i in props if 'Total Air Pressure=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Total Air Pressure') return val - @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration "Water vapor concentration." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') - key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Water Vapor Concentration') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py index 449c9054c63..e39c17953ab 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py @@ -1,23 +1,31 @@ -from ..GenericEmitNode import * -class ReadOnlyRadioNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyRadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): """The parent of this emit node.""" return self._parent + @property + def table_data(self): + """ Table" + "Table consists of 2 columns." + "Name: + " "Type: + " """ + return self._get_table_data() + @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py index 1da8b8f2e81..c699808a892 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyRfSystemGroup(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyRfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -15,23 +19,13 @@ def enable_passive_noise(self) -> bool: "If true, the noise contributions of antennas and passive components are included in cosite simulation. Note: Antenna and passive component noise is always included in link analysis simulation.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Passive Noise') - key_val_pair = [i for i in props if 'Enable Passive Noise=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Passive Noise') return val - @property def enforce_thermal_noise_floor(self) -> bool: """Enforce Thermal Noise Floor "If true, all broadband noise is limited by the thermal noise floor (-174 dBm/Hz)." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enforce Thermal Noise Floor') - key_val_pair = [i for i in props if 'Enforce Thermal Noise Floor=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enforce Thermal Noise Floor') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py index 1686f59b9dc..e744d1bbf46 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyRxMeasNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyRxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -15,285 +19,176 @@ def file(self) -> str: "Name of the measurement source." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'File') - key_val_pair = [i for i in props if 'File=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('File') return val - @property def source_file(self) -> str: """Source File "Name of the measurement source." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Source File') - key_val_pair = [i for i in props if 'Source File=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Source File') return val - @property def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Receive Frequency') - key_val_pair = [i for i in props if 'Receive Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Receive Frequency') return val - + class MeasurementModeOption(Enum): + AUDIO_SINAD = "Audio SINAD" + DIGITAL_BER = "Digital BER" + GPS_CNR = "GPS CNR" @property - def measurement_mode(self): + def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode "Defines the mode for the receiver measurement." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measurement Mode') - key_val_pair = [i for i in props if 'Measurement Mode=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Measurement Mode') + val = self.MeasurementModeOption[val] return val - class MeasurementModeOption(Enum): - AUDIO_SINAD = "Audio SINAD" - DIGITAL_BER = "Digital BER" - GPS_CNR = "GPS CNR" - @property def sinad_threshold(self) -> float: """SINAD Threshold "SINAD Threshold used for the receiver measurements." "Value should be between 5 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'SINAD Threshold') - key_val_pair = [i for i in props if 'SINAD Threshold=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('SINAD Threshold') return val - @property def gps_cnr_threshold(self) -> float: """GPS CNR Threshold "GPS CNR Threshold used for the receiver measurements." "Value should be between 15 and 30." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'GPS CNR Threshold') - key_val_pair = [i for i in props if 'GPS CNR Threshold=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('GPS CNR Threshold') return val - @property def ber_threshold(self) -> float: """BER Threshold "BER Threshold used for the receiver measurements." "Value should be between -12 and -1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BER Threshold') - key_val_pair = [i for i in props if 'BER Threshold=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('BER Threshold') return val - @property def default_intended_power(self) -> bool: """Default Intended Power "Specify the intended signal." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Default Intended Power') - key_val_pair = [i for i in props if 'Default Intended Power=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Default Intended Power') return val - @property def intended_signal_power(self) -> float: """Intended Signal Power "Specify the power level of the intended signal." "Value should be between -140 and -50." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Intended Signal Power') - key_val_pair = [i for i in props if 'Intended Signal Power=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Intended Signal Power') return val - @property def freq_deviation(self) -> float: """Freq. Deviation "Specify the frequency deviation of the intended signal." "Value should be between 1000 and 200000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Freq. Deviation') - key_val_pair = [i for i in props if 'Freq. Deviation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Freq. Deviation') return val - @property def modulation_depth(self) -> float: """Modulation Depth "Specify the modulation depth of the intended signal." "Value should be between 10 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Modulation Depth') - key_val_pair = [i for i in props if 'Modulation Depth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Modulation Depth') return val - @property def measure_selectivity(self) -> bool: """Measure Selectivity "Enable/disable the measurement of the receiver's selectivity." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measure Selectivity') - key_val_pair = [i for i in props if 'Measure Selectivity=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Measure Selectivity') return val - @property def measure_mixer_products(self) -> bool: """Measure Mixer Products "Enable/disable the measurement of the receiver's mixer products." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measure Mixer Products') - key_val_pair = [i for i in props if 'Measure Mixer Products=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Measure Mixer Products') return val - @property def max_rf_order(self) -> int: """Max RF Order "Max RF Order of the mixer products to measure." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max RF Order') - key_val_pair = [i for i in props if 'Max RF Order=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max RF Order') return val - @property def max_lo_order(self) -> int: """Max LO Order "Max LO Order of the mixer products to measure." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max LO Order') - key_val_pair = [i for i in props if 'Max LO Order=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max LO Order') return val - @property def include_if(self) -> bool: """Include IF "Enable/disable the measurement of the IF channel." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include IF') - key_val_pair = [i for i in props if 'Include IF=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include IF') return val - @property def measure_saturation(self) -> bool: """Measure Saturation "Enable/disable measurement of the receiver's saturation level." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measure Saturation') - key_val_pair = [i for i in props if 'Measure Saturation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Measure Saturation') return val - @property def use_ams_limits(self) -> bool: """Use AMS Limits "Allow AMS to determine the limits for measuring saturation." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use AMS Limits') - key_val_pair = [i for i in props if 'Use AMS Limits=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Use AMS Limits') return val - @property def start_frequency(self) -> float: """Start Frequency "Starting frequency for the measurement sweep." "Value should be greater than 1e+06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Start Frequency') - key_val_pair = [i for i in props if 'Start Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Start Frequency') return val - @property def stop_frequency(self) -> float: """Stop Frequency "Stopping frequency for the measurement sweep." "Value should be less than 6e+09." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop Frequency') - key_val_pair = [i for i in props if 'Stop Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Stop Frequency') return val - @property def samples(self) -> int: """Samples "Number of measurement samples for each frequency." "Value should be between 2 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Samples') - key_val_pair = [i for i in props if 'Samples=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Samples') return val - @property def exclude_mixer_products_below_noise(self) -> bool: """Exclude Mixer Products Below Noise "Include/Exclude Mixer Products below the noise." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Exclude Mixer Products Below Noise') - key_val_pair = [i for i in props if 'Exclude Mixer Products Below Noise=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Exclude Mixer Products Below Noise') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py index 131a16d126d..1aadc35bb9d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py @@ -1,228 +1,156 @@ -from ..GenericEmitNode import * -class ReadOnlyRxMixerProductNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): """The parent of this emit node.""" return self._parent + class MixerProductTaperOption(Enum): + CONSTANT = "Constant" + MIL_STD_461G = "MIL-STD-461G" + DUFF_MODEL = "Duff Model" @property - def mixer_product_taper(self): + def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper "Taper for setting amplitude of mixer products." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Taper') - key_val_pair = [i for i in props if 'Mixer Product Taper=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Mixer Product Taper') + val = self.MixerProductTaperOption[val] return val - class MixerProductTaperOption(Enum): - CONSTANT = "Constant" - MIL_STD_461G = "MIL-STD-461G" - DUFF_MODEL = "Duff Model" - @property def mixer_product_susceptibility(self) -> float: """Mixer Product Susceptibility "Mixer product amplitudes (relative to the in-band susceptibility)." "Value should be between -200 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Susceptibility') - key_val_pair = [i for i in props if 'Mixer Product Susceptibility=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Mixer Product Susceptibility') return val - @property def spurious_rejection(self) -> float: """Spurious Rejection "Mixer product amplitudes (relative to the in-band susceptibility)." "Value should be between -200 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spurious Rejection') - key_val_pair = [i for i in props if 'Spurious Rejection=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Spurious Rejection') return val - @property def minimum_tuning_frequency(self) -> float: """Minimum Tuning Frequency "Minimum tuning frequency of Rx's local oscillator." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minimum Tuning Frequency') - key_val_pair = [i for i in props if 'Minimum Tuning Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Minimum Tuning Frequency') return val - @property def maximum_tuning_frequency(self) -> float: """Maximum Tuning Frequency "Maximum tuning frequency of Rx's local oscillator." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Maximum Tuning Frequency') - key_val_pair = [i for i in props if 'Maximum Tuning Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Maximum Tuning Frequency') return val - @property def mixer_product_slope(self) -> float: """Mixer Product Slope "Rate of decrease for amplitude of Rx's local oscillator harmonics (dB/decade)." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Slope') - key_val_pair = [i for i in props if 'Mixer Product Slope=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Mixer Product Slope') return val - @property def mixer_product_intercept(self) -> float: """Mixer Product Intercept "Mixer product intercept (dBc)." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Intercept') - key_val_pair = [i for i in props if 'Mixer Product Intercept=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Mixer Product Intercept') return val - @property def _80_db_bandwidth(self) -> float: """80 dB Bandwidth "Bandwidth where Rx's susceptibility envelope is 80 dB above in-band susceptibility level." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'80 dB Bandwidth') - key_val_pair = [i for i in props if '80 dB Bandwidth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('80 dB Bandwidth') return val - @property def image_rejection(self) -> float: """Image Rejection "Image frequency amplitude (relative to the in-band susceptibility)." "Value should be between -200 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Image Rejection') - key_val_pair = [i for i in props if 'Image Rejection=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Image Rejection') return val - @property def maximum_rf_harmonic_order(self) -> int: """Maximum RF Harmonic Order "Maximum order of RF frequency." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Maximum RF Harmonic Order') - key_val_pair = [i for i in props if 'Maximum RF Harmonic Order=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Maximum RF Harmonic Order') return val - @property def maximum_lo_harmonic_order(self) -> int: """Maximum LO Harmonic Order "Maximum order of the LO frequency." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Maximum LO Harmonic Order') - key_val_pair = [i for i in props if 'Maximum LO Harmonic Order=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Maximum LO Harmonic Order') return val - + class MixingModeOption(Enum): + ABOVETUNEDFREQUENCY = "LO Above Tuned (RF) Frequency" + BELOWTUNEDFREQUENCY = "LO Below Tuned (RF) Frequency" + BOTHTUNEDFREQUENCIES = "LO Above/Below Tuned (RF) Frequency" @property - def mixing_mode(self): + def mixing_mode(self) -> MixingModeOption: """Mixing Mode "Specifies whether the IF frequency is > or < RF channel frequency." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixing Mode') - key_val_pair = [i for i in props if 'Mixing Mode=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Mixing Mode') + val = self.MixingModeOption[val] return val - class MixingModeOption(Enum): - ABOVETUNEDFREQUENCY = "LO Above Tuned (RF) Frequency" - BELOWTUNEDFREQUENCY = "LO Below Tuned (RF) Frequency" - BOTHTUNEDFREQUENCIES = "LO Above/Below Tuned (RF) Frequency" - @property def _1st_if_frequency(self): """1st IF Frequency "Intermediate frequency for Rx's 1st conversion stage." "Value should be a mathematical expression." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'1st IF Frequency') - key_val_pair = [i for i in props if '1st IF Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('1st IF Frequency') return val - @property def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'RF Transition Frequency') - key_val_pair = [i for i in props if 'RF Transition Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('RF Transition Frequency') return val - + class UseHighLOOption(Enum): + ABOVETRANSITION = "Above Transition Frequency" + BELOWTRANSITION = "Below Transition Frequency" @property - def use_high_lo(self): + def use_high_lo(self) -> UseHighLOOption: """Use High LO "Use High LO above/below the transition frequency." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use High LO') - key_val_pair = [i for i in props if 'Use High LO=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Use High LO') + val = self.UseHighLOOption[val] return val - class UseHighLOOption(Enum): - ABOVETRANSITION = "Above Transition Frequency" - BELOWTRANSITION = "Below Transition Frequency" - + class MixerProductTableUnitsOption(Enum): + ABSOLUTE = "Absolute" + RELATIVE = "Relative" @property - def mixer_product_table_units(self): + def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units "Specifies the units for the Mixer Products." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Table Units') - key_val_pair = [i for i in props if 'Mixer Product Table Units=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Mixer Product Table Units') + val = self.MixerProductTableUnitsOption[val] return val - class MixerProductTableUnitsOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE = "Relative" - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py index 979dce82e3f..91b13b6119e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyRxSaturationNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py index 7fa96b4ab1a..9b49cea5577 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyRxSelectivityNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -15,10 +19,5 @@ def use_arithmetic_mean(self) -> bool: "Uses arithmetic mean to center bandwidths about the tuned channel frequency." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Arithmetic Mean') - key_val_pair = [i for i in props if 'Use Arithmetic Mean=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Use Arithmetic Mean') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py index 83f8f661471..e12cf1192b8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyRxSpurNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyRxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -10,17 +14,26 @@ def parent(self): return self._parent @property - def spur_table_units(self): + def table_data(self): + """ Table" + "Table consists of 3 columns." + "Frequency (MHz): + " Value should be a mathematical expression." + "Bandwidth: + " Value should be greater than 1." + "Power: + " Value should be between -200 and 150." + """ + return self._get_table_data() + + class SpurTableUnitsOption(Enum): + ABSOLUTE = "Absolute" + RELATIVE = "Relative" + @property + def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spur Table Units') - key_val_pair = [i for i in props if 'Spur Table Units=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Spur Table Units') + val = self.SpurTableUnitsOption[val] return val - class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE = "Relative" - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py index 4ec266d66ae..7dc04ba8f3f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py @@ -1,197 +1,132 @@ -from ..GenericEmitNode import * -class ReadOnlyRxSusceptibilityProfNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): """The parent of this emit node.""" return self._parent - @property - def sensitivity_units(self): - """Sensitivity Units - "Units to use for the Rx Sensitivity." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Sensitivity Units') - key_val_pair = [i for i in props if 'Sensitivity Units=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val class SensitivityUnitsOption(Enum): DBM = "dBm" DBUV = "dBuV" MILLIWATTS = "milliwatts" MICROVOLTS = "microvolts" - + @property + def sensitivity_units(self) -> SensitivityUnitsOption: + """Sensitivity Units + "Units to use for the Rx Sensitivity." + " """ + val = self._get_property('Sensitivity Units') + val = self.SensitivityUnitsOption[val] + return val @property def min_receive_signal_pwr_(self) -> float: """Min. Receive Signal Pwr "Received signal power level at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min. Receive Signal Pwr ') - key_val_pair = [i for i in props if 'Min. Receive Signal Pwr =' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Min. Receive Signal Pwr ') return val - @property def snr_at_rx_signal_pwr(self) -> float: """SNR at Rx Signal Pwr "Signal-to-Noise Ratio (dB) at specified received signal power at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'SNR at Rx Signal Pwr') - key_val_pair = [i for i in props if 'SNR at Rx Signal Pwr=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('SNR at Rx Signal Pwr') return val - @property def processing_gain(self) -> float: """Processing Gain "Rx processing gain (dB) of (optional) despreader." "Value should be between -1000 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Processing Gain') - key_val_pair = [i for i in props if 'Processing Gain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Processing Gain') return val - @property def apply_pg_to_narrowband_only(self) -> bool: """Apply PG to Narrowband Only "Processing gain captures the despreading effect and applies to NB signals only (not BB noise) when enabled." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Apply PG to Narrowband Only') - key_val_pair = [i for i in props if 'Apply PG to Narrowband Only=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Apply PG to Narrowband Only') return val - @property def saturation_level(self) -> float: """Saturation Level "Rx input saturation level." "Value should be between -1000 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Saturation Level') - key_val_pair = [i for i in props if 'Saturation Level=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Saturation Level') return val - @property def rx_noise_figure(self) -> float: """Rx Noise Figure "Rx noise figure (dB)." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rx Noise Figure') - key_val_pair = [i for i in props if 'Rx Noise Figure=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rx Noise Figure') return val - @property def receiver_sensitivity_(self) -> float: """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." "Value should be between -1000 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Receiver Sensitivity ') - key_val_pair = [i for i in props if 'Receiver Sensitivity =' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Receiver Sensitivity ') return val - @property def snrsinad_at_sensitivity_(self) -> float: """SNR/SINAD at Sensitivity "SNR or SINAD at the specified sensitivity level." "Value should be between -1000 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'SNR/SINAD at Sensitivity ') - key_val_pair = [i for i in props if 'SNR/SINAD at Sensitivity =' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('SNR/SINAD at Sensitivity ') return val - @property def perform_rx_intermod_analysis(self) -> bool: """Perform Rx Intermod Analysis "Performs a non-linear intermod analysis for the Rx." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Perform Rx Intermod Analysis') - key_val_pair = [i for i in props if 'Perform Rx Intermod Analysis=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Perform Rx Intermod Analysis') return val - @property def amplifier_saturation_level(self) -> float: """Amplifier Saturation Level "Internal Rx Amplifier's Saturation Level." "Value should be between -200 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplifier Saturation Level') - key_val_pair = [i for i in props if 'Amplifier Saturation Level=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Amplifier Saturation Level') return val - @property def _1_db_point_ref_input_(self) -> float: """1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." "Value should be between -1000 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'1-dB Point, Ref. Input ') - key_val_pair = [i for i in props if '1-dB Point, Ref. Input =' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('1-dB Point, Ref. Input ') return val - @property def ip3_ref_input(self) -> float: """IP3, Ref. Input "Internal Rx Amplifier's 3rd order intercept point." "Value should be between -1000 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'IP3, Ref. Input') - key_val_pair = [i for i in props if 'IP3, Ref. Input=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('IP3, Ref. Input') return val - @property def max_intermod_order(self) -> int: """Max Intermod Order "Internal Rx Amplifier's maximum intermod order to compute." "Value should be between 3 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Intermod Order') - key_val_pair = [i for i in props if 'Max Intermod Order=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Intermod Order') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py index b1b5d11414f..8450a6741f3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlySamplingNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlySamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -10,106 +14,78 @@ def parent(self): return self._parent @property - def sampling_type(self): - """Sampling Type - "Sampling to apply to this configuration." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Sampling Type') - key_val_pair = [i for i in props if 'Sampling Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val + def table_data(self): + """ Table" + "Table consists of 2 columns." + "Min: + " Value should be greater than 1." + "Max: + " Value should be greater than 1." + """ + return self._get_table_data() + class SamplingTypeOption(Enum): SAMPLEALLCHANNELS = "Sample All Channels in Range(s)" RANDOMSAMPLING = "Random Sampling" UNIFORMSAMPLING = "Uniform Sampling" - + @property + def sampling_type(self) -> SamplingTypeOption: + """Sampling Type + "Sampling to apply to this configuration." + " """ + val = self._get_property('Sampling Type') + val = self.SamplingTypeOption[val] + return val @property def specify_percentage(self) -> bool: """Specify Percentage "Specify the number of channels to simulate via a percentage of the total available band channels." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Specify Percentage') - key_val_pair = [i for i in props if 'Specify Percentage=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Specify Percentage') return val - @property def percentage_of_channels(self) -> float: """Percentage of Channels "Percentage of the Band Channels to simulate." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Percentage of Channels') - key_val_pair = [i for i in props if 'Percentage of Channels=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Percentage of Channels') return val - @property def max__channelsrangeband(self) -> int: """Max # Channels/Range/Band "Maximum number of Band Channels to simulate." "Value should be between 1 and 100000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max # Channels/Range/Band') - key_val_pair = [i for i in props if 'Max # Channels/Range/Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max # Channels/Range/Band') return val - @property def seed(self) -> int: """Seed "Seed for random channel generator." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Seed') - key_val_pair = [i for i in props if 'Seed=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Seed') return val - @property def total_tx_channels(self) -> int: """Total Tx Channels "Total number of transmit channels this configuration is capable of operating on." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Tx Channels') - key_val_pair = [i for i in props if 'Total Tx Channels=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Total Tx Channels') return val - @property def total_rx_channels(self) -> int: """Total Rx Channels "Total number of receive channels this configuration is capable of operating on." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Rx Channels') - key_val_pair = [i for i in props if 'Total Rx Channels=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Total Rx Channels') return val - @property def warnings(self) -> str: """Warnings "Warning(s) for this node." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - key_val_pair = [i for i in props if 'Warnings=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Warnings') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py index 516e86dbf5c..afc49eacbf3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlySceneGroupNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlySceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -15,115 +19,71 @@ def show_relative_coordinates(self) -> bool: "Show Scene Group position and orientation in parent-node coords (False) or relative to placement coords (True)." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Relative Coordinates') - key_val_pair = [i for i in props if 'Show Relative Coordinates=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Show Relative Coordinates') return val - @property def position(self): """Position "Set position of the Scene Group in parent-node coordinates." "Value should be x/y/z, delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') - key_val_pair = [i for i in props if 'Position=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Position') return val - @property def relative_position(self): """Relative Position "Set position of the Scene Group relative to placement coordinates." "Value should be x/y/z, delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Position') - key_val_pair = [i for i in props if 'Relative Position=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Relative Position') return val - + class OrientationModeOption(Enum): + RPYDEG = "Roll-Pitch-Yaw" + AETDEG = "Az-El-Twist" @property - def orientation_mode(self): + def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation Mode') - key_val_pair = [i for i in props if 'Orientation Mode=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Orientation Mode') + val = self.OrientationModeOption[val] return val - class OrientationModeOption(Enum): - RPYDEG = "Roll-Pitch-Yaw" - AETDEG = "Az-El-Twist" - @property def orientation(self): """Orientation "Set orientation of the Scene Group relative to parent-node coordinates." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation') - key_val_pair = [i for i in props if 'Orientation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Orientation') return val - @property def relative_orientation(self): """Relative Orientation "Set orientation of the Scene Group relative to placement coordinates." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Orientation') - key_val_pair = [i for i in props if 'Relative Orientation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Relative Orientation') return val - @property def show_axes(self) -> bool: """Show Axes "Toggle (on/off) display of Scene Group coordinate axes in 3-D window." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Axes') - key_val_pair = [i for i in props if 'Show Axes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Show Axes') return val - @property def box_color(self): """Box Color "Set color of the bounding box of the Scene Group." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Box Color') - key_val_pair = [i for i in props if 'Box Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Box Color') return val - @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py index 183fb3f2153..ca9f96e884e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlySolutionCouplingNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -15,48 +19,28 @@ def enabled(self) -> bool: "Enable/Disable coupling (A sweep disabled in HFSS/Layout cannot be enabled in EMIT)." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') return val - @property def enable_refinement(self) -> bool: """Enable Refinement "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - key_val_pair = [i for i in props if 'Enable Refinement=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Refinement') return val - @property def adaptive_sampling(self) -> bool: """Adaptive Sampling "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Adaptive Sampling') return val - @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - key_val_pair = [i for i in props if 'Refinement Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Refinement Domain') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py index eb283f59a8c..51af5edd509 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlySolutionsNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlySolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -15,10 +19,5 @@ def enabled(self) -> bool: "Enable/Disable coupling (A setup disabled in HFSS/Layout cannot be enabled in EMIT)." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py index 0f9e42d673d..ee00213873f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlySparameter(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlySparameter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def file(self) -> str: @@ -10,77 +14,43 @@ def file(self) -> str: "S-Parameter file defining the component." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'File') - key_val_pair = [i for i in props if 'File=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('File') return val - @property def noise_temperature(self) -> float: """Noise Temperature "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - key_val_pair = [i for i in props if 'Noise Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Temperature') return val - @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val - @property def radio_side_ports(self): """Radio Side Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Radio Side Ports') - key_val_pair = [i for i in props if 'Radio Side Ports=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val.split('|') - class RadioSidePortsOption(Enum): - PORTNAMES = "::PortNames" - + val = self._get_property('Radio Side Ports') + return val @property def antenna_side_ports(self): """Antenna Side Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna Side Ports') - key_val_pair = [i for i in props if 'Antenna Side Ports=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val.split('|') - class AntennaSidePortsOption(Enum): - PORTNAMES = "::PortNames" - + val = self._get_property('Antenna Side Ports') + return val @property def warnings(self) -> str: """Warnings "Warning(s) for this node." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - key_val_pair = [i for i in props if 'Warnings=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Warnings') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py index 0911ff4649f..886a8af3501 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyTR_Switch(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyTR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def filename(self) -> str: @@ -10,182 +14,114 @@ def filename(self) -> str: "Name of file defining the outboard component." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - key_val_pair = [i for i in props if 'Filename=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Filename') return val - @property def noise_temperature(self) -> float: """Noise Temperature "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - key_val_pair = [i for i in props if 'Noise Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Temperature') return val - @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val - + class TxPortOption(Enum): + _0 = "Port 1" + _1 = "Port 2" @property - def tx_port(self): + def tx_port(self) -> TxPortOption: """Tx Port "Specifies which port on the TR Switch is part of the Tx path.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx Port') - key_val_pair = [i for i in props if 'Tx Port=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Tx Port') + val = self.TxPortOption[val] return val - class TxPortOption(Enum): - _0 = "Port 1" - _1 = "Port 2" - + class CommonPortLocationOption(Enum): + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" @property - def common_port_location(self): + def common_port_location(self) -> CommonPortLocationOption: """Common Port Location "Defines the orientation of the tr switch.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Common Port Location') - key_val_pair = [i for i in props if 'Common Port Location=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Common Port Location') + val = self.CommonPortLocationOption[val] return val - class CommonPortLocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" - @property def insertion_loss(self) -> float: """Insertion Loss "TR Switch in-band loss in forward direction.." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') - key_val_pair = [i for i in props if 'Insertion Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Insertion Loss') return val - @property def finite_isolation(self) -> bool: """Finite Isolation "Use a finite isolation. If disabled, the tr switch model is ideal (infinite isolation).." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Isolation') - key_val_pair = [i for i in props if 'Finite Isolation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Finite Isolation') return val - @property def isolation(self) -> float: """Isolation "TR Switch reverse isolation (i.e., loss between the Tx/Rx ports).." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Isolation') - key_val_pair = [i for i in props if 'Isolation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Isolation') return val - @property def finite_bandwidth(self) -> bool: """Finite Bandwidth "Use a finite bandwidth. If disabled, the tr switch model is ideal (infinite bandwidth).." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Bandwidth') - key_val_pair = [i for i in props if 'Finite Bandwidth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Finite Bandwidth') return val - @property def out_of_band_attenuation(self) -> float: """Out-of-band Attenuation "Out-of-band loss (attenuation)." "Value should be between 0 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out-of-band Attenuation') - key_val_pair = [i for i in props if 'Out-of-band Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Out-of-band Attenuation') return val - @property def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') - key_val_pair = [i for i in props if 'Lower Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Stop Band') return val - @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') - key_val_pair = [i for i in props if 'Lower Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Cutoff') return val - @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') - key_val_pair = [i for i in props if 'Higher Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Cutoff') return val - @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') - key_val_pair = [i for i in props if 'Higher Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Stop Band') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py index fd9070e0f93..83d8754d6f3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyTerminator(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyTerminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def filename(self) -> str: @@ -10,90 +14,57 @@ def filename(self) -> str: "Name of file defining the Terminator." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - key_val_pair = [i for i in props if 'Filename=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Filename') return val - @property def noise_temperature(self) -> float: """Noise Temperature "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - key_val_pair = [i for i in props if 'Noise Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Temperature') return val - @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val - + class TypeOption(Enum): + BYFILE = "By File" + PARAMETRIC = "Parametric" @property - def type(self): + def type(self) -> TypeOption: """Type "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - key_val_pair = [i for i in props if 'Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Type') + val = self.TypeOption[val] return val - class TypeOption(Enum): - BYFILE = "By File" - PARAMETRIC = "Parametric" - + class PortLocationOption(Enum): + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" @property - def port_location(self): + def port_location(self) -> PortLocationOption: """Port Location "Defines the orientation of the terminator.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port Location') - key_val_pair = [i for i in props if 'Port Location=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Port Location') + val = self.PortLocationOption[val] return val - class PortLocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" - @property def vswr(self) -> float: """VSWR "The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch between the terminator and the connected component (RF System, Antenna, etc)." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'VSWR') - key_val_pair = [i for i in props if 'VSWR=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('VSWR') return val - @property def warnings(self) -> str: """Warnings "Warning(s) for this node." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - key_val_pair = [i for i in props if 'Warnings=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Warnings') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py index 648de4d2d75..b3a4b1afc22 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyTouchstoneCouplingNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -15,98 +19,66 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') return val - @property def enable_refinement(self) -> bool: """Enable Refinement "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - key_val_pair = [i for i in props if 'Enable Refinement=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Refinement') return val - @property def adaptive_sampling(self) -> bool: """Adaptive Sampling "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Adaptive Sampling') return val - @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - key_val_pair = [i for i in props if 'Refinement Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Refinement Domain') return val - @property def filename(self) -> str: """Filename "Name of file with coupling data.." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - key_val_pair = [i for i in props if 'Filename=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Filename') return val - @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File "Coupling data generated by Savant and exported as a matched file." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Savant Matched Coupling File') - key_val_pair = [i for i in props if 'Savant Matched Coupling File=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Savant Matched Coupling File') return val - @property def enable_em_isolation(self) -> bool: """Enable EM Isolation "Enables/disables EM isolation." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable EM Isolation') - key_val_pair = [i for i in props if 'Enable EM Isolation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable EM Isolation') + return val + @property + def port_antenna_assignment(self): + """Port-Antenna Assignment + "Maps each port in the coupling file to an antenna in the project." + "A list of values." + " """ + val = self._get_property('Port-Antenna Assignment') return val - @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py index 426adca64e3..28579959926 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyTwoRayPathLossCouplingNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -15,260 +19,175 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') + return val + @property + def antenna_a(self) -> EmitNode: + """Antenna A + "First antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Antenna A') + return val + @property + def antenna_b(self) -> EmitNode: + """Antenna B + "Second antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Antenna B') return val - @property def enable_refinement(self) -> bool: """Enable Refinement "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - key_val_pair = [i for i in props if 'Enable Refinement=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Refinement') return val - @property def adaptive_sampling(self) -> bool: """Adaptive Sampling "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Adaptive Sampling') return val - @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - key_val_pair = [i for i in props if 'Refinement Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Refinement Domain') return val - @property def ground_reflection_coeff(self) -> float: """Ground Reflection Coeff. "The ground reflection coefficient." "Value should be between -100 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Ground Reflection Coeff.') - key_val_pair = [i for i in props if 'Ground Reflection Coeff.=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Ground Reflection Coeff.') return val - @property def pointspeak(self) -> int: """Points/Peak "Number of points used to model each peak in frequency vs loss curve." "Value should be between 3 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Points/Peak') - key_val_pair = [i for i in props if 'Points/Peak=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Points/Peak') return val - @property def custom_fading_margin(self) -> float: """Custom Fading Margin "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') - key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Fading Margin') return val - @property def polarization_mismatch(self) -> float: """Polarization Mismatch "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') - key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Mismatch') return val - @property def pointing_error_loss(self) -> float: """Pointing Error Loss "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') - key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - - @property - def fading_type(self): - """Fading Type - "Specify the type of fading to include." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') - key_val_pair = [i for i in props if 'Fading Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pointing Error Loss') return val class FadingTypeOption(Enum): NOFADING = "None" FASTFADINGONLY = "Fast Fading Only" SHADOWINGONLY = "Shadowing Only" SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" - + @property + def fading_type(self) -> FadingTypeOption: + """Fading Type + "Specify the type of fading to include." + " """ + val = self._get_property('Fading Type') + val = self.FadingTypeOption[val] + return val @property def fading_availability(self) -> float: """Fading Availability "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') - key_val_pair = [i for i in props if 'Fading Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Fading Availability') return val - @property def std_deviation(self) -> float: """Std Deviation "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') - key_val_pair = [i for i in props if 'Std Deviation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Std Deviation') return val - @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') - key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Rain Attenuation') return val - @property def rain_availability(self) -> float: """Rain Availability "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') - key_val_pair = [i for i in props if 'Rain Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Availability') return val - @property def rain_rate(self) -> float: """Rain Rate "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') - key_val_pair = [i for i in props if 'Rain Rate=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Rate') return val - @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') - key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Tilt Angle') return val - @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') - key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Atmospheric Absorption') return val - @property def temperature(self) -> float: """Temperature "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') - key_val_pair = [i for i in props if 'Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Temperature') return val - @property def total_air_pressure(self) -> float: """Total Air Pressure "Total air pressure." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') - key_val_pair = [i for i in props if 'Total Air Pressure=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Total Air Pressure') return val - @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration "Water vapor concentration." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') - key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Water Vapor Concentration') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py index 8c5bf7f8d96..6658586e092 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyTxBbEmissionNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -20,33 +24,24 @@ def table_data(self): """ return self._get_table_data() - @property - def noise_behavior(self): - """Noise Behavior - "Specifies the behavior of the parametric noise profile." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Behavior') - key_val_pair = [i for i in props if 'Noise Behavior=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val class NoiseBehaviorOption(Enum): ABSOLUTE = "Absolute" RELATIVEBANDWIDTH = "Relative (Bandwidth)" RELATIVEOFFSET = "Relative (Offset)" BROADBANDEQUATION = "Equation" - + @property + def noise_behavior(self) -> NoiseBehaviorOption: + """Noise Behavior + "Specifies the behavior of the parametric noise profile." + " """ + val = self._get_property('Noise Behavior') + val = self.NoiseBehaviorOption[val] + return val @property def use_log_linear_interpolation(self) -> bool: """Use Log-Linear Interpolation "If true, linear interpolation in the log domain is used. If false, linear interpolation in the linear domain is used.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Log-Linear Interpolation') - key_val_pair = [i for i in props if 'Use Log-Linear Interpolation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Use Log-Linear Interpolation') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py index ab0ae15dd21..1df547df6d4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py @@ -1,26 +1,26 @@ -from ..GenericEmitNode import * -class ReadOnlyTxHarmonicNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): """The parent of this emit node.""" return self._parent + class HarmonicTableUnitsOption(Enum): + ABSOLUTE = "Absolute" + RELATIVE = "Relative" @property - def harmonic_table_units(self): + def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units "Specifies the units for the Harmonics." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Table Units') - key_val_pair = [i for i in props if 'Harmonic Table Units=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Harmonic Table Units') + val = self.HarmonicTableUnitsOption[val] return val - class HarmonicTableUnitsOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE = "Relative" - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py index 2b5cf277fb9..f2a732834c5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyTxMeasNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyTxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -15,87 +19,52 @@ def file(self) -> str: "Name of the measurement source." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'File') - key_val_pair = [i for i in props if 'File=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('File') return val - @property def source_file(self) -> str: """Source File "Name of the measurement source." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Source File') - key_val_pair = [i for i in props if 'Source File=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Source File') return val - @property def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Transmit Frequency') - key_val_pair = [i for i in props if 'Transmit Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Transmit Frequency') return val - @property def use_ams_limits(self) -> bool: """Use AMS Limits "Allow AMS to define the frequency limits for the measurements." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use AMS Limits') - key_val_pair = [i for i in props if 'Use AMS Limits=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Use AMS Limits') return val - @property def start_frequency(self) -> float: """Start Frequency "Starting frequency for the measurement sweep." "Value should be greater than 1e+06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Start Frequency') - key_val_pair = [i for i in props if 'Start Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Start Frequency') return val - @property def stop_frequency(self) -> float: """Stop Frequency "Stopping frequency for the measurement sweep." "Value should be less than 6e+09." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop Frequency') - key_val_pair = [i for i in props if 'Stop Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Stop Frequency') return val - @property def exclude_harmonics_below_noise(self) -> bool: """Exclude Harmonics Below Noise "Include/Exclude Harmonics below the noise." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Exclude Harmonics Below Noise') - key_val_pair = [i for i in props if 'Exclude Harmonics Below Noise=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Exclude Harmonics Below Noise') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py index 0098051971e..3fecac24ea5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py @@ -1,38 +1,33 @@ -from ..GenericEmitNode import * -class ReadOnlyTxNbEmissionNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): """The parent of this emit node.""" return self._parent + class NarrowbandBehaviorOption(Enum): + ABSOLUTE = "Absolute Freqs and Power" + RELATIVEBANDWIDTH = "Relative Freqs and Attenuation" @property - def narrowband_behavior(self): + def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Narrowband Behavior') - key_val_pair = [i for i in props if 'Narrowband Behavior=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Narrowband Behavior') + val = self.NarrowbandBehaviorOption[val] return val - class NarrowbandBehaviorOption(Enum): - ABSOLUTE = "Absolute Freqs and Power" - RELATIVEBANDWIDTH = "Relative Freqs and Attenuation" - @property def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measurement Frequency') - key_val_pair = [i for i in props if 'Measurement Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Measurement Frequency') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py index c7e2ebb4cfd..a121cde6096 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py @@ -1,330 +1,217 @@ -from ..GenericEmitNode import * -class ReadOnlyTxSpectralProfNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): """The parent of this emit node.""" return self._parent + class SpectrumTypeOption(Enum): + BOTH = "Narrowband & Broadband" + BROADBANDONLY = "Broadband Only" @property - def spectrum_type(self): + def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type "Specifies EMI Margins to calculate." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spectrum Type') - key_val_pair = [i for i in props if 'Spectrum Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Spectrum Type') + val = self.SpectrumTypeOption[val] return val - class SpectrumTypeOption(Enum): - BOTH = "Narrowband & Broadband" - BROADBANDONLY = "Broadband Only" - + class TxPowerOption(Enum): + PEAK_POWER = "Peak Power" + AVERAGE_POWER = "Average Power" @property - def tx_power(self): + def tx_power(self) -> TxPowerOption: """Tx Power "Method used to specify the power." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx Power') - key_val_pair = [i for i in props if 'Tx Power=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Tx Power') + val = self.TxPowerOption[val] return val - class TxPowerOption(Enum): - PEAK_POWER = "Peak Power" - AVERAGE_POWER = "Average Power" - @property def peak_power(self) -> float: """Peak Power "Tx's carrier frequency peak power." "Value should be between -1000 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Peak Power') - key_val_pair = [i for i in props if 'Peak Power=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Peak Power') return val - @property def average_power(self) -> float: """Average Power "Tx's fundamental level specified by average power." "Value should be between -1000 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Average Power') - key_val_pair = [i for i in props if 'Average Power=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Average Power') return val - @property def output_voltage_peak(self) -> float: """Output Voltage Peak "Output High Voltage Level: maximum voltage of the digital signal." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Voltage Peak') - key_val_pair = [i for i in props if 'Output Voltage Peak=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Output Voltage Peak') return val - @property def include_phase_noise(self) -> bool: """Include Phase Noise "Include oscillator phase noise in Tx spectral profile." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Phase Noise') - key_val_pair = [i for i in props if 'Include Phase Noise=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Phase Noise') return val - @property def tx_broadband_noise(self) -> float: """Tx Broadband Noise "Transmitters broadband noise level." "Value should be less than 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx Broadband Noise') - key_val_pair = [i for i in props if 'Tx Broadband Noise=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - - @property - def harmonic_taper(self): - """Harmonic Taper - "Taper type used to set amplitude of harmonics." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Taper') - key_val_pair = [i for i in props if 'Harmonic Taper=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Tx Broadband Noise') return val class HarmonicTaperOption(Enum): CONSTANT = "Constant" MIL_STD_461G = "MIL-STD-461G" MIL_STD_461G_NAVY = "MIL-STD-461G Navy" DUFF_MODEL = "Duff Model" - + @property + def harmonic_taper(self) -> HarmonicTaperOption: + """Harmonic Taper + "Taper type used to set amplitude of harmonics." + " """ + val = self._get_property('Harmonic Taper') + val = self.HarmonicTaperOption[val] + return val @property def harmonic_amplitude(self) -> float: """Harmonic Amplitude "Amplitude (relative to the carrier power) of harmonics." "Value should be between -1000 and 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Amplitude') - key_val_pair = [i for i in props if 'Harmonic Amplitude=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Harmonic Amplitude') return val - @property def harmonic_slope(self) -> float: """Harmonic Slope "Rate of decrease for harmonics' amplitudes (dB/decade)." "Value should be between -1000 and 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Slope') - key_val_pair = [i for i in props if 'Harmonic Slope=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Harmonic Slope') return val - @property def harmonic_intercept(self) -> float: """Harmonic Intercept "Amplitude intercept at the fundamental (dBc)." "Value should be between -1000 and 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Intercept') - key_val_pair = [i for i in props if 'Harmonic Intercept=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Harmonic Intercept') return val - @property def enable_harmonic_bw_expansion(self) -> bool: """Enable Harmonic BW Expansion "If (True), bandwidth of harmonics increases proportional to the harmonic number." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Harmonic BW Expansion') - key_val_pair = [i for i in props if 'Enable Harmonic BW Expansion=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Harmonic BW Expansion') return val - @property def number_of_harmonics(self) -> int: """Number of Harmonics "Maximum number of harmonics modeled." "Value should be between 1 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Harmonics') - key_val_pair = [i for i in props if 'Number of Harmonics=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Number of Harmonics') return val - @property def _2nd_harmonic_level(self) -> float: """2nd Harmonic Level "Amplitude (relative to the carrier power) of the 2nd harmonic." "Value should be between -1000 and 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'2nd Harmonic Level') - key_val_pair = [i for i in props if '2nd Harmonic Level=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('2nd Harmonic Level') return val - @property def _3rd_harmonic_level(self) -> float: """3rd Harmonic Level "Amplitude (relative to the carrier power) of the 3rd harmonic." "Value should be between -1000 and 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'3rd Harmonic Level') - key_val_pair = [i for i in props if '3rd Harmonic Level=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('3rd Harmonic Level') return val - @property def other_harmonic_levels(self) -> float: """Other Harmonic Levels "Amplitude (relative to the carrier power) of the higher order harmonics." "Value should be between -1000 and 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Other Harmonic Levels') - key_val_pair = [i for i in props if 'Other Harmonic Levels=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Other Harmonic Levels') return val - @property def perform_tx_intermod_analysis(self) -> bool: """Perform Tx Intermod Analysis "Performs a non-linear intermod analysis for the Tx." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Perform Tx Intermod Analysis') - key_val_pair = [i for i in props if 'Perform Tx Intermod Analysis=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Perform Tx Intermod Analysis') return val - @property def internal_amp_gain(self) -> float: """Internal Amp Gain "Internal Tx Amplifier's Gain." "Value should be between -1000 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Internal Amp Gain') - key_val_pair = [i for i in props if 'Internal Amp Gain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Internal Amp Gain') return val - @property def noise_figure(self) -> float: """Noise Figure "Internal Tx Amplifier's noise figure." "Value should be between 0 and 50." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Figure') - key_val_pair = [i for i in props if 'Noise Figure=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Figure') return val - @property def amplifier_saturation_level(self) -> float: """Amplifier Saturation Level "Internal Tx Amplifier's Saturation Level." "Value should be between -200 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplifier Saturation Level') - key_val_pair = [i for i in props if 'Amplifier Saturation Level=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Amplifier Saturation Level') return val - @property def _1_db_point_ref_input_(self) -> float: """1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'1-dB Point, Ref. Input ') - key_val_pair = [i for i in props if '1-dB Point, Ref. Input =' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('1-dB Point, Ref. Input ') return val - @property def ip3_ref_input(self) -> float: """IP3, Ref. Input "Internal Tx Amplifier's 3rd order intercept point." "Value should be between -200 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'IP3, Ref. Input') - key_val_pair = [i for i in props if 'IP3, Ref. Input=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('IP3, Ref. Input') return val - @property def reverse_isolation(self) -> float: """Reverse Isolation "Internal Tx Amplifier's Reverse Isolation." "Value should be between -200 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reverse Isolation') - key_val_pair = [i for i in props if 'Reverse Isolation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Reverse Isolation') return val - @property def max_intermod_order(self) -> int: """Max Intermod Order "Internal Tx Amplifier's maximum intermod order to compute." "Value should be between 3 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Intermod Order') - key_val_pair = [i for i in props if 'Max Intermod Order=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Intermod Order') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py index 82c9a4211ff..c23dc352543 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyTxSpurNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyTxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -10,17 +14,26 @@ def parent(self): return self._parent @property - def spur_table_units(self): + def table_data(self): + """ Table" + "Table consists of 3 columns." + "Frequency (MHz): + " Value should be a mathematical expression." + "Bandwidth: + " Value should be greater than 1." + "Power: + " Value should be between -200 and 150." + """ + return self._get_table_data() + + class SpurTableUnitsOption(Enum): + ABSOLUTE = "Absolute" + RELATIVE = "Relative" + @property + def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spur Table Units') - key_val_pair = [i for i in props if 'Spur Table Units=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Spur Table Units') + val = self.SpurTableUnitsOption[val] return val - class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE = "Relative" - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py index 64ef7f784c0..da0db3435c5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ReadOnlyWalfischCouplingNode(GenericEmitNode): +from ..EmitNode import * + +class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -15,316 +19,213 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') + return val + @property + def base_antenna(self) -> EmitNode: + """Base Antenna + "First antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Base Antenna') + return val + @property + def mobile_antenna(self) -> EmitNode: + """Mobile Antenna + "Second antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Mobile Antenna') return val - @property def enable_refinement(self) -> bool: """Enable Refinement "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - key_val_pair = [i for i in props if 'Enable Refinement=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Refinement') return val - @property def adaptive_sampling(self) -> bool: """Adaptive Sampling "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Adaptive Sampling') return val - @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - key_val_pair = [i for i in props if 'Refinement Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Refinement Domain') return val - + class PathLossTypeOption(Enum): + WALFISCHLOS = "LOS (Urban Canyon)" + WALFISCHNLOS = "NLOS" @property - def path_loss_type(self): + def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type "Specify LOS vs NLOS for the Walfisch-Ikegami model." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Path Loss Type') - key_val_pair = [i for i in props if 'Path Loss Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Path Loss Type') + val = self.PathLossTypeOption[val] return val - class PathLossTypeOption(Enum): - WALFISCHLOS = "LOS (Urban Canyon)" - WALFISCHNLOS = "NLOS" - + class EnvironmentOption(Enum): + DENSEMETROAREA = "Dense Metro" + SMALLURBANORSUBURBAN = "Small/Medium City or Suburban" @property - def environment(self): + def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Walfisch model." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Environment') - key_val_pair = [i for i in props if 'Environment=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Environment') + val = self.EnvironmentOption[val] return val - class EnvironmentOption(Enum): - DENSEMETROAREA = "Dense Metro" - SMALLURBANORSUBURBAN = "Small/Medium City or Suburban" - @property def roof_height(self) -> float: """Roof Height "The height of the building where the antenna is located.." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Roof Height') - key_val_pair = [i for i in props if 'Roof Height=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Roof Height') return val - @property def distance_between_buildings(self) -> float: """Distance Between Buildings "The distance between two buildings.." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Distance Between Buildings') - key_val_pair = [i for i in props if 'Distance Between Buildings=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Distance Between Buildings') return val - @property def street_width(self) -> float: """Street Width "Width of the street.." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Street Width') - key_val_pair = [i for i in props if 'Street Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Street Width') return val - @property def incidence_angle(self) -> float: """Incidence Angle "Angle between the street orientation and direction of incidence.." "Value should be between 0 and 90." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Incidence Angle') - key_val_pair = [i for i in props if 'Incidence Angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Incidence Angle') return val - @property def custom_fading_margin(self) -> float: """Custom Fading Margin "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') - key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Fading Margin') return val - @property def polarization_mismatch(self) -> float: """Polarization Mismatch "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') - key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Mismatch') return val - @property def pointing_error_loss(self) -> float: """Pointing Error Loss "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') - key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - - @property - def fading_type(self): - """Fading Type - "Specify the type of fading to include." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') - key_val_pair = [i for i in props if 'Fading Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pointing Error Loss') return val class FadingTypeOption(Enum): NOFADING = "None" FASTFADINGONLY = "Fast Fading Only" SHADOWINGONLY = "Shadowing Only" SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" - + @property + def fading_type(self) -> FadingTypeOption: + """Fading Type + "Specify the type of fading to include." + " """ + val = self._get_property('Fading Type') + val = self.FadingTypeOption[val] + return val @property def fading_availability(self) -> float: """Fading Availability "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') - key_val_pair = [i for i in props if 'Fading Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Fading Availability') return val - @property def std_deviation(self) -> float: """Std Deviation "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') - key_val_pair = [i for i in props if 'Std Deviation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Std Deviation') return val - @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') - key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Rain Attenuation') return val - @property def rain_availability(self) -> float: """Rain Availability "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') - key_val_pair = [i for i in props if 'Rain Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Availability') return val - @property def rain_rate(self) -> float: """Rain Rate "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') - key_val_pair = [i for i in props if 'Rain Rate=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Rate') return val - @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') - key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Tilt Angle') return val - @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') - key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Atmospheric Absorption') return val - @property def temperature(self) -> float: """Temperature "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') - key_val_pair = [i for i in props if 'Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Temperature') return val - @property def total_air_pressure(self) -> float: """Total Air Pressure "Total air pressure." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') - key_val_pair = [i for i in props if 'Total Air Pressure=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Total Air Pressure') return val - @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration "Water vapor concentration." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') - key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Water Vapor Concentration') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py index 80d011e467b..ef47c4ee9b7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class ResultPlotNode(GenericEmitNode): +from ..EmitNode import * + +class ResultPlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) def add_marker(self): """Add an icon and/or label to this plot""" @@ -17,15 +21,11 @@ def title(self) -> str: """Title "Enter title at the top of the plot, room will be made for it." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Title') - key_val_pair = [i for i in props if 'Title=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Title') return val @title.setter - def title(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Title=' + value]) + def title(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Title=' + value]) @property def title_font(self): @@ -33,15 +33,11 @@ def title_font(self): "Configure title font family, typeface, and size." "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Title Font') - key_val_pair = [i for i in props if 'Title Font=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Title Font') return val @title_font.setter def title_font(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Title Font=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Title Font=' + value]) @property def show_legend(self) -> bool: @@ -49,15 +45,11 @@ def show_legend(self) -> bool: "Toggle (on/off) display of plot legend." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Legend') - key_val_pair = [i for i in props if 'Show Legend=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Show Legend') return val @show_legend.setter - def show_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Legend=' + value]) + def show_legend(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Legend=' + value]) @property def legend_font(self): @@ -65,15 +57,11 @@ def legend_font(self): "Configure legend font family, typeface, and size." "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Legend Font') - key_val_pair = [i for i in props if 'Legend Font=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Legend Font') return val @legend_font.setter def legend_font(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Legend Font=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Legend Font=' + value]) @property def show_emi_thresholds(self) -> bool: @@ -81,15 +69,11 @@ def show_emi_thresholds(self) -> bool: "Toggles on/off visibility of the EMI Thresholds." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show EMI Thresholds') - key_val_pair = [i for i in props if 'Show EMI Thresholds=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Show EMI Thresholds') return val @show_emi_thresholds.setter - def show_emi_thresholds(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show EMI Thresholds=' + value]) + def show_emi_thresholds(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show EMI Thresholds=' + value]) @property def display_cad_overlay(self) -> bool: @@ -97,15 +81,11 @@ def display_cad_overlay(self) -> bool: "Toggle on/off overlay of CAD model in plot." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Display CAD Overlay') - key_val_pair = [i for i in props if 'Display CAD Overlay=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Display CAD Overlay') return val @display_cad_overlay.setter - def display_cad_overlay(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Display CAD Overlay=' + value]) + def display_cad_overlay(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Display CAD Overlay=' + value]) @property def opacity(self) -> float: @@ -113,30 +93,22 @@ def opacity(self) -> float: "Adjust opacity of CAD model overlay: 0 Transparent - 1 Opaque." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Opacity') - key_val_pair = [i for i in props if 'Opacity=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Opacity') return val @opacity.setter - def opacity(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Opacity=' + value]) + def opacity(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Opacity=' + value]) @property def vertical_offset(self) -> float: """Vertical Offset "Adjust vertical position of CAD model overlay." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Vertical Offset') - key_val_pair = [i for i in props if 'Vertical Offset=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Vertical Offset') return val @vertical_offset.setter - def vertical_offset(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Vertical Offset=' + value]) + def vertical_offset(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Offset=' + value]) @property def range_axis_rotation(self) -> float: @@ -144,15 +116,11 @@ def range_axis_rotation(self) -> float: "Adjust view angle for CAD model overlay by rotating it about plot horizontal axis." "Value should be between -180 and 180." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Range Axis Rotation') - key_val_pair = [i for i in props if 'Range Axis Rotation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Range Axis Rotation') return val @range_axis_rotation.setter - def range_axis_rotation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Range Axis Rotation=' + value]) + def range_axis_rotation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Range Axis Rotation=' + value]) @property def lock_axes(self) -> bool: @@ -160,75 +128,55 @@ def lock_axes(self) -> bool: "Allow or prevent changing of axes when displayed plot traces are updated." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lock Axes') - key_val_pair = [i for i in props if 'Lock Axes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lock Axes') return val @lock_axes.setter - def lock_axes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lock Axes=' + value]) + def lock_axes(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lock Axes=' + value]) @property def x_axis_min(self) -> float: """X-axis Min "Set lower extent of horizontal axis." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X-axis Min') - key_val_pair = [i for i in props if 'X-axis Min=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('X-axis Min') return val @x_axis_min.setter - def x_axis_min(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['X-axis Min=' + value]) + def x_axis_min(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['X-axis Min=' + value]) @property def x_axis_max(self) -> float: """X-axis Max "Set upper extent of horizontal axis." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'X-axis Max') - key_val_pair = [i for i in props if 'X-axis Max=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('X-axis Max') return val @x_axis_max.setter - def x_axis_max(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['X-axis Max=' + value]) + def x_axis_max(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['X-axis Max=' + value]) @property def y_axis_min(self) -> float: """Y-axis Min "Set lower extent of vertical axis." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y-axis Min') - key_val_pair = [i for i in props if 'Y-axis Min=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Y-axis Min') return val @y_axis_min.setter - def y_axis_min(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y-axis Min=' + value]) + def y_axis_min(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Min=' + value]) @property def y_axis_max(self) -> float: """Y-axis Max "Set upper extent of vertical axis." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y-axis Max') - key_val_pair = [i for i in props if 'Y-axis Max=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Y-axis Max') return val @y_axis_max.setter - def y_axis_max(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y-axis Max=' + value]) + def y_axis_max(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Max=' + value]) @property def y_axis_range(self) -> float: @@ -236,15 +184,11 @@ def y_axis_range(self) -> float: "Adjust dB span of vertical axis, makes corresponding adjustment in Y-axis Min." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Y-axis Range') - key_val_pair = [i for i in props if 'Y-axis Range=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Y-axis Range') return val @y_axis_range.setter - def y_axis_range(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Y-axis Range=' + value]) + def y_axis_range(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Range=' + value]) @property def max_major_ticks(self) -> int: @@ -252,15 +196,11 @@ def max_major_ticks(self) -> int: "Set maximum number of major tick-mark intervals along horizontal axis." "Value should be between 1 and 30." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Major Ticks') - key_val_pair = [i for i in props if 'Max Major Ticks=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Major Ticks') return val @max_major_ticks.setter - def max_major_ticks(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) + def max_major_ticks(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) @property def max_minor_ticks(self) -> int: @@ -268,15 +208,11 @@ def max_minor_ticks(self) -> int: "Set maximum number of minor tick-mark intervals between major ticks along horizontal axis." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Minor Ticks') - key_val_pair = [i for i in props if 'Max Minor Ticks=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Minor Ticks') return val @max_minor_ticks.setter - def max_minor_ticks(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) + def max_minor_ticks(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) @property def max_major_ticks(self) -> int: @@ -284,15 +220,11 @@ def max_major_ticks(self) -> int: "Set maximum number of major tick-mark intervals along vertical axis." "Value should be between 1 and 30." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Major Ticks') - key_val_pair = [i for i in props if 'Max Major Ticks=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Major Ticks') return val @max_major_ticks.setter - def max_major_ticks(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) + def max_major_ticks(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) @property def max_minor_ticks(self) -> int: @@ -300,15 +232,11 @@ def max_minor_ticks(self) -> int: "Set maximum number of minor tick-mark intervals between major ticks along vertical axis." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Minor Ticks') - key_val_pair = [i for i in props if 'Max Minor Ticks=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Minor Ticks') return val @max_minor_ticks.setter - def max_minor_ticks(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) + def max_minor_ticks(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) @property def axis_label_font(self): @@ -316,15 +244,11 @@ def axis_label_font(self): "Configure axis text labels font family, typeface, and size." "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Axis Label Font') - key_val_pair = [i for i in props if 'Axis Label Font=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Axis Label Font') return val @axis_label_font.setter def axis_label_font(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Axis Label Font=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Axis Label Font=' + value]) @property def axis_tick_label_font(self): @@ -332,30 +256,12 @@ def axis_tick_label_font(self): "Configure axis tick numeric labels font family, typeface, and size." "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Axis Tick Label Font') - key_val_pair = [i for i in props if 'Axis Tick Label Font=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Axis Tick Label Font') return val @axis_tick_label_font.setter def axis_tick_label_font(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Axis Tick Label Font=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Axis Tick Label Font=' + value]) - @property - def major_grid_line_style(self): - """Major Grid Line Style - "Select line style of major-tick grid lines." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Major Grid Line Style') - key_val_pair = [i for i in props if 'Major Grid Line Style=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @major_grid_line_style.setter - def major_grid_line_style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Major Grid Line Style=' + value]) class MajorGridLineStyleOption(Enum): LINES = "Lines" DOTTED = "Dotted" @@ -363,6 +269,17 @@ class MajorGridLineStyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property + def major_grid_line_style(self) -> MajorGridLineStyleOption: + """Major Grid Line Style + "Select line style of major-tick grid lines." + " """ + val = self._get_property('Major Grid Line Style') + val = self.MajorGridLineStyleOption[val] + return val + @major_grid_line_style.setter + def major_grid_line_style(self, value: MajorGridLineStyleOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Major Grid Line Style=' + value.value]) @property def major_grid_color(self): @@ -370,30 +287,12 @@ def major_grid_color(self): "Set color of major-tick grid lines." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Major Grid Color') - key_val_pair = [i for i in props if 'Major Grid Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Major Grid Color') return val @major_grid_color.setter def major_grid_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Major Grid Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Major Grid Color=' + value]) - @property - def minor_grid_line_style(self): - """Minor Grid Line Style - "Select line style of minor-tick grid lines." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minor Grid Line Style') - key_val_pair = [i for i in props if 'Minor Grid Line Style=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @minor_grid_line_style.setter - def minor_grid_line_style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Minor Grid Line Style=' + value]) class MinorGridLineStyleOption(Enum): LINES = "Lines" DOTTED = "Dotted" @@ -401,6 +300,17 @@ class MinorGridLineStyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property + def minor_grid_line_style(self) -> MinorGridLineStyleOption: + """Minor Grid Line Style + "Select line style of minor-tick grid lines." + " """ + val = self._get_property('Minor Grid Line Style') + val = self.MinorGridLineStyleOption[val] + return val + @minor_grid_line_style.setter + def minor_grid_line_style(self, value: MinorGridLineStyleOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Minor Grid Line Style=' + value.value]) @property def minor_grid_color(self): @@ -408,15 +318,11 @@ def minor_grid_color(self): "Set color of minor-tick grid lines." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minor Grid Color') - key_val_pair = [i for i in props if 'Minor Grid Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Minor Grid Color') return val @minor_grid_color.setter def minor_grid_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Minor Grid Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Minor Grid Color=' + value]) @property def background_color(self): @@ -424,35 +330,28 @@ def background_color(self): "Set background color of entire plot." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Background Color') - key_val_pair = [i for i in props if 'Background Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Background Color') return val @background_color.setter def background_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Background Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) + class BBPowerforPlotsUnitOption(Enum): + HERTZ = "hertz" + KILOHERTZ = "kilohertz" + MEGAHERTZ = "megahertz" + GIGAHERTZ = "gigahertz" @property - def bb_power_for_plots_unit(self): + def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit "Units to use for plotting broadband power densities." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BB Power for Plots Unit') - key_val_pair = [i for i in props if 'BB Power for Plots Unit=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('BB Power for Plots Unit') + val = self.BBPowerforPlotsUnitOption[val] return val @bb_power_for_plots_unit.setter - def bb_power_for_plots_unit(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['BB Power for Plots Unit=' + value]) - class BBPowerforPlotsUnitOption(Enum): - HERTZ = "hertz" - KILOHERTZ = "kilohertz" - MEGAHERTZ = "megahertz" - GIGAHERTZ = "gigahertz" + def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['BB Power for Plots Unit=' + value.value]) @property def bb_power_bandwidth(self) -> float: @@ -460,15 +359,11 @@ def bb_power_bandwidth(self) -> float: "Resolution bandwidth for broadband power." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BB Power Bandwidth') - key_val_pair = [i for i in props if 'BB Power Bandwidth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('BB Power Bandwidth') return val @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['BB Power Bandwidth=' + value]) + def bb_power_bandwidth(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['BB Power Bandwidth=' + value]) @property def log_scale(self) -> bool: @@ -476,13 +371,9 @@ def log_scale(self) -> bool: "Toggles on/off using a log scale for the X-Axis." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Log Scale') - key_val_pair = [i for i in props if 'Log Scale=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Log Scale') return val @log_scale.setter - def log_scale(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Log Scale=' + value]) + def log_scale(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Log Scale=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py index 473a3eebbef..4e01e75d617 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class RfSystemGroup(GenericEmitNode): +from ..EmitNode import * + +class RfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -15,15 +19,11 @@ def enable_passive_noise(self) -> bool: "If true, the noise contributions of antennas and passive components are included in cosite simulation. Note: Antenna and passive component noise is always included in link analysis simulation.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Passive Noise') - key_val_pair = [i for i in props if 'Enable Passive Noise=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Passive Noise') return val @enable_passive_noise.setter - def enable_passive_noise(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Passive Noise=' + value]) + def enable_passive_noise(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Passive Noise=' + value]) @property def enforce_thermal_noise_floor(self) -> bool: @@ -31,13 +31,9 @@ def enforce_thermal_noise_floor(self) -> bool: "If true, all broadband noise is limited by the thermal noise floor (-174 dBm/Hz)." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enforce Thermal Noise Floor') - key_val_pair = [i for i in props if 'Enforce Thermal Noise Floor=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enforce Thermal Noise Floor') return val @enforce_thermal_noise_floor.setter - def enforce_thermal_noise_floor(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enforce Thermal Noise Floor=' + value]) + def enforce_thermal_noise_floor(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enforce Thermal Noise Floor=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py index b248de2a42b..8ada08d2f84 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class RxMeasNode(GenericEmitNode): +from ..EmitNode import * + +class RxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -23,56 +27,38 @@ def file(self) -> str: "Name of the measurement source." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'File') - key_val_pair = [i for i in props if 'File=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('File') return val - @property def source_file(self) -> str: """Source File "Name of the measurement source." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Source File') - key_val_pair = [i for i in props if 'Source File=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Source File') return val - @property def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Receive Frequency') - key_val_pair = [i for i in props if 'Receive Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Receive Frequency') return val - + class MeasurementModeOption(Enum): + AUDIO_SINAD = "Audio SINAD" + DIGITAL_BER = "Digital BER" + GPS_CNR = "GPS CNR" @property - def measurement_mode(self): + def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode "Defines the mode for the receiver measurement." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measurement Mode') - key_val_pair = [i for i in props if 'Measurement Mode=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Measurement Mode') + val = self.MeasurementModeOption[val] return val @measurement_mode.setter - def measurement_mode(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Measurement Mode=' + value]) - class MeasurementModeOption(Enum): - AUDIO_SINAD = "Audio SINAD" - DIGITAL_BER = "Digital BER" - GPS_CNR = "GPS CNR" + def measurement_mode(self, value: MeasurementModeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Measurement Mode=' + value.value]) @property def sinad_threshold(self) -> float: @@ -80,15 +66,11 @@ def sinad_threshold(self) -> float: "SINAD Threshold used for the receiver measurements." "Value should be between 5 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'SINAD Threshold') - key_val_pair = [i for i in props if 'SINAD Threshold=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('SINAD Threshold') return val @sinad_threshold.setter - def sinad_threshold(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['SINAD Threshold=' + value]) + def sinad_threshold(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['SINAD Threshold=' + value]) @property def gps_cnr_threshold(self) -> float: @@ -96,15 +78,11 @@ def gps_cnr_threshold(self) -> float: "GPS CNR Threshold used for the receiver measurements." "Value should be between 15 and 30." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'GPS CNR Threshold') - key_val_pair = [i for i in props if 'GPS CNR Threshold=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('GPS CNR Threshold') return val @gps_cnr_threshold.setter - def gps_cnr_threshold(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['GPS CNR Threshold=' + value]) + def gps_cnr_threshold(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['GPS CNR Threshold=' + value]) @property def ber_threshold(self) -> float: @@ -112,15 +90,11 @@ def ber_threshold(self) -> float: "BER Threshold used for the receiver measurements." "Value should be between -12 and -1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'BER Threshold') - key_val_pair = [i for i in props if 'BER Threshold=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('BER Threshold') return val @ber_threshold.setter - def ber_threshold(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['BER Threshold=' + value]) + def ber_threshold(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['BER Threshold=' + value]) @property def default_intended_power(self) -> bool: @@ -128,15 +102,11 @@ def default_intended_power(self) -> bool: "Specify the intended signal." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Default Intended Power') - key_val_pair = [i for i in props if 'Default Intended Power=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Default Intended Power') return val @default_intended_power.setter - def default_intended_power(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Default Intended Power=' + value]) + def default_intended_power(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Default Intended Power=' + value]) @property def intended_signal_power(self) -> float: @@ -144,15 +114,11 @@ def intended_signal_power(self) -> float: "Specify the power level of the intended signal." "Value should be between -140 and -50." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Intended Signal Power') - key_val_pair = [i for i in props if 'Intended Signal Power=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Intended Signal Power') return val @intended_signal_power.setter - def intended_signal_power(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Intended Signal Power=' + value]) + def intended_signal_power(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Intended Signal Power=' + value]) @property def freq_deviation(self) -> float: @@ -160,15 +126,11 @@ def freq_deviation(self) -> float: "Specify the frequency deviation of the intended signal." "Value should be between 1000 and 200000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Freq. Deviation') - key_val_pair = [i for i in props if 'Freq. Deviation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Freq. Deviation') return val @freq_deviation.setter - def freq_deviation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Freq. Deviation=' + value]) + def freq_deviation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Freq. Deviation=' + value]) @property def modulation_depth(self) -> float: @@ -176,15 +138,11 @@ def modulation_depth(self) -> float: "Specify the modulation depth of the intended signal." "Value should be between 10 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Modulation Depth') - key_val_pair = [i for i in props if 'Modulation Depth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Modulation Depth') return val @modulation_depth.setter - def modulation_depth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Modulation Depth=' + value]) + def modulation_depth(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Modulation Depth=' + value]) @property def measure_selectivity(self) -> bool: @@ -192,15 +150,11 @@ def measure_selectivity(self) -> bool: "Enable/disable the measurement of the receiver's selectivity." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measure Selectivity') - key_val_pair = [i for i in props if 'Measure Selectivity=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Measure Selectivity') return val @measure_selectivity.setter - def measure_selectivity(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Measure Selectivity=' + value]) + def measure_selectivity(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Measure Selectivity=' + value]) @property def measure_mixer_products(self) -> bool: @@ -208,15 +162,11 @@ def measure_mixer_products(self) -> bool: "Enable/disable the measurement of the receiver's mixer products." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measure Mixer Products') - key_val_pair = [i for i in props if 'Measure Mixer Products=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Measure Mixer Products') return val @measure_mixer_products.setter - def measure_mixer_products(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Measure Mixer Products=' + value]) + def measure_mixer_products(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Measure Mixer Products=' + value]) @property def max_rf_order(self) -> int: @@ -224,15 +174,11 @@ def max_rf_order(self) -> int: "Max RF Order of the mixer products to measure." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max RF Order') - key_val_pair = [i for i in props if 'Max RF Order=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max RF Order') return val @max_rf_order.setter - def max_rf_order(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max RF Order=' + value]) + def max_rf_order(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max RF Order=' + value]) @property def max_lo_order(self) -> int: @@ -240,15 +186,11 @@ def max_lo_order(self) -> int: "Max LO Order of the mixer products to measure." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max LO Order') - key_val_pair = [i for i in props if 'Max LO Order=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max LO Order') return val @max_lo_order.setter - def max_lo_order(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max LO Order=' + value]) + def max_lo_order(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max LO Order=' + value]) @property def include_if(self) -> bool: @@ -256,15 +198,11 @@ def include_if(self) -> bool: "Enable/disable the measurement of the IF channel." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include IF') - key_val_pair = [i for i in props if 'Include IF=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include IF') return val @include_if.setter - def include_if(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include IF=' + value]) + def include_if(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include IF=' + value]) @property def measure_saturation(self) -> bool: @@ -272,15 +210,11 @@ def measure_saturation(self) -> bool: "Enable/disable measurement of the receiver's saturation level." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measure Saturation') - key_val_pair = [i for i in props if 'Measure Saturation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Measure Saturation') return val @measure_saturation.setter - def measure_saturation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Measure Saturation=' + value]) + def measure_saturation(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Measure Saturation=' + value]) @property def use_ams_limits(self) -> bool: @@ -288,15 +222,11 @@ def use_ams_limits(self) -> bool: "Allow AMS to determine the limits for measuring saturation." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use AMS Limits') - key_val_pair = [i for i in props if 'Use AMS Limits=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Use AMS Limits') return val @use_ams_limits.setter - def use_ams_limits(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use AMS Limits=' + value]) + def use_ams_limits(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use AMS Limits=' + value]) @property def start_frequency(self) -> float: @@ -304,15 +234,11 @@ def start_frequency(self) -> float: "Starting frequency for the measurement sweep." "Value should be greater than 1e+06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Start Frequency') - key_val_pair = [i for i in props if 'Start Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Start Frequency') return val @start_frequency.setter - def start_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Start Frequency=' + value]) + def start_frequency(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Start Frequency=' + value]) @property def stop_frequency(self) -> float: @@ -320,15 +246,11 @@ def stop_frequency(self) -> float: "Stopping frequency for the measurement sweep." "Value should be less than 6e+09." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop Frequency') - key_val_pair = [i for i in props if 'Stop Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Stop Frequency') return val @stop_frequency.setter - def stop_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Stop Frequency=' + value]) + def stop_frequency(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Stop Frequency=' + value]) @property def samples(self) -> int: @@ -336,15 +258,11 @@ def samples(self) -> int: "Number of measurement samples for each frequency." "Value should be between 2 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Samples') - key_val_pair = [i for i in props if 'Samples=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Samples') return val @samples.setter - def samples(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Samples=' + value]) + def samples(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Samples=' + value]) @property def exclude_mixer_products_below_noise(self) -> bool: @@ -352,21 +270,17 @@ def exclude_mixer_products_below_noise(self) -> bool: "Include/Exclude Mixer Products below the noise." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Exclude Mixer Products Below Noise') - key_val_pair = [i for i in props if 'Exclude Mixer Products Below Noise=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Exclude Mixer Products Below Noise') return val @exclude_mixer_products_below_noise.setter - def exclude_mixer_products_below_noise(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Exclude Mixer Products Below Noise=' + value]) + def exclude_mixer_products_below_noise(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Exclude Mixer Products Below Noise=' + value]) @property - def enabled(self): + def enabled(self) -> bool: """Enabled state for this node.""" - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py index 82dafa79b04..71cc2c3af00 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class RxMixerProductNode(GenericEmitNode): +from ..EmitNode import * + +class RxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -18,31 +22,28 @@ def delete(self): self._delete() @property - def enabled(self): + def enabled(self) -> bool: """Enabled state for this node.""" - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + class MixerProductTaperOption(Enum): + CONSTANT = "Constant" + MIL_STD_461G = "MIL-STD-461G" + DUFF_MODEL = "Duff Model" @property - def mixer_product_taper(self): + def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper "Taper for setting amplitude of mixer products." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Taper') - key_val_pair = [i for i in props if 'Mixer Product Taper=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Mixer Product Taper') + val = self.MixerProductTaperOption[val] return val @mixer_product_taper.setter - def mixer_product_taper(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mixer Product Taper=' + value]) - class MixerProductTaperOption(Enum): - CONSTANT = "Constant" - MIL_STD_461G = "MIL-STD-461G" - DUFF_MODEL = "Duff Model" + def mixer_product_taper(self, value: MixerProductTaperOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Taper=' + value.value]) @property def mixer_product_susceptibility(self) -> float: @@ -50,15 +51,11 @@ def mixer_product_susceptibility(self) -> float: "Mixer product amplitudes (relative to the in-band susceptibility)." "Value should be between -200 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Susceptibility') - key_val_pair = [i for i in props if 'Mixer Product Susceptibility=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Mixer Product Susceptibility') return val @mixer_product_susceptibility.setter - def mixer_product_susceptibility(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mixer Product Susceptibility=' + value]) + def mixer_product_susceptibility(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Susceptibility=' + value]) @property def spurious_rejection(self) -> float: @@ -66,15 +63,11 @@ def spurious_rejection(self) -> float: "Mixer product amplitudes (relative to the in-band susceptibility)." "Value should be between -200 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spurious Rejection') - key_val_pair = [i for i in props if 'Spurious Rejection=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Spurious Rejection') return val @spurious_rejection.setter - def spurious_rejection(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Spurious Rejection=' + value]) + def spurious_rejection(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Spurious Rejection=' + value]) @property def minimum_tuning_frequency(self) -> float: @@ -82,15 +75,11 @@ def minimum_tuning_frequency(self) -> float: "Minimum tuning frequency of Rx's local oscillator." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Minimum Tuning Frequency') - key_val_pair = [i for i in props if 'Minimum Tuning Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Minimum Tuning Frequency') return val @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Minimum Tuning Frequency=' + value]) + def minimum_tuning_frequency(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Minimum Tuning Frequency=' + value]) @property def maximum_tuning_frequency(self) -> float: @@ -98,15 +87,11 @@ def maximum_tuning_frequency(self) -> float: "Maximum tuning frequency of Rx's local oscillator." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Maximum Tuning Frequency') - key_val_pair = [i for i in props if 'Maximum Tuning Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Maximum Tuning Frequency') return val @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Maximum Tuning Frequency=' + value]) + def maximum_tuning_frequency(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Maximum Tuning Frequency=' + value]) @property def mixer_product_slope(self) -> float: @@ -114,15 +99,11 @@ def mixer_product_slope(self) -> float: "Rate of decrease for amplitude of Rx's local oscillator harmonics (dB/decade)." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Slope') - key_val_pair = [i for i in props if 'Mixer Product Slope=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Mixer Product Slope') return val @mixer_product_slope.setter - def mixer_product_slope(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mixer Product Slope=' + value]) + def mixer_product_slope(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Slope=' + value]) @property def mixer_product_intercept(self) -> float: @@ -130,15 +111,11 @@ def mixer_product_intercept(self) -> float: "Mixer product intercept (dBc)." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Intercept') - key_val_pair = [i for i in props if 'Mixer Product Intercept=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Mixer Product Intercept') return val @mixer_product_intercept.setter - def mixer_product_intercept(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mixer Product Intercept=' + value]) + def mixer_product_intercept(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Intercept=' + value]) @property def _80_db_bandwidth(self) -> float: @@ -146,15 +123,11 @@ def _80_db_bandwidth(self) -> float: "Bandwidth where Rx's susceptibility envelope is 80 dB above in-band susceptibility level." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'80 dB Bandwidth') - key_val_pair = [i for i in props if '80 dB Bandwidth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('80 dB Bandwidth') return val @_80_db_bandwidth.setter - def _80_db_bandwidth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['80 dB Bandwidth=' + value]) + def _80_db_bandwidth(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['80 dB Bandwidth=' + value]) @property def image_rejection(self) -> float: @@ -162,15 +135,11 @@ def image_rejection(self) -> float: "Image frequency amplitude (relative to the in-band susceptibility)." "Value should be between -200 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Image Rejection') - key_val_pair = [i for i in props if 'Image Rejection=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Image Rejection') return val @image_rejection.setter - def image_rejection(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Image Rejection=' + value]) + def image_rejection(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Image Rejection=' + value]) @property def maximum_rf_harmonic_order(self) -> int: @@ -178,15 +147,11 @@ def maximum_rf_harmonic_order(self) -> int: "Maximum order of RF frequency." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Maximum RF Harmonic Order') - key_val_pair = [i for i in props if 'Maximum RF Harmonic Order=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Maximum RF Harmonic Order') return val @maximum_rf_harmonic_order.setter - def maximum_rf_harmonic_order(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Maximum RF Harmonic Order=' + value]) + def maximum_rf_harmonic_order(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Maximum RF Harmonic Order=' + value]) @property def maximum_lo_harmonic_order(self) -> int: @@ -194,34 +159,27 @@ def maximum_lo_harmonic_order(self) -> int: "Maximum order of the LO frequency." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Maximum LO Harmonic Order') - key_val_pair = [i for i in props if 'Maximum LO Harmonic Order=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Maximum LO Harmonic Order') return val @maximum_lo_harmonic_order.setter - def maximum_lo_harmonic_order(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Maximum LO Harmonic Order=' + value]) + def maximum_lo_harmonic_order(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Maximum LO Harmonic Order=' + value]) + class MixingModeOption(Enum): + ABOVETUNEDFREQUENCY = "LO Above Tuned (RF) Frequency" + BELOWTUNEDFREQUENCY = "LO Below Tuned (RF) Frequency" + BOTHTUNEDFREQUENCIES = "LO Above/Below Tuned (RF) Frequency" @property - def mixing_mode(self): + def mixing_mode(self) -> MixingModeOption: """Mixing Mode "Specifies whether the IF frequency is > or < RF channel frequency." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixing Mode') - key_val_pair = [i for i in props if 'Mixing Mode=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Mixing Mode') + val = self.MixingModeOption[val] return val @mixing_mode.setter - def mixing_mode(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mixing Mode=' + value]) - class MixingModeOption(Enum): - ABOVETUNEDFREQUENCY = "LO Above Tuned (RF) Frequency" - BELOWTUNEDFREQUENCY = "LO Below Tuned (RF) Frequency" - BOTHTUNEDFREQUENCIES = "LO Above/Below Tuned (RF) Frequency" + def mixing_mode(self, value: MixingModeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mixing Mode=' + value.value]) @property def _1st_if_frequency(self): @@ -229,64 +187,50 @@ def _1st_if_frequency(self): "Intermediate frequency for Rx's 1st conversion stage." "Value should be a mathematical expression." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'1st IF Frequency') - key_val_pair = [i for i in props if '1st IF Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('1st IF Frequency') return val @_1st_if_frequency.setter def _1st_if_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['1st IF Frequency=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['1st IF Frequency=' + value]) @property def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'RF Transition Frequency') - key_val_pair = [i for i in props if 'RF Transition Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('RF Transition Frequency') return val @rf_transition_frequency.setter - def rf_transition_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['RF Transition Frequency=' + value]) + def rf_transition_frequency(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['RF Transition Frequency=' + value]) + class UseHighLOOption(Enum): + ABOVETRANSITION = "Above Transition Frequency" + BELOWTRANSITION = "Below Transition Frequency" @property - def use_high_lo(self): + def use_high_lo(self) -> UseHighLOOption: """Use High LO "Use High LO above/below the transition frequency." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use High LO') - key_val_pair = [i for i in props if 'Use High LO=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Use High LO') + val = self.UseHighLOOption[val] return val @use_high_lo.setter - def use_high_lo(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use High LO=' + value]) - class UseHighLOOption(Enum): - ABOVETRANSITION = "Above Transition Frequency" - BELOWTRANSITION = "Below Transition Frequency" + def use_high_lo(self, value: UseHighLOOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use High LO=' + value.value]) + class MixerProductTableUnitsOption(Enum): + ABSOLUTE = "Absolute" + RELATIVE = "Relative" @property - def mixer_product_table_units(self): + def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units "Specifies the units for the Mixer Products." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Mixer Product Table Units') - key_val_pair = [i for i in props if 'Mixer Product Table Units=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Mixer Product Table Units') + val = self.MixerProductTableUnitsOption[val] return val @mixer_product_table_units.setter - def mixer_product_table_units(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Mixer Product Table Units=' + value]) - class MixerProductTableUnitsOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE = "Relative" + def mixer_product_table_units(self, value: MixerProductTableUnitsOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Table Units=' + value.value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py index 176bc23a038..b18309faf4c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class RxSaturationNode(GenericEmitNode): +from ..EmitNode import * + +class RxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -18,10 +22,10 @@ def delete(self): self._delete() @property - def enabled(self): + def enabled(self) -> bool: """Enabled state for this node.""" - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py index f50bb252a12..71545bcff31 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class RxSelectivityNode(GenericEmitNode): +from ..EmitNode import * + +class RxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -18,12 +22,12 @@ def delete(self): self._delete() @property - def enabled(self): + def enabled(self) -> bool: """Enabled state for this node.""" - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) @property def use_arithmetic_mean(self) -> bool: @@ -31,13 +35,9 @@ def use_arithmetic_mean(self) -> bool: "Uses arithmetic mean to center bandwidths about the tuned channel frequency." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Arithmetic Mean') - key_val_pair = [i for i in props if 'Use Arithmetic Mean=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Use Arithmetic Mean') return val @use_arithmetic_mean.setter - def use_arithmetic_mean(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use Arithmetic Mean=' + value]) + def use_arithmetic_mean(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use Arithmetic Mean=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py index 791095c4811..a64e243b4c8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class RxSpurNode(GenericEmitNode): +from ..EmitNode import * + +class RxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -18,28 +22,41 @@ def delete(self): self._delete() @property - def enabled(self): + def table_data(self): + """ Table" + "Table consists of 3 columns." + "Frequency (MHz): + " Value should be a mathematical expression." + "Bandwidth: + " Value should be greater than 1." + "Power: + " Value should be between -200 and 150." + """ + return self._get_table_data() + @table_data.setter + def table_data(self, value): + self._set_table_data(value) + + @property + def enabled(self) -> bool: """Enabled state for this node.""" - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + class SpurTableUnitsOption(Enum): + ABSOLUTE = "Absolute" + RELATIVE = "Relative" @property - def spur_table_units(self): + def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spur Table Units') - key_val_pair = [i for i in props if 'Spur Table Units=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Spur Table Units') + val = self.SpurTableUnitsOption[val] return val @spur_table_units.setter - def spur_table_units(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Spur Table Units=' + value]) - class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE = "Relative" + def spur_table_units(self, value: SpurTableUnitsOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Spur Table Units=' + value.value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py index 39a134a5b6a..9975240b1a0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class RxSusceptibilityProfNode(GenericEmitNode): +from ..EmitNode import * + +class RxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -10,32 +14,29 @@ def parent(self): return self._parent @property - def enabled(self): + def enabled(self) -> bool: """Enabled state for this node.""" - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + class SensitivityUnitsOption(Enum): + DBM = "dBm" + DBUV = "dBuV" + MILLIWATTS = "milliwatts" + MICROVOLTS = "microvolts" @property - def sensitivity_units(self): + def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units "Units to use for the Rx Sensitivity." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Sensitivity Units') - key_val_pair = [i for i in props if 'Sensitivity Units=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Sensitivity Units') + val = self.SensitivityUnitsOption[val] return val @sensitivity_units.setter - def sensitivity_units(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Sensitivity Units=' + value]) - class SensitivityUnitsOption(Enum): - DBM = "dBm" - DBUV = "dBuV" - MILLIWATTS = "milliwatts" - MICROVOLTS = "microvolts" + def sensitivity_units(self, value: SensitivityUnitsOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Sensitivity Units=' + value.value]) @property def min_receive_signal_pwr_(self) -> float: @@ -43,15 +44,11 @@ def min_receive_signal_pwr_(self) -> float: "Received signal power level at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Min. Receive Signal Pwr ') - key_val_pair = [i for i in props if 'Min. Receive Signal Pwr =' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Min. Receive Signal Pwr ') return val @min_receive_signal_pwr_.setter - def min_receive_signal_pwr_(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Min. Receive Signal Pwr =' + value]) + def min_receive_signal_pwr_(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Min. Receive Signal Pwr =' + value]) @property def snr_at_rx_signal_pwr(self) -> float: @@ -59,15 +56,11 @@ def snr_at_rx_signal_pwr(self) -> float: "Signal-to-Noise Ratio (dB) at specified received signal power at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'SNR at Rx Signal Pwr') - key_val_pair = [i for i in props if 'SNR at Rx Signal Pwr=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('SNR at Rx Signal Pwr') return val @snr_at_rx_signal_pwr.setter - def snr_at_rx_signal_pwr(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['SNR at Rx Signal Pwr=' + value]) + def snr_at_rx_signal_pwr(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['SNR at Rx Signal Pwr=' + value]) @property def processing_gain(self) -> float: @@ -75,15 +68,11 @@ def processing_gain(self) -> float: "Rx processing gain (dB) of (optional) despreader." "Value should be between -1000 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Processing Gain') - key_val_pair = [i for i in props if 'Processing Gain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Processing Gain') return val @processing_gain.setter - def processing_gain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Processing Gain=' + value]) + def processing_gain(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Processing Gain=' + value]) @property def apply_pg_to_narrowband_only(self) -> bool: @@ -91,15 +80,11 @@ def apply_pg_to_narrowband_only(self) -> bool: "Processing gain captures the despreading effect and applies to NB signals only (not BB noise) when enabled." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Apply PG to Narrowband Only') - key_val_pair = [i for i in props if 'Apply PG to Narrowband Only=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Apply PG to Narrowband Only') return val @apply_pg_to_narrowband_only.setter - def apply_pg_to_narrowband_only(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Apply PG to Narrowband Only=' + value]) + def apply_pg_to_narrowband_only(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Apply PG to Narrowband Only=' + value]) @property def saturation_level(self) -> float: @@ -107,15 +92,11 @@ def saturation_level(self) -> float: "Rx input saturation level." "Value should be between -1000 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Saturation Level') - key_val_pair = [i for i in props if 'Saturation Level=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Saturation Level') return val @saturation_level.setter - def saturation_level(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Saturation Level=' + value]) + def saturation_level(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Saturation Level=' + value]) @property def rx_noise_figure(self) -> float: @@ -123,15 +104,11 @@ def rx_noise_figure(self) -> float: "Rx noise figure (dB)." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rx Noise Figure') - key_val_pair = [i for i in props if 'Rx Noise Figure=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rx Noise Figure') return val @rx_noise_figure.setter - def rx_noise_figure(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rx Noise Figure=' + value]) + def rx_noise_figure(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rx Noise Figure=' + value]) @property def receiver_sensitivity_(self) -> float: @@ -139,15 +116,11 @@ def receiver_sensitivity_(self) -> float: "Rx minimum sensitivity level (dBm)." "Value should be between -1000 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Receiver Sensitivity ') - key_val_pair = [i for i in props if 'Receiver Sensitivity =' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Receiver Sensitivity ') return val @receiver_sensitivity_.setter - def receiver_sensitivity_(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Receiver Sensitivity =' + value]) + def receiver_sensitivity_(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Receiver Sensitivity =' + value]) @property def snrsinad_at_sensitivity_(self) -> float: @@ -155,15 +128,11 @@ def snrsinad_at_sensitivity_(self) -> float: "SNR or SINAD at the specified sensitivity level." "Value should be between -1000 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'SNR/SINAD at Sensitivity ') - key_val_pair = [i for i in props if 'SNR/SINAD at Sensitivity =' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('SNR/SINAD at Sensitivity ') return val @snrsinad_at_sensitivity_.setter - def snrsinad_at_sensitivity_(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['SNR/SINAD at Sensitivity =' + value]) + def snrsinad_at_sensitivity_(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['SNR/SINAD at Sensitivity =' + value]) @property def perform_rx_intermod_analysis(self) -> bool: @@ -171,15 +140,11 @@ def perform_rx_intermod_analysis(self) -> bool: "Performs a non-linear intermod analysis for the Rx." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Perform Rx Intermod Analysis') - key_val_pair = [i for i in props if 'Perform Rx Intermod Analysis=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Perform Rx Intermod Analysis') return val @perform_rx_intermod_analysis.setter - def perform_rx_intermod_analysis(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Perform Rx Intermod Analysis=' + value]) + def perform_rx_intermod_analysis(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Perform Rx Intermod Analysis=' + value]) @property def amplifier_saturation_level(self) -> float: @@ -187,15 +152,11 @@ def amplifier_saturation_level(self) -> float: "Internal Rx Amplifier's Saturation Level." "Value should be between -200 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplifier Saturation Level') - key_val_pair = [i for i in props if 'Amplifier Saturation Level=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Amplifier Saturation Level') return val @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplifier Saturation Level=' + value]) + def amplifier_saturation_level(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Amplifier Saturation Level=' + value]) @property def _1_db_point_ref_input_(self) -> float: @@ -203,15 +164,11 @@ def _1_db_point_ref_input_(self) -> float: "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." "Value should be between -1000 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'1-dB Point, Ref. Input ') - key_val_pair = [i for i in props if '1-dB Point, Ref. Input =' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('1-dB Point, Ref. Input ') return val @_1_db_point_ref_input_.setter - def _1_db_point_ref_input_(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input =' + value]) + def _1_db_point_ref_input_(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input =' + value]) @property def ip3_ref_input(self) -> float: @@ -219,15 +176,11 @@ def ip3_ref_input(self) -> float: "Internal Rx Amplifier's 3rd order intercept point." "Value should be between -1000 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'IP3, Ref. Input') - key_val_pair = [i for i in props if 'IP3, Ref. Input=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('IP3, Ref. Input') return val @ip3_ref_input.setter - def ip3_ref_input(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + value]) + def ip3_ref_input(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + value]) @property def max_intermod_order(self) -> int: @@ -235,13 +188,9 @@ def max_intermod_order(self) -> int: "Internal Rx Amplifier's maximum intermod order to compute." "Value should be between 3 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Intermod Order') - key_val_pair = [i for i in props if 'Max Intermod Order=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Intermod Order') return val @max_intermod_order.setter - def max_intermod_order(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) + def max_intermod_order(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py index f199c9cb343..9ffc1861ca5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class SamplingNode(GenericEmitNode): +from ..EmitNode import * + +class SamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -10,23 +14,34 @@ def parent(self): return self._parent @property - def sampling_type(self): + def table_data(self): + """ Table" + "Table consists of 2 columns." + "Min: + " Value should be greater than 1." + "Max: + " Value should be greater than 1." + """ + return self._get_table_data() + @table_data.setter + def table_data(self, value): + self._set_table_data(value) + + class SamplingTypeOption(Enum): + SAMPLEALLCHANNELS = "Sample All Channels in Range(s)" + RANDOMSAMPLING = "Random Sampling" + UNIFORMSAMPLING = "Uniform Sampling" + @property + def sampling_type(self) -> SamplingTypeOption: """Sampling Type "Sampling to apply to this configuration." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Sampling Type') - key_val_pair = [i for i in props if 'Sampling Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Sampling Type') + val = self.SamplingTypeOption[val] return val @sampling_type.setter - def sampling_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Sampling Type=' + value]) - class SamplingTypeOption(Enum): - SAMPLEALLCHANNELS = "Sample All Channels in Range(s)" - RANDOMSAMPLING = "Random Sampling" - UNIFORMSAMPLING = "Uniform Sampling" + def sampling_type(self, value: SamplingTypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Sampling Type=' + value.value]) @property def specify_percentage(self) -> bool: @@ -34,15 +49,11 @@ def specify_percentage(self) -> bool: "Specify the number of channels to simulate via a percentage of the total available band channels." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Specify Percentage') - key_val_pair = [i for i in props if 'Specify Percentage=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Specify Percentage') return val @specify_percentage.setter - def specify_percentage(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Specify Percentage=' + value]) + def specify_percentage(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Specify Percentage=' + value]) @property def percentage_of_channels(self) -> float: @@ -50,15 +61,11 @@ def percentage_of_channels(self) -> float: "Percentage of the Band Channels to simulate." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Percentage of Channels') - key_val_pair = [i for i in props if 'Percentage of Channels=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Percentage of Channels') return val @percentage_of_channels.setter - def percentage_of_channels(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Percentage of Channels=' + value]) + def percentage_of_channels(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Percentage of Channels=' + value]) @property def max__channelsrangeband(self) -> int: @@ -66,15 +73,11 @@ def max__channelsrangeband(self) -> int: "Maximum number of Band Channels to simulate." "Value should be between 1 and 100000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max # Channels/Range/Band') - key_val_pair = [i for i in props if 'Max # Channels/Range/Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max # Channels/Range/Band') return val @max__channelsrangeband.setter - def max__channelsrangeband(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max # Channels/Range/Band=' + value]) + def max__channelsrangeband(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max # Channels/Range/Band=' + value]) @property def seed(self) -> int: @@ -82,49 +85,30 @@ def seed(self) -> int: "Seed for random channel generator." "Value should be greater than 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Seed') - key_val_pair = [i for i in props if 'Seed=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Seed') return val @seed.setter - def seed(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Seed=' + value]) + def seed(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Seed=' + value]) @property def total_tx_channels(self) -> int: """Total Tx Channels "Total number of transmit channels this configuration is capable of operating on." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Tx Channels') - key_val_pair = [i for i in props if 'Total Tx Channels=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Total Tx Channels') return val - @property def total_rx_channels(self) -> int: """Total Rx Channels "Total number of receive channels this configuration is capable of operating on." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Rx Channels') - key_val_pair = [i for i in props if 'Total Rx Channels=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Total Rx Channels') return val - @property def warnings(self) -> str: """Warnings "Warning(s) for this node." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - key_val_pair = [i for i in props if 'Warnings=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Warnings') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py index 9e09361d2f2..098cfa6ad96 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class SceneGroupNode(GenericEmitNode): +from ..EmitNode import * + +class SceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -31,15 +35,11 @@ def show_relative_coordinates(self) -> bool: "Show Scene Group position and orientation in parent-node coords (False) or relative to placement coords (True)." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Relative Coordinates') - key_val_pair = [i for i in props if 'Show Relative Coordinates=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Show Relative Coordinates') return val @show_relative_coordinates.setter - def show_relative_coordinates(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) + def show_relative_coordinates(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) @property def position(self): @@ -47,15 +47,11 @@ def position(self): "Set position of the Scene Group in parent-node coordinates." "Value should be x/y/z, delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Position') - key_val_pair = [i for i in props if 'Position=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Position') return val @position.setter def position(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Position=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) @property def relative_position(self): @@ -63,33 +59,26 @@ def relative_position(self): "Set position of the Scene Group relative to placement coordinates." "Value should be x/y/z, delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Position') - key_val_pair = [i for i in props if 'Relative Position=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Relative Position') return val @relative_position.setter def relative_position(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Relative Position=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Relative Position=' + value]) + class OrientationModeOption(Enum): + RPYDEG = "Roll-Pitch-Yaw" + AETDEG = "Az-El-Twist" @property - def orientation_mode(self): + def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation Mode') - key_val_pair = [i for i in props if 'Orientation Mode=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Orientation Mode') + val = self.OrientationModeOption[val] return val @orientation_mode.setter - def orientation_mode(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Orientation Mode=' + value]) - class OrientationModeOption(Enum): - RPYDEG = "Roll-Pitch-Yaw" - AETDEG = "Az-El-Twist" + def orientation_mode(self, value: OrientationModeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation Mode=' + value.value]) @property def orientation(self): @@ -97,15 +86,11 @@ def orientation(self): "Set orientation of the Scene Group relative to parent-node coordinates." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Orientation') - key_val_pair = [i for i in props if 'Orientation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Orientation') return val @orientation.setter def orientation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Orientation=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation=' + value]) @property def relative_orientation(self): @@ -113,15 +98,11 @@ def relative_orientation(self): "Set orientation of the Scene Group relative to placement coordinates." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Relative Orientation') - key_val_pair = [i for i in props if 'Relative Orientation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Relative Orientation') return val @relative_orientation.setter def relative_orientation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) @property def show_axes(self) -> bool: @@ -129,15 +110,11 @@ def show_axes(self) -> bool: "Toggle (on/off) display of Scene Group coordinate axes in 3-D window." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Show Axes') - key_val_pair = [i for i in props if 'Show Axes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Show Axes') return val @show_axes.setter - def show_axes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Show Axes=' + value]) + def show_axes(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Axes=' + value]) @property def box_color(self): @@ -145,28 +122,20 @@ def box_color(self): "Set color of the bounding box of the Scene Group." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Box Color') - key_val_pair = [i for i in props if 'Box Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Box Color') return val @box_color.setter def box_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Box Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Box Color=' + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val @notes.setter - def notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + def notes(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py index a57cf24a15b..dab53991106 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class SelectivityTraceNode(GenericEmitNode): +from ..EmitNode import * + +class SelectivityTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -26,15 +30,11 @@ def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - key_val_pair = [i for i in props if 'Data Source=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Data Source') return val @data_source.setter def data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @property def visible(self) -> bool: @@ -42,15 +42,11 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - key_val_pair = [i for i in props if 'Visible=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Visible') return val @visible.setter - def visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + def visible(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -58,45 +54,23 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - key_val_pair = [i for i in props if 'Custom Legend=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Legend') return val @custom_legend.setter - def custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + def custom_legend(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - key_val_pair = [i for i in props if 'Name=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Name') return val @name.setter - def name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + def name(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) - @property - def style(self): - """Style - "Specify line style of plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - key_val_pair = [i for i in props if 'Style=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @style.setter - def style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) class StyleOption(Enum): LINES = "Lines" DOTTED = "Dotted" @@ -104,6 +78,17 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property + def style(self) -> StyleOption: + """Style + "Specify line style of plot trace." + " """ + val = self._get_property('Style') + val = self.StyleOption[val] + return val + @style.setter + def style(self, value: StyleOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -111,15 +96,11 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - key_val_pair = [i for i in props if 'Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Width') return val @line_width.setter - def line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + def line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -127,30 +108,12 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - key_val_pair = [i for i in props if 'Line Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Color') return val @line_color.setter def line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) - @property - def symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - key_val_pair = [i for i in props if 'Symbol=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @symbol.setter - def symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" ELLIPSE = "Ellipse" @@ -167,6 +130,17 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property + def symbol(self) -> SymbolOption: + """Symbol + "Select symbol to mark points along plot trace." + " """ + val = self._get_property('Symbol') + val = self.SymbolOption[val] + return val + @symbol.setter + def symbol(self, value: SymbolOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -174,15 +148,11 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - key_val_pair = [i for i in props if 'Symbol Size=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Size') return val @symbol_size.setter - def symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + def symbol_size(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -190,15 +160,11 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - key_val_pair = [i for i in props if 'Symbol Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Color') return val @symbol_color.setter def symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -206,15 +172,11 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - key_val_pair = [i for i in props if 'Symbol Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Line Width') return val @symbol_line_width.setter - def symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + def symbol_line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -222,13 +184,9 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - key_val_pair = [i for i in props if 'Symbol Filled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Filled') return val @symbol_filled.setter - def symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + def symbol_filled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py index 7cf6de21883..f29f840b1b9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class SolutionCouplingNode(GenericEmitNode): +from ..EmitNode import * + +class SolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -15,15 +19,11 @@ def enabled(self) -> bool: "Enable/Disable coupling (A sweep disabled in HFSS/Layout cannot be enabled in EMIT)." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') return val @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @property def enable_refinement(self) -> bool: @@ -31,15 +31,11 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - key_val_pair = [i for i in props if 'Enable Refinement=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Refinement') return val @enable_refinement.setter - def enable_refinement(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + def enable_refinement(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @property def adaptive_sampling(self) -> bool: @@ -47,28 +43,20 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Adaptive Sampling') return val @adaptive_sampling.setter - def adaptive_sampling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + def adaptive_sampling(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - key_val_pair = [i for i in props if 'Refinement Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Refinement Domain') return val @refinement_domain.setter def refinement_domain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py index fe598a8a3c7..c454f72f6c3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class SolutionsNode(GenericEmitNode): +from ..EmitNode import * + +class SolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -15,13 +19,9 @@ def enabled(self) -> bool: "Enable/Disable coupling (A setup disabled in HFSS/Layout cannot be enabled in EMIT)." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') return val @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py index 36ca6319f07..55a4a5baa4c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class Sparameter(GenericEmitNode): +from ..EmitNode import * + +class Sparameter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) def rename(self, new_name): """Rename this node""" @@ -22,15 +26,11 @@ def file(self) -> str: "S-Parameter file defining the component." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'File') - key_val_pair = [i for i in props if 'File=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('File') return val @file.setter - def file(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['File=' + value]) + def file(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['File=' + value]) @property def noise_temperature(self) -> float: @@ -38,30 +38,22 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - key_val_pair = [i for i in props if 'Noise Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Temperature') return val @noise_temperature.setter - def noise_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + def noise_temperature(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val @notes.setter - def notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + def notes(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) @property def radio_side_ports(self): @@ -69,17 +61,11 @@ def radio_side_ports(self): "Assigns the child port nodes to the multiplexers ports." "A list of values." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Radio Side Ports') - key_val_pair = [i for i in props if 'Radio Side Ports=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val.split('|') + val = self._get_property('Radio Side Ports') + return val @radio_side_ports.setter def radio_side_ports(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Radio Side Ports=' + value]) - class RadioSidePortsOption(Enum): - PORTNAMES = "::PortNames" + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Radio Side Ports=' + value]) @property def antenna_side_ports(self): @@ -87,27 +73,16 @@ def antenna_side_ports(self): "Assigns the child port nodes to the multiplexers ports." "A list of values." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Antenna Side Ports') - key_val_pair = [i for i in props if 'Antenna Side Ports=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val.split('|') + val = self._get_property('Antenna Side Ports') + return val @antenna_side_ports.setter def antenna_side_ports(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Antenna Side Ports=' + value]) - class AntennaSidePortsOption(Enum): - PORTNAMES = "::PortNames" + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna Side Ports=' + value]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - key_val_pair = [i for i in props if 'Warnings=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Warnings') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py index 63eab397305..0889fa8741f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class SpurTraceNode(GenericEmitNode): +from ..EmitNode import * + +class SpurTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -26,42 +30,29 @@ def channel_frequency(self): """Channel Frequency "Select band channel frequency to display." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Channel Frequency') - key_val_pair = [i for i in props if 'Channel Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Channel Frequency') return val @channel_frequency.setter def channel_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Channel Frequency=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Channel Frequency=' + value]) @property def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Transmit Frequency') - key_val_pair = [i for i in props if 'Transmit Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Transmit Frequency') return val - @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - key_val_pair = [i for i in props if 'Data Source=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Data Source') return val @data_source.setter def data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @property def visible(self) -> bool: @@ -69,15 +60,11 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - key_val_pair = [i for i in props if 'Visible=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Visible') return val @visible.setter - def visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + def visible(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -85,45 +72,23 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - key_val_pair = [i for i in props if 'Custom Legend=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Legend') return val @custom_legend.setter - def custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + def custom_legend(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - key_val_pair = [i for i in props if 'Name=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Name') return val @name.setter - def name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + def name(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) - @property - def style(self): - """Style - "Specify line style of plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - key_val_pair = [i for i in props if 'Style=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @style.setter - def style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) class StyleOption(Enum): LINES = "Lines" DOTTED = "Dotted" @@ -131,6 +96,17 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property + def style(self) -> StyleOption: + """Style + "Specify line style of plot trace." + " """ + val = self._get_property('Style') + val = self.StyleOption[val] + return val + @style.setter + def style(self, value: StyleOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -138,15 +114,11 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - key_val_pair = [i for i in props if 'Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Width') return val @line_width.setter - def line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + def line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -154,30 +126,12 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - key_val_pair = [i for i in props if 'Line Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Color') return val @line_color.setter def line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) - @property - def symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - key_val_pair = [i for i in props if 'Symbol=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @symbol.setter - def symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" ELLIPSE = "Ellipse" @@ -194,6 +148,17 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property + def symbol(self) -> SymbolOption: + """Symbol + "Select symbol to mark points along plot trace." + " """ + val = self._get_property('Symbol') + val = self.SymbolOption[val] + return val + @symbol.setter + def symbol(self, value: SymbolOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -201,15 +166,11 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - key_val_pair = [i for i in props if 'Symbol Size=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Size') return val @symbol_size.setter - def symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + def symbol_size(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -217,15 +178,11 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - key_val_pair = [i for i in props if 'Symbol Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Color') return val @symbol_color.setter def symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -233,15 +190,11 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - key_val_pair = [i for i in props if 'Symbol Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Line Width') return val @symbol_line_width.setter - def symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + def symbol_line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -249,13 +202,9 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - key_val_pair = [i for i in props if 'Symbol Filled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Filled') return val @symbol_filled.setter - def symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + def symbol_filled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py index 80622a17679..d4c54525427 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class TRSwitchTraceNode(GenericEmitNode): +from ..EmitNode import * + +class TRSwitchTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -27,15 +31,11 @@ def input_port(self) -> int: "Specifies input port for the plotted outboard component." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Input Port') - key_val_pair = [i for i in props if 'Input Port=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Input Port') return val @input_port.setter - def input_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Input Port=' + value]) + def input_port(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) @property def output_port(self) -> int: @@ -43,30 +43,22 @@ def output_port(self) -> int: "Specifies output port for the plotted outboard component." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Port') - key_val_pair = [i for i in props if 'Output Port=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Output Port') return val @output_port.setter - def output_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Port=' + value]) + def output_port(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - key_val_pair = [i for i in props if 'Data Source=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Data Source') return val @data_source.setter def data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @property def visible(self) -> bool: @@ -74,15 +66,11 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - key_val_pair = [i for i in props if 'Visible=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Visible') return val @visible.setter - def visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + def visible(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -90,45 +78,23 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - key_val_pair = [i for i in props if 'Custom Legend=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Legend') return val @custom_legend.setter - def custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + def custom_legend(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - key_val_pair = [i for i in props if 'Name=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Name') return val @name.setter - def name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + def name(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) - @property - def style(self): - """Style - "Specify line style of plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - key_val_pair = [i for i in props if 'Style=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @style.setter - def style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) class StyleOption(Enum): LINES = "Lines" DOTTED = "Dotted" @@ -136,6 +102,17 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property + def style(self) -> StyleOption: + """Style + "Specify line style of plot trace." + " """ + val = self._get_property('Style') + val = self.StyleOption[val] + return val + @style.setter + def style(self, value: StyleOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -143,15 +120,11 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - key_val_pair = [i for i in props if 'Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Width') return val @line_width.setter - def line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + def line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -159,30 +132,12 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - key_val_pair = [i for i in props if 'Line Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Color') return val @line_color.setter def line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) - @property - def symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - key_val_pair = [i for i in props if 'Symbol=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @symbol.setter - def symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" ELLIPSE = "Ellipse" @@ -199,6 +154,17 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property + def symbol(self) -> SymbolOption: + """Symbol + "Select symbol to mark points along plot trace." + " """ + val = self._get_property('Symbol') + val = self.SymbolOption[val] + return val + @symbol.setter + def symbol(self, value: SymbolOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -206,15 +172,11 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - key_val_pair = [i for i in props if 'Symbol Size=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Size') return val @symbol_size.setter - def symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + def symbol_size(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -222,15 +184,11 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - key_val_pair = [i for i in props if 'Symbol Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Color') return val @symbol_color.setter def symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -238,15 +196,11 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - key_val_pair = [i for i in props if 'Symbol Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Line Width') return val @symbol_line_width.setter - def symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + def symbol_line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -254,13 +208,9 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - key_val_pair = [i for i in props if 'Symbol Filled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Filled') return val @symbol_filled.setter - def symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + def symbol_filled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index 06ab04759d8..ef1cd625a73 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class TR_Switch(GenericEmitNode): +from ..EmitNode import * + +class TR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) def rename(self, new_name): """Rename this node""" @@ -22,15 +26,11 @@ def filename(self) -> str: "Name of file defining the outboard component." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - key_val_pair = [i for i in props if 'Filename=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Filename') return val @filename.setter - def filename(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + def filename(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @property def noise_temperature(self) -> float: @@ -38,66 +38,52 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - key_val_pair = [i for i in props if 'Noise Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Temperature') return val @noise_temperature.setter - def noise_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + def noise_temperature(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val @notes.setter - def notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + def notes(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + class TxPortOption(Enum): + _0 = "Port 1" + _1 = "Port 2" @property - def tx_port(self): + def tx_port(self) -> TxPortOption: """Tx Port "Specifies which port on the TR Switch is part of the Tx path.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx Port') - key_val_pair = [i for i in props if 'Tx Port=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Tx Port') + val = self.TxPortOption[val] return val @tx_port.setter - def tx_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Tx Port=' + value]) - class TxPortOption(Enum): - _0 = "Port 1" - _1 = "Port 2" + def tx_port(self, value: TxPortOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Tx Port=' + value.value]) + class CommonPortLocationOption(Enum): + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" @property - def common_port_location(self): + def common_port_location(self) -> CommonPortLocationOption: """Common Port Location "Defines the orientation of the tr switch.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Common Port Location') - key_val_pair = [i for i in props if 'Common Port Location=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Common Port Location') + val = self.CommonPortLocationOption[val] return val @common_port_location.setter - def common_port_location(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Common Port Location=' + value]) - class CommonPortLocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + def common_port_location(self, value: CommonPortLocationOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Common Port Location=' + value.value]) @property def insertion_loss(self) -> float: @@ -105,15 +91,11 @@ def insertion_loss(self) -> float: "TR Switch in-band loss in forward direction.." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Insertion Loss') - key_val_pair = [i for i in props if 'Insertion Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Insertion Loss') return val @insertion_loss.setter - def insertion_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + def insertion_loss(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) @property def finite_isolation(self) -> bool: @@ -121,15 +103,11 @@ def finite_isolation(self) -> bool: "Use a finite isolation. If disabled, the tr switch model is ideal (infinite isolation).." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Isolation') - key_val_pair = [i for i in props if 'Finite Isolation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Finite Isolation') return val @finite_isolation.setter - def finite_isolation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Isolation=' + value]) + def finite_isolation(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Finite Isolation=' + value]) @property def isolation(self) -> float: @@ -137,15 +115,11 @@ def isolation(self) -> float: "TR Switch reverse isolation (i.e., loss between the Tx/Rx ports).." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Isolation') - key_val_pair = [i for i in props if 'Isolation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Isolation') return val @isolation.setter - def isolation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Isolation=' + value]) + def isolation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Isolation=' + value]) @property def finite_bandwidth(self) -> bool: @@ -153,15 +127,11 @@ def finite_bandwidth(self) -> bool: "Use a finite bandwidth. If disabled, the tr switch model is ideal (infinite bandwidth).." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Finite Bandwidth') - key_val_pair = [i for i in props if 'Finite Bandwidth=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Finite Bandwidth') return val @finite_bandwidth.setter - def finite_bandwidth(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) + def finite_bandwidth(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) @property def out_of_band_attenuation(self) -> float: @@ -169,15 +139,11 @@ def out_of_band_attenuation(self) -> float: "Out-of-band loss (attenuation)." "Value should be between 0 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Out-of-band Attenuation') - key_val_pair = [i for i in props if 'Out-of-band Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Out-of-band Attenuation') return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) + def out_of_band_attenuation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) @property def lower_stop_band(self) -> float: @@ -185,15 +151,11 @@ def lower_stop_band(self) -> float: "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Stop Band') - key_val_pair = [i for i in props if 'Lower Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Stop Band') return val @lower_stop_band.setter - def lower_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + def lower_stop_band(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) @property def lower_cutoff(self) -> float: @@ -201,15 +163,11 @@ def lower_cutoff(self) -> float: "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Lower Cutoff') - key_val_pair = [i for i in props if 'Lower Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Lower Cutoff') return val @lower_cutoff.setter - def lower_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + def lower_cutoff(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) @property def higher_cutoff(self) -> float: @@ -217,15 +175,11 @@ def higher_cutoff(self) -> float: "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Cutoff') - key_val_pair = [i for i in props if 'Higher Cutoff=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Cutoff') return val @higher_cutoff.setter - def higher_cutoff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + def higher_cutoff(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) @property def higher_stop_band(self) -> float: @@ -233,13 +187,9 @@ def higher_stop_band(self) -> float: "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Higher Stop Band') - key_val_pair = [i for i in props if 'Higher Stop Band=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Higher Stop Band') return val @higher_stop_band.setter - def higher_stop_band(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + def higher_stop_band(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index 81fbc8e82ef..a25f485bb27 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class Terminator(GenericEmitNode): +from ..EmitNode import * + +class Terminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) def rename(self, new_name): """Rename this node""" @@ -22,15 +26,11 @@ def filename(self) -> str: "Name of file defining the Terminator." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - key_val_pair = [i for i in props if 'Filename=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Filename') return val @filename.setter - def filename(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + def filename(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @property def noise_temperature(self) -> float: @@ -38,66 +38,52 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Temperature') - key_val_pair = [i for i in props if 'Noise Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Temperature') return val @noise_temperature.setter - def noise_temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + def noise_temperature(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val @notes.setter - def notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + def notes(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + class TypeOption(Enum): + BYFILE = "By File" + PARAMETRIC = "Parametric" @property - def type(self): + def type(self) -> TypeOption: """Type "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Type') - key_val_pair = [i for i in props if 'Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Type') + val = self.TypeOption[val] return val @type.setter - def type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Type=' + value]) - class TypeOption(Enum): - BYFILE = "By File" - PARAMETRIC = "Parametric" + def type(self, value: TypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) + class PortLocationOption(Enum): + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" @property - def port_location(self): + def port_location(self) -> PortLocationOption: """Port Location "Defines the orientation of the terminator.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Port Location') - key_val_pair = [i for i in props if 'Port Location=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Port Location') + val = self.PortLocationOption[val] return val @port_location.setter - def port_location(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Port Location=' + value]) - class PortLocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + def port_location(self, value: PortLocationOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Port Location=' + value.value]) @property def vswr(self) -> float: @@ -105,25 +91,16 @@ def vswr(self) -> float: "The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch between the terminator and the connected component (RF System, Antenna, etc)." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'VSWR') - key_val_pair = [i for i in props if 'VSWR=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('VSWR') return val @vswr.setter - def vswr(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['VSWR=' + value]) + def vswr(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['VSWR=' + value]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Warnings') - key_val_pair = [i for i in props if 'Warnings=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Warnings') return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py index 0284c613c08..5f1ab809ab3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class TestNoiseTraceNode(GenericEmitNode): +from ..EmitNode import * + +class TestNoiseTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -27,15 +31,11 @@ def input_port(self) -> int: "Specifies input port for the plotted outboard component." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Input Port') - key_val_pair = [i for i in props if 'Input Port=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Input Port') return val @input_port.setter - def input_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Input Port=' + value]) + def input_port(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) @property def output_port(self) -> int: @@ -43,30 +43,22 @@ def output_port(self) -> int: "Specifies output port for the plotted outboard component." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Port') - key_val_pair = [i for i in props if 'Output Port=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Output Port') return val @output_port.setter - def output_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Port=' + value]) + def output_port(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - key_val_pair = [i for i in props if 'Data Source=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Data Source') return val @data_source.setter def data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @property def visible(self) -> bool: @@ -74,15 +66,11 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - key_val_pair = [i for i in props if 'Visible=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Visible') return val @visible.setter - def visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + def visible(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -90,45 +78,23 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - key_val_pair = [i for i in props if 'Custom Legend=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Legend') return val @custom_legend.setter - def custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + def custom_legend(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - key_val_pair = [i for i in props if 'Name=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Name') return val @name.setter - def name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + def name(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) - @property - def style(self): - """Style - "Specify line style of plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - key_val_pair = [i for i in props if 'Style=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @style.setter - def style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) class StyleOption(Enum): LINES = "Lines" DOTTED = "Dotted" @@ -136,6 +102,17 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property + def style(self) -> StyleOption: + """Style + "Specify line style of plot trace." + " """ + val = self._get_property('Style') + val = self.StyleOption[val] + return val + @style.setter + def style(self, value: StyleOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -143,15 +120,11 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - key_val_pair = [i for i in props if 'Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Width') return val @line_width.setter - def line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + def line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -159,30 +132,12 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - key_val_pair = [i for i in props if 'Line Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Color') return val @line_color.setter def line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) - @property - def symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - key_val_pair = [i for i in props if 'Symbol=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @symbol.setter - def symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" ELLIPSE = "Ellipse" @@ -199,6 +154,17 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property + def symbol(self) -> SymbolOption: + """Symbol + "Select symbol to mark points along plot trace." + " """ + val = self._get_property('Symbol') + val = self.SymbolOption[val] + return val + @symbol.setter + def symbol(self, value: SymbolOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -206,15 +172,11 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - key_val_pair = [i for i in props if 'Symbol Size=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Size') return val @symbol_size.setter - def symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + def symbol_size(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -222,15 +184,11 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - key_val_pair = [i for i in props if 'Symbol Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Color') return val @symbol_color.setter def symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -238,15 +196,11 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - key_val_pair = [i for i in props if 'Symbol Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Line Width') return val @symbol_line_width.setter - def symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + def symbol_line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -254,15 +208,11 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - key_val_pair = [i for i in props if 'Symbol Filled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Filled') return val @symbol_filled.setter - def symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + def symbol_filled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) @property def frequency_1(self) -> float: @@ -270,15 +220,11 @@ def frequency_1(self) -> float: "1st test tone frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency 1') - key_val_pair = [i for i in props if 'Frequency 1=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Frequency 1') return val @frequency_1.setter - def frequency_1(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Frequency 1=' + value]) + def frequency_1(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Frequency 1=' + value]) @property def amplitude_1(self) -> float: @@ -286,15 +232,11 @@ def amplitude_1(self) -> float: "1st test tone amplitude." "Value should be between -100 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplitude 1') - key_val_pair = [i for i in props if 'Amplitude 1=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Amplitude 1') return val @amplitude_1.setter - def amplitude_1(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplitude 1=' + value]) + def amplitude_1(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Amplitude 1=' + value]) @property def bandwidth_1(self) -> float: @@ -302,15 +244,11 @@ def bandwidth_1(self) -> float: "1st test tone bandwidth." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bandwidth 1') - key_val_pair = [i for i in props if 'Bandwidth 1=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Bandwidth 1') return val @bandwidth_1.setter - def bandwidth_1(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Bandwidth 1=' + value]) + def bandwidth_1(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth 1=' + value]) @property def frequency_2(self) -> float: @@ -318,15 +256,11 @@ def frequency_2(self) -> float: "2nd test tone frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency 2') - key_val_pair = [i for i in props if 'Frequency 2=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Frequency 2') return val @frequency_2.setter - def frequency_2(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Frequency 2=' + value]) + def frequency_2(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Frequency 2=' + value]) @property def amplitude_2(self) -> float: @@ -334,15 +268,11 @@ def amplitude_2(self) -> float: "2nd test tone amplitude." "Value should be between -100 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplitude 2') - key_val_pair = [i for i in props if 'Amplitude 2=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Amplitude 2') return val @amplitude_2.setter - def amplitude_2(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplitude 2=' + value]) + def amplitude_2(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Amplitude 2=' + value]) @property def bandwidth_2(self) -> float: @@ -350,15 +280,11 @@ def bandwidth_2(self) -> float: "2nd test tone bandwidth." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bandwidth 2') - key_val_pair = [i for i in props if 'Bandwidth 2=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Bandwidth 2') return val @bandwidth_2.setter - def bandwidth_2(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Bandwidth 2=' + value]) + def bandwidth_2(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth 2=' + value]) @property def noise_level(self) -> float: @@ -366,13 +292,9 @@ def noise_level(self) -> float: "Broadband noise level." "Value should be between -200 and 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Level') - key_val_pair = [i for i in props if 'Noise Level=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Level') return val @noise_level.setter - def noise_level(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Level=' + value]) + def noise_level(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Level=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py index 104eb15d63a..e7baa381088 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py @@ -1,6 +1,10 @@ -from ..GenericEmitNode import * -class TopLevelSimulation(GenericEmitNode): +from ..EmitNode import * + +class TopLevelSimulation(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py index d9fa408ae91..17fd859055f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class TouchstoneCouplingNode(GenericEmitNode): +from ..EmitNode import * + +class TouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -27,15 +31,11 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') return val @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @property def enable_refinement(self) -> bool: @@ -43,15 +43,11 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - key_val_pair = [i for i in props if 'Enable Refinement=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Refinement') return val @enable_refinement.setter - def enable_refinement(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + def enable_refinement(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @property def adaptive_sampling(self) -> bool: @@ -59,30 +55,22 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Adaptive Sampling') return val @adaptive_sampling.setter - def adaptive_sampling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + def adaptive_sampling(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - key_val_pair = [i for i in props if 'Refinement Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Refinement Domain') return val @refinement_domain.setter def refinement_domain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) @property def filename(self) -> str: @@ -90,56 +78,51 @@ def filename(self) -> str: "Name of file with coupling data.." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Filename') - key_val_pair = [i for i in props if 'Filename=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Filename') return val @filename.setter - def filename(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Filename=' + value]) + def filename(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File "Coupling data generated by Savant and exported as a matched file." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Savant Matched Coupling File') - key_val_pair = [i for i in props if 'Savant Matched Coupling File=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Savant Matched Coupling File') return val - @property def enable_em_isolation(self) -> bool: """Enable EM Isolation "Enables/disables EM isolation." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable EM Isolation') - key_val_pair = [i for i in props if 'Enable EM Isolation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable EM Isolation') return val @enable_em_isolation.setter - def enable_em_isolation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable EM Isolation=' + value]) + def enable_em_isolation(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable EM Isolation=' + value]) + + @property + def port_antenna_assignment(self): + """Port-Antenna Assignment + "Maps each port in the coupling file to an antenna in the project." + "A list of values." + " """ + val = self._get_property('Port-Antenna Assignment') + return val + @port_antenna_assignment.setter + def port_antenna_assignment(self, value): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Port-Antenna Assignment=' + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Notes') - key_val_pair = [i for i in props if 'Notes=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Notes') return val @notes.setter - def notes(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Notes=' + value]) + def notes(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py index 01ce40026f3..73d762aaf0b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class TunableTraceNode(GenericEmitNode): +from ..EmitNode import * + +class TunableTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -27,15 +31,11 @@ def input_port(self) -> int: "Specifies input port for the plotted outboard component." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Input Port') - key_val_pair = [i for i in props if 'Input Port=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Input Port') return val @input_port.setter - def input_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Input Port=' + value]) + def input_port(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) @property def output_port(self) -> int: @@ -43,45 +43,33 @@ def output_port(self) -> int: "Specifies output port for the plotted outboard component." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Port') - key_val_pair = [i for i in props if 'Output Port=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Output Port') return val @output_port.setter - def output_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Port=' + value]) + def output_port(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) @property def frequency(self) -> float: """Frequency "Tunable filter center frequency." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency') - key_val_pair = [i for i in props if 'Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Frequency') return val @frequency.setter - def frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Frequency=' + value]) + def frequency(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Frequency=' + value]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - key_val_pair = [i for i in props if 'Data Source=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Data Source') return val @data_source.setter def data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @property def visible(self) -> bool: @@ -89,15 +77,11 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - key_val_pair = [i for i in props if 'Visible=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Visible') return val @visible.setter - def visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + def visible(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -105,45 +89,23 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - key_val_pair = [i for i in props if 'Custom Legend=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Legend') return val @custom_legend.setter - def custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + def custom_legend(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - key_val_pair = [i for i in props if 'Name=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Name') return val @name.setter - def name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + def name(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) - @property - def style(self): - """Style - "Specify line style of plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - key_val_pair = [i for i in props if 'Style=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @style.setter - def style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) class StyleOption(Enum): LINES = "Lines" DOTTED = "Dotted" @@ -151,6 +113,17 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property + def style(self) -> StyleOption: + """Style + "Specify line style of plot trace." + " """ + val = self._get_property('Style') + val = self.StyleOption[val] + return val + @style.setter + def style(self, value: StyleOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -158,15 +131,11 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - key_val_pair = [i for i in props if 'Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Width') return val @line_width.setter - def line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + def line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -174,30 +143,12 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - key_val_pair = [i for i in props if 'Line Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Color') return val @line_color.setter def line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) - @property - def symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - key_val_pair = [i for i in props if 'Symbol=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @symbol.setter - def symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" ELLIPSE = "Ellipse" @@ -214,6 +165,17 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property + def symbol(self) -> SymbolOption: + """Symbol + "Select symbol to mark points along plot trace." + " """ + val = self._get_property('Symbol') + val = self.SymbolOption[val] + return val + @symbol.setter + def symbol(self, value: SymbolOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -221,15 +183,11 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - key_val_pair = [i for i in props if 'Symbol Size=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Size') return val @symbol_size.setter - def symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + def symbol_size(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -237,15 +195,11 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - key_val_pair = [i for i in props if 'Symbol Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Color') return val @symbol_color.setter def symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -253,15 +207,11 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - key_val_pair = [i for i in props if 'Symbol Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Line Width') return val @symbol_line_width.setter - def symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + def symbol_line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -269,13 +219,9 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - key_val_pair = [i for i in props if 'Symbol Filled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Filled') return val @symbol_filled.setter - def symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + def symbol_filled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py index 712b1c5670d..049057cc6ee 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class TwoRayPathLossCouplingNode(GenericEmitNode): +from ..EmitNode import * + +class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -27,15 +31,33 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') return val @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def antenna_a(self) -> EmitNode: + """Antenna A + "First antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Antenna A') + return val + @antenna_a.setter + def antenna_a(self, value: EmitNode): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) + + @property + def antenna_b(self) -> EmitNode: + """Antenna B + "Second antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Antenna B') + return val + @antenna_b.setter + def antenna_b(self, value: EmitNode): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) @property def enable_refinement(self) -> bool: @@ -43,15 +65,11 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - key_val_pair = [i for i in props if 'Enable Refinement=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Refinement') return val @enable_refinement.setter - def enable_refinement(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + def enable_refinement(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @property def adaptive_sampling(self) -> bool: @@ -59,30 +77,22 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Adaptive Sampling') return val @adaptive_sampling.setter - def adaptive_sampling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + def adaptive_sampling(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - key_val_pair = [i for i in props if 'Refinement Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Refinement Domain') return val @refinement_domain.setter def refinement_domain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) @property def ground_reflection_coeff(self) -> float: @@ -90,15 +100,11 @@ def ground_reflection_coeff(self) -> float: "The ground reflection coefficient." "Value should be between -100 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Ground Reflection Coeff.') - key_val_pair = [i for i in props if 'Ground Reflection Coeff.=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Ground Reflection Coeff.') return val @ground_reflection_coeff.setter - def ground_reflection_coeff(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Ground Reflection Coeff.=' + value]) + def ground_reflection_coeff(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Ground Reflection Coeff.=' + value]) @property def pointspeak(self) -> int: @@ -106,15 +112,11 @@ def pointspeak(self) -> int: "Number of points used to model each peak in frequency vs loss curve." "Value should be between 3 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Points/Peak') - key_val_pair = [i for i in props if 'Points/Peak=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Points/Peak') return val @pointspeak.setter - def pointspeak(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Points/Peak=' + value]) + def pointspeak(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Points/Peak=' + value]) @property def custom_fading_margin(self) -> float: @@ -122,15 +124,11 @@ def custom_fading_margin(self) -> float: "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') - key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Fading Margin') return val @custom_fading_margin.setter - def custom_fading_margin(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + def custom_fading_margin(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) @property def polarization_mismatch(self) -> float: @@ -138,15 +136,11 @@ def polarization_mismatch(self) -> float: "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') - key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Mismatch') return val @polarization_mismatch.setter - def polarization_mismatch(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + def polarization_mismatch(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) @property def pointing_error_loss(self) -> float: @@ -154,35 +148,28 @@ def pointing_error_loss(self) -> float: "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') - key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pointing Error Loss') return val @pointing_error_loss.setter - def pointing_error_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + def pointing_error_loss(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + class FadingTypeOption(Enum): + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" @property - def fading_type(self): + def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') - key_val_pair = [i for i in props if 'Fading Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Fading Type') + val = self.FadingTypeOption[val] return val @fading_type.setter - def fading_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) - class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + def fading_type(self, value: FadingTypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) @property def fading_availability(self) -> float: @@ -190,15 +177,11 @@ def fading_availability(self) -> float: "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') - key_val_pair = [i for i in props if 'Fading Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Fading Availability') return val @fading_availability.setter - def fading_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + def fading_availability(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) @property def std_deviation(self) -> float: @@ -206,15 +189,11 @@ def std_deviation(self) -> float: "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') - key_val_pair = [i for i in props if 'Std Deviation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Std Deviation') return val @std_deviation.setter - def std_deviation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + def std_deviation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) @property def include_rain_attenuation(self) -> bool: @@ -222,15 +201,11 @@ def include_rain_attenuation(self) -> bool: "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') - key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Rain Attenuation') return val @include_rain_attenuation.setter - def include_rain_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + def include_rain_attenuation(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) @property def rain_availability(self) -> float: @@ -238,15 +213,11 @@ def rain_availability(self) -> float: "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') - key_val_pair = [i for i in props if 'Rain Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Availability') return val @rain_availability.setter - def rain_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + def rain_availability(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) @property def rain_rate(self) -> float: @@ -254,15 +225,11 @@ def rain_rate(self) -> float: "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') - key_val_pair = [i for i in props if 'Rain Rate=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Rate') return val @rain_rate.setter - def rain_rate(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + def rain_rate(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) @property def polarization_tilt_angle(self) -> float: @@ -270,15 +237,11 @@ def polarization_tilt_angle(self) -> float: "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') - key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Tilt Angle') return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + def polarization_tilt_angle(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) @property def include_atmospheric_absorption(self) -> bool: @@ -286,15 +249,11 @@ def include_atmospheric_absorption(self) -> bool: "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') - key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Atmospheric Absorption') return val @include_atmospheric_absorption.setter - def include_atmospheric_absorption(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + def include_atmospheric_absorption(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) @property def temperature(self) -> float: @@ -302,15 +261,11 @@ def temperature(self) -> float: "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') - key_val_pair = [i for i in props if 'Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Temperature') return val @temperature.setter - def temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) + def temperature(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) @property def total_air_pressure(self) -> float: @@ -318,15 +273,11 @@ def total_air_pressure(self) -> float: "Total air pressure." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') - key_val_pair = [i for i in props if 'Total Air Pressure=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Total Air Pressure') return val @total_air_pressure.setter - def total_air_pressure(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + def total_air_pressure(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) @property def water_vapor_concentration(self) -> float: @@ -334,13 +285,9 @@ def water_vapor_concentration(self) -> float: "Water vapor concentration." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') - key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Water Vapor Concentration') return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + def water_vapor_concentration(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py index 27e0a94556e..92108e940ad 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class TwoToneTraceNode(GenericEmitNode): +from ..EmitNode import * + +class TwoToneTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -27,15 +31,11 @@ def input_port(self) -> int: "Specifies input port for the plotted outboard component." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Input Port') - key_val_pair = [i for i in props if 'Input Port=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Input Port') return val @input_port.setter - def input_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Input Port=' + value]) + def input_port(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) @property def output_port(self) -> int: @@ -43,30 +43,22 @@ def output_port(self) -> int: "Specifies output port for the plotted outboard component." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Port') - key_val_pair = [i for i in props if 'Output Port=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Output Port') return val @output_port.setter - def output_port(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Port=' + value]) + def output_port(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Data Source') - key_val_pair = [i for i in props if 'Data Source=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Data Source') return val @data_source.setter def data_source(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @property def visible(self) -> bool: @@ -74,15 +66,11 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Visible') - key_val_pair = [i for i in props if 'Visible=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Visible') return val @visible.setter - def visible(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Visible=' + value]) + def visible(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -90,45 +78,23 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Legend') - key_val_pair = [i for i in props if 'Custom Legend=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Legend') return val @custom_legend.setter - def custom_legend(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + def custom_legend(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Name') - key_val_pair = [i for i in props if 'Name=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Name') return val @name.setter - def name(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Name=' + value]) + def name(self, value: str): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) - @property - def style(self): - """Style - "Specify line style of plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Style') - key_val_pair = [i for i in props if 'Style=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @style.setter - def style(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Style=' + value]) class StyleOption(Enum): LINES = "Lines" DOTTED = "Dotted" @@ -136,6 +102,17 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property + def style(self) -> StyleOption: + """Style + "Specify line style of plot trace." + " """ + val = self._get_property('Style') + val = self.StyleOption[val] + return val + @style.setter + def style(self, value: StyleOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -143,15 +120,11 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Width') - key_val_pair = [i for i in props if 'Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Width') return val @line_width.setter - def line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Width=' + value]) + def line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -159,30 +132,12 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Line Color') - key_val_pair = [i for i in props if 'Line Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Line Color') return val @line_color.setter def line_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) - @property - def symbol(self): - """Symbol - "Select symbol to mark points along plot trace." - " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol') - key_val_pair = [i for i in props if 'Symbol=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] - return val - @symbol.setter - def symbol(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" ELLIPSE = "Ellipse" @@ -199,6 +154,17 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property + def symbol(self) -> SymbolOption: + """Symbol + "Select symbol to mark points along plot trace." + " """ + val = self._get_property('Symbol') + val = self.SymbolOption[val] + return val + @symbol.setter + def symbol(self, value: SymbolOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -206,15 +172,11 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Size') - key_val_pair = [i for i in props if 'Symbol Size=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Size') return val @symbol_size.setter - def symbol_size(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + def symbol_size(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -222,15 +184,11 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Color') - key_val_pair = [i for i in props if 'Symbol Color=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Color') return val @symbol_color.setter def symbol_color(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -238,15 +196,11 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Line Width') - key_val_pair = [i for i in props if 'Symbol Line Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Line Width') return val @symbol_line_width.setter - def symbol_line_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + def symbol_line_width(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -254,15 +208,11 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Symbol Filled') - key_val_pair = [i for i in props if 'Symbol Filled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Symbol Filled') return val @symbol_filled.setter - def symbol_filled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + def symbol_filled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) @property def frequency_1(self) -> float: @@ -270,15 +220,11 @@ def frequency_1(self) -> float: "1st test tone frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency 1') - key_val_pair = [i for i in props if 'Frequency 1=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Frequency 1') return val @frequency_1.setter - def frequency_1(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Frequency 1=' + value]) + def frequency_1(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Frequency 1=' + value]) @property def amplitude_1(self) -> float: @@ -286,15 +232,11 @@ def amplitude_1(self) -> float: "1st test tone amplitude." "Value should be between -100 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplitude 1') - key_val_pair = [i for i in props if 'Amplitude 1=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Amplitude 1') return val @amplitude_1.setter - def amplitude_1(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplitude 1=' + value]) + def amplitude_1(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Amplitude 1=' + value]) @property def bandwidth_1(self) -> float: @@ -302,15 +244,11 @@ def bandwidth_1(self) -> float: "1st test tone bandwidth." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bandwidth 1') - key_val_pair = [i for i in props if 'Bandwidth 1=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Bandwidth 1') return val @bandwidth_1.setter - def bandwidth_1(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Bandwidth 1=' + value]) + def bandwidth_1(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth 1=' + value]) @property def frequency_2(self) -> float: @@ -318,15 +256,11 @@ def frequency_2(self) -> float: "2nd test tone frequency." "Value should be between 1 and 1e+11." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Frequency 2') - key_val_pair = [i for i in props if 'Frequency 2=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Frequency 2') return val @frequency_2.setter - def frequency_2(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Frequency 2=' + value]) + def frequency_2(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Frequency 2=' + value]) @property def amplitude_2(self) -> float: @@ -334,15 +268,11 @@ def amplitude_2(self) -> float: "2nd test tone amplitude." "Value should be between -100 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplitude 2') - key_val_pair = [i for i in props if 'Amplitude 2=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Amplitude 2') return val @amplitude_2.setter - def amplitude_2(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplitude 2=' + value]) + def amplitude_2(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Amplitude 2=' + value]) @property def bandwidth_2(self) -> float: @@ -350,15 +280,11 @@ def bandwidth_2(self) -> float: "2nd test tone bandwidth." "Value should be greater than 1." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Bandwidth 2') - key_val_pair = [i for i in props if 'Bandwidth 2=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Bandwidth 2') return val @bandwidth_2.setter - def bandwidth_2(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Bandwidth 2=' + value]) + def bandwidth_2(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth 2=' + value]) @property def noise_level(self) -> float: @@ -366,13 +292,9 @@ def noise_level(self) -> float: "Broadband noise level." "Value should be between -200 and 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Level') - key_val_pair = [i for i in props if 'Noise Level=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Level') return val @noise_level.setter - def noise_level(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Level=' + value]) + def noise_level(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Level=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py index 3fc90e7d1ec..be344c3cd0d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class TxBbEmissionNode(GenericEmitNode): +from ..EmitNode import * + +class TxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -32,32 +36,29 @@ def table_data(self, value): self._set_table_data(value) @property - def enabled(self): + def enabled(self) -> bool: """Enabled state for this node.""" - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + class NoiseBehaviorOption(Enum): + ABSOLUTE = "Absolute" + RELATIVEBANDWIDTH = "Relative (Bandwidth)" + RELATIVEOFFSET = "Relative (Offset)" + BROADBANDEQUATION = "Equation" @property - def noise_behavior(self): + def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior "Specifies the behavior of the parametric noise profile." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Behavior') - key_val_pair = [i for i in props if 'Noise Behavior=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Behavior') + val = self.NoiseBehaviorOption[val] return val @noise_behavior.setter - def noise_behavior(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Behavior=' + value]) - class NoiseBehaviorOption(Enum): - ABSOLUTE = "Absolute" - RELATIVEBANDWIDTH = "Relative (Bandwidth)" - RELATIVEOFFSET = "Relative (Offset)" - BROADBANDEQUATION = "Equation" + def noise_behavior(self, value: NoiseBehaviorOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Behavior=' + value.value]) @property def use_log_linear_interpolation(self) -> bool: @@ -65,13 +66,9 @@ def use_log_linear_interpolation(self) -> bool: "If true, linear interpolation in the log domain is used. If false, linear interpolation in the linear domain is used.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use Log-Linear Interpolation') - key_val_pair = [i for i in props if 'Use Log-Linear Interpolation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Use Log-Linear Interpolation') return val @use_log_linear_interpolation.setter - def use_log_linear_interpolation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use Log-Linear Interpolation=' + value]) + def use_log_linear_interpolation(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use Log-Linear Interpolation=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py index b6cd7968876..6a40fac16b1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class TxHarmonicNode(GenericEmitNode): +from ..EmitNode import * + +class TxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -18,28 +22,25 @@ def delete(self): self._delete() @property - def enabled(self): + def enabled(self) -> bool: """Enabled state for this node.""" - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + class HarmonicTableUnitsOption(Enum): + ABSOLUTE = "Absolute" + RELATIVE = "Relative" @property - def harmonic_table_units(self): + def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units "Specifies the units for the Harmonics." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Table Units') - key_val_pair = [i for i in props if 'Harmonic Table Units=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Harmonic Table Units') + val = self.HarmonicTableUnitsOption[val] return val @harmonic_table_units.setter - def harmonic_table_units(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Harmonic Table Units=' + value]) - class HarmonicTableUnitsOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE = "Relative" + def harmonic_table_units(self, value: HarmonicTableUnitsOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Table Units=' + value.value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py index 28db0730600..c9d3b49d653 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class TxMeasNode(GenericEmitNode): +from ..EmitNode import * + +class TxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -23,53 +27,34 @@ def file(self) -> str: "Name of the measurement source." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'File') - key_val_pair = [i for i in props if 'File=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('File') return val - @property def source_file(self) -> str: """Source File "Name of the measurement source." "Value should be a full file path." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Source File') - key_val_pair = [i for i in props if 'Source File=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Source File') return val - @property def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Transmit Frequency') - key_val_pair = [i for i in props if 'Transmit Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Transmit Frequency') return val - @property def use_ams_limits(self) -> bool: """Use AMS Limits "Allow AMS to define the frequency limits for the measurements." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Use AMS Limits') - key_val_pair = [i for i in props if 'Use AMS Limits=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Use AMS Limits') return val @use_ams_limits.setter - def use_ams_limits(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Use AMS Limits=' + value]) + def use_ams_limits(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use AMS Limits=' + value]) @property def start_frequency(self) -> float: @@ -77,15 +62,11 @@ def start_frequency(self) -> float: "Starting frequency for the measurement sweep." "Value should be greater than 1e+06." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Start Frequency') - key_val_pair = [i for i in props if 'Start Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Start Frequency') return val @start_frequency.setter - def start_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Start Frequency=' + value]) + def start_frequency(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Start Frequency=' + value]) @property def stop_frequency(self) -> float: @@ -93,15 +74,11 @@ def stop_frequency(self) -> float: "Stopping frequency for the measurement sweep." "Value should be less than 6e+09." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Stop Frequency') - key_val_pair = [i for i in props if 'Stop Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Stop Frequency') return val @stop_frequency.setter - def stop_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Stop Frequency=' + value]) + def stop_frequency(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Stop Frequency=' + value]) @property def exclude_harmonics_below_noise(self) -> bool: @@ -109,21 +86,17 @@ def exclude_harmonics_below_noise(self) -> bool: "Include/Exclude Harmonics below the noise." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Exclude Harmonics Below Noise') - key_val_pair = [i for i in props if 'Exclude Harmonics Below Noise=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Exclude Harmonics Below Noise') return val @exclude_harmonics_below_noise.setter - def exclude_harmonics_below_noise(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Exclude Harmonics Below Noise=' + value]) + def exclude_harmonics_below_noise(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Exclude Harmonics Below Noise=' + value]) @property - def enabled(self): + def enabled(self) -> bool: """Enabled state for this node.""" - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py index f68f71f6e40..d1d344ca085 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class TxNbEmissionNode(GenericEmitNode): +from ..EmitNode import * + +class TxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -18,43 +22,36 @@ def delete(self): self._delete() @property - def enabled(self): + def enabled(self) -> bool: """Enabled state for this node.""" - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + class NarrowbandBehaviorOption(Enum): + ABSOLUTE = "Absolute Freqs and Power" + RELATIVEBANDWIDTH = "Relative Freqs and Attenuation" @property - def narrowband_behavior(self): + def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Narrowband Behavior') - key_val_pair = [i for i in props if 'Narrowband Behavior=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Narrowband Behavior') + val = self.NarrowbandBehaviorOption[val] return val @narrowband_behavior.setter - def narrowband_behavior(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Narrowband Behavior=' + value]) - class NarrowbandBehaviorOption(Enum): - ABSOLUTE = "Absolute Freqs and Power" - RELATIVEBANDWIDTH = "Relative Freqs and Attenuation" + def narrowband_behavior(self, value: NarrowbandBehaviorOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Narrowband Behavior=' + value.value]) @property def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Measurement Frequency') - key_val_pair = [i for i in props if 'Measurement Frequency=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Measurement Frequency') return val @measurement_frequency.setter - def measurement_frequency(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Measurement Frequency=' + value]) + def measurement_frequency(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Measurement Frequency=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py index 5ec650e8741..aa237a5f7bb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class TxSpectralProfNode(GenericEmitNode): +from ..EmitNode import * + +class TxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -10,48 +14,42 @@ def parent(self): return self._parent @property - def enabled(self): + def enabled(self) -> bool: """Enabled state for this node.""" - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + class SpectrumTypeOption(Enum): + BOTH = "Narrowband & Broadband" + BROADBANDONLY = "Broadband Only" @property - def spectrum_type(self): + def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type "Specifies EMI Margins to calculate." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spectrum Type') - key_val_pair = [i for i in props if 'Spectrum Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Spectrum Type') + val = self.SpectrumTypeOption[val] return val @spectrum_type.setter - def spectrum_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Spectrum Type=' + value]) - class SpectrumTypeOption(Enum): - BOTH = "Narrowband & Broadband" - BROADBANDONLY = "Broadband Only" + def spectrum_type(self, value: SpectrumTypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Spectrum Type=' + value.value]) + class TxPowerOption(Enum): + PEAK_POWER = "Peak Power" + AVERAGE_POWER = "Average Power" @property - def tx_power(self): + def tx_power(self) -> TxPowerOption: """Tx Power "Method used to specify the power." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx Power') - key_val_pair = [i for i in props if 'Tx Power=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Tx Power') + val = self.TxPowerOption[val] return val @tx_power.setter - def tx_power(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Tx Power=' + value]) - class TxPowerOption(Enum): - PEAK_POWER = "Peak Power" - AVERAGE_POWER = "Average Power" + def tx_power(self, value: TxPowerOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Tx Power=' + value.value]) @property def peak_power(self) -> float: @@ -59,15 +57,11 @@ def peak_power(self) -> float: "Tx's carrier frequency peak power." "Value should be between -1000 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Peak Power') - key_val_pair = [i for i in props if 'Peak Power=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Peak Power') return val @peak_power.setter - def peak_power(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Peak Power=' + value]) + def peak_power(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Peak Power=' + value]) @property def average_power(self) -> float: @@ -75,30 +69,22 @@ def average_power(self) -> float: "Tx's fundamental level specified by average power." "Value should be between -1000 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Average Power') - key_val_pair = [i for i in props if 'Average Power=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Average Power') return val @average_power.setter - def average_power(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Average Power=' + value]) + def average_power(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Average Power=' + value]) @property def output_voltage_peak(self) -> float: """Output Voltage Peak "Output High Voltage Level: maximum voltage of the digital signal." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Output Voltage Peak') - key_val_pair = [i for i in props if 'Output Voltage Peak=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Output Voltage Peak') return val @output_voltage_peak.setter - def output_voltage_peak(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Output Voltage Peak=' + value]) + def output_voltage_peak(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Output Voltage Peak=' + value]) @property def include_phase_noise(self) -> bool: @@ -106,15 +92,11 @@ def include_phase_noise(self) -> bool: "Include oscillator phase noise in Tx spectral profile." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Phase Noise') - key_val_pair = [i for i in props if 'Include Phase Noise=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Phase Noise') return val @include_phase_noise.setter - def include_phase_noise(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Phase Noise=' + value]) + def include_phase_noise(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Phase Noise=' + value]) @property def tx_broadband_noise(self) -> float: @@ -122,35 +104,28 @@ def tx_broadband_noise(self) -> float: "Transmitters broadband noise level." "Value should be less than 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Tx Broadband Noise') - key_val_pair = [i for i in props if 'Tx Broadband Noise=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Tx Broadband Noise') return val @tx_broadband_noise.setter - def tx_broadband_noise(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Tx Broadband Noise=' + value]) + def tx_broadband_noise(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Tx Broadband Noise=' + value]) + class HarmonicTaperOption(Enum): + CONSTANT = "Constant" + MIL_STD_461G = "MIL-STD-461G" + MIL_STD_461G_NAVY = "MIL-STD-461G Navy" + DUFF_MODEL = "Duff Model" @property - def harmonic_taper(self): + def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper "Taper type used to set amplitude of harmonics." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Taper') - key_val_pair = [i for i in props if 'Harmonic Taper=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Harmonic Taper') + val = self.HarmonicTaperOption[val] return val @harmonic_taper.setter - def harmonic_taper(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Harmonic Taper=' + value]) - class HarmonicTaperOption(Enum): - CONSTANT = "Constant" - MIL_STD_461G = "MIL-STD-461G" - MIL_STD_461G_NAVY = "MIL-STD-461G Navy" - DUFF_MODEL = "Duff Model" + def harmonic_taper(self, value: HarmonicTaperOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Taper=' + value.value]) @property def harmonic_amplitude(self) -> float: @@ -158,15 +133,11 @@ def harmonic_amplitude(self) -> float: "Amplitude (relative to the carrier power) of harmonics." "Value should be between -1000 and 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Amplitude') - key_val_pair = [i for i in props if 'Harmonic Amplitude=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Harmonic Amplitude') return val @harmonic_amplitude.setter - def harmonic_amplitude(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Harmonic Amplitude=' + value]) + def harmonic_amplitude(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Amplitude=' + value]) @property def harmonic_slope(self) -> float: @@ -174,15 +145,11 @@ def harmonic_slope(self) -> float: "Rate of decrease for harmonics' amplitudes (dB/decade)." "Value should be between -1000 and 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Slope') - key_val_pair = [i for i in props if 'Harmonic Slope=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Harmonic Slope') return val @harmonic_slope.setter - def harmonic_slope(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Harmonic Slope=' + value]) + def harmonic_slope(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Slope=' + value]) @property def harmonic_intercept(self) -> float: @@ -190,15 +157,11 @@ def harmonic_intercept(self) -> float: "Amplitude intercept at the fundamental (dBc)." "Value should be between -1000 and 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Harmonic Intercept') - key_val_pair = [i for i in props if 'Harmonic Intercept=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Harmonic Intercept') return val @harmonic_intercept.setter - def harmonic_intercept(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Harmonic Intercept=' + value]) + def harmonic_intercept(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Intercept=' + value]) @property def enable_harmonic_bw_expansion(self) -> bool: @@ -206,15 +169,11 @@ def enable_harmonic_bw_expansion(self) -> bool: "If (True), bandwidth of harmonics increases proportional to the harmonic number." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Harmonic BW Expansion') - key_val_pair = [i for i in props if 'Enable Harmonic BW Expansion=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Harmonic BW Expansion') return val @enable_harmonic_bw_expansion.setter - def enable_harmonic_bw_expansion(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Harmonic BW Expansion=' + value]) + def enable_harmonic_bw_expansion(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Harmonic BW Expansion=' + value]) @property def number_of_harmonics(self) -> int: @@ -222,15 +181,11 @@ def number_of_harmonics(self) -> int: "Maximum number of harmonics modeled." "Value should be between 1 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Number of Harmonics') - key_val_pair = [i for i in props if 'Number of Harmonics=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Number of Harmonics') return val @number_of_harmonics.setter - def number_of_harmonics(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Number of Harmonics=' + value]) + def number_of_harmonics(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Number of Harmonics=' + value]) @property def _2nd_harmonic_level(self) -> float: @@ -238,15 +193,11 @@ def _2nd_harmonic_level(self) -> float: "Amplitude (relative to the carrier power) of the 2nd harmonic." "Value should be between -1000 and 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'2nd Harmonic Level') - key_val_pair = [i for i in props if '2nd Harmonic Level=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('2nd Harmonic Level') return val @_2nd_harmonic_level.setter - def _2nd_harmonic_level(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['2nd Harmonic Level=' + value]) + def _2nd_harmonic_level(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['2nd Harmonic Level=' + value]) @property def _3rd_harmonic_level(self) -> float: @@ -254,15 +205,11 @@ def _3rd_harmonic_level(self) -> float: "Amplitude (relative to the carrier power) of the 3rd harmonic." "Value should be between -1000 and 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'3rd Harmonic Level') - key_val_pair = [i for i in props if '3rd Harmonic Level=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('3rd Harmonic Level') return val @_3rd_harmonic_level.setter - def _3rd_harmonic_level(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['3rd Harmonic Level=' + value]) + def _3rd_harmonic_level(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['3rd Harmonic Level=' + value]) @property def other_harmonic_levels(self) -> float: @@ -270,15 +217,11 @@ def other_harmonic_levels(self) -> float: "Amplitude (relative to the carrier power) of the higher order harmonics." "Value should be between -1000 and 0." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Other Harmonic Levels') - key_val_pair = [i for i in props if 'Other Harmonic Levels=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Other Harmonic Levels') return val @other_harmonic_levels.setter - def other_harmonic_levels(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Other Harmonic Levels=' + value]) + def other_harmonic_levels(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Other Harmonic Levels=' + value]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -286,15 +229,11 @@ def perform_tx_intermod_analysis(self) -> bool: "Performs a non-linear intermod analysis for the Tx." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Perform Tx Intermod Analysis') - key_val_pair = [i for i in props if 'Perform Tx Intermod Analysis=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Perform Tx Intermod Analysis') return val @perform_tx_intermod_analysis.setter - def perform_tx_intermod_analysis(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Perform Tx Intermod Analysis=' + value]) + def perform_tx_intermod_analysis(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Perform Tx Intermod Analysis=' + value]) @property def internal_amp_gain(self) -> float: @@ -302,15 +241,11 @@ def internal_amp_gain(self) -> float: "Internal Tx Amplifier's Gain." "Value should be between -1000 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Internal Amp Gain') - key_val_pair = [i for i in props if 'Internal Amp Gain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Internal Amp Gain') return val @internal_amp_gain.setter - def internal_amp_gain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Internal Amp Gain=' + value]) + def internal_amp_gain(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Internal Amp Gain=' + value]) @property def noise_figure(self) -> float: @@ -318,15 +253,11 @@ def noise_figure(self) -> float: "Internal Tx Amplifier's noise figure." "Value should be between 0 and 50." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Noise Figure') - key_val_pair = [i for i in props if 'Noise Figure=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Noise Figure') return val @noise_figure.setter - def noise_figure(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Noise Figure=' + value]) + def noise_figure(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Figure=' + value]) @property def amplifier_saturation_level(self) -> float: @@ -334,15 +265,11 @@ def amplifier_saturation_level(self) -> float: "Internal Tx Amplifier's Saturation Level." "Value should be between -200 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Amplifier Saturation Level') - key_val_pair = [i for i in props if 'Amplifier Saturation Level=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Amplifier Saturation Level') return val @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Amplifier Saturation Level=' + value]) + def amplifier_saturation_level(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Amplifier Saturation Level=' + value]) @property def _1_db_point_ref_input_(self) -> float: @@ -350,15 +277,11 @@ def _1_db_point_ref_input_(self) -> float: "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'1-dB Point, Ref. Input ') - key_val_pair = [i for i in props if '1-dB Point, Ref. Input =' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('1-dB Point, Ref. Input ') return val @_1_db_point_ref_input_.setter - def _1_db_point_ref_input_(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input =' + value]) + def _1_db_point_ref_input_(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input =' + value]) @property def ip3_ref_input(self) -> float: @@ -366,15 +289,11 @@ def ip3_ref_input(self) -> float: "Internal Tx Amplifier's 3rd order intercept point." "Value should be between -200 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'IP3, Ref. Input') - key_val_pair = [i for i in props if 'IP3, Ref. Input=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('IP3, Ref. Input') return val @ip3_ref_input.setter - def ip3_ref_input(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + value]) + def ip3_ref_input(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + value]) @property def reverse_isolation(self) -> float: @@ -382,15 +301,11 @@ def reverse_isolation(self) -> float: "Internal Tx Amplifier's Reverse Isolation." "Value should be between -200 and 200." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Reverse Isolation') - key_val_pair = [i for i in props if 'Reverse Isolation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Reverse Isolation') return val @reverse_isolation.setter - def reverse_isolation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) + def reverse_isolation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) @property def max_intermod_order(self) -> int: @@ -398,13 +313,9 @@ def max_intermod_order(self) -> int: "Internal Tx Amplifier's maximum intermod order to compute." "Value should be between 3 and 20." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Max Intermod Order') - key_val_pair = [i for i in props if 'Max Intermod Order=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Max Intermod Order') return val @max_intermod_order.setter - def max_intermod_order(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) + def max_intermod_order(self, value: int): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py index 8b530de2084..9cee751877d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class TxSpurNode(GenericEmitNode): +from ..EmitNode import * + +class TxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -18,28 +22,41 @@ def delete(self): self._delete() @property - def enabled(self): + def table_data(self): + """ Table" + "Table consists of 3 columns." + "Frequency (MHz): + " Value should be a mathematical expression." + "Bandwidth: + " Value should be greater than 1." + "Power: + " Value should be between -200 and 150." + """ + return self._get_table_data() + @table_data.setter + def table_data(self, value): + self._set_table_data(value) + + @property + def enabled(self) -> bool: """Enabled state for this node.""" - return oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'enabled') + return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + class SpurTableUnitsOption(Enum): + ABSOLUTE = "Absolute" + RELATIVE = "Relative" @property - def spur_table_units(self): + def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Spur Table Units') - key_val_pair = [i for i in props if 'Spur Table Units=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Spur Table Units') + val = self.SpurTableUnitsOption[val] return val @spur_table_units.setter - def spur_table_units(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Spur Table Units=' + value]) - class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE = "Relative" + def spur_table_units(self, value: SpurTableUnitsOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Spur Table Units=' + value.value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py index b54abe16bef..269fce0d2c2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py @@ -1,8 +1,12 @@ -from ..GenericEmitNode import * -class WalfischCouplingNode(GenericEmitNode): +from ..EmitNode import * + +class WalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False - GenericEmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, oDesign, result_id, node_id) + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @property def parent(self): @@ -27,15 +31,33 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enabled') - key_val_pair = [i for i in props if 'Enabled=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enabled') return val @enabled.setter - def enabled(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enabled=' + value]) + def enabled(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + + @property + def base_antenna(self) -> EmitNode: + """Base Antenna + "First antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Base Antenna') + return val + @base_antenna.setter + def base_antenna(self, value: EmitNode): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Base Antenna=' + value]) + + @property + def mobile_antenna(self) -> EmitNode: + """Mobile Antenna + "Second antenna of the pair to apply the coupling values to." + " """ + val = self._get_property('Mobile Antenna') + return val + @mobile_antenna.setter + def mobile_antenna(self, value: EmitNode): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mobile Antenna=' + value]) @property def enable_refinement(self) -> bool: @@ -43,15 +65,11 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Enable Refinement') - key_val_pair = [i for i in props if 'Enable Refinement=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Enable Refinement') return val @enable_refinement.setter - def enable_refinement(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + def enable_refinement(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @property def adaptive_sampling(self) -> bool: @@ -59,66 +77,52 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Adaptive Sampling') - key_val_pair = [i for i in props if 'Adaptive Sampling=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Adaptive Sampling') return val @adaptive_sampling.setter - def adaptive_sampling(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + def adaptive_sampling(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Refinement Domain') - key_val_pair = [i for i in props if 'Refinement Domain=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Refinement Domain') return val @refinement_domain.setter def refinement_domain(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + class PathLossTypeOption(Enum): + WALFISCHLOS = "LOS (Urban Canyon)" + WALFISCHNLOS = "NLOS" @property - def path_loss_type(self): + def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type "Specify LOS vs NLOS for the Walfisch-Ikegami model." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Path Loss Type') - key_val_pair = [i for i in props if 'Path Loss Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Path Loss Type') + val = self.PathLossTypeOption[val] return val @path_loss_type.setter - def path_loss_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Path Loss Type=' + value]) - class PathLossTypeOption(Enum): - WALFISCHLOS = "LOS (Urban Canyon)" - WALFISCHNLOS = "NLOS" + def path_loss_type(self, value: PathLossTypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Path Loss Type=' + value.value]) + class EnvironmentOption(Enum): + DENSEMETROAREA = "Dense Metro" + SMALLURBANORSUBURBAN = "Small/Medium City or Suburban" @property - def environment(self): + def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Walfisch model." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Environment') - key_val_pair = [i for i in props if 'Environment=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Environment') + val = self.EnvironmentOption[val] return val @environment.setter - def environment(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Environment=' + value]) - class EnvironmentOption(Enum): - DENSEMETROAREA = "Dense Metro" - SMALLURBANORSUBURBAN = "Small/Medium City or Suburban" + def environment(self, value: EnvironmentOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Environment=' + value.value]) @property def roof_height(self) -> float: @@ -126,15 +130,11 @@ def roof_height(self) -> float: "The height of the building where the antenna is located.." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Roof Height') - key_val_pair = [i for i in props if 'Roof Height=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Roof Height') return val @roof_height.setter - def roof_height(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Roof Height=' + value]) + def roof_height(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Roof Height=' + value]) @property def distance_between_buildings(self) -> float: @@ -142,15 +142,11 @@ def distance_between_buildings(self) -> float: "The distance between two buildings.." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Distance Between Buildings') - key_val_pair = [i for i in props if 'Distance Between Buildings=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Distance Between Buildings') return val @distance_between_buildings.setter - def distance_between_buildings(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Distance Between Buildings=' + value]) + def distance_between_buildings(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Distance Between Buildings=' + value]) @property def street_width(self) -> float: @@ -158,15 +154,11 @@ def street_width(self) -> float: "Width of the street.." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Street Width') - key_val_pair = [i for i in props if 'Street Width=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Street Width') return val @street_width.setter - def street_width(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Street Width=' + value]) + def street_width(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Street Width=' + value]) @property def incidence_angle(self) -> float: @@ -174,15 +166,11 @@ def incidence_angle(self) -> float: "Angle between the street orientation and direction of incidence.." "Value should be between 0 and 90." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Incidence Angle') - key_val_pair = [i for i in props if 'Incidence Angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Incidence Angle') return val @incidence_angle.setter - def incidence_angle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Incidence Angle=' + value]) + def incidence_angle(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Incidence Angle=' + value]) @property def custom_fading_margin(self) -> float: @@ -190,15 +178,11 @@ def custom_fading_margin(self) -> float: "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Custom Fading Margin') - key_val_pair = [i for i in props if 'Custom Fading Margin=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Custom Fading Margin') return val @custom_fading_margin.setter - def custom_fading_margin(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + def custom_fading_margin(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) @property def polarization_mismatch(self) -> float: @@ -206,15 +190,11 @@ def polarization_mismatch(self) -> float: "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Mismatch') - key_val_pair = [i for i in props if 'Polarization Mismatch=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Mismatch') return val @polarization_mismatch.setter - def polarization_mismatch(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + def polarization_mismatch(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) @property def pointing_error_loss(self) -> float: @@ -222,35 +202,28 @@ def pointing_error_loss(self) -> float: "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Pointing Error Loss') - key_val_pair = [i for i in props if 'Pointing Error Loss=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Pointing Error Loss') return val @pointing_error_loss.setter - def pointing_error_loss(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + def pointing_error_loss(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + class FadingTypeOption(Enum): + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" @property - def fading_type(self): + def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." " """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Type') - key_val_pair = [i for i in props if 'Fading Type=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Fading Type') + val = self.FadingTypeOption[val] return val @fading_type.setter - def fading_type(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Type=' + value]) - class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + def fading_type(self, value: FadingTypeOption): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) @property def fading_availability(self) -> float: @@ -258,15 +231,11 @@ def fading_availability(self) -> float: "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Fading Availability') - key_val_pair = [i for i in props if 'Fading Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Fading Availability') return val @fading_availability.setter - def fading_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + def fading_availability(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) @property def std_deviation(self) -> float: @@ -274,15 +243,11 @@ def std_deviation(self) -> float: "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Std Deviation') - key_val_pair = [i for i in props if 'Std Deviation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Std Deviation') return val @std_deviation.setter - def std_deviation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + def std_deviation(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) @property def include_rain_attenuation(self) -> bool: @@ -290,15 +255,11 @@ def include_rain_attenuation(self) -> bool: "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Rain Attenuation') - key_val_pair = [i for i in props if 'Include Rain Attenuation=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Rain Attenuation') return val @include_rain_attenuation.setter - def include_rain_attenuation(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + def include_rain_attenuation(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) @property def rain_availability(self) -> float: @@ -306,15 +267,11 @@ def rain_availability(self) -> float: "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Availability') - key_val_pair = [i for i in props if 'Rain Availability=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Availability') return val @rain_availability.setter - def rain_availability(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + def rain_availability(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) @property def rain_rate(self) -> float: @@ -322,15 +279,11 @@ def rain_rate(self) -> float: "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Rain Rate') - key_val_pair = [i for i in props if 'Rain Rate=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Rain Rate') return val @rain_rate.setter - def rain_rate(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + def rain_rate(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) @property def polarization_tilt_angle(self) -> float: @@ -338,15 +291,11 @@ def polarization_tilt_angle(self) -> float: "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Polarization Tilt Angle') - key_val_pair = [i for i in props if 'Polarization Tilt Angle=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Polarization Tilt Angle') return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + def polarization_tilt_angle(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) @property def include_atmospheric_absorption(self) -> bool: @@ -354,15 +303,11 @@ def include_atmospheric_absorption(self) -> bool: "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Include Atmospheric Absorption') - key_val_pair = [i for i in props if 'Include Atmospheric Absorption=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Include Atmospheric Absorption') return val @include_atmospheric_absorption.setter - def include_atmospheric_absorption(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + def include_atmospheric_absorption(self, value: bool): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) @property def temperature(self) -> float: @@ -370,15 +315,11 @@ def temperature(self) -> float: "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Temperature') - key_val_pair = [i for i in props if 'Temperature=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Temperature') return val @temperature.setter - def temperature(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Temperature=' + value]) + def temperature(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) @property def total_air_pressure(self) -> float: @@ -386,15 +327,11 @@ def total_air_pressure(self) -> float: "Total air pressure." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Total Air Pressure') - key_val_pair = [i for i in props if 'Total Air Pressure=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Total Air Pressure') return val @total_air_pressure.setter - def total_air_pressure(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + def total_air_pressure(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) @property def water_vapor_concentration(self) -> float: @@ -402,13 +339,9 @@ def water_vapor_concentration(self) -> float: "Water vapor concentration." "Value should be between 0 and 2000." """ - props = oDesign.GetModule('EmitCom').GetProperties(self._result_id,self._node_id,'Water Vapor Concentration') - key_val_pair = [i for i in props if 'Water Vapor Concentration=' in i] - if len(key_val_pair) != 1: - return '' - val = key_val_pair[1].split('=')[1] + val = self._get_property('Water Vapor Concentration') return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value): - oDesign.GetModule('EmitCom').SetProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + def water_vapor_concentration(self, value: float): + self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/nodes.py b/src/ansys/aedt/core/emit_core/nodes/nodes.py index f344b5bab38..9882f801db4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/nodes.py +++ b/src/ansys/aedt/core/emit_core/nodes/nodes.py @@ -1,5 +1,5 @@ -from .GenericEmitNode import GenericEmitNode, props_to_dict +from .EmitNode import EmitNode from . import generated @@ -140,11 +140,11 @@ def get_all_node_ids(self) -> list[int]: return node_ids - def get_node(self, id: int) -> GenericEmitNode: + def get_node(self, id: int) -> EmitNode: props = self.oEmitCom.GetEmitNodeProperties(0, id) - props = props_to_dict(props) + props = EmitNode.props_to_dict(props) parent_props = self.oEmitCom.GetEmitNodeProperties(0, id, True) - parent_props = props_to_dict(parent_props) + parent_props = EmitNode.props_to_dict(parent_props) type = parent_props['Type'] @@ -154,11 +154,11 @@ def get_node(self, id: int) -> GenericEmitNode: type_class = getattr(type_module, type) node = type_class(self.oDesign, 0, id) except AttributeError: - node = GenericEmitNode(self.oDesign, 0, id) + node = EmitNode(self.oDesign, 0, id) return node - def get_all_nodes(self) -> list[GenericEmitNode]: + def get_all_nodes(self) -> list[EmitNode]: ids = self.get_all_node_ids() nodes = [self.get_node(id) for id in ids] return nodes From 04c421824f0d611af2c8cdc218903edd72f78777 Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Tue, 4 Feb 2025 17:54:44 -0600 Subject: [PATCH 05/86] Add generated module init file, update EmitNode --- .../aedt/core/emit_core/nodes/EmitNode.py | 17 +- .../nodes/generated/EmitSceneNode.py | 2 +- .../emit_core/nodes/generated/__init__.py | 229 ++++++++++++++++++ src/ansys/aedt/core/emit_core/nodes/nodes.py | 134 ++-------- 4 files changed, 255 insertions(+), 127 deletions(-) create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/__init__.py diff --git a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py index 7fce7ce3e9f..2823c46d8c4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py @@ -26,8 +26,6 @@ from enum import Enum -from . import generated - class EmitNode: # meant to only be used as a parent class def __init__(self, oDesign, result_id, node_id): @@ -56,6 +54,9 @@ def name(self): @property def _parent(self): + from . import generated + # from .generated import * + # parent_id = self._oDesign.GetModule('EmitCom').GetParentNodeID(self._result_id, self._node_id) parent_id = 1 @@ -64,8 +65,7 @@ def _parent(self): parent_type = parent_props['Type'] - parent_type_module = getattr(generated, parent_type) - parent_type_class = getattr(parent_type_module, parent_type) + parent_type_class = getattr(generated, parent_type) parent_node = parent_type_class(self._oDesign, self._result_id, parent_id) return parent_node @@ -86,11 +86,14 @@ def allowed_child_types(self): def _get_property(self, prop): props = self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id, self._node_id, True) - key_val_pair = [i for i in props if f'{prop}=' in i] - if len(key_val_pair) != 1: + kv_pairs = [prop.split('=') for prop in props] + selected_kv_pairs = [kv for kv in kv_pairs if kv[0] == prop] + if len(selected_kv_pairs) != 1: return '' - val = key_val_pair[0].split('=')[1] + selected_kv_pair = selected_kv_pairs[0] + val = selected_kv_pair[1] + if val.find('|') != -1: return val.split('|') else: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py index ca052634777..ac00994615d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py @@ -33,7 +33,7 @@ def ground_plane_normal(self) -> GroundPlaneNormalOption: "Specifies the axis of the normal to the ground plane." " """ val = self._get_property('Ground Plane Normal') - val = self.GroundPlaneNormalOption[val.upper()] + val = self.GroundPlaneNormalOption[val] return val @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py new file mode 100644 index 00000000000..10275c1a575 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -0,0 +1,229 @@ +from .Amplifier import Amplifier +from .AntennaNode import AntennaNode +from .AntennaPassband import AntennaPassband +from .Band import Band +from .BandFolder import BandFolder +from .BandTraceNode import BandTraceNode +from .CADNode import CADNode +from .Cable import Cable +from .CategoriesViewNode import CategoriesViewNode +from .Circulator import Circulator +from .CouplingLinkNode import CouplingLinkNode +from .CouplingTraceNode import CouplingTraceNode +from .CouplingsNode import CouplingsNode +from .CustomCouplingNode import CustomCouplingNode +from .EmiPlotMarkerNode import EmiPlotMarkerNode +from .EmitSceneNode import EmitSceneNode +from .ErcegCouplingNode import ErcegCouplingNode +from .Filter import Filter +from .FiveGChannelModel import FiveGChannelModel +from .HataCouplingNode import HataCouplingNode +from .IndoorPropagationCouplingNode import IndoorPropagationCouplingNode +from .Isolator import Isolator +from .LogDistanceCouplingNode import LogDistanceCouplingNode +from .MPlexBandTraceNode import MPlexBandTraceNode +from .Multiplexer import Multiplexer +from .MultiplexerBand import MultiplexerBand +from .OutboardTraceNode import OutboardTraceNode +from .ParametricCouplingTraceNode import ParametricCouplingTraceNode +from .PlotMarkerNode import PlotMarkerNode +from .PlotNode import PlotNode +from .PowerDivider import PowerDivider +from .PowerTraceNode import PowerTraceNode +from .ProfileTraceNode import ProfileTraceNode +from .PropagationLossCouplingNode import PropagationLossCouplingNode +from .RadioNode import RadioNode +from .ResultPlotNode import ResultPlotNode +from .RfSystemGroup import RfSystemGroup +from .RxMeasNode import RxMeasNode +from .RxMixerProductNode import RxMixerProductNode +from .RxSaturationNode import RxSaturationNode +from .RxSelectivityNode import RxSelectivityNode +from .RxSpurNode import RxSpurNode +from .RxSusceptibilityProfNode import RxSusceptibilityProfNode +from .SamplingNode import SamplingNode +from .SceneGroupNode import SceneGroupNode +from .SelectivityTraceNode import SelectivityTraceNode +from .SolutionCouplingNode import SolutionCouplingNode +from .SolutionsNode import SolutionsNode +from .Sparameter import Sparameter +from .SpurTraceNode import SpurTraceNode +from .TR_Switch import TR_Switch +from .TRSwitchTraceNode import TRSwitchTraceNode +from .Terminator import Terminator +from .TestNoiseTraceNode import TestNoiseTraceNode +from .TopLevelSimulation import TopLevelSimulation +from .TouchstoneCouplingNode import TouchstoneCouplingNode +from .TunableTraceNode import TunableTraceNode +from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode +from .TwoToneTraceNode import TwoToneTraceNode +from .TxBbEmissionNode import TxBbEmissionNode +from .TxHarmonicNode import TxHarmonicNode +from .TxMeasNode import TxMeasNode +from .TxNbEmissionNode import TxNbEmissionNode +from .TxSpectralProfNode import TxSpectralProfNode +from .TxSpurNode import TxSpurNode +from .WalfischCouplingNode import WalfischCouplingNode +from .ReadOnlyAmplifier import ReadOnlyAmplifier +from .ReadOnlyAntennaNode import ReadOnlyAntennaNode +from .ReadOnlyAntennaPassband import ReadOnlyAntennaPassband +from .ReadOnlyBand import ReadOnlyBand +from .ReadOnlyBandFolder import ReadOnlyBandFolder +from .ReadOnlyCADNode import ReadOnlyCADNode +from .ReadOnlyCable import ReadOnlyCable +from .ReadOnlyCirculator import ReadOnlyCirculator +from .ReadOnlyCouplingLinkNode import ReadOnlyCouplingLinkNode +from .ReadOnlyCouplingsNode import ReadOnlyCouplingsNode +from .ReadOnlyCustomCouplingNode import ReadOnlyCustomCouplingNode +from .ReadOnlyEmitSceneNode import ReadOnlyEmitSceneNode +from .ReadOnlyErcegCouplingNode import ReadOnlyErcegCouplingNode +from .ReadOnlyFilter import ReadOnlyFilter +from .ReadOnlyFiveGChannelModel import ReadOnlyFiveGChannelModel +from .ReadOnlyHataCouplingNode import ReadOnlyHataCouplingNode +from .ReadOnlyIndoorPropagationCouplingNode import ReadOnlyIndoorPropagationCouplingNode +from .ReadOnlyIsolator import ReadOnlyIsolator +from .ReadOnlyLogDistanceCouplingNode import ReadOnlyLogDistanceCouplingNode +from .ReadOnlyMultiplexer import ReadOnlyMultiplexer +from .ReadOnlyMultiplexerBand import ReadOnlyMultiplexerBand +from .ReadOnlyPowerDivider import ReadOnlyPowerDivider +from .ReadOnlyPropagationLossCouplingNode import ReadOnlyPropagationLossCouplingNode +from .ReadOnlyRadioNode import ReadOnlyRadioNode +from .ReadOnlyRfSystemGroup import ReadOnlyRfSystemGroup +from .ReadOnlyRxMeasNode import ReadOnlyRxMeasNode +from .ReadOnlyRxMixerProductNode import ReadOnlyRxMixerProductNode +from .ReadOnlyRxSaturationNode import ReadOnlyRxSaturationNode +from .ReadOnlyRxSelectivityNode import ReadOnlyRxSelectivityNode +from .ReadOnlyRxSpurNode import ReadOnlyRxSpurNode +from .ReadOnlyRxSusceptibilityProfNode import ReadOnlyRxSusceptibilityProfNode +from .ReadOnlySamplingNode import ReadOnlySamplingNode +from .ReadOnlySceneGroupNode import ReadOnlySceneGroupNode +from .ReadOnlySolutionCouplingNode import ReadOnlySolutionCouplingNode +from .ReadOnlySolutionsNode import ReadOnlySolutionsNode +from .ReadOnlySparameter import ReadOnlySparameter +from .ReadOnlyTR_Switch import ReadOnlyTR_Switch +from .ReadOnlyTerminator import ReadOnlyTerminator +from .ReadOnlyTouchstoneCouplingNode import ReadOnlyTouchstoneCouplingNode +from .ReadOnlyTwoRayPathLossCouplingNode import ReadOnlyTwoRayPathLossCouplingNode +from .ReadOnlyTxBbEmissionNode import ReadOnlyTxBbEmissionNode +from .ReadOnlyTxHarmonicNode import ReadOnlyTxHarmonicNode +from .ReadOnlyTxMeasNode import ReadOnlyTxMeasNode +from .ReadOnlyTxNbEmissionNode import ReadOnlyTxNbEmissionNode +from .ReadOnlyTxSpectralProfNode import ReadOnlyTxSpectralProfNode +from .ReadOnlyTxSpurNode import ReadOnlyTxSpurNode +from .ReadOnlyWalfischCouplingNode import ReadOnlyWalfischCouplingNode + +__all__ = [ + 'Amplifier', + 'AntennaNode', + 'AntennaPassband', + 'Band', + 'BandFolder', + 'BandTraceNode', + 'CADNode', + 'Cable', + 'CategoriesViewNode', + 'Circulator', + 'CouplingLinkNode', + 'CouplingTraceNode', + 'CouplingsNode', + 'CustomCouplingNode', + 'EmiPlotMarkerNode', + 'EmitSceneNode', + 'ErcegCouplingNode', + 'Filter', + 'FiveGChannelModel', + 'HataCouplingNode', + 'IndoorPropagationCouplingNode', + 'Isolator', + 'LogDistanceCouplingNode', + 'MPlexBandTraceNode', + 'Multiplexer', + 'MultiplexerBand', + 'OutboardTraceNode', + 'ParametricCouplingTraceNode', + 'PlotMarkerNode', + 'PlotNode', + 'PowerDivider', + 'PowerTraceNode', + 'ProfileTraceNode', + 'PropagationLossCouplingNode', + 'RadioNode', + 'ResultPlotNode', + 'RfSystemGroup', + 'RxMeasNode', + 'RxMixerProductNode', + 'RxSaturationNode', + 'RxSelectivityNode', + 'RxSpurNode', + 'RxSusceptibilityProfNode', + 'SamplingNode', + 'SceneGroupNode', + 'SelectivityTraceNode', + 'SolutionCouplingNode', + 'SolutionsNode', + 'Sparameter', + 'SpurTraceNode', + 'TR_Switch', + 'TRSwitchTraceNode', + 'Terminator', + 'TestNoiseTraceNode', + 'TopLevelSimulation', + 'TouchstoneCouplingNode', + 'TunableTraceNode', + 'TwoRayPathLossCouplingNode', + 'TwoToneTraceNode', + 'TxBbEmissionNode', + 'TxHarmonicNode', + 'TxMeasNode', + 'TxNbEmissionNode', + 'TxSpectralProfNode', + 'TxSpurNode', + 'WalfischCouplingNode', + 'ReadOnlyAmplifier', + 'ReadOnlyAntennaNode', + 'ReadOnlyAntennaPassband', + 'ReadOnlyBand', + 'ReadOnlyBandFolder', + 'ReadOnlyCADNode', + 'ReadOnlyCable', + 'ReadOnlyCirculator', + 'ReadOnlyCouplingLinkNode', + 'ReadOnlyCouplingsNode', + 'ReadOnlyCustomCouplingNode', + 'ReadOnlyEmitSceneNode', + 'ReadOnlyErcegCouplingNode', + 'ReadOnlyFilter', + 'ReadOnlyFiveGChannelModel', + 'ReadOnlyHataCouplingNode', + 'ReadOnlyIndoorPropagationCouplingNode', + 'ReadOnlyIsolator', + 'ReadOnlyLogDistanceCouplingNode', + 'ReadOnlyMultiplexer', + 'ReadOnlyMultiplexerBand', + 'ReadOnlyPowerDivider', + 'ReadOnlyPropagationLossCouplingNode', + 'ReadOnlyRadioNode', + 'ReadOnlyRfSystemGroup', + 'ReadOnlyRxMeasNode', + 'ReadOnlyRxMixerProductNode', + 'ReadOnlyRxSaturationNode', + 'ReadOnlyRxSelectivityNode', + 'ReadOnlyRxSpurNode', + 'ReadOnlyRxSusceptibilityProfNode', + 'ReadOnlySamplingNode', + 'ReadOnlySceneGroupNode', + 'ReadOnlySolutionCouplingNode', + 'ReadOnlySolutionsNode', + 'ReadOnlySparameter', + 'ReadOnlyTR_Switch', + 'ReadOnlyTerminator', + 'ReadOnlyTouchstoneCouplingNode', + 'ReadOnlyTwoRayPathLossCouplingNode', + 'ReadOnlyTxBbEmissionNode', + 'ReadOnlyTxHarmonicNode', + 'ReadOnlyTxMeasNode', + 'ReadOnlyTxNbEmissionNode', + 'ReadOnlyTxSpectralProfNode', + 'ReadOnlyTxSpurNode', + 'ReadOnlyWalfischCouplingNode', +] diff --git a/src/ansys/aedt/core/emit_core/nodes/nodes.py b/src/ansys/aedt/core/emit_core/nodes/nodes.py index 9882f801db4..62732c6523c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/nodes.py +++ b/src/ansys/aedt/core/emit_core/nodes/nodes.py @@ -2,131 +2,28 @@ from .EmitNode import EmitNode from . import generated - -from .generated.Amplifier import Amplifier -from .generated.ReadOnlyAmplifier import ReadOnlyAmplifier -from .generated.Circulator import Circulator -from .generated.CouplingLinkNode import CouplingLinkNode -from .generated.CouplingsNode import CouplingsNode -from .generated.CouplingTraceNode import CouplingTraceNode -from .generated.CustomCouplingNode import CustomCouplingNode -from .generated.EmiPlotMarkerNode import EmiPlotMarkerNode -from .generated.EmitSceneNode import EmitSceneNode -from .generated.ErcegCouplingNode import ErcegCouplingNode -from .generated.Filter import Filter -from .generated.FiveGChannelModel import FiveGChannelModel -from .generated.HataCouplingNode import HataCouplingNode -from .generated.IndoorPropagationCouplingNode import IndoorPropagationCouplingNode -from .generated.Isolator import Isolator -from .generated.LogDistanceCouplingNode import LogDistanceCouplingNode -from .generated.MPlexBandTraceNode import MPlexBandTraceNode -from .generated.Multiplexer import Multiplexer -from .generated.MultiplexerBand import MultiplexerBand -from .generated.OutboardTraceNode import OutboardTraceNode -from .generated.ParametricCouplingTraceNode import ParametricCouplingTraceNode -from .generated.PlotMarkerNode import PlotMarkerNode -from .generated.PlotNode import PlotNode -from .generated.PowerDivider import PowerDivider -from .generated.PowerTraceNode import PowerTraceNode -from .generated.ProfileTraceNode import ProfileTraceNode -from .generated.PropagationLossCouplingNode import PropagationLossCouplingNode -from .generated.RadioNode import RadioNode -from .generated.ReadOnlyAntennaNode import ReadOnlyAntennaNode -from .generated.ReadOnlyAntennaPassband import ReadOnlyAntennaPassband -from .generated.ReadOnlyBand import ReadOnlyBand -from .generated.ReadOnlyBandFolder import ReadOnlyBandFolder -from .generated.ReadOnlyCable import ReadOnlyCable -from .generated.ReadOnlyCADNode import ReadOnlyCADNode -from .generated.ReadOnlyCirculator import ReadOnlyCirculator -from .generated.ReadOnlyCouplingLinkNode import ReadOnlyCouplingLinkNode -from .generated.ReadOnlyCouplingsNode import ReadOnlyCouplingsNode -from .generated.ReadOnlyCustomCouplingNode import ReadOnlyCustomCouplingNode -from .generated.ReadOnlyEmitSceneNode import ReadOnlyEmitSceneNode -from .generated.ReadOnlyErcegCouplingNode import ReadOnlyErcegCouplingNode -from .generated.ReadOnlyFilter import ReadOnlyFilter -from .generated.ReadOnlyFiveGChannelModel import ReadOnlyFiveGChannelModel -from .generated.ReadOnlyHataCouplingNode import ReadOnlyHataCouplingNode -from .generated.ReadOnlyIndoorPropagationCouplingNode import ReadOnlyIndoorPropagationCouplingNode -from .generated.ReadOnlyIsolator import ReadOnlyIsolator -from .generated.ReadOnlyLogDistanceCouplingNode import ReadOnlyLogDistanceCouplingNode -from .generated.ReadOnlyMultiplexer import ReadOnlyMultiplexer -from .generated.ReadOnlyMultiplexerBand import ReadOnlyMultiplexerBand -from .generated.ReadOnlyPowerDivider import ReadOnlyPowerDivider -from .generated.ReadOnlyPropagationLossCouplingNode import ReadOnlyPropagationLossCouplingNode -from .generated.ReadOnlyRadioNode import ReadOnlyRadioNode -from .generated.ReadOnlyRfSystemGroup import ReadOnlyRfSystemGroup -from .generated.ReadOnlyRxMeasNode import ReadOnlyRxMeasNode -from .generated.ReadOnlyRxMixerProductNode import ReadOnlyRxMixerProductNode -from .generated.ReadOnlyRxSaturationNode import ReadOnlyRxSaturationNode -from .generated.ReadOnlyRxSelectivityNode import ReadOnlyRxSelectivityNode -from .generated.ReadOnlyRxSpurNode import ReadOnlyRxSpurNode -from .generated.ReadOnlyRxSusceptibilityProfNode import ReadOnlyRxSusceptibilityProfNode -from .generated.ReadOnlySamplingNode import ReadOnlySamplingNode -from .generated.ReadOnlySceneGroupNode import ReadOnlySceneGroupNode -from .generated.ReadOnlySolutionCouplingNode import ReadOnlySolutionCouplingNode -from .generated.ReadOnlySolutionsNode import ReadOnlySolutionsNode -from .generated.ReadOnlySparameter import ReadOnlySparameter -from .generated.ReadOnlyTerminator import ReadOnlyTerminator -from .generated.ReadOnlyTouchstoneCouplingNode import ReadOnlyTouchstoneCouplingNode -from .generated.ReadOnlyTR_Switch import ReadOnlyTR_Switch -from .generated.ReadOnlyTwoRayPathLossCouplingNode import ReadOnlyTwoRayPathLossCouplingNode -from .generated.ReadOnlyTxBbEmissionNode import ReadOnlyTxBbEmissionNode -from .generated.ReadOnlyTxHarmonicNode import ReadOnlyTxHarmonicNode -from .generated.ReadOnlyTxMeasNode import ReadOnlyTxMeasNode -from .generated.ReadOnlyTxNbEmissionNode import ReadOnlyTxNbEmissionNode -from .generated.ReadOnlyTxSpectralProfNode import ReadOnlyTxSpectralProfNode -from .generated.ReadOnlyTxSpurNode import ReadOnlyTxSpurNode -from .generated.ReadOnlyWalfischCouplingNode import ReadOnlyWalfischCouplingNode -from .generated.ResultPlotNode import ResultPlotNode -from .generated.RfSystemGroup import RfSystemGroup -from .generated.RxMeasNode import RxMeasNode -from .generated.RxMixerProductNode import RxMixerProductNode -from .generated.RxSaturationNode import RxSaturationNode -from .generated.RxSelectivityNode import RxSelectivityNode -from .generated.RxSpurNode import RxSpurNode -from .generated.RxSusceptibilityProfNode import RxSusceptibilityProfNode -from .generated.SamplingNode import SamplingNode -from .generated.SceneGroupNode import SceneGroupNode -from .generated.SelectivityTraceNode import SelectivityTraceNode -from .generated.SolutionCouplingNode import SolutionCouplingNode -from .generated.SolutionsNode import SolutionsNode -from .generated.Sparameter import Sparameter -from .generated.SpurTraceNode import SpurTraceNode -from .generated.Terminator import Terminator -from .generated.TestNoiseTraceNode import TestNoiseTraceNode -from .generated.TopLevelSimulation import TopLevelSimulation -from .generated.TouchstoneCouplingNode import TouchstoneCouplingNode -from .generated.TR_Switch import TR_Switch -from .generated.TRSwitchTraceNode import TRSwitchTraceNode -from .generated.TunableTraceNode import TunableTraceNode -from .generated.TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode -from .generated.TwoToneTraceNode import TwoToneTraceNode -from .generated.TxBbEmissionNode import TxBbEmissionNode -from .generated.TxHarmonicNode import TxHarmonicNode -from .generated.TxMeasNode import TxMeasNode -from .generated.TxNbEmissionNode import TxNbEmissionNode -from .generated.TxSpectralProfNode import TxSpectralProfNode -from .generated.TxSpurNode import TxSpurNode -from .generated.WalfischCouplingNode import WalfischCouplingNode -from .generated.AntennaNode import AntennaNode -from .generated.AntennaPassband import AntennaPassband -from .generated.Band import Band -from .generated.BandFolder import BandFolder -from .generated.BandTraceNode import BandTraceNode -from .generated.Cable import Cable -from .generated.CADNode import CADNode -from .generated.CategoriesViewNode import CategoriesViewNode +from .generated import * class NodeInterface: def __init__(self, oDesign): self.oDesign = oDesign self.oEmitCom = oDesign.GetModule("EmitCom") + + def get_all_component_names(self) -> list[str]: + component_names = self.oEmitCom.GetComponentNames(0, "") + return component_names def get_all_node_ids(self) -> list[int]: - scene_node_id = self.oEmitCom.GetToplevelNodeID(0, "Scene") - node_ids = [] - node_ids_to_search = [scene_node_id] + node_ids_to_search = [] + + top_level_node_names = ["Scene"] + top_level_node_ids = [self.oEmitCom.GetTopLevelNodeID(0, name) for name in top_level_node_names] + node_ids_to_search.extend(top_level_node_ids) + + component_names = self.get_all_component_names() + component_node_ids = [self.oEmitCom.GetComponentNodeID(0, name) for name in component_names] + node_ids_to_search.extend(component_node_ids) while len(node_ids_to_search) > 0: node_id_to_search = node_ids_to_search.pop() @@ -150,8 +47,7 @@ def get_node(self, id: int) -> EmitNode: node = None try: - type_module = getattr(generated, type) - type_class = getattr(type_module, type) + type_class = getattr(generated, type) node = type_class(self.oDesign, 0, id) except AttributeError: node = EmitNode(self.oDesign, 0, id) From 3f33e2ad7089089de8cbddf11af10e2490dab5a8 Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Tue, 4 Feb 2025 23:59:46 -0600 Subject: [PATCH 06/86] Add node functions for getting children --- .../aedt/core/emit_core/nodes/EmitNode.py | 2 ++ src/ansys/aedt/core/emit_core/nodes/nodes.py | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py index 2823c46d8c4..3d69bd007c4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py @@ -39,6 +39,8 @@ def props_to_dict(props): result = {} for prop in props: split_prop = prop.split("=") + if split_prop[1].find('|') != -1: + result[split_prop[0]] = split_prop[1].split('|') result[split_prop[0]] = split_prop[1] return result diff --git a/src/ansys/aedt/core/emit_core/nodes/nodes.py b/src/ansys/aedt/core/emit_core/nodes/nodes.py index 62732c6523c..92a518bef50 100644 --- a/src/ansys/aedt/core/emit_core/nodes/nodes.py +++ b/src/ansys/aedt/core/emit_core/nodes/nodes.py @@ -12,6 +12,18 @@ def __init__(self, oDesign): def get_all_component_names(self) -> list[str]: component_names = self.oEmitCom.GetComponentNames(0, "") return component_names + + def get_all_top_level_nodes(self) -> list[EmitNode]: + top_level_node_names = ["Scene", "Couplings"] + top_level_node_ids = [self.oEmitCom.GetTopLevelNodeID(0, name) for name in top_level_node_names] + top_level_nodes = [self.get_node(node_id) for node_id in top_level_node_ids] + return top_level_nodes + + def get_all_component_nodes(self) -> list[EmitNode]: + component_names = self.get_all_component_names() + component_node_ids = [self.oEmitCom.GetComponentNodeID(0, name) for name in component_names] + component_nodes = [self.get_node(node_id) for node_id in component_node_ids] + return component_nodes def get_all_node_ids(self) -> list[int]: node_ids = [] @@ -53,6 +65,12 @@ def get_node(self, id: int) -> EmitNode: node = EmitNode(self.oDesign, 0, id) return node + + def get_child_nodes(self, node: EmitNode) -> list[EmitNode]: + child_names = self.oEmitCom.GetChildNodeNames(0, node._node_id) + child_ids = [self.oEmitCom.GetChildNodeID(0, node._node_id, name) for name in child_names] + child_nodes = [self.get_node(child_id) for child_id in child_ids] + return child_nodes def get_all_nodes(self) -> list[EmitNode]: ids = self.get_all_node_ids() From bfef0cf7a81c32d9acf19664bae2219c8a0b5172 Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Tue, 11 Feb 2025 17:30:04 -0600 Subject: [PATCH 07/86] Update generated nodes spacing and add_ methods, move NodeInterface methods to Revision and make revision-aware, add methods for getting individual top level nodes --- .../aedt/core/emit_core/nodes/EmitNode.py | 65 ++- .../emit_core/nodes/generated/Amplifier.py | 15 + .../emit_core/nodes/generated/AntennaNode.py | 75 ++- .../nodes/generated/AntennaPassband.py | 8 + .../core/emit_core/nodes/generated/Band.py | 72 +++ .../nodes/generated/BandTraceNode.py | 18 + .../core/emit_core/nodes/generated/CADNode.py | 44 ++ .../core/emit_core/nodes/generated/Cable.py | 11 + .../emit_core/nodes/generated/Circulator.py | 17 + .../nodes/generated/CouplingLinkNode.py | 2 + .../nodes/generated/CouplingTraceNode.py | 24 + .../nodes/generated/CouplingsNode.py | 21 +- .../nodes/generated/CustomCouplingNode.py | 7 + .../nodes/generated/EmiPlotMarkerNode.py | 27 ++ .../nodes/generated/EmitSceneNode.py | 6 +- .../nodes/generated/ErcegCouplingNode.py | 23 + .../core/emit_core/nodes/generated/Filter.py | 24 + .../nodes/generated/FiveGChannelModel.py | 27 ++ .../nodes/generated/HataCouplingNode.py | 23 + .../IndoorPropagationCouplingNode.py | 25 + .../emit_core/nodes/generated/Isolator.py | 17 + .../generated/LogDistanceCouplingNode.py | 24 + .../nodes/generated/MPlexBandTraceNode.py | 16 + .../emit_core/nodes/generated/Multiplexer.py | 12 +- .../nodes/generated/MultiplexerBand.py | 14 + .../nodes/generated/OutboardTraceNode.py | 16 + .../generated/ParametricCouplingTraceNode.py | 16 + .../nodes/generated/PlotMarkerNode.py | 27 ++ .../emit_core/nodes/generated/PlotNode.py | 33 +- .../emit_core/nodes/generated/PowerDivider.py | 17 + .../nodes/generated/PowerTraceNode.py | 16 + .../nodes/generated/ProfileTraceNode.py | 14 + .../generated/PropagationLossCouplingNode.py | 21 + .../emit_core/nodes/generated/RadioNode.py | 2 + .../nodes/generated/ReadOnlyAmplifier.py | 15 + .../nodes/generated/ReadOnlyAntennaNode.py | 73 +++ .../generated/ReadOnlyAntennaPassband.py | 7 + .../emit_core/nodes/generated/ReadOnlyBand.py | 71 +++ .../nodes/generated/ReadOnlyCADNode.py | 44 ++ .../nodes/generated/ReadOnlyCable.py | 11 + .../nodes/generated/ReadOnlyCirculator.py | 17 + .../generated/ReadOnlyCouplingLinkNode.py | 2 + .../nodes/generated/ReadOnlyCouplingsNode.py | 3 + .../generated/ReadOnlyCustomCouplingNode.py | 6 + .../nodes/generated/ReadOnlyEmitSceneNode.py | 4 + .../generated/ReadOnlyErcegCouplingNode.py | 23 + .../nodes/generated/ReadOnlyFilter.py | 24 + .../generated/ReadOnlyFiveGChannelModel.py | 27 ++ .../generated/ReadOnlyHataCouplingNode.py | 23 + .../ReadOnlyIndoorPropagationCouplingNode.py | 24 + .../nodes/generated/ReadOnlyIsolator.py | 17 + .../ReadOnlyLogDistanceCouplingNode.py | 24 + .../nodes/generated/ReadOnlyMultiplexer.py | 10 + .../generated/ReadOnlyMultiplexerBand.py | 14 + .../nodes/generated/ReadOnlyPowerDivider.py | 17 + .../ReadOnlyPropagationLossCouplingNode.py | 21 + .../nodes/generated/ReadOnlyRadioNode.py | 1 + .../nodes/generated/ReadOnlyRfSystemGroup.py | 2 + .../nodes/generated/ReadOnlyRxMeasNode.py | 23 + .../generated/ReadOnlyRxMixerProductNode.py | 20 + .../generated/ReadOnlyRxSelectivityNode.py | 1 + .../nodes/generated/ReadOnlyRxSpurNode.py | 2 + .../ReadOnlyRxSusceptibilityProfNode.py | 15 + .../nodes/generated/ReadOnlySamplingNode.py | 9 + .../nodes/generated/ReadOnlySceneGroupNode.py | 10 + .../generated/ReadOnlySolutionCouplingNode.py | 4 + .../nodes/generated/ReadOnlySolutionsNode.py | 1 + .../nodes/generated/ReadOnlySparameter.py | 6 + .../nodes/generated/ReadOnlyTR_Switch.py | 16 + .../nodes/generated/ReadOnlyTerminator.py | 9 + .../ReadOnlyTouchstoneCouplingNode.py | 9 + .../ReadOnlyTwoRayPathLossCouplingNode.py | 23 + .../generated/ReadOnlyTxBbEmissionNode.py | 3 + .../nodes/generated/ReadOnlyTxHarmonicNode.py | 2 + .../nodes/generated/ReadOnlyTxMeasNode.py | 7 + .../generated/ReadOnlyTxNbEmissionNode.py | 3 + .../generated/ReadOnlyTxSpectralProfNode.py | 27 ++ .../nodes/generated/ReadOnlyTxSpurNode.py | 2 + .../generated/ReadOnlyWalfischCouplingNode.py | 29 ++ .../nodes/generated/ResultPlotNode.py | 34 +- .../nodes/generated/RfSystemGroup.py | 2 + .../emit_core/nodes/generated/RxMeasNode.py | 24 + .../nodes/generated/RxMixerProductNode.py | 21 + .../nodes/generated/RxSaturationNode.py | 1 + .../nodes/generated/RxSelectivityNode.py | 2 + .../emit_core/nodes/generated/RxSpurNode.py | 4 + .../generated/RxSusceptibilityProfNode.py | 16 + .../emit_core/nodes/generated/SamplingNode.py | 10 + .../nodes/generated/SceneGroupNode.py | 12 +- .../nodes/generated/SelectivityTraceNode.py | 14 + .../nodes/generated/SolutionCouplingNode.py | 4 + .../nodes/generated/SolutionsNode.py | 1 + .../emit_core/nodes/generated/Sparameter.py | 6 + .../nodes/generated/SpurTraceNode.py | 16 + .../nodes/generated/TRSwitchTraceNode.py | 16 + .../emit_core/nodes/generated/TR_Switch.py | 16 + .../emit_core/nodes/generated/Terminator.py | 9 + .../nodes/generated/TestNoiseTraceNode.py | 23 + .../nodes/generated/TouchstoneCouplingNode.py | 9 + .../nodes/generated/TunableTraceNode.py | 17 + .../generated/TwoRayPathLossCouplingNode.py | 23 + .../nodes/generated/TwoToneTraceNode.py | 23 + .../nodes/generated/TxBbEmissionNode.py | 5 + .../nodes/generated/TxHarmonicNode.py | 3 + .../emit_core/nodes/generated/TxMeasNode.py | 8 + .../nodes/generated/TxNbEmissionNode.py | 4 + .../nodes/generated/TxSpectralProfNode.py | 28 ++ .../emit_core/nodes/generated/TxSpurNode.py | 4 + .../nodes/generated/WalfischCouplingNode.py | 29 ++ src/ansys/aedt/core/emit_core/nodes/nodes.py | 88 ---- .../aedt/core/emit_core/results/revision.py | 435 ++++++++++++++++++ 111 files changed, 2271 insertions(+), 116 deletions(-) delete mode 100644 src/ansys/aedt/core/emit_core/nodes/nodes.py diff --git a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py index 3d69bd007c4..c2def884143 100644 --- a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py @@ -42,7 +42,6 @@ def props_to_dict(props): if split_prop[1].find('|') != -1: result[split_prop[0]] = split_prop[1].split('|') result[split_prop[0]] = split_prop[1] - return result @property @@ -56,20 +55,9 @@ def name(self): @property def _parent(self): - from . import generated - # from .generated import * - # parent_id = self._oDesign.GetModule('EmitCom').GetParentNodeID(self._result_id, self._node_id) parent_id = 1 - - parent_props = self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id, parent_id, True) - parent_props = self.props_to_dict(parent_props) - - parent_type = parent_props['Type'] - - parent_type_class = getattr(generated, parent_type) - parent_node = parent_type_class(self._oDesign, self._result_id, parent_id) - + parent_node = self._get_node(parent_id) return parent_node @property @@ -85,6 +73,44 @@ def warnings(self): @property def allowed_child_types(self): return self._oDesign.GetModule('EmitCom').GetAllowedChildTypes(self._result_id, self._node_id) + + def _get_node(self, id: int): + """Gets a node for this node's revision with the given id. + + Parameters + ---------- + id: int + id of node to construct. + + Returns + ------- + node: EmitNode + The node. + + Examples + -------- + >>> new_node = node._get_node(node_id) + """ + from . import generated + + props = self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id, id, True) + props = self.props_to_dict(props) + type = props['Type'] + + node = None + try: + type_class = getattr(generated, type) + node = type_class(self._oDesign, self._result_id, id) + except AttributeError: + node = EmitNode(self._oDesign, self._result_id, id) + return node + + @property + def children(self): + child_names = self._oDesign.GetModule('EmitCom').GetChildNodeNames(self._result_id, self._node_id) + child_ids = [self._oDesign.GetModule('EmitCom').GetChildNodeID(self._result_id, self._node_id, name) for name in child_names] + child_nodes = [self._get_node(child_id) for child_id in child_ids] + return child_nodes def _get_property(self, prop): props = self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id, self._node_id, True) @@ -133,3 +159,16 @@ def _get_table_data(self): def _set_table_data(self, nested_list): rows = [col.join(' ') for col in nested_list] self._oDesign.GetModule('EmitCom').SetTableData(self._result_id, self._node_id, rows) + + def _add_child_node(self, child_type, child_name = None): + if not child_name: + child_name = f'New {child_type}' + + new_id = None + if child_type not in self.allowed_child_types: + raise ValueError(f"Child type {child_type} is not allowed for this node. Allowed types are: {self.allowed_child_types}") + try: + new_id = self._oDesign.GetModule('EmitCom').CreateEmitNode(self._result_id, self._node_id, child_name, child_type) + except Exception as e: + print(f"Failed to add child node of type {child_type} to node {self.name}. Error: {e}") + return new_id diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index 71d37553729..4e56ec6135b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -28,6 +28,7 @@ def filename(self) -> str: """ val = self._get_property('Filename') return val + @filename.setter def filename(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @@ -40,6 +41,7 @@ def noise_temperature(self) -> float: """ val = self._get_property('Noise Temperature') return val + @noise_temperature.setter def noise_temperature(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @@ -51,6 +53,7 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + @notes.setter def notes(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) @@ -58,6 +61,7 @@ def notes(self, value: str): class AmplifierTypeOption(Enum): TRANSMIT_AMPLIFIER = "Transmit Amplifier" RECEIVE_AMPLIFIER = "Receive Amplifier" + @property def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type @@ -66,6 +70,7 @@ def amplifier_type(self) -> AmplifierTypeOption: val = self._get_property('Amplifier Type') val = self.AmplifierTypeOption[val] return val + @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Amplifier Type=' + value.value]) @@ -78,6 +83,7 @@ def gain(self) -> float: """ val = self._get_property('Gain') return val + @gain.setter def gain(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Gain=' + value]) @@ -90,6 +96,7 @@ def center_frequency(self) -> float: """ val = self._get_property('Center Frequency') return val + @center_frequency.setter def center_frequency(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Center Frequency=' + value]) @@ -102,6 +109,7 @@ def bandwidth(self) -> float: """ val = self._get_property('Bandwidth') return val + @bandwidth.setter def bandwidth(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth=' + value]) @@ -114,6 +122,7 @@ def noise_figure(self) -> float: """ val = self._get_property('Noise Figure') return val + @noise_figure.setter def noise_figure(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Figure=' + value]) @@ -126,6 +135,7 @@ def saturation_level(self) -> float: """ val = self._get_property('Saturation Level') return val + @saturation_level.setter def saturation_level(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Saturation Level=' + value]) @@ -138,6 +148,7 @@ def _1_db_point_ref_input(self) -> float: """ val = self._get_property('1-dB Point, Ref. Input') return val + @_1_db_point_ref_input.setter def _1_db_point_ref_input(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input=' + value]) @@ -150,6 +161,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property('IP3, Ref. Input') return val + @ip3_ref_input.setter def ip3_ref_input(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + value]) @@ -162,6 +174,7 @@ def shape_factor(self) -> float: """ val = self._get_property('Shape Factor') return val + @shape_factor.setter def shape_factor(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Shape Factor=' + value]) @@ -174,6 +187,7 @@ def reverse_isolation(self) -> float: """ val = self._get_property('Reverse Isolation') return val + @reverse_isolation.setter def reverse_isolation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) @@ -186,6 +200,7 @@ def max_intermod_order(self) -> int: """ val = self._get_property('Max Intermod Order') return val + @max_intermod_order.setter def max_intermod_order(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py index a97e514e8b9..60ff414910b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py @@ -15,7 +15,7 @@ def parent(self): def add_antenna_passband(self): """Add a New Passband to this Antenna""" - return self._add_child_node("AntennaPassband") + return self._add_child_node("Antenna Passband") def rename(self, new_name): """Rename this node""" @@ -36,6 +36,7 @@ def tags(self) -> str: " """ val = self._get_property('Tags') return val + @tags.setter def tags(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Tags=' + value]) @@ -48,6 +49,7 @@ def show_relative_coordinates(self) -> bool: """ val = self._get_property('Show Relative Coordinates') return val + @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) @@ -60,6 +62,7 @@ def position(self): """ val = self._get_property('Position') return val + @position.setter def position(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) @@ -72,6 +75,7 @@ def relative_position(self): """ val = self._get_property('Relative Position') return val + @relative_position.setter def relative_position(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Relative Position=' + value]) @@ -79,6 +83,7 @@ def relative_position(self, value): class OrientationModeOption(Enum): RPYDEG = "Roll-Pitch-Yaw" AETDEG = "Az-El-Twist" + @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode @@ -87,6 +92,7 @@ def orientation_mode(self) -> OrientationModeOption: val = self._get_property('Orientation Mode') val = self.OrientationModeOption[val] return val + @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation Mode=' + value.value]) @@ -99,6 +105,7 @@ def orientation(self): """ val = self._get_property('Orientation') return val + @orientation.setter def orientation(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation=' + value]) @@ -111,6 +118,7 @@ def relative_orientation(self): """ val = self._get_property('Relative Orientation') return val + @relative_orientation.setter def relative_orientation(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) @@ -123,6 +131,7 @@ def position_defined(self) -> bool: """ val = self._get_property('Position Defined') return val + @position_defined.setter def position_defined(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position Defined=' + value]) @@ -135,6 +144,7 @@ def antenna_temperature(self) -> float: """ val = self._get_property('Antenna Temperature') return val + @antenna_temperature.setter def antenna_temperature(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna Temperature=' + value]) @@ -146,6 +156,7 @@ def type(self): " """ val = self._get_property('Type') return val + @type.setter def type(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value]) @@ -157,6 +168,7 @@ def antenna_file(self) -> str: """ val = self._get_property('Antenna File') return val + @antenna_file.setter def antenna_file(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna File=' + value]) @@ -169,6 +181,7 @@ def project_name(self) -> str: """ val = self._get_property('Project Name') return val + @project_name.setter def project_name(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Project Name=' + value]) @@ -181,6 +194,7 @@ def peak_gain(self) -> float: """ val = self._get_property('Peak Gain') return val + @peak_gain.setter def peak_gain(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Peak Gain=' + value]) @@ -189,6 +203,7 @@ class BoresightOption(Enum): XAXIS = "+X Axis" YAXIS = "+Y Axis" ZAXIS = "+Z Axis" + @property def boresight(self) -> BoresightOption: """Boresight @@ -197,6 +212,7 @@ def boresight(self) -> BoresightOption: val = self._get_property('Boresight') val = self.BoresightOption[val] return val + @boresight.setter def boresight(self, value: BoresightOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Boresight=' + value.value]) @@ -209,6 +225,7 @@ def vertical_beamwidth(self) -> float: """ val = self._get_property('Vertical Beamwidth') return val + @vertical_beamwidth.setter def vertical_beamwidth(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Beamwidth=' + value]) @@ -221,6 +238,7 @@ def horizontal_beamwidth(self) -> float: """ val = self._get_property('Horizontal Beamwidth') return val + @horizontal_beamwidth.setter def horizontal_beamwidth(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Horizontal Beamwidth=' + value]) @@ -233,6 +251,7 @@ def extra_sidelobe(self) -> bool: """ val = self._get_property('Extra Sidelobe') return val + @extra_sidelobe.setter def extra_sidelobe(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Extra Sidelobe=' + value]) @@ -245,6 +264,7 @@ def first_sidelobe_level(self) -> float: """ val = self._get_property('First Sidelobe Level') return val + @first_sidelobe_level.setter def first_sidelobe_level(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['First Sidelobe Level=' + value]) @@ -257,6 +277,7 @@ def first_sidelobe_vert_bw(self) -> float: """ val = self._get_property('First Sidelobe Vert. BW') return val + @first_sidelobe_vert_bw.setter def first_sidelobe_vert_bw(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['First Sidelobe Vert. BW=' + value]) @@ -269,6 +290,7 @@ def first_sidelobe_hor_bw(self) -> float: """ val = self._get_property('First Sidelobe Hor. BW') return val + @first_sidelobe_hor_bw.setter def first_sidelobe_hor_bw(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['First Sidelobe Hor. BW=' + value]) @@ -281,6 +303,7 @@ def outerbacklobe_level(self) -> float: """ val = self._get_property('Outer/Backlobe Level') return val + @outerbacklobe_level.setter def outerbacklobe_level(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Outer/Backlobe Level=' + value]) @@ -293,6 +316,7 @@ def resonant_frequency(self) -> float: """ val = self._get_property('Resonant Frequency') return val + @resonant_frequency.setter def resonant_frequency(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Resonant Frequency=' + value]) @@ -305,6 +329,7 @@ def slot_length(self) -> float: """ val = self._get_property('Slot Length') return val + @slot_length.setter def slot_length(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Slot Length=' + value]) @@ -317,6 +342,7 @@ def mouth_width(self) -> float: """ val = self._get_property('Mouth Width') return val + @mouth_width.setter def mouth_width(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mouth Width=' + value]) @@ -329,6 +355,7 @@ def mouth_height(self) -> float: """ val = self._get_property('Mouth Height') return val + @mouth_height.setter def mouth_height(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mouth Height=' + value]) @@ -341,6 +368,7 @@ def waveguide_width(self) -> float: """ val = self._get_property('Waveguide Width') return val + @waveguide_width.setter def waveguide_width(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Waveguide Width=' + value]) @@ -353,6 +381,7 @@ def width_flare_half_angle(self) -> float: """ val = self._get_property('Width Flare Half-angle') return val + @width_flare_half_angle.setter def width_flare_half_angle(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Width Flare Half-angle=' + value]) @@ -365,6 +394,7 @@ def height_flare_half_angle(self) -> float: """ val = self._get_property('Height Flare Half-angle') return val + @height_flare_half_angle.setter def height_flare_half_angle(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Height Flare Half-angle=' + value]) @@ -377,6 +407,7 @@ def mouth_diameter(self) -> float: """ val = self._get_property('Mouth Diameter') return val + @mouth_diameter.setter def mouth_diameter(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mouth Diameter=' + value]) @@ -389,6 +420,7 @@ def flare_half_angle(self) -> float: """ val = self._get_property('Flare Half-angle') return val + @flare_half_angle.setter def flare_half_angle(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Flare Half-angle=' + value]) @@ -401,6 +433,7 @@ def vswr(self) -> float: """ val = self._get_property('VSWR') return val + @vswr.setter def vswr(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['VSWR=' + value]) @@ -410,6 +443,7 @@ class AntennaPolarizationOption(Enum): HORIZONTAL = "Horizontal" RHCP = "RHCP" LHCP = "LHCP" + @property def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization @@ -418,6 +452,7 @@ def antenna_polarization(self) -> AntennaPolarizationOption: val = self._get_property('Antenna Polarization') val = self.AntennaPolarizationOption[val] return val + @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna Polarization=' + value.value]) @@ -425,6 +460,7 @@ def antenna_polarization(self, value: AntennaPolarizationOption): class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" OVER_GROUND_PLANE = "Over Ground Plane" + @property def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode @@ -433,6 +469,7 @@ def cross_dipole_mode(self) -> CrossDipoleModeOption: val = self._get_property('Cross Dipole Mode') val = self.CrossDipoleModeOption[val] return val + @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Cross Dipole Mode=' + value.value]) @@ -440,6 +477,7 @@ def cross_dipole_mode(self, value: CrossDipoleModeOption): class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" LHCP = "LHCP" + @property def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization @@ -448,6 +486,7 @@ def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: val = self._get_property('Cross Dipole Polarization') val = self.CrossDipolePolarizationOption[val] return val + @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Cross Dipole Polarization=' + value.value]) @@ -460,6 +499,7 @@ def override_height(self) -> bool: """ val = self._get_property('Override Height') return val + @override_height.setter def override_height(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Override Height=' + value]) @@ -472,6 +512,7 @@ def offset_height(self) -> float: """ val = self._get_property('Offset Height') return val + @offset_height.setter def offset_height(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Offset Height=' + value]) @@ -484,6 +525,7 @@ def auto_height_offset(self) -> bool: """ val = self._get_property('Auto Height Offset') return val + @auto_height_offset.setter def auto_height_offset(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Auto Height Offset=' + value]) @@ -496,6 +538,7 @@ def conform__adjust_antenna(self) -> bool: """ val = self._get_property('Conform / Adjust Antenna') return val + @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Conform / Adjust Antenna=' + value]) @@ -508,6 +551,7 @@ def element_offset(self): """ val = self._get_property('Element Offset') return val + @element_offset.setter def element_offset(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Element Offset=' + value]) @@ -516,6 +560,7 @@ class ConformtoPlatformOption(Enum): NONE = "None" ALONG_NORMAL = "Along Normal" PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" + @property def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform @@ -524,6 +569,7 @@ def conform_to_platform(self) -> ConformtoPlatformOption: val = self._get_property('Conform to Platform') val = self.ConformtoPlatformOption[val] return val + @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Conform to Platform=' + value.value]) @@ -532,6 +578,7 @@ class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" YZ_PLANE = "YZ Plane" ZX_PLANE = "ZX Plane" + @property def reference_plane(self) -> ReferencePlaneOption: """Reference Plane @@ -540,6 +587,7 @@ def reference_plane(self) -> ReferencePlaneOption: val = self._get_property('Reference Plane') val = self.ReferencePlaneOption[val] return val + @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Reference Plane=' + value.value]) @@ -552,6 +600,7 @@ def conform_element_orientation(self) -> bool: """ val = self._get_property('Conform Element Orientation') return val + @conform_element_orientation.setter def conform_element_orientation(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Conform Element Orientation=' + value]) @@ -564,6 +613,7 @@ def show_axes(self) -> bool: """ val = self._get_property('Show Axes') return val + @show_axes.setter def show_axes(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Axes=' + value]) @@ -576,6 +626,7 @@ def show_icon(self) -> bool: """ val = self._get_property('Show Icon') return val + @show_icon.setter def show_icon(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Icon=' + value]) @@ -588,6 +639,7 @@ def size(self) -> float: """ val = self._get_property('Size') return val + @size.setter def size(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Size=' + value]) @@ -600,6 +652,7 @@ def color(self): """ val = self._get_property('Color') return val + @color.setter def color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) @@ -611,6 +664,7 @@ def el_sample_interval(self) -> float: " """ val = self._get_property('El Sample Interval') return val + @property def az_sample_interval(self) -> float: """Az Sample Interval @@ -618,6 +672,7 @@ def az_sample_interval(self) -> float: " """ val = self._get_property('Az Sample Interval') return val + @property def has_frequency_domain(self) -> bool: """Has Frequency Domain @@ -626,6 +681,7 @@ def has_frequency_domain(self) -> bool: """ val = self._get_property('Has Frequency Domain') return val + @property def frequency_domain(self): """Frequency Domain @@ -633,6 +689,7 @@ def frequency_domain(self): " """ val = self._get_property('Frequency Domain') return val + @property def number_of_electric_sources(self) -> int: """Number of Electric Sources @@ -640,6 +697,7 @@ def number_of_electric_sources(self) -> int: " """ val = self._get_property('Number of Electric Sources') return val + @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources @@ -647,6 +705,7 @@ def number_of_magnetic_sources(self) -> int: " """ val = self._get_property('Number of Magnetic Sources') return val + @property def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources @@ -654,6 +713,7 @@ def number_of_imaged_electric_sources(self) -> int: " """ val = self._get_property('Number of Imaged Electric Sources') return val + @property def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources @@ -661,6 +721,7 @@ def number_of_imaged_magnetic_sources(self) -> int: " """ val = self._get_property('Number of Imaged Magnetic Sources') return val + @property def waveguide_height(self) -> float: """Waveguide Height @@ -668,6 +729,7 @@ def waveguide_height(self) -> float: " """ val = self._get_property('Waveguide Height') return val + @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency @@ -675,6 +737,7 @@ def waveguide_cutoff_frequency(self) -> float: " """ val = self._get_property('Waveguide Cutoff Frequency') return val + @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency @@ -682,10 +745,12 @@ def aperture_cutoff_frequency(self) -> float: " """ val = self._get_property('Aperture Cutoff Frequency') return val + class SWEModeTruncationOption(Enum): DYNAMIC = "Dynamic" CUSTOM = "Fixed (Custom)" NONE = "None" + @property def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation @@ -694,6 +759,7 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: val = self._get_property('SWE Mode Truncation') val = self.SWEModeTruncationOption[val] return val + @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['SWE Mode Truncation=' + value.value]) @@ -706,6 +772,7 @@ def max_n_index(self) -> int: """ val = self._get_property('Max N Index') return val + @max_n_index.setter def max_n_index(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max N Index=' + value]) @@ -717,6 +784,7 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + @notes.setter def notes(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) @@ -729,6 +797,7 @@ def show_composite_passband(self) -> bool: """ val = self._get_property('Show Composite Passband') return val + @show_composite_passband.setter def show_composite_passband(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Composite Passband=' + value]) @@ -741,6 +810,7 @@ def use_phase_center(self) -> bool: """ val = self._get_property('Use Phase Center') return val + @use_phase_center.setter def use_phase_center(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use Phase Center=' + value]) @@ -752,6 +822,7 @@ def coordinate_systems(self) -> str: " """ val = self._get_property('Coordinate Systems') return val + @property def phasecenterposition(self): """PhaseCenterPosition @@ -760,6 +831,7 @@ def phasecenterposition(self): """ val = self._get_property('PhaseCenterPosition') return val + @property def phasecenterorientation(self): """PhaseCenterOrientation @@ -768,3 +840,4 @@ def phasecenterorientation(self): """ val = self._get_property('PhaseCenterOrientation') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py index 848bed555b4..2d19b637f8a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py @@ -29,6 +29,7 @@ def delete(self): def enabled(self) -> bool: """Enabled state for this node.""" return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) @@ -41,6 +42,7 @@ def passband_loss(self) -> float: """ val = self._get_property('Passband Loss') return val + @passband_loss.setter def passband_loss(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Passband Loss=' + value]) @@ -53,6 +55,7 @@ def out_of_band_attenuation(self) -> float: """ val = self._get_property('Out of Band Attenuation') return val + @out_of_band_attenuation.setter def out_of_band_attenuation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Out of Band Attenuation=' + value]) @@ -65,6 +68,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property('Lower Stop Band') return val + @lower_stop_band.setter def lower_stop_band(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) @@ -77,6 +81,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property('Lower Cutoff') return val + @lower_cutoff.setter def lower_cutoff(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) @@ -89,6 +94,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property('Higher Cutoff') return val + @higher_cutoff.setter def higher_cutoff(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) @@ -101,6 +107,7 @@ def higher_stop_band(self) -> float: """ val = self._get_property('Higher Stop Band') return val + @higher_stop_band.setter def higher_stop_band(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) @@ -112,6 +119,7 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + @notes.setter def notes(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index 42ea596f730..b8eda9a930d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -17,6 +17,7 @@ def parent(self): def enabled(self) -> bool: """Enabled state for this node.""" return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) @@ -28,6 +29,7 @@ def port(self): " """ val = self._get_property('Port') return val + @port.setter def port(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Port=' + value]) @@ -40,6 +42,7 @@ def use_dd_1494_mode(self) -> bool: """ val = self._get_property('Use DD-1494 Mode') return val + @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use DD-1494 Mode=' + value]) @@ -52,6 +55,7 @@ def use_emission_designator(self) -> bool: """ val = self._get_property('Use Emission Designator') return val + @use_emission_designator.setter def use_emission_designator(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use Emission Designator=' + value]) @@ -63,6 +67,7 @@ def emission_designator(self) -> str: " """ val = self._get_property('Emission Designator') return val + @emission_designator.setter def emission_designator(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Emission Designator=' + value]) @@ -74,6 +79,7 @@ def emission_designator_ch_bw(self) -> float: " """ val = self._get_property('Emission Designator Ch. BW') return val + @property def emit_modulation_type(self) -> str: """EMIT Modulation Type @@ -81,6 +87,7 @@ def emit_modulation_type(self) -> str: " """ val = self._get_property('EMIT Modulation Type') return val + @property def override_emission_designator_bw(self) -> bool: """Override Emission Designator BW @@ -89,6 +96,7 @@ def override_emission_designator_bw(self) -> bool: """ val = self._get_property('Override Emission Designator BW') return val + @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Override Emission Designator BW=' + value]) @@ -101,6 +109,7 @@ def channel_bandwidth(self) -> float: """ val = self._get_property('Channel Bandwidth') return val + @channel_bandwidth.setter def channel_bandwidth(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Channel Bandwidth=' + value]) @@ -117,6 +126,7 @@ class ModulationOption(Enum): QAM = "QAM" APSK = "APSK" RADAR = "Radar" + @property def modulation(self) -> ModulationOption: """Modulation @@ -125,6 +135,7 @@ def modulation(self) -> ModulationOption: val = self._get_property('Modulation') val = self.ModulationOption[val] return val + @modulation.setter def modulation(self, value: ModulationOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Modulation=' + value.value]) @@ -135,6 +146,7 @@ class WaveformOption(Enum): PRBS = "PRBS" PRBS_PERIODIC = "PRBS (Periodic)" IMPORTED = "Imported" + @property def waveform(self) -> WaveformOption: """Waveform @@ -143,6 +155,7 @@ def waveform(self) -> WaveformOption: val = self._get_property('Waveform') val = self.WaveformOption[val] return val + @waveform.setter def waveform(self, value: WaveformOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Waveform=' + value.value]) @@ -155,6 +168,7 @@ def max_modulating_freq(self) -> float: """ val = self._get_property('Max Modulating Freq.') return val + @max_modulating_freq.setter def max_modulating_freq(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Modulating Freq.=' + value]) @@ -167,6 +181,7 @@ def modulation_index(self) -> float: """ val = self._get_property('Modulation Index') return val + @modulation_index.setter def modulation_index(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Modulation Index=' + value]) @@ -179,6 +194,7 @@ def freq_deviation(self) -> float: """ val = self._get_property('Freq. Deviation') return val + @freq_deviation.setter def freq_deviation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Freq. Deviation=' + value]) @@ -191,6 +207,7 @@ def bit_rate(self) -> float: """ val = self._get_property('Bit Rate') return val + @bit_rate.setter def bit_rate(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Bit Rate=' + value]) @@ -203,6 +220,7 @@ def sidelobes(self) -> int: """ val = self._get_property('Sidelobes') return val + @sidelobes.setter def sidelobes(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Sidelobes=' + value]) @@ -215,6 +233,7 @@ def freq_deviation_(self) -> float: """ val = self._get_property('Freq. Deviation ') return val + @freq_deviation_.setter def freq_deviation_(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Freq. Deviation =' + value]) @@ -226,6 +245,7 @@ class PSKTypeOption(Enum): _16_PSK = "16-PSK" _32_PSK = "32-PSK" _64_PSK = "64-PSK" + @property def psk_type(self) -> PSKTypeOption: """PSK Type @@ -234,6 +254,7 @@ def psk_type(self) -> PSKTypeOption: val = self._get_property('PSK Type') val = self.PSKTypeOption[val] return val + @psk_type.setter def psk_type(self, value: PSKTypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['PSK Type=' + value.value]) @@ -242,6 +263,7 @@ class FSKTypeOption(Enum): _2_FSK = "2-FSK" _4_FSK = "4-FSK" _8_FSK = "8-FSK" + @property def fsk_type(self) -> FSKTypeOption: """FSK Type @@ -250,6 +272,7 @@ def fsk_type(self) -> FSKTypeOption: val = self._get_property('FSK Type') val = self.FSKTypeOption[val] return val + @fsk_type.setter def fsk_type(self, value: FSKTypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['FSK Type=' + value.value]) @@ -260,6 +283,7 @@ class QAMTypeOption(Enum): _64_QAM = "64-QAM" _256_QAM = "256-QAM" _1024_QAM = "1024-QAM" + @property def qam_type(self) -> QAMTypeOption: """QAM Type @@ -268,6 +292,7 @@ def qam_type(self) -> QAMTypeOption: val = self._get_property('QAM Type') val = self.QAMTypeOption[val] return val + @qam_type.setter def qam_type(self, value: QAMTypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['QAM Type=' + value.value]) @@ -278,6 +303,7 @@ class APSKTypeOption(Enum): _64_APSK = "64-APSK" _256_APSK = "256-APSK" _1024_APSK = "1024-APSK" + @property def apsk_type(self) -> APSKTypeOption: """APSK Type @@ -286,6 +312,7 @@ def apsk_type(self) -> APSKTypeOption: val = self._get_property('APSK Type') val = self.APSKTypeOption[val] return val + @apsk_type.setter def apsk_type(self, value: APSKTypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['APSK Type=' + value.value]) @@ -298,6 +325,7 @@ def start_frequency(self) -> float: """ val = self._get_property('Start Frequency') return val + @start_frequency.setter def start_frequency(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Start Frequency=' + value]) @@ -310,6 +338,7 @@ def stop_frequency(self) -> float: """ val = self._get_property('Stop Frequency') return val + @stop_frequency.setter def stop_frequency(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Stop Frequency=' + value]) @@ -322,6 +351,7 @@ def channel_spacing(self) -> float: """ val = self._get_property('Channel Spacing') return val + @channel_spacing.setter def channel_spacing(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Channel Spacing=' + value]) @@ -334,6 +364,7 @@ def tx_offset(self) -> float: """ val = self._get_property('Tx Offset') return val + @tx_offset.setter def tx_offset(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Tx Offset=' + value]) @@ -346,6 +377,7 @@ def clock_duty_cycle(self) -> float: """ val = self._get_property('Clock Duty Cycle') return val + @clock_duty_cycle.setter def clock_duty_cycle(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Clock Duty Cycle=' + value]) @@ -358,6 +390,7 @@ def clock_risefall_time(self) -> float: """ val = self._get_property('Clock Rise/Fall Time') return val + @clock_risefall_time.setter def clock_risefall_time(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Clock Rise/Fall Time=' + value]) @@ -366,6 +399,7 @@ class SpreadingTypeOption(Enum): LOW_SPREAD = "Low Spread" CENTER_SPREAD = "Center Spread" HIGH_SPREAD = "High Spread" + @property def spreading_type(self) -> SpreadingTypeOption: """Spreading Type @@ -374,6 +408,7 @@ def spreading_type(self) -> SpreadingTypeOption: val = self._get_property('Spreading Type') val = self.SpreadingTypeOption[val] return val + @spreading_type.setter def spreading_type(self, value: SpreadingTypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Spreading Type=' + value.value]) @@ -386,6 +421,7 @@ def spread_percentage(self) -> float: """ val = self._get_property('Spread Percentage') return val + @spread_percentage.setter def spread_percentage(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Spread Percentage=' + value]) @@ -397,6 +433,7 @@ def imported_spectrum(self) -> str: """ val = self._get_property('Imported Spectrum') return val + @imported_spectrum.setter def imported_spectrum(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Imported Spectrum=' + value]) @@ -408,6 +445,7 @@ def raw_data_format(self) -> str: " """ val = self._get_property('Raw Data Format') return val + @property def system_impedance(self) -> float: """System Impedance @@ -416,6 +454,7 @@ def system_impedance(self) -> float: """ val = self._get_property('System Impedance') return val + @system_impedance.setter def system_impedance(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['System Impedance=' + value]) @@ -428,6 +467,7 @@ def advanced_extraction_params(self) -> bool: """ val = self._get_property('Advanced Extraction Params') return val + @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Advanced Extraction Params=' + value]) @@ -440,6 +480,7 @@ def nb_window_size(self) -> float: """ val = self._get_property('NB Window Size') return val + @nb_window_size.setter def nb_window_size(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['NB Window Size=' + value]) @@ -452,6 +493,7 @@ def bb_smoothing_factor(self) -> float: """ val = self._get_property('BB Smoothing Factor') return val + @bb_smoothing_factor.setter def bb_smoothing_factor(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['BB Smoothing Factor=' + value]) @@ -464,6 +506,7 @@ def nb_detector_threshold(self) -> float: """ val = self._get_property('NB Detector Threshold') return val + @nb_detector_threshold.setter def nb_detector_threshold(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['NB Detector Threshold=' + value]) @@ -471,6 +514,7 @@ def nb_detector_threshold(self, value: float): class AlgorithmOption(Enum): FFT = "FFT" FOURIER_TRANSFORM = "Fourier Transform" + @property def algorithm(self) -> AlgorithmOption: """Algorithm @@ -479,6 +523,7 @@ def algorithm(self) -> AlgorithmOption: val = self._get_property('Algorithm') val = self.AlgorithmOption[val] return val + @algorithm.setter def algorithm(self, value: AlgorithmOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Algorithm=' + value.value]) @@ -491,6 +536,7 @@ def start(self) -> float: """ val = self._get_property('Start') return val + @start.setter def start(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Start=' + value]) @@ -502,6 +548,7 @@ def stop(self) -> float: " """ val = self._get_property('Stop') return val + @stop.setter def stop(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Stop=' + value]) @@ -514,6 +561,7 @@ def max_frequency(self) -> float: """ val = self._get_property('Max Frequency') return val + @max_frequency.setter def max_frequency(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Frequency=' + value]) @@ -528,6 +576,7 @@ class WindowTypeOption(Enum): LANZCOS = "Lanzcos" WELCH = "Welch" WEBER = "Weber" + @property def window_type(self) -> WindowTypeOption: """Window Type @@ -536,6 +585,7 @@ def window_type(self) -> WindowTypeOption: val = self._get_property('Window Type') val = self.WindowTypeOption[val] return val + @window_type.setter def window_type(self, value: WindowTypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Window Type=' + value.value]) @@ -548,6 +598,7 @@ def kaiser_parameter(self) -> float: """ val = self._get_property('Kaiser Parameter') return val + @kaiser_parameter.setter def kaiser_parameter(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Kaiser Parameter=' + value]) @@ -560,6 +611,7 @@ def adjust_coherent_gain(self) -> bool: """ val = self._get_property('Adjust Coherent Gain') return val + @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adjust Coherent Gain=' + value]) @@ -572,6 +624,7 @@ def data_rate(self) -> float: """ val = self._get_property('Data Rate') return val + @data_rate.setter def data_rate(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Rate=' + value]) @@ -584,6 +637,7 @@ def _of_bits(self) -> int: """ val = self._get_property('# of Bits') return val + @_of_bits.setter def _of_bits(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['# of Bits=' + value]) @@ -596,6 +650,7 @@ def use_envelope(self) -> bool: """ val = self._get_property('Use Envelope') return val + @use_envelope.setter def use_envelope(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use Envelope=' + value]) @@ -608,6 +663,7 @@ def min_ptsnull(self) -> int: """ val = self._get_property('Min Pts/Null') return val + @min_ptsnull.setter def min_ptsnull(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Min Pts/Null=' + value]) @@ -620,6 +676,7 @@ def delay_skew(self) -> float: """ val = self._get_property('Delay Skew') return val + @delay_skew.setter def delay_skew(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Delay Skew=' + value]) @@ -630,6 +687,7 @@ class RadarTypeOption(Enum): FM_PULSE = "FM Pulse" NON_FM_PULSE = "Non-FM Pulse" PHASE_CODED = "Phase Coded" + @property def radar_type(self) -> RadarTypeOption: """Radar Type @@ -638,6 +696,7 @@ def radar_type(self) -> RadarTypeOption: val = self._get_property('Radar Type') val = self.RadarTypeOption[val] return val + @radar_type.setter def radar_type(self, value: RadarTypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Radar Type=' + value.value]) @@ -650,6 +709,7 @@ def hopping_radar(self) -> bool: """ val = self._get_property('Hopping Radar') return val + @hopping_radar.setter def hopping_radar(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Hopping Radar=' + value]) @@ -662,6 +722,7 @@ def post_october_2020_procurement(self) -> bool: """ val = self._get_property('Post October 2020 Procurement') return val + @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Post October 2020 Procurement=' + value]) @@ -674,6 +735,7 @@ def hop_range_min_freq(self) -> float: """ val = self._get_property('Hop Range Min Freq') return val + @hop_range_min_freq.setter def hop_range_min_freq(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Hop Range Min Freq=' + value]) @@ -686,6 +748,7 @@ def hop_range_max_freq(self) -> float: """ val = self._get_property('Hop Range Max Freq') return val + @hop_range_max_freq.setter def hop_range_max_freq(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Hop Range Max Freq=' + value]) @@ -698,6 +761,7 @@ def pulse_duration(self) -> float: """ val = self._get_property('Pulse Duration') return val + @pulse_duration.setter def pulse_duration(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Duration=' + value]) @@ -710,6 +774,7 @@ def pulse_rise_time(self) -> float: """ val = self._get_property('Pulse Rise Time') return val + @pulse_rise_time.setter def pulse_rise_time(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Rise Time=' + value]) @@ -722,6 +787,7 @@ def pulse_fall_time(self) -> float: """ val = self._get_property('Pulse Fall Time') return val + @pulse_fall_time.setter def pulse_fall_time(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Fall Time=' + value]) @@ -734,6 +800,7 @@ def pulse_repetition_rate(self) -> float: """ val = self._get_property('Pulse Repetition Rate') return val + @pulse_repetition_rate.setter def pulse_repetition_rate(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Repetition Rate=' + value]) @@ -746,6 +813,7 @@ def number_of_chips(self) -> float: """ val = self._get_property('Number of Chips') return val + @number_of_chips.setter def number_of_chips(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Number of Chips=' + value]) @@ -758,6 +826,7 @@ def pulse_compression_ratio(self) -> float: """ val = self._get_property('Pulse Compression Ratio') return val + @pulse_compression_ratio.setter def pulse_compression_ratio(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Compression Ratio=' + value]) @@ -770,6 +839,7 @@ def fm_chirp_period(self) -> float: """ val = self._get_property('FM Chirp Period') return val + @fm_chirp_period.setter def fm_chirp_period(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['FM Chirp Period=' + value]) @@ -782,6 +852,7 @@ def fm_freq_deviation(self) -> float: """ val = self._get_property('FM Freq Deviation') return val + @fm_freq_deviation.setter def fm_freq_deviation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['FM Freq Deviation=' + value]) @@ -794,6 +865,7 @@ def fm_freq_dev_bandwidth(self) -> float: """ val = self._get_property('FM Freq Dev Bandwidth') return val + @fm_freq_dev_bandwidth.setter def fm_freq_dev_bandwidth(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['FM Freq Dev Bandwidth=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py index cb2ed6a7b97..9f0c0447e3c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py @@ -32,6 +32,7 @@ def data_source(self): " """ val = self._get_property('Data Source') return val + @data_source.setter def data_source(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @@ -39,6 +40,7 @@ def data_source(self, value): class TxorRxOption(Enum): TX = "Tx" RX = "Rx" + @property def tx_or_rx(self) -> TxorRxOption: """Tx or Rx @@ -47,6 +49,7 @@ def tx_or_rx(self) -> TxorRxOption: val = self._get_property('Tx or Rx') val = self.TxorRxOption[val] return val + @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Tx or Rx=' + value.value]) @@ -58,6 +61,7 @@ def channel_frequency(self): " """ val = self._get_property('Channel Frequency') return val + @channel_frequency.setter def channel_frequency(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Channel Frequency=' + value]) @@ -69,6 +73,7 @@ def transmit_frequency(self) -> float: " """ val = self._get_property('Transmit Frequency') return val + @property def visible(self) -> bool: """Visible @@ -77,6 +82,7 @@ def visible(self) -> bool: """ val = self._get_property('Visible') return val + @visible.setter def visible(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @@ -89,6 +95,7 @@ def custom_legend(self) -> bool: """ val = self._get_property('Custom Legend') return val + @custom_legend.setter def custom_legend(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @@ -100,6 +107,7 @@ def name(self) -> str: " """ val = self._get_property('Name') return val + @name.setter def name(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) @@ -111,6 +119,7 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property def style(self) -> StyleOption: """Style @@ -119,6 +128,7 @@ def style(self) -> StyleOption: val = self._get_property('Style') val = self.StyleOption[val] return val + @style.setter def style(self, value: StyleOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @@ -131,6 +141,7 @@ def line_width(self) -> int: """ val = self._get_property('Line Width') return val + @line_width.setter def line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @@ -143,6 +154,7 @@ def line_color(self): """ val = self._get_property('Line Color') return val + @line_color.setter def line_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) @@ -163,6 +175,7 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property def symbol(self) -> SymbolOption: """Symbol @@ -171,6 +184,7 @@ def symbol(self) -> SymbolOption: val = self._get_property('Symbol') val = self.SymbolOption[val] return val + @symbol.setter def symbol(self, value: SymbolOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @@ -183,6 +197,7 @@ def symbol_size(self) -> int: """ val = self._get_property('Symbol Size') return val + @symbol_size.setter def symbol_size(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @@ -195,6 +210,7 @@ def symbol_color(self): """ val = self._get_property('Symbol Color') return val + @symbol_color.setter def symbol_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @@ -207,6 +223,7 @@ def symbol_line_width(self) -> int: """ val = self._get_property('Symbol Line Width') return val + @symbol_line_width.setter def symbol_line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @@ -219,6 +236,7 @@ def symbol_filled(self) -> bool: """ val = self._get_property('Symbol Filled') return val + @symbol_filled.setter def symbol_filled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py index 74a4b3ec7c0..2e806a930b4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py @@ -33,6 +33,7 @@ def file(self) -> str: """ val = self._get_property('File') return val + class ModelTypeOption(Enum): PLATE = "Plate" BOX = "Box" @@ -48,6 +49,7 @@ class ModelTypeOption(Enum): PRISM = "Prism" TAPERED_PRISM = "Tapered Prism" TOPHAT = "Tophat" + @property def model_type(self) -> ModelTypeOption: """Model Type @@ -56,6 +58,7 @@ def model_type(self) -> ModelTypeOption: val = self._get_property('Model Type') val = self.ModelTypeOption[val] return val + @model_type.setter def model_type(self, value: ModelTypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Model Type=' + value.value]) @@ -68,6 +71,7 @@ def length(self) -> float: """ val = self._get_property('Length') return val + @length.setter def length(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Length=' + value]) @@ -80,6 +84,7 @@ def width(self) -> float: """ val = self._get_property('Width') return val + @width.setter def width(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Width=' + value]) @@ -92,6 +97,7 @@ def height(self) -> float: """ val = self._get_property('Height') return val + @height.setter def height(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Height=' + value]) @@ -104,6 +110,7 @@ def angle(self) -> float: """ val = self._get_property('Angle') return val + @angle.setter def angle(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Angle=' + value]) @@ -116,6 +123,7 @@ def top_side(self) -> float: """ val = self._get_property('Top Side') return val + @top_side.setter def top_side(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Top Side=' + value]) @@ -128,6 +136,7 @@ def top_radius(self) -> float: """ val = self._get_property('Top Radius') return val + @top_radius.setter def top_radius(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Top Radius=' + value]) @@ -140,6 +149,7 @@ def side(self) -> float: """ val = self._get_property('Side') return val + @side.setter def side(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Side=' + value]) @@ -152,6 +162,7 @@ def radius(self) -> float: """ val = self._get_property('Radius') return val + @radius.setter def radius(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Radius=' + value]) @@ -164,6 +175,7 @@ def base_radius(self) -> float: """ val = self._get_property('Base Radius') return val + @base_radius.setter def base_radius(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Base Radius=' + value]) @@ -176,6 +188,7 @@ def center_radius(self) -> float: """ val = self._get_property('Center Radius') return val + @center_radius.setter def center_radius(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Center Radius=' + value]) @@ -188,6 +201,7 @@ def x_axis_ellipsoid_radius(self) -> float: """ val = self._get_property('X Axis Ellipsoid Radius') return val + @x_axis_ellipsoid_radius.setter def x_axis_ellipsoid_radius(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['X Axis Ellipsoid Radius=' + value]) @@ -200,6 +214,7 @@ def y_axis_ellipsoid_radius(self) -> float: """ val = self._get_property('Y Axis Ellipsoid Radius') return val + @y_axis_ellipsoid_radius.setter def y_axis_ellipsoid_radius(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Y Axis Ellipsoid Radius=' + value]) @@ -212,6 +227,7 @@ def z_axis_ellipsoid_radius(self) -> float: """ val = self._get_property('Z Axis Ellipsoid Radius') return val + @z_axis_ellipsoid_radius.setter def z_axis_ellipsoid_radius(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Z Axis Ellipsoid Radius=' + value]) @@ -224,6 +240,7 @@ def focal_length(self) -> float: """ val = self._get_property('Focal Length') return val + @focal_length.setter def focal_length(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Focal Length=' + value]) @@ -235,6 +252,7 @@ def offset(self) -> float: " """ val = self._get_property('Offset') return val + @offset.setter def offset(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Offset=' + value]) @@ -247,6 +265,7 @@ def x_direction_taper(self) -> float: """ val = self._get_property('X Direction Taper') return val + @x_direction_taper.setter def x_direction_taper(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['X Direction Taper=' + value]) @@ -259,6 +278,7 @@ def y_direction_taper(self) -> float: """ val = self._get_property('Y Direction Taper') return val + @y_direction_taper.setter def y_direction_taper(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Y Direction Taper=' + value]) @@ -271,6 +291,7 @@ def prism_direction(self): """ val = self._get_property('Prism Direction') return val + @prism_direction.setter def prism_direction(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Prism Direction=' + value]) @@ -283,6 +304,7 @@ def closed_top(self) -> bool: """ val = self._get_property('Closed Top') return val + @closed_top.setter def closed_top(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Closed Top=' + value]) @@ -295,6 +317,7 @@ def closed_base(self) -> bool: """ val = self._get_property('Closed Base') return val + @closed_base.setter def closed_base(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Closed Base=' + value]) @@ -307,6 +330,7 @@ def mesh_density(self) -> int: """ val = self._get_property('Mesh Density') return val + @mesh_density.setter def mesh_density(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mesh Density=' + value]) @@ -319,6 +343,7 @@ def use_symmetric_mesh(self) -> bool: """ val = self._get_property('Use Symmetric Mesh') return val + @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use Symmetric Mesh=' + value]) @@ -326,6 +351,7 @@ def use_symmetric_mesh(self, value: bool): class MeshOptionOption(Enum): IMPROVED = "Improved" LEGACY = "Legacy" + @property def mesh_option(self) -> MeshOptionOption: """Mesh Option @@ -334,6 +360,7 @@ def mesh_option(self) -> MeshOptionOption: val = self._get_property('Mesh Option') val = self.MeshOptionOption[val] return val + @mesh_option.setter def mesh_option(self, value: MeshOptionOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mesh Option=' + value.value]) @@ -346,6 +373,7 @@ def coating_index(self) -> int: """ val = self._get_property('Coating Index') return val + @coating_index.setter def coating_index(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Coating Index=' + value]) @@ -358,6 +386,7 @@ def show_relative_coordinates(self) -> bool: """ val = self._get_property('Show Relative Coordinates') return val + @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) @@ -370,6 +399,7 @@ def position(self): """ val = self._get_property('Position') return val + @position.setter def position(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) @@ -382,6 +412,7 @@ def relative_position(self): """ val = self._get_property('Relative Position') return val + @relative_position.setter def relative_position(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Relative Position=' + value]) @@ -389,6 +420,7 @@ def relative_position(self, value): class OrientationModeOption(Enum): RPYDEG = "Roll-Pitch-Yaw" AETDEG = "Az-El-Twist" + @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode @@ -397,6 +429,7 @@ def orientation_mode(self) -> OrientationModeOption: val = self._get_property('Orientation Mode') val = self.OrientationModeOption[val] return val + @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation Mode=' + value.value]) @@ -409,6 +442,7 @@ def orientation(self): """ val = self._get_property('Orientation') return val + @orientation.setter def orientation(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation=' + value]) @@ -421,6 +455,7 @@ def relative_orientation(self): """ val = self._get_property('Relative Orientation') return val + @relative_orientation.setter def relative_orientation(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) @@ -433,6 +468,7 @@ def visible(self) -> bool: """ val = self._get_property('Visible') return val + @visible.setter def visible(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @@ -442,6 +478,7 @@ class RenderModeOption(Enum): WIRE_FRAME = "Wire-Frame" HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" OUTLINE = "Outline" + @property def render_mode(self) -> RenderModeOption: """Render Mode @@ -450,6 +487,7 @@ def render_mode(self) -> RenderModeOption: val = self._get_property('Render Mode') val = self.RenderModeOption[val] return val + @render_mode.setter def render_mode(self, value: RenderModeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Render Mode=' + value.value]) @@ -462,6 +500,7 @@ def show_axes(self) -> bool: """ val = self._get_property('Show Axes') return val + @show_axes.setter def show_axes(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Axes=' + value]) @@ -474,6 +513,7 @@ def min(self): """ val = self._get_property('Min') return val + @property def max(self): """Max @@ -482,6 +522,7 @@ def max(self): """ val = self._get_property('Max') return val + @property def number_of_surfaces(self) -> int: """Number of Surfaces @@ -489,6 +530,7 @@ def number_of_surfaces(self) -> int: " """ val = self._get_property('Number of Surfaces') return val + @property def color(self): """Color @@ -497,6 +539,7 @@ def color(self): """ val = self._get_property('Color') return val + @color.setter def color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) @@ -508,6 +551,7 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + @notes.setter def notes(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index 120925bfe23..2e5e52652fd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -28,6 +28,7 @@ def filename(self) -> str: """ val = self._get_property('Filename') return val + @filename.setter def filename(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @@ -40,6 +41,7 @@ def noise_temperature(self) -> float: """ val = self._get_property('Noise Temperature') return val + @noise_temperature.setter def noise_temperature(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @@ -51,6 +53,7 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + @notes.setter def notes(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) @@ -59,6 +62,7 @@ class TypeOption(Enum): BYFILE = "By File" CONSTANT = "Constant Loss" COAXIAL = "Coaxial Cable" + @property def type(self) -> TypeOption: """Type @@ -67,6 +71,7 @@ def type(self) -> TypeOption: val = self._get_property('Type') val = self.TypeOption[val] return val + @type.setter def type(self, value: TypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) @@ -79,6 +84,7 @@ def length(self) -> float: """ val = self._get_property('Length') return val + @length.setter def length(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Length=' + value]) @@ -91,6 +97,7 @@ def loss_per_length(self) -> float: """ val = self._get_property('Loss Per Length') return val + @loss_per_length.setter def loss_per_length(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Loss Per Length=' + value]) @@ -103,6 +110,7 @@ def measurement_length(self) -> float: """ val = self._get_property('Measurement Length') return val + @measurement_length.setter def measurement_length(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Measurement Length=' + value]) @@ -115,6 +123,7 @@ def resistive_loss_constant(self) -> float: """ val = self._get_property('Resistive Loss Constant') return val + @resistive_loss_constant.setter def resistive_loss_constant(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Resistive Loss Constant=' + value]) @@ -127,6 +136,7 @@ def dielectric_loss_constant(self) -> float: """ val = self._get_property('Dielectric Loss Constant') return val + @dielectric_loss_constant.setter def dielectric_loss_constant(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Dielectric Loss Constant=' + value]) @@ -138,3 +148,4 @@ def warnings(self) -> str: " """ val = self._get_property('Warnings') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index b6df5ee6463..b7e120f6f0f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -28,6 +28,7 @@ def filename(self) -> str: """ val = self._get_property('Filename') return val + @filename.setter def filename(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @@ -40,6 +41,7 @@ def noise_temperature(self) -> float: """ val = self._get_property('Noise Temperature') return val + @noise_temperature.setter def noise_temperature(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @@ -51,6 +53,7 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + @notes.setter def notes(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) @@ -58,6 +61,7 @@ def notes(self, value: str): class TypeOption(Enum): BYFILE = "By File" PARAMETRIC = "Parametric" + @property def type(self) -> TypeOption: """Type @@ -66,6 +70,7 @@ def type(self) -> TypeOption: val = self._get_property('Type') val = self.TypeOption[val] return val + @type.setter def type(self, value: TypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) @@ -73,6 +78,7 @@ def type(self, value: TypeOption): class Port1LocationOption(Enum): RADIOSIDE = "Radio Side" ANTENNASIDE = "Antenna Side" + @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location @@ -81,6 +87,7 @@ def port_1_location(self) -> Port1LocationOption: val = self._get_property('Port 1 Location') val = self.Port1LocationOption[val] return val + @port_1_location.setter def port_1_location(self, value: Port1LocationOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Port 1 Location=' + value.value]) @@ -93,6 +100,7 @@ def insertion_loss(self) -> float: """ val = self._get_property('Insertion Loss') return val + @insertion_loss.setter def insertion_loss(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) @@ -105,6 +113,7 @@ def finite_reverse_isolation(self) -> bool: """ val = self._get_property('Finite Reverse Isolation') return val + @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Finite Reverse Isolation=' + value]) @@ -117,6 +126,7 @@ def reverse_isolation(self) -> float: """ val = self._get_property('Reverse Isolation') return val + @reverse_isolation.setter def reverse_isolation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) @@ -129,6 +139,7 @@ def finite_bandwidth(self) -> bool: """ val = self._get_property('Finite Bandwidth') return val + @finite_bandwidth.setter def finite_bandwidth(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) @@ -141,6 +152,7 @@ def out_of_band_attenuation(self) -> float: """ val = self._get_property('Out-of-band Attenuation') return val + @out_of_band_attenuation.setter def out_of_band_attenuation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) @@ -153,6 +165,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property('Lower Stop Band') return val + @lower_stop_band.setter def lower_stop_band(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) @@ -165,6 +178,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property('Lower Cutoff') return val + @lower_cutoff.setter def lower_cutoff(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) @@ -177,6 +191,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property('Higher Cutoff') return val + @higher_cutoff.setter def higher_cutoff(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) @@ -189,6 +204,7 @@ def higher_stop_band(self) -> float: """ val = self._get_property('Higher Stop Band') return val + @higher_stop_band.setter def higher_stop_band(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) @@ -200,3 +216,4 @@ def warnings(self) -> str: " """ val = self._get_property('Warnings') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py index 5236002a345..3dffbf642a8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py @@ -21,6 +21,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @@ -33,6 +34,7 @@ def ports(self): " """ val = self._get_property('Ports') return val + @ports.setter def ports(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Ports=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py index 22f4b618dea..6488b0a848d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py @@ -31,6 +31,7 @@ def transmitter(self) -> EmitNode: " """ val = self._get_property('Transmitter') return val + @transmitter.setter def transmitter(self, value: EmitNode): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Transmitter=' + value]) @@ -41,6 +42,7 @@ def receiver(self) -> EmitNode: " """ val = self._get_property('Receiver') return val + @receiver.setter def receiver(self, value: EmitNode): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Receiver=' + value]) @@ -52,6 +54,7 @@ def data_source(self): " """ val = self._get_property('Data Source') return val + @data_source.setter def data_source(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @@ -64,6 +67,7 @@ def visible(self) -> bool: """ val = self._get_property('Visible') return val + @visible.setter def visible(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @@ -76,6 +80,7 @@ def custom_legend(self) -> bool: """ val = self._get_property('Custom Legend') return val + @custom_legend.setter def custom_legend(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @@ -87,6 +92,7 @@ def name(self) -> str: " """ val = self._get_property('Name') return val + @name.setter def name(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) @@ -98,6 +104,7 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property def style(self) -> StyleOption: """Style @@ -106,6 +113,7 @@ def style(self) -> StyleOption: val = self._get_property('Style') val = self.StyleOption[val] return val + @style.setter def style(self, value: StyleOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @@ -118,6 +126,7 @@ def line_width(self) -> int: """ val = self._get_property('Line Width') return val + @line_width.setter def line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @@ -130,6 +139,7 @@ def line_color(self): """ val = self._get_property('Line Color') return val + @line_color.setter def line_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) @@ -150,6 +160,7 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property def symbol(self) -> SymbolOption: """Symbol @@ -158,6 +169,7 @@ def symbol(self) -> SymbolOption: val = self._get_property('Symbol') val = self.SymbolOption[val] return val + @symbol.setter def symbol(self, value: SymbolOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @@ -170,6 +182,7 @@ def symbol_size(self) -> int: """ val = self._get_property('Symbol Size') return val + @symbol_size.setter def symbol_size(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @@ -182,6 +195,7 @@ def symbol_color(self): """ val = self._get_property('Symbol Color') return val + @symbol_color.setter def symbol_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @@ -194,6 +208,7 @@ def symbol_line_width(self) -> int: """ val = self._get_property('Symbol Line Width') return val + @symbol_line_width.setter def symbol_line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @@ -206,6 +221,7 @@ def symbol_filled(self) -> bool: """ val = self._get_property('Symbol Filled') return val + @symbol_filled.setter def symbol_filled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) @@ -218,6 +234,7 @@ def highlight_regions(self) -> bool: """ val = self._get_property('Highlight Regions') return val + @highlight_regions.setter def highlight_regions(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Highlight Regions=' + value]) @@ -230,6 +247,7 @@ def show_region_labels(self) -> bool: """ val = self._get_property('Show Region Labels') return val + @show_region_labels.setter def show_region_labels(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Region Labels=' + value]) @@ -242,6 +260,7 @@ def font(self): """ val = self._get_property('Font') return val + @font.setter def font(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Font=' + value]) @@ -254,6 +273,7 @@ def color(self): """ val = self._get_property('Color') return val + @color.setter def color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) @@ -266,6 +286,7 @@ def background_color(self): """ val = self._get_property('Background Color') return val + @background_color.setter def background_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) @@ -278,6 +299,7 @@ def border(self) -> bool: """ val = self._get_property('Border') return val + @border.setter def border(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border=' + value]) @@ -290,6 +312,7 @@ def border_width(self) -> int: """ val = self._get_property('Border Width') return val + @border_width.setter def border_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border Width=' + value]) @@ -302,6 +325,7 @@ def border_color(self): """ val = self._get_property('Border Color') return val + @border_color.setter def border_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border Color=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py index da8edfe3900..9c2ffd97b88 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py @@ -14,39 +14,39 @@ def import_touchstone(self, file_name): def add_custom_coupling(self): """Add a new node to define custom coupling between antennas""" - return self._add_child_node("CustomCouplingNode") + return self._add_child_node("Custom Coupling") def add_path_loss_coupling(self): """Add a new node to define path loss coupling between antennas""" - return self._add_child_node("PropagationLossCouplingNode") + return self._add_child_node("Propagation Loss Coupling") def add_two_ray_path_loss_coupling(self): """Add a new node to define two ray ground reflection coupling between antennas""" - return self._add_child_node("TwoRayPathLossCouplingNode") + return self._add_child_node("Two Ray Path Loss Coupling") def add_log_distance_coupling(self): """Add a new node to define coupling between antennas using the Log Distance model""" - return self._add_child_node("LogDistanceCouplingNode") + return self._add_child_node("Log Distance Coupling") def add_hata_coupling(self): """Add a new node to define coupling between antennas using the Hata COST 231 model""" - return self._add_child_node("HataCouplingNode") + return self._add_child_node("Hata Coupling") def add_walfisch_ikegami_coupling(self): """Add a new node to define coupling between antennas using the Walfisch-Ikegami model""" - return self._add_child_node("WalfischCouplingNode") + return self._add_child_node("Walfisch-Ikegami Coupling") def add_erceg_coupling(self): """Add a new node to define coupling between antennas using the Erceg coupling model""" - return self._add_child_node("ErcegCouplingNode") + return self._add_child_node("Erceg Coupling") def add_indoor_propagation_coupling(self): """Add a new node to define coupling between antennas using the ITU Indoor Propagation model""" - return self._add_child_node("IndoorPropagationCouplingNode") + return self._add_child_node("Indoor Propagation Coupling") def add__5g_channel_model_coupling(self): """Add a new node to define coupling between antennas using the 5G channel coupling model""" - return self._add_child_node("FiveGChannelModel") + return self._add_child_node("5G Channel Model Coupling") @property def minimum_allowed_coupling(self) -> float: @@ -56,6 +56,7 @@ def minimum_allowed_coupling(self) -> float: """ val = self._get_property('Minimum Allowed Coupling') return val + @minimum_allowed_coupling.setter def minimum_allowed_coupling(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Minimum Allowed Coupling=' + value]) @@ -68,6 +69,7 @@ def global_default_coupling(self) -> float: """ val = self._get_property('Global Default Coupling') return val + @global_default_coupling.setter def global_default_coupling(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Global Default Coupling=' + value]) @@ -79,3 +81,4 @@ def antenna_tags(self) -> str: " """ val = self._get_property('Antenna Tags') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py index 76bfb8e6f90..224ed6e551e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py @@ -39,6 +39,7 @@ def table_data(self): " Value should be between -1000 and 0." """ return self._get_table_data() + @table_data.setter def table_data(self, value): self._set_table_data(value) @@ -51,6 +52,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @@ -62,6 +64,7 @@ def antenna_a(self) -> EmitNode: " """ val = self._get_property('Antenna A') return val + @antenna_a.setter def antenna_a(self, value: EmitNode): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) @@ -73,6 +76,7 @@ def antenna_b(self) -> EmitNode: " """ val = self._get_property('Antenna B') return val + @antenna_b.setter def antenna_b(self, value: EmitNode): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) @@ -85,6 +89,7 @@ def enable_refinement(self) -> bool: """ val = self._get_property('Enable Refinement') return val + @enable_refinement.setter def enable_refinement(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @@ -97,6 +102,7 @@ def adaptive_sampling(self) -> bool: """ val = self._get_property('Adaptive Sampling') return val + @adaptive_sampling.setter def adaptive_sampling(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @@ -108,6 +114,7 @@ def refinement_domain(self): " """ val = self._get_property('Refinement Domain') return val + @refinement_domain.setter def refinement_domain(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py index 6031f5fec98..e17eb5ee59b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py @@ -33,6 +33,7 @@ def visible(self) -> bool: """ val = self._get_property('Visible') return val + @visible.setter def visible(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @@ -44,6 +45,7 @@ def attached(self): " """ val = self._get_property('Attached') return val + @attached.setter def attached(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Attached=' + value]) @@ -55,6 +57,7 @@ def position(self) -> float: " """ val = self._get_property('Position') return val + @property def position(self) -> float: """Position @@ -62,6 +65,7 @@ def position(self) -> float: " """ val = self._get_property('Position') return val + @property def floating_label(self) -> bool: """Floating Label @@ -70,6 +74,7 @@ def floating_label(self) -> bool: """ val = self._get_property('Floating Label') return val + @floating_label.setter def floating_label(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Floating Label=' + value]) @@ -82,6 +87,7 @@ def position_from_left(self) -> float: """ val = self._get_property('Position from Left') return val + @position_from_left.setter def position_from_left(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position from Left=' + value]) @@ -94,6 +100,7 @@ def position_from_top(self) -> float: """ val = self._get_property('Position from Top') return val + @position_from_top.setter def position_from_top(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position from Top=' + value]) @@ -105,6 +112,7 @@ def text(self) -> str: " """ val = self._get_property('Text') return val + @text.setter def text(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Text=' + value]) @@ -113,6 +121,7 @@ class HorizontalPositionOption(Enum): LEFT = "Left" RIGHT = "Right" CENTER = "Center" + @property def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position @@ -121,6 +130,7 @@ def horizontal_position(self) -> HorizontalPositionOption: val = self._get_property('Horizontal Position') val = self.HorizontalPositionOption[val] return val + @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Horizontal Position=' + value.value]) @@ -129,6 +139,7 @@ class VerticalPositionOption(Enum): TOP = "Top" BOTTOM = "Bottom" CENTER = "Center" + @property def vertical_position(self) -> VerticalPositionOption: """Vertical Position @@ -137,6 +148,7 @@ def vertical_position(self) -> VerticalPositionOption: val = self._get_property('Vertical Position') val = self.VerticalPositionOption[val] return val + @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Position=' + value.value]) @@ -145,6 +157,7 @@ class TextAlignmentOption(Enum): LEFT = "Left" RIGHT = "Right" CENTER = "Center" + @property def text_alignment(self) -> TextAlignmentOption: """Text Alignment @@ -153,6 +166,7 @@ def text_alignment(self) -> TextAlignmentOption: val = self._get_property('Text Alignment') val = self.TextAlignmentOption[val] return val + @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Text Alignment=' + value.value]) @@ -165,6 +179,7 @@ def font(self): """ val = self._get_property('Font') return val + @font.setter def font(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Font=' + value]) @@ -177,6 +192,7 @@ def color(self): """ val = self._get_property('Color') return val + @color.setter def color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) @@ -189,6 +205,7 @@ def background_color(self): """ val = self._get_property('Background Color') return val + @background_color.setter def background_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) @@ -201,6 +218,7 @@ def border(self) -> bool: """ val = self._get_property('Border') return val + @border.setter def border(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border=' + value]) @@ -213,6 +231,7 @@ def border_width(self) -> int: """ val = self._get_property('Border Width') return val + @border_width.setter def border_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border Width=' + value]) @@ -225,6 +244,7 @@ def border_color(self): """ val = self._get_property('Border Color') return val + @border_color.setter def border_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border Color=' + value]) @@ -246,6 +266,7 @@ class SymbolOption(Enum): STAR2 = "Star2" HEXAGON = "Hexagon" ARROW = "Arrow" + @property def symbol(self) -> SymbolOption: """Symbol @@ -254,6 +275,7 @@ def symbol(self) -> SymbolOption: val = self._get_property('Symbol') val = self.SymbolOption[val] return val + @symbol.setter def symbol(self, value: SymbolOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @@ -266,6 +288,7 @@ def arrow_direction(self) -> int: """ val = self._get_property('Arrow Direction') return val + @arrow_direction.setter def arrow_direction(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Arrow Direction=' + value]) @@ -278,6 +301,7 @@ def symbol_size(self) -> int: """ val = self._get_property('Symbol Size') return val + @symbol_size.setter def symbol_size(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @@ -290,6 +314,7 @@ def symbol_color(self): """ val = self._get_property('Symbol Color') return val + @symbol_color.setter def symbol_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @@ -302,6 +327,7 @@ def line_width(self) -> int: """ val = self._get_property('Line Width') return val + @line_width.setter def line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @@ -314,6 +340,7 @@ def filled(self) -> bool: """ val = self._get_property('Filled') return val + @filled.setter def filled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py index ac00994615d..55d7097c678 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py @@ -10,7 +10,7 @@ def __eq__(self, other): def add_group(self): """Add a new scene group""" - return self._add_child_node("sceneGroupNode") + return self._add_child_node("Group") @property def notes(self) -> str: @@ -19,6 +19,7 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + @notes.setter def notes(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) @@ -27,6 +28,7 @@ class GroundPlaneNormalOption(Enum): XAXIS = "X Axis" YAXIS = "Y Axis" ZAXIS = "Z Axis" + @property def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal @@ -35,6 +37,7 @@ def ground_plane_normal(self) -> GroundPlaneNormalOption: val = self._get_property('Ground Plane Normal') val = self.GroundPlaneNormalOption[val] return val + @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Ground Plane Normal=' + value.value]) @@ -46,6 +49,7 @@ def gp_position_along_normal(self) -> float: " """ val = self._get_property('GP Position Along Normal') return val + @gp_position_along_normal.setter def gp_position_along_normal(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['GP Position Along Normal=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py index 8961a60c9e1..448a5bcf97d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py @@ -33,6 +33,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @@ -44,6 +45,7 @@ def base_antenna(self) -> EmitNode: " """ val = self._get_property('Base Antenna') return val + @base_antenna.setter def base_antenna(self, value: EmitNode): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Base Antenna=' + value]) @@ -55,6 +57,7 @@ def mobile_antenna(self) -> EmitNode: " """ val = self._get_property('Mobile Antenna') return val + @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mobile Antenna=' + value]) @@ -67,6 +70,7 @@ def enable_refinement(self) -> bool: """ val = self._get_property('Enable Refinement') return val + @enable_refinement.setter def enable_refinement(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @@ -79,6 +83,7 @@ def adaptive_sampling(self) -> bool: """ val = self._get_property('Adaptive Sampling') return val + @adaptive_sampling.setter def adaptive_sampling(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @@ -90,6 +95,7 @@ def refinement_domain(self): " """ val = self._get_property('Refinement Domain') return val + @refinement_domain.setter def refinement_domain(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) @@ -98,6 +104,7 @@ class TerrainCategoryOption(Enum): TYPEA = "Type A" TYPEB = "Type B" TYPEC = "Type C" + @property def terrain_category(self) -> TerrainCategoryOption: """Terrain Category @@ -106,6 +113,7 @@ def terrain_category(self) -> TerrainCategoryOption: val = self._get_property('Terrain Category') val = self.TerrainCategoryOption[val] return val + @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Terrain Category=' + value.value]) @@ -118,6 +126,7 @@ def custom_fading_margin(self) -> float: """ val = self._get_property('Custom Fading Margin') return val + @custom_fading_margin.setter def custom_fading_margin(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) @@ -130,6 +139,7 @@ def polarization_mismatch(self) -> float: """ val = self._get_property('Polarization Mismatch') return val + @polarization_mismatch.setter def polarization_mismatch(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) @@ -142,6 +152,7 @@ def pointing_error_loss(self) -> float: """ val = self._get_property('Pointing Error Loss') return val + @pointing_error_loss.setter def pointing_error_loss(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) @@ -151,6 +162,7 @@ class FadingTypeOption(Enum): FASTFADINGONLY = "Fast Fading Only" SHADOWINGONLY = "Shadowing Only" SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + @property def fading_type(self) -> FadingTypeOption: """Fading Type @@ -159,6 +171,7 @@ def fading_type(self) -> FadingTypeOption: val = self._get_property('Fading Type') val = self.FadingTypeOption[val] return val + @fading_type.setter def fading_type(self, value: FadingTypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) @@ -171,6 +184,7 @@ def fading_availability(self) -> float: """ val = self._get_property('Fading Availability') return val + @fading_availability.setter def fading_availability(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) @@ -183,6 +197,7 @@ def std_deviation(self) -> float: """ val = self._get_property('Std Deviation') return val + @std_deviation.setter def std_deviation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) @@ -195,6 +210,7 @@ def include_rain_attenuation(self) -> bool: """ val = self._get_property('Include Rain Attenuation') return val + @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) @@ -207,6 +223,7 @@ def rain_availability(self) -> float: """ val = self._get_property('Rain Availability') return val + @rain_availability.setter def rain_availability(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) @@ -219,6 +236,7 @@ def rain_rate(self) -> float: """ val = self._get_property('Rain Rate') return val + @rain_rate.setter def rain_rate(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) @@ -231,6 +249,7 @@ def polarization_tilt_angle(self) -> float: """ val = self._get_property('Polarization Tilt Angle') return val + @polarization_tilt_angle.setter def polarization_tilt_angle(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) @@ -243,6 +262,7 @@ def include_atmospheric_absorption(self) -> bool: """ val = self._get_property('Include Atmospheric Absorption') return val + @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) @@ -255,6 +275,7 @@ def temperature(self) -> float: """ val = self._get_property('Temperature') return val + @temperature.setter def temperature(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) @@ -267,6 +288,7 @@ def total_air_pressure(self) -> float: """ val = self._get_property('Total Air Pressure') return val + @total_air_pressure.setter def total_air_pressure(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) @@ -279,6 +301,7 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property('Water Vapor Concentration') return val + @water_vapor_concentration.setter def water_vapor_concentration(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index 2d96a635a6f..2a4591df26c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -28,6 +28,7 @@ def filename(self) -> str: """ val = self._get_property('Filename') return val + @filename.setter def filename(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @@ -40,6 +41,7 @@ def noise_temperature(self) -> float: """ val = self._get_property('Noise Temperature') return val + @noise_temperature.setter def noise_temperature(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @@ -51,6 +53,7 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + @notes.setter def notes(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) @@ -63,6 +66,7 @@ class TypeOption(Enum): BANDSTOP = "Band Stop" TUNABLEBANDPASS = "Tunable Bandpass" TUNABLEBANDSTOP = "Tunable Bandstop" + @property def type(self) -> TypeOption: """Type @@ -71,6 +75,7 @@ def type(self) -> TypeOption: val = self._get_property('Type') val = self.TypeOption[val] return val + @type.setter def type(self, value: TypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) @@ -83,6 +88,7 @@ def insertion_loss(self) -> float: """ val = self._get_property('Insertion Loss') return val + @insertion_loss.setter def insertion_loss(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) @@ -95,6 +101,7 @@ def stop_band_attenuation(self) -> float: """ val = self._get_property('Stop band Attenuation') return val + @stop_band_attenuation.setter def stop_band_attenuation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Stop band Attenuation=' + value]) @@ -107,6 +114,7 @@ def max_pass_band(self) -> float: """ val = self._get_property('Max Pass Band') return val + @max_pass_band.setter def max_pass_band(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Pass Band=' + value]) @@ -119,6 +127,7 @@ def min_stop_band(self) -> float: """ val = self._get_property('Min Stop Band') return val + @min_stop_band.setter def min_stop_band(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Min Stop Band=' + value]) @@ -131,6 +140,7 @@ def max_stop_band(self) -> float: """ val = self._get_property('Max Stop Band') return val + @max_stop_band.setter def max_stop_band(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Stop Band=' + value]) @@ -143,6 +153,7 @@ def min_pass_band(self) -> float: """ val = self._get_property('Min Pass Band') return val + @min_pass_band.setter def min_pass_band(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Min Pass Band=' + value]) @@ -155,6 +166,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property('Lower Stop Band') return val + @lower_stop_band.setter def lower_stop_band(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) @@ -167,6 +179,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property('Lower Cutoff') return val + @lower_cutoff.setter def lower_cutoff(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) @@ -179,6 +192,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property('Higher Cutoff') return val + @higher_cutoff.setter def higher_cutoff(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) @@ -191,6 +205,7 @@ def higher_stop_band(self) -> float: """ val = self._get_property('Higher Stop Band') return val + @higher_stop_band.setter def higher_stop_band(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) @@ -203,6 +218,7 @@ def lower_cutoff_(self) -> float: """ val = self._get_property('Lower Cutoff ') return val + @lower_cutoff_.setter def lower_cutoff_(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff =' + value]) @@ -215,6 +231,7 @@ def lower_stop_band_(self) -> float: """ val = self._get_property('Lower Stop Band ') return val + @lower_stop_band_.setter def lower_stop_band_(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band =' + value]) @@ -227,6 +244,7 @@ def higher_stop_band_(self) -> float: """ val = self._get_property('Higher Stop Band ') return val + @higher_stop_band_.setter def higher_stop_band_(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band =' + value]) @@ -239,6 +257,7 @@ def higher_cutoff_(self) -> float: """ val = self._get_property('Higher Cutoff ') return val + @higher_cutoff_.setter def higher_cutoff_(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff =' + value]) @@ -251,6 +270,7 @@ def lowest_tuned_frequency_(self) -> float: """ val = self._get_property('Lowest Tuned Frequency ') return val + @lowest_tuned_frequency_.setter def lowest_tuned_frequency_(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lowest Tuned Frequency =' + value]) @@ -263,6 +283,7 @@ def highest_tuned_frequency_(self) -> float: """ val = self._get_property('Highest Tuned Frequency ') return val + @highest_tuned_frequency_.setter def highest_tuned_frequency_(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Highest Tuned Frequency =' + value]) @@ -275,6 +296,7 @@ def percent_bandwidth(self) -> float: """ val = self._get_property('Percent Bandwidth') return val + @percent_bandwidth.setter def percent_bandwidth(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Percent Bandwidth=' + value]) @@ -287,6 +309,7 @@ def shape_factor(self) -> float: """ val = self._get_property('Shape Factor') return val + @shape_factor.setter def shape_factor(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Shape Factor=' + value]) @@ -298,3 +321,4 @@ def warnings(self) -> str: " """ val = self._get_property('Warnings') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py index 4d7118a87b5..67d6dcb1f32 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py @@ -33,6 +33,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @@ -44,6 +45,7 @@ def base_antenna(self) -> EmitNode: " """ val = self._get_property('Base Antenna') return val + @base_antenna.setter def base_antenna(self, value: EmitNode): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Base Antenna=' + value]) @@ -55,6 +57,7 @@ def mobile_antenna(self) -> EmitNode: " """ val = self._get_property('Mobile Antenna') return val + @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mobile Antenna=' + value]) @@ -67,6 +70,7 @@ def enable_refinement(self) -> bool: """ val = self._get_property('Enable Refinement') return val + @enable_refinement.setter def enable_refinement(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @@ -79,6 +83,7 @@ def adaptive_sampling(self) -> bool: """ val = self._get_property('Adaptive Sampling') return val + @adaptive_sampling.setter def adaptive_sampling(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @@ -90,6 +95,7 @@ def refinement_domain(self): " """ val = self._get_property('Refinement Domain') return val + @refinement_domain.setter def refinement_domain(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) @@ -98,6 +104,7 @@ class EnvironmentOption(Enum): URBANMICROCELL = "Urban Microcell" URBANMACROCELL = "Urban Macrocell" RURALMACROCELL = "Rural Macrocell" + @property def environment(self) -> EnvironmentOption: """Environment @@ -106,6 +113,7 @@ def environment(self) -> EnvironmentOption: val = self._get_property('Environment') val = self.EnvironmentOption[val] return val + @environment.setter def environment(self, value: EnvironmentOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Environment=' + value.value]) @@ -118,6 +126,7 @@ def los(self) -> bool: """ val = self._get_property('LOS') return val + @los.setter def los(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['LOS=' + value]) @@ -130,6 +139,7 @@ def include_bpl(self) -> bool: """ val = self._get_property('Include BPL') return val + @include_bpl.setter def include_bpl(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include BPL=' + value]) @@ -137,6 +147,7 @@ def include_bpl(self, value: bool): class NYUBPLModelOption(Enum): LOWLOSSMODEL = "Low-loss model" HIGHLOSSMODEL = "High-loss model" + @property def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model @@ -145,6 +156,7 @@ def nyu_bpl_model(self) -> NYUBPLModelOption: val = self._get_property('NYU BPL Model') val = self.NYUBPLModelOption[val] return val + @nyu_bpl_model.setter def nyu_bpl_model(self, value: NYUBPLModelOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['NYU BPL Model=' + value.value]) @@ -157,6 +169,7 @@ def custom_fading_margin(self) -> float: """ val = self._get_property('Custom Fading Margin') return val + @custom_fading_margin.setter def custom_fading_margin(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) @@ -169,6 +182,7 @@ def polarization_mismatch(self) -> float: """ val = self._get_property('Polarization Mismatch') return val + @polarization_mismatch.setter def polarization_mismatch(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) @@ -181,6 +195,7 @@ def pointing_error_loss(self) -> float: """ val = self._get_property('Pointing Error Loss') return val + @pointing_error_loss.setter def pointing_error_loss(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) @@ -190,6 +205,7 @@ class FadingTypeOption(Enum): FASTFADINGONLY = "Fast Fading Only" SHADOWINGONLY = "Shadowing Only" SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + @property def fading_type(self) -> FadingTypeOption: """Fading Type @@ -198,6 +214,7 @@ def fading_type(self) -> FadingTypeOption: val = self._get_property('Fading Type') val = self.FadingTypeOption[val] return val + @fading_type.setter def fading_type(self, value: FadingTypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) @@ -210,6 +227,7 @@ def fading_availability(self) -> float: """ val = self._get_property('Fading Availability') return val + @fading_availability.setter def fading_availability(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) @@ -222,6 +240,7 @@ def std_deviation(self) -> float: """ val = self._get_property('Std Deviation') return val + @std_deviation.setter def std_deviation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) @@ -234,6 +253,7 @@ def include_rain_attenuation(self) -> bool: """ val = self._get_property('Include Rain Attenuation') return val + @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) @@ -246,6 +266,7 @@ def rain_availability(self) -> float: """ val = self._get_property('Rain Availability') return val + @rain_availability.setter def rain_availability(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) @@ -258,6 +279,7 @@ def rain_rate(self) -> float: """ val = self._get_property('Rain Rate') return val + @rain_rate.setter def rain_rate(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) @@ -270,6 +292,7 @@ def polarization_tilt_angle(self) -> float: """ val = self._get_property('Polarization Tilt Angle') return val + @polarization_tilt_angle.setter def polarization_tilt_angle(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) @@ -282,6 +305,7 @@ def include_atmospheric_absorption(self) -> bool: """ val = self._get_property('Include Atmospheric Absorption') return val + @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) @@ -294,6 +318,7 @@ def temperature(self) -> float: """ val = self._get_property('Temperature') return val + @temperature.setter def temperature(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) @@ -306,6 +331,7 @@ def total_air_pressure(self) -> float: """ val = self._get_property('Total Air Pressure') return val + @total_air_pressure.setter def total_air_pressure(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) @@ -318,6 +344,7 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property('Water Vapor Concentration') return val + @water_vapor_concentration.setter def water_vapor_concentration(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py index 792945f98d7..309325da911 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py @@ -33,6 +33,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @@ -44,6 +45,7 @@ def base_antenna(self) -> EmitNode: " """ val = self._get_property('Base Antenna') return val + @base_antenna.setter def base_antenna(self, value: EmitNode): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Base Antenna=' + value]) @@ -55,6 +57,7 @@ def mobile_antenna(self) -> EmitNode: " """ val = self._get_property('Mobile Antenna') return val + @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mobile Antenna=' + value]) @@ -67,6 +70,7 @@ def enable_refinement(self) -> bool: """ val = self._get_property('Enable Refinement') return val + @enable_refinement.setter def enable_refinement(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @@ -79,6 +83,7 @@ def adaptive_sampling(self) -> bool: """ val = self._get_property('Adaptive Sampling') return val + @adaptive_sampling.setter def adaptive_sampling(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @@ -90,6 +95,7 @@ def refinement_domain(self): " """ val = self._get_property('Refinement Domain') return val + @refinement_domain.setter def refinement_domain(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) @@ -99,6 +105,7 @@ class EnvironmentOption(Enum): SMALLMEDCITY = "Small/Medium City" SUBURBAN = "Suburban" RURAL = "Rural" + @property def environment(self) -> EnvironmentOption: """Environment @@ -107,6 +114,7 @@ def environment(self) -> EnvironmentOption: val = self._get_property('Environment') val = self.EnvironmentOption[val] return val + @environment.setter def environment(self, value: EnvironmentOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Environment=' + value.value]) @@ -119,6 +127,7 @@ def custom_fading_margin(self) -> float: """ val = self._get_property('Custom Fading Margin') return val + @custom_fading_margin.setter def custom_fading_margin(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) @@ -131,6 +140,7 @@ def polarization_mismatch(self) -> float: """ val = self._get_property('Polarization Mismatch') return val + @polarization_mismatch.setter def polarization_mismatch(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) @@ -143,6 +153,7 @@ def pointing_error_loss(self) -> float: """ val = self._get_property('Pointing Error Loss') return val + @pointing_error_loss.setter def pointing_error_loss(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) @@ -152,6 +163,7 @@ class FadingTypeOption(Enum): FASTFADINGONLY = "Fast Fading Only" SHADOWINGONLY = "Shadowing Only" SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + @property def fading_type(self) -> FadingTypeOption: """Fading Type @@ -160,6 +172,7 @@ def fading_type(self) -> FadingTypeOption: val = self._get_property('Fading Type') val = self.FadingTypeOption[val] return val + @fading_type.setter def fading_type(self, value: FadingTypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) @@ -172,6 +185,7 @@ def fading_availability(self) -> float: """ val = self._get_property('Fading Availability') return val + @fading_availability.setter def fading_availability(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) @@ -184,6 +198,7 @@ def std_deviation(self) -> float: """ val = self._get_property('Std Deviation') return val + @std_deviation.setter def std_deviation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) @@ -196,6 +211,7 @@ def include_rain_attenuation(self) -> bool: """ val = self._get_property('Include Rain Attenuation') return val + @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) @@ -208,6 +224,7 @@ def rain_availability(self) -> float: """ val = self._get_property('Rain Availability') return val + @rain_availability.setter def rain_availability(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) @@ -220,6 +237,7 @@ def rain_rate(self) -> float: """ val = self._get_property('Rain Rate') return val + @rain_rate.setter def rain_rate(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) @@ -232,6 +250,7 @@ def polarization_tilt_angle(self) -> float: """ val = self._get_property('Polarization Tilt Angle') return val + @polarization_tilt_angle.setter def polarization_tilt_angle(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) @@ -244,6 +263,7 @@ def include_atmospheric_absorption(self) -> bool: """ val = self._get_property('Include Atmospheric Absorption') return val + @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) @@ -256,6 +276,7 @@ def temperature(self) -> float: """ val = self._get_property('Temperature') return val + @temperature.setter def temperature(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) @@ -268,6 +289,7 @@ def total_air_pressure(self) -> float: """ val = self._get_property('Total Air Pressure') return val + @total_air_pressure.setter def total_air_pressure(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) @@ -280,6 +302,7 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property('Water Vapor Concentration') return val + @water_vapor_concentration.setter def water_vapor_concentration(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py index 051917b919d..d1a343ce220 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py @@ -37,6 +37,7 @@ def table_data(self): " Value should be between 0 and 1000." """ return self._get_table_data() + @table_data.setter def table_data(self, value): self._set_table_data(value) @@ -49,6 +50,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @@ -60,6 +62,7 @@ def antenna_a(self) -> EmitNode: " """ val = self._get_property('Antenna A') return val + @antenna_a.setter def antenna_a(self, value: EmitNode): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) @@ -71,6 +74,7 @@ def antenna_b(self) -> EmitNode: " """ val = self._get_property('Antenna B') return val + @antenna_b.setter def antenna_b(self, value: EmitNode): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) @@ -83,6 +87,7 @@ def enable_refinement(self) -> bool: """ val = self._get_property('Enable Refinement') return val + @enable_refinement.setter def enable_refinement(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @@ -95,6 +100,7 @@ def adaptive_sampling(self) -> bool: """ val = self._get_property('Adaptive Sampling') return val + @adaptive_sampling.setter def adaptive_sampling(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @@ -106,6 +112,7 @@ def refinement_domain(self): " """ val = self._get_property('Refinement Domain') return val + @refinement_domain.setter def refinement_domain(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) @@ -116,6 +123,7 @@ class BuildingTypeOption(Enum): OFFICEBUILDING = "Office Building" COMMERCIALBUILDING = "Commercial Building" CUSTOMBUILDING = "Custom Building" + @property def building_type(self) -> BuildingTypeOption: """Building Type @@ -124,6 +132,7 @@ def building_type(self) -> BuildingTypeOption: val = self._get_property('Building Type') val = self.BuildingTypeOption[val] return val + @building_type.setter def building_type(self, value: BuildingTypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Building Type=' + value.value]) @@ -136,6 +145,7 @@ def number_of_floors(self) -> int: """ val = self._get_property('Number of Floors') return val + @number_of_floors.setter def number_of_floors(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Number of Floors=' + value]) @@ -148,6 +158,7 @@ def custom_fading_margin(self) -> float: """ val = self._get_property('Custom Fading Margin') return val + @custom_fading_margin.setter def custom_fading_margin(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) @@ -160,6 +171,7 @@ def polarization_mismatch(self) -> float: """ val = self._get_property('Polarization Mismatch') return val + @polarization_mismatch.setter def polarization_mismatch(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) @@ -172,6 +184,7 @@ def pointing_error_loss(self) -> float: """ val = self._get_property('Pointing Error Loss') return val + @pointing_error_loss.setter def pointing_error_loss(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) @@ -181,6 +194,7 @@ class FadingTypeOption(Enum): FASTFADINGONLY = "Fast Fading Only" SHADOWINGONLY = "Shadowing Only" SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + @property def fading_type(self) -> FadingTypeOption: """Fading Type @@ -189,6 +203,7 @@ def fading_type(self) -> FadingTypeOption: val = self._get_property('Fading Type') val = self.FadingTypeOption[val] return val + @fading_type.setter def fading_type(self, value: FadingTypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) @@ -201,6 +216,7 @@ def fading_availability(self) -> float: """ val = self._get_property('Fading Availability') return val + @fading_availability.setter def fading_availability(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) @@ -213,6 +229,7 @@ def std_deviation(self) -> float: """ val = self._get_property('Std Deviation') return val + @std_deviation.setter def std_deviation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) @@ -225,6 +242,7 @@ def include_rain_attenuation(self) -> bool: """ val = self._get_property('Include Rain Attenuation') return val + @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) @@ -237,6 +255,7 @@ def rain_availability(self) -> float: """ val = self._get_property('Rain Availability') return val + @rain_availability.setter def rain_availability(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) @@ -249,6 +268,7 @@ def rain_rate(self) -> float: """ val = self._get_property('Rain Rate') return val + @rain_rate.setter def rain_rate(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) @@ -261,6 +281,7 @@ def polarization_tilt_angle(self) -> float: """ val = self._get_property('Polarization Tilt Angle') return val + @polarization_tilt_angle.setter def polarization_tilt_angle(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) @@ -273,6 +294,7 @@ def include_atmospheric_absorption(self) -> bool: """ val = self._get_property('Include Atmospheric Absorption') return val + @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) @@ -285,6 +307,7 @@ def temperature(self) -> float: """ val = self._get_property('Temperature') return val + @temperature.setter def temperature(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) @@ -297,6 +320,7 @@ def total_air_pressure(self) -> float: """ val = self._get_property('Total Air Pressure') return val + @total_air_pressure.setter def total_air_pressure(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) @@ -309,6 +333,7 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property('Water Vapor Concentration') return val + @water_vapor_concentration.setter def water_vapor_concentration(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index 38c226a180c..33978e5e988 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -28,6 +28,7 @@ def filename(self) -> str: """ val = self._get_property('Filename') return val + @filename.setter def filename(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @@ -40,6 +41,7 @@ def noise_temperature(self) -> float: """ val = self._get_property('Noise Temperature') return val + @noise_temperature.setter def noise_temperature(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @@ -51,6 +53,7 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + @notes.setter def notes(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) @@ -58,6 +61,7 @@ def notes(self, value: str): class TypeOption(Enum): BYFILE = "By File" PARAMETRIC = "Parametric" + @property def type(self) -> TypeOption: """Type @@ -66,6 +70,7 @@ def type(self) -> TypeOption: val = self._get_property('Type') val = self.TypeOption[val] return val + @type.setter def type(self, value: TypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) @@ -73,6 +78,7 @@ def type(self, value: TypeOption): class Port1LocationOption(Enum): RADIOSIDE = "Radio Side" ANTENNASIDE = "Antenna Side" + @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location @@ -81,6 +87,7 @@ def port_1_location(self) -> Port1LocationOption: val = self._get_property('Port 1 Location') val = self.Port1LocationOption[val] return val + @port_1_location.setter def port_1_location(self, value: Port1LocationOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Port 1 Location=' + value.value]) @@ -93,6 +100,7 @@ def insertion_loss(self) -> float: """ val = self._get_property('Insertion Loss') return val + @insertion_loss.setter def insertion_loss(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) @@ -105,6 +113,7 @@ def finite_reverse_isolation(self) -> bool: """ val = self._get_property('Finite Reverse Isolation') return val + @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Finite Reverse Isolation=' + value]) @@ -117,6 +126,7 @@ def reverse_isolation(self) -> float: """ val = self._get_property('Reverse Isolation') return val + @reverse_isolation.setter def reverse_isolation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) @@ -129,6 +139,7 @@ def finite_bandwidth(self) -> bool: """ val = self._get_property('Finite Bandwidth') return val + @finite_bandwidth.setter def finite_bandwidth(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) @@ -141,6 +152,7 @@ def out_of_band_attenuation(self) -> float: """ val = self._get_property('Out-of-band Attenuation') return val + @out_of_band_attenuation.setter def out_of_band_attenuation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) @@ -153,6 +165,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property('Lower Stop Band') return val + @lower_stop_band.setter def lower_stop_band(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) @@ -165,6 +178,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property('Lower Cutoff') return val + @lower_cutoff.setter def lower_cutoff(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) @@ -177,6 +191,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property('Higher Cutoff') return val + @higher_cutoff.setter def higher_cutoff(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) @@ -189,6 +204,7 @@ def higher_stop_band(self) -> float: """ val = self._get_property('Higher Stop Band') return val + @higher_stop_band.setter def higher_stop_band(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) @@ -200,3 +216,4 @@ def warnings(self) -> str: " """ val = self._get_property('Warnings') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py index cb15e0d2212..2e89481c1fa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py @@ -33,6 +33,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @@ -44,6 +45,7 @@ def antenna_a(self) -> EmitNode: " """ val = self._get_property('Antenna A') return val + @antenna_a.setter def antenna_a(self, value: EmitNode): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) @@ -55,6 +57,7 @@ def antenna_b(self) -> EmitNode: " """ val = self._get_property('Antenna B') return val + @antenna_b.setter def antenna_b(self, value: EmitNode): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) @@ -67,6 +70,7 @@ def enable_refinement(self) -> bool: """ val = self._get_property('Enable Refinement') return val + @enable_refinement.setter def enable_refinement(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @@ -79,6 +83,7 @@ def adaptive_sampling(self) -> bool: """ val = self._get_property('Adaptive Sampling') return val + @adaptive_sampling.setter def adaptive_sampling(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @@ -90,6 +95,7 @@ def refinement_domain(self): " """ val = self._get_property('Refinement Domain') return val + @refinement_domain.setter def refinement_domain(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) @@ -102,6 +108,7 @@ class EnvironmentOption(Enum): BUILDINGOBSTRUCTED = "Building - Obstructed" FACTORYOBSTRUCTED = "Factory - Obstructed" CUSTOMEXPONENT = "Custom" + @property def environment(self) -> EnvironmentOption: """Environment @@ -110,6 +117,7 @@ def environment(self) -> EnvironmentOption: val = self._get_property('Environment') val = self.EnvironmentOption[val] return val + @environment.setter def environment(self, value: EnvironmentOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Environment=' + value.value]) @@ -122,6 +130,7 @@ def path_loss_exponent(self) -> float: """ val = self._get_property('Path Loss Exponent') return val + @path_loss_exponent.setter def path_loss_exponent(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Path Loss Exponent=' + value]) @@ -134,6 +143,7 @@ def custom_fading_margin(self) -> float: """ val = self._get_property('Custom Fading Margin') return val + @custom_fading_margin.setter def custom_fading_margin(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) @@ -146,6 +156,7 @@ def polarization_mismatch(self) -> float: """ val = self._get_property('Polarization Mismatch') return val + @polarization_mismatch.setter def polarization_mismatch(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) @@ -158,6 +169,7 @@ def pointing_error_loss(self) -> float: """ val = self._get_property('Pointing Error Loss') return val + @pointing_error_loss.setter def pointing_error_loss(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) @@ -167,6 +179,7 @@ class FadingTypeOption(Enum): FASTFADINGONLY = "Fast Fading Only" SHADOWINGONLY = "Shadowing Only" SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + @property def fading_type(self) -> FadingTypeOption: """Fading Type @@ -175,6 +188,7 @@ def fading_type(self) -> FadingTypeOption: val = self._get_property('Fading Type') val = self.FadingTypeOption[val] return val + @fading_type.setter def fading_type(self, value: FadingTypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) @@ -187,6 +201,7 @@ def fading_availability(self) -> float: """ val = self._get_property('Fading Availability') return val + @fading_availability.setter def fading_availability(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) @@ -199,6 +214,7 @@ def std_deviation(self) -> float: """ val = self._get_property('Std Deviation') return val + @std_deviation.setter def std_deviation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) @@ -211,6 +227,7 @@ def include_rain_attenuation(self) -> bool: """ val = self._get_property('Include Rain Attenuation') return val + @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) @@ -223,6 +240,7 @@ def rain_availability(self) -> float: """ val = self._get_property('Rain Availability') return val + @rain_availability.setter def rain_availability(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) @@ -235,6 +253,7 @@ def rain_rate(self) -> float: """ val = self._get_property('Rain Rate') return val + @rain_rate.setter def rain_rate(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) @@ -247,6 +266,7 @@ def polarization_tilt_angle(self) -> float: """ val = self._get_property('Polarization Tilt Angle') return val + @polarization_tilt_angle.setter def polarization_tilt_angle(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) @@ -259,6 +279,7 @@ def include_atmospheric_absorption(self) -> bool: """ val = self._get_property('Include Atmospheric Absorption') return val + @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) @@ -271,6 +292,7 @@ def temperature(self) -> float: """ val = self._get_property('Temperature') return val + @temperature.setter def temperature(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) @@ -283,6 +305,7 @@ def total_air_pressure(self) -> float: """ val = self._get_property('Total Air Pressure') return val + @total_air_pressure.setter def total_air_pressure(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) @@ -295,6 +318,7 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property('Water Vapor Concentration') return val + @water_vapor_concentration.setter def water_vapor_concentration(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py index 0b9c0daf5d4..ba4f8d1d954 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py @@ -27,6 +27,7 @@ def delete(self): class PowerDirectionOption(Enum): INCOMMONPORTOUTCOMMONPORT = "Into Common Port|Out of Common Port" + @property def power_direction(self) -> PowerDirectionOption: """Power Direction @@ -34,6 +35,7 @@ def power_direction(self) -> PowerDirectionOption: val = self._get_property('Power Direction') val = self.PowerDirectionOption[val] return val + @power_direction.setter def power_direction(self, value: PowerDirectionOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Power Direction=' + value.value]) @@ -45,6 +47,7 @@ def data_source(self): " """ val = self._get_property('Data Source') return val + @data_source.setter def data_source(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @@ -57,6 +60,7 @@ def visible(self) -> bool: """ val = self._get_property('Visible') return val + @visible.setter def visible(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @@ -69,6 +73,7 @@ def custom_legend(self) -> bool: """ val = self._get_property('Custom Legend') return val + @custom_legend.setter def custom_legend(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @@ -80,6 +85,7 @@ def name(self) -> str: " """ val = self._get_property('Name') return val + @name.setter def name(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) @@ -91,6 +97,7 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property def style(self) -> StyleOption: """Style @@ -99,6 +106,7 @@ def style(self) -> StyleOption: val = self._get_property('Style') val = self.StyleOption[val] return val + @style.setter def style(self, value: StyleOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @@ -111,6 +119,7 @@ def line_width(self) -> int: """ val = self._get_property('Line Width') return val + @line_width.setter def line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @@ -123,6 +132,7 @@ def line_color(self): """ val = self._get_property('Line Color') return val + @line_color.setter def line_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) @@ -143,6 +153,7 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property def symbol(self) -> SymbolOption: """Symbol @@ -151,6 +162,7 @@ def symbol(self) -> SymbolOption: val = self._get_property('Symbol') val = self.SymbolOption[val] return val + @symbol.setter def symbol(self, value: SymbolOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @@ -163,6 +175,7 @@ def symbol_size(self) -> int: """ val = self._get_property('Symbol Size') return val + @symbol_size.setter def symbol_size(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @@ -175,6 +188,7 @@ def symbol_color(self): """ val = self._get_property('Symbol Color') return val + @symbol_color.setter def symbol_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @@ -187,6 +201,7 @@ def symbol_line_width(self) -> int: """ val = self._get_property('Symbol Line Width') return val + @symbol_line_width.setter def symbol_line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @@ -199,6 +214,7 @@ def symbol_filled(self) -> bool: """ val = self._get_property('Symbol Filled') return val + @symbol_filled.setter def symbol_filled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index b6245833187..87615b09809 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -10,7 +10,7 @@ def __eq__(self, other): def add_multiplexer_pass_band(self): """Add a New Multiplexer Band to this Multiplexer""" - return self._add_child_node("MultiplexerBand") + return self._add_child_node("Multiplexer Pass Band") def rename(self, new_name): """Rename this node""" @@ -32,6 +32,7 @@ def filename(self) -> str: """ val = self._get_property('Filename') return val + @filename.setter def filename(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @@ -44,6 +45,7 @@ def noise_temperature(self) -> float: """ val = self._get_property('Noise Temperature') return val + @noise_temperature.setter def noise_temperature(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @@ -55,6 +57,7 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + @notes.setter def notes(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) @@ -62,6 +65,7 @@ def notes(self, value: str): class TypeOption(Enum): PARAMETRIC = "By Pass Band" BYFILE = "By File" + @property def type(self) -> TypeOption: """Type @@ -70,6 +74,7 @@ def type(self) -> TypeOption: val = self._get_property('Type') val = self.TypeOption[val] return val + @type.setter def type(self, value: TypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) @@ -77,6 +82,7 @@ def type(self, value: TypeOption): class Port1LocationOption(Enum): RADIOSIDE = "Radio Side" ANTENNASIDE = "Antenna Side" + @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location @@ -85,6 +91,7 @@ def port_1_location(self) -> Port1LocationOption: val = self._get_property('Port 1 Location') val = self.Port1LocationOption[val] return val + @port_1_location.setter def port_1_location(self, value: Port1LocationOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Port 1 Location=' + value.value]) @@ -97,6 +104,7 @@ def flip_ports_vertically(self) -> bool: """ val = self._get_property('Flip Ports Vertically') return val + @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Flip Ports Vertically=' + value]) @@ -109,6 +117,7 @@ def ports(self): " """ val = self._get_property('Ports') return val + @ports.setter def ports(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Ports=' + value]) @@ -120,3 +129,4 @@ def warnings(self) -> str: " """ val = self._get_property('Warnings') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py index ecf54af7714..603ca70dce1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py @@ -30,6 +30,7 @@ class TypeOption(Enum): LOWPASS = "Low Pass" HIGHPASS = "High Pass" BANDPASS = "Band Pass" + @property def type(self) -> TypeOption: """Type @@ -38,6 +39,7 @@ def type(self) -> TypeOption: val = self._get_property('Type') val = self.TypeOption[val] return val + @type.setter def type(self, value: TypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) @@ -50,6 +52,7 @@ def filename(self) -> str: """ val = self._get_property('Filename') return val + @filename.setter def filename(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @@ -62,6 +65,7 @@ def insertion_loss(self) -> float: """ val = self._get_property('Insertion Loss') return val + @insertion_loss.setter def insertion_loss(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) @@ -74,6 +78,7 @@ def stop_band_attenuation(self) -> float: """ val = self._get_property('Stop band Attenuation') return val + @stop_band_attenuation.setter def stop_band_attenuation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Stop band Attenuation=' + value]) @@ -86,6 +91,7 @@ def max_pass_band(self) -> float: """ val = self._get_property('Max Pass Band') return val + @max_pass_band.setter def max_pass_band(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Pass Band=' + value]) @@ -98,6 +104,7 @@ def min_stop_band(self) -> float: """ val = self._get_property('Min Stop Band') return val + @min_stop_band.setter def min_stop_band(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Min Stop Band=' + value]) @@ -110,6 +117,7 @@ def max_stop_band(self) -> float: """ val = self._get_property('Max Stop Band') return val + @max_stop_band.setter def max_stop_band(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Stop Band=' + value]) @@ -122,6 +130,7 @@ def min_pass_band(self) -> float: """ val = self._get_property('Min Pass Band') return val + @min_pass_band.setter def min_pass_band(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Min Pass Band=' + value]) @@ -134,6 +143,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property('Lower Stop Band') return val + @lower_stop_band.setter def lower_stop_band(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) @@ -146,6 +156,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property('Lower Cutoff') return val + @lower_cutoff.setter def lower_cutoff(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) @@ -158,6 +169,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property('Higher Cutoff') return val + @higher_cutoff.setter def higher_cutoff(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) @@ -170,6 +182,7 @@ def higher_stop_band(self) -> float: """ val = self._get_property('Higher Stop Band') return val + @higher_stop_band.setter def higher_stop_band(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) @@ -181,3 +194,4 @@ def warnings(self) -> str: " """ val = self._get_property('Warnings') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py index d2609323aef..e03b574b566 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py @@ -33,6 +33,7 @@ def input_port(self) -> int: """ val = self._get_property('Input Port') return val + @input_port.setter def input_port(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) @@ -45,6 +46,7 @@ def output_port(self) -> int: """ val = self._get_property('Output Port') return val + @output_port.setter def output_port(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) @@ -56,6 +58,7 @@ def data_source(self): " """ val = self._get_property('Data Source') return val + @data_source.setter def data_source(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @@ -68,6 +71,7 @@ def visible(self) -> bool: """ val = self._get_property('Visible') return val + @visible.setter def visible(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @@ -80,6 +84,7 @@ def custom_legend(self) -> bool: """ val = self._get_property('Custom Legend') return val + @custom_legend.setter def custom_legend(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @@ -91,6 +96,7 @@ def name(self) -> str: " """ val = self._get_property('Name') return val + @name.setter def name(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) @@ -102,6 +108,7 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property def style(self) -> StyleOption: """Style @@ -110,6 +117,7 @@ def style(self) -> StyleOption: val = self._get_property('Style') val = self.StyleOption[val] return val + @style.setter def style(self, value: StyleOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @@ -122,6 +130,7 @@ def line_width(self) -> int: """ val = self._get_property('Line Width') return val + @line_width.setter def line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @@ -134,6 +143,7 @@ def line_color(self): """ val = self._get_property('Line Color') return val + @line_color.setter def line_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) @@ -154,6 +164,7 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property def symbol(self) -> SymbolOption: """Symbol @@ -162,6 +173,7 @@ def symbol(self) -> SymbolOption: val = self._get_property('Symbol') val = self.SymbolOption[val] return val + @symbol.setter def symbol(self, value: SymbolOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @@ -174,6 +186,7 @@ def symbol_size(self) -> int: """ val = self._get_property('Symbol Size') return val + @symbol_size.setter def symbol_size(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @@ -186,6 +199,7 @@ def symbol_color(self): """ val = self._get_property('Symbol Color') return val + @symbol_color.setter def symbol_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @@ -198,6 +212,7 @@ def symbol_line_width(self) -> int: """ val = self._get_property('Symbol Line Width') return val + @symbol_line_width.setter def symbol_line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @@ -210,6 +225,7 @@ def symbol_filled(self) -> bool: """ val = self._get_property('Symbol Filled') return val + @symbol_filled.setter def symbol_filled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py index 558afef4db9..b4fc3fef7c4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py @@ -31,6 +31,7 @@ def antenna_a(self) -> EmitNode: " """ val = self._get_property('Antenna A') return val + @antenna_a.setter def antenna_a(self, value: EmitNode): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) @@ -41,6 +42,7 @@ def antenna_b(self) -> EmitNode: " """ val = self._get_property('Antenna B') return val + @antenna_b.setter def antenna_b(self, value: EmitNode): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) @@ -52,6 +54,7 @@ def data_source(self): " """ val = self._get_property('Data Source') return val + @data_source.setter def data_source(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @@ -64,6 +67,7 @@ def visible(self) -> bool: """ val = self._get_property('Visible') return val + @visible.setter def visible(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @@ -76,6 +80,7 @@ def custom_legend(self) -> bool: """ val = self._get_property('Custom Legend') return val + @custom_legend.setter def custom_legend(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @@ -87,6 +92,7 @@ def name(self) -> str: " """ val = self._get_property('Name') return val + @name.setter def name(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) @@ -98,6 +104,7 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property def style(self) -> StyleOption: """Style @@ -106,6 +113,7 @@ def style(self) -> StyleOption: val = self._get_property('Style') val = self.StyleOption[val] return val + @style.setter def style(self, value: StyleOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @@ -118,6 +126,7 @@ def line_width(self) -> int: """ val = self._get_property('Line Width') return val + @line_width.setter def line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @@ -130,6 +139,7 @@ def line_color(self): """ val = self._get_property('Line Color') return val + @line_color.setter def line_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) @@ -150,6 +160,7 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property def symbol(self) -> SymbolOption: """Symbol @@ -158,6 +169,7 @@ def symbol(self) -> SymbolOption: val = self._get_property('Symbol') val = self.SymbolOption[val] return val + @symbol.setter def symbol(self, value: SymbolOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @@ -170,6 +182,7 @@ def symbol_size(self) -> int: """ val = self._get_property('Symbol Size') return val + @symbol_size.setter def symbol_size(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @@ -182,6 +195,7 @@ def symbol_color(self): """ val = self._get_property('Symbol Color') return val + @symbol_color.setter def symbol_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @@ -194,6 +208,7 @@ def symbol_line_width(self) -> int: """ val = self._get_property('Symbol Line Width') return val + @symbol_line_width.setter def symbol_line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @@ -206,6 +221,7 @@ def symbol_filled(self) -> bool: """ val = self._get_property('Symbol Filled') return val + @symbol_filled.setter def symbol_filled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py index 3b52b022b25..b8440cbb994 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py @@ -33,6 +33,7 @@ def visible(self) -> bool: """ val = self._get_property('Visible') return val + @visible.setter def visible(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @@ -45,6 +46,7 @@ def attached(self) -> bool: """ val = self._get_property('Attached') return val + @attached.setter def attached(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Attached=' + value]) @@ -56,6 +58,7 @@ def position(self) -> float: " """ val = self._get_property('Position') return val + @position.setter def position(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) @@ -67,6 +70,7 @@ def position(self) -> float: " """ val = self._get_property('Position') return val + @position.setter def position(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) @@ -79,6 +83,7 @@ def floating_label(self) -> bool: """ val = self._get_property('Floating Label') return val + @floating_label.setter def floating_label(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Floating Label=' + value]) @@ -91,6 +96,7 @@ def position_from_left(self) -> float: """ val = self._get_property('Position from Left') return val + @position_from_left.setter def position_from_left(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position from Left=' + value]) @@ -103,6 +109,7 @@ def position_from_top(self) -> float: """ val = self._get_property('Position from Top') return val + @position_from_top.setter def position_from_top(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position from Top=' + value]) @@ -114,6 +121,7 @@ def text(self) -> str: " """ val = self._get_property('Text') return val + @text.setter def text(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Text=' + value]) @@ -122,6 +130,7 @@ class HorizontalPositionOption(Enum): LEFT = "Left" RIGHT = "Right" CENTER = "Center" + @property def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position @@ -130,6 +139,7 @@ def horizontal_position(self) -> HorizontalPositionOption: val = self._get_property('Horizontal Position') val = self.HorizontalPositionOption[val] return val + @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Horizontal Position=' + value.value]) @@ -138,6 +148,7 @@ class VerticalPositionOption(Enum): TOP = "Top" BOTTOM = "Bottom" CENTER = "Center" + @property def vertical_position(self) -> VerticalPositionOption: """Vertical Position @@ -146,6 +157,7 @@ def vertical_position(self) -> VerticalPositionOption: val = self._get_property('Vertical Position') val = self.VerticalPositionOption[val] return val + @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Position=' + value.value]) @@ -154,6 +166,7 @@ class TextAlignmentOption(Enum): LEFT = "Left" RIGHT = "Right" CENTER = "Center" + @property def text_alignment(self) -> TextAlignmentOption: """Text Alignment @@ -162,6 +175,7 @@ def text_alignment(self) -> TextAlignmentOption: val = self._get_property('Text Alignment') val = self.TextAlignmentOption[val] return val + @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Text Alignment=' + value.value]) @@ -174,6 +188,7 @@ def font(self): """ val = self._get_property('Font') return val + @font.setter def font(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Font=' + value]) @@ -186,6 +201,7 @@ def color(self): """ val = self._get_property('Color') return val + @color.setter def color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) @@ -198,6 +214,7 @@ def background_color(self): """ val = self._get_property('Background Color') return val + @background_color.setter def background_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) @@ -210,6 +227,7 @@ def border(self) -> bool: """ val = self._get_property('Border') return val + @border.setter def border(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border=' + value]) @@ -222,6 +240,7 @@ def border_width(self) -> int: """ val = self._get_property('Border Width') return val + @border_width.setter def border_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border Width=' + value]) @@ -234,6 +253,7 @@ def border_color(self): """ val = self._get_property('Border Color') return val + @border_color.setter def border_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border Color=' + value]) @@ -255,6 +275,7 @@ class SymbolOption(Enum): STAR2 = "Star2" HEXAGON = "Hexagon" ARROW = "Arrow" + @property def symbol(self) -> SymbolOption: """Symbol @@ -263,6 +284,7 @@ def symbol(self) -> SymbolOption: val = self._get_property('Symbol') val = self.SymbolOption[val] return val + @symbol.setter def symbol(self, value: SymbolOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @@ -275,6 +297,7 @@ def arrow_direction(self) -> int: """ val = self._get_property('Arrow Direction') return val + @arrow_direction.setter def arrow_direction(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Arrow Direction=' + value]) @@ -287,6 +310,7 @@ def symbol_size(self) -> int: """ val = self._get_property('Symbol Size') return val + @symbol_size.setter def symbol_size(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @@ -299,6 +323,7 @@ def symbol_color(self): """ val = self._get_property('Symbol Color') return val + @symbol_color.setter def symbol_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @@ -311,6 +336,7 @@ def line_width(self) -> int: """ val = self._get_property('Line Width') return val + @line_width.setter def line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @@ -323,6 +349,7 @@ def filled(self) -> bool: """ val = self._get_property('Filled') return val + @filled.setter def filled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py index 5793408e1bb..851f523eba7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py @@ -10,7 +10,7 @@ def __eq__(self, other): def add_marker(self): """Add an icon and/or label to this plot""" - return self._add_child_node("PlotMarkerNode") + return self._add_child_node("Plot Marker") def export_model(self, file_name): """Save this data to a file""" @@ -35,6 +35,7 @@ def title(self) -> str: " """ val = self._get_property('Title') return val + @title.setter def title(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Title=' + value]) @@ -47,6 +48,7 @@ def title_font(self): """ val = self._get_property('Title Font') return val + @title_font.setter def title_font(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Title Font=' + value]) @@ -59,6 +61,7 @@ def show_legend(self) -> bool: """ val = self._get_property('Show Legend') return val + @show_legend.setter def show_legend(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Legend=' + value]) @@ -71,6 +74,7 @@ def legend_font(self): """ val = self._get_property('Legend Font') return val + @legend_font.setter def legend_font(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Legend Font=' + value]) @@ -83,6 +87,7 @@ def display_cad_overlay(self) -> bool: """ val = self._get_property('Display CAD Overlay') return val + @display_cad_overlay.setter def display_cad_overlay(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Display CAD Overlay=' + value]) @@ -95,6 +100,7 @@ def opacity(self) -> float: """ val = self._get_property('Opacity') return val + @opacity.setter def opacity(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Opacity=' + value]) @@ -106,6 +112,7 @@ def vertical_offset(self) -> float: " """ val = self._get_property('Vertical Offset') return val + @vertical_offset.setter def vertical_offset(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Offset=' + value]) @@ -118,6 +125,7 @@ def range_axis_rotation(self) -> float: """ val = self._get_property('Range Axis Rotation') return val + @range_axis_rotation.setter def range_axis_rotation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Range Axis Rotation=' + value]) @@ -130,6 +138,7 @@ def lock_axes(self) -> bool: """ val = self._get_property('Lock Axes') return val + @lock_axes.setter def lock_axes(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lock Axes=' + value]) @@ -141,6 +150,7 @@ def x_axis_min(self) -> float: " """ val = self._get_property('X-axis Min') return val + @x_axis_min.setter def x_axis_min(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['X-axis Min=' + value]) @@ -152,6 +162,7 @@ def x_axis_max(self) -> float: " """ val = self._get_property('X-axis Max') return val + @x_axis_max.setter def x_axis_max(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['X-axis Max=' + value]) @@ -163,6 +174,7 @@ def y_axis_min(self) -> float: " """ val = self._get_property('Y-axis Min') return val + @y_axis_min.setter def y_axis_min(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Min=' + value]) @@ -174,6 +186,7 @@ def y_axis_max(self) -> float: " """ val = self._get_property('Y-axis Max') return val + @y_axis_max.setter def y_axis_max(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Max=' + value]) @@ -186,6 +199,7 @@ def y_axis_range(self) -> float: """ val = self._get_property('Y-axis Range') return val + @y_axis_range.setter def y_axis_range(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Range=' + value]) @@ -198,6 +212,7 @@ def max_major_ticks(self) -> int: """ val = self._get_property('Max Major Ticks') return val + @max_major_ticks.setter def max_major_ticks(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) @@ -210,6 +225,7 @@ def max_minor_ticks(self) -> int: """ val = self._get_property('Max Minor Ticks') return val + @max_minor_ticks.setter def max_minor_ticks(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) @@ -222,6 +238,7 @@ def max_major_ticks(self) -> int: """ val = self._get_property('Max Major Ticks') return val + @max_major_ticks.setter def max_major_ticks(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) @@ -234,6 +251,7 @@ def max_minor_ticks(self) -> int: """ val = self._get_property('Max Minor Ticks') return val + @max_minor_ticks.setter def max_minor_ticks(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) @@ -246,6 +264,7 @@ def axis_label_font(self): """ val = self._get_property('Axis Label Font') return val + @axis_label_font.setter def axis_label_font(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Axis Label Font=' + value]) @@ -258,6 +277,7 @@ def axis_tick_label_font(self): """ val = self._get_property('Axis Tick Label Font') return val + @axis_tick_label_font.setter def axis_tick_label_font(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Axis Tick Label Font=' + value]) @@ -269,6 +289,7 @@ class MajorGridLineStyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style @@ -277,6 +298,7 @@ def major_grid_line_style(self) -> MajorGridLineStyleOption: val = self._get_property('Major Grid Line Style') val = self.MajorGridLineStyleOption[val] return val + @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Major Grid Line Style=' + value.value]) @@ -289,6 +311,7 @@ def major_grid_color(self): """ val = self._get_property('Major Grid Color') return val + @major_grid_color.setter def major_grid_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Major Grid Color=' + value]) @@ -300,6 +323,7 @@ class MinorGridLineStyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style @@ -308,6 +332,7 @@ def minor_grid_line_style(self) -> MinorGridLineStyleOption: val = self._get_property('Minor Grid Line Style') val = self.MinorGridLineStyleOption[val] return val + @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Minor Grid Line Style=' + value.value]) @@ -320,6 +345,7 @@ def minor_grid_color(self): """ val = self._get_property('Minor Grid Color') return val + @minor_grid_color.setter def minor_grid_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Minor Grid Color=' + value]) @@ -332,6 +358,7 @@ def background_color(self): """ val = self._get_property('Background Color') return val + @background_color.setter def background_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) @@ -341,6 +368,7 @@ class BBPowerforPlotsUnitOption(Enum): KILOHERTZ = "kilohertz" MEGAHERTZ = "megahertz" GIGAHERTZ = "gigahertz" + @property def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit @@ -349,6 +377,7 @@ def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: val = self._get_property('BB Power for Plots Unit') val = self.BBPowerforPlotsUnitOption[val] return val + @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['BB Power for Plots Unit=' + value.value]) @@ -361,6 +390,7 @@ def bb_power_bandwidth(self) -> float: """ val = self._get_property('BB Power Bandwidth') return val + @bb_power_bandwidth.setter def bb_power_bandwidth(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['BB Power Bandwidth=' + value]) @@ -373,6 +403,7 @@ def log_scale(self) -> bool: """ val = self._get_property('Log Scale') return val + @log_scale.setter def log_scale(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Log Scale=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py index 7876d8cab2d..5cdfc662b92 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py @@ -28,6 +28,7 @@ def filename(self) -> str: """ val = self._get_property('Filename') return val + @filename.setter def filename(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @@ -40,6 +41,7 @@ def noise_temperature(self) -> float: """ val = self._get_property('Noise Temperature') return val + @noise_temperature.setter def noise_temperature(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @@ -51,6 +53,7 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + @notes.setter def notes(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) @@ -59,6 +62,7 @@ class TypeOption(Enum): BYFILE = "By File" _3DB = "3 dB" RESISTIVE = "Resistive" + @property def type(self) -> TypeOption: """Type @@ -67,6 +71,7 @@ def type(self) -> TypeOption: val = self._get_property('Type') val = self.TypeOption[val] return val + @type.setter def type(self, value: TypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) @@ -74,6 +79,7 @@ def type(self, value: TypeOption): class OrientationOption(Enum): RADIOSIDE = "Divider" ANTENNASIDE = "Combiner" + @property def orientation(self) -> OrientationOption: """Orientation @@ -82,6 +88,7 @@ def orientation(self) -> OrientationOption: val = self._get_property('Orientation') val = self.OrientationOption[val] return val + @orientation.setter def orientation(self, value: OrientationOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation=' + value.value]) @@ -94,6 +101,7 @@ def insertion_loss_above_ideal(self) -> float: """ val = self._get_property('Insertion Loss Above Ideal') return val + @insertion_loss_above_ideal.setter def insertion_loss_above_ideal(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss Above Ideal=' + value]) @@ -106,6 +114,7 @@ def finite_isolation(self) -> bool: """ val = self._get_property('Finite Isolation') return val + @finite_isolation.setter def finite_isolation(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Finite Isolation=' + value]) @@ -118,6 +127,7 @@ def isolation(self) -> float: """ val = self._get_property('Isolation') return val + @isolation.setter def isolation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Isolation=' + value]) @@ -130,6 +140,7 @@ def finite_bandwidth(self) -> bool: """ val = self._get_property('Finite Bandwidth') return val + @finite_bandwidth.setter def finite_bandwidth(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) @@ -142,6 +153,7 @@ def out_of_band_attenuation(self) -> float: """ val = self._get_property('Out-of-band Attenuation') return val + @out_of_band_attenuation.setter def out_of_band_attenuation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) @@ -154,6 +166,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property('Lower Stop Band') return val + @lower_stop_band.setter def lower_stop_band(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) @@ -166,6 +179,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property('Lower Cutoff') return val + @lower_cutoff.setter def lower_cutoff(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) @@ -178,6 +192,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property('Higher Cutoff') return val + @higher_cutoff.setter def higher_cutoff(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) @@ -190,6 +205,7 @@ def higher_stop_band(self) -> float: """ val = self._get_property('Higher Stop Band') return val + @higher_stop_band.setter def higher_stop_band(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) @@ -201,3 +217,4 @@ def warnings(self) -> str: " """ val = self._get_property('Warnings') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py index 00848df20cc..82c7e4d4fed 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py @@ -28,6 +28,7 @@ def delete(self): class DirectionOption(Enum): AWAY = "Away From Tx" TOWARD = "Toward Tx" + @property def direction(self) -> DirectionOption: """Direction @@ -36,6 +37,7 @@ def direction(self) -> DirectionOption: val = self._get_property('Direction') val = self.DirectionOption[val] return val + @direction.setter def direction(self, value: DirectionOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Direction=' + value.value]) @@ -47,6 +49,7 @@ def data_source(self): " """ val = self._get_property('Data Source') return val + @data_source.setter def data_source(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @@ -59,6 +62,7 @@ def visible(self) -> bool: """ val = self._get_property('Visible') return val + @visible.setter def visible(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @@ -71,6 +75,7 @@ def custom_legend(self) -> bool: """ val = self._get_property('Custom Legend') return val + @custom_legend.setter def custom_legend(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @@ -82,6 +87,7 @@ def name(self) -> str: " """ val = self._get_property('Name') return val + @name.setter def name(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) @@ -93,6 +99,7 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property def style(self) -> StyleOption: """Style @@ -101,6 +108,7 @@ def style(self) -> StyleOption: val = self._get_property('Style') val = self.StyleOption[val] return val + @style.setter def style(self, value: StyleOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @@ -113,6 +121,7 @@ def line_width(self) -> int: """ val = self._get_property('Line Width') return val + @line_width.setter def line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @@ -125,6 +134,7 @@ def line_color(self): """ val = self._get_property('Line Color') return val + @line_color.setter def line_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) @@ -145,6 +155,7 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property def symbol(self) -> SymbolOption: """Symbol @@ -153,6 +164,7 @@ def symbol(self) -> SymbolOption: val = self._get_property('Symbol') val = self.SymbolOption[val] return val + @symbol.setter def symbol(self, value: SymbolOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @@ -165,6 +177,7 @@ def symbol_size(self) -> int: """ val = self._get_property('Symbol Size') return val + @symbol_size.setter def symbol_size(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @@ -177,6 +190,7 @@ def symbol_color(self): """ val = self._get_property('Symbol Color') return val + @symbol_color.setter def symbol_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @@ -189,6 +203,7 @@ def symbol_line_width(self) -> int: """ val = self._get_property('Symbol Line Width') return val + @symbol_line_width.setter def symbol_line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @@ -201,6 +216,7 @@ def symbol_filled(self) -> bool: """ val = self._get_property('Symbol Filled') return val + @symbol_filled.setter def symbol_filled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py index f88be273f44..6051a2bef09 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py @@ -32,6 +32,7 @@ def data_source(self): " """ val = self._get_property('Data Source') return val + @data_source.setter def data_source(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @@ -44,6 +45,7 @@ def visible(self) -> bool: """ val = self._get_property('Visible') return val + @visible.setter def visible(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @@ -56,6 +58,7 @@ def custom_legend(self) -> bool: """ val = self._get_property('Custom Legend') return val + @custom_legend.setter def custom_legend(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @@ -67,6 +70,7 @@ def name(self) -> str: " """ val = self._get_property('Name') return val + @name.setter def name(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) @@ -78,6 +82,7 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property def style(self) -> StyleOption: """Style @@ -86,6 +91,7 @@ def style(self) -> StyleOption: val = self._get_property('Style') val = self.StyleOption[val] return val + @style.setter def style(self, value: StyleOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @@ -98,6 +104,7 @@ def line_width(self) -> int: """ val = self._get_property('Line Width') return val + @line_width.setter def line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @@ -110,6 +117,7 @@ def line_color(self): """ val = self._get_property('Line Color') return val + @line_color.setter def line_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) @@ -130,6 +138,7 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property def symbol(self) -> SymbolOption: """Symbol @@ -138,6 +147,7 @@ def symbol(self) -> SymbolOption: val = self._get_property('Symbol') val = self.SymbolOption[val] return val + @symbol.setter def symbol(self, value: SymbolOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @@ -150,6 +160,7 @@ def symbol_size(self) -> int: """ val = self._get_property('Symbol Size') return val + @symbol_size.setter def symbol_size(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @@ -162,6 +173,7 @@ def symbol_color(self): """ val = self._get_property('Symbol Color') return val + @symbol_color.setter def symbol_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @@ -174,6 +186,7 @@ def symbol_line_width(self) -> int: """ val = self._get_property('Symbol Line Width') return val + @symbol_line_width.setter def symbol_line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @@ -186,6 +199,7 @@ def symbol_filled(self) -> bool: """ val = self._get_property('Symbol Filled') return val + @symbol_filled.setter def symbol_filled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py index a78115e065e..01a7de38591 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py @@ -33,6 +33,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @@ -44,6 +45,7 @@ def antenna_a(self) -> EmitNode: " """ val = self._get_property('Antenna A') return val + @antenna_a.setter def antenna_a(self, value: EmitNode): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) @@ -55,6 +57,7 @@ def antenna_b(self) -> EmitNode: " """ val = self._get_property('Antenna B') return val + @antenna_b.setter def antenna_b(self, value: EmitNode): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) @@ -67,6 +70,7 @@ def enable_refinement(self) -> bool: """ val = self._get_property('Enable Refinement') return val + @enable_refinement.setter def enable_refinement(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @@ -79,6 +83,7 @@ def adaptive_sampling(self) -> bool: """ val = self._get_property('Adaptive Sampling') return val + @adaptive_sampling.setter def adaptive_sampling(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @@ -90,6 +95,7 @@ def refinement_domain(self): " """ val = self._get_property('Refinement Domain') return val + @refinement_domain.setter def refinement_domain(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) @@ -102,6 +108,7 @@ def custom_fading_margin(self) -> float: """ val = self._get_property('Custom Fading Margin') return val + @custom_fading_margin.setter def custom_fading_margin(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) @@ -114,6 +121,7 @@ def polarization_mismatch(self) -> float: """ val = self._get_property('Polarization Mismatch') return val + @polarization_mismatch.setter def polarization_mismatch(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) @@ -126,6 +134,7 @@ def pointing_error_loss(self) -> float: """ val = self._get_property('Pointing Error Loss') return val + @pointing_error_loss.setter def pointing_error_loss(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) @@ -135,6 +144,7 @@ class FadingTypeOption(Enum): FASTFADINGONLY = "Fast Fading Only" SHADOWINGONLY = "Shadowing Only" SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + @property def fading_type(self) -> FadingTypeOption: """Fading Type @@ -143,6 +153,7 @@ def fading_type(self) -> FadingTypeOption: val = self._get_property('Fading Type') val = self.FadingTypeOption[val] return val + @fading_type.setter def fading_type(self, value: FadingTypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) @@ -155,6 +166,7 @@ def fading_availability(self) -> float: """ val = self._get_property('Fading Availability') return val + @fading_availability.setter def fading_availability(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) @@ -167,6 +179,7 @@ def std_deviation(self) -> float: """ val = self._get_property('Std Deviation') return val + @std_deviation.setter def std_deviation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) @@ -179,6 +192,7 @@ def include_rain_attenuation(self) -> bool: """ val = self._get_property('Include Rain Attenuation') return val + @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) @@ -191,6 +205,7 @@ def rain_availability(self) -> float: """ val = self._get_property('Rain Availability') return val + @rain_availability.setter def rain_availability(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) @@ -203,6 +218,7 @@ def rain_rate(self) -> float: """ val = self._get_property('Rain Rate') return val + @rain_rate.setter def rain_rate(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) @@ -215,6 +231,7 @@ def polarization_tilt_angle(self) -> float: """ val = self._get_property('Polarization Tilt Angle') return val + @polarization_tilt_angle.setter def polarization_tilt_angle(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) @@ -227,6 +244,7 @@ def include_atmospheric_absorption(self) -> bool: """ val = self._get_property('Include Atmospheric Absorption') return val + @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) @@ -239,6 +257,7 @@ def temperature(self) -> float: """ val = self._get_property('Temperature') return val + @temperature.setter def temperature(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) @@ -251,6 +270,7 @@ def total_air_pressure(self) -> float: """ val = self._get_property('Total Air Pressure') return val + @total_air_pressure.setter def total_air_pressure(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) @@ -263,6 +283,7 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property('Water Vapor Concentration') return val + @water_vapor_concentration.setter def water_vapor_concentration(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py index 0274fba125b..35189631664 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py @@ -37,6 +37,7 @@ def table_data(self): " "Type: " """ return self._get_table_data() + @table_data.setter def table_data(self, value): self._set_table_data(value) @@ -48,6 +49,7 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + @notes.setter def notes(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py index a2f54bf5f7d..3fb44525891 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py @@ -16,6 +16,7 @@ def filename(self) -> str: """ val = self._get_property('Filename') return val + @property def noise_temperature(self) -> float: """Noise Temperature @@ -24,6 +25,7 @@ def noise_temperature(self) -> float: """ val = self._get_property('Noise Temperature') return val + @property def notes(self) -> str: """Notes @@ -31,9 +33,11 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + class AmplifierTypeOption(Enum): TRANSMIT_AMPLIFIER = "Transmit Amplifier" RECEIVE_AMPLIFIER = "Receive Amplifier" + @property def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type @@ -42,6 +46,7 @@ def amplifier_type(self) -> AmplifierTypeOption: val = self._get_property('Amplifier Type') val = self.AmplifierTypeOption[val] return val + @property def gain(self) -> float: """Gain @@ -50,6 +55,7 @@ def gain(self) -> float: """ val = self._get_property('Gain') return val + @property def center_frequency(self) -> float: """Center Frequency @@ -58,6 +64,7 @@ def center_frequency(self) -> float: """ val = self._get_property('Center Frequency') return val + @property def bandwidth(self) -> float: """Bandwidth @@ -66,6 +73,7 @@ def bandwidth(self) -> float: """ val = self._get_property('Bandwidth') return val + @property def noise_figure(self) -> float: """Noise Figure @@ -74,6 +82,7 @@ def noise_figure(self) -> float: """ val = self._get_property('Noise Figure') return val + @property def saturation_level(self) -> float: """Saturation Level @@ -82,6 +91,7 @@ def saturation_level(self) -> float: """ val = self._get_property('Saturation Level') return val + @property def _1_db_point_ref_input(self) -> float: """1-dB Point, Ref. Input @@ -90,6 +100,7 @@ def _1_db_point_ref_input(self) -> float: """ val = self._get_property('1-dB Point, Ref. Input') return val + @property def ip3_ref_input(self) -> float: """IP3, Ref. Input @@ -98,6 +109,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property('IP3, Ref. Input') return val + @property def shape_factor(self) -> float: """Shape Factor @@ -106,6 +118,7 @@ def shape_factor(self) -> float: """ val = self._get_property('Shape Factor') return val + @property def reverse_isolation(self) -> float: """Reverse Isolation @@ -114,6 +127,7 @@ def reverse_isolation(self) -> float: """ val = self._get_property('Reverse Isolation') return val + @property def max_intermod_order(self) -> int: """Max Intermod Order @@ -122,3 +136,4 @@ def max_intermod_order(self) -> int: """ val = self._get_property('Max Intermod Order') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py index 5ab5cee4459..27b9445a284 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py @@ -20,6 +20,7 @@ def tags(self) -> str: " """ val = self._get_property('Tags') return val + @property def show_relative_coordinates(self) -> bool: """Show Relative Coordinates @@ -28,6 +29,7 @@ def show_relative_coordinates(self) -> bool: """ val = self._get_property('Show Relative Coordinates') return val + @property def position(self): """Position @@ -36,6 +38,7 @@ def position(self): """ val = self._get_property('Position') return val + @property def relative_position(self): """Relative Position @@ -44,9 +47,11 @@ def relative_position(self): """ val = self._get_property('Relative Position') return val + class OrientationModeOption(Enum): RPYDEG = "Roll-Pitch-Yaw" AETDEG = "Az-El-Twist" + @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode @@ -55,6 +60,7 @@ def orientation_mode(self) -> OrientationModeOption: val = self._get_property('Orientation Mode') val = self.OrientationModeOption[val] return val + @property def orientation(self): """Orientation @@ -63,6 +69,7 @@ def orientation(self): """ val = self._get_property('Orientation') return val + @property def relative_orientation(self): """Relative Orientation @@ -71,6 +78,7 @@ def relative_orientation(self): """ val = self._get_property('Relative Orientation') return val + @property def position_defined(self) -> bool: """Position Defined @@ -79,6 +87,7 @@ def position_defined(self) -> bool: """ val = self._get_property('Position Defined') return val + @property def antenna_temperature(self) -> float: """Antenna Temperature @@ -87,6 +96,7 @@ def antenna_temperature(self) -> float: """ val = self._get_property('Antenna Temperature') return val + @property def type(self): """Type @@ -94,6 +104,7 @@ def type(self): " """ val = self._get_property('Type') return val + @property def antenna_file(self) -> str: """Antenna File @@ -101,6 +112,7 @@ def antenna_file(self) -> str: """ val = self._get_property('Antenna File') return val + @property def project_name(self) -> str: """Project Name @@ -109,6 +121,7 @@ def project_name(self) -> str: """ val = self._get_property('Project Name') return val + @property def peak_gain(self) -> float: """Peak Gain @@ -117,10 +130,12 @@ def peak_gain(self) -> float: """ val = self._get_property('Peak Gain') return val + class BoresightOption(Enum): XAXIS = "+X Axis" YAXIS = "+Y Axis" ZAXIS = "+Z Axis" + @property def boresight(self) -> BoresightOption: """Boresight @@ -129,6 +144,7 @@ def boresight(self) -> BoresightOption: val = self._get_property('Boresight') val = self.BoresightOption[val] return val + @property def vertical_beamwidth(self) -> float: """Vertical Beamwidth @@ -137,6 +153,7 @@ def vertical_beamwidth(self) -> float: """ val = self._get_property('Vertical Beamwidth') return val + @property def horizontal_beamwidth(self) -> float: """Horizontal Beamwidth @@ -145,6 +162,7 @@ def horizontal_beamwidth(self) -> float: """ val = self._get_property('Horizontal Beamwidth') return val + @property def extra_sidelobe(self) -> bool: """Extra Sidelobe @@ -153,6 +171,7 @@ def extra_sidelobe(self) -> bool: """ val = self._get_property('Extra Sidelobe') return val + @property def first_sidelobe_level(self) -> float: """First Sidelobe Level @@ -161,6 +180,7 @@ def first_sidelobe_level(self) -> float: """ val = self._get_property('First Sidelobe Level') return val + @property def first_sidelobe_vert_bw(self) -> float: """First Sidelobe Vert. BW @@ -169,6 +189,7 @@ def first_sidelobe_vert_bw(self) -> float: """ val = self._get_property('First Sidelobe Vert. BW') return val + @property def first_sidelobe_hor_bw(self) -> float: """First Sidelobe Hor. BW @@ -177,6 +198,7 @@ def first_sidelobe_hor_bw(self) -> float: """ val = self._get_property('First Sidelobe Hor. BW') return val + @property def outerbacklobe_level(self) -> float: """Outer/Backlobe Level @@ -185,6 +207,7 @@ def outerbacklobe_level(self) -> float: """ val = self._get_property('Outer/Backlobe Level') return val + @property def resonant_frequency(self) -> float: """Resonant Frequency @@ -193,6 +216,7 @@ def resonant_frequency(self) -> float: """ val = self._get_property('Resonant Frequency') return val + @property def slot_length(self) -> float: """Slot Length @@ -201,6 +225,7 @@ def slot_length(self) -> float: """ val = self._get_property('Slot Length') return val + @property def mouth_width(self) -> float: """Mouth Width @@ -209,6 +234,7 @@ def mouth_width(self) -> float: """ val = self._get_property('Mouth Width') return val + @property def mouth_height(self) -> float: """Mouth Height @@ -217,6 +243,7 @@ def mouth_height(self) -> float: """ val = self._get_property('Mouth Height') return val + @property def waveguide_width(self) -> float: """Waveguide Width @@ -225,6 +252,7 @@ def waveguide_width(self) -> float: """ val = self._get_property('Waveguide Width') return val + @property def width_flare_half_angle(self) -> float: """Width Flare Half-angle @@ -233,6 +261,7 @@ def width_flare_half_angle(self) -> float: """ val = self._get_property('Width Flare Half-angle') return val + @property def height_flare_half_angle(self) -> float: """Height Flare Half-angle @@ -241,6 +270,7 @@ def height_flare_half_angle(self) -> float: """ val = self._get_property('Height Flare Half-angle') return val + @property def mouth_diameter(self) -> float: """Mouth Diameter @@ -249,6 +279,7 @@ def mouth_diameter(self) -> float: """ val = self._get_property('Mouth Diameter') return val + @property def flare_half_angle(self) -> float: """Flare Half-angle @@ -257,6 +288,7 @@ def flare_half_angle(self) -> float: """ val = self._get_property('Flare Half-angle') return val + @property def vswr(self) -> float: """VSWR @@ -265,11 +297,13 @@ def vswr(self) -> float: """ val = self._get_property('VSWR') return val + class AntennaPolarizationOption(Enum): VERTICAL = "Vertical" HORIZONTAL = "Horizontal" RHCP = "RHCP" LHCP = "LHCP" + @property def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization @@ -278,9 +312,11 @@ def antenna_polarization(self) -> AntennaPolarizationOption: val = self._get_property('Antenna Polarization') val = self.AntennaPolarizationOption[val] return val + class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" OVER_GROUND_PLANE = "Over Ground Plane" + @property def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode @@ -289,9 +325,11 @@ def cross_dipole_mode(self) -> CrossDipoleModeOption: val = self._get_property('Cross Dipole Mode') val = self.CrossDipoleModeOption[val] return val + class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" LHCP = "LHCP" + @property def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization @@ -300,6 +338,7 @@ def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: val = self._get_property('Cross Dipole Polarization') val = self.CrossDipolePolarizationOption[val] return val + @property def override_height(self) -> bool: """Override Height @@ -308,6 +347,7 @@ def override_height(self) -> bool: """ val = self._get_property('Override Height') return val + @property def offset_height(self) -> float: """Offset Height @@ -316,6 +356,7 @@ def offset_height(self) -> float: """ val = self._get_property('Offset Height') return val + @property def auto_height_offset(self) -> bool: """Auto Height Offset @@ -324,6 +365,7 @@ def auto_height_offset(self) -> bool: """ val = self._get_property('Auto Height Offset') return val + @property def conform__adjust_antenna(self) -> bool: """Conform / Adjust Antenna @@ -332,6 +374,7 @@ def conform__adjust_antenna(self) -> bool: """ val = self._get_property('Conform / Adjust Antenna') return val + @property def element_offset(self): """Element Offset @@ -340,10 +383,12 @@ def element_offset(self): """ val = self._get_property('Element Offset') return val + class ConformtoPlatformOption(Enum): NONE = "None" ALONG_NORMAL = "Along Normal" PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" + @property def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform @@ -352,10 +397,12 @@ def conform_to_platform(self) -> ConformtoPlatformOption: val = self._get_property('Conform to Platform') val = self.ConformtoPlatformOption[val] return val + class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" YZ_PLANE = "YZ Plane" ZX_PLANE = "ZX Plane" + @property def reference_plane(self) -> ReferencePlaneOption: """Reference Plane @@ -364,6 +411,7 @@ def reference_plane(self) -> ReferencePlaneOption: val = self._get_property('Reference Plane') val = self.ReferencePlaneOption[val] return val + @property def conform_element_orientation(self) -> bool: """Conform Element Orientation @@ -372,6 +420,7 @@ def conform_element_orientation(self) -> bool: """ val = self._get_property('Conform Element Orientation') return val + @property def show_axes(self) -> bool: """Show Axes @@ -380,6 +429,7 @@ def show_axes(self) -> bool: """ val = self._get_property('Show Axes') return val + @property def show_icon(self) -> bool: """Show Icon @@ -388,6 +438,7 @@ def show_icon(self) -> bool: """ val = self._get_property('Show Icon') return val + @property def size(self) -> float: """Size @@ -396,6 +447,7 @@ def size(self) -> float: """ val = self._get_property('Size') return val + @property def color(self): """Color @@ -404,6 +456,7 @@ def color(self): """ val = self._get_property('Color') return val + @property def el_sample_interval(self) -> float: """El Sample Interval @@ -411,6 +464,7 @@ def el_sample_interval(self) -> float: " """ val = self._get_property('El Sample Interval') return val + @property def az_sample_interval(self) -> float: """Az Sample Interval @@ -418,6 +472,7 @@ def az_sample_interval(self) -> float: " """ val = self._get_property('Az Sample Interval') return val + @property def has_frequency_domain(self) -> bool: """Has Frequency Domain @@ -426,6 +481,7 @@ def has_frequency_domain(self) -> bool: """ val = self._get_property('Has Frequency Domain') return val + @property def frequency_domain(self): """Frequency Domain @@ -433,6 +489,7 @@ def frequency_domain(self): " """ val = self._get_property('Frequency Domain') return val + @property def number_of_electric_sources(self) -> int: """Number of Electric Sources @@ -440,6 +497,7 @@ def number_of_electric_sources(self) -> int: " """ val = self._get_property('Number of Electric Sources') return val + @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources @@ -447,6 +505,7 @@ def number_of_magnetic_sources(self) -> int: " """ val = self._get_property('Number of Magnetic Sources') return val + @property def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources @@ -454,6 +513,7 @@ def number_of_imaged_electric_sources(self) -> int: " """ val = self._get_property('Number of Imaged Electric Sources') return val + @property def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources @@ -461,6 +521,7 @@ def number_of_imaged_magnetic_sources(self) -> int: " """ val = self._get_property('Number of Imaged Magnetic Sources') return val + @property def waveguide_height(self) -> float: """Waveguide Height @@ -468,6 +529,7 @@ def waveguide_height(self) -> float: " """ val = self._get_property('Waveguide Height') return val + @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency @@ -475,6 +537,7 @@ def waveguide_cutoff_frequency(self) -> float: " """ val = self._get_property('Waveguide Cutoff Frequency') return val + @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency @@ -482,10 +545,12 @@ def aperture_cutoff_frequency(self) -> float: " """ val = self._get_property('Aperture Cutoff Frequency') return val + class SWEModeTruncationOption(Enum): DYNAMIC = "Dynamic" CUSTOM = "Fixed (Custom)" NONE = "None" + @property def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation @@ -494,6 +559,7 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: val = self._get_property('SWE Mode Truncation') val = self.SWEModeTruncationOption[val] return val + @property def max_n_index(self) -> int: """Max N Index @@ -502,6 +568,7 @@ def max_n_index(self) -> int: """ val = self._get_property('Max N Index') return val + @property def notes(self) -> str: """Notes @@ -509,6 +576,7 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + @property def show_composite_passband(self) -> bool: """Show Composite Passband @@ -517,6 +585,7 @@ def show_composite_passband(self) -> bool: """ val = self._get_property('Show Composite Passband') return val + @property def use_phase_center(self) -> bool: """Use Phase Center @@ -525,6 +594,7 @@ def use_phase_center(self) -> bool: """ val = self._get_property('Use Phase Center') return val + @property def coordinate_systems(self) -> str: """Coordinate Systems @@ -532,6 +602,7 @@ def coordinate_systems(self) -> str: " """ val = self._get_property('Coordinate Systems') return val + @property def phasecenterposition(self): """PhaseCenterPosition @@ -540,6 +611,7 @@ def phasecenterposition(self): """ val = self._get_property('PhaseCenterPosition') return val + @property def phasecenterorientation(self): """PhaseCenterOrientation @@ -548,3 +620,4 @@ def phasecenterorientation(self): """ val = self._get_property('PhaseCenterOrientation') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py index 0a5e4e0e7a3..9ae62f4ad5d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py @@ -21,6 +21,7 @@ def passband_loss(self) -> float: """ val = self._get_property('Passband Loss') return val + @property def out_of_band_attenuation(self) -> float: """Out of Band Attenuation @@ -29,6 +30,7 @@ def out_of_band_attenuation(self) -> float: """ val = self._get_property('Out of Band Attenuation') return val + @property def lower_stop_band(self) -> float: """Lower Stop Band @@ -37,6 +39,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property('Lower Stop Band') return val + @property def lower_cutoff(self) -> float: """Lower Cutoff @@ -45,6 +48,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property('Lower Cutoff') return val + @property def higher_cutoff(self) -> float: """Higher Cutoff @@ -53,6 +57,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property('Higher Cutoff') return val + @property def higher_stop_band(self) -> float: """Higher Stop Band @@ -61,6 +66,7 @@ def higher_stop_band(self) -> float: """ val = self._get_property('Higher Stop Band') return val + @property def notes(self) -> str: """Notes @@ -68,3 +74,4 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py index f8c8b81dd00..33c139a0149 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py @@ -20,6 +20,7 @@ def port(self): " """ val = self._get_property('Port') return val + @property def use_dd_1494_mode(self) -> bool: """Use DD-1494 Mode @@ -28,6 +29,7 @@ def use_dd_1494_mode(self) -> bool: """ val = self._get_property('Use DD-1494 Mode') return val + @property def use_emission_designator(self) -> bool: """Use Emission Designator @@ -36,6 +38,7 @@ def use_emission_designator(self) -> bool: """ val = self._get_property('Use Emission Designator') return val + @property def emission_designator(self) -> str: """Emission Designator @@ -43,6 +46,7 @@ def emission_designator(self) -> str: " """ val = self._get_property('Emission Designator') return val + @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW @@ -50,6 +54,7 @@ def emission_designator_ch_bw(self) -> float: " """ val = self._get_property('Emission Designator Ch. BW') return val + @property def emit_modulation_type(self) -> str: """EMIT Modulation Type @@ -57,6 +62,7 @@ def emit_modulation_type(self) -> str: " """ val = self._get_property('EMIT Modulation Type') return val + @property def override_emission_designator_bw(self) -> bool: """Override Emission Designator BW @@ -65,6 +71,7 @@ def override_emission_designator_bw(self) -> bool: """ val = self._get_property('Override Emission Designator BW') return val + @property def channel_bandwidth(self) -> float: """Channel Bandwidth @@ -73,6 +80,7 @@ def channel_bandwidth(self) -> float: """ val = self._get_property('Channel Bandwidth') return val + class ModulationOption(Enum): GENERIC = "Generic" AM = "AM" @@ -85,6 +93,7 @@ class ModulationOption(Enum): QAM = "QAM" APSK = "APSK" RADAR = "Radar" + @property def modulation(self) -> ModulationOption: """Modulation @@ -93,12 +102,14 @@ def modulation(self) -> ModulationOption: val = self._get_property('Modulation') val = self.ModulationOption[val] return val + class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" SPREAD_SPECTRUM = "Spread Spectrum Clock" PRBS = "PRBS" PRBS_PERIODIC = "PRBS (Periodic)" IMPORTED = "Imported" + @property def waveform(self) -> WaveformOption: """Waveform @@ -107,6 +118,7 @@ def waveform(self) -> WaveformOption: val = self._get_property('Waveform') val = self.WaveformOption[val] return val + @property def max_modulating_freq(self) -> float: """Max Modulating Freq. @@ -115,6 +127,7 @@ def max_modulating_freq(self) -> float: """ val = self._get_property('Max Modulating Freq.') return val + @property def modulation_index(self) -> float: """Modulation Index @@ -123,6 +136,7 @@ def modulation_index(self) -> float: """ val = self._get_property('Modulation Index') return val + @property def freq_deviation(self) -> float: """Freq. Deviation @@ -131,6 +145,7 @@ def freq_deviation(self) -> float: """ val = self._get_property('Freq. Deviation') return val + @property def bit_rate(self) -> float: """Bit Rate @@ -139,6 +154,7 @@ def bit_rate(self) -> float: """ val = self._get_property('Bit Rate') return val + @property def sidelobes(self) -> int: """Sidelobes @@ -147,6 +163,7 @@ def sidelobes(self) -> int: """ val = self._get_property('Sidelobes') return val + @property def freq_deviation_(self) -> float: """Freq. Deviation @@ -155,6 +172,7 @@ def freq_deviation_(self) -> float: """ val = self._get_property('Freq. Deviation ') return val + class PSKTypeOption(Enum): BPSK = "BPSK" QPSK = "QPSK" @@ -162,6 +180,7 @@ class PSKTypeOption(Enum): _16_PSK = "16-PSK" _32_PSK = "32-PSK" _64_PSK = "64-PSK" + @property def psk_type(self) -> PSKTypeOption: """PSK Type @@ -170,10 +189,12 @@ def psk_type(self) -> PSKTypeOption: val = self._get_property('PSK Type') val = self.PSKTypeOption[val] return val + class FSKTypeOption(Enum): _2_FSK = "2-FSK" _4_FSK = "4-FSK" _8_FSK = "8-FSK" + @property def fsk_type(self) -> FSKTypeOption: """FSK Type @@ -182,12 +203,14 @@ def fsk_type(self) -> FSKTypeOption: val = self._get_property('FSK Type') val = self.FSKTypeOption[val] return val + class QAMTypeOption(Enum): _4_QAM = "4-QAM" _16_QAM = "16-QAM" _64_QAM = "64-QAM" _256_QAM = "256-QAM" _1024_QAM = "1024-QAM" + @property def qam_type(self) -> QAMTypeOption: """QAM Type @@ -196,12 +219,14 @@ def qam_type(self) -> QAMTypeOption: val = self._get_property('QAM Type') val = self.QAMTypeOption[val] return val + class APSKTypeOption(Enum): _4_APSK = "4-APSK" _16_APSK = "16-APSK" _64_APSK = "64-APSK" _256_APSK = "256-APSK" _1024_APSK = "1024-APSK" + @property def apsk_type(self) -> APSKTypeOption: """APSK Type @@ -210,6 +235,7 @@ def apsk_type(self) -> APSKTypeOption: val = self._get_property('APSK Type') val = self.APSKTypeOption[val] return val + @property def start_frequency(self) -> float: """Start Frequency @@ -218,6 +244,7 @@ def start_frequency(self) -> float: """ val = self._get_property('Start Frequency') return val + @property def stop_frequency(self) -> float: """Stop Frequency @@ -226,6 +253,7 @@ def stop_frequency(self) -> float: """ val = self._get_property('Stop Frequency') return val + @property def channel_spacing(self) -> float: """Channel Spacing @@ -234,6 +262,7 @@ def channel_spacing(self) -> float: """ val = self._get_property('Channel Spacing') return val + @property def tx_offset(self) -> float: """Tx Offset @@ -242,6 +271,7 @@ def tx_offset(self) -> float: """ val = self._get_property('Tx Offset') return val + @property def clock_duty_cycle(self) -> float: """Clock Duty Cycle @@ -250,6 +280,7 @@ def clock_duty_cycle(self) -> float: """ val = self._get_property('Clock Duty Cycle') return val + @property def clock_risefall_time(self) -> float: """Clock Rise/Fall Time @@ -258,10 +289,12 @@ def clock_risefall_time(self) -> float: """ val = self._get_property('Clock Rise/Fall Time') return val + class SpreadingTypeOption(Enum): LOW_SPREAD = "Low Spread" CENTER_SPREAD = "Center Spread" HIGH_SPREAD = "High Spread" + @property def spreading_type(self) -> SpreadingTypeOption: """Spreading Type @@ -270,6 +303,7 @@ def spreading_type(self) -> SpreadingTypeOption: val = self._get_property('Spreading Type') val = self.SpreadingTypeOption[val] return val + @property def spread_percentage(self) -> float: """Spread Percentage @@ -278,6 +312,7 @@ def spread_percentage(self) -> float: """ val = self._get_property('Spread Percentage') return val + @property def imported_spectrum(self) -> str: """Imported Spectrum @@ -285,6 +320,7 @@ def imported_spectrum(self) -> str: """ val = self._get_property('Imported Spectrum') return val + @property def raw_data_format(self) -> str: """Raw Data Format @@ -292,6 +328,7 @@ def raw_data_format(self) -> str: " """ val = self._get_property('Raw Data Format') return val + @property def system_impedance(self) -> float: """System Impedance @@ -300,6 +337,7 @@ def system_impedance(self) -> float: """ val = self._get_property('System Impedance') return val + @property def advanced_extraction_params(self) -> bool: """Advanced Extraction Params @@ -308,6 +346,7 @@ def advanced_extraction_params(self) -> bool: """ val = self._get_property('Advanced Extraction Params') return val + @property def nb_window_size(self) -> float: """NB Window Size @@ -316,6 +355,7 @@ def nb_window_size(self) -> float: """ val = self._get_property('NB Window Size') return val + @property def bb_smoothing_factor(self) -> float: """BB Smoothing Factor @@ -324,6 +364,7 @@ def bb_smoothing_factor(self) -> float: """ val = self._get_property('BB Smoothing Factor') return val + @property def nb_detector_threshold(self) -> float: """NB Detector Threshold @@ -332,9 +373,11 @@ def nb_detector_threshold(self) -> float: """ val = self._get_property('NB Detector Threshold') return val + class AlgorithmOption(Enum): FFT = "FFT" FOURIER_TRANSFORM = "Fourier Transform" + @property def algorithm(self) -> AlgorithmOption: """Algorithm @@ -343,6 +386,7 @@ def algorithm(self) -> AlgorithmOption: val = self._get_property('Algorithm') val = self.AlgorithmOption[val] return val + @property def start(self) -> float: """Start @@ -351,6 +395,7 @@ def start(self) -> float: """ val = self._get_property('Start') return val + @property def stop(self) -> float: """Stop @@ -358,6 +403,7 @@ def stop(self) -> float: " """ val = self._get_property('Stop') return val + @property def max_frequency(self) -> float: """Max Frequency @@ -366,6 +412,7 @@ def max_frequency(self) -> float: """ val = self._get_property('Max Frequency') return val + class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" BARTLETT = "Bartlett" @@ -376,6 +423,7 @@ class WindowTypeOption(Enum): LANZCOS = "Lanzcos" WELCH = "Welch" WEBER = "Weber" + @property def window_type(self) -> WindowTypeOption: """Window Type @@ -384,6 +432,7 @@ def window_type(self) -> WindowTypeOption: val = self._get_property('Window Type') val = self.WindowTypeOption[val] return val + @property def kaiser_parameter(self) -> float: """Kaiser Parameter @@ -392,6 +441,7 @@ def kaiser_parameter(self) -> float: """ val = self._get_property('Kaiser Parameter') return val + @property def adjust_coherent_gain(self) -> bool: """Adjust Coherent Gain @@ -400,6 +450,7 @@ def adjust_coherent_gain(self) -> bool: """ val = self._get_property('Adjust Coherent Gain') return val + @property def data_rate(self) -> float: """Data Rate @@ -408,6 +459,7 @@ def data_rate(self) -> float: """ val = self._get_property('Data Rate') return val + @property def _of_bits(self) -> int: """# of Bits @@ -416,6 +468,7 @@ def _of_bits(self) -> int: """ val = self._get_property('# of Bits') return val + @property def use_envelope(self) -> bool: """Use Envelope @@ -424,6 +477,7 @@ def use_envelope(self) -> bool: """ val = self._get_property('Use Envelope') return val + @property def min_ptsnull(self) -> int: """Min Pts/Null @@ -432,6 +486,7 @@ def min_ptsnull(self) -> int: """ val = self._get_property('Min Pts/Null') return val + @property def delay_skew(self) -> float: """Delay Skew @@ -440,12 +495,14 @@ def delay_skew(self) -> float: """ val = self._get_property('Delay Skew') return val + class RadarTypeOption(Enum): CW = "CW" FM_CW = "FM-CW" FM_PULSE = "FM Pulse" NON_FM_PULSE = "Non-FM Pulse" PHASE_CODED = "Phase Coded" + @property def radar_type(self) -> RadarTypeOption: """Radar Type @@ -454,6 +511,7 @@ def radar_type(self) -> RadarTypeOption: val = self._get_property('Radar Type') val = self.RadarTypeOption[val] return val + @property def hopping_radar(self) -> bool: """Hopping Radar @@ -462,6 +520,7 @@ def hopping_radar(self) -> bool: """ val = self._get_property('Hopping Radar') return val + @property def post_october_2020_procurement(self) -> bool: """Post October 2020 Procurement @@ -470,6 +529,7 @@ def post_october_2020_procurement(self) -> bool: """ val = self._get_property('Post October 2020 Procurement') return val + @property def hop_range_min_freq(self) -> float: """Hop Range Min Freq @@ -478,6 +538,7 @@ def hop_range_min_freq(self) -> float: """ val = self._get_property('Hop Range Min Freq') return val + @property def hop_range_max_freq(self) -> float: """Hop Range Max Freq @@ -486,6 +547,7 @@ def hop_range_max_freq(self) -> float: """ val = self._get_property('Hop Range Max Freq') return val + @property def pulse_duration(self) -> float: """Pulse Duration @@ -494,6 +556,7 @@ def pulse_duration(self) -> float: """ val = self._get_property('Pulse Duration') return val + @property def pulse_rise_time(self) -> float: """Pulse Rise Time @@ -502,6 +565,7 @@ def pulse_rise_time(self) -> float: """ val = self._get_property('Pulse Rise Time') return val + @property def pulse_fall_time(self) -> float: """Pulse Fall Time @@ -510,6 +574,7 @@ def pulse_fall_time(self) -> float: """ val = self._get_property('Pulse Fall Time') return val + @property def pulse_repetition_rate(self) -> float: """Pulse Repetition Rate @@ -518,6 +583,7 @@ def pulse_repetition_rate(self) -> float: """ val = self._get_property('Pulse Repetition Rate') return val + @property def number_of_chips(self) -> float: """Number of Chips @@ -526,6 +592,7 @@ def number_of_chips(self) -> float: """ val = self._get_property('Number of Chips') return val + @property def pulse_compression_ratio(self) -> float: """Pulse Compression Ratio @@ -534,6 +601,7 @@ def pulse_compression_ratio(self) -> float: """ val = self._get_property('Pulse Compression Ratio') return val + @property def fm_chirp_period(self) -> float: """FM Chirp Period @@ -542,6 +610,7 @@ def fm_chirp_period(self) -> float: """ val = self._get_property('FM Chirp Period') return val + @property def fm_freq_deviation(self) -> float: """FM Freq Deviation @@ -550,6 +619,7 @@ def fm_freq_deviation(self) -> float: """ val = self._get_property('FM Freq Deviation') return val + @property def fm_freq_dev_bandwidth(self) -> float: """FM Freq Dev Bandwidth @@ -558,3 +628,4 @@ def fm_freq_dev_bandwidth(self) -> float: """ val = self._get_property('FM Freq Dev Bandwidth') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py index 486b9da3fe6..552c9794add 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py @@ -21,6 +21,7 @@ def file(self) -> str: """ val = self._get_property('File') return val + class ModelTypeOption(Enum): PLATE = "Plate" BOX = "Box" @@ -36,6 +37,7 @@ class ModelTypeOption(Enum): PRISM = "Prism" TAPERED_PRISM = "Tapered Prism" TOPHAT = "Tophat" + @property def model_type(self) -> ModelTypeOption: """Model Type @@ -44,6 +46,7 @@ def model_type(self) -> ModelTypeOption: val = self._get_property('Model Type') val = self.ModelTypeOption[val] return val + @property def length(self) -> float: """Length @@ -52,6 +55,7 @@ def length(self) -> float: """ val = self._get_property('Length') return val + @property def width(self) -> float: """Width @@ -60,6 +64,7 @@ def width(self) -> float: """ val = self._get_property('Width') return val + @property def height(self) -> float: """Height @@ -68,6 +73,7 @@ def height(self) -> float: """ val = self._get_property('Height') return val + @property def angle(self) -> float: """Angle @@ -76,6 +82,7 @@ def angle(self) -> float: """ val = self._get_property('Angle') return val + @property def top_side(self) -> float: """Top Side @@ -84,6 +91,7 @@ def top_side(self) -> float: """ val = self._get_property('Top Side') return val + @property def top_radius(self) -> float: """Top Radius @@ -92,6 +100,7 @@ def top_radius(self) -> float: """ val = self._get_property('Top Radius') return val + @property def side(self) -> float: """Side @@ -100,6 +109,7 @@ def side(self) -> float: """ val = self._get_property('Side') return val + @property def radius(self) -> float: """Radius @@ -108,6 +118,7 @@ def radius(self) -> float: """ val = self._get_property('Radius') return val + @property def base_radius(self) -> float: """Base Radius @@ -116,6 +127,7 @@ def base_radius(self) -> float: """ val = self._get_property('Base Radius') return val + @property def center_radius(self) -> float: """Center Radius @@ -124,6 +136,7 @@ def center_radius(self) -> float: """ val = self._get_property('Center Radius') return val + @property def x_axis_ellipsoid_radius(self) -> float: """X Axis Ellipsoid Radius @@ -132,6 +145,7 @@ def x_axis_ellipsoid_radius(self) -> float: """ val = self._get_property('X Axis Ellipsoid Radius') return val + @property def y_axis_ellipsoid_radius(self) -> float: """Y Axis Ellipsoid Radius @@ -140,6 +154,7 @@ def y_axis_ellipsoid_radius(self) -> float: """ val = self._get_property('Y Axis Ellipsoid Radius') return val + @property def z_axis_ellipsoid_radius(self) -> float: """Z Axis Ellipsoid Radius @@ -148,6 +163,7 @@ def z_axis_ellipsoid_radius(self) -> float: """ val = self._get_property('Z Axis Ellipsoid Radius') return val + @property def focal_length(self) -> float: """Focal Length @@ -156,6 +172,7 @@ def focal_length(self) -> float: """ val = self._get_property('Focal Length') return val + @property def offset(self) -> float: """Offset @@ -163,6 +180,7 @@ def offset(self) -> float: " """ val = self._get_property('Offset') return val + @property def x_direction_taper(self) -> float: """X Direction Taper @@ -171,6 +189,7 @@ def x_direction_taper(self) -> float: """ val = self._get_property('X Direction Taper') return val + @property def y_direction_taper(self) -> float: """Y Direction Taper @@ -179,6 +198,7 @@ def y_direction_taper(self) -> float: """ val = self._get_property('Y Direction Taper') return val + @property def prism_direction(self): """Prism Direction @@ -187,6 +207,7 @@ def prism_direction(self): """ val = self._get_property('Prism Direction') return val + @property def closed_top(self) -> bool: """Closed Top @@ -195,6 +216,7 @@ def closed_top(self) -> bool: """ val = self._get_property('Closed Top') return val + @property def closed_base(self) -> bool: """Closed Base @@ -203,6 +225,7 @@ def closed_base(self) -> bool: """ val = self._get_property('Closed Base') return val + @property def mesh_density(self) -> int: """Mesh Density @@ -211,6 +234,7 @@ def mesh_density(self) -> int: """ val = self._get_property('Mesh Density') return val + @property def use_symmetric_mesh(self) -> bool: """Use Symmetric Mesh @@ -219,9 +243,11 @@ def use_symmetric_mesh(self) -> bool: """ val = self._get_property('Use Symmetric Mesh') return val + class MeshOptionOption(Enum): IMPROVED = "Improved" LEGACY = "Legacy" + @property def mesh_option(self) -> MeshOptionOption: """Mesh Option @@ -230,6 +256,7 @@ def mesh_option(self) -> MeshOptionOption: val = self._get_property('Mesh Option') val = self.MeshOptionOption[val] return val + @property def coating_index(self) -> int: """Coating Index @@ -238,6 +265,7 @@ def coating_index(self) -> int: """ val = self._get_property('Coating Index') return val + @property def show_relative_coordinates(self) -> bool: """Show Relative Coordinates @@ -246,6 +274,7 @@ def show_relative_coordinates(self) -> bool: """ val = self._get_property('Show Relative Coordinates') return val + @property def position(self): """Position @@ -254,6 +283,7 @@ def position(self): """ val = self._get_property('Position') return val + @property def relative_position(self): """Relative Position @@ -262,9 +292,11 @@ def relative_position(self): """ val = self._get_property('Relative Position') return val + class OrientationModeOption(Enum): RPYDEG = "Roll-Pitch-Yaw" AETDEG = "Az-El-Twist" + @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode @@ -273,6 +305,7 @@ def orientation_mode(self) -> OrientationModeOption: val = self._get_property('Orientation Mode') val = self.OrientationModeOption[val] return val + @property def orientation(self): """Orientation @@ -281,6 +314,7 @@ def orientation(self): """ val = self._get_property('Orientation') return val + @property def relative_orientation(self): """Relative Orientation @@ -289,6 +323,7 @@ def relative_orientation(self): """ val = self._get_property('Relative Orientation') return val + @property def visible(self) -> bool: """Visible @@ -297,11 +332,13 @@ def visible(self) -> bool: """ val = self._get_property('Visible') return val + class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" WIRE_FRAME = "Wire-Frame" HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" OUTLINE = "Outline" + @property def render_mode(self) -> RenderModeOption: """Render Mode @@ -310,6 +347,7 @@ def render_mode(self) -> RenderModeOption: val = self._get_property('Render Mode') val = self.RenderModeOption[val] return val + @property def show_axes(self) -> bool: """Show Axes @@ -318,6 +356,7 @@ def show_axes(self) -> bool: """ val = self._get_property('Show Axes') return val + @property def min(self): """Min @@ -326,6 +365,7 @@ def min(self): """ val = self._get_property('Min') return val + @property def max(self): """Max @@ -334,6 +374,7 @@ def max(self): """ val = self._get_property('Max') return val + @property def number_of_surfaces(self) -> int: """Number of Surfaces @@ -341,6 +382,7 @@ def number_of_surfaces(self) -> int: " """ val = self._get_property('Number of Surfaces') return val + @property def color(self): """Color @@ -349,6 +391,7 @@ def color(self): """ val = self._get_property('Color') return val + @property def notes(self) -> str: """Notes @@ -356,3 +399,4 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py index dd1d7545426..d897672468e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py @@ -16,6 +16,7 @@ def filename(self) -> str: """ val = self._get_property('Filename') return val + @property def noise_temperature(self) -> float: """Noise Temperature @@ -24,6 +25,7 @@ def noise_temperature(self) -> float: """ val = self._get_property('Noise Temperature') return val + @property def notes(self) -> str: """Notes @@ -31,10 +33,12 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + class TypeOption(Enum): BYFILE = "By File" CONSTANT = "Constant Loss" COAXIAL = "Coaxial Cable" + @property def type(self) -> TypeOption: """Type @@ -43,6 +47,7 @@ def type(self) -> TypeOption: val = self._get_property('Type') val = self.TypeOption[val] return val + @property def length(self) -> float: """Length @@ -51,6 +56,7 @@ def length(self) -> float: """ val = self._get_property('Length') return val + @property def loss_per_length(self) -> float: """Loss Per Length @@ -59,6 +65,7 @@ def loss_per_length(self) -> float: """ val = self._get_property('Loss Per Length') return val + @property def measurement_length(self) -> float: """Measurement Length @@ -67,6 +74,7 @@ def measurement_length(self) -> float: """ val = self._get_property('Measurement Length') return val + @property def resistive_loss_constant(self) -> float: """Resistive Loss Constant @@ -75,6 +83,7 @@ def resistive_loss_constant(self) -> float: """ val = self._get_property('Resistive Loss Constant') return val + @property def dielectric_loss_constant(self) -> float: """Dielectric Loss Constant @@ -83,6 +92,7 @@ def dielectric_loss_constant(self) -> float: """ val = self._get_property('Dielectric Loss Constant') return val + @property def warnings(self) -> str: """Warnings @@ -90,3 +100,4 @@ def warnings(self) -> str: " """ val = self._get_property('Warnings') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py index 5a3b4fcae2a..d50ca538303 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py @@ -16,6 +16,7 @@ def filename(self) -> str: """ val = self._get_property('Filename') return val + @property def noise_temperature(self) -> float: """Noise Temperature @@ -24,6 +25,7 @@ def noise_temperature(self) -> float: """ val = self._get_property('Noise Temperature') return val + @property def notes(self) -> str: """Notes @@ -31,9 +33,11 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + class TypeOption(Enum): BYFILE = "By File" PARAMETRIC = "Parametric" + @property def type(self) -> TypeOption: """Type @@ -42,9 +46,11 @@ def type(self) -> TypeOption: val = self._get_property('Type') val = self.TypeOption[val] return val + class Port1LocationOption(Enum): RADIOSIDE = "Radio Side" ANTENNASIDE = "Antenna Side" + @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location @@ -53,6 +59,7 @@ def port_1_location(self) -> Port1LocationOption: val = self._get_property('Port 1 Location') val = self.Port1LocationOption[val] return val + @property def insertion_loss(self) -> float: """Insertion Loss @@ -61,6 +68,7 @@ def insertion_loss(self) -> float: """ val = self._get_property('Insertion Loss') return val + @property def finite_reverse_isolation(self) -> bool: """Finite Reverse Isolation @@ -69,6 +77,7 @@ def finite_reverse_isolation(self) -> bool: """ val = self._get_property('Finite Reverse Isolation') return val + @property def reverse_isolation(self) -> float: """Reverse Isolation @@ -77,6 +86,7 @@ def reverse_isolation(self) -> float: """ val = self._get_property('Reverse Isolation') return val + @property def finite_bandwidth(self) -> bool: """Finite Bandwidth @@ -85,6 +95,7 @@ def finite_bandwidth(self) -> bool: """ val = self._get_property('Finite Bandwidth') return val + @property def out_of_band_attenuation(self) -> float: """Out-of-band Attenuation @@ -93,6 +104,7 @@ def out_of_band_attenuation(self) -> float: """ val = self._get_property('Out-of-band Attenuation') return val + @property def lower_stop_band(self) -> float: """Lower Stop Band @@ -101,6 +113,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property('Lower Stop Band') return val + @property def lower_cutoff(self) -> float: """Lower Cutoff @@ -109,6 +122,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property('Lower Cutoff') return val + @property def higher_cutoff(self) -> float: """Higher Cutoff @@ -117,6 +131,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property('Higher Cutoff') return val + @property def higher_stop_band(self) -> float: """Higher Stop Band @@ -125,6 +140,7 @@ def higher_stop_band(self) -> float: """ val = self._get_property('Higher Stop Band') return val + @property def warnings(self) -> str: """Warnings @@ -132,3 +148,4 @@ def warnings(self) -> str: " """ val = self._get_property('Warnings') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py index 8901143637e..d0501cd316a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py @@ -21,6 +21,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @property def ports(self): """Ports @@ -29,3 +30,4 @@ def ports(self): " """ val = self._get_property('Ports') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py index 9eee5e56f5a..2fcba8f830e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py @@ -16,6 +16,7 @@ def minimum_allowed_coupling(self) -> float: """ val = self._get_property('Minimum Allowed Coupling') return val + @property def global_default_coupling(self) -> float: """Global Default Coupling @@ -24,6 +25,7 @@ def global_default_coupling(self) -> float: """ val = self._get_property('Global Default Coupling') return val + @property def antenna_tags(self) -> str: """Antenna Tags @@ -31,3 +33,4 @@ def antenna_tags(self) -> str: " """ val = self._get_property('Antenna Tags') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py index 35d992e800e..1d75ca8d0d0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py @@ -32,6 +32,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @property def antenna_a(self) -> EmitNode: """Antenna A @@ -39,6 +40,7 @@ def antenna_a(self) -> EmitNode: " """ val = self._get_property('Antenna A') return val + @property def antenna_b(self) -> EmitNode: """Antenna B @@ -46,6 +48,7 @@ def antenna_b(self) -> EmitNode: " """ val = self._get_property('Antenna B') return val + @property def enable_refinement(self) -> bool: """Enable Refinement @@ -54,6 +57,7 @@ def enable_refinement(self) -> bool: """ val = self._get_property('Enable Refinement') return val + @property def adaptive_sampling(self) -> bool: """Adaptive Sampling @@ -62,6 +66,7 @@ def adaptive_sampling(self) -> bool: """ val = self._get_property('Adaptive Sampling') return val + @property def refinement_domain(self): """Refinement Domain @@ -69,3 +74,4 @@ def refinement_domain(self): " """ val = self._get_property('Refinement Domain') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py index 09f9ec84714..24b99c654e3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py @@ -15,10 +15,12 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + class GroundPlaneNormalOption(Enum): XAXIS = "X Axis" YAXIS = "Y Axis" ZAXIS = "Z Axis" + @property def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal @@ -27,6 +29,7 @@ def ground_plane_normal(self) -> GroundPlaneNormalOption: val = self._get_property('Ground Plane Normal') val = self.GroundPlaneNormalOption[val] return val + @property def gp_position_along_normal(self) -> float: """GP Position Along Normal @@ -34,3 +37,4 @@ def gp_position_along_normal(self) -> float: " """ val = self._get_property('GP Position Along Normal') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py index 2116c1fe7a2..124baaf526c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py @@ -21,6 +21,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @property def base_antenna(self) -> EmitNode: """Base Antenna @@ -28,6 +29,7 @@ def base_antenna(self) -> EmitNode: " """ val = self._get_property('Base Antenna') return val + @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna @@ -35,6 +37,7 @@ def mobile_antenna(self) -> EmitNode: " """ val = self._get_property('Mobile Antenna') return val + @property def enable_refinement(self) -> bool: """Enable Refinement @@ -43,6 +46,7 @@ def enable_refinement(self) -> bool: """ val = self._get_property('Enable Refinement') return val + @property def adaptive_sampling(self) -> bool: """Adaptive Sampling @@ -51,6 +55,7 @@ def adaptive_sampling(self) -> bool: """ val = self._get_property('Adaptive Sampling') return val + @property def refinement_domain(self): """Refinement Domain @@ -58,10 +63,12 @@ def refinement_domain(self): " """ val = self._get_property('Refinement Domain') return val + class TerrainCategoryOption(Enum): TYPEA = "Type A" TYPEB = "Type B" TYPEC = "Type C" + @property def terrain_category(self) -> TerrainCategoryOption: """Terrain Category @@ -70,6 +77,7 @@ def terrain_category(self) -> TerrainCategoryOption: val = self._get_property('Terrain Category') val = self.TerrainCategoryOption[val] return val + @property def custom_fading_margin(self) -> float: """Custom Fading Margin @@ -78,6 +86,7 @@ def custom_fading_margin(self) -> float: """ val = self._get_property('Custom Fading Margin') return val + @property def polarization_mismatch(self) -> float: """Polarization Mismatch @@ -86,6 +95,7 @@ def polarization_mismatch(self) -> float: """ val = self._get_property('Polarization Mismatch') return val + @property def pointing_error_loss(self) -> float: """Pointing Error Loss @@ -94,11 +104,13 @@ def pointing_error_loss(self) -> float: """ val = self._get_property('Pointing Error Loss') return val + class FadingTypeOption(Enum): NOFADING = "None" FASTFADINGONLY = "Fast Fading Only" SHADOWINGONLY = "Shadowing Only" SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + @property def fading_type(self) -> FadingTypeOption: """Fading Type @@ -107,6 +119,7 @@ def fading_type(self) -> FadingTypeOption: val = self._get_property('Fading Type') val = self.FadingTypeOption[val] return val + @property def fading_availability(self) -> float: """Fading Availability @@ -115,6 +128,7 @@ def fading_availability(self) -> float: """ val = self._get_property('Fading Availability') return val + @property def std_deviation(self) -> float: """Std Deviation @@ -123,6 +137,7 @@ def std_deviation(self) -> float: """ val = self._get_property('Std Deviation') return val + @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation @@ -131,6 +146,7 @@ def include_rain_attenuation(self) -> bool: """ val = self._get_property('Include Rain Attenuation') return val + @property def rain_availability(self) -> float: """Rain Availability @@ -139,6 +155,7 @@ def rain_availability(self) -> float: """ val = self._get_property('Rain Availability') return val + @property def rain_rate(self) -> float: """Rain Rate @@ -147,6 +164,7 @@ def rain_rate(self) -> float: """ val = self._get_property('Rain Rate') return val + @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle @@ -155,6 +173,7 @@ def polarization_tilt_angle(self) -> float: """ val = self._get_property('Polarization Tilt Angle') return val + @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption @@ -163,6 +182,7 @@ def include_atmospheric_absorption(self) -> bool: """ val = self._get_property('Include Atmospheric Absorption') return val + @property def temperature(self) -> float: """Temperature @@ -171,6 +191,7 @@ def temperature(self) -> float: """ val = self._get_property('Temperature') return val + @property def total_air_pressure(self) -> float: """Total Air Pressure @@ -179,6 +200,7 @@ def total_air_pressure(self) -> float: """ val = self._get_property('Total Air Pressure') return val + @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration @@ -187,3 +209,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property('Water Vapor Concentration') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py index 33e4af7d952..7b513b89068 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py @@ -16,6 +16,7 @@ def filename(self) -> str: """ val = self._get_property('Filename') return val + @property def noise_temperature(self) -> float: """Noise Temperature @@ -24,6 +25,7 @@ def noise_temperature(self) -> float: """ val = self._get_property('Noise Temperature') return val + @property def notes(self) -> str: """Notes @@ -31,6 +33,7 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + class TypeOption(Enum): BYFILE = "By File" LOWPASS = "Low Pass" @@ -39,6 +42,7 @@ class TypeOption(Enum): BANDSTOP = "Band Stop" TUNABLEBANDPASS = "Tunable Bandpass" TUNABLEBANDSTOP = "Tunable Bandstop" + @property def type(self) -> TypeOption: """Type @@ -47,6 +51,7 @@ def type(self) -> TypeOption: val = self._get_property('Type') val = self.TypeOption[val] return val + @property def insertion_loss(self) -> float: """Insertion Loss @@ -55,6 +60,7 @@ def insertion_loss(self) -> float: """ val = self._get_property('Insertion Loss') return val + @property def stop_band_attenuation(self) -> float: """Stop band Attenuation @@ -63,6 +69,7 @@ def stop_band_attenuation(self) -> float: """ val = self._get_property('Stop band Attenuation') return val + @property def max_pass_band(self) -> float: """Max Pass Band @@ -71,6 +78,7 @@ def max_pass_band(self) -> float: """ val = self._get_property('Max Pass Band') return val + @property def min_stop_band(self) -> float: """Min Stop Band @@ -79,6 +87,7 @@ def min_stop_band(self) -> float: """ val = self._get_property('Min Stop Band') return val + @property def max_stop_band(self) -> float: """Max Stop Band @@ -87,6 +96,7 @@ def max_stop_band(self) -> float: """ val = self._get_property('Max Stop Band') return val + @property def min_pass_band(self) -> float: """Min Pass Band @@ -95,6 +105,7 @@ def min_pass_band(self) -> float: """ val = self._get_property('Min Pass Band') return val + @property def lower_stop_band(self) -> float: """Lower Stop Band @@ -103,6 +114,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property('Lower Stop Band') return val + @property def lower_cutoff(self) -> float: """Lower Cutoff @@ -111,6 +123,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property('Lower Cutoff') return val + @property def higher_cutoff(self) -> float: """Higher Cutoff @@ -119,6 +132,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property('Higher Cutoff') return val + @property def higher_stop_band(self) -> float: """Higher Stop Band @@ -127,6 +141,7 @@ def higher_stop_band(self) -> float: """ val = self._get_property('Higher Stop Band') return val + @property def lower_cutoff_(self) -> float: """Lower Cutoff @@ -135,6 +150,7 @@ def lower_cutoff_(self) -> float: """ val = self._get_property('Lower Cutoff ') return val + @property def lower_stop_band_(self) -> float: """Lower Stop Band @@ -143,6 +159,7 @@ def lower_stop_band_(self) -> float: """ val = self._get_property('Lower Stop Band ') return val + @property def higher_stop_band_(self) -> float: """Higher Stop Band @@ -151,6 +168,7 @@ def higher_stop_band_(self) -> float: """ val = self._get_property('Higher Stop Band ') return val + @property def higher_cutoff_(self) -> float: """Higher Cutoff @@ -159,6 +177,7 @@ def higher_cutoff_(self) -> float: """ val = self._get_property('Higher Cutoff ') return val + @property def lowest_tuned_frequency_(self) -> float: """Lowest Tuned Frequency @@ -167,6 +186,7 @@ def lowest_tuned_frequency_(self) -> float: """ val = self._get_property('Lowest Tuned Frequency ') return val + @property def highest_tuned_frequency_(self) -> float: """Highest Tuned Frequency @@ -175,6 +195,7 @@ def highest_tuned_frequency_(self) -> float: """ val = self._get_property('Highest Tuned Frequency ') return val + @property def percent_bandwidth(self) -> float: """Percent Bandwidth @@ -183,6 +204,7 @@ def percent_bandwidth(self) -> float: """ val = self._get_property('Percent Bandwidth') return val + @property def shape_factor(self) -> float: """Shape Factor @@ -191,6 +213,7 @@ def shape_factor(self) -> float: """ val = self._get_property('Shape Factor') return val + @property def warnings(self) -> str: """Warnings @@ -198,3 +221,4 @@ def warnings(self) -> str: " """ val = self._get_property('Warnings') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py index 38c1bb1c648..64c3cbbeffb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py @@ -21,6 +21,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @property def base_antenna(self) -> EmitNode: """Base Antenna @@ -28,6 +29,7 @@ def base_antenna(self) -> EmitNode: " """ val = self._get_property('Base Antenna') return val + @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna @@ -35,6 +37,7 @@ def mobile_antenna(self) -> EmitNode: " """ val = self._get_property('Mobile Antenna') return val + @property def enable_refinement(self) -> bool: """Enable Refinement @@ -43,6 +46,7 @@ def enable_refinement(self) -> bool: """ val = self._get_property('Enable Refinement') return val + @property def adaptive_sampling(self) -> bool: """Adaptive Sampling @@ -51,6 +55,7 @@ def adaptive_sampling(self) -> bool: """ val = self._get_property('Adaptive Sampling') return val + @property def refinement_domain(self): """Refinement Domain @@ -58,10 +63,12 @@ def refinement_domain(self): " """ val = self._get_property('Refinement Domain') return val + class EnvironmentOption(Enum): URBANMICROCELL = "Urban Microcell" URBANMACROCELL = "Urban Macrocell" RURALMACROCELL = "Rural Macrocell" + @property def environment(self) -> EnvironmentOption: """Environment @@ -70,6 +77,7 @@ def environment(self) -> EnvironmentOption: val = self._get_property('Environment') val = self.EnvironmentOption[val] return val + @property def los(self) -> bool: """LOS @@ -78,6 +86,7 @@ def los(self) -> bool: """ val = self._get_property('LOS') return val + @property def include_bpl(self) -> bool: """Include BPL @@ -86,9 +95,11 @@ def include_bpl(self) -> bool: """ val = self._get_property('Include BPL') return val + class NYUBPLModelOption(Enum): LOWLOSSMODEL = "Low-loss model" HIGHLOSSMODEL = "High-loss model" + @property def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model @@ -97,6 +108,7 @@ def nyu_bpl_model(self) -> NYUBPLModelOption: val = self._get_property('NYU BPL Model') val = self.NYUBPLModelOption[val] return val + @property def custom_fading_margin(self) -> float: """Custom Fading Margin @@ -105,6 +117,7 @@ def custom_fading_margin(self) -> float: """ val = self._get_property('Custom Fading Margin') return val + @property def polarization_mismatch(self) -> float: """Polarization Mismatch @@ -113,6 +126,7 @@ def polarization_mismatch(self) -> float: """ val = self._get_property('Polarization Mismatch') return val + @property def pointing_error_loss(self) -> float: """Pointing Error Loss @@ -121,11 +135,13 @@ def pointing_error_loss(self) -> float: """ val = self._get_property('Pointing Error Loss') return val + class FadingTypeOption(Enum): NOFADING = "None" FASTFADINGONLY = "Fast Fading Only" SHADOWINGONLY = "Shadowing Only" SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + @property def fading_type(self) -> FadingTypeOption: """Fading Type @@ -134,6 +150,7 @@ def fading_type(self) -> FadingTypeOption: val = self._get_property('Fading Type') val = self.FadingTypeOption[val] return val + @property def fading_availability(self) -> float: """Fading Availability @@ -142,6 +159,7 @@ def fading_availability(self) -> float: """ val = self._get_property('Fading Availability') return val + @property def std_deviation(self) -> float: """Std Deviation @@ -150,6 +168,7 @@ def std_deviation(self) -> float: """ val = self._get_property('Std Deviation') return val + @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation @@ -158,6 +177,7 @@ def include_rain_attenuation(self) -> bool: """ val = self._get_property('Include Rain Attenuation') return val + @property def rain_availability(self) -> float: """Rain Availability @@ -166,6 +186,7 @@ def rain_availability(self) -> float: """ val = self._get_property('Rain Availability') return val + @property def rain_rate(self) -> float: """Rain Rate @@ -174,6 +195,7 @@ def rain_rate(self) -> float: """ val = self._get_property('Rain Rate') return val + @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle @@ -182,6 +204,7 @@ def polarization_tilt_angle(self) -> float: """ val = self._get_property('Polarization Tilt Angle') return val + @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption @@ -190,6 +213,7 @@ def include_atmospheric_absorption(self) -> bool: """ val = self._get_property('Include Atmospheric Absorption') return val + @property def temperature(self) -> float: """Temperature @@ -198,6 +222,7 @@ def temperature(self) -> float: """ val = self._get_property('Temperature') return val + @property def total_air_pressure(self) -> float: """Total Air Pressure @@ -206,6 +231,7 @@ def total_air_pressure(self) -> float: """ val = self._get_property('Total Air Pressure') return val + @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration @@ -214,3 +240,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property('Water Vapor Concentration') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py index 852e22b9f31..8b38a6b2407 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py @@ -21,6 +21,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @property def base_antenna(self) -> EmitNode: """Base Antenna @@ -28,6 +29,7 @@ def base_antenna(self) -> EmitNode: " """ val = self._get_property('Base Antenna') return val + @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna @@ -35,6 +37,7 @@ def mobile_antenna(self) -> EmitNode: " """ val = self._get_property('Mobile Antenna') return val + @property def enable_refinement(self) -> bool: """Enable Refinement @@ -43,6 +46,7 @@ def enable_refinement(self) -> bool: """ val = self._get_property('Enable Refinement') return val + @property def adaptive_sampling(self) -> bool: """Adaptive Sampling @@ -51,6 +55,7 @@ def adaptive_sampling(self) -> bool: """ val = self._get_property('Adaptive Sampling') return val + @property def refinement_domain(self): """Refinement Domain @@ -58,11 +63,13 @@ def refinement_domain(self): " """ val = self._get_property('Refinement Domain') return val + class EnvironmentOption(Enum): LARGECITY = "Large City" SMALLMEDCITY = "Small/Medium City" SUBURBAN = "Suburban" RURAL = "Rural" + @property def environment(self) -> EnvironmentOption: """Environment @@ -71,6 +78,7 @@ def environment(self) -> EnvironmentOption: val = self._get_property('Environment') val = self.EnvironmentOption[val] return val + @property def custom_fading_margin(self) -> float: """Custom Fading Margin @@ -79,6 +87,7 @@ def custom_fading_margin(self) -> float: """ val = self._get_property('Custom Fading Margin') return val + @property def polarization_mismatch(self) -> float: """Polarization Mismatch @@ -87,6 +96,7 @@ def polarization_mismatch(self) -> float: """ val = self._get_property('Polarization Mismatch') return val + @property def pointing_error_loss(self) -> float: """Pointing Error Loss @@ -95,11 +105,13 @@ def pointing_error_loss(self) -> float: """ val = self._get_property('Pointing Error Loss') return val + class FadingTypeOption(Enum): NOFADING = "None" FASTFADINGONLY = "Fast Fading Only" SHADOWINGONLY = "Shadowing Only" SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + @property def fading_type(self) -> FadingTypeOption: """Fading Type @@ -108,6 +120,7 @@ def fading_type(self) -> FadingTypeOption: val = self._get_property('Fading Type') val = self.FadingTypeOption[val] return val + @property def fading_availability(self) -> float: """Fading Availability @@ -116,6 +129,7 @@ def fading_availability(self) -> float: """ val = self._get_property('Fading Availability') return val + @property def std_deviation(self) -> float: """Std Deviation @@ -124,6 +138,7 @@ def std_deviation(self) -> float: """ val = self._get_property('Std Deviation') return val + @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation @@ -132,6 +147,7 @@ def include_rain_attenuation(self) -> bool: """ val = self._get_property('Include Rain Attenuation') return val + @property def rain_availability(self) -> float: """Rain Availability @@ -140,6 +156,7 @@ def rain_availability(self) -> float: """ val = self._get_property('Rain Availability') return val + @property def rain_rate(self) -> float: """Rain Rate @@ -148,6 +165,7 @@ def rain_rate(self) -> float: """ val = self._get_property('Rain Rate') return val + @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle @@ -156,6 +174,7 @@ def polarization_tilt_angle(self) -> float: """ val = self._get_property('Polarization Tilt Angle') return val + @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption @@ -164,6 +183,7 @@ def include_atmospheric_absorption(self) -> bool: """ val = self._get_property('Include Atmospheric Absorption') return val + @property def temperature(self) -> float: """Temperature @@ -172,6 +192,7 @@ def temperature(self) -> float: """ val = self._get_property('Temperature') return val + @property def total_air_pressure(self) -> float: """Total Air Pressure @@ -180,6 +201,7 @@ def total_air_pressure(self) -> float: """ val = self._get_property('Total Air Pressure') return val + @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration @@ -188,3 +210,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property('Water Vapor Concentration') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py index 0a7dffcb612..ce0bf7ab6c0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py @@ -34,6 +34,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @property def antenna_a(self) -> EmitNode: """Antenna A @@ -41,6 +42,7 @@ def antenna_a(self) -> EmitNode: " """ val = self._get_property('Antenna A') return val + @property def antenna_b(self) -> EmitNode: """Antenna B @@ -48,6 +50,7 @@ def antenna_b(self) -> EmitNode: " """ val = self._get_property('Antenna B') return val + @property def enable_refinement(self) -> bool: """Enable Refinement @@ -56,6 +59,7 @@ def enable_refinement(self) -> bool: """ val = self._get_property('Enable Refinement') return val + @property def adaptive_sampling(self) -> bool: """Adaptive Sampling @@ -64,6 +68,7 @@ def adaptive_sampling(self) -> bool: """ val = self._get_property('Adaptive Sampling') return val + @property def refinement_domain(self): """Refinement Domain @@ -71,12 +76,14 @@ def refinement_domain(self): " """ val = self._get_property('Refinement Domain') return val + class BuildingTypeOption(Enum): RESIDENTIALAPARTMENT = "Residential Apartment" RESIDENTIALHOUSE = "Residential House" OFFICEBUILDING = "Office Building" COMMERCIALBUILDING = "Commercial Building" CUSTOMBUILDING = "Custom Building" + @property def building_type(self) -> BuildingTypeOption: """Building Type @@ -85,6 +92,7 @@ def building_type(self) -> BuildingTypeOption: val = self._get_property('Building Type') val = self.BuildingTypeOption[val] return val + @property def number_of_floors(self) -> int: """Number of Floors @@ -93,6 +101,7 @@ def number_of_floors(self) -> int: """ val = self._get_property('Number of Floors') return val + @property def custom_fading_margin(self) -> float: """Custom Fading Margin @@ -101,6 +110,7 @@ def custom_fading_margin(self) -> float: """ val = self._get_property('Custom Fading Margin') return val + @property def polarization_mismatch(self) -> float: """Polarization Mismatch @@ -109,6 +119,7 @@ def polarization_mismatch(self) -> float: """ val = self._get_property('Polarization Mismatch') return val + @property def pointing_error_loss(self) -> float: """Pointing Error Loss @@ -117,11 +128,13 @@ def pointing_error_loss(self) -> float: """ val = self._get_property('Pointing Error Loss') return val + class FadingTypeOption(Enum): NOFADING = "None" FASTFADINGONLY = "Fast Fading Only" SHADOWINGONLY = "Shadowing Only" SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + @property def fading_type(self) -> FadingTypeOption: """Fading Type @@ -130,6 +143,7 @@ def fading_type(self) -> FadingTypeOption: val = self._get_property('Fading Type') val = self.FadingTypeOption[val] return val + @property def fading_availability(self) -> float: """Fading Availability @@ -138,6 +152,7 @@ def fading_availability(self) -> float: """ val = self._get_property('Fading Availability') return val + @property def std_deviation(self) -> float: """Std Deviation @@ -146,6 +161,7 @@ def std_deviation(self) -> float: """ val = self._get_property('Std Deviation') return val + @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation @@ -154,6 +170,7 @@ def include_rain_attenuation(self) -> bool: """ val = self._get_property('Include Rain Attenuation') return val + @property def rain_availability(self) -> float: """Rain Availability @@ -162,6 +179,7 @@ def rain_availability(self) -> float: """ val = self._get_property('Rain Availability') return val + @property def rain_rate(self) -> float: """Rain Rate @@ -170,6 +188,7 @@ def rain_rate(self) -> float: """ val = self._get_property('Rain Rate') return val + @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle @@ -178,6 +197,7 @@ def polarization_tilt_angle(self) -> float: """ val = self._get_property('Polarization Tilt Angle') return val + @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption @@ -186,6 +206,7 @@ def include_atmospheric_absorption(self) -> bool: """ val = self._get_property('Include Atmospheric Absorption') return val + @property def temperature(self) -> float: """Temperature @@ -194,6 +215,7 @@ def temperature(self) -> float: """ val = self._get_property('Temperature') return val + @property def total_air_pressure(self) -> float: """Total Air Pressure @@ -202,6 +224,7 @@ def total_air_pressure(self) -> float: """ val = self._get_property('Total Air Pressure') return val + @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration @@ -210,3 +233,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property('Water Vapor Concentration') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py index e2b45762f64..64b83e3f425 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py @@ -16,6 +16,7 @@ def filename(self) -> str: """ val = self._get_property('Filename') return val + @property def noise_temperature(self) -> float: """Noise Temperature @@ -24,6 +25,7 @@ def noise_temperature(self) -> float: """ val = self._get_property('Noise Temperature') return val + @property def notes(self) -> str: """Notes @@ -31,9 +33,11 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + class TypeOption(Enum): BYFILE = "By File" PARAMETRIC = "Parametric" + @property def type(self) -> TypeOption: """Type @@ -42,9 +46,11 @@ def type(self) -> TypeOption: val = self._get_property('Type') val = self.TypeOption[val] return val + class Port1LocationOption(Enum): RADIOSIDE = "Radio Side" ANTENNASIDE = "Antenna Side" + @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location @@ -53,6 +59,7 @@ def port_1_location(self) -> Port1LocationOption: val = self._get_property('Port 1 Location') val = self.Port1LocationOption[val] return val + @property def insertion_loss(self) -> float: """Insertion Loss @@ -61,6 +68,7 @@ def insertion_loss(self) -> float: """ val = self._get_property('Insertion Loss') return val + @property def finite_reverse_isolation(self) -> bool: """Finite Reverse Isolation @@ -69,6 +77,7 @@ def finite_reverse_isolation(self) -> bool: """ val = self._get_property('Finite Reverse Isolation') return val + @property def reverse_isolation(self) -> float: """Reverse Isolation @@ -77,6 +86,7 @@ def reverse_isolation(self) -> float: """ val = self._get_property('Reverse Isolation') return val + @property def finite_bandwidth(self) -> bool: """Finite Bandwidth @@ -85,6 +95,7 @@ def finite_bandwidth(self) -> bool: """ val = self._get_property('Finite Bandwidth') return val + @property def out_of_band_attenuation(self) -> float: """Out-of-band Attenuation @@ -93,6 +104,7 @@ def out_of_band_attenuation(self) -> float: """ val = self._get_property('Out-of-band Attenuation') return val + @property def lower_stop_band(self) -> float: """Lower Stop Band @@ -101,6 +113,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property('Lower Stop Band') return val + @property def lower_cutoff(self) -> float: """Lower Cutoff @@ -109,6 +122,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property('Lower Cutoff') return val + @property def higher_cutoff(self) -> float: """Higher Cutoff @@ -117,6 +131,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property('Higher Cutoff') return val + @property def higher_stop_band(self) -> float: """Higher Stop Band @@ -125,6 +140,7 @@ def higher_stop_band(self) -> float: """ val = self._get_property('Higher Stop Band') return val + @property def warnings(self) -> str: """Warnings @@ -132,3 +148,4 @@ def warnings(self) -> str: " """ val = self._get_property('Warnings') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py index 4d27538b3d3..90f4fcda7bf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py @@ -21,6 +21,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @property def antenna_a(self) -> EmitNode: """Antenna A @@ -28,6 +29,7 @@ def antenna_a(self) -> EmitNode: " """ val = self._get_property('Antenna A') return val + @property def antenna_b(self) -> EmitNode: """Antenna B @@ -35,6 +37,7 @@ def antenna_b(self) -> EmitNode: " """ val = self._get_property('Antenna B') return val + @property def enable_refinement(self) -> bool: """Enable Refinement @@ -43,6 +46,7 @@ def enable_refinement(self) -> bool: """ val = self._get_property('Enable Refinement') return val + @property def adaptive_sampling(self) -> bool: """Adaptive Sampling @@ -51,6 +55,7 @@ def adaptive_sampling(self) -> bool: """ val = self._get_property('Adaptive Sampling') return val + @property def refinement_domain(self): """Refinement Domain @@ -58,6 +63,7 @@ def refinement_domain(self): " """ val = self._get_property('Refinement Domain') return val + class EnvironmentOption(Enum): FREESPACE = "Free Space" URBAN = "Urban" @@ -66,6 +72,7 @@ class EnvironmentOption(Enum): BUILDINGOBSTRUCTED = "Building - Obstructed" FACTORYOBSTRUCTED = "Factory - Obstructed" CUSTOMEXPONENT = "Custom" + @property def environment(self) -> EnvironmentOption: """Environment @@ -74,6 +81,7 @@ def environment(self) -> EnvironmentOption: val = self._get_property('Environment') val = self.EnvironmentOption[val] return val + @property def path_loss_exponent(self) -> float: """Path Loss Exponent @@ -82,6 +90,7 @@ def path_loss_exponent(self) -> float: """ val = self._get_property('Path Loss Exponent') return val + @property def custom_fading_margin(self) -> float: """Custom Fading Margin @@ -90,6 +99,7 @@ def custom_fading_margin(self) -> float: """ val = self._get_property('Custom Fading Margin') return val + @property def polarization_mismatch(self) -> float: """Polarization Mismatch @@ -98,6 +108,7 @@ def polarization_mismatch(self) -> float: """ val = self._get_property('Polarization Mismatch') return val + @property def pointing_error_loss(self) -> float: """Pointing Error Loss @@ -106,11 +117,13 @@ def pointing_error_loss(self) -> float: """ val = self._get_property('Pointing Error Loss') return val + class FadingTypeOption(Enum): NOFADING = "None" FASTFADINGONLY = "Fast Fading Only" SHADOWINGONLY = "Shadowing Only" SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + @property def fading_type(self) -> FadingTypeOption: """Fading Type @@ -119,6 +132,7 @@ def fading_type(self) -> FadingTypeOption: val = self._get_property('Fading Type') val = self.FadingTypeOption[val] return val + @property def fading_availability(self) -> float: """Fading Availability @@ -127,6 +141,7 @@ def fading_availability(self) -> float: """ val = self._get_property('Fading Availability') return val + @property def std_deviation(self) -> float: """Std Deviation @@ -135,6 +150,7 @@ def std_deviation(self) -> float: """ val = self._get_property('Std Deviation') return val + @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation @@ -143,6 +159,7 @@ def include_rain_attenuation(self) -> bool: """ val = self._get_property('Include Rain Attenuation') return val + @property def rain_availability(self) -> float: """Rain Availability @@ -151,6 +168,7 @@ def rain_availability(self) -> float: """ val = self._get_property('Rain Availability') return val + @property def rain_rate(self) -> float: """Rain Rate @@ -159,6 +177,7 @@ def rain_rate(self) -> float: """ val = self._get_property('Rain Rate') return val + @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle @@ -167,6 +186,7 @@ def polarization_tilt_angle(self) -> float: """ val = self._get_property('Polarization Tilt Angle') return val + @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption @@ -175,6 +195,7 @@ def include_atmospheric_absorption(self) -> bool: """ val = self._get_property('Include Atmospheric Absorption') return val + @property def temperature(self) -> float: """Temperature @@ -183,6 +204,7 @@ def temperature(self) -> float: """ val = self._get_property('Temperature') return val + @property def total_air_pressure(self) -> float: """Total Air Pressure @@ -191,6 +213,7 @@ def total_air_pressure(self) -> float: """ val = self._get_property('Total Air Pressure') return val + @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration @@ -199,3 +222,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property('Water Vapor Concentration') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py index 79dd81a2c95..01c9cb7e815 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py @@ -16,6 +16,7 @@ def filename(self) -> str: """ val = self._get_property('Filename') return val + @property def noise_temperature(self) -> float: """Noise Temperature @@ -24,6 +25,7 @@ def noise_temperature(self) -> float: """ val = self._get_property('Noise Temperature') return val + @property def notes(self) -> str: """Notes @@ -31,9 +33,11 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + class TypeOption(Enum): PARAMETRIC = "By Pass Band" BYFILE = "By File" + @property def type(self) -> TypeOption: """Type @@ -42,9 +46,11 @@ def type(self) -> TypeOption: val = self._get_property('Type') val = self.TypeOption[val] return val + class Port1LocationOption(Enum): RADIOSIDE = "Radio Side" ANTENNASIDE = "Antenna Side" + @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location @@ -53,6 +59,7 @@ def port_1_location(self) -> Port1LocationOption: val = self._get_property('Port 1 Location') val = self.Port1LocationOption[val] return val + @property def flip_ports_vertically(self) -> bool: """Flip Ports Vertically @@ -61,6 +68,7 @@ def flip_ports_vertically(self) -> bool: """ val = self._get_property('Flip Ports Vertically') return val + @property def ports(self): """Ports @@ -69,6 +77,7 @@ def ports(self): " """ val = self._get_property('Ports') return val + @property def warnings(self) -> str: """Warnings @@ -76,3 +85,4 @@ def warnings(self) -> str: " """ val = self._get_property('Warnings') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py index 24612b45492..7e59952f9b4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py @@ -18,6 +18,7 @@ class TypeOption(Enum): LOWPASS = "Low Pass" HIGHPASS = "High Pass" BANDPASS = "Band Pass" + @property def type(self) -> TypeOption: """Type @@ -26,6 +27,7 @@ def type(self) -> TypeOption: val = self._get_property('Type') val = self.TypeOption[val] return val + @property def filename(self) -> str: """Filename @@ -34,6 +36,7 @@ def filename(self) -> str: """ val = self._get_property('Filename') return val + @property def insertion_loss(self) -> float: """Insertion Loss @@ -42,6 +45,7 @@ def insertion_loss(self) -> float: """ val = self._get_property('Insertion Loss') return val + @property def stop_band_attenuation(self) -> float: """Stop band Attenuation @@ -50,6 +54,7 @@ def stop_band_attenuation(self) -> float: """ val = self._get_property('Stop band Attenuation') return val + @property def max_pass_band(self) -> float: """Max Pass Band @@ -58,6 +63,7 @@ def max_pass_band(self) -> float: """ val = self._get_property('Max Pass Band') return val + @property def min_stop_band(self) -> float: """Min Stop Band @@ -66,6 +72,7 @@ def min_stop_band(self) -> float: """ val = self._get_property('Min Stop Band') return val + @property def max_stop_band(self) -> float: """Max Stop Band @@ -74,6 +81,7 @@ def max_stop_band(self) -> float: """ val = self._get_property('Max Stop Band') return val + @property def min_pass_band(self) -> float: """Min Pass Band @@ -82,6 +90,7 @@ def min_pass_band(self) -> float: """ val = self._get_property('Min Pass Band') return val + @property def lower_stop_band(self) -> float: """Lower Stop Band @@ -90,6 +99,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property('Lower Stop Band') return val + @property def lower_cutoff(self) -> float: """Lower Cutoff @@ -98,6 +108,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property('Lower Cutoff') return val + @property def higher_cutoff(self) -> float: """Higher Cutoff @@ -106,6 +117,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property('Higher Cutoff') return val + @property def higher_stop_band(self) -> float: """Higher Stop Band @@ -114,6 +126,7 @@ def higher_stop_band(self) -> float: """ val = self._get_property('Higher Stop Band') return val + @property def warnings(self) -> str: """Warnings @@ -121,3 +134,4 @@ def warnings(self) -> str: " """ val = self._get_property('Warnings') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py index 81bae59ed4c..383f5e52511 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py @@ -16,6 +16,7 @@ def filename(self) -> str: """ val = self._get_property('Filename') return val + @property def noise_temperature(self) -> float: """Noise Temperature @@ -24,6 +25,7 @@ def noise_temperature(self) -> float: """ val = self._get_property('Noise Temperature') return val + @property def notes(self) -> str: """Notes @@ -31,10 +33,12 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + class TypeOption(Enum): BYFILE = "By File" _3DB = "3 dB" RESISTIVE = "Resistive" + @property def type(self) -> TypeOption: """Type @@ -43,9 +47,11 @@ def type(self) -> TypeOption: val = self._get_property('Type') val = self.TypeOption[val] return val + class OrientationOption(Enum): RADIOSIDE = "Divider" ANTENNASIDE = "Combiner" + @property def orientation(self) -> OrientationOption: """Orientation @@ -54,6 +60,7 @@ def orientation(self) -> OrientationOption: val = self._get_property('Orientation') val = self.OrientationOption[val] return val + @property def insertion_loss_above_ideal(self) -> float: """Insertion Loss Above Ideal @@ -62,6 +69,7 @@ def insertion_loss_above_ideal(self) -> float: """ val = self._get_property('Insertion Loss Above Ideal') return val + @property def finite_isolation(self) -> bool: """Finite Isolation @@ -70,6 +78,7 @@ def finite_isolation(self) -> bool: """ val = self._get_property('Finite Isolation') return val + @property def isolation(self) -> float: """Isolation @@ -78,6 +87,7 @@ def isolation(self) -> float: """ val = self._get_property('Isolation') return val + @property def finite_bandwidth(self) -> bool: """Finite Bandwidth @@ -86,6 +96,7 @@ def finite_bandwidth(self) -> bool: """ val = self._get_property('Finite Bandwidth') return val + @property def out_of_band_attenuation(self) -> float: """Out-of-band Attenuation @@ -94,6 +105,7 @@ def out_of_band_attenuation(self) -> float: """ val = self._get_property('Out-of-band Attenuation') return val + @property def lower_stop_band(self) -> float: """Lower Stop Band @@ -102,6 +114,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property('Lower Stop Band') return val + @property def lower_cutoff(self) -> float: """Lower Cutoff @@ -110,6 +123,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property('Lower Cutoff') return val + @property def higher_cutoff(self) -> float: """Higher Cutoff @@ -118,6 +132,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property('Higher Cutoff') return val + @property def higher_stop_band(self) -> float: """Higher Stop Band @@ -126,6 +141,7 @@ def higher_stop_band(self) -> float: """ val = self._get_property('Higher Stop Band') return val + @property def warnings(self) -> str: """Warnings @@ -133,3 +149,4 @@ def warnings(self) -> str: " """ val = self._get_property('Warnings') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py index 6d18ef96d66..9d9f13a00e1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py @@ -21,6 +21,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @property def antenna_a(self) -> EmitNode: """Antenna A @@ -28,6 +29,7 @@ def antenna_a(self) -> EmitNode: " """ val = self._get_property('Antenna A') return val + @property def antenna_b(self) -> EmitNode: """Antenna B @@ -35,6 +37,7 @@ def antenna_b(self) -> EmitNode: " """ val = self._get_property('Antenna B') return val + @property def enable_refinement(self) -> bool: """Enable Refinement @@ -43,6 +46,7 @@ def enable_refinement(self) -> bool: """ val = self._get_property('Enable Refinement') return val + @property def adaptive_sampling(self) -> bool: """Adaptive Sampling @@ -51,6 +55,7 @@ def adaptive_sampling(self) -> bool: """ val = self._get_property('Adaptive Sampling') return val + @property def refinement_domain(self): """Refinement Domain @@ -58,6 +63,7 @@ def refinement_domain(self): " """ val = self._get_property('Refinement Domain') return val + @property def custom_fading_margin(self) -> float: """Custom Fading Margin @@ -66,6 +72,7 @@ def custom_fading_margin(self) -> float: """ val = self._get_property('Custom Fading Margin') return val + @property def polarization_mismatch(self) -> float: """Polarization Mismatch @@ -74,6 +81,7 @@ def polarization_mismatch(self) -> float: """ val = self._get_property('Polarization Mismatch') return val + @property def pointing_error_loss(self) -> float: """Pointing Error Loss @@ -82,11 +90,13 @@ def pointing_error_loss(self) -> float: """ val = self._get_property('Pointing Error Loss') return val + class FadingTypeOption(Enum): NOFADING = "None" FASTFADINGONLY = "Fast Fading Only" SHADOWINGONLY = "Shadowing Only" SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + @property def fading_type(self) -> FadingTypeOption: """Fading Type @@ -95,6 +105,7 @@ def fading_type(self) -> FadingTypeOption: val = self._get_property('Fading Type') val = self.FadingTypeOption[val] return val + @property def fading_availability(self) -> float: """Fading Availability @@ -103,6 +114,7 @@ def fading_availability(self) -> float: """ val = self._get_property('Fading Availability') return val + @property def std_deviation(self) -> float: """Std Deviation @@ -111,6 +123,7 @@ def std_deviation(self) -> float: """ val = self._get_property('Std Deviation') return val + @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation @@ -119,6 +132,7 @@ def include_rain_attenuation(self) -> bool: """ val = self._get_property('Include Rain Attenuation') return val + @property def rain_availability(self) -> float: """Rain Availability @@ -127,6 +141,7 @@ def rain_availability(self) -> float: """ val = self._get_property('Rain Availability') return val + @property def rain_rate(self) -> float: """Rain Rate @@ -135,6 +150,7 @@ def rain_rate(self) -> float: """ val = self._get_property('Rain Rate') return val + @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle @@ -143,6 +159,7 @@ def polarization_tilt_angle(self) -> float: """ val = self._get_property('Polarization Tilt Angle') return val + @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption @@ -151,6 +168,7 @@ def include_atmospheric_absorption(self) -> bool: """ val = self._get_property('Include Atmospheric Absorption') return val + @property def temperature(self) -> float: """Temperature @@ -159,6 +177,7 @@ def temperature(self) -> float: """ val = self._get_property('Temperature') return val + @property def total_air_pressure(self) -> float: """Total Air Pressure @@ -167,6 +186,7 @@ def total_air_pressure(self) -> float: """ val = self._get_property('Total Air Pressure') return val + @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration @@ -175,3 +195,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property('Water Vapor Concentration') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py index e39c17953ab..ed9b3dec075 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py @@ -29,3 +29,4 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py index c699808a892..9e2d8f93781 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py @@ -21,6 +21,7 @@ def enable_passive_noise(self) -> bool: """ val = self._get_property('Enable Passive Noise') return val + @property def enforce_thermal_noise_floor(self) -> bool: """Enforce Thermal Noise Floor @@ -29,3 +30,4 @@ def enforce_thermal_noise_floor(self) -> bool: """ val = self._get_property('Enforce Thermal Noise Floor') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py index e744d1bbf46..f6e1736e7e6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py @@ -21,6 +21,7 @@ def file(self) -> str: """ val = self._get_property('File') return val + @property def source_file(self) -> str: """Source File @@ -29,6 +30,7 @@ def source_file(self) -> str: """ val = self._get_property('Source File') return val + @property def receive_frequency(self) -> float: """Receive Frequency @@ -36,10 +38,12 @@ def receive_frequency(self) -> float: " """ val = self._get_property('Receive Frequency') return val + class MeasurementModeOption(Enum): AUDIO_SINAD = "Audio SINAD" DIGITAL_BER = "Digital BER" GPS_CNR = "GPS CNR" + @property def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode @@ -48,6 +52,7 @@ def measurement_mode(self) -> MeasurementModeOption: val = self._get_property('Measurement Mode') val = self.MeasurementModeOption[val] return val + @property def sinad_threshold(self) -> float: """SINAD Threshold @@ -56,6 +61,7 @@ def sinad_threshold(self) -> float: """ val = self._get_property('SINAD Threshold') return val + @property def gps_cnr_threshold(self) -> float: """GPS CNR Threshold @@ -64,6 +70,7 @@ def gps_cnr_threshold(self) -> float: """ val = self._get_property('GPS CNR Threshold') return val + @property def ber_threshold(self) -> float: """BER Threshold @@ -72,6 +79,7 @@ def ber_threshold(self) -> float: """ val = self._get_property('BER Threshold') return val + @property def default_intended_power(self) -> bool: """Default Intended Power @@ -80,6 +88,7 @@ def default_intended_power(self) -> bool: """ val = self._get_property('Default Intended Power') return val + @property def intended_signal_power(self) -> float: """Intended Signal Power @@ -88,6 +97,7 @@ def intended_signal_power(self) -> float: """ val = self._get_property('Intended Signal Power') return val + @property def freq_deviation(self) -> float: """Freq. Deviation @@ -96,6 +106,7 @@ def freq_deviation(self) -> float: """ val = self._get_property('Freq. Deviation') return val + @property def modulation_depth(self) -> float: """Modulation Depth @@ -104,6 +115,7 @@ def modulation_depth(self) -> float: """ val = self._get_property('Modulation Depth') return val + @property def measure_selectivity(self) -> bool: """Measure Selectivity @@ -112,6 +124,7 @@ def measure_selectivity(self) -> bool: """ val = self._get_property('Measure Selectivity') return val + @property def measure_mixer_products(self) -> bool: """Measure Mixer Products @@ -120,6 +133,7 @@ def measure_mixer_products(self) -> bool: """ val = self._get_property('Measure Mixer Products') return val + @property def max_rf_order(self) -> int: """Max RF Order @@ -128,6 +142,7 @@ def max_rf_order(self) -> int: """ val = self._get_property('Max RF Order') return val + @property def max_lo_order(self) -> int: """Max LO Order @@ -136,6 +151,7 @@ def max_lo_order(self) -> int: """ val = self._get_property('Max LO Order') return val + @property def include_if(self) -> bool: """Include IF @@ -144,6 +160,7 @@ def include_if(self) -> bool: """ val = self._get_property('Include IF') return val + @property def measure_saturation(self) -> bool: """Measure Saturation @@ -152,6 +169,7 @@ def measure_saturation(self) -> bool: """ val = self._get_property('Measure Saturation') return val + @property def use_ams_limits(self) -> bool: """Use AMS Limits @@ -160,6 +178,7 @@ def use_ams_limits(self) -> bool: """ val = self._get_property('Use AMS Limits') return val + @property def start_frequency(self) -> float: """Start Frequency @@ -168,6 +187,7 @@ def start_frequency(self) -> float: """ val = self._get_property('Start Frequency') return val + @property def stop_frequency(self) -> float: """Stop Frequency @@ -176,6 +196,7 @@ def stop_frequency(self) -> float: """ val = self._get_property('Stop Frequency') return val + @property def samples(self) -> int: """Samples @@ -184,6 +205,7 @@ def samples(self) -> int: """ val = self._get_property('Samples') return val + @property def exclude_mixer_products_below_noise(self) -> bool: """Exclude Mixer Products Below Noise @@ -192,3 +214,4 @@ def exclude_mixer_products_below_noise(self) -> bool: """ val = self._get_property('Exclude Mixer Products Below Noise') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py index 1aadc35bb9d..1f20689f9b5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py @@ -17,6 +17,7 @@ class MixerProductTaperOption(Enum): CONSTANT = "Constant" MIL_STD_461G = "MIL-STD-461G" DUFF_MODEL = "Duff Model" + @property def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper @@ -25,6 +26,7 @@ def mixer_product_taper(self) -> MixerProductTaperOption: val = self._get_property('Mixer Product Taper') val = self.MixerProductTaperOption[val] return val + @property def mixer_product_susceptibility(self) -> float: """Mixer Product Susceptibility @@ -33,6 +35,7 @@ def mixer_product_susceptibility(self) -> float: """ val = self._get_property('Mixer Product Susceptibility') return val + @property def spurious_rejection(self) -> float: """Spurious Rejection @@ -41,6 +44,7 @@ def spurious_rejection(self) -> float: """ val = self._get_property('Spurious Rejection') return val + @property def minimum_tuning_frequency(self) -> float: """Minimum Tuning Frequency @@ -49,6 +53,7 @@ def minimum_tuning_frequency(self) -> float: """ val = self._get_property('Minimum Tuning Frequency') return val + @property def maximum_tuning_frequency(self) -> float: """Maximum Tuning Frequency @@ -57,6 +62,7 @@ def maximum_tuning_frequency(self) -> float: """ val = self._get_property('Maximum Tuning Frequency') return val + @property def mixer_product_slope(self) -> float: """Mixer Product Slope @@ -65,6 +71,7 @@ def mixer_product_slope(self) -> float: """ val = self._get_property('Mixer Product Slope') return val + @property def mixer_product_intercept(self) -> float: """Mixer Product Intercept @@ -73,6 +80,7 @@ def mixer_product_intercept(self) -> float: """ val = self._get_property('Mixer Product Intercept') return val + @property def _80_db_bandwidth(self) -> float: """80 dB Bandwidth @@ -81,6 +89,7 @@ def _80_db_bandwidth(self) -> float: """ val = self._get_property('80 dB Bandwidth') return val + @property def image_rejection(self) -> float: """Image Rejection @@ -89,6 +98,7 @@ def image_rejection(self) -> float: """ val = self._get_property('Image Rejection') return val + @property def maximum_rf_harmonic_order(self) -> int: """Maximum RF Harmonic Order @@ -97,6 +107,7 @@ def maximum_rf_harmonic_order(self) -> int: """ val = self._get_property('Maximum RF Harmonic Order') return val + @property def maximum_lo_harmonic_order(self) -> int: """Maximum LO Harmonic Order @@ -105,10 +116,12 @@ def maximum_lo_harmonic_order(self) -> int: """ val = self._get_property('Maximum LO Harmonic Order') return val + class MixingModeOption(Enum): ABOVETUNEDFREQUENCY = "LO Above Tuned (RF) Frequency" BELOWTUNEDFREQUENCY = "LO Below Tuned (RF) Frequency" BOTHTUNEDFREQUENCIES = "LO Above/Below Tuned (RF) Frequency" + @property def mixing_mode(self) -> MixingModeOption: """Mixing Mode @@ -117,6 +130,7 @@ def mixing_mode(self) -> MixingModeOption: val = self._get_property('Mixing Mode') val = self.MixingModeOption[val] return val + @property def _1st_if_frequency(self): """1st IF Frequency @@ -125,6 +139,7 @@ def _1st_if_frequency(self): """ val = self._get_property('1st IF Frequency') return val + @property def rf_transition_frequency(self) -> float: """RF Transition Frequency @@ -132,9 +147,11 @@ def rf_transition_frequency(self) -> float: " """ val = self._get_property('RF Transition Frequency') return val + class UseHighLOOption(Enum): ABOVETRANSITION = "Above Transition Frequency" BELOWTRANSITION = "Below Transition Frequency" + @property def use_high_lo(self) -> UseHighLOOption: """Use High LO @@ -143,9 +160,11 @@ def use_high_lo(self) -> UseHighLOOption: val = self._get_property('Use High LO') val = self.UseHighLOOption[val] return val + class MixerProductTableUnitsOption(Enum): ABSOLUTE = "Absolute" RELATIVE = "Relative" + @property def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units @@ -154,3 +173,4 @@ def mixer_product_table_units(self) -> MixerProductTableUnitsOption: val = self._get_property('Mixer Product Table Units') val = self.MixerProductTableUnitsOption[val] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py index 9b49cea5577..4d8b26c828e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py @@ -21,3 +21,4 @@ def use_arithmetic_mean(self) -> bool: """ val = self._get_property('Use Arithmetic Mean') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py index e12cf1192b8..a18214b65ce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py @@ -29,6 +29,7 @@ def table_data(self): class SpurTableUnitsOption(Enum): ABSOLUTE = "Absolute" RELATIVE = "Relative" + @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units @@ -37,3 +38,4 @@ def spur_table_units(self) -> SpurTableUnitsOption: val = self._get_property('Spur Table Units') val = self.SpurTableUnitsOption[val] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py index 7dc04ba8f3f..fc5f0fd84b2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py @@ -18,6 +18,7 @@ class SensitivityUnitsOption(Enum): DBUV = "dBuV" MILLIWATTS = "milliwatts" MICROVOLTS = "microvolts" + @property def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units @@ -26,6 +27,7 @@ def sensitivity_units(self) -> SensitivityUnitsOption: val = self._get_property('Sensitivity Units') val = self.SensitivityUnitsOption[val] return val + @property def min_receive_signal_pwr_(self) -> float: """Min. Receive Signal Pwr @@ -34,6 +36,7 @@ def min_receive_signal_pwr_(self) -> float: """ val = self._get_property('Min. Receive Signal Pwr ') return val + @property def snr_at_rx_signal_pwr(self) -> float: """SNR at Rx Signal Pwr @@ -42,6 +45,7 @@ def snr_at_rx_signal_pwr(self) -> float: """ val = self._get_property('SNR at Rx Signal Pwr') return val + @property def processing_gain(self) -> float: """Processing Gain @@ -50,6 +54,7 @@ def processing_gain(self) -> float: """ val = self._get_property('Processing Gain') return val + @property def apply_pg_to_narrowband_only(self) -> bool: """Apply PG to Narrowband Only @@ -58,6 +63,7 @@ def apply_pg_to_narrowband_only(self) -> bool: """ val = self._get_property('Apply PG to Narrowband Only') return val + @property def saturation_level(self) -> float: """Saturation Level @@ -66,6 +72,7 @@ def saturation_level(self) -> float: """ val = self._get_property('Saturation Level') return val + @property def rx_noise_figure(self) -> float: """Rx Noise Figure @@ -74,6 +81,7 @@ def rx_noise_figure(self) -> float: """ val = self._get_property('Rx Noise Figure') return val + @property def receiver_sensitivity_(self) -> float: """Receiver Sensitivity @@ -82,6 +90,7 @@ def receiver_sensitivity_(self) -> float: """ val = self._get_property('Receiver Sensitivity ') return val + @property def snrsinad_at_sensitivity_(self) -> float: """SNR/SINAD at Sensitivity @@ -90,6 +99,7 @@ def snrsinad_at_sensitivity_(self) -> float: """ val = self._get_property('SNR/SINAD at Sensitivity ') return val + @property def perform_rx_intermod_analysis(self) -> bool: """Perform Rx Intermod Analysis @@ -98,6 +108,7 @@ def perform_rx_intermod_analysis(self) -> bool: """ val = self._get_property('Perform Rx Intermod Analysis') return val + @property def amplifier_saturation_level(self) -> float: """Amplifier Saturation Level @@ -106,6 +117,7 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property('Amplifier Saturation Level') return val + @property def _1_db_point_ref_input_(self) -> float: """1-dB Point, Ref. Input @@ -114,6 +126,7 @@ def _1_db_point_ref_input_(self) -> float: """ val = self._get_property('1-dB Point, Ref. Input ') return val + @property def ip3_ref_input(self) -> float: """IP3, Ref. Input @@ -122,6 +135,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property('IP3, Ref. Input') return val + @property def max_intermod_order(self) -> int: """Max Intermod Order @@ -130,3 +144,4 @@ def max_intermod_order(self) -> int: """ val = self._get_property('Max Intermod Order') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py index 8450a6741f3..c45aa154bda 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py @@ -28,6 +28,7 @@ class SamplingTypeOption(Enum): SAMPLEALLCHANNELS = "Sample All Channels in Range(s)" RANDOMSAMPLING = "Random Sampling" UNIFORMSAMPLING = "Uniform Sampling" + @property def sampling_type(self) -> SamplingTypeOption: """Sampling Type @@ -36,6 +37,7 @@ def sampling_type(self) -> SamplingTypeOption: val = self._get_property('Sampling Type') val = self.SamplingTypeOption[val] return val + @property def specify_percentage(self) -> bool: """Specify Percentage @@ -44,6 +46,7 @@ def specify_percentage(self) -> bool: """ val = self._get_property('Specify Percentage') return val + @property def percentage_of_channels(self) -> float: """Percentage of Channels @@ -52,6 +55,7 @@ def percentage_of_channels(self) -> float: """ val = self._get_property('Percentage of Channels') return val + @property def max__channelsrangeband(self) -> int: """Max # Channels/Range/Band @@ -60,6 +64,7 @@ def max__channelsrangeband(self) -> int: """ val = self._get_property('Max # Channels/Range/Band') return val + @property def seed(self) -> int: """Seed @@ -68,6 +73,7 @@ def seed(self) -> int: """ val = self._get_property('Seed') return val + @property def total_tx_channels(self) -> int: """Total Tx Channels @@ -75,6 +81,7 @@ def total_tx_channels(self) -> int: " """ val = self._get_property('Total Tx Channels') return val + @property def total_rx_channels(self) -> int: """Total Rx Channels @@ -82,6 +89,7 @@ def total_rx_channels(self) -> int: " """ val = self._get_property('Total Rx Channels') return val + @property def warnings(self) -> str: """Warnings @@ -89,3 +97,4 @@ def warnings(self) -> str: " """ val = self._get_property('Warnings') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py index afc49eacbf3..3d66bf882df 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py @@ -21,6 +21,7 @@ def show_relative_coordinates(self) -> bool: """ val = self._get_property('Show Relative Coordinates') return val + @property def position(self): """Position @@ -29,6 +30,7 @@ def position(self): """ val = self._get_property('Position') return val + @property def relative_position(self): """Relative Position @@ -37,9 +39,11 @@ def relative_position(self): """ val = self._get_property('Relative Position') return val + class OrientationModeOption(Enum): RPYDEG = "Roll-Pitch-Yaw" AETDEG = "Az-El-Twist" + @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode @@ -48,6 +52,7 @@ def orientation_mode(self) -> OrientationModeOption: val = self._get_property('Orientation Mode') val = self.OrientationModeOption[val] return val + @property def orientation(self): """Orientation @@ -56,6 +61,7 @@ def orientation(self): """ val = self._get_property('Orientation') return val + @property def relative_orientation(self): """Relative Orientation @@ -64,6 +70,7 @@ def relative_orientation(self): """ val = self._get_property('Relative Orientation') return val + @property def show_axes(self) -> bool: """Show Axes @@ -72,6 +79,7 @@ def show_axes(self) -> bool: """ val = self._get_property('Show Axes') return val + @property def box_color(self): """Box Color @@ -80,6 +88,7 @@ def box_color(self): """ val = self._get_property('Box Color') return val + @property def notes(self) -> str: """Notes @@ -87,3 +96,4 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py index ca9f96e884e..83fd654fb64 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py @@ -21,6 +21,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @property def enable_refinement(self) -> bool: """Enable Refinement @@ -29,6 +30,7 @@ def enable_refinement(self) -> bool: """ val = self._get_property('Enable Refinement') return val + @property def adaptive_sampling(self) -> bool: """Adaptive Sampling @@ -37,6 +39,7 @@ def adaptive_sampling(self) -> bool: """ val = self._get_property('Adaptive Sampling') return val + @property def refinement_domain(self): """Refinement Domain @@ -44,3 +47,4 @@ def refinement_domain(self): " """ val = self._get_property('Refinement Domain') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py index 51af5edd509..9ba7b635990 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py @@ -21,3 +21,4 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py index ee00213873f..5e83bb13e57 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py @@ -16,6 +16,7 @@ def file(self) -> str: """ val = self._get_property('File') return val + @property def noise_temperature(self) -> float: """Noise Temperature @@ -24,6 +25,7 @@ def noise_temperature(self) -> float: """ val = self._get_property('Noise Temperature') return val + @property def notes(self) -> str: """Notes @@ -31,6 +33,7 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + @property def radio_side_ports(self): """Radio Side Ports @@ -39,6 +42,7 @@ def radio_side_ports(self): " """ val = self._get_property('Radio Side Ports') return val + @property def antenna_side_ports(self): """Antenna Side Ports @@ -47,6 +51,7 @@ def antenna_side_ports(self): " """ val = self._get_property('Antenna Side Ports') return val + @property def warnings(self) -> str: """Warnings @@ -54,3 +59,4 @@ def warnings(self) -> str: " """ val = self._get_property('Warnings') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py index 886a8af3501..a3e802b0d21 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -16,6 +16,7 @@ def filename(self) -> str: """ val = self._get_property('Filename') return val + @property def noise_temperature(self) -> float: """Noise Temperature @@ -24,6 +25,7 @@ def noise_temperature(self) -> float: """ val = self._get_property('Noise Temperature') return val + @property def notes(self) -> str: """Notes @@ -31,9 +33,11 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + class TxPortOption(Enum): _0 = "Port 1" _1 = "Port 2" + @property def tx_port(self) -> TxPortOption: """Tx Port @@ -42,9 +46,11 @@ def tx_port(self) -> TxPortOption: val = self._get_property('Tx Port') val = self.TxPortOption[val] return val + class CommonPortLocationOption(Enum): RADIOSIDE = "Radio Side" ANTENNASIDE = "Antenna Side" + @property def common_port_location(self) -> CommonPortLocationOption: """Common Port Location @@ -53,6 +59,7 @@ def common_port_location(self) -> CommonPortLocationOption: val = self._get_property('Common Port Location') val = self.CommonPortLocationOption[val] return val + @property def insertion_loss(self) -> float: """Insertion Loss @@ -61,6 +68,7 @@ def insertion_loss(self) -> float: """ val = self._get_property('Insertion Loss') return val + @property def finite_isolation(self) -> bool: """Finite Isolation @@ -69,6 +77,7 @@ def finite_isolation(self) -> bool: """ val = self._get_property('Finite Isolation') return val + @property def isolation(self) -> float: """Isolation @@ -77,6 +86,7 @@ def isolation(self) -> float: """ val = self._get_property('Isolation') return val + @property def finite_bandwidth(self) -> bool: """Finite Bandwidth @@ -85,6 +95,7 @@ def finite_bandwidth(self) -> bool: """ val = self._get_property('Finite Bandwidth') return val + @property def out_of_band_attenuation(self) -> float: """Out-of-band Attenuation @@ -93,6 +104,7 @@ def out_of_band_attenuation(self) -> float: """ val = self._get_property('Out-of-band Attenuation') return val + @property def lower_stop_band(self) -> float: """Lower Stop Band @@ -101,6 +113,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property('Lower Stop Band') return val + @property def lower_cutoff(self) -> float: """Lower Cutoff @@ -109,6 +122,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property('Lower Cutoff') return val + @property def higher_cutoff(self) -> float: """Higher Cutoff @@ -117,6 +131,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property('Higher Cutoff') return val + @property def higher_stop_band(self) -> float: """Higher Stop Band @@ -125,3 +140,4 @@ def higher_stop_band(self) -> float: """ val = self._get_property('Higher Stop Band') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py index 83d8754d6f3..fc4e6bf9d35 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py @@ -16,6 +16,7 @@ def filename(self) -> str: """ val = self._get_property('Filename') return val + @property def noise_temperature(self) -> float: """Noise Temperature @@ -24,6 +25,7 @@ def noise_temperature(self) -> float: """ val = self._get_property('Noise Temperature') return val + @property def notes(self) -> str: """Notes @@ -31,9 +33,11 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + class TypeOption(Enum): BYFILE = "By File" PARAMETRIC = "Parametric" + @property def type(self) -> TypeOption: """Type @@ -42,9 +46,11 @@ def type(self) -> TypeOption: val = self._get_property('Type') val = self.TypeOption[val] return val + class PortLocationOption(Enum): RADIOSIDE = "Radio Side" ANTENNASIDE = "Antenna Side" + @property def port_location(self) -> PortLocationOption: """Port Location @@ -53,6 +59,7 @@ def port_location(self) -> PortLocationOption: val = self._get_property('Port Location') val = self.PortLocationOption[val] return val + @property def vswr(self) -> float: """VSWR @@ -61,6 +68,7 @@ def vswr(self) -> float: """ val = self._get_property('VSWR') return val + @property def warnings(self) -> str: """Warnings @@ -68,3 +76,4 @@ def warnings(self) -> str: " """ val = self._get_property('Warnings') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py index b3a4b1afc22..388264074cb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py @@ -21,6 +21,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @property def enable_refinement(self) -> bool: """Enable Refinement @@ -29,6 +30,7 @@ def enable_refinement(self) -> bool: """ val = self._get_property('Enable Refinement') return val + @property def adaptive_sampling(self) -> bool: """Adaptive Sampling @@ -37,6 +39,7 @@ def adaptive_sampling(self) -> bool: """ val = self._get_property('Adaptive Sampling') return val + @property def refinement_domain(self): """Refinement Domain @@ -44,6 +47,7 @@ def refinement_domain(self): " """ val = self._get_property('Refinement Domain') return val + @property def filename(self) -> str: """Filename @@ -52,6 +56,7 @@ def filename(self) -> str: """ val = self._get_property('Filename') return val + @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File @@ -59,6 +64,7 @@ def savant_matched_coupling_file(self) -> str: " """ val = self._get_property('Savant Matched Coupling File') return val + @property def enable_em_isolation(self) -> bool: """Enable EM Isolation @@ -67,6 +73,7 @@ def enable_em_isolation(self) -> bool: """ val = self._get_property('Enable EM Isolation') return val + @property def port_antenna_assignment(self): """Port-Antenna Assignment @@ -75,6 +82,7 @@ def port_antenna_assignment(self): " """ val = self._get_property('Port-Antenna Assignment') return val + @property def notes(self) -> str: """Notes @@ -82,3 +90,4 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py index 28579959926..6da55d7b424 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py @@ -21,6 +21,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @property def antenna_a(self) -> EmitNode: """Antenna A @@ -28,6 +29,7 @@ def antenna_a(self) -> EmitNode: " """ val = self._get_property('Antenna A') return val + @property def antenna_b(self) -> EmitNode: """Antenna B @@ -35,6 +37,7 @@ def antenna_b(self) -> EmitNode: " """ val = self._get_property('Antenna B') return val + @property def enable_refinement(self) -> bool: """Enable Refinement @@ -43,6 +46,7 @@ def enable_refinement(self) -> bool: """ val = self._get_property('Enable Refinement') return val + @property def adaptive_sampling(self) -> bool: """Adaptive Sampling @@ -51,6 +55,7 @@ def adaptive_sampling(self) -> bool: """ val = self._get_property('Adaptive Sampling') return val + @property def refinement_domain(self): """Refinement Domain @@ -58,6 +63,7 @@ def refinement_domain(self): " """ val = self._get_property('Refinement Domain') return val + @property def ground_reflection_coeff(self) -> float: """Ground Reflection Coeff. @@ -66,6 +72,7 @@ def ground_reflection_coeff(self) -> float: """ val = self._get_property('Ground Reflection Coeff.') return val + @property def pointspeak(self) -> int: """Points/Peak @@ -74,6 +81,7 @@ def pointspeak(self) -> int: """ val = self._get_property('Points/Peak') return val + @property def custom_fading_margin(self) -> float: """Custom Fading Margin @@ -82,6 +90,7 @@ def custom_fading_margin(self) -> float: """ val = self._get_property('Custom Fading Margin') return val + @property def polarization_mismatch(self) -> float: """Polarization Mismatch @@ -90,6 +99,7 @@ def polarization_mismatch(self) -> float: """ val = self._get_property('Polarization Mismatch') return val + @property def pointing_error_loss(self) -> float: """Pointing Error Loss @@ -98,11 +108,13 @@ def pointing_error_loss(self) -> float: """ val = self._get_property('Pointing Error Loss') return val + class FadingTypeOption(Enum): NOFADING = "None" FASTFADINGONLY = "Fast Fading Only" SHADOWINGONLY = "Shadowing Only" SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + @property def fading_type(self) -> FadingTypeOption: """Fading Type @@ -111,6 +123,7 @@ def fading_type(self) -> FadingTypeOption: val = self._get_property('Fading Type') val = self.FadingTypeOption[val] return val + @property def fading_availability(self) -> float: """Fading Availability @@ -119,6 +132,7 @@ def fading_availability(self) -> float: """ val = self._get_property('Fading Availability') return val + @property def std_deviation(self) -> float: """Std Deviation @@ -127,6 +141,7 @@ def std_deviation(self) -> float: """ val = self._get_property('Std Deviation') return val + @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation @@ -135,6 +150,7 @@ def include_rain_attenuation(self) -> bool: """ val = self._get_property('Include Rain Attenuation') return val + @property def rain_availability(self) -> float: """Rain Availability @@ -143,6 +159,7 @@ def rain_availability(self) -> float: """ val = self._get_property('Rain Availability') return val + @property def rain_rate(self) -> float: """Rain Rate @@ -151,6 +168,7 @@ def rain_rate(self) -> float: """ val = self._get_property('Rain Rate') return val + @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle @@ -159,6 +177,7 @@ def polarization_tilt_angle(self) -> float: """ val = self._get_property('Polarization Tilt Angle') return val + @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption @@ -167,6 +186,7 @@ def include_atmospheric_absorption(self) -> bool: """ val = self._get_property('Include Atmospheric Absorption') return val + @property def temperature(self) -> float: """Temperature @@ -175,6 +195,7 @@ def temperature(self) -> float: """ val = self._get_property('Temperature') return val + @property def total_air_pressure(self) -> float: """Total Air Pressure @@ -183,6 +204,7 @@ def total_air_pressure(self) -> float: """ val = self._get_property('Total Air Pressure') return val + @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration @@ -191,3 +213,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property('Water Vapor Concentration') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py index 6658586e092..00c4bff99c2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py @@ -29,6 +29,7 @@ class NoiseBehaviorOption(Enum): RELATIVEBANDWIDTH = "Relative (Bandwidth)" RELATIVEOFFSET = "Relative (Offset)" BROADBANDEQUATION = "Equation" + @property def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior @@ -37,6 +38,7 @@ def noise_behavior(self) -> NoiseBehaviorOption: val = self._get_property('Noise Behavior') val = self.NoiseBehaviorOption[val] return val + @property def use_log_linear_interpolation(self) -> bool: """Use Log-Linear Interpolation @@ -45,3 +47,4 @@ def use_log_linear_interpolation(self) -> bool: """ val = self._get_property('Use Log-Linear Interpolation') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py index 1df547df6d4..f4a47790b91 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py @@ -16,6 +16,7 @@ def parent(self): class HarmonicTableUnitsOption(Enum): ABSOLUTE = "Absolute" RELATIVE = "Relative" + @property def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units @@ -24,3 +25,4 @@ def harmonic_table_units(self) -> HarmonicTableUnitsOption: val = self._get_property('Harmonic Table Units') val = self.HarmonicTableUnitsOption[val] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py index f2a732834c5..680b0132587 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py @@ -21,6 +21,7 @@ def file(self) -> str: """ val = self._get_property('File') return val + @property def source_file(self) -> str: """Source File @@ -29,6 +30,7 @@ def source_file(self) -> str: """ val = self._get_property('Source File') return val + @property def transmit_frequency(self) -> float: """Transmit Frequency @@ -36,6 +38,7 @@ def transmit_frequency(self) -> float: " """ val = self._get_property('Transmit Frequency') return val + @property def use_ams_limits(self) -> bool: """Use AMS Limits @@ -44,6 +47,7 @@ def use_ams_limits(self) -> bool: """ val = self._get_property('Use AMS Limits') return val + @property def start_frequency(self) -> float: """Start Frequency @@ -52,6 +56,7 @@ def start_frequency(self) -> float: """ val = self._get_property('Start Frequency') return val + @property def stop_frequency(self) -> float: """Stop Frequency @@ -60,6 +65,7 @@ def stop_frequency(self) -> float: """ val = self._get_property('Stop Frequency') return val + @property def exclude_harmonics_below_noise(self) -> bool: """Exclude Harmonics Below Noise @@ -68,3 +74,4 @@ def exclude_harmonics_below_noise(self) -> bool: """ val = self._get_property('Exclude Harmonics Below Noise') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py index 3fecac24ea5..51e0e0b5547 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py @@ -16,6 +16,7 @@ def parent(self): class NarrowbandBehaviorOption(Enum): ABSOLUTE = "Absolute Freqs and Power" RELATIVEBANDWIDTH = "Relative Freqs and Attenuation" + @property def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior @@ -24,6 +25,7 @@ def narrowband_behavior(self) -> NarrowbandBehaviorOption: val = self._get_property('Narrowband Behavior') val = self.NarrowbandBehaviorOption[val] return val + @property def measurement_frequency(self) -> float: """Measurement Frequency @@ -31,3 +33,4 @@ def measurement_frequency(self) -> float: " """ val = self._get_property('Measurement Frequency') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py index a121cde6096..adc37069ac2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py @@ -16,6 +16,7 @@ def parent(self): class SpectrumTypeOption(Enum): BOTH = "Narrowband & Broadband" BROADBANDONLY = "Broadband Only" + @property def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type @@ -24,9 +25,11 @@ def spectrum_type(self) -> SpectrumTypeOption: val = self._get_property('Spectrum Type') val = self.SpectrumTypeOption[val] return val + class TxPowerOption(Enum): PEAK_POWER = "Peak Power" AVERAGE_POWER = "Average Power" + @property def tx_power(self) -> TxPowerOption: """Tx Power @@ -35,6 +38,7 @@ def tx_power(self) -> TxPowerOption: val = self._get_property('Tx Power') val = self.TxPowerOption[val] return val + @property def peak_power(self) -> float: """Peak Power @@ -43,6 +47,7 @@ def peak_power(self) -> float: """ val = self._get_property('Peak Power') return val + @property def average_power(self) -> float: """Average Power @@ -51,6 +56,7 @@ def average_power(self) -> float: """ val = self._get_property('Average Power') return val + @property def output_voltage_peak(self) -> float: """Output Voltage Peak @@ -58,6 +64,7 @@ def output_voltage_peak(self) -> float: " """ val = self._get_property('Output Voltage Peak') return val + @property def include_phase_noise(self) -> bool: """Include Phase Noise @@ -66,6 +73,7 @@ def include_phase_noise(self) -> bool: """ val = self._get_property('Include Phase Noise') return val + @property def tx_broadband_noise(self) -> float: """Tx Broadband Noise @@ -74,11 +82,13 @@ def tx_broadband_noise(self) -> float: """ val = self._get_property('Tx Broadband Noise') return val + class HarmonicTaperOption(Enum): CONSTANT = "Constant" MIL_STD_461G = "MIL-STD-461G" MIL_STD_461G_NAVY = "MIL-STD-461G Navy" DUFF_MODEL = "Duff Model" + @property def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper @@ -87,6 +97,7 @@ def harmonic_taper(self) -> HarmonicTaperOption: val = self._get_property('Harmonic Taper') val = self.HarmonicTaperOption[val] return val + @property def harmonic_amplitude(self) -> float: """Harmonic Amplitude @@ -95,6 +106,7 @@ def harmonic_amplitude(self) -> float: """ val = self._get_property('Harmonic Amplitude') return val + @property def harmonic_slope(self) -> float: """Harmonic Slope @@ -103,6 +115,7 @@ def harmonic_slope(self) -> float: """ val = self._get_property('Harmonic Slope') return val + @property def harmonic_intercept(self) -> float: """Harmonic Intercept @@ -111,6 +124,7 @@ def harmonic_intercept(self) -> float: """ val = self._get_property('Harmonic Intercept') return val + @property def enable_harmonic_bw_expansion(self) -> bool: """Enable Harmonic BW Expansion @@ -119,6 +133,7 @@ def enable_harmonic_bw_expansion(self) -> bool: """ val = self._get_property('Enable Harmonic BW Expansion') return val + @property def number_of_harmonics(self) -> int: """Number of Harmonics @@ -127,6 +142,7 @@ def number_of_harmonics(self) -> int: """ val = self._get_property('Number of Harmonics') return val + @property def _2nd_harmonic_level(self) -> float: """2nd Harmonic Level @@ -135,6 +151,7 @@ def _2nd_harmonic_level(self) -> float: """ val = self._get_property('2nd Harmonic Level') return val + @property def _3rd_harmonic_level(self) -> float: """3rd Harmonic Level @@ -143,6 +160,7 @@ def _3rd_harmonic_level(self) -> float: """ val = self._get_property('3rd Harmonic Level') return val + @property def other_harmonic_levels(self) -> float: """Other Harmonic Levels @@ -151,6 +169,7 @@ def other_harmonic_levels(self) -> float: """ val = self._get_property('Other Harmonic Levels') return val + @property def perform_tx_intermod_analysis(self) -> bool: """Perform Tx Intermod Analysis @@ -159,6 +178,7 @@ def perform_tx_intermod_analysis(self) -> bool: """ val = self._get_property('Perform Tx Intermod Analysis') return val + @property def internal_amp_gain(self) -> float: """Internal Amp Gain @@ -167,6 +187,7 @@ def internal_amp_gain(self) -> float: """ val = self._get_property('Internal Amp Gain') return val + @property def noise_figure(self) -> float: """Noise Figure @@ -175,6 +196,7 @@ def noise_figure(self) -> float: """ val = self._get_property('Noise Figure') return val + @property def amplifier_saturation_level(self) -> float: """Amplifier Saturation Level @@ -183,6 +205,7 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property('Amplifier Saturation Level') return val + @property def _1_db_point_ref_input_(self) -> float: """1-dB Point, Ref. Input @@ -191,6 +214,7 @@ def _1_db_point_ref_input_(self) -> float: """ val = self._get_property('1-dB Point, Ref. Input ') return val + @property def ip3_ref_input(self) -> float: """IP3, Ref. Input @@ -199,6 +223,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property('IP3, Ref. Input') return val + @property def reverse_isolation(self) -> float: """Reverse Isolation @@ -207,6 +232,7 @@ def reverse_isolation(self) -> float: """ val = self._get_property('Reverse Isolation') return val + @property def max_intermod_order(self) -> int: """Max Intermod Order @@ -215,3 +241,4 @@ def max_intermod_order(self) -> int: """ val = self._get_property('Max Intermod Order') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py index c23dc352543..2b5014e1eb0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py @@ -29,6 +29,7 @@ def table_data(self): class SpurTableUnitsOption(Enum): ABSOLUTE = "Absolute" RELATIVE = "Relative" + @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units @@ -37,3 +38,4 @@ def spur_table_units(self) -> SpurTableUnitsOption: val = self._get_property('Spur Table Units') val = self.SpurTableUnitsOption[val] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py index da0db3435c5..8d7cb25230c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py @@ -21,6 +21,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @property def base_antenna(self) -> EmitNode: """Base Antenna @@ -28,6 +29,7 @@ def base_antenna(self) -> EmitNode: " """ val = self._get_property('Base Antenna') return val + @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna @@ -35,6 +37,7 @@ def mobile_antenna(self) -> EmitNode: " """ val = self._get_property('Mobile Antenna') return val + @property def enable_refinement(self) -> bool: """Enable Refinement @@ -43,6 +46,7 @@ def enable_refinement(self) -> bool: """ val = self._get_property('Enable Refinement') return val + @property def adaptive_sampling(self) -> bool: """Adaptive Sampling @@ -51,6 +55,7 @@ def adaptive_sampling(self) -> bool: """ val = self._get_property('Adaptive Sampling') return val + @property def refinement_domain(self): """Refinement Domain @@ -58,9 +63,11 @@ def refinement_domain(self): " """ val = self._get_property('Refinement Domain') return val + class PathLossTypeOption(Enum): WALFISCHLOS = "LOS (Urban Canyon)" WALFISCHNLOS = "NLOS" + @property def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type @@ -69,9 +76,11 @@ def path_loss_type(self) -> PathLossTypeOption: val = self._get_property('Path Loss Type') val = self.PathLossTypeOption[val] return val + class EnvironmentOption(Enum): DENSEMETROAREA = "Dense Metro" SMALLURBANORSUBURBAN = "Small/Medium City or Suburban" + @property def environment(self) -> EnvironmentOption: """Environment @@ -80,6 +89,7 @@ def environment(self) -> EnvironmentOption: val = self._get_property('Environment') val = self.EnvironmentOption[val] return val + @property def roof_height(self) -> float: """Roof Height @@ -88,6 +98,7 @@ def roof_height(self) -> float: """ val = self._get_property('Roof Height') return val + @property def distance_between_buildings(self) -> float: """Distance Between Buildings @@ -96,6 +107,7 @@ def distance_between_buildings(self) -> float: """ val = self._get_property('Distance Between Buildings') return val + @property def street_width(self) -> float: """Street Width @@ -104,6 +116,7 @@ def street_width(self) -> float: """ val = self._get_property('Street Width') return val + @property def incidence_angle(self) -> float: """Incidence Angle @@ -112,6 +125,7 @@ def incidence_angle(self) -> float: """ val = self._get_property('Incidence Angle') return val + @property def custom_fading_margin(self) -> float: """Custom Fading Margin @@ -120,6 +134,7 @@ def custom_fading_margin(self) -> float: """ val = self._get_property('Custom Fading Margin') return val + @property def polarization_mismatch(self) -> float: """Polarization Mismatch @@ -128,6 +143,7 @@ def polarization_mismatch(self) -> float: """ val = self._get_property('Polarization Mismatch') return val + @property def pointing_error_loss(self) -> float: """Pointing Error Loss @@ -136,11 +152,13 @@ def pointing_error_loss(self) -> float: """ val = self._get_property('Pointing Error Loss') return val + class FadingTypeOption(Enum): NOFADING = "None" FASTFADINGONLY = "Fast Fading Only" SHADOWINGONLY = "Shadowing Only" SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + @property def fading_type(self) -> FadingTypeOption: """Fading Type @@ -149,6 +167,7 @@ def fading_type(self) -> FadingTypeOption: val = self._get_property('Fading Type') val = self.FadingTypeOption[val] return val + @property def fading_availability(self) -> float: """Fading Availability @@ -157,6 +176,7 @@ def fading_availability(self) -> float: """ val = self._get_property('Fading Availability') return val + @property def std_deviation(self) -> float: """Std Deviation @@ -165,6 +185,7 @@ def std_deviation(self) -> float: """ val = self._get_property('Std Deviation') return val + @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation @@ -173,6 +194,7 @@ def include_rain_attenuation(self) -> bool: """ val = self._get_property('Include Rain Attenuation') return val + @property def rain_availability(self) -> float: """Rain Availability @@ -181,6 +203,7 @@ def rain_availability(self) -> float: """ val = self._get_property('Rain Availability') return val + @property def rain_rate(self) -> float: """Rain Rate @@ -189,6 +212,7 @@ def rain_rate(self) -> float: """ val = self._get_property('Rain Rate') return val + @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle @@ -197,6 +221,7 @@ def polarization_tilt_angle(self) -> float: """ val = self._get_property('Polarization Tilt Angle') return val + @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption @@ -205,6 +230,7 @@ def include_atmospheric_absorption(self) -> bool: """ val = self._get_property('Include Atmospheric Absorption') return val + @property def temperature(self) -> float: """Temperature @@ -213,6 +239,7 @@ def temperature(self) -> float: """ val = self._get_property('Temperature') return val + @property def total_air_pressure(self) -> float: """Total Air Pressure @@ -221,6 +248,7 @@ def total_air_pressure(self) -> float: """ val = self._get_property('Total Air Pressure') return val + @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration @@ -229,3 +257,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property('Water Vapor Concentration') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py index ef47c4ee9b7..f319fe2dbe6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py @@ -10,7 +10,7 @@ def __eq__(self, other): def add_marker(self): """Add an icon and/or label to this plot""" - return self._add_child_node("PlotMarkerNode") + return self._add_child_node("Plot Marker") def export_model(self, file_name): """Save this data to a file""" @@ -23,6 +23,7 @@ def title(self) -> str: " """ val = self._get_property('Title') return val + @title.setter def title(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Title=' + value]) @@ -35,6 +36,7 @@ def title_font(self): """ val = self._get_property('Title Font') return val + @title_font.setter def title_font(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Title Font=' + value]) @@ -47,6 +49,7 @@ def show_legend(self) -> bool: """ val = self._get_property('Show Legend') return val + @show_legend.setter def show_legend(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Legend=' + value]) @@ -59,6 +62,7 @@ def legend_font(self): """ val = self._get_property('Legend Font') return val + @legend_font.setter def legend_font(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Legend Font=' + value]) @@ -71,6 +75,7 @@ def show_emi_thresholds(self) -> bool: """ val = self._get_property('Show EMI Thresholds') return val + @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show EMI Thresholds=' + value]) @@ -83,6 +88,7 @@ def display_cad_overlay(self) -> bool: """ val = self._get_property('Display CAD Overlay') return val + @display_cad_overlay.setter def display_cad_overlay(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Display CAD Overlay=' + value]) @@ -95,6 +101,7 @@ def opacity(self) -> float: """ val = self._get_property('Opacity') return val + @opacity.setter def opacity(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Opacity=' + value]) @@ -106,6 +113,7 @@ def vertical_offset(self) -> float: " """ val = self._get_property('Vertical Offset') return val + @vertical_offset.setter def vertical_offset(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Offset=' + value]) @@ -118,6 +126,7 @@ def range_axis_rotation(self) -> float: """ val = self._get_property('Range Axis Rotation') return val + @range_axis_rotation.setter def range_axis_rotation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Range Axis Rotation=' + value]) @@ -130,6 +139,7 @@ def lock_axes(self) -> bool: """ val = self._get_property('Lock Axes') return val + @lock_axes.setter def lock_axes(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lock Axes=' + value]) @@ -141,6 +151,7 @@ def x_axis_min(self) -> float: " """ val = self._get_property('X-axis Min') return val + @x_axis_min.setter def x_axis_min(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['X-axis Min=' + value]) @@ -152,6 +163,7 @@ def x_axis_max(self) -> float: " """ val = self._get_property('X-axis Max') return val + @x_axis_max.setter def x_axis_max(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['X-axis Max=' + value]) @@ -163,6 +175,7 @@ def y_axis_min(self) -> float: " """ val = self._get_property('Y-axis Min') return val + @y_axis_min.setter def y_axis_min(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Min=' + value]) @@ -174,6 +187,7 @@ def y_axis_max(self) -> float: " """ val = self._get_property('Y-axis Max') return val + @y_axis_max.setter def y_axis_max(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Max=' + value]) @@ -186,6 +200,7 @@ def y_axis_range(self) -> float: """ val = self._get_property('Y-axis Range') return val + @y_axis_range.setter def y_axis_range(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Range=' + value]) @@ -198,6 +213,7 @@ def max_major_ticks(self) -> int: """ val = self._get_property('Max Major Ticks') return val + @max_major_ticks.setter def max_major_ticks(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) @@ -210,6 +226,7 @@ def max_minor_ticks(self) -> int: """ val = self._get_property('Max Minor Ticks') return val + @max_minor_ticks.setter def max_minor_ticks(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) @@ -222,6 +239,7 @@ def max_major_ticks(self) -> int: """ val = self._get_property('Max Major Ticks') return val + @max_major_ticks.setter def max_major_ticks(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) @@ -234,6 +252,7 @@ def max_minor_ticks(self) -> int: """ val = self._get_property('Max Minor Ticks') return val + @max_minor_ticks.setter def max_minor_ticks(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) @@ -246,6 +265,7 @@ def axis_label_font(self): """ val = self._get_property('Axis Label Font') return val + @axis_label_font.setter def axis_label_font(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Axis Label Font=' + value]) @@ -258,6 +278,7 @@ def axis_tick_label_font(self): """ val = self._get_property('Axis Tick Label Font') return val + @axis_tick_label_font.setter def axis_tick_label_font(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Axis Tick Label Font=' + value]) @@ -269,6 +290,7 @@ class MajorGridLineStyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style @@ -277,6 +299,7 @@ def major_grid_line_style(self) -> MajorGridLineStyleOption: val = self._get_property('Major Grid Line Style') val = self.MajorGridLineStyleOption[val] return val + @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Major Grid Line Style=' + value.value]) @@ -289,6 +312,7 @@ def major_grid_color(self): """ val = self._get_property('Major Grid Color') return val + @major_grid_color.setter def major_grid_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Major Grid Color=' + value]) @@ -300,6 +324,7 @@ class MinorGridLineStyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style @@ -308,6 +333,7 @@ def minor_grid_line_style(self) -> MinorGridLineStyleOption: val = self._get_property('Minor Grid Line Style') val = self.MinorGridLineStyleOption[val] return val + @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Minor Grid Line Style=' + value.value]) @@ -320,6 +346,7 @@ def minor_grid_color(self): """ val = self._get_property('Minor Grid Color') return val + @minor_grid_color.setter def minor_grid_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Minor Grid Color=' + value]) @@ -332,6 +359,7 @@ def background_color(self): """ val = self._get_property('Background Color') return val + @background_color.setter def background_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) @@ -341,6 +369,7 @@ class BBPowerforPlotsUnitOption(Enum): KILOHERTZ = "kilohertz" MEGAHERTZ = "megahertz" GIGAHERTZ = "gigahertz" + @property def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit @@ -349,6 +378,7 @@ def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: val = self._get_property('BB Power for Plots Unit') val = self.BBPowerforPlotsUnitOption[val] return val + @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['BB Power for Plots Unit=' + value.value]) @@ -361,6 +391,7 @@ def bb_power_bandwidth(self) -> float: """ val = self._get_property('BB Power Bandwidth') return val + @bb_power_bandwidth.setter def bb_power_bandwidth(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['BB Power Bandwidth=' + value]) @@ -373,6 +404,7 @@ def log_scale(self) -> bool: """ val = self._get_property('Log Scale') return val + @log_scale.setter def log_scale(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Log Scale=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py index 4e01e75d617..31eac32583b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py @@ -21,6 +21,7 @@ def enable_passive_noise(self) -> bool: """ val = self._get_property('Enable Passive Noise') return val + @enable_passive_noise.setter def enable_passive_noise(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Passive Noise=' + value]) @@ -33,6 +34,7 @@ def enforce_thermal_noise_floor(self) -> bool: """ val = self._get_property('Enforce Thermal Noise Floor') return val + @enforce_thermal_noise_floor.setter def enforce_thermal_noise_floor(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enforce Thermal Noise Floor=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py index 8ada08d2f84..f65bc381666 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py @@ -29,6 +29,7 @@ def file(self) -> str: """ val = self._get_property('File') return val + @property def source_file(self) -> str: """Source File @@ -37,6 +38,7 @@ def source_file(self) -> str: """ val = self._get_property('Source File') return val + @property def receive_frequency(self) -> float: """Receive Frequency @@ -44,10 +46,12 @@ def receive_frequency(self) -> float: " """ val = self._get_property('Receive Frequency') return val + class MeasurementModeOption(Enum): AUDIO_SINAD = "Audio SINAD" DIGITAL_BER = "Digital BER" GPS_CNR = "GPS CNR" + @property def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode @@ -56,6 +60,7 @@ def measurement_mode(self) -> MeasurementModeOption: val = self._get_property('Measurement Mode') val = self.MeasurementModeOption[val] return val + @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Measurement Mode=' + value.value]) @@ -68,6 +73,7 @@ def sinad_threshold(self) -> float: """ val = self._get_property('SINAD Threshold') return val + @sinad_threshold.setter def sinad_threshold(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['SINAD Threshold=' + value]) @@ -80,6 +86,7 @@ def gps_cnr_threshold(self) -> float: """ val = self._get_property('GPS CNR Threshold') return val + @gps_cnr_threshold.setter def gps_cnr_threshold(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['GPS CNR Threshold=' + value]) @@ -92,6 +99,7 @@ def ber_threshold(self) -> float: """ val = self._get_property('BER Threshold') return val + @ber_threshold.setter def ber_threshold(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['BER Threshold=' + value]) @@ -104,6 +112,7 @@ def default_intended_power(self) -> bool: """ val = self._get_property('Default Intended Power') return val + @default_intended_power.setter def default_intended_power(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Default Intended Power=' + value]) @@ -116,6 +125,7 @@ def intended_signal_power(self) -> float: """ val = self._get_property('Intended Signal Power') return val + @intended_signal_power.setter def intended_signal_power(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Intended Signal Power=' + value]) @@ -128,6 +138,7 @@ def freq_deviation(self) -> float: """ val = self._get_property('Freq. Deviation') return val + @freq_deviation.setter def freq_deviation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Freq. Deviation=' + value]) @@ -140,6 +151,7 @@ def modulation_depth(self) -> float: """ val = self._get_property('Modulation Depth') return val + @modulation_depth.setter def modulation_depth(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Modulation Depth=' + value]) @@ -152,6 +164,7 @@ def measure_selectivity(self) -> bool: """ val = self._get_property('Measure Selectivity') return val + @measure_selectivity.setter def measure_selectivity(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Measure Selectivity=' + value]) @@ -164,6 +177,7 @@ def measure_mixer_products(self) -> bool: """ val = self._get_property('Measure Mixer Products') return val + @measure_mixer_products.setter def measure_mixer_products(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Measure Mixer Products=' + value]) @@ -176,6 +190,7 @@ def max_rf_order(self) -> int: """ val = self._get_property('Max RF Order') return val + @max_rf_order.setter def max_rf_order(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max RF Order=' + value]) @@ -188,6 +203,7 @@ def max_lo_order(self) -> int: """ val = self._get_property('Max LO Order') return val + @max_lo_order.setter def max_lo_order(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max LO Order=' + value]) @@ -200,6 +216,7 @@ def include_if(self) -> bool: """ val = self._get_property('Include IF') return val + @include_if.setter def include_if(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include IF=' + value]) @@ -212,6 +229,7 @@ def measure_saturation(self) -> bool: """ val = self._get_property('Measure Saturation') return val + @measure_saturation.setter def measure_saturation(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Measure Saturation=' + value]) @@ -224,6 +242,7 @@ def use_ams_limits(self) -> bool: """ val = self._get_property('Use AMS Limits') return val + @use_ams_limits.setter def use_ams_limits(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use AMS Limits=' + value]) @@ -236,6 +255,7 @@ def start_frequency(self) -> float: """ val = self._get_property('Start Frequency') return val + @start_frequency.setter def start_frequency(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Start Frequency=' + value]) @@ -248,6 +268,7 @@ def stop_frequency(self) -> float: """ val = self._get_property('Stop Frequency') return val + @stop_frequency.setter def stop_frequency(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Stop Frequency=' + value]) @@ -260,6 +281,7 @@ def samples(self) -> int: """ val = self._get_property('Samples') return val + @samples.setter def samples(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Samples=' + value]) @@ -272,6 +294,7 @@ def exclude_mixer_products_below_noise(self) -> bool: """ val = self._get_property('Exclude Mixer Products Below Noise') return val + @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Exclude Mixer Products Below Noise=' + value]) @@ -280,6 +303,7 @@ def exclude_mixer_products_below_noise(self, value: bool): def enabled(self) -> bool: """Enabled state for this node.""" return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py index 71cc2c3af00..e9ac5f84db6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py @@ -25,6 +25,7 @@ def delete(self): def enabled(self) -> bool: """Enabled state for this node.""" return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) @@ -33,6 +34,7 @@ class MixerProductTaperOption(Enum): CONSTANT = "Constant" MIL_STD_461G = "MIL-STD-461G" DUFF_MODEL = "Duff Model" + @property def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper @@ -41,6 +43,7 @@ def mixer_product_taper(self) -> MixerProductTaperOption: val = self._get_property('Mixer Product Taper') val = self.MixerProductTaperOption[val] return val + @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Taper=' + value.value]) @@ -53,6 +56,7 @@ def mixer_product_susceptibility(self) -> float: """ val = self._get_property('Mixer Product Susceptibility') return val + @mixer_product_susceptibility.setter def mixer_product_susceptibility(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Susceptibility=' + value]) @@ -65,6 +69,7 @@ def spurious_rejection(self) -> float: """ val = self._get_property('Spurious Rejection') return val + @spurious_rejection.setter def spurious_rejection(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Spurious Rejection=' + value]) @@ -77,6 +82,7 @@ def minimum_tuning_frequency(self) -> float: """ val = self._get_property('Minimum Tuning Frequency') return val + @minimum_tuning_frequency.setter def minimum_tuning_frequency(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Minimum Tuning Frequency=' + value]) @@ -89,6 +95,7 @@ def maximum_tuning_frequency(self) -> float: """ val = self._get_property('Maximum Tuning Frequency') return val + @maximum_tuning_frequency.setter def maximum_tuning_frequency(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Maximum Tuning Frequency=' + value]) @@ -101,6 +108,7 @@ def mixer_product_slope(self) -> float: """ val = self._get_property('Mixer Product Slope') return val + @mixer_product_slope.setter def mixer_product_slope(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Slope=' + value]) @@ -113,6 +121,7 @@ def mixer_product_intercept(self) -> float: """ val = self._get_property('Mixer Product Intercept') return val + @mixer_product_intercept.setter def mixer_product_intercept(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Intercept=' + value]) @@ -125,6 +134,7 @@ def _80_db_bandwidth(self) -> float: """ val = self._get_property('80 dB Bandwidth') return val + @_80_db_bandwidth.setter def _80_db_bandwidth(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['80 dB Bandwidth=' + value]) @@ -137,6 +147,7 @@ def image_rejection(self) -> float: """ val = self._get_property('Image Rejection') return val + @image_rejection.setter def image_rejection(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Image Rejection=' + value]) @@ -149,6 +160,7 @@ def maximum_rf_harmonic_order(self) -> int: """ val = self._get_property('Maximum RF Harmonic Order') return val + @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Maximum RF Harmonic Order=' + value]) @@ -161,6 +173,7 @@ def maximum_lo_harmonic_order(self) -> int: """ val = self._get_property('Maximum LO Harmonic Order') return val + @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Maximum LO Harmonic Order=' + value]) @@ -169,6 +182,7 @@ class MixingModeOption(Enum): ABOVETUNEDFREQUENCY = "LO Above Tuned (RF) Frequency" BELOWTUNEDFREQUENCY = "LO Below Tuned (RF) Frequency" BOTHTUNEDFREQUENCIES = "LO Above/Below Tuned (RF) Frequency" + @property def mixing_mode(self) -> MixingModeOption: """Mixing Mode @@ -177,6 +191,7 @@ def mixing_mode(self) -> MixingModeOption: val = self._get_property('Mixing Mode') val = self.MixingModeOption[val] return val + @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mixing Mode=' + value.value]) @@ -189,6 +204,7 @@ def _1st_if_frequency(self): """ val = self._get_property('1st IF Frequency') return val + @_1st_if_frequency.setter def _1st_if_frequency(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['1st IF Frequency=' + value]) @@ -200,6 +216,7 @@ def rf_transition_frequency(self) -> float: " """ val = self._get_property('RF Transition Frequency') return val + @rf_transition_frequency.setter def rf_transition_frequency(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['RF Transition Frequency=' + value]) @@ -207,6 +224,7 @@ def rf_transition_frequency(self, value: float): class UseHighLOOption(Enum): ABOVETRANSITION = "Above Transition Frequency" BELOWTRANSITION = "Below Transition Frequency" + @property def use_high_lo(self) -> UseHighLOOption: """Use High LO @@ -215,6 +233,7 @@ def use_high_lo(self) -> UseHighLOOption: val = self._get_property('Use High LO') val = self.UseHighLOOption[val] return val + @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use High LO=' + value.value]) @@ -222,6 +241,7 @@ def use_high_lo(self, value: UseHighLOOption): class MixerProductTableUnitsOption(Enum): ABSOLUTE = "Absolute" RELATIVE = "Relative" + @property def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units @@ -230,6 +250,7 @@ def mixer_product_table_units(self) -> MixerProductTableUnitsOption: val = self._get_property('Mixer Product Table Units') val = self.MixerProductTableUnitsOption[val] return val + @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Table Units=' + value.value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py index b18309faf4c..fad1206fbfe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py @@ -25,6 +25,7 @@ def delete(self): def enabled(self) -> bool: """Enabled state for this node.""" return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py index 71545bcff31..f494222caea 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py @@ -25,6 +25,7 @@ def delete(self): def enabled(self) -> bool: """Enabled state for this node.""" return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) @@ -37,6 +38,7 @@ def use_arithmetic_mean(self) -> bool: """ val = self._get_property('Use Arithmetic Mean') return val + @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use Arithmetic Mean=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py index a64e243b4c8..aa1160d1be1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py @@ -33,6 +33,7 @@ def table_data(self): " Value should be between -200 and 150." """ return self._get_table_data() + @table_data.setter def table_data(self, value): self._set_table_data(value) @@ -41,6 +42,7 @@ def table_data(self, value): def enabled(self) -> bool: """Enabled state for this node.""" return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) @@ -48,6 +50,7 @@ def enabled(self, value: bool): class SpurTableUnitsOption(Enum): ABSOLUTE = "Absolute" RELATIVE = "Relative" + @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units @@ -56,6 +59,7 @@ def spur_table_units(self) -> SpurTableUnitsOption: val = self._get_property('Spur Table Units') val = self.SpurTableUnitsOption[val] return val + @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Spur Table Units=' + value.value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py index 9975240b1a0..46b9d881fc3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py @@ -17,6 +17,7 @@ def parent(self): def enabled(self) -> bool: """Enabled state for this node.""" return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) @@ -26,6 +27,7 @@ class SensitivityUnitsOption(Enum): DBUV = "dBuV" MILLIWATTS = "milliwatts" MICROVOLTS = "microvolts" + @property def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units @@ -34,6 +36,7 @@ def sensitivity_units(self) -> SensitivityUnitsOption: val = self._get_property('Sensitivity Units') val = self.SensitivityUnitsOption[val] return val + @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Sensitivity Units=' + value.value]) @@ -46,6 +49,7 @@ def min_receive_signal_pwr_(self) -> float: """ val = self._get_property('Min. Receive Signal Pwr ') return val + @min_receive_signal_pwr_.setter def min_receive_signal_pwr_(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Min. Receive Signal Pwr =' + value]) @@ -58,6 +62,7 @@ def snr_at_rx_signal_pwr(self) -> float: """ val = self._get_property('SNR at Rx Signal Pwr') return val + @snr_at_rx_signal_pwr.setter def snr_at_rx_signal_pwr(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['SNR at Rx Signal Pwr=' + value]) @@ -70,6 +75,7 @@ def processing_gain(self) -> float: """ val = self._get_property('Processing Gain') return val + @processing_gain.setter def processing_gain(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Processing Gain=' + value]) @@ -82,6 +88,7 @@ def apply_pg_to_narrowband_only(self) -> bool: """ val = self._get_property('Apply PG to Narrowband Only') return val + @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Apply PG to Narrowband Only=' + value]) @@ -94,6 +101,7 @@ def saturation_level(self) -> float: """ val = self._get_property('Saturation Level') return val + @saturation_level.setter def saturation_level(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Saturation Level=' + value]) @@ -106,6 +114,7 @@ def rx_noise_figure(self) -> float: """ val = self._get_property('Rx Noise Figure') return val + @rx_noise_figure.setter def rx_noise_figure(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rx Noise Figure=' + value]) @@ -118,6 +127,7 @@ def receiver_sensitivity_(self) -> float: """ val = self._get_property('Receiver Sensitivity ') return val + @receiver_sensitivity_.setter def receiver_sensitivity_(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Receiver Sensitivity =' + value]) @@ -130,6 +140,7 @@ def snrsinad_at_sensitivity_(self) -> float: """ val = self._get_property('SNR/SINAD at Sensitivity ') return val + @snrsinad_at_sensitivity_.setter def snrsinad_at_sensitivity_(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['SNR/SINAD at Sensitivity =' + value]) @@ -142,6 +153,7 @@ def perform_rx_intermod_analysis(self) -> bool: """ val = self._get_property('Perform Rx Intermod Analysis') return val + @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Perform Rx Intermod Analysis=' + value]) @@ -154,6 +166,7 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property('Amplifier Saturation Level') return val + @amplifier_saturation_level.setter def amplifier_saturation_level(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Amplifier Saturation Level=' + value]) @@ -166,6 +179,7 @@ def _1_db_point_ref_input_(self) -> float: """ val = self._get_property('1-dB Point, Ref. Input ') return val + @_1_db_point_ref_input_.setter def _1_db_point_ref_input_(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input =' + value]) @@ -178,6 +192,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property('IP3, Ref. Input') return val + @ip3_ref_input.setter def ip3_ref_input(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + value]) @@ -190,6 +205,7 @@ def max_intermod_order(self) -> int: """ val = self._get_property('Max Intermod Order') return val + @max_intermod_order.setter def max_intermod_order(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py index 9ffc1861ca5..44e7922fd19 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py @@ -23,6 +23,7 @@ def table_data(self): " Value should be greater than 1." """ return self._get_table_data() + @table_data.setter def table_data(self, value): self._set_table_data(value) @@ -31,6 +32,7 @@ class SamplingTypeOption(Enum): SAMPLEALLCHANNELS = "Sample All Channels in Range(s)" RANDOMSAMPLING = "Random Sampling" UNIFORMSAMPLING = "Uniform Sampling" + @property def sampling_type(self) -> SamplingTypeOption: """Sampling Type @@ -39,6 +41,7 @@ def sampling_type(self) -> SamplingTypeOption: val = self._get_property('Sampling Type') val = self.SamplingTypeOption[val] return val + @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Sampling Type=' + value.value]) @@ -51,6 +54,7 @@ def specify_percentage(self) -> bool: """ val = self._get_property('Specify Percentage') return val + @specify_percentage.setter def specify_percentage(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Specify Percentage=' + value]) @@ -63,6 +67,7 @@ def percentage_of_channels(self) -> float: """ val = self._get_property('Percentage of Channels') return val + @percentage_of_channels.setter def percentage_of_channels(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Percentage of Channels=' + value]) @@ -75,6 +80,7 @@ def max__channelsrangeband(self) -> int: """ val = self._get_property('Max # Channels/Range/Band') return val + @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max # Channels/Range/Band=' + value]) @@ -87,6 +93,7 @@ def seed(self) -> int: """ val = self._get_property('Seed') return val + @seed.setter def seed(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Seed=' + value]) @@ -98,6 +105,7 @@ def total_tx_channels(self) -> int: " """ val = self._get_property('Total Tx Channels') return val + @property def total_rx_channels(self) -> int: """Total Rx Channels @@ -105,6 +113,7 @@ def total_rx_channels(self) -> int: " """ val = self._get_property('Total Rx Channels') return val + @property def warnings(self) -> str: """Warnings @@ -112,3 +121,4 @@ def warnings(self) -> str: " """ val = self._get_property('Warnings') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py index 098cfa6ad96..8ae7c54914b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py @@ -15,7 +15,7 @@ def parent(self): def add_group(self): """Add a new scene group""" - return self._add_child_node("sceneGroupNode") + return self._add_child_node("Group") def rename(self, new_name): """Rename this node""" @@ -37,6 +37,7 @@ def show_relative_coordinates(self) -> bool: """ val = self._get_property('Show Relative Coordinates') return val + @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) @@ -49,6 +50,7 @@ def position(self): """ val = self._get_property('Position') return val + @position.setter def position(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) @@ -61,6 +63,7 @@ def relative_position(self): """ val = self._get_property('Relative Position') return val + @relative_position.setter def relative_position(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Relative Position=' + value]) @@ -68,6 +71,7 @@ def relative_position(self, value): class OrientationModeOption(Enum): RPYDEG = "Roll-Pitch-Yaw" AETDEG = "Az-El-Twist" + @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode @@ -76,6 +80,7 @@ def orientation_mode(self) -> OrientationModeOption: val = self._get_property('Orientation Mode') val = self.OrientationModeOption[val] return val + @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation Mode=' + value.value]) @@ -88,6 +93,7 @@ def orientation(self): """ val = self._get_property('Orientation') return val + @orientation.setter def orientation(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation=' + value]) @@ -100,6 +106,7 @@ def relative_orientation(self): """ val = self._get_property('Relative Orientation') return val + @relative_orientation.setter def relative_orientation(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) @@ -112,6 +119,7 @@ def show_axes(self) -> bool: """ val = self._get_property('Show Axes') return val + @show_axes.setter def show_axes(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Axes=' + value]) @@ -124,6 +132,7 @@ def box_color(self): """ val = self._get_property('Box Color') return val + @box_color.setter def box_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Box Color=' + value]) @@ -135,6 +144,7 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + @notes.setter def notes(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py index dab53991106..6e9d2966d36 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py @@ -32,6 +32,7 @@ def data_source(self): " """ val = self._get_property('Data Source') return val + @data_source.setter def data_source(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @@ -44,6 +45,7 @@ def visible(self) -> bool: """ val = self._get_property('Visible') return val + @visible.setter def visible(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @@ -56,6 +58,7 @@ def custom_legend(self) -> bool: """ val = self._get_property('Custom Legend') return val + @custom_legend.setter def custom_legend(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @@ -67,6 +70,7 @@ def name(self) -> str: " """ val = self._get_property('Name') return val + @name.setter def name(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) @@ -78,6 +82,7 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property def style(self) -> StyleOption: """Style @@ -86,6 +91,7 @@ def style(self) -> StyleOption: val = self._get_property('Style') val = self.StyleOption[val] return val + @style.setter def style(self, value: StyleOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @@ -98,6 +104,7 @@ def line_width(self) -> int: """ val = self._get_property('Line Width') return val + @line_width.setter def line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @@ -110,6 +117,7 @@ def line_color(self): """ val = self._get_property('Line Color') return val + @line_color.setter def line_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) @@ -130,6 +138,7 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property def symbol(self) -> SymbolOption: """Symbol @@ -138,6 +147,7 @@ def symbol(self) -> SymbolOption: val = self._get_property('Symbol') val = self.SymbolOption[val] return val + @symbol.setter def symbol(self, value: SymbolOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @@ -150,6 +160,7 @@ def symbol_size(self) -> int: """ val = self._get_property('Symbol Size') return val + @symbol_size.setter def symbol_size(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @@ -162,6 +173,7 @@ def symbol_color(self): """ val = self._get_property('Symbol Color') return val + @symbol_color.setter def symbol_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @@ -174,6 +186,7 @@ def symbol_line_width(self) -> int: """ val = self._get_property('Symbol Line Width') return val + @symbol_line_width.setter def symbol_line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @@ -186,6 +199,7 @@ def symbol_filled(self) -> bool: """ val = self._get_property('Symbol Filled') return val + @symbol_filled.setter def symbol_filled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py index f29f840b1b9..f52ba60e394 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py @@ -21,6 +21,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @@ -33,6 +34,7 @@ def enable_refinement(self) -> bool: """ val = self._get_property('Enable Refinement') return val + @enable_refinement.setter def enable_refinement(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @@ -45,6 +47,7 @@ def adaptive_sampling(self) -> bool: """ val = self._get_property('Adaptive Sampling') return val + @adaptive_sampling.setter def adaptive_sampling(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @@ -56,6 +59,7 @@ def refinement_domain(self): " """ val = self._get_property('Refinement Domain') return val + @refinement_domain.setter def refinement_domain(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py index c454f72f6c3..769269b72f9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py @@ -21,6 +21,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py index 55a4a5baa4c..464177832ba 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py @@ -28,6 +28,7 @@ def file(self) -> str: """ val = self._get_property('File') return val + @file.setter def file(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['File=' + value]) @@ -40,6 +41,7 @@ def noise_temperature(self) -> float: """ val = self._get_property('Noise Temperature') return val + @noise_temperature.setter def noise_temperature(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @@ -51,6 +53,7 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + @notes.setter def notes(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) @@ -63,6 +66,7 @@ def radio_side_ports(self): " """ val = self._get_property('Radio Side Ports') return val + @radio_side_ports.setter def radio_side_ports(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Radio Side Ports=' + value]) @@ -75,6 +79,7 @@ def antenna_side_ports(self): " """ val = self._get_property('Antenna Side Ports') return val + @antenna_side_ports.setter def antenna_side_ports(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna Side Ports=' + value]) @@ -86,3 +91,4 @@ def warnings(self) -> str: " """ val = self._get_property('Warnings') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py index 0889fa8741f..9990bfd7204 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py @@ -32,6 +32,7 @@ def channel_frequency(self): " """ val = self._get_property('Channel Frequency') return val + @channel_frequency.setter def channel_frequency(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Channel Frequency=' + value]) @@ -43,6 +44,7 @@ def transmit_frequency(self) -> float: " """ val = self._get_property('Transmit Frequency') return val + @property def data_source(self): """Data Source @@ -50,6 +52,7 @@ def data_source(self): " """ val = self._get_property('Data Source') return val + @data_source.setter def data_source(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @@ -62,6 +65,7 @@ def visible(self) -> bool: """ val = self._get_property('Visible') return val + @visible.setter def visible(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @@ -74,6 +78,7 @@ def custom_legend(self) -> bool: """ val = self._get_property('Custom Legend') return val + @custom_legend.setter def custom_legend(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @@ -85,6 +90,7 @@ def name(self) -> str: " """ val = self._get_property('Name') return val + @name.setter def name(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) @@ -96,6 +102,7 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property def style(self) -> StyleOption: """Style @@ -104,6 +111,7 @@ def style(self) -> StyleOption: val = self._get_property('Style') val = self.StyleOption[val] return val + @style.setter def style(self, value: StyleOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @@ -116,6 +124,7 @@ def line_width(self) -> int: """ val = self._get_property('Line Width') return val + @line_width.setter def line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @@ -128,6 +137,7 @@ def line_color(self): """ val = self._get_property('Line Color') return val + @line_color.setter def line_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) @@ -148,6 +158,7 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property def symbol(self) -> SymbolOption: """Symbol @@ -156,6 +167,7 @@ def symbol(self) -> SymbolOption: val = self._get_property('Symbol') val = self.SymbolOption[val] return val + @symbol.setter def symbol(self, value: SymbolOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @@ -168,6 +180,7 @@ def symbol_size(self) -> int: """ val = self._get_property('Symbol Size') return val + @symbol_size.setter def symbol_size(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @@ -180,6 +193,7 @@ def symbol_color(self): """ val = self._get_property('Symbol Color') return val + @symbol_color.setter def symbol_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @@ -192,6 +206,7 @@ def symbol_line_width(self) -> int: """ val = self._get_property('Symbol Line Width') return val + @symbol_line_width.setter def symbol_line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @@ -204,6 +219,7 @@ def symbol_filled(self) -> bool: """ val = self._get_property('Symbol Filled') return val + @symbol_filled.setter def symbol_filled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py index d4c54525427..1b2c7a8e242 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py @@ -33,6 +33,7 @@ def input_port(self) -> int: """ val = self._get_property('Input Port') return val + @input_port.setter def input_port(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) @@ -45,6 +46,7 @@ def output_port(self) -> int: """ val = self._get_property('Output Port') return val + @output_port.setter def output_port(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) @@ -56,6 +58,7 @@ def data_source(self): " """ val = self._get_property('Data Source') return val + @data_source.setter def data_source(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @@ -68,6 +71,7 @@ def visible(self) -> bool: """ val = self._get_property('Visible') return val + @visible.setter def visible(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @@ -80,6 +84,7 @@ def custom_legend(self) -> bool: """ val = self._get_property('Custom Legend') return val + @custom_legend.setter def custom_legend(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @@ -91,6 +96,7 @@ def name(self) -> str: " """ val = self._get_property('Name') return val + @name.setter def name(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) @@ -102,6 +108,7 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property def style(self) -> StyleOption: """Style @@ -110,6 +117,7 @@ def style(self) -> StyleOption: val = self._get_property('Style') val = self.StyleOption[val] return val + @style.setter def style(self, value: StyleOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @@ -122,6 +130,7 @@ def line_width(self) -> int: """ val = self._get_property('Line Width') return val + @line_width.setter def line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @@ -134,6 +143,7 @@ def line_color(self): """ val = self._get_property('Line Color') return val + @line_color.setter def line_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) @@ -154,6 +164,7 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property def symbol(self) -> SymbolOption: """Symbol @@ -162,6 +173,7 @@ def symbol(self) -> SymbolOption: val = self._get_property('Symbol') val = self.SymbolOption[val] return val + @symbol.setter def symbol(self, value: SymbolOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @@ -174,6 +186,7 @@ def symbol_size(self) -> int: """ val = self._get_property('Symbol Size') return val + @symbol_size.setter def symbol_size(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @@ -186,6 +199,7 @@ def symbol_color(self): """ val = self._get_property('Symbol Color') return val + @symbol_color.setter def symbol_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @@ -198,6 +212,7 @@ def symbol_line_width(self) -> int: """ val = self._get_property('Symbol Line Width') return val + @symbol_line_width.setter def symbol_line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @@ -210,6 +225,7 @@ def symbol_filled(self) -> bool: """ val = self._get_property('Symbol Filled') return val + @symbol_filled.setter def symbol_filled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index ef1cd625a73..661832d4395 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -28,6 +28,7 @@ def filename(self) -> str: """ val = self._get_property('Filename') return val + @filename.setter def filename(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @@ -40,6 +41,7 @@ def noise_temperature(self) -> float: """ val = self._get_property('Noise Temperature') return val + @noise_temperature.setter def noise_temperature(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @@ -51,6 +53,7 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + @notes.setter def notes(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) @@ -58,6 +61,7 @@ def notes(self, value: str): class TxPortOption(Enum): _0 = "Port 1" _1 = "Port 2" + @property def tx_port(self) -> TxPortOption: """Tx Port @@ -66,6 +70,7 @@ def tx_port(self) -> TxPortOption: val = self._get_property('Tx Port') val = self.TxPortOption[val] return val + @tx_port.setter def tx_port(self, value: TxPortOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Tx Port=' + value.value]) @@ -73,6 +78,7 @@ def tx_port(self, value: TxPortOption): class CommonPortLocationOption(Enum): RADIOSIDE = "Radio Side" ANTENNASIDE = "Antenna Side" + @property def common_port_location(self) -> CommonPortLocationOption: """Common Port Location @@ -81,6 +87,7 @@ def common_port_location(self) -> CommonPortLocationOption: val = self._get_property('Common Port Location') val = self.CommonPortLocationOption[val] return val + @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Common Port Location=' + value.value]) @@ -93,6 +100,7 @@ def insertion_loss(self) -> float: """ val = self._get_property('Insertion Loss') return val + @insertion_loss.setter def insertion_loss(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) @@ -105,6 +113,7 @@ def finite_isolation(self) -> bool: """ val = self._get_property('Finite Isolation') return val + @finite_isolation.setter def finite_isolation(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Finite Isolation=' + value]) @@ -117,6 +126,7 @@ def isolation(self) -> float: """ val = self._get_property('Isolation') return val + @isolation.setter def isolation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Isolation=' + value]) @@ -129,6 +139,7 @@ def finite_bandwidth(self) -> bool: """ val = self._get_property('Finite Bandwidth') return val + @finite_bandwidth.setter def finite_bandwidth(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) @@ -141,6 +152,7 @@ def out_of_band_attenuation(self) -> float: """ val = self._get_property('Out-of-band Attenuation') return val + @out_of_band_attenuation.setter def out_of_band_attenuation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) @@ -153,6 +165,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property('Lower Stop Band') return val + @lower_stop_band.setter def lower_stop_band(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) @@ -165,6 +178,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property('Lower Cutoff') return val + @lower_cutoff.setter def lower_cutoff(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) @@ -177,6 +191,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property('Higher Cutoff') return val + @higher_cutoff.setter def higher_cutoff(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) @@ -189,6 +204,7 @@ def higher_stop_band(self) -> float: """ val = self._get_property('Higher Stop Band') return val + @higher_stop_band.setter def higher_stop_band(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index a25f485bb27..2caedb19d78 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -28,6 +28,7 @@ def filename(self) -> str: """ val = self._get_property('Filename') return val + @filename.setter def filename(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @@ -40,6 +41,7 @@ def noise_temperature(self) -> float: """ val = self._get_property('Noise Temperature') return val + @noise_temperature.setter def noise_temperature(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @@ -51,6 +53,7 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + @notes.setter def notes(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) @@ -58,6 +61,7 @@ def notes(self, value: str): class TypeOption(Enum): BYFILE = "By File" PARAMETRIC = "Parametric" + @property def type(self) -> TypeOption: """Type @@ -66,6 +70,7 @@ def type(self) -> TypeOption: val = self._get_property('Type') val = self.TypeOption[val] return val + @type.setter def type(self, value: TypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) @@ -73,6 +78,7 @@ def type(self, value: TypeOption): class PortLocationOption(Enum): RADIOSIDE = "Radio Side" ANTENNASIDE = "Antenna Side" + @property def port_location(self) -> PortLocationOption: """Port Location @@ -81,6 +87,7 @@ def port_location(self) -> PortLocationOption: val = self._get_property('Port Location') val = self.PortLocationOption[val] return val + @port_location.setter def port_location(self, value: PortLocationOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Port Location=' + value.value]) @@ -93,6 +100,7 @@ def vswr(self) -> float: """ val = self._get_property('VSWR') return val + @vswr.setter def vswr(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['VSWR=' + value]) @@ -104,3 +112,4 @@ def warnings(self) -> str: " """ val = self._get_property('Warnings') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py index 5f1ab809ab3..bbd66f60710 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py @@ -33,6 +33,7 @@ def input_port(self) -> int: """ val = self._get_property('Input Port') return val + @input_port.setter def input_port(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) @@ -45,6 +46,7 @@ def output_port(self) -> int: """ val = self._get_property('Output Port') return val + @output_port.setter def output_port(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) @@ -56,6 +58,7 @@ def data_source(self): " """ val = self._get_property('Data Source') return val + @data_source.setter def data_source(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @@ -68,6 +71,7 @@ def visible(self) -> bool: """ val = self._get_property('Visible') return val + @visible.setter def visible(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @@ -80,6 +84,7 @@ def custom_legend(self) -> bool: """ val = self._get_property('Custom Legend') return val + @custom_legend.setter def custom_legend(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @@ -91,6 +96,7 @@ def name(self) -> str: " """ val = self._get_property('Name') return val + @name.setter def name(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) @@ -102,6 +108,7 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property def style(self) -> StyleOption: """Style @@ -110,6 +117,7 @@ def style(self) -> StyleOption: val = self._get_property('Style') val = self.StyleOption[val] return val + @style.setter def style(self, value: StyleOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @@ -122,6 +130,7 @@ def line_width(self) -> int: """ val = self._get_property('Line Width') return val + @line_width.setter def line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @@ -134,6 +143,7 @@ def line_color(self): """ val = self._get_property('Line Color') return val + @line_color.setter def line_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) @@ -154,6 +164,7 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property def symbol(self) -> SymbolOption: """Symbol @@ -162,6 +173,7 @@ def symbol(self) -> SymbolOption: val = self._get_property('Symbol') val = self.SymbolOption[val] return val + @symbol.setter def symbol(self, value: SymbolOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @@ -174,6 +186,7 @@ def symbol_size(self) -> int: """ val = self._get_property('Symbol Size') return val + @symbol_size.setter def symbol_size(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @@ -186,6 +199,7 @@ def symbol_color(self): """ val = self._get_property('Symbol Color') return val + @symbol_color.setter def symbol_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @@ -198,6 +212,7 @@ def symbol_line_width(self) -> int: """ val = self._get_property('Symbol Line Width') return val + @symbol_line_width.setter def symbol_line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @@ -210,6 +225,7 @@ def symbol_filled(self) -> bool: """ val = self._get_property('Symbol Filled') return val + @symbol_filled.setter def symbol_filled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) @@ -222,6 +238,7 @@ def frequency_1(self) -> float: """ val = self._get_property('Frequency 1') return val + @frequency_1.setter def frequency_1(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Frequency 1=' + value]) @@ -234,6 +251,7 @@ def amplitude_1(self) -> float: """ val = self._get_property('Amplitude 1') return val + @amplitude_1.setter def amplitude_1(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Amplitude 1=' + value]) @@ -246,6 +264,7 @@ def bandwidth_1(self) -> float: """ val = self._get_property('Bandwidth 1') return val + @bandwidth_1.setter def bandwidth_1(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth 1=' + value]) @@ -258,6 +277,7 @@ def frequency_2(self) -> float: """ val = self._get_property('Frequency 2') return val + @frequency_2.setter def frequency_2(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Frequency 2=' + value]) @@ -270,6 +290,7 @@ def amplitude_2(self) -> float: """ val = self._get_property('Amplitude 2') return val + @amplitude_2.setter def amplitude_2(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Amplitude 2=' + value]) @@ -282,6 +303,7 @@ def bandwidth_2(self) -> float: """ val = self._get_property('Bandwidth 2') return val + @bandwidth_2.setter def bandwidth_2(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth 2=' + value]) @@ -294,6 +316,7 @@ def noise_level(self) -> float: """ val = self._get_property('Noise Level') return val + @noise_level.setter def noise_level(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Level=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py index 17fd859055f..3bc6c5e32cf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py @@ -33,6 +33,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @@ -45,6 +46,7 @@ def enable_refinement(self) -> bool: """ val = self._get_property('Enable Refinement') return val + @enable_refinement.setter def enable_refinement(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @@ -57,6 +59,7 @@ def adaptive_sampling(self) -> bool: """ val = self._get_property('Adaptive Sampling') return val + @adaptive_sampling.setter def adaptive_sampling(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @@ -68,6 +71,7 @@ def refinement_domain(self): " """ val = self._get_property('Refinement Domain') return val + @refinement_domain.setter def refinement_domain(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) @@ -80,6 +84,7 @@ def filename(self) -> str: """ val = self._get_property('Filename') return val + @filename.setter def filename(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @@ -91,6 +96,7 @@ def savant_matched_coupling_file(self) -> str: " """ val = self._get_property('Savant Matched Coupling File') return val + @property def enable_em_isolation(self) -> bool: """Enable EM Isolation @@ -99,6 +105,7 @@ def enable_em_isolation(self) -> bool: """ val = self._get_property('Enable EM Isolation') return val + @enable_em_isolation.setter def enable_em_isolation(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable EM Isolation=' + value]) @@ -111,6 +118,7 @@ def port_antenna_assignment(self): " """ val = self._get_property('Port-Antenna Assignment') return val + @port_antenna_assignment.setter def port_antenna_assignment(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Port-Antenna Assignment=' + value]) @@ -122,6 +130,7 @@ def notes(self) -> str: " """ val = self._get_property('Notes') return val + @notes.setter def notes(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py index 73d762aaf0b..f7e62187d11 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py @@ -33,6 +33,7 @@ def input_port(self) -> int: """ val = self._get_property('Input Port') return val + @input_port.setter def input_port(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) @@ -45,6 +46,7 @@ def output_port(self) -> int: """ val = self._get_property('Output Port') return val + @output_port.setter def output_port(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) @@ -56,6 +58,7 @@ def frequency(self) -> float: " """ val = self._get_property('Frequency') return val + @frequency.setter def frequency(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Frequency=' + value]) @@ -67,6 +70,7 @@ def data_source(self): " """ val = self._get_property('Data Source') return val + @data_source.setter def data_source(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @@ -79,6 +83,7 @@ def visible(self) -> bool: """ val = self._get_property('Visible') return val + @visible.setter def visible(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @@ -91,6 +96,7 @@ def custom_legend(self) -> bool: """ val = self._get_property('Custom Legend') return val + @custom_legend.setter def custom_legend(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @@ -102,6 +108,7 @@ def name(self) -> str: " """ val = self._get_property('Name') return val + @name.setter def name(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) @@ -113,6 +120,7 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property def style(self) -> StyleOption: """Style @@ -121,6 +129,7 @@ def style(self) -> StyleOption: val = self._get_property('Style') val = self.StyleOption[val] return val + @style.setter def style(self, value: StyleOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @@ -133,6 +142,7 @@ def line_width(self) -> int: """ val = self._get_property('Line Width') return val + @line_width.setter def line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @@ -145,6 +155,7 @@ def line_color(self): """ val = self._get_property('Line Color') return val + @line_color.setter def line_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) @@ -165,6 +176,7 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property def symbol(self) -> SymbolOption: """Symbol @@ -173,6 +185,7 @@ def symbol(self) -> SymbolOption: val = self._get_property('Symbol') val = self.SymbolOption[val] return val + @symbol.setter def symbol(self, value: SymbolOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @@ -185,6 +198,7 @@ def symbol_size(self) -> int: """ val = self._get_property('Symbol Size') return val + @symbol_size.setter def symbol_size(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @@ -197,6 +211,7 @@ def symbol_color(self): """ val = self._get_property('Symbol Color') return val + @symbol_color.setter def symbol_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @@ -209,6 +224,7 @@ def symbol_line_width(self) -> int: """ val = self._get_property('Symbol Line Width') return val + @symbol_line_width.setter def symbol_line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @@ -221,6 +237,7 @@ def symbol_filled(self) -> bool: """ val = self._get_property('Symbol Filled') return val + @symbol_filled.setter def symbol_filled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py index 049057cc6ee..b06383fb9fd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py @@ -33,6 +33,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @@ -44,6 +45,7 @@ def antenna_a(self) -> EmitNode: " """ val = self._get_property('Antenna A') return val + @antenna_a.setter def antenna_a(self, value: EmitNode): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) @@ -55,6 +57,7 @@ def antenna_b(self) -> EmitNode: " """ val = self._get_property('Antenna B') return val + @antenna_b.setter def antenna_b(self, value: EmitNode): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) @@ -67,6 +70,7 @@ def enable_refinement(self) -> bool: """ val = self._get_property('Enable Refinement') return val + @enable_refinement.setter def enable_refinement(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @@ -79,6 +83,7 @@ def adaptive_sampling(self) -> bool: """ val = self._get_property('Adaptive Sampling') return val + @adaptive_sampling.setter def adaptive_sampling(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @@ -90,6 +95,7 @@ def refinement_domain(self): " """ val = self._get_property('Refinement Domain') return val + @refinement_domain.setter def refinement_domain(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) @@ -102,6 +108,7 @@ def ground_reflection_coeff(self) -> float: """ val = self._get_property('Ground Reflection Coeff.') return val + @ground_reflection_coeff.setter def ground_reflection_coeff(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Ground Reflection Coeff.=' + value]) @@ -114,6 +121,7 @@ def pointspeak(self) -> int: """ val = self._get_property('Points/Peak') return val + @pointspeak.setter def pointspeak(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Points/Peak=' + value]) @@ -126,6 +134,7 @@ def custom_fading_margin(self) -> float: """ val = self._get_property('Custom Fading Margin') return val + @custom_fading_margin.setter def custom_fading_margin(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) @@ -138,6 +147,7 @@ def polarization_mismatch(self) -> float: """ val = self._get_property('Polarization Mismatch') return val + @polarization_mismatch.setter def polarization_mismatch(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) @@ -150,6 +160,7 @@ def pointing_error_loss(self) -> float: """ val = self._get_property('Pointing Error Loss') return val + @pointing_error_loss.setter def pointing_error_loss(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) @@ -159,6 +170,7 @@ class FadingTypeOption(Enum): FASTFADINGONLY = "Fast Fading Only" SHADOWINGONLY = "Shadowing Only" SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + @property def fading_type(self) -> FadingTypeOption: """Fading Type @@ -167,6 +179,7 @@ def fading_type(self) -> FadingTypeOption: val = self._get_property('Fading Type') val = self.FadingTypeOption[val] return val + @fading_type.setter def fading_type(self, value: FadingTypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) @@ -179,6 +192,7 @@ def fading_availability(self) -> float: """ val = self._get_property('Fading Availability') return val + @fading_availability.setter def fading_availability(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) @@ -191,6 +205,7 @@ def std_deviation(self) -> float: """ val = self._get_property('Std Deviation') return val + @std_deviation.setter def std_deviation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) @@ -203,6 +218,7 @@ def include_rain_attenuation(self) -> bool: """ val = self._get_property('Include Rain Attenuation') return val + @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) @@ -215,6 +231,7 @@ def rain_availability(self) -> float: """ val = self._get_property('Rain Availability') return val + @rain_availability.setter def rain_availability(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) @@ -227,6 +244,7 @@ def rain_rate(self) -> float: """ val = self._get_property('Rain Rate') return val + @rain_rate.setter def rain_rate(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) @@ -239,6 +257,7 @@ def polarization_tilt_angle(self) -> float: """ val = self._get_property('Polarization Tilt Angle') return val + @polarization_tilt_angle.setter def polarization_tilt_angle(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) @@ -251,6 +270,7 @@ def include_atmospheric_absorption(self) -> bool: """ val = self._get_property('Include Atmospheric Absorption') return val + @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) @@ -263,6 +283,7 @@ def temperature(self) -> float: """ val = self._get_property('Temperature') return val + @temperature.setter def temperature(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) @@ -275,6 +296,7 @@ def total_air_pressure(self) -> float: """ val = self._get_property('Total Air Pressure') return val + @total_air_pressure.setter def total_air_pressure(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) @@ -287,6 +309,7 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property('Water Vapor Concentration') return val + @water_vapor_concentration.setter def water_vapor_concentration(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py index 92108e940ad..c451c2617a8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py @@ -33,6 +33,7 @@ def input_port(self) -> int: """ val = self._get_property('Input Port') return val + @input_port.setter def input_port(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) @@ -45,6 +46,7 @@ def output_port(self) -> int: """ val = self._get_property('Output Port') return val + @output_port.setter def output_port(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) @@ -56,6 +58,7 @@ def data_source(self): " """ val = self._get_property('Data Source') return val + @data_source.setter def data_source(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @@ -68,6 +71,7 @@ def visible(self) -> bool: """ val = self._get_property('Visible') return val + @visible.setter def visible(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @@ -80,6 +84,7 @@ def custom_legend(self) -> bool: """ val = self._get_property('Custom Legend') return val + @custom_legend.setter def custom_legend(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @@ -91,6 +96,7 @@ def name(self) -> str: " """ val = self._get_property('Name') return val + @name.setter def name(self, value: str): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) @@ -102,6 +108,7 @@ class StyleOption(Enum): DOT_DASH = "Dot-Dash" DOT_DOT_DASH = "Dot-Dot-Dash" NONE = "None" + @property def style(self) -> StyleOption: """Style @@ -110,6 +117,7 @@ def style(self) -> StyleOption: val = self._get_property('Style') val = self.StyleOption[val] return val + @style.setter def style(self, value: StyleOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @@ -122,6 +130,7 @@ def line_width(self) -> int: """ val = self._get_property('Line Width') return val + @line_width.setter def line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @@ -134,6 +143,7 @@ def line_color(self): """ val = self._get_property('Line Color') return val + @line_color.setter def line_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) @@ -154,6 +164,7 @@ class SymbolOption(Enum): STAR1 = "Star1" STAR2 = "Star2" HEXAGON = "Hexagon" + @property def symbol(self) -> SymbolOption: """Symbol @@ -162,6 +173,7 @@ def symbol(self) -> SymbolOption: val = self._get_property('Symbol') val = self.SymbolOption[val] return val + @symbol.setter def symbol(self, value: SymbolOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @@ -174,6 +186,7 @@ def symbol_size(self) -> int: """ val = self._get_property('Symbol Size') return val + @symbol_size.setter def symbol_size(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @@ -186,6 +199,7 @@ def symbol_color(self): """ val = self._get_property('Symbol Color') return val + @symbol_color.setter def symbol_color(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @@ -198,6 +212,7 @@ def symbol_line_width(self) -> int: """ val = self._get_property('Symbol Line Width') return val + @symbol_line_width.setter def symbol_line_width(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @@ -210,6 +225,7 @@ def symbol_filled(self) -> bool: """ val = self._get_property('Symbol Filled') return val + @symbol_filled.setter def symbol_filled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) @@ -222,6 +238,7 @@ def frequency_1(self) -> float: """ val = self._get_property('Frequency 1') return val + @frequency_1.setter def frequency_1(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Frequency 1=' + value]) @@ -234,6 +251,7 @@ def amplitude_1(self) -> float: """ val = self._get_property('Amplitude 1') return val + @amplitude_1.setter def amplitude_1(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Amplitude 1=' + value]) @@ -246,6 +264,7 @@ def bandwidth_1(self) -> float: """ val = self._get_property('Bandwidth 1') return val + @bandwidth_1.setter def bandwidth_1(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth 1=' + value]) @@ -258,6 +277,7 @@ def frequency_2(self) -> float: """ val = self._get_property('Frequency 2') return val + @frequency_2.setter def frequency_2(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Frequency 2=' + value]) @@ -270,6 +290,7 @@ def amplitude_2(self) -> float: """ val = self._get_property('Amplitude 2') return val + @amplitude_2.setter def amplitude_2(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Amplitude 2=' + value]) @@ -282,6 +303,7 @@ def bandwidth_2(self) -> float: """ val = self._get_property('Bandwidth 2') return val + @bandwidth_2.setter def bandwidth_2(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth 2=' + value]) @@ -294,6 +316,7 @@ def noise_level(self) -> float: """ val = self._get_property('Noise Level') return val + @noise_level.setter def noise_level(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Level=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py index be344c3cd0d..f9e00101072 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py @@ -31,6 +31,7 @@ def table_data(self): " Value should be between -200 and 150." """ return self._get_table_data() + @table_data.setter def table_data(self, value): self._set_table_data(value) @@ -39,6 +40,7 @@ def table_data(self, value): def enabled(self) -> bool: """Enabled state for this node.""" return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) @@ -48,6 +50,7 @@ class NoiseBehaviorOption(Enum): RELATIVEBANDWIDTH = "Relative (Bandwidth)" RELATIVEOFFSET = "Relative (Offset)" BROADBANDEQUATION = "Equation" + @property def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior @@ -56,6 +59,7 @@ def noise_behavior(self) -> NoiseBehaviorOption: val = self._get_property('Noise Behavior') val = self.NoiseBehaviorOption[val] return val + @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Behavior=' + value.value]) @@ -68,6 +72,7 @@ def use_log_linear_interpolation(self) -> bool: """ val = self._get_property('Use Log-Linear Interpolation') return val + @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use Log-Linear Interpolation=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py index 6a40fac16b1..57623ef7cde 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py @@ -25,6 +25,7 @@ def delete(self): def enabled(self) -> bool: """Enabled state for this node.""" return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) @@ -32,6 +33,7 @@ def enabled(self, value: bool): class HarmonicTableUnitsOption(Enum): ABSOLUTE = "Absolute" RELATIVE = "Relative" + @property def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units @@ -40,6 +42,7 @@ def harmonic_table_units(self) -> HarmonicTableUnitsOption: val = self._get_property('Harmonic Table Units') val = self.HarmonicTableUnitsOption[val] return val + @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Table Units=' + value.value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py index c9d3b49d653..2e3c8a730f1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py @@ -29,6 +29,7 @@ def file(self) -> str: """ val = self._get_property('File') return val + @property def source_file(self) -> str: """Source File @@ -37,6 +38,7 @@ def source_file(self) -> str: """ val = self._get_property('Source File') return val + @property def transmit_frequency(self) -> float: """Transmit Frequency @@ -44,6 +46,7 @@ def transmit_frequency(self) -> float: " """ val = self._get_property('Transmit Frequency') return val + @property def use_ams_limits(self) -> bool: """Use AMS Limits @@ -52,6 +55,7 @@ def use_ams_limits(self) -> bool: """ val = self._get_property('Use AMS Limits') return val + @use_ams_limits.setter def use_ams_limits(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use AMS Limits=' + value]) @@ -64,6 +68,7 @@ def start_frequency(self) -> float: """ val = self._get_property('Start Frequency') return val + @start_frequency.setter def start_frequency(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Start Frequency=' + value]) @@ -76,6 +81,7 @@ def stop_frequency(self) -> float: """ val = self._get_property('Stop Frequency') return val + @stop_frequency.setter def stop_frequency(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Stop Frequency=' + value]) @@ -88,6 +94,7 @@ def exclude_harmonics_below_noise(self) -> bool: """ val = self._get_property('Exclude Harmonics Below Noise') return val + @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Exclude Harmonics Below Noise=' + value]) @@ -96,6 +103,7 @@ def exclude_harmonics_below_noise(self, value: bool): def enabled(self) -> bool: """Enabled state for this node.""" return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py index d1d344ca085..c51b0ce0f07 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py @@ -25,6 +25,7 @@ def delete(self): def enabled(self) -> bool: """Enabled state for this node.""" return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) @@ -32,6 +33,7 @@ def enabled(self, value: bool): class NarrowbandBehaviorOption(Enum): ABSOLUTE = "Absolute Freqs and Power" RELATIVEBANDWIDTH = "Relative Freqs and Attenuation" + @property def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior @@ -40,6 +42,7 @@ def narrowband_behavior(self) -> NarrowbandBehaviorOption: val = self._get_property('Narrowband Behavior') val = self.NarrowbandBehaviorOption[val] return val + @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Narrowband Behavior=' + value.value]) @@ -51,6 +54,7 @@ def measurement_frequency(self) -> float: " """ val = self._get_property('Measurement Frequency') return val + @measurement_frequency.setter def measurement_frequency(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Measurement Frequency=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py index aa237a5f7bb..ce377d3efca 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py @@ -17,6 +17,7 @@ def parent(self): def enabled(self) -> bool: """Enabled state for this node.""" return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) @@ -24,6 +25,7 @@ def enabled(self, value: bool): class SpectrumTypeOption(Enum): BOTH = "Narrowband & Broadband" BROADBANDONLY = "Broadband Only" + @property def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type @@ -32,6 +34,7 @@ def spectrum_type(self) -> SpectrumTypeOption: val = self._get_property('Spectrum Type') val = self.SpectrumTypeOption[val] return val + @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Spectrum Type=' + value.value]) @@ -39,6 +42,7 @@ def spectrum_type(self, value: SpectrumTypeOption): class TxPowerOption(Enum): PEAK_POWER = "Peak Power" AVERAGE_POWER = "Average Power" + @property def tx_power(self) -> TxPowerOption: """Tx Power @@ -47,6 +51,7 @@ def tx_power(self) -> TxPowerOption: val = self._get_property('Tx Power') val = self.TxPowerOption[val] return val + @tx_power.setter def tx_power(self, value: TxPowerOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Tx Power=' + value.value]) @@ -59,6 +64,7 @@ def peak_power(self) -> float: """ val = self._get_property('Peak Power') return val + @peak_power.setter def peak_power(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Peak Power=' + value]) @@ -71,6 +77,7 @@ def average_power(self) -> float: """ val = self._get_property('Average Power') return val + @average_power.setter def average_power(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Average Power=' + value]) @@ -82,6 +89,7 @@ def output_voltage_peak(self) -> float: " """ val = self._get_property('Output Voltage Peak') return val + @output_voltage_peak.setter def output_voltage_peak(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Output Voltage Peak=' + value]) @@ -94,6 +102,7 @@ def include_phase_noise(self) -> bool: """ val = self._get_property('Include Phase Noise') return val + @include_phase_noise.setter def include_phase_noise(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Phase Noise=' + value]) @@ -106,6 +115,7 @@ def tx_broadband_noise(self) -> float: """ val = self._get_property('Tx Broadband Noise') return val + @tx_broadband_noise.setter def tx_broadband_noise(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Tx Broadband Noise=' + value]) @@ -115,6 +125,7 @@ class HarmonicTaperOption(Enum): MIL_STD_461G = "MIL-STD-461G" MIL_STD_461G_NAVY = "MIL-STD-461G Navy" DUFF_MODEL = "Duff Model" + @property def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper @@ -123,6 +134,7 @@ def harmonic_taper(self) -> HarmonicTaperOption: val = self._get_property('Harmonic Taper') val = self.HarmonicTaperOption[val] return val + @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Taper=' + value.value]) @@ -135,6 +147,7 @@ def harmonic_amplitude(self) -> float: """ val = self._get_property('Harmonic Amplitude') return val + @harmonic_amplitude.setter def harmonic_amplitude(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Amplitude=' + value]) @@ -147,6 +160,7 @@ def harmonic_slope(self) -> float: """ val = self._get_property('Harmonic Slope') return val + @harmonic_slope.setter def harmonic_slope(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Slope=' + value]) @@ -159,6 +173,7 @@ def harmonic_intercept(self) -> float: """ val = self._get_property('Harmonic Intercept') return val + @harmonic_intercept.setter def harmonic_intercept(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Intercept=' + value]) @@ -171,6 +186,7 @@ def enable_harmonic_bw_expansion(self) -> bool: """ val = self._get_property('Enable Harmonic BW Expansion') return val + @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Harmonic BW Expansion=' + value]) @@ -183,6 +199,7 @@ def number_of_harmonics(self) -> int: """ val = self._get_property('Number of Harmonics') return val + @number_of_harmonics.setter def number_of_harmonics(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Number of Harmonics=' + value]) @@ -195,6 +212,7 @@ def _2nd_harmonic_level(self) -> float: """ val = self._get_property('2nd Harmonic Level') return val + @_2nd_harmonic_level.setter def _2nd_harmonic_level(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['2nd Harmonic Level=' + value]) @@ -207,6 +225,7 @@ def _3rd_harmonic_level(self) -> float: """ val = self._get_property('3rd Harmonic Level') return val + @_3rd_harmonic_level.setter def _3rd_harmonic_level(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['3rd Harmonic Level=' + value]) @@ -219,6 +238,7 @@ def other_harmonic_levels(self) -> float: """ val = self._get_property('Other Harmonic Levels') return val + @other_harmonic_levels.setter def other_harmonic_levels(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Other Harmonic Levels=' + value]) @@ -231,6 +251,7 @@ def perform_tx_intermod_analysis(self) -> bool: """ val = self._get_property('Perform Tx Intermod Analysis') return val + @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Perform Tx Intermod Analysis=' + value]) @@ -243,6 +264,7 @@ def internal_amp_gain(self) -> float: """ val = self._get_property('Internal Amp Gain') return val + @internal_amp_gain.setter def internal_amp_gain(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Internal Amp Gain=' + value]) @@ -255,6 +277,7 @@ def noise_figure(self) -> float: """ val = self._get_property('Noise Figure') return val + @noise_figure.setter def noise_figure(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Figure=' + value]) @@ -267,6 +290,7 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property('Amplifier Saturation Level') return val + @amplifier_saturation_level.setter def amplifier_saturation_level(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Amplifier Saturation Level=' + value]) @@ -279,6 +303,7 @@ def _1_db_point_ref_input_(self) -> float: """ val = self._get_property('1-dB Point, Ref. Input ') return val + @_1_db_point_ref_input_.setter def _1_db_point_ref_input_(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input =' + value]) @@ -291,6 +316,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property('IP3, Ref. Input') return val + @ip3_ref_input.setter def ip3_ref_input(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + value]) @@ -303,6 +329,7 @@ def reverse_isolation(self) -> float: """ val = self._get_property('Reverse Isolation') return val + @reverse_isolation.setter def reverse_isolation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) @@ -315,6 +342,7 @@ def max_intermod_order(self) -> int: """ val = self._get_property('Max Intermod Order') return val + @max_intermod_order.setter def max_intermod_order(self, value: int): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py index 9cee751877d..c98dc395027 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py @@ -33,6 +33,7 @@ def table_data(self): " Value should be between -200 and 150." """ return self._get_table_data() + @table_data.setter def table_data(self, value): self._set_table_data(value) @@ -41,6 +42,7 @@ def table_data(self, value): def enabled(self) -> bool: """Enabled state for this node.""" return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) @@ -48,6 +50,7 @@ def enabled(self, value: bool): class SpurTableUnitsOption(Enum): ABSOLUTE = "Absolute" RELATIVE = "Relative" + @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units @@ -56,6 +59,7 @@ def spur_table_units(self) -> SpurTableUnitsOption: val = self._get_property('Spur Table Units') val = self.SpurTableUnitsOption[val] return val + @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Spur Table Units=' + value.value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py index 269fce0d2c2..e86ba6e514c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py @@ -33,6 +33,7 @@ def enabled(self) -> bool: """ val = self._get_property('Enabled') return val + @enabled.setter def enabled(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @@ -44,6 +45,7 @@ def base_antenna(self) -> EmitNode: " """ val = self._get_property('Base Antenna') return val + @base_antenna.setter def base_antenna(self, value: EmitNode): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Base Antenna=' + value]) @@ -55,6 +57,7 @@ def mobile_antenna(self) -> EmitNode: " """ val = self._get_property('Mobile Antenna') return val + @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mobile Antenna=' + value]) @@ -67,6 +70,7 @@ def enable_refinement(self) -> bool: """ val = self._get_property('Enable Refinement') return val + @enable_refinement.setter def enable_refinement(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @@ -79,6 +83,7 @@ def adaptive_sampling(self) -> bool: """ val = self._get_property('Adaptive Sampling') return val + @adaptive_sampling.setter def adaptive_sampling(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @@ -90,6 +95,7 @@ def refinement_domain(self): " """ val = self._get_property('Refinement Domain') return val + @refinement_domain.setter def refinement_domain(self, value): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) @@ -97,6 +103,7 @@ def refinement_domain(self, value): class PathLossTypeOption(Enum): WALFISCHLOS = "LOS (Urban Canyon)" WALFISCHNLOS = "NLOS" + @property def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type @@ -105,6 +112,7 @@ def path_loss_type(self) -> PathLossTypeOption: val = self._get_property('Path Loss Type') val = self.PathLossTypeOption[val] return val + @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Path Loss Type=' + value.value]) @@ -112,6 +120,7 @@ def path_loss_type(self, value: PathLossTypeOption): class EnvironmentOption(Enum): DENSEMETROAREA = "Dense Metro" SMALLURBANORSUBURBAN = "Small/Medium City or Suburban" + @property def environment(self) -> EnvironmentOption: """Environment @@ -120,6 +129,7 @@ def environment(self) -> EnvironmentOption: val = self._get_property('Environment') val = self.EnvironmentOption[val] return val + @environment.setter def environment(self, value: EnvironmentOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Environment=' + value.value]) @@ -132,6 +142,7 @@ def roof_height(self) -> float: """ val = self._get_property('Roof Height') return val + @roof_height.setter def roof_height(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Roof Height=' + value]) @@ -144,6 +155,7 @@ def distance_between_buildings(self) -> float: """ val = self._get_property('Distance Between Buildings') return val + @distance_between_buildings.setter def distance_between_buildings(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Distance Between Buildings=' + value]) @@ -156,6 +168,7 @@ def street_width(self) -> float: """ val = self._get_property('Street Width') return val + @street_width.setter def street_width(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Street Width=' + value]) @@ -168,6 +181,7 @@ def incidence_angle(self) -> float: """ val = self._get_property('Incidence Angle') return val + @incidence_angle.setter def incidence_angle(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Incidence Angle=' + value]) @@ -180,6 +194,7 @@ def custom_fading_margin(self) -> float: """ val = self._get_property('Custom Fading Margin') return val + @custom_fading_margin.setter def custom_fading_margin(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) @@ -192,6 +207,7 @@ def polarization_mismatch(self) -> float: """ val = self._get_property('Polarization Mismatch') return val + @polarization_mismatch.setter def polarization_mismatch(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) @@ -204,6 +220,7 @@ def pointing_error_loss(self) -> float: """ val = self._get_property('Pointing Error Loss') return val + @pointing_error_loss.setter def pointing_error_loss(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) @@ -213,6 +230,7 @@ class FadingTypeOption(Enum): FASTFADINGONLY = "Fast Fading Only" SHADOWINGONLY = "Shadowing Only" SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + @property def fading_type(self) -> FadingTypeOption: """Fading Type @@ -221,6 +239,7 @@ def fading_type(self) -> FadingTypeOption: val = self._get_property('Fading Type') val = self.FadingTypeOption[val] return val + @fading_type.setter def fading_type(self, value: FadingTypeOption): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) @@ -233,6 +252,7 @@ def fading_availability(self) -> float: """ val = self._get_property('Fading Availability') return val + @fading_availability.setter def fading_availability(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) @@ -245,6 +265,7 @@ def std_deviation(self) -> float: """ val = self._get_property('Std Deviation') return val + @std_deviation.setter def std_deviation(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) @@ -257,6 +278,7 @@ def include_rain_attenuation(self) -> bool: """ val = self._get_property('Include Rain Attenuation') return val + @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) @@ -269,6 +291,7 @@ def rain_availability(self) -> float: """ val = self._get_property('Rain Availability') return val + @rain_availability.setter def rain_availability(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) @@ -281,6 +304,7 @@ def rain_rate(self) -> float: """ val = self._get_property('Rain Rate') return val + @rain_rate.setter def rain_rate(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) @@ -293,6 +317,7 @@ def polarization_tilt_angle(self) -> float: """ val = self._get_property('Polarization Tilt Angle') return val + @polarization_tilt_angle.setter def polarization_tilt_angle(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) @@ -305,6 +330,7 @@ def include_atmospheric_absorption(self) -> bool: """ val = self._get_property('Include Atmospheric Absorption') return val + @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) @@ -317,6 +343,7 @@ def temperature(self) -> float: """ val = self._get_property('Temperature') return val + @temperature.setter def temperature(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) @@ -329,6 +356,7 @@ def total_air_pressure(self) -> float: """ val = self._get_property('Total Air Pressure') return val + @total_air_pressure.setter def total_air_pressure(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) @@ -341,6 +369,7 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property('Water Vapor Concentration') return val + @water_vapor_concentration.setter def water_vapor_concentration(self, value: float): self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/nodes.py b/src/ansys/aedt/core/emit_core/nodes/nodes.py deleted file mode 100644 index 92a518bef50..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/nodes.py +++ /dev/null @@ -1,88 +0,0 @@ - -from .EmitNode import EmitNode - -from . import generated -from .generated import * - -class NodeInterface: - def __init__(self, oDesign): - self.oDesign = oDesign - self.oEmitCom = oDesign.GetModule("EmitCom") - - def get_all_component_names(self) -> list[str]: - component_names = self.oEmitCom.GetComponentNames(0, "") - return component_names - - def get_all_top_level_nodes(self) -> list[EmitNode]: - top_level_node_names = ["Scene", "Couplings"] - top_level_node_ids = [self.oEmitCom.GetTopLevelNodeID(0, name) for name in top_level_node_names] - top_level_nodes = [self.get_node(node_id) for node_id in top_level_node_ids] - return top_level_nodes - - def get_all_component_nodes(self) -> list[EmitNode]: - component_names = self.get_all_component_names() - component_node_ids = [self.oEmitCom.GetComponentNodeID(0, name) for name in component_names] - component_nodes = [self.get_node(node_id) for node_id in component_node_ids] - return component_nodes - - def get_all_node_ids(self) -> list[int]: - node_ids = [] - node_ids_to_search = [] - - top_level_node_names = ["Scene"] - top_level_node_ids = [self.oEmitCom.GetTopLevelNodeID(0, name) for name in top_level_node_names] - node_ids_to_search.extend(top_level_node_ids) - - component_names = self.get_all_component_names() - component_node_ids = [self.oEmitCom.GetComponentNodeID(0, name) for name in component_names] - node_ids_to_search.extend(component_node_ids) - - while len(node_ids_to_search) > 0: - node_id_to_search = node_ids_to_search.pop() - if node_id_to_search not in node_ids: - node_ids.append(node_id_to_search) - - child_names = self.oEmitCom.GetChildNodeNames(0, node_id_to_search) - child_ids = [self.oEmitCom.GetChildNodeID(0, node_id_to_search, name) for name in child_names] - if len(child_ids) > 0: - node_ids_to_search.extend(child_ids) - - return node_ids - - def get_node(self, id: int) -> EmitNode: - props = self.oEmitCom.GetEmitNodeProperties(0, id) - props = EmitNode.props_to_dict(props) - parent_props = self.oEmitCom.GetEmitNodeProperties(0, id, True) - parent_props = EmitNode.props_to_dict(parent_props) - - type = parent_props['Type'] - - node = None - try: - type_class = getattr(generated, type) - node = type_class(self.oDesign, 0, id) - except AttributeError: - node = EmitNode(self.oDesign, 0, id) - - return node - - def get_child_nodes(self, node: EmitNode) -> list[EmitNode]: - child_names = self.oEmitCom.GetChildNodeNames(0, node._node_id) - child_ids = [self.oEmitCom.GetChildNodeID(0, node._node_id, name) for name in child_names] - child_nodes = [self.get_node(child_id) for child_id in child_ids] - return child_nodes - - def get_all_nodes(self) -> list[EmitNode]: - ids = self.get_all_node_ids() - nodes = [self.get_node(id) for id in ids] - return nodes - - def get_scene_node(self) -> EmitSceneNode: - scene_node_id = self.oEmitCom.GetTopLevelNodeID(0, "Scene") - scene_node = self.get_node(scene_node_id) - return scene_node - - def get_couplings_node(self) -> CouplingsNode: - couplings_node_id = self.oEmitCom.GetTopLevelNodeID(0, "Couplings") - couplings_node = self.get_node(couplings_node_id) - return couplings_node diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index 740bd571e38..fb35177291a 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -30,6 +30,10 @@ from ansys.aedt.core.emit_core.emit_constants import TxRxMode from ansys.aedt.core.generic.general_methods import pyaedt_function_handler +from ansys.aedt.core.emit_core.nodes.EmitNode import EmitNode +from ansys.aedt.core.emit_core.nodes import generated +from ansys.aedt.core.emit_core.nodes.generated import * + class Revision: """ @@ -803,6 +807,7 @@ def set_emi_category_filter_enabled(self, category: EmiCategoryFilter, enabled: engine = self.emit_project._emit_api.get_engine() engine.set_emi_category_filter_enabled(category, enabled) + @pyaedt_function_handler def get_license_session(self): """Get a license session. @@ -821,3 +826,433 @@ def get_license_session(self): raise RuntimeError("This function is only supported in AEDT version 2024 R2 and later.") engine = self.emit_project._emit_api.get_engine() return engine.license_session() + + def error_if_below_aedt_version(version: int): + def decorator(func): + def wrapper(self, *args, **kwargs): + if self.aedt_version > version: + result = func(self, *args, **kwargs) + return result + else: + raise RuntimeError(f'This function is only supported in AEDT version {version} and later.') + return wrapper + return decorator + + @pyaedt_function_handler + @error_if_below_aedt_version(251) + def _get_all_component_names(self) -> list[str]: + """Gets all component names from this revision. + + Returns + ------- + component_names: list + List of component names. + + Examples + -------- + >>> components = revision._get_all_component_names() + """ + component_names = self._emit_com.GetComponentNames(self.results_index, "") + return component_names + + @pyaedt_function_handler + @error_if_below_aedt_version(251) + def _get_all_top_level_node_ids(self) -> list[int]: + """Gets all top level node ids from this revision. + + Returns + ------- + node_ids: list + List of top level node ids. + + Examples + -------- + >>> top_level_node_ids = revision._get_all_top_level_node_ids() + """ + top_level_node_names = [ + # 'Windows-*-Configuration Diagram', + 'Windows-*-Result Plot', + # 'Windows-*-EMI Margin Plot', + 'Windows-*-Result Categorization', + # 'Windows-*-Plot', + # 'Windows-*-Coupling Plot', + 'Windows-*-Project Tree', + 'Windows-*-Properties', + # 'Windows-*-JETS Search', + 'Windows-*-Antenna Coupling Matrix', + 'Windows-*-Scenario Matrix', + 'Windows-*-Scenario Details', + 'Windows-*-Interaction Diagram', + # 'Windows-*-Link Analysis', + # 'Windows-*-Event Log', + # 'Windows-*-Library Tree', + # 'Windows-*-Python Script Window', + 'RF Systems', + 'Couplings', + # 'Analysis', + 'Simulation', + 'Scene', + ] + top_level_node_ids = [] + for name in top_level_node_names: + top_level_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, name) + top_level_node_ids.append(top_level_node_id) + return top_level_node_ids + + @pyaedt_function_handler + @error_if_below_aedt_version(251) + def get_all_top_level_nodes(self) -> list[EmitNode]: + """Gets all top level nodes from this revision. + + Returns + ------- + nodes: list + List of top level nodes. + + Examples + -------- + >>> top_level_nodes = revision.get_all_top_level_nodes() + """ + top_level_node_ids = self._get_all_top_level_node_ids() + top_level_nodes = [self._get_node(node_id) for node_id in top_level_node_ids] + return top_level_nodes + + @pyaedt_function_handler + @error_if_below_aedt_version(251) + def get_all_component_nodes(self) -> list[EmitNode]: + """Gets all component nodes from this revision. + + Returns + ------- + component_nodes: list + List of component nodes. + + Examples + -------- + >>> nodes = revision.get_all_component_nodes() + """ + component_names = self._get_all_component_names() + component_node_ids = [self._emit_com.GetComponentNodeID(self.results_index, name) for name in component_names] + component_nodes = [self._get_node(node_id) for node_id in component_node_ids] + return component_nodes + + @pyaedt_function_handler + @error_if_below_aedt_version(251) + def get_all_component_nodes(self) -> list[EmitNode]: + """Gets all component nodes from this revision. + + Returns + ------- + component_nodes: list + List of component nodes. + + Examples + -------- + >>> nodes = revision.get_all_component_nodes() + """ + component_names = self._get_all_component_names() + component_node_ids = [self._emit_com.GetComponentNodeID(self.results_index, name) for name in component_names] + component_nodes = [self._get_node(node_id) for node_id in component_node_ids] + return component_nodes + + @pyaedt_function_handler + @error_if_below_aedt_version(251) + def _get_all_node_ids(self) -> list[int]: + """Gets all node ids from this revision. + + Returns + ------- + node_ids: list + List of node ids. + + Examples + -------- + >>> node_ids = revision._get_all_node_ids() + """ + node_ids = [] + node_ids_to_search = [] + + top_level_node_ids = self._get_all_top_level_node_ids() + node_ids_to_search.extend(top_level_node_ids) + + component_names = self._get_all_component_names() + component_node_ids = [self._emit_com.GetComponentNodeID(self.results_index, name) for name in component_names] + node_ids_to_search.extend(component_node_ids) + + while len(node_ids_to_search) > 0: + node_id_to_search = node_ids_to_search.pop() + if node_id_to_search not in node_ids: + node_ids.append(node_id_to_search) + + child_names = self._emit_com.GetChildNodeNames(self.results_index, node_id_to_search) + child_ids = [self._emit_com.GetChildNodeID(self.results_index, node_id_to_search, name) for name in child_names] + if len(child_ids) > 0: + node_ids_to_search.extend(child_ids) + + return node_ids + + @pyaedt_function_handler + @error_if_below_aedt_version(251) + def _get_node(self, id: int) -> EmitNode: + """Gets a node for this revision with the given id. + + Parameters + ---------- + id: int + id of node to construct. + + Returns + ------- + node: EmitNode + The node. + + Examples + -------- + >>> node = revision._get_node(node_id) + """ + props = self._emit_com.GetEmitNodeProperties(self.results_index, id, True) + props = EmitNode.props_to_dict(props) + type = props['Type'] + + node = None + try: + type_class = getattr(generated, type) + node = type_class(self.emit_project.odesign, self.results_index, id) + except AttributeError: + node = EmitNode(self.emit_project.odesign, self.results_index, id) + return node + + @pyaedt_function_handler + @error_if_below_aedt_version(251) + def get_all_nodes(self) -> list[EmitNode]: + """Gets all nodes for this revision. + + Returns + ------- + nodes: list + List of all nodes from this revision. + + Examples + -------- + >>> nodes = revision.get_all_nodes() + """ + ids = self._get_all_node_ids() + nodes = [self._get_node(id) for id in ids] + return nodes + + # Methods to get specific top level nodes + @pyaedt_function_handler + @error_if_below_aedt_version(251) + def get_scene_node(self) -> EmitSceneNode: + """Gets the Scene node for this revision. + + Returns + ------- + node: EmitSceneNode + The Scene node for this revision. + + Examples + -------- + >>> scene_node = revision.get_scene_node() + """ + scene_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Scene") + scene_node = self._get_node(scene_node_id) + return scene_node + + @pyaedt_function_handler + @error_if_below_aedt_version(251) + def get_couplings_node(self) -> CouplingsNode: + """Gets the Couplings node for this revision. + + Returns + ------- + node: CouplingsNode + The Couplings node for this revision. + + Examples + -------- + >>> couplings_node = revision.get_couplings_node() + """ + couplings_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Couplings") + couplings_node = self._get_node(couplings_node_id) + return couplings_node + + @pyaedt_function_handler + @error_if_below_aedt_version(251) + def get_simulation_node(self) -> EmitNode: + """Gets the Simulation node for this revision. + + Returns + ------- + node: EmitNode + The Simulation node for this revision. + + Examples + -------- + >>> simulation_node = revision.get_simulation_node() + """ + simulation_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Simulation") + simulation_node = self._get_node(simulation_node_id) + return simulation_node + + @pyaedt_function_handler + @error_if_below_aedt_version(251) + def get_rf_systems_node(self) -> EmitNode: + """Gets the RF Systems node for this revision. + + Returns + ------- + node: EmitNode + The RF Systems node for this revision. + + Examples + -------- + >>> rf_systems_node = revision.get_rf_systems_node() + """ + rf_systems_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "RF Systems") + rf_systems_node = self._get_node(rf_systems_node_id) + return rf_systems_node + + @pyaedt_function_handler + @error_if_below_aedt_version(251) + def get_result_plot_node(self) -> ResultPlotNode: + """Gets the Result Plot node for this revision. + + Returns + ------- + node: ResultPlotNode + The Result Plot node for this revision. + + Examples + -------- + >>> result_plot_node = revision.get_result_plot_node() + """ + result_plot_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Windows-*-Result Plot") + result_plot_node = self._get_node(result_plot_node_id) + return result_plot_node + + @pyaedt_function_handler + @error_if_below_aedt_version(251) + def get_result_categorization_node(self) -> EmitNode: + """Gets the Result Categorization node for this revision. + + Returns + ------- + node: EmitNode + The Result Categorization node for this revision. + + Examples + -------- + >>> result_categorization_node = revision.get_result_categorization_node() + """ + result_categorization_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Windows-*-Result Categorization") + result_categorization_node = self._get_node(result_categorization_node_id) + return result_categorization_node + + @pyaedt_function_handler + @error_if_below_aedt_version(251) + def get_project_tree_node(self) -> EmitNode: + """Gets the Project Tree node for this revision. + + Returns + ------- + node: EmitNode + The Project Tree node for this revision. + + Examples + -------- + >>> project_tree_node = revision.get_project_tree_node() + """ + project_tree_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Windows-*-Project Tree") + project_tree_node = self._get_node(project_tree_node_id) + return project_tree_node + + @pyaedt_function_handler + @error_if_below_aedt_version(251) + def get_properties_node(self) -> EmitNode: + """Gets the Properties node for this revision. + + Returns + ------- + node: EmitNode + The Properties node for this revision. + + Examples + -------- + >>> properties_node = revision.get_properties_node() + """ + properties_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Windows-*-Properties") + properties_node = self._get_node(properties_node_id) + return properties_node + + @pyaedt_function_handler + @error_if_below_aedt_version(251) + def get_antenna_coupling_matrix_node(self) -> EmitNode: + """Gets the Antenna Coupling Matrix node for this revision. + + Returns + ------- + node: EmitNode + The Antenna Coupling Matrix node for this revision. + + Examples + -------- + >>> antenna_coupling_matrix_node = revision.get_antenna_coupling_matrix_node() + """ + antenna_coupling_matrix_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Windows-*-Antenna Coupling Matrix") + antenna_coupling_matrix_node = self._get_node(antenna_coupling_matrix_node_id) + return antenna_coupling_matrix_node + + @pyaedt_function_handler + @error_if_below_aedt_version(251) + def get_scenario_matrix_node(self) -> EmitNode: + """Gets the Scenario Matrix node for this revision. + + Returns + ------- + node: EmitNode + The Scenario Matrix node for this revision. + + Examples + -------- + >>> scenario_matrix_node = revision.get_scenario_matrix_node() + """ + scenario_matrix_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Windows-*-Scenario Matrix") + scenario_matrix_node = self._get_node(scenario_matrix_node_id) + return scenario_matrix_node + + @pyaedt_function_handler + @error_if_below_aedt_version(251) + def get_scenario_details_node(self) -> EmitNode: + """Gets the Scenario Details node for this revision. + + Returns + ------- + node: EmitNode + The Scenario Details node for this revision. + + Examples + -------- + >>> scenario_details_node = revision.get_scenario_details_node() + """ + scenario_details_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Windows-*-Scenario Details") + scenario_details_node = self._get_node(scenario_details_node_id) + return scenario_details_node + + @pyaedt_function_handler + @error_if_below_aedt_version(251) + def get_interaction_diagram_node(self) -> EmitNode: + """Gets the Interaction Diagram node for this revision. + + Returns + ------- + node: EmitNode + The Interaction Diagram node for this revision. + + Examples + -------- + >>> interaction_diagram_node = revision.get_interaction_diagram_node() + """ + interaction_diagram_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Windows-*-Interaction Diagram") + interaction_diagram_node = self._get_node(interaction_diagram_node_id) + return interaction_diagram_node From 3aac82f9e875be205cb3f9ab427de7e7aee41060 Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Fri, 14 Feb 2025 11:15:18 -0600 Subject: [PATCH 08/86] Add equality operator to EmitNode class --- src/ansys/aedt/core/emit_core/nodes/EmitNode.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py index c2def884143..702a3572aed 100644 --- a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py @@ -33,6 +33,9 @@ def __init__(self, oDesign, result_id, node_id): self._result_id = result_id self._node_id = node_id self._valid = True + + def __eq__(self, other): + return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) @staticmethod def props_to_dict(props): From 70100fdc4c14030977344a4ce1ddea15dfbbfe72 Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Fri, 14 Feb 2025 11:20:37 -0600 Subject: [PATCH 09/86] Remove equality operator from generated nodes --- src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py | 3 --- src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/AntennaPassband.py | 3 --- src/ansys/aedt/core/emit_core/nodes/generated/Band.py | 3 --- src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py | 3 --- .../aedt/core/emit_core/nodes/generated/BandTraceNode.py | 3 --- src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py | 3 --- src/ansys/aedt/core/emit_core/nodes/generated/Cable.py | 3 --- .../core/emit_core/nodes/generated/CategoriesViewNode.py | 3 --- src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py | 3 --- .../aedt/core/emit_core/nodes/generated/CouplingLinkNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/CouplingTraceNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/CouplingsNode.py | 5 +---- .../core/emit_core/nodes/generated/CustomCouplingNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/EmitSceneNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py | 3 --- src/ansys/aedt/core/emit_core/nodes/generated/Filter.py | 3 --- .../aedt/core/emit_core/nodes/generated/FiveGChannelModel.py | 3 --- .../aedt/core/emit_core/nodes/generated/HataCouplingNode.py | 3 --- .../nodes/generated/IndoorPropagationCouplingNode.py | 3 --- src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py | 3 --- .../emit_core/nodes/generated/LogDistanceCouplingNode.py | 3 --- .../core/emit_core/nodes/generated/MPlexBandTraceNode.py | 3 --- src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py | 3 --- .../aedt/core/emit_core/nodes/generated/MultiplexerBand.py | 3 --- .../aedt/core/emit_core/nodes/generated/OutboardTraceNode.py | 3 --- .../emit_core/nodes/generated/ParametricCouplingTraceNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/PlotMarkerNode.py | 3 --- src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/PowerDivider.py | 3 --- .../aedt/core/emit_core/nodes/generated/PowerTraceNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/ProfileTraceNode.py | 3 --- .../emit_core/nodes/generated/PropagationLossCouplingNode.py | 3 --- src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py | 3 --- .../core/emit_core/nodes/generated/ReadOnlyAntennaNode.py | 3 --- .../emit_core/nodes/generated/ReadOnlyAntennaPassband.py | 3 --- .../aedt/core/emit_core/nodes/generated/ReadOnlyBand.py | 3 --- .../core/emit_core/nodes/generated/ReadOnlyBandFolder.py | 3 --- .../aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/ReadOnlyCable.py | 3 --- .../core/emit_core/nodes/generated/ReadOnlyCirculator.py | 3 --- .../emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py | 3 --- .../core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py | 3 --- .../emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py | 3 --- .../core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py | 3 --- .../emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py | 3 --- .../emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py | 3 --- .../emit_core/nodes/generated/ReadOnlyHataCouplingNode.py | 3 --- .../nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py | 3 --- .../nodes/generated/ReadOnlyLogDistanceCouplingNode.py | 3 --- .../core/emit_core/nodes/generated/ReadOnlyMultiplexer.py | 3 --- .../emit_core/nodes/generated/ReadOnlyMultiplexerBand.py | 3 --- .../core/emit_core/nodes/generated/ReadOnlyPowerDivider.py | 3 --- .../nodes/generated/ReadOnlyPropagationLossCouplingNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py | 3 --- .../core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py | 3 --- .../core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py | 3 --- .../emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py | 3 --- .../emit_core/nodes/generated/ReadOnlyRxSaturationNode.py | 3 --- .../emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py | 3 --- .../core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py | 3 --- .../nodes/generated/ReadOnlyRxSusceptibilityProfNode.py | 3 --- .../core/emit_core/nodes/generated/ReadOnlySamplingNode.py | 3 --- .../core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py | 3 --- .../nodes/generated/ReadOnlySolutionCouplingNode.py | 3 --- .../core/emit_core/nodes/generated/ReadOnlySolutionsNode.py | 3 --- .../core/emit_core/nodes/generated/ReadOnlySparameter.py | 3 --- .../aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py | 3 --- .../core/emit_core/nodes/generated/ReadOnlyTerminator.py | 3 --- .../nodes/generated/ReadOnlyTouchstoneCouplingNode.py | 3 --- .../nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py | 3 --- .../emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py | 3 --- .../core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py | 3 --- .../core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py | 3 --- .../emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py | 3 --- .../emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py | 3 --- .../core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py | 3 --- .../nodes/generated/ReadOnlyWalfischCouplingNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/ResultPlotNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/RfSystemGroup.py | 3 --- src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py | 3 --- .../core/emit_core/nodes/generated/RxMixerProductNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/RxSaturationNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/RxSelectivityNode.py | 3 --- src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py | 3 --- .../emit_core/nodes/generated/RxSusceptibilityProfNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/SamplingNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/SceneGroupNode.py | 3 --- .../core/emit_core/nodes/generated/SelectivityTraceNode.py | 3 --- .../core/emit_core/nodes/generated/SolutionCouplingNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/SolutionsNode.py | 3 --- src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py | 3 --- .../aedt/core/emit_core/nodes/generated/SpurTraceNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py | 3 --- src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py | 3 --- src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py | 3 --- .../core/emit_core/nodes/generated/TestNoiseTraceNode.py | 3 --- .../core/emit_core/nodes/generated/TopLevelSimulation.py | 3 --- .../core/emit_core/nodes/generated/TouchstoneCouplingNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/TunableTraceNode.py | 3 --- .../emit_core/nodes/generated/TwoRayPathLossCouplingNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/TxHarmonicNode.py | 3 --- src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py | 3 --- .../aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py | 3 --- .../core/emit_core/nodes/generated/TxSpectralProfNode.py | 3 --- src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py | 3 --- .../core/emit_core/nodes/generated/WalfischCouplingNode.py | 3 --- 113 files changed, 1 insertion(+), 340 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index 4e56ec6135b..28140201037 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = True EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - def rename(self, new_name): """Rename this node""" self._rename(new_name) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py index 60ff414910b..e62ce2f5995 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py index 2d19b637f8a..3198003203d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index b8eda9a930d..e36b87409d9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py index c26f234879d..d2012de1304 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py index 9f0c0447e3c..63ea1496c23 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py index 2e806a930b4..55d01340cc9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index 2e5e52652fd..3d40b995c8b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = True EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - def rename(self, new_name): """Rename this node""" self._rename(new_name) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py index 5200e35a6c8..5074051246b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py @@ -5,6 +5,3 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index b7e120f6f0f..d23d58e39b2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = True EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - def rename(self, new_name): """Rename this node""" self._rename(new_name) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py index 3dffbf642a8..28e699d83a2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py index 6488b0a848d..5936a631c84 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py index 9c2ffd97b88..7a4c02974b8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" return self._import(file_name,'TouchstoneCoupling') @@ -18,7 +15,7 @@ def add_custom_coupling(self): def add_path_loss_coupling(self): """Add a new node to define path loss coupling between antennas""" - return self._add_child_node("Propagation Loss Coupling") + return self._add_child_node("Path Loss Coupling") def add_two_ray_path_loss_coupling(self): """Add a new node to define two ray ground reflection coupling between antennas""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py index 224ed6e551e..1342920c618 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py index e17eb5ee59b..faf0aa99501 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py index 55d7097c678..0a2398059cc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - def add_group(self): """Add a new scene group""" return self._add_child_node("Group") diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py index 448a5bcf97d..c572265a8e8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index 2a4591df26c..6748a72adc7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = True EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - def rename(self, new_name): """Rename this node""" self._rename(new_name) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py index 67d6dcb1f32..4753d176698 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py index 309325da911..d2be0e366b0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py index d1a343ce220..8a0936070ec 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index 33978e5e988..279aab00a79 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = True EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - def rename(self, new_name): """Rename this node""" self._rename(new_name) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py index 2e89481c1fa..75393391c2a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py index ba4f8d1d954..e3ad097f646 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index 87615b09809..20ef4b6eb69 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = True EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - def add_multiplexer_pass_band(self): """Add a New Multiplexer Band to this Multiplexer""" return self._add_child_node("Multiplexer Pass Band") diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py index 603ca70dce1..b24c24628ee 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py index e03b574b566..ac40318350a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py index b4fc3fef7c4..82412e0e769 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py index b8440cbb994..854b138cb12 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py index 851f523eba7..628ea62618b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - def add_marker(self): """Add an icon and/or label to this plot""" return self._add_child_node("Plot Marker") diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py index 5cdfc662b92..10ed38980d8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = True EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - def rename(self, new_name): """Rename this node""" self._rename(new_name) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py index 82c7e4d4fed..131cff61548 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py index 6051a2bef09..fe677f2d6bb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py index 01a7de38591..306449abea3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py index 35189631664..675110fd30b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py index 3fb44525891..ced2b91c85a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = True EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def filename(self) -> str: """Filename diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py index 27b9445a284..ee73c846a31 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py index 9ae62f4ad5d..d6e63eaa3b4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py index 33c139a0149..119a3998198 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py index a749fc5342c..be2a0e34ea0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py index 552c9794add..764407509f1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py index d897672468e..d9b7aba3165 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = True EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def filename(self) -> str: """Filename diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py index d50ca538303..cf266e427bd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = True EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def filename(self) -> str: """Filename diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py index d0501cd316a..91edd6f2e2b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py index 2fcba8f830e..919f7ab26e5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def minimum_allowed_coupling(self) -> float: """Minimum Allowed Coupling diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py index 1d75ca8d0d0..259683319a6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py index 24b99c654e3..3c3589865ad 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def notes(self) -> str: """Notes diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py index 124baaf526c..b699b90f723 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py index 7b513b89068..d74df194fa5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = True EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def filename(self) -> str: """Filename diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py index 64c3cbbeffb..0fb3c75fd00 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py index 8b38a6b2407..2571ebd3309 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py index ce0bf7ab6c0..bbbf3d6e408 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py index 64b83e3f425..f5f8ade7aa4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = True EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def filename(self) -> str: """Filename diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py index 90f4fcda7bf..f76c859133d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py index 01c9cb7e815..9c39552cab1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = True EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def filename(self) -> str: """Filename diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py index 7e59952f9b4..7035e4151e4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py index 383f5e52511..810f83fc5be 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = True EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def filename(self) -> str: """Filename diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py index 9d9f13a00e1..77d24205dbc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py index ed9b3dec075..a136dbc8297 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py index 9e2d8f93781..ab08b5fc6bb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py index f6e1736e7e6..d2a77e87176 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py index 1f20689f9b5..c2c2dcc3508 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py index 91b13b6119e..3339801422b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py index 4d8b26c828e..b02b22440d6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py index a18214b65ce..92f2e2de09b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py index fc5f0fd84b2..d157c545e6d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py index c45aa154bda..1d4ae688ba6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py index 3d66bf882df..6da85fe7f79 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py index 83fd654fb64..fa5bda34cfe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py index 9ba7b635990..62165a21405 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py index 5e83bb13e57..e1aba55f11b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = True EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def file(self) -> str: """File diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py index a3e802b0d21..71f34a44b4f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = True EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def filename(self) -> str: """Filename diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py index fc4e6bf9d35..8b67a1a34a2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = True EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def filename(self) -> str: """Filename diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py index 388264074cb..f4895f65507 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py index 6da55d7b424..72e579e56d0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py index 00c4bff99c2..8132eaebe80 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py index f4a47790b91..89f9ef14931 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py index 680b0132587..078fa1f55dd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py index 51e0e0b5547..4721b3e57b8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py index adc37069ac2..36c95fb1b33 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py index 2b5014e1eb0..84c7e8a1f13 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py index 8d7cb25230c..3e78309da21 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py index f319fe2dbe6..8849c413d47 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - def add_marker(self): """Add an icon and/or label to this plot""" return self._add_child_node("Plot Marker") diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py index 31eac32583b..86a96707b5b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py index f65bc381666..82f6795d653 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py index e9ac5f84db6..8228cc46a47 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py index fad1206fbfe..81c58061a1d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py index f494222caea..dbfbe9c60b2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py index aa1160d1be1..ff727dad09e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py index 46b9d881fc3..25342471ac2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py index 44e7922fd19..a4b01f25bac 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py index 8ae7c54914b..1259c3f892a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py index 6e9d2966d36..ee2c1114699 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py index f52ba60e394..c136da8dec6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py index 769269b72f9..764552c5070 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py index 464177832ba..6b37f2e2386 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = True EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - def rename(self, new_name): """Rename this node""" self._rename(new_name) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py index 9990bfd7204..14d21ae4af5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py index 1b2c7a8e242..3b82586aa0e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index 661832d4395..d381fb5fc96 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = True EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - def rename(self, new_name): """Rename this node""" self._rename(new_name) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index 2caedb19d78..95140d7ec83 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = True EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - def rename(self, new_name): """Rename this node""" self._rename(new_name) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py index bbd66f60710..ff3754ee16b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py index e7baa381088..51d239917c9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py @@ -5,6 +5,3 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py index 3bc6c5e32cf..6bb2a8302f7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py index f7e62187d11..82e047ce3e2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py index b06383fb9fd..d0d854f62c1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py index c451c2617a8..315d7ca8c50 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py index f9e00101072..2c114b172b8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py index 57623ef7cde..717537315b8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py index 2e3c8a730f1..b87d941a195 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py index c51b0ce0f07..25f70dfe9fc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py index ce377d3efca..aa2e0a29b42 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py index c98dc395027..10068260cd6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py index e86ba6e514c..d46ea42e02e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py @@ -5,9 +5,6 @@ def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) - @property def parent(self): """The parent of this emit node.""" From 84f6c3201db6749fb2fcb7e8b941122ca72b0a87 Mon Sep 17 00:00:00 2001 From: jsalant Date: Fri, 14 Feb 2025 13:24:01 -0500 Subject: [PATCH 10/86] update revision and result classes for api changes Update the revision/result classes to support new api --- .../aedt/core/emit_core/results/results.py | 34 +++-- .../aedt/core/emit_core/results/revision.py | 117 ++++++------------ 2 files changed, 63 insertions(+), 88 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/results/results.py b/src/ansys/aedt/core/emit_core/results/results.py index b4188d90092..502d8d97506 100644 --- a/src/ansys/aedt/core/emit_core/results/results.py +++ b/src/ansys/aedt/core/emit_core/results/results.py @@ -100,17 +100,29 @@ def delete_revision(self, revision_name): -------- >>> aedtapp.results.delete_revision("Revision 10") """ - if revision_name in self.design.GetResultList(): - self.design.DeleteResult(revision_name) - if self.current_revision.name == revision_name and self.current_revision.revision_loaded: - self.emit_project._emit_api.close() - self.current_revision = None - for rev in self.revisions: - if revision_name in rev.name: - self.revisions.remove(rev) - break - else: - warnings.warn(f"{revision_name} does not exist") + self.aedt_version = int(self.emit_project.aedt_version_id[-3:]) + if self.aedt_version > 251: + if revision_name in self.design.GetKeptResultNames(): + self.design.DeleteKeptResult(revision_name) + if self.current_revision.name == revision_name and self.current_revision.revision_loaded: + self.emit_project._emit_api.close() + self.current_revision = None + for rev in self.revisions: + if revision_name in rev.name: + self.revisions.remove(rev) + break + else: + if revision_name in self.design.GetResultList(): + self.design.DeleteResult(revision_name) + if self.current_revision.name == revision_name and self.current_revision.revision_loaded: + self.emit_project._emit_api.close() + self.current_revision = None + for rev in self.revisions: + if revision_name in rev.name: + self.revisions.remove(rev) + break + else: + warnings.warn(f"{revision_name} does not exist") @staticmethod def interaction_domain(): diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index fb35177291a..179ef759d9c 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -79,7 +79,7 @@ def __init__(self, parent_results, emit_obj, name=None): self.results_index = self._emit_com.GetKeptResultIndex(name) # Get the SimulationNodeID for the current result - self._sim_node_id = self._get_top_level_node_id("Simulation") + self._sim_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Simulation") else: if not name: name = emit_obj.odesign.GetCurrentResult() @@ -112,10 +112,6 @@ def __init__(self, parent_results, emit_obj, name=None): """``True`` if the revision is loaded and ``False`` if it is not.""" self._load_revision() - @pyaedt_function_handler() - def _get_top_level_node_id(self, node_name): - return self._emit_com.GetTopLevelNodeID(self.results_index, node_name) - @pyaedt_function_handler() def _load_revision(self): """ @@ -195,28 +191,23 @@ def run(self, domain): >>> rev.run(domain) """ - # TODO: update when Domain methods are added to API - # for now, just run the whole project - if self.aedt_version > 251: - self.emit_project.Run() - else: - if domain.receiver_channel_frequency > 0: - raise ValueError("The domain must not have channels specified.") - if len(domain.interferer_channel_frequencies) != 0: - for freq in domain.interferer_channel_frequencies: - if freq > 0: - raise ValueError("The domain must not have channels specified.") - self._load_revision() - engine = self.emit_project._emit_api.get_engine() - if self.emit_project._aedt_version < "2024.1": - if len(domain.interferer_names) == 1: - engine.max_simultaneous_interferers = 1 - if len(domain.interferer_names) > 1: - raise ValueError("Multiple interferers cannot be specified prior to AEDT version 2024 R1.") - interaction = engine.run(domain) - # save the project and revision - self.emit_project.save_project() - return interaction + if domain.receiver_channel_frequency > 0: + raise ValueError("The domain must not have channels specified.") + if len(domain.interferer_channel_frequencies) != 0: + for freq in domain.interferer_channel_frequencies: + if freq > 0: + raise ValueError("The domain must not have channels specified.") + self._load_revision() + engine = self.emit_project._emit_api.get_engine() + if self.emit_project._aedt_version < "2024.1": + if len(domain.interferer_names) == 1: + engine.max_simultaneous_interferers = 1 + if len(domain.interferer_names) > 1: + raise ValueError("Multiple interferers cannot be specified prior to AEDT version 2024 R1.") + interaction = engine.run(domain) + # save the project and revision + self.emit_project.save_project() + return interaction @pyaedt_function_handler() def is_domain_valid(self, domain): @@ -234,7 +225,6 @@ def is_domain_valid(self, domain): >>> aedtapp.results.current_revision.is_domain_valid(domain) True """ - # TODO: update when Domain methods are added to API self._load_revision() engine = self.emit_project._emit_api.get_engine() return engine.is_domain_valid(domain) @@ -259,14 +249,9 @@ def get_instance_count(self, domain): >>> domain = aedtapp.interaction_domain() >>> num_instances = aedtapp.results.current_revision.get_instance_count(domain) """ - # TODO: update when Domain methods are added to API - if self.aedt_version > 251: - return 0 - pass - else: - self._load_revision() - engine = self.emit_project._emit_api.get_engine() - return engine.get_instance_count(domain) + self._load_revision() + engine = self.emit_project._emit_api.get_engine() + return engine.get_instance_count(domain) @pyaedt_function_handler() def get_receiver_names(self): @@ -286,24 +271,16 @@ def get_receiver_names(self): -------- >>> rxs = aedtapp.results.current_revision.get_reciver_names() """ - # TODO: update when Domain methods are added to API - if self.aedt_version > 251: - comps = self.emit_project.oeditor.GetAllComponents() - for comp in comps: - comp_id = self._emit_com.GetComponentNodeID(self.results_index, comp) - props = self._emit_com.GetEmitNodeProperties(self.results_index, comp_id) - pass + if self.revision_loaded: + radios = self.emit_project._emit_api.get_radio_names(TxRxMode.RX, InterfererType.TRANSMITTERS_AND_EMITTERS) else: - if self.revision_loaded: - radios = self.emit_project._emit_api.get_radio_names(TxRxMode.RX, InterfererType.TRANSMITTERS_AND_EMITTERS) - else: - radios = None - err_msg = self.result_mode_error() - warnings.warn(err_msg) - return radios - if len(radios) == 0: - warnings.warn("No valid receivers in the project.") + radios = None + err_msg = self.result_mode_error() + warnings.warn(err_msg) return radios + if len(radios) == 0: + warnings.warn("No valid receivers in the project.") + return radios @pyaedt_function_handler() def get_interferer_names(self, interferer_type=None): @@ -451,20 +428,13 @@ def n_to_1_limit(self): >>> aedtapp.results.current_revision.n_to_1_limit 1048576 """ - # TODO: update when Domain methods are added to API - if self.aedt_version > 251: - # get the SimulationNode props - props = self._emit_com.GetEmitNodeProperties(self.results_index, - self._sim_node_id) - pass - else: - if self.emit_project._aedt_version < "2024.1": # pragma: no cover - raise RuntimeError("This function is only supported in AEDT version 2024.1 and later.") - if self.revision_loaded: - engine = self.emit_project._emit_api.get_engine() - max_instances = engine.n_to_1_limit - else: # pragma: no cover - max_instances = None + if self.emit_project._aedt_version < "2024.1": # pragma: no cover + raise RuntimeError("This function is only supported in AEDT version 2024.1 and later.") + if self.revision_loaded: + engine = self.emit_project._emit_api.get_engine() + max_instances = engine.n_to_1_limit + else: # pragma: no cover + max_instances = None return max_instances @n_to_1_limit.setter @@ -780,17 +750,10 @@ def get_emi_category_filter_enabled(self, category: EmiCategoryFilter) -> bool: bool ``True`` when the EMI category filter is enabled, ``False`` otherwise. """ - # TODO: update when Domain methods are added to API - if self.aedt_version > 251: - cat_node_id = self._get_top_level_node_id("Windows-*-Result Categorization") - props = self._emit_com.GetEmitNodeProperties(self.results_index, - cat_node_id) - pass - else: - if self.emit_project._aedt_version < "2024.1": # pragma: no cover - raise RuntimeError("This function is only supported in AEDT version 2024 R1 and later.") - engine = self.emit_project._emit_api.get_engine() - return engine.get_emi_category_filter_enabled(category) + if self.emit_project._aedt_version < "2024.1": # pragma: no cover + raise RuntimeError("This function is only supported in AEDT version 2024 R1 and later.") + engine = self.emit_project._emit_api.get_engine() + return engine.get_emi_category_filter_enabled(category) def set_emi_category_filter_enabled(self, category: EmiCategoryFilter, enabled: bool): """Set whether the EMI category filter is enabled. From 68034da1161e563e3d1ca5855ad943edc31e7cbd Mon Sep 17 00:00:00 2001 From: jsalant Date: Mon, 24 Feb 2025 15:22:19 -0500 Subject: [PATCH 11/86] use display names for access nodes use display names for access nodes --- src/ansys/aedt/core/emit_core/results/revision.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index 179ef759d9c..18f05a747a1 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -1024,21 +1024,21 @@ def get_scene_node(self) -> EmitSceneNode: @pyaedt_function_handler @error_if_below_aedt_version(251) - def get_couplings_node(self) -> CouplingsNode: - """Gets the Couplings node for this revision. + def get_coupling_data_node(self) -> CouplingsNode: + """Gets the Coupling Data node for this revision. Returns ------- node: CouplingsNode - The Couplings node for this revision. + The Coupling Data node for this revision. Examples -------- - >>> couplings_node = revision.get_couplings_node() + >>> coupling_data_node = revision.get_coupling_data_node() """ - couplings_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Couplings") - couplings_node = self._get_node(couplings_node_id) - return couplings_node + ccoupling_data_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Couplings") + coupling_data_node = self._get_node(ccoupling_data_node_id) + return coupling_data_node @pyaedt_function_handler @error_if_below_aedt_version(251) From fcee90c16d4269d3ae7e078df9cd7d648a741864 Mon Sep 17 00:00:00 2001 From: jsalant Date: Wed, 26 Feb 2025 13:00:02 -0500 Subject: [PATCH 12/86] add units support add units support --- .../aedt/core/emit_core/emit_constants.py | 99 ++++++- .../aedt/core/emit_core/nodes/EmitNode.py | 103 ++++++- .../emit_core/nodes/generated/Amplifier.py | 63 +++-- .../emit_core/nodes/generated/AntennaNode.py | 169 ++++++----- .../nodes/generated/AntennaPassband.py | 42 ++- .../core/emit_core/nodes/generated/Band.py | 262 +++++++++++------- .../nodes/generated/BandTraceNode.py | 30 +- .../core/emit_core/nodes/generated/CADNode.py | 148 ++++++---- .../core/emit_core/nodes/generated/Cable.py | 36 ++- .../emit_core/nodes/generated/Circulator.py | 56 ++-- .../nodes/generated/CouplingLinkNode.py | 4 +- .../nodes/generated/CouplingTraceNode.py | 44 +-- .../nodes/generated/CouplingsNode.py | 8 +- .../nodes/generated/CustomCouplingNode.py | 12 +- .../nodes/generated/EmiPlotMarkerNode.py | 46 +-- .../nodes/generated/EmitSceneNode.py | 11 +- .../nodes/generated/ErcegCouplingNode.py | 64 ++--- .../core/emit_core/nodes/generated/Filter.py | 124 ++++++--- .../nodes/generated/FiveGChannelModel.py | 70 ++--- .../nodes/generated/HataCouplingNode.py | 64 ++--- .../IndoorPropagationCouplingNode.py | 66 ++--- .../emit_core/nodes/generated/Isolator.py | 56 ++-- .../generated/LogDistanceCouplingNode.py | 68 ++--- .../nodes/generated/MPlexBandTraceNode.py | 26 +- .../emit_core/nodes/generated/Multiplexer.py | 16 +- .../nodes/generated/MultiplexerBand.py | 68 +++-- .../nodes/generated/OutboardTraceNode.py | 28 +- .../generated/ParametricCouplingTraceNode.py | 28 +- .../nodes/generated/PlotMarkerNode.py | 54 ++-- .../emit_core/nodes/generated/PlotNode.py | 76 ++--- .../emit_core/nodes/generated/PowerDivider.py | 56 ++-- .../nodes/generated/PowerTraceNode.py | 26 +- .../nodes/generated/ProfileTraceNode.py | 24 +- .../generated/PropagationLossCouplingNode.py | 62 ++--- .../emit_core/nodes/generated/RadioNode.py | 2 +- .../nodes/generated/ReadOnlyAmplifier.py | 10 + .../nodes/generated/ReadOnlyAntennaNode.py | 20 ++ .../generated/ReadOnlyAntennaPassband.py | 8 + .../emit_core/nodes/generated/ReadOnlyBand.py | 50 ++++ .../nodes/generated/ReadOnlyCADNode.py | 28 ++ .../nodes/generated/ReadOnlyCable.py | 4 + .../nodes/generated/ReadOnlyCirculator.py | 8 + .../nodes/generated/ReadOnlyEmitSceneNode.py | 2 + .../nodes/generated/ReadOnlyFilter.py | 28 ++ .../nodes/generated/ReadOnlyIsolator.py | 8 + .../generated/ReadOnlyMultiplexerBand.py | 16 ++ .../nodes/generated/ReadOnlyPowerDivider.py | 8 + .../nodes/generated/ReadOnlyRxMeasNode.py | 8 + .../generated/ReadOnlyRxMixerProductNode.py | 8 + .../ReadOnlyRxSusceptibilityProfNode.py | 10 + .../nodes/generated/ReadOnlyTR_Switch.py | 8 + .../nodes/generated/ReadOnlyTxMeasNode.py | 6 + .../generated/ReadOnlyTxNbEmissionNode.py | 2 + .../generated/ReadOnlyTxSpectralProfNode.py | 12 + .../generated/ReadOnlyWalfischCouplingNode.py | 6 + .../nodes/generated/ResultPlotNode.py | 78 +++--- .../nodes/generated/RfSystemGroup.py | 4 +- .../emit_core/nodes/generated/RxMeasNode.py | 69 +++-- .../nodes/generated/RxMixerProductNode.py | 66 +++-- .../nodes/generated/RxSaturationNode.py | 4 +- .../nodes/generated/RxSelectivityNode.py | 6 +- .../emit_core/nodes/generated/RxSpurNode.py | 6 +- .../generated/RxSusceptibilityProfNode.py | 67 +++-- .../emit_core/nodes/generated/SamplingNode.py | 12 +- .../nodes/generated/SceneGroupNode.py | 18 +- .../nodes/generated/SelectivityTraceNode.py | 24 +- .../nodes/generated/SolutionCouplingNode.py | 8 +- .../nodes/generated/SolutionsNode.py | 2 +- .../emit_core/nodes/generated/Sparameter.py | 12 +- .../nodes/generated/SpurTraceNode.py | 28 +- .../nodes/generated/TRSwitchTraceNode.py | 28 +- .../emit_core/nodes/generated/TR_Switch.py | 56 ++-- .../emit_core/nodes/generated/Terminator.py | 16 +- .../nodes/generated/TestNoiseTraceNode.py | 74 +++-- .../nodes/generated/TouchstoneCouplingNode.py | 16 +- .../nodes/generated/TunableTraceNode.py | 35 +-- .../generated/TwoRayPathLossCouplingNode.py | 68 ++--- .../nodes/generated/TwoToneTraceNode.py | 74 +++-- .../nodes/generated/TxBbEmissionNode.py | 8 +- .../nodes/generated/TxHarmonicNode.py | 6 +- .../emit_core/nodes/generated/TxMeasNode.py | 24 +- .../nodes/generated/TxNbEmissionNode.py | 13 +- .../nodes/generated/TxSpectralProfNode.py | 102 ++++--- .../emit_core/nodes/generated/TxSpurNode.py | 6 +- .../nodes/generated/WalfischCouplingNode.py | 91 +++--- .../aedt/core/emit_core/results/revision.py | 22 +- 86 files changed, 2128 insertions(+), 1276 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/emit_constants.py b/src/ansys/aedt/core/emit_core/emit_constants.py index f08ff359020..ad2a5591fa2 100644 --- a/src/ansys/aedt/core/emit_core/emit_constants.py +++ b/src/ansys/aedt/core/emit_core/emit_constants.py @@ -76,14 +76,109 @@ class UnitType(MutableEnum): EMIT_VALID_UNITS = { "Power": ["mW", "W", "kW", "dBm", "dBW"], "Frequency": ["Hz", "kHz", "MHz", "GHz", "THz"], - "Length": ["pm", "nm", "um", "mm", "cm", "dm", "meter", "km", "mil", "in", "ft", "yd", "mile"], + "Length": ["pm", "nm", "um", "mm", "cm", "dm", "meter", "meters", "km", "mil", "in", "ft", "yd", "mile"], "Time": ["ps", "ns", "us", "ms", "s"], - "Voltage": ["mV", "V"], + "Voltage": ["nV", "uV", "mV", "V", "kV", "MegV"], "Data Rate": ["bps", "kbps", "Mbps", "Gbps"], "Resistance": ["uOhm", "mOhm", "Ohm", "kOhm", "megOhm", "GOhm"], } """Valid units for each unit type.""" +EMIT_DEFAULT_UNITS = { + "Power": "dBm", + "Frequency": "Hz", + "Length": "meter", + "Time": "s", + "Voltage": "V", + "Data Rate": "bps", + "Resistance": "ohm", +} +"""Default units for each unit type.""" + +EMIT_TO_AEDT_UNITS = { + "picometers" : "pm", + "nanometers" : "nm", + "micrometers" : "um", + "millimeters": "mm", + "centimeters" : "cm", + "decimeters" : "dm", + "meters" : "meter", + "kilometers" : "km", + "inches" : "in", + "mils" : "mil", + "feet" : "ft", + "yards" : "yd", + "miles" : "mile", + "hertz" : "Hz", + "kilohertz" : "kHz", + "megahertz" : "MHz", + "gigahertz" : "GHz", + "terahertz" : "THz", + "picoseconds" : "ps", + "nanoseconds" : "ns", + "microseconds" : "us", + "milliseconds" : "ms", + "seconds" : "s", + "microohms" : "uOhm", + "milliohms" : "mOhm", + "ohms" : "Ohm", + "kiloohms" : "kOhm", + "megaohms" : "megOhm", + "gigaohms" : "GOhm", + "dBm" : "dBm", + "dBW" : "dBW", + "watts" : "W", + "milliwatts" : "mW", + "kilowatts" : "kW", + "nanovolts" : "nV", + "microvolts" : "uV", + "millivolts" : "mV", + "volts" : "V", + "kilovolts" : "kV", + "megavolts" : "MegV", + "bps" : "bps", + "kbps" : "kbps", + "Mbps" : "Mbps", + "Gbps" : "Gbps" +} + +def data_rate_conv(value : float, units : str, to_default : bool = True): + """Converts the data rate to (from) the default units from the + specified units. + + Args: + value (float): numeric value of the data rate + units (str): units to convert to (from) + to_default (bool, optional): Converts from the specified units + to the default units OR from the default units to the + specified units. Defaults to True. + + Returns: + value: data rate converted to/from the default units + """ + if to_default: + if units == 'bps': + mult = 1.0 + elif units == 'kbps': + mult = 1e-3 + elif units == 'Mbps': + mult = 1e-6 + elif units == 'Gbps': + mult = 1e-9 + else: + raise ValueError(f"{units} are not valid units for data rate.") + else: + if units == 'bps': + mult = 1.0 + elif units == 'kbps': + mult = 1e3 + elif units == 'Mbps': + mult = 1e6 + elif units == 'Gbps': + mult = 1e9 + else: + raise ValueError(f"{units} are not valid units for data rate.") + return value*mult def emit_unit_type_string_to_enum(unit_string): EMIT_UNIT_TYPE_STRING_TO_ENUM = { diff --git a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py index 702a3572aed..e8c29157108 100644 --- a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py @@ -25,11 +25,15 @@ import warnings from enum import Enum +from ansys.aedt.core.emit_core.results import revision +from ..emit_constants import EMIT_VALID_UNITS, EMIT_DEFAULT_UNITS, EMIT_TO_AEDT_UNITS, data_rate_conv +import ansys.aedt.core.generic.constants as consts class EmitNode: # meant to only be used as a parent class def __init__(self, oDesign, result_id, node_id): self._oDesign = oDesign + self._oRevisionData = oDesign.GetModule("EmitCom") self._result_id = result_id self._node_id = node_id self._valid = True @@ -65,7 +69,7 @@ def _parent(self): @property def properties(self): - props = self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id, self._node_id, True) + props = self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, True) props = self.props_to_dict(props) return props @@ -75,7 +79,7 @@ def warnings(self): @property def allowed_child_types(self): - return self._oDesign.GetModule('EmitCom').GetAllowedChildTypes(self._result_id, self._node_id) + return self._oRevisionData.GetAllowedChildTypes(self._result_id, self._node_id) def _get_node(self, id: int): """Gets a node for this node's revision with the given id. @@ -96,7 +100,7 @@ def _get_node(self, id: int): """ from . import generated - props = self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id, id, True) + props = self._oRevisionData.GetEmitNodeProperties(self._result_id, id, True) props = self.props_to_dict(props) type = props['Type'] @@ -110,13 +114,13 @@ def _get_node(self, id: int): @property def children(self): - child_names = self._oDesign.GetModule('EmitCom').GetChildNodeNames(self._result_id, self._node_id) - child_ids = [self._oDesign.GetModule('EmitCom').GetChildNodeID(self._result_id, self._node_id, name) for name in child_names] + child_names = self._oRevisionData.GetChildNodeNames(self._result_id, self._node_id) + child_ids = [self._oRevisionData.GetChildNodeID(self._result_id, self._node_id, name) for name in child_names] child_nodes = [self._get_node(child_id) for child_id in child_ids] return child_nodes def _get_property(self, prop): - props = self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id, self._node_id, True) + props = self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, True) kv_pairs = [prop.split('=') for prop in props] selected_kv_pairs = [kv for kv in kv_pairs if kv[0] == prop] if len(selected_kv_pairs) != 1: @@ -129,13 +133,82 @@ def _get_property(self, prop): return val.split('|') else: return val + + def _convert_to_default_units(self, value : float|str, unit_type : str) -> float: + """Takes a value and converts to default EMIT units + used for internally storing the values. + + Args: + value (float | str): the specified value. If a float is specified, + then global unit settings are applied. If a string is specified, + then this function will split the value from the units and verify + that valid units are given. + unit_type (str): type of units. (e.g. FrequencyUnit, PowerUnit, etc) + + Returns: + converted_value (float): value in EMIT default units (SI units where applicable). + + Examples: + val = self._convert_to_default_units(25, "FrequencyUnits") + val2 = self._convert_to_default_units("10 W", "PowerUnits") + """ + unit_system = unit_type.split(' ')[0] + if isinstance(value, float) or isinstance(value, int): + # get the global units + pref_node_id = self._oRevisionData.GetTopLevelNodeID(self._result_id, "Preferences") + props = self._oRevisionData.GetEmitNodeProperties(self._result_id, pref_node_id, True) + kv_pairs = [prop.split('=') for prop in props] + selected_kv_pairs = [kv for kv in kv_pairs if kv[0] == unit_type] + units = selected_kv_pairs[0][1] + units = EMIT_TO_AEDT_UNITS[units] + else: + units = ''.join(char for char in value if not char.isdigit()) + units = units.strip() + value = float(''.join(char for char in value if char.isdigit())) + # verify the units are valid for the specified type + if units not in EMIT_VALID_UNITS[unit_system]: + raise ValueError(f"{units} are not valid units for this property.") + + if unit_system == "Data Rate": + converted_value = data_rate_conv(value, units, True) + else: + converted_value = consts.unit_converter(value, unit_system, units, EMIT_DEFAULT_UNITS[unit_system]) + return converted_value + + def _convert_from_default_units(self, value : float, unit_type : str) -> float: + """Takes a value and converts from default EMIT units to + the user specified units. + + Args: + value (float): the specified value. + unit_type (str): type of units. (e.g. Frequency Unit, Power Unit, etc) + + Returns: + converted_value (float): value in global units. + """ + unit_system = unit_type.rsplit(' ', 1)[0] + # get the global units + pref_node_id = self._oRevisionData.GetTopLevelNodeID(self._result_id, "Preferences") + props = self._oRevisionData.GetEmitNodeProperties(self._result_id, pref_node_id, True) + kv_pairs = [prop.split('=') for prop in props] + selected_kv_pairs = [kv for kv in kv_pairs if kv[0] == unit_type] + units = selected_kv_pairs[0][1] + units = EMIT_TO_AEDT_UNITS[units] + + if units not in EMIT_VALID_UNITS[unit_system]: + raise ValueError(f"{units} are not valid units for this property.") + if unit_system == "Data Rate": + converted_value = data_rate_conv(value, units, False) + else: + converted_value = consts.unit_converter(value, unit_system, EMIT_DEFAULT_UNITS[unit_system], units) + return converted_value def _delete(self): - if self._is_component(): self._oDesign.GetModule('EmitCom').DeleteEmitComponent(self._result_id, self._node_id) - else: self._oDesign.GetModule('EmitCom').DeleteEmitNode(self._result_id, self._node_id) + if self._is_component(): self._oRevisionData.DeleteEmitComponent(self._result_id, self._node_id) + else: self._oRevisionData.DeleteEmitNode(self._result_id, self._node_id) def _rename(self, requested_name): - new_name = self._oDesign.GetModule('EmitCom').RenameEmitNode(self._result_id, self._node_id, requested_name) + new_name = self._oRevisionData.RenameEmitNode(self._result_id, self._node_id, requested_name) return new_name def _duplicate(self): @@ -143,25 +216,25 @@ def _duplicate(self): pass def _import(self, file_path, import_type): - self._oDesign.GetModule('EmitCom').EmitNodeImport(self._result_id, self._node_id, file_path, import_type) + self._oRevisionData.EmitNodeImport(self._result_id, self._node_id, file_path, import_type) def _export_model(self, file_path): - self._oDesign.GetModule('EmitCom').EmitExportModel(self._result_id, self._node_id, file_path) + self._oRevisionData.EmitExportModel(self._result_id, self._node_id, file_path) def _is_component(self): return self._is_component def _get_child_node_id(self, child_name): - return self._oDesign.GetModule('EmitCom').GetChildNodeID(self._result_id, self._node_id, child_name) + return self._oRevisionData.GetChildNodeID(self._result_id, self._node_id, child_name) def _get_table_data(self): - rows = self._oDesign.GetModule('EmitCom').GetTableData(self._result_id, self._node_id) + rows = self._oRevisionData.GetTableData(self._result_id, self._node_id) nested_list = [col.split(' ') for col in rows] return nested_list def _set_table_data(self, nested_list): rows = [col.join(' ') for col in nested_list] - self._oDesign.GetModule('EmitCom').SetTableData(self._result_id, self._node_id, rows) + self._oRevisionData.SetTableData(self._result_id, self._node_id, rows) def _add_child_node(self, child_type, child_name = None): if not child_name: @@ -171,7 +244,7 @@ def _add_child_node(self, child_type, child_name = None): if child_type not in self.allowed_child_types: raise ValueError(f"Child type {child_type} is not allowed for this node. Allowed types are: {self.allowed_child_types}") try: - new_id = self._oDesign.GetModule('EmitCom').CreateEmitNode(self._result_id, self._node_id, child_name, child_type) + new_id = self._oRevisionData.CreateEmitNode(self._result_id, self._node_id, child_name, child_type) except Exception as e: print(f"Failed to add child node of type {child_type} to node {self.name}. Error: {e}") return new_id diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index 28140201037..d18a4cce271 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -28,7 +28,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @property def noise_temperature(self) -> float: @@ -40,8 +40,8 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + def noise_temperature(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @property def notes(self) -> str: @@ -53,7 +53,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) class AmplifierTypeOption(Enum): TRANSMIT_AMPLIFIER = "Transmit Amplifier" @@ -70,7 +70,7 @@ def amplifier_type(self) -> AmplifierTypeOption: @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Amplifier Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Amplifier Type=' + value.value]) @property def gain(self) -> float: @@ -82,34 +82,40 @@ def gain(self) -> float: return val @gain.setter - def gain(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Gain=' + value]) + def gain(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Gain=' + value]) @property def center_frequency(self) -> float: """Center Frequency "Center frequency of amplifiers operational bandwidth." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Center Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @center_frequency.setter - def center_frequency(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Center Frequency=' + value]) + def center_frequency(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Center Frequency=' + f"{value}"]) @property def bandwidth(self) -> float: """Bandwidth "Frequency region where the gain applies." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Bandwidth') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @bandwidth.setter - def bandwidth(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth=' + value]) + def bandwidth(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth=' + f"{value}"]) @property def noise_figure(self) -> float: @@ -121,47 +127,56 @@ def noise_figure(self) -> float: return val @noise_figure.setter - def noise_figure(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Figure=' + value]) + def noise_figure(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Figure=' + value]) @property def saturation_level(self) -> float: """Saturation Level "Saturation level." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ val = self._get_property('Saturation Level') + val = self._convert_from_default_units(float(val), "Power Unit") return val @saturation_level.setter - def saturation_level(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Saturation Level=' + value]) + def saturation_level(self, value : float|str): + value = self._convert_to_default_units(value, "Power Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Saturation Level=' + f"{value}"]) @property def _1_db_point_ref_input(self) -> float: """1-dB Point, Ref. Input "Incoming signals > this value saturate the amplifier." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ val = self._get_property('1-dB Point, Ref. Input') + val = self._convert_from_default_units(float(val), "Power Unit") return val @_1_db_point_ref_input.setter - def _1_db_point_ref_input(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input=' + value]) + def _1_db_point_ref_input(self, value : float|str): + value = self._convert_to_default_units(value, "Power Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input=' + f"{value}"]) @property def ip3_ref_input(self) -> float: """IP3, Ref. Input "3rd order intercept point." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ val = self._get_property('IP3, Ref. Input') + val = self._convert_from_default_units(float(val), "Power Unit") return val @ip3_ref_input.setter - def ip3_ref_input(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + value]) + def ip3_ref_input(self, value : float|str): + value = self._convert_to_default_units(value, "Power Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + f"{value}"]) @property def shape_factor(self) -> float: @@ -173,8 +188,8 @@ def shape_factor(self) -> float: return val @shape_factor.setter - def shape_factor(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Shape Factor=' + value]) + def shape_factor(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Shape Factor=' + value]) @property def reverse_isolation(self) -> float: @@ -186,8 +201,8 @@ def reverse_isolation(self) -> float: return val @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) + def reverse_isolation(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) @property def max_intermod_order(self) -> int: @@ -200,5 +215,5 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py index e62ce2f5995..a3c754c6757 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py @@ -36,7 +36,7 @@ def tags(self) -> str: @tags.setter def tags(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Tags=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Tags=' + value]) @property def show_relative_coordinates(self) -> bool: @@ -49,7 +49,7 @@ def show_relative_coordinates(self) -> bool: @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) @property def position(self): @@ -62,7 +62,7 @@ def position(self): @position.setter def position(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) @property def relative_position(self): @@ -75,7 +75,7 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Relative Position=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Relative Position=' + value]) class OrientationModeOption(Enum): RPYDEG = "Roll-Pitch-Yaw" @@ -92,7 +92,7 @@ def orientation_mode(self) -> OrientationModeOption: @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation Mode=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Orientation Mode=' + value.value]) @property def orientation(self): @@ -105,7 +105,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Orientation=' + value]) @property def relative_orientation(self): @@ -118,7 +118,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) @property def position_defined(self) -> bool: @@ -131,7 +131,7 @@ def position_defined(self) -> bool: @position_defined.setter def position_defined(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position Defined=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Position Defined=' + value]) @property def antenna_temperature(self) -> float: @@ -143,8 +143,8 @@ def antenna_temperature(self) -> float: return val @antenna_temperature.setter - def antenna_temperature(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna Temperature=' + value]) + def antenna_temperature(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna Temperature=' + value]) @property def type(self): @@ -156,7 +156,7 @@ def type(self): @type.setter def type(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value]) @property def antenna_file(self) -> str: @@ -168,7 +168,7 @@ def antenna_file(self) -> str: @antenna_file.setter def antenna_file(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna File=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna File=' + value]) @property def project_name(self) -> str: @@ -181,7 +181,7 @@ def project_name(self) -> str: @project_name.setter def project_name(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Project Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Project Name=' + value]) @property def peak_gain(self) -> float: @@ -193,8 +193,8 @@ def peak_gain(self) -> float: return val @peak_gain.setter - def peak_gain(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Peak Gain=' + value]) + def peak_gain(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Peak Gain=' + value]) class BoresightOption(Enum): XAXIS = "+X Axis" @@ -212,7 +212,7 @@ def boresight(self) -> BoresightOption: @boresight.setter def boresight(self, value: BoresightOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Boresight=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Boresight=' + value.value]) @property def vertical_beamwidth(self) -> float: @@ -224,8 +224,8 @@ def vertical_beamwidth(self) -> float: return val @vertical_beamwidth.setter - def vertical_beamwidth(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Beamwidth=' + value]) + def vertical_beamwidth(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Beamwidth=' + value]) @property def horizontal_beamwidth(self) -> float: @@ -237,8 +237,8 @@ def horizontal_beamwidth(self) -> float: return val @horizontal_beamwidth.setter - def horizontal_beamwidth(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Horizontal Beamwidth=' + value]) + def horizontal_beamwidth(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Horizontal Beamwidth=' + value]) @property def extra_sidelobe(self) -> bool: @@ -251,7 +251,7 @@ def extra_sidelobe(self) -> bool: @extra_sidelobe.setter def extra_sidelobe(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Extra Sidelobe=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Extra Sidelobe=' + value]) @property def first_sidelobe_level(self) -> float: @@ -263,8 +263,8 @@ def first_sidelobe_level(self) -> float: return val @first_sidelobe_level.setter - def first_sidelobe_level(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['First Sidelobe Level=' + value]) + def first_sidelobe_level(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['First Sidelobe Level=' + value]) @property def first_sidelobe_vert_bw(self) -> float: @@ -276,8 +276,8 @@ def first_sidelobe_vert_bw(self) -> float: return val @first_sidelobe_vert_bw.setter - def first_sidelobe_vert_bw(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['First Sidelobe Vert. BW=' + value]) + def first_sidelobe_vert_bw(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['First Sidelobe Vert. BW=' + value]) @property def first_sidelobe_hor_bw(self) -> float: @@ -289,8 +289,8 @@ def first_sidelobe_hor_bw(self) -> float: return val @first_sidelobe_hor_bw.setter - def first_sidelobe_hor_bw(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['First Sidelobe Hor. BW=' + value]) + def first_sidelobe_hor_bw(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['First Sidelobe Hor. BW=' + value]) @property def outerbacklobe_level(self) -> float: @@ -302,73 +302,88 @@ def outerbacklobe_level(self) -> float: return val @outerbacklobe_level.setter - def outerbacklobe_level(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Outer/Backlobe Level=' + value]) + def outerbacklobe_level(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Outer/Backlobe Level=' + value]) @property def resonant_frequency(self) -> float: """Resonant Frequency "Set first resonant frequency of wire dipole, monopole, or parametric antenna." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+13." """ val = self._get_property('Resonant Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @resonant_frequency.setter - def resonant_frequency(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Resonant Frequency=' + value]) + def resonant_frequency(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Resonant Frequency=' + f"{value}"]) @property def slot_length(self) -> float: """Slot Length "Set slot length of parametric slot." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ val = self._get_property('Slot Length') + val = self._convert_from_default_units(float(val), "Length Unit") return val @slot_length.setter - def slot_length(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Slot Length=' + value]) + def slot_length(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Slot Length=' + f"{value}"]) @property def mouth_width(self) -> float: """Mouth Width "Set mouth width (along local y-axis) of the horn antenna." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 1e-06 and 100." """ val = self._get_property('Mouth Width') + val = self._convert_from_default_units(float(val), "Length Unit") return val @mouth_width.setter - def mouth_width(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mouth Width=' + value]) + def mouth_width(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mouth Width=' + f"{value}"]) @property def mouth_height(self) -> float: """Mouth Height "Set mouth height (along local x-axis) of the horn antenna." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 1e-06 and 100." """ val = self._get_property('Mouth Height') + val = self._convert_from_default_units(float(val), "Length Unit") return val @mouth_height.setter - def mouth_height(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mouth Height=' + value]) + def mouth_height(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mouth Height=' + f"{value}"]) @property def waveguide_width(self) -> float: """Waveguide Width "Set waveguide width (along local y-axis) where flared horn walls meet the feed, determines cut-off frequency." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 1e-06 and 100." """ val = self._get_property('Waveguide Width') + val = self._convert_from_default_units(float(val), "Length Unit") return val @waveguide_width.setter - def waveguide_width(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Waveguide Width=' + value]) + def waveguide_width(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Waveguide Width=' + f"{value}"]) @property def width_flare_half_angle(self) -> float: @@ -380,8 +395,8 @@ def width_flare_half_angle(self) -> float: return val @width_flare_half_angle.setter - def width_flare_half_angle(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Width Flare Half-angle=' + value]) + def width_flare_half_angle(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Width Flare Half-angle=' + value]) @property def height_flare_half_angle(self) -> float: @@ -393,21 +408,24 @@ def height_flare_half_angle(self) -> float: return val @height_flare_half_angle.setter - def height_flare_half_angle(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Height Flare Half-angle=' + value]) + def height_flare_half_angle(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Height Flare Half-angle=' + value]) @property def mouth_diameter(self) -> float: """Mouth Diameter "Set aperture (mouth) diameter of horn antenna." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 1e-06 and 100." """ val = self._get_property('Mouth Diameter') + val = self._convert_from_default_units(float(val), "Length Unit") return val @mouth_diameter.setter - def mouth_diameter(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mouth Diameter=' + value]) + def mouth_diameter(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mouth Diameter=' + f"{value}"]) @property def flare_half_angle(self) -> float: @@ -419,8 +437,8 @@ def flare_half_angle(self) -> float: return val @flare_half_angle.setter - def flare_half_angle(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Flare Half-angle=' + value]) + def flare_half_angle(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Flare Half-angle=' + value]) @property def vswr(self) -> float: @@ -432,8 +450,8 @@ def vswr(self) -> float: return val @vswr.setter - def vswr(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['VSWR=' + value]) + def vswr(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['VSWR=' + value]) class AntennaPolarizationOption(Enum): VERTICAL = "Vertical" @@ -452,7 +470,7 @@ def antenna_polarization(self) -> AntennaPolarizationOption: @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna Polarization=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna Polarization=' + value.value]) class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" @@ -469,7 +487,7 @@ def cross_dipole_mode(self) -> CrossDipoleModeOption: @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Cross Dipole Mode=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Cross Dipole Mode=' + value.value]) class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" @@ -486,7 +504,7 @@ def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Cross Dipole Polarization=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Cross Dipole Polarization=' + value.value]) @property def override_height(self) -> bool: @@ -499,20 +517,23 @@ def override_height(self) -> bool: @override_height.setter def override_height(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Override Height=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Override Height=' + value]) @property def offset_height(self) -> float: """Offset Height "Sets the offset height for the current sources above the ground plane." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 0." """ val = self._get_property('Offset Height') + val = self._convert_from_default_units(float(val), "Length Unit") return val @offset_height.setter - def offset_height(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Offset Height=' + value]) + def offset_height(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Offset Height=' + f"{value}"]) @property def auto_height_offset(self) -> bool: @@ -525,7 +546,7 @@ def auto_height_offset(self) -> bool: @auto_height_offset.setter def auto_height_offset(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Auto Height Offset=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Auto Height Offset=' + value]) @property def conform__adjust_antenna(self) -> bool: @@ -538,7 +559,7 @@ def conform__adjust_antenna(self) -> bool: @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Conform / Adjust Antenna=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Conform / Adjust Antenna=' + value]) @property def element_offset(self): @@ -551,7 +572,7 @@ def element_offset(self): @element_offset.setter def element_offset(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Element Offset=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Element Offset=' + value]) class ConformtoPlatformOption(Enum): NONE = "None" @@ -569,7 +590,7 @@ def conform_to_platform(self) -> ConformtoPlatformOption: @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Conform to Platform=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Conform to Platform=' + value.value]) class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" @@ -587,7 +608,7 @@ def reference_plane(self) -> ReferencePlaneOption: @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Reference Plane=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Reference Plane=' + value.value]) @property def conform_element_orientation(self) -> bool: @@ -600,7 +621,7 @@ def conform_element_orientation(self) -> bool: @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Conform Element Orientation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Conform Element Orientation=' + value]) @property def show_axes(self) -> bool: @@ -613,7 +634,7 @@ def show_axes(self) -> bool: @show_axes.setter def show_axes(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Axes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Show Axes=' + value]) @property def show_icon(self) -> bool: @@ -626,7 +647,7 @@ def show_icon(self) -> bool: @show_icon.setter def show_icon(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Icon=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Show Icon=' + value]) @property def size(self) -> float: @@ -638,8 +659,8 @@ def size(self) -> float: return val @size.setter - def size(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Size=' + value]) + def size(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Size=' + value]) @property def color(self): @@ -652,7 +673,7 @@ def color(self): @color.setter def color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) @property def el_sample_interval(self) -> float: @@ -723,24 +744,30 @@ def number_of_imaged_magnetic_sources(self) -> int: def waveguide_height(self) -> float: """Waveguide Height "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." " """ val = self._get_property('Waveguide Height') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." + "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Waveguide Cutoff Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." + "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Aperture Cutoff Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val class SWEModeTruncationOption(Enum): @@ -759,7 +786,7 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['SWE Mode Truncation=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['SWE Mode Truncation=' + value.value]) @property def max_n_index(self) -> int: @@ -772,7 +799,7 @@ def max_n_index(self) -> int: @max_n_index.setter def max_n_index(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max N Index=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max N Index=' + value]) @property def notes(self) -> str: @@ -784,7 +811,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) @property def show_composite_passband(self) -> bool: @@ -797,7 +824,7 @@ def show_composite_passband(self) -> bool: @show_composite_passband.setter def show_composite_passband(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Composite Passband=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Show Composite Passband=' + value]) @property def use_phase_center(self) -> bool: @@ -810,7 +837,7 @@ def use_phase_center(self) -> bool: @use_phase_center.setter def use_phase_center(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use Phase Center=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Use Phase Center=' + value]) @property def coordinate_systems(self) -> str: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py index 3198003203d..c6d6a726d9b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py @@ -25,11 +25,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) @property def passband_loss(self) -> float: @@ -41,8 +41,8 @@ def passband_loss(self) -> float: return val @passband_loss.setter - def passband_loss(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Passband Loss=' + value]) + def passband_loss(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Passband Loss=' + value]) @property def out_of_band_attenuation(self) -> float: @@ -54,60 +54,72 @@ def out_of_band_attenuation(self) -> float: return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Out of Band Attenuation=' + value]) + def out_of_band_attenuation(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Out of Band Attenuation=' + value]) @property def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @lower_stop_band.setter - def lower_stop_band(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + def lower_stop_band(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + f"{value}"]) @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @lower_cutoff.setter - def lower_cutoff(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + def lower_cutoff(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + f"{value}"]) @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @higher_cutoff.setter - def higher_cutoff(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + def higher_cutoff(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + f"{value}"]) @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @higher_stop_band.setter - def higher_stop_band(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + def higher_stop_band(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + f"{value}"]) @property def notes(self) -> str: @@ -119,5 +131,5 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index e36b87409d9..dc944af6a97 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -13,11 +13,11 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) @property def port(self): @@ -29,7 +29,7 @@ def port(self): @port.setter def port(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Port=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Port=' + value]) @property def use_dd_1494_mode(self) -> bool: @@ -42,7 +42,7 @@ def use_dd_1494_mode(self) -> bool: @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use DD-1494 Mode=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Use DD-1494 Mode=' + value]) @property def use_emission_designator(self) -> bool: @@ -55,7 +55,7 @@ def use_emission_designator(self) -> bool: @use_emission_designator.setter def use_emission_designator(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use Emission Designator=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Use Emission Designator=' + value]) @property def emission_designator(self) -> str: @@ -67,14 +67,16 @@ def emission_designator(self) -> str: @emission_designator.setter def emission_designator(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Emission Designator=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Emission Designator=' + value]) @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." + "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Emission Designator Ch. BW') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property @@ -96,20 +98,23 @@ def override_emission_designator_bw(self) -> bool: @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Override Emission Designator BW=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Override Emission Designator BW=' + value]) @property def channel_bandwidth(self) -> float: """Channel Bandwidth "Channel Bandwidth." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('Channel Bandwidth') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @channel_bandwidth.setter - def channel_bandwidth(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Channel Bandwidth=' + value]) + def channel_bandwidth(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Channel Bandwidth=' + f"{value}"]) class ModulationOption(Enum): GENERIC = "Generic" @@ -135,7 +140,7 @@ def modulation(self) -> ModulationOption: @modulation.setter def modulation(self, value: ModulationOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Modulation=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Modulation=' + value.value]) class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" @@ -155,20 +160,23 @@ def waveform(self) -> WaveformOption: @waveform.setter def waveform(self, value: WaveformOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Waveform=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Waveform=' + value.value]) @property def max_modulating_freq(self) -> float: """Max Modulating Freq. "Maximum modulating frequency: helps determine spectral profile." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('Max Modulating Freq.') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @max_modulating_freq.setter - def max_modulating_freq(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Modulating Freq.=' + value]) + def max_modulating_freq(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Modulating Freq.=' + f"{value}"]) @property def modulation_index(self) -> float: @@ -180,34 +188,40 @@ def modulation_index(self) -> float: return val @modulation_index.setter - def modulation_index(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Modulation Index=' + value]) + def modulation_index(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Modulation Index=' + value]) @property def freq_deviation(self) -> float: """Freq. Deviation "Frequency deviation: helps determine spectral profile." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('Freq. Deviation') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @freq_deviation.setter - def freq_deviation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Freq. Deviation=' + value]) + def freq_deviation(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Freq. Deviation=' + f"{value}"]) @property def bit_rate(self) -> float: """Bit Rate "Maximum bit rate: helps determine width of spectral profile." + "Units options: bps, kbps, Mbps, Gbps." "Value should be greater than 1." """ val = self._get_property('Bit Rate') + val = self._convert_from_default_units(float(val), "Data Rate Unit") return val @bit_rate.setter - def bit_rate(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Bit Rate=' + value]) + def bit_rate(self, value : float|str): + value = self._convert_to_default_units(value, "Data Rate Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Bit Rate=' + f"{value}"]) @property def sidelobes(self) -> int: @@ -220,20 +234,23 @@ def sidelobes(self) -> int: @sidelobes.setter def sidelobes(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Sidelobes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Sidelobes=' + value]) @property def freq_deviation_(self) -> float: """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('Freq. Deviation ') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @freq_deviation_.setter - def freq_deviation_(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Freq. Deviation =' + value]) + def freq_deviation_(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Freq. Deviation =' + f"{value}"]) class PSKTypeOption(Enum): BPSK = "BPSK" @@ -254,7 +271,7 @@ def psk_type(self) -> PSKTypeOption: @psk_type.setter def psk_type(self, value: PSKTypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['PSK Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['PSK Type=' + value.value]) class FSKTypeOption(Enum): _2_FSK = "2-FSK" @@ -272,7 +289,7 @@ def fsk_type(self) -> FSKTypeOption: @fsk_type.setter def fsk_type(self, value: FSKTypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['FSK Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['FSK Type=' + value.value]) class QAMTypeOption(Enum): _4_QAM = "4-QAM" @@ -292,7 +309,7 @@ def qam_type(self) -> QAMTypeOption: @qam_type.setter def qam_type(self, value: QAMTypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['QAM Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['QAM Type=' + value.value]) class APSKTypeOption(Enum): _4_APSK = "4-APSK" @@ -312,59 +329,71 @@ def apsk_type(self) -> APSKTypeOption: @apsk_type.setter def apsk_type(self, value: APSKTypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['APSK Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['APSK Type=' + value.value]) @property def start_frequency(self) -> float: """Start Frequency "First frequency for this band." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Start Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @start_frequency.setter - def start_frequency(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Start Frequency=' + value]) + def start_frequency(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Start Frequency=' + f"{value}"]) @property def stop_frequency(self) -> float: """Stop Frequency "Last frequency for this band." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Stop Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @stop_frequency.setter - def stop_frequency(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Stop Frequency=' + value]) + def stop_frequency(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Stop Frequency=' + f"{value}"]) @property def channel_spacing(self) -> float: """Channel Spacing "Spacing between channels within this band." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Channel Spacing') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @channel_spacing.setter - def channel_spacing(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Channel Spacing=' + value]) + def channel_spacing(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Channel Spacing=' + f"{value}"]) @property def tx_offset(self) -> float: """Tx Offset "Frequency offset between Tx and Rx channels." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be less than 1e+11." """ val = self._get_property('Tx Offset') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @tx_offset.setter - def tx_offset(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Tx Offset=' + value]) + def tx_offset(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Tx Offset=' + f"{value}"]) @property def clock_duty_cycle(self) -> float: @@ -376,21 +405,24 @@ def clock_duty_cycle(self) -> float: return val @clock_duty_cycle.setter - def clock_duty_cycle(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Clock Duty Cycle=' + value]) + def clock_duty_cycle(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Clock Duty Cycle=' + value]) @property def clock_risefall_time(self) -> float: """Clock Rise/Fall Time "Clock signals rise/fall time." + "Units options: ps, ns, us, ms, s." "Value should be greater than 0." """ val = self._get_property('Clock Rise/Fall Time') + val = self._convert_from_default_units(float(val), "Time Unit") return val @clock_risefall_time.setter - def clock_risefall_time(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Clock Rise/Fall Time=' + value]) + def clock_risefall_time(self, value : float|str): + value = self._convert_to_default_units(value, "Time Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Clock Rise/Fall Time=' + f"{value}"]) class SpreadingTypeOption(Enum): LOW_SPREAD = "Low Spread" @@ -408,7 +440,7 @@ def spreading_type(self) -> SpreadingTypeOption: @spreading_type.setter def spreading_type(self, value: SpreadingTypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Spreading Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Spreading Type=' + value.value]) @property def spread_percentage(self) -> float: @@ -420,8 +452,8 @@ def spread_percentage(self) -> float: return val @spread_percentage.setter - def spread_percentage(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Spread Percentage=' + value]) + def spread_percentage(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Spread Percentage=' + value]) @property def imported_spectrum(self) -> str: @@ -433,7 +465,7 @@ def imported_spectrum(self) -> str: @imported_spectrum.setter def imported_spectrum(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Imported Spectrum=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Imported Spectrum=' + value]) @property def raw_data_format(self) -> str: @@ -447,14 +479,17 @@ def raw_data_format(self) -> str: def system_impedance(self) -> float: """System Impedance "System impedance for the imported data." + "Units options: uOhm, mOhm, ohm, kOhm, megohm, GOhm." "Value should be between 0 and 1e+06." """ val = self._get_property('System Impedance') + val = self._convert_from_default_units(float(val), "Resistance Unit") return val @system_impedance.setter - def system_impedance(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['System Impedance=' + value]) + def system_impedance(self, value : float|str): + value = self._convert_to_default_units(value, "Resistance Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['System Impedance=' + f"{value}"]) @property def advanced_extraction_params(self) -> bool: @@ -467,7 +502,7 @@ def advanced_extraction_params(self) -> bool: @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Advanced Extraction Params=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Advanced Extraction Params=' + value]) @property def nb_window_size(self) -> float: @@ -479,8 +514,8 @@ def nb_window_size(self) -> float: return val @nb_window_size.setter - def nb_window_size(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['NB Window Size=' + value]) + def nb_window_size(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['NB Window Size=' + value]) @property def bb_smoothing_factor(self) -> float: @@ -492,8 +527,8 @@ def bb_smoothing_factor(self) -> float: return val @bb_smoothing_factor.setter - def bb_smoothing_factor(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['BB Smoothing Factor=' + value]) + def bb_smoothing_factor(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['BB Smoothing Factor=' + value]) @property def nb_detector_threshold(self) -> float: @@ -505,8 +540,8 @@ def nb_detector_threshold(self) -> float: return val @nb_detector_threshold.setter - def nb_detector_threshold(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['NB Detector Threshold=' + value]) + def nb_detector_threshold(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['NB Detector Threshold=' + value]) class AlgorithmOption(Enum): FFT = "FFT" @@ -523,45 +558,54 @@ def algorithm(self) -> AlgorithmOption: @algorithm.setter def algorithm(self, value: AlgorithmOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Algorithm=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Algorithm=' + value.value]) @property def start(self) -> float: """Start "Initial time of the imported spectrum." + "Units options: ps, ns, us, ms, s." "Value should be greater than 0." """ val = self._get_property('Start') + val = self._convert_from_default_units(float(val), "Time Unit") return val @start.setter - def start(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Start=' + value]) + def start(self, value : float|str): + value = self._convert_to_default_units(value, "Time Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Start=' + f"{value}"]) @property def stop(self) -> float: """Stop "Final time of the imported time domain spectrum." + "Units options: ps, ns, us, ms, s." " """ val = self._get_property('Stop') + val = self._convert_from_default_units(float(val), "Time Unit") return val @stop.setter - def stop(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Stop=' + value]) + def stop(self, value : float|str): + value = self._convert_to_default_units(value, "Time Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Stop=' + f"{value}"]) @property def max_frequency(self) -> float: """Max Frequency "Frequency cutoff of the imported time domain spectrum." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Max Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @max_frequency.setter - def max_frequency(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Frequency=' + value]) + def max_frequency(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Frequency=' + f"{value}"]) class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" @@ -585,7 +629,7 @@ def window_type(self) -> WindowTypeOption: @window_type.setter def window_type(self, value: WindowTypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Window Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Window Type=' + value.value]) @property def kaiser_parameter(self) -> float: @@ -597,8 +641,8 @@ def kaiser_parameter(self) -> float: return val @kaiser_parameter.setter - def kaiser_parameter(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Kaiser Parameter=' + value]) + def kaiser_parameter(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Kaiser Parameter=' + value]) @property def adjust_coherent_gain(self) -> bool: @@ -611,20 +655,23 @@ def adjust_coherent_gain(self) -> bool: @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adjust Coherent Gain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Adjust Coherent Gain=' + value]) @property def data_rate(self) -> float: """Data Rate "Maximum data rate: helps determine shape of spectral profile." + "Units options: bps, kbps, Mbps, Gbps." "Value should be greater than 1." """ val = self._get_property('Data Rate') + val = self._convert_from_default_units(float(val), "Data Rate Unit") return val @data_rate.setter - def data_rate(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Rate=' + value]) + def data_rate(self, value : float|str): + value = self._convert_to_default_units(value, "Data Rate Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Rate=' + f"{value}"]) @property def _of_bits(self) -> int: @@ -637,7 +684,7 @@ def _of_bits(self) -> int: @_of_bits.setter def _of_bits(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['# of Bits=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['# of Bits=' + value]) @property def use_envelope(self) -> bool: @@ -650,7 +697,7 @@ def use_envelope(self) -> bool: @use_envelope.setter def use_envelope(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use Envelope=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Use Envelope=' + value]) @property def min_ptsnull(self) -> int: @@ -663,20 +710,23 @@ def min_ptsnull(self) -> int: @min_ptsnull.setter def min_ptsnull(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Min Pts/Null=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Min Pts/Null=' + value]) @property def delay_skew(self) -> float: """Delay Skew "Delay Skew of the differential signal pairs." + "Units options: ps, ns, us, ms, s." "Value should be greater than 0." """ val = self._get_property('Delay Skew') + val = self._convert_from_default_units(float(val), "Time Unit") return val @delay_skew.setter - def delay_skew(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Delay Skew=' + value]) + def delay_skew(self, value : float|str): + value = self._convert_to_default_units(value, "Time Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Delay Skew=' + f"{value}"]) class RadarTypeOption(Enum): CW = "CW" @@ -696,7 +746,7 @@ def radar_type(self) -> RadarTypeOption: @radar_type.setter def radar_type(self, value: RadarTypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Radar Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Radar Type=' + value.value]) @property def hopping_radar(self) -> bool: @@ -709,7 +759,7 @@ def hopping_radar(self) -> bool: @hopping_radar.setter def hopping_radar(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Hopping Radar=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Hopping Radar=' + value]) @property def post_october_2020_procurement(self) -> bool: @@ -722,72 +772,87 @@ def post_october_2020_procurement(self) -> bool: @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Post October 2020 Procurement=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Post October 2020 Procurement=' + value]) @property def hop_range_min_freq(self) -> float: """Hop Range Min Freq "Sets the minimum frequency of the hopping range." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Hop Range Min Freq') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @hop_range_min_freq.setter - def hop_range_min_freq(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Hop Range Min Freq=' + value]) + def hop_range_min_freq(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Hop Range Min Freq=' + f"{value}"]) @property def hop_range_max_freq(self) -> float: """Hop Range Max Freq "Sets the maximum frequency of the hopping range." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Hop Range Max Freq') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @hop_range_max_freq.setter - def hop_range_max_freq(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Hop Range Max Freq=' + value]) + def hop_range_max_freq(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Hop Range Max Freq=' + f"{value}"]) @property def pulse_duration(self) -> float: """Pulse Duration "Pulse duration." + "Units options: ps, ns, us, ms, s." "Value should be greater than 0." """ val = self._get_property('Pulse Duration') + val = self._convert_from_default_units(float(val), "Time Unit") return val @pulse_duration.setter - def pulse_duration(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Duration=' + value]) + def pulse_duration(self, value : float|str): + value = self._convert_to_default_units(value, "Time Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Duration=' + f"{value}"]) @property def pulse_rise_time(self) -> float: """Pulse Rise Time "Pulse rise time." + "Units options: ps, ns, us, ms, s." "Value should be greater than 0." """ val = self._get_property('Pulse Rise Time') + val = self._convert_from_default_units(float(val), "Time Unit") return val @pulse_rise_time.setter - def pulse_rise_time(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Rise Time=' + value]) + def pulse_rise_time(self, value : float|str): + value = self._convert_to_default_units(value, "Time Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Rise Time=' + f"{value}"]) @property def pulse_fall_time(self) -> float: """Pulse Fall Time "Pulse fall time." + "Units options: ps, ns, us, ms, s." "Value should be greater than 0." """ val = self._get_property('Pulse Fall Time') + val = self._convert_from_default_units(float(val), "Time Unit") return val @pulse_fall_time.setter - def pulse_fall_time(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Fall Time=' + value]) + def pulse_fall_time(self, value : float|str): + value = self._convert_to_default_units(value, "Time Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Fall Time=' + f"{value}"]) @property def pulse_repetition_rate(self) -> float: @@ -799,8 +864,8 @@ def pulse_repetition_rate(self) -> float: return val @pulse_repetition_rate.setter - def pulse_repetition_rate(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Repetition Rate=' + value]) + def pulse_repetition_rate(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Repetition Rate=' + value]) @property def number_of_chips(self) -> float: @@ -812,8 +877,8 @@ def number_of_chips(self) -> float: return val @number_of_chips.setter - def number_of_chips(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Number of Chips=' + value]) + def number_of_chips(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Number of Chips=' + value]) @property def pulse_compression_ratio(self) -> float: @@ -825,45 +890,54 @@ def pulse_compression_ratio(self) -> float: return val @pulse_compression_ratio.setter - def pulse_compression_ratio(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Compression Ratio=' + value]) + def pulse_compression_ratio(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Compression Ratio=' + value]) @property def fm_chirp_period(self) -> float: """FM Chirp Period "FM Chirp period for the FM/CW radar." + "Units options: ps, ns, us, ms, s." "Value should be greater than 0." """ val = self._get_property('FM Chirp Period') + val = self._convert_from_default_units(float(val), "Time Unit") return val @fm_chirp_period.setter - def fm_chirp_period(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['FM Chirp Period=' + value]) + def fm_chirp_period(self, value : float|str): + value = self._convert_to_default_units(value, "Time Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['FM Chirp Period=' + f"{value}"]) @property def fm_freq_deviation(self) -> float: """FM Freq Deviation "Total frequency deviation for the carrier frequency for the FM/CW radar." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('FM Freq Deviation') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @fm_freq_deviation.setter - def fm_freq_deviation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['FM Freq Deviation=' + value]) + def fm_freq_deviation(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['FM Freq Deviation=' + f"{value}"]) @property def fm_freq_dev_bandwidth(self) -> float: """FM Freq Dev Bandwidth "Bandwidth of freq deviation for FM modulated pulsed waveform (total freq shift during pulse duration)." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('FM Freq Dev Bandwidth') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['FM Freq Dev Bandwidth=' + value]) + def fm_freq_dev_bandwidth(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['FM Freq Dev Bandwidth=' + f"{value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py index 63ea1496c23..963d44a9f90 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py @@ -32,7 +32,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) class TxorRxOption(Enum): TX = "Tx" @@ -49,7 +49,7 @@ def tx_or_rx(self) -> TxorRxOption: @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Tx or Rx=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Tx or Rx=' + value.value]) @property def channel_frequency(self): @@ -61,14 +61,16 @@ def channel_frequency(self): @channel_frequency.setter def channel_frequency(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Channel Frequency=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Channel Frequency=' + value]) @property def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." + "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Transmit Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property @@ -82,7 +84,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -95,7 +97,7 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: @@ -107,7 +109,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) class StyleOption(Enum): LINES = "Lines" @@ -128,7 +130,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -141,7 +143,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -154,7 +156,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -184,7 +186,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -197,7 +199,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -210,7 +212,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -223,7 +225,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -236,5 +238,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py index 55d01340cc9..92227612f08 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py @@ -58,46 +58,55 @@ def model_type(self) -> ModelTypeOption: @model_type.setter def model_type(self, value: ModelTypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Model Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Model Type=' + value.value]) @property def length(self) -> float: """Length "Length of the model." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ val = self._get_property('Length') + val = self._convert_from_default_units(float(val), "Length Unit") return val @length.setter - def length(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Length=' + value]) + def length(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Length=' + f"{value}"]) @property def width(self) -> float: """Width "Width of the model." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ val = self._get_property('Width') + val = self._convert_from_default_units(float(val), "Length Unit") return val @width.setter - def width(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Width=' + value]) + def width(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Width=' + f"{value}"]) @property def height(self) -> float: """Height "Height of the model." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ val = self._get_property('Height') + val = self._convert_from_default_units(float(val), "Length Unit") return val @height.setter - def height(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Height=' + value]) + def height(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Height=' + f"{value}"]) @property def angle(self) -> float: @@ -109,150 +118,183 @@ def angle(self) -> float: return val @angle.setter - def angle(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Angle=' + value]) + def angle(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Angle=' + value]) @property def top_side(self) -> float: """Top Side "Side of the top of a equilateral triangular cylinder model." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 0." """ val = self._get_property('Top Side') + val = self._convert_from_default_units(float(val), "Length Unit") return val @top_side.setter - def top_side(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Top Side=' + value]) + def top_side(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Top Side=' + f"{value}"]) @property def top_radius(self) -> float: """Top Radius "Radius of the top of a tapered cylinder model." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 0." """ val = self._get_property('Top Radius') + val = self._convert_from_default_units(float(val), "Length Unit") return val @top_radius.setter - def top_radius(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Top Radius=' + value]) + def top_radius(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Top Radius=' + f"{value}"]) @property def side(self) -> float: """Side "Side of the equilateral triangular cylinder." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ val = self._get_property('Side') + val = self._convert_from_default_units(float(val), "Length Unit") return val @side.setter - def side(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Side=' + value]) + def side(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Side=' + f"{value}"]) @property def radius(self) -> float: """Radius "Radius of the sphere or cylinder." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ val = self._get_property('Radius') + val = self._convert_from_default_units(float(val), "Length Unit") return val @radius.setter - def radius(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Radius=' + value]) + def radius(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Radius=' + f"{value}"]) @property def base_radius(self) -> float: """Base Radius "Radius of the base of a tophat model." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ val = self._get_property('Base Radius') + val = self._convert_from_default_units(float(val), "Length Unit") return val @base_radius.setter - def base_radius(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Base Radius=' + value]) + def base_radius(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Base Radius=' + f"{value}"]) @property def center_radius(self) -> float: """Center Radius "Radius of the raised portion of a tophat model." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ val = self._get_property('Center Radius') + val = self._convert_from_default_units(float(val), "Length Unit") return val @center_radius.setter - def center_radius(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Center Radius=' + value]) + def center_radius(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Center Radius=' + f"{value}"]) @property def x_axis_ellipsoid_radius(self) -> float: """X Axis Ellipsoid Radius "Ellipsoid semi-principal radius for the X axis." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ val = self._get_property('X Axis Ellipsoid Radius') + val = self._convert_from_default_units(float(val), "Length Unit") return val @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['X Axis Ellipsoid Radius=' + value]) + def x_axis_ellipsoid_radius(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['X Axis Ellipsoid Radius=' + f"{value}"]) @property def y_axis_ellipsoid_radius(self) -> float: """Y Axis Ellipsoid Radius "Ellipsoid semi-principal radius for the Y axis." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ val = self._get_property('Y Axis Ellipsoid Radius') + val = self._convert_from_default_units(float(val), "Length Unit") return val @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Y Axis Ellipsoid Radius=' + value]) + def y_axis_ellipsoid_radius(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Y Axis Ellipsoid Radius=' + f"{value}"]) @property def z_axis_ellipsoid_radius(self) -> float: """Z Axis Ellipsoid Radius "Ellipsoid semi-principal radius for the Z axis." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ val = self._get_property('Z Axis Ellipsoid Radius') + val = self._convert_from_default_units(float(val), "Length Unit") return val @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Z Axis Ellipsoid Radius=' + value]) + def z_axis_ellipsoid_radius(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Z Axis Ellipsoid Radius=' + f"{value}"]) @property def focal_length(self) -> float: """Focal Length "Focal length of a parabolic reflector (f = 1/4a where y=ax^2)." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ val = self._get_property('Focal Length') + val = self._convert_from_default_units(float(val), "Length Unit") return val @focal_length.setter - def focal_length(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Focal Length=' + value]) + def focal_length(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Focal Length=' + f"{value}"]) @property def offset(self) -> float: """Offset "Offset of parabolic reflector." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." " """ val = self._get_property('Offset') + val = self._convert_from_default_units(float(val), "Length Unit") return val @offset.setter - def offset(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Offset=' + value]) + def offset(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Offset=' + f"{value}"]) @property def x_direction_taper(self) -> float: @@ -264,8 +306,8 @@ def x_direction_taper(self) -> float: return val @x_direction_taper.setter - def x_direction_taper(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['X Direction Taper=' + value]) + def x_direction_taper(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['X Direction Taper=' + value]) @property def y_direction_taper(self) -> float: @@ -277,8 +319,8 @@ def y_direction_taper(self) -> float: return val @y_direction_taper.setter - def y_direction_taper(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Y Direction Taper=' + value]) + def y_direction_taper(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Y Direction Taper=' + value]) @property def prism_direction(self): @@ -291,7 +333,7 @@ def prism_direction(self): @prism_direction.setter def prism_direction(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Prism Direction=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Prism Direction=' + value]) @property def closed_top(self) -> bool: @@ -304,7 +346,7 @@ def closed_top(self) -> bool: @closed_top.setter def closed_top(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Closed Top=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Closed Top=' + value]) @property def closed_base(self) -> bool: @@ -317,7 +359,7 @@ def closed_base(self) -> bool: @closed_base.setter def closed_base(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Closed Base=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Closed Base=' + value]) @property def mesh_density(self) -> int: @@ -330,7 +372,7 @@ def mesh_density(self) -> int: @mesh_density.setter def mesh_density(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mesh Density=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mesh Density=' + value]) @property def use_symmetric_mesh(self) -> bool: @@ -343,7 +385,7 @@ def use_symmetric_mesh(self) -> bool: @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use Symmetric Mesh=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Use Symmetric Mesh=' + value]) class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -360,7 +402,7 @@ def mesh_option(self) -> MeshOptionOption: @mesh_option.setter def mesh_option(self, value: MeshOptionOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mesh Option=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mesh Option=' + value.value]) @property def coating_index(self) -> int: @@ -373,7 +415,7 @@ def coating_index(self) -> int: @coating_index.setter def coating_index(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Coating Index=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Coating Index=' + value]) @property def show_relative_coordinates(self) -> bool: @@ -386,7 +428,7 @@ def show_relative_coordinates(self) -> bool: @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) @property def position(self): @@ -399,7 +441,7 @@ def position(self): @position.setter def position(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) @property def relative_position(self): @@ -412,7 +454,7 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Relative Position=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Relative Position=' + value]) class OrientationModeOption(Enum): RPYDEG = "Roll-Pitch-Yaw" @@ -429,7 +471,7 @@ def orientation_mode(self) -> OrientationModeOption: @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation Mode=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Orientation Mode=' + value.value]) @property def orientation(self): @@ -442,7 +484,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Orientation=' + value]) @property def relative_orientation(self): @@ -455,7 +497,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) @property def visible(self) -> bool: @@ -468,7 +510,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -487,7 +529,7 @@ def render_mode(self) -> RenderModeOption: @render_mode.setter def render_mode(self, value: RenderModeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Render Mode=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Render Mode=' + value.value]) @property def show_axes(self) -> bool: @@ -500,7 +542,7 @@ def show_axes(self) -> bool: @show_axes.setter def show_axes(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Axes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Show Axes=' + value]) @property def min(self): @@ -539,7 +581,7 @@ def color(self): @color.setter def color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) @property def notes(self) -> str: @@ -551,5 +593,5 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index 3d40b995c8b..80c3e1e8304 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -28,7 +28,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @property def noise_temperature(self) -> float: @@ -40,8 +40,8 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + def noise_temperature(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @property def notes(self) -> str: @@ -53,7 +53,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) class TypeOption(Enum): BYFILE = "By File" @@ -71,20 +71,23 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) @property def length(self) -> float: """Length "Length of cable." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 0 and 500." """ val = self._get_property('Length') + val = self._convert_from_default_units(float(val), "Length Unit") return val @length.setter - def length(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Length=' + value]) + def length(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Length=' + f"{value}"]) @property def loss_per_length(self) -> float: @@ -96,21 +99,24 @@ def loss_per_length(self) -> float: return val @loss_per_length.setter - def loss_per_length(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Loss Per Length=' + value]) + def loss_per_length(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Loss Per Length=' + value]) @property def measurement_length(self) -> float: """Measurement Length "Length of the cable used for the measurements." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 0 and 500." """ val = self._get_property('Measurement Length') + val = self._convert_from_default_units(float(val), "Length Unit") return val @measurement_length.setter - def measurement_length(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Measurement Length=' + value]) + def measurement_length(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Measurement Length=' + f"{value}"]) @property def resistive_loss_constant(self) -> float: @@ -122,8 +128,8 @@ def resistive_loss_constant(self) -> float: return val @resistive_loss_constant.setter - def resistive_loss_constant(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Resistive Loss Constant=' + value]) + def resistive_loss_constant(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Resistive Loss Constant=' + value]) @property def dielectric_loss_constant(self) -> float: @@ -135,8 +141,8 @@ def dielectric_loss_constant(self) -> float: return val @dielectric_loss_constant.setter - def dielectric_loss_constant(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Dielectric Loss Constant=' + value]) + def dielectric_loss_constant(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Dielectric Loss Constant=' + value]) @property def warnings(self) -> str: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index d23d58e39b2..ffe801038b1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -28,7 +28,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @property def noise_temperature(self) -> float: @@ -40,8 +40,8 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + def noise_temperature(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @property def notes(self) -> str: @@ -53,7 +53,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) class TypeOption(Enum): BYFILE = "By File" @@ -70,7 +70,7 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) class Port1LocationOption(Enum): RADIOSIDE = "Radio Side" @@ -87,7 +87,7 @@ def port_1_location(self) -> Port1LocationOption: @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Port 1 Location=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Port 1 Location=' + value.value]) @property def insertion_loss(self) -> float: @@ -99,8 +99,8 @@ def insertion_loss(self) -> float: return val @insertion_loss.setter - def insertion_loss(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + def insertion_loss(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) @property def finite_reverse_isolation(self) -> bool: @@ -113,7 +113,7 @@ def finite_reverse_isolation(self) -> bool: @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Finite Reverse Isolation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Finite Reverse Isolation=' + value]) @property def reverse_isolation(self) -> float: @@ -125,8 +125,8 @@ def reverse_isolation(self) -> float: return val @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) + def reverse_isolation(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) @property def finite_bandwidth(self) -> bool: @@ -139,7 +139,7 @@ def finite_bandwidth(self) -> bool: @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) @property def out_of_band_attenuation(self) -> float: @@ -151,60 +151,72 @@ def out_of_band_attenuation(self) -> float: return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) + def out_of_band_attenuation(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) @property def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @lower_stop_band.setter - def lower_stop_band(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + def lower_stop_band(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + f"{value}"]) @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @lower_cutoff.setter - def lower_cutoff(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + def lower_cutoff(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + f"{value}"]) @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @higher_cutoff.setter - def higher_cutoff(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + def higher_cutoff(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + f"{value}"]) @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @higher_stop_band.setter - def higher_stop_band(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + def higher_stop_band(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + f"{value}"]) @property def warnings(self) -> str: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py index 28e699d83a2..3cd1bb34337 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py @@ -21,7 +21,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @property def ports(self): @@ -34,5 +34,5 @@ def ports(self): @ports.setter def ports(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Ports=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Ports=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py index 5936a631c84..824ad32a94a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py @@ -31,7 +31,7 @@ def transmitter(self) -> EmitNode: @transmitter.setter def transmitter(self, value: EmitNode): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Transmitter=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Transmitter=' + value]) @property def receiver(self) -> EmitNode: @@ -42,7 +42,7 @@ def receiver(self) -> EmitNode: @receiver.setter def receiver(self, value: EmitNode): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Receiver=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Receiver=' + value]) @property def data_source(self): @@ -54,7 +54,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @property def visible(self) -> bool: @@ -67,7 +67,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -80,7 +80,7 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: @@ -92,7 +92,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) class StyleOption(Enum): LINES = "Lines" @@ -113,7 +113,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -126,7 +126,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -139,7 +139,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -169,7 +169,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -182,7 +182,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -195,7 +195,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -208,7 +208,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -221,7 +221,7 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) @property def highlight_regions(self) -> bool: @@ -234,7 +234,7 @@ def highlight_regions(self) -> bool: @highlight_regions.setter def highlight_regions(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Highlight Regions=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Highlight Regions=' + value]) @property def show_region_labels(self) -> bool: @@ -247,7 +247,7 @@ def show_region_labels(self) -> bool: @show_region_labels.setter def show_region_labels(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Region Labels=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Show Region Labels=' + value]) @property def font(self): @@ -260,7 +260,7 @@ def font(self): @font.setter def font(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Font=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Font=' + value]) @property def color(self): @@ -273,7 +273,7 @@ def color(self): @color.setter def color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) @property def background_color(self): @@ -286,7 +286,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) @property def border(self) -> bool: @@ -299,7 +299,7 @@ def border(self) -> bool: @border.setter def border(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Border=' + value]) @property def border_width(self) -> int: @@ -312,7 +312,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Border Width=' + value]) @property def border_color(self): @@ -325,5 +325,5 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Border Color=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py index 7a4c02974b8..de89919fcfb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py @@ -55,8 +55,8 @@ def minimum_allowed_coupling(self) -> float: return val @minimum_allowed_coupling.setter - def minimum_allowed_coupling(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Minimum Allowed Coupling=' + value]) + def minimum_allowed_coupling(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Minimum Allowed Coupling=' + value]) @property def global_default_coupling(self) -> float: @@ -68,8 +68,8 @@ def global_default_coupling(self) -> float: return val @global_default_coupling.setter - def global_default_coupling(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Global Default Coupling=' + value]) + def global_default_coupling(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Global Default Coupling=' + value]) @property def antenna_tags(self) -> str: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py index 1342920c618..e3e82696831 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py @@ -52,7 +52,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @property def antenna_a(self) -> EmitNode: @@ -64,7 +64,7 @@ def antenna_a(self) -> EmitNode: @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) @property def antenna_b(self) -> EmitNode: @@ -76,7 +76,7 @@ def antenna_b(self) -> EmitNode: @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) @property def enable_refinement(self) -> bool: @@ -89,7 +89,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @property def adaptive_sampling(self) -> bool: @@ -102,7 +102,7 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @property def refinement_domain(self): @@ -114,5 +114,5 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py index faf0aa99501..27af5429d8b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py @@ -33,7 +33,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def attached(self): @@ -45,7 +45,7 @@ def attached(self): @attached.setter def attached(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Attached=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Attached=' + value]) @property def position(self) -> float: @@ -74,7 +74,7 @@ def floating_label(self) -> bool: @floating_label.setter def floating_label(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Floating Label=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Floating Label=' + value]) @property def position_from_left(self) -> float: @@ -86,8 +86,8 @@ def position_from_left(self) -> float: return val @position_from_left.setter - def position_from_left(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position from Left=' + value]) + def position_from_left(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Position from Left=' + value]) @property def position_from_top(self) -> float: @@ -99,8 +99,8 @@ def position_from_top(self) -> float: return val @position_from_top.setter - def position_from_top(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position from Top=' + value]) + def position_from_top(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Position from Top=' + value]) @property def text(self) -> str: @@ -112,7 +112,7 @@ def text(self) -> str: @text.setter def text(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Text=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Text=' + value]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -130,7 +130,7 @@ def horizontal_position(self) -> HorizontalPositionOption: @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Horizontal Position=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Horizontal Position=' + value.value]) class VerticalPositionOption(Enum): TOP = "Top" @@ -148,7 +148,7 @@ def vertical_position(self) -> VerticalPositionOption: @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Position=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Position=' + value.value]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -166,7 +166,7 @@ def text_alignment(self) -> TextAlignmentOption: @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Text Alignment=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Text Alignment=' + value.value]) @property def font(self): @@ -179,7 +179,7 @@ def font(self): @font.setter def font(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Font=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Font=' + value]) @property def color(self): @@ -192,7 +192,7 @@ def color(self): @color.setter def color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) @property def background_color(self): @@ -205,7 +205,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) @property def border(self) -> bool: @@ -218,7 +218,7 @@ def border(self) -> bool: @border.setter def border(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Border=' + value]) @property def border_width(self) -> int: @@ -231,7 +231,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Border Width=' + value]) @property def border_color(self): @@ -244,7 +244,7 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Border Color=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -275,7 +275,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def arrow_direction(self) -> int: @@ -288,7 +288,7 @@ def arrow_direction(self) -> int: @arrow_direction.setter def arrow_direction(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Arrow Direction=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Arrow Direction=' + value]) @property def symbol_size(self) -> int: @@ -301,7 +301,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -314,7 +314,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def line_width(self) -> int: @@ -327,7 +327,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def filled(self) -> bool: @@ -340,5 +340,5 @@ def filled(self) -> bool: @filled.setter def filled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py index 0a2398059cc..33b09bd29d8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py @@ -19,7 +19,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) class GroundPlaneNormalOption(Enum): XAXIS = "X Axis" @@ -37,17 +37,20 @@ def ground_plane_normal(self) -> GroundPlaneNormalOption: @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Ground Plane Normal=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Ground Plane Normal=' + value.value]) @property def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." " """ val = self._get_property('GP Position Along Normal') + val = self._convert_from_default_units(float(val), "Length Unit") return val @gp_position_along_normal.setter - def gp_position_along_normal(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['GP Position Along Normal=' + value]) + def gp_position_along_normal(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['GP Position Along Normal=' + f"{value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py index c572265a8e8..eb2ede28ec8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py @@ -33,7 +33,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @property def base_antenna(self) -> EmitNode: @@ -45,7 +45,7 @@ def base_antenna(self) -> EmitNode: @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Base Antenna=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Base Antenna=' + value]) @property def mobile_antenna(self) -> EmitNode: @@ -57,7 +57,7 @@ def mobile_antenna(self) -> EmitNode: @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mobile Antenna=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mobile Antenna=' + value]) @property def enable_refinement(self) -> bool: @@ -70,7 +70,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @property def adaptive_sampling(self) -> bool: @@ -83,7 +83,7 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @property def refinement_domain(self): @@ -95,7 +95,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) class TerrainCategoryOption(Enum): TYPEA = "Type A" @@ -113,7 +113,7 @@ def terrain_category(self) -> TerrainCategoryOption: @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Terrain Category=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Terrain Category=' + value.value]) @property def custom_fading_margin(self) -> float: @@ -125,8 +125,8 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + def custom_fading_margin(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) @property def polarization_mismatch(self) -> float: @@ -138,8 +138,8 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + def polarization_mismatch(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) @property def pointing_error_loss(self) -> float: @@ -151,8 +151,8 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + def pointing_error_loss(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) class FadingTypeOption(Enum): NOFADING = "None" @@ -171,7 +171,7 @@ def fading_type(self) -> FadingTypeOption: @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) @property def fading_availability(self) -> float: @@ -183,8 +183,8 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + def fading_availability(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) @property def std_deviation(self) -> float: @@ -196,8 +196,8 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + def std_deviation(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) @property def include_rain_attenuation(self) -> bool: @@ -210,7 +210,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) @property def rain_availability(self) -> float: @@ -222,8 +222,8 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + def rain_availability(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) @property def rain_rate(self) -> float: @@ -235,8 +235,8 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + def rain_rate(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) @property def polarization_tilt_angle(self) -> float: @@ -248,8 +248,8 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + def polarization_tilt_angle(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) @property def include_atmospheric_absorption(self) -> bool: @@ -262,7 +262,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) @property def temperature(self) -> float: @@ -274,8 +274,8 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) + def temperature(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) @property def total_air_pressure(self) -> float: @@ -287,8 +287,8 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + def total_air_pressure(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) @property def water_vapor_concentration(self) -> float: @@ -300,6 +300,6 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + def water_vapor_concentration(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index 6748a72adc7..2e799ce4730 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -28,7 +28,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @property def noise_temperature(self) -> float: @@ -40,8 +40,8 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + def noise_temperature(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @property def notes(self) -> str: @@ -53,7 +53,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) class TypeOption(Enum): BYFILE = "By File" @@ -75,7 +75,7 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) @property def insertion_loss(self) -> float: @@ -87,8 +87,8 @@ def insertion_loss(self) -> float: return val @insertion_loss.setter - def insertion_loss(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + def insertion_loss(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) @property def stop_band_attenuation(self) -> float: @@ -100,190 +100,232 @@ def stop_band_attenuation(self) -> float: return val @stop_band_attenuation.setter - def stop_band_attenuation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Stop band Attenuation=' + value]) + def stop_band_attenuation(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Stop band Attenuation=' + value]) @property def max_pass_band(self) -> float: """Max Pass Band "Maximum pass band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Max Pass Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @max_pass_band.setter - def max_pass_band(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Pass Band=' + value]) + def max_pass_band(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Pass Band=' + f"{value}"]) @property def min_stop_band(self) -> float: """Min Stop Band "Minimum stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Min Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @min_stop_band.setter - def min_stop_band(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Min Stop Band=' + value]) + def min_stop_band(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Min Stop Band=' + f"{value}"]) @property def max_stop_band(self) -> float: """Max Stop Band "Maximum stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Max Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @max_stop_band.setter - def max_stop_band(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Stop Band=' + value]) + def max_stop_band(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Stop Band=' + f"{value}"]) @property def min_pass_band(self) -> float: """Min Pass Band "Minimum pass band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Min Pass Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @min_pass_band.setter - def min_pass_band(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Min Pass Band=' + value]) + def min_pass_band(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Min Pass Band=' + f"{value}"]) @property def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @lower_stop_band.setter - def lower_stop_band(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + def lower_stop_band(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + f"{value}"]) @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @lower_cutoff.setter - def lower_cutoff(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + def lower_cutoff(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + f"{value}"]) @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @higher_cutoff.setter - def higher_cutoff(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + def higher_cutoff(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + f"{value}"]) @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @higher_stop_band.setter - def higher_stop_band(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + def higher_stop_band(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + f"{value}"]) @property def lower_cutoff_(self) -> float: """Lower Cutoff "Lower cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff ') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @lower_cutoff_.setter - def lower_cutoff_(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff =' + value]) + def lower_cutoff_(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff =' + f"{value}"]) @property def lower_stop_band_(self) -> float: """Lower Stop Band "Lower stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band ') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @lower_stop_band_.setter - def lower_stop_band_(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band =' + value]) + def lower_stop_band_(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band =' + f"{value}"]) @property def higher_stop_band_(self) -> float: """Higher Stop Band "Higher stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band ') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @higher_stop_band_.setter - def higher_stop_band_(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band =' + value]) + def higher_stop_band_(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band =' + f"{value}"]) @property def higher_cutoff_(self) -> float: """Higher Cutoff "Higher cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff ') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @higher_cutoff_.setter - def higher_cutoff_(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff =' + value]) + def higher_cutoff_(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff =' + f"{value}"]) @property def lowest_tuned_frequency_(self) -> float: """Lowest Tuned Frequency "Lowest tuned frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lowest Tuned Frequency ') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @lowest_tuned_frequency_.setter - def lowest_tuned_frequency_(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lowest Tuned Frequency =' + value]) + def lowest_tuned_frequency_(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lowest Tuned Frequency =' + f"{value}"]) @property def highest_tuned_frequency_(self) -> float: """Highest Tuned Frequency "Highest tuned frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Highest Tuned Frequency ') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @highest_tuned_frequency_.setter - def highest_tuned_frequency_(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Highest Tuned Frequency =' + value]) + def highest_tuned_frequency_(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Highest Tuned Frequency =' + f"{value}"]) @property def percent_bandwidth(self) -> float: @@ -295,8 +337,8 @@ def percent_bandwidth(self) -> float: return val @percent_bandwidth.setter - def percent_bandwidth(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Percent Bandwidth=' + value]) + def percent_bandwidth(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Percent Bandwidth=' + value]) @property def shape_factor(self) -> float: @@ -308,8 +350,8 @@ def shape_factor(self) -> float: return val @shape_factor.setter - def shape_factor(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Shape Factor=' + value]) + def shape_factor(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Shape Factor=' + value]) @property def warnings(self) -> str: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py index 4753d176698..ee6514c5778 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py @@ -33,7 +33,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @property def base_antenna(self) -> EmitNode: @@ -45,7 +45,7 @@ def base_antenna(self) -> EmitNode: @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Base Antenna=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Base Antenna=' + value]) @property def mobile_antenna(self) -> EmitNode: @@ -57,7 +57,7 @@ def mobile_antenna(self) -> EmitNode: @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mobile Antenna=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mobile Antenna=' + value]) @property def enable_refinement(self) -> bool: @@ -70,7 +70,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @property def adaptive_sampling(self) -> bool: @@ -83,7 +83,7 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @property def refinement_domain(self): @@ -95,7 +95,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) class EnvironmentOption(Enum): URBANMICROCELL = "Urban Microcell" @@ -113,7 +113,7 @@ def environment(self) -> EnvironmentOption: @environment.setter def environment(self, value: EnvironmentOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Environment=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Environment=' + value.value]) @property def los(self) -> bool: @@ -126,7 +126,7 @@ def los(self) -> bool: @los.setter def los(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['LOS=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['LOS=' + value]) @property def include_bpl(self) -> bool: @@ -139,7 +139,7 @@ def include_bpl(self) -> bool: @include_bpl.setter def include_bpl(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include BPL=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include BPL=' + value]) class NYUBPLModelOption(Enum): LOWLOSSMODEL = "Low-loss model" @@ -156,7 +156,7 @@ def nyu_bpl_model(self) -> NYUBPLModelOption: @nyu_bpl_model.setter def nyu_bpl_model(self, value: NYUBPLModelOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['NYU BPL Model=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['NYU BPL Model=' + value.value]) @property def custom_fading_margin(self) -> float: @@ -168,8 +168,8 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + def custom_fading_margin(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) @property def polarization_mismatch(self) -> float: @@ -181,8 +181,8 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + def polarization_mismatch(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) @property def pointing_error_loss(self) -> float: @@ -194,8 +194,8 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + def pointing_error_loss(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) class FadingTypeOption(Enum): NOFADING = "None" @@ -214,7 +214,7 @@ def fading_type(self) -> FadingTypeOption: @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) @property def fading_availability(self) -> float: @@ -226,8 +226,8 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + def fading_availability(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) @property def std_deviation(self) -> float: @@ -239,8 +239,8 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + def std_deviation(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) @property def include_rain_attenuation(self) -> bool: @@ -253,7 +253,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) @property def rain_availability(self) -> float: @@ -265,8 +265,8 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + def rain_availability(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) @property def rain_rate(self) -> float: @@ -278,8 +278,8 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + def rain_rate(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) @property def polarization_tilt_angle(self) -> float: @@ -291,8 +291,8 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + def polarization_tilt_angle(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) @property def include_atmospheric_absorption(self) -> bool: @@ -305,7 +305,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) @property def temperature(self) -> float: @@ -317,8 +317,8 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) + def temperature(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) @property def total_air_pressure(self) -> float: @@ -330,8 +330,8 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + def total_air_pressure(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) @property def water_vapor_concentration(self) -> float: @@ -343,6 +343,6 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + def water_vapor_concentration(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py index d2be0e366b0..84d5289ca8b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py @@ -33,7 +33,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @property def base_antenna(self) -> EmitNode: @@ -45,7 +45,7 @@ def base_antenna(self) -> EmitNode: @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Base Antenna=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Base Antenna=' + value]) @property def mobile_antenna(self) -> EmitNode: @@ -57,7 +57,7 @@ def mobile_antenna(self) -> EmitNode: @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mobile Antenna=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mobile Antenna=' + value]) @property def enable_refinement(self) -> bool: @@ -70,7 +70,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @property def adaptive_sampling(self) -> bool: @@ -83,7 +83,7 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @property def refinement_domain(self): @@ -95,7 +95,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) class EnvironmentOption(Enum): LARGECITY = "Large City" @@ -114,7 +114,7 @@ def environment(self) -> EnvironmentOption: @environment.setter def environment(self, value: EnvironmentOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Environment=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Environment=' + value.value]) @property def custom_fading_margin(self) -> float: @@ -126,8 +126,8 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + def custom_fading_margin(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) @property def polarization_mismatch(self) -> float: @@ -139,8 +139,8 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + def polarization_mismatch(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) @property def pointing_error_loss(self) -> float: @@ -152,8 +152,8 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + def pointing_error_loss(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) class FadingTypeOption(Enum): NOFADING = "None" @@ -172,7 +172,7 @@ def fading_type(self) -> FadingTypeOption: @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) @property def fading_availability(self) -> float: @@ -184,8 +184,8 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + def fading_availability(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) @property def std_deviation(self) -> float: @@ -197,8 +197,8 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + def std_deviation(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) @property def include_rain_attenuation(self) -> bool: @@ -211,7 +211,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) @property def rain_availability(self) -> float: @@ -223,8 +223,8 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + def rain_availability(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) @property def rain_rate(self) -> float: @@ -236,8 +236,8 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + def rain_rate(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) @property def polarization_tilt_angle(self) -> float: @@ -249,8 +249,8 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + def polarization_tilt_angle(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) @property def include_atmospheric_absorption(self) -> bool: @@ -263,7 +263,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) @property def temperature(self) -> float: @@ -275,8 +275,8 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) + def temperature(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) @property def total_air_pressure(self) -> float: @@ -288,8 +288,8 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + def total_air_pressure(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) @property def water_vapor_concentration(self) -> float: @@ -301,6 +301,6 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + def water_vapor_concentration(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py index 8a0936070ec..145a33cb531 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py @@ -50,7 +50,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @property def antenna_a(self) -> EmitNode: @@ -62,7 +62,7 @@ def antenna_a(self) -> EmitNode: @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) @property def antenna_b(self) -> EmitNode: @@ -74,7 +74,7 @@ def antenna_b(self) -> EmitNode: @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) @property def enable_refinement(self) -> bool: @@ -87,7 +87,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @property def adaptive_sampling(self) -> bool: @@ -100,7 +100,7 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @property def refinement_domain(self): @@ -112,7 +112,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) class BuildingTypeOption(Enum): RESIDENTIALAPARTMENT = "Residential Apartment" @@ -132,7 +132,7 @@ def building_type(self) -> BuildingTypeOption: @building_type.setter def building_type(self, value: BuildingTypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Building Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Building Type=' + value.value]) @property def number_of_floors(self) -> int: @@ -145,7 +145,7 @@ def number_of_floors(self) -> int: @number_of_floors.setter def number_of_floors(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Number of Floors=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Number of Floors=' + value]) @property def custom_fading_margin(self) -> float: @@ -157,8 +157,8 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + def custom_fading_margin(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) @property def polarization_mismatch(self) -> float: @@ -170,8 +170,8 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + def polarization_mismatch(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) @property def pointing_error_loss(self) -> float: @@ -183,8 +183,8 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + def pointing_error_loss(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) class FadingTypeOption(Enum): NOFADING = "None" @@ -203,7 +203,7 @@ def fading_type(self) -> FadingTypeOption: @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) @property def fading_availability(self) -> float: @@ -215,8 +215,8 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + def fading_availability(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) @property def std_deviation(self) -> float: @@ -228,8 +228,8 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + def std_deviation(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) @property def include_rain_attenuation(self) -> bool: @@ -242,7 +242,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) @property def rain_availability(self) -> float: @@ -254,8 +254,8 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + def rain_availability(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) @property def rain_rate(self) -> float: @@ -267,8 +267,8 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + def rain_rate(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) @property def polarization_tilt_angle(self) -> float: @@ -280,8 +280,8 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + def polarization_tilt_angle(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) @property def include_atmospheric_absorption(self) -> bool: @@ -294,7 +294,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) @property def temperature(self) -> float: @@ -306,8 +306,8 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) + def temperature(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) @property def total_air_pressure(self) -> float: @@ -319,8 +319,8 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + def total_air_pressure(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) @property def water_vapor_concentration(self) -> float: @@ -332,6 +332,6 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + def water_vapor_concentration(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index 279aab00a79..c051aed0bb1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -28,7 +28,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @property def noise_temperature(self) -> float: @@ -40,8 +40,8 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + def noise_temperature(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @property def notes(self) -> str: @@ -53,7 +53,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) class TypeOption(Enum): BYFILE = "By File" @@ -70,7 +70,7 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) class Port1LocationOption(Enum): RADIOSIDE = "Radio Side" @@ -87,7 +87,7 @@ def port_1_location(self) -> Port1LocationOption: @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Port 1 Location=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Port 1 Location=' + value.value]) @property def insertion_loss(self) -> float: @@ -99,8 +99,8 @@ def insertion_loss(self) -> float: return val @insertion_loss.setter - def insertion_loss(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + def insertion_loss(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) @property def finite_reverse_isolation(self) -> bool: @@ -113,7 +113,7 @@ def finite_reverse_isolation(self) -> bool: @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Finite Reverse Isolation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Finite Reverse Isolation=' + value]) @property def reverse_isolation(self) -> float: @@ -125,8 +125,8 @@ def reverse_isolation(self) -> float: return val @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) + def reverse_isolation(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) @property def finite_bandwidth(self) -> bool: @@ -139,7 +139,7 @@ def finite_bandwidth(self) -> bool: @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) @property def out_of_band_attenuation(self) -> float: @@ -151,60 +151,72 @@ def out_of_band_attenuation(self) -> float: return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) + def out_of_band_attenuation(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) @property def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @lower_stop_band.setter - def lower_stop_band(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + def lower_stop_band(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + f"{value}"]) @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @lower_cutoff.setter - def lower_cutoff(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + def lower_cutoff(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + f"{value}"]) @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @higher_cutoff.setter - def higher_cutoff(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + def higher_cutoff(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + f"{value}"]) @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @higher_stop_band.setter - def higher_stop_band(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + def higher_stop_band(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + f"{value}"]) @property def warnings(self) -> str: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py index 75393391c2a..fe4bb4d2c84 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py @@ -33,7 +33,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @property def antenna_a(self) -> EmitNode: @@ -45,7 +45,7 @@ def antenna_a(self) -> EmitNode: @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) @property def antenna_b(self) -> EmitNode: @@ -57,7 +57,7 @@ def antenna_b(self) -> EmitNode: @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) @property def enable_refinement(self) -> bool: @@ -70,7 +70,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @property def adaptive_sampling(self) -> bool: @@ -83,7 +83,7 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @property def refinement_domain(self): @@ -95,7 +95,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) class EnvironmentOption(Enum): FREESPACE = "Free Space" @@ -117,7 +117,7 @@ def environment(self) -> EnvironmentOption: @environment.setter def environment(self, value: EnvironmentOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Environment=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Environment=' + value.value]) @property def path_loss_exponent(self) -> float: @@ -129,8 +129,8 @@ def path_loss_exponent(self) -> float: return val @path_loss_exponent.setter - def path_loss_exponent(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Path Loss Exponent=' + value]) + def path_loss_exponent(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Path Loss Exponent=' + value]) @property def custom_fading_margin(self) -> float: @@ -142,8 +142,8 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + def custom_fading_margin(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) @property def polarization_mismatch(self) -> float: @@ -155,8 +155,8 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + def polarization_mismatch(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) @property def pointing_error_loss(self) -> float: @@ -168,8 +168,8 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + def pointing_error_loss(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) class FadingTypeOption(Enum): NOFADING = "None" @@ -188,7 +188,7 @@ def fading_type(self) -> FadingTypeOption: @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) @property def fading_availability(self) -> float: @@ -200,8 +200,8 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + def fading_availability(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) @property def std_deviation(self) -> float: @@ -213,8 +213,8 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + def std_deviation(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) @property def include_rain_attenuation(self) -> bool: @@ -227,7 +227,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) @property def rain_availability(self) -> float: @@ -239,8 +239,8 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + def rain_availability(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) @property def rain_rate(self) -> float: @@ -252,8 +252,8 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + def rain_rate(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) @property def polarization_tilt_angle(self) -> float: @@ -265,8 +265,8 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + def polarization_tilt_angle(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) @property def include_atmospheric_absorption(self) -> bool: @@ -279,7 +279,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) @property def temperature(self) -> float: @@ -291,8 +291,8 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) + def temperature(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) @property def total_air_pressure(self) -> float: @@ -304,8 +304,8 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + def total_air_pressure(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) @property def water_vapor_concentration(self) -> float: @@ -317,6 +317,6 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + def water_vapor_concentration(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py index e3ad097f646..0e0081e55c2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py @@ -35,7 +35,7 @@ def power_direction(self) -> PowerDirectionOption: @power_direction.setter def power_direction(self, value: PowerDirectionOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Power Direction=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Power Direction=' + value.value]) @property def data_source(self): @@ -47,7 +47,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @property def visible(self) -> bool: @@ -60,7 +60,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -73,7 +73,7 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: @@ -85,7 +85,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) class StyleOption(Enum): LINES = "Lines" @@ -106,7 +106,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -119,7 +119,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -132,7 +132,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -162,7 +162,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -175,7 +175,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -188,7 +188,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -201,7 +201,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -214,5 +214,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index 20ef4b6eb69..806afb9f213 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -32,7 +32,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @property def noise_temperature(self) -> float: @@ -44,8 +44,8 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + def noise_temperature(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @property def notes(self) -> str: @@ -57,7 +57,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) class TypeOption(Enum): PARAMETRIC = "By Pass Band" @@ -74,7 +74,7 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) class Port1LocationOption(Enum): RADIOSIDE = "Radio Side" @@ -91,7 +91,7 @@ def port_1_location(self) -> Port1LocationOption: @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Port 1 Location=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Port 1 Location=' + value.value]) @property def flip_ports_vertically(self) -> bool: @@ -104,7 +104,7 @@ def flip_ports_vertically(self) -> bool: @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Flip Ports Vertically=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Flip Ports Vertically=' + value]) @property def ports(self): @@ -117,7 +117,7 @@ def ports(self): @ports.setter def ports(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Ports=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Ports=' + value]) @property def warnings(self) -> str: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py index b24c24628ee..255e89a37c3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py @@ -39,7 +39,7 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) @property def filename(self) -> str: @@ -52,7 +52,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @property def insertion_loss(self) -> float: @@ -64,8 +64,8 @@ def insertion_loss(self) -> float: return val @insertion_loss.setter - def insertion_loss(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + def insertion_loss(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) @property def stop_band_attenuation(self) -> float: @@ -77,112 +77,136 @@ def stop_band_attenuation(self) -> float: return val @stop_band_attenuation.setter - def stop_band_attenuation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Stop band Attenuation=' + value]) + def stop_band_attenuation(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Stop band Attenuation=' + value]) @property def max_pass_band(self) -> float: """Max Pass Band "Maximum pass band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Max Pass Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @max_pass_band.setter - def max_pass_band(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Pass Band=' + value]) + def max_pass_band(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Pass Band=' + f"{value}"]) @property def min_stop_band(self) -> float: """Min Stop Band "Minimum stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Min Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @min_stop_band.setter - def min_stop_band(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Min Stop Band=' + value]) + def min_stop_band(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Min Stop Band=' + f"{value}"]) @property def max_stop_band(self) -> float: """Max Stop Band "Maximum stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Max Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @max_stop_band.setter - def max_stop_band(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Stop Band=' + value]) + def max_stop_band(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Stop Band=' + f"{value}"]) @property def min_pass_band(self) -> float: """Min Pass Band "Minimum pass band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Min Pass Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @min_pass_band.setter - def min_pass_band(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Min Pass Band=' + value]) + def min_pass_band(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Min Pass Band=' + f"{value}"]) @property def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @lower_stop_band.setter - def lower_stop_band(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + def lower_stop_band(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + f"{value}"]) @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @lower_cutoff.setter - def lower_cutoff(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + def lower_cutoff(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + f"{value}"]) @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @higher_cutoff.setter - def higher_cutoff(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + def higher_cutoff(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + f"{value}"]) @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @higher_stop_band.setter - def higher_stop_band(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + def higher_stop_band(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + f"{value}"]) @property def warnings(self) -> str: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py index ac40318350a..1a041290897 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py @@ -33,7 +33,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) @property def output_port(self) -> int: @@ -46,7 +46,7 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) @property def data_source(self): @@ -58,7 +58,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @property def visible(self) -> bool: @@ -71,7 +71,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -84,7 +84,7 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: @@ -96,7 +96,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) class StyleOption(Enum): LINES = "Lines" @@ -117,7 +117,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -130,7 +130,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -143,7 +143,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -173,7 +173,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -186,7 +186,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -199,7 +199,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -212,7 +212,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -225,5 +225,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py index 82412e0e769..c99b6df0b16 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py @@ -31,7 +31,7 @@ def antenna_a(self) -> EmitNode: @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) @property def antenna_b(self) -> EmitNode: @@ -42,7 +42,7 @@ def antenna_b(self) -> EmitNode: @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) @property def data_source(self): @@ -54,7 +54,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @property def visible(self) -> bool: @@ -67,7 +67,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -80,7 +80,7 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: @@ -92,7 +92,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) class StyleOption(Enum): LINES = "Lines" @@ -113,7 +113,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -126,7 +126,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -139,7 +139,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -169,7 +169,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -182,7 +182,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -195,7 +195,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -208,7 +208,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -221,5 +221,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py index 854b138cb12..6c68c2265e7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py @@ -33,7 +33,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def attached(self) -> bool: @@ -46,7 +46,7 @@ def attached(self) -> bool: @attached.setter def attached(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Attached=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Attached=' + value]) @property def position(self) -> float: @@ -57,8 +57,8 @@ def position(self) -> float: return val @position.setter - def position(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) + def position(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) @property def position(self) -> float: @@ -69,8 +69,8 @@ def position(self) -> float: return val @position.setter - def position(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) + def position(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) @property def floating_label(self) -> bool: @@ -83,7 +83,7 @@ def floating_label(self) -> bool: @floating_label.setter def floating_label(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Floating Label=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Floating Label=' + value]) @property def position_from_left(self) -> float: @@ -95,8 +95,8 @@ def position_from_left(self) -> float: return val @position_from_left.setter - def position_from_left(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position from Left=' + value]) + def position_from_left(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Position from Left=' + value]) @property def position_from_top(self) -> float: @@ -108,8 +108,8 @@ def position_from_top(self) -> float: return val @position_from_top.setter - def position_from_top(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position from Top=' + value]) + def position_from_top(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Position from Top=' + value]) @property def text(self) -> str: @@ -121,7 +121,7 @@ def text(self) -> str: @text.setter def text(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Text=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Text=' + value]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -139,7 +139,7 @@ def horizontal_position(self) -> HorizontalPositionOption: @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Horizontal Position=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Horizontal Position=' + value.value]) class VerticalPositionOption(Enum): TOP = "Top" @@ -157,7 +157,7 @@ def vertical_position(self) -> VerticalPositionOption: @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Position=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Position=' + value.value]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -175,7 +175,7 @@ def text_alignment(self) -> TextAlignmentOption: @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Text Alignment=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Text Alignment=' + value.value]) @property def font(self): @@ -188,7 +188,7 @@ def font(self): @font.setter def font(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Font=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Font=' + value]) @property def color(self): @@ -201,7 +201,7 @@ def color(self): @color.setter def color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) @property def background_color(self): @@ -214,7 +214,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) @property def border(self) -> bool: @@ -227,7 +227,7 @@ def border(self) -> bool: @border.setter def border(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Border=' + value]) @property def border_width(self) -> int: @@ -240,7 +240,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Border Width=' + value]) @property def border_color(self): @@ -253,7 +253,7 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Border Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Border Color=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -284,7 +284,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def arrow_direction(self) -> int: @@ -297,7 +297,7 @@ def arrow_direction(self) -> int: @arrow_direction.setter def arrow_direction(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Arrow Direction=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Arrow Direction=' + value]) @property def symbol_size(self) -> int: @@ -310,7 +310,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -323,7 +323,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def line_width(self) -> int: @@ -336,7 +336,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def filled(self) -> bool: @@ -349,5 +349,5 @@ def filled(self) -> bool: @filled.setter def filled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py index 628ea62618b..c3cce7502b8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py @@ -35,7 +35,7 @@ def title(self) -> str: @title.setter def title(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Title=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Title=' + value]) @property def title_font(self): @@ -48,7 +48,7 @@ def title_font(self): @title_font.setter def title_font(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Title Font=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Title Font=' + value]) @property def show_legend(self) -> bool: @@ -61,7 +61,7 @@ def show_legend(self) -> bool: @show_legend.setter def show_legend(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Show Legend=' + value]) @property def legend_font(self): @@ -74,7 +74,7 @@ def legend_font(self): @legend_font.setter def legend_font(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Legend Font=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Legend Font=' + value]) @property def display_cad_overlay(self) -> bool: @@ -87,7 +87,7 @@ def display_cad_overlay(self) -> bool: @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Display CAD Overlay=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Display CAD Overlay=' + value]) @property def opacity(self) -> float: @@ -99,8 +99,8 @@ def opacity(self) -> float: return val @opacity.setter - def opacity(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Opacity=' + value]) + def opacity(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Opacity=' + value]) @property def vertical_offset(self) -> float: @@ -111,8 +111,8 @@ def vertical_offset(self) -> float: return val @vertical_offset.setter - def vertical_offset(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Offset=' + value]) + def vertical_offset(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Offset=' + value]) @property def range_axis_rotation(self) -> float: @@ -124,8 +124,8 @@ def range_axis_rotation(self) -> float: return val @range_axis_rotation.setter - def range_axis_rotation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Range Axis Rotation=' + value]) + def range_axis_rotation(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Range Axis Rotation=' + value]) @property def lock_axes(self) -> bool: @@ -138,7 +138,7 @@ def lock_axes(self) -> bool: @lock_axes.setter def lock_axes(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lock Axes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lock Axes=' + value]) @property def x_axis_min(self) -> float: @@ -149,8 +149,8 @@ def x_axis_min(self) -> float: return val @x_axis_min.setter - def x_axis_min(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['X-axis Min=' + value]) + def x_axis_min(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['X-axis Min=' + value]) @property def x_axis_max(self) -> float: @@ -161,8 +161,8 @@ def x_axis_max(self) -> float: return val @x_axis_max.setter - def x_axis_max(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['X-axis Max=' + value]) + def x_axis_max(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['X-axis Max=' + value]) @property def y_axis_min(self) -> float: @@ -173,8 +173,8 @@ def y_axis_min(self) -> float: return val @y_axis_min.setter - def y_axis_min(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Min=' + value]) + def y_axis_min(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Min=' + value]) @property def y_axis_max(self) -> float: @@ -185,8 +185,8 @@ def y_axis_max(self) -> float: return val @y_axis_max.setter - def y_axis_max(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Max=' + value]) + def y_axis_max(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Max=' + value]) @property def y_axis_range(self) -> float: @@ -198,8 +198,8 @@ def y_axis_range(self) -> float: return val @y_axis_range.setter - def y_axis_range(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Range=' + value]) + def y_axis_range(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Range=' + value]) @property def max_major_ticks(self) -> int: @@ -212,7 +212,7 @@ def max_major_ticks(self) -> int: @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) @property def max_minor_ticks(self) -> int: @@ -225,7 +225,7 @@ def max_minor_ticks(self) -> int: @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) @property def max_major_ticks(self) -> int: @@ -238,7 +238,7 @@ def max_major_ticks(self) -> int: @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) @property def max_minor_ticks(self) -> int: @@ -251,7 +251,7 @@ def max_minor_ticks(self) -> int: @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) @property def axis_label_font(self): @@ -264,7 +264,7 @@ def axis_label_font(self): @axis_label_font.setter def axis_label_font(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Axis Label Font=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Axis Label Font=' + value]) @property def axis_tick_label_font(self): @@ -277,7 +277,7 @@ def axis_tick_label_font(self): @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Axis Tick Label Font=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Axis Tick Label Font=' + value]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -298,7 +298,7 @@ def major_grid_line_style(self) -> MajorGridLineStyleOption: @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Major Grid Line Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Major Grid Line Style=' + value.value]) @property def major_grid_color(self): @@ -311,7 +311,7 @@ def major_grid_color(self): @major_grid_color.setter def major_grid_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Major Grid Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Major Grid Color=' + value]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -332,7 +332,7 @@ def minor_grid_line_style(self) -> MinorGridLineStyleOption: @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Minor Grid Line Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Minor Grid Line Style=' + value.value]) @property def minor_grid_color(self): @@ -345,7 +345,7 @@ def minor_grid_color(self): @minor_grid_color.setter def minor_grid_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Minor Grid Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Minor Grid Color=' + value]) @property def background_color(self): @@ -358,7 +358,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -377,7 +377,7 @@ def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['BB Power for Plots Unit=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['BB Power for Plots Unit=' + value.value]) @property def bb_power_bandwidth(self) -> float: @@ -386,11 +386,13 @@ def bb_power_bandwidth(self) -> float: "Value should be between 1 and 1e+11." """ val = self._get_property('BB Power Bandwidth') + val = self._convert_from_default_units(float(val), "") return val @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['BB Power Bandwidth=' + value]) + def bb_power_bandwidth(self, value : float|str): + value = self._convert_to_default_units(value, "") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['BB Power Bandwidth=' + f"{value}"]) @property def log_scale(self) -> bool: @@ -403,5 +405,5 @@ def log_scale(self) -> bool: @log_scale.setter def log_scale(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Log Scale=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Log Scale=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py index 10ed38980d8..973dea65ac6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py @@ -28,7 +28,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @property def noise_temperature(self) -> float: @@ -40,8 +40,8 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + def noise_temperature(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @property def notes(self) -> str: @@ -53,7 +53,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) class TypeOption(Enum): BYFILE = "By File" @@ -71,7 +71,7 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) class OrientationOption(Enum): RADIOSIDE = "Divider" @@ -88,7 +88,7 @@ def orientation(self) -> OrientationOption: @orientation.setter def orientation(self, value: OrientationOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Orientation=' + value.value]) @property def insertion_loss_above_ideal(self) -> float: @@ -100,8 +100,8 @@ def insertion_loss_above_ideal(self) -> float: return val @insertion_loss_above_ideal.setter - def insertion_loss_above_ideal(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss Above Ideal=' + value]) + def insertion_loss_above_ideal(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss Above Ideal=' + value]) @property def finite_isolation(self) -> bool: @@ -114,7 +114,7 @@ def finite_isolation(self) -> bool: @finite_isolation.setter def finite_isolation(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Finite Isolation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Finite Isolation=' + value]) @property def isolation(self) -> float: @@ -126,8 +126,8 @@ def isolation(self) -> float: return val @isolation.setter - def isolation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Isolation=' + value]) + def isolation(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Isolation=' + value]) @property def finite_bandwidth(self) -> bool: @@ -140,7 +140,7 @@ def finite_bandwidth(self) -> bool: @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) @property def out_of_band_attenuation(self) -> float: @@ -152,60 +152,72 @@ def out_of_band_attenuation(self) -> float: return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) + def out_of_band_attenuation(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) @property def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @lower_stop_band.setter - def lower_stop_band(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + def lower_stop_band(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + f"{value}"]) @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @lower_cutoff.setter - def lower_cutoff(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + def lower_cutoff(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + f"{value}"]) @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @higher_cutoff.setter - def higher_cutoff(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + def higher_cutoff(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + f"{value}"]) @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @higher_stop_band.setter - def higher_stop_band(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + def higher_stop_band(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + f"{value}"]) @property def warnings(self) -> str: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py index 131cff61548..7d8d2ff2658 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py @@ -37,7 +37,7 @@ def direction(self) -> DirectionOption: @direction.setter def direction(self, value: DirectionOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Direction=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Direction=' + value.value]) @property def data_source(self): @@ -49,7 +49,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @property def visible(self) -> bool: @@ -62,7 +62,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -75,7 +75,7 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: @@ -87,7 +87,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) class StyleOption(Enum): LINES = "Lines" @@ -108,7 +108,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -121,7 +121,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -134,7 +134,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -164,7 +164,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -177,7 +177,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -190,7 +190,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -203,7 +203,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -216,5 +216,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py index fe677f2d6bb..d77c03259bc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py @@ -32,7 +32,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @property def visible(self) -> bool: @@ -45,7 +45,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -58,7 +58,7 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: @@ -70,7 +70,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) class StyleOption(Enum): LINES = "Lines" @@ -91,7 +91,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -104,7 +104,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -117,7 +117,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -147,7 +147,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -160,7 +160,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -173,7 +173,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -186,7 +186,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -199,5 +199,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py index 306449abea3..ede0637094f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py @@ -33,7 +33,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @property def antenna_a(self) -> EmitNode: @@ -45,7 +45,7 @@ def antenna_a(self) -> EmitNode: @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) @property def antenna_b(self) -> EmitNode: @@ -57,7 +57,7 @@ def antenna_b(self) -> EmitNode: @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) @property def enable_refinement(self) -> bool: @@ -70,7 +70,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @property def adaptive_sampling(self) -> bool: @@ -83,7 +83,7 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @property def refinement_domain(self): @@ -95,7 +95,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) @property def custom_fading_margin(self) -> float: @@ -107,8 +107,8 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + def custom_fading_margin(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) @property def polarization_mismatch(self) -> float: @@ -120,8 +120,8 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + def polarization_mismatch(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) @property def pointing_error_loss(self) -> float: @@ -133,8 +133,8 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + def pointing_error_loss(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) class FadingTypeOption(Enum): NOFADING = "None" @@ -153,7 +153,7 @@ def fading_type(self) -> FadingTypeOption: @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) @property def fading_availability(self) -> float: @@ -165,8 +165,8 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + def fading_availability(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) @property def std_deviation(self) -> float: @@ -178,8 +178,8 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + def std_deviation(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) @property def include_rain_attenuation(self) -> bool: @@ -192,7 +192,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) @property def rain_availability(self) -> float: @@ -204,8 +204,8 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + def rain_availability(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) @property def rain_rate(self) -> float: @@ -217,8 +217,8 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + def rain_rate(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) @property def polarization_tilt_angle(self) -> float: @@ -230,8 +230,8 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + def polarization_tilt_angle(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) @property def include_atmospheric_absorption(self) -> bool: @@ -244,7 +244,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) @property def temperature(self) -> float: @@ -256,8 +256,8 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) + def temperature(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) @property def total_air_pressure(self) -> float: @@ -269,8 +269,8 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + def total_air_pressure(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) @property def water_vapor_concentration(self) -> float: @@ -282,6 +282,6 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + def water_vapor_concentration(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py index 675110fd30b..deaefe5f44d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py @@ -49,5 +49,5 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py index ced2b91c85a..b8c292bcbf0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py @@ -57,18 +57,22 @@ def gain(self) -> float: def center_frequency(self) -> float: """Center Frequency "Center frequency of amplifiers operational bandwidth." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Center Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def bandwidth(self) -> float: """Bandwidth "Frequency region where the gain applies." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Bandwidth') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property @@ -84,27 +88,33 @@ def noise_figure(self) -> float: def saturation_level(self) -> float: """Saturation Level "Saturation level." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ val = self._get_property('Saturation Level') + val = self._convert_from_default_units(float(val), "Power Unit") return val @property def _1_db_point_ref_input(self) -> float: """1-dB Point, Ref. Input "Incoming signals > this value saturate the amplifier." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ val = self._get_property('1-dB Point, Ref. Input') + val = self._convert_from_default_units(float(val), "Power Unit") return val @property def ip3_ref_input(self) -> float: """IP3, Ref. Input "3rd order intercept point." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ val = self._get_property('IP3, Ref. Input') + val = self._convert_from_default_units(float(val), "Power Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py index ee73c846a31..83b9e5aafe4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py @@ -209,45 +209,55 @@ def outerbacklobe_level(self) -> float: def resonant_frequency(self) -> float: """Resonant Frequency "Set first resonant frequency of wire dipole, monopole, or parametric antenna." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+13." """ val = self._get_property('Resonant Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def slot_length(self) -> float: """Slot Length "Set slot length of parametric slot." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ val = self._get_property('Slot Length') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property def mouth_width(self) -> float: """Mouth Width "Set mouth width (along local y-axis) of the horn antenna." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 1e-06 and 100." """ val = self._get_property('Mouth Width') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property def mouth_height(self) -> float: """Mouth Height "Set mouth height (along local x-axis) of the horn antenna." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 1e-06 and 100." """ val = self._get_property('Mouth Height') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property def waveguide_width(self) -> float: """Waveguide Width "Set waveguide width (along local y-axis) where flared horn walls meet the feed, determines cut-off frequency." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 1e-06 and 100." """ val = self._get_property('Waveguide Width') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property @@ -272,9 +282,11 @@ def height_flare_half_angle(self) -> float: def mouth_diameter(self) -> float: """Mouth Diameter "Set aperture (mouth) diameter of horn antenna." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 1e-06 and 100." """ val = self._get_property('Mouth Diameter') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property @@ -349,9 +361,11 @@ def override_height(self) -> bool: def offset_height(self) -> float: """Offset Height "Sets the offset height for the current sources above the ground plane." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 0." """ val = self._get_property('Offset Height') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property @@ -523,24 +537,30 @@ def number_of_imaged_magnetic_sources(self) -> int: def waveguide_height(self) -> float: """Waveguide Height "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." " """ val = self._get_property('Waveguide Height') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." + "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Waveguide Cutoff Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." + "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Aperture Cutoff Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val class SWEModeTruncationOption(Enum): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py index d6e63eaa3b4..f13ad55dd9e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py @@ -32,36 +32,44 @@ def out_of_band_attenuation(self) -> float: def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py index 119a3998198..1bd9ae1abe7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py @@ -48,8 +48,10 @@ def emission_designator(self) -> str: def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." + "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Emission Designator Ch. BW') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property @@ -73,9 +75,11 @@ def override_emission_designator_bw(self) -> bool: def channel_bandwidth(self) -> float: """Channel Bandwidth "Channel Bandwidth." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('Channel Bandwidth') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val class ModulationOption(Enum): @@ -120,9 +124,11 @@ def waveform(self) -> WaveformOption: def max_modulating_freq(self) -> float: """Max Modulating Freq. "Maximum modulating frequency: helps determine spectral profile." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('Max Modulating Freq.') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property @@ -138,18 +144,22 @@ def modulation_index(self) -> float: def freq_deviation(self) -> float: """Freq. Deviation "Frequency deviation: helps determine spectral profile." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('Freq. Deviation') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def bit_rate(self) -> float: """Bit Rate "Maximum bit rate: helps determine width of spectral profile." + "Units options: bps, kbps, Mbps, Gbps." "Value should be greater than 1." """ val = self._get_property('Bit Rate') + val = self._convert_from_default_units(float(val), "Data Rate Unit") return val @property @@ -165,9 +175,11 @@ def sidelobes(self) -> int: def freq_deviation_(self) -> float: """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('Freq. Deviation ') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val class PSKTypeOption(Enum): @@ -237,36 +249,44 @@ def apsk_type(self) -> APSKTypeOption: def start_frequency(self) -> float: """Start Frequency "First frequency for this band." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Start Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def stop_frequency(self) -> float: """Stop Frequency "Last frequency for this band." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Stop Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def channel_spacing(self) -> float: """Channel Spacing "Spacing between channels within this band." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Channel Spacing') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def tx_offset(self) -> float: """Tx Offset "Frequency offset between Tx and Rx channels." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be less than 1e+11." """ val = self._get_property('Tx Offset') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property @@ -282,9 +302,11 @@ def clock_duty_cycle(self) -> float: def clock_risefall_time(self) -> float: """Clock Rise/Fall Time "Clock signals rise/fall time." + "Units options: ps, ns, us, ms, s." "Value should be greater than 0." """ val = self._get_property('Clock Rise/Fall Time') + val = self._convert_from_default_units(float(val), "Time Unit") return val class SpreadingTypeOption(Enum): @@ -330,9 +352,11 @@ def raw_data_format(self) -> str: def system_impedance(self) -> float: """System Impedance "System impedance for the imported data." + "Units options: uOhm, mOhm, ohm, kOhm, megohm, GOhm." "Value should be between 0 and 1e+06." """ val = self._get_property('System Impedance') + val = self._convert_from_default_units(float(val), "Resistance Unit") return val @property @@ -388,26 +412,32 @@ def algorithm(self) -> AlgorithmOption: def start(self) -> float: """Start "Initial time of the imported spectrum." + "Units options: ps, ns, us, ms, s." "Value should be greater than 0." """ val = self._get_property('Start') + val = self._convert_from_default_units(float(val), "Time Unit") return val @property def stop(self) -> float: """Stop "Final time of the imported time domain spectrum." + "Units options: ps, ns, us, ms, s." " """ val = self._get_property('Stop') + val = self._convert_from_default_units(float(val), "Time Unit") return val @property def max_frequency(self) -> float: """Max Frequency "Frequency cutoff of the imported time domain spectrum." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Max Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val class WindowTypeOption(Enum): @@ -452,9 +482,11 @@ def adjust_coherent_gain(self) -> bool: def data_rate(self) -> float: """Data Rate "Maximum data rate: helps determine shape of spectral profile." + "Units options: bps, kbps, Mbps, Gbps." "Value should be greater than 1." """ val = self._get_property('Data Rate') + val = self._convert_from_default_units(float(val), "Data Rate Unit") return val @property @@ -488,9 +520,11 @@ def min_ptsnull(self) -> int: def delay_skew(self) -> float: """Delay Skew "Delay Skew of the differential signal pairs." + "Units options: ps, ns, us, ms, s." "Value should be greater than 0." """ val = self._get_property('Delay Skew') + val = self._convert_from_default_units(float(val), "Time Unit") return val class RadarTypeOption(Enum): @@ -531,45 +565,55 @@ def post_october_2020_procurement(self) -> bool: def hop_range_min_freq(self) -> float: """Hop Range Min Freq "Sets the minimum frequency of the hopping range." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Hop Range Min Freq') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def hop_range_max_freq(self) -> float: """Hop Range Max Freq "Sets the maximum frequency of the hopping range." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Hop Range Max Freq') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def pulse_duration(self) -> float: """Pulse Duration "Pulse duration." + "Units options: ps, ns, us, ms, s." "Value should be greater than 0." """ val = self._get_property('Pulse Duration') + val = self._convert_from_default_units(float(val), "Time Unit") return val @property def pulse_rise_time(self) -> float: """Pulse Rise Time "Pulse rise time." + "Units options: ps, ns, us, ms, s." "Value should be greater than 0." """ val = self._get_property('Pulse Rise Time') + val = self._convert_from_default_units(float(val), "Time Unit") return val @property def pulse_fall_time(self) -> float: """Pulse Fall Time "Pulse fall time." + "Units options: ps, ns, us, ms, s." "Value should be greater than 0." """ val = self._get_property('Pulse Fall Time') + val = self._convert_from_default_units(float(val), "Time Unit") return val @property @@ -603,26 +647,32 @@ def pulse_compression_ratio(self) -> float: def fm_chirp_period(self) -> float: """FM Chirp Period "FM Chirp period for the FM/CW radar." + "Units options: ps, ns, us, ms, s." "Value should be greater than 0." """ val = self._get_property('FM Chirp Period') + val = self._convert_from_default_units(float(val), "Time Unit") return val @property def fm_freq_deviation(self) -> float: """FM Freq Deviation "Total frequency deviation for the carrier frequency for the FM/CW radar." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('FM Freq Deviation') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def fm_freq_dev_bandwidth(self) -> float: """FM Freq Dev Bandwidth "Bandwidth of freq deviation for FM modulated pulsed waveform (total freq shift during pulse duration)." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('FM Freq Dev Bandwidth') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py index 764407509f1..b5b2e8b9ff4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py @@ -48,27 +48,33 @@ def model_type(self) -> ModelTypeOption: def length(self) -> float: """Length "Length of the model." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ val = self._get_property('Length') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property def width(self) -> float: """Width "Width of the model." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ val = self._get_property('Width') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property def height(self) -> float: """Height "Height of the model." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ val = self._get_property('Height') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property @@ -84,98 +90,120 @@ def angle(self) -> float: def top_side(self) -> float: """Top Side "Side of the top of a equilateral triangular cylinder model." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 0." """ val = self._get_property('Top Side') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property def top_radius(self) -> float: """Top Radius "Radius of the top of a tapered cylinder model." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 0." """ val = self._get_property('Top Radius') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property def side(self) -> float: """Side "Side of the equilateral triangular cylinder." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ val = self._get_property('Side') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property def radius(self) -> float: """Radius "Radius of the sphere or cylinder." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ val = self._get_property('Radius') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property def base_radius(self) -> float: """Base Radius "Radius of the base of a tophat model." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ val = self._get_property('Base Radius') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property def center_radius(self) -> float: """Center Radius "Radius of the raised portion of a tophat model." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ val = self._get_property('Center Radius') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property def x_axis_ellipsoid_radius(self) -> float: """X Axis Ellipsoid Radius "Ellipsoid semi-principal radius for the X axis." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ val = self._get_property('X Axis Ellipsoid Radius') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property def y_axis_ellipsoid_radius(self) -> float: """Y Axis Ellipsoid Radius "Ellipsoid semi-principal radius for the Y axis." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ val = self._get_property('Y Axis Ellipsoid Radius') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property def z_axis_ellipsoid_radius(self) -> float: """Z Axis Ellipsoid Radius "Ellipsoid semi-principal radius for the Z axis." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ val = self._get_property('Z Axis Ellipsoid Radius') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property def focal_length(self) -> float: """Focal Length "Focal length of a parabolic reflector (f = 1/4a where y=ax^2)." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ val = self._get_property('Focal Length') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property def offset(self) -> float: """Offset "Offset of parabolic reflector." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." " """ val = self._get_property('Offset') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py index d9b7aba3165..cd7641b5750 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py @@ -49,9 +49,11 @@ def type(self) -> TypeOption: def length(self) -> float: """Length "Length of cable." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 0 and 500." """ val = self._get_property('Length') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property @@ -67,9 +69,11 @@ def loss_per_length(self) -> float: def measurement_length(self) -> float: """Measurement Length "Length of the cable used for the measurements." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 0 and 500." """ val = self._get_property('Measurement Length') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py index cf266e427bd..00f00c7d86d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py @@ -106,36 +106,44 @@ def out_of_band_attenuation(self) -> float: def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py index 3c3589865ad..163ec1266c3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py @@ -31,7 +31,9 @@ def ground_plane_normal(self) -> GroundPlaneNormalOption: def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." " """ val = self._get_property('GP Position Along Normal') + val = self._convert_from_default_units(float(val), "Length Unit") return val diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py index d74df194fa5..4d4e8dd14d0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py @@ -71,126 +71,154 @@ def stop_band_attenuation(self) -> float: def max_pass_band(self) -> float: """Max Pass Band "Maximum pass band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Max Pass Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def min_stop_band(self) -> float: """Min Stop Band "Minimum stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Min Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def max_stop_band(self) -> float: """Max Stop Band "Maximum stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Max Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def min_pass_band(self) -> float: """Min Pass Band "Minimum pass band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Min Pass Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def lower_cutoff_(self) -> float: """Lower Cutoff "Lower cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff ') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def lower_stop_band_(self) -> float: """Lower Stop Band "Lower stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band ') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def higher_stop_band_(self) -> float: """Higher Stop Band "Higher stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band ') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def higher_cutoff_(self) -> float: """Higher Cutoff "Higher cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff ') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def lowest_tuned_frequency_(self) -> float: """Lowest Tuned Frequency "Lowest tuned frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lowest Tuned Frequency ') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def highest_tuned_frequency_(self) -> float: """Highest Tuned Frequency "Highest tuned frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Highest Tuned Frequency ') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py index f5f8ade7aa4..72968d3be75 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py @@ -106,36 +106,44 @@ def out_of_band_attenuation(self) -> float: def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py index 7035e4151e4..c6170c15b14 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py @@ -56,72 +56,88 @@ def stop_band_attenuation(self) -> float: def max_pass_band(self) -> float: """Max Pass Band "Maximum pass band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Max Pass Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def min_stop_band(self) -> float: """Min Stop Band "Minimum stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Min Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def max_stop_band(self) -> float: """Max Stop Band "Maximum stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Max Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def min_pass_band(self) -> float: """Min Pass Band "Minimum pass band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Min Pass Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py index 810f83fc5be..c1a1067cd91 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py @@ -107,36 +107,44 @@ def out_of_band_attenuation(self) -> float: def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py index d2a77e87176..75a041629f9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py @@ -32,8 +32,10 @@ def source_file(self) -> str: def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." + "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Receive Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val class MeasurementModeOption(Enum): @@ -99,9 +101,11 @@ def intended_signal_power(self) -> float: def freq_deviation(self) -> float: """Freq. Deviation "Specify the frequency deviation of the intended signal." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1000 and 200000." """ val = self._get_property('Freq. Deviation') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property @@ -180,18 +184,22 @@ def use_ams_limits(self) -> bool: def start_frequency(self) -> float: """Start Frequency "Starting frequency for the measurement sweep." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1e+06." """ val = self._get_property('Start Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def stop_frequency(self) -> float: """Stop Frequency "Stopping frequency for the measurement sweep." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be less than 6e+09." """ val = self._get_property('Stop Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py index c2c2dcc3508..24ed7082950 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py @@ -46,18 +46,22 @@ def spurious_rejection(self) -> float: def minimum_tuning_frequency(self) -> float: """Minimum Tuning Frequency "Minimum tuning frequency of Rx's local oscillator." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Minimum Tuning Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def maximum_tuning_frequency(self) -> float: """Maximum Tuning Frequency "Maximum tuning frequency of Rx's local oscillator." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Maximum Tuning Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property @@ -82,9 +86,11 @@ def mixer_product_intercept(self) -> float: def _80_db_bandwidth(self) -> float: """80 dB Bandwidth "Bandwidth where Rx's susceptibility envelope is 80 dB above in-band susceptibility level." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('80 dB Bandwidth') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property @@ -141,8 +147,10 @@ def _1st_if_frequency(self): def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." + "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('RF Transition Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val class UseHighLOOption(Enum): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py index d157c545e6d..6381f5f08bc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py @@ -65,9 +65,11 @@ def apply_pg_to_narrowband_only(self) -> bool: def saturation_level(self) -> float: """Saturation Level "Rx input saturation level." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -1000 and 1000." """ val = self._get_property('Saturation Level') + val = self._convert_from_default_units(float(val), "Power Unit") return val @property @@ -83,9 +85,11 @@ def rx_noise_figure(self) -> float: def receiver_sensitivity_(self) -> float: """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -1000 and 1000." """ val = self._get_property('Receiver Sensitivity ') + val = self._convert_from_default_units(float(val), "Power Unit") return val @property @@ -110,27 +114,33 @@ def perform_rx_intermod_analysis(self) -> bool: def amplifier_saturation_level(self) -> float: """Amplifier Saturation Level "Internal Rx Amplifier's Saturation Level." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ val = self._get_property('Amplifier Saturation Level') + val = self._convert_from_default_units(float(val), "Power Unit") return val @property def _1_db_point_ref_input_(self) -> float: """1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -1000 and 1000." """ val = self._get_property('1-dB Point, Ref. Input ') + val = self._convert_from_default_units(float(val), "Power Unit") return val @property def ip3_ref_input(self) -> float: """IP3, Ref. Input "Internal Rx Amplifier's 3rd order intercept point." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -1000 and 1000." """ val = self._get_property('IP3, Ref. Input') + val = self._convert_from_default_units(float(val), "Power Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py index 71f34a44b4f..9ff7cb51b1c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -106,35 +106,43 @@ def out_of_band_attenuation(self) -> float: def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py index 078fa1f55dd..0fe9b4bf52c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py @@ -32,8 +32,10 @@ def source_file(self) -> str: def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." + "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Transmit Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property @@ -49,18 +51,22 @@ def use_ams_limits(self) -> bool: def start_frequency(self) -> float: """Start Frequency "Starting frequency for the measurement sweep." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1e+06." """ val = self._get_property('Start Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property def stop_frequency(self) -> float: """Stop Frequency "Stopping frequency for the measurement sweep." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be less than 6e+09." """ val = self._get_property('Stop Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py index 4721b3e57b8..11593a139d5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py @@ -27,7 +27,9 @@ def narrowband_behavior(self) -> NarrowbandBehaviorOption: def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." + "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Measurement Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py index 36c95fb1b33..e0694ca9e71 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py @@ -40,26 +40,32 @@ def tx_power(self) -> TxPowerOption: def peak_power(self) -> float: """Peak Power "Tx's carrier frequency peak power." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -1000 and 1000." """ val = self._get_property('Peak Power') + val = self._convert_from_default_units(float(val), "Power Unit") return val @property def average_power(self) -> float: """Average Power "Tx's fundamental level specified by average power." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -1000 and 1000." """ val = self._get_property('Average Power') + val = self._convert_from_default_units(float(val), "Power Unit") return val @property def output_voltage_peak(self) -> float: """Output Voltage Peak "Output High Voltage Level: maximum voltage of the digital signal." + "Units options: nV, uV, mV, V, kV, MegV." " """ val = self._get_property('Output Voltage Peak') + val = self._convert_from_default_units(float(val), "Voltage Unit") return val @property @@ -198,27 +204,33 @@ def noise_figure(self) -> float: def amplifier_saturation_level(self) -> float: """Amplifier Saturation Level "Internal Tx Amplifier's Saturation Level." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ val = self._get_property('Amplifier Saturation Level') + val = self._convert_from_default_units(float(val), "Power Unit") return val @property def _1_db_point_ref_input_(self) -> float: """1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ val = self._get_property('1-dB Point, Ref. Input ') + val = self._convert_from_default_units(float(val), "Power Unit") return val @property def ip3_ref_input(self) -> float: """IP3, Ref. Input "Internal Tx Amplifier's 3rd order intercept point." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ val = self._get_property('IP3, Ref. Input') + val = self._convert_from_default_units(float(val), "Power Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py index 3e78309da21..f679574ed3a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py @@ -91,27 +91,33 @@ def environment(self) -> EnvironmentOption: def roof_height(self) -> float: """Roof Height "The height of the building where the antenna is located.." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 0 and 100." """ val = self._get_property('Roof Height') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property def distance_between_buildings(self) -> float: """Distance Between Buildings "The distance between two buildings.." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 0 and 100." """ val = self._get_property('Distance Between Buildings') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property def street_width(self) -> float: """Street Width "Width of the street.." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 0 and 100." """ val = self._get_property('Street Width') + val = self._convert_from_default_units(float(val), "Length Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py index 8849c413d47..5e88f9578e0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py @@ -23,7 +23,7 @@ def title(self) -> str: @title.setter def title(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Title=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Title=' + value]) @property def title_font(self): @@ -36,7 +36,7 @@ def title_font(self): @title_font.setter def title_font(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Title Font=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Title Font=' + value]) @property def show_legend(self) -> bool: @@ -49,7 +49,7 @@ def show_legend(self) -> bool: @show_legend.setter def show_legend(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Show Legend=' + value]) @property def legend_font(self): @@ -62,7 +62,7 @@ def legend_font(self): @legend_font.setter def legend_font(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Legend Font=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Legend Font=' + value]) @property def show_emi_thresholds(self) -> bool: @@ -75,7 +75,7 @@ def show_emi_thresholds(self) -> bool: @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show EMI Thresholds=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Show EMI Thresholds=' + value]) @property def display_cad_overlay(self) -> bool: @@ -88,7 +88,7 @@ def display_cad_overlay(self) -> bool: @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Display CAD Overlay=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Display CAD Overlay=' + value]) @property def opacity(self) -> float: @@ -100,8 +100,8 @@ def opacity(self) -> float: return val @opacity.setter - def opacity(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Opacity=' + value]) + def opacity(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Opacity=' + value]) @property def vertical_offset(self) -> float: @@ -112,8 +112,8 @@ def vertical_offset(self) -> float: return val @vertical_offset.setter - def vertical_offset(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Offset=' + value]) + def vertical_offset(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Offset=' + value]) @property def range_axis_rotation(self) -> float: @@ -125,8 +125,8 @@ def range_axis_rotation(self) -> float: return val @range_axis_rotation.setter - def range_axis_rotation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Range Axis Rotation=' + value]) + def range_axis_rotation(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Range Axis Rotation=' + value]) @property def lock_axes(self) -> bool: @@ -139,7 +139,7 @@ def lock_axes(self) -> bool: @lock_axes.setter def lock_axes(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lock Axes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lock Axes=' + value]) @property def x_axis_min(self) -> float: @@ -150,8 +150,8 @@ def x_axis_min(self) -> float: return val @x_axis_min.setter - def x_axis_min(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['X-axis Min=' + value]) + def x_axis_min(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['X-axis Min=' + value]) @property def x_axis_max(self) -> float: @@ -162,8 +162,8 @@ def x_axis_max(self) -> float: return val @x_axis_max.setter - def x_axis_max(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['X-axis Max=' + value]) + def x_axis_max(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['X-axis Max=' + value]) @property def y_axis_min(self) -> float: @@ -174,8 +174,8 @@ def y_axis_min(self) -> float: return val @y_axis_min.setter - def y_axis_min(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Min=' + value]) + def y_axis_min(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Min=' + value]) @property def y_axis_max(self) -> float: @@ -186,8 +186,8 @@ def y_axis_max(self) -> float: return val @y_axis_max.setter - def y_axis_max(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Max=' + value]) + def y_axis_max(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Max=' + value]) @property def y_axis_range(self) -> float: @@ -199,8 +199,8 @@ def y_axis_range(self) -> float: return val @y_axis_range.setter - def y_axis_range(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Range=' + value]) + def y_axis_range(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Range=' + value]) @property def max_major_ticks(self) -> int: @@ -213,7 +213,7 @@ def max_major_ticks(self) -> int: @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) @property def max_minor_ticks(self) -> int: @@ -226,7 +226,7 @@ def max_minor_ticks(self) -> int: @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) @property def max_major_ticks(self) -> int: @@ -239,7 +239,7 @@ def max_major_ticks(self) -> int: @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) @property def max_minor_ticks(self) -> int: @@ -252,7 +252,7 @@ def max_minor_ticks(self) -> int: @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) @property def axis_label_font(self): @@ -265,7 +265,7 @@ def axis_label_font(self): @axis_label_font.setter def axis_label_font(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Axis Label Font=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Axis Label Font=' + value]) @property def axis_tick_label_font(self): @@ -278,7 +278,7 @@ def axis_tick_label_font(self): @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Axis Tick Label Font=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Axis Tick Label Font=' + value]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -299,7 +299,7 @@ def major_grid_line_style(self) -> MajorGridLineStyleOption: @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Major Grid Line Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Major Grid Line Style=' + value.value]) @property def major_grid_color(self): @@ -312,7 +312,7 @@ def major_grid_color(self): @major_grid_color.setter def major_grid_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Major Grid Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Major Grid Color=' + value]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -333,7 +333,7 @@ def minor_grid_line_style(self) -> MinorGridLineStyleOption: @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Minor Grid Line Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Minor Grid Line Style=' + value.value]) @property def minor_grid_color(self): @@ -346,7 +346,7 @@ def minor_grid_color(self): @minor_grid_color.setter def minor_grid_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Minor Grid Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Minor Grid Color=' + value]) @property def background_color(self): @@ -359,7 +359,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -378,7 +378,7 @@ def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['BB Power for Plots Unit=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['BB Power for Plots Unit=' + value.value]) @property def bb_power_bandwidth(self) -> float: @@ -387,11 +387,13 @@ def bb_power_bandwidth(self) -> float: "Value should be between 1 and 1e+11." """ val = self._get_property('BB Power Bandwidth') + val = self._convert_from_default_units(float(val), "") return val @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['BB Power Bandwidth=' + value]) + def bb_power_bandwidth(self, value : float|str): + value = self._convert_to_default_units(value, "") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['BB Power Bandwidth=' + f"{value}"]) @property def log_scale(self) -> bool: @@ -404,5 +406,5 @@ def log_scale(self) -> bool: @log_scale.setter def log_scale(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Log Scale=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Log Scale=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py index 86a96707b5b..f246d19aa13 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py @@ -21,7 +21,7 @@ def enable_passive_noise(self) -> bool: @enable_passive_noise.setter def enable_passive_noise(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Passive Noise=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Passive Noise=' + value]) @property def enforce_thermal_noise_floor(self) -> bool: @@ -34,5 +34,5 @@ def enforce_thermal_noise_floor(self) -> bool: @enforce_thermal_noise_floor.setter def enforce_thermal_noise_floor(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enforce Thermal Noise Floor=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enforce Thermal Noise Floor=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py index 82f6795d653..b6ccaf8c0cf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py @@ -40,8 +40,10 @@ def source_file(self) -> str: def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." + "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Receive Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val class MeasurementModeOption(Enum): @@ -60,7 +62,7 @@ def measurement_mode(self) -> MeasurementModeOption: @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Measurement Mode=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Measurement Mode=' + value.value]) @property def sinad_threshold(self) -> float: @@ -72,8 +74,8 @@ def sinad_threshold(self) -> float: return val @sinad_threshold.setter - def sinad_threshold(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['SINAD Threshold=' + value]) + def sinad_threshold(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['SINAD Threshold=' + value]) @property def gps_cnr_threshold(self) -> float: @@ -85,8 +87,8 @@ def gps_cnr_threshold(self) -> float: return val @gps_cnr_threshold.setter - def gps_cnr_threshold(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['GPS CNR Threshold=' + value]) + def gps_cnr_threshold(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['GPS CNR Threshold=' + value]) @property def ber_threshold(self) -> float: @@ -98,8 +100,8 @@ def ber_threshold(self) -> float: return val @ber_threshold.setter - def ber_threshold(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['BER Threshold=' + value]) + def ber_threshold(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['BER Threshold=' + value]) @property def default_intended_power(self) -> bool: @@ -112,7 +114,7 @@ def default_intended_power(self) -> bool: @default_intended_power.setter def default_intended_power(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Default Intended Power=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Default Intended Power=' + value]) @property def intended_signal_power(self) -> float: @@ -124,21 +126,24 @@ def intended_signal_power(self) -> float: return val @intended_signal_power.setter - def intended_signal_power(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Intended Signal Power=' + value]) + def intended_signal_power(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Intended Signal Power=' + value]) @property def freq_deviation(self) -> float: """Freq. Deviation "Specify the frequency deviation of the intended signal." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1000 and 200000." """ val = self._get_property('Freq. Deviation') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @freq_deviation.setter - def freq_deviation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Freq. Deviation=' + value]) + def freq_deviation(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Freq. Deviation=' + f"{value}"]) @property def modulation_depth(self) -> float: @@ -150,8 +155,8 @@ def modulation_depth(self) -> float: return val @modulation_depth.setter - def modulation_depth(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Modulation Depth=' + value]) + def modulation_depth(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Modulation Depth=' + value]) @property def measure_selectivity(self) -> bool: @@ -164,7 +169,7 @@ def measure_selectivity(self) -> bool: @measure_selectivity.setter def measure_selectivity(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Measure Selectivity=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Measure Selectivity=' + value]) @property def measure_mixer_products(self) -> bool: @@ -177,7 +182,7 @@ def measure_mixer_products(self) -> bool: @measure_mixer_products.setter def measure_mixer_products(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Measure Mixer Products=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Measure Mixer Products=' + value]) @property def max_rf_order(self) -> int: @@ -190,7 +195,7 @@ def max_rf_order(self) -> int: @max_rf_order.setter def max_rf_order(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max RF Order=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max RF Order=' + value]) @property def max_lo_order(self) -> int: @@ -203,7 +208,7 @@ def max_lo_order(self) -> int: @max_lo_order.setter def max_lo_order(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max LO Order=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max LO Order=' + value]) @property def include_if(self) -> bool: @@ -216,7 +221,7 @@ def include_if(self) -> bool: @include_if.setter def include_if(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include IF=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include IF=' + value]) @property def measure_saturation(self) -> bool: @@ -229,7 +234,7 @@ def measure_saturation(self) -> bool: @measure_saturation.setter def measure_saturation(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Measure Saturation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Measure Saturation=' + value]) @property def use_ams_limits(self) -> bool: @@ -242,33 +247,39 @@ def use_ams_limits(self) -> bool: @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use AMS Limits=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Use AMS Limits=' + value]) @property def start_frequency(self) -> float: """Start Frequency "Starting frequency for the measurement sweep." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1e+06." """ val = self._get_property('Start Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @start_frequency.setter - def start_frequency(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Start Frequency=' + value]) + def start_frequency(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Start Frequency=' + f"{value}"]) @property def stop_frequency(self) -> float: """Stop Frequency "Stopping frequency for the measurement sweep." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be less than 6e+09." """ val = self._get_property('Stop Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @stop_frequency.setter - def stop_frequency(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Stop Frequency=' + value]) + def stop_frequency(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Stop Frequency=' + f"{value}"]) @property def samples(self) -> int: @@ -281,7 +292,7 @@ def samples(self) -> int: @samples.setter def samples(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Samples=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Samples=' + value]) @property def exclude_mixer_products_below_noise(self) -> bool: @@ -294,14 +305,14 @@ def exclude_mixer_products_below_noise(self) -> bool: @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Exclude Mixer Products Below Noise=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Exclude Mixer Products Below Noise=' + value]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py index 8228cc46a47..473bf2426e3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py @@ -21,11 +21,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) class MixerProductTaperOption(Enum): CONSTANT = "Constant" @@ -43,7 +43,7 @@ def mixer_product_taper(self) -> MixerProductTaperOption: @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Taper=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Taper=' + value.value]) @property def mixer_product_susceptibility(self) -> float: @@ -55,8 +55,8 @@ def mixer_product_susceptibility(self) -> float: return val @mixer_product_susceptibility.setter - def mixer_product_susceptibility(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Susceptibility=' + value]) + def mixer_product_susceptibility(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Susceptibility=' + value]) @property def spurious_rejection(self) -> float: @@ -68,34 +68,40 @@ def spurious_rejection(self) -> float: return val @spurious_rejection.setter - def spurious_rejection(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Spurious Rejection=' + value]) + def spurious_rejection(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Spurious Rejection=' + value]) @property def minimum_tuning_frequency(self) -> float: """Minimum Tuning Frequency "Minimum tuning frequency of Rx's local oscillator." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Minimum Tuning Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Minimum Tuning Frequency=' + value]) + def minimum_tuning_frequency(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Minimum Tuning Frequency=' + f"{value}"]) @property def maximum_tuning_frequency(self) -> float: """Maximum Tuning Frequency "Maximum tuning frequency of Rx's local oscillator." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Maximum Tuning Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Maximum Tuning Frequency=' + value]) + def maximum_tuning_frequency(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Maximum Tuning Frequency=' + f"{value}"]) @property def mixer_product_slope(self) -> float: @@ -107,8 +113,8 @@ def mixer_product_slope(self) -> float: return val @mixer_product_slope.setter - def mixer_product_slope(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Slope=' + value]) + def mixer_product_slope(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Slope=' + value]) @property def mixer_product_intercept(self) -> float: @@ -120,21 +126,24 @@ def mixer_product_intercept(self) -> float: return val @mixer_product_intercept.setter - def mixer_product_intercept(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Intercept=' + value]) + def mixer_product_intercept(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Intercept=' + value]) @property def _80_db_bandwidth(self) -> float: """80 dB Bandwidth "Bandwidth where Rx's susceptibility envelope is 80 dB above in-band susceptibility level." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('80 dB Bandwidth') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @_80_db_bandwidth.setter - def _80_db_bandwidth(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['80 dB Bandwidth=' + value]) + def _80_db_bandwidth(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['80 dB Bandwidth=' + f"{value}"]) @property def image_rejection(self) -> float: @@ -146,8 +155,8 @@ def image_rejection(self) -> float: return val @image_rejection.setter - def image_rejection(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Image Rejection=' + value]) + def image_rejection(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Image Rejection=' + value]) @property def maximum_rf_harmonic_order(self) -> int: @@ -160,7 +169,7 @@ def maximum_rf_harmonic_order(self) -> int: @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Maximum RF Harmonic Order=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Maximum RF Harmonic Order=' + value]) @property def maximum_lo_harmonic_order(self) -> int: @@ -173,7 +182,7 @@ def maximum_lo_harmonic_order(self) -> int: @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Maximum LO Harmonic Order=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Maximum LO Harmonic Order=' + value]) class MixingModeOption(Enum): ABOVETUNEDFREQUENCY = "LO Above Tuned (RF) Frequency" @@ -191,7 +200,7 @@ def mixing_mode(self) -> MixingModeOption: @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mixing Mode=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mixing Mode=' + value.value]) @property def _1st_if_frequency(self): @@ -204,19 +213,22 @@ def _1st_if_frequency(self): @_1st_if_frequency.setter def _1st_if_frequency(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['1st IF Frequency=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['1st IF Frequency=' + value]) @property def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." + "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('RF Transition Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @rf_transition_frequency.setter - def rf_transition_frequency(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['RF Transition Frequency=' + value]) + def rf_transition_frequency(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['RF Transition Frequency=' + f"{value}"]) class UseHighLOOption(Enum): ABOVETRANSITION = "Above Transition Frequency" @@ -233,7 +245,7 @@ def use_high_lo(self) -> UseHighLOOption: @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use High LO=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Use High LO=' + value.value]) class MixerProductTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -250,5 +262,5 @@ def mixer_product_table_units(self) -> MixerProductTableUnitsOption: @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Table Units=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Table Units=' + value.value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py index 81c58061a1d..90a5cbb272f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py @@ -21,9 +21,9 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py index dbfbe9c60b2..3ed174e9172 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py @@ -21,11 +21,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) @property def use_arithmetic_mean(self) -> bool: @@ -38,5 +38,5 @@ def use_arithmetic_mean(self) -> bool: @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use Arithmetic Mean=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Use Arithmetic Mean=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py index ff727dad09e..9318d8ee819 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py @@ -38,11 +38,11 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) class SpurTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -59,5 +59,5 @@ def spur_table_units(self) -> SpurTableUnitsOption: @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Spur Table Units=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Spur Table Units=' + value.value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py index 25342471ac2..2d6ecffad7b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py @@ -13,11 +13,11 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) class SensitivityUnitsOption(Enum): DBM = "dBm" @@ -36,7 +36,7 @@ def sensitivity_units(self) -> SensitivityUnitsOption: @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Sensitivity Units=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Sensitivity Units=' + value.value]) @property def min_receive_signal_pwr_(self) -> float: @@ -48,8 +48,8 @@ def min_receive_signal_pwr_(self) -> float: return val @min_receive_signal_pwr_.setter - def min_receive_signal_pwr_(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Min. Receive Signal Pwr =' + value]) + def min_receive_signal_pwr_(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Min. Receive Signal Pwr =' + value]) @property def snr_at_rx_signal_pwr(self) -> float: @@ -61,8 +61,8 @@ def snr_at_rx_signal_pwr(self) -> float: return val @snr_at_rx_signal_pwr.setter - def snr_at_rx_signal_pwr(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['SNR at Rx Signal Pwr=' + value]) + def snr_at_rx_signal_pwr(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['SNR at Rx Signal Pwr=' + value]) @property def processing_gain(self) -> float: @@ -74,8 +74,8 @@ def processing_gain(self) -> float: return val @processing_gain.setter - def processing_gain(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Processing Gain=' + value]) + def processing_gain(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Processing Gain=' + value]) @property def apply_pg_to_narrowband_only(self) -> bool: @@ -88,20 +88,23 @@ def apply_pg_to_narrowband_only(self) -> bool: @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Apply PG to Narrowband Only=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Apply PG to Narrowband Only=' + value]) @property def saturation_level(self) -> float: """Saturation Level "Rx input saturation level." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -1000 and 1000." """ val = self._get_property('Saturation Level') + val = self._convert_from_default_units(float(val), "Power Unit") return val @saturation_level.setter - def saturation_level(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Saturation Level=' + value]) + def saturation_level(self, value : float|str): + value = self._convert_to_default_units(value, "Power Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Saturation Level=' + f"{value}"]) @property def rx_noise_figure(self) -> float: @@ -113,21 +116,24 @@ def rx_noise_figure(self) -> float: return val @rx_noise_figure.setter - def rx_noise_figure(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rx Noise Figure=' + value]) + def rx_noise_figure(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rx Noise Figure=' + value]) @property def receiver_sensitivity_(self) -> float: """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -1000 and 1000." """ val = self._get_property('Receiver Sensitivity ') + val = self._convert_from_default_units(float(val), "Power Unit") return val @receiver_sensitivity_.setter - def receiver_sensitivity_(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Receiver Sensitivity =' + value]) + def receiver_sensitivity_(self, value : float|str): + value = self._convert_to_default_units(value, "Power Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Receiver Sensitivity =' + f"{value}"]) @property def snrsinad_at_sensitivity_(self) -> float: @@ -139,8 +145,8 @@ def snrsinad_at_sensitivity_(self) -> float: return val @snrsinad_at_sensitivity_.setter - def snrsinad_at_sensitivity_(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['SNR/SINAD at Sensitivity =' + value]) + def snrsinad_at_sensitivity_(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['SNR/SINAD at Sensitivity =' + value]) @property def perform_rx_intermod_analysis(self) -> bool: @@ -153,46 +159,55 @@ def perform_rx_intermod_analysis(self) -> bool: @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Perform Rx Intermod Analysis=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Perform Rx Intermod Analysis=' + value]) @property def amplifier_saturation_level(self) -> float: """Amplifier Saturation Level "Internal Rx Amplifier's Saturation Level." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ val = self._get_property('Amplifier Saturation Level') + val = self._convert_from_default_units(float(val), "Power Unit") return val @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Amplifier Saturation Level=' + value]) + def amplifier_saturation_level(self, value : float|str): + value = self._convert_to_default_units(value, "Power Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Amplifier Saturation Level=' + f"{value}"]) @property def _1_db_point_ref_input_(self) -> float: """1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -1000 and 1000." """ val = self._get_property('1-dB Point, Ref. Input ') + val = self._convert_from_default_units(float(val), "Power Unit") return val @_1_db_point_ref_input_.setter - def _1_db_point_ref_input_(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input =' + value]) + def _1_db_point_ref_input_(self, value : float|str): + value = self._convert_to_default_units(value, "Power Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input =' + f"{value}"]) @property def ip3_ref_input(self) -> float: """IP3, Ref. Input "Internal Rx Amplifier's 3rd order intercept point." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -1000 and 1000." """ val = self._get_property('IP3, Ref. Input') + val = self._convert_from_default_units(float(val), "Power Unit") return val @ip3_ref_input.setter - def ip3_ref_input(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + value]) + def ip3_ref_input(self, value : float|str): + value = self._convert_to_default_units(value, "Power Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + f"{value}"]) @property def max_intermod_order(self) -> int: @@ -205,5 +220,5 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py index a4b01f25bac..f3181d5e25d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py @@ -41,7 +41,7 @@ def sampling_type(self) -> SamplingTypeOption: @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Sampling Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Sampling Type=' + value.value]) @property def specify_percentage(self) -> bool: @@ -54,7 +54,7 @@ def specify_percentage(self) -> bool: @specify_percentage.setter def specify_percentage(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Specify Percentage=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Specify Percentage=' + value]) @property def percentage_of_channels(self) -> float: @@ -66,8 +66,8 @@ def percentage_of_channels(self) -> float: return val @percentage_of_channels.setter - def percentage_of_channels(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Percentage of Channels=' + value]) + def percentage_of_channels(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Percentage of Channels=' + value]) @property def max__channelsrangeband(self) -> int: @@ -80,7 +80,7 @@ def max__channelsrangeband(self) -> int: @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max # Channels/Range/Band=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max # Channels/Range/Band=' + value]) @property def seed(self) -> int: @@ -93,7 +93,7 @@ def seed(self) -> int: @seed.setter def seed(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Seed=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Seed=' + value]) @property def total_tx_channels(self) -> int: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py index 1259c3f892a..234bd94019d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py @@ -37,7 +37,7 @@ def show_relative_coordinates(self) -> bool: @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) @property def position(self): @@ -50,7 +50,7 @@ def position(self): @position.setter def position(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) @property def relative_position(self): @@ -63,7 +63,7 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Relative Position=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Relative Position=' + value]) class OrientationModeOption(Enum): RPYDEG = "Roll-Pitch-Yaw" @@ -80,7 +80,7 @@ def orientation_mode(self) -> OrientationModeOption: @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation Mode=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Orientation Mode=' + value.value]) @property def orientation(self): @@ -93,7 +93,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Orientation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Orientation=' + value]) @property def relative_orientation(self): @@ -106,7 +106,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) @property def show_axes(self) -> bool: @@ -119,7 +119,7 @@ def show_axes(self) -> bool: @show_axes.setter def show_axes(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Show Axes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Show Axes=' + value]) @property def box_color(self): @@ -132,7 +132,7 @@ def box_color(self): @box_color.setter def box_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Box Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Box Color=' + value]) @property def notes(self) -> str: @@ -144,5 +144,5 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py index ee2c1114699..b72cf81d4b9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py @@ -32,7 +32,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @property def visible(self) -> bool: @@ -45,7 +45,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -58,7 +58,7 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: @@ -70,7 +70,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) class StyleOption(Enum): LINES = "Lines" @@ -91,7 +91,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -104,7 +104,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -117,7 +117,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -147,7 +147,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -160,7 +160,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -173,7 +173,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -186,7 +186,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -199,5 +199,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py index c136da8dec6..7516997a7af 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py @@ -21,7 +21,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @property def enable_refinement(self) -> bool: @@ -34,7 +34,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @property def adaptive_sampling(self) -> bool: @@ -47,7 +47,7 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @property def refinement_domain(self): @@ -59,5 +59,5 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py index 764552c5070..158fdd120aa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py @@ -21,5 +21,5 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py index 6b37f2e2386..894b82554ab 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py @@ -28,7 +28,7 @@ def file(self) -> str: @file.setter def file(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['File=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['File=' + value]) @property def noise_temperature(self) -> float: @@ -40,8 +40,8 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + def noise_temperature(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @property def notes(self) -> str: @@ -53,7 +53,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) @property def radio_side_ports(self): @@ -66,7 +66,7 @@ def radio_side_ports(self): @radio_side_ports.setter def radio_side_ports(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Radio Side Ports=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Radio Side Ports=' + value]) @property def antenna_side_ports(self): @@ -79,7 +79,7 @@ def antenna_side_ports(self): @antenna_side_ports.setter def antenna_side_ports(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna Side Ports=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna Side Ports=' + value]) @property def warnings(self) -> str: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py index 14d21ae4af5..9c6fd8a341b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py @@ -32,14 +32,16 @@ def channel_frequency(self): @channel_frequency.setter def channel_frequency(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Channel Frequency=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Channel Frequency=' + value]) @property def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." + "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Transmit Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property @@ -52,7 +54,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @property def visible(self) -> bool: @@ -65,7 +67,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -78,7 +80,7 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: @@ -90,7 +92,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) class StyleOption(Enum): LINES = "Lines" @@ -111,7 +113,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -124,7 +126,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -137,7 +139,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -167,7 +169,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -180,7 +182,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -193,7 +195,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -206,7 +208,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -219,5 +221,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py index 3b82586aa0e..692fccf4286 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py @@ -33,7 +33,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) @property def output_port(self) -> int: @@ -46,7 +46,7 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) @property def data_source(self): @@ -58,7 +58,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @property def visible(self) -> bool: @@ -71,7 +71,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -84,7 +84,7 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: @@ -96,7 +96,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) class StyleOption(Enum): LINES = "Lines" @@ -117,7 +117,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -130,7 +130,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -143,7 +143,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -173,7 +173,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -186,7 +186,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -199,7 +199,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -212,7 +212,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -225,5 +225,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index d381fb5fc96..11b447ae95e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -28,7 +28,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @property def noise_temperature(self) -> float: @@ -40,8 +40,8 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + def noise_temperature(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @property def notes(self) -> str: @@ -53,7 +53,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) class TxPortOption(Enum): _0 = "Port 1" @@ -70,7 +70,7 @@ def tx_port(self) -> TxPortOption: @tx_port.setter def tx_port(self, value: TxPortOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Tx Port=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Tx Port=' + value.value]) class CommonPortLocationOption(Enum): RADIOSIDE = "Radio Side" @@ -87,7 +87,7 @@ def common_port_location(self) -> CommonPortLocationOption: @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Common Port Location=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Common Port Location=' + value.value]) @property def insertion_loss(self) -> float: @@ -99,8 +99,8 @@ def insertion_loss(self) -> float: return val @insertion_loss.setter - def insertion_loss(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + def insertion_loss(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) @property def finite_isolation(self) -> bool: @@ -113,7 +113,7 @@ def finite_isolation(self) -> bool: @finite_isolation.setter def finite_isolation(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Finite Isolation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Finite Isolation=' + value]) @property def isolation(self) -> float: @@ -125,8 +125,8 @@ def isolation(self) -> float: return val @isolation.setter - def isolation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Isolation=' + value]) + def isolation(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Isolation=' + value]) @property def finite_bandwidth(self) -> bool: @@ -139,7 +139,7 @@ def finite_bandwidth(self) -> bool: @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) @property def out_of_band_attenuation(self) -> float: @@ -151,58 +151,70 @@ def out_of_band_attenuation(self) -> float: return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) + def out_of_band_attenuation(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) @property def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @lower_stop_band.setter - def lower_stop_band(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + value]) + def lower_stop_band(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + f"{value}"]) @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @lower_cutoff.setter - def lower_cutoff(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + value]) + def lower_cutoff(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + f"{value}"]) @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @higher_cutoff.setter - def higher_cutoff(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + value]) + def higher_cutoff(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + f"{value}"]) @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @higher_stop_band.setter - def higher_stop_band(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + value]) + def higher_stop_band(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + f"{value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index 95140d7ec83..a594dffbe96 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -28,7 +28,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @property def noise_temperature(self) -> float: @@ -40,8 +40,8 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + def noise_temperature(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) @property def notes(self) -> str: @@ -53,7 +53,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) class TypeOption(Enum): BYFILE = "By File" @@ -70,7 +70,7 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) class PortLocationOption(Enum): RADIOSIDE = "Radio Side" @@ -87,7 +87,7 @@ def port_location(self) -> PortLocationOption: @port_location.setter def port_location(self, value: PortLocationOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Port Location=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Port Location=' + value.value]) @property def vswr(self) -> float: @@ -99,8 +99,8 @@ def vswr(self) -> float: return val @vswr.setter - def vswr(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['VSWR=' + value]) + def vswr(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['VSWR=' + value]) @property def warnings(self) -> str: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py index ff3754ee16b..46afe64a0bd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py @@ -33,7 +33,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) @property def output_port(self) -> int: @@ -46,7 +46,7 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) @property def data_source(self): @@ -58,7 +58,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @property def visible(self) -> bool: @@ -71,7 +71,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -84,7 +84,7 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: @@ -96,7 +96,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) class StyleOption(Enum): LINES = "Lines" @@ -117,7 +117,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -130,7 +130,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -143,7 +143,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -173,7 +173,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -186,7 +186,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -199,7 +199,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -212,7 +212,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -225,85 +225,103 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) @property def frequency_1(self) -> float: """Frequency 1 "1st test tone frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Frequency 1') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @frequency_1.setter - def frequency_1(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Frequency 1=' + value]) + def frequency_1(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Frequency 1=' + f"{value}"]) @property def amplitude_1(self) -> float: """Amplitude 1 "1st test tone amplitude." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -100 and 200." """ val = self._get_property('Amplitude 1') + val = self._convert_from_default_units(float(val), "Power Unit") return val @amplitude_1.setter - def amplitude_1(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Amplitude 1=' + value]) + def amplitude_1(self, value : float|str): + value = self._convert_to_default_units(value, "Power Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Amplitude 1=' + f"{value}"]) @property def bandwidth_1(self) -> float: """Bandwidth 1 "1st test tone bandwidth." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('Bandwidth 1') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @bandwidth_1.setter - def bandwidth_1(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth 1=' + value]) + def bandwidth_1(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth 1=' + f"{value}"]) @property def frequency_2(self) -> float: """Frequency 2 "2nd test tone frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Frequency 2') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @frequency_2.setter - def frequency_2(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Frequency 2=' + value]) + def frequency_2(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Frequency 2=' + f"{value}"]) @property def amplitude_2(self) -> float: """Amplitude 2 "2nd test tone amplitude." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -100 and 200." """ val = self._get_property('Amplitude 2') + val = self._convert_from_default_units(float(val), "Power Unit") return val @amplitude_2.setter - def amplitude_2(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Amplitude 2=' + value]) + def amplitude_2(self, value : float|str): + value = self._convert_to_default_units(value, "Power Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Amplitude 2=' + f"{value}"]) @property def bandwidth_2(self) -> float: """Bandwidth 2 "2nd test tone bandwidth." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('Bandwidth 2') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @bandwidth_2.setter - def bandwidth_2(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth 2=' + value]) + def bandwidth_2(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth 2=' + f"{value}"]) @property def noise_level(self) -> float: @@ -315,6 +333,6 @@ def noise_level(self) -> float: return val @noise_level.setter - def noise_level(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Level=' + value]) + def noise_level(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Level=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py index 6bb2a8302f7..32fe5a1c122 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py @@ -33,7 +33,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @property def enable_refinement(self) -> bool: @@ -46,7 +46,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @property def adaptive_sampling(self) -> bool: @@ -59,7 +59,7 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @property def refinement_domain(self): @@ -71,7 +71,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) @property def filename(self) -> str: @@ -84,7 +84,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) @property def savant_matched_coupling_file(self) -> str: @@ -105,7 +105,7 @@ def enable_em_isolation(self) -> bool: @enable_em_isolation.setter def enable_em_isolation(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable EM Isolation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable EM Isolation=' + value]) @property def port_antenna_assignment(self): @@ -118,7 +118,7 @@ def port_antenna_assignment(self): @port_antenna_assignment.setter def port_antenna_assignment(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Port-Antenna Assignment=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Port-Antenna Assignment=' + value]) @property def notes(self) -> str: @@ -130,5 +130,5 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py index 82e047ce3e2..451a582527f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py @@ -33,7 +33,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) @property def output_port(self) -> int: @@ -46,19 +46,22 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) @property def frequency(self) -> float: """Frequency "Tunable filter center frequency." + "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @frequency.setter - def frequency(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Frequency=' + value]) + def frequency(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Frequency=' + f"{value}"]) @property def data_source(self): @@ -70,7 +73,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @property def visible(self) -> bool: @@ -83,7 +86,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -96,7 +99,7 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: @@ -108,7 +111,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) class StyleOption(Enum): LINES = "Lines" @@ -129,7 +132,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -142,7 +145,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -155,7 +158,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -185,7 +188,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -198,7 +201,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -211,7 +214,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -224,7 +227,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -237,5 +240,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py index d0d854f62c1..c56bc414f9a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py @@ -33,7 +33,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @property def antenna_a(self) -> EmitNode: @@ -45,7 +45,7 @@ def antenna_a(self) -> EmitNode: @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) @property def antenna_b(self) -> EmitNode: @@ -57,7 +57,7 @@ def antenna_b(self) -> EmitNode: @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) @property def enable_refinement(self) -> bool: @@ -70,7 +70,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @property def adaptive_sampling(self) -> bool: @@ -83,7 +83,7 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @property def refinement_domain(self): @@ -95,7 +95,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) @property def ground_reflection_coeff(self) -> float: @@ -107,8 +107,8 @@ def ground_reflection_coeff(self) -> float: return val @ground_reflection_coeff.setter - def ground_reflection_coeff(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Ground Reflection Coeff.=' + value]) + def ground_reflection_coeff(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Ground Reflection Coeff.=' + value]) @property def pointspeak(self) -> int: @@ -121,7 +121,7 @@ def pointspeak(self) -> int: @pointspeak.setter def pointspeak(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Points/Peak=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Points/Peak=' + value]) @property def custom_fading_margin(self) -> float: @@ -133,8 +133,8 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + def custom_fading_margin(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) @property def polarization_mismatch(self) -> float: @@ -146,8 +146,8 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + def polarization_mismatch(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) @property def pointing_error_loss(self) -> float: @@ -159,8 +159,8 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + def pointing_error_loss(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) class FadingTypeOption(Enum): NOFADING = "None" @@ -179,7 +179,7 @@ def fading_type(self) -> FadingTypeOption: @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) @property def fading_availability(self) -> float: @@ -191,8 +191,8 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + def fading_availability(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) @property def std_deviation(self) -> float: @@ -204,8 +204,8 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + def std_deviation(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) @property def include_rain_attenuation(self) -> bool: @@ -218,7 +218,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) @property def rain_availability(self) -> float: @@ -230,8 +230,8 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + def rain_availability(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) @property def rain_rate(self) -> float: @@ -243,8 +243,8 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + def rain_rate(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) @property def polarization_tilt_angle(self) -> float: @@ -256,8 +256,8 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + def polarization_tilt_angle(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) @property def include_atmospheric_absorption(self) -> bool: @@ -270,7 +270,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) @property def temperature(self) -> float: @@ -282,8 +282,8 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) + def temperature(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) @property def total_air_pressure(self) -> float: @@ -295,8 +295,8 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + def total_air_pressure(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) @property def water_vapor_concentration(self) -> float: @@ -308,6 +308,6 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + def water_vapor_concentration(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py index 315d7ca8c50..7c4c7c18127 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py @@ -33,7 +33,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) @property def output_port(self) -> int: @@ -46,7 +46,7 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) @property def data_source(self): @@ -58,7 +58,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) @property def visible(self) -> bool: @@ -71,7 +71,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) @property def custom_legend(self) -> bool: @@ -84,7 +84,7 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) @property def name(self) -> str: @@ -96,7 +96,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) class StyleOption(Enum): LINES = "Lines" @@ -117,7 +117,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) @property def line_width(self) -> int: @@ -130,7 +130,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) @property def line_color(self): @@ -143,7 +143,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -173,7 +173,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) @property def symbol_size(self) -> int: @@ -186,7 +186,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) @property def symbol_color(self): @@ -199,7 +199,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) @property def symbol_line_width(self) -> int: @@ -212,7 +212,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) @property def symbol_filled(self) -> bool: @@ -225,85 +225,103 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) @property def frequency_1(self) -> float: """Frequency 1 "1st test tone frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Frequency 1') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @frequency_1.setter - def frequency_1(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Frequency 1=' + value]) + def frequency_1(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Frequency 1=' + f"{value}"]) @property def amplitude_1(self) -> float: """Amplitude 1 "1st test tone amplitude." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -100 and 200." """ val = self._get_property('Amplitude 1') + val = self._convert_from_default_units(float(val), "Power Unit") return val @amplitude_1.setter - def amplitude_1(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Amplitude 1=' + value]) + def amplitude_1(self, value : float|str): + value = self._convert_to_default_units(value, "Power Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Amplitude 1=' + f"{value}"]) @property def bandwidth_1(self) -> float: """Bandwidth 1 "1st test tone bandwidth." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('Bandwidth 1') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @bandwidth_1.setter - def bandwidth_1(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth 1=' + value]) + def bandwidth_1(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth 1=' + f"{value}"]) @property def frequency_2(self) -> float: """Frequency 2 "2nd test tone frequency." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Frequency 2') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @frequency_2.setter - def frequency_2(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Frequency 2=' + value]) + def frequency_2(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Frequency 2=' + f"{value}"]) @property def amplitude_2(self) -> float: """Amplitude 2 "2nd test tone amplitude." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -100 and 200." """ val = self._get_property('Amplitude 2') + val = self._convert_from_default_units(float(val), "Power Unit") return val @amplitude_2.setter - def amplitude_2(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Amplitude 2=' + value]) + def amplitude_2(self, value : float|str): + value = self._convert_to_default_units(value, "Power Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Amplitude 2=' + f"{value}"]) @property def bandwidth_2(self) -> float: """Bandwidth 2 "2nd test tone bandwidth." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('Bandwidth 2') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @bandwidth_2.setter - def bandwidth_2(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth 2=' + value]) + def bandwidth_2(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth 2=' + f"{value}"]) @property def noise_level(self) -> float: @@ -315,6 +333,6 @@ def noise_level(self) -> float: return val @noise_level.setter - def noise_level(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Level=' + value]) + def noise_level(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Level=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py index 2c114b172b8..97701c534a9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py @@ -36,11 +36,11 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) class NoiseBehaviorOption(Enum): ABSOLUTE = "Absolute" @@ -59,7 +59,7 @@ def noise_behavior(self) -> NoiseBehaviorOption: @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Behavior=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Behavior=' + value.value]) @property def use_log_linear_interpolation(self) -> bool: @@ -72,5 +72,5 @@ def use_log_linear_interpolation(self) -> bool: @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use Log-Linear Interpolation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Use Log-Linear Interpolation=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py index 717537315b8..471ede6873b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py @@ -21,11 +21,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) class HarmonicTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -42,5 +42,5 @@ def harmonic_table_units(self) -> HarmonicTableUnitsOption: @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Table Units=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Table Units=' + value.value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py index b87d941a195..c256a9a8834 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py @@ -40,8 +40,10 @@ def source_file(self) -> str: def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." + "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Transmit Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @property @@ -55,33 +57,39 @@ def use_ams_limits(self) -> bool: @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Use AMS Limits=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Use AMS Limits=' + value]) @property def start_frequency(self) -> float: """Start Frequency "Starting frequency for the measurement sweep." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1e+06." """ val = self._get_property('Start Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @start_frequency.setter - def start_frequency(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Start Frequency=' + value]) + def start_frequency(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Start Frequency=' + f"{value}"]) @property def stop_frequency(self) -> float: """Stop Frequency "Stopping frequency for the measurement sweep." + "Units options: Hz, kHz, MHz, GHz, THz." "Value should be less than 6e+09." """ val = self._get_property('Stop Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @stop_frequency.setter - def stop_frequency(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Stop Frequency=' + value]) + def stop_frequency(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Stop Frequency=' + f"{value}"]) @property def exclude_harmonics_below_noise(self) -> bool: @@ -94,14 +102,14 @@ def exclude_harmonics_below_noise(self) -> bool: @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Exclude Harmonics Below Noise=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Exclude Harmonics Below Noise=' + value]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py index 25f70dfe9fc..d8b0569cb06 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py @@ -21,11 +21,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) class NarrowbandBehaviorOption(Enum): ABSOLUTE = "Absolute Freqs and Power" @@ -42,17 +42,20 @@ def narrowband_behavior(self) -> NarrowbandBehaviorOption: @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Narrowband Behavior=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Narrowband Behavior=' + value.value]) @property def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." + "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Measurement Frequency') + val = self._convert_from_default_units(float(val), "Frequency Unit") return val @measurement_frequency.setter - def measurement_frequency(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Measurement Frequency=' + value]) + def measurement_frequency(self, value : float|str): + value = self._convert_to_default_units(value, "Frequency Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Measurement Frequency=' + f"{value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py index aa2e0a29b42..c4c23569dff 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py @@ -13,11 +13,11 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) class SpectrumTypeOption(Enum): BOTH = "Narrowband & Broadband" @@ -34,7 +34,7 @@ def spectrum_type(self) -> SpectrumTypeOption: @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Spectrum Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Spectrum Type=' + value.value]) class TxPowerOption(Enum): PEAK_POWER = "Peak Power" @@ -51,45 +51,54 @@ def tx_power(self) -> TxPowerOption: @tx_power.setter def tx_power(self, value: TxPowerOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Tx Power=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Tx Power=' + value.value]) @property def peak_power(self) -> float: """Peak Power "Tx's carrier frequency peak power." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -1000 and 1000." """ val = self._get_property('Peak Power') + val = self._convert_from_default_units(float(val), "Power Unit") return val @peak_power.setter - def peak_power(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Peak Power=' + value]) + def peak_power(self, value : float|str): + value = self._convert_to_default_units(value, "Power Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Peak Power=' + f"{value}"]) @property def average_power(self) -> float: """Average Power "Tx's fundamental level specified by average power." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -1000 and 1000." """ val = self._get_property('Average Power') + val = self._convert_from_default_units(float(val), "Power Unit") return val @average_power.setter - def average_power(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Average Power=' + value]) + def average_power(self, value : float|str): + value = self._convert_to_default_units(value, "Power Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Average Power=' + f"{value}"]) @property def output_voltage_peak(self) -> float: """Output Voltage Peak "Output High Voltage Level: maximum voltage of the digital signal." + "Units options: nV, uV, mV, V, kV, MegV." " """ val = self._get_property('Output Voltage Peak') + val = self._convert_from_default_units(float(val), "Voltage Unit") return val @output_voltage_peak.setter - def output_voltage_peak(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Output Voltage Peak=' + value]) + def output_voltage_peak(self, value : float|str): + value = self._convert_to_default_units(value, "Voltage Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Output Voltage Peak=' + f"{value}"]) @property def include_phase_noise(self) -> bool: @@ -102,7 +111,7 @@ def include_phase_noise(self) -> bool: @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Phase Noise=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Phase Noise=' + value]) @property def tx_broadband_noise(self) -> float: @@ -114,8 +123,8 @@ def tx_broadband_noise(self) -> float: return val @tx_broadband_noise.setter - def tx_broadband_noise(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Tx Broadband Noise=' + value]) + def tx_broadband_noise(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Tx Broadband Noise=' + value]) class HarmonicTaperOption(Enum): CONSTANT = "Constant" @@ -134,7 +143,7 @@ def harmonic_taper(self) -> HarmonicTaperOption: @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Taper=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Taper=' + value.value]) @property def harmonic_amplitude(self) -> float: @@ -146,8 +155,8 @@ def harmonic_amplitude(self) -> float: return val @harmonic_amplitude.setter - def harmonic_amplitude(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Amplitude=' + value]) + def harmonic_amplitude(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Amplitude=' + value]) @property def harmonic_slope(self) -> float: @@ -159,8 +168,8 @@ def harmonic_slope(self) -> float: return val @harmonic_slope.setter - def harmonic_slope(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Slope=' + value]) + def harmonic_slope(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Slope=' + value]) @property def harmonic_intercept(self) -> float: @@ -172,8 +181,8 @@ def harmonic_intercept(self) -> float: return val @harmonic_intercept.setter - def harmonic_intercept(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Intercept=' + value]) + def harmonic_intercept(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Intercept=' + value]) @property def enable_harmonic_bw_expansion(self) -> bool: @@ -186,7 +195,7 @@ def enable_harmonic_bw_expansion(self) -> bool: @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Harmonic BW Expansion=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Harmonic BW Expansion=' + value]) @property def number_of_harmonics(self) -> int: @@ -199,7 +208,7 @@ def number_of_harmonics(self) -> int: @number_of_harmonics.setter def number_of_harmonics(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Number of Harmonics=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Number of Harmonics=' + value]) @property def _2nd_harmonic_level(self) -> float: @@ -211,8 +220,8 @@ def _2nd_harmonic_level(self) -> float: return val @_2nd_harmonic_level.setter - def _2nd_harmonic_level(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['2nd Harmonic Level=' + value]) + def _2nd_harmonic_level(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['2nd Harmonic Level=' + value]) @property def _3rd_harmonic_level(self) -> float: @@ -224,8 +233,8 @@ def _3rd_harmonic_level(self) -> float: return val @_3rd_harmonic_level.setter - def _3rd_harmonic_level(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['3rd Harmonic Level=' + value]) + def _3rd_harmonic_level(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['3rd Harmonic Level=' + value]) @property def other_harmonic_levels(self) -> float: @@ -237,8 +246,8 @@ def other_harmonic_levels(self) -> float: return val @other_harmonic_levels.setter - def other_harmonic_levels(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Other Harmonic Levels=' + value]) + def other_harmonic_levels(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Other Harmonic Levels=' + value]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -251,7 +260,7 @@ def perform_tx_intermod_analysis(self) -> bool: @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Perform Tx Intermod Analysis=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Perform Tx Intermod Analysis=' + value]) @property def internal_amp_gain(self) -> float: @@ -263,8 +272,8 @@ def internal_amp_gain(self) -> float: return val @internal_amp_gain.setter - def internal_amp_gain(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Internal Amp Gain=' + value]) + def internal_amp_gain(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Internal Amp Gain=' + value]) @property def noise_figure(self) -> float: @@ -276,47 +285,56 @@ def noise_figure(self) -> float: return val @noise_figure.setter - def noise_figure(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Noise Figure=' + value]) + def noise_figure(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Figure=' + value]) @property def amplifier_saturation_level(self) -> float: """Amplifier Saturation Level "Internal Tx Amplifier's Saturation Level." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ val = self._get_property('Amplifier Saturation Level') + val = self._convert_from_default_units(float(val), "Power Unit") return val @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Amplifier Saturation Level=' + value]) + def amplifier_saturation_level(self, value : float|str): + value = self._convert_to_default_units(value, "Power Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Amplifier Saturation Level=' + f"{value}"]) @property def _1_db_point_ref_input_(self) -> float: """1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ val = self._get_property('1-dB Point, Ref. Input ') + val = self._convert_from_default_units(float(val), "Power Unit") return val @_1_db_point_ref_input_.setter - def _1_db_point_ref_input_(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input =' + value]) + def _1_db_point_ref_input_(self, value : float|str): + value = self._convert_to_default_units(value, "Power Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input =' + f"{value}"]) @property def ip3_ref_input(self) -> float: """IP3, Ref. Input "Internal Tx Amplifier's 3rd order intercept point." + "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ val = self._get_property('IP3, Ref. Input') + val = self._convert_from_default_units(float(val), "Power Unit") return val @ip3_ref_input.setter - def ip3_ref_input(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + value]) + def ip3_ref_input(self, value : float|str): + value = self._convert_to_default_units(value, "Power Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + f"{value}"]) @property def reverse_isolation(self) -> float: @@ -328,8 +346,8 @@ def reverse_isolation(self) -> float: return val @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) + def reverse_isolation(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) @property def max_intermod_order(self) -> int: @@ -342,5 +360,5 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py index 10068260cd6..a361f7c4bd4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py @@ -38,11 +38,11 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oDesign.GetModule('EmitCom').GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) class SpurTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -59,5 +59,5 @@ def spur_table_units(self) -> SpurTableUnitsOption: @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Spur Table Units=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Spur Table Units=' + value.value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py index d46ea42e02e..46db663f7d7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py @@ -33,7 +33,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) @property def base_antenna(self) -> EmitNode: @@ -45,7 +45,7 @@ def base_antenna(self) -> EmitNode: @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Base Antenna=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Base Antenna=' + value]) @property def mobile_antenna(self) -> EmitNode: @@ -57,7 +57,7 @@ def mobile_antenna(self) -> EmitNode: @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Mobile Antenna=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mobile Antenna=' + value]) @property def enable_refinement(self) -> bool: @@ -70,7 +70,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) @property def adaptive_sampling(self) -> bool: @@ -83,7 +83,7 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) @property def refinement_domain(self): @@ -95,7 +95,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) class PathLossTypeOption(Enum): WALFISCHLOS = "LOS (Urban Canyon)" @@ -112,7 +112,7 @@ def path_loss_type(self) -> PathLossTypeOption: @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Path Loss Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Path Loss Type=' + value.value]) class EnvironmentOption(Enum): DENSEMETROAREA = "Dense Metro" @@ -129,46 +129,55 @@ def environment(self) -> EnvironmentOption: @environment.setter def environment(self, value: EnvironmentOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Environment=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Environment=' + value.value]) @property def roof_height(self) -> float: """Roof Height "The height of the building where the antenna is located.." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 0 and 100." """ val = self._get_property('Roof Height') + val = self._convert_from_default_units(float(val), "Length Unit") return val @roof_height.setter - def roof_height(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Roof Height=' + value]) + def roof_height(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Roof Height=' + f"{value}"]) @property def distance_between_buildings(self) -> float: """Distance Between Buildings "The distance between two buildings.." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 0 and 100." """ val = self._get_property('Distance Between Buildings') + val = self._convert_from_default_units(float(val), "Length Unit") return val @distance_between_buildings.setter - def distance_between_buildings(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Distance Between Buildings=' + value]) + def distance_between_buildings(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Distance Between Buildings=' + f"{value}"]) @property def street_width(self) -> float: """Street Width "Width of the street.." + "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 0 and 100." """ val = self._get_property('Street Width') + val = self._convert_from_default_units(float(val), "Length Unit") return val @street_width.setter - def street_width(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Street Width=' + value]) + def street_width(self, value : float|str): + value = self._convert_to_default_units(value, "Length Unit") + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Street Width=' + f"{value}"]) @property def incidence_angle(self) -> float: @@ -180,8 +189,8 @@ def incidence_angle(self) -> float: return val @incidence_angle.setter - def incidence_angle(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Incidence Angle=' + value]) + def incidence_angle(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Incidence Angle=' + value]) @property def custom_fading_margin(self) -> float: @@ -193,8 +202,8 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + def custom_fading_margin(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) @property def polarization_mismatch(self) -> float: @@ -206,8 +215,8 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + def polarization_mismatch(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) @property def pointing_error_loss(self) -> float: @@ -219,8 +228,8 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + def pointing_error_loss(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) class FadingTypeOption(Enum): NOFADING = "None" @@ -239,7 +248,7 @@ def fading_type(self) -> FadingTypeOption: @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) @property def fading_availability(self) -> float: @@ -251,8 +260,8 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + def fading_availability(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) @property def std_deviation(self) -> float: @@ -264,8 +273,8 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + def std_deviation(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) @property def include_rain_attenuation(self) -> bool: @@ -278,7 +287,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) @property def rain_availability(self) -> float: @@ -290,8 +299,8 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + def rain_availability(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) @property def rain_rate(self) -> float: @@ -303,8 +312,8 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + def rain_rate(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) @property def polarization_tilt_angle(self) -> float: @@ -316,8 +325,8 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + def polarization_tilt_angle(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) @property def include_atmospheric_absorption(self) -> bool: @@ -330,7 +339,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) @property def temperature(self) -> float: @@ -342,8 +351,8 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) + def temperature(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) @property def total_air_pressure(self) -> float: @@ -355,8 +364,8 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + def total_air_pressure(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) @property def water_vapor_concentration(self) -> float: @@ -368,6 +377,6 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oDesign.GetModule('EmitCom').SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) + def water_vapor_concentration(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index 18f05a747a1..4d9602080d2 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -1036,8 +1036,8 @@ def get_coupling_data_node(self) -> CouplingsNode: -------- >>> coupling_data_node = revision.get_coupling_data_node() """ - ccoupling_data_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Couplings") - coupling_data_node = self._get_node(ccoupling_data_node_id) + coupling_data_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Couplings") + coupling_data_node = self._get_node(coupling_data_node_id) return coupling_data_node @pyaedt_function_handler @@ -1057,6 +1057,24 @@ def get_simulation_node(self) -> EmitNode: simulation_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Simulation") simulation_node = self._get_node(simulation_node_id) return simulation_node + + @pyaedt_function_handler + @error_if_below_aedt_version(251) + def get_preferences_node(self) -> EmitNode: + """Gets the Preferences node for this revision. + + Returns + ------- + node: EmitNode + The Preferences node for this revision. + + Examples + -------- + >>> preferences_node = revision.get_preferences_node() + """ + preferences_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Preferences") + preferences_node = self._get_node(preferences_node_id) + return preferences_node @pyaedt_function_handler @error_if_below_aedt_version(251) From c280da27c180e00c7559354f2bde3ae9131c0dfe Mon Sep 17 00:00:00 2001 From: jsalant Date: Fri, 28 Feb 2025 13:52:55 -0500 Subject: [PATCH 13/86] fix unit parsing fix conversion from string to decimal+string --- .../aedt/core/emit_core/emit_constants.py | 4 ++-- .../aedt/core/emit_core/nodes/EmitNode.py | 20 ++++++++++++++++--- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/emit_constants.py b/src/ansys/aedt/core/emit_core/emit_constants.py index ad2a5591fa2..909eaaf9066 100644 --- a/src/ansys/aedt/core/emit_core/emit_constants.py +++ b/src/ansys/aedt/core/emit_core/emit_constants.py @@ -121,9 +121,9 @@ class UnitType(MutableEnum): "seconds" : "s", "microohms" : "uOhm", "milliohms" : "mOhm", - "ohms" : "Ohm", + "ohms" : "ohm", "kiloohms" : "kOhm", - "megaohms" : "megOhm", + "megaohms" : "megohm", "gigaohms" : "GOhm", "dBm" : "dBm", "dBW" : "dBW", diff --git a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py index e8c29157108..e8fef0d3503 100644 --- a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py @@ -134,6 +134,22 @@ def _get_property(self, prop): else: return val + def _string_to_value_units(self, value): + # see if we can split it based on a space between number + # and units + vals = value.split(" ") + if len(vals) == 2: + dec_val = float(vals[0]) + units = vals[1].strip() + return dec_val, units + # no space before units, so find the first letter + for i, char in enumerate(value): + if char.isalpha(): + dec_val = float(value[:i]) + units = value[i:] + return dec_val, units + raise ValueError(f"{value} are not valid units for this property.") + def _convert_to_default_units(self, value : float|str, unit_type : str) -> float: """Takes a value and converts to default EMIT units used for internally storing the values. @@ -162,9 +178,7 @@ def _convert_to_default_units(self, value : float|str, unit_type : str) -> float units = selected_kv_pairs[0][1] units = EMIT_TO_AEDT_UNITS[units] else: - units = ''.join(char for char in value if not char.isdigit()) - units = units.strip() - value = float(''.join(char for char in value if char.isdigit())) + value, units = self._string_to_value_units(value) # verify the units are valid for the specified type if units not in EMIT_VALID_UNITS[unit_system]: raise ValueError(f"{units} are not valid units for this property.") From 32060dd5f14df80fad0263fee73a4aadabe12746 Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Tue, 4 Mar 2025 10:10:23 -0600 Subject: [PATCH 14/86] Add updated generated nodes, fix emit allowed unit names, fix emit default units --- src/ansys/aedt/core/emit.py | 2 +- .../aedt/core/emit_core/emit_constants.py | 2 +- .../emit_core/nodes/generated/Amplifier.py | 10 ++- .../emit_core/nodes/generated/AntennaNode.py | 11 ++- .../nodes/generated/AntennaPassband.py | 20 +++--- .../core/emit_core/nodes/generated/Band.py | 68 +++++++----------- .../nodes/generated/BandTraceNode.py | 3 +- .../emit_core/nodes/generated/Circulator.py | 20 +++--- .../core/emit_core/nodes/generated/Filter.py | 70 ++++++++----------- .../emit_core/nodes/generated/Isolator.py | 20 +++--- .../nodes/generated/MultiplexerBand.py | 40 +++++------ .../emit_core/nodes/generated/PowerDivider.py | 20 +++--- .../nodes/generated/ReadOnlyAmplifier.py | 6 +- .../nodes/generated/ReadOnlyAntennaNode.py | 9 +-- .../generated/ReadOnlyAntennaPassband.py | 12 ++-- .../emit_core/nodes/generated/ReadOnlyBand.py | 42 ++++------- .../nodes/generated/ReadOnlyCirculator.py | 12 ++-- .../nodes/generated/ReadOnlyFilter.py | 42 ++++------- .../nodes/generated/ReadOnlyIsolator.py | 12 ++-- .../generated/ReadOnlyMultiplexerBand.py | 24 +++---- .../nodes/generated/ReadOnlyPowerDivider.py | 12 ++-- .../nodes/generated/ReadOnlyRxMeasNode.py | 12 ++-- .../generated/ReadOnlyRxMixerProductNode.py | 12 ++-- .../nodes/generated/ReadOnlyTR_Switch.py | 12 ++-- .../nodes/generated/ReadOnlyTxMeasNode.py | 9 +-- .../generated/ReadOnlyTxNbEmissionNode.py | 3 +- .../emit_core/nodes/generated/RxMeasNode.py | 18 ++--- .../nodes/generated/RxMixerProductNode.py | 20 +++--- .../nodes/generated/SpurTraceNode.py | 3 +- .../emit_core/nodes/generated/TR_Switch.py | 20 +++--- .../nodes/generated/TestNoiseTraceNode.py | 20 +++--- .../nodes/generated/TunableTraceNode.py | 5 +- .../nodes/generated/TwoToneTraceNode.py | 20 +++--- .../emit_core/nodes/generated/TxMeasNode.py | 13 ++-- .../nodes/generated/TxNbEmissionNode.py | 5 +- 35 files changed, 236 insertions(+), 393 deletions(-) diff --git a/src/ansys/aedt/core/emit.py b/src/ansys/aedt/core/emit.py index c479e30a4a9..4c797dd030a 100644 --- a/src/ansys/aedt/core/emit.py +++ b/src/ansys/aedt/core/emit.py @@ -190,7 +190,7 @@ def __init__( # set the default units here to make sure the EmitApi level # stays synced with pyaedt unit_types = ["Power", "Frequency", "Length", "Time", "Voltage", "Data Rate", "Resistance"] - unit_values = ["dBm", "MHz", "meter", "ns", "mV", "bps", "Ohm"] + unit_values = ["dBm", "MHz", "meter", "ns", "mV", "bps", "ohm"] self.set_units(unit_types, unit_values) def _init_from_design(self, *args, **kwargs): diff --git a/src/ansys/aedt/core/emit_core/emit_constants.py b/src/ansys/aedt/core/emit_core/emit_constants.py index 909eaaf9066..dda6c6484b5 100644 --- a/src/ansys/aedt/core/emit_core/emit_constants.py +++ b/src/ansys/aedt/core/emit_core/emit_constants.py @@ -80,7 +80,7 @@ class UnitType(MutableEnum): "Time": ["ps", "ns", "us", "ms", "s"], "Voltage": ["nV", "uV", "mV", "V", "kV", "MegV"], "Data Rate": ["bps", "kbps", "Mbps", "Gbps"], - "Resistance": ["uOhm", "mOhm", "Ohm", "kOhm", "megOhm", "GOhm"], + "Resistance": ["uOhm", "mOhm", "ohm", "kOhm", "megohm", "GOhm"], } """Valid units for each unit type.""" diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index d18a4cce271..08d89e77afa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -89,32 +89,30 @@ def gain(self, value) -> float: def center_frequency(self) -> float: """Center Frequency "Center frequency of amplifiers operational bandwidth." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Center Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @center_frequency.setter def center_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Center Frequency=' + f"{value}"]) @property def bandwidth(self) -> float: """Bandwidth "Frequency region where the gain applies." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Bandwidth') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @bandwidth.setter def bandwidth(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth=' + f"{value}"]) @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py index a3c754c6757..f68ae440a7a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py @@ -309,16 +309,15 @@ def outerbacklobe_level(self, value) -> float: def resonant_frequency(self) -> float: """Resonant Frequency "Set first resonant frequency of wire dipole, monopole, or parametric antenna." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+13." """ val = self._get_property('Resonant Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @resonant_frequency.setter def resonant_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Resonant Frequency=' + f"{value}"]) @property @@ -754,20 +753,18 @@ def waveguide_height(self) -> float: def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." - "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Waveguide Cutoff Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." - "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Aperture Cutoff Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val class SWEModeTruncationOption(Enum): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py index c6d6a726d9b..22151ef12ac 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py @@ -61,64 +61,60 @@ def out_of_band_attenuation(self, value) -> float: def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @lower_stop_band.setter def lower_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + f"{value}"]) @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @lower_cutoff.setter def lower_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + f"{value}"]) @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @higher_cutoff.setter def higher_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + f"{value}"]) @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @higher_stop_band.setter def higher_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + f"{value}"]) @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index dc944af6a97..dce92cd2d0a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -73,10 +73,9 @@ def emission_designator(self, value: str): def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." - "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Emission Designator Ch. BW') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property @@ -104,16 +103,15 @@ def override_emission_designator_bw(self, value: bool): def channel_bandwidth(self) -> float: """Channel Bandwidth "Channel Bandwidth." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('Channel Bandwidth') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @channel_bandwidth.setter def channel_bandwidth(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Channel Bandwidth=' + f"{value}"]) class ModulationOption(Enum): @@ -166,16 +164,15 @@ def waveform(self, value: WaveformOption): def max_modulating_freq(self) -> float: """Max Modulating Freq. "Maximum modulating frequency: helps determine spectral profile." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('Max Modulating Freq.') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @max_modulating_freq.setter def max_modulating_freq(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Modulating Freq.=' + f"{value}"]) @property @@ -195,16 +192,15 @@ def modulation_index(self, value) -> float: def freq_deviation(self) -> float: """Freq. Deviation "Frequency deviation: helps determine spectral profile." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('Freq. Deviation') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @freq_deviation.setter def freq_deviation(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Freq. Deviation=' + f"{value}"]) @property @@ -240,16 +236,15 @@ def sidelobes(self, value: int): def freq_deviation_(self) -> float: """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('Freq. Deviation ') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @freq_deviation_.setter def freq_deviation_(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Freq. Deviation =' + f"{value}"]) class PSKTypeOption(Enum): @@ -335,64 +330,60 @@ def apsk_type(self, value: APSKTypeOption): def start_frequency(self) -> float: """Start Frequency "First frequency for this band." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Start Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @start_frequency.setter def start_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Start Frequency=' + f"{value}"]) @property def stop_frequency(self) -> float: """Stop Frequency "Last frequency for this band." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Stop Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @stop_frequency.setter def stop_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Stop Frequency=' + f"{value}"]) @property def channel_spacing(self) -> float: """Channel Spacing "Spacing between channels within this band." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Channel Spacing') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @channel_spacing.setter def channel_spacing(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Channel Spacing=' + f"{value}"]) @property def tx_offset(self) -> float: """Tx Offset "Frequency offset between Tx and Rx channels." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be less than 1e+11." """ val = self._get_property('Tx Offset') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @tx_offset.setter def tx_offset(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Tx Offset=' + f"{value}"]) @property @@ -595,16 +586,15 @@ def stop(self, value : float|str): def max_frequency(self) -> float: """Max Frequency "Frequency cutoff of the imported time domain spectrum." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Max Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @max_frequency.setter def max_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Frequency=' + f"{value}"]) class WindowTypeOption(Enum): @@ -778,32 +768,30 @@ def post_october_2020_procurement(self, value: bool): def hop_range_min_freq(self) -> float: """Hop Range Min Freq "Sets the minimum frequency of the hopping range." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Hop Range Min Freq') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @hop_range_min_freq.setter def hop_range_min_freq(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Hop Range Min Freq=' + f"{value}"]) @property def hop_range_max_freq(self) -> float: """Hop Range Max Freq "Sets the maximum frequency of the hopping range." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Hop Range Max Freq') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @hop_range_max_freq.setter def hop_range_max_freq(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Hop Range Max Freq=' + f"{value}"]) @property @@ -913,31 +901,29 @@ def fm_chirp_period(self, value : float|str): def fm_freq_deviation(self) -> float: """FM Freq Deviation "Total frequency deviation for the carrier frequency for the FM/CW radar." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('FM Freq Deviation') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @fm_freq_deviation.setter def fm_freq_deviation(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['FM Freq Deviation=' + f"{value}"]) @property def fm_freq_dev_bandwidth(self) -> float: """FM Freq Dev Bandwidth "Bandwidth of freq deviation for FM modulated pulsed waveform (total freq shift during pulse duration)." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('FM Freq Dev Bandwidth') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @fm_freq_dev_bandwidth.setter def fm_freq_dev_bandwidth(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['FM Freq Dev Bandwidth=' + f"{value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py index 963d44a9f90..e4d6f518049 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py @@ -67,10 +67,9 @@ def channel_frequency(self, value): def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Transmit Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index ffe801038b1..ada44a8c638 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -158,64 +158,60 @@ def out_of_band_attenuation(self, value) -> float: def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @lower_stop_band.setter def lower_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + f"{value}"]) @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @lower_cutoff.setter def lower_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + f"{value}"]) @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @higher_cutoff.setter def higher_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + f"{value}"]) @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @higher_stop_band.setter def higher_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + f"{value}"]) @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index 2e799ce4730..4686e776757 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -107,224 +107,210 @@ def stop_band_attenuation(self, value) -> float: def max_pass_band(self) -> float: """Max Pass Band "Maximum pass band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Max Pass Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @max_pass_band.setter def max_pass_band(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Pass Band=' + f"{value}"]) @property def min_stop_band(self) -> float: """Min Stop Band "Minimum stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Min Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @min_stop_band.setter def min_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Min Stop Band=' + f"{value}"]) @property def max_stop_band(self) -> float: """Max Stop Band "Maximum stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Max Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @max_stop_band.setter def max_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Stop Band=' + f"{value}"]) @property def min_pass_band(self) -> float: """Min Pass Band "Minimum pass band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Min Pass Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @min_pass_band.setter def min_pass_band(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Min Pass Band=' + f"{value}"]) @property def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @lower_stop_band.setter def lower_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + f"{value}"]) @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @lower_cutoff.setter def lower_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + f"{value}"]) @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @higher_cutoff.setter def higher_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + f"{value}"]) @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @higher_stop_band.setter def higher_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + f"{value}"]) @property def lower_cutoff_(self) -> float: """Lower Cutoff "Lower cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff ') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @lower_cutoff_.setter def lower_cutoff_(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff =' + f"{value}"]) @property def lower_stop_band_(self) -> float: """Lower Stop Band "Lower stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band ') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @lower_stop_band_.setter def lower_stop_band_(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band =' + f"{value}"]) @property def higher_stop_band_(self) -> float: """Higher Stop Band "Higher stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band ') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @higher_stop_band_.setter def higher_stop_band_(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band =' + f"{value}"]) @property def higher_cutoff_(self) -> float: """Higher Cutoff "Higher cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff ') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @higher_cutoff_.setter def higher_cutoff_(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff =' + f"{value}"]) @property def lowest_tuned_frequency_(self) -> float: """Lowest Tuned Frequency "Lowest tuned frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lowest Tuned Frequency ') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @lowest_tuned_frequency_.setter def lowest_tuned_frequency_(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lowest Tuned Frequency =' + f"{value}"]) @property def highest_tuned_frequency_(self) -> float: """Highest Tuned Frequency "Highest tuned frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Highest Tuned Frequency ') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @highest_tuned_frequency_.setter def highest_tuned_frequency_(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Highest Tuned Frequency =' + f"{value}"]) @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index c051aed0bb1..cacb5988694 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -158,64 +158,60 @@ def out_of_band_attenuation(self, value) -> float: def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @lower_stop_band.setter def lower_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + f"{value}"]) @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @lower_cutoff.setter def lower_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + f"{value}"]) @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @higher_cutoff.setter def higher_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + f"{value}"]) @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @higher_stop_band.setter def higher_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + f"{value}"]) @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py index 255e89a37c3..53d5d6810c2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py @@ -84,128 +84,120 @@ def stop_band_attenuation(self, value) -> float: def max_pass_band(self) -> float: """Max Pass Band "Maximum pass band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Max Pass Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @max_pass_band.setter def max_pass_band(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Pass Band=' + f"{value}"]) @property def min_stop_band(self) -> float: """Min Stop Band "Minimum stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Min Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @min_stop_band.setter def min_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Min Stop Band=' + f"{value}"]) @property def max_stop_band(self) -> float: """Max Stop Band "Maximum stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Max Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @max_stop_band.setter def max_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Stop Band=' + f"{value}"]) @property def min_pass_band(self) -> float: """Min Pass Band "Minimum pass band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Min Pass Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @min_pass_band.setter def min_pass_band(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Min Pass Band=' + f"{value}"]) @property def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @lower_stop_band.setter def lower_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + f"{value}"]) @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @lower_cutoff.setter def lower_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + f"{value}"]) @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @higher_cutoff.setter def higher_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + f"{value}"]) @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @higher_stop_band.setter def higher_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + f"{value}"]) @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py index 973dea65ac6..21f82839bc8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py @@ -159,64 +159,60 @@ def out_of_band_attenuation(self, value) -> float: def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @lower_stop_band.setter def lower_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + f"{value}"]) @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @lower_cutoff.setter def lower_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + f"{value}"]) @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @higher_cutoff.setter def higher_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + f"{value}"]) @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @higher_stop_band.setter def higher_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + f"{value}"]) @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py index b8c292bcbf0..3b5ba4ce549 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py @@ -57,22 +57,20 @@ def gain(self) -> float: def center_frequency(self) -> float: """Center Frequency "Center frequency of amplifiers operational bandwidth." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Center Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def bandwidth(self) -> float: """Bandwidth "Frequency region where the gain applies." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Bandwidth') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py index 83b9e5aafe4..b585218941c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py @@ -209,11 +209,10 @@ def outerbacklobe_level(self) -> float: def resonant_frequency(self) -> float: """Resonant Frequency "Set first resonant frequency of wire dipole, monopole, or parametric antenna." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+13." """ val = self._get_property('Resonant Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property @@ -547,20 +546,18 @@ def waveguide_height(self) -> float: def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." - "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Waveguide Cutoff Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." - "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Aperture Cutoff Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val class SWEModeTruncationOption(Enum): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py index f13ad55dd9e..9e74a069a12 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py @@ -32,44 +32,40 @@ def out_of_band_attenuation(self) -> float: def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py index 1bd9ae1abe7..56a6acfd5a0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py @@ -48,10 +48,9 @@ def emission_designator(self) -> str: def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." - "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Emission Designator Ch. BW') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property @@ -75,11 +74,10 @@ def override_emission_designator_bw(self) -> bool: def channel_bandwidth(self) -> float: """Channel Bandwidth "Channel Bandwidth." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('Channel Bandwidth') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val class ModulationOption(Enum): @@ -124,11 +122,10 @@ def waveform(self) -> WaveformOption: def max_modulating_freq(self) -> float: """Max Modulating Freq. "Maximum modulating frequency: helps determine spectral profile." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('Max Modulating Freq.') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property @@ -144,11 +141,10 @@ def modulation_index(self) -> float: def freq_deviation(self) -> float: """Freq. Deviation "Frequency deviation: helps determine spectral profile." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('Freq. Deviation') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property @@ -175,11 +171,10 @@ def sidelobes(self) -> int: def freq_deviation_(self) -> float: """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('Freq. Deviation ') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val class PSKTypeOption(Enum): @@ -249,44 +244,40 @@ def apsk_type(self) -> APSKTypeOption: def start_frequency(self) -> float: """Start Frequency "First frequency for this band." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Start Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def stop_frequency(self) -> float: """Stop Frequency "Last frequency for this band." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Stop Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def channel_spacing(self) -> float: """Channel Spacing "Spacing between channels within this band." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Channel Spacing') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def tx_offset(self) -> float: """Tx Offset "Frequency offset between Tx and Rx channels." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be less than 1e+11." """ val = self._get_property('Tx Offset') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property @@ -433,11 +424,10 @@ def stop(self) -> float: def max_frequency(self) -> float: """Max Frequency "Frequency cutoff of the imported time domain spectrum." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Max Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val class WindowTypeOption(Enum): @@ -565,22 +555,20 @@ def post_october_2020_procurement(self) -> bool: def hop_range_min_freq(self) -> float: """Hop Range Min Freq "Sets the minimum frequency of the hopping range." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Hop Range Min Freq') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def hop_range_max_freq(self) -> float: """Hop Range Max Freq "Sets the maximum frequency of the hopping range." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Hop Range Max Freq') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property @@ -658,21 +646,19 @@ def fm_chirp_period(self) -> float: def fm_freq_deviation(self) -> float: """FM Freq Deviation "Total frequency deviation for the carrier frequency for the FM/CW radar." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('FM Freq Deviation') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def fm_freq_dev_bandwidth(self) -> float: """FM Freq Dev Bandwidth "Bandwidth of freq deviation for FM modulated pulsed waveform (total freq shift during pulse duration)." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('FM Freq Dev Bandwidth') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py index 00f00c7d86d..ed66e1b212e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py @@ -106,44 +106,40 @@ def out_of_band_attenuation(self) -> float: def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py index 4d4e8dd14d0..8d3471188e4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py @@ -71,154 +71,140 @@ def stop_band_attenuation(self) -> float: def max_pass_band(self) -> float: """Max Pass Band "Maximum pass band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Max Pass Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def min_stop_band(self) -> float: """Min Stop Band "Minimum stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Min Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def max_stop_band(self) -> float: """Max Stop Band "Maximum stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Max Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def min_pass_band(self) -> float: """Min Pass Band "Minimum pass band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Min Pass Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def lower_cutoff_(self) -> float: """Lower Cutoff "Lower cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff ') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def lower_stop_band_(self) -> float: """Lower Stop Band "Lower stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band ') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def higher_stop_band_(self) -> float: """Higher Stop Band "Higher stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band ') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def higher_cutoff_(self) -> float: """Higher Cutoff "Higher cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff ') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def lowest_tuned_frequency_(self) -> float: """Lowest Tuned Frequency "Lowest tuned frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lowest Tuned Frequency ') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def highest_tuned_frequency_(self) -> float: """Highest Tuned Frequency "Highest tuned frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Highest Tuned Frequency ') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py index 72968d3be75..87d6ce817f5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py @@ -106,44 +106,40 @@ def out_of_band_attenuation(self) -> float: def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py index c6170c15b14..46a188704df 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py @@ -56,88 +56,80 @@ def stop_band_attenuation(self) -> float: def max_pass_band(self) -> float: """Max Pass Band "Maximum pass band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Max Pass Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def min_stop_band(self) -> float: """Min Stop Band "Minimum stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Min Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def max_stop_band(self) -> float: """Max Stop Band "Maximum stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Max Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def min_pass_band(self) -> float: """Min Pass Band "Minimum pass band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Min Pass Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py index c1a1067cd91..3bd29ba0150 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py @@ -107,44 +107,40 @@ def out_of_band_attenuation(self) -> float: def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py index 75a041629f9..437c0bb5157 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py @@ -32,10 +32,9 @@ def source_file(self) -> str: def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." - "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Receive Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val class MeasurementModeOption(Enum): @@ -101,11 +100,10 @@ def intended_signal_power(self) -> float: def freq_deviation(self) -> float: """Freq. Deviation "Specify the frequency deviation of the intended signal." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1000 and 200000." """ val = self._get_property('Freq. Deviation') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property @@ -184,22 +182,20 @@ def use_ams_limits(self) -> bool: def start_frequency(self) -> float: """Start Frequency "Starting frequency for the measurement sweep." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1e+06." """ val = self._get_property('Start Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def stop_frequency(self) -> float: """Stop Frequency "Stopping frequency for the measurement sweep." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be less than 6e+09." """ val = self._get_property('Stop Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py index 24ed7082950..caff9ad4fcb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py @@ -46,22 +46,20 @@ def spurious_rejection(self) -> float: def minimum_tuning_frequency(self) -> float: """Minimum Tuning Frequency "Minimum tuning frequency of Rx's local oscillator." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Minimum Tuning Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def maximum_tuning_frequency(self) -> float: """Maximum Tuning Frequency "Maximum tuning frequency of Rx's local oscillator." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Maximum Tuning Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property @@ -86,11 +84,10 @@ def mixer_product_intercept(self) -> float: def _80_db_bandwidth(self) -> float: """80 dB Bandwidth "Bandwidth where Rx's susceptibility envelope is 80 dB above in-band susceptibility level." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('80 dB Bandwidth') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property @@ -147,10 +144,9 @@ def _1st_if_frequency(self): def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." - "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('RF Transition Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val class UseHighLOOption(Enum): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py index 9ff7cb51b1c..04c0faf6268 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -106,43 +106,39 @@ def out_of_band_attenuation(self) -> float: def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py index 0fe9b4bf52c..31859469445 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py @@ -32,10 +32,9 @@ def source_file(self) -> str: def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." - "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Transmit Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property @@ -51,22 +50,20 @@ def use_ams_limits(self) -> bool: def start_frequency(self) -> float: """Start Frequency "Starting frequency for the measurement sweep." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1e+06." """ val = self._get_property('Start Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property def stop_frequency(self) -> float: """Stop Frequency "Stopping frequency for the measurement sweep." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be less than 6e+09." """ val = self._get_property('Stop Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py index 11593a139d5..61ab8b11ea2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py @@ -27,9 +27,8 @@ def narrowband_behavior(self) -> NarrowbandBehaviorOption: def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Measurement Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py index b6ccaf8c0cf..b5f4232e109 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py @@ -40,10 +40,9 @@ def source_file(self) -> str: def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." - "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Receive Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val class MeasurementModeOption(Enum): @@ -133,16 +132,15 @@ def intended_signal_power(self, value) -> float: def freq_deviation(self) -> float: """Freq. Deviation "Specify the frequency deviation of the intended signal." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1000 and 200000." """ val = self._get_property('Freq. Deviation') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @freq_deviation.setter def freq_deviation(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Freq. Deviation=' + f"{value}"]) @property @@ -253,32 +251,30 @@ def use_ams_limits(self, value: bool): def start_frequency(self) -> float: """Start Frequency "Starting frequency for the measurement sweep." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1e+06." """ val = self._get_property('Start Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @start_frequency.setter def start_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Start Frequency=' + f"{value}"]) @property def stop_frequency(self) -> float: """Stop Frequency "Stopping frequency for the measurement sweep." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be less than 6e+09." """ val = self._get_property('Stop Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @stop_frequency.setter def stop_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Stop Frequency=' + f"{value}"]) @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py index 473bf2426e3..36b363a86fa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py @@ -75,32 +75,30 @@ def spurious_rejection(self, value) -> float: def minimum_tuning_frequency(self) -> float: """Minimum Tuning Frequency "Minimum tuning frequency of Rx's local oscillator." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Minimum Tuning Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @minimum_tuning_frequency.setter def minimum_tuning_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Minimum Tuning Frequency=' + f"{value}"]) @property def maximum_tuning_frequency(self) -> float: """Maximum Tuning Frequency "Maximum tuning frequency of Rx's local oscillator." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Maximum Tuning Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @maximum_tuning_frequency.setter def maximum_tuning_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Maximum Tuning Frequency=' + f"{value}"]) @property @@ -133,16 +131,15 @@ def mixer_product_intercept(self, value) -> float: def _80_db_bandwidth(self) -> float: """80 dB Bandwidth "Bandwidth where Rx's susceptibility envelope is 80 dB above in-band susceptibility level." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('80 dB Bandwidth') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @_80_db_bandwidth.setter def _80_db_bandwidth(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['80 dB Bandwidth=' + f"{value}"]) @property @@ -219,15 +216,14 @@ def _1st_if_frequency(self, value): def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." - "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('RF Transition Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @rf_transition_frequency.setter def rf_transition_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['RF Transition Frequency=' + f"{value}"]) class UseHighLOOption(Enum): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py index 9c6fd8a341b..0cb305937de 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py @@ -38,10 +38,9 @@ def channel_frequency(self, value): def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Transmit Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index 11b447ae95e..637c0a70c33 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -158,63 +158,59 @@ def out_of_band_attenuation(self, value) -> float: def lower_stop_band(self) -> float: """Lower Stop Band "Lower stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @lower_stop_band.setter def lower_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + f"{value}"]) @property def lower_cutoff(self) -> float: """Lower Cutoff "Lower cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @lower_cutoff.setter def lower_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + f"{value}"]) @property def higher_cutoff(self) -> float: """Higher Cutoff "Higher cutoff frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @higher_cutoff.setter def higher_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + f"{value}"]) @property def higher_stop_band(self) -> float: """Higher Stop Band "Higher stop band frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @higher_stop_band.setter def higher_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + f"{value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py index 46afe64a0bd..8939856d763 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py @@ -231,16 +231,15 @@ def symbol_filled(self, value: bool): def frequency_1(self) -> float: """Frequency 1 "1st test tone frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Frequency 1') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @frequency_1.setter def frequency_1(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Frequency 1=' + f"{value}"]) @property @@ -263,32 +262,30 @@ def amplitude_1(self, value : float|str): def bandwidth_1(self) -> float: """Bandwidth 1 "1st test tone bandwidth." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('Bandwidth 1') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @bandwidth_1.setter def bandwidth_1(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth 1=' + f"{value}"]) @property def frequency_2(self) -> float: """Frequency 2 "2nd test tone frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Frequency 2') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @frequency_2.setter def frequency_2(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Frequency 2=' + f"{value}"]) @property @@ -311,16 +308,15 @@ def amplitude_2(self, value : float|str): def bandwidth_2(self) -> float: """Bandwidth 2 "2nd test tone bandwidth." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('Bandwidth 2') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @bandwidth_2.setter def bandwidth_2(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth 2=' + f"{value}"]) @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py index 451a582527f..cfc05a96403 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py @@ -52,15 +52,14 @@ def output_port(self, value: int): def frequency(self) -> float: """Frequency "Tunable filter center frequency." - "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @frequency.setter def frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Frequency=' + f"{value}"]) @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py index 7c4c7c18127..386ffa82a7b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py @@ -231,16 +231,15 @@ def symbol_filled(self, value: bool): def frequency_1(self) -> float: """Frequency 1 "1st test tone frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Frequency 1') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @frequency_1.setter def frequency_1(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Frequency 1=' + f"{value}"]) @property @@ -263,32 +262,30 @@ def amplitude_1(self, value : float|str): def bandwidth_1(self) -> float: """Bandwidth 1 "1st test tone bandwidth." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('Bandwidth 1') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @bandwidth_1.setter def bandwidth_1(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth 1=' + f"{value}"]) @property def frequency_2(self) -> float: """Frequency 2 "2nd test tone frequency." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be between 1 and 1e+11." """ val = self._get_property('Frequency 2') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @frequency_2.setter def frequency_2(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Frequency 2=' + f"{value}"]) @property @@ -311,16 +308,15 @@ def amplitude_2(self, value : float|str): def bandwidth_2(self) -> float: """Bandwidth 2 "2nd test tone bandwidth." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1." """ val = self._get_property('Bandwidth 2') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @bandwidth_2.setter def bandwidth_2(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth 2=' + f"{value}"]) @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py index c256a9a8834..576e7140b96 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py @@ -40,10 +40,9 @@ def source_file(self) -> str: def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." - "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Transmit Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @property @@ -63,32 +62,30 @@ def use_ams_limits(self, value: bool): def start_frequency(self) -> float: """Start Frequency "Starting frequency for the measurement sweep." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be greater than 1e+06." """ val = self._get_property('Start Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @start_frequency.setter def start_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Start Frequency=' + f"{value}"]) @property def stop_frequency(self) -> float: """Stop Frequency "Stopping frequency for the measurement sweep." - "Units options: Hz, kHz, MHz, GHz, THz." "Value should be less than 6e+09." """ val = self._get_property('Stop Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @stop_frequency.setter def stop_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Stop Frequency=' + f"{value}"]) @property diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py index d8b0569cb06..1c069ae9ce6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py @@ -48,14 +48,13 @@ def narrowband_behavior(self, value: NarrowbandBehaviorOption): def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - "Units options: Hz, kHz, MHz, GHz, THz." " """ val = self._get_property('Measurement Frequency') - val = self._convert_from_default_units(float(val), "Frequency Unit") + val = self._convert_from_default_units(float(val), "Freq Unit") return val @measurement_frequency.setter def measurement_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Frequency Unit") + value = self._convert_to_default_units(value, "Freq Unit") self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Measurement Frequency=' + f"{value}"]) From 6a06ab53692c9dc047678ff93850dadc1d61d625 Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Thu, 13 Mar 2025 10:29:33 -0500 Subject: [PATCH 15/86] Fix revision constructor for 252, fix units --- src/ansys/aedt/core/emit.py | 2 +- .../aedt/core/emit_core/emit_constants.py | 2 +- .../aedt/core/emit_core/results/revision.py | 44 +++++++++---------- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/ansys/aedt/core/emit.py b/src/ansys/aedt/core/emit.py index 4c797dd030a..c479e30a4a9 100644 --- a/src/ansys/aedt/core/emit.py +++ b/src/ansys/aedt/core/emit.py @@ -190,7 +190,7 @@ def __init__( # set the default units here to make sure the EmitApi level # stays synced with pyaedt unit_types = ["Power", "Frequency", "Length", "Time", "Voltage", "Data Rate", "Resistance"] - unit_values = ["dBm", "MHz", "meter", "ns", "mV", "bps", "ohm"] + unit_values = ["dBm", "MHz", "meter", "ns", "mV", "bps", "Ohm"] self.set_units(unit_types, unit_values) def _init_from_design(self, *args, **kwargs): diff --git a/src/ansys/aedt/core/emit_core/emit_constants.py b/src/ansys/aedt/core/emit_core/emit_constants.py index dda6c6484b5..909eaaf9066 100644 --- a/src/ansys/aedt/core/emit_core/emit_constants.py +++ b/src/ansys/aedt/core/emit_core/emit_constants.py @@ -80,7 +80,7 @@ class UnitType(MutableEnum): "Time": ["ps", "ns", "us", "ms", "s"], "Voltage": ["nV", "uV", "mV", "V", "kV", "MegV"], "Data Rate": ["bps", "kbps", "Mbps", "Gbps"], - "Resistance": ["uOhm", "mOhm", "ohm", "kOhm", "megohm", "GOhm"], + "Resistance": ["uOhm", "mOhm", "Ohm", "kOhm", "megOhm", "GOhm"], } """Valid units for each unit type.""" diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index 4d9602080d2..ff5d0720918 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -65,51 +65,51 @@ class Revision: def __init__(self, parent_results, emit_obj, name=None): self.emit_project = emit_obj - """EMIT project.""" + """EMIT project""" self.parent_results = parent_results """Parent Results object""" self.aedt_version = int(parent_results.emit_project.aedt_version_id[-3:]) + """AEDT version""" + + self.results_index = None + """Index of the result for this revision, 0 if current, kept otherwise""" + if self.aedt_version > 251: self._emit_com = emit_obj.odesign.GetModule("EmitCom") - if name == None: - self.results_index = 0 - else: - self.results_index = self._emit_com.GetKeptResultIndex(name) - # Get the SimulationNodeID for the current result - self._sim_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Simulation") - else: - if not name: - name = emit_obj.odesign.GetCurrentResult() - if not name: - name = emit_obj.odesign.AddResult("") + if name: + self.results_index = self._emit_com.GetKeptResultIndex(name) else: - if name not in emit_obj.odesign.GetResultList(): - name = emit_obj.odesign.AddResult(name) - full = emit_obj.odesign.GetResultDirectory(name) + # Index 0 is always the current result + self.results_index = 0 + name = '' - self.name = name - """Name of the revision.""" + # Creating a revision for the current result- save the project to force the files to be written + emit_obj.oproject.Save() + + # Get the SimulationNodeID for the specified result + self._sim_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Simulation") - self.path = full - """Full path of the revision.""" + self.path = emit_obj.odesign.GetResultDirectory(name) + """Path to the EMIT result folder for the revision""" raw_props = emit_obj.odesign.GetResultProperties(name) key = lambda s: s.split("=", 1)[0] val = lambda s: s.split("=", 1)[1] props = {key(s): val(s) for s in raw_props} - self.revision_number = int(props["Revision"]) - """Unique revision number from the EMIT design""" - self.timestamp = props["Timestamp"] """Unique timestamp for the revision""" + + self.name = name if name else 'Current' + """Name of the revision.""" # load the revision after creating it self.revision_loaded = False """``True`` if the revision is loaded and ``False`` if it is not.""" + self._load_revision() @pyaedt_function_handler() From 5501be51f9257a97bad47da428e0ded2a49e4e33 Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Mon, 24 Mar 2025 10:16:06 -0500 Subject: [PATCH 16/86] Update results and revision modules to use new result API --- .../aedt/core/emit_core/results/results.py | 17 +----- .../aedt/core/emit_core/results/revision.py | 57 +++++++------------ 2 files changed, 21 insertions(+), 53 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/results/results.py b/src/ansys/aedt/core/emit_core/results/results.py index 502d8d97506..9ae53eba020 100644 --- a/src/ansys/aedt/core/emit_core/results/results.py +++ b/src/ansys/aedt/core/emit_core/results/results.py @@ -244,21 +244,8 @@ def analyze(self): >>> interferers = rev.get_interferer_names() >>> receivers = rev.get_receiver_names() """ - # No revisions exist, add one - if self.current_revision is None: - self.current_revision = self._add_revision() - # no changes since last created revision, load it - elif ( - self.revisions[-1].revision_number - == self.emit_project.desktop_class.active_design( - self.emit_project.desktop_class.active_project() - ).GetRevision() - ): - self.get_revision(self.revisions[-1].name) - else: - # there are changes since the current revision was analyzed, create - # a new revision + if self.current_revision: self.current_revision.revision_loaded = False - self.current_revision = self._add_revision() + self.current_revision = self._add_revision() return self.current_revision diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index ff5d0720918..29b6563a0bc 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -22,6 +22,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. +import time import warnings from ansys.aedt.core.emit_core.emit_constants import EmiCategoryFilter @@ -47,7 +48,7 @@ class Revision: ``Emit`` object that this revision is associated with. name : str, optional Name of the revision to create. The default is ``None``, in which - case the name of the current design revision is used. + case a timestamp is used. Raises ------ @@ -65,35 +66,34 @@ class Revision: def __init__(self, parent_results, emit_obj, name=None): self.emit_project = emit_obj - """EMIT project""" + """EMIT project.""" self.parent_results = parent_results - """Parent Results object""" + """Parent Results object.""" self.aedt_version = int(parent_results.emit_project.aedt_version_id[-3:]) - """AEDT version""" - - self.results_index = None - """Index of the result for this revision, 0 if current, kept otherwise""" + """AEDT version.""" if self.aedt_version > 251: self._emit_com = emit_obj.odesign.GetModule("EmitCom") - if name: - self.results_index = self._emit_com.GetKeptResultIndex(name) - else: - # Index 0 is always the current result - self.results_index = 0 - name = '' + if not name: + # User didn't specify a specific revision name to load- create a new Kept revision + timestamp = time.strftime("%Y%m%d_%H%M%S") + name = emit_obj.odesign.KeepResult(timestamp) + + kept_result_names = emit_obj.odesign.GetKeptResultNames() + if not (name in kept_result_names): + raise ValueError(f'Revision "{name}" does not exist in the project.') - # Creating a revision for the current result- save the project to force the files to be written - emit_obj.oproject.Save() + self.results_index = self._emit_com.GetKeptResultIndex(name) + """Index of the result for this revision.""" # Get the SimulationNodeID for the specified result - self._sim_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Simulation") + # self._sim_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Simulation") self.path = emit_obj.odesign.GetResultDirectory(name) - """Path to the EMIT result folder for the revision""" + """Path to the EMIT result folder for the revision.""" raw_props = emit_obj.odesign.GetResultProperties(name) key = lambda s: s.split("=", 1)[0] @@ -101,9 +101,9 @@ def __init__(self, parent_results, emit_obj, name=None): props = {key(s): val(s) for s in raw_props} self.timestamp = props["Timestamp"] - """Unique timestamp for the revision""" + """Unique timestamp for the revision.""" - self.name = name if name else 'Current' + self.name = name """Name of the revision.""" # load the revision after creating it @@ -899,25 +899,6 @@ def get_all_component_nodes(self) -> list[EmitNode]: component_nodes = [self._get_node(node_id) for node_id in component_node_ids] return component_nodes - @pyaedt_function_handler - @error_if_below_aedt_version(251) - def get_all_component_nodes(self) -> list[EmitNode]: - """Gets all component nodes from this revision. - - Returns - ------- - component_nodes: list - List of component nodes. - - Examples - -------- - >>> nodes = revision.get_all_component_nodes() - """ - component_names = self._get_all_component_names() - component_node_ids = [self._emit_com.GetComponentNodeID(self.results_index, name) for name in component_names] - component_nodes = [self._get_node(node_id) for node_id in component_node_ids] - return component_nodes - @pyaedt_function_handler @error_if_below_aedt_version(251) def _get_all_node_ids(self) -> list[int]: From 06337845575d8df3d55d20202722a31ef03ac55a Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Mon, 24 Mar 2025 16:12:32 -0500 Subject: [PATCH 17/86] Revert change of GetKeptResultProperties to GetResultProperties --- src/ansys/aedt/core/emit_core/results/revision.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index 29b6563a0bc..0aaca4833ab 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -95,7 +95,7 @@ def __init__(self, parent_results, emit_obj, name=None): self.path = emit_obj.odesign.GetResultDirectory(name) """Path to the EMIT result folder for the revision.""" - raw_props = emit_obj.odesign.GetResultProperties(name) + raw_props = emit_obj.odesign.GetKeptResultProperties(name) key = lambda s: s.split("=", 1)[0] val = lambda s: s.split("=", 1)[1] props = {key(s): val(s) for s in raw_props} From f5b57803c4e655399e2333786f1afe6ddb1c0dc1 Mon Sep 17 00:00:00 2001 From: Josh Salant <101826634+jsalant22@users.noreply.github.com> Date: Tue, 15 Apr 2025 16:11:20 -0400 Subject: [PATCH 18/86] Add EmitterBand and TxSpectralProfEmitter classes (#6048) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- LICENSE | 2 +- src/ansys/aedt/core/Test.py | 36 +- src/ansys/aedt/core/__init__.py | 2 +- src/ansys/aedt/core/aedt_logger.py | 2 +- src/ansys/aedt/core/application/__init__.py | 2 +- .../core/application/aedt_file_management.py | 2 +- .../aedt/core/application/aedt_objects.py | 2 +- src/ansys/aedt/core/application/analysis.py | 2 +- .../aedt/core/application/analysis_3d.py | 2 +- .../core/application/analysis_3d_layout.py | 2 +- .../application/analysis_circuit_netlist.py | 2 +- .../aedt/core/application/analysis_hf.py | 2 +- .../application/analysis_maxwell_circuit.py | 2 +- .../aedt/core/application/analysis_nexxim.py | 2 +- .../core/application/analysis_r_m_xprt.py | 2 +- .../core/application/analysis_twin_builder.py | 2 +- src/ansys/aedt/core/application/design.py | 2 +- .../aedt/core/application/design_solutions.py | 2 +- .../aedt/core/application/job_manager.py | 2 +- src/ansys/aedt/core/application/variables.py | 2 +- src/ansys/aedt/core/circuit.py | 2 +- src/ansys/aedt/core/circuit_netlist.py | 2 +- src/ansys/aedt/core/common_rpc.py | 2 +- src/ansys/aedt/core/desktop.py | 2 +- src/ansys/aedt/core/downloads.py | 2 +- src/ansys/aedt/core/edb.py | 2 +- src/ansys/aedt/core/emit.py | 2 +- src/ansys/aedt/core/emit_core/__init__.py | 2 +- src/ansys/aedt/core/emit_core/couplings.py | 2 +- .../aedt/core/emit_core/emit_constants.py | 126 +-- .../aedt/core/emit_core/nodes/EmitNode.py | 118 ++- .../emit_core/nodes/generated/Amplifier.py | 131 ++-- .../emit_core/nodes/generated/AntennaNode.py | 413 +++++----- .../nodes/generated/AntennaPassband.py | 84 +- .../core/emit_core/nodes/generated/Band.py | 735 +++++------------- .../emit_core/nodes/generated/BandFolder.py | 26 +- .../nodes/generated/BandTraceNode.py | 146 ++-- .../core/emit_core/nodes/generated/CADNode.py | 342 ++++---- .../core/emit_core/nodes/generated/Cable.py | 90 ++- .../nodes/generated/CategoriesViewNode.py | 26 +- .../emit_core/nodes/generated/Circulator.py | 124 +-- .../nodes/generated/CouplingLinkNode.py | 36 +- .../nodes/generated/CouplingTraceNode.py | 168 ++-- .../nodes/generated/CouplingsNode.py | 40 +- .../nodes/generated/CustomCouplingNode.py | 64 +- .../nodes/generated/EmiPlotMarkerNode.py | 182 +++-- .../nodes/generated/EmitSceneNode.py | 61 +- .../nodes/generated/ErcegCouplingNode.py | 138 ++-- .../core/emit_core/nodes/generated/Filter.py | 236 +++--- .../nodes/generated/FiveGChannelModel.py | 156 ++-- .../nodes/generated/HataCouplingNode.py | 140 ++-- .../IndoorPropagationCouplingNode.py | 154 ++-- .../emit_core/nodes/generated/Isolator.py | 124 +-- .../generated/LogDistanceCouplingNode.py | 150 ++-- .../nodes/generated/MPlexBandTraceNode.py | 132 ++-- .../emit_core/nodes/generated/Multiplexer.py | 74 +- .../nodes/generated/MultiplexerBand.py | 136 ++-- .../nodes/generated/OutboardTraceNode.py | 132 ++-- .../generated/ParametricCouplingTraceNode.py | 136 ++-- .../nodes/generated/PlotMarkerNode.py | 184 +++-- .../emit_core/nodes/generated/PlotNode.py | 200 +++-- .../emit_core/nodes/generated/PowerDivider.py | 128 +-- .../nodes/generated/PowerTraceNode.py | 134 ++-- .../nodes/generated/ProfileTraceNode.py | 124 +-- .../generated/PropagationLossCouplingNode.py | 126 +-- .../emit_core/nodes/generated/RadioNode.py | 40 +- .../nodes/generated/ReadOnlyAmplifier.py | 79 +- .../nodes/generated/ReadOnlyAntennaNode.py | 271 ++++--- .../generated/ReadOnlyAntennaPassband.py | 50 +- .../emit_core/nodes/generated/ReadOnlyBand.py | 486 +++--------- .../nodes/generated/ReadOnlyBandFolder.py | 26 +- .../nodes/generated/ReadOnlyCADNode.py | 206 ++--- .../nodes/generated/ReadOnlyCable.py | 64 +- .../nodes/generated/ReadOnlyCirculator.py | 80 +- .../generated/ReadOnlyCouplingLinkNode.py | 32 +- .../nodes/generated/ReadOnlyCouplingsNode.py | 34 +- .../generated/ReadOnlyCustomCouplingNode.py | 50 +- .../nodes/generated/ReadOnlyEmitSceneNode.py | 47 +- .../generated/ReadOnlyErcegCouplingNode.py | 92 ++- .../nodes/generated/ReadOnlyFilter.py | 132 ++-- .../generated/ReadOnlyFiveGChannelModel.py | 104 ++- .../generated/ReadOnlyHataCouplingNode.py | 94 ++- .../ReadOnlyIndoorPropagationCouplingNode.py | 106 ++- .../nodes/generated/ReadOnlyIsolator.py | 80 +- .../ReadOnlyLogDistanceCouplingNode.py | 102 ++- .../nodes/generated/ReadOnlyMultiplexer.py | 60 +- .../generated/ReadOnlyMultiplexerBand.py | 80 +- .../nodes/generated/ReadOnlyPowerDivider.py | 82 +- .../ReadOnlyPropagationLossCouplingNode.py | 82 +- .../nodes/generated/ReadOnlyRadioNode.py | 38 +- .../nodes/generated/ReadOnlyRfSystemGroup.py | 30 +- .../nodes/generated/ReadOnlyRxMeasNode.py | 88 ++- .../generated/ReadOnlyRxMixerProductNode.py | 96 ++- .../generated/ReadOnlyRxSaturationNode.py | 26 +- .../generated/ReadOnlyRxSelectivityNode.py | 28 +- .../nodes/generated/ReadOnlyRxSpurNode.py | 42 +- .../ReadOnlyRxSusceptibilityProfNode.py | 89 ++- .../nodes/generated/ReadOnlySamplingNode.py | 62 +- .../nodes/generated/ReadOnlySceneGroupNode.py | 52 +- .../generated/ReadOnlySolutionCouplingNode.py | 36 +- .../nodes/generated/ReadOnlySolutionsNode.py | 28 +- .../nodes/generated/ReadOnlySparameter.py | 46 +- .../nodes/generated/ReadOnlyTR_Switch.py | 76 +- .../nodes/generated/ReadOnlyTerminator.py | 56 +- .../ReadOnlyTouchstoneCouplingNode.py | 52 +- .../ReadOnlyTwoRayPathLossCouplingNode.py | 86 +- .../generated/ReadOnlyTxBbEmissionNode.py | 44 +- .../nodes/generated/ReadOnlyTxHarmonicNode.py | 34 +- .../nodes/generated/ReadOnlyTxMeasNode.py | 48 +- .../generated/ReadOnlyTxNbEmissionNode.py | 40 +- .../ReadOnlyTxSpectralProfEmitterNode.py | 138 ++++ .../generated/ReadOnlyTxSpectralProfNode.py | 123 +-- .../nodes/generated/ReadOnlyTxSpurNode.py | 42 +- .../generated/ReadOnlyWalfischCouplingNode.py | 115 +-- .../nodes/generated/ReadOnlyWaveform.py | 321 ++++++++ .../nodes/generated/ResultPlotNode.py | 204 ++--- .../nodes/generated/RfSystemGroup.py | 36 +- .../emit_core/nodes/generated/RxMeasNode.py | 144 ++-- .../nodes/generated/RxMixerProductNode.py | 166 ++-- .../nodes/generated/RxSaturationNode.py | 32 +- .../nodes/generated/RxSelectivityNode.py | 36 +- .../emit_core/nodes/generated/RxSpurNode.py | 50 +- .../generated/RxSusceptibilityProfNode.py | 155 ++-- .../emit_core/nodes/generated/SamplingNode.py | 74 +- .../nodes/generated/SceneGroupNode.py | 72 +- .../nodes/generated/SelectivityTraceNode.py | 124 +-- .../nodes/generated/SolutionCouplingNode.py | 44 +- .../nodes/generated/SolutionsNode.py | 30 +- .../emit_core/nodes/generated/Sparameter.py | 56 +- .../nodes/generated/SpurTraceNode.py | 136 ++-- .../nodes/generated/TRSwitchTraceNode.py | 132 ++-- .../emit_core/nodes/generated/TR_Switch.py | 122 +-- .../emit_core/nodes/generated/Terminator.py | 68 +- .../nodes/generated/TestNoiseTraceNode.py | 198 ++--- .../nodes/generated/TopLevelSimulation.py | 26 +- .../nodes/generated/TouchstoneCouplingNode.py | 68 +- .../nodes/generated/TunableTraceNode.py | 144 ++-- .../generated/TwoRayPathLossCouplingNode.py | 134 ++-- .../nodes/generated/TwoToneTraceNode.py | 198 ++--- .../nodes/generated/TxBbEmissionNode.py | 56 +- .../nodes/generated/TxHarmonicNode.py | 44 +- .../emit_core/nodes/generated/TxMeasNode.py | 70 +- .../nodes/generated/TxNbEmissionNode.py | 58 +- .../generated/TxSpectralProfEmitterNode.py | 201 +++++ .../nodes/generated/TxSpectralProfNode.py | 208 ++--- .../emit_core/nodes/generated/TxSpurNode.py | 50 +- .../nodes/generated/WalfischCouplingNode.py | 185 +++-- .../emit_core/nodes/generated/Waveform.py | 452 +++++++++++ .../emit_core/nodes/generated/__init__.py | 320 ++++---- .../aedt/core/emit_core/results/__init__.py | 2 +- .../aedt/core/emit_core/results/results.py | 2 +- .../aedt/core/emit_core/results/revision.py | 77 +- src/ansys/aedt/core/filtersolutions.py | 2 +- .../core/filtersolutions_core/__init__.py | 2 +- .../core/filtersolutions_core/attributes.py | 2 +- .../filtersolutions_core/dll_interface.py | 2 +- .../filtersolutions_core/export_to_aedt.py | 2 +- .../core/filtersolutions_core/graph_setup.py | 2 +- .../filtersolutions_core/ideal_response.py | 2 +- .../lumped_nodes_and_leads.py | 2 +- .../filtersolutions_core/lumped_parasitics.py | 2 +- .../lumped_termination_impedance_table.py | 2 +- .../filtersolutions_core/lumped_topology.py | 2 +- .../multiple_bands_table.py | 2 +- .../optimization_goals_table.py | 2 +- .../transmission_zeros.py | 2 +- src/ansys/aedt/core/generic/__init__.py | 2 +- src/ansys/aedt/core/generic/aedt_versions.py | 2 +- src/ansys/aedt/core/generic/clr_module.py | 2 +- src/ansys/aedt/core/generic/configurations.py | 2 +- src/ansys/aedt/core/generic/constants.py | 2 +- src/ansys/aedt/core/generic/data_handlers.py | 2 +- src/ansys/aedt/core/generic/design_types.py | 2 +- .../aedt/core/generic/desktop_sessions.py | 2 +- src/ansys/aedt/core/generic/filesystem.py | 2 +- .../aedt/core/generic/general_methods.py | 2 +- .../core/generic/grpc_plugin_dll_class.py | 2 +- src/ansys/aedt/core/generic/ibis_reader.py | 2 +- src/ansys/aedt/core/generic/load_aedt_file.py | 2 +- .../aedt/core/generic/python_optimizers.py | 2 +- src/ansys/aedt/core/generic/settings.py | 2 +- src/ansys/aedt/core/hfss.py | 2 +- src/ansys/aedt/core/hfss3dlayout.py | 2 +- src/ansys/aedt/core/icepak.py | 2 +- src/ansys/aedt/core/maxwell.py | 2 +- src/ansys/aedt/core/maxwellcircuit.py | 2 +- src/ansys/aedt/core/mechanical.py | 2 +- src/ansys/aedt/core/misc/__init__.py | 2 +- src/ansys/aedt/core/misc/create_remote_dir.py | 2 +- src/ansys/aedt/core/modeler/__init__.py | 2 +- .../core/modeler/advanced_cad/__init__.py | 2 +- .../aedt/core/modeler/advanced_cad/actors.py | 2 +- .../core/modeler/advanced_cad/multiparts.py | 2 +- .../aedt/core/modeler/advanced_cad/oms.py | 2 +- .../aedt/core/modeler/advanced_cad/parts.py | 2 +- .../core/modeler/advanced_cad/stackup_3d.py | 2 +- src/ansys/aedt/core/modeler/cad/__init__.py | 2 +- .../aedt/core/modeler/cad/component_array.py | 2 +- .../aedt/core/modeler/cad/components_3d.py | 2 +- .../aedt/core/modeler/cad/elements_3d.py | 2 +- src/ansys/aedt/core/modeler/cad/modeler.py | 2 +- src/ansys/aedt/core/modeler/cad/object_3d.py | 2 +- src/ansys/aedt/core/modeler/cad/polylines.py | 2 +- src/ansys/aedt/core/modeler/cad/primitives.py | 2 +- .../aedt/core/modeler/cad/primitives_2d.py | 2 +- .../aedt/core/modeler/cad/primitives_3d.py | 2 +- src/ansys/aedt/core/modeler/calculators.py | 2 +- .../aedt/core/modeler/circuits/__init__.py | 2 +- .../modeler/circuits/object_3d_circuit.py | 2 +- .../modeler/circuits/primitives_circuit.py | 2 +- .../core/modeler/circuits/primitives_emit.py | 2 +- .../circuits/primitives_maxwell_circuit.py | 2 +- .../modeler/circuits/primitives_nexxim.py | 2 +- .../circuits/primitives_twin_builder.py | 2 +- .../aedt/core/modeler/geometry_operators.py | 2 +- src/ansys/aedt/core/modeler/modeler_2d.py | 2 +- src/ansys/aedt/core/modeler/modeler_3d.py | 2 +- src/ansys/aedt/core/modeler/modeler_pcb.py | 2 +- src/ansys/aedt/core/modeler/pcb/__init__.py | 2 +- .../aedt/core/modeler/pcb/object_3d_layout.py | 2 +- .../core/modeler/pcb/primitives_3d_layout.py | 2 +- src/ansys/aedt/core/modeler/schematic.py | 2 +- src/ansys/aedt/core/modules/__init__.py | 2 +- src/ansys/aedt/core/modules/boundary.py | 2 +- src/ansys/aedt/core/modules/cable_modeling.py | 2 +- .../aedt/core/modules/circuit_templates.py | 2 +- .../aedt/core/modules/design_xploration.py | 2 +- src/ansys/aedt/core/modules/layer_stackup.py | 2 +- src/ansys/aedt/core/modules/material.py | 2 +- src/ansys/aedt/core/modules/material_lib.py | 2 +- .../aedt/core/modules/material_workbench.py | 2 +- src/ansys/aedt/core/modules/mesh.py | 2 +- src/ansys/aedt/core/modules/mesh_3d_layout.py | 2 +- src/ansys/aedt/core/modules/mesh_icepak.py | 2 +- .../core/modules/optimetrics_templates.py | 2 +- .../aedt/core/modules/setup_templates.py | 2 +- src/ansys/aedt/core/modules/solve_setup.py | 2 +- src/ansys/aedt/core/modules/solve_sweeps.py | 2 +- src/ansys/aedt/core/q3d.py | 2 +- src/ansys/aedt/core/rmxprt.py | 2 +- src/ansys/aedt/core/twinbuilder.py | 2 +- src/ansys/aedt/core/visualization/__init__.py | 2 +- .../core/visualization/advanced/__init__.py | 2 +- .../advanced/farfield_visualization.py | 2 +- .../core/visualization/advanced/hdm_plot.py | 2 +- .../aedt/core/visualization/advanced/misc.py | 2 +- .../advanced/rcs_visualization.py | 2 +- .../advanced/sbrplus/__init__.py | 2 +- .../advanced/sbrplus/hdm_parser.py | 2 +- .../advanced/sbrplus/hdm_utils.py | 2 +- .../advanced/touchstone_parser.py | 2 +- .../aedt/core/visualization/plot/__init__.py | 2 +- .../core/visualization/plot/matplotlib.py | 2 +- src/ansys/aedt/core/visualization/plot/pdf.py | 2 +- .../aedt/core/visualization/plot/pyvista.py | 2 +- .../aedt/core/visualization/post/__init__.py | 2 +- .../aedt/core/visualization/post/common.py | 2 +- .../core/visualization/post/compliance.py | 2 +- .../visualization/post/farfield_exporter.py | 2 +- .../core/visualization/post/field_data.py | 2 +- .../core/visualization/post/field_summary.py | 2 +- .../visualization/post/fields_calculator.py | 2 +- .../core/visualization/post/monitor_icepak.py | 2 +- .../core/visualization/post/post_3dlayout.py | 2 +- .../core/visualization/post/post_circuit.py | 2 +- .../core/visualization/post/post_common_3d.py | 2 +- .../core/visualization/post/post_icepak.py | 2 +- .../core/visualization/post/rcs_exporter.py | 2 +- .../core/visualization/post/solution_data.py | 2 +- .../aedt/core/visualization/post/spisim.py | 2 +- .../__init__.py | 2 +- .../com_parameters.py | 2 +- .../com_settings_mapping.py | 2 +- .../aedt/core/visualization/post/vrt_data.py | 2 +- .../core/visualization/report/__init__.py | 2 +- .../aedt/core/visualization/report/common.py | 2 +- .../core/visualization/report/constants.py | 2 +- .../aedt/core/visualization/report/emi.py | 2 +- .../aedt/core/visualization/report/eye.py | 2 +- .../aedt/core/visualization/report/field.py | 2 +- .../core/visualization/report/standard.py | 2 +- src/ansys/aedt/core/workflows/__init__.py | 2 +- .../aedt/core/workflows/circuit/__init__.py | 2 +- .../workflows/circuit/import_schematic.py | 2 +- .../workflows/customize_automation_tab.py | 2 +- .../aedt/core/workflows/emit/__init__.py | 2 +- .../aedt/core/workflows/hfss/__init__.py | 2 +- .../core/workflows/hfss/choke_designer.py | 2 +- .../hfss/push_excitation_from_file.py | 2 +- .../core/workflows/hfss3dlayout/__init__.py | 2 +- .../core/workflows/hfss3dlayout/cutout.py | 2 +- .../workflows/hfss3dlayout/export_layout.py | 2 +- .../workflows/hfss3dlayout/export_to_3d.py | 2 +- .../generate_arbitrary_wave_ports.py | 2 +- .../workflows/hfss3dlayout/parametrize_edb.py | 2 +- .../push_excitation_from_file_3dl.py | 2 +- .../aedt/core/workflows/icepak/__init__.py | 2 +- .../workflows/icepak/power_map_from_csv.py | 2 +- .../aedt/core/workflows/maxwell2d/__init__.py | 2 +- .../aedt/core/workflows/maxwell3d/__init__.py | 2 +- .../core/workflows/mechanical/__init__.py | 2 +- src/ansys/aedt/core/workflows/misc.py | 2 +- .../aedt/core/workflows/project/__init__.py | 2 +- .../project/advanced_fields_calculator.py | 2 +- .../core/workflows/project/configure_edb.py | 2 +- .../core/workflows/project/create_report.py | 2 +- .../core/workflows/project/import_nastran.py | 2 +- .../workflows/project/kernel_converter.py | 2 +- src/ansys/aedt/core/workflows/q2d/__init__.py | 2 +- src/ansys/aedt/core/workflows/q3d/__init__.py | 2 +- .../aedt/core/workflows/templates/__init__.py | 2 +- .../workflows/templates/extension_template.py | 2 +- .../core/workflows/templates/pyaedt_utils.py | 2 +- .../core/workflows/twinbuilder/__init__.py | 2 +- .../twinbuilder/convert_to_circuit.py | 2 +- tests/__init__.py | 2 +- tests/conftest.py | 2 +- tests/integration/__init__.py | 2 +- tests/integration/test_monostatic_rcs_data.py | 2 +- tests/integration/test_touchstone_data.py | 2 +- tests/system/__init__.py | 2 +- tests/system/general/__init__.py | 2 +- tests/system/general/conftest.py | 2 +- tests/system/general/test_01_3dlayout_edb.py | 2 +- tests/system/general/test_01_Design.py | 2 +- .../general/test_01_GeometryOperators.py | 2 +- .../general/test_01_configuration_files.py | 2 +- tests/system/general/test_01_data_handlers.py | 2 +- tests/system/general/test_01_downloads.py | 2 +- .../system/general/test_01_general_methods.py | 2 +- .../general/test_01_report_file_parser.py | 2 +- tests/system/general/test_01_toolkit_icons.py | 2 +- tests/system/general/test_02_2D_modeler.py | 2 +- tests/system/general/test_02_3D_modeler.py | 2 +- tests/system/general/test_03_Materials.py | 2 +- tests/system/general/test_04_SBR.py | 2 +- tests/system/general/test_05_Mesh.py | 2 +- .../system/general/test_06_MessageManager.py | 2 +- tests/system/general/test_07_Object3D.py | 2 +- tests/system/general/test_08_Primitives3D.py | 2 +- tests/system/general/test_09_Primitives2D.py | 2 +- .../system/general/test_09_VariableManager.py | 2 +- tests/system/general/test_11_Setup.py | 2 +- .../general/test_12_1_PostProcessing.py | 2 +- .../system/general/test_12_PostProcessing.py | 2 +- tests/system/general/test_13_LoadAEDTFile.py | 2 +- tests/system/general/test_14_AedtLogger.py | 2 +- tests/system/general/test_15_ibs_reader.py | 2 +- tests/system/general/test_16_3d_stackup.py | 2 +- tests/system/general/test_20_HFSS.py | 2 +- tests/system/general/test_21_Circuit.py | 2 +- .../general/test_22_Circuit_DynamicLink.py | 2 +- tests/system/general/test_27_Maxwell2D.py | 2 +- tests/system/general/test_28_Maxwell3D.py | 2 +- tests/system/general/test_29_Mechanical.py | 2 +- tests/system/general/test_30_Q2D.py | 2 +- tests/system/general/test_32_RMxprt.py | 2 +- tests/system/general/test_34_TwinBuilder.py | 2 +- .../system/general/test_35_MaxwellCircuit.py | 2 +- .../general/test_36_Q2D_PostProcessing.py | 2 +- .../general/test_37_Genetic_Algorithm.py | 2 +- .../general/test_41_3dlayout_modeler.py | 2 +- tests/system/general/test_43_CableModeling.py | 2 +- .../general/test_44_TouchstoneParser.py | 2 +- .../test_45_FilterSolutions/__init__.py | 2 +- .../resources/__init__.py | 2 +- .../resources/resources.py | 2 +- .../test_filter/__init__.py | 2 +- .../test_filter/test_attributes.py | 2 +- .../test_filter/test_dll_interface.py | 2 +- .../test_filter/test_graph_setup.py | 2 +- .../test_filter/test_ideal_response.py | 2 +- .../test_filter/test_multiple_bands_table.py | 2 +- .../test_filter/test_transmission_zeros.py | 2 +- .../test_lumped_export/__init__.py | 2 +- .../test_lumped_export/test_export_to_aedt.py | 2 +- .../test_optimization_goals_table.py | 2 +- .../test_lumped_filter/__init__.py | 2 +- .../test_lumped_nodes_and_leads.py | 2 +- .../test_lumped_parasitics.py | 2 +- ...test_lumped_termination_impedance_table.py | 2 +- .../test_lumped_topology.py | 2 +- .../test_raise_error.py | 2 +- tests/system/general/test_46_FarField.py | 2 +- .../system/general/test_47_CircuitNetlist.py | 2 +- tests/system/general/test_48_RCS_export.py | 2 +- .../general/test_49_RCS_data_plotter.py | 2 +- tests/system/general/test_98_Icepak.py | 2 +- tests/system/general/test_launch_desktop.py | 2 +- tests/system/solvers/__init__.py | 2 +- tests/system/solvers/conftest.py | 2 +- tests/system/solvers/test_00_analyze.py | 2 +- tests/system/solvers/test_01_pdf.py | 2 +- tests/system/solvers/test_26_emit.py | 2 +- tests/system/solvers/test_31_Q3D.py | 2 +- tests/system/solvers/test_45_workflows.py | 2 +- tests/unit/__init__.py | 2 +- tests/unit/conftest.py | 2 +- tests/unit/test_aedt_versions.py | 2 +- tests/unit/test_desktop.py | 2 +- tests/unit/test_extension_misc.py | 2 +- tests/unit/test_generic_filesystem.py | 2 +- tests/unit/test_hdm_parser.py | 2 +- tests/unit/test_maxwell_3d.py | 2 +- tests/unit/test_monostatic_rcs_data.py | 2 +- tests/unit/test_monostatic_rcs_exporter.py | 2 +- tests/unit/test_utils.py | 2 +- tests/unit/test_warnings.py | 2 +- 408 files changed, 8958 insertions(+), 5651 deletions(-) create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py diff --git a/LICENSE b/LICENSE index 6a949e7fd8c..4a8652561be 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +Copyright (c) 2021 - 2025 ANSYS, Inc. and/or its affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/src/ansys/aedt/core/Test.py b/src/ansys/aedt/core/Test.py index 4f56d605cf8..c01d7d88e6a 100644 --- a/src/ansys/aedt/core/Test.py +++ b/src/ansys/aedt/core/Test.py @@ -1,6 +1,31 @@ -import ansys.aedt.core +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + import tempfile +import ansys.aedt.core + from emit_core.emit_constants import EmiCategoryFilter AEDT_VERSION = "2025.1" @@ -8,8 +33,7 @@ temp_folder = tempfile.TemporaryDirectory(suffix=".ansys") -project_name = ansys.aedt.core.generate_unique_project_name( - root_name=temp_folder.name, project_name="antenna_cosite") +project_name = ansys.aedt.core.generate_unique_project_name(root_name=temp_folder.name, project_name="antenna_cosite") d = ansys.aedt.core.launch_desktop(AEDT_VERSION, NG_MODE, new_desktop=True) emit = ansys.aedt.core.Emit(project_name, version=AEDT_VERSION) @@ -20,9 +44,9 @@ rev = emit.results.analyze() cats = rev.get_emi_category_filter_enabled(EmiCategoryFilter.IN_CHANNEL_TX_INTERMOD) -#n1limit = rev.n_to_1_limit -#receivers = rev.get_receiver_names() +# n1limit = rev.n_to_1_limit +# receivers = rev.get_receiver_names() pass emit.save_project() -emit.release_desktop() \ No newline at end of file +emit.release_desktop() diff --git a/src/ansys/aedt/core/__init__.py b/src/ansys/aedt/core/__init__.py index 418d5dff37d..308837a69c8 100644 --- a/src/ansys/aedt/core/__init__.py +++ b/src/ansys/aedt/core/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/aedt_logger.py b/src/ansys/aedt/core/aedt_logger.py index b49b4a8664f..4a8011a99c3 100644 --- a/src/ansys/aedt/core/aedt_logger.py +++ b/src/ansys/aedt/core/aedt_logger.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/application/__init__.py b/src/ansys/aedt/core/application/__init__.py index 9c4476773da..b78d8fed76c 100644 --- a/src/ansys/aedt/core/application/__init__.py +++ b/src/ansys/aedt/core/application/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/application/aedt_file_management.py b/src/ansys/aedt/core/application/aedt_file_management.py index a7cc998f120..e2af1362e74 100644 --- a/src/ansys/aedt/core/application/aedt_file_management.py +++ b/src/ansys/aedt/core/application/aedt_file_management.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/application/aedt_objects.py b/src/ansys/aedt/core/application/aedt_objects.py index 7a40d704c13..318762b496a 100644 --- a/src/ansys/aedt/core/application/aedt_objects.py +++ b/src/ansys/aedt/core/application/aedt_objects.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/application/analysis.py b/src/ansys/aedt/core/application/analysis.py index 77789bf3177..e3ac21794d5 100644 --- a/src/ansys/aedt/core/application/analysis.py +++ b/src/ansys/aedt/core/application/analysis.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/application/analysis_3d.py b/src/ansys/aedt/core/application/analysis_3d.py index 5861bf50cff..e58bab2d0c8 100644 --- a/src/ansys/aedt/core/application/analysis_3d.py +++ b/src/ansys/aedt/core/application/analysis_3d.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/application/analysis_3d_layout.py b/src/ansys/aedt/core/application/analysis_3d_layout.py index dfae909eb90..bc30c54102a 100644 --- a/src/ansys/aedt/core/application/analysis_3d_layout.py +++ b/src/ansys/aedt/core/application/analysis_3d_layout.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/application/analysis_circuit_netlist.py b/src/ansys/aedt/core/application/analysis_circuit_netlist.py index 558b0760898..395fd5753bc 100644 --- a/src/ansys/aedt/core/application/analysis_circuit_netlist.py +++ b/src/ansys/aedt/core/application/analysis_circuit_netlist.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/application/analysis_hf.py b/src/ansys/aedt/core/application/analysis_hf.py index 1fda12d8a34..680a9310302 100644 --- a/src/ansys/aedt/core/application/analysis_hf.py +++ b/src/ansys/aedt/core/application/analysis_hf.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/application/analysis_maxwell_circuit.py b/src/ansys/aedt/core/application/analysis_maxwell_circuit.py index 4a58ff6879b..39441909e01 100644 --- a/src/ansys/aedt/core/application/analysis_maxwell_circuit.py +++ b/src/ansys/aedt/core/application/analysis_maxwell_circuit.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/application/analysis_nexxim.py b/src/ansys/aedt/core/application/analysis_nexxim.py index 08f9d93a8a1..b59dfe757ec 100644 --- a/src/ansys/aedt/core/application/analysis_nexxim.py +++ b/src/ansys/aedt/core/application/analysis_nexxim.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/application/analysis_r_m_xprt.py b/src/ansys/aedt/core/application/analysis_r_m_xprt.py index 4af51cf8634..44ed7582c86 100644 --- a/src/ansys/aedt/core/application/analysis_r_m_xprt.py +++ b/src/ansys/aedt/core/application/analysis_r_m_xprt.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/application/analysis_twin_builder.py b/src/ansys/aedt/core/application/analysis_twin_builder.py index 7bfd644282b..e26bc9d1b62 100644 --- a/src/ansys/aedt/core/application/analysis_twin_builder.py +++ b/src/ansys/aedt/core/application/analysis_twin_builder.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/application/design.py b/src/ansys/aedt/core/application/design.py index e35aa9c6795..da85eb05027 100644 --- a/src/ansys/aedt/core/application/design.py +++ b/src/ansys/aedt/core/application/design.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/application/design_solutions.py b/src/ansys/aedt/core/application/design_solutions.py index 8531a688e7b..000fef1aecc 100644 --- a/src/ansys/aedt/core/application/design_solutions.py +++ b/src/ansys/aedt/core/application/design_solutions.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/application/job_manager.py b/src/ansys/aedt/core/application/job_manager.py index 67f2777b570..f7f141a7f69 100644 --- a/src/ansys/aedt/core/application/job_manager.py +++ b/src/ansys/aedt/core/application/job_manager.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/application/variables.py b/src/ansys/aedt/core/application/variables.py index 5eea6526c6a..64077a37d3e 100644 --- a/src/ansys/aedt/core/application/variables.py +++ b/src/ansys/aedt/core/application/variables.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/circuit.py b/src/ansys/aedt/core/circuit.py index c6a8586be6c..09e086947b9 100644 --- a/src/ansys/aedt/core/circuit.py +++ b/src/ansys/aedt/core/circuit.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/circuit_netlist.py b/src/ansys/aedt/core/circuit_netlist.py index b5b4579ba1b..32a2ca72e58 100644 --- a/src/ansys/aedt/core/circuit_netlist.py +++ b/src/ansys/aedt/core/circuit_netlist.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/common_rpc.py b/src/ansys/aedt/core/common_rpc.py index 386c3b5e1a6..8cbc897ede1 100644 --- a/src/ansys/aedt/core/common_rpc.py +++ b/src/ansys/aedt/core/common_rpc.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/desktop.py b/src/ansys/aedt/core/desktop.py index 74ca83428cc..dacd45ea5f8 100644 --- a/src/ansys/aedt/core/desktop.py +++ b/src/ansys/aedt/core/desktop.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/downloads.py b/src/ansys/aedt/core/downloads.py index 9929387b0f3..137e697129a 100644 --- a/src/ansys/aedt/core/downloads.py +++ b/src/ansys/aedt/core/downloads.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/edb.py b/src/ansys/aedt/core/edb.py index c6934a099b0..4bfc71680ba 100644 --- a/src/ansys/aedt/core/edb.py +++ b/src/ansys/aedt/core/edb.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/emit.py b/src/ansys/aedt/core/emit.py index c479e30a4a9..c68a35bdd0e 100644 --- a/src/ansys/aedt/core/emit.py +++ b/src/ansys/aedt/core/emit.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/emit_core/__init__.py b/src/ansys/aedt/core/emit_core/__init__.py index e5e4680279d..070dc262fdf 100644 --- a/src/ansys/aedt/core/emit_core/__init__.py +++ b/src/ansys/aedt/core/emit_core/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/emit_core/couplings.py b/src/ansys/aedt/core/emit_core/couplings.py index 85b0b0b35c4..eef23546088 100644 --- a/src/ansys/aedt/core/emit_core/couplings.py +++ b/src/ansys/aedt/core/emit_core/couplings.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/emit_core/emit_constants.py b/src/ansys/aedt/core/emit_core/emit_constants.py index 909eaaf9066..11cc04d0462 100644 --- a/src/ansys/aedt/core/emit_core/emit_constants.py +++ b/src/ansys/aedt/core/emit_core/emit_constants.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # @@ -84,9 +84,9 @@ class UnitType(MutableEnum): } """Valid units for each unit type.""" -EMIT_DEFAULT_UNITS = { +EMIT_INTERNAL_UNITS = { "Power": "dBm", - "Frequency": "Hz", + "Freq": "Hz", "Length": "meter", "Time": "s", "Voltage": "V", @@ -96,89 +96,91 @@ class UnitType(MutableEnum): """Default units for each unit type.""" EMIT_TO_AEDT_UNITS = { - "picometers" : "pm", - "nanometers" : "nm", - "micrometers" : "um", - "millimeters": "mm", - "centimeters" : "cm", - "decimeters" : "dm", - "meters" : "meter", - "kilometers" : "km", - "inches" : "in", - "mils" : "mil", - "feet" : "ft", - "yards" : "yd", - "miles" : "mile", - "hertz" : "Hz", - "kilohertz" : "kHz", - "megahertz" : "MHz", - "gigahertz" : "GHz", - "terahertz" : "THz", - "picoseconds" : "ps", - "nanoseconds" : "ns", - "microseconds" : "us", - "milliseconds" : "ms", - "seconds" : "s", - "microohms" : "uOhm", - "milliohms" : "mOhm", - "ohms" : "ohm", - "kiloohms" : "kOhm", - "megaohms" : "megohm", - "gigaohms" : "GOhm", - "dBm" : "dBm", - "dBW" : "dBW", - "watts" : "W", - "milliwatts" : "mW", - "kilowatts" : "kW", - "nanovolts" : "nV", - "microvolts" : "uV", - "millivolts" : "mV", - "volts" : "V", - "kilovolts" : "kV", - "megavolts" : "MegV", - "bps" : "bps", - "kbps" : "kbps", - "Mbps" : "Mbps", - "Gbps" : "Gbps" + "picometers": "pm", + "nanometers": "nm", + "micrometers": "um", + "millimeters": "mm", + "centimeters": "cm", + "decimeters": "dm", + "meters": "meter", + "kilometers": "km", + "inches": "in", + "mils": "mil", + "feet": "ft", + "yards": "yd", + "miles": "mile", + "hertz": "Hz", + "kilohertz": "kHz", + "megahertz": "MHz", + "gigahertz": "GHz", + "terahertz": "THz", + "picoseconds": "ps", + "nanoseconds": "ns", + "microseconds": "us", + "milliseconds": "ms", + "seconds": "s", + "microohms": "uOhm", + "milliohms": "mOhm", + "ohms": "ohm", + "kiloohms": "kOhm", + "megaohms": "megohm", + "gigaohms": "GOhm", + "dBm": "dBm", + "dBW": "dBW", + "watts": "W", + "milliwatts": "mW", + "kilowatts": "kW", + "nanovolts": "nV", + "microvolts": "uV", + "millivolts": "mV", + "volts": "V", + "kilovolts": "kV", + "megavolts": "MegV", + "bps": "bps", + "kbps": "kbps", + "Mbps": "Mbps", + "Gbps": "Gbps", } -def data_rate_conv(value : float, units : str, to_default : bool = True): - """Converts the data rate to (from) the default units from the + +def data_rate_conv(value: float, units: str, to_internal: bool = True): + """Converts the data rate to (from) the internal units from the specified units. Args: value (float): numeric value of the data rate units (str): units to convert to (from) - to_default (bool, optional): Converts from the specified units - to the default units OR from the default units to the + to_internal (bool, optional): Converts from the specified units + to the internal units OR from the internal units to the specified units. Defaults to True. Returns: - value: data rate converted to/from the default units + value: data rate converted to/from the internal units """ - if to_default: - if units == 'bps': + if to_internal: + if units == "bps": mult = 1.0 - elif units == 'kbps': + elif units == "kbps": mult = 1e-3 - elif units == 'Mbps': + elif units == "Mbps": mult = 1e-6 - elif units == 'Gbps': + elif units == "Gbps": mult = 1e-9 else: raise ValueError(f"{units} are not valid units for data rate.") else: - if units == 'bps': + if units == "bps": mult = 1.0 - elif units == 'kbps': + elif units == "kbps": mult = 1e3 - elif units == 'Mbps': + elif units == "Mbps": mult = 1e6 - elif units == 'Gbps': + elif units == "Gbps": mult = 1e9 else: raise ValueError(f"{units} are not valid units for data rate.") - return value*mult + return value * mult + def emit_unit_type_string_to_enum(unit_string): EMIT_UNIT_TYPE_STRING_TO_ENUM = { diff --git a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py index e8fef0d3503..4bfb2322b4a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # @@ -22,13 +22,18 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. +from enum import Enum import warnings -from enum import Enum from ansys.aedt.core.emit_core.results import revision -from ..emit_constants import EMIT_VALID_UNITS, EMIT_DEFAULT_UNITS, EMIT_TO_AEDT_UNITS, data_rate_conv import ansys.aedt.core.generic.constants as consts +from ..emit_constants import EMIT_INTERNAL_UNITS +from ..emit_constants import EMIT_TO_AEDT_UNITS +from ..emit_constants import EMIT_VALID_UNITS +from ..emit_constants import data_rate_conv + + class EmitNode: # meant to only be used as a parent class def __init__(self, oDesign, result_id, node_id): @@ -37,17 +42,17 @@ def __init__(self, oDesign, result_id, node_id): self._result_id = result_id self._node_id = node_id self._valid = True - + def __eq__(self, other): - return ((self._result_id == other._result_id) and (self._node_id == other._node_id)) + return (self._result_id == other._result_id) and (self._node_id == other._node_id) @staticmethod def props_to_dict(props): result = {} for prop in props: split_prop = prop.split("=") - if split_prop[1].find('|') != -1: - result[split_prop[0]] = split_prop[1].split('|') + if split_prop[1].find("|") != -1: + result[split_prop[0]] = split_prop[1].split("|") result[split_prop[0]] = split_prop[1] return result @@ -102,7 +107,7 @@ def _get_node(self, id: int): props = self._oRevisionData.GetEmitNodeProperties(self._result_id, id, True) props = self.props_to_dict(props) - type = props['Type'] + type = props["Type"] node = None try: @@ -111,31 +116,31 @@ def _get_node(self, id: int): except AttributeError: node = EmitNode(self._oDesign, self._result_id, id) return node - + @property def children(self): child_names = self._oRevisionData.GetChildNodeNames(self._result_id, self._node_id) child_ids = [self._oRevisionData.GetChildNodeID(self._result_id, self._node_id, name) for name in child_names] child_nodes = [self._get_node(child_id) for child_id in child_ids] - return child_nodes - + return child_nodes + def _get_property(self, prop): props = self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, True) - kv_pairs = [prop.split('=') for prop in props] + kv_pairs = [prop.split("=") for prop in props] selected_kv_pairs = [kv for kv in kv_pairs if kv[0] == prop] if len(selected_kv_pairs) != 1: - return '' + return "" selected_kv_pair = selected_kv_pairs[0] val = selected_kv_pair[1] - if val.find('|') != -1: - return val.split('|') + if val.find("|") != -1: + return val.split("|") else: return val - + def _string_to_value_units(self, value): - # see if we can split it based on a space between number + # see if we can split it based on a space between number # and units vals = value.split(" ") if len(vals) == 2: @@ -149,77 +154,64 @@ def _string_to_value_units(self, value): units = value[i:] return dec_val, units raise ValueError(f"{value} are not valid units for this property.") - - def _convert_to_default_units(self, value : float|str, unit_type : str) -> float: - """Takes a value and converts to default EMIT units + + def _convert_to_internal_units(self, value: float | str, unit_system: str) -> float: + """Takes a value and converts to internal EMIT units used for internally storing the values. Args: - value (float | str): the specified value. If a float is specified, - then global unit settings are applied. If a string is specified, + value (float | str): the specified value. If a float is specified, + then global unit settings are applied. If a string is specified, then this function will split the value from the units and verify that valid units are given. - unit_type (str): type of units. (e.g. FrequencyUnit, PowerUnit, etc) + unit_system (str): type of units. (e.g. FrequencyUnit, PowerUnit, etc) Returns: - converted_value (float): value in EMIT default units (SI units where applicable). - + converted_value (float): value in EMIT internal units (SI units where applicable). + Examples: val = self._convert_to_default_units(25, "FrequencyUnits") val2 = self._convert_to_default_units("10 W", "PowerUnits") """ - unit_system = unit_type.split(' ')[0] if isinstance(value, float) or isinstance(value, int): - # get the global units - pref_node_id = self._oRevisionData.GetTopLevelNodeID(self._result_id, "Preferences") - props = self._oRevisionData.GetEmitNodeProperties(self._result_id, pref_node_id, True) - kv_pairs = [prop.split('=') for prop in props] - selected_kv_pairs = [kv for kv in kv_pairs if kv[0] == unit_type] - units = selected_kv_pairs[0][1] - units = EMIT_TO_AEDT_UNITS[units] + # unitless, so assume SI Units + units = consts.SI_UNITS[unit_system] else: value, units = self._string_to_value_units(value) - # verify the units are valid for the specified type + # verify the units are valid for the specified type if units not in EMIT_VALID_UNITS[unit_system]: raise ValueError(f"{units} are not valid units for this property.") - + if unit_system == "Data Rate": converted_value = data_rate_conv(value, units, True) else: - converted_value = consts.unit_converter(value, unit_system, units, EMIT_DEFAULT_UNITS[unit_system]) + converted_value = consts.unit_converter(value, unit_system, units, EMIT_INTERNAL_UNITS[unit_system]) return converted_value - - def _convert_from_default_units(self, value : float, unit_type : str) -> float: - """Takes a value and converts from default EMIT units to - the user specified units. + + def _convert_from_internal_units(self, value: float, unit_system: str) -> float: + """Takes a value and converts from internal EMIT units to + SI Units Args: value (float): the specified value. - unit_type (str): type of units. (e.g. Frequency Unit, Power Unit, etc) + unit_system (str): type of units. (e.g. Freq, Power, etc) Returns: - converted_value (float): value in global units. + converted_value (float): value in SI units. """ - unit_system = unit_type.rsplit(' ', 1)[0] - # get the global units - pref_node_id = self._oRevisionData.GetTopLevelNodeID(self._result_id, "Preferences") - props = self._oRevisionData.GetEmitNodeProperties(self._result_id, pref_node_id, True) - kv_pairs = [prop.split('=') for prop in props] - selected_kv_pairs = [kv for kv in kv_pairs if kv[0] == unit_type] - units = selected_kv_pairs[0][1] - units = EMIT_TO_AEDT_UNITS[units] - - if units not in EMIT_VALID_UNITS[unit_system]: - raise ValueError(f"{units} are not valid units for this property.") + # get the SI units + units = consts.SI_UNITS[unit_system] if unit_system == "Data Rate": converted_value = data_rate_conv(value, units, False) else: - converted_value = consts.unit_converter(value, unit_system, EMIT_DEFAULT_UNITS[unit_system], units) + converted_value = consts.unit_converter(value, unit_system, EMIT_INTERNAL_UNITS[unit_system], units) return converted_value def _delete(self): - if self._is_component(): self._oRevisionData.DeleteEmitComponent(self._result_id, self._node_id) - else: self._oRevisionData.DeleteEmitNode(self._result_id, self._node_id) + if self._is_component(): + self._oRevisionData.DeleteEmitComponent(self._result_id, self._node_id) + else: + self._oRevisionData.DeleteEmitNode(self._result_id, self._node_id) def _rename(self, requested_name): new_name = self._oRevisionData.RenameEmitNode(self._result_id, self._node_id, requested_name) @@ -243,20 +235,22 @@ def _get_child_node_id(self, child_name): def _get_table_data(self): rows = self._oRevisionData.GetTableData(self._result_id, self._node_id) - nested_list = [col.split(' ') for col in rows] + nested_list = [col.split(" ") for col in rows] return nested_list def _set_table_data(self, nested_list): - rows = [col.join(' ') for col in nested_list] + rows = [col.join(" ") for col in nested_list] self._oRevisionData.SetTableData(self._result_id, self._node_id, rows) - - def _add_child_node(self, child_type, child_name = None): + + def _add_child_node(self, child_type, child_name=None): if not child_name: - child_name = f'New {child_type}' + child_name = f"New {child_type}" new_id = None if child_type not in self.allowed_child_types: - raise ValueError(f"Child type {child_type} is not allowed for this node. Allowed types are: {self.allowed_child_types}") + raise ValueError( + f"Child type {child_type} is not allowed for this node. Allowed types are: {self.allowed_child_types}" + ) try: new_id = self._oRevisionData.CreateEmitNode(self._result_id, self._node_id, child_name, child_type) except Exception as e: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index 08d89e77afa..c7f9beabd8b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class Amplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -23,12 +48,12 @@ def filename(self) -> str: "Name of file defining the outboard component." "Value should be a full file path." """ - val = self._get_property('Filename') + val = self._get_property("Filename") return val @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filename=" + value]) @property def noise_temperature(self) -> float: @@ -36,41 +61,41 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - val = self._get_property('Noise Temperature') + val = self._get_property("Noise Temperature") return val @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Temperature=" + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) class AmplifierTypeOption(Enum): - TRANSMIT_AMPLIFIER = "Transmit Amplifier" - RECEIVE_AMPLIFIER = "Receive Amplifier" + TRANSMIT_AMPLIFIER = "Transmit Amplifier" + RECEIVE_AMPLIFIER = "Receive Amplifier" @property def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type "Configures the amplifier as a Tx or Rx amplifier." - " """ - val = self._get_property('Amplifier Type') + " """ + val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] return val @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Amplifier Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Amplifier Type=" + value.value]) @property def gain(self) -> float: @@ -78,12 +103,12 @@ def gain(self) -> float: "Amplifier in-band gain." "Value should be between 0 and 100." """ - val = self._get_property('Gain') + val = self._get_property("Gain") return val @gain.setter def gain(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Gain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Gain=" + value]) @property def center_frequency(self) -> float: @@ -91,14 +116,14 @@ def center_frequency(self) -> float: "Center frequency of amplifiers operational bandwidth." "Value should be between 1 and 1e+11." """ - val = self._get_property('Center Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Center Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @center_frequency.setter - def center_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Center Frequency=' + f"{value}"]) + def center_frequency(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Center Frequency=" + f"{value}"]) @property def bandwidth(self) -> float: @@ -106,14 +131,14 @@ def bandwidth(self) -> float: "Frequency region where the gain applies." "Value should be between 1 and 1e+11." """ - val = self._get_property('Bandwidth') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Bandwidth") + val = self._convert_from_internal_units(float(val), "Freq") return val @bandwidth.setter - def bandwidth(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth=' + f"{value}"]) + def bandwidth(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Bandwidth=" + f"{value}"]) @property def noise_figure(self) -> float: @@ -121,60 +146,59 @@ def noise_figure(self) -> float: "Amplifier noise figure." "Value should be between 0 and 100." """ - val = self._get_property('Noise Figure') + val = self._get_property("Noise Figure") return val @noise_figure.setter def noise_figure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Figure=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Figure=" + value]) @property def saturation_level(self) -> float: """Saturation Level "Saturation level." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ - val = self._get_property('Saturation Level') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("Saturation Level") + val = self._convert_from_internal_units(float(val), "Power") return val @saturation_level.setter - def saturation_level(self, value : float|str): - value = self._convert_to_default_units(value, "Power Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Saturation Level=' + f"{value}"]) + def saturation_level(self, value: float | str): + value = self._convert_to_internal_units(value, "Power") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Saturation Level=" + f"{value}"]) @property - def _1_db_point_ref_input(self) -> float: - """1-dB Point, Ref. Input + def p1_db_point_ref_input(self) -> float: + """P1-dB Point, Ref. Input "Incoming signals > this value saturate the amplifier." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ - val = self._get_property('1-dB Point, Ref. Input') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("P1-dB Point, Ref. Input") + val = self._convert_from_internal_units(float(val), "Power") return val - @_1_db_point_ref_input.setter - def _1_db_point_ref_input(self, value : float|str): - value = self._convert_to_default_units(value, "Power Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input=' + f"{value}"]) + @p1_db_point_ref_input.setter + def p1_db_point_ref_input(self, value: float | str): + value = self._convert_to_internal_units(value, "Power") + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["P1-dB Point, Ref. Input=" + f"{value}"] + ) @property def ip3_ref_input(self) -> float: """IP3, Ref. Input "3rd order intercept point." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ - val = self._get_property('IP3, Ref. Input') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("IP3, Ref. Input") + val = self._convert_from_internal_units(float(val), "Power") return val @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): - value = self._convert_to_default_units(value, "Power Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + f"{value}"]) + def ip3_ref_input(self, value: float | str): + value = self._convert_to_internal_units(value, "Power") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["IP3, Ref. Input=" + f"{value}"]) @property def shape_factor(self) -> float: @@ -182,12 +206,12 @@ def shape_factor(self) -> float: "Ratio defining the selectivity of the amplifier." "Value should be between 1 and 100." """ - val = self._get_property('Shape Factor') + val = self._get_property("Shape Factor") return val @shape_factor.setter def shape_factor(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Shape Factor=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Shape Factor=" + value]) @property def reverse_isolation(self) -> float: @@ -195,12 +219,12 @@ def reverse_isolation(self) -> float: "Amplifier reverse isolation." "Value should be between 0 and 200." """ - val = self._get_property('Reverse Isolation') + val = self._get_property("Reverse Isolation") return val @reverse_isolation.setter def reverse_isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Reverse Isolation=" + value]) @property def max_intermod_order(self) -> int: @@ -208,10 +232,9 @@ def max_intermod_order(self) -> int: "Maximum order of intermods to compute." "Value should be between 3 and 20." """ - val = self._get_property('Max Intermod Order') + val = self._get_property("Max Intermod Order") return val @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Intermod Order=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py index f68ae440a7a..cf4e484466a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class AntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -30,13 +55,13 @@ def delete(self): def tags(self) -> str: """Tags "Space delimited list of tags for coupling selections." - " """ - val = self._get_property('Tags') + " """ + val = self._get_property("Tags") return val @tags.setter def tags(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Tags=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Tags=" + value]) @property def show_relative_coordinates(self) -> bool: @@ -44,12 +69,14 @@ def show_relative_coordinates(self) -> bool: "Show antenna position and orientation in parent-node coords (False) or relative to placement coords (True)." "Value should be 'true' or 'false'." """ - val = self._get_property('Show Relative Coordinates') + val = self._get_property("Show Relative Coordinates") return val @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Show Relative Coordinates=" + value] + ) @property def position(self): @@ -57,12 +84,12 @@ def position(self): "Set position of the antenna in parent-node coordinates." "Value should be x/y/z, delimited by spaces." """ - val = self._get_property('Position') + val = self._get_property("Position") return val @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Position=" + value]) @property def relative_position(self): @@ -70,29 +97,29 @@ def relative_position(self): "Set position of the antenna relative to placement coordinates." "Value should be x/y/z, delimited by spaces." """ - val = self._get_property('Relative Position') + val = self._get_property("Relative Position") return val @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Relative Position=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Relative Position=" + value]) class OrientationModeOption(Enum): - RPYDEG = "Roll-Pitch-Yaw" - AETDEG = "Az-El-Twist" + RPYDEG = "Roll-Pitch-Yaw" + AETDEG = "Az-El-Twist" @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ - val = self._get_property('Orientation Mode') + " """ + val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Orientation Mode=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Orientation Mode=" + value.value]) @property def orientation(self): @@ -100,12 +127,12 @@ def orientation(self): "Set orientation of the antenna relative to parent-node coordinates." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - val = self._get_property('Orientation') + val = self._get_property("Orientation") return val @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Orientation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Orientation=" + value]) @property def relative_orientation(self): @@ -113,12 +140,12 @@ def relative_orientation(self): "Set orientation of the antenna relative to placement coordinates." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - val = self._get_property('Relative Orientation') + val = self._get_property("Relative Orientation") return val @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Relative Orientation=" + value]) @property def position_defined(self) -> bool: @@ -126,12 +153,12 @@ def position_defined(self) -> bool: "Toggles on/off the ability to define a position for the antenna." "Value should be 'true' or 'false'." """ - val = self._get_property('Position Defined') + val = self._get_property("Position Defined") return val @position_defined.setter def position_defined(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Position Defined=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Position Defined=" + value]) @property def antenna_temperature(self) -> float: @@ -139,36 +166,36 @@ def antenna_temperature(self) -> float: "Antenna noise temperature." "Value should be between 0 and 100000." """ - val = self._get_property('Antenna Temperature') + val = self._get_property("Antenna Temperature") return val @antenna_temperature.setter def antenna_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna Temperature=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna Temperature=" + value]) @property def type(self): """Type "Defines the type of antenna." - " """ - val = self._get_property('Type') + " """ + val = self._get_property("Type") return val @type.setter def type(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Type=" + value]) @property def antenna_file(self) -> str: """Antenna File "Value should be a full file path." """ - val = self._get_property('Antenna File') + val = self._get_property("Antenna File") return val @antenna_file.setter def antenna_file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna File=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna File=" + value]) @property def project_name(self) -> str: @@ -176,12 +203,12 @@ def project_name(self) -> str: "Name of imported HFSS Antenna project." "Value should be a full file path." """ - val = self._get_property('Project Name') + val = self._get_property("Project Name") return val @project_name.setter def project_name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Project Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Project Name=" + value]) @property def peak_gain(self) -> float: @@ -189,30 +216,30 @@ def peak_gain(self) -> float: "Set peak gain of antenna (dBi)." "Value should be between -200 and 200." """ - val = self._get_property('Peak Gain') + val = self._get_property("Peak Gain") return val @peak_gain.setter def peak_gain(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Peak Gain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Peak Gain=" + value]) class BoresightOption(Enum): - XAXIS = "+X Axis" - YAXIS = "+Y Axis" - ZAXIS = "+Z Axis" + XAXIS = "+X Axis" + YAXIS = "+Y Axis" + ZAXIS = "+Z Axis" @property def boresight(self) -> BoresightOption: """Boresight "Select peak beam direction in local coordinates." - " """ - val = self._get_property('Boresight') + " """ + val = self._get_property("Boresight") val = self.BoresightOption[val] return val @boresight.setter def boresight(self, value: BoresightOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Boresight=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Boresight=" + value.value]) @property def vertical_beamwidth(self) -> float: @@ -220,12 +247,12 @@ def vertical_beamwidth(self) -> float: "Set half-power beamwidth in local-coordinates elevation plane." "Value should be between 0.1 and 360." """ - val = self._get_property('Vertical Beamwidth') + val = self._get_property("Vertical Beamwidth") return val @vertical_beamwidth.setter def vertical_beamwidth(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Beamwidth=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Vertical Beamwidth=" + value]) @property def horizontal_beamwidth(self) -> float: @@ -233,12 +260,12 @@ def horizontal_beamwidth(self) -> float: "Set half-power beamwidth in local-coordinates azimuth plane." "Value should be between 0.1 and 360." """ - val = self._get_property('Horizontal Beamwidth') + val = self._get_property("Horizontal Beamwidth") return val @horizontal_beamwidth.setter def horizontal_beamwidth(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Horizontal Beamwidth=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Horizontal Beamwidth=" + value]) @property def extra_sidelobe(self) -> bool: @@ -246,12 +273,12 @@ def extra_sidelobe(self) -> bool: "Toggle (on/off) option to define two sidelobe levels." "Value should be 'true' or 'false'." """ - val = self._get_property('Extra Sidelobe') + val = self._get_property("Extra Sidelobe") return val @extra_sidelobe.setter def extra_sidelobe(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Extra Sidelobe=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Extra Sidelobe=" + value]) @property def first_sidelobe_level(self) -> float: @@ -259,12 +286,12 @@ def first_sidelobe_level(self) -> float: "Set reduction in the gain of Directive Beam antenna for first sidelobe level." "Value should be between 0 and 200." """ - val = self._get_property('First Sidelobe Level') + val = self._get_property("First Sidelobe Level") return val @first_sidelobe_level.setter def first_sidelobe_level(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['First Sidelobe Level=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["First Sidelobe Level=" + value]) @property def first_sidelobe_vert_bw(self) -> float: @@ -272,12 +299,12 @@ def first_sidelobe_vert_bw(self) -> float: "Set beamwidth of first sidelobe beam in theta direction." "Value should be between 0.1 and 360." """ - val = self._get_property('First Sidelobe Vert. BW') + val = self._get_property("First Sidelobe Vert. BW") return val @first_sidelobe_vert_bw.setter def first_sidelobe_vert_bw(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['First Sidelobe Vert. BW=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["First Sidelobe Vert. BW=" + value]) @property def first_sidelobe_hor_bw(self) -> float: @@ -285,12 +312,12 @@ def first_sidelobe_hor_bw(self) -> float: "Set beamwidth of first sidelobe beam in phi direction." "Value should be between 0.1 and 360." """ - val = self._get_property('First Sidelobe Hor. BW') + val = self._get_property("First Sidelobe Hor. BW") return val @first_sidelobe_hor_bw.setter def first_sidelobe_hor_bw(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['First Sidelobe Hor. BW=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["First Sidelobe Hor. BW=" + value]) @property def outerbacklobe_level(self) -> float: @@ -298,12 +325,12 @@ def outerbacklobe_level(self) -> float: "Set reduction in gain of Directive Beam antenna for outer/backlobe level." "Value should be between 0 and 200." """ - val = self._get_property('Outer/Backlobe Level') + val = self._get_property("Outer/Backlobe Level") return val @outerbacklobe_level.setter def outerbacklobe_level(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Outer/Backlobe Level=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Outer/Backlobe Level=" + value]) @property def resonant_frequency(self) -> float: @@ -311,78 +338,74 @@ def resonant_frequency(self) -> float: "Set first resonant frequency of wire dipole, monopole, or parametric antenna." "Value should be between 1 and 1e+13." """ - val = self._get_property('Resonant Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Resonant Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @resonant_frequency.setter - def resonant_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Resonant Frequency=' + f"{value}"]) + def resonant_frequency(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Resonant Frequency=" + f"{value}"]) @property def slot_length(self) -> float: """Slot Length "Set slot length of parametric slot." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ - val = self._get_property('Slot Length') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Slot Length") + val = self._convert_from_internal_units(float(val), "Length") return val @slot_length.setter - def slot_length(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Slot Length=' + f"{value}"]) + def slot_length(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Slot Length=" + f"{value}"]) @property def mouth_width(self) -> float: """Mouth Width "Set mouth width (along local y-axis) of the horn antenna." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 1e-06 and 100." """ - val = self._get_property('Mouth Width') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Mouth Width") + val = self._convert_from_internal_units(float(val), "Length") return val @mouth_width.setter - def mouth_width(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mouth Width=' + f"{value}"]) + def mouth_width(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Mouth Width=" + f"{value}"]) @property def mouth_height(self) -> float: """Mouth Height "Set mouth height (along local x-axis) of the horn antenna." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 1e-06 and 100." """ - val = self._get_property('Mouth Height') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Mouth Height") + val = self._convert_from_internal_units(float(val), "Length") return val @mouth_height.setter - def mouth_height(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mouth Height=' + f"{value}"]) + def mouth_height(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Mouth Height=" + f"{value}"]) @property def waveguide_width(self) -> float: """Waveguide Width "Set waveguide width (along local y-axis) where flared horn walls meet the feed, determines cut-off frequency." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 1e-06 and 100." """ - val = self._get_property('Waveguide Width') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Waveguide Width") + val = self._convert_from_internal_units(float(val), "Length") return val @waveguide_width.setter - def waveguide_width(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Waveguide Width=' + f"{value}"]) + def waveguide_width(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Waveguide Width=" + f"{value}"]) @property def width_flare_half_angle(self) -> float: @@ -390,12 +413,12 @@ def width_flare_half_angle(self) -> float: "Set half-angle (degrees) of flared horn walls measured in local yz-plane from boresight (z) axis to either wall." "Value should be between 1 and 89.9." """ - val = self._get_property('Width Flare Half-angle') + val = self._get_property("Width Flare Half-angle") return val @width_flare_half_angle.setter def width_flare_half_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Width Flare Half-angle=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Width Flare Half-angle=" + value]) @property def height_flare_half_angle(self) -> float: @@ -403,28 +426,27 @@ def height_flare_half_angle(self) -> float: "Set half-angle (degrees) of flared horn walls measured in local xz-plane from boresight (z) axis to either wall." "Value should be between 1 and 89.9." """ - val = self._get_property('Height Flare Half-angle') + val = self._get_property("Height Flare Half-angle") return val @height_flare_half_angle.setter def height_flare_half_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Height Flare Half-angle=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Height Flare Half-angle=" + value]) @property def mouth_diameter(self) -> float: """Mouth Diameter "Set aperture (mouth) diameter of horn antenna." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 1e-06 and 100." """ - val = self._get_property('Mouth Diameter') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Mouth Diameter") + val = self._convert_from_internal_units(float(val), "Length") return val @mouth_diameter.setter - def mouth_diameter(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mouth Diameter=' + f"{value}"]) + def mouth_diameter(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Mouth Diameter=" + f"{value}"]) @property def flare_half_angle(self) -> float: @@ -432,12 +454,12 @@ def flare_half_angle(self) -> float: "Set half-angle (degrees) of conical horn wall measured from boresight (z)." "Value should be between 1 and 89.9." """ - val = self._get_property('Flare Half-angle') + val = self._get_property("Flare Half-angle") return val @flare_half_angle.setter def flare_half_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Flare Half-angle=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Flare Half-angle=" + value]) @property def vswr(self) -> float: @@ -445,65 +467,69 @@ def vswr(self) -> float: "The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch between the antenna and the RF System (or outboard component)." "Value should be between 1 and 100." """ - val = self._get_property('VSWR') + val = self._get_property("VSWR") return val @vswr.setter def vswr(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['VSWR=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["VSWR=" + value]) class AntennaPolarizationOption(Enum): - VERTICAL = "Vertical" - HORIZONTAL = "Horizontal" - RHCP = "RHCP" - LHCP = "LHCP" + VERTICAL = "Vertical" + HORIZONTAL = "Horizontal" + RHCP = "RHCP" + LHCP = "LHCP" @property def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization "Choose local-coordinates polarization along boresight." - " """ - val = self._get_property('Antenna Polarization') + " """ + val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] return val @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna Polarization=' + value.value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Antenna Polarization=" + value.value] + ) class CrossDipoleModeOption(Enum): - FREESTANDING = "Freestanding" - OVER_GROUND_PLANE = "Over Ground Plane" + FREESTANDING = "Freestanding" + OVER_GROUND_PLANE = "Over Ground Plane" @property def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode "Choose the Cross Dipole type." - " """ - val = self._get_property('Cross Dipole Mode') + " """ + val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] return val @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Cross Dipole Mode=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Cross Dipole Mode=" + value.value]) class CrossDipolePolarizationOption(Enum): - RHCP = "RHCP" - LHCP = "LHCP" + RHCP = "RHCP" + LHCP = "LHCP" @property def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization "Choose local-coordinates polarization along boresight." - " """ - val = self._get_property('Cross Dipole Polarization') + " """ + val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] return val @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Cross Dipole Polarization=' + value.value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Cross Dipole Polarization=" + value.value] + ) @property def override_height(self) -> bool: @@ -511,28 +537,27 @@ def override_height(self) -> bool: "Ignores the default placement of quarter design wavelength over the ground plane." "Value should be 'true' or 'false'." """ - val = self._get_property('Override Height') + val = self._get_property("Override Height") return val @override_height.setter def override_height(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Override Height=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Override Height=" + value]) @property def offset_height(self) -> float: """Offset Height "Sets the offset height for the current sources above the ground plane." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 0." """ - val = self._get_property('Offset Height') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Offset Height") + val = self._convert_from_internal_units(float(val), "Length") return val @offset_height.setter - def offset_height(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Offset Height=' + f"{value}"]) + def offset_height(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Offset Height=" + f"{value}"]) @property def auto_height_offset(self) -> bool: @@ -540,12 +565,12 @@ def auto_height_offset(self) -> bool: "Switch on to automatically place slot current at sub-wavelength offset height above ground plane." "Value should be 'true' or 'false'." """ - val = self._get_property('Auto Height Offset') + val = self._get_property("Auto Height Offset") return val @auto_height_offset.setter def auto_height_offset(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Auto Height Offset=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Auto Height Offset=" + value]) @property def conform__adjust_antenna(self) -> bool: @@ -553,12 +578,12 @@ def conform__adjust_antenna(self) -> bool: "Toggle (on/off) conformal adjustment for array antenna elements." "Value should be 'true' or 'false'." """ - val = self._get_property('Conform / Adjust Antenna') + val = self._get_property("Conform / Adjust Antenna") return val @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Conform / Adjust Antenna=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Conform / Adjust Antenna=" + value]) @property def element_offset(self): @@ -566,48 +591,50 @@ def element_offset(self): "Set vector for shifting element positions in antenna local coordinates." "Value should be x/y/z, delimited by spaces." """ - val = self._get_property('Element Offset') + val = self._get_property("Element Offset") return val @element_offset.setter def element_offset(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Element Offset=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Element Offset=" + value]) class ConformtoPlatformOption(Enum): - NONE = "None" - ALONG_NORMAL = "Along Normal" - PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" + NONE = "None" + ALONG_NORMAL = "Along Normal" + PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" @property def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform "Select method of automated conforming applied after Element Offset." - " """ - val = self._get_property('Conform to Platform') + " """ + val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] return val @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Conform to Platform=' + value.value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Conform to Platform=" + value.value] + ) class ReferencePlaneOption(Enum): - XY_PLANE = "XY Plane" - YZ_PLANE = "YZ Plane" - ZX_PLANE = "ZX Plane" + XY_PLANE = "XY Plane" + YZ_PLANE = "YZ Plane" + ZX_PLANE = "ZX Plane" @property def reference_plane(self) -> ReferencePlaneOption: """Reference Plane "Select reference plane for determining original element heights." - " """ - val = self._get_property('Reference Plane') + " """ + val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] return val @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Reference Plane=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Reference Plane=" + value.value]) @property def conform_element_orientation(self) -> bool: @@ -615,12 +642,14 @@ def conform_element_orientation(self) -> bool: "Toggle (on/off) re-orientation of elements to conform to curved placement surface." "Value should be 'true' or 'false'." """ - val = self._get_property('Conform Element Orientation') + val = self._get_property("Conform Element Orientation") return val @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Conform Element Orientation=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Conform Element Orientation=" + value] + ) @property def show_axes(self) -> bool: @@ -628,12 +657,12 @@ def show_axes(self) -> bool: "Toggle (on/off) display of antenna coordinate axes in 3-D window." "Value should be 'true' or 'false'." """ - val = self._get_property('Show Axes') + val = self._get_property("Show Axes") return val @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Show Axes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Show Axes=" + value]) @property def show_icon(self) -> bool: @@ -641,12 +670,12 @@ def show_icon(self) -> bool: "Toggle (on/off) display of antenna marker (cone) in 3-D window." "Value should be 'true' or 'false'." """ - val = self._get_property('Show Icon') + val = self._get_property("Show Icon") return val @show_icon.setter def show_icon(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Show Icon=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Show Icon=" + value]) @property def size(self) -> float: @@ -654,12 +683,12 @@ def size(self) -> float: "Adjust relative size of antenna marker (cone) in 3-D window." "Value should be between 0.001 and 1." """ - val = self._get_property('Size') + val = self._get_property("Size") return val @size.setter def size(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Size=" + value]) @property def color(self): @@ -667,27 +696,27 @@ def color(self): "Set color of antenna marker (cone) in 3-D window." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Color') + val = self._get_property("Color") return val @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Color=" + value]) @property def el_sample_interval(self) -> float: """El Sample Interval "Space between elevation-angle samples of pattern." - " """ - val = self._get_property('El Sample Interval') + " """ + val = self._get_property("El Sample Interval") return val @property def az_sample_interval(self) -> float: """Az Sample Interval "Space between azimuth-angle samples of pattern." - " """ - val = self._get_property('Az Sample Interval') + " """ + val = self._get_property("Az Sample Interval") return val @property @@ -696,94 +725,95 @@ def has_frequency_domain(self) -> bool: "False if antenna can be used at any frequency." "Value should be 'true' or 'false'." """ - val = self._get_property('Has Frequency Domain') + val = self._get_property("Has Frequency Domain") return val @property def frequency_domain(self): """Frequency Domain "Frequency sample(s) defining antenna." - " """ - val = self._get_property('Frequency Domain') + " """ + val = self._get_property("Frequency Domain") return val @property def number_of_electric_sources(self) -> int: """Number of Electric Sources "Number of freestanding electric current sources defining antenna." - " """ - val = self._get_property('Number of Electric Sources') + " """ + val = self._get_property("Number of Electric Sources") return val @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources "Number of freestanding magnetic current sources defining antenna." - " """ - val = self._get_property('Number of Magnetic Sources') + " """ + val = self._get_property("Number of Magnetic Sources") return val @property def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources "Number of imaged, half-space radiating electric current sources defining antenna." - " """ - val = self._get_property('Number of Imaged Electric Sources') + " """ + val = self._get_property("Number of Imaged Electric Sources") return val @property def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources "Number of imaged, half-space radiating magnetic current sources defining antenna." - " """ - val = self._get_property('Number of Imaged Magnetic Sources') + " """ + val = self._get_property("Number of Imaged Magnetic Sources") return val @property def waveguide_height(self) -> float: """Waveguide Height "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." - " """ - val = self._get_property('Waveguide Height') - val = self._convert_from_default_units(float(val), "Length Unit") + " """ + val = self._get_property("Waveguide Height") + val = self._convert_from_internal_units(float(val), "Length") return val @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." - " """ - val = self._get_property('Waveguide Cutoff Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + " """ + val = self._get_property("Waveguide Cutoff Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." - " """ - val = self._get_property('Aperture Cutoff Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + " """ + val = self._get_property("Aperture Cutoff Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val class SWEModeTruncationOption(Enum): - DYNAMIC = "Dynamic" - CUSTOM = "Fixed (Custom)" - NONE = "None" + DYNAMIC = "Dynamic" + CUSTOM = "Fixed (Custom)" + NONE = "None" @property def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation "Select the method for stability-enhancing truncation of spherical wave expansion terms." - " """ - val = self._get_property('SWE Mode Truncation') + " """ + val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] return val @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['SWE Mode Truncation=' + value.value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["SWE Mode Truncation=" + value.value] + ) @property def max_n_index(self) -> int: @@ -791,24 +821,24 @@ def max_n_index(self) -> int: "Set maximum allowed index N for spherical wave expansion terms." "Value should be greater than 1." """ - val = self._get_property('Max N Index') + val = self._get_property("Max N Index") return val @max_n_index.setter def max_n_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max N Index=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max N Index=" + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) @property def show_composite_passband(self) -> bool: @@ -816,12 +846,12 @@ def show_composite_passband(self) -> bool: "Show plot instead of 3D window." "Value should be 'true' or 'false'." """ - val = self._get_property('Show Composite Passband') + val = self._get_property("Show Composite Passband") return val @show_composite_passband.setter def show_composite_passband(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Show Composite Passband=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Show Composite Passband=" + value]) @property def use_phase_center(self) -> bool: @@ -829,19 +859,19 @@ def use_phase_center(self) -> bool: "Use the phase center defined in the HFSS design." "Value should be 'true' or 'false'." """ - val = self._get_property('Use Phase Center') + val = self._get_property("Use Phase Center") return val @use_phase_center.setter def use_phase_center(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Use Phase Center=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Use Phase Center=" + value]) @property def coordinate_systems(self) -> str: """Coordinate Systems "Specifies the coordinate system for the phase center of this antenna." - " """ - val = self._get_property('Coordinate Systems') + " """ + val = self._get_property("Coordinate Systems") return val @property @@ -850,7 +880,7 @@ def phasecenterposition(self): "Set position of the antennas linked coordinate system.." "Value should be x/y/z, delimited by spaces." """ - val = self._get_property('PhaseCenterPosition') + val = self._get_property("PhaseCenterPosition") return val @property @@ -859,6 +889,5 @@ def phasecenterorientation(self): "Set orientation of the antennas linked coordinate system.." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - val = self._get_property('PhaseCenterOrientation') + val = self._get_property("PhaseCenterOrientation") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py index 22151ef12ac..7c3c62426fe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class AntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -25,11 +50,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) @property def passband_loss(self) -> float: @@ -37,12 +62,12 @@ def passband_loss(self) -> float: "Passband loss." "Value should be between 0 and 100." """ - val = self._get_property('Passband Loss') + val = self._get_property("Passband Loss") return val @passband_loss.setter def passband_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Passband Loss=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Passband Loss=" + value]) @property def out_of_band_attenuation(self) -> float: @@ -50,12 +75,12 @@ def out_of_band_attenuation(self) -> float: "Out of band antenna loss." "Value should be between 0 and 200." """ - val = self._get_property('Out of Band Attenuation') + val = self._get_property("Out of Band Attenuation") return val @out_of_band_attenuation.setter def out_of_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Out of Band Attenuation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Out of Band Attenuation=" + value]) @property def lower_stop_band(self) -> float: @@ -63,14 +88,14 @@ def lower_stop_band(self) -> float: "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @lower_stop_band.setter - def lower_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + f"{value}"]) + def lower_stop_band(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Stop Band=" + f"{value}"]) @property def lower_cutoff(self) -> float: @@ -78,14 +103,14 @@ def lower_cutoff(self) -> float: "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @lower_cutoff.setter - def lower_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + f"{value}"]) + def lower_cutoff(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Cutoff=" + f"{value}"]) @property def higher_cutoff(self) -> float: @@ -93,14 +118,14 @@ def higher_cutoff(self) -> float: "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @higher_cutoff.setter - def higher_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + f"{value}"]) + def higher_cutoff(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Cutoff=" + f"{value}"]) @property def higher_stop_band(self) -> float: @@ -108,24 +133,23 @@ def higher_stop_band(self) -> float: "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @higher_stop_band.setter - def higher_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + f"{value}"]) + def higher_stop_band(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Stop Band=" + f"{value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index dce92cd2d0a..926456175f3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class Band(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,23 +38,23 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) @property def port(self): """Port "Radio Port associated with this Band." - " """ - val = self._get_property('Port') + " """ + val = self._get_property("Port") return val @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Port=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Port=" + value]) @property def use_dd_1494_mode(self) -> bool: @@ -37,12 +62,12 @@ def use_dd_1494_mode(self) -> bool: "Uses DD-1494 parameters to define the Tx/Rx spectrum." "Value should be 'true' or 'false'." """ - val = self._get_property('Use DD-1494 Mode') + val = self._get_property("Use DD-1494 Mode") return val @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Use DD-1494 Mode=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Use DD-1494 Mode=" + value]) @property def use_emission_designator(self) -> bool: @@ -50,40 +75,40 @@ def use_emission_designator(self) -> bool: "Uses the Emission Designator to define the bandwidth and modulation." "Value should be 'true' or 'false'." """ - val = self._get_property('Use Emission Designator') + val = self._get_property("Use Emission Designator") return val @use_emission_designator.setter def use_emission_designator(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Use Emission Designator=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Use Emission Designator=" + value]) @property def emission_designator(self) -> str: """Emission Designator "Enter the Emission Designator to define the bandwidth and modulation." - " """ - val = self._get_property('Emission Designator') + " """ + val = self._get_property("Emission Designator") return val @emission_designator.setter def emission_designator(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Emission Designator=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Emission Designator=" + value]) @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." - " """ - val = self._get_property('Emission Designator Ch. BW') - val = self._convert_from_default_units(float(val), "Freq Unit") + " """ + val = self._get_property("Emission Designator Ch. BW") + val = self._convert_from_internal_units(float(val), "Freq") return val @property def emit_modulation_type(self) -> str: """EMIT Modulation Type "Modulation based off the emission designator." - " """ - val = self._get_property('EMIT Modulation Type') + " """ + val = self._get_property("EMIT Modulation Type") return val @property @@ -92,12 +117,14 @@ def override_emission_designator_bw(self) -> bool: "Enables the 3 dB channel bandwidth to equal a value < emission designator bandwidth." "Value should be 'true' or 'false'." """ - val = self._get_property('Override Emission Designator BW') + val = self._get_property("Override Emission Designator BW") return val @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Override Emission Designator BW=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Override Emission Designator BW=" + value] + ) @property def channel_bandwidth(self) -> float: @@ -105,60 +132,40 @@ def channel_bandwidth(self) -> float: "Channel Bandwidth." "Value should be greater than 1." """ - val = self._get_property('Channel Bandwidth') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Channel Bandwidth") + val = self._convert_from_internal_units(float(val), "Freq") return val @channel_bandwidth.setter - def channel_bandwidth(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Channel Bandwidth=' + f"{value}"]) + def channel_bandwidth(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Channel Bandwidth=" + f"{value}"]) class ModulationOption(Enum): - GENERIC = "Generic" - AM = "AM" - LSB = "LSB" - USB = "USB" - FM = "FM" - FSK = "FSK" - MSK = "MSK" - PSK = "PSK" - QAM = "QAM" - APSK = "APSK" - RADAR = "Radar" + GENERIC = "Generic" + AM = "AM" + LSB = "LSB" + USB = "USB" + FM = "FM" + FSK = "FSK" + MSK = "MSK" + PSK = "PSK" + QAM = "QAM" + APSK = "APSK" + RADAR = "Radar" @property def modulation(self) -> ModulationOption: """Modulation "Modulation used for the transmitted/received signal." - " """ - val = self._get_property('Modulation') + " """ + val = self._get_property("Modulation") val = self.ModulationOption[val] return val @modulation.setter def modulation(self, value: ModulationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Modulation=' + value.value]) - - class WaveformOption(Enum): - PERIODIC_CLOCK = "Periodic Clock" - SPREAD_SPECTRUM = "Spread Spectrum Clock" - PRBS = "PRBS" - PRBS_PERIODIC = "PRBS (Periodic)" - IMPORTED = "Imported" - - @property - def waveform(self) -> WaveformOption: - """Waveform - "Modulation used for the transmitted/received signal." - " """ - val = self._get_property('Waveform') - val = self.WaveformOption[val] - return val - - @waveform.setter - def waveform(self, value: WaveformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Waveform=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Modulation=" + value.value]) @property def max_modulating_freq(self) -> float: @@ -166,14 +173,16 @@ def max_modulating_freq(self) -> float: "Maximum modulating frequency: helps determine spectral profile." "Value should be greater than 1." """ - val = self._get_property('Max Modulating Freq.') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Max Modulating Freq.") + val = self._convert_from_internal_units(float(val), "Freq") return val @max_modulating_freq.setter - def max_modulating_freq(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Modulating Freq.=' + f"{value}"]) + def max_modulating_freq(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Max Modulating Freq.=" + f"{value}"] + ) @property def modulation_index(self) -> float: @@ -181,12 +190,12 @@ def modulation_index(self) -> float: "AM modulation index: helps determine spectral profile." "Value should be between 0.01 and 1." """ - val = self._get_property('Modulation Index') + val = self._get_property("Modulation Index") return val @modulation_index.setter def modulation_index(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Modulation Index=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Modulation Index=" + value]) @property def freq_deviation(self) -> float: @@ -194,30 +203,29 @@ def freq_deviation(self) -> float: "Frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ - val = self._get_property('Freq. Deviation') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Freq. Deviation") + val = self._convert_from_internal_units(float(val), "Freq") return val @freq_deviation.setter - def freq_deviation(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Freq. Deviation=' + f"{value}"]) + def freq_deviation(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Freq. Deviation=" + f"{value}"]) @property def bit_rate(self) -> float: """Bit Rate "Maximum bit rate: helps determine width of spectral profile." - "Units options: bps, kbps, Mbps, Gbps." "Value should be greater than 1." """ - val = self._get_property('Bit Rate') - val = self._convert_from_default_units(float(val), "Data Rate Unit") + val = self._get_property("Bit Rate") + val = self._convert_from_internal_units(float(val), "Data Rate") return val @bit_rate.setter - def bit_rate(self, value : float|str): - value = self._convert_to_default_units(value, "Data Rate Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Bit Rate=' + f"{value}"]) + def bit_rate(self, value: float | str): + value = self._convert_to_internal_units(value, "Data Rate") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Bit Rate=" + f"{value}"]) @property def sidelobes(self) -> int: @@ -225,106 +233,106 @@ def sidelobes(self) -> int: "Number of sidelobes in spectral profile." "Value should be greater than 0." """ - val = self._get_property('Sidelobes') + val = self._get_property("Sidelobes") return val @sidelobes.setter def sidelobes(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Sidelobes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Sidelobes=" + value]) @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ - val = self._get_property('Freq. Deviation ') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Freq. Deviation ") + val = self._convert_from_internal_units(float(val), "Freq") return val @freq_deviation_.setter - def freq_deviation_(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Freq. Deviation =' + f"{value}"]) + def freq_deviation_(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Freq. Deviation =" + f"{value}"]) class PSKTypeOption(Enum): - BPSK = "BPSK" - QPSK = "QPSK" - _8_PSK = "8-PSK" - _16_PSK = "16-PSK" - _32_PSK = "32-PSK" - _64_PSK = "64-PSK" + BPSK = "BPSK" + QPSK = "QPSK" + _8_PSK = "8-PSK" + _16_PSK = "16-PSK" + _32_PSK = "32-PSK" + _64_PSK = "64-PSK" @property def psk_type(self) -> PSKTypeOption: """PSK Type "PSK modulation order: helps determine spectral profile." - " """ - val = self._get_property('PSK Type') + " """ + val = self._get_property("PSK Type") val = self.PSKTypeOption[val] return val @psk_type.setter def psk_type(self, value: PSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['PSK Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["PSK Type=" + value.value]) class FSKTypeOption(Enum): - _2_FSK = "2-FSK" - _4_FSK = "4-FSK" - _8_FSK = "8-FSK" + _2_FSK = "2-FSK" + _4_FSK = "4-FSK" + _8_FSK = "8-FSK" @property def fsk_type(self) -> FSKTypeOption: """FSK Type "FSK modulation order: helps determine spectral profile." - " """ - val = self._get_property('FSK Type') + " """ + val = self._get_property("FSK Type") val = self.FSKTypeOption[val] return val @fsk_type.setter def fsk_type(self, value: FSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['FSK Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["FSK Type=" + value.value]) class QAMTypeOption(Enum): - _4_QAM = "4-QAM" - _16_QAM = "16-QAM" - _64_QAM = "64-QAM" - _256_QAM = "256-QAM" - _1024_QAM = "1024-QAM" + _4_QAM = "4-QAM" + _16_QAM = "16-QAM" + _64_QAM = "64-QAM" + _256_QAM = "256-QAM" + _1024_QAM = "1024-QAM" @property def qam_type(self) -> QAMTypeOption: """QAM Type "QAM modulation order: helps determine spectral profile." - " """ - val = self._get_property('QAM Type') + " """ + val = self._get_property("QAM Type") val = self.QAMTypeOption[val] return val @qam_type.setter def qam_type(self, value: QAMTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['QAM Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["QAM Type=" + value.value]) class APSKTypeOption(Enum): - _4_APSK = "4-APSK" - _16_APSK = "16-APSK" - _64_APSK = "64-APSK" - _256_APSK = "256-APSK" - _1024_APSK = "1024-APSK" + _4_APSK = "4-APSK" + _16_APSK = "16-APSK" + _64_APSK = "64-APSK" + _256_APSK = "256-APSK" + _1024_APSK = "1024-APSK" @property def apsk_type(self) -> APSKTypeOption: """APSK Type "APSK modulation order: helps determine spectral profile." - " """ - val = self._get_property('APSK Type') + " """ + val = self._get_property("APSK Type") val = self.APSKTypeOption[val] return val @apsk_type.setter def apsk_type(self, value: APSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['APSK Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["APSK Type=" + value.value]) @property def start_frequency(self) -> float: @@ -332,14 +340,14 @@ def start_frequency(self) -> float: "First frequency for this band." "Value should be between 1 and 1e+11." """ - val = self._get_property('Start Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Start Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @start_frequency.setter - def start_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Start Frequency=' + f"{value}"]) + def start_frequency(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Start Frequency=" + f"{value}"]) @property def stop_frequency(self) -> float: @@ -347,14 +355,14 @@ def stop_frequency(self) -> float: "Last frequency for this band." "Value should be between 1 and 1e+11." """ - val = self._get_property('Stop Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Stop Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @stop_frequency.setter - def stop_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Stop Frequency=' + f"{value}"]) + def stop_frequency(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Stop Frequency=" + f"{value}"]) @property def channel_spacing(self) -> float: @@ -362,14 +370,14 @@ def channel_spacing(self) -> float: "Spacing between channels within this band." "Value should be between 1 and 1e+11." """ - val = self._get_property('Channel Spacing') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Channel Spacing") + val = self._convert_from_internal_units(float(val), "Freq") return val @channel_spacing.setter - def channel_spacing(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Channel Spacing=' + f"{value}"]) + def channel_spacing(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Channel Spacing=" + f"{value}"]) @property def tx_offset(self) -> float: @@ -377,366 +385,34 @@ def tx_offset(self) -> float: "Frequency offset between Tx and Rx channels." "Value should be less than 1e+11." """ - val = self._get_property('Tx Offset') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Tx Offset") + val = self._convert_from_internal_units(float(val), "Freq") return val @tx_offset.setter - def tx_offset(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Tx Offset=' + f"{value}"]) - - @property - def clock_duty_cycle(self) -> float: - """Clock Duty Cycle - "Clock signals duty cycle." - "Value should be between 0.001 and 1." - """ - val = self._get_property('Clock Duty Cycle') - return val - - @clock_duty_cycle.setter - def clock_duty_cycle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Clock Duty Cycle=' + value]) - - @property - def clock_risefall_time(self) -> float: - """Clock Rise/Fall Time - "Clock signals rise/fall time." - "Units options: ps, ns, us, ms, s." - "Value should be greater than 0." - """ - val = self._get_property('Clock Rise/Fall Time') - val = self._convert_from_default_units(float(val), "Time Unit") - return val - - @clock_risefall_time.setter - def clock_risefall_time(self, value : float|str): - value = self._convert_to_default_units(value, "Time Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Clock Rise/Fall Time=' + f"{value}"]) - - class SpreadingTypeOption(Enum): - LOW_SPREAD = "Low Spread" - CENTER_SPREAD = "Center Spread" - HIGH_SPREAD = "High Spread" - - @property - def spreading_type(self) -> SpreadingTypeOption: - """Spreading Type - "Type of spreading employed by the Spread Spectrum Clock." - " """ - val = self._get_property('Spreading Type') - val = self.SpreadingTypeOption[val] - return val - - @spreading_type.setter - def spreading_type(self, value: SpreadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Spreading Type=' + value.value]) - - @property - def spread_percentage(self) -> float: - """Spread Percentage - "Peak-to-peak spread percentage." - "Value should be between 0 and 100." - """ - val = self._get_property('Spread Percentage') - return val - - @spread_percentage.setter - def spread_percentage(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Spread Percentage=' + value]) - - @property - def imported_spectrum(self) -> str: - """Imported Spectrum - "Value should be a full file path." - """ - val = self._get_property('Imported Spectrum') - return val - - @imported_spectrum.setter - def imported_spectrum(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Imported Spectrum=' + value]) - - @property - def raw_data_format(self) -> str: - """Raw Data Format - "Format of the imported raw data." - " """ - val = self._get_property('Raw Data Format') - return val - - @property - def system_impedance(self) -> float: - """System Impedance - "System impedance for the imported data." - "Units options: uOhm, mOhm, ohm, kOhm, megohm, GOhm." - "Value should be between 0 and 1e+06." - """ - val = self._get_property('System Impedance') - val = self._convert_from_default_units(float(val), "Resistance Unit") - return val - - @system_impedance.setter - def system_impedance(self, value : float|str): - value = self._convert_to_default_units(value, "Resistance Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['System Impedance=' + f"{value}"]) - - @property - def advanced_extraction_params(self) -> bool: - """Advanced Extraction Params - "Show/hide advanced extraction params." - "Value should be 'true' or 'false'." - """ - val = self._get_property('Advanced Extraction Params') - return val - - @advanced_extraction_params.setter - def advanced_extraction_params(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Advanced Extraction Params=' + value]) - - @property - def nb_window_size(self) -> float: - """NB Window Size - "Window size for computing the moving average during narrowband signal detection." - "Value should be greater than 3." - """ - val = self._get_property('NB Window Size') - return val - - @nb_window_size.setter - def nb_window_size(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['NB Window Size=' + value]) - - @property - def bb_smoothing_factor(self) -> float: - """BB Smoothing Factor - "Reduces the number of frequency points used for the broadband noise." - "Value should be greater than 1." - """ - val = self._get_property('BB Smoothing Factor') - return val - - @bb_smoothing_factor.setter - def bb_smoothing_factor(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['BB Smoothing Factor=' + value]) - - @property - def nb_detector_threshold(self) -> float: - """NB Detector Threshold - "Narrowband Detector threshold standard deviation." - "Value should be between 2 and 10." - """ - val = self._get_property('NB Detector Threshold') - return val - - @nb_detector_threshold.setter - def nb_detector_threshold(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['NB Detector Threshold=' + value]) - - class AlgorithmOption(Enum): - FFT = "FFT" - FOURIER_TRANSFORM = "Fourier Transform" - - @property - def algorithm(self) -> AlgorithmOption: - """Algorithm - "Algorithm used to transform the imported time domain spectrum." - " """ - val = self._get_property('Algorithm') - val = self.AlgorithmOption[val] - return val - - @algorithm.setter - def algorithm(self, value: AlgorithmOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Algorithm=' + value.value]) - - @property - def start(self) -> float: - """Start - "Initial time of the imported spectrum." - "Units options: ps, ns, us, ms, s." - "Value should be greater than 0." - """ - val = self._get_property('Start') - val = self._convert_from_default_units(float(val), "Time Unit") - return val - - @start.setter - def start(self, value : float|str): - value = self._convert_to_default_units(value, "Time Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Start=' + f"{value}"]) - - @property - def stop(self) -> float: - """Stop - "Final time of the imported time domain spectrum." - "Units options: ps, ns, us, ms, s." - " """ - val = self._get_property('Stop') - val = self._convert_from_default_units(float(val), "Time Unit") - return val - - @stop.setter - def stop(self, value : float|str): - value = self._convert_to_default_units(value, "Time Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Stop=' + f"{value}"]) - - @property - def max_frequency(self) -> float: - """Max Frequency - "Frequency cutoff of the imported time domain spectrum." - "Value should be between 1 and 1e+11." - """ - val = self._get_property('Max Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") - return val - - @max_frequency.setter - def max_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Frequency=' + f"{value}"]) - - class WindowTypeOption(Enum): - RECTANGULAR = "Rectangular" - BARTLETT = "Bartlett" - BLACKMAN = "Blackman" - HAMMING = "Hamming" - HANNING = "Hanning" - KAISER = "Kaiser" - LANZCOS = "Lanzcos" - WELCH = "Welch" - WEBER = "Weber" - - @property - def window_type(self) -> WindowTypeOption: - """Window Type - "Windowing scheme used for importing time domain spectrum." - " """ - val = self._get_property('Window Type') - val = self.WindowTypeOption[val] - return val - - @window_type.setter - def window_type(self, value: WindowTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Window Type=' + value.value]) - - @property - def kaiser_parameter(self) -> float: - """Kaiser Parameter - "Shape factor applied to the transform." - "Value should be greater than 0." - """ - val = self._get_property('Kaiser Parameter') - return val - - @kaiser_parameter.setter - def kaiser_parameter(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Kaiser Parameter=' + value]) - - @property - def adjust_coherent_gain(self) -> bool: - """Adjust Coherent Gain - "Shape factor applied to the transform." - "Value should be 'true' or 'false'." - """ - val = self._get_property('Adjust Coherent Gain') - return val - - @adjust_coherent_gain.setter - def adjust_coherent_gain(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Adjust Coherent Gain=' + value]) - - @property - def data_rate(self) -> float: - """Data Rate - "Maximum data rate: helps determine shape of spectral profile." - "Units options: bps, kbps, Mbps, Gbps." - "Value should be greater than 1." - """ - val = self._get_property('Data Rate') - val = self._convert_from_default_units(float(val), "Data Rate Unit") - return val - - @data_rate.setter - def data_rate(self, value : float|str): - value = self._convert_to_default_units(value, "Data Rate Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Rate=' + f"{value}"]) - - @property - def _of_bits(self) -> int: - """# of Bits - "Length of the Pseudo Random Binary Sequence." - "Value should be between 1 and 1000." - """ - val = self._get_property('# of Bits') - return val - - @_of_bits.setter - def _of_bits(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['# of Bits=' + value]) - - @property - def use_envelope(self) -> bool: - """Use Envelope - "Model the waveform as a worst case envelope.." - "Value should be 'true' or 'false'." - """ - val = self._get_property('Use Envelope') - return val - - @use_envelope.setter - def use_envelope(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Use Envelope=' + value]) - - @property - def min_ptsnull(self) -> int: - """Min Pts/Null - "Minimum number of points to use between each null frequency." - "Value should be between 2 and 50." - """ - val = self._get_property('Min Pts/Null') - return val - - @min_ptsnull.setter - def min_ptsnull(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Min Pts/Null=' + value]) - - @property - def delay_skew(self) -> float: - """Delay Skew - "Delay Skew of the differential signal pairs." - "Units options: ps, ns, us, ms, s." - "Value should be greater than 0." - """ - val = self._get_property('Delay Skew') - val = self._convert_from_default_units(float(val), "Time Unit") - return val - - @delay_skew.setter - def delay_skew(self, value : float|str): - value = self._convert_to_default_units(value, "Time Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Delay Skew=' + f"{value}"]) + def tx_offset(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Tx Offset=" + f"{value}"]) class RadarTypeOption(Enum): - CW = "CW" - FM_CW = "FM-CW" - FM_PULSE = "FM Pulse" - NON_FM_PULSE = "Non-FM Pulse" - PHASE_CODED = "Phase Coded" + CW = "CW" + FM_CW = "FM-CW" + FM_PULSE = "FM Pulse" + NON_FM_PULSE = "Non-FM Pulse" + PHASE_CODED = "Phase Coded" @property def radar_type(self) -> RadarTypeOption: """Radar Type "Radar type: helps determine spectral profile." - " """ - val = self._get_property('Radar Type') + " """ + val = self._get_property("Radar Type") val = self.RadarTypeOption[val] return val @radar_type.setter def radar_type(self, value: RadarTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Radar Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Radar Type=" + value.value]) @property def hopping_radar(self) -> bool: @@ -744,12 +420,12 @@ def hopping_radar(self) -> bool: "True for hopping radars; false otherwise." "Value should be 'true' or 'false'." """ - val = self._get_property('Hopping Radar') + val = self._get_property("Hopping Radar") return val @hopping_radar.setter def hopping_radar(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Hopping Radar=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Hopping Radar=" + value]) @property def post_october_2020_procurement(self) -> bool: @@ -757,12 +433,14 @@ def post_october_2020_procurement(self) -> bool: "Procurement date: helps determine spectral profile, particularly the roll-off." "Value should be 'true' or 'false'." """ - val = self._get_property('Post October 2020 Procurement') + val = self._get_property("Post October 2020 Procurement") return val @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Post October 2020 Procurement=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Post October 2020 Procurement=" + value] + ) @property def hop_range_min_freq(self) -> float: @@ -770,14 +448,14 @@ def hop_range_min_freq(self) -> float: "Sets the minimum frequency of the hopping range." "Value should be between 1 and 1e+11." """ - val = self._get_property('Hop Range Min Freq') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Hop Range Min Freq") + val = self._convert_from_internal_units(float(val), "Freq") return val @hop_range_min_freq.setter - def hop_range_min_freq(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Hop Range Min Freq=' + f"{value}"]) + def hop_range_min_freq(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Hop Range Min Freq=" + f"{value}"]) @property def hop_range_max_freq(self) -> float: @@ -785,62 +463,59 @@ def hop_range_max_freq(self) -> float: "Sets the maximum frequency of the hopping range." "Value should be between 1 and 1e+11." """ - val = self._get_property('Hop Range Max Freq') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Hop Range Max Freq") + val = self._convert_from_internal_units(float(val), "Freq") return val @hop_range_max_freq.setter - def hop_range_max_freq(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Hop Range Max Freq=' + f"{value}"]) + def hop_range_max_freq(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Hop Range Max Freq=" + f"{value}"]) @property def pulse_duration(self) -> float: """Pulse Duration "Pulse duration." - "Units options: ps, ns, us, ms, s." "Value should be greater than 0." """ - val = self._get_property('Pulse Duration') - val = self._convert_from_default_units(float(val), "Time Unit") + val = self._get_property("Pulse Duration") + val = self._convert_from_internal_units(float(val), "Time") return val @pulse_duration.setter - def pulse_duration(self, value : float|str): - value = self._convert_to_default_units(value, "Time Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Duration=' + f"{value}"]) + def pulse_duration(self, value: float | str): + value = self._convert_to_internal_units(value, "Time") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pulse Duration=" + f"{value}"]) @property def pulse_rise_time(self) -> float: """Pulse Rise Time "Pulse rise time." - "Units options: ps, ns, us, ms, s." "Value should be greater than 0." """ - val = self._get_property('Pulse Rise Time') - val = self._convert_from_default_units(float(val), "Time Unit") + val = self._get_property("Pulse Rise Time") + val = self._convert_from_internal_units(float(val), "Time") return val @pulse_rise_time.setter - def pulse_rise_time(self, value : float|str): - value = self._convert_to_default_units(value, "Time Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Rise Time=' + f"{value}"]) + def pulse_rise_time(self, value: float | str): + value = self._convert_to_internal_units(value, "Time") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pulse Rise Time=" + f"{value}"]) @property def pulse_fall_time(self) -> float: """Pulse Fall Time "Pulse fall time." - "Units options: ps, ns, us, ms, s." "Value should be greater than 0." """ - val = self._get_property('Pulse Fall Time') - val = self._convert_from_default_units(float(val), "Time Unit") + val = self._get_property("Pulse Fall Time") + val = self._convert_from_internal_units(float(val), "Time") return val @pulse_fall_time.setter - def pulse_fall_time(self, value : float|str): - value = self._convert_to_default_units(value, "Time Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Fall Time=' + f"{value}"]) + def pulse_fall_time(self, value: float | str): + value = self._convert_to_internal_units(value, "Time") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pulse Fall Time=" + f"{value}"]) @property def pulse_repetition_rate(self) -> float: @@ -848,12 +523,12 @@ def pulse_repetition_rate(self) -> float: "Pulse repetition rate [pulses/sec]." "Value should be greater than 1." """ - val = self._get_property('Pulse Repetition Rate') + val = self._get_property("Pulse Repetition Rate") return val @pulse_repetition_rate.setter def pulse_repetition_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Repetition Rate=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pulse Repetition Rate=" + value]) @property def number_of_chips(self) -> float: @@ -861,12 +536,12 @@ def number_of_chips(self) -> float: "Total number of chips (subpulses) contained in the pulse." "Value should be greater than 1." """ - val = self._get_property('Number of Chips') + val = self._get_property("Number of Chips") return val @number_of_chips.setter def number_of_chips(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Number of Chips=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Number of Chips=" + value]) @property def pulse_compression_ratio(self) -> float: @@ -874,28 +549,27 @@ def pulse_compression_ratio(self) -> float: "Pulse compression ratio." "Value should be greater than 1." """ - val = self._get_property('Pulse Compression Ratio') + val = self._get_property("Pulse Compression Ratio") return val @pulse_compression_ratio.setter def pulse_compression_ratio(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pulse Compression Ratio=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pulse Compression Ratio=" + value]) @property def fm_chirp_period(self) -> float: """FM Chirp Period "FM Chirp period for the FM/CW radar." - "Units options: ps, ns, us, ms, s." "Value should be greater than 0." """ - val = self._get_property('FM Chirp Period') - val = self._convert_from_default_units(float(val), "Time Unit") + val = self._get_property("FM Chirp Period") + val = self._convert_from_internal_units(float(val), "Time") return val @fm_chirp_period.setter - def fm_chirp_period(self, value : float|str): - value = self._convert_to_default_units(value, "Time Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['FM Chirp Period=' + f"{value}"]) + def fm_chirp_period(self, value: float | str): + value = self._convert_to_internal_units(value, "Time") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["FM Chirp Period=" + f"{value}"]) @property def fm_freq_deviation(self) -> float: @@ -903,14 +577,14 @@ def fm_freq_deviation(self) -> float: "Total frequency deviation for the carrier frequency for the FM/CW radar." "Value should be between 1 and 1e+11." """ - val = self._get_property('FM Freq Deviation') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("FM Freq Deviation") + val = self._convert_from_internal_units(float(val), "Freq") return val @fm_freq_deviation.setter - def fm_freq_deviation(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['FM Freq Deviation=' + f"{value}"]) + def fm_freq_deviation(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["FM Freq Deviation=" + f"{value}"]) @property def fm_freq_dev_bandwidth(self) -> float: @@ -918,12 +592,13 @@ def fm_freq_dev_bandwidth(self) -> float: "Bandwidth of freq deviation for FM modulated pulsed waveform (total freq shift during pulse duration)." "Value should be between 1 and 1e+11." """ - val = self._get_property('FM Freq Dev Bandwidth') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("FM Freq Dev Bandwidth") + val = self._convert_from_internal_units(float(val), "Freq") return val @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['FM Freq Dev Bandwidth=' + f"{value}"]) - + def fm_freq_dev_bandwidth(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["FM Freq Dev Bandwidth=" + f"{value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py index d2012de1304..02237f50677 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class BandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -25,4 +50,3 @@ def duplicate(self, new_name): def delete(self): """Delete this node""" self._delete() - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py index e4d6f518049..b472d24368d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class BandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -26,50 +51,50 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ - val = self._get_property('Data Source') + " """ + val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) class TxorRxOption(Enum): - TX = "Tx" - RX = "Rx" + TX = "Tx" + RX = "Rx" @property def tx_or_rx(self) -> TxorRxOption: """Tx or Rx "Specifies whether the trace is a Tx or Rx channel." - " """ - val = self._get_property('Tx or Rx') + " """ + val = self._get_property("Tx or Rx") val = self.TxorRxOption[val] return val @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Tx or Rx=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Tx or Rx=" + value.value]) @property def channel_frequency(self): """Channel Frequency "Select band channel frequency to display." - " """ - val = self._get_property('Channel Frequency') + " """ + val = self._get_property("Channel Frequency") return val @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Channel Frequency=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Channel Frequency=" + value]) @property def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - " """ - val = self._get_property('Transmit Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + " """ + val = self._get_property("Transmit Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -78,12 +103,12 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Visible') + val = self._get_property("Visible") return val @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) @property def custom_legend(self) -> bool: @@ -91,45 +116,45 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Custom Legend') + val = self._get_property("Custom Legend") return val @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ - val = self._get_property('Name') + " """ + val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ - val = self._get_property('Style') + " """ + val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) @property def line_width(self) -> int: @@ -137,12 +162,12 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - val = self._get_property('Line Width') + val = self._get_property("Line Width") return val @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) @property def line_color(self): @@ -150,42 +175,42 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Line Color') + val = self._get_property("Line Color") return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ - val = self._get_property('Symbol') + " """ + val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) @property def symbol_size(self) -> int: @@ -193,12 +218,12 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - val = self._get_property('Symbol Size') + val = self._get_property("Symbol Size") return val @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) @property def symbol_color(self): @@ -206,12 +231,12 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Symbol Color') + val = self._get_property("Symbol Color") return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) @property def symbol_line_width(self) -> int: @@ -219,12 +244,12 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - val = self._get_property('Symbol Line Width') + val = self._get_property("Symbol Line Width") return val @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) @property def symbol_filled(self) -> bool: @@ -232,10 +257,9 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - val = self._get_property('Symbol Filled') + val = self._get_property("Symbol Filled") return val @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py index 92227612f08..6c64e1247fc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class CADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -28,85 +53,82 @@ def file(self) -> str: "Name of the imported CAD file." "Value should be a full file path." """ - val = self._get_property('File') + val = self._get_property("File") return val class ModelTypeOption(Enum): - PLATE = "Plate" - BOX = "Box" - DIHEDRAL = "Dihedral" - TRIHEDRAL = "Trihedral" - CYLINDER = "Cylinder" - TAPERED_CYLINDER = "Tapered Cylinder" - CONE = "Cone" - SPHERE = "Sphere" - ELLIPSOID = "Ellipsoid" - CIRCULAR_PLATE = "Circular Plate" - PARABOLA = "Parabola" - PRISM = "Prism" - TAPERED_PRISM = "Tapered Prism" - TOPHAT = "Tophat" + PLATE = "Plate" + BOX = "Box" + DIHEDRAL = "Dihedral" + TRIHEDRAL = "Trihedral" + CYLINDER = "Cylinder" + TAPERED_CYLINDER = "Tapered Cylinder" + CONE = "Cone" + SPHERE = "Sphere" + ELLIPSOID = "Ellipsoid" + CIRCULAR_PLATE = "Circular Plate" + PARABOLA = "Parabola" + PRISM = "Prism" + TAPERED_PRISM = "Tapered Prism" + TOPHAT = "Tophat" @property def model_type(self) -> ModelTypeOption: """Model Type "Select type of parametric model to create." - " """ - val = self._get_property('Model Type') + " """ + val = self._get_property("Model Type") val = self.ModelTypeOption[val] return val @model_type.setter def model_type(self, value: ModelTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Model Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Model Type=" + value.value]) @property def length(self) -> float: """Length "Length of the model." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ - val = self._get_property('Length') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Length") + val = self._convert_from_internal_units(float(val), "Length") return val @length.setter - def length(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Length=' + f"{value}"]) + def length(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Length=" + f"{value}"]) @property def width(self) -> float: """Width "Width of the model." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ - val = self._get_property('Width') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Width") + val = self._convert_from_internal_units(float(val), "Length") return val @width.setter - def width(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Width=' + f"{value}"]) + def width(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Width=" + f"{value}"]) @property def height(self) -> float: """Height "Height of the model." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ - val = self._get_property('Height') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Height") + val = self._convert_from_internal_units(float(val), "Length") return val @height.setter - def height(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Height=' + f"{value}"]) + def height(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Height=" + f"{value}"]) @property def angle(self) -> float: @@ -114,187 +136,182 @@ def angle(self) -> float: "Angle (deg) between the plates." "Value should be between 0 and 360." """ - val = self._get_property('Angle') + val = self._get_property("Angle") return val @angle.setter def angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Angle=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Angle=" + value]) @property def top_side(self) -> float: """Top Side "Side of the top of a equilateral triangular cylinder model." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 0." """ - val = self._get_property('Top Side') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Top Side") + val = self._convert_from_internal_units(float(val), "Length") return val @top_side.setter - def top_side(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Top Side=' + f"{value}"]) + def top_side(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Top Side=" + f"{value}"]) @property def top_radius(self) -> float: """Top Radius "Radius of the top of a tapered cylinder model." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 0." """ - val = self._get_property('Top Radius') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Top Radius") + val = self._convert_from_internal_units(float(val), "Length") return val @top_radius.setter - def top_radius(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Top Radius=' + f"{value}"]) + def top_radius(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Top Radius=" + f"{value}"]) @property def side(self) -> float: """Side "Side of the equilateral triangular cylinder." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ - val = self._get_property('Side') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Side") + val = self._convert_from_internal_units(float(val), "Length") return val @side.setter - def side(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Side=' + f"{value}"]) + def side(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Side=" + f"{value}"]) @property def radius(self) -> float: """Radius "Radius of the sphere or cylinder." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ - val = self._get_property('Radius') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Radius") + val = self._convert_from_internal_units(float(val), "Length") return val @radius.setter - def radius(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Radius=' + f"{value}"]) + def radius(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Radius=" + f"{value}"]) @property def base_radius(self) -> float: """Base Radius "Radius of the base of a tophat model." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ - val = self._get_property('Base Radius') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Base Radius") + val = self._convert_from_internal_units(float(val), "Length") return val @base_radius.setter - def base_radius(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Base Radius=' + f"{value}"]) + def base_radius(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Base Radius=" + f"{value}"]) @property def center_radius(self) -> float: """Center Radius "Radius of the raised portion of a tophat model." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ - val = self._get_property('Center Radius') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Center Radius") + val = self._convert_from_internal_units(float(val), "Length") return val @center_radius.setter - def center_radius(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Center Radius=' + f"{value}"]) + def center_radius(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Center Radius=" + f"{value}"]) @property def x_axis_ellipsoid_radius(self) -> float: """X Axis Ellipsoid Radius "Ellipsoid semi-principal radius for the X axis." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ - val = self._get_property('X Axis Ellipsoid Radius') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("X Axis Ellipsoid Radius") + val = self._convert_from_internal_units(float(val), "Length") return val @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['X Axis Ellipsoid Radius=' + f"{value}"]) + def x_axis_ellipsoid_radius(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["X Axis Ellipsoid Radius=" + f"{value}"] + ) @property def y_axis_ellipsoid_radius(self) -> float: """Y Axis Ellipsoid Radius "Ellipsoid semi-principal radius for the Y axis." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ - val = self._get_property('Y Axis Ellipsoid Radius') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Y Axis Ellipsoid Radius") + val = self._convert_from_internal_units(float(val), "Length") return val @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Y Axis Ellipsoid Radius=' + f"{value}"]) + def y_axis_ellipsoid_radius(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Y Axis Ellipsoid Radius=" + f"{value}"] + ) @property def z_axis_ellipsoid_radius(self) -> float: """Z Axis Ellipsoid Radius "Ellipsoid semi-principal radius for the Z axis." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ - val = self._get_property('Z Axis Ellipsoid Radius') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Z Axis Ellipsoid Radius") + val = self._convert_from_internal_units(float(val), "Length") return val @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Z Axis Ellipsoid Radius=' + f"{value}"]) + def z_axis_ellipsoid_radius(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Z Axis Ellipsoid Radius=" + f"{value}"] + ) @property def focal_length(self) -> float: """Focal Length "Focal length of a parabolic reflector (f = 1/4a where y=ax^2)." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ - val = self._get_property('Focal Length') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Focal Length") + val = self._convert_from_internal_units(float(val), "Length") return val @focal_length.setter - def focal_length(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Focal Length=' + f"{value}"]) + def focal_length(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Focal Length=" + f"{value}"]) @property def offset(self) -> float: """Offset "Offset of parabolic reflector." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." - " """ - val = self._get_property('Offset') - val = self._convert_from_default_units(float(val), "Length Unit") + " """ + val = self._get_property("Offset") + val = self._convert_from_internal_units(float(val), "Length") return val @offset.setter - def offset(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Offset=' + f"{value}"]) + def offset(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Offset=" + f"{value}"]) @property def x_direction_taper(self) -> float: @@ -302,12 +319,12 @@ def x_direction_taper(self) -> float: "Amount (%) that the prism tapers in the X dimension from one end to the other." "Value should be greater than 0." """ - val = self._get_property('X Direction Taper') + val = self._get_property("X Direction Taper") return val @x_direction_taper.setter def x_direction_taper(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['X Direction Taper=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["X Direction Taper=" + value]) @property def y_direction_taper(self) -> float: @@ -315,12 +332,12 @@ def y_direction_taper(self) -> float: "Amount (%) that the prism tapers in the Y dimension from one end to the other." "Value should be greater than 0." """ - val = self._get_property('Y Direction Taper') + val = self._get_property("Y Direction Taper") return val @y_direction_taper.setter def y_direction_taper(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Y Direction Taper=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Y Direction Taper=" + value]) @property def prism_direction(self): @@ -328,12 +345,12 @@ def prism_direction(self): "Direction vector between the center of the base and center of the top." "Value should be x/y/z, delimited by spaces." """ - val = self._get_property('Prism Direction') + val = self._get_property("Prism Direction") return val @prism_direction.setter def prism_direction(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Prism Direction=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Prism Direction=" + value]) @property def closed_top(self) -> bool: @@ -341,12 +358,12 @@ def closed_top(self) -> bool: "Control whether the top of the model is closed." "Value should be 'true' or 'false'." """ - val = self._get_property('Closed Top') + val = self._get_property("Closed Top") return val @closed_top.setter def closed_top(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Closed Top=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Closed Top=" + value]) @property def closed_base(self) -> bool: @@ -354,12 +371,12 @@ def closed_base(self) -> bool: "Control whether the base of the model is closed." "Value should be 'true' or 'false'." """ - val = self._get_property('Closed Base') + val = self._get_property("Closed Base") return val @closed_base.setter def closed_base(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Closed Base=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Closed Base=" + value]) @property def mesh_density(self) -> int: @@ -367,12 +384,12 @@ def mesh_density(self) -> int: "Unitless mesh density parameter where higher value improves mesh smoothness." "Value should be between 1 and 100." """ - val = self._get_property('Mesh Density') + val = self._get_property("Mesh Density") return val @mesh_density.setter def mesh_density(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mesh Density=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Mesh Density=" + value]) @property def use_symmetric_mesh(self) -> bool: @@ -380,29 +397,29 @@ def use_symmetric_mesh(self) -> bool: "Convert quads to a symmetric triangle mesh by adding a center point (4 triangles per quad instead of 2)." "Value should be 'true' or 'false'." """ - val = self._get_property('Use Symmetric Mesh') + val = self._get_property("Use Symmetric Mesh") return val @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Use Symmetric Mesh=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Use Symmetric Mesh=" + value]) class MeshOptionOption(Enum): - IMPROVED = "Improved" - LEGACY = "Legacy" + IMPROVED = "Improved" + LEGACY = "Legacy" @property def mesh_option(self) -> MeshOptionOption: """Mesh Option "Select from different meshing options." - " """ - val = self._get_property('Mesh Option') + " """ + val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] return val @mesh_option.setter def mesh_option(self, value: MeshOptionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mesh Option=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Mesh Option=" + value.value]) @property def coating_index(self) -> int: @@ -410,12 +427,12 @@ def coating_index(self) -> int: "Coating index for the parametric model primitive." "Value should be between 0 and 100000." """ - val = self._get_property('Coating Index') + val = self._get_property("Coating Index") return val @coating_index.setter def coating_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Coating Index=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Coating Index=" + value]) @property def show_relative_coordinates(self) -> bool: @@ -423,12 +440,14 @@ def show_relative_coordinates(self) -> bool: "Show CAD model node position and orientation in parent-node coords (False) or relative to placement coords (True)." "Value should be 'true' or 'false'." """ - val = self._get_property('Show Relative Coordinates') + val = self._get_property("Show Relative Coordinates") return val @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Show Relative Coordinates=" + value] + ) @property def position(self): @@ -436,12 +455,12 @@ def position(self): "Set position of the CAD node in parent-node coordinates." "Value should be x/y/z, delimited by spaces." """ - val = self._get_property('Position') + val = self._get_property("Position") return val @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Position=" + value]) @property def relative_position(self): @@ -449,29 +468,29 @@ def relative_position(self): "Set position of the CAD model node relative to placement coordinates." "Value should be x/y/z, delimited by spaces." """ - val = self._get_property('Relative Position') + val = self._get_property("Relative Position") return val @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Relative Position=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Relative Position=" + value]) class OrientationModeOption(Enum): - RPYDEG = "Roll-Pitch-Yaw" - AETDEG = "Az-El-Twist" + RPYDEG = "Roll-Pitch-Yaw" + AETDEG = "Az-El-Twist" @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ - val = self._get_property('Orientation Mode') + " """ + val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Orientation Mode=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Orientation Mode=" + value.value]) @property def orientation(self): @@ -479,12 +498,12 @@ def orientation(self): "Set orientation of the CAD node in parent-node coordinates." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - val = self._get_property('Orientation') + val = self._get_property("Orientation") return val @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Orientation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Orientation=" + value]) @property def relative_orientation(self): @@ -492,12 +511,12 @@ def relative_orientation(self): "Set orientation of the CAD model node relative to placement coordinates." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - val = self._get_property('Relative Orientation') + val = self._get_property("Relative Orientation") return val @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Relative Orientation=" + value]) @property def visible(self) -> bool: @@ -505,31 +524,31 @@ def visible(self) -> bool: "Toggle (on/off) display of CAD model in 3-D window." "Value should be 'true' or 'false'." """ - val = self._get_property('Visible') + val = self._get_property("Visible") return val @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) class RenderModeOption(Enum): - FLAT_SHADED = "Flat-Shaded" - WIRE_FRAME = "Wire-Frame" - HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" - OUTLINE = "Outline" + FLAT_SHADED = "Flat-Shaded" + WIRE_FRAME = "Wire-Frame" + HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" + OUTLINE = "Outline" @property def render_mode(self) -> RenderModeOption: """Render Mode "Select drawing style for surfaces." - " """ - val = self._get_property('Render Mode') + " """ + val = self._get_property("Render Mode") val = self.RenderModeOption[val] return val @render_mode.setter def render_mode(self, value: RenderModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Render Mode=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Render Mode=" + value.value]) @property def show_axes(self) -> bool: @@ -537,12 +556,12 @@ def show_axes(self) -> bool: "Toggle (on/off) display of CAD model coordinate axes in 3-D window." "Value should be 'true' or 'false'." """ - val = self._get_property('Show Axes') + val = self._get_property("Show Axes") return val @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Show Axes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Show Axes=" + value]) @property def min(self): @@ -550,7 +569,7 @@ def min(self): "Minimum x,y,z extents of CAD model in local coordinates." "Value should be x/y/z, delimited by spaces." """ - val = self._get_property('Min') + val = self._get_property("Min") return val @property @@ -559,15 +578,15 @@ def max(self): "Maximum x,y,z extents of CAD model in local coordinates." "Value should be x/y/z, delimited by spaces." """ - val = self._get_property('Max') + val = self._get_property("Max") return val @property def number_of_surfaces(self) -> int: """Number of Surfaces "Number of surfaces in the model." - " """ - val = self._get_property('Number of Surfaces') + " """ + val = self._get_property("Number of Surfaces") return val @property @@ -576,22 +595,21 @@ def color(self): "Defines the CAD nodes color." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Color') + val = self._get_property("Color") return val @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Color=" + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index 80c3e1e8304..b79b82d313c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class Cable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -23,12 +48,12 @@ def filename(self) -> str: "Name of file defining the outboard component." "Value should be a full file path." """ - val = self._get_property('Filename') + val = self._get_property("Filename") return val @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filename=" + value]) @property def noise_temperature(self) -> float: @@ -36,58 +61,57 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - val = self._get_property('Noise Temperature') + val = self._get_property("Noise Temperature") return val @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Temperature=" + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) class TypeOption(Enum): - BYFILE = "By File" - CONSTANT = "Constant Loss" - COAXIAL = "Coaxial Cable" + BYFILE = "By File" + CONSTANT = "Constant Loss" + COAXIAL = "Coaxial Cable" @property def type(self) -> TypeOption: """Type "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." - " """ - val = self._get_property('Type') + " """ + val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Type=" + value.value]) @property def length(self) -> float: """Length "Length of cable." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 0 and 500." """ - val = self._get_property('Length') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Length") + val = self._convert_from_internal_units(float(val), "Length") return val @length.setter - def length(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Length=' + f"{value}"]) + def length(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Length=" + f"{value}"]) @property def loss_per_length(self) -> float: @@ -95,28 +119,27 @@ def loss_per_length(self) -> float: "Cable loss per unit length (dB/meter)." "Value should be between 0 and 20." """ - val = self._get_property('Loss Per Length') + val = self._get_property("Loss Per Length") return val @loss_per_length.setter def loss_per_length(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Loss Per Length=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Loss Per Length=" + value]) @property def measurement_length(self) -> float: """Measurement Length "Length of the cable used for the measurements." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 0 and 500." """ - val = self._get_property('Measurement Length') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Measurement Length") + val = self._convert_from_internal_units(float(val), "Length") return val @measurement_length.setter - def measurement_length(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Measurement Length=' + f"{value}"]) + def measurement_length(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Measurement Length=" + f"{value}"]) @property def resistive_loss_constant(self) -> float: @@ -124,12 +147,12 @@ def resistive_loss_constant(self) -> float: "Coaxial cable resistive loss constant." "Value should be between 0 and 2." """ - val = self._get_property('Resistive Loss Constant') + val = self._get_property("Resistive Loss Constant") return val @resistive_loss_constant.setter def resistive_loss_constant(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Resistive Loss Constant=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Resistive Loss Constant=" + value]) @property def dielectric_loss_constant(self) -> float: @@ -137,18 +160,17 @@ def dielectric_loss_constant(self) -> float: "Coaxial cable dielectric loss constant." "Value should be between 0 and 1." """ - val = self._get_property('Dielectric Loss Constant') + val = self._get_property("Dielectric Loss Constant") return val @dielectric_loss_constant.setter def dielectric_loss_constant(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Dielectric Loss Constant=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Dielectric Loss Constant=" + value]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ - val = self._get_property('Warnings') + " """ + val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py index 5074051246b..c7c2f555fb7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py @@ -1,7 +1,31 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class CategoriesViewNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index ada44a8c638..931e9e34913 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class Circulator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -23,12 +48,12 @@ def filename(self) -> str: "Name of file defining the Isolator/Circulator." "Value should be a full file path." """ - val = self._get_property('Filename') + val = self._get_property("Filename") return val @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filename=" + value]) @property def noise_temperature(self) -> float: @@ -36,58 +61,58 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - val = self._get_property('Noise Temperature') + val = self._get_property("Noise Temperature") return val @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Temperature=" + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) class TypeOption(Enum): - BYFILE = "By File" - PARAMETRIC = "Parametric" + BYFILE = "By File" + PARAMETRIC = "Parametric" @property def type(self) -> TypeOption: """Type "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." - " """ - val = self._get_property('Type') + " """ + val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Type=" + value.value]) class Port1LocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the circulator.." - " """ - val = self._get_property('Port 1 Location') + " """ + val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Port 1 Location=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Port 1 Location=" + value.value]) @property def insertion_loss(self) -> float: @@ -95,12 +120,12 @@ def insertion_loss(self) -> float: "Circulator in-band loss in forward direction.." "Value should be between 0 and 100." """ - val = self._get_property('Insertion Loss') + val = self._get_property("Insertion Loss") return val @insertion_loss.setter def insertion_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Insertion Loss=" + value]) @property def finite_reverse_isolation(self) -> bool: @@ -108,12 +133,12 @@ def finite_reverse_isolation(self) -> bool: "Use a finite reverse isolation. If disabled, the circulator model is ideal (infinite reverse isolation).." "Value should be 'true' or 'false'." """ - val = self._get_property('Finite Reverse Isolation') + val = self._get_property("Finite Reverse Isolation") return val @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Finite Reverse Isolation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Finite Reverse Isolation=" + value]) @property def reverse_isolation(self) -> float: @@ -121,12 +146,12 @@ def reverse_isolation(self) -> float: "Circulator reverse isolation (i.e., loss in the reverse direction).." "Value should be between 0 and 100." """ - val = self._get_property('Reverse Isolation') + val = self._get_property("Reverse Isolation") return val @reverse_isolation.setter def reverse_isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Reverse Isolation=" + value]) @property def finite_bandwidth(self) -> bool: @@ -134,12 +159,12 @@ def finite_bandwidth(self) -> bool: "Use a finite bandwidth. If disabled, the circulator model is ideal (infinite bandwidth).." "Value should be 'true' or 'false'." """ - val = self._get_property('Finite Bandwidth') + val = self._get_property("Finite Bandwidth") return val @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Finite Bandwidth=" + value]) @property def out_of_band_attenuation(self) -> float: @@ -147,12 +172,12 @@ def out_of_band_attenuation(self) -> float: "Out-of-band loss (attenuation)." "Value should be between 0 and 200." """ - val = self._get_property('Out-of-band Attenuation') + val = self._get_property("Out-of-band Attenuation") return val @out_of_band_attenuation.setter def out_of_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Out-of-band Attenuation=" + value]) @property def lower_stop_band(self) -> float: @@ -160,14 +185,14 @@ def lower_stop_band(self) -> float: "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @lower_stop_band.setter - def lower_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + f"{value}"]) + def lower_stop_band(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Stop Band=" + f"{value}"]) @property def lower_cutoff(self) -> float: @@ -175,14 +200,14 @@ def lower_cutoff(self) -> float: "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @lower_cutoff.setter - def lower_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + f"{value}"]) + def lower_cutoff(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Cutoff=" + f"{value}"]) @property def higher_cutoff(self) -> float: @@ -190,14 +215,14 @@ def higher_cutoff(self) -> float: "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @higher_cutoff.setter - def higher_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + f"{value}"]) + def higher_cutoff(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Cutoff=" + f"{value}"]) @property def higher_stop_band(self) -> float: @@ -205,20 +230,19 @@ def higher_stop_band(self) -> float: "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @higher_stop_band.setter - def higher_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + f"{value}"]) + def higher_stop_band(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Stop Band=" + f"{value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ - val = self._get_property('Warnings') + " """ + val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py index 3cd1bb34337..a9bd0d9946c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class CouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -16,23 +41,22 @@ def enabled(self) -> bool: "Enable/Disable coupling link." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) @property def ports(self): """Ports "Maps each port in the link to an antenna in the project." "A list of values." - " """ - val = self._get_property('Ports') + " """ + val = self._get_property("Ports") return val @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Ports=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Ports=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py index 824ad32a94a..54e5bdf7c38 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class CouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -25,36 +50,36 @@ def delete(self): @property def transmitter(self) -> EmitNode: """Transmitter - " """ - val = self._get_property('Transmitter') + " """ + val = self._get_property("Transmitter") return val @transmitter.setter def transmitter(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Transmitter=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Transmitter=" + value]) @property def receiver(self) -> EmitNode: """Receiver - " """ - val = self._get_property('Receiver') + " """ + val = self._get_property("Receiver") return val @receiver.setter def receiver(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Receiver=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Receiver=" + value]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ - val = self._get_property('Data Source') + " """ + val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) @property def visible(self) -> bool: @@ -62,12 +87,12 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Visible') + val = self._get_property("Visible") return val @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) @property def custom_legend(self) -> bool: @@ -75,45 +100,45 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Custom Legend') + val = self._get_property("Custom Legend") return val @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ - val = self._get_property('Name') + " """ + val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ - val = self._get_property('Style') + " """ + val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) @property def line_width(self) -> int: @@ -121,12 +146,12 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - val = self._get_property('Line Width') + val = self._get_property("Line Width") return val @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) @property def line_color(self): @@ -134,42 +159,42 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Line Color') + val = self._get_property("Line Color") return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ - val = self._get_property('Symbol') + " """ + val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) @property def symbol_size(self) -> int: @@ -177,12 +202,12 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - val = self._get_property('Symbol Size') + val = self._get_property("Symbol Size") return val @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) @property def symbol_color(self): @@ -190,12 +215,12 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Symbol Color') + val = self._get_property("Symbol Color") return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) @property def symbol_line_width(self) -> int: @@ -203,12 +228,12 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - val = self._get_property('Symbol Line Width') + val = self._get_property("Symbol Line Width") return val @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) @property def symbol_filled(self) -> bool: @@ -216,12 +241,12 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - val = self._get_property('Symbol Filled') + val = self._get_property("Symbol Filled") return val @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) @property def highlight_regions(self) -> bool: @@ -229,12 +254,12 @@ def highlight_regions(self) -> bool: "If true, regions of the trace are highlighted." "Value should be 'true' or 'false'." """ - val = self._get_property('Highlight Regions') + val = self._get_property("Highlight Regions") return val @highlight_regions.setter def highlight_regions(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Highlight Regions=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Highlight Regions=" + value]) @property def show_region_labels(self) -> bool: @@ -242,12 +267,12 @@ def show_region_labels(self) -> bool: "If true, regions of the trace are labelled." "Value should be 'true' or 'false'." """ - val = self._get_property('Show Region Labels') + val = self._get_property("Show Region Labels") return val @show_region_labels.setter def show_region_labels(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Show Region Labels=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Show Region Labels=" + value]) @property def font(self): @@ -255,12 +280,12 @@ def font(self): "Specify font used for the label." "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ - val = self._get_property('Font') + val = self._get_property("Font") return val @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Font=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Font=" + value]) @property def color(self): @@ -268,12 +293,12 @@ def color(self): "Specify color of the label text." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Color') + val = self._get_property("Color") return val @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Color=" + value]) @property def background_color(self): @@ -281,12 +306,12 @@ def background_color(self): "Set color of the label text background." "Color should be in RGBA form: #AARRGGBB." """ - val = self._get_property('Background Color') + val = self._get_property("Background Color") return val @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Background Color=" + value]) @property def border(self) -> bool: @@ -294,12 +319,12 @@ def border(self) -> bool: "Display a border around the label text." "Value should be 'true' or 'false'." """ - val = self._get_property('Border') + val = self._get_property("Border") return val @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Border=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Border=" + value]) @property def border_width(self) -> int: @@ -307,12 +332,12 @@ def border_width(self) -> int: "Set the width of the border around the label text." "Value should be between 1 and 20." """ - val = self._get_property('Border Width') + val = self._get_property("Border Width") return val @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Border Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Border Width=" + value]) @property def border_color(self): @@ -320,10 +345,9 @@ def border_color(self): "Set color of the border around the label text." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Border Color') + val = self._get_property("Border Color") return val @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Border Color=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Border Color=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py index de89919fcfb..597d04c4f71 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class CouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -7,7 +32,7 @@ def __init__(self, oDesign, result_id, node_id): def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" - return self._import(file_name,'TouchstoneCoupling') + return self._import(file_name, "TouchstoneCoupling") def add_custom_coupling(self): """Add a new node to define custom coupling between antennas""" @@ -51,12 +76,12 @@ def minimum_allowed_coupling(self) -> float: "Global minimum allowed coupling value. All computed coupling within this project will be >= this value." "Value should be between -1000 and 1000." """ - val = self._get_property('Minimum Allowed Coupling') + val = self._get_property("Minimum Allowed Coupling") return val @minimum_allowed_coupling.setter def minimum_allowed_coupling(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Minimum Allowed Coupling=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Minimum Allowed Coupling=" + value]) @property def global_default_coupling(self) -> float: @@ -64,18 +89,17 @@ def global_default_coupling(self) -> float: "Default antenna-to-antenna coupling loss value." "Value should be between -1000 and 0." """ - val = self._get_property('Global Default Coupling') + val = self._get_property("Global Default Coupling") return val @global_default_coupling.setter def global_default_coupling(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Global Default Coupling=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Global Default Coupling=" + value]) @property def antenna_tags(self) -> str: """Antenna Tags "All tags currently used by all antennas in the project." - " """ - val = self._get_property('Antenna Tags') + " """ + val = self._get_property("Antenna Tags") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py index e3e82696831..1e1c80d8485 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class CustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,'Csv') + return self._import(file_name, "Csv") def rename(self, new_name): """Rename this node""" @@ -28,11 +53,11 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Value (dB): + "Value (dB): " Value should be between -1000 and 0." """ return self._get_table_data() @@ -47,36 +72,36 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Antenna A') + " """ + val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna A=" + value]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Antenna B') + " """ + val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna B=" + value]) @property def enable_refinement(self) -> bool: @@ -84,12 +109,12 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Refinement') + val = self._get_property("Enable Refinement") return val @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable Refinement=" + value]) @property def adaptive_sampling(self) -> bool: @@ -97,22 +122,21 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - val = self._get_property('Adaptive Sampling') + val = self._get_property("Adaptive Sampling") return val @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Adaptive Sampling=" + value]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ - val = self._get_property('Refinement Domain') + " """ + val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Refinement Domain=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py index 27af5429d8b..d052a02ed27 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class EmiPlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -28,39 +53,39 @@ def visible(self) -> bool: "Toggle (on/off) this marker." "Value should be 'true' or 'false'." """ - val = self._get_property('Visible') + val = self._get_property("Visible") return val @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) @property def attached(self): """Attached "Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False)." - " """ - val = self._get_property('Attached') + " """ + val = self._get_property("Attached") return val @attached.setter def attached(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Attached=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Attached=" + value]) @property def position(self) -> float: """Position "Set position of the marker along the X-axis." - " """ - val = self._get_property('Position') + " """ + val = self._get_property("Position") return val @property def position(self) -> float: """Position "Set position of the marker along the Y-axis." - " """ - val = self._get_property('Position') + " """ + val = self._get_property("Position") return val @property @@ -69,12 +94,12 @@ def floating_label(self) -> bool: "Allow marker label to be positioned at a fixed point on the plot window (the marker symbol remains fixed to the specified X-Y point)." "Value should be 'true' or 'false'." """ - val = self._get_property('Floating Label') + val = self._get_property("Floating Label") return val @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Floating Label=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Floating Label=" + value]) @property def position_from_left(self) -> float: @@ -82,12 +107,12 @@ def position_from_left(self) -> float: "Set position of label from left to right as a percentage of the width of the plot window." "Value should be between 0 and 100." """ - val = self._get_property('Position from Left') + val = self._get_property("Position from Left") return val @position_from_left.setter def position_from_left(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Position from Left=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Position from Left=" + value]) @property def position_from_top(self) -> float: @@ -95,78 +120,80 @@ def position_from_top(self) -> float: "Set position of label from top to bottom as a percentage of the height of the plot window." "Value should be between 0 and 100." """ - val = self._get_property('Position from Top') + val = self._get_property("Position from Top") return val @position_from_top.setter def position_from_top(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Position from Top=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Position from Top=" + value]) @property def text(self) -> str: """Text "Set the text of the label." - " """ - val = self._get_property('Text') + " """ + val = self._get_property("Text") return val @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Text=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Text=" + value]) class HorizontalPositionOption(Enum): - LEFT = "Left" - RIGHT = "Right" - CENTER = "Center" + LEFT = "Left" + RIGHT = "Right" + CENTER = "Center" @property def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position "Specify horizontal position of the label as compared to the symbol." - " """ - val = self._get_property('Horizontal Position') + " """ + val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] return val @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Horizontal Position=' + value.value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Horizontal Position=" + value.value] + ) class VerticalPositionOption(Enum): - TOP = "Top" - BOTTOM = "Bottom" - CENTER = "Center" + TOP = "Top" + BOTTOM = "Bottom" + CENTER = "Center" @property def vertical_position(self) -> VerticalPositionOption: """Vertical Position "Specify vertical position of the label as compared to the symbol." - " """ - val = self._get_property('Vertical Position') + " """ + val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] return val @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Position=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Vertical Position=" + value.value]) class TextAlignmentOption(Enum): - LEFT = "Left" - RIGHT = "Right" - CENTER = "Center" + LEFT = "Left" + RIGHT = "Right" + CENTER = "Center" @property def text_alignment(self) -> TextAlignmentOption: """Text Alignment "Specify justification applied to multi-line text." - " """ - val = self._get_property('Text Alignment') + " """ + val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] return val @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Text Alignment=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Text Alignment=" + value.value]) @property def font(self): @@ -174,12 +201,12 @@ def font(self): "Specify font used for the label." "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ - val = self._get_property('Font') + val = self._get_property("Font") return val @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Font=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Font=" + value]) @property def color(self): @@ -187,12 +214,12 @@ def color(self): "Specify color of the label text." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Color') + val = self._get_property("Color") return val @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Color=" + value]) @property def background_color(self): @@ -200,12 +227,12 @@ def background_color(self): "Set color of the label text background." "Color should be in RGBA form: #AARRGGBB." """ - val = self._get_property('Background Color') + val = self._get_property("Background Color") return val @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Background Color=" + value]) @property def border(self) -> bool: @@ -213,12 +240,12 @@ def border(self) -> bool: "Display a border around the label text." "Value should be 'true' or 'false'." """ - val = self._get_property('Border') + val = self._get_property("Border") return val @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Border=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Border=" + value]) @property def border_width(self) -> int: @@ -226,12 +253,12 @@ def border_width(self) -> int: "Set the width of the border around the label text." "Value should be between 1 and 20." """ - val = self._get_property('Border Width') + val = self._get_property("Border Width") return val @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Border Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Border Width=" + value]) @property def border_color(self): @@ -239,43 +266,43 @@ def border_color(self): "Set color of the border around the label text." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Border Color') + val = self._get_property("Border Color") return val @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Border Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Border Color=" + value]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" - ARROW = "Arrow" + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + ARROW = "Arrow" @property def symbol(self) -> SymbolOption: """Symbol "Specify symbol displayed next to the label." - " """ - val = self._get_property('Symbol') + " """ + val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) @property def arrow_direction(self) -> int: @@ -283,12 +310,12 @@ def arrow_direction(self) -> int: "Set direction of the arrow; zero degrees is up." "Value should be between -360 and 360." """ - val = self._get_property('Arrow Direction') + val = self._get_property("Arrow Direction") return val @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Arrow Direction=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Arrow Direction=" + value]) @property def symbol_size(self) -> int: @@ -296,12 +323,12 @@ def symbol_size(self) -> int: "Set size of the symbol used for this marker." "Value should be between 1 and 1000." """ - val = self._get_property('Symbol Size') + val = self._get_property("Symbol Size") return val @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) @property def symbol_color(self): @@ -309,12 +336,12 @@ def symbol_color(self): "Set color of the symbol used for this marker." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Symbol Color') + val = self._get_property("Symbol Color") return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) @property def line_width(self) -> int: @@ -322,12 +349,12 @@ def line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - val = self._get_property('Line Width') + val = self._get_property("Line Width") return val @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) @property def filled(self) -> bool: @@ -335,10 +362,9 @@ def filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - val = self._get_property('Filled') + val = self._get_property("Filled") return val @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filled=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filled=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py index 33b09bd29d8..e5401167da3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class EmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,44 +38,46 @@ def add_group(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) class GroundPlaneNormalOption(Enum): - XAXIS = "X Axis" - YAXIS = "Y Axis" - ZAXIS = "Z Axis" + XAXIS = "X Axis" + YAXIS = "Y Axis" + ZAXIS = "Z Axis" @property def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal "Specifies the axis of the normal to the ground plane." - " """ - val = self._get_property('Ground Plane Normal') + " """ + val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] return val @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Ground Plane Normal=' + value.value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Ground Plane Normal=" + value.value] + ) @property def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." - " """ - val = self._get_property('GP Position Along Normal') - val = self._convert_from_default_units(float(val), "Length Unit") + " """ + val = self._get_property("GP Position Along Normal") + val = self._convert_from_internal_units(float(val), "Length") return val @gp_position_along_normal.setter - def gp_position_along_normal(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['GP Position Along Normal=' + f"{value}"]) - + def gp_position_along_normal(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["GP Position Along Normal=" + f"{value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py index eb2ede28ec8..24f0f8b7e38 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -28,36 +53,36 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Base Antenna') + " """ + val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Base Antenna=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Base Antenna=" + value]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Mobile Antenna') + " """ + val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mobile Antenna=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Mobile Antenna=" + value]) @property def enable_refinement(self) -> bool: @@ -65,12 +90,12 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Refinement') + val = self._get_property("Enable Refinement") return val @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable Refinement=" + value]) @property def adaptive_sampling(self) -> bool: @@ -78,42 +103,42 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - val = self._get_property('Adaptive Sampling') + val = self._get_property("Adaptive Sampling") return val @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Adaptive Sampling=" + value]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ - val = self._get_property('Refinement Domain') + " """ + val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Refinement Domain=" + value]) class TerrainCategoryOption(Enum): - TYPEA = "Type A" - TYPEB = "Type B" - TYPEC = "Type C" + TYPEA = "Type A" + TYPEB = "Type B" + TYPEC = "Type C" @property def terrain_category(self) -> TerrainCategoryOption: """Terrain Category "Specify the terrain category type for the Erceg model." - " """ - val = self._get_property('Terrain Category') + " """ + val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] return val @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Terrain Category=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Terrain Category=" + value.value]) @property def custom_fading_margin(self) -> float: @@ -121,12 +146,12 @@ def custom_fading_margin(self) -> float: "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Custom Fading Margin') + val = self._get_property("Custom Fading Margin") return val @custom_fading_margin.setter def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Fading Margin=" + value]) @property def polarization_mismatch(self) -> float: @@ -134,12 +159,12 @@ def polarization_mismatch(self) -> float: "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Polarization Mismatch') + val = self._get_property("Polarization Mismatch") return val @polarization_mismatch.setter def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Mismatch=" + value]) @property def pointing_error_loss(self) -> float: @@ -147,31 +172,31 @@ def pointing_error_loss(self) -> float: "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Pointing Error Loss') + val = self._get_property("Pointing Error Loss") return val @pointing_error_loss.setter def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pointing Error Loss=" + value]) class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ - val = self._get_property('Fading Type') + " """ + val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Type=" + value.value]) @property def fading_availability(self) -> float: @@ -179,12 +204,12 @@ def fading_availability(self) -> float: "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - val = self._get_property('Fading Availability') + val = self._get_property("Fading Availability") return val @fading_availability.setter def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Availability=" + value]) @property def std_deviation(self) -> float: @@ -192,12 +217,12 @@ def std_deviation(self) -> float: "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - val = self._get_property('Std Deviation') + val = self._get_property("Std Deviation") return val @std_deviation.setter def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Std Deviation=" + value]) @property def include_rain_attenuation(self) -> bool: @@ -205,12 +230,12 @@ def include_rain_attenuation(self) -> bool: "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Rain Attenuation') + val = self._get_property("Include Rain Attenuation") return val @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Include Rain Attenuation=" + value]) @property def rain_availability(self) -> float: @@ -218,12 +243,12 @@ def rain_availability(self) -> float: "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - val = self._get_property('Rain Availability') + val = self._get_property("Rain Availability") return val @rain_availability.setter def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Availability=" + value]) @property def rain_rate(self) -> float: @@ -231,12 +256,12 @@ def rain_rate(self) -> float: "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - val = self._get_property('Rain Rate') + val = self._get_property("Rain Rate") return val @rain_rate.setter def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Rate=" + value]) @property def polarization_tilt_angle(self) -> float: @@ -244,12 +269,12 @@ def polarization_tilt_angle(self) -> float: "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - val = self._get_property('Polarization Tilt Angle') + val = self._get_property("Polarization Tilt Angle") return val @polarization_tilt_angle.setter def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Tilt Angle=" + value]) @property def include_atmospheric_absorption(self) -> bool: @@ -257,12 +282,14 @@ def include_atmospheric_absorption(self) -> bool: "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Atmospheric Absorption') + val = self._get_property("Include Atmospheric Absorption") return val @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Include Atmospheric Absorption=" + value] + ) @property def temperature(self) -> float: @@ -270,12 +297,12 @@ def temperature(self) -> float: "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - val = self._get_property('Temperature') + val = self._get_property("Temperature") return val @temperature.setter def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Temperature=" + value]) @property def total_air_pressure(self) -> float: @@ -283,12 +310,12 @@ def total_air_pressure(self) -> float: "Total air pressure." "Value should be between 0 and 2000." """ - val = self._get_property('Total Air Pressure') + val = self._get_property("Total Air Pressure") return val @total_air_pressure.setter def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Total Air Pressure=" + value]) @property def water_vapor_concentration(self) -> float: @@ -296,10 +323,11 @@ def water_vapor_concentration(self) -> float: "Water vapor concentration." "Value should be between 0 and 2000." """ - val = self._get_property('Water Vapor Concentration') + val = self._get_property("Water Vapor Concentration") return val @water_vapor_concentration.setter def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Water Vapor Concentration=" + value] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index 4686e776757..46566d60c18 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class Filter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -23,12 +48,12 @@ def filename(self) -> str: "Name of file defining the outboard component." "Value should be a full file path." """ - val = self._get_property('Filename') + val = self._get_property("Filename") return val @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filename=" + value]) @property def noise_temperature(self) -> float: @@ -36,46 +61,46 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - val = self._get_property('Noise Temperature') + val = self._get_property("Noise Temperature") return val @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Temperature=" + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) class TypeOption(Enum): - BYFILE = "By File" - LOWPASS = "Low Pass" - HIGHPASS = "High Pass" - BANDPASS = "Band Pass" - BANDSTOP = "Band Stop" - TUNABLEBANDPASS = "Tunable Bandpass" - TUNABLEBANDSTOP = "Tunable Bandstop" + BYFILE = "By File" + LOWPASS = "Low Pass" + HIGHPASS = "High Pass" + BANDPASS = "Band Pass" + BANDSTOP = "Band Stop" + TUNABLEBANDPASS = "Tunable Bandpass" + TUNABLEBANDSTOP = "Tunable Bandstop" @property def type(self) -> TypeOption: """Type "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ - val = self._get_property('Type') + " """ + val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Type=" + value.value]) @property def insertion_loss(self) -> float: @@ -83,12 +108,12 @@ def insertion_loss(self) -> float: "Filter pass band loss." "Value should be between 0 and 100." """ - val = self._get_property('Insertion Loss') + val = self._get_property("Insertion Loss") return val @insertion_loss.setter def insertion_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Insertion Loss=" + value]) @property def stop_band_attenuation(self) -> float: @@ -96,12 +121,12 @@ def stop_band_attenuation(self) -> float: "Filter stop band loss (attenuation)." "Value should be less than 200." """ - val = self._get_property('Stop band Attenuation') + val = self._get_property("Stop band Attenuation") return val @stop_band_attenuation.setter def stop_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Stop band Attenuation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Stop band Attenuation=" + value]) @property def max_pass_band(self) -> float: @@ -109,14 +134,14 @@ def max_pass_band(self) -> float: "Maximum pass band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Max Pass Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Max Pass Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @max_pass_band.setter - def max_pass_band(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Pass Band=' + f"{value}"]) + def max_pass_band(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Pass Band=" + f"{value}"]) @property def min_stop_band(self) -> float: @@ -124,14 +149,14 @@ def min_stop_band(self) -> float: "Minimum stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Min Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Min Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @min_stop_band.setter - def min_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Min Stop Band=' + f"{value}"]) + def min_stop_band(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Min Stop Band=" + f"{value}"]) @property def max_stop_band(self) -> float: @@ -139,14 +164,14 @@ def max_stop_band(self) -> float: "Maximum stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Max Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Max Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @max_stop_band.setter - def max_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Stop Band=' + f"{value}"]) + def max_stop_band(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Stop Band=" + f"{value}"]) @property def min_pass_band(self) -> float: @@ -154,14 +179,14 @@ def min_pass_band(self) -> float: "Minimum pass band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Min Pass Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Min Pass Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @min_pass_band.setter - def min_pass_band(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Min Pass Band=' + f"{value}"]) + def min_pass_band(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Min Pass Band=" + f"{value}"]) @property def lower_stop_band(self) -> float: @@ -169,14 +194,14 @@ def lower_stop_band(self) -> float: "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @lower_stop_band.setter - def lower_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + f"{value}"]) + def lower_stop_band(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Stop Band=" + f"{value}"]) @property def lower_cutoff(self) -> float: @@ -184,14 +209,14 @@ def lower_cutoff(self) -> float: "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @lower_cutoff.setter - def lower_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + f"{value}"]) + def lower_cutoff(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Cutoff=" + f"{value}"]) @property def higher_cutoff(self) -> float: @@ -199,14 +224,14 @@ def higher_cutoff(self) -> float: "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @higher_cutoff.setter - def higher_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + f"{value}"]) + def higher_cutoff(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Cutoff=" + f"{value}"]) @property def higher_stop_band(self) -> float: @@ -214,104 +239,108 @@ def higher_stop_band(self) -> float: "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @higher_stop_band.setter - def higher_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + f"{value}"]) + def higher_stop_band(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Stop Band=" + f"{value}"]) @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Cutoff ') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Cutoff ") + val = self._convert_from_internal_units(float(val), "Freq") return val @lower_cutoff_.setter - def lower_cutoff_(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff =' + f"{value}"]) + def lower_cutoff_(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Cutoff =" + f"{value}"]) @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Stop Band ') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Stop Band ") + val = self._convert_from_internal_units(float(val), "Freq") return val @lower_stop_band_.setter - def lower_stop_band_(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band =' + f"{value}"]) + def lower_stop_band_(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Stop Band =" + f"{value}"]) @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Stop Band ') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Stop Band ") + val = self._convert_from_internal_units(float(val), "Freq") return val @higher_stop_band_.setter - def higher_stop_band_(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band =' + f"{value}"]) + def higher_stop_band_(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Stop Band =" + f"{value}"]) @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Cutoff ') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Cutoff ") + val = self._convert_from_internal_units(float(val), "Freq") return val @higher_cutoff_.setter - def higher_cutoff_(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff =' + f"{value}"]) + def higher_cutoff_(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Cutoff =" + f"{value}"]) @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency "Lowest tuned frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lowest Tuned Frequency ') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lowest Tuned Frequency ") + val = self._convert_from_internal_units(float(val), "Freq") return val @lowest_tuned_frequency_.setter - def lowest_tuned_frequency_(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lowest Tuned Frequency =' + f"{value}"]) + def lowest_tuned_frequency_(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Lowest Tuned Frequency =" + f"{value}"] + ) @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency "Highest tuned frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Highest Tuned Frequency ') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Highest Tuned Frequency ") + val = self._convert_from_internal_units(float(val), "Freq") return val @highest_tuned_frequency_.setter - def highest_tuned_frequency_(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Highest Tuned Frequency =' + f"{value}"]) + def highest_tuned_frequency_(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Highest Tuned Frequency =" + f"{value}"] + ) @property def percent_bandwidth(self) -> float: @@ -319,12 +348,12 @@ def percent_bandwidth(self) -> float: "Tunable filter 3-dB bandwidth." "Value should be between 0.001 and 100." """ - val = self._get_property('Percent Bandwidth') + val = self._get_property("Percent Bandwidth") return val @percent_bandwidth.setter def percent_bandwidth(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Percent Bandwidth=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Percent Bandwidth=" + value]) @property def shape_factor(self) -> float: @@ -332,18 +361,17 @@ def shape_factor(self) -> float: "Ratio defining the filter rolloff." "Value should be between 1 and 100." """ - val = self._get_property('Shape Factor') + val = self._get_property("Shape Factor") return val @shape_factor.setter def shape_factor(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Shape Factor=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Shape Factor=" + value]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ - val = self._get_property('Warnings') + " """ + val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py index ee6514c5778..00cb65e3617 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class FiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -28,36 +53,36 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Base Antenna') + " """ + val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Base Antenna=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Base Antenna=" + value]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Mobile Antenna') + " """ + val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mobile Antenna=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Mobile Antenna=" + value]) @property def enable_refinement(self) -> bool: @@ -65,12 +90,12 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Refinement') + val = self._get_property("Enable Refinement") return val @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable Refinement=" + value]) @property def adaptive_sampling(self) -> bool: @@ -78,42 +103,42 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - val = self._get_property('Adaptive Sampling') + val = self._get_property("Adaptive Sampling") return val @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Adaptive Sampling=" + value]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ - val = self._get_property('Refinement Domain') + " """ + val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Refinement Domain=" + value]) class EnvironmentOption(Enum): - URBANMICROCELL = "Urban Microcell" - URBANMACROCELL = "Urban Macrocell" - RURALMACROCELL = "Rural Macrocell" + URBANMICROCELL = "Urban Microcell" + URBANMACROCELL = "Urban Macrocell" + RURALMACROCELL = "Rural Macrocell" @property def environment(self) -> EnvironmentOption: """Environment "Specify the environment for the 5G channel model." - " """ - val = self._get_property('Environment') + " """ + val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Environment=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Environment=" + value.value]) @property def los(self) -> bool: @@ -121,12 +146,12 @@ def los(self) -> bool: "True if the operating environment is line-of-sight." "Value should be 'true' or 'false'." """ - val = self._get_property('LOS') + val = self._get_property("LOS") return val @los.setter def los(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['LOS=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["LOS=" + value]) @property def include_bpl(self) -> bool: @@ -134,29 +159,29 @@ def include_bpl(self) -> bool: "Includes building penetration loss if true." "Value should be 'true' or 'false'." """ - val = self._get_property('Include BPL') + val = self._get_property("Include BPL") return val @include_bpl.setter def include_bpl(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include BPL=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Include BPL=" + value]) class NYUBPLModelOption(Enum): - LOWLOSSMODEL = "Low-loss model" - HIGHLOSSMODEL = "High-loss model" + LOWLOSSMODEL = "Low-loss model" + HIGHLOSSMODEL = "High-loss model" @property def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model "Specify the NYU Building Penetration Loss model." - " """ - val = self._get_property('NYU BPL Model') + " """ + val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] return val @nyu_bpl_model.setter def nyu_bpl_model(self, value: NYUBPLModelOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['NYU BPL Model=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["NYU BPL Model=" + value.value]) @property def custom_fading_margin(self) -> float: @@ -164,12 +189,12 @@ def custom_fading_margin(self) -> float: "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Custom Fading Margin') + val = self._get_property("Custom Fading Margin") return val @custom_fading_margin.setter def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Fading Margin=" + value]) @property def polarization_mismatch(self) -> float: @@ -177,12 +202,12 @@ def polarization_mismatch(self) -> float: "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Polarization Mismatch') + val = self._get_property("Polarization Mismatch") return val @polarization_mismatch.setter def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Mismatch=" + value]) @property def pointing_error_loss(self) -> float: @@ -190,31 +215,31 @@ def pointing_error_loss(self) -> float: "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Pointing Error Loss') + val = self._get_property("Pointing Error Loss") return val @pointing_error_loss.setter def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pointing Error Loss=" + value]) class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ - val = self._get_property('Fading Type') + " """ + val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Type=" + value.value]) @property def fading_availability(self) -> float: @@ -222,12 +247,12 @@ def fading_availability(self) -> float: "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - val = self._get_property('Fading Availability') + val = self._get_property("Fading Availability") return val @fading_availability.setter def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Availability=" + value]) @property def std_deviation(self) -> float: @@ -235,12 +260,12 @@ def std_deviation(self) -> float: "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - val = self._get_property('Std Deviation') + val = self._get_property("Std Deviation") return val @std_deviation.setter def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Std Deviation=" + value]) @property def include_rain_attenuation(self) -> bool: @@ -248,12 +273,12 @@ def include_rain_attenuation(self) -> bool: "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Rain Attenuation') + val = self._get_property("Include Rain Attenuation") return val @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Include Rain Attenuation=" + value]) @property def rain_availability(self) -> float: @@ -261,12 +286,12 @@ def rain_availability(self) -> float: "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - val = self._get_property('Rain Availability') + val = self._get_property("Rain Availability") return val @rain_availability.setter def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Availability=" + value]) @property def rain_rate(self) -> float: @@ -274,12 +299,12 @@ def rain_rate(self) -> float: "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - val = self._get_property('Rain Rate') + val = self._get_property("Rain Rate") return val @rain_rate.setter def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Rate=" + value]) @property def polarization_tilt_angle(self) -> float: @@ -287,12 +312,12 @@ def polarization_tilt_angle(self) -> float: "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - val = self._get_property('Polarization Tilt Angle') + val = self._get_property("Polarization Tilt Angle") return val @polarization_tilt_angle.setter def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Tilt Angle=" + value]) @property def include_atmospheric_absorption(self) -> bool: @@ -300,12 +325,14 @@ def include_atmospheric_absorption(self) -> bool: "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Atmospheric Absorption') + val = self._get_property("Include Atmospheric Absorption") return val @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Include Atmospheric Absorption=" + value] + ) @property def temperature(self) -> float: @@ -313,12 +340,12 @@ def temperature(self) -> float: "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - val = self._get_property('Temperature') + val = self._get_property("Temperature") return val @temperature.setter def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Temperature=" + value]) @property def total_air_pressure(self) -> float: @@ -326,12 +353,12 @@ def total_air_pressure(self) -> float: "Total air pressure." "Value should be between 0 and 2000." """ - val = self._get_property('Total Air Pressure') + val = self._get_property("Total Air Pressure") return val @total_air_pressure.setter def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Total Air Pressure=" + value]) @property def water_vapor_concentration(self) -> float: @@ -339,10 +366,11 @@ def water_vapor_concentration(self) -> float: "Water vapor concentration." "Value should be between 0 and 2000." """ - val = self._get_property('Water Vapor Concentration') + val = self._get_property("Water Vapor Concentration") return val @water_vapor_concentration.setter def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Water Vapor Concentration=" + value] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py index 84d5289ca8b..69f4be566da 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class HataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -28,36 +53,36 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Base Antenna') + " """ + val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Base Antenna=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Base Antenna=" + value]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Mobile Antenna') + " """ + val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mobile Antenna=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Mobile Antenna=" + value]) @property def enable_refinement(self) -> bool: @@ -65,12 +90,12 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Refinement') + val = self._get_property("Enable Refinement") return val @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable Refinement=" + value]) @property def adaptive_sampling(self) -> bool: @@ -78,43 +103,43 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - val = self._get_property('Adaptive Sampling') + val = self._get_property("Adaptive Sampling") return val @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Adaptive Sampling=" + value]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ - val = self._get_property('Refinement Domain') + " """ + val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Refinement Domain=" + value]) class EnvironmentOption(Enum): - LARGECITY = "Large City" - SMALLMEDCITY = "Small/Medium City" - SUBURBAN = "Suburban" - RURAL = "Rural" + LARGECITY = "Large City" + SMALLMEDCITY = "Small/Medium City" + SUBURBAN = "Suburban" + RURAL = "Rural" @property def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Hata model." - " """ - val = self._get_property('Environment') + " """ + val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Environment=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Environment=" + value.value]) @property def custom_fading_margin(self) -> float: @@ -122,12 +147,12 @@ def custom_fading_margin(self) -> float: "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Custom Fading Margin') + val = self._get_property("Custom Fading Margin") return val @custom_fading_margin.setter def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Fading Margin=" + value]) @property def polarization_mismatch(self) -> float: @@ -135,12 +160,12 @@ def polarization_mismatch(self) -> float: "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Polarization Mismatch') + val = self._get_property("Polarization Mismatch") return val @polarization_mismatch.setter def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Mismatch=" + value]) @property def pointing_error_loss(self) -> float: @@ -148,31 +173,31 @@ def pointing_error_loss(self) -> float: "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Pointing Error Loss') + val = self._get_property("Pointing Error Loss") return val @pointing_error_loss.setter def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pointing Error Loss=" + value]) class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ - val = self._get_property('Fading Type') + " """ + val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Type=" + value.value]) @property def fading_availability(self) -> float: @@ -180,12 +205,12 @@ def fading_availability(self) -> float: "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - val = self._get_property('Fading Availability') + val = self._get_property("Fading Availability") return val @fading_availability.setter def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Availability=" + value]) @property def std_deviation(self) -> float: @@ -193,12 +218,12 @@ def std_deviation(self) -> float: "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - val = self._get_property('Std Deviation') + val = self._get_property("Std Deviation") return val @std_deviation.setter def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Std Deviation=" + value]) @property def include_rain_attenuation(self) -> bool: @@ -206,12 +231,12 @@ def include_rain_attenuation(self) -> bool: "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Rain Attenuation') + val = self._get_property("Include Rain Attenuation") return val @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Include Rain Attenuation=" + value]) @property def rain_availability(self) -> float: @@ -219,12 +244,12 @@ def rain_availability(self) -> float: "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - val = self._get_property('Rain Availability') + val = self._get_property("Rain Availability") return val @rain_availability.setter def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Availability=" + value]) @property def rain_rate(self) -> float: @@ -232,12 +257,12 @@ def rain_rate(self) -> float: "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - val = self._get_property('Rain Rate') + val = self._get_property("Rain Rate") return val @rain_rate.setter def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Rate=" + value]) @property def polarization_tilt_angle(self) -> float: @@ -245,12 +270,12 @@ def polarization_tilt_angle(self) -> float: "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - val = self._get_property('Polarization Tilt Angle') + val = self._get_property("Polarization Tilt Angle") return val @polarization_tilt_angle.setter def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Tilt Angle=" + value]) @property def include_atmospheric_absorption(self) -> bool: @@ -258,12 +283,14 @@ def include_atmospheric_absorption(self) -> bool: "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Atmospheric Absorption') + val = self._get_property("Include Atmospheric Absorption") return val @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Include Atmospheric Absorption=" + value] + ) @property def temperature(self) -> float: @@ -271,12 +298,12 @@ def temperature(self) -> float: "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - val = self._get_property('Temperature') + val = self._get_property("Temperature") return val @temperature.setter def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Temperature=" + value]) @property def total_air_pressure(self) -> float: @@ -284,12 +311,12 @@ def total_air_pressure(self) -> float: "Total air pressure." "Value should be between 0 and 2000." """ - val = self._get_property('Total Air Pressure') + val = self._get_property("Total Air Pressure") return val @total_air_pressure.setter def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Total Air Pressure=" + value]) @property def water_vapor_concentration(self) -> float: @@ -297,10 +324,11 @@ def water_vapor_concentration(self) -> float: "Water vapor concentration." "Value should be between 0 and 2000." """ - val = self._get_property('Water Vapor Concentration') + val = self._get_property("Water Vapor Concentration") return val @water_vapor_concentration.setter def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Water Vapor Concentration=" + value] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py index 145a33cb531..9ed8147460c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class IndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -24,13 +49,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Power Loss Coefficient: + "Power Loss Coefficient: " Value should be between 0 and 100." - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): " Value should be between 0 and 1000." """ return self._get_table_data() @@ -45,36 +70,36 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Antenna A') + " """ + val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna A=" + value]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Antenna B') + " """ + val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna B=" + value]) @property def enable_refinement(self) -> bool: @@ -82,12 +107,12 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Refinement') + val = self._get_property("Enable Refinement") return val @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable Refinement=" + value]) @property def adaptive_sampling(self) -> bool: @@ -95,44 +120,44 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - val = self._get_property('Adaptive Sampling') + val = self._get_property("Adaptive Sampling") return val @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Adaptive Sampling=" + value]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ - val = self._get_property('Refinement Domain') + " """ + val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Refinement Domain=" + value]) class BuildingTypeOption(Enum): - RESIDENTIALAPARTMENT = "Residential Apartment" - RESIDENTIALHOUSE = "Residential House" - OFFICEBUILDING = "Office Building" - COMMERCIALBUILDING = "Commercial Building" - CUSTOMBUILDING = "Custom Building" + RESIDENTIALAPARTMENT = "Residential Apartment" + RESIDENTIALHOUSE = "Residential House" + OFFICEBUILDING = "Office Building" + COMMERCIALBUILDING = "Commercial Building" + CUSTOMBUILDING = "Custom Building" @property def building_type(self) -> BuildingTypeOption: """Building Type "Specify the building type for the Indoor Propagation model." - " """ - val = self._get_property('Building Type') + " """ + val = self._get_property("Building Type") val = self.BuildingTypeOption[val] return val @building_type.setter def building_type(self, value: BuildingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Building Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Building Type=" + value.value]) @property def number_of_floors(self) -> int: @@ -140,12 +165,12 @@ def number_of_floors(self) -> int: "The number of floors separating the antennas.." "Value should be between 1 and 3." """ - val = self._get_property('Number of Floors') + val = self._get_property("Number of Floors") return val @number_of_floors.setter def number_of_floors(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Number of Floors=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Number of Floors=" + value]) @property def custom_fading_margin(self) -> float: @@ -153,12 +178,12 @@ def custom_fading_margin(self) -> float: "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Custom Fading Margin') + val = self._get_property("Custom Fading Margin") return val @custom_fading_margin.setter def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Fading Margin=" + value]) @property def polarization_mismatch(self) -> float: @@ -166,12 +191,12 @@ def polarization_mismatch(self) -> float: "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Polarization Mismatch') + val = self._get_property("Polarization Mismatch") return val @polarization_mismatch.setter def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Mismatch=" + value]) @property def pointing_error_loss(self) -> float: @@ -179,31 +204,31 @@ def pointing_error_loss(self) -> float: "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Pointing Error Loss') + val = self._get_property("Pointing Error Loss") return val @pointing_error_loss.setter def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pointing Error Loss=" + value]) class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ - val = self._get_property('Fading Type') + " """ + val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Type=" + value.value]) @property def fading_availability(self) -> float: @@ -211,12 +236,12 @@ def fading_availability(self) -> float: "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - val = self._get_property('Fading Availability') + val = self._get_property("Fading Availability") return val @fading_availability.setter def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Availability=" + value]) @property def std_deviation(self) -> float: @@ -224,12 +249,12 @@ def std_deviation(self) -> float: "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - val = self._get_property('Std Deviation') + val = self._get_property("Std Deviation") return val @std_deviation.setter def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Std Deviation=" + value]) @property def include_rain_attenuation(self) -> bool: @@ -237,12 +262,12 @@ def include_rain_attenuation(self) -> bool: "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Rain Attenuation') + val = self._get_property("Include Rain Attenuation") return val @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Include Rain Attenuation=" + value]) @property def rain_availability(self) -> float: @@ -250,12 +275,12 @@ def rain_availability(self) -> float: "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - val = self._get_property('Rain Availability') + val = self._get_property("Rain Availability") return val @rain_availability.setter def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Availability=" + value]) @property def rain_rate(self) -> float: @@ -263,12 +288,12 @@ def rain_rate(self) -> float: "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - val = self._get_property('Rain Rate') + val = self._get_property("Rain Rate") return val @rain_rate.setter def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Rate=" + value]) @property def polarization_tilt_angle(self) -> float: @@ -276,12 +301,12 @@ def polarization_tilt_angle(self) -> float: "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - val = self._get_property('Polarization Tilt Angle') + val = self._get_property("Polarization Tilt Angle") return val @polarization_tilt_angle.setter def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Tilt Angle=" + value]) @property def include_atmospheric_absorption(self) -> bool: @@ -289,12 +314,14 @@ def include_atmospheric_absorption(self) -> bool: "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Atmospheric Absorption') + val = self._get_property("Include Atmospheric Absorption") return val @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Include Atmospheric Absorption=" + value] + ) @property def temperature(self) -> float: @@ -302,12 +329,12 @@ def temperature(self) -> float: "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - val = self._get_property('Temperature') + val = self._get_property("Temperature") return val @temperature.setter def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Temperature=" + value]) @property def total_air_pressure(self) -> float: @@ -315,12 +342,12 @@ def total_air_pressure(self) -> float: "Total air pressure." "Value should be between 0 and 2000." """ - val = self._get_property('Total Air Pressure') + val = self._get_property("Total Air Pressure") return val @total_air_pressure.setter def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Total Air Pressure=" + value]) @property def water_vapor_concentration(self) -> float: @@ -328,10 +355,11 @@ def water_vapor_concentration(self) -> float: "Water vapor concentration." "Value should be between 0 and 2000." """ - val = self._get_property('Water Vapor Concentration') + val = self._get_property("Water Vapor Concentration") return val @water_vapor_concentration.setter def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Water Vapor Concentration=" + value] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index cacb5988694..0970614f650 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class Isolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -23,12 +48,12 @@ def filename(self) -> str: "Name of file defining the outboard component." "Value should be a full file path." """ - val = self._get_property('Filename') + val = self._get_property("Filename") return val @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filename=" + value]) @property def noise_temperature(self) -> float: @@ -36,58 +61,58 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - val = self._get_property('Noise Temperature') + val = self._get_property("Noise Temperature") return val @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Temperature=" + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) class TypeOption(Enum): - BYFILE = "By File" - PARAMETRIC = "Parametric" + BYFILE = "By File" + PARAMETRIC = "Parametric" @property def type(self) -> TypeOption: """Type "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." - " """ - val = self._get_property('Type') + " """ + val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Type=" + value.value]) class Port1LocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the isolator.." - " """ - val = self._get_property('Port 1 Location') + " """ + val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Port 1 Location=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Port 1 Location=" + value.value]) @property def insertion_loss(self) -> float: @@ -95,12 +120,12 @@ def insertion_loss(self) -> float: "Isolator in-band loss in forward direction.." "Value should be between 0 and 100." """ - val = self._get_property('Insertion Loss') + val = self._get_property("Insertion Loss") return val @insertion_loss.setter def insertion_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Insertion Loss=" + value]) @property def finite_reverse_isolation(self) -> bool: @@ -108,12 +133,12 @@ def finite_reverse_isolation(self) -> bool: "Use a finite reverse isolation. If disabled, the isolator model is ideal (infinite reverse isolation).." "Value should be 'true' or 'false'." """ - val = self._get_property('Finite Reverse Isolation') + val = self._get_property("Finite Reverse Isolation") return val @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Finite Reverse Isolation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Finite Reverse Isolation=" + value]) @property def reverse_isolation(self) -> float: @@ -121,12 +146,12 @@ def reverse_isolation(self) -> float: "Isolator reverse isolation (i.e., loss in the reverse direction).." "Value should be between 0 and 100." """ - val = self._get_property('Reverse Isolation') + val = self._get_property("Reverse Isolation") return val @reverse_isolation.setter def reverse_isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Reverse Isolation=" + value]) @property def finite_bandwidth(self) -> bool: @@ -134,12 +159,12 @@ def finite_bandwidth(self) -> bool: "Use a finite bandwidth. If disabled, the isolator model is ideal (infinite bandwidth).." "Value should be 'true' or 'false'." """ - val = self._get_property('Finite Bandwidth') + val = self._get_property("Finite Bandwidth") return val @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Finite Bandwidth=" + value]) @property def out_of_band_attenuation(self) -> float: @@ -147,12 +172,12 @@ def out_of_band_attenuation(self) -> float: "Out-of-band loss (attenuation)." "Value should be between 0 and 200." """ - val = self._get_property('Out-of-band Attenuation') + val = self._get_property("Out-of-band Attenuation") return val @out_of_band_attenuation.setter def out_of_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Out-of-band Attenuation=" + value]) @property def lower_stop_band(self) -> float: @@ -160,14 +185,14 @@ def lower_stop_band(self) -> float: "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @lower_stop_band.setter - def lower_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + f"{value}"]) + def lower_stop_band(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Stop Band=" + f"{value}"]) @property def lower_cutoff(self) -> float: @@ -175,14 +200,14 @@ def lower_cutoff(self) -> float: "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @lower_cutoff.setter - def lower_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + f"{value}"]) + def lower_cutoff(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Cutoff=" + f"{value}"]) @property def higher_cutoff(self) -> float: @@ -190,14 +215,14 @@ def higher_cutoff(self) -> float: "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @higher_cutoff.setter - def higher_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + f"{value}"]) + def higher_cutoff(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Cutoff=" + f"{value}"]) @property def higher_stop_band(self) -> float: @@ -205,20 +230,19 @@ def higher_stop_band(self) -> float: "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @higher_stop_band.setter - def higher_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + f"{value}"]) + def higher_stop_band(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Stop Band=" + f"{value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ - val = self._get_property('Warnings') + " """ + val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py index fe4bb4d2c84..c3929d11405 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class LogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -28,36 +53,36 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Antenna A') + " """ + val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna A=" + value]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Antenna B') + " """ + val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna B=" + value]) @property def enable_refinement(self) -> bool: @@ -65,12 +90,12 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Refinement') + val = self._get_property("Enable Refinement") return val @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable Refinement=" + value]) @property def adaptive_sampling(self) -> bool: @@ -78,46 +103,46 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - val = self._get_property('Adaptive Sampling') + val = self._get_property("Adaptive Sampling") return val @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Adaptive Sampling=" + value]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ - val = self._get_property('Refinement Domain') + " """ + val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Refinement Domain=" + value]) class EnvironmentOption(Enum): - FREESPACE = "Free Space" - URBAN = "Urban" - SHADOWEDURBAN = "Shadowed Urban" - BUILDINGLINEOFSIGHT = "Building - Line of Sight" - BUILDINGOBSTRUCTED = "Building - Obstructed" - FACTORYOBSTRUCTED = "Factory - Obstructed" - CUSTOMEXPONENT = "Custom" + FREESPACE = "Free Space" + URBAN = "Urban" + SHADOWEDURBAN = "Shadowed Urban" + BUILDINGLINEOFSIGHT = "Building - Line of Sight" + BUILDINGOBSTRUCTED = "Building - Obstructed" + FACTORYOBSTRUCTED = "Factory - Obstructed" + CUSTOMEXPONENT = "Custom" @property def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Log Distance model." - " """ - val = self._get_property('Environment') + " """ + val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Environment=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Environment=" + value.value]) @property def path_loss_exponent(self) -> float: @@ -125,12 +150,12 @@ def path_loss_exponent(self) -> float: "Path Loss Exponent." "Value should be between 0 and 100." """ - val = self._get_property('Path Loss Exponent') + val = self._get_property("Path Loss Exponent") return val @path_loss_exponent.setter def path_loss_exponent(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Path Loss Exponent=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Path Loss Exponent=" + value]) @property def custom_fading_margin(self) -> float: @@ -138,12 +163,12 @@ def custom_fading_margin(self) -> float: "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Custom Fading Margin') + val = self._get_property("Custom Fading Margin") return val @custom_fading_margin.setter def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Fading Margin=" + value]) @property def polarization_mismatch(self) -> float: @@ -151,12 +176,12 @@ def polarization_mismatch(self) -> float: "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Polarization Mismatch') + val = self._get_property("Polarization Mismatch") return val @polarization_mismatch.setter def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Mismatch=" + value]) @property def pointing_error_loss(self) -> float: @@ -164,31 +189,31 @@ def pointing_error_loss(self) -> float: "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Pointing Error Loss') + val = self._get_property("Pointing Error Loss") return val @pointing_error_loss.setter def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pointing Error Loss=" + value]) class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ - val = self._get_property('Fading Type') + " """ + val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Type=" + value.value]) @property def fading_availability(self) -> float: @@ -196,12 +221,12 @@ def fading_availability(self) -> float: "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - val = self._get_property('Fading Availability') + val = self._get_property("Fading Availability") return val @fading_availability.setter def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Availability=" + value]) @property def std_deviation(self) -> float: @@ -209,12 +234,12 @@ def std_deviation(self) -> float: "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - val = self._get_property('Std Deviation') + val = self._get_property("Std Deviation") return val @std_deviation.setter def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Std Deviation=" + value]) @property def include_rain_attenuation(self) -> bool: @@ -222,12 +247,12 @@ def include_rain_attenuation(self) -> bool: "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Rain Attenuation') + val = self._get_property("Include Rain Attenuation") return val @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Include Rain Attenuation=" + value]) @property def rain_availability(self) -> float: @@ -235,12 +260,12 @@ def rain_availability(self) -> float: "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - val = self._get_property('Rain Availability') + val = self._get_property("Rain Availability") return val @rain_availability.setter def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Availability=" + value]) @property def rain_rate(self) -> float: @@ -248,12 +273,12 @@ def rain_rate(self) -> float: "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - val = self._get_property('Rain Rate') + val = self._get_property("Rain Rate") return val @rain_rate.setter def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Rate=" + value]) @property def polarization_tilt_angle(self) -> float: @@ -261,12 +286,12 @@ def polarization_tilt_angle(self) -> float: "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - val = self._get_property('Polarization Tilt Angle') + val = self._get_property("Polarization Tilt Angle") return val @polarization_tilt_angle.setter def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Tilt Angle=" + value]) @property def include_atmospheric_absorption(self) -> bool: @@ -274,12 +299,14 @@ def include_atmospheric_absorption(self) -> bool: "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Atmospheric Absorption') + val = self._get_property("Include Atmospheric Absorption") return val @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Include Atmospheric Absorption=" + value] + ) @property def temperature(self) -> float: @@ -287,12 +314,12 @@ def temperature(self) -> float: "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - val = self._get_property('Temperature') + val = self._get_property("Temperature") return val @temperature.setter def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Temperature=" + value]) @property def total_air_pressure(self) -> float: @@ -300,12 +327,12 @@ def total_air_pressure(self) -> float: "Total air pressure." "Value should be between 0 and 2000." """ - val = self._get_property('Total Air Pressure') + val = self._get_property("Total Air Pressure") return val @total_air_pressure.setter def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Total Air Pressure=" + value]) @property def water_vapor_concentration(self) -> float: @@ -313,10 +340,11 @@ def water_vapor_concentration(self) -> float: "Water vapor concentration." "Value should be between 0 and 2000." """ - val = self._get_property('Water Vapor Concentration') + val = self._get_property("Water Vapor Concentration") return val @water_vapor_concentration.setter def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Water Vapor Concentration=" + value] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py index 0e0081e55c2..ed3d0632142 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class MPlexBandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -23,31 +48,31 @@ def delete(self): self._delete() class PowerDirectionOption(Enum): - INCOMMONPORTOUTCOMMONPORT = "Into Common Port|Out of Common Port" + INCOMMONPORTOUTCOMMONPORT = "Into Common Port|Out of Common Port" @property def power_direction(self) -> PowerDirectionOption: """Power Direction - " """ - val = self._get_property('Power Direction') + " """ + val = self._get_property("Power Direction") val = self.PowerDirectionOption[val] return val @power_direction.setter def power_direction(self, value: PowerDirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Power Direction=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Power Direction=" + value.value]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ - val = self._get_property('Data Source') + " """ + val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) @property def visible(self) -> bool: @@ -55,12 +80,12 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Visible') + val = self._get_property("Visible") return val @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) @property def custom_legend(self) -> bool: @@ -68,45 +93,45 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Custom Legend') + val = self._get_property("Custom Legend") return val @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ - val = self._get_property('Name') + " """ + val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ - val = self._get_property('Style') + " """ + val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) @property def line_width(self) -> int: @@ -114,12 +139,12 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - val = self._get_property('Line Width') + val = self._get_property("Line Width") return val @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) @property def line_color(self): @@ -127,42 +152,42 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Line Color') + val = self._get_property("Line Color") return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ - val = self._get_property('Symbol') + " """ + val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) @property def symbol_size(self) -> int: @@ -170,12 +195,12 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - val = self._get_property('Symbol Size') + val = self._get_property("Symbol Size") return val @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) @property def symbol_color(self): @@ -183,12 +208,12 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Symbol Color') + val = self._get_property("Symbol Color") return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) @property def symbol_line_width(self) -> int: @@ -196,12 +221,12 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - val = self._get_property('Symbol Line Width') + val = self._get_property("Symbol Line Width") return val @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) @property def symbol_filled(self) -> bool: @@ -209,10 +234,9 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - val = self._get_property('Symbol Filled') + val = self._get_property("Symbol Filled") return val @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index 806afb9f213..c0aec46855f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class Multiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -27,12 +52,12 @@ def filename(self) -> str: "Name of file defining the multiplexer." "Value should be a full file path." """ - val = self._get_property('Filename') + val = self._get_property("Filename") return val @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filename=" + value]) @property def noise_temperature(self) -> float: @@ -40,58 +65,58 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - val = self._get_property('Noise Temperature') + val = self._get_property("Noise Temperature") return val @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Temperature=" + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) class TypeOption(Enum): - PARAMETRIC = "By Pass Band" - BYFILE = "By File" + PARAMETRIC = "By Pass Band" + BYFILE = "By File" @property def type(self) -> TypeOption: """Type "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." - " """ - val = self._get_property('Type') + " """ + val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Type=" + value.value]) class Port1LocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the multiplexer.." - " """ - val = self._get_property('Port 1 Location') + " """ + val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Port 1 Location=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Port 1 Location=" + value.value]) @property def flip_ports_vertically(self) -> bool: @@ -99,31 +124,30 @@ def flip_ports_vertically(self) -> bool: "Reverses the port order on the multi-port side of the multiplexer.." "Value should be 'true' or 'false'." """ - val = self._get_property('Flip Ports Vertically') + val = self._get_property("Flip Ports Vertically") return val @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Flip Ports Vertically=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Flip Ports Vertically=" + value]) @property def ports(self): """Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ - val = self._get_property('Ports') + " """ + val = self._get_property("Ports") return val @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Ports=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Ports=" + value]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ - val = self._get_property('Warnings') + " """ + val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py index 53d5d6810c2..0bace57e6db 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class MultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -23,23 +48,23 @@ def delete(self): self._delete() class TypeOption(Enum): - BYFILE = "By File" - LOWPASS = "Low Pass" - HIGHPASS = "High Pass" - BANDPASS = "Band Pass" + BYFILE = "By File" + LOWPASS = "Low Pass" + HIGHPASS = "High Pass" + BANDPASS = "Band Pass" @property def type(self) -> TypeOption: """Type "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ - val = self._get_property('Type') + " """ + val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Type=" + value.value]) @property def filename(self) -> str: @@ -47,12 +72,12 @@ def filename(self) -> str: "Name of file defining the multiplexer band." "Value should be a full file path." """ - val = self._get_property('Filename') + val = self._get_property("Filename") return val @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filename=" + value]) @property def insertion_loss(self) -> float: @@ -60,12 +85,12 @@ def insertion_loss(self) -> float: "Multiplexer pass band insertion loss." "Value should be between 0 and 100." """ - val = self._get_property('Insertion Loss') + val = self._get_property("Insertion Loss") return val @insertion_loss.setter def insertion_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Insertion Loss=" + value]) @property def stop_band_attenuation(self) -> float: @@ -73,12 +98,12 @@ def stop_band_attenuation(self) -> float: "Stop-band loss (attenuation)." "Value should be between 0 and 200." """ - val = self._get_property('Stop band Attenuation') + val = self._get_property("Stop band Attenuation") return val @stop_band_attenuation.setter def stop_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Stop band Attenuation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Stop band Attenuation=" + value]) @property def max_pass_band(self) -> float: @@ -86,14 +111,14 @@ def max_pass_band(self) -> float: "Maximum pass band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Max Pass Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Max Pass Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @max_pass_band.setter - def max_pass_band(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Pass Band=' + f"{value}"]) + def max_pass_band(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Pass Band=" + f"{value}"]) @property def min_stop_band(self) -> float: @@ -101,14 +126,14 @@ def min_stop_band(self) -> float: "Minimum stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Min Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Min Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @min_stop_band.setter - def min_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Min Stop Band=' + f"{value}"]) + def min_stop_band(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Min Stop Band=" + f"{value}"]) @property def max_stop_band(self) -> float: @@ -116,14 +141,14 @@ def max_stop_band(self) -> float: "Maximum stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Max Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Max Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @max_stop_band.setter - def max_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Stop Band=' + f"{value}"]) + def max_stop_band(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Stop Band=" + f"{value}"]) @property def min_pass_band(self) -> float: @@ -131,14 +156,14 @@ def min_pass_band(self) -> float: "Minimum pass band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Min Pass Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Min Pass Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @min_pass_band.setter - def min_pass_band(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Min Pass Band=' + f"{value}"]) + def min_pass_band(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Min Pass Band=" + f"{value}"]) @property def lower_stop_band(self) -> float: @@ -146,14 +171,14 @@ def lower_stop_band(self) -> float: "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @lower_stop_band.setter - def lower_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + f"{value}"]) + def lower_stop_band(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Stop Band=" + f"{value}"]) @property def lower_cutoff(self) -> float: @@ -161,14 +186,14 @@ def lower_cutoff(self) -> float: "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @lower_cutoff.setter - def lower_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + f"{value}"]) + def lower_cutoff(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Cutoff=" + f"{value}"]) @property def higher_cutoff(self) -> float: @@ -176,14 +201,14 @@ def higher_cutoff(self) -> float: "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @higher_cutoff.setter - def higher_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + f"{value}"]) + def higher_cutoff(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Cutoff=" + f"{value}"]) @property def higher_stop_band(self) -> float: @@ -191,20 +216,19 @@ def higher_stop_band(self) -> float: "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @higher_stop_band.setter - def higher_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + f"{value}"]) + def higher_stop_band(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Stop Band=" + f"{value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ - val = self._get_property('Warnings') + " """ + val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py index 1a041290897..912f8dc0917 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class OutboardTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -28,12 +53,12 @@ def input_port(self) -> int: "Specifies input port for the plotted outboard component." "Value should be greater than 1." """ - val = self._get_property('Input Port') + val = self._get_property("Input Port") return val @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Input Port=" + value]) @property def output_port(self) -> int: @@ -41,24 +66,24 @@ def output_port(self) -> int: "Specifies output port for the plotted outboard component." "Value should be greater than 1." """ - val = self._get_property('Output Port') + val = self._get_property("Output Port") return val @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Output Port=" + value]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ - val = self._get_property('Data Source') + " """ + val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) @property def visible(self) -> bool: @@ -66,12 +91,12 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Visible') + val = self._get_property("Visible") return val @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) @property def custom_legend(self) -> bool: @@ -79,45 +104,45 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Custom Legend') + val = self._get_property("Custom Legend") return val @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ - val = self._get_property('Name') + " """ + val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ - val = self._get_property('Style') + " """ + val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) @property def line_width(self) -> int: @@ -125,12 +150,12 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - val = self._get_property('Line Width') + val = self._get_property("Line Width") return val @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) @property def line_color(self): @@ -138,42 +163,42 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Line Color') + val = self._get_property("Line Color") return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ - val = self._get_property('Symbol') + " """ + val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) @property def symbol_size(self) -> int: @@ -181,12 +206,12 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - val = self._get_property('Symbol Size') + val = self._get_property("Symbol Size") return val @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) @property def symbol_color(self): @@ -194,12 +219,12 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Symbol Color') + val = self._get_property("Symbol Color") return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) @property def symbol_line_width(self) -> int: @@ -207,12 +232,12 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - val = self._get_property('Symbol Line Width') + val = self._get_property("Symbol Line Width") return val @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) @property def symbol_filled(self) -> bool: @@ -220,10 +245,9 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - val = self._get_property('Symbol Filled') + val = self._get_property("Symbol Filled") return val @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py index c99b6df0b16..b0336eb982c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ParametricCouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -25,36 +50,36 @@ def delete(self): @property def antenna_a(self) -> EmitNode: """Antenna A - " """ - val = self._get_property('Antenna A') + " """ + val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna A=" + value]) @property def antenna_b(self) -> EmitNode: """Antenna B - " """ - val = self._get_property('Antenna B') + " """ + val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna B=" + value]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ - val = self._get_property('Data Source') + " """ + val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) @property def visible(self) -> bool: @@ -62,12 +87,12 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Visible') + val = self._get_property("Visible") return val @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) @property def custom_legend(self) -> bool: @@ -75,45 +100,45 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Custom Legend') + val = self._get_property("Custom Legend") return val @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ - val = self._get_property('Name') + " """ + val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ - val = self._get_property('Style') + " """ + val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) @property def line_width(self) -> int: @@ -121,12 +146,12 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - val = self._get_property('Line Width') + val = self._get_property("Line Width") return val @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) @property def line_color(self): @@ -134,42 +159,42 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Line Color') + val = self._get_property("Line Color") return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ - val = self._get_property('Symbol') + " """ + val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) @property def symbol_size(self) -> int: @@ -177,12 +202,12 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - val = self._get_property('Symbol Size') + val = self._get_property("Symbol Size") return val @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) @property def symbol_color(self): @@ -190,12 +215,12 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Symbol Color') + val = self._get_property("Symbol Color") return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) @property def symbol_line_width(self) -> int: @@ -203,12 +228,12 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - val = self._get_property('Symbol Line Width') + val = self._get_property("Symbol Line Width") return val @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) @property def symbol_filled(self) -> bool: @@ -216,10 +241,9 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - val = self._get_property('Symbol Filled') + val = self._get_property("Symbol Filled") return val @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py index 6c68c2265e7..50c5ad2b928 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class PlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -28,12 +53,12 @@ def visible(self) -> bool: "Toggle (on/off) this marker." "Value should be 'true' or 'false'." """ - val = self._get_property('Visible') + val = self._get_property("Visible") return val @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) @property def attached(self) -> bool: @@ -41,36 +66,36 @@ def attached(self) -> bool: "Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False)." "Value should be 'true' or 'false'." """ - val = self._get_property('Attached') + val = self._get_property("Attached") return val @attached.setter def attached(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Attached=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Attached=" + value]) @property def position(self) -> float: """Position "Set position of the marker along the X-axis." - " """ - val = self._get_property('Position') + " """ + val = self._get_property("Position") return val @position.setter def position(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Position=" + value]) @property def position(self) -> float: """Position "Set position of the marker along the Y-axis." - " """ - val = self._get_property('Position') + " """ + val = self._get_property("Position") return val @position.setter def position(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Position=" + value]) @property def floating_label(self) -> bool: @@ -78,12 +103,12 @@ def floating_label(self) -> bool: "Allow marker label to be positioned at a fixed point on the plot window (the marker symbol remains fixed to the specified X-Y point)." "Value should be 'true' or 'false'." """ - val = self._get_property('Floating Label') + val = self._get_property("Floating Label") return val @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Floating Label=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Floating Label=" + value]) @property def position_from_left(self) -> float: @@ -91,12 +116,12 @@ def position_from_left(self) -> float: "Set position of label from left to right as a percentage of the width of the plot window." "Value should be between 0 and 100." """ - val = self._get_property('Position from Left') + val = self._get_property("Position from Left") return val @position_from_left.setter def position_from_left(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Position from Left=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Position from Left=" + value]) @property def position_from_top(self) -> float: @@ -104,78 +129,80 @@ def position_from_top(self) -> float: "Set position of label from top to bottom as a percentage of the height of the plot window." "Value should be between 0 and 100." """ - val = self._get_property('Position from Top') + val = self._get_property("Position from Top") return val @position_from_top.setter def position_from_top(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Position from Top=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Position from Top=" + value]) @property def text(self) -> str: """Text "Set the text of the label." - " """ - val = self._get_property('Text') + " """ + val = self._get_property("Text") return val @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Text=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Text=" + value]) class HorizontalPositionOption(Enum): - LEFT = "Left" - RIGHT = "Right" - CENTER = "Center" + LEFT = "Left" + RIGHT = "Right" + CENTER = "Center" @property def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position "Specify horizontal position of the label as compared to the symbol." - " """ - val = self._get_property('Horizontal Position') + " """ + val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] return val @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Horizontal Position=' + value.value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Horizontal Position=" + value.value] + ) class VerticalPositionOption(Enum): - TOP = "Top" - BOTTOM = "Bottom" - CENTER = "Center" + TOP = "Top" + BOTTOM = "Bottom" + CENTER = "Center" @property def vertical_position(self) -> VerticalPositionOption: """Vertical Position "Specify vertical position of the label as compared to the symbol." - " """ - val = self._get_property('Vertical Position') + " """ + val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] return val @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Position=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Vertical Position=" + value.value]) class TextAlignmentOption(Enum): - LEFT = "Left" - RIGHT = "Right" - CENTER = "Center" + LEFT = "Left" + RIGHT = "Right" + CENTER = "Center" @property def text_alignment(self) -> TextAlignmentOption: """Text Alignment "Specify justification applied to multi-line text." - " """ - val = self._get_property('Text Alignment') + " """ + val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] return val @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Text Alignment=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Text Alignment=" + value.value]) @property def font(self): @@ -183,12 +210,12 @@ def font(self): "Specify font used for the label." "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ - val = self._get_property('Font') + val = self._get_property("Font") return val @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Font=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Font=" + value]) @property def color(self): @@ -196,12 +223,12 @@ def color(self): "Specify color of the label text." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Color') + val = self._get_property("Color") return val @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Color=" + value]) @property def background_color(self): @@ -209,12 +236,12 @@ def background_color(self): "Set color of the label text background." "Color should be in RGBA form: #AARRGGBB." """ - val = self._get_property('Background Color') + val = self._get_property("Background Color") return val @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Background Color=" + value]) @property def border(self) -> bool: @@ -222,12 +249,12 @@ def border(self) -> bool: "Display a border around the label text." "Value should be 'true' or 'false'." """ - val = self._get_property('Border') + val = self._get_property("Border") return val @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Border=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Border=" + value]) @property def border_width(self) -> int: @@ -235,12 +262,12 @@ def border_width(self) -> int: "Set the width of the border around the label text." "Value should be between 1 and 20." """ - val = self._get_property('Border Width') + val = self._get_property("Border Width") return val @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Border Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Border Width=" + value]) @property def border_color(self): @@ -248,43 +275,43 @@ def border_color(self): "Set color of the border around the label text." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Border Color') + val = self._get_property("Border Color") return val @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Border Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Border Color=" + value]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" - ARROW = "Arrow" + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + ARROW = "Arrow" @property def symbol(self) -> SymbolOption: """Symbol "Specify symbol displayed next to the label." - " """ - val = self._get_property('Symbol') + " """ + val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) @property def arrow_direction(self) -> int: @@ -292,12 +319,12 @@ def arrow_direction(self) -> int: "Set direction of the arrow; zero degrees is up." "Value should be between -360 and 360." """ - val = self._get_property('Arrow Direction') + val = self._get_property("Arrow Direction") return val @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Arrow Direction=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Arrow Direction=" + value]) @property def symbol_size(self) -> int: @@ -305,12 +332,12 @@ def symbol_size(self) -> int: "Set size of the symbol used for this marker." "Value should be between 1 and 1000." """ - val = self._get_property('Symbol Size') + val = self._get_property("Symbol Size") return val @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) @property def symbol_color(self): @@ -318,12 +345,12 @@ def symbol_color(self): "Set color of the symbol used for this marker." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Symbol Color') + val = self._get_property("Symbol Color") return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) @property def line_width(self) -> int: @@ -331,12 +358,12 @@ def line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - val = self._get_property('Line Width') + val = self._get_property("Line Width") return val @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) @property def filled(self) -> bool: @@ -344,10 +371,9 @@ def filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - val = self._get_property('Filled') + val = self._get_property("Filled") return val @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filled=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filled=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py index c3cce7502b8..ebb7319040e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class PlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -29,13 +54,13 @@ def delete(self): def title(self) -> str: """Title "Enter title at the top of the plot, room will be made for it." - " """ - val = self._get_property('Title') + " """ + val = self._get_property("Title") return val @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Title=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Title=" + value]) @property def title_font(self): @@ -43,12 +68,12 @@ def title_font(self): "Configure title font family, typeface, and size." "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ - val = self._get_property('Title Font') + val = self._get_property("Title Font") return val @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Title Font=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Title Font=" + value]) @property def show_legend(self) -> bool: @@ -56,12 +81,12 @@ def show_legend(self) -> bool: "Toggle (on/off) display of plot legend." "Value should be 'true' or 'false'." """ - val = self._get_property('Show Legend') + val = self._get_property("Show Legend") return val @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Show Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Show Legend=" + value]) @property def legend_font(self): @@ -69,12 +94,12 @@ def legend_font(self): "Configure legend font family, typeface, and size." "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ - val = self._get_property('Legend Font') + val = self._get_property("Legend Font") return val @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Legend Font=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Legend Font=" + value]) @property def display_cad_overlay(self) -> bool: @@ -82,12 +107,12 @@ def display_cad_overlay(self) -> bool: "Toggle on/off overlay of CAD model in plot." "Value should be 'true' or 'false'." """ - val = self._get_property('Display CAD Overlay') + val = self._get_property("Display CAD Overlay") return val @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Display CAD Overlay=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Display CAD Overlay=" + value]) @property def opacity(self) -> float: @@ -95,24 +120,24 @@ def opacity(self) -> float: "Adjust opacity of CAD model overlay: 0 Transparent - 1 Opaque." "Value should be between 0 and 100." """ - val = self._get_property('Opacity') + val = self._get_property("Opacity") return val @opacity.setter def opacity(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Opacity=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Opacity=" + value]) @property def vertical_offset(self) -> float: """Vertical Offset "Adjust vertical position of CAD model overlay." - " """ - val = self._get_property('Vertical Offset') + " """ + val = self._get_property("Vertical Offset") return val @vertical_offset.setter def vertical_offset(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Offset=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Vertical Offset=" + value]) @property def range_axis_rotation(self) -> float: @@ -120,12 +145,12 @@ def range_axis_rotation(self) -> float: "Adjust view angle for CAD model overlay by rotating it about plot horizontal axis." "Value should be between -180 and 180." """ - val = self._get_property('Range Axis Rotation') + val = self._get_property("Range Axis Rotation") return val @range_axis_rotation.setter def range_axis_rotation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Range Axis Rotation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Range Axis Rotation=" + value]) @property def lock_axes(self) -> bool: @@ -133,60 +158,60 @@ def lock_axes(self) -> bool: "Allow or prevent changing of axes when displayed plot traces are updated." "Value should be 'true' or 'false'." """ - val = self._get_property('Lock Axes') + val = self._get_property("Lock Axes") return val @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lock Axes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lock Axes=" + value]) @property def x_axis_min(self) -> float: """X-axis Min "Set lower extent of horizontal axis." - " """ - val = self._get_property('X-axis Min') + " """ + val = self._get_property("X-axis Min") return val @x_axis_min.setter def x_axis_min(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['X-axis Min=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["X-axis Min=" + value]) @property def x_axis_max(self) -> float: """X-axis Max "Set upper extent of horizontal axis." - " """ - val = self._get_property('X-axis Max') + " """ + val = self._get_property("X-axis Max") return val @x_axis_max.setter def x_axis_max(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['X-axis Max=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["X-axis Max=" + value]) @property def y_axis_min(self) -> float: """Y-axis Min "Set lower extent of vertical axis." - " """ - val = self._get_property('Y-axis Min') + " """ + val = self._get_property("Y-axis Min") return val @y_axis_min.setter def y_axis_min(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Min=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Y-axis Min=" + value]) @property def y_axis_max(self) -> float: """Y-axis Max "Set upper extent of vertical axis." - " """ - val = self._get_property('Y-axis Max') + " """ + val = self._get_property("Y-axis Max") return val @y_axis_max.setter def y_axis_max(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Max=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Y-axis Max=" + value]) @property def y_axis_range(self) -> float: @@ -194,12 +219,12 @@ def y_axis_range(self) -> float: "Adjust dB span of vertical axis, makes corresponding adjustment in Y-axis Min." "Value should be greater than 0." """ - val = self._get_property('Y-axis Range') + val = self._get_property("Y-axis Range") return val @y_axis_range.setter def y_axis_range(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Range=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Y-axis Range=" + value]) @property def max_major_ticks(self) -> int: @@ -207,12 +232,12 @@ def max_major_ticks(self) -> int: "Set maximum number of major tick-mark intervals along horizontal axis." "Value should be between 1 and 30." """ - val = self._get_property('Max Major Ticks') + val = self._get_property("Max Major Ticks") return val @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Major Ticks=" + value]) @property def max_minor_ticks(self) -> int: @@ -220,12 +245,12 @@ def max_minor_ticks(self) -> int: "Set maximum number of minor tick-mark intervals between major ticks along horizontal axis." "Value should be between 0 and 100." """ - val = self._get_property('Max Minor Ticks') + val = self._get_property("Max Minor Ticks") return val @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Minor Ticks=" + value]) @property def max_major_ticks(self) -> int: @@ -233,12 +258,12 @@ def max_major_ticks(self) -> int: "Set maximum number of major tick-mark intervals along vertical axis." "Value should be between 1 and 30." """ - val = self._get_property('Max Major Ticks') + val = self._get_property("Max Major Ticks") return val @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Major Ticks=" + value]) @property def max_minor_ticks(self) -> int: @@ -246,12 +271,12 @@ def max_minor_ticks(self) -> int: "Set maximum number of minor tick-mark intervals between major ticks along vertical axis." "Value should be between 0 and 100." """ - val = self._get_property('Max Minor Ticks') + val = self._get_property("Max Minor Ticks") return val @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Minor Ticks=" + value]) @property def axis_label_font(self): @@ -259,12 +284,12 @@ def axis_label_font(self): "Configure axis text labels font family, typeface, and size." "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ - val = self._get_property('Axis Label Font') + val = self._get_property("Axis Label Font") return val @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Axis Label Font=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Axis Label Font=" + value]) @property def axis_tick_label_font(self): @@ -272,33 +297,35 @@ def axis_tick_label_font(self): "Configure axis tick numeric labels font family, typeface, and size." "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ - val = self._get_property('Axis Tick Label Font') + val = self._get_property("Axis Tick Label Font") return val @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Axis Tick Label Font=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Axis Tick Label Font=" + value]) class MajorGridLineStyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style "Select line style of major-tick grid lines." - " """ - val = self._get_property('Major Grid Line Style') + " """ + val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] return val @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Major Grid Line Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Major Grid Line Style=" + value.value] + ) @property def major_grid_color(self): @@ -306,33 +333,35 @@ def major_grid_color(self): "Set color of major-tick grid lines." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Major Grid Color') + val = self._get_property("Major Grid Color") return val @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Major Grid Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Major Grid Color=" + value]) class MinorGridLineStyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style "Select line style of minor-tick grid lines." - " """ - val = self._get_property('Minor Grid Line Style') + " """ + val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] return val @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Minor Grid Line Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Minor Grid Line Style=" + value.value] + ) @property def minor_grid_color(self): @@ -340,12 +369,12 @@ def minor_grid_color(self): "Set color of minor-tick grid lines." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Minor Grid Color') + val = self._get_property("Minor Grid Color") return val @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Minor Grid Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Minor Grid Color=" + value]) @property def background_color(self): @@ -353,31 +382,33 @@ def background_color(self): "Set background color of entire plot." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Background Color') + val = self._get_property("Background Color") return val @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Background Color=" + value]) class BBPowerforPlotsUnitOption(Enum): - HERTZ = "hertz" - KILOHERTZ = "kilohertz" - MEGAHERTZ = "megahertz" - GIGAHERTZ = "gigahertz" + HERTZ = "hertz" + KILOHERTZ = "kilohertz" + MEGAHERTZ = "megahertz" + GIGAHERTZ = "gigahertz" @property def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit "Units to use for plotting broadband power densities." - " """ - val = self._get_property('BB Power for Plots Unit') + " """ + val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] return val @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['BB Power for Plots Unit=' + value.value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["BB Power for Plots Unit=" + value.value] + ) @property def bb_power_bandwidth(self) -> float: @@ -385,14 +416,14 @@ def bb_power_bandwidth(self) -> float: "Resolution bandwidth for broadband power." "Value should be between 1 and 1e+11." """ - val = self._get_property('BB Power Bandwidth') - val = self._convert_from_default_units(float(val), "") + val = self._get_property("BB Power Bandwidth") + val = self._convert_from_internal_units(float(val), "") return val @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value : float|str): - value = self._convert_to_default_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['BB Power Bandwidth=' + f"{value}"]) + def bb_power_bandwidth(self, value: float | str): + value = self._convert_to_internal_units(value, "") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["BB Power Bandwidth=" + f"{value}"]) @property def log_scale(self) -> bool: @@ -400,10 +431,9 @@ def log_scale(self) -> bool: "Toggles on/off using a log scale for the X-Axis." "Value should be 'true' or 'false'." """ - val = self._get_property('Log Scale') + val = self._get_property("Log Scale") return val @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Log Scale=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Log Scale=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py index 21f82839bc8..3e71b5aaeed 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class PowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -23,12 +48,12 @@ def filename(self) -> str: "Name of file defining the Power Divider." "Value should be a full file path." """ - val = self._get_property('Filename') + val = self._get_property("Filename") return val @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filename=" + value]) @property def noise_temperature(self) -> float: @@ -36,59 +61,59 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - val = self._get_property('Noise Temperature') + val = self._get_property("Noise Temperature") return val @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Temperature=" + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) class TypeOption(Enum): - BYFILE = "By File" - _3DB = "3 dB" - RESISTIVE = "Resistive" + BYFILE = "By File" + _3DB = "3 dB" + RESISTIVE = "Resistive" @property def type(self) -> TypeOption: """Type "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." - " """ - val = self._get_property('Type') + " """ + val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Type=" + value.value]) class OrientationOption(Enum): - RADIOSIDE = "Divider" - ANTENNASIDE = "Combiner" + RADIOSIDE = "Divider" + ANTENNASIDE = "Combiner" @property def orientation(self) -> OrientationOption: """Orientation "Defines the orientation of the Power Divider.." - " """ - val = self._get_property('Orientation') + " """ + val = self._get_property("Orientation") val = self.OrientationOption[val] return val @orientation.setter def orientation(self, value: OrientationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Orientation=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Orientation=" + value.value]) @property def insertion_loss_above_ideal(self) -> float: @@ -96,12 +121,14 @@ def insertion_loss_above_ideal(self) -> float: "Additional loss beyond the ideal insertion loss. The ideal insertion loss is 3 dB for the 3 dB Divider and 6 dB for the Resistive Divider.." "Value should be between 0 and 100." """ - val = self._get_property('Insertion Loss Above Ideal') + val = self._get_property("Insertion Loss Above Ideal") return val @insertion_loss_above_ideal.setter def insertion_loss_above_ideal(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss Above Ideal=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Insertion Loss Above Ideal=" + value] + ) @property def finite_isolation(self) -> bool: @@ -109,12 +136,12 @@ def finite_isolation(self) -> bool: "Use a finite isolation between output ports. If disabled, the Power Divider isolation is ideal (infinite isolation between output ports).." "Value should be 'true' or 'false'." """ - val = self._get_property('Finite Isolation') + val = self._get_property("Finite Isolation") return val @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Finite Isolation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Finite Isolation=" + value]) @property def isolation(self) -> float: @@ -122,12 +149,12 @@ def isolation(self) -> float: "Power Divider isolation between output ports.." "Value should be between 0 and 100." """ - val = self._get_property('Isolation') + val = self._get_property("Isolation") return val @isolation.setter def isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Isolation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Isolation=" + value]) @property def finite_bandwidth(self) -> bool: @@ -135,12 +162,12 @@ def finite_bandwidth(self) -> bool: "Use a finite bandwidth. If disabled, the Power Divider model is ideal (infinite bandwidth).." "Value should be 'true' or 'false'." """ - val = self._get_property('Finite Bandwidth') + val = self._get_property("Finite Bandwidth") return val @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Finite Bandwidth=" + value]) @property def out_of_band_attenuation(self) -> float: @@ -148,12 +175,12 @@ def out_of_band_attenuation(self) -> float: "Out-of-band loss (attenuation)." "Value should be between 0 and 200." """ - val = self._get_property('Out-of-band Attenuation') + val = self._get_property("Out-of-band Attenuation") return val @out_of_band_attenuation.setter def out_of_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Out-of-band Attenuation=" + value]) @property def lower_stop_band(self) -> float: @@ -161,14 +188,14 @@ def lower_stop_band(self) -> float: "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @lower_stop_band.setter - def lower_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + f"{value}"]) + def lower_stop_band(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Stop Band=" + f"{value}"]) @property def lower_cutoff(self) -> float: @@ -176,14 +203,14 @@ def lower_cutoff(self) -> float: "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @lower_cutoff.setter - def lower_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + f"{value}"]) + def lower_cutoff(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Cutoff=" + f"{value}"]) @property def higher_cutoff(self) -> float: @@ -191,14 +218,14 @@ def higher_cutoff(self) -> float: "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @higher_cutoff.setter - def higher_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + f"{value}"]) + def higher_cutoff(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Cutoff=" + f"{value}"]) @property def higher_stop_band(self) -> float: @@ -206,20 +233,19 @@ def higher_stop_band(self) -> float: "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @higher_stop_band.setter - def higher_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + f"{value}"]) + def higher_stop_band(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Stop Band=" + f"{value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ - val = self._get_property('Warnings') + " """ + val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py index 7d8d2ff2658..ee9e43213f2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class PowerTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -23,33 +48,33 @@ def delete(self): self._delete() class DirectionOption(Enum): - AWAY = "Away From Tx" - TOWARD = "Toward Tx" + AWAY = "Away From Tx" + TOWARD = "Toward Tx" @property def direction(self) -> DirectionOption: """Direction "Direction of power flow (towards or away from the transmitter) to plot." - " """ - val = self._get_property('Direction') + " """ + val = self._get_property("Direction") val = self.DirectionOption[val] return val @direction.setter def direction(self, value: DirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Direction=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Direction=" + value.value]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ - val = self._get_property('Data Source') + " """ + val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) @property def visible(self) -> bool: @@ -57,12 +82,12 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Visible') + val = self._get_property("Visible") return val @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) @property def custom_legend(self) -> bool: @@ -70,45 +95,45 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Custom Legend') + val = self._get_property("Custom Legend") return val @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ - val = self._get_property('Name') + " """ + val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ - val = self._get_property('Style') + " """ + val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) @property def line_width(self) -> int: @@ -116,12 +141,12 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - val = self._get_property('Line Width') + val = self._get_property("Line Width") return val @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) @property def line_color(self): @@ -129,42 +154,42 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Line Color') + val = self._get_property("Line Color") return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ - val = self._get_property('Symbol') + " """ + val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) @property def symbol_size(self) -> int: @@ -172,12 +197,12 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - val = self._get_property('Symbol Size') + val = self._get_property("Symbol Size") return val @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) @property def symbol_color(self): @@ -185,12 +210,12 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Symbol Color') + val = self._get_property("Symbol Color") return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) @property def symbol_line_width(self) -> int: @@ -198,12 +223,12 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - val = self._get_property('Symbol Line Width') + val = self._get_property("Symbol Line Width") return val @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) @property def symbol_filled(self) -> bool: @@ -211,10 +236,9 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - val = self._get_property('Symbol Filled') + val = self._get_property("Symbol Filled") return val @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py index d77c03259bc..6496fef5768 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ProfileTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -26,13 +51,13 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ - val = self._get_property('Data Source') + " """ + val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) @property def visible(self) -> bool: @@ -40,12 +65,12 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Visible') + val = self._get_property("Visible") return val @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) @property def custom_legend(self) -> bool: @@ -53,45 +78,45 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Custom Legend') + val = self._get_property("Custom Legend") return val @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ - val = self._get_property('Name') + " """ + val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ - val = self._get_property('Style') + " """ + val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) @property def line_width(self) -> int: @@ -99,12 +124,12 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - val = self._get_property('Line Width') + val = self._get_property("Line Width") return val @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) @property def line_color(self): @@ -112,42 +137,42 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Line Color') + val = self._get_property("Line Color") return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ - val = self._get_property('Symbol') + " """ + val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) @property def symbol_size(self) -> int: @@ -155,12 +180,12 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - val = self._get_property('Symbol Size') + val = self._get_property("Symbol Size") return val @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) @property def symbol_color(self): @@ -168,12 +193,12 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Symbol Color') + val = self._get_property("Symbol Color") return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) @property def symbol_line_width(self) -> int: @@ -181,12 +206,12 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - val = self._get_property('Symbol Line Width') + val = self._get_property("Symbol Line Width") return val @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) @property def symbol_filled(self) -> bool: @@ -194,10 +219,9 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - val = self._get_property('Symbol Filled') + val = self._get_property("Symbol Filled") return val @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py index ede0637094f..efe0577158f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class PropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -28,36 +53,36 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Antenna A') + " """ + val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna A=" + value]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Antenna B') + " """ + val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna B=" + value]) @property def enable_refinement(self) -> bool: @@ -65,12 +90,12 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Refinement') + val = self._get_property("Enable Refinement") return val @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable Refinement=" + value]) @property def adaptive_sampling(self) -> bool: @@ -78,24 +103,24 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - val = self._get_property('Adaptive Sampling') + val = self._get_property("Adaptive Sampling") return val @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Adaptive Sampling=" + value]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ - val = self._get_property('Refinement Domain') + " """ + val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Refinement Domain=" + value]) @property def custom_fading_margin(self) -> float: @@ -103,12 +128,12 @@ def custom_fading_margin(self) -> float: "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Custom Fading Margin') + val = self._get_property("Custom Fading Margin") return val @custom_fading_margin.setter def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Fading Margin=" + value]) @property def polarization_mismatch(self) -> float: @@ -116,12 +141,12 @@ def polarization_mismatch(self) -> float: "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Polarization Mismatch') + val = self._get_property("Polarization Mismatch") return val @polarization_mismatch.setter def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Mismatch=" + value]) @property def pointing_error_loss(self) -> float: @@ -129,31 +154,31 @@ def pointing_error_loss(self) -> float: "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Pointing Error Loss') + val = self._get_property("Pointing Error Loss") return val @pointing_error_loss.setter def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pointing Error Loss=" + value]) class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ - val = self._get_property('Fading Type') + " """ + val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Type=" + value.value]) @property def fading_availability(self) -> float: @@ -161,12 +186,12 @@ def fading_availability(self) -> float: "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - val = self._get_property('Fading Availability') + val = self._get_property("Fading Availability") return val @fading_availability.setter def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Availability=" + value]) @property def std_deviation(self) -> float: @@ -174,12 +199,12 @@ def std_deviation(self) -> float: "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - val = self._get_property('Std Deviation') + val = self._get_property("Std Deviation") return val @std_deviation.setter def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Std Deviation=" + value]) @property def include_rain_attenuation(self) -> bool: @@ -187,12 +212,12 @@ def include_rain_attenuation(self) -> bool: "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Rain Attenuation') + val = self._get_property("Include Rain Attenuation") return val @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Include Rain Attenuation=" + value]) @property def rain_availability(self) -> float: @@ -200,12 +225,12 @@ def rain_availability(self) -> float: "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - val = self._get_property('Rain Availability') + val = self._get_property("Rain Availability") return val @rain_availability.setter def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Availability=" + value]) @property def rain_rate(self) -> float: @@ -213,12 +238,12 @@ def rain_rate(self) -> float: "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - val = self._get_property('Rain Rate') + val = self._get_property("Rain Rate") return val @rain_rate.setter def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Rate=" + value]) @property def polarization_tilt_angle(self) -> float: @@ -226,12 +251,12 @@ def polarization_tilt_angle(self) -> float: "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - val = self._get_property('Polarization Tilt Angle') + val = self._get_property("Polarization Tilt Angle") return val @polarization_tilt_angle.setter def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Tilt Angle=" + value]) @property def include_atmospheric_absorption(self) -> bool: @@ -239,12 +264,14 @@ def include_atmospheric_absorption(self) -> bool: "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Atmospheric Absorption') + val = self._get_property("Include Atmospheric Absorption") return val @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Include Atmospheric Absorption=" + value] + ) @property def temperature(self) -> float: @@ -252,12 +279,12 @@ def temperature(self) -> float: "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - val = self._get_property('Temperature') + val = self._get_property("Temperature") return val @temperature.setter def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Temperature=" + value]) @property def total_air_pressure(self) -> float: @@ -265,12 +292,12 @@ def total_air_pressure(self) -> float: "Total air pressure." "Value should be between 0 and 2000." """ - val = self._get_property('Total Air Pressure') + val = self._get_property("Total Air Pressure") return val @total_air_pressure.setter def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Total Air Pressure=" + value]) @property def water_vapor_concentration(self) -> float: @@ -278,10 +305,11 @@ def water_vapor_concentration(self) -> float: "Water vapor concentration." "Value should be between 0 and 2000." """ - val = self._get_property('Water Vapor Concentration') + val = self._get_property("Water Vapor Concentration") return val @water_vapor_concentration.setter def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Water Vapor Concentration=" + value] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py index deaefe5f44d..1ce34a26dfc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class RadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -28,11 +53,11 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Name: - " "Type: - " """ + "Name: + " "Type: + " """ return self._get_table_data() @table_data.setter @@ -43,11 +68,10 @@ def table_data(self, value): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py index 3b5ba4ce549..7abe5cb06ad 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyAmplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -11,7 +36,7 @@ def filename(self) -> str: "Name of file defining the outboard component." "Value should be a full file path." """ - val = self._get_property('Filename') + val = self._get_property("Filename") return val @property @@ -20,27 +45,27 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - val = self._get_property('Noise Temperature') + val = self._get_property("Noise Temperature") return val @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val class AmplifierTypeOption(Enum): - TRANSMIT_AMPLIFIER = "Transmit Amplifier" - RECEIVE_AMPLIFIER = "Receive Amplifier" + TRANSMIT_AMPLIFIER = "Transmit Amplifier" + RECEIVE_AMPLIFIER = "Receive Amplifier" @property def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type "Configures the amplifier as a Tx or Rx amplifier." - " """ - val = self._get_property('Amplifier Type') + " """ + val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] return val @@ -50,7 +75,7 @@ def gain(self) -> float: "Amplifier in-band gain." "Value should be between 0 and 100." """ - val = self._get_property('Gain') + val = self._get_property("Gain") return val @property @@ -59,8 +84,8 @@ def center_frequency(self) -> float: "Center frequency of amplifiers operational bandwidth." "Value should be between 1 and 1e+11." """ - val = self._get_property('Center Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Center Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -69,8 +94,8 @@ def bandwidth(self) -> float: "Frequency region where the gain applies." "Value should be between 1 and 1e+11." """ - val = self._get_property('Bandwidth') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Bandwidth") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -79,40 +104,37 @@ def noise_figure(self) -> float: "Amplifier noise figure." "Value should be between 0 and 100." """ - val = self._get_property('Noise Figure') + val = self._get_property("Noise Figure") return val @property def saturation_level(self) -> float: """Saturation Level "Saturation level." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ - val = self._get_property('Saturation Level') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("Saturation Level") + val = self._convert_from_internal_units(float(val), "Power") return val @property - def _1_db_point_ref_input(self) -> float: - """1-dB Point, Ref. Input + def p1_db_point_ref_input(self) -> float: + """P1-dB Point, Ref. Input "Incoming signals > this value saturate the amplifier." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ - val = self._get_property('1-dB Point, Ref. Input') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("P1-dB Point, Ref. Input") + val = self._convert_from_internal_units(float(val), "Power") return val @property def ip3_ref_input(self) -> float: """IP3, Ref. Input "3rd order intercept point." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ - val = self._get_property('IP3, Ref. Input') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("IP3, Ref. Input") + val = self._convert_from_internal_units(float(val), "Power") return val @property @@ -121,7 +143,7 @@ def shape_factor(self) -> float: "Ratio defining the selectivity of the amplifier." "Value should be between 1 and 100." """ - val = self._get_property('Shape Factor') + val = self._get_property("Shape Factor") return val @property @@ -130,7 +152,7 @@ def reverse_isolation(self) -> float: "Amplifier reverse isolation." "Value should be between 0 and 200." """ - val = self._get_property('Reverse Isolation') + val = self._get_property("Reverse Isolation") return val @property @@ -139,6 +161,5 @@ def max_intermod_order(self) -> int: "Maximum order of intermods to compute." "Value should be between 3 and 20." """ - val = self._get_property('Max Intermod Order') + val = self._get_property("Max Intermod Order") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py index b585218941c..0590b919bc3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyAntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -14,8 +39,8 @@ def parent(self): def tags(self) -> str: """Tags "Space delimited list of tags for coupling selections." - " """ - val = self._get_property('Tags') + " """ + val = self._get_property("Tags") return val @property @@ -24,7 +49,7 @@ def show_relative_coordinates(self) -> bool: "Show antenna position and orientation in parent-node coords (False) or relative to placement coords (True)." "Value should be 'true' or 'false'." """ - val = self._get_property('Show Relative Coordinates') + val = self._get_property("Show Relative Coordinates") return val @property @@ -33,7 +58,7 @@ def position(self): "Set position of the antenna in parent-node coordinates." "Value should be x/y/z, delimited by spaces." """ - val = self._get_property('Position') + val = self._get_property("Position") return val @property @@ -42,19 +67,19 @@ def relative_position(self): "Set position of the antenna relative to placement coordinates." "Value should be x/y/z, delimited by spaces." """ - val = self._get_property('Relative Position') + val = self._get_property("Relative Position") return val class OrientationModeOption(Enum): - RPYDEG = "Roll-Pitch-Yaw" - AETDEG = "Az-El-Twist" + RPYDEG = "Roll-Pitch-Yaw" + AETDEG = "Az-El-Twist" @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ - val = self._get_property('Orientation Mode') + " """ + val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -64,7 +89,7 @@ def orientation(self): "Set orientation of the antenna relative to parent-node coordinates." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - val = self._get_property('Orientation') + val = self._get_property("Orientation") return val @property @@ -73,7 +98,7 @@ def relative_orientation(self): "Set orientation of the antenna relative to placement coordinates." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - val = self._get_property('Relative Orientation') + val = self._get_property("Relative Orientation") return val @property @@ -82,7 +107,7 @@ def position_defined(self) -> bool: "Toggles on/off the ability to define a position for the antenna." "Value should be 'true' or 'false'." """ - val = self._get_property('Position Defined') + val = self._get_property("Position Defined") return val @property @@ -91,15 +116,15 @@ def antenna_temperature(self) -> float: "Antenna noise temperature." "Value should be between 0 and 100000." """ - val = self._get_property('Antenna Temperature') + val = self._get_property("Antenna Temperature") return val @property def type(self): """Type "Defines the type of antenna." - " """ - val = self._get_property('Type') + " """ + val = self._get_property("Type") return val @property @@ -107,7 +132,7 @@ def antenna_file(self) -> str: """Antenna File "Value should be a full file path." """ - val = self._get_property('Antenna File') + val = self._get_property("Antenna File") return val @property @@ -116,7 +141,7 @@ def project_name(self) -> str: "Name of imported HFSS Antenna project." "Value should be a full file path." """ - val = self._get_property('Project Name') + val = self._get_property("Project Name") return val @property @@ -125,20 +150,20 @@ def peak_gain(self) -> float: "Set peak gain of antenna (dBi)." "Value should be between -200 and 200." """ - val = self._get_property('Peak Gain') + val = self._get_property("Peak Gain") return val class BoresightOption(Enum): - XAXIS = "+X Axis" - YAXIS = "+Y Axis" - ZAXIS = "+Z Axis" + XAXIS = "+X Axis" + YAXIS = "+Y Axis" + ZAXIS = "+Z Axis" @property def boresight(self) -> BoresightOption: """Boresight "Select peak beam direction in local coordinates." - " """ - val = self._get_property('Boresight') + " """ + val = self._get_property("Boresight") val = self.BoresightOption[val] return val @@ -148,7 +173,7 @@ def vertical_beamwidth(self) -> float: "Set half-power beamwidth in local-coordinates elevation plane." "Value should be between 0.1 and 360." """ - val = self._get_property('Vertical Beamwidth') + val = self._get_property("Vertical Beamwidth") return val @property @@ -157,7 +182,7 @@ def horizontal_beamwidth(self) -> float: "Set half-power beamwidth in local-coordinates azimuth plane." "Value should be between 0.1 and 360." """ - val = self._get_property('Horizontal Beamwidth') + val = self._get_property("Horizontal Beamwidth") return val @property @@ -166,7 +191,7 @@ def extra_sidelobe(self) -> bool: "Toggle (on/off) option to define two sidelobe levels." "Value should be 'true' or 'false'." """ - val = self._get_property('Extra Sidelobe') + val = self._get_property("Extra Sidelobe") return val @property @@ -175,7 +200,7 @@ def first_sidelobe_level(self) -> float: "Set reduction in the gain of Directive Beam antenna for first sidelobe level." "Value should be between 0 and 200." """ - val = self._get_property('First Sidelobe Level') + val = self._get_property("First Sidelobe Level") return val @property @@ -184,7 +209,7 @@ def first_sidelobe_vert_bw(self) -> float: "Set beamwidth of first sidelobe beam in theta direction." "Value should be between 0.1 and 360." """ - val = self._get_property('First Sidelobe Vert. BW') + val = self._get_property("First Sidelobe Vert. BW") return val @property @@ -193,7 +218,7 @@ def first_sidelobe_hor_bw(self) -> float: "Set beamwidth of first sidelobe beam in phi direction." "Value should be between 0.1 and 360." """ - val = self._get_property('First Sidelobe Hor. BW') + val = self._get_property("First Sidelobe Hor. BW") return val @property @@ -202,7 +227,7 @@ def outerbacklobe_level(self) -> float: "Set reduction in gain of Directive Beam antenna for outer/backlobe level." "Value should be between 0 and 200." """ - val = self._get_property('Outer/Backlobe Level') + val = self._get_property("Outer/Backlobe Level") return val @property @@ -211,52 +236,48 @@ def resonant_frequency(self) -> float: "Set first resonant frequency of wire dipole, monopole, or parametric antenna." "Value should be between 1 and 1e+13." """ - val = self._get_property('Resonant Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Resonant Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @property def slot_length(self) -> float: """Slot Length "Set slot length of parametric slot." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ - val = self._get_property('Slot Length') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Slot Length") + val = self._convert_from_internal_units(float(val), "Length") return val @property def mouth_width(self) -> float: """Mouth Width "Set mouth width (along local y-axis) of the horn antenna." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 1e-06 and 100." """ - val = self._get_property('Mouth Width') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Mouth Width") + val = self._convert_from_internal_units(float(val), "Length") return val @property def mouth_height(self) -> float: """Mouth Height "Set mouth height (along local x-axis) of the horn antenna." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 1e-06 and 100." """ - val = self._get_property('Mouth Height') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Mouth Height") + val = self._convert_from_internal_units(float(val), "Length") return val @property def waveguide_width(self) -> float: """Waveguide Width "Set waveguide width (along local y-axis) where flared horn walls meet the feed, determines cut-off frequency." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 1e-06 and 100." """ - val = self._get_property('Waveguide Width') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Waveguide Width") + val = self._convert_from_internal_units(float(val), "Length") return val @property @@ -265,7 +286,7 @@ def width_flare_half_angle(self) -> float: "Set half-angle (degrees) of flared horn walls measured in local yz-plane from boresight (z) axis to either wall." "Value should be between 1 and 89.9." """ - val = self._get_property('Width Flare Half-angle') + val = self._get_property("Width Flare Half-angle") return val @property @@ -274,18 +295,17 @@ def height_flare_half_angle(self) -> float: "Set half-angle (degrees) of flared horn walls measured in local xz-plane from boresight (z) axis to either wall." "Value should be between 1 and 89.9." """ - val = self._get_property('Height Flare Half-angle') + val = self._get_property("Height Flare Half-angle") return val @property def mouth_diameter(self) -> float: """Mouth Diameter "Set aperture (mouth) diameter of horn antenna." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 1e-06 and 100." """ - val = self._get_property('Mouth Diameter') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Mouth Diameter") + val = self._convert_from_internal_units(float(val), "Length") return val @property @@ -294,7 +314,7 @@ def flare_half_angle(self) -> float: "Set half-angle (degrees) of conical horn wall measured from boresight (z)." "Value should be between 1 and 89.9." """ - val = self._get_property('Flare Half-angle') + val = self._get_property("Flare Half-angle") return val @property @@ -303,47 +323,47 @@ def vswr(self) -> float: "The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch between the antenna and the RF System (or outboard component)." "Value should be between 1 and 100." """ - val = self._get_property('VSWR') + val = self._get_property("VSWR") return val class AntennaPolarizationOption(Enum): - VERTICAL = "Vertical" - HORIZONTAL = "Horizontal" - RHCP = "RHCP" - LHCP = "LHCP" + VERTICAL = "Vertical" + HORIZONTAL = "Horizontal" + RHCP = "RHCP" + LHCP = "LHCP" @property def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization "Choose local-coordinates polarization along boresight." - " """ - val = self._get_property('Antenna Polarization') + " """ + val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] return val class CrossDipoleModeOption(Enum): - FREESTANDING = "Freestanding" - OVER_GROUND_PLANE = "Over Ground Plane" + FREESTANDING = "Freestanding" + OVER_GROUND_PLANE = "Over Ground Plane" @property def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode "Choose the Cross Dipole type." - " """ - val = self._get_property('Cross Dipole Mode') + " """ + val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] return val class CrossDipolePolarizationOption(Enum): - RHCP = "RHCP" - LHCP = "LHCP" + RHCP = "RHCP" + LHCP = "LHCP" @property def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization "Choose local-coordinates polarization along boresight." - " """ - val = self._get_property('Cross Dipole Polarization') + " """ + val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] return val @@ -353,18 +373,17 @@ def override_height(self) -> bool: "Ignores the default placement of quarter design wavelength over the ground plane." "Value should be 'true' or 'false'." """ - val = self._get_property('Override Height') + val = self._get_property("Override Height") return val @property def offset_height(self) -> float: """Offset Height "Sets the offset height for the current sources above the ground plane." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 0." """ - val = self._get_property('Offset Height') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Offset Height") + val = self._convert_from_internal_units(float(val), "Length") return val @property @@ -373,7 +392,7 @@ def auto_height_offset(self) -> bool: "Switch on to automatically place slot current at sub-wavelength offset height above ground plane." "Value should be 'true' or 'false'." """ - val = self._get_property('Auto Height Offset') + val = self._get_property("Auto Height Offset") return val @property @@ -382,7 +401,7 @@ def conform__adjust_antenna(self) -> bool: "Toggle (on/off) conformal adjustment for array antenna elements." "Value should be 'true' or 'false'." """ - val = self._get_property('Conform / Adjust Antenna') + val = self._get_property("Conform / Adjust Antenna") return val @property @@ -391,34 +410,34 @@ def element_offset(self): "Set vector for shifting element positions in antenna local coordinates." "Value should be x/y/z, delimited by spaces." """ - val = self._get_property('Element Offset') + val = self._get_property("Element Offset") return val class ConformtoPlatformOption(Enum): - NONE = "None" - ALONG_NORMAL = "Along Normal" - PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" + NONE = "None" + ALONG_NORMAL = "Along Normal" + PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" @property def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform "Select method of automated conforming applied after Element Offset." - " """ - val = self._get_property('Conform to Platform') + " """ + val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] return val class ReferencePlaneOption(Enum): - XY_PLANE = "XY Plane" - YZ_PLANE = "YZ Plane" - ZX_PLANE = "ZX Plane" + XY_PLANE = "XY Plane" + YZ_PLANE = "YZ Plane" + ZX_PLANE = "ZX Plane" @property def reference_plane(self) -> ReferencePlaneOption: """Reference Plane "Select reference plane for determining original element heights." - " """ - val = self._get_property('Reference Plane') + " """ + val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] return val @@ -428,7 +447,7 @@ def conform_element_orientation(self) -> bool: "Toggle (on/off) re-orientation of elements to conform to curved placement surface." "Value should be 'true' or 'false'." """ - val = self._get_property('Conform Element Orientation') + val = self._get_property("Conform Element Orientation") return val @property @@ -437,7 +456,7 @@ def show_axes(self) -> bool: "Toggle (on/off) display of antenna coordinate axes in 3-D window." "Value should be 'true' or 'false'." """ - val = self._get_property('Show Axes') + val = self._get_property("Show Axes") return val @property @@ -446,7 +465,7 @@ def show_icon(self) -> bool: "Toggle (on/off) display of antenna marker (cone) in 3-D window." "Value should be 'true' or 'false'." """ - val = self._get_property('Show Icon') + val = self._get_property("Show Icon") return val @property @@ -455,7 +474,7 @@ def size(self) -> float: "Adjust relative size of antenna marker (cone) in 3-D window." "Value should be between 0.001 and 1." """ - val = self._get_property('Size') + val = self._get_property("Size") return val @property @@ -464,23 +483,23 @@ def color(self): "Set color of antenna marker (cone) in 3-D window." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Color') + val = self._get_property("Color") return val @property def el_sample_interval(self) -> float: """El Sample Interval "Space between elevation-angle samples of pattern." - " """ - val = self._get_property('El Sample Interval') + " """ + val = self._get_property("El Sample Interval") return val @property def az_sample_interval(self) -> float: """Az Sample Interval "Space between azimuth-angle samples of pattern." - " """ - val = self._get_property('Az Sample Interval') + " """ + val = self._get_property("Az Sample Interval") return val @property @@ -489,88 +508,87 @@ def has_frequency_domain(self) -> bool: "False if antenna can be used at any frequency." "Value should be 'true' or 'false'." """ - val = self._get_property('Has Frequency Domain') + val = self._get_property("Has Frequency Domain") return val @property def frequency_domain(self): """Frequency Domain "Frequency sample(s) defining antenna." - " """ - val = self._get_property('Frequency Domain') + " """ + val = self._get_property("Frequency Domain") return val @property def number_of_electric_sources(self) -> int: """Number of Electric Sources "Number of freestanding electric current sources defining antenna." - " """ - val = self._get_property('Number of Electric Sources') + " """ + val = self._get_property("Number of Electric Sources") return val @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources "Number of freestanding magnetic current sources defining antenna." - " """ - val = self._get_property('Number of Magnetic Sources') + " """ + val = self._get_property("Number of Magnetic Sources") return val @property def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources "Number of imaged, half-space radiating electric current sources defining antenna." - " """ - val = self._get_property('Number of Imaged Electric Sources') + " """ + val = self._get_property("Number of Imaged Electric Sources") return val @property def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources "Number of imaged, half-space radiating magnetic current sources defining antenna." - " """ - val = self._get_property('Number of Imaged Magnetic Sources') + " """ + val = self._get_property("Number of Imaged Magnetic Sources") return val @property def waveguide_height(self) -> float: """Waveguide Height "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." - " """ - val = self._get_property('Waveguide Height') - val = self._convert_from_default_units(float(val), "Length Unit") + " """ + val = self._get_property("Waveguide Height") + val = self._convert_from_internal_units(float(val), "Length") return val @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." - " """ - val = self._get_property('Waveguide Cutoff Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + " """ + val = self._get_property("Waveguide Cutoff Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." - " """ - val = self._get_property('Aperture Cutoff Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + " """ + val = self._get_property("Aperture Cutoff Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val class SWEModeTruncationOption(Enum): - DYNAMIC = "Dynamic" - CUSTOM = "Fixed (Custom)" - NONE = "None" + DYNAMIC = "Dynamic" + CUSTOM = "Fixed (Custom)" + NONE = "None" @property def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation "Select the method for stability-enhancing truncation of spherical wave expansion terms." - " """ - val = self._get_property('SWE Mode Truncation') + " """ + val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] return val @@ -580,15 +598,15 @@ def max_n_index(self) -> int: "Set maximum allowed index N for spherical wave expansion terms." "Value should be greater than 1." """ - val = self._get_property('Max N Index') + val = self._get_property("Max N Index") return val @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val @property @@ -597,7 +615,7 @@ def show_composite_passband(self) -> bool: "Show plot instead of 3D window." "Value should be 'true' or 'false'." """ - val = self._get_property('Show Composite Passband') + val = self._get_property("Show Composite Passband") return val @property @@ -606,15 +624,15 @@ def use_phase_center(self) -> bool: "Use the phase center defined in the HFSS design." "Value should be 'true' or 'false'." """ - val = self._get_property('Use Phase Center') + val = self._get_property("Use Phase Center") return val @property def coordinate_systems(self) -> str: """Coordinate Systems "Specifies the coordinate system for the phase center of this antenna." - " """ - val = self._get_property('Coordinate Systems') + " """ + val = self._get_property("Coordinate Systems") return val @property @@ -623,7 +641,7 @@ def phasecenterposition(self): "Set position of the antennas linked coordinate system.." "Value should be x/y/z, delimited by spaces." """ - val = self._get_property('PhaseCenterPosition') + val = self._get_property("PhaseCenterPosition") return val @property @@ -632,6 +650,5 @@ def phasecenterorientation(self): "Set orientation of the antennas linked coordinate system.." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - val = self._get_property('PhaseCenterOrientation') + val = self._get_property("PhaseCenterOrientation") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py index 9e74a069a12..2db0cb29ca5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyAntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -16,7 +41,7 @@ def passband_loss(self) -> float: "Passband loss." "Value should be between 0 and 100." """ - val = self._get_property('Passband Loss') + val = self._get_property("Passband Loss") return val @property @@ -25,7 +50,7 @@ def out_of_band_attenuation(self) -> float: "Out of band antenna loss." "Value should be between 0 and 200." """ - val = self._get_property('Out of Band Attenuation') + val = self._get_property("Out of Band Attenuation") return val @property @@ -34,8 +59,8 @@ def lower_stop_band(self) -> float: "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -44,8 +69,8 @@ def lower_cutoff(self) -> float: "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -54,8 +79,8 @@ def higher_cutoff(self) -> float: "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -64,15 +89,14 @@ def higher_stop_band(self) -> float: "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py index 56a6acfd5a0..dab62d9fffc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -14,8 +39,8 @@ def parent(self): def port(self): """Port "Radio Port associated with this Band." - " """ - val = self._get_property('Port') + " """ + val = self._get_property("Port") return val @property @@ -24,7 +49,7 @@ def use_dd_1494_mode(self) -> bool: "Uses DD-1494 parameters to define the Tx/Rx spectrum." "Value should be 'true' or 'false'." """ - val = self._get_property('Use DD-1494 Mode') + val = self._get_property("Use DD-1494 Mode") return val @property @@ -33,32 +58,32 @@ def use_emission_designator(self) -> bool: "Uses the Emission Designator to define the bandwidth and modulation." "Value should be 'true' or 'false'." """ - val = self._get_property('Use Emission Designator') + val = self._get_property("Use Emission Designator") return val @property def emission_designator(self) -> str: """Emission Designator "Enter the Emission Designator to define the bandwidth and modulation." - " """ - val = self._get_property('Emission Designator') + " """ + val = self._get_property("Emission Designator") return val @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." - " """ - val = self._get_property('Emission Designator Ch. BW') - val = self._convert_from_default_units(float(val), "Freq Unit") + " """ + val = self._get_property("Emission Designator Ch. BW") + val = self._convert_from_internal_units(float(val), "Freq") return val @property def emit_modulation_type(self) -> str: """EMIT Modulation Type "Modulation based off the emission designator." - " """ - val = self._get_property('EMIT Modulation Type') + " """ + val = self._get_property("EMIT Modulation Type") return val @property @@ -67,7 +92,7 @@ def override_emission_designator_bw(self) -> bool: "Enables the 3 dB channel bandwidth to equal a value < emission designator bandwidth." "Value should be 'true' or 'false'." """ - val = self._get_property('Override Emission Designator BW') + val = self._get_property("Override Emission Designator BW") return val @property @@ -76,56 +101,40 @@ def channel_bandwidth(self) -> float: "Channel Bandwidth." "Value should be greater than 1." """ - val = self._get_property('Channel Bandwidth') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Channel Bandwidth") + val = self._convert_from_internal_units(float(val), "Freq") return val class ModulationOption(Enum): - GENERIC = "Generic" - AM = "AM" - LSB = "LSB" - USB = "USB" - FM = "FM" - FSK = "FSK" - MSK = "MSK" - PSK = "PSK" - QAM = "QAM" - APSK = "APSK" - RADAR = "Radar" + GENERIC = "Generic" + AM = "AM" + LSB = "LSB" + USB = "USB" + FM = "FM" + FSK = "FSK" + MSK = "MSK" + PSK = "PSK" + QAM = "QAM" + APSK = "APSK" + RADAR = "Radar" @property def modulation(self) -> ModulationOption: """Modulation "Modulation used for the transmitted/received signal." - " """ - val = self._get_property('Modulation') + " """ + val = self._get_property("Modulation") val = self.ModulationOption[val] return val - class WaveformOption(Enum): - PERIODIC_CLOCK = "Periodic Clock" - SPREAD_SPECTRUM = "Spread Spectrum Clock" - PRBS = "PRBS" - PRBS_PERIODIC = "PRBS (Periodic)" - IMPORTED = "Imported" - - @property - def waveform(self) -> WaveformOption: - """Waveform - "Modulation used for the transmitted/received signal." - " """ - val = self._get_property('Waveform') - val = self.WaveformOption[val] - return val - @property def max_modulating_freq(self) -> float: """Max Modulating Freq. "Maximum modulating frequency: helps determine spectral profile." "Value should be greater than 1." """ - val = self._get_property('Max Modulating Freq.') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Max Modulating Freq.") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -134,7 +143,7 @@ def modulation_index(self) -> float: "AM modulation index: helps determine spectral profile." "Value should be between 0.01 and 1." """ - val = self._get_property('Modulation Index') + val = self._get_property("Modulation Index") return val @property @@ -143,19 +152,18 @@ def freq_deviation(self) -> float: "Frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ - val = self._get_property('Freq. Deviation') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Freq. Deviation") + val = self._convert_from_internal_units(float(val), "Freq") return val @property def bit_rate(self) -> float: """Bit Rate "Maximum bit rate: helps determine width of spectral profile." - "Units options: bps, kbps, Mbps, Gbps." "Value should be greater than 1." """ - val = self._get_property('Bit Rate') - val = self._convert_from_default_units(float(val), "Data Rate Unit") + val = self._get_property("Bit Rate") + val = self._convert_from_internal_units(float(val), "Data Rate") return val @property @@ -164,79 +172,79 @@ def sidelobes(self) -> int: "Number of sidelobes in spectral profile." "Value should be greater than 0." """ - val = self._get_property('Sidelobes') + val = self._get_property("Sidelobes") return val @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ - val = self._get_property('Freq. Deviation ') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Freq. Deviation ") + val = self._convert_from_internal_units(float(val), "Freq") return val class PSKTypeOption(Enum): - BPSK = "BPSK" - QPSK = "QPSK" - _8_PSK = "8-PSK" - _16_PSK = "16-PSK" - _32_PSK = "32-PSK" - _64_PSK = "64-PSK" + BPSK = "BPSK" + QPSK = "QPSK" + _8_PSK = "8-PSK" + _16_PSK = "16-PSK" + _32_PSK = "32-PSK" + _64_PSK = "64-PSK" @property def psk_type(self) -> PSKTypeOption: """PSK Type "PSK modulation order: helps determine spectral profile." - " """ - val = self._get_property('PSK Type') + " """ + val = self._get_property("PSK Type") val = self.PSKTypeOption[val] return val class FSKTypeOption(Enum): - _2_FSK = "2-FSK" - _4_FSK = "4-FSK" - _8_FSK = "8-FSK" + _2_FSK = "2-FSK" + _4_FSK = "4-FSK" + _8_FSK = "8-FSK" @property def fsk_type(self) -> FSKTypeOption: """FSK Type "FSK modulation order: helps determine spectral profile." - " """ - val = self._get_property('FSK Type') + " """ + val = self._get_property("FSK Type") val = self.FSKTypeOption[val] return val class QAMTypeOption(Enum): - _4_QAM = "4-QAM" - _16_QAM = "16-QAM" - _64_QAM = "64-QAM" - _256_QAM = "256-QAM" - _1024_QAM = "1024-QAM" + _4_QAM = "4-QAM" + _16_QAM = "16-QAM" + _64_QAM = "64-QAM" + _256_QAM = "256-QAM" + _1024_QAM = "1024-QAM" @property def qam_type(self) -> QAMTypeOption: """QAM Type "QAM modulation order: helps determine spectral profile." - " """ - val = self._get_property('QAM Type') + " """ + val = self._get_property("QAM Type") val = self.QAMTypeOption[val] return val class APSKTypeOption(Enum): - _4_APSK = "4-APSK" - _16_APSK = "16-APSK" - _64_APSK = "64-APSK" - _256_APSK = "256-APSK" - _1024_APSK = "1024-APSK" + _4_APSK = "4-APSK" + _16_APSK = "16-APSK" + _64_APSK = "64-APSK" + _256_APSK = "256-APSK" + _1024_APSK = "1024-APSK" @property def apsk_type(self) -> APSKTypeOption: """APSK Type "APSK modulation order: helps determine spectral profile." - " """ - val = self._get_property('APSK Type') + " """ + val = self._get_property("APSK Type") val = self.APSKTypeOption[val] return val @@ -246,8 +254,8 @@ def start_frequency(self) -> float: "First frequency for this band." "Value should be between 1 and 1e+11." """ - val = self._get_property('Start Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Start Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -256,8 +264,8 @@ def stop_frequency(self) -> float: "Last frequency for this band." "Value should be between 1 and 1e+11." """ - val = self._get_property('Stop Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Stop Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -266,8 +274,8 @@ def channel_spacing(self) -> float: "Spacing between channels within this band." "Value should be between 1 and 1e+11." """ - val = self._get_property('Channel Spacing') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Channel Spacing") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -276,260 +284,23 @@ def tx_offset(self) -> float: "Frequency offset between Tx and Rx channels." "Value should be less than 1e+11." """ - val = self._get_property('Tx Offset') - val = self._convert_from_default_units(float(val), "Freq Unit") - return val - - @property - def clock_duty_cycle(self) -> float: - """Clock Duty Cycle - "Clock signals duty cycle." - "Value should be between 0.001 and 1." - """ - val = self._get_property('Clock Duty Cycle') - return val - - @property - def clock_risefall_time(self) -> float: - """Clock Rise/Fall Time - "Clock signals rise/fall time." - "Units options: ps, ns, us, ms, s." - "Value should be greater than 0." - """ - val = self._get_property('Clock Rise/Fall Time') - val = self._convert_from_default_units(float(val), "Time Unit") - return val - - class SpreadingTypeOption(Enum): - LOW_SPREAD = "Low Spread" - CENTER_SPREAD = "Center Spread" - HIGH_SPREAD = "High Spread" - - @property - def spreading_type(self) -> SpreadingTypeOption: - """Spreading Type - "Type of spreading employed by the Spread Spectrum Clock." - " """ - val = self._get_property('Spreading Type') - val = self.SpreadingTypeOption[val] - return val - - @property - def spread_percentage(self) -> float: - """Spread Percentage - "Peak-to-peak spread percentage." - "Value should be between 0 and 100." - """ - val = self._get_property('Spread Percentage') - return val - - @property - def imported_spectrum(self) -> str: - """Imported Spectrum - "Value should be a full file path." - """ - val = self._get_property('Imported Spectrum') - return val - - @property - def raw_data_format(self) -> str: - """Raw Data Format - "Format of the imported raw data." - " """ - val = self._get_property('Raw Data Format') - return val - - @property - def system_impedance(self) -> float: - """System Impedance - "System impedance for the imported data." - "Units options: uOhm, mOhm, ohm, kOhm, megohm, GOhm." - "Value should be between 0 and 1e+06." - """ - val = self._get_property('System Impedance') - val = self._convert_from_default_units(float(val), "Resistance Unit") - return val - - @property - def advanced_extraction_params(self) -> bool: - """Advanced Extraction Params - "Show/hide advanced extraction params." - "Value should be 'true' or 'false'." - """ - val = self._get_property('Advanced Extraction Params') - return val - - @property - def nb_window_size(self) -> float: - """NB Window Size - "Window size for computing the moving average during narrowband signal detection." - "Value should be greater than 3." - """ - val = self._get_property('NB Window Size') - return val - - @property - def bb_smoothing_factor(self) -> float: - """BB Smoothing Factor - "Reduces the number of frequency points used for the broadband noise." - "Value should be greater than 1." - """ - val = self._get_property('BB Smoothing Factor') - return val - - @property - def nb_detector_threshold(self) -> float: - """NB Detector Threshold - "Narrowband Detector threshold standard deviation." - "Value should be between 2 and 10." - """ - val = self._get_property('NB Detector Threshold') - return val - - class AlgorithmOption(Enum): - FFT = "FFT" - FOURIER_TRANSFORM = "Fourier Transform" - - @property - def algorithm(self) -> AlgorithmOption: - """Algorithm - "Algorithm used to transform the imported time domain spectrum." - " """ - val = self._get_property('Algorithm') - val = self.AlgorithmOption[val] - return val - - @property - def start(self) -> float: - """Start - "Initial time of the imported spectrum." - "Units options: ps, ns, us, ms, s." - "Value should be greater than 0." - """ - val = self._get_property('Start') - val = self._convert_from_default_units(float(val), "Time Unit") - return val - - @property - def stop(self) -> float: - """Stop - "Final time of the imported time domain spectrum." - "Units options: ps, ns, us, ms, s." - " """ - val = self._get_property('Stop') - val = self._convert_from_default_units(float(val), "Time Unit") - return val - - @property - def max_frequency(self) -> float: - """Max Frequency - "Frequency cutoff of the imported time domain spectrum." - "Value should be between 1 and 1e+11." - """ - val = self._get_property('Max Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") - return val - - class WindowTypeOption(Enum): - RECTANGULAR = "Rectangular" - BARTLETT = "Bartlett" - BLACKMAN = "Blackman" - HAMMING = "Hamming" - HANNING = "Hanning" - KAISER = "Kaiser" - LANZCOS = "Lanzcos" - WELCH = "Welch" - WEBER = "Weber" - - @property - def window_type(self) -> WindowTypeOption: - """Window Type - "Windowing scheme used for importing time domain spectrum." - " """ - val = self._get_property('Window Type') - val = self.WindowTypeOption[val] - return val - - @property - def kaiser_parameter(self) -> float: - """Kaiser Parameter - "Shape factor applied to the transform." - "Value should be greater than 0." - """ - val = self._get_property('Kaiser Parameter') - return val - - @property - def adjust_coherent_gain(self) -> bool: - """Adjust Coherent Gain - "Shape factor applied to the transform." - "Value should be 'true' or 'false'." - """ - val = self._get_property('Adjust Coherent Gain') - return val - - @property - def data_rate(self) -> float: - """Data Rate - "Maximum data rate: helps determine shape of spectral profile." - "Units options: bps, kbps, Mbps, Gbps." - "Value should be greater than 1." - """ - val = self._get_property('Data Rate') - val = self._convert_from_default_units(float(val), "Data Rate Unit") - return val - - @property - def _of_bits(self) -> int: - """# of Bits - "Length of the Pseudo Random Binary Sequence." - "Value should be between 1 and 1000." - """ - val = self._get_property('# of Bits') - return val - - @property - def use_envelope(self) -> bool: - """Use Envelope - "Model the waveform as a worst case envelope.." - "Value should be 'true' or 'false'." - """ - val = self._get_property('Use Envelope') - return val - - @property - def min_ptsnull(self) -> int: - """Min Pts/Null - "Minimum number of points to use between each null frequency." - "Value should be between 2 and 50." - """ - val = self._get_property('Min Pts/Null') - return val - - @property - def delay_skew(self) -> float: - """Delay Skew - "Delay Skew of the differential signal pairs." - "Units options: ps, ns, us, ms, s." - "Value should be greater than 0." - """ - val = self._get_property('Delay Skew') - val = self._convert_from_default_units(float(val), "Time Unit") + val = self._get_property("Tx Offset") + val = self._convert_from_internal_units(float(val), "Freq") return val class RadarTypeOption(Enum): - CW = "CW" - FM_CW = "FM-CW" - FM_PULSE = "FM Pulse" - NON_FM_PULSE = "Non-FM Pulse" - PHASE_CODED = "Phase Coded" + CW = "CW" + FM_CW = "FM-CW" + FM_PULSE = "FM Pulse" + NON_FM_PULSE = "Non-FM Pulse" + PHASE_CODED = "Phase Coded" @property def radar_type(self) -> RadarTypeOption: """Radar Type "Radar type: helps determine spectral profile." - " """ - val = self._get_property('Radar Type') + " """ + val = self._get_property("Radar Type") val = self.RadarTypeOption[val] return val @@ -539,7 +310,7 @@ def hopping_radar(self) -> bool: "True for hopping radars; false otherwise." "Value should be 'true' or 'false'." """ - val = self._get_property('Hopping Radar') + val = self._get_property("Hopping Radar") return val @property @@ -548,7 +319,7 @@ def post_october_2020_procurement(self) -> bool: "Procurement date: helps determine spectral profile, particularly the roll-off." "Value should be 'true' or 'false'." """ - val = self._get_property('Post October 2020 Procurement') + val = self._get_property("Post October 2020 Procurement") return val @property @@ -557,8 +328,8 @@ def hop_range_min_freq(self) -> float: "Sets the minimum frequency of the hopping range." "Value should be between 1 and 1e+11." """ - val = self._get_property('Hop Range Min Freq') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Hop Range Min Freq") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -567,41 +338,38 @@ def hop_range_max_freq(self) -> float: "Sets the maximum frequency of the hopping range." "Value should be between 1 and 1e+11." """ - val = self._get_property('Hop Range Max Freq') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Hop Range Max Freq") + val = self._convert_from_internal_units(float(val), "Freq") return val @property def pulse_duration(self) -> float: """Pulse Duration "Pulse duration." - "Units options: ps, ns, us, ms, s." "Value should be greater than 0." """ - val = self._get_property('Pulse Duration') - val = self._convert_from_default_units(float(val), "Time Unit") + val = self._get_property("Pulse Duration") + val = self._convert_from_internal_units(float(val), "Time") return val @property def pulse_rise_time(self) -> float: """Pulse Rise Time "Pulse rise time." - "Units options: ps, ns, us, ms, s." "Value should be greater than 0." """ - val = self._get_property('Pulse Rise Time') - val = self._convert_from_default_units(float(val), "Time Unit") + val = self._get_property("Pulse Rise Time") + val = self._convert_from_internal_units(float(val), "Time") return val @property def pulse_fall_time(self) -> float: """Pulse Fall Time "Pulse fall time." - "Units options: ps, ns, us, ms, s." "Value should be greater than 0." """ - val = self._get_property('Pulse Fall Time') - val = self._convert_from_default_units(float(val), "Time Unit") + val = self._get_property("Pulse Fall Time") + val = self._convert_from_internal_units(float(val), "Time") return val @property @@ -610,7 +378,7 @@ def pulse_repetition_rate(self) -> float: "Pulse repetition rate [pulses/sec]." "Value should be greater than 1." """ - val = self._get_property('Pulse Repetition Rate') + val = self._get_property("Pulse Repetition Rate") return val @property @@ -619,7 +387,7 @@ def number_of_chips(self) -> float: "Total number of chips (subpulses) contained in the pulse." "Value should be greater than 1." """ - val = self._get_property('Number of Chips') + val = self._get_property("Number of Chips") return val @property @@ -628,18 +396,17 @@ def pulse_compression_ratio(self) -> float: "Pulse compression ratio." "Value should be greater than 1." """ - val = self._get_property('Pulse Compression Ratio') + val = self._get_property("Pulse Compression Ratio") return val @property def fm_chirp_period(self) -> float: """FM Chirp Period "FM Chirp period for the FM/CW radar." - "Units options: ps, ns, us, ms, s." "Value should be greater than 0." """ - val = self._get_property('FM Chirp Period') - val = self._convert_from_default_units(float(val), "Time Unit") + val = self._get_property("FM Chirp Period") + val = self._convert_from_internal_units(float(val), "Time") return val @property @@ -648,8 +415,8 @@ def fm_freq_deviation(self) -> float: "Total frequency deviation for the carrier frequency for the FM/CW radar." "Value should be between 1 and 1e+11." """ - val = self._get_property('FM Freq Deviation') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("FM Freq Deviation") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -658,7 +425,6 @@ def fm_freq_dev_bandwidth(self) -> float: "Bandwidth of freq deviation for FM modulated pulsed waveform (total freq shift during pulse duration)." "Value should be between 1 and 1e+11." """ - val = self._get_property('FM Freq Dev Bandwidth') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("FM Freq Dev Bandwidth") + val = self._convert_from_internal_units(float(val), "Freq") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py index be2a0e34ea0..609059ce036 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyBandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -9,4 +34,3 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py index b5b2e8b9ff4..73520cbde3b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyCADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -16,31 +41,31 @@ def file(self) -> str: "Name of the imported CAD file." "Value should be a full file path." """ - val = self._get_property('File') + val = self._get_property("File") return val class ModelTypeOption(Enum): - PLATE = "Plate" - BOX = "Box" - DIHEDRAL = "Dihedral" - TRIHEDRAL = "Trihedral" - CYLINDER = "Cylinder" - TAPERED_CYLINDER = "Tapered Cylinder" - CONE = "Cone" - SPHERE = "Sphere" - ELLIPSOID = "Ellipsoid" - CIRCULAR_PLATE = "Circular Plate" - PARABOLA = "Parabola" - PRISM = "Prism" - TAPERED_PRISM = "Tapered Prism" - TOPHAT = "Tophat" + PLATE = "Plate" + BOX = "Box" + DIHEDRAL = "Dihedral" + TRIHEDRAL = "Trihedral" + CYLINDER = "Cylinder" + TAPERED_CYLINDER = "Tapered Cylinder" + CONE = "Cone" + SPHERE = "Sphere" + ELLIPSOID = "Ellipsoid" + CIRCULAR_PLATE = "Circular Plate" + PARABOLA = "Parabola" + PRISM = "Prism" + TAPERED_PRISM = "Tapered Prism" + TOPHAT = "Tophat" @property def model_type(self) -> ModelTypeOption: """Model Type "Select type of parametric model to create." - " """ - val = self._get_property('Model Type') + " """ + val = self._get_property("Model Type") val = self.ModelTypeOption[val] return val @@ -48,33 +73,30 @@ def model_type(self) -> ModelTypeOption: def length(self) -> float: """Length "Length of the model." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ - val = self._get_property('Length') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Length") + val = self._convert_from_internal_units(float(val), "Length") return val @property def width(self) -> float: """Width "Width of the model." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ - val = self._get_property('Width') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Width") + val = self._convert_from_internal_units(float(val), "Length") return val @property def height(self) -> float: """Height "Height of the model." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ - val = self._get_property('Height') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Height") + val = self._convert_from_internal_units(float(val), "Length") return val @property @@ -83,127 +105,116 @@ def angle(self) -> float: "Angle (deg) between the plates." "Value should be between 0 and 360." """ - val = self._get_property('Angle') + val = self._get_property("Angle") return val @property def top_side(self) -> float: """Top Side "Side of the top of a equilateral triangular cylinder model." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 0." """ - val = self._get_property('Top Side') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Top Side") + val = self._convert_from_internal_units(float(val), "Length") return val @property def top_radius(self) -> float: """Top Radius "Radius of the top of a tapered cylinder model." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 0." """ - val = self._get_property('Top Radius') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Top Radius") + val = self._convert_from_internal_units(float(val), "Length") return val @property def side(self) -> float: """Side "Side of the equilateral triangular cylinder." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ - val = self._get_property('Side') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Side") + val = self._convert_from_internal_units(float(val), "Length") return val @property def radius(self) -> float: """Radius "Radius of the sphere or cylinder." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ - val = self._get_property('Radius') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Radius") + val = self._convert_from_internal_units(float(val), "Length") return val @property def base_radius(self) -> float: """Base Radius "Radius of the base of a tophat model." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ - val = self._get_property('Base Radius') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Base Radius") + val = self._convert_from_internal_units(float(val), "Length") return val @property def center_radius(self) -> float: """Center Radius "Radius of the raised portion of a tophat model." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ - val = self._get_property('Center Radius') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Center Radius") + val = self._convert_from_internal_units(float(val), "Length") return val @property def x_axis_ellipsoid_radius(self) -> float: """X Axis Ellipsoid Radius "Ellipsoid semi-principal radius for the X axis." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ - val = self._get_property('X Axis Ellipsoid Radius') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("X Axis Ellipsoid Radius") + val = self._convert_from_internal_units(float(val), "Length") return val @property def y_axis_ellipsoid_radius(self) -> float: """Y Axis Ellipsoid Radius "Ellipsoid semi-principal radius for the Y axis." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ - val = self._get_property('Y Axis Ellipsoid Radius') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Y Axis Ellipsoid Radius") + val = self._convert_from_internal_units(float(val), "Length") return val @property def z_axis_ellipsoid_radius(self) -> float: """Z Axis Ellipsoid Radius "Ellipsoid semi-principal radius for the Z axis." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ - val = self._get_property('Z Axis Ellipsoid Radius') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Z Axis Ellipsoid Radius") + val = self._convert_from_internal_units(float(val), "Length") return val @property def focal_length(self) -> float: """Focal Length "Focal length of a parabolic reflector (f = 1/4a where y=ax^2)." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be greater than 1e-06." """ - val = self._get_property('Focal Length') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Focal Length") + val = self._convert_from_internal_units(float(val), "Length") return val @property def offset(self) -> float: """Offset "Offset of parabolic reflector." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." - " """ - val = self._get_property('Offset') - val = self._convert_from_default_units(float(val), "Length Unit") + " """ + val = self._get_property("Offset") + val = self._convert_from_internal_units(float(val), "Length") return val @property @@ -212,7 +223,7 @@ def x_direction_taper(self) -> float: "Amount (%) that the prism tapers in the X dimension from one end to the other." "Value should be greater than 0." """ - val = self._get_property('X Direction Taper') + val = self._get_property("X Direction Taper") return val @property @@ -221,7 +232,7 @@ def y_direction_taper(self) -> float: "Amount (%) that the prism tapers in the Y dimension from one end to the other." "Value should be greater than 0." """ - val = self._get_property('Y Direction Taper') + val = self._get_property("Y Direction Taper") return val @property @@ -230,7 +241,7 @@ def prism_direction(self): "Direction vector between the center of the base and center of the top." "Value should be x/y/z, delimited by spaces." """ - val = self._get_property('Prism Direction') + val = self._get_property("Prism Direction") return val @property @@ -239,7 +250,7 @@ def closed_top(self) -> bool: "Control whether the top of the model is closed." "Value should be 'true' or 'false'." """ - val = self._get_property('Closed Top') + val = self._get_property("Closed Top") return val @property @@ -248,7 +259,7 @@ def closed_base(self) -> bool: "Control whether the base of the model is closed." "Value should be 'true' or 'false'." """ - val = self._get_property('Closed Base') + val = self._get_property("Closed Base") return val @property @@ -257,7 +268,7 @@ def mesh_density(self) -> int: "Unitless mesh density parameter where higher value improves mesh smoothness." "Value should be between 1 and 100." """ - val = self._get_property('Mesh Density') + val = self._get_property("Mesh Density") return val @property @@ -266,19 +277,19 @@ def use_symmetric_mesh(self) -> bool: "Convert quads to a symmetric triangle mesh by adding a center point (4 triangles per quad instead of 2)." "Value should be 'true' or 'false'." """ - val = self._get_property('Use Symmetric Mesh') + val = self._get_property("Use Symmetric Mesh") return val class MeshOptionOption(Enum): - IMPROVED = "Improved" - LEGACY = "Legacy" + IMPROVED = "Improved" + LEGACY = "Legacy" @property def mesh_option(self) -> MeshOptionOption: """Mesh Option "Select from different meshing options." - " """ - val = self._get_property('Mesh Option') + " """ + val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] return val @@ -288,7 +299,7 @@ def coating_index(self) -> int: "Coating index for the parametric model primitive." "Value should be between 0 and 100000." """ - val = self._get_property('Coating Index') + val = self._get_property("Coating Index") return val @property @@ -297,7 +308,7 @@ def show_relative_coordinates(self) -> bool: "Show CAD model node position and orientation in parent-node coords (False) or relative to placement coords (True)." "Value should be 'true' or 'false'." """ - val = self._get_property('Show Relative Coordinates') + val = self._get_property("Show Relative Coordinates") return val @property @@ -306,7 +317,7 @@ def position(self): "Set position of the CAD node in parent-node coordinates." "Value should be x/y/z, delimited by spaces." """ - val = self._get_property('Position') + val = self._get_property("Position") return val @property @@ -315,19 +326,19 @@ def relative_position(self): "Set position of the CAD model node relative to placement coordinates." "Value should be x/y/z, delimited by spaces." """ - val = self._get_property('Relative Position') + val = self._get_property("Relative Position") return val class OrientationModeOption(Enum): - RPYDEG = "Roll-Pitch-Yaw" - AETDEG = "Az-El-Twist" + RPYDEG = "Roll-Pitch-Yaw" + AETDEG = "Az-El-Twist" @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ - val = self._get_property('Orientation Mode') + " """ + val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -337,7 +348,7 @@ def orientation(self): "Set orientation of the CAD node in parent-node coordinates." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - val = self._get_property('Orientation') + val = self._get_property("Orientation") return val @property @@ -346,7 +357,7 @@ def relative_orientation(self): "Set orientation of the CAD model node relative to placement coordinates." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - val = self._get_property('Relative Orientation') + val = self._get_property("Relative Orientation") return val @property @@ -355,21 +366,21 @@ def visible(self) -> bool: "Toggle (on/off) display of CAD model in 3-D window." "Value should be 'true' or 'false'." """ - val = self._get_property('Visible') + val = self._get_property("Visible") return val class RenderModeOption(Enum): - FLAT_SHADED = "Flat-Shaded" - WIRE_FRAME = "Wire-Frame" - HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" - OUTLINE = "Outline" + FLAT_SHADED = "Flat-Shaded" + WIRE_FRAME = "Wire-Frame" + HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" + OUTLINE = "Outline" @property def render_mode(self) -> RenderModeOption: """Render Mode "Select drawing style for surfaces." - " """ - val = self._get_property('Render Mode') + " """ + val = self._get_property("Render Mode") val = self.RenderModeOption[val] return val @@ -379,7 +390,7 @@ def show_axes(self) -> bool: "Toggle (on/off) display of CAD model coordinate axes in 3-D window." "Value should be 'true' or 'false'." """ - val = self._get_property('Show Axes') + val = self._get_property("Show Axes") return val @property @@ -388,7 +399,7 @@ def min(self): "Minimum x,y,z extents of CAD model in local coordinates." "Value should be x/y/z, delimited by spaces." """ - val = self._get_property('Min') + val = self._get_property("Min") return val @property @@ -397,15 +408,15 @@ def max(self): "Maximum x,y,z extents of CAD model in local coordinates." "Value should be x/y/z, delimited by spaces." """ - val = self._get_property('Max') + val = self._get_property("Max") return val @property def number_of_surfaces(self) -> int: """Number of Surfaces "Number of surfaces in the model." - " """ - val = self._get_property('Number of Surfaces') + " """ + val = self._get_property("Number of Surfaces") return val @property @@ -414,14 +425,13 @@ def color(self): "Defines the CAD nodes color." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Color') + val = self._get_property("Color") return val @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py index cd7641b5750..136e7b63d1a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyCable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -11,7 +36,7 @@ def filename(self) -> str: "Name of file defining the outboard component." "Value should be a full file path." """ - val = self._get_property('Filename') + val = self._get_property("Filename") return val @property @@ -20,28 +45,28 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - val = self._get_property('Noise Temperature') + val = self._get_property("Noise Temperature") return val @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val class TypeOption(Enum): - BYFILE = "By File" - CONSTANT = "Constant Loss" - COAXIAL = "Coaxial Cable" + BYFILE = "By File" + CONSTANT = "Constant Loss" + COAXIAL = "Coaxial Cable" @property def type(self) -> TypeOption: """Type "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." - " """ - val = self._get_property('Type') + " """ + val = self._get_property("Type") val = self.TypeOption[val] return val @@ -49,11 +74,10 @@ def type(self) -> TypeOption: def length(self) -> float: """Length "Length of cable." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 0 and 500." """ - val = self._get_property('Length') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Length") + val = self._convert_from_internal_units(float(val), "Length") return val @property @@ -62,18 +86,17 @@ def loss_per_length(self) -> float: "Cable loss per unit length (dB/meter)." "Value should be between 0 and 20." """ - val = self._get_property('Loss Per Length') + val = self._get_property("Loss Per Length") return val @property def measurement_length(self) -> float: """Measurement Length "Length of the cable used for the measurements." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 0 and 500." """ - val = self._get_property('Measurement Length') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Measurement Length") + val = self._convert_from_internal_units(float(val), "Length") return val @property @@ -82,7 +105,7 @@ def resistive_loss_constant(self) -> float: "Coaxial cable resistive loss constant." "Value should be between 0 and 2." """ - val = self._get_property('Resistive Loss Constant') + val = self._get_property("Resistive Loss Constant") return val @property @@ -91,14 +114,13 @@ def dielectric_loss_constant(self) -> float: "Coaxial cable dielectric loss constant." "Value should be between 0 and 1." """ - val = self._get_property('Dielectric Loss Constant') + val = self._get_property("Dielectric Loss Constant") return val @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ - val = self._get_property('Warnings') + " """ + val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py index ed66e1b212e..79400d54584 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyCirculator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -11,7 +36,7 @@ def filename(self) -> str: "Name of file defining the Isolator/Circulator." "Value should be a full file path." """ - val = self._get_property('Filename') + val = self._get_property("Filename") return val @property @@ -20,40 +45,40 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - val = self._get_property('Noise Temperature') + val = self._get_property("Noise Temperature") return val @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val class TypeOption(Enum): - BYFILE = "By File" - PARAMETRIC = "Parametric" + BYFILE = "By File" + PARAMETRIC = "Parametric" @property def type(self) -> TypeOption: """Type "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." - " """ - val = self._get_property('Type') + " """ + val = self._get_property("Type") val = self.TypeOption[val] return val class Port1LocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the circulator.." - " """ - val = self._get_property('Port 1 Location') + " """ + val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @@ -63,7 +88,7 @@ def insertion_loss(self) -> float: "Circulator in-band loss in forward direction.." "Value should be between 0 and 100." """ - val = self._get_property('Insertion Loss') + val = self._get_property("Insertion Loss") return val @property @@ -72,7 +97,7 @@ def finite_reverse_isolation(self) -> bool: "Use a finite reverse isolation. If disabled, the circulator model is ideal (infinite reverse isolation).." "Value should be 'true' or 'false'." """ - val = self._get_property('Finite Reverse Isolation') + val = self._get_property("Finite Reverse Isolation") return val @property @@ -81,7 +106,7 @@ def reverse_isolation(self) -> float: "Circulator reverse isolation (i.e., loss in the reverse direction).." "Value should be between 0 and 100." """ - val = self._get_property('Reverse Isolation') + val = self._get_property("Reverse Isolation") return val @property @@ -90,7 +115,7 @@ def finite_bandwidth(self) -> bool: "Use a finite bandwidth. If disabled, the circulator model is ideal (infinite bandwidth).." "Value should be 'true' or 'false'." """ - val = self._get_property('Finite Bandwidth') + val = self._get_property("Finite Bandwidth") return val @property @@ -99,7 +124,7 @@ def out_of_band_attenuation(self) -> float: "Out-of-band loss (attenuation)." "Value should be between 0 and 200." """ - val = self._get_property('Out-of-band Attenuation') + val = self._get_property("Out-of-band Attenuation") return val @property @@ -108,8 +133,8 @@ def lower_stop_band(self) -> float: "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -118,8 +143,8 @@ def lower_cutoff(self) -> float: "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -128,8 +153,8 @@ def higher_cutoff(self) -> float: "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -138,15 +163,14 @@ def higher_stop_band(self) -> float: "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ - val = self._get_property('Warnings') + " """ + val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py index 91edd6f2e2b..142edb7bea0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -16,7 +41,7 @@ def enabled(self) -> bool: "Enable/Disable coupling link." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @property @@ -24,7 +49,6 @@ def ports(self): """Ports "Maps each port in the link to an antenna in the project." "A list of values." - " """ - val = self._get_property('Ports') + " """ + val = self._get_property("Ports") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py index 919f7ab26e5..69441c5b321 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyCouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -11,7 +36,7 @@ def minimum_allowed_coupling(self) -> float: "Global minimum allowed coupling value. All computed coupling within this project will be >= this value." "Value should be between -1000 and 1000." """ - val = self._get_property('Minimum Allowed Coupling') + val = self._get_property("Minimum Allowed Coupling") return val @property @@ -20,14 +45,13 @@ def global_default_coupling(self) -> float: "Default antenna-to-antenna coupling loss value." "Value should be between -1000 and 0." """ - val = self._get_property('Global Default Coupling') + val = self._get_property("Global Default Coupling") return val @property def antenna_tags(self) -> str: """Antenna Tags "All tags currently used by all antennas in the project." - " """ - val = self._get_property('Antenna Tags') + " """ + val = self._get_property("Antenna Tags") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py index 259683319a6..5029f5ca9e8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,11 +37,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Value (dB): + "Value (dB): " Value should be between -1000 and 0." """ return self._get_table_data() @@ -27,23 +52,23 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Antenna A') + " """ + val = self._get_property("Antenna A") return val @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Antenna B') + " """ + val = self._get_property("Antenna B") return val @property @@ -52,7 +77,7 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Refinement') + val = self._get_property("Enable Refinement") return val @property @@ -61,14 +86,13 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - val = self._get_property('Adaptive Sampling') + val = self._get_property("Adaptive Sampling") return val @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ - val = self._get_property('Refinement Domain') + " """ + val = self._get_property("Refinement Domain") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py index 163ec1266c3..4b7de2ffdc6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -9,21 +34,21 @@ def __init__(self, oDesign, result_id, node_id): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val class GroundPlaneNormalOption(Enum): - XAXIS = "X Axis" - YAXIS = "Y Axis" - ZAXIS = "Z Axis" + XAXIS = "X Axis" + YAXIS = "Y Axis" + ZAXIS = "Z Axis" @property def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal "Specifies the axis of the normal to the ground plane." - " """ - val = self._get_property('Ground Plane Normal') + " """ + val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] return val @@ -31,9 +56,7 @@ def ground_plane_normal(self) -> GroundPlaneNormalOption: def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." - " """ - val = self._get_property('GP Position Along Normal') - val = self._convert_from_default_units(float(val), "Length Unit") + " """ + val = self._get_property("GP Position Along Normal") + val = self._convert_from_internal_units(float(val), "Length") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py index b699b90f723..558d1515b20 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -16,23 +41,23 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Base Antenna') + " """ + val = self._get_property("Base Antenna") return val @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Mobile Antenna') + " """ + val = self._get_property("Mobile Antenna") return val @property @@ -41,7 +66,7 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Refinement') + val = self._get_property("Enable Refinement") return val @property @@ -50,28 +75,28 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - val = self._get_property('Adaptive Sampling') + val = self._get_property("Adaptive Sampling") return val @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ - val = self._get_property('Refinement Domain') + " """ + val = self._get_property("Refinement Domain") return val class TerrainCategoryOption(Enum): - TYPEA = "Type A" - TYPEB = "Type B" - TYPEC = "Type C" + TYPEA = "Type A" + TYPEB = "Type B" + TYPEC = "Type C" @property def terrain_category(self) -> TerrainCategoryOption: """Terrain Category "Specify the terrain category type for the Erceg model." - " """ - val = self._get_property('Terrain Category') + " """ + val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] return val @@ -81,7 +106,7 @@ def custom_fading_margin(self) -> float: "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Custom Fading Margin') + val = self._get_property("Custom Fading Margin") return val @property @@ -90,7 +115,7 @@ def polarization_mismatch(self) -> float: "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Polarization Mismatch') + val = self._get_property("Polarization Mismatch") return val @property @@ -99,21 +124,21 @@ def pointing_error_loss(self) -> float: "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Pointing Error Loss') + val = self._get_property("Pointing Error Loss") return val class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ - val = self._get_property('Fading Type') + " """ + val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -123,7 +148,7 @@ def fading_availability(self) -> float: "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - val = self._get_property('Fading Availability') + val = self._get_property("Fading Availability") return val @property @@ -132,7 +157,7 @@ def std_deviation(self) -> float: "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - val = self._get_property('Std Deviation') + val = self._get_property("Std Deviation") return val @property @@ -141,7 +166,7 @@ def include_rain_attenuation(self) -> bool: "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Rain Attenuation') + val = self._get_property("Include Rain Attenuation") return val @property @@ -150,7 +175,7 @@ def rain_availability(self) -> float: "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - val = self._get_property('Rain Availability') + val = self._get_property("Rain Availability") return val @property @@ -159,7 +184,7 @@ def rain_rate(self) -> float: "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - val = self._get_property('Rain Rate') + val = self._get_property("Rain Rate") return val @property @@ -168,7 +193,7 @@ def polarization_tilt_angle(self) -> float: "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - val = self._get_property('Polarization Tilt Angle') + val = self._get_property("Polarization Tilt Angle") return val @property @@ -177,7 +202,7 @@ def include_atmospheric_absorption(self) -> bool: "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Atmospheric Absorption') + val = self._get_property("Include Atmospheric Absorption") return val @property @@ -186,7 +211,7 @@ def temperature(self) -> float: "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - val = self._get_property('Temperature') + val = self._get_property("Temperature") return val @property @@ -195,7 +220,7 @@ def total_air_pressure(self) -> float: "Total air pressure." "Value should be between 0 and 2000." """ - val = self._get_property('Total Air Pressure') + val = self._get_property("Total Air Pressure") return val @property @@ -204,6 +229,5 @@ def water_vapor_concentration(self) -> float: "Water vapor concentration." "Value should be between 0 and 2000." """ - val = self._get_property('Water Vapor Concentration') + val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py index 8d3471188e4..128b33306a7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyFilter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -11,7 +36,7 @@ def filename(self) -> str: "Name of file defining the outboard component." "Value should be a full file path." """ - val = self._get_property('Filename') + val = self._get_property("Filename") return val @property @@ -20,32 +45,32 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - val = self._get_property('Noise Temperature') + val = self._get_property("Noise Temperature") return val @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val class TypeOption(Enum): - BYFILE = "By File" - LOWPASS = "Low Pass" - HIGHPASS = "High Pass" - BANDPASS = "Band Pass" - BANDSTOP = "Band Stop" - TUNABLEBANDPASS = "Tunable Bandpass" - TUNABLEBANDSTOP = "Tunable Bandstop" + BYFILE = "By File" + LOWPASS = "Low Pass" + HIGHPASS = "High Pass" + BANDPASS = "Band Pass" + BANDSTOP = "Band Stop" + TUNABLEBANDPASS = "Tunable Bandpass" + TUNABLEBANDSTOP = "Tunable Bandstop" @property def type(self) -> TypeOption: """Type "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ - val = self._get_property('Type') + " """ + val = self._get_property("Type") val = self.TypeOption[val] return val @@ -55,7 +80,7 @@ def insertion_loss(self) -> float: "Filter pass band loss." "Value should be between 0 and 100." """ - val = self._get_property('Insertion Loss') + val = self._get_property("Insertion Loss") return val @property @@ -64,7 +89,7 @@ def stop_band_attenuation(self) -> float: "Filter stop band loss (attenuation)." "Value should be less than 200." """ - val = self._get_property('Stop band Attenuation') + val = self._get_property("Stop band Attenuation") return val @property @@ -73,8 +98,8 @@ def max_pass_band(self) -> float: "Maximum pass band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Max Pass Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Max Pass Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -83,8 +108,8 @@ def min_stop_band(self) -> float: "Minimum stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Min Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Min Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -93,8 +118,8 @@ def max_stop_band(self) -> float: "Maximum stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Max Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Max Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -103,8 +128,8 @@ def min_pass_band(self) -> float: "Minimum pass band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Min Pass Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Min Pass Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -113,8 +138,8 @@ def lower_stop_band(self) -> float: "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -123,8 +148,8 @@ def lower_cutoff(self) -> float: "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -133,8 +158,8 @@ def higher_cutoff(self) -> float: "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -143,68 +168,68 @@ def higher_stop_band(self) -> float: "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Cutoff ') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Cutoff ") + val = self._convert_from_internal_units(float(val), "Freq") return val @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Stop Band ') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Stop Band ") + val = self._convert_from_internal_units(float(val), "Freq") return val @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Stop Band ') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Stop Band ") + val = self._convert_from_internal_units(float(val), "Freq") return val @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Cutoff ') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Cutoff ") + val = self._convert_from_internal_units(float(val), "Freq") return val @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency "Lowest tuned frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lowest Tuned Frequency ') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lowest Tuned Frequency ") + val = self._convert_from_internal_units(float(val), "Freq") return val @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency "Highest tuned frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Highest Tuned Frequency ') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Highest Tuned Frequency ") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -213,7 +238,7 @@ def percent_bandwidth(self) -> float: "Tunable filter 3-dB bandwidth." "Value should be between 0.001 and 100." """ - val = self._get_property('Percent Bandwidth') + val = self._get_property("Percent Bandwidth") return val @property @@ -222,14 +247,13 @@ def shape_factor(self) -> float: "Ratio defining the filter rolloff." "Value should be between 1 and 100." """ - val = self._get_property('Shape Factor') + val = self._get_property("Shape Factor") return val @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ - val = self._get_property('Warnings') + " """ + val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py index 0fb3c75fd00..77ce1d55491 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -16,23 +41,23 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Base Antenna') + " """ + val = self._get_property("Base Antenna") return val @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Mobile Antenna') + " """ + val = self._get_property("Mobile Antenna") return val @property @@ -41,7 +66,7 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Refinement') + val = self._get_property("Enable Refinement") return val @property @@ -50,28 +75,28 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - val = self._get_property('Adaptive Sampling') + val = self._get_property("Adaptive Sampling") return val @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ - val = self._get_property('Refinement Domain') + " """ + val = self._get_property("Refinement Domain") return val class EnvironmentOption(Enum): - URBANMICROCELL = "Urban Microcell" - URBANMACROCELL = "Urban Macrocell" - RURALMACROCELL = "Rural Macrocell" + URBANMICROCELL = "Urban Microcell" + URBANMACROCELL = "Urban Macrocell" + RURALMACROCELL = "Rural Macrocell" @property def environment(self) -> EnvironmentOption: """Environment "Specify the environment for the 5G channel model." - " """ - val = self._get_property('Environment') + " """ + val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -81,7 +106,7 @@ def los(self) -> bool: "True if the operating environment is line-of-sight." "Value should be 'true' or 'false'." """ - val = self._get_property('LOS') + val = self._get_property("LOS") return val @property @@ -90,19 +115,19 @@ def include_bpl(self) -> bool: "Includes building penetration loss if true." "Value should be 'true' or 'false'." """ - val = self._get_property('Include BPL') + val = self._get_property("Include BPL") return val class NYUBPLModelOption(Enum): - LOWLOSSMODEL = "Low-loss model" - HIGHLOSSMODEL = "High-loss model" + LOWLOSSMODEL = "Low-loss model" + HIGHLOSSMODEL = "High-loss model" @property def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model "Specify the NYU Building Penetration Loss model." - " """ - val = self._get_property('NYU BPL Model') + " """ + val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] return val @@ -112,7 +137,7 @@ def custom_fading_margin(self) -> float: "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Custom Fading Margin') + val = self._get_property("Custom Fading Margin") return val @property @@ -121,7 +146,7 @@ def polarization_mismatch(self) -> float: "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Polarization Mismatch') + val = self._get_property("Polarization Mismatch") return val @property @@ -130,21 +155,21 @@ def pointing_error_loss(self) -> float: "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Pointing Error Loss') + val = self._get_property("Pointing Error Loss") return val class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ - val = self._get_property('Fading Type') + " """ + val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -154,7 +179,7 @@ def fading_availability(self) -> float: "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - val = self._get_property('Fading Availability') + val = self._get_property("Fading Availability") return val @property @@ -163,7 +188,7 @@ def std_deviation(self) -> float: "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - val = self._get_property('Std Deviation') + val = self._get_property("Std Deviation") return val @property @@ -172,7 +197,7 @@ def include_rain_attenuation(self) -> bool: "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Rain Attenuation') + val = self._get_property("Include Rain Attenuation") return val @property @@ -181,7 +206,7 @@ def rain_availability(self) -> float: "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - val = self._get_property('Rain Availability') + val = self._get_property("Rain Availability") return val @property @@ -190,7 +215,7 @@ def rain_rate(self) -> float: "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - val = self._get_property('Rain Rate') + val = self._get_property("Rain Rate") return val @property @@ -199,7 +224,7 @@ def polarization_tilt_angle(self) -> float: "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - val = self._get_property('Polarization Tilt Angle') + val = self._get_property("Polarization Tilt Angle") return val @property @@ -208,7 +233,7 @@ def include_atmospheric_absorption(self) -> bool: "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Atmospheric Absorption') + val = self._get_property("Include Atmospheric Absorption") return val @property @@ -217,7 +242,7 @@ def temperature(self) -> float: "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - val = self._get_property('Temperature') + val = self._get_property("Temperature") return val @property @@ -226,7 +251,7 @@ def total_air_pressure(self) -> float: "Total air pressure." "Value should be between 0 and 2000." """ - val = self._get_property('Total Air Pressure') + val = self._get_property("Total Air Pressure") return val @property @@ -235,6 +260,5 @@ def water_vapor_concentration(self) -> float: "Water vapor concentration." "Value should be between 0 and 2000." """ - val = self._get_property('Water Vapor Concentration') + val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py index 2571ebd3309..4458ec69c69 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -16,23 +41,23 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Base Antenna') + " """ + val = self._get_property("Base Antenna") return val @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Mobile Antenna') + " """ + val = self._get_property("Mobile Antenna") return val @property @@ -41,7 +66,7 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Refinement') + val = self._get_property("Enable Refinement") return val @property @@ -50,29 +75,29 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - val = self._get_property('Adaptive Sampling') + val = self._get_property("Adaptive Sampling") return val @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ - val = self._get_property('Refinement Domain') + " """ + val = self._get_property("Refinement Domain") return val class EnvironmentOption(Enum): - LARGECITY = "Large City" - SMALLMEDCITY = "Small/Medium City" - SUBURBAN = "Suburban" - RURAL = "Rural" + LARGECITY = "Large City" + SMALLMEDCITY = "Small/Medium City" + SUBURBAN = "Suburban" + RURAL = "Rural" @property def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Hata model." - " """ - val = self._get_property('Environment') + " """ + val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -82,7 +107,7 @@ def custom_fading_margin(self) -> float: "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Custom Fading Margin') + val = self._get_property("Custom Fading Margin") return val @property @@ -91,7 +116,7 @@ def polarization_mismatch(self) -> float: "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Polarization Mismatch') + val = self._get_property("Polarization Mismatch") return val @property @@ -100,21 +125,21 @@ def pointing_error_loss(self) -> float: "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Pointing Error Loss') + val = self._get_property("Pointing Error Loss") return val class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ - val = self._get_property('Fading Type') + " """ + val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -124,7 +149,7 @@ def fading_availability(self) -> float: "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - val = self._get_property('Fading Availability') + val = self._get_property("Fading Availability") return val @property @@ -133,7 +158,7 @@ def std_deviation(self) -> float: "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - val = self._get_property('Std Deviation') + val = self._get_property("Std Deviation") return val @property @@ -142,7 +167,7 @@ def include_rain_attenuation(self) -> bool: "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Rain Attenuation') + val = self._get_property("Include Rain Attenuation") return val @property @@ -151,7 +176,7 @@ def rain_availability(self) -> float: "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - val = self._get_property('Rain Availability') + val = self._get_property("Rain Availability") return val @property @@ -160,7 +185,7 @@ def rain_rate(self) -> float: "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - val = self._get_property('Rain Rate') + val = self._get_property("Rain Rate") return val @property @@ -169,7 +194,7 @@ def polarization_tilt_angle(self) -> float: "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - val = self._get_property('Polarization Tilt Angle') + val = self._get_property("Polarization Tilt Angle") return val @property @@ -178,7 +203,7 @@ def include_atmospheric_absorption(self) -> bool: "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Atmospheric Absorption') + val = self._get_property("Include Atmospheric Absorption") return val @property @@ -187,7 +212,7 @@ def temperature(self) -> float: "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - val = self._get_property('Temperature') + val = self._get_property("Temperature") return val @property @@ -196,7 +221,7 @@ def total_air_pressure(self) -> float: "Total air pressure." "Value should be between 0 and 2000." """ - val = self._get_property('Total Air Pressure') + val = self._get_property("Total Air Pressure") return val @property @@ -205,6 +230,5 @@ def water_vapor_concentration(self) -> float: "Water vapor concentration." "Value should be between 0 and 2000." """ - val = self._get_property('Water Vapor Concentration') + val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py index bbbf3d6e408..d8d95a58aa1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,13 +37,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Power Loss Coefficient: + "Power Loss Coefficient: " Value should be between 0 and 100." - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): " Value should be between 0 and 1000." """ return self._get_table_data() @@ -29,23 +54,23 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Antenna A') + " """ + val = self._get_property("Antenna A") return val @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Antenna B') + " """ + val = self._get_property("Antenna B") return val @property @@ -54,7 +79,7 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Refinement') + val = self._get_property("Enable Refinement") return val @property @@ -63,30 +88,30 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - val = self._get_property('Adaptive Sampling') + val = self._get_property("Adaptive Sampling") return val @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ - val = self._get_property('Refinement Domain') + " """ + val = self._get_property("Refinement Domain") return val class BuildingTypeOption(Enum): - RESIDENTIALAPARTMENT = "Residential Apartment" - RESIDENTIALHOUSE = "Residential House" - OFFICEBUILDING = "Office Building" - COMMERCIALBUILDING = "Commercial Building" - CUSTOMBUILDING = "Custom Building" + RESIDENTIALAPARTMENT = "Residential Apartment" + RESIDENTIALHOUSE = "Residential House" + OFFICEBUILDING = "Office Building" + COMMERCIALBUILDING = "Commercial Building" + CUSTOMBUILDING = "Custom Building" @property def building_type(self) -> BuildingTypeOption: """Building Type "Specify the building type for the Indoor Propagation model." - " """ - val = self._get_property('Building Type') + " """ + val = self._get_property("Building Type") val = self.BuildingTypeOption[val] return val @@ -96,7 +121,7 @@ def number_of_floors(self) -> int: "The number of floors separating the antennas.." "Value should be between 1 and 3." """ - val = self._get_property('Number of Floors') + val = self._get_property("Number of Floors") return val @property @@ -105,7 +130,7 @@ def custom_fading_margin(self) -> float: "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Custom Fading Margin') + val = self._get_property("Custom Fading Margin") return val @property @@ -114,7 +139,7 @@ def polarization_mismatch(self) -> float: "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Polarization Mismatch') + val = self._get_property("Polarization Mismatch") return val @property @@ -123,21 +148,21 @@ def pointing_error_loss(self) -> float: "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Pointing Error Loss') + val = self._get_property("Pointing Error Loss") return val class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ - val = self._get_property('Fading Type') + " """ + val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -147,7 +172,7 @@ def fading_availability(self) -> float: "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - val = self._get_property('Fading Availability') + val = self._get_property("Fading Availability") return val @property @@ -156,7 +181,7 @@ def std_deviation(self) -> float: "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - val = self._get_property('Std Deviation') + val = self._get_property("Std Deviation") return val @property @@ -165,7 +190,7 @@ def include_rain_attenuation(self) -> bool: "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Rain Attenuation') + val = self._get_property("Include Rain Attenuation") return val @property @@ -174,7 +199,7 @@ def rain_availability(self) -> float: "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - val = self._get_property('Rain Availability') + val = self._get_property("Rain Availability") return val @property @@ -183,7 +208,7 @@ def rain_rate(self) -> float: "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - val = self._get_property('Rain Rate') + val = self._get_property("Rain Rate") return val @property @@ -192,7 +217,7 @@ def polarization_tilt_angle(self) -> float: "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - val = self._get_property('Polarization Tilt Angle') + val = self._get_property("Polarization Tilt Angle") return val @property @@ -201,7 +226,7 @@ def include_atmospheric_absorption(self) -> bool: "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Atmospheric Absorption') + val = self._get_property("Include Atmospheric Absorption") return val @property @@ -210,7 +235,7 @@ def temperature(self) -> float: "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - val = self._get_property('Temperature') + val = self._get_property("Temperature") return val @property @@ -219,7 +244,7 @@ def total_air_pressure(self) -> float: "Total air pressure." "Value should be between 0 and 2000." """ - val = self._get_property('Total Air Pressure') + val = self._get_property("Total Air Pressure") return val @property @@ -228,6 +253,5 @@ def water_vapor_concentration(self) -> float: "Water vapor concentration." "Value should be between 0 and 2000." """ - val = self._get_property('Water Vapor Concentration') + val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py index 87d6ce817f5..9a05f57e1a8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyIsolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -11,7 +36,7 @@ def filename(self) -> str: "Name of file defining the outboard component." "Value should be a full file path." """ - val = self._get_property('Filename') + val = self._get_property("Filename") return val @property @@ -20,40 +45,40 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - val = self._get_property('Noise Temperature') + val = self._get_property("Noise Temperature") return val @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val class TypeOption(Enum): - BYFILE = "By File" - PARAMETRIC = "Parametric" + BYFILE = "By File" + PARAMETRIC = "Parametric" @property def type(self) -> TypeOption: """Type "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." - " """ - val = self._get_property('Type') + " """ + val = self._get_property("Type") val = self.TypeOption[val] return val class Port1LocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the isolator.." - " """ - val = self._get_property('Port 1 Location') + " """ + val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @@ -63,7 +88,7 @@ def insertion_loss(self) -> float: "Isolator in-band loss in forward direction.." "Value should be between 0 and 100." """ - val = self._get_property('Insertion Loss') + val = self._get_property("Insertion Loss") return val @property @@ -72,7 +97,7 @@ def finite_reverse_isolation(self) -> bool: "Use a finite reverse isolation. If disabled, the isolator model is ideal (infinite reverse isolation).." "Value should be 'true' or 'false'." """ - val = self._get_property('Finite Reverse Isolation') + val = self._get_property("Finite Reverse Isolation") return val @property @@ -81,7 +106,7 @@ def reverse_isolation(self) -> float: "Isolator reverse isolation (i.e., loss in the reverse direction).." "Value should be between 0 and 100." """ - val = self._get_property('Reverse Isolation') + val = self._get_property("Reverse Isolation") return val @property @@ -90,7 +115,7 @@ def finite_bandwidth(self) -> bool: "Use a finite bandwidth. If disabled, the isolator model is ideal (infinite bandwidth).." "Value should be 'true' or 'false'." """ - val = self._get_property('Finite Bandwidth') + val = self._get_property("Finite Bandwidth") return val @property @@ -99,7 +124,7 @@ def out_of_band_attenuation(self) -> float: "Out-of-band loss (attenuation)." "Value should be between 0 and 200." """ - val = self._get_property('Out-of-band Attenuation') + val = self._get_property("Out-of-band Attenuation") return val @property @@ -108,8 +133,8 @@ def lower_stop_band(self) -> float: "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -118,8 +143,8 @@ def lower_cutoff(self) -> float: "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -128,8 +153,8 @@ def higher_cutoff(self) -> float: "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -138,15 +163,14 @@ def higher_stop_band(self) -> float: "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ - val = self._get_property('Warnings') + " """ + val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py index f76c859133d..a9f75a26670 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -16,23 +41,23 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Antenna A') + " """ + val = self._get_property("Antenna A") return val @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Antenna B') + " """ + val = self._get_property("Antenna B") return val @property @@ -41,7 +66,7 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Refinement') + val = self._get_property("Enable Refinement") return val @property @@ -50,32 +75,32 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - val = self._get_property('Adaptive Sampling') + val = self._get_property("Adaptive Sampling") return val @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ - val = self._get_property('Refinement Domain') + " """ + val = self._get_property("Refinement Domain") return val class EnvironmentOption(Enum): - FREESPACE = "Free Space" - URBAN = "Urban" - SHADOWEDURBAN = "Shadowed Urban" - BUILDINGLINEOFSIGHT = "Building - Line of Sight" - BUILDINGOBSTRUCTED = "Building - Obstructed" - FACTORYOBSTRUCTED = "Factory - Obstructed" - CUSTOMEXPONENT = "Custom" + FREESPACE = "Free Space" + URBAN = "Urban" + SHADOWEDURBAN = "Shadowed Urban" + BUILDINGLINEOFSIGHT = "Building - Line of Sight" + BUILDINGOBSTRUCTED = "Building - Obstructed" + FACTORYOBSTRUCTED = "Factory - Obstructed" + CUSTOMEXPONENT = "Custom" @property def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Log Distance model." - " """ - val = self._get_property('Environment') + " """ + val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -85,7 +110,7 @@ def path_loss_exponent(self) -> float: "Path Loss Exponent." "Value should be between 0 and 100." """ - val = self._get_property('Path Loss Exponent') + val = self._get_property("Path Loss Exponent") return val @property @@ -94,7 +119,7 @@ def custom_fading_margin(self) -> float: "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Custom Fading Margin') + val = self._get_property("Custom Fading Margin") return val @property @@ -103,7 +128,7 @@ def polarization_mismatch(self) -> float: "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Polarization Mismatch') + val = self._get_property("Polarization Mismatch") return val @property @@ -112,21 +137,21 @@ def pointing_error_loss(self) -> float: "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Pointing Error Loss') + val = self._get_property("Pointing Error Loss") return val class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ - val = self._get_property('Fading Type') + " """ + val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -136,7 +161,7 @@ def fading_availability(self) -> float: "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - val = self._get_property('Fading Availability') + val = self._get_property("Fading Availability") return val @property @@ -145,7 +170,7 @@ def std_deviation(self) -> float: "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - val = self._get_property('Std Deviation') + val = self._get_property("Std Deviation") return val @property @@ -154,7 +179,7 @@ def include_rain_attenuation(self) -> bool: "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Rain Attenuation') + val = self._get_property("Include Rain Attenuation") return val @property @@ -163,7 +188,7 @@ def rain_availability(self) -> float: "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - val = self._get_property('Rain Availability') + val = self._get_property("Rain Availability") return val @property @@ -172,7 +197,7 @@ def rain_rate(self) -> float: "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - val = self._get_property('Rain Rate') + val = self._get_property("Rain Rate") return val @property @@ -181,7 +206,7 @@ def polarization_tilt_angle(self) -> float: "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - val = self._get_property('Polarization Tilt Angle') + val = self._get_property("Polarization Tilt Angle") return val @property @@ -190,7 +215,7 @@ def include_atmospheric_absorption(self) -> bool: "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Atmospheric Absorption') + val = self._get_property("Include Atmospheric Absorption") return val @property @@ -199,7 +224,7 @@ def temperature(self) -> float: "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - val = self._get_property('Temperature') + val = self._get_property("Temperature") return val @property @@ -208,7 +233,7 @@ def total_air_pressure(self) -> float: "Total air pressure." "Value should be between 0 and 2000." """ - val = self._get_property('Total Air Pressure') + val = self._get_property("Total Air Pressure") return val @property @@ -217,6 +242,5 @@ def water_vapor_concentration(self) -> float: "Water vapor concentration." "Value should be between 0 and 2000." """ - val = self._get_property('Water Vapor Concentration') + val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py index 9c39552cab1..4bfcc7e19ce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyMultiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -11,7 +36,7 @@ def filename(self) -> str: "Name of file defining the multiplexer." "Value should be a full file path." """ - val = self._get_property('Filename') + val = self._get_property("Filename") return val @property @@ -20,40 +45,40 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - val = self._get_property('Noise Temperature') + val = self._get_property("Noise Temperature") return val @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val class TypeOption(Enum): - PARAMETRIC = "By Pass Band" - BYFILE = "By File" + PARAMETRIC = "By Pass Band" + BYFILE = "By File" @property def type(self) -> TypeOption: """Type "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." - " """ - val = self._get_property('Type') + " """ + val = self._get_property("Type") val = self.TypeOption[val] return val class Port1LocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the multiplexer.." - " """ - val = self._get_property('Port 1 Location') + " """ + val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @@ -63,7 +88,7 @@ def flip_ports_vertically(self) -> bool: "Reverses the port order on the multi-port side of the multiplexer.." "Value should be 'true' or 'false'." """ - val = self._get_property('Flip Ports Vertically') + val = self._get_property("Flip Ports Vertically") return val @property @@ -71,15 +96,14 @@ def ports(self): """Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ - val = self._get_property('Ports') + " """ + val = self._get_property("Ports") return val @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ - val = self._get_property('Warnings') + " """ + val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py index 46a188704df..0760e578556 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -11,17 +36,17 @@ def parent(self): return self._parent class TypeOption(Enum): - BYFILE = "By File" - LOWPASS = "Low Pass" - HIGHPASS = "High Pass" - BANDPASS = "Band Pass" + BYFILE = "By File" + LOWPASS = "Low Pass" + HIGHPASS = "High Pass" + BANDPASS = "Band Pass" @property def type(self) -> TypeOption: """Type "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ - val = self._get_property('Type') + " """ + val = self._get_property("Type") val = self.TypeOption[val] return val @@ -31,7 +56,7 @@ def filename(self) -> str: "Name of file defining the multiplexer band." "Value should be a full file path." """ - val = self._get_property('Filename') + val = self._get_property("Filename") return val @property @@ -40,7 +65,7 @@ def insertion_loss(self) -> float: "Multiplexer pass band insertion loss." "Value should be between 0 and 100." """ - val = self._get_property('Insertion Loss') + val = self._get_property("Insertion Loss") return val @property @@ -49,7 +74,7 @@ def stop_band_attenuation(self) -> float: "Stop-band loss (attenuation)." "Value should be between 0 and 200." """ - val = self._get_property('Stop band Attenuation') + val = self._get_property("Stop band Attenuation") return val @property @@ -58,8 +83,8 @@ def max_pass_band(self) -> float: "Maximum pass band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Max Pass Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Max Pass Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -68,8 +93,8 @@ def min_stop_band(self) -> float: "Minimum stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Min Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Min Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -78,8 +103,8 @@ def max_stop_band(self) -> float: "Maximum stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Max Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Max Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -88,8 +113,8 @@ def min_pass_band(self) -> float: "Minimum pass band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Min Pass Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Min Pass Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -98,8 +123,8 @@ def lower_stop_band(self) -> float: "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -108,8 +133,8 @@ def lower_cutoff(self) -> float: "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -118,8 +143,8 @@ def higher_cutoff(self) -> float: "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -128,15 +153,14 @@ def higher_stop_band(self) -> float: "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ - val = self._get_property('Warnings') + " """ + val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py index 3bd29ba0150..1faf125d797 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyPowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -11,7 +36,7 @@ def filename(self) -> str: "Name of file defining the Power Divider." "Value should be a full file path." """ - val = self._get_property('Filename') + val = self._get_property("Filename") return val @property @@ -20,41 +45,41 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - val = self._get_property('Noise Temperature') + val = self._get_property("Noise Temperature") return val @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val class TypeOption(Enum): - BYFILE = "By File" - _3DB = "3 dB" - RESISTIVE = "Resistive" + BYFILE = "By File" + _3DB = "3 dB" + RESISTIVE = "Resistive" @property def type(self) -> TypeOption: """Type "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." - " """ - val = self._get_property('Type') + " """ + val = self._get_property("Type") val = self.TypeOption[val] return val class OrientationOption(Enum): - RADIOSIDE = "Divider" - ANTENNASIDE = "Combiner" + RADIOSIDE = "Divider" + ANTENNASIDE = "Combiner" @property def orientation(self) -> OrientationOption: """Orientation "Defines the orientation of the Power Divider.." - " """ - val = self._get_property('Orientation') + " """ + val = self._get_property("Orientation") val = self.OrientationOption[val] return val @@ -64,7 +89,7 @@ def insertion_loss_above_ideal(self) -> float: "Additional loss beyond the ideal insertion loss. The ideal insertion loss is 3 dB for the 3 dB Divider and 6 dB for the Resistive Divider.." "Value should be between 0 and 100." """ - val = self._get_property('Insertion Loss Above Ideal') + val = self._get_property("Insertion Loss Above Ideal") return val @property @@ -73,7 +98,7 @@ def finite_isolation(self) -> bool: "Use a finite isolation between output ports. If disabled, the Power Divider isolation is ideal (infinite isolation between output ports).." "Value should be 'true' or 'false'." """ - val = self._get_property('Finite Isolation') + val = self._get_property("Finite Isolation") return val @property @@ -82,7 +107,7 @@ def isolation(self) -> float: "Power Divider isolation between output ports.." "Value should be between 0 and 100." """ - val = self._get_property('Isolation') + val = self._get_property("Isolation") return val @property @@ -91,7 +116,7 @@ def finite_bandwidth(self) -> bool: "Use a finite bandwidth. If disabled, the Power Divider model is ideal (infinite bandwidth).." "Value should be 'true' or 'false'." """ - val = self._get_property('Finite Bandwidth') + val = self._get_property("Finite Bandwidth") return val @property @@ -100,7 +125,7 @@ def out_of_band_attenuation(self) -> float: "Out-of-band loss (attenuation)." "Value should be between 0 and 200." """ - val = self._get_property('Out-of-band Attenuation') + val = self._get_property("Out-of-band Attenuation") return val @property @@ -109,8 +134,8 @@ def lower_stop_band(self) -> float: "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -119,8 +144,8 @@ def lower_cutoff(self) -> float: "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -129,8 +154,8 @@ def higher_cutoff(self) -> float: "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -139,15 +164,14 @@ def higher_stop_band(self) -> float: "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ - val = self._get_property('Warnings') + " """ + val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py index 77d24205dbc..d8001cf9ffe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -16,23 +41,23 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Antenna A') + " """ + val = self._get_property("Antenna A") return val @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Antenna B') + " """ + val = self._get_property("Antenna B") return val @property @@ -41,7 +66,7 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Refinement') + val = self._get_property("Enable Refinement") return val @property @@ -50,15 +75,15 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - val = self._get_property('Adaptive Sampling') + val = self._get_property("Adaptive Sampling") return val @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ - val = self._get_property('Refinement Domain') + " """ + val = self._get_property("Refinement Domain") return val @property @@ -67,7 +92,7 @@ def custom_fading_margin(self) -> float: "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Custom Fading Margin') + val = self._get_property("Custom Fading Margin") return val @property @@ -76,7 +101,7 @@ def polarization_mismatch(self) -> float: "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Polarization Mismatch') + val = self._get_property("Polarization Mismatch") return val @property @@ -85,21 +110,21 @@ def pointing_error_loss(self) -> float: "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Pointing Error Loss') + val = self._get_property("Pointing Error Loss") return val class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ - val = self._get_property('Fading Type') + " """ + val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -109,7 +134,7 @@ def fading_availability(self) -> float: "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - val = self._get_property('Fading Availability') + val = self._get_property("Fading Availability") return val @property @@ -118,7 +143,7 @@ def std_deviation(self) -> float: "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - val = self._get_property('Std Deviation') + val = self._get_property("Std Deviation") return val @property @@ -127,7 +152,7 @@ def include_rain_attenuation(self) -> bool: "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Rain Attenuation') + val = self._get_property("Include Rain Attenuation") return val @property @@ -136,7 +161,7 @@ def rain_availability(self) -> float: "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - val = self._get_property('Rain Availability') + val = self._get_property("Rain Availability") return val @property @@ -145,7 +170,7 @@ def rain_rate(self) -> float: "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - val = self._get_property('Rain Rate') + val = self._get_property("Rain Rate") return val @property @@ -154,7 +179,7 @@ def polarization_tilt_angle(self) -> float: "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - val = self._get_property('Polarization Tilt Angle') + val = self._get_property("Polarization Tilt Angle") return val @property @@ -163,7 +188,7 @@ def include_atmospheric_absorption(self) -> bool: "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Atmospheric Absorption') + val = self._get_property("Include Atmospheric Absorption") return val @property @@ -172,7 +197,7 @@ def temperature(self) -> float: "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - val = self._get_property('Temperature') + val = self._get_property("Temperature") return val @property @@ -181,7 +206,7 @@ def total_air_pressure(self) -> float: "Total air pressure." "Value should be between 0 and 2000." """ - val = self._get_property('Total Air Pressure') + val = self._get_property("Total Air Pressure") return val @property @@ -190,6 +215,5 @@ def water_vapor_concentration(self) -> float: "Water vapor concentration." "Value should be between 0 and 2000." """ - val = self._get_property('Water Vapor Concentration') + val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py index a136dbc8297..84e6f0fa1a5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyRadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,18 +37,17 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Name: - " "Type: - " """ + "Name: + " "Type: + " """ return self._get_table_data() @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py index ab08b5fc6bb..49ab661f127 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyRfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -16,7 +41,7 @@ def enable_passive_noise(self) -> bool: "If true, the noise contributions of antennas and passive components are included in cosite simulation. Note: Antenna and passive component noise is always included in link analysis simulation.." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Passive Noise') + val = self._get_property("Enable Passive Noise") return val @property @@ -25,6 +50,5 @@ def enforce_thermal_noise_floor(self) -> bool: "If true, all broadband noise is limited by the thermal noise floor (-174 dBm/Hz)." "Value should be 'true' or 'false'." """ - val = self._get_property('Enforce Thermal Noise Floor') + val = self._get_property("Enforce Thermal Noise Floor") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py index 437c0bb5157..93c85821e11 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyRxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -16,7 +41,7 @@ def file(self) -> str: "Name of the measurement source." "Value should be a full file path." """ - val = self._get_property('File') + val = self._get_property("File") return val @property @@ -25,29 +50,29 @@ def source_file(self) -> str: "Name of the measurement source." "Value should be a full file path." """ - val = self._get_property('Source File') + val = self._get_property("Source File") return val @property def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." - " """ - val = self._get_property('Receive Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + " """ + val = self._get_property("Receive Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val class MeasurementModeOption(Enum): - AUDIO_SINAD = "Audio SINAD" - DIGITAL_BER = "Digital BER" - GPS_CNR = "GPS CNR" + AUDIO_SINAD = "Audio SINAD" + DIGITAL_BER = "Digital BER" + GPS_CNR = "GPS CNR" @property def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode "Defines the mode for the receiver measurement." - " """ - val = self._get_property('Measurement Mode') + " """ + val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] return val @@ -57,7 +82,7 @@ def sinad_threshold(self) -> float: "SINAD Threshold used for the receiver measurements." "Value should be between 5 and 20." """ - val = self._get_property('SINAD Threshold') + val = self._get_property("SINAD Threshold") return val @property @@ -66,7 +91,7 @@ def gps_cnr_threshold(self) -> float: "GPS CNR Threshold used for the receiver measurements." "Value should be between 15 and 30." """ - val = self._get_property('GPS CNR Threshold') + val = self._get_property("GPS CNR Threshold") return val @property @@ -75,7 +100,7 @@ def ber_threshold(self) -> float: "BER Threshold used for the receiver measurements." "Value should be between -12 and -1." """ - val = self._get_property('BER Threshold') + val = self._get_property("BER Threshold") return val @property @@ -84,7 +109,7 @@ def default_intended_power(self) -> bool: "Specify the intended signal." "Value should be 'true' or 'false'." """ - val = self._get_property('Default Intended Power') + val = self._get_property("Default Intended Power") return val @property @@ -93,7 +118,7 @@ def intended_signal_power(self) -> float: "Specify the power level of the intended signal." "Value should be between -140 and -50." """ - val = self._get_property('Intended Signal Power') + val = self._get_property("Intended Signal Power") return val @property @@ -102,8 +127,8 @@ def freq_deviation(self) -> float: "Specify the frequency deviation of the intended signal." "Value should be between 1000 and 200000." """ - val = self._get_property('Freq. Deviation') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Freq. Deviation") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -112,7 +137,7 @@ def modulation_depth(self) -> float: "Specify the modulation depth of the intended signal." "Value should be between 10 and 100." """ - val = self._get_property('Modulation Depth') + val = self._get_property("Modulation Depth") return val @property @@ -121,7 +146,7 @@ def measure_selectivity(self) -> bool: "Enable/disable the measurement of the receiver's selectivity." "Value should be 'true' or 'false'." """ - val = self._get_property('Measure Selectivity') + val = self._get_property("Measure Selectivity") return val @property @@ -130,7 +155,7 @@ def measure_mixer_products(self) -> bool: "Enable/disable the measurement of the receiver's mixer products." "Value should be 'true' or 'false'." """ - val = self._get_property('Measure Mixer Products') + val = self._get_property("Measure Mixer Products") return val @property @@ -139,7 +164,7 @@ def max_rf_order(self) -> int: "Max RF Order of the mixer products to measure." "Value should be greater than 1." """ - val = self._get_property('Max RF Order') + val = self._get_property("Max RF Order") return val @property @@ -148,7 +173,7 @@ def max_lo_order(self) -> int: "Max LO Order of the mixer products to measure." "Value should be greater than 1." """ - val = self._get_property('Max LO Order') + val = self._get_property("Max LO Order") return val @property @@ -157,7 +182,7 @@ def include_if(self) -> bool: "Enable/disable the measurement of the IF channel." "Value should be 'true' or 'false'." """ - val = self._get_property('Include IF') + val = self._get_property("Include IF") return val @property @@ -166,7 +191,7 @@ def measure_saturation(self) -> bool: "Enable/disable measurement of the receiver's saturation level." "Value should be 'true' or 'false'." """ - val = self._get_property('Measure Saturation') + val = self._get_property("Measure Saturation") return val @property @@ -175,7 +200,7 @@ def use_ams_limits(self) -> bool: "Allow AMS to determine the limits for measuring saturation." "Value should be 'true' or 'false'." """ - val = self._get_property('Use AMS Limits') + val = self._get_property("Use AMS Limits") return val @property @@ -184,8 +209,8 @@ def start_frequency(self) -> float: "Starting frequency for the measurement sweep." "Value should be greater than 1e+06." """ - val = self._get_property('Start Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Start Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -194,8 +219,8 @@ def stop_frequency(self) -> float: "Stopping frequency for the measurement sweep." "Value should be less than 6e+09." """ - val = self._get_property('Stop Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Stop Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -204,7 +229,7 @@ def samples(self) -> int: "Number of measurement samples for each frequency." "Value should be between 2 and 100." """ - val = self._get_property('Samples') + val = self._get_property("Samples") return val @property @@ -213,6 +238,5 @@ def exclude_mixer_products_below_noise(self) -> bool: "Include/Exclude Mixer Products below the noise." "Value should be 'true' or 'false'." """ - val = self._get_property('Exclude Mixer Products Below Noise') + val = self._get_property("Exclude Mixer Products Below Noise") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py index caff9ad4fcb..086092c0268 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -11,16 +36,16 @@ def parent(self): return self._parent class MixerProductTaperOption(Enum): - CONSTANT = "Constant" - MIL_STD_461G = "MIL-STD-461G" - DUFF_MODEL = "Duff Model" + CONSTANT = "Constant" + MIL_STD_461G = "MIL-STD-461G" + DUFF_MODEL = "Duff Model" @property def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper "Taper for setting amplitude of mixer products." - " """ - val = self._get_property('Mixer Product Taper') + " """ + val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] return val @@ -30,7 +55,7 @@ def mixer_product_susceptibility(self) -> float: "Mixer product amplitudes (relative to the in-band susceptibility)." "Value should be between -200 and 200." """ - val = self._get_property('Mixer Product Susceptibility') + val = self._get_property("Mixer Product Susceptibility") return val @property @@ -39,7 +64,7 @@ def spurious_rejection(self) -> float: "Mixer product amplitudes (relative to the in-band susceptibility)." "Value should be between -200 and 200." """ - val = self._get_property('Spurious Rejection') + val = self._get_property("Spurious Rejection") return val @property @@ -48,8 +73,8 @@ def minimum_tuning_frequency(self) -> float: "Minimum tuning frequency of Rx's local oscillator." "Value should be between 1 and 1e+11." """ - val = self._get_property('Minimum Tuning Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Minimum Tuning Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -58,8 +83,8 @@ def maximum_tuning_frequency(self) -> float: "Maximum tuning frequency of Rx's local oscillator." "Value should be between 1 and 1e+11." """ - val = self._get_property('Maximum Tuning Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Maximum Tuning Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -68,7 +93,7 @@ def mixer_product_slope(self) -> float: "Rate of decrease for amplitude of Rx's local oscillator harmonics (dB/decade)." "Value should be between 0 and 100." """ - val = self._get_property('Mixer Product Slope') + val = self._get_property("Mixer Product Slope") return val @property @@ -77,7 +102,7 @@ def mixer_product_intercept(self) -> float: "Mixer product intercept (dBc)." "Value should be between 0 and 100." """ - val = self._get_property('Mixer Product Intercept') + val = self._get_property("Mixer Product Intercept") return val @property @@ -86,8 +111,8 @@ def _80_db_bandwidth(self) -> float: "Bandwidth where Rx's susceptibility envelope is 80 dB above in-band susceptibility level." "Value should be greater than 1." """ - val = self._get_property('80 dB Bandwidth') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("80 dB Bandwidth") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -96,7 +121,7 @@ def image_rejection(self) -> float: "Image frequency amplitude (relative to the in-band susceptibility)." "Value should be between -200 and 200." """ - val = self._get_property('Image Rejection') + val = self._get_property("Image Rejection") return val @property @@ -105,7 +130,7 @@ def maximum_rf_harmonic_order(self) -> int: "Maximum order of RF frequency." "Value should be between 1 and 100." """ - val = self._get_property('Maximum RF Harmonic Order') + val = self._get_property("Maximum RF Harmonic Order") return val @property @@ -114,20 +139,20 @@ def maximum_lo_harmonic_order(self) -> int: "Maximum order of the LO frequency." "Value should be between 1 and 100." """ - val = self._get_property('Maximum LO Harmonic Order') + val = self._get_property("Maximum LO Harmonic Order") return val class MixingModeOption(Enum): - ABOVETUNEDFREQUENCY = "LO Above Tuned (RF) Frequency" - BELOWTUNEDFREQUENCY = "LO Below Tuned (RF) Frequency" - BOTHTUNEDFREQUENCIES = "LO Above/Below Tuned (RF) Frequency" + ABOVETUNEDFREQUENCY = "LO Above Tuned (RF) Frequency" + BELOWTUNEDFREQUENCY = "LO Below Tuned (RF) Frequency" + BOTHTUNEDFREQUENCIES = "LO Above/Below Tuned (RF) Frequency" @property def mixing_mode(self) -> MixingModeOption: """Mixing Mode "Specifies whether the IF frequency is > or < RF channel frequency." - " """ - val = self._get_property('Mixing Mode') + " """ + val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] return val @@ -137,41 +162,40 @@ def _1st_if_frequency(self): "Intermediate frequency for Rx's 1st conversion stage." "Value should be a mathematical expression." """ - val = self._get_property('1st IF Frequency') + val = self._get_property("1st IF Frequency") return val @property def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." - " """ - val = self._get_property('RF Transition Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + " """ + val = self._get_property("RF Transition Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val class UseHighLOOption(Enum): - ABOVETRANSITION = "Above Transition Frequency" - BELOWTRANSITION = "Below Transition Frequency" + ABOVETRANSITION = "Above Transition Frequency" + BELOWTRANSITION = "Below Transition Frequency" @property def use_high_lo(self) -> UseHighLOOption: """Use High LO "Use High LO above/below the transition frequency." - " """ - val = self._get_property('Use High LO') + " """ + val = self._get_property("Use High LO") val = self.UseHighLOOption[val] return val class MixerProductTableUnitsOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE = "Relative" + ABSOLUTE = "Absolute" + RELATIVE = "Relative" @property def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units "Specifies the units for the Mixer Products." - " """ - val = self._get_property('Mixer Product Table Units') + " """ + val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py index 3339801422b..a1c7bb94686 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -9,4 +34,3 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py index b02b22440d6..44125e171b2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -16,6 +41,5 @@ def use_arithmetic_mean(self) -> bool: "Uses arithmetic mean to center bandwidths about the tuned channel frequency." "Value should be 'true' or 'false'." """ - val = self._get_property('Use Arithmetic Mean') + val = self._get_property("Use Arithmetic Mean") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py index 92f2e2de09b..80d4ae72f21 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyRxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,27 +37,26 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE = "Relative" + ABSOLUTE = "Absolute" + RELATIVE = "Relative" @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ - val = self._get_property('Spur Table Units') + " """ + val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py index 6381f5f08bc..c615cade63e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -11,27 +36,27 @@ def parent(self): return self._parent class SensitivityUnitsOption(Enum): - DBM = "dBm" - DBUV = "dBuV" - MILLIWATTS = "milliwatts" - MICROVOLTS = "microvolts" + DBM = "dBm" + DBUV = "dBuV" + MILLIWATTS = "milliwatts" + MICROVOLTS = "microvolts" @property def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units "Units to use for the Rx Sensitivity." - " """ - val = self._get_property('Sensitivity Units') + " """ + val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] return val @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr "Received signal power level at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ - val = self._get_property('Min. Receive Signal Pwr ') + val = self._get_property("Min. Receive Signal Pwr ") return val @property @@ -40,7 +65,7 @@ def snr_at_rx_signal_pwr(self) -> float: "Signal-to-Noise Ratio (dB) at specified received signal power at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ - val = self._get_property('SNR at Rx Signal Pwr') + val = self._get_property("SNR at Rx Signal Pwr") return val @property @@ -49,7 +74,7 @@ def processing_gain(self) -> float: "Rx processing gain (dB) of (optional) despreader." "Value should be between -1000 and 1000." """ - val = self._get_property('Processing Gain') + val = self._get_property("Processing Gain") return val @property @@ -58,18 +83,17 @@ def apply_pg_to_narrowband_only(self) -> bool: "Processing gain captures the despreading effect and applies to NB signals only (not BB noise) when enabled." "Value should be 'true' or 'false'." """ - val = self._get_property('Apply PG to Narrowband Only') + val = self._get_property("Apply PG to Narrowband Only") return val @property def saturation_level(self) -> float: """Saturation Level "Rx input saturation level." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -1000 and 1000." """ - val = self._get_property('Saturation Level') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("Saturation Level") + val = self._convert_from_internal_units(float(val), "Power") return val @property @@ -78,27 +102,26 @@ def rx_noise_figure(self) -> float: "Rx noise figure (dB)." "Value should be between 0 and 1000." """ - val = self._get_property('Rx Noise Figure') + val = self._get_property("Rx Noise Figure") return val @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -1000 and 1000." """ - val = self._get_property('Receiver Sensitivity ') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("Receiver Sensitivity ") + val = self._convert_from_internal_units(float(val), "Power") return val @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity "SNR or SINAD at the specified sensitivity level." "Value should be between -1000 and 1000." """ - val = self._get_property('SNR/SINAD at Sensitivity ') + val = self._get_property("SNR/SINAD at Sensitivity ") return val @property @@ -107,40 +130,37 @@ def perform_rx_intermod_analysis(self) -> bool: "Performs a non-linear intermod analysis for the Rx." "Value should be 'true' or 'false'." """ - val = self._get_property('Perform Rx Intermod Analysis') + val = self._get_property("Perform Rx Intermod Analysis") return val @property def amplifier_saturation_level(self) -> float: """Amplifier Saturation Level "Internal Rx Amplifier's Saturation Level." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ - val = self._get_property('Amplifier Saturation Level') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("Amplifier Saturation Level") + val = self._convert_from_internal_units(float(val), "Power") return val @property - def _1_db_point_ref_input_(self) -> float: - """1-dB Point, Ref. Input + def p1_db_point_ref_input_(self) -> float: + """P1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -1000 and 1000." """ - val = self._get_property('1-dB Point, Ref. Input ') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("P1-dB Point, Ref. Input ") + val = self._convert_from_internal_units(float(val), "Power") return val @property def ip3_ref_input(self) -> float: """IP3, Ref. Input "Internal Rx Amplifier's 3rd order intercept point." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -1000 and 1000." """ - val = self._get_property('IP3, Ref. Input') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("IP3, Ref. Input") + val = self._convert_from_internal_units(float(val), "Power") return val @property @@ -149,6 +169,5 @@ def max_intermod_order(self) -> int: "Internal Rx Amplifier's maximum intermod order to compute." "Value should be between 3 and 20." """ - val = self._get_property('Max Intermod Order') + val = self._get_property("Max Intermod Order") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py index 1d4ae688ba6..b12fa7a7f71 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlySamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,26 +37,26 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Min: + "Min: " Value should be greater than 1." - "Max: + "Max: " Value should be greater than 1." """ return self._get_table_data() class SamplingTypeOption(Enum): - SAMPLEALLCHANNELS = "Sample All Channels in Range(s)" - RANDOMSAMPLING = "Random Sampling" - UNIFORMSAMPLING = "Uniform Sampling" + SAMPLEALLCHANNELS = "Sample All Channels in Range(s)" + RANDOMSAMPLING = "Random Sampling" + UNIFORMSAMPLING = "Uniform Sampling" @property def sampling_type(self) -> SamplingTypeOption: """Sampling Type "Sampling to apply to this configuration." - " """ - val = self._get_property('Sampling Type') + " """ + val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] return val @@ -41,7 +66,7 @@ def specify_percentage(self) -> bool: "Specify the number of channels to simulate via a percentage of the total available band channels." "Value should be 'true' or 'false'." """ - val = self._get_property('Specify Percentage') + val = self._get_property("Specify Percentage") return val @property @@ -50,7 +75,7 @@ def percentage_of_channels(self) -> float: "Percentage of the Band Channels to simulate." "Value should be between 1 and 100." """ - val = self._get_property('Percentage of Channels') + val = self._get_property("Percentage of Channels") return val @property @@ -59,7 +84,7 @@ def max__channelsrangeband(self) -> int: "Maximum number of Band Channels to simulate." "Value should be between 1 and 100000." """ - val = self._get_property('Max # Channels/Range/Band') + val = self._get_property("Max # Channels/Range/Band") return val @property @@ -68,30 +93,29 @@ def seed(self) -> int: "Seed for random channel generator." "Value should be greater than 0." """ - val = self._get_property('Seed') + val = self._get_property("Seed") return val @property def total_tx_channels(self) -> int: """Total Tx Channels "Total number of transmit channels this configuration is capable of operating on." - " """ - val = self._get_property('Total Tx Channels') + " """ + val = self._get_property("Total Tx Channels") return val @property def total_rx_channels(self) -> int: """Total Rx Channels "Total number of receive channels this configuration is capable of operating on." - " """ - val = self._get_property('Total Rx Channels') + " """ + val = self._get_property("Total Rx Channels") return val @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ - val = self._get_property('Warnings') + " """ + val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py index 6da85fe7f79..386c413408a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlySceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -16,7 +41,7 @@ def show_relative_coordinates(self) -> bool: "Show Scene Group position and orientation in parent-node coords (False) or relative to placement coords (True)." "Value should be 'true' or 'false'." """ - val = self._get_property('Show Relative Coordinates') + val = self._get_property("Show Relative Coordinates") return val @property @@ -25,7 +50,7 @@ def position(self): "Set position of the Scene Group in parent-node coordinates." "Value should be x/y/z, delimited by spaces." """ - val = self._get_property('Position') + val = self._get_property("Position") return val @property @@ -34,19 +59,19 @@ def relative_position(self): "Set position of the Scene Group relative to placement coordinates." "Value should be x/y/z, delimited by spaces." """ - val = self._get_property('Relative Position') + val = self._get_property("Relative Position") return val class OrientationModeOption(Enum): - RPYDEG = "Roll-Pitch-Yaw" - AETDEG = "Az-El-Twist" + RPYDEG = "Roll-Pitch-Yaw" + AETDEG = "Az-El-Twist" @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ - val = self._get_property('Orientation Mode') + " """ + val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -56,7 +81,7 @@ def orientation(self): "Set orientation of the Scene Group relative to parent-node coordinates." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - val = self._get_property('Orientation') + val = self._get_property("Orientation") return val @property @@ -65,7 +90,7 @@ def relative_orientation(self): "Set orientation of the Scene Group relative to placement coordinates." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - val = self._get_property('Relative Orientation') + val = self._get_property("Relative Orientation") return val @property @@ -74,7 +99,7 @@ def show_axes(self) -> bool: "Toggle (on/off) display of Scene Group coordinate axes in 3-D window." "Value should be 'true' or 'false'." """ - val = self._get_property('Show Axes') + val = self._get_property("Show Axes") return val @property @@ -83,14 +108,13 @@ def box_color(self): "Set color of the bounding box of the Scene Group." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Box Color') + val = self._get_property("Box Color") return val @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py index fa5bda34cfe..c63b5ce5fd2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -16,7 +41,7 @@ def enabled(self) -> bool: "Enable/Disable coupling (A sweep disabled in HFSS/Layout cannot be enabled in EMIT)." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @property @@ -25,7 +50,7 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Refinement') + val = self._get_property("Enable Refinement") return val @property @@ -34,14 +59,13 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - val = self._get_property('Adaptive Sampling') + val = self._get_property("Adaptive Sampling") return val @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ - val = self._get_property('Refinement Domain') + " """ + val = self._get_property("Refinement Domain") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py index 62165a21405..7c3eb46e7b9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlySolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -16,6 +41,5 @@ def enabled(self) -> bool: "Enable/Disable coupling (A setup disabled in HFSS/Layout cannot be enabled in EMIT)." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py index e1aba55f11b..3b3ef6682dd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlySparameter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -11,7 +36,7 @@ def file(self) -> str: "S-Parameter file defining the component." "Value should be a full file path." """ - val = self._get_property('File') + val = self._get_property("File") return val @property @@ -20,15 +45,15 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - val = self._get_property('Noise Temperature') + val = self._get_property("Noise Temperature") return val @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val @property @@ -36,8 +61,8 @@ def radio_side_ports(self): """Radio Side Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ - val = self._get_property('Radio Side Ports') + " """ + val = self._get_property("Radio Side Ports") return val @property @@ -45,15 +70,14 @@ def antenna_side_ports(self): """Antenna Side Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ - val = self._get_property('Antenna Side Ports') + " """ + val = self._get_property("Antenna Side Ports") return val @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ - val = self._get_property('Warnings') + " """ + val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py index 04c0faf6268..092723879f5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyTR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -11,7 +36,7 @@ def filename(self) -> str: "Name of file defining the outboard component." "Value should be a full file path." """ - val = self._get_property('Filename') + val = self._get_property("Filename") return val @property @@ -20,40 +45,40 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - val = self._get_property('Noise Temperature') + val = self._get_property("Noise Temperature") return val @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val class TxPortOption(Enum): - _0 = "Port 1" - _1 = "Port 2" + _0 = "Port 1" + _1 = "Port 2" @property def tx_port(self) -> TxPortOption: """Tx Port "Specifies which port on the TR Switch is part of the Tx path.." - " """ - val = self._get_property('Tx Port') + " """ + val = self._get_property("Tx Port") val = self.TxPortOption[val] return val class CommonPortLocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" @property def common_port_location(self) -> CommonPortLocationOption: """Common Port Location "Defines the orientation of the tr switch.." - " """ - val = self._get_property('Common Port Location') + " """ + val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] return val @@ -63,7 +88,7 @@ def insertion_loss(self) -> float: "TR Switch in-band loss in forward direction.." "Value should be between 0 and 100." """ - val = self._get_property('Insertion Loss') + val = self._get_property("Insertion Loss") return val @property @@ -72,7 +97,7 @@ def finite_isolation(self) -> bool: "Use a finite isolation. If disabled, the tr switch model is ideal (infinite isolation).." "Value should be 'true' or 'false'." """ - val = self._get_property('Finite Isolation') + val = self._get_property("Finite Isolation") return val @property @@ -81,7 +106,7 @@ def isolation(self) -> float: "TR Switch reverse isolation (i.e., loss between the Tx/Rx ports).." "Value should be between 0 and 100." """ - val = self._get_property('Isolation') + val = self._get_property("Isolation") return val @property @@ -90,7 +115,7 @@ def finite_bandwidth(self) -> bool: "Use a finite bandwidth. If disabled, the tr switch model is ideal (infinite bandwidth).." "Value should be 'true' or 'false'." """ - val = self._get_property('Finite Bandwidth') + val = self._get_property("Finite Bandwidth") return val @property @@ -99,7 +124,7 @@ def out_of_band_attenuation(self) -> float: "Out-of-band loss (attenuation)." "Value should be between 0 and 200." """ - val = self._get_property('Out-of-band Attenuation') + val = self._get_property("Out-of-band Attenuation") return val @property @@ -108,8 +133,8 @@ def lower_stop_band(self) -> float: "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -118,8 +143,8 @@ def lower_cutoff(self) -> float: "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -128,8 +153,8 @@ def higher_cutoff(self) -> float: "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -138,7 +163,6 @@ def higher_stop_band(self) -> float: "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py index 8b67a1a34a2..f725b912490 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyTerminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -11,7 +36,7 @@ def filename(self) -> str: "Name of file defining the Terminator." "Value should be a full file path." """ - val = self._get_property('Filename') + val = self._get_property("Filename") return val @property @@ -20,40 +45,40 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - val = self._get_property('Noise Temperature') + val = self._get_property("Noise Temperature") return val @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val class TypeOption(Enum): - BYFILE = "By File" - PARAMETRIC = "Parametric" + BYFILE = "By File" + PARAMETRIC = "Parametric" @property def type(self) -> TypeOption: """Type "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." - " """ - val = self._get_property('Type') + " """ + val = self._get_property("Type") val = self.TypeOption[val] return val class PortLocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" @property def port_location(self) -> PortLocationOption: """Port Location "Defines the orientation of the terminator.." - " """ - val = self._get_property('Port Location') + " """ + val = self._get_property("Port Location") val = self.PortLocationOption[val] return val @@ -63,14 +88,13 @@ def vswr(self) -> float: "The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch between the terminator and the connected component (RF System, Antenna, etc)." "Value should be between 1 and 100." """ - val = self._get_property('VSWR') + val = self._get_property("VSWR") return val @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ - val = self._get_property('Warnings') + " """ + val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py index f4895f65507..b21d8fbd140 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -16,7 +41,7 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @property @@ -25,7 +50,7 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Refinement') + val = self._get_property("Enable Refinement") return val @property @@ -34,15 +59,15 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - val = self._get_property('Adaptive Sampling') + val = self._get_property("Adaptive Sampling") return val @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ - val = self._get_property('Refinement Domain') + " """ + val = self._get_property("Refinement Domain") return val @property @@ -51,15 +76,15 @@ def filename(self) -> str: "Name of file with coupling data.." "Value should be a full file path." """ - val = self._get_property('Filename') + val = self._get_property("Filename") return val @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File "Coupling data generated by Savant and exported as a matched file." - " """ - val = self._get_property('Savant Matched Coupling File') + " """ + val = self._get_property("Savant Matched Coupling File") return val @property @@ -68,7 +93,7 @@ def enable_em_isolation(self) -> bool: "Enables/disables EM isolation." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable EM Isolation') + val = self._get_property("Enable EM Isolation") return val @property @@ -76,15 +101,14 @@ def port_antenna_assignment(self): """Port-Antenna Assignment "Maps each port in the coupling file to an antenna in the project." "A list of values." - " """ - val = self._get_property('Port-Antenna Assignment') + " """ + val = self._get_property("Port-Antenna Assignment") return val @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py index 72e579e56d0..41ab8f0f22a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -16,23 +41,23 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Antenna A') + " """ + val = self._get_property("Antenna A") return val @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Antenna B') + " """ + val = self._get_property("Antenna B") return val @property @@ -41,7 +66,7 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Refinement') + val = self._get_property("Enable Refinement") return val @property @@ -50,15 +75,15 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - val = self._get_property('Adaptive Sampling') + val = self._get_property("Adaptive Sampling") return val @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ - val = self._get_property('Refinement Domain') + " """ + val = self._get_property("Refinement Domain") return val @property @@ -67,7 +92,7 @@ def ground_reflection_coeff(self) -> float: "The ground reflection coefficient." "Value should be between -100 and 100." """ - val = self._get_property('Ground Reflection Coeff.') + val = self._get_property("Ground Reflection Coeff.") return val @property @@ -76,7 +101,7 @@ def pointspeak(self) -> int: "Number of points used to model each peak in frequency vs loss curve." "Value should be between 3 and 100." """ - val = self._get_property('Points/Peak') + val = self._get_property("Points/Peak") return val @property @@ -85,7 +110,7 @@ def custom_fading_margin(self) -> float: "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Custom Fading Margin') + val = self._get_property("Custom Fading Margin") return val @property @@ -94,7 +119,7 @@ def polarization_mismatch(self) -> float: "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Polarization Mismatch') + val = self._get_property("Polarization Mismatch") return val @property @@ -103,21 +128,21 @@ def pointing_error_loss(self) -> float: "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Pointing Error Loss') + val = self._get_property("Pointing Error Loss") return val class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ - val = self._get_property('Fading Type') + " """ + val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -127,7 +152,7 @@ def fading_availability(self) -> float: "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - val = self._get_property('Fading Availability') + val = self._get_property("Fading Availability") return val @property @@ -136,7 +161,7 @@ def std_deviation(self) -> float: "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - val = self._get_property('Std Deviation') + val = self._get_property("Std Deviation") return val @property @@ -145,7 +170,7 @@ def include_rain_attenuation(self) -> bool: "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Rain Attenuation') + val = self._get_property("Include Rain Attenuation") return val @property @@ -154,7 +179,7 @@ def rain_availability(self) -> float: "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - val = self._get_property('Rain Availability') + val = self._get_property("Rain Availability") return val @property @@ -163,7 +188,7 @@ def rain_rate(self) -> float: "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - val = self._get_property('Rain Rate') + val = self._get_property("Rain Rate") return val @property @@ -172,7 +197,7 @@ def polarization_tilt_angle(self) -> float: "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - val = self._get_property('Polarization Tilt Angle') + val = self._get_property("Polarization Tilt Angle") return val @property @@ -181,7 +206,7 @@ def include_atmospheric_absorption(self) -> bool: "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Atmospheric Absorption') + val = self._get_property("Include Atmospheric Absorption") return val @property @@ -190,7 +215,7 @@ def temperature(self) -> float: "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - val = self._get_property('Temperature') + val = self._get_property("Temperature") return val @property @@ -199,7 +224,7 @@ def total_air_pressure(self) -> float: "Total air pressure." "Value should be between 0 and 2000." """ - val = self._get_property('Total Air Pressure') + val = self._get_property("Total Air Pressure") return val @property @@ -208,6 +233,5 @@ def water_vapor_concentration(self) -> float: "Water vapor concentration." "Value should be between 0 and 2000." """ - val = self._get_property('Water Vapor Concentration') + val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py index 8132eaebe80..b0ac3044a44 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -14,25 +39,25 @@ def parent(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): " Value should be between -200 and 150." """ return self._get_table_data() class NoiseBehaviorOption(Enum): - ABSOLUTE = "Absolute" - RELATIVEBANDWIDTH = "Relative (Bandwidth)" - RELATIVEOFFSET = "Relative (Offset)" - BROADBANDEQUATION = "Equation" + ABSOLUTE = "Absolute" + RELATIVEBANDWIDTH = "Relative (Bandwidth)" + RELATIVEOFFSET = "Relative (Offset)" + BROADBANDEQUATION = "Equation" @property def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior "Specifies the behavior of the parametric noise profile." - " """ - val = self._get_property('Noise Behavior') + " """ + val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] return val @@ -42,6 +67,5 @@ def use_log_linear_interpolation(self) -> bool: "If true, linear interpolation in the log domain is used. If false, linear interpolation in the linear domain is used.." "Value should be 'true' or 'false'." """ - val = self._get_property('Use Log-Linear Interpolation') + val = self._get_property("Use Log-Linear Interpolation") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py index 89f9ef14931..85f7ca097ce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -11,15 +36,14 @@ def parent(self): return self._parent class HarmonicTableUnitsOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE = "Relative" + ABSOLUTE = "Absolute" + RELATIVE = "Relative" @property def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units "Specifies the units for the Harmonics." - " """ - val = self._get_property('Harmonic Table Units') + " """ + val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py index 31859469445..716e0cae37e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyTxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -16,7 +41,7 @@ def file(self) -> str: "Name of the measurement source." "Value should be a full file path." """ - val = self._get_property('File') + val = self._get_property("File") return val @property @@ -25,16 +50,16 @@ def source_file(self) -> str: "Name of the measurement source." "Value should be a full file path." """ - val = self._get_property('Source File') + val = self._get_property("Source File") return val @property def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." - " """ - val = self._get_property('Transmit Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + " """ + val = self._get_property("Transmit Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -43,7 +68,7 @@ def use_ams_limits(self) -> bool: "Allow AMS to define the frequency limits for the measurements." "Value should be 'true' or 'false'." """ - val = self._get_property('Use AMS Limits') + val = self._get_property("Use AMS Limits") return val @property @@ -52,8 +77,8 @@ def start_frequency(self) -> float: "Starting frequency for the measurement sweep." "Value should be greater than 1e+06." """ - val = self._get_property('Start Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Start Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -62,8 +87,8 @@ def stop_frequency(self) -> float: "Stopping frequency for the measurement sweep." "Value should be less than 6e+09." """ - val = self._get_property('Stop Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Stop Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -72,6 +97,5 @@ def exclude_harmonics_below_noise(self) -> bool: "Include/Exclude Harmonics below the noise." "Value should be 'true' or 'false'." """ - val = self._get_property('Exclude Harmonics Below Noise') + val = self._get_property("Exclude Harmonics Below Noise") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py index 61ab8b11ea2..ae096ad8d6b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -11,15 +36,15 @@ def parent(self): return self._parent class NarrowbandBehaviorOption(Enum): - ABSOLUTE = "Absolute Freqs and Power" - RELATIVEBANDWIDTH = "Relative Freqs and Attenuation" + ABSOLUTE = "Absolute Freqs and Power" + RELATIVEBANDWIDTH = "Relative Freqs and Attenuation" @property def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." - " """ - val = self._get_property('Narrowband Behavior') + " """ + val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] return val @@ -27,8 +52,7 @@ def narrowband_behavior(self) -> NarrowbandBehaviorOption: def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - " """ - val = self._get_property('Measurement Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + " """ + val = self._get_property("Measurement Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py new file mode 100644 index 00000000000..831ce3be5eb --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py @@ -0,0 +1,138 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + +from ..EmitNode import * + + +class ReadOnlyTxSpectralProfEmitterNode(EmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + EmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def output_voltage_peak(self) -> float: + """Output Voltage Peak + "Output High Voltage Level: maximum voltage of the digital signal." + " """ + val = self._get_property("Output Voltage Peak") + val = self._convert_from_internal_units(float(val), "Voltage") + return val + + @property + def include_phase_noise(self) -> bool: + """Include Phase Noise + "Include oscillator phase noise in Tx spectral profile." + "Value should be 'true' or 'false'." + """ + val = self._get_property("Include Phase Noise") + return val + + @property + def tx_broadband_noise(self) -> float: + """Tx Broadband Noise + "Transmitters broadband noise level." + "Value should be less than 1000." + """ + val = self._get_property("Tx Broadband Noise") + return val + + @property + def perform_tx_intermod_analysis(self) -> bool: + """Perform Tx Intermod Analysis + "Performs a non-linear intermod analysis for the Tx." + "Value should be 'true' or 'false'." + """ + val = self._get_property("Perform Tx Intermod Analysis") + return val + + @property + def internal_amp_gain(self) -> float: + """Internal Amp Gain + "Internal Tx Amplifier's Gain." + "Value should be between -1000 and 1000." + """ + val = self._get_property("Internal Amp Gain") + return val + + @property + def noise_figure(self) -> float: + """Noise Figure + "Internal Tx Amplifier's noise figure." + "Value should be between 0 and 50." + """ + val = self._get_property("Noise Figure") + return val + + @property + def amplifier_saturation_level(self) -> float: + """Amplifier Saturation Level + "Internal Tx Amplifier's Saturation Level." + "Value should be between -200 and 200." + """ + val = self._get_property("Amplifier Saturation Level") + val = self._convert_from_internal_units(float(val), "Power") + return val + + @property + def p1_db_point_ref_input_(self) -> float: + """P1-dB Point, Ref. Input + "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." + "Value should be between -200 and 200." + """ + val = self._get_property("P1-dB Point, Ref. Input ") + val = self._convert_from_internal_units(float(val), "Power") + return val + + @property + def ip3_ref_input(self) -> float: + """IP3, Ref. Input + "Internal Tx Amplifier's 3rd order intercept point." + "Value should be between -200 and 200." + """ + val = self._get_property("IP3, Ref. Input") + val = self._convert_from_internal_units(float(val), "Power") + return val + + @property + def reverse_isolation(self) -> float: + """Reverse Isolation + "Internal Tx Amplifier's Reverse Isolation." + "Value should be between -200 and 200." + """ + val = self._get_property("Reverse Isolation") + return val + + @property + def max_intermod_order(self) -> int: + """Max Intermod Order + "Internal Tx Amplifier's maximum intermod order to compute." + "Value should be between 3 and 20." + """ + val = self._get_property("Max Intermod Order") + return val diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py index e0694ca9e71..74178e74ef5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -11,28 +36,28 @@ def parent(self): return self._parent class SpectrumTypeOption(Enum): - BOTH = "Narrowband & Broadband" - BROADBANDONLY = "Broadband Only" + BOTH = "Narrowband & Broadband" + BROADBANDONLY = "Broadband Only" @property def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type "Specifies EMI Margins to calculate." - " """ - val = self._get_property('Spectrum Type') + " """ + val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] return val class TxPowerOption(Enum): - PEAK_POWER = "Peak Power" - AVERAGE_POWER = "Average Power" + PEAK_POWER = "Peak Power" + AVERAGE_POWER = "Average Power" @property def tx_power(self) -> TxPowerOption: """Tx Power "Method used to specify the power." - " """ - val = self._get_property('Tx Power') + " """ + val = self._get_property("Tx Power") val = self.TxPowerOption[val] return val @@ -40,32 +65,20 @@ def tx_power(self) -> TxPowerOption: def peak_power(self) -> float: """Peak Power "Tx's carrier frequency peak power." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -1000 and 1000." """ - val = self._get_property('Peak Power') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("Peak Power") + val = self._convert_from_internal_units(float(val), "Power") return val @property def average_power(self) -> float: """Average Power "Tx's fundamental level specified by average power." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -1000 and 1000." """ - val = self._get_property('Average Power') - val = self._convert_from_default_units(float(val), "Power Unit") - return val - - @property - def output_voltage_peak(self) -> float: - """Output Voltage Peak - "Output High Voltage Level: maximum voltage of the digital signal." - "Units options: nV, uV, mV, V, kV, MegV." - " """ - val = self._get_property('Output Voltage Peak') - val = self._convert_from_default_units(float(val), "Voltage Unit") + val = self._get_property("Average Power") + val = self._convert_from_internal_units(float(val), "Power") return val @property @@ -74,7 +87,7 @@ def include_phase_noise(self) -> bool: "Include oscillator phase noise in Tx spectral profile." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Phase Noise') + val = self._get_property("Include Phase Noise") return val @property @@ -83,21 +96,21 @@ def tx_broadband_noise(self) -> float: "Transmitters broadband noise level." "Value should be less than 1000." """ - val = self._get_property('Tx Broadband Noise') + val = self._get_property("Tx Broadband Noise") return val class HarmonicTaperOption(Enum): - CONSTANT = "Constant" - MIL_STD_461G = "MIL-STD-461G" - MIL_STD_461G_NAVY = "MIL-STD-461G Navy" - DUFF_MODEL = "Duff Model" + CONSTANT = "Constant" + MIL_STD_461G = "MIL-STD-461G" + MIL_STD_461G_NAVY = "MIL-STD-461G Navy" + DUFF_MODEL = "Duff Model" @property def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper "Taper type used to set amplitude of harmonics." - " """ - val = self._get_property('Harmonic Taper') + " """ + val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] return val @@ -107,7 +120,7 @@ def harmonic_amplitude(self) -> float: "Amplitude (relative to the carrier power) of harmonics." "Value should be between -1000 and 0." """ - val = self._get_property('Harmonic Amplitude') + val = self._get_property("Harmonic Amplitude") return val @property @@ -116,7 +129,7 @@ def harmonic_slope(self) -> float: "Rate of decrease for harmonics' amplitudes (dB/decade)." "Value should be between -1000 and 0." """ - val = self._get_property('Harmonic Slope') + val = self._get_property("Harmonic Slope") return val @property @@ -125,7 +138,7 @@ def harmonic_intercept(self) -> float: "Amplitude intercept at the fundamental (dBc)." "Value should be between -1000 and 0." """ - val = self._get_property('Harmonic Intercept') + val = self._get_property("Harmonic Intercept") return val @property @@ -134,7 +147,7 @@ def enable_harmonic_bw_expansion(self) -> bool: "If (True), bandwidth of harmonics increases proportional to the harmonic number." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Harmonic BW Expansion') + val = self._get_property("Enable Harmonic BW Expansion") return val @property @@ -143,7 +156,7 @@ def number_of_harmonics(self) -> int: "Maximum number of harmonics modeled." "Value should be between 1 and 1000." """ - val = self._get_property('Number of Harmonics') + val = self._get_property("Number of Harmonics") return val @property @@ -152,7 +165,7 @@ def _2nd_harmonic_level(self) -> float: "Amplitude (relative to the carrier power) of the 2nd harmonic." "Value should be between -1000 and 0." """ - val = self._get_property('2nd Harmonic Level') + val = self._get_property("2nd Harmonic Level") return val @property @@ -161,7 +174,7 @@ def _3rd_harmonic_level(self) -> float: "Amplitude (relative to the carrier power) of the 3rd harmonic." "Value should be between -1000 and 0." """ - val = self._get_property('3rd Harmonic Level') + val = self._get_property("3rd Harmonic Level") return val @property @@ -170,7 +183,7 @@ def other_harmonic_levels(self) -> float: "Amplitude (relative to the carrier power) of the higher order harmonics." "Value should be between -1000 and 0." """ - val = self._get_property('Other Harmonic Levels') + val = self._get_property("Other Harmonic Levels") return val @property @@ -179,7 +192,7 @@ def perform_tx_intermod_analysis(self) -> bool: "Performs a non-linear intermod analysis for the Tx." "Value should be 'true' or 'false'." """ - val = self._get_property('Perform Tx Intermod Analysis') + val = self._get_property("Perform Tx Intermod Analysis") return val @property @@ -188,7 +201,7 @@ def internal_amp_gain(self) -> float: "Internal Tx Amplifier's Gain." "Value should be between -1000 and 1000." """ - val = self._get_property('Internal Amp Gain') + val = self._get_property("Internal Amp Gain") return val @property @@ -197,40 +210,37 @@ def noise_figure(self) -> float: "Internal Tx Amplifier's noise figure." "Value should be between 0 and 50." """ - val = self._get_property('Noise Figure') + val = self._get_property("Noise Figure") return val @property def amplifier_saturation_level(self) -> float: """Amplifier Saturation Level "Internal Tx Amplifier's Saturation Level." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ - val = self._get_property('Amplifier Saturation Level') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("Amplifier Saturation Level") + val = self._convert_from_internal_units(float(val), "Power") return val @property - def _1_db_point_ref_input_(self) -> float: - """1-dB Point, Ref. Input + def p1_db_point_ref_input_(self) -> float: + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ - val = self._get_property('1-dB Point, Ref. Input ') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("P1-dB Point, Ref. Input ") + val = self._convert_from_internal_units(float(val), "Power") return val @property def ip3_ref_input(self) -> float: """IP3, Ref. Input "Internal Tx Amplifier's 3rd order intercept point." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ - val = self._get_property('IP3, Ref. Input') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("IP3, Ref. Input") + val = self._convert_from_internal_units(float(val), "Power") return val @property @@ -239,7 +249,7 @@ def reverse_isolation(self) -> float: "Internal Tx Amplifier's Reverse Isolation." "Value should be between -200 and 200." """ - val = self._get_property('Reverse Isolation') + val = self._get_property("Reverse Isolation") return val @property @@ -248,6 +258,5 @@ def max_intermod_order(self) -> int: "Internal Tx Amplifier's maximum intermod order to compute." "Value should be between 3 and 20." """ - val = self._get_property('Max Intermod Order') + val = self._get_property("Max Intermod Order") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py index 84c7e8a1f13..46822f23973 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyTxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,27 +37,26 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE = "Relative" + ABSOLUTE = "Absolute" + RELATIVE = "Relative" @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ - val = self._get_property('Spur Table Units') + " """ + val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py index f679574ed3a..9171d749229 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -16,23 +41,23 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Base Antenna') + " """ + val = self._get_property("Base Antenna") return val @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Mobile Antenna') + " """ + val = self._get_property("Mobile Antenna") return val @property @@ -41,7 +66,7 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Refinement') + val = self._get_property("Enable Refinement") return val @property @@ -50,40 +75,40 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - val = self._get_property('Adaptive Sampling') + val = self._get_property("Adaptive Sampling") return val @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ - val = self._get_property('Refinement Domain') + " """ + val = self._get_property("Refinement Domain") return val class PathLossTypeOption(Enum): - WALFISCHLOS = "LOS (Urban Canyon)" - WALFISCHNLOS = "NLOS" + WALFISCHLOS = "LOS (Urban Canyon)" + WALFISCHNLOS = "NLOS" @property def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type "Specify LOS vs NLOS for the Walfisch-Ikegami model." - " """ - val = self._get_property('Path Loss Type') + " """ + val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] return val class EnvironmentOption(Enum): - DENSEMETROAREA = "Dense Metro" - SMALLURBANORSUBURBAN = "Small/Medium City or Suburban" + DENSEMETROAREA = "Dense Metro" + SMALLURBANORSUBURBAN = "Small/Medium City or Suburban" @property def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Walfisch model." - " """ - val = self._get_property('Environment') + " """ + val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -91,33 +116,30 @@ def environment(self) -> EnvironmentOption: def roof_height(self) -> float: """Roof Height "The height of the building where the antenna is located.." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 0 and 100." """ - val = self._get_property('Roof Height') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Roof Height") + val = self._convert_from_internal_units(float(val), "Length") return val @property def distance_between_buildings(self) -> float: """Distance Between Buildings "The distance between two buildings.." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 0 and 100." """ - val = self._get_property('Distance Between Buildings') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Distance Between Buildings") + val = self._convert_from_internal_units(float(val), "Length") return val @property def street_width(self) -> float: """Street Width "Width of the street.." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 0 and 100." """ - val = self._get_property('Street Width') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Street Width") + val = self._convert_from_internal_units(float(val), "Length") return val @property @@ -126,7 +148,7 @@ def incidence_angle(self) -> float: "Angle between the street orientation and direction of incidence.." "Value should be between 0 and 90." """ - val = self._get_property('Incidence Angle') + val = self._get_property("Incidence Angle") return val @property @@ -135,7 +157,7 @@ def custom_fading_margin(self) -> float: "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Custom Fading Margin') + val = self._get_property("Custom Fading Margin") return val @property @@ -144,7 +166,7 @@ def polarization_mismatch(self) -> float: "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Polarization Mismatch') + val = self._get_property("Polarization Mismatch") return val @property @@ -153,21 +175,21 @@ def pointing_error_loss(self) -> float: "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Pointing Error Loss') + val = self._get_property("Pointing Error Loss") return val class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ - val = self._get_property('Fading Type') + " """ + val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -177,7 +199,7 @@ def fading_availability(self) -> float: "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - val = self._get_property('Fading Availability') + val = self._get_property("Fading Availability") return val @property @@ -186,7 +208,7 @@ def std_deviation(self) -> float: "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - val = self._get_property('Std Deviation') + val = self._get_property("Std Deviation") return val @property @@ -195,7 +217,7 @@ def include_rain_attenuation(self) -> bool: "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Rain Attenuation') + val = self._get_property("Include Rain Attenuation") return val @property @@ -204,7 +226,7 @@ def rain_availability(self) -> float: "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - val = self._get_property('Rain Availability') + val = self._get_property("Rain Availability") return val @property @@ -213,7 +235,7 @@ def rain_rate(self) -> float: "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - val = self._get_property('Rain Rate') + val = self._get_property("Rain Rate") return val @property @@ -222,7 +244,7 @@ def polarization_tilt_angle(self) -> float: "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - val = self._get_property('Polarization Tilt Angle') + val = self._get_property("Polarization Tilt Angle") return val @property @@ -231,7 +253,7 @@ def include_atmospheric_absorption(self) -> bool: "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Atmospheric Absorption') + val = self._get_property("Include Atmospheric Absorption") return val @property @@ -240,7 +262,7 @@ def temperature(self) -> float: "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - val = self._get_property('Temperature') + val = self._get_property("Temperature") return val @property @@ -249,7 +271,7 @@ def total_air_pressure(self) -> float: "Total air pressure." "Value should be between 0 and 2000." """ - val = self._get_property('Total Air Pressure') + val = self._get_property("Total Air Pressure") return val @property @@ -258,6 +280,5 @@ def water_vapor_concentration(self) -> float: "Water vapor concentration." "Value should be between 0 and 2000." """ - val = self._get_property('Water Vapor Concentration') + val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py new file mode 100644 index 00000000000..5507fb61f53 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py @@ -0,0 +1,321 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + +from ..EmitNode import * + + +class ReadOnlyWaveform(EmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + EmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def port(self): + """Port + "Radio Port associated with this Band." + " """ + val = self._get_property("Port") + return val + + class WaveformOption(Enum): + PERIODIC_CLOCK = "Periodic Clock" + SPREAD_SPECTRUM = "Spread Spectrum Clock" + PRBS = "PRBS" + PRBS_PERIODIC = "PRBS (Periodic)" + IMPORTED = "Imported" + + @property + def waveform(self) -> WaveformOption: + """Waveform + "Modulation used for the transmitted/received signal." + " """ + val = self._get_property("Waveform") + val = self.WaveformOption[val] + return val + + @property + def start_frequency(self) -> float: + """Start Frequency + "First frequency for this band." + "Value should be between 1 and 1e+11." + """ + val = self._get_property("Start Frequency") + val = self._convert_from_internal_units(float(val), "Freq") + return val + + @property + def stop_frequency(self) -> float: + """Stop Frequency + "Last frequency for this band." + "Value should be between 1 and 1e+11." + """ + val = self._get_property("Stop Frequency") + val = self._convert_from_internal_units(float(val), "Freq") + return val + + @property + def channel_spacing(self) -> float: + """Channel Spacing + "Spacing between channels within this band." + "Value should be between 1 and 1e+11." + """ + val = self._get_property("Channel Spacing") + val = self._convert_from_internal_units(float(val), "Freq") + return val + + @property + def clock_duty_cycle(self) -> float: + """Clock Duty Cycle + "Clock signals duty cycle." + "Value should be between 0.001 and 1." + """ + val = self._get_property("Clock Duty Cycle") + return val + + @property + def clock_risefall_time(self) -> float: + """Clock Rise/Fall Time + "Clock signals rise/fall time." + "Value should be greater than 0." + """ + val = self._get_property("Clock Rise/Fall Time") + val = self._convert_from_internal_units(float(val), "Time") + return val + + class SpreadingTypeOption(Enum): + LOW_SPREAD = "Low Spread" + CENTER_SPREAD = "Center Spread" + HIGH_SPREAD = "High Spread" + + @property + def spreading_type(self) -> SpreadingTypeOption: + """Spreading Type + "Type of spreading employed by the Spread Spectrum Clock." + " """ + val = self._get_property("Spreading Type") + val = self.SpreadingTypeOption[val] + return val + + @property + def spread_percentage(self) -> float: + """Spread Percentage + "Peak-to-peak spread percentage." + "Value should be between 0 and 100." + """ + val = self._get_property("Spread Percentage") + return val + + @property + def imported_spectrum(self) -> str: + """Imported Spectrum + "Value should be a full file path." + """ + val = self._get_property("Imported Spectrum") + return val + + @property + def raw_data_format(self) -> str: + """Raw Data Format + "Format of the imported raw data." + " """ + val = self._get_property("Raw Data Format") + return val + + @property + def system_impedance(self) -> float: + """System Impedance + "System impedance for the imported data." + "Value should be between 0 and 1e+06." + """ + val = self._get_property("System Impedance") + val = self._convert_from_internal_units(float(val), "Resistance") + return val + + @property + def advanced_extraction_params(self) -> bool: + """Advanced Extraction Params + "Show/hide advanced extraction params." + "Value should be 'true' or 'false'." + """ + val = self._get_property("Advanced Extraction Params") + return val + + @property + def nb_window_size(self) -> float: + """NB Window Size + "Window size for computing the moving average during narrowband signal detection." + "Value should be greater than 3." + """ + val = self._get_property("NB Window Size") + return val + + @property + def bb_smoothing_factor(self) -> float: + """BB Smoothing Factor + "Reduces the number of frequency points used for the broadband noise." + "Value should be greater than 1." + """ + val = self._get_property("BB Smoothing Factor") + return val + + @property + def nb_detector_threshold(self) -> float: + """NB Detector Threshold + "Narrowband Detector threshold standard deviation." + "Value should be between 2 and 10." + """ + val = self._get_property("NB Detector Threshold") + return val + + class AlgorithmOption(Enum): + FFT = "FFT" + FOURIER_TRANSFORM = "Fourier Transform" + + @property + def algorithm(self) -> AlgorithmOption: + """Algorithm + "Algorithm used to transform the imported time domain spectrum." + " """ + val = self._get_property("Algorithm") + val = self.AlgorithmOption[val] + return val + + @property + def start_time(self) -> float: + """Start Time + "Initial time of the imported spectrum." + "Value should be greater than 0." + """ + val = self._get_property("Start Time") + val = self._convert_from_internal_units(float(val), "Time") + return val + + @property + def stop_time(self) -> float: + """Stop Time + "Final time of the imported time domain spectrum." + " """ + val = self._get_property("Stop Time") + val = self._convert_from_internal_units(float(val), "Time") + return val + + @property + def max_frequency(self) -> float: + """Max Frequency + "Frequency cutoff of the imported time domain spectrum." + "Value should be between 1 and 1e+11." + """ + val = self._get_property("Max Frequency") + val = self._convert_from_internal_units(float(val), "Freq") + return val + + class WindowTypeOption(Enum): + RECTANGULAR = "Rectangular" + BARTLETT = "Bartlett" + BLACKMAN = "Blackman" + HAMMING = "Hamming" + HANNING = "Hanning" + KAISER = "Kaiser" + LANZCOS = "Lanzcos" + WELCH = "Welch" + WEBER = "Weber" + + @property + def window_type(self) -> WindowTypeOption: + """Window Type + "Windowing scheme used for importing time domain spectrum." + " """ + val = self._get_property("Window Type") + val = self.WindowTypeOption[val] + return val + + @property + def kaiser_parameter(self) -> float: + """Kaiser Parameter + "Shape factor applied to the transform." + "Value should be greater than 0." + """ + val = self._get_property("Kaiser Parameter") + return val + + @property + def adjust_coherent_gain(self) -> bool: + """Adjust Coherent Gain + "Shape factor applied to the transform." + "Value should be 'true' or 'false'." + """ + val = self._get_property("Adjust Coherent Gain") + return val + + @property + def data_rate(self) -> float: + """Data Rate + "Maximum data rate: helps determine shape of spectral profile." + "Value should be greater than 1." + """ + val = self._get_property("Data Rate") + val = self._convert_from_internal_units(float(val), "Data Rate") + return val + + @property + def num_of_bits(self) -> int: + """Num of Bits + "Length of the Pseudo Random Binary Sequence." + "Value should be between 1 and 1000." + """ + val = self._get_property("Num of Bits") + return val + + @property + def use_envelope(self) -> bool: + """Use Envelope + "Model the waveform as a worst case envelope.." + "Value should be 'true' or 'false'." + """ + val = self._get_property("Use Envelope") + return val + + @property + def min_ptsnull(self) -> int: + """Min Pts/Null + "Minimum number of points to use between each null frequency." + "Value should be between 2 and 50." + """ + val = self._get_property("Min Pts/Null") + return val + + @property + def delay_skew(self) -> float: + """Delay Skew + "Delay Skew of the differential signal pairs." + "Value should be greater than 0." + """ + val = self._get_property("Delay Skew") + val = self._convert_from_internal_units(float(val), "Time") + return val diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py index 5e88f9578e0..00ffc0f66a8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ResultPlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -17,13 +42,13 @@ def export_model(self, file_name): def title(self) -> str: """Title "Enter title at the top of the plot, room will be made for it." - " """ - val = self._get_property('Title') + " """ + val = self._get_property("Title") return val @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Title=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Title=" + value]) @property def title_font(self): @@ -31,12 +56,12 @@ def title_font(self): "Configure title font family, typeface, and size." "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ - val = self._get_property('Title Font') + val = self._get_property("Title Font") return val @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Title Font=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Title Font=" + value]) @property def show_legend(self) -> bool: @@ -44,12 +69,12 @@ def show_legend(self) -> bool: "Toggle (on/off) display of plot legend." "Value should be 'true' or 'false'." """ - val = self._get_property('Show Legend') + val = self._get_property("Show Legend") return val @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Show Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Show Legend=" + value]) @property def legend_font(self): @@ -57,12 +82,12 @@ def legend_font(self): "Configure legend font family, typeface, and size." "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ - val = self._get_property('Legend Font') + val = self._get_property("Legend Font") return val @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Legend Font=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Legend Font=" + value]) @property def show_emi_thresholds(self) -> bool: @@ -70,12 +95,12 @@ def show_emi_thresholds(self) -> bool: "Toggles on/off visibility of the EMI Thresholds." "Value should be 'true' or 'false'." """ - val = self._get_property('Show EMI Thresholds') + val = self._get_property("Show EMI Thresholds") return val @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Show EMI Thresholds=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Show EMI Thresholds=" + value]) @property def display_cad_overlay(self) -> bool: @@ -83,12 +108,12 @@ def display_cad_overlay(self) -> bool: "Toggle on/off overlay of CAD model in plot." "Value should be 'true' or 'false'." """ - val = self._get_property('Display CAD Overlay') + val = self._get_property("Display CAD Overlay") return val @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Display CAD Overlay=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Display CAD Overlay=" + value]) @property def opacity(self) -> float: @@ -96,24 +121,24 @@ def opacity(self) -> float: "Adjust opacity of CAD model overlay: 0 Transparent - 1 Opaque." "Value should be between 0 and 100." """ - val = self._get_property('Opacity') + val = self._get_property("Opacity") return val @opacity.setter def opacity(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Opacity=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Opacity=" + value]) @property def vertical_offset(self) -> float: """Vertical Offset "Adjust vertical position of CAD model overlay." - " """ - val = self._get_property('Vertical Offset') + " """ + val = self._get_property("Vertical Offset") return val @vertical_offset.setter def vertical_offset(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Vertical Offset=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Vertical Offset=" + value]) @property def range_axis_rotation(self) -> float: @@ -121,12 +146,12 @@ def range_axis_rotation(self) -> float: "Adjust view angle for CAD model overlay by rotating it about plot horizontal axis." "Value should be between -180 and 180." """ - val = self._get_property('Range Axis Rotation') + val = self._get_property("Range Axis Rotation") return val @range_axis_rotation.setter def range_axis_rotation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Range Axis Rotation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Range Axis Rotation=" + value]) @property def lock_axes(self) -> bool: @@ -134,60 +159,60 @@ def lock_axes(self) -> bool: "Allow or prevent changing of axes when displayed plot traces are updated." "Value should be 'true' or 'false'." """ - val = self._get_property('Lock Axes') + val = self._get_property("Lock Axes") return val @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lock Axes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lock Axes=" + value]) @property def x_axis_min(self) -> float: """X-axis Min "Set lower extent of horizontal axis." - " """ - val = self._get_property('X-axis Min') + " """ + val = self._get_property("X-axis Min") return val @x_axis_min.setter def x_axis_min(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['X-axis Min=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["X-axis Min=" + value]) @property def x_axis_max(self) -> float: """X-axis Max "Set upper extent of horizontal axis." - " """ - val = self._get_property('X-axis Max') + " """ + val = self._get_property("X-axis Max") return val @x_axis_max.setter def x_axis_max(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['X-axis Max=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["X-axis Max=" + value]) @property def y_axis_min(self) -> float: """Y-axis Min "Set lower extent of vertical axis." - " """ - val = self._get_property('Y-axis Min') + " """ + val = self._get_property("Y-axis Min") return val @y_axis_min.setter def y_axis_min(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Min=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Y-axis Min=" + value]) @property def y_axis_max(self) -> float: """Y-axis Max "Set upper extent of vertical axis." - " """ - val = self._get_property('Y-axis Max') + " """ + val = self._get_property("Y-axis Max") return val @y_axis_max.setter def y_axis_max(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Max=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Y-axis Max=" + value]) @property def y_axis_range(self) -> float: @@ -195,12 +220,12 @@ def y_axis_range(self) -> float: "Adjust dB span of vertical axis, makes corresponding adjustment in Y-axis Min." "Value should be greater than 0." """ - val = self._get_property('Y-axis Range') + val = self._get_property("Y-axis Range") return val @y_axis_range.setter def y_axis_range(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Y-axis Range=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Y-axis Range=" + value]) @property def max_major_ticks(self) -> int: @@ -208,12 +233,12 @@ def max_major_ticks(self) -> int: "Set maximum number of major tick-mark intervals along horizontal axis." "Value should be between 1 and 30." """ - val = self._get_property('Max Major Ticks') + val = self._get_property("Max Major Ticks") return val @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Major Ticks=" + value]) @property def max_minor_ticks(self) -> int: @@ -221,12 +246,12 @@ def max_minor_ticks(self) -> int: "Set maximum number of minor tick-mark intervals between major ticks along horizontal axis." "Value should be between 0 and 100." """ - val = self._get_property('Max Minor Ticks') + val = self._get_property("Max Minor Ticks") return val @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Minor Ticks=" + value]) @property def max_major_ticks(self) -> int: @@ -234,12 +259,12 @@ def max_major_ticks(self) -> int: "Set maximum number of major tick-mark intervals along vertical axis." "Value should be between 1 and 30." """ - val = self._get_property('Max Major Ticks') + val = self._get_property("Max Major Ticks") return val @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Major Ticks=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Major Ticks=" + value]) @property def max_minor_ticks(self) -> int: @@ -247,12 +272,12 @@ def max_minor_ticks(self) -> int: "Set maximum number of minor tick-mark intervals between major ticks along vertical axis." "Value should be between 0 and 100." """ - val = self._get_property('Max Minor Ticks') + val = self._get_property("Max Minor Ticks") return val @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Minor Ticks=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Minor Ticks=" + value]) @property def axis_label_font(self): @@ -260,12 +285,12 @@ def axis_label_font(self): "Configure axis text labels font family, typeface, and size." "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ - val = self._get_property('Axis Label Font') + val = self._get_property("Axis Label Font") return val @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Axis Label Font=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Axis Label Font=" + value]) @property def axis_tick_label_font(self): @@ -273,33 +298,35 @@ def axis_tick_label_font(self): "Configure axis tick numeric labels font family, typeface, and size." "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ - val = self._get_property('Axis Tick Label Font') + val = self._get_property("Axis Tick Label Font") return val @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Axis Tick Label Font=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Axis Tick Label Font=" + value]) class MajorGridLineStyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style "Select line style of major-tick grid lines." - " """ - val = self._get_property('Major Grid Line Style') + " """ + val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] return val @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Major Grid Line Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Major Grid Line Style=" + value.value] + ) @property def major_grid_color(self): @@ -307,33 +334,35 @@ def major_grid_color(self): "Set color of major-tick grid lines." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Major Grid Color') + val = self._get_property("Major Grid Color") return val @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Major Grid Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Major Grid Color=" + value]) class MinorGridLineStyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style "Select line style of minor-tick grid lines." - " """ - val = self._get_property('Minor Grid Line Style') + " """ + val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] return val @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Minor Grid Line Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Minor Grid Line Style=" + value.value] + ) @property def minor_grid_color(self): @@ -341,12 +370,12 @@ def minor_grid_color(self): "Set color of minor-tick grid lines." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Minor Grid Color') + val = self._get_property("Minor Grid Color") return val @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Minor Grid Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Minor Grid Color=" + value]) @property def background_color(self): @@ -354,31 +383,33 @@ def background_color(self): "Set background color of entire plot." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Background Color') + val = self._get_property("Background Color") return val @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Background Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Background Color=" + value]) class BBPowerforPlotsUnitOption(Enum): - HERTZ = "hertz" - KILOHERTZ = "kilohertz" - MEGAHERTZ = "megahertz" - GIGAHERTZ = "gigahertz" + HERTZ = "hertz" + KILOHERTZ = "kilohertz" + MEGAHERTZ = "megahertz" + GIGAHERTZ = "gigahertz" @property def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit "Units to use for plotting broadband power densities." - " """ - val = self._get_property('BB Power for Plots Unit') + " """ + val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] return val @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['BB Power for Plots Unit=' + value.value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["BB Power for Plots Unit=" + value.value] + ) @property def bb_power_bandwidth(self) -> float: @@ -386,14 +417,14 @@ def bb_power_bandwidth(self) -> float: "Resolution bandwidth for broadband power." "Value should be between 1 and 1e+11." """ - val = self._get_property('BB Power Bandwidth') - val = self._convert_from_default_units(float(val), "") + val = self._get_property("BB Power Bandwidth") + val = self._convert_from_internal_units(float(val), "") return val @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value : float|str): - value = self._convert_to_default_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['BB Power Bandwidth=' + f"{value}"]) + def bb_power_bandwidth(self, value: float | str): + value = self._convert_to_internal_units(value, "") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["BB Power Bandwidth=" + f"{value}"]) @property def log_scale(self) -> bool: @@ -401,10 +432,9 @@ def log_scale(self) -> bool: "Toggles on/off using a log scale for the X-Axis." "Value should be 'true' or 'false'." """ - val = self._get_property('Log Scale') + val = self._get_property("Log Scale") return val @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Log Scale=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Log Scale=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py index f246d19aa13..f18416dff4f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class RfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -16,12 +41,12 @@ def enable_passive_noise(self) -> bool: "If true, the noise contributions of antennas and passive components are included in cosite simulation. Note: Antenna and passive component noise is always included in link analysis simulation.." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Passive Noise') + val = self._get_property("Enable Passive Noise") return val @enable_passive_noise.setter def enable_passive_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Passive Noise=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable Passive Noise=" + value]) @property def enforce_thermal_noise_floor(self) -> bool: @@ -29,10 +54,11 @@ def enforce_thermal_noise_floor(self) -> bool: "If true, all broadband noise is limited by the thermal noise floor (-174 dBm/Hz)." "Value should be 'true' or 'false'." """ - val = self._get_property('Enforce Thermal Noise Floor') + val = self._get_property("Enforce Thermal Noise Floor") return val @enforce_thermal_noise_floor.setter def enforce_thermal_noise_floor(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enforce Thermal Noise Floor=' + value]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Enforce Thermal Noise Floor=" + value] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py index b5f4232e109..61bc194ac21 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class RxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -24,7 +49,7 @@ def file(self) -> str: "Name of the measurement source." "Value should be a full file path." """ - val = self._get_property('File') + val = self._get_property("File") return val @property @@ -33,35 +58,35 @@ def source_file(self) -> str: "Name of the measurement source." "Value should be a full file path." """ - val = self._get_property('Source File') + val = self._get_property("Source File") return val @property def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." - " """ - val = self._get_property('Receive Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + " """ + val = self._get_property("Receive Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val class MeasurementModeOption(Enum): - AUDIO_SINAD = "Audio SINAD" - DIGITAL_BER = "Digital BER" - GPS_CNR = "GPS CNR" + AUDIO_SINAD = "Audio SINAD" + DIGITAL_BER = "Digital BER" + GPS_CNR = "GPS CNR" @property def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode "Defines the mode for the receiver measurement." - " """ - val = self._get_property('Measurement Mode') + " """ + val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] return val @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Measurement Mode=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Measurement Mode=" + value.value]) @property def sinad_threshold(self) -> float: @@ -69,12 +94,12 @@ def sinad_threshold(self) -> float: "SINAD Threshold used for the receiver measurements." "Value should be between 5 and 20." """ - val = self._get_property('SINAD Threshold') + val = self._get_property("SINAD Threshold") return val @sinad_threshold.setter def sinad_threshold(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['SINAD Threshold=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["SINAD Threshold=" + value]) @property def gps_cnr_threshold(self) -> float: @@ -82,12 +107,12 @@ def gps_cnr_threshold(self) -> float: "GPS CNR Threshold used for the receiver measurements." "Value should be between 15 and 30." """ - val = self._get_property('GPS CNR Threshold') + val = self._get_property("GPS CNR Threshold") return val @gps_cnr_threshold.setter def gps_cnr_threshold(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['GPS CNR Threshold=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["GPS CNR Threshold=" + value]) @property def ber_threshold(self) -> float: @@ -95,12 +120,12 @@ def ber_threshold(self) -> float: "BER Threshold used for the receiver measurements." "Value should be between -12 and -1." """ - val = self._get_property('BER Threshold') + val = self._get_property("BER Threshold") return val @ber_threshold.setter def ber_threshold(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['BER Threshold=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["BER Threshold=" + value]) @property def default_intended_power(self) -> bool: @@ -108,12 +133,12 @@ def default_intended_power(self) -> bool: "Specify the intended signal." "Value should be 'true' or 'false'." """ - val = self._get_property('Default Intended Power') + val = self._get_property("Default Intended Power") return val @default_intended_power.setter def default_intended_power(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Default Intended Power=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Default Intended Power=" + value]) @property def intended_signal_power(self) -> float: @@ -121,12 +146,12 @@ def intended_signal_power(self) -> float: "Specify the power level of the intended signal." "Value should be between -140 and -50." """ - val = self._get_property('Intended Signal Power') + val = self._get_property("Intended Signal Power") return val @intended_signal_power.setter def intended_signal_power(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Intended Signal Power=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Intended Signal Power=" + value]) @property def freq_deviation(self) -> float: @@ -134,14 +159,14 @@ def freq_deviation(self) -> float: "Specify the frequency deviation of the intended signal." "Value should be between 1000 and 200000." """ - val = self._get_property('Freq. Deviation') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Freq. Deviation") + val = self._convert_from_internal_units(float(val), "Freq") return val @freq_deviation.setter - def freq_deviation(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Freq. Deviation=' + f"{value}"]) + def freq_deviation(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Freq. Deviation=" + f"{value}"]) @property def modulation_depth(self) -> float: @@ -149,12 +174,12 @@ def modulation_depth(self) -> float: "Specify the modulation depth of the intended signal." "Value should be between 10 and 100." """ - val = self._get_property('Modulation Depth') + val = self._get_property("Modulation Depth") return val @modulation_depth.setter def modulation_depth(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Modulation Depth=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Modulation Depth=" + value]) @property def measure_selectivity(self) -> bool: @@ -162,12 +187,12 @@ def measure_selectivity(self) -> bool: "Enable/disable the measurement of the receiver's selectivity." "Value should be 'true' or 'false'." """ - val = self._get_property('Measure Selectivity') + val = self._get_property("Measure Selectivity") return val @measure_selectivity.setter def measure_selectivity(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Measure Selectivity=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Measure Selectivity=" + value]) @property def measure_mixer_products(self) -> bool: @@ -175,12 +200,12 @@ def measure_mixer_products(self) -> bool: "Enable/disable the measurement of the receiver's mixer products." "Value should be 'true' or 'false'." """ - val = self._get_property('Measure Mixer Products') + val = self._get_property("Measure Mixer Products") return val @measure_mixer_products.setter def measure_mixer_products(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Measure Mixer Products=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Measure Mixer Products=" + value]) @property def max_rf_order(self) -> int: @@ -188,12 +213,12 @@ def max_rf_order(self) -> int: "Max RF Order of the mixer products to measure." "Value should be greater than 1." """ - val = self._get_property('Max RF Order') + val = self._get_property("Max RF Order") return val @max_rf_order.setter def max_rf_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max RF Order=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max RF Order=" + value]) @property def max_lo_order(self) -> int: @@ -201,12 +226,12 @@ def max_lo_order(self) -> int: "Max LO Order of the mixer products to measure." "Value should be greater than 1." """ - val = self._get_property('Max LO Order') + val = self._get_property("Max LO Order") return val @max_lo_order.setter def max_lo_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max LO Order=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max LO Order=" + value]) @property def include_if(self) -> bool: @@ -214,12 +239,12 @@ def include_if(self) -> bool: "Enable/disable the measurement of the IF channel." "Value should be 'true' or 'false'." """ - val = self._get_property('Include IF') + val = self._get_property("Include IF") return val @include_if.setter def include_if(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include IF=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Include IF=" + value]) @property def measure_saturation(self) -> bool: @@ -227,12 +252,12 @@ def measure_saturation(self) -> bool: "Enable/disable measurement of the receiver's saturation level." "Value should be 'true' or 'false'." """ - val = self._get_property('Measure Saturation') + val = self._get_property("Measure Saturation") return val @measure_saturation.setter def measure_saturation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Measure Saturation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Measure Saturation=" + value]) @property def use_ams_limits(self) -> bool: @@ -240,12 +265,12 @@ def use_ams_limits(self) -> bool: "Allow AMS to determine the limits for measuring saturation." "Value should be 'true' or 'false'." """ - val = self._get_property('Use AMS Limits') + val = self._get_property("Use AMS Limits") return val @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Use AMS Limits=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Use AMS Limits=" + value]) @property def start_frequency(self) -> float: @@ -253,14 +278,14 @@ def start_frequency(self) -> float: "Starting frequency for the measurement sweep." "Value should be greater than 1e+06." """ - val = self._get_property('Start Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Start Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @start_frequency.setter - def start_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Start Frequency=' + f"{value}"]) + def start_frequency(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Start Frequency=" + f"{value}"]) @property def stop_frequency(self) -> float: @@ -268,14 +293,14 @@ def stop_frequency(self) -> float: "Stopping frequency for the measurement sweep." "Value should be less than 6e+09." """ - val = self._get_property('Stop Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Stop Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @stop_frequency.setter - def stop_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Stop Frequency=' + f"{value}"]) + def stop_frequency(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Stop Frequency=" + f"{value}"]) @property def samples(self) -> int: @@ -283,12 +308,12 @@ def samples(self) -> int: "Number of measurement samples for each frequency." "Value should be between 2 and 100." """ - val = self._get_property('Samples') + val = self._get_property("Samples") return val @samples.setter def samples(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Samples=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Samples=" + value]) @property def exclude_mixer_products_below_noise(self) -> bool: @@ -296,19 +321,20 @@ def exclude_mixer_products_below_noise(self) -> bool: "Include/Exclude Mixer Products below the noise." "Value should be 'true' or 'false'." """ - val = self._get_property('Exclude Mixer Products Below Noise') + val = self._get_property("Exclude Mixer Products Below Noise") return val @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Exclude Mixer Products Below Noise=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Exclude Mixer Products Below Noise=" + value] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py index 36b363a86fa..96a17d944b8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class RxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,'Csv') + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -21,29 +46,31 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) class MixerProductTaperOption(Enum): - CONSTANT = "Constant" - MIL_STD_461G = "MIL-STD-461G" - DUFF_MODEL = "Duff Model" + CONSTANT = "Constant" + MIL_STD_461G = "MIL-STD-461G" + DUFF_MODEL = "Duff Model" @property def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper "Taper for setting amplitude of mixer products." - " """ - val = self._get_property('Mixer Product Taper') + " """ + val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] return val @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Taper=' + value.value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Mixer Product Taper=" + value.value] + ) @property def mixer_product_susceptibility(self) -> float: @@ -51,12 +78,14 @@ def mixer_product_susceptibility(self) -> float: "Mixer product amplitudes (relative to the in-band susceptibility)." "Value should be between -200 and 200." """ - val = self._get_property('Mixer Product Susceptibility') + val = self._get_property("Mixer Product Susceptibility") return val @mixer_product_susceptibility.setter def mixer_product_susceptibility(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Susceptibility=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Mixer Product Susceptibility=" + value] + ) @property def spurious_rejection(self) -> float: @@ -64,12 +93,12 @@ def spurious_rejection(self) -> float: "Mixer product amplitudes (relative to the in-band susceptibility)." "Value should be between -200 and 200." """ - val = self._get_property('Spurious Rejection') + val = self._get_property("Spurious Rejection") return val @spurious_rejection.setter def spurious_rejection(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Spurious Rejection=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Spurious Rejection=" + value]) @property def minimum_tuning_frequency(self) -> float: @@ -77,14 +106,16 @@ def minimum_tuning_frequency(self) -> float: "Minimum tuning frequency of Rx's local oscillator." "Value should be between 1 and 1e+11." """ - val = self._get_property('Minimum Tuning Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Minimum Tuning Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Minimum Tuning Frequency=' + f"{value}"]) + def minimum_tuning_frequency(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Minimum Tuning Frequency=" + f"{value}"] + ) @property def maximum_tuning_frequency(self) -> float: @@ -92,14 +123,16 @@ def maximum_tuning_frequency(self) -> float: "Maximum tuning frequency of Rx's local oscillator." "Value should be between 1 and 1e+11." """ - val = self._get_property('Maximum Tuning Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Maximum Tuning Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Maximum Tuning Frequency=' + f"{value}"]) + def maximum_tuning_frequency(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Maximum Tuning Frequency=" + f"{value}"] + ) @property def mixer_product_slope(self) -> float: @@ -107,12 +140,12 @@ def mixer_product_slope(self) -> float: "Rate of decrease for amplitude of Rx's local oscillator harmonics (dB/decade)." "Value should be between 0 and 100." """ - val = self._get_property('Mixer Product Slope') + val = self._get_property("Mixer Product Slope") return val @mixer_product_slope.setter def mixer_product_slope(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Slope=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Mixer Product Slope=" + value]) @property def mixer_product_intercept(self) -> float: @@ -120,12 +153,12 @@ def mixer_product_intercept(self) -> float: "Mixer product intercept (dBc)." "Value should be between 0 and 100." """ - val = self._get_property('Mixer Product Intercept') + val = self._get_property("Mixer Product Intercept") return val @mixer_product_intercept.setter def mixer_product_intercept(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Intercept=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Mixer Product Intercept=" + value]) @property def _80_db_bandwidth(self) -> float: @@ -133,14 +166,14 @@ def _80_db_bandwidth(self) -> float: "Bandwidth where Rx's susceptibility envelope is 80 dB above in-band susceptibility level." "Value should be greater than 1." """ - val = self._get_property('80 dB Bandwidth') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("80 dB Bandwidth") + val = self._convert_from_internal_units(float(val), "Freq") return val @_80_db_bandwidth.setter - def _80_db_bandwidth(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['80 dB Bandwidth=' + f"{value}"]) + def _80_db_bandwidth(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["80 dB Bandwidth=" + f"{value}"]) @property def image_rejection(self) -> float: @@ -148,12 +181,12 @@ def image_rejection(self) -> float: "Image frequency amplitude (relative to the in-band susceptibility)." "Value should be between -200 and 200." """ - val = self._get_property('Image Rejection') + val = self._get_property("Image Rejection") return val @image_rejection.setter def image_rejection(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Image Rejection=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Image Rejection=" + value]) @property def maximum_rf_harmonic_order(self) -> int: @@ -161,12 +194,14 @@ def maximum_rf_harmonic_order(self) -> int: "Maximum order of RF frequency." "Value should be between 1 and 100." """ - val = self._get_property('Maximum RF Harmonic Order') + val = self._get_property("Maximum RF Harmonic Order") return val @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Maximum RF Harmonic Order=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Maximum RF Harmonic Order=" + value] + ) @property def maximum_lo_harmonic_order(self) -> int: @@ -174,30 +209,32 @@ def maximum_lo_harmonic_order(self) -> int: "Maximum order of the LO frequency." "Value should be between 1 and 100." """ - val = self._get_property('Maximum LO Harmonic Order') + val = self._get_property("Maximum LO Harmonic Order") return val @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Maximum LO Harmonic Order=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Maximum LO Harmonic Order=" + value] + ) class MixingModeOption(Enum): - ABOVETUNEDFREQUENCY = "LO Above Tuned (RF) Frequency" - BELOWTUNEDFREQUENCY = "LO Below Tuned (RF) Frequency" - BOTHTUNEDFREQUENCIES = "LO Above/Below Tuned (RF) Frequency" + ABOVETUNEDFREQUENCY = "LO Above Tuned (RF) Frequency" + BELOWTUNEDFREQUENCY = "LO Below Tuned (RF) Frequency" + BOTHTUNEDFREQUENCIES = "LO Above/Below Tuned (RF) Frequency" @property def mixing_mode(self) -> MixingModeOption: """Mixing Mode "Specifies whether the IF frequency is > or < RF channel frequency." - " """ - val = self._get_property('Mixing Mode') + " """ + val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] return val @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mixing Mode=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Mixing Mode=" + value.value]) @property def _1st_if_frequency(self): @@ -205,58 +242,61 @@ def _1st_if_frequency(self): "Intermediate frequency for Rx's 1st conversion stage." "Value should be a mathematical expression." """ - val = self._get_property('1st IF Frequency') + val = self._get_property("1st IF Frequency") return val @_1st_if_frequency.setter def _1st_if_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['1st IF Frequency=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["1st IF Frequency=" + value]) @property def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." - " """ - val = self._get_property('RF Transition Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + " """ + val = self._get_property("RF Transition Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @rf_transition_frequency.setter - def rf_transition_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['RF Transition Frequency=' + f"{value}"]) + def rf_transition_frequency(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["RF Transition Frequency=" + f"{value}"] + ) class UseHighLOOption(Enum): - ABOVETRANSITION = "Above Transition Frequency" - BELOWTRANSITION = "Below Transition Frequency" + ABOVETRANSITION = "Above Transition Frequency" + BELOWTRANSITION = "Below Transition Frequency" @property def use_high_lo(self) -> UseHighLOOption: """Use High LO "Use High LO above/below the transition frequency." - " """ - val = self._get_property('Use High LO') + " """ + val = self._get_property("Use High LO") val = self.UseHighLOOption[val] return val @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Use High LO=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Use High LO=" + value.value]) class MixerProductTableUnitsOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE = "Relative" + ABSOLUTE = "Absolute" + RELATIVE = "Relative" @property def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units "Specifies the units for the Mixer Products." - " """ - val = self._get_property('Mixer Product Table Units') + " """ + val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] return val @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mixer Product Table Units=' + value.value]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Mixer Product Table Units=" + value.value] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py index 90a5cbb272f..f1a12b5131b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class RxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,'Csv') + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -21,9 +46,8 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py index 3ed174e9172..3ed215135f1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class RxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,'Csv') + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -21,11 +46,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) @property def use_arithmetic_mean(self) -> bool: @@ -33,10 +58,9 @@ def use_arithmetic_mean(self) -> bool: "Uses arithmetic mean to center bandwidths about the tuned channel frequency." "Value should be 'true' or 'false'." """ - val = self._get_property('Use Arithmetic Mean') + val = self._get_property("Use Arithmetic Mean") return val @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Use Arithmetic Mean=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Use Arithmetic Mean=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py index 9318d8ee819..7e10d4aaab8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class RxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,'Csv') + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -20,13 +45,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -38,26 +63,25 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE = "Relative" + ABSOLUTE = "Absolute" + RELATIVE = "Relative" @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ - val = self._get_property('Spur Table Units') + " """ + val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Spur Table Units=' + value.value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Spur Table Units=" + value.value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py index 2d6ecffad7b..d27cad2bb65 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class RxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,43 +38,43 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) class SensitivityUnitsOption(Enum): - DBM = "dBm" - DBUV = "dBuV" - MILLIWATTS = "milliwatts" - MICROVOLTS = "microvolts" + DBM = "dBm" + DBUV = "dBuV" + MILLIWATTS = "milliwatts" + MICROVOLTS = "microvolts" @property def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units "Units to use for the Rx Sensitivity." - " """ - val = self._get_property('Sensitivity Units') + " """ + val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] return val @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Sensitivity Units=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Sensitivity Units=" + value.value]) @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr "Received signal power level at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ - val = self._get_property('Min. Receive Signal Pwr ') + val = self._get_property("Min. Receive Signal Pwr ") return val @min_receive_signal_pwr_.setter def min_receive_signal_pwr_(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Min. Receive Signal Pwr =' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Min. Receive Signal Pwr =" + value]) @property def snr_at_rx_signal_pwr(self) -> float: @@ -57,12 +82,12 @@ def snr_at_rx_signal_pwr(self) -> float: "Signal-to-Noise Ratio (dB) at specified received signal power at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ - val = self._get_property('SNR at Rx Signal Pwr') + val = self._get_property("SNR at Rx Signal Pwr") return val @snr_at_rx_signal_pwr.setter def snr_at_rx_signal_pwr(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['SNR at Rx Signal Pwr=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["SNR at Rx Signal Pwr=" + value]) @property def processing_gain(self) -> float: @@ -70,12 +95,12 @@ def processing_gain(self) -> float: "Rx processing gain (dB) of (optional) despreader." "Value should be between -1000 and 1000." """ - val = self._get_property('Processing Gain') + val = self._get_property("Processing Gain") return val @processing_gain.setter def processing_gain(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Processing Gain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Processing Gain=" + value]) @property def apply_pg_to_narrowband_only(self) -> bool: @@ -83,28 +108,29 @@ def apply_pg_to_narrowband_only(self) -> bool: "Processing gain captures the despreading effect and applies to NB signals only (not BB noise) when enabled." "Value should be 'true' or 'false'." """ - val = self._get_property('Apply PG to Narrowband Only') + val = self._get_property("Apply PG to Narrowband Only") return val @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Apply PG to Narrowband Only=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Apply PG to Narrowband Only=" + value] + ) @property def saturation_level(self) -> float: """Saturation Level "Rx input saturation level." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -1000 and 1000." """ - val = self._get_property('Saturation Level') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("Saturation Level") + val = self._convert_from_internal_units(float(val), "Power") return val @saturation_level.setter - def saturation_level(self, value : float|str): - value = self._convert_to_default_units(value, "Power Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Saturation Level=' + f"{value}"]) + def saturation_level(self, value: float | str): + value = self._convert_to_internal_units(value, "Power") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Saturation Level=" + f"{value}"]) @property def rx_noise_figure(self) -> float: @@ -112,41 +138,44 @@ def rx_noise_figure(self) -> float: "Rx noise figure (dB)." "Value should be between 0 and 1000." """ - val = self._get_property('Rx Noise Figure') + val = self._get_property("Rx Noise Figure") return val @rx_noise_figure.setter def rx_noise_figure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rx Noise Figure=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rx Noise Figure=" + value]) @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -1000 and 1000." """ - val = self._get_property('Receiver Sensitivity ') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("Receiver Sensitivity ") + val = self._convert_from_internal_units(float(val), "Power") return val @receiver_sensitivity_.setter - def receiver_sensitivity_(self, value : float|str): - value = self._convert_to_default_units(value, "Power Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Receiver Sensitivity =' + f"{value}"]) + def receiver_sensitivity_(self, value: float | str): + value = self._convert_to_internal_units(value, "Power") + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Receiver Sensitivity =" + f"{value}"] + ) @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity "SNR or SINAD at the specified sensitivity level." "Value should be between -1000 and 1000." """ - val = self._get_property('SNR/SINAD at Sensitivity ') + val = self._get_property("SNR/SINAD at Sensitivity ") return val @snrsinad_at_sensitivity_.setter def snrsinad_at_sensitivity_(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['SNR/SINAD at Sensitivity =' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["SNR/SINAD at Sensitivity =" + value] + ) @property def perform_rx_intermod_analysis(self) -> bool: @@ -154,60 +183,63 @@ def perform_rx_intermod_analysis(self) -> bool: "Performs a non-linear intermod analysis for the Rx." "Value should be 'true' or 'false'." """ - val = self._get_property('Perform Rx Intermod Analysis') + val = self._get_property("Perform Rx Intermod Analysis") return val @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Perform Rx Intermod Analysis=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Perform Rx Intermod Analysis=" + value] + ) @property def amplifier_saturation_level(self) -> float: """Amplifier Saturation Level "Internal Rx Amplifier's Saturation Level." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ - val = self._get_property('Amplifier Saturation Level') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("Amplifier Saturation Level") + val = self._convert_from_internal_units(float(val), "Power") return val @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): - value = self._convert_to_default_units(value, "Power Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Amplifier Saturation Level=' + f"{value}"]) + def amplifier_saturation_level(self, value: float | str): + value = self._convert_to_internal_units(value, "Power") + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Amplifier Saturation Level=" + f"{value}"] + ) @property - def _1_db_point_ref_input_(self) -> float: - """1-dB Point, Ref. Input + def p1_db_point_ref_input_(self) -> float: + """P1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -1000 and 1000." """ - val = self._get_property('1-dB Point, Ref. Input ') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("P1-dB Point, Ref. Input ") + val = self._convert_from_internal_units(float(val), "Power") return val - @_1_db_point_ref_input_.setter - def _1_db_point_ref_input_(self, value : float|str): - value = self._convert_to_default_units(value, "Power Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input =' + f"{value}"]) + @p1_db_point_ref_input_.setter + def p1_db_point_ref_input_(self, value: float | str): + value = self._convert_to_internal_units(value, "Power") + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["P1-dB Point, Ref. Input =" + f"{value}"] + ) @property def ip3_ref_input(self) -> float: """IP3, Ref. Input "Internal Rx Amplifier's 3rd order intercept point." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -1000 and 1000." """ - val = self._get_property('IP3, Ref. Input') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("IP3, Ref. Input") + val = self._convert_from_internal_units(float(val), "Power") return val @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): - value = self._convert_to_default_units(value, "Power Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + f"{value}"]) + def ip3_ref_input(self, value: float | str): + value = self._convert_to_internal_units(value, "Power") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["IP3, Ref. Input=" + f"{value}"]) @property def max_intermod_order(self) -> int: @@ -215,10 +247,9 @@ def max_intermod_order(self) -> int: "Internal Rx Amplifier's maximum intermod order to compute." "Value should be between 3 and 20." """ - val = self._get_property('Max Intermod Order') + val = self._get_property("Max Intermod Order") return val @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Intermod Order=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py index f3181d5e25d..73c26bfc68c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class SamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,11 +37,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Min: + "Min: " Value should be greater than 1." - "Max: + "Max: " Value should be greater than 1." """ return self._get_table_data() @@ -26,22 +51,22 @@ def table_data(self, value): self._set_table_data(value) class SamplingTypeOption(Enum): - SAMPLEALLCHANNELS = "Sample All Channels in Range(s)" - RANDOMSAMPLING = "Random Sampling" - UNIFORMSAMPLING = "Uniform Sampling" + SAMPLEALLCHANNELS = "Sample All Channels in Range(s)" + RANDOMSAMPLING = "Random Sampling" + UNIFORMSAMPLING = "Uniform Sampling" @property def sampling_type(self) -> SamplingTypeOption: """Sampling Type "Sampling to apply to this configuration." - " """ - val = self._get_property('Sampling Type') + " """ + val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] return val @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Sampling Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Sampling Type=" + value.value]) @property def specify_percentage(self) -> bool: @@ -49,12 +74,12 @@ def specify_percentage(self) -> bool: "Specify the number of channels to simulate via a percentage of the total available band channels." "Value should be 'true' or 'false'." """ - val = self._get_property('Specify Percentage') + val = self._get_property("Specify Percentage") return val @specify_percentage.setter def specify_percentage(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Specify Percentage=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Specify Percentage=" + value]) @property def percentage_of_channels(self) -> float: @@ -62,12 +87,12 @@ def percentage_of_channels(self) -> float: "Percentage of the Band Channels to simulate." "Value should be between 1 and 100." """ - val = self._get_property('Percentage of Channels') + val = self._get_property("Percentage of Channels") return val @percentage_of_channels.setter def percentage_of_channels(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Percentage of Channels=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Percentage of Channels=" + value]) @property def max__channelsrangeband(self) -> int: @@ -75,12 +100,14 @@ def max__channelsrangeband(self) -> int: "Maximum number of Band Channels to simulate." "Value should be between 1 and 100000." """ - val = self._get_property('Max # Channels/Range/Band') + val = self._get_property("Max # Channels/Range/Band") return val @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max # Channels/Range/Band=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Max # Channels/Range/Band=" + value] + ) @property def seed(self) -> int: @@ -88,34 +115,33 @@ def seed(self) -> int: "Seed for random channel generator." "Value should be greater than 0." """ - val = self._get_property('Seed') + val = self._get_property("Seed") return val @seed.setter def seed(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Seed=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Seed=" + value]) @property def total_tx_channels(self) -> int: """Total Tx Channels "Total number of transmit channels this configuration is capable of operating on." - " """ - val = self._get_property('Total Tx Channels') + " """ + val = self._get_property("Total Tx Channels") return val @property def total_rx_channels(self) -> int: """Total Rx Channels "Total number of receive channels this configuration is capable of operating on." - " """ - val = self._get_property('Total Rx Channels') + " """ + val = self._get_property("Total Rx Channels") return val @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ - val = self._get_property('Warnings') + " """ + val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py index 234bd94019d..52db51c4248 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class SceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -32,12 +57,14 @@ def show_relative_coordinates(self) -> bool: "Show Scene Group position and orientation in parent-node coords (False) or relative to placement coords (True)." "Value should be 'true' or 'false'." """ - val = self._get_property('Show Relative Coordinates') + val = self._get_property("Show Relative Coordinates") return val @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Show Relative Coordinates=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Show Relative Coordinates=" + value] + ) @property def position(self): @@ -45,12 +72,12 @@ def position(self): "Set position of the Scene Group in parent-node coordinates." "Value should be x/y/z, delimited by spaces." """ - val = self._get_property('Position') + val = self._get_property("Position") return val @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Position=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Position=" + value]) @property def relative_position(self): @@ -58,29 +85,29 @@ def relative_position(self): "Set position of the Scene Group relative to placement coordinates." "Value should be x/y/z, delimited by spaces." """ - val = self._get_property('Relative Position') + val = self._get_property("Relative Position") return val @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Relative Position=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Relative Position=" + value]) class OrientationModeOption(Enum): - RPYDEG = "Roll-Pitch-Yaw" - AETDEG = "Az-El-Twist" + RPYDEG = "Roll-Pitch-Yaw" + AETDEG = "Az-El-Twist" @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ - val = self._get_property('Orientation Mode') + " """ + val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Orientation Mode=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Orientation Mode=" + value.value]) @property def orientation(self): @@ -88,12 +115,12 @@ def orientation(self): "Set orientation of the Scene Group relative to parent-node coordinates." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - val = self._get_property('Orientation') + val = self._get_property("Orientation") return val @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Orientation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Orientation=" + value]) @property def relative_orientation(self): @@ -101,12 +128,12 @@ def relative_orientation(self): "Set orientation of the Scene Group relative to placement coordinates." "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ - val = self._get_property('Relative Orientation') + val = self._get_property("Relative Orientation") return val @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Relative Orientation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Relative Orientation=" + value]) @property def show_axes(self) -> bool: @@ -114,12 +141,12 @@ def show_axes(self) -> bool: "Toggle (on/off) display of Scene Group coordinate axes in 3-D window." "Value should be 'true' or 'false'." """ - val = self._get_property('Show Axes') + val = self._get_property("Show Axes") return val @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Show Axes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Show Axes=" + value]) @property def box_color(self): @@ -127,22 +154,21 @@ def box_color(self): "Set color of the bounding box of the Scene Group." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Box Color') + val = self._get_property("Box Color") return val @box_color.setter def box_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Box Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Box Color=" + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py index b72cf81d4b9..39865de49bc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class SelectivityTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -26,13 +51,13 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ - val = self._get_property('Data Source') + " """ + val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) @property def visible(self) -> bool: @@ -40,12 +65,12 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Visible') + val = self._get_property("Visible") return val @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) @property def custom_legend(self) -> bool: @@ -53,45 +78,45 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Custom Legend') + val = self._get_property("Custom Legend") return val @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ - val = self._get_property('Name') + " """ + val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ - val = self._get_property('Style') + " """ + val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) @property def line_width(self) -> int: @@ -99,12 +124,12 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - val = self._get_property('Line Width') + val = self._get_property("Line Width") return val @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) @property def line_color(self): @@ -112,42 +137,42 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Line Color') + val = self._get_property("Line Color") return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ - val = self._get_property('Symbol') + " """ + val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) @property def symbol_size(self) -> int: @@ -155,12 +180,12 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - val = self._get_property('Symbol Size') + val = self._get_property("Symbol Size") return val @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) @property def symbol_color(self): @@ -168,12 +193,12 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Symbol Color') + val = self._get_property("Symbol Color") return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) @property def symbol_line_width(self) -> int: @@ -181,12 +206,12 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - val = self._get_property('Symbol Line Width') + val = self._get_property("Symbol Line Width") return val @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) @property def symbol_filled(self) -> bool: @@ -194,10 +219,9 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - val = self._get_property('Symbol Filled') + val = self._get_property("Symbol Filled") return val @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py index 7516997a7af..ccc80e4f2bf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class SolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -16,12 +41,12 @@ def enabled(self) -> bool: "Enable/Disable coupling (A sweep disabled in HFSS/Layout cannot be enabled in EMIT)." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) @property def enable_refinement(self) -> bool: @@ -29,12 +54,12 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Refinement') + val = self._get_property("Enable Refinement") return val @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable Refinement=" + value]) @property def adaptive_sampling(self) -> bool: @@ -42,22 +67,21 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - val = self._get_property('Adaptive Sampling') + val = self._get_property("Adaptive Sampling") return val @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Adaptive Sampling=" + value]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ - val = self._get_property('Refinement Domain') + " """ + val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Refinement Domain=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py index 158fdd120aa..e6a7466dddb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class SolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -16,10 +41,9 @@ def enabled(self) -> bool: "Enable/Disable coupling (A setup disabled in HFSS/Layout cannot be enabled in EMIT)." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py index 894b82554ab..08a840f8b03 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class Sparameter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -23,12 +48,12 @@ def file(self) -> str: "S-Parameter file defining the component." "Value should be a full file path." """ - val = self._get_property('File') + val = self._get_property("File") return val @file.setter def file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['File=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["File=" + value]) @property def noise_temperature(self) -> float: @@ -36,56 +61,55 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - val = self._get_property('Noise Temperature') + val = self._get_property("Noise Temperature") return val @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Temperature=" + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) @property def radio_side_ports(self): """Radio Side Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ - val = self._get_property('Radio Side Ports') + " """ + val = self._get_property("Radio Side Ports") return val @radio_side_ports.setter def radio_side_ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Radio Side Ports=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Radio Side Ports=" + value]) @property def antenna_side_ports(self): """Antenna Side Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ - val = self._get_property('Antenna Side Ports') + " """ + val = self._get_property("Antenna Side Ports") return val @antenna_side_ports.setter def antenna_side_ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna Side Ports=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna Side Ports=" + value]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ - val = self._get_property('Warnings') + " """ + val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py index 0cb305937de..b4624da4c3b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class SpurTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -26,34 +51,34 @@ def delete(self): def channel_frequency(self): """Channel Frequency "Select band channel frequency to display." - " """ - val = self._get_property('Channel Frequency') + " """ + val = self._get_property("Channel Frequency") return val @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Channel Frequency=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Channel Frequency=" + value]) @property def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - " """ - val = self._get_property('Transmit Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + " """ + val = self._get_property("Transmit Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ - val = self._get_property('Data Source') + " """ + val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) @property def visible(self) -> bool: @@ -61,12 +86,12 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Visible') + val = self._get_property("Visible") return val @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) @property def custom_legend(self) -> bool: @@ -74,45 +99,45 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Custom Legend') + val = self._get_property("Custom Legend") return val @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ - val = self._get_property('Name') + " """ + val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ - val = self._get_property('Style') + " """ + val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) @property def line_width(self) -> int: @@ -120,12 +145,12 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - val = self._get_property('Line Width') + val = self._get_property("Line Width") return val @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) @property def line_color(self): @@ -133,42 +158,42 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Line Color') + val = self._get_property("Line Color") return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ - val = self._get_property('Symbol') + " """ + val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) @property def symbol_size(self) -> int: @@ -176,12 +201,12 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - val = self._get_property('Symbol Size') + val = self._get_property("Symbol Size") return val @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) @property def symbol_color(self): @@ -189,12 +214,12 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Symbol Color') + val = self._get_property("Symbol Color") return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) @property def symbol_line_width(self) -> int: @@ -202,12 +227,12 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - val = self._get_property('Symbol Line Width') + val = self._get_property("Symbol Line Width") return val @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) @property def symbol_filled(self) -> bool: @@ -215,10 +240,9 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - val = self._get_property('Symbol Filled') + val = self._get_property("Symbol Filled") return val @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py index 692fccf4286..f2cbb6e5f19 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TRSwitchTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -28,12 +53,12 @@ def input_port(self) -> int: "Specifies input port for the plotted outboard component." "Value should be greater than 1." """ - val = self._get_property('Input Port') + val = self._get_property("Input Port") return val @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Input Port=" + value]) @property def output_port(self) -> int: @@ -41,24 +66,24 @@ def output_port(self) -> int: "Specifies output port for the plotted outboard component." "Value should be greater than 1." """ - val = self._get_property('Output Port') + val = self._get_property("Output Port") return val @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Output Port=" + value]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ - val = self._get_property('Data Source') + " """ + val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) @property def visible(self) -> bool: @@ -66,12 +91,12 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Visible') + val = self._get_property("Visible") return val @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) @property def custom_legend(self) -> bool: @@ -79,45 +104,45 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Custom Legend') + val = self._get_property("Custom Legend") return val @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ - val = self._get_property('Name') + " """ + val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ - val = self._get_property('Style') + " """ + val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) @property def line_width(self) -> int: @@ -125,12 +150,12 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - val = self._get_property('Line Width') + val = self._get_property("Line Width") return val @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) @property def line_color(self): @@ -138,42 +163,42 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Line Color') + val = self._get_property("Line Color") return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ - val = self._get_property('Symbol') + " """ + val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) @property def symbol_size(self) -> int: @@ -181,12 +206,12 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - val = self._get_property('Symbol Size') + val = self._get_property("Symbol Size") return val @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) @property def symbol_color(self): @@ -194,12 +219,12 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Symbol Color') + val = self._get_property("Symbol Color") return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) @property def symbol_line_width(self) -> int: @@ -207,12 +232,12 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - val = self._get_property('Symbol Line Width') + val = self._get_property("Symbol Line Width") return val @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) @property def symbol_filled(self) -> bool: @@ -220,10 +245,9 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - val = self._get_property('Symbol Filled') + val = self._get_property("Symbol Filled") return val @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index 637c0a70c33..01c5a9ced51 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -23,12 +48,12 @@ def filename(self) -> str: "Name of file defining the outboard component." "Value should be a full file path." """ - val = self._get_property('Filename') + val = self._get_property("Filename") return val @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filename=" + value]) @property def noise_temperature(self) -> float: @@ -36,58 +61,60 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - val = self._get_property('Noise Temperature') + val = self._get_property("Noise Temperature") return val @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Temperature=" + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) class TxPortOption(Enum): - _0 = "Port 1" - _1 = "Port 2" + _0 = "Port 1" + _1 = "Port 2" @property def tx_port(self) -> TxPortOption: """Tx Port "Specifies which port on the TR Switch is part of the Tx path.." - " """ - val = self._get_property('Tx Port') + " """ + val = self._get_property("Tx Port") val = self.TxPortOption[val] return val @tx_port.setter def tx_port(self, value: TxPortOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Tx Port=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Tx Port=" + value.value]) class CommonPortLocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" @property def common_port_location(self) -> CommonPortLocationOption: """Common Port Location "Defines the orientation of the tr switch.." - " """ - val = self._get_property('Common Port Location') + " """ + val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] return val @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Common Port Location=' + value.value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Common Port Location=" + value.value] + ) @property def insertion_loss(self) -> float: @@ -95,12 +122,12 @@ def insertion_loss(self) -> float: "TR Switch in-band loss in forward direction.." "Value should be between 0 and 100." """ - val = self._get_property('Insertion Loss') + val = self._get_property("Insertion Loss") return val @insertion_loss.setter def insertion_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Insertion Loss=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Insertion Loss=" + value]) @property def finite_isolation(self) -> bool: @@ -108,12 +135,12 @@ def finite_isolation(self) -> bool: "Use a finite isolation. If disabled, the tr switch model is ideal (infinite isolation).." "Value should be 'true' or 'false'." """ - val = self._get_property('Finite Isolation') + val = self._get_property("Finite Isolation") return val @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Finite Isolation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Finite Isolation=" + value]) @property def isolation(self) -> float: @@ -121,12 +148,12 @@ def isolation(self) -> float: "TR Switch reverse isolation (i.e., loss between the Tx/Rx ports).." "Value should be between 0 and 100." """ - val = self._get_property('Isolation') + val = self._get_property("Isolation") return val @isolation.setter def isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Isolation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Isolation=" + value]) @property def finite_bandwidth(self) -> bool: @@ -134,12 +161,12 @@ def finite_bandwidth(self) -> bool: "Use a finite bandwidth. If disabled, the tr switch model is ideal (infinite bandwidth).." "Value should be 'true' or 'false'." """ - val = self._get_property('Finite Bandwidth') + val = self._get_property("Finite Bandwidth") return val @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Finite Bandwidth=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Finite Bandwidth=" + value]) @property def out_of_band_attenuation(self) -> float: @@ -147,12 +174,12 @@ def out_of_band_attenuation(self) -> float: "Out-of-band loss (attenuation)." "Value should be between 0 and 200." """ - val = self._get_property('Out-of-band Attenuation') + val = self._get_property("Out-of-band Attenuation") return val @out_of_band_attenuation.setter def out_of_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Out-of-band Attenuation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Out-of-band Attenuation=" + value]) @property def lower_stop_band(self) -> float: @@ -160,14 +187,14 @@ def lower_stop_band(self) -> float: "Lower stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @lower_stop_band.setter - def lower_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Stop Band=' + f"{value}"]) + def lower_stop_band(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Stop Band=" + f"{value}"]) @property def lower_cutoff(self) -> float: @@ -175,14 +202,14 @@ def lower_cutoff(self) -> float: "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Lower Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Lower Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @lower_cutoff.setter - def lower_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Lower Cutoff=' + f"{value}"]) + def lower_cutoff(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Cutoff=" + f"{value}"]) @property def higher_cutoff(self) -> float: @@ -190,14 +217,14 @@ def higher_cutoff(self) -> float: "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Cutoff') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Cutoff") + val = self._convert_from_internal_units(float(val), "Freq") return val @higher_cutoff.setter - def higher_cutoff(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Cutoff=' + f"{value}"]) + def higher_cutoff(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Cutoff=" + f"{value}"]) @property def higher_stop_band(self) -> float: @@ -205,12 +232,11 @@ def higher_stop_band(self) -> float: "Higher stop band frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Higher Stop Band') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Higher Stop Band") + val = self._convert_from_internal_units(float(val), "Freq") return val @higher_stop_band.setter - def higher_stop_band(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Higher Stop Band=' + f"{value}"]) - + def higher_stop_band(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Stop Band=" + f"{value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index a594dffbe96..cde034e4c02 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class Terminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -23,12 +48,12 @@ def filename(self) -> str: "Name of file defining the Terminator." "Value should be a full file path." """ - val = self._get_property('Filename') + val = self._get_property("Filename") return val @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filename=" + value]) @property def noise_temperature(self) -> float: @@ -36,58 +61,58 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - val = self._get_property('Noise Temperature') + val = self._get_property("Noise Temperature") return val @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Temperature=" + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) class TypeOption(Enum): - BYFILE = "By File" - PARAMETRIC = "Parametric" + BYFILE = "By File" + PARAMETRIC = "Parametric" @property def type(self) -> TypeOption: """Type "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." - " """ - val = self._get_property('Type') + " """ + val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Type=" + value.value]) class PortLocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + RADIOSIDE = "Radio Side" + ANTENNASIDE = "Antenna Side" @property def port_location(self) -> PortLocationOption: """Port Location "Defines the orientation of the terminator.." - " """ - val = self._get_property('Port Location') + " """ + val = self._get_property("Port Location") val = self.PortLocationOption[val] return val @port_location.setter def port_location(self, value: PortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Port Location=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Port Location=" + value.value]) @property def vswr(self) -> float: @@ -95,18 +120,17 @@ def vswr(self) -> float: "The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch between the terminator and the connected component (RF System, Antenna, etc)." "Value should be between 1 and 100." """ - val = self._get_property('VSWR') + val = self._get_property("VSWR") return val @vswr.setter def vswr(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['VSWR=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["VSWR=" + value]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ - val = self._get_property('Warnings') + " """ + val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py index 8939856d763..8ee88209acd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TestNoiseTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -28,12 +53,12 @@ def input_port(self) -> int: "Specifies input port for the plotted outboard component." "Value should be greater than 1." """ - val = self._get_property('Input Port') + val = self._get_property("Input Port") return val @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Input Port=" + value]) @property def output_port(self) -> int: @@ -41,24 +66,24 @@ def output_port(self) -> int: "Specifies output port for the plotted outboard component." "Value should be greater than 1." """ - val = self._get_property('Output Port') + val = self._get_property("Output Port") return val @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Output Port=" + value]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ - val = self._get_property('Data Source') + " """ + val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) @property def visible(self) -> bool: @@ -66,12 +91,12 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Visible') + val = self._get_property("Visible") return val @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) @property def custom_legend(self) -> bool: @@ -79,45 +104,45 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Custom Legend') + val = self._get_property("Custom Legend") return val @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ - val = self._get_property('Name') + " """ + val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ - val = self._get_property('Style') + " """ + val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) @property def line_width(self) -> int: @@ -125,12 +150,12 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - val = self._get_property('Line Width') + val = self._get_property("Line Width") return val @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) @property def line_color(self): @@ -138,42 +163,42 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Line Color') + val = self._get_property("Line Color") return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ - val = self._get_property('Symbol') + " """ + val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) @property def symbol_size(self) -> int: @@ -181,12 +206,12 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - val = self._get_property('Symbol Size') + val = self._get_property("Symbol Size") return val @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) @property def symbol_color(self): @@ -194,12 +219,12 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Symbol Color') + val = self._get_property("Symbol Color") return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) @property def symbol_line_width(self) -> int: @@ -207,12 +232,12 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - val = self._get_property('Symbol Line Width') + val = self._get_property("Symbol Line Width") return val @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) @property def symbol_filled(self) -> bool: @@ -220,12 +245,12 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - val = self._get_property('Symbol Filled') + val = self._get_property("Symbol Filled") return val @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) @property def frequency_1(self) -> float: @@ -233,30 +258,29 @@ def frequency_1(self) -> float: "1st test tone frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Frequency 1') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Frequency 1") + val = self._convert_from_internal_units(float(val), "Freq") return val @frequency_1.setter - def frequency_1(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Frequency 1=' + f"{value}"]) + def frequency_1(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Frequency 1=" + f"{value}"]) @property def amplitude_1(self) -> float: """Amplitude 1 "1st test tone amplitude." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -100 and 200." """ - val = self._get_property('Amplitude 1') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("Amplitude 1") + val = self._convert_from_internal_units(float(val), "Power") return val @amplitude_1.setter - def amplitude_1(self, value : float|str): - value = self._convert_to_default_units(value, "Power Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Amplitude 1=' + f"{value}"]) + def amplitude_1(self, value: float | str): + value = self._convert_to_internal_units(value, "Power") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Amplitude 1=" + f"{value}"]) @property def bandwidth_1(self) -> float: @@ -264,14 +288,14 @@ def bandwidth_1(self) -> float: "1st test tone bandwidth." "Value should be greater than 1." """ - val = self._get_property('Bandwidth 1') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Bandwidth 1") + val = self._convert_from_internal_units(float(val), "Freq") return val @bandwidth_1.setter - def bandwidth_1(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth 1=' + f"{value}"]) + def bandwidth_1(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Bandwidth 1=" + f"{value}"]) @property def frequency_2(self) -> float: @@ -279,30 +303,29 @@ def frequency_2(self) -> float: "2nd test tone frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Frequency 2') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Frequency 2") + val = self._convert_from_internal_units(float(val), "Freq") return val @frequency_2.setter - def frequency_2(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Frequency 2=' + f"{value}"]) + def frequency_2(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Frequency 2=" + f"{value}"]) @property def amplitude_2(self) -> float: """Amplitude 2 "2nd test tone amplitude." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -100 and 200." """ - val = self._get_property('Amplitude 2') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("Amplitude 2") + val = self._convert_from_internal_units(float(val), "Power") return val @amplitude_2.setter - def amplitude_2(self, value : float|str): - value = self._convert_to_default_units(value, "Power Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Amplitude 2=' + f"{value}"]) + def amplitude_2(self, value: float | str): + value = self._convert_to_internal_units(value, "Power") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Amplitude 2=" + f"{value}"]) @property def bandwidth_2(self) -> float: @@ -310,14 +333,14 @@ def bandwidth_2(self) -> float: "2nd test tone bandwidth." "Value should be greater than 1." """ - val = self._get_property('Bandwidth 2') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Bandwidth 2") + val = self._convert_from_internal_units(float(val), "Freq") return val @bandwidth_2.setter - def bandwidth_2(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth 2=' + f"{value}"]) + def bandwidth_2(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Bandwidth 2=" + f"{value}"]) @property def noise_level(self) -> float: @@ -325,10 +348,9 @@ def noise_level(self) -> float: "Broadband noise level." "Value should be between -200 and 0." """ - val = self._get_property('Noise Level') + val = self._get_property("Noise Level") return val @noise_level.setter def noise_level(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Level=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Level=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py index 51d239917c9..8784f3bfd94 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py @@ -1,7 +1,31 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TopLevelSimulation(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py index 32fe5a1c122..e63cbb03ec7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -28,12 +53,12 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) @property def enable_refinement(self) -> bool: @@ -41,12 +66,12 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Refinement') + val = self._get_property("Enable Refinement") return val @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable Refinement=" + value]) @property def adaptive_sampling(self) -> bool: @@ -54,24 +79,24 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - val = self._get_property('Adaptive Sampling') + val = self._get_property("Adaptive Sampling") return val @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Adaptive Sampling=" + value]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ - val = self._get_property('Refinement Domain') + " """ + val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Refinement Domain=" + value]) @property def filename(self) -> str: @@ -79,19 +104,19 @@ def filename(self) -> str: "Name of file with coupling data.." "Value should be a full file path." """ - val = self._get_property('Filename') + val = self._get_property("Filename") return val @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Filename=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filename=" + value]) @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File "Coupling data generated by Savant and exported as a matched file." - " """ - val = self._get_property('Savant Matched Coupling File') + " """ + val = self._get_property("Savant Matched Coupling File") return val @property @@ -100,35 +125,34 @@ def enable_em_isolation(self) -> bool: "Enables/disables EM isolation." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable EM Isolation') + val = self._get_property("Enable EM Isolation") return val @enable_em_isolation.setter def enable_em_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable EM Isolation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable EM Isolation=" + value]) @property def port_antenna_assignment(self): """Port-Antenna Assignment "Maps each port in the coupling file to an antenna in the project." "A list of values." - " """ - val = self._get_property('Port-Antenna Assignment') + " """ + val = self._get_property("Port-Antenna Assignment") return val @port_antenna_assignment.setter def port_antenna_assignment(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Port-Antenna Assignment=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Port-Antenna Assignment=" + value]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py index cfc05a96403..85451650259 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TunableTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -28,12 +53,12 @@ def input_port(self) -> int: "Specifies input port for the plotted outboard component." "Value should be greater than 1." """ - val = self._get_property('Input Port') + val = self._get_property("Input Port") return val @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Input Port=" + value]) @property def output_port(self) -> int: @@ -41,38 +66,38 @@ def output_port(self) -> int: "Specifies output port for the plotted outboard component." "Value should be greater than 1." """ - val = self._get_property('Output Port') + val = self._get_property("Output Port") return val @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Output Port=" + value]) @property def frequency(self) -> float: """Frequency "Tunable filter center frequency." - " """ - val = self._get_property('Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + " """ + val = self._get_property("Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @frequency.setter - def frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Frequency=' + f"{value}"]) + def frequency(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Frequency=" + f"{value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ - val = self._get_property('Data Source') + " """ + val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) @property def visible(self) -> bool: @@ -80,12 +105,12 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Visible') + val = self._get_property("Visible") return val @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) @property def custom_legend(self) -> bool: @@ -93,45 +118,45 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Custom Legend') + val = self._get_property("Custom Legend") return val @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ - val = self._get_property('Name') + " """ + val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ - val = self._get_property('Style') + " """ + val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) @property def line_width(self) -> int: @@ -139,12 +164,12 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - val = self._get_property('Line Width') + val = self._get_property("Line Width") return val @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) @property def line_color(self): @@ -152,42 +177,42 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Line Color') + val = self._get_property("Line Color") return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ - val = self._get_property('Symbol') + " """ + val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) @property def symbol_size(self) -> int: @@ -195,12 +220,12 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - val = self._get_property('Symbol Size') + val = self._get_property("Symbol Size") return val @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) @property def symbol_color(self): @@ -208,12 +233,12 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Symbol Color') + val = self._get_property("Symbol Color") return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) @property def symbol_line_width(self) -> int: @@ -221,12 +246,12 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - val = self._get_property('Symbol Line Width') + val = self._get_property("Symbol Line Width") return val @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) @property def symbol_filled(self) -> bool: @@ -234,10 +259,9 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - val = self._get_property('Symbol Filled') + val = self._get_property("Symbol Filled") return val @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py index c56bc414f9a..5c1f80af07f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -28,36 +53,36 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Antenna A') + " """ + val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna A=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna A=" + value]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Antenna B') + " """ + val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna B=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna B=" + value]) @property def enable_refinement(self) -> bool: @@ -65,12 +90,12 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Refinement') + val = self._get_property("Enable Refinement") return val @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable Refinement=" + value]) @property def adaptive_sampling(self) -> bool: @@ -78,24 +103,24 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - val = self._get_property('Adaptive Sampling') + val = self._get_property("Adaptive Sampling") return val @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Adaptive Sampling=" + value]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ - val = self._get_property('Refinement Domain') + " """ + val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Refinement Domain=" + value]) @property def ground_reflection_coeff(self) -> float: @@ -103,12 +128,12 @@ def ground_reflection_coeff(self) -> float: "The ground reflection coefficient." "Value should be between -100 and 100." """ - val = self._get_property('Ground Reflection Coeff.') + val = self._get_property("Ground Reflection Coeff.") return val @ground_reflection_coeff.setter def ground_reflection_coeff(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Ground Reflection Coeff.=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Ground Reflection Coeff.=" + value]) @property def pointspeak(self) -> int: @@ -116,12 +141,12 @@ def pointspeak(self) -> int: "Number of points used to model each peak in frequency vs loss curve." "Value should be between 3 and 100." """ - val = self._get_property('Points/Peak') + val = self._get_property("Points/Peak") return val @pointspeak.setter def pointspeak(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Points/Peak=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Points/Peak=" + value]) @property def custom_fading_margin(self) -> float: @@ -129,12 +154,12 @@ def custom_fading_margin(self) -> float: "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Custom Fading Margin') + val = self._get_property("Custom Fading Margin") return val @custom_fading_margin.setter def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Fading Margin=" + value]) @property def polarization_mismatch(self) -> float: @@ -142,12 +167,12 @@ def polarization_mismatch(self) -> float: "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Polarization Mismatch') + val = self._get_property("Polarization Mismatch") return val @polarization_mismatch.setter def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Mismatch=" + value]) @property def pointing_error_loss(self) -> float: @@ -155,31 +180,31 @@ def pointing_error_loss(self) -> float: "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Pointing Error Loss') + val = self._get_property("Pointing Error Loss") return val @pointing_error_loss.setter def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pointing Error Loss=" + value]) class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ - val = self._get_property('Fading Type') + " """ + val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Type=" + value.value]) @property def fading_availability(self) -> float: @@ -187,12 +212,12 @@ def fading_availability(self) -> float: "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - val = self._get_property('Fading Availability') + val = self._get_property("Fading Availability") return val @fading_availability.setter def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Availability=" + value]) @property def std_deviation(self) -> float: @@ -200,12 +225,12 @@ def std_deviation(self) -> float: "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - val = self._get_property('Std Deviation') + val = self._get_property("Std Deviation") return val @std_deviation.setter def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Std Deviation=" + value]) @property def include_rain_attenuation(self) -> bool: @@ -213,12 +238,12 @@ def include_rain_attenuation(self) -> bool: "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Rain Attenuation') + val = self._get_property("Include Rain Attenuation") return val @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Include Rain Attenuation=" + value]) @property def rain_availability(self) -> float: @@ -226,12 +251,12 @@ def rain_availability(self) -> float: "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - val = self._get_property('Rain Availability') + val = self._get_property("Rain Availability") return val @rain_availability.setter def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Availability=" + value]) @property def rain_rate(self) -> float: @@ -239,12 +264,12 @@ def rain_rate(self) -> float: "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - val = self._get_property('Rain Rate') + val = self._get_property("Rain Rate") return val @rain_rate.setter def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Rate=" + value]) @property def polarization_tilt_angle(self) -> float: @@ -252,12 +277,12 @@ def polarization_tilt_angle(self) -> float: "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - val = self._get_property('Polarization Tilt Angle') + val = self._get_property("Polarization Tilt Angle") return val @polarization_tilt_angle.setter def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Tilt Angle=" + value]) @property def include_atmospheric_absorption(self) -> bool: @@ -265,12 +290,14 @@ def include_atmospheric_absorption(self) -> bool: "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Atmospheric Absorption') + val = self._get_property("Include Atmospheric Absorption") return val @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Include Atmospheric Absorption=" + value] + ) @property def temperature(self) -> float: @@ -278,12 +305,12 @@ def temperature(self) -> float: "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - val = self._get_property('Temperature') + val = self._get_property("Temperature") return val @temperature.setter def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Temperature=" + value]) @property def total_air_pressure(self) -> float: @@ -291,12 +318,12 @@ def total_air_pressure(self) -> float: "Total air pressure." "Value should be between 0 and 2000." """ - val = self._get_property('Total Air Pressure') + val = self._get_property("Total Air Pressure") return val @total_air_pressure.setter def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Total Air Pressure=" + value]) @property def water_vapor_concentration(self) -> float: @@ -304,10 +331,11 @@ def water_vapor_concentration(self) -> float: "Water vapor concentration." "Value should be between 0 and 2000." """ - val = self._get_property('Water Vapor Concentration') + val = self._get_property("Water Vapor Concentration") return val @water_vapor_concentration.setter def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Water Vapor Concentration=" + value] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py index 386ffa82a7b..ced1e76c9fe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TwoToneTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -28,12 +53,12 @@ def input_port(self) -> int: "Specifies input port for the plotted outboard component." "Value should be greater than 1." """ - val = self._get_property('Input Port') + val = self._get_property("Input Port") return val @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Input Port=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Input Port=" + value]) @property def output_port(self) -> int: @@ -41,24 +66,24 @@ def output_port(self) -> int: "Specifies output port for the plotted outboard component." "Value should be greater than 1." """ - val = self._get_property('Output Port') + val = self._get_property("Output Port") return val @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Output Port=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Output Port=" + value]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ - val = self._get_property('Data Source') + " """ + val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Data Source=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) @property def visible(self) -> bool: @@ -66,12 +91,12 @@ def visible(self) -> bool: "Toggle (on/off) display of this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Visible') + val = self._get_property("Visible") return val @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Visible=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) @property def custom_legend(self) -> bool: @@ -79,45 +104,45 @@ def custom_legend(self) -> bool: "Enable/disable custom legend entry for this plot trace." "Value should be 'true' or 'false'." """ - val = self._get_property('Custom Legend') + val = self._get_property("Custom Legend") return val @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Legend=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ - val = self._get_property('Name') + " """ + val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Name=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ - val = self._get_property('Style') + " """ + val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Style=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) @property def line_width(self) -> int: @@ -125,12 +150,12 @@ def line_width(self) -> int: "Specify line width of plot trace." "Value should be between 1 and 100." """ - val = self._get_property('Line Width') + val = self._get_property("Line Width") return val @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) @property def line_color(self): @@ -138,42 +163,42 @@ def line_color(self): "Specify line color of plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Line Color') + val = self._get_property("Line Color") return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Line Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ - val = self._get_property('Symbol') + " """ + val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) @property def symbol_size(self) -> int: @@ -181,12 +206,12 @@ def symbol_size(self) -> int: "Set size (in points) of symbols marking points along plot trace." "Value should be between 1 and 1000." """ - val = self._get_property('Symbol Size') + val = self._get_property("Symbol Size") return val @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Size=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) @property def symbol_color(self): @@ -194,12 +219,12 @@ def symbol_color(self): "Specify color of symbols marking points along plot trace." "Color should be in RGB form: #RRGGBB." """ - val = self._get_property('Symbol Color') + val = self._get_property("Symbol Color") return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Color=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) @property def symbol_line_width(self) -> int: @@ -207,12 +232,12 @@ def symbol_line_width(self) -> int: "Set the width of the line used to draw the symbol." "Value should be between 1 and 20." """ - val = self._get_property('Symbol Line Width') + val = self._get_property("Symbol Line Width") return val @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Line Width=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) @property def symbol_filled(self) -> bool: @@ -220,12 +245,12 @@ def symbol_filled(self) -> bool: "If true, the interior of the symbol is filled - has no effect for some symbol types." "Value should be 'true' or 'false'." """ - val = self._get_property('Symbol Filled') + val = self._get_property("Symbol Filled") return val @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Symbol Filled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) @property def frequency_1(self) -> float: @@ -233,30 +258,29 @@ def frequency_1(self) -> float: "1st test tone frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Frequency 1') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Frequency 1") + val = self._convert_from_internal_units(float(val), "Freq") return val @frequency_1.setter - def frequency_1(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Frequency 1=' + f"{value}"]) + def frequency_1(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Frequency 1=" + f"{value}"]) @property def amplitude_1(self) -> float: """Amplitude 1 "1st test tone amplitude." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -100 and 200." """ - val = self._get_property('Amplitude 1') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("Amplitude 1") + val = self._convert_from_internal_units(float(val), "Power") return val @amplitude_1.setter - def amplitude_1(self, value : float|str): - value = self._convert_to_default_units(value, "Power Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Amplitude 1=' + f"{value}"]) + def amplitude_1(self, value: float | str): + value = self._convert_to_internal_units(value, "Power") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Amplitude 1=" + f"{value}"]) @property def bandwidth_1(self) -> float: @@ -264,14 +288,14 @@ def bandwidth_1(self) -> float: "1st test tone bandwidth." "Value should be greater than 1." """ - val = self._get_property('Bandwidth 1') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Bandwidth 1") + val = self._convert_from_internal_units(float(val), "Freq") return val @bandwidth_1.setter - def bandwidth_1(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth 1=' + f"{value}"]) + def bandwidth_1(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Bandwidth 1=" + f"{value}"]) @property def frequency_2(self) -> float: @@ -279,30 +303,29 @@ def frequency_2(self) -> float: "2nd test tone frequency." "Value should be between 1 and 1e+11." """ - val = self._get_property('Frequency 2') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Frequency 2") + val = self._convert_from_internal_units(float(val), "Freq") return val @frequency_2.setter - def frequency_2(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Frequency 2=' + f"{value}"]) + def frequency_2(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Frequency 2=" + f"{value}"]) @property def amplitude_2(self) -> float: """Amplitude 2 "2nd test tone amplitude." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -100 and 200." """ - val = self._get_property('Amplitude 2') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("Amplitude 2") + val = self._convert_from_internal_units(float(val), "Power") return val @amplitude_2.setter - def amplitude_2(self, value : float|str): - value = self._convert_to_default_units(value, "Power Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Amplitude 2=' + f"{value}"]) + def amplitude_2(self, value: float | str): + value = self._convert_to_internal_units(value, "Power") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Amplitude 2=" + f"{value}"]) @property def bandwidth_2(self) -> float: @@ -310,14 +333,14 @@ def bandwidth_2(self) -> float: "2nd test tone bandwidth." "Value should be greater than 1." """ - val = self._get_property('Bandwidth 2') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Bandwidth 2") + val = self._convert_from_internal_units(float(val), "Freq") return val @bandwidth_2.setter - def bandwidth_2(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Bandwidth 2=' + f"{value}"]) + def bandwidth_2(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Bandwidth 2=" + f"{value}"]) @property def noise_level(self) -> float: @@ -325,10 +348,9 @@ def noise_level(self) -> float: "Broadband noise level." "Value should be between -200 and 0." """ - val = self._get_property('Noise Level') + val = self._get_property("Noise Level") return val @noise_level.setter def noise_level(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Level=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Level=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py index 97701c534a9..4a6d89e8efb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,'Csv') + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -22,9 +47,9 @@ def delete(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): " Value should be between -200 and 150." """ return self._get_table_data() @@ -36,30 +61,30 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) class NoiseBehaviorOption(Enum): - ABSOLUTE = "Absolute" - RELATIVEBANDWIDTH = "Relative (Bandwidth)" - RELATIVEOFFSET = "Relative (Offset)" - BROADBANDEQUATION = "Equation" + ABSOLUTE = "Absolute" + RELATIVEBANDWIDTH = "Relative (Bandwidth)" + RELATIVEOFFSET = "Relative (Offset)" + BROADBANDEQUATION = "Equation" @property def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior "Specifies the behavior of the parametric noise profile." - " """ - val = self._get_property('Noise Behavior') + " """ + val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] return val @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Behavior=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Behavior=" + value.value]) @property def use_log_linear_interpolation(self) -> bool: @@ -67,10 +92,11 @@ def use_log_linear_interpolation(self) -> bool: "If true, linear interpolation in the log domain is used. If false, linear interpolation in the linear domain is used.." "Value should be 'true' or 'false'." """ - val = self._get_property('Use Log-Linear Interpolation') + val = self._get_property("Use Log-Linear Interpolation") return val @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Use Log-Linear Interpolation=' + value]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Use Log-Linear Interpolation=" + value] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py index 471ede6873b..449b1cbed1b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,'Csv') + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -21,26 +46,27 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) class HarmonicTableUnitsOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE = "Relative" + ABSOLUTE = "Absolute" + RELATIVE = "Relative" @property def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units "Specifies the units for the Harmonics." - " """ - val = self._get_property('Harmonic Table Units') + " """ + val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] return val @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Table Units=' + value.value]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Harmonic Table Units=" + value.value] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py index 576e7140b96..f13313b3482 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -24,7 +49,7 @@ def file(self) -> str: "Name of the measurement source." "Value should be a full file path." """ - val = self._get_property('File') + val = self._get_property("File") return val @property @@ -33,16 +58,16 @@ def source_file(self) -> str: "Name of the measurement source." "Value should be a full file path." """ - val = self._get_property('Source File') + val = self._get_property("Source File") return val @property def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." - " """ - val = self._get_property('Transmit Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + " """ + val = self._get_property("Transmit Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @property @@ -51,12 +76,12 @@ def use_ams_limits(self) -> bool: "Allow AMS to define the frequency limits for the measurements." "Value should be 'true' or 'false'." """ - val = self._get_property('Use AMS Limits') + val = self._get_property("Use AMS Limits") return val @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Use AMS Limits=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Use AMS Limits=" + value]) @property def start_frequency(self) -> float: @@ -64,14 +89,14 @@ def start_frequency(self) -> float: "Starting frequency for the measurement sweep." "Value should be greater than 1e+06." """ - val = self._get_property('Start Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Start Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @start_frequency.setter - def start_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Start Frequency=' + f"{value}"]) + def start_frequency(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Start Frequency=" + f"{value}"]) @property def stop_frequency(self) -> float: @@ -79,14 +104,14 @@ def stop_frequency(self) -> float: "Stopping frequency for the measurement sweep." "Value should be less than 6e+09." """ - val = self._get_property('Stop Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + val = self._get_property("Stop Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @stop_frequency.setter - def stop_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Stop Frequency=' + f"{value}"]) + def stop_frequency(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Stop Frequency=" + f"{value}"]) @property def exclude_harmonics_below_noise(self) -> bool: @@ -94,19 +119,20 @@ def exclude_harmonics_below_noise(self) -> bool: "Include/Exclude Harmonics below the noise." "Value should be 'true' or 'false'." """ - val = self._get_property('Exclude Harmonics Below Noise') + val = self._get_property("Exclude Harmonics Below Noise") return val @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Exclude Harmonics Below Noise=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Exclude Harmonics Below Noise=" + value] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py index 1c069ae9ce6..ce31376dda3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,'Csv') + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -21,40 +46,43 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) class NarrowbandBehaviorOption(Enum): - ABSOLUTE = "Absolute Freqs and Power" - RELATIVEBANDWIDTH = "Relative Freqs and Attenuation" + ABSOLUTE = "Absolute Freqs and Power" + RELATIVEBANDWIDTH = "Relative Freqs and Attenuation" @property def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." - " """ - val = self._get_property('Narrowband Behavior') + " """ + val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] return val @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Narrowband Behavior=' + value.value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Narrowband Behavior=" + value.value] + ) @property def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - " """ - val = self._get_property('Measurement Frequency') - val = self._convert_from_default_units(float(val), "Freq Unit") + " """ + val = self._get_property("Measurement Frequency") + val = self._convert_from_internal_units(float(val), "Freq") return val @measurement_frequency.setter - def measurement_frequency(self, value : float|str): - value = self._convert_to_default_units(value, "Freq Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Measurement Frequency=' + f"{value}"]) - + def measurement_frequency(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Measurement Frequency=" + f"{value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py new file mode 100644 index 00000000000..4d8b8bc6c99 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py @@ -0,0 +1,201 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + +from ..EmitNode import * + + +class TxSpectralProfEmitterNode(EmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + EmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def enabled(self) -> bool: + """Enabled state for this node.""" + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + + @enabled.setter + def enabled(self, value: bool): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) + + @property + def output_voltage_peak(self) -> float: + """Output Voltage Peak + "Output High Voltage Level: maximum voltage of the digital signal." + " """ + val = self._get_property("Output Voltage Peak") + val = self._convert_from_internal_units(float(val), "Voltage") + return val + + @output_voltage_peak.setter + def output_voltage_peak(self, value: float | str): + value = self._convert_to_internal_units(value, "Voltage") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Output Voltage Peak=" + f"{value}"]) + + @property + def include_phase_noise(self) -> bool: + """Include Phase Noise + "Include oscillator phase noise in Tx spectral profile." + "Value should be 'true' or 'false'." + """ + val = self._get_property("Include Phase Noise") + return val + + @include_phase_noise.setter + def include_phase_noise(self, value: bool): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Include Phase Noise=" + value]) + + @property + def tx_broadband_noise(self) -> float: + """Tx Broadband Noise + "Transmitters broadband noise level." + "Value should be less than 1000." + """ + val = self._get_property("Tx Broadband Noise") + return val + + @tx_broadband_noise.setter + def tx_broadband_noise(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Tx Broadband Noise=" + value]) + + @property + def perform_tx_intermod_analysis(self) -> bool: + """Perform Tx Intermod Analysis + "Performs a non-linear intermod analysis for the Tx." + "Value should be 'true' or 'false'." + """ + val = self._get_property("Perform Tx Intermod Analysis") + return val + + @perform_tx_intermod_analysis.setter + def perform_tx_intermod_analysis(self, value: bool): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Perform Tx Intermod Analysis=" + value] + ) + + @property + def internal_amp_gain(self) -> float: + """Internal Amp Gain + "Internal Tx Amplifier's Gain." + "Value should be between -1000 and 1000." + """ + val = self._get_property("Internal Amp Gain") + return val + + @internal_amp_gain.setter + def internal_amp_gain(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Internal Amp Gain=" + value]) + + @property + def noise_figure(self) -> float: + """Noise Figure + "Internal Tx Amplifier's noise figure." + "Value should be between 0 and 50." + """ + val = self._get_property("Noise Figure") + return val + + @noise_figure.setter + def noise_figure(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Figure=" + value]) + + @property + def amplifier_saturation_level(self) -> float: + """Amplifier Saturation Level + "Internal Tx Amplifier's Saturation Level." + "Value should be between -200 and 200." + """ + val = self._get_property("Amplifier Saturation Level") + val = self._convert_from_internal_units(float(val), "Power") + return val + + @amplifier_saturation_level.setter + def amplifier_saturation_level(self, value: float | str): + value = self._convert_to_internal_units(value, "Power") + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Amplifier Saturation Level=" + f"{value}"] + ) + + @property + def p1_db_point_ref_input_(self) -> float: + """P1-dB Point, Ref. Input + "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." + "Value should be between -200 and 200." + """ + val = self._get_property("P1-dB Point, Ref. Input ") + val = self._convert_from_internal_units(float(val), "Power") + return val + + @p1_db_point_ref_input_.setter + def p1_db_point_ref_input_(self, value: float | str): + value = self._convert_to_internal_units(value, "Power") + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["P1-dB Point, Ref. Input =" + f"{value}"] + ) + + @property + def ip3_ref_input(self) -> float: + """IP3, Ref. Input + "Internal Tx Amplifier's 3rd order intercept point." + "Value should be between -200 and 200." + """ + val = self._get_property("IP3, Ref. Input") + val = self._convert_from_internal_units(float(val), "Power") + return val + + @ip3_ref_input.setter + def ip3_ref_input(self, value: float | str): + value = self._convert_to_internal_units(value, "Power") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["IP3, Ref. Input=" + f"{value}"]) + + @property + def reverse_isolation(self) -> float: + """Reverse Isolation + "Internal Tx Amplifier's Reverse Isolation." + "Value should be between -200 and 200." + """ + val = self._get_property("Reverse Isolation") + return val + + @reverse_isolation.setter + def reverse_isolation(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Reverse Isolation=" + value]) + + @property + def max_intermod_order(self) -> int: + """Max Intermod Order + "Internal Tx Amplifier's maximum intermod order to compute." + "Value should be between 3 and 20." + """ + val = self._get_property("Max Intermod Order") + return val + + @max_intermod_order.setter + def max_intermod_order(self, value: int): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Intermod Order=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py index c4c23569dff..251f079352d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,92 +38,75 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) class SpectrumTypeOption(Enum): - BOTH = "Narrowband & Broadband" - BROADBANDONLY = "Broadband Only" + BOTH = "Narrowband & Broadband" + BROADBANDONLY = "Broadband Only" @property def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type "Specifies EMI Margins to calculate." - " """ - val = self._get_property('Spectrum Type') + " """ + val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] return val @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Spectrum Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Spectrum Type=" + value.value]) class TxPowerOption(Enum): - PEAK_POWER = "Peak Power" - AVERAGE_POWER = "Average Power" + PEAK_POWER = "Peak Power" + AVERAGE_POWER = "Average Power" @property def tx_power(self) -> TxPowerOption: """Tx Power "Method used to specify the power." - " """ - val = self._get_property('Tx Power') + " """ + val = self._get_property("Tx Power") val = self.TxPowerOption[val] return val @tx_power.setter def tx_power(self, value: TxPowerOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Tx Power=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Tx Power=" + value.value]) @property def peak_power(self) -> float: """Peak Power "Tx's carrier frequency peak power." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -1000 and 1000." """ - val = self._get_property('Peak Power') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("Peak Power") + val = self._convert_from_internal_units(float(val), "Power") return val @peak_power.setter - def peak_power(self, value : float|str): - value = self._convert_to_default_units(value, "Power Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Peak Power=' + f"{value}"]) + def peak_power(self, value: float | str): + value = self._convert_to_internal_units(value, "Power") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Peak Power=" + f"{value}"]) @property def average_power(self) -> float: """Average Power "Tx's fundamental level specified by average power." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -1000 and 1000." """ - val = self._get_property('Average Power') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("Average Power") + val = self._convert_from_internal_units(float(val), "Power") return val @average_power.setter - def average_power(self, value : float|str): - value = self._convert_to_default_units(value, "Power Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Average Power=' + f"{value}"]) - - @property - def output_voltage_peak(self) -> float: - """Output Voltage Peak - "Output High Voltage Level: maximum voltage of the digital signal." - "Units options: nV, uV, mV, V, kV, MegV." - " """ - val = self._get_property('Output Voltage Peak') - val = self._convert_from_default_units(float(val), "Voltage Unit") - return val - - @output_voltage_peak.setter - def output_voltage_peak(self, value : float|str): - value = self._convert_to_default_units(value, "Voltage Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Output Voltage Peak=' + f"{value}"]) + def average_power(self, value: float | str): + value = self._convert_to_internal_units(value, "Power") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Average Power=" + f"{value}"]) @property def include_phase_noise(self) -> bool: @@ -106,12 +114,12 @@ def include_phase_noise(self) -> bool: "Include oscillator phase noise in Tx spectral profile." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Phase Noise') + val = self._get_property("Include Phase Noise") return val @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Phase Noise=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Include Phase Noise=" + value]) @property def tx_broadband_noise(self) -> float: @@ -119,31 +127,31 @@ def tx_broadband_noise(self) -> float: "Transmitters broadband noise level." "Value should be less than 1000." """ - val = self._get_property('Tx Broadband Noise') + val = self._get_property("Tx Broadband Noise") return val @tx_broadband_noise.setter def tx_broadband_noise(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Tx Broadband Noise=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Tx Broadband Noise=" + value]) class HarmonicTaperOption(Enum): - CONSTANT = "Constant" - MIL_STD_461G = "MIL-STD-461G" - MIL_STD_461G_NAVY = "MIL-STD-461G Navy" - DUFF_MODEL = "Duff Model" + CONSTANT = "Constant" + MIL_STD_461G = "MIL-STD-461G" + MIL_STD_461G_NAVY = "MIL-STD-461G Navy" + DUFF_MODEL = "Duff Model" @property def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper "Taper type used to set amplitude of harmonics." - " """ - val = self._get_property('Harmonic Taper') + " """ + val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] return val @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Taper=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Harmonic Taper=" + value.value]) @property def harmonic_amplitude(self) -> float: @@ -151,12 +159,12 @@ def harmonic_amplitude(self) -> float: "Amplitude (relative to the carrier power) of harmonics." "Value should be between -1000 and 0." """ - val = self._get_property('Harmonic Amplitude') + val = self._get_property("Harmonic Amplitude") return val @harmonic_amplitude.setter def harmonic_amplitude(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Amplitude=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Harmonic Amplitude=" + value]) @property def harmonic_slope(self) -> float: @@ -164,12 +172,12 @@ def harmonic_slope(self) -> float: "Rate of decrease for harmonics' amplitudes (dB/decade)." "Value should be between -1000 and 0." """ - val = self._get_property('Harmonic Slope') + val = self._get_property("Harmonic Slope") return val @harmonic_slope.setter def harmonic_slope(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Slope=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Harmonic Slope=" + value]) @property def harmonic_intercept(self) -> float: @@ -177,12 +185,12 @@ def harmonic_intercept(self) -> float: "Amplitude intercept at the fundamental (dBc)." "Value should be between -1000 and 0." """ - val = self._get_property('Harmonic Intercept') + val = self._get_property("Harmonic Intercept") return val @harmonic_intercept.setter def harmonic_intercept(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Harmonic Intercept=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Harmonic Intercept=" + value]) @property def enable_harmonic_bw_expansion(self) -> bool: @@ -190,12 +198,14 @@ def enable_harmonic_bw_expansion(self) -> bool: "If (True), bandwidth of harmonics increases proportional to the harmonic number." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Harmonic BW Expansion') + val = self._get_property("Enable Harmonic BW Expansion") return val @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Harmonic BW Expansion=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Enable Harmonic BW Expansion=" + value] + ) @property def number_of_harmonics(self) -> int: @@ -203,12 +213,12 @@ def number_of_harmonics(self) -> int: "Maximum number of harmonics modeled." "Value should be between 1 and 1000." """ - val = self._get_property('Number of Harmonics') + val = self._get_property("Number of Harmonics") return val @number_of_harmonics.setter def number_of_harmonics(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Number of Harmonics=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Number of Harmonics=" + value]) @property def _2nd_harmonic_level(self) -> float: @@ -216,12 +226,12 @@ def _2nd_harmonic_level(self) -> float: "Amplitude (relative to the carrier power) of the 2nd harmonic." "Value should be between -1000 and 0." """ - val = self._get_property('2nd Harmonic Level') + val = self._get_property("2nd Harmonic Level") return val @_2nd_harmonic_level.setter def _2nd_harmonic_level(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['2nd Harmonic Level=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["2nd Harmonic Level=" + value]) @property def _3rd_harmonic_level(self) -> float: @@ -229,12 +239,12 @@ def _3rd_harmonic_level(self) -> float: "Amplitude (relative to the carrier power) of the 3rd harmonic." "Value should be between -1000 and 0." """ - val = self._get_property('3rd Harmonic Level') + val = self._get_property("3rd Harmonic Level") return val @_3rd_harmonic_level.setter def _3rd_harmonic_level(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['3rd Harmonic Level=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["3rd Harmonic Level=" + value]) @property def other_harmonic_levels(self) -> float: @@ -242,12 +252,12 @@ def other_harmonic_levels(self) -> float: "Amplitude (relative to the carrier power) of the higher order harmonics." "Value should be between -1000 and 0." """ - val = self._get_property('Other Harmonic Levels') + val = self._get_property("Other Harmonic Levels") return val @other_harmonic_levels.setter def other_harmonic_levels(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Other Harmonic Levels=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Other Harmonic Levels=" + value]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -255,12 +265,14 @@ def perform_tx_intermod_analysis(self) -> bool: "Performs a non-linear intermod analysis for the Tx." "Value should be 'true' or 'false'." """ - val = self._get_property('Perform Tx Intermod Analysis') + val = self._get_property("Perform Tx Intermod Analysis") return val @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Perform Tx Intermod Analysis=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Perform Tx Intermod Analysis=" + value] + ) @property def internal_amp_gain(self) -> float: @@ -268,12 +280,12 @@ def internal_amp_gain(self) -> float: "Internal Tx Amplifier's Gain." "Value should be between -1000 and 1000." """ - val = self._get_property('Internal Amp Gain') + val = self._get_property("Internal Amp Gain") return val @internal_amp_gain.setter def internal_amp_gain(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Internal Amp Gain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Internal Amp Gain=" + value]) @property def noise_figure(self) -> float: @@ -281,60 +293,61 @@ def noise_figure(self) -> float: "Internal Tx Amplifier's noise figure." "Value should be between 0 and 50." """ - val = self._get_property('Noise Figure') + val = self._get_property("Noise Figure") return val @noise_figure.setter def noise_figure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Figure=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Figure=" + value]) @property def amplifier_saturation_level(self) -> float: """Amplifier Saturation Level "Internal Tx Amplifier's Saturation Level." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ - val = self._get_property('Amplifier Saturation Level') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("Amplifier Saturation Level") + val = self._convert_from_internal_units(float(val), "Power") return val @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): - value = self._convert_to_default_units(value, "Power Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Amplifier Saturation Level=' + f"{value}"]) + def amplifier_saturation_level(self, value: float | str): + value = self._convert_to_internal_units(value, "Power") + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Amplifier Saturation Level=" + f"{value}"] + ) @property - def _1_db_point_ref_input_(self) -> float: - """1-dB Point, Ref. Input + def p1_db_point_ref_input_(self) -> float: + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ - val = self._get_property('1-dB Point, Ref. Input ') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("P1-dB Point, Ref. Input ") + val = self._convert_from_internal_units(float(val), "Power") return val - @_1_db_point_ref_input_.setter - def _1_db_point_ref_input_(self, value : float|str): - value = self._convert_to_default_units(value, "Power Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['1-dB Point, Ref. Input =' + f"{value}"]) + @p1_db_point_ref_input_.setter + def p1_db_point_ref_input_(self, value: float | str): + value = self._convert_to_internal_units(value, "Power") + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["P1-dB Point, Ref. Input =" + f"{value}"] + ) @property def ip3_ref_input(self) -> float: """IP3, Ref. Input "Internal Tx Amplifier's 3rd order intercept point." - "Units options: fW, pW, nW, uW, mW, W, kW, megW, gW, dBm, dBW." "Value should be between -200 and 200." """ - val = self._get_property('IP3, Ref. Input') - val = self._convert_from_default_units(float(val), "Power Unit") + val = self._get_property("IP3, Ref. Input") + val = self._convert_from_internal_units(float(val), "Power") return val @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): - value = self._convert_to_default_units(value, "Power Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['IP3, Ref. Input=' + f"{value}"]) + def ip3_ref_input(self, value: float | str): + value = self._convert_to_internal_units(value, "Power") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["IP3, Ref. Input=" + f"{value}"]) @property def reverse_isolation(self) -> float: @@ -342,12 +355,12 @@ def reverse_isolation(self) -> float: "Internal Tx Amplifier's Reverse Isolation." "Value should be between -200 and 200." """ - val = self._get_property('Reverse Isolation') + val = self._get_property("Reverse Isolation") return val @reverse_isolation.setter def reverse_isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Reverse Isolation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Reverse Isolation=" + value]) @property def max_intermod_order(self) -> int: @@ -355,10 +368,9 @@ def max_intermod_order(self) -> int: "Internal Tx Amplifier's maximum intermod order to compute." "Value should be between 3 and 20." """ - val = self._get_property('Max Intermod Order') + val = self._get_property("Max Intermod Order") return val @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Max Intermod Order=' + value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Intermod Order=" + value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py index a361f7c4bd4..215b5d8ced1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,'Csv') + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -20,13 +45,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -38,26 +63,25 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE = "Relative" + ABSOLUTE = "Absolute" + RELATIVE = "Relative" @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ - val = self._get_property('Spur Table Units') + " """ + val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Spur Table Units=' + value.value]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Spur Table Units=" + value.value]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py index 46db663f7d7..1097ece643f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class WalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -28,36 +53,36 @@ def enabled(self) -> bool: "Enable/Disable coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Enabled') + val = self._get_property("Enabled") return val @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enabled=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Base Antenna') + " """ + val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Base Antenna=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Base Antenna=" + value]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ - val = self._get_property('Mobile Antenna') + " """ + val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Mobile Antenna=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Mobile Antenna=" + value]) @property def enable_refinement(self) -> bool: @@ -65,12 +90,12 @@ def enable_refinement(self) -> bool: "Enables/disables refined sampling of the frequency domain.." "Value should be 'true' or 'false'." """ - val = self._get_property('Enable Refinement') + val = self._get_property("Enable Refinement") return val @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Enable Refinement=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable Refinement=" + value]) @property def adaptive_sampling(self) -> bool: @@ -78,106 +103,105 @@ def adaptive_sampling(self) -> bool: "Enables/disables adaptive refinement the frequency domain sampling.." "Value should be 'true' or 'false'." """ - val = self._get_property('Adaptive Sampling') + val = self._get_property("Adaptive Sampling") return val @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Adaptive Sampling=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Adaptive Sampling=" + value]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ - val = self._get_property('Refinement Domain') + " """ + val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Refinement Domain=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Refinement Domain=" + value]) class PathLossTypeOption(Enum): - WALFISCHLOS = "LOS (Urban Canyon)" - WALFISCHNLOS = "NLOS" + WALFISCHLOS = "LOS (Urban Canyon)" + WALFISCHNLOS = "NLOS" @property def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type "Specify LOS vs NLOS for the Walfisch-Ikegami model." - " """ - val = self._get_property('Path Loss Type') + " """ + val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] return val @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Path Loss Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Path Loss Type=" + value.value]) class EnvironmentOption(Enum): - DENSEMETROAREA = "Dense Metro" - SMALLURBANORSUBURBAN = "Small/Medium City or Suburban" + DENSEMETROAREA = "Dense Metro" + SMALLURBANORSUBURBAN = "Small/Medium City or Suburban" @property def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Walfisch model." - " """ - val = self._get_property('Environment') + " """ + val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Environment=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Environment=" + value.value]) @property def roof_height(self) -> float: """Roof Height "The height of the building where the antenna is located.." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 0 and 100." """ - val = self._get_property('Roof Height') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Roof Height") + val = self._convert_from_internal_units(float(val), "Length") return val @roof_height.setter - def roof_height(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Roof Height=' + f"{value}"]) + def roof_height(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Roof Height=" + f"{value}"]) @property def distance_between_buildings(self) -> float: """Distance Between Buildings "The distance between two buildings.." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 0 and 100." """ - val = self._get_property('Distance Between Buildings') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Distance Between Buildings") + val = self._convert_from_internal_units(float(val), "Length") return val @distance_between_buildings.setter - def distance_between_buildings(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Distance Between Buildings=' + f"{value}"]) + def distance_between_buildings(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Distance Between Buildings=" + f"{value}"] + ) @property def street_width(self) -> float: """Street Width "Width of the street.." - "Units options: pm, nm, um, mm, cm, dm, meter, meters, km, mil, in, ft, yd." "Value should be between 0 and 100." """ - val = self._get_property('Street Width') - val = self._convert_from_default_units(float(val), "Length Unit") + val = self._get_property("Street Width") + val = self._convert_from_internal_units(float(val), "Length") return val @street_width.setter - def street_width(self, value : float|str): - value = self._convert_to_default_units(value, "Length Unit") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Street Width=' + f"{value}"]) + def street_width(self, value: float | str): + value = self._convert_to_internal_units(value, "Length") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Street Width=" + f"{value}"]) @property def incidence_angle(self) -> float: @@ -185,12 +209,12 @@ def incidence_angle(self) -> float: "Angle between the street orientation and direction of incidence.." "Value should be between 0 and 90." """ - val = self._get_property('Incidence Angle') + val = self._get_property("Incidence Angle") return val @incidence_angle.setter def incidence_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Incidence Angle=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Incidence Angle=" + value]) @property def custom_fading_margin(self) -> float: @@ -198,12 +222,12 @@ def custom_fading_margin(self) -> float: "Sets a custom fading margin to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Custom Fading Margin') + val = self._get_property("Custom Fading Margin") return val @custom_fading_margin.setter def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Custom Fading Margin=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Fading Margin=" + value]) @property def polarization_mismatch(self) -> float: @@ -211,12 +235,12 @@ def polarization_mismatch(self) -> float: "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Polarization Mismatch') + val = self._get_property("Polarization Mismatch") return val @polarization_mismatch.setter def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Mismatch=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Mismatch=" + value]) @property def pointing_error_loss(self) -> float: @@ -224,31 +248,31 @@ def pointing_error_loss(self) -> float: "Sets a margin for pointing error loss to be applied to all coupling defined by this node." "Value should be between 0 and 100." """ - val = self._get_property('Pointing Error Loss') + val = self._get_property("Pointing Error Loss") return val @pointing_error_loss.setter def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Pointing Error Loss=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pointing Error Loss=" + value]) class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NOFADING = "None" + FASTFADINGONLY = "Fast Fading Only" + SHADOWINGONLY = "Shadowing Only" + SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ - val = self._get_property('Fading Type') + " """ + val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Type=' + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Type=" + value.value]) @property def fading_availability(self) -> float: @@ -256,12 +280,12 @@ def fading_availability(self) -> float: "The probability that the propagation loss in dB is below its median value plus the margin." "Value should be between 0 and 100." """ - val = self._get_property('Fading Availability') + val = self._get_property("Fading Availability") return val @fading_availability.setter def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Fading Availability=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Availability=" + value]) @property def std_deviation(self) -> float: @@ -269,12 +293,12 @@ def std_deviation(self) -> float: "Standard deviation modeling the random amount of shadowing loss." "Value should be between 0 and 100." """ - val = self._get_property('Std Deviation') + val = self._get_property("Std Deviation") return val @std_deviation.setter def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Std Deviation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Std Deviation=" + value]) @property def include_rain_attenuation(self) -> bool: @@ -282,12 +306,12 @@ def include_rain_attenuation(self) -> bool: "Adds a margin for rain attenuation to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Rain Attenuation') + val = self._get_property("Include Rain Attenuation") return val @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Rain Attenuation=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Include Rain Attenuation=" + value]) @property def rain_availability(self) -> float: @@ -295,12 +319,12 @@ def rain_availability(self) -> float: "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." "Value should be between 99 and 99.999." """ - val = self._get_property('Rain Availability') + val = self._get_property("Rain Availability") return val @rain_availability.setter def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Availability=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Availability=" + value]) @property def rain_rate(self) -> float: @@ -308,12 +332,12 @@ def rain_rate(self) -> float: "Rain rate (mm/hr) exceeded for 0.01% of the time." "Value should be between 0 and 1000." """ - val = self._get_property('Rain Rate') + val = self._get_property("Rain Rate") return val @rain_rate.setter def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Rain Rate=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Rate=" + value]) @property def polarization_tilt_angle(self) -> float: @@ -321,12 +345,12 @@ def polarization_tilt_angle(self) -> float: "Polarization tilt angle of the transmitted signal relative to the horizontal." "Value should be between 0 and 180." """ - val = self._get_property('Polarization Tilt Angle') + val = self._get_property("Polarization Tilt Angle") return val @polarization_tilt_angle.setter def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Polarization Tilt Angle=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Tilt Angle=" + value]) @property def include_atmospheric_absorption(self) -> bool: @@ -334,12 +358,14 @@ def include_atmospheric_absorption(self) -> bool: "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." "Value should be 'true' or 'false'." """ - val = self._get_property('Include Atmospheric Absorption') + val = self._get_property("Include Atmospheric Absorption") return val @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Include Atmospheric Absorption=' + value]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Include Atmospheric Absorption=" + value] + ) @property def temperature(self) -> float: @@ -347,12 +373,12 @@ def temperature(self) -> float: "Air temperature in degrees Celsius." "Value should be between -273 and 100." """ - val = self._get_property('Temperature') + val = self._get_property("Temperature") return val @temperature.setter def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Temperature=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Temperature=" + value]) @property def total_air_pressure(self) -> float: @@ -360,12 +386,12 @@ def total_air_pressure(self) -> float: "Total air pressure." "Value should be between 0 and 2000." """ - val = self._get_property('Total Air Pressure') + val = self._get_property("Total Air Pressure") return val @total_air_pressure.setter def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Total Air Pressure=' + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Total Air Pressure=" + value]) @property def water_vapor_concentration(self) -> float: @@ -373,10 +399,11 @@ def water_vapor_concentration(self) -> float: "Water vapor concentration." "Value should be between 0 and 2000." """ - val = self._get_property('Water Vapor Concentration') + val = self._get_property("Water Vapor Concentration") return val @water_vapor_concentration.setter def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Water Vapor Concentration=' + value]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Water Vapor Concentration=" + value] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py new file mode 100644 index 00000000000..cc2c9e3e39d --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py @@ -0,0 +1,452 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + +from ..EmitNode import * + + +class Waveform(EmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = False + EmitNode.__init__(self, oDesign, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + @property + def enabled(self) -> bool: + """Enabled state for this node.""" + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + + @enabled.setter + def enabled(self, value: bool): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) + + @property + def port(self): + """Port + "Radio Port associated with this Band." + " """ + val = self._get_property("Port") + return val + + @port.setter + def port(self, value): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Port=" + value]) + + class WaveformOption(Enum): + PERIODIC_CLOCK = "Periodic Clock" + SPREAD_SPECTRUM = "Spread Spectrum Clock" + PRBS = "PRBS" + PRBS_PERIODIC = "PRBS (Periodic)" + IMPORTED = "Imported" + + @property + def waveform(self) -> WaveformOption: + """Waveform + "Modulation used for the transmitted/received signal." + " """ + val = self._get_property("Waveform") + val = self.WaveformOption[val] + return val + + @waveform.setter + def waveform(self, value: WaveformOption): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Waveform=" + value.value]) + + @property + def start_frequency(self) -> float: + """Start Frequency + "First frequency for this band." + "Value should be between 1 and 1e+11." + """ + val = self._get_property("Start Frequency") + val = self._convert_from_internal_units(float(val), "Freq") + return val + + @start_frequency.setter + def start_frequency(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Start Frequency=" + f"{value}"]) + + @property + def stop_frequency(self) -> float: + """Stop Frequency + "Last frequency for this band." + "Value should be between 1 and 1e+11." + """ + val = self._get_property("Stop Frequency") + val = self._convert_from_internal_units(float(val), "Freq") + return val + + @stop_frequency.setter + def stop_frequency(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Stop Frequency=" + f"{value}"]) + + @property + def channel_spacing(self) -> float: + """Channel Spacing + "Spacing between channels within this band." + "Value should be between 1 and 1e+11." + """ + val = self._get_property("Channel Spacing") + val = self._convert_from_internal_units(float(val), "Freq") + return val + + @channel_spacing.setter + def channel_spacing(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Channel Spacing=" + f"{value}"]) + + @property + def clock_duty_cycle(self) -> float: + """Clock Duty Cycle + "Clock signals duty cycle." + "Value should be between 0.001 and 1." + """ + val = self._get_property("Clock Duty Cycle") + return val + + @clock_duty_cycle.setter + def clock_duty_cycle(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Clock Duty Cycle=" + value]) + + @property + def clock_risefall_time(self) -> float: + """Clock Rise/Fall Time + "Clock signals rise/fall time." + "Value should be greater than 0." + """ + val = self._get_property("Clock Rise/Fall Time") + val = self._convert_from_internal_units(float(val), "Time") + return val + + @clock_risefall_time.setter + def clock_risefall_time(self, value: float | str): + value = self._convert_to_internal_units(value, "Time") + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Clock Rise/Fall Time=" + f"{value}"] + ) + + class SpreadingTypeOption(Enum): + LOW_SPREAD = "Low Spread" + CENTER_SPREAD = "Center Spread" + HIGH_SPREAD = "High Spread" + + @property + def spreading_type(self) -> SpreadingTypeOption: + """Spreading Type + "Type of spreading employed by the Spread Spectrum Clock." + " """ + val = self._get_property("Spreading Type") + val = self.SpreadingTypeOption[val] + return val + + @spreading_type.setter + def spreading_type(self, value: SpreadingTypeOption): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Spreading Type=" + value.value]) + + @property + def spread_percentage(self) -> float: + """Spread Percentage + "Peak-to-peak spread percentage." + "Value should be between 0 and 100." + """ + val = self._get_property("Spread Percentage") + return val + + @spread_percentage.setter + def spread_percentage(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Spread Percentage=" + value]) + + @property + def imported_spectrum(self) -> str: + """Imported Spectrum + "Value should be a full file path." + """ + val = self._get_property("Imported Spectrum") + return val + + @imported_spectrum.setter + def imported_spectrum(self, value: str): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Imported Spectrum=" + value]) + + @property + def raw_data_format(self) -> str: + """Raw Data Format + "Format of the imported raw data." + " """ + val = self._get_property("Raw Data Format") + return val + + @property + def system_impedance(self) -> float: + """System Impedance + "System impedance for the imported data." + "Value should be between 0 and 1e+06." + """ + val = self._get_property("System Impedance") + val = self._convert_from_internal_units(float(val), "Resistance") + return val + + @system_impedance.setter + def system_impedance(self, value: float | str): + value = self._convert_to_internal_units(value, "Resistance") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["System Impedance=" + f"{value}"]) + + @property + def advanced_extraction_params(self) -> bool: + """Advanced Extraction Params + "Show/hide advanced extraction params." + "Value should be 'true' or 'false'." + """ + val = self._get_property("Advanced Extraction Params") + return val + + @advanced_extraction_params.setter + def advanced_extraction_params(self, value: bool): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, ["Advanced Extraction Params=" + value] + ) + + @property + def nb_window_size(self) -> float: + """NB Window Size + "Window size for computing the moving average during narrowband signal detection." + "Value should be greater than 3." + """ + val = self._get_property("NB Window Size") + return val + + @nb_window_size.setter + def nb_window_size(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["NB Window Size=" + value]) + + @property + def bb_smoothing_factor(self) -> float: + """BB Smoothing Factor + "Reduces the number of frequency points used for the broadband noise." + "Value should be greater than 1." + """ + val = self._get_property("BB Smoothing Factor") + return val + + @bb_smoothing_factor.setter + def bb_smoothing_factor(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["BB Smoothing Factor=" + value]) + + @property + def nb_detector_threshold(self) -> float: + """NB Detector Threshold + "Narrowband Detector threshold standard deviation." + "Value should be between 2 and 10." + """ + val = self._get_property("NB Detector Threshold") + return val + + @nb_detector_threshold.setter + def nb_detector_threshold(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["NB Detector Threshold=" + value]) + + class AlgorithmOption(Enum): + FFT = "FFT" + FOURIER_TRANSFORM = "Fourier Transform" + + @property + def algorithm(self) -> AlgorithmOption: + """Algorithm + "Algorithm used to transform the imported time domain spectrum." + " """ + val = self._get_property("Algorithm") + val = self.AlgorithmOption[val] + return val + + @algorithm.setter + def algorithm(self, value: AlgorithmOption): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Algorithm=" + value.value]) + + @property + def start_time(self) -> float: + """Start Time + "Initial time of the imported spectrum." + "Value should be greater than 0." + """ + val = self._get_property("Start Time") + val = self._convert_from_internal_units(float(val), "Time") + return val + + @start_time.setter + def start_time(self, value: float | str): + value = self._convert_to_internal_units(value, "Time") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Start Time=" + f"{value}"]) + + @property + def stop_time(self) -> float: + """Stop Time + "Final time of the imported time domain spectrum." + " """ + val = self._get_property("Stop Time") + val = self._convert_from_internal_units(float(val), "Time") + return val + + @stop_time.setter + def stop_time(self, value: float | str): + value = self._convert_to_internal_units(value, "Time") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Stop Time=" + f"{value}"]) + + @property + def max_frequency(self) -> float: + """Max Frequency + "Frequency cutoff of the imported time domain spectrum." + "Value should be between 1 and 1e+11." + """ + val = self._get_property("Max Frequency") + val = self._convert_from_internal_units(float(val), "Freq") + return val + + @max_frequency.setter + def max_frequency(self, value: float | str): + value = self._convert_to_internal_units(value, "Freq") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Frequency=" + f"{value}"]) + + class WindowTypeOption(Enum): + RECTANGULAR = "Rectangular" + BARTLETT = "Bartlett" + BLACKMAN = "Blackman" + HAMMING = "Hamming" + HANNING = "Hanning" + KAISER = "Kaiser" + LANZCOS = "Lanzcos" + WELCH = "Welch" + WEBER = "Weber" + + @property + def window_type(self) -> WindowTypeOption: + """Window Type + "Windowing scheme used for importing time domain spectrum." + " """ + val = self._get_property("Window Type") + val = self.WindowTypeOption[val] + return val + + @window_type.setter + def window_type(self, value: WindowTypeOption): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Window Type=" + value.value]) + + @property + def kaiser_parameter(self) -> float: + """Kaiser Parameter + "Shape factor applied to the transform." + "Value should be greater than 0." + """ + val = self._get_property("Kaiser Parameter") + return val + + @kaiser_parameter.setter + def kaiser_parameter(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Kaiser Parameter=" + value]) + + @property + def adjust_coherent_gain(self) -> bool: + """Adjust Coherent Gain + "Shape factor applied to the transform." + "Value should be 'true' or 'false'." + """ + val = self._get_property("Adjust Coherent Gain") + return val + + @adjust_coherent_gain.setter + def adjust_coherent_gain(self, value: bool): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Adjust Coherent Gain=" + value]) + + @property + def data_rate(self) -> float: + """Data Rate + "Maximum data rate: helps determine shape of spectral profile." + "Value should be greater than 1." + """ + val = self._get_property("Data Rate") + val = self._convert_from_internal_units(float(val), "Data Rate") + return val + + @data_rate.setter + def data_rate(self, value: float | str): + value = self._convert_to_internal_units(value, "Data Rate") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Rate=" + f"{value}"]) + + @property + def num_of_bits(self) -> int: + """Num of Bits + "Length of the Pseudo Random Binary Sequence." + "Value should be between 1 and 1000." + """ + val = self._get_property("Num of Bits") + return val + + @num_of_bits.setter + def num_of_bits(self, value: int): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Num of Bits=" + value]) + + @property + def use_envelope(self) -> bool: + """Use Envelope + "Model the waveform as a worst case envelope.." + "Value should be 'true' or 'false'." + """ + val = self._get_property("Use Envelope") + return val + + @use_envelope.setter + def use_envelope(self, value: bool): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Use Envelope=" + value]) + + @property + def min_ptsnull(self) -> int: + """Min Pts/Null + "Minimum number of points to use between each null frequency." + "Value should be between 2 and 50." + """ + val = self._get_property("Min Pts/Null") + return val + + @min_ptsnull.setter + def min_ptsnull(self, value: int): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Min Pts/Null=" + value]) + + @property + def delay_skew(self) -> float: + """Delay Skew + "Delay Skew of the differential signal pairs." + "Value should be greater than 0." + """ + val = self._get_property("Delay Skew") + val = self._convert_from_internal_units(float(val), "Time") + return val + + @delay_skew.setter + def delay_skew(self, value: float | str): + value = self._convert_to_internal_units(value, "Time") + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Delay Skew=" + f"{value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index 10275c1a575..ca262ec53d4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,3 +1,27 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from .Amplifier import Amplifier from .AntennaNode import AntennaNode from .AntennaPassband import AntennaPassband @@ -33,37 +57,6 @@ from .ProfileTraceNode import ProfileTraceNode from .PropagationLossCouplingNode import PropagationLossCouplingNode from .RadioNode import RadioNode -from .ResultPlotNode import ResultPlotNode -from .RfSystemGroup import RfSystemGroup -from .RxMeasNode import RxMeasNode -from .RxMixerProductNode import RxMixerProductNode -from .RxSaturationNode import RxSaturationNode -from .RxSelectivityNode import RxSelectivityNode -from .RxSpurNode import RxSpurNode -from .RxSusceptibilityProfNode import RxSusceptibilityProfNode -from .SamplingNode import SamplingNode -from .SceneGroupNode import SceneGroupNode -from .SelectivityTraceNode import SelectivityTraceNode -from .SolutionCouplingNode import SolutionCouplingNode -from .SolutionsNode import SolutionsNode -from .Sparameter import Sparameter -from .SpurTraceNode import SpurTraceNode -from .TR_Switch import TR_Switch -from .TRSwitchTraceNode import TRSwitchTraceNode -from .Terminator import Terminator -from .TestNoiseTraceNode import TestNoiseTraceNode -from .TopLevelSimulation import TopLevelSimulation -from .TouchstoneCouplingNode import TouchstoneCouplingNode -from .TunableTraceNode import TunableTraceNode -from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode -from .TwoToneTraceNode import TwoToneTraceNode -from .TxBbEmissionNode import TxBbEmissionNode -from .TxHarmonicNode import TxHarmonicNode -from .TxMeasNode import TxMeasNode -from .TxNbEmissionNode import TxNbEmissionNode -from .TxSpectralProfNode import TxSpectralProfNode -from .TxSpurNode import TxSpurNode -from .WalfischCouplingNode import WalfischCouplingNode from .ReadOnlyAmplifier import ReadOnlyAmplifier from .ReadOnlyAntennaNode import ReadOnlyAntennaNode from .ReadOnlyAntennaPassband import ReadOnlyAntennaPassband @@ -108,122 +101,161 @@ from .ReadOnlyTxHarmonicNode import ReadOnlyTxHarmonicNode from .ReadOnlyTxMeasNode import ReadOnlyTxMeasNode from .ReadOnlyTxNbEmissionNode import ReadOnlyTxNbEmissionNode +from .ReadOnlyTxSpectralProfEmitterNode import ReadOnlyTxSpectralProfEmitterNode from .ReadOnlyTxSpectralProfNode import ReadOnlyTxSpectralProfNode from .ReadOnlyTxSpurNode import ReadOnlyTxSpurNode from .ReadOnlyWalfischCouplingNode import ReadOnlyWalfischCouplingNode +from .ReadOnlyWaveform import ReadOnlyWaveform +from .ResultPlotNode import ResultPlotNode +from .RfSystemGroup import RfSystemGroup +from .RxMeasNode import RxMeasNode +from .RxMixerProductNode import RxMixerProductNode +from .RxSaturationNode import RxSaturationNode +from .RxSelectivityNode import RxSelectivityNode +from .RxSpurNode import RxSpurNode +from .RxSusceptibilityProfNode import RxSusceptibilityProfNode +from .SamplingNode import SamplingNode +from .SceneGroupNode import SceneGroupNode +from .SelectivityTraceNode import SelectivityTraceNode +from .SolutionCouplingNode import SolutionCouplingNode +from .SolutionsNode import SolutionsNode +from .Sparameter import Sparameter +from .SpurTraceNode import SpurTraceNode +from .TRSwitchTraceNode import TRSwitchTraceNode +from .TR_Switch import TR_Switch +from .Terminator import Terminator +from .TestNoiseTraceNode import TestNoiseTraceNode +from .TopLevelSimulation import TopLevelSimulation +from .TouchstoneCouplingNode import TouchstoneCouplingNode +from .TunableTraceNode import TunableTraceNode +from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode +from .TwoToneTraceNode import TwoToneTraceNode +from .TxBbEmissionNode import TxBbEmissionNode +from .TxHarmonicNode import TxHarmonicNode +from .TxMeasNode import TxMeasNode +from .TxNbEmissionNode import TxNbEmissionNode +from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode +from .TxSpectralProfNode import TxSpectralProfNode +from .TxSpurNode import TxSpurNode +from .WalfischCouplingNode import WalfischCouplingNode +from .Waveform import Waveform __all__ = [ - 'Amplifier', - 'AntennaNode', - 'AntennaPassband', - 'Band', - 'BandFolder', - 'BandTraceNode', - 'CADNode', - 'Cable', - 'CategoriesViewNode', - 'Circulator', - 'CouplingLinkNode', - 'CouplingTraceNode', - 'CouplingsNode', - 'CustomCouplingNode', - 'EmiPlotMarkerNode', - 'EmitSceneNode', - 'ErcegCouplingNode', - 'Filter', - 'FiveGChannelModel', - 'HataCouplingNode', - 'IndoorPropagationCouplingNode', - 'Isolator', - 'LogDistanceCouplingNode', - 'MPlexBandTraceNode', - 'Multiplexer', - 'MultiplexerBand', - 'OutboardTraceNode', - 'ParametricCouplingTraceNode', - 'PlotMarkerNode', - 'PlotNode', - 'PowerDivider', - 'PowerTraceNode', - 'ProfileTraceNode', - 'PropagationLossCouplingNode', - 'RadioNode', - 'ResultPlotNode', - 'RfSystemGroup', - 'RxMeasNode', - 'RxMixerProductNode', - 'RxSaturationNode', - 'RxSelectivityNode', - 'RxSpurNode', - 'RxSusceptibilityProfNode', - 'SamplingNode', - 'SceneGroupNode', - 'SelectivityTraceNode', - 'SolutionCouplingNode', - 'SolutionsNode', - 'Sparameter', - 'SpurTraceNode', - 'TR_Switch', - 'TRSwitchTraceNode', - 'Terminator', - 'TestNoiseTraceNode', - 'TopLevelSimulation', - 'TouchstoneCouplingNode', - 'TunableTraceNode', - 'TwoRayPathLossCouplingNode', - 'TwoToneTraceNode', - 'TxBbEmissionNode', - 'TxHarmonicNode', - 'TxMeasNode', - 'TxNbEmissionNode', - 'TxSpectralProfNode', - 'TxSpurNode', - 'WalfischCouplingNode', - 'ReadOnlyAmplifier', - 'ReadOnlyAntennaNode', - 'ReadOnlyAntennaPassband', - 'ReadOnlyBand', - 'ReadOnlyBandFolder', - 'ReadOnlyCADNode', - 'ReadOnlyCable', - 'ReadOnlyCirculator', - 'ReadOnlyCouplingLinkNode', - 'ReadOnlyCouplingsNode', - 'ReadOnlyCustomCouplingNode', - 'ReadOnlyEmitSceneNode', - 'ReadOnlyErcegCouplingNode', - 'ReadOnlyFilter', - 'ReadOnlyFiveGChannelModel', - 'ReadOnlyHataCouplingNode', - 'ReadOnlyIndoorPropagationCouplingNode', - 'ReadOnlyIsolator', - 'ReadOnlyLogDistanceCouplingNode', - 'ReadOnlyMultiplexer', - 'ReadOnlyMultiplexerBand', - 'ReadOnlyPowerDivider', - 'ReadOnlyPropagationLossCouplingNode', - 'ReadOnlyRadioNode', - 'ReadOnlyRfSystemGroup', - 'ReadOnlyRxMeasNode', - 'ReadOnlyRxMixerProductNode', - 'ReadOnlyRxSaturationNode', - 'ReadOnlyRxSelectivityNode', - 'ReadOnlyRxSpurNode', - 'ReadOnlyRxSusceptibilityProfNode', - 'ReadOnlySamplingNode', - 'ReadOnlySceneGroupNode', - 'ReadOnlySolutionCouplingNode', - 'ReadOnlySolutionsNode', - 'ReadOnlySparameter', - 'ReadOnlyTR_Switch', - 'ReadOnlyTerminator', - 'ReadOnlyTouchstoneCouplingNode', - 'ReadOnlyTwoRayPathLossCouplingNode', - 'ReadOnlyTxBbEmissionNode', - 'ReadOnlyTxHarmonicNode', - 'ReadOnlyTxMeasNode', - 'ReadOnlyTxNbEmissionNode', - 'ReadOnlyTxSpectralProfNode', - 'ReadOnlyTxSpurNode', - 'ReadOnlyWalfischCouplingNode', + "Amplifier", + "AntennaNode", + "AntennaPassband", + "Band", + "BandFolder", + "BandTraceNode", + "CADNode", + "Cable", + "CategoriesViewNode", + "Circulator", + "CouplingLinkNode", + "CouplingTraceNode", + "CouplingsNode", + "CustomCouplingNode", + "EmiPlotMarkerNode", + "EmitSceneNode", + "ErcegCouplingNode", + "Filter", + "FiveGChannelModel", + "HataCouplingNode", + "IndoorPropagationCouplingNode", + "Isolator", + "LogDistanceCouplingNode", + "MPlexBandTraceNode", + "Multiplexer", + "MultiplexerBand", + "OutboardTraceNode", + "ParametricCouplingTraceNode", + "PlotMarkerNode", + "PlotNode", + "PowerDivider", + "PowerTraceNode", + "ProfileTraceNode", + "PropagationLossCouplingNode", + "RadioNode", + "ResultPlotNode", + "RfSystemGroup", + "RxMeasNode", + "RxMixerProductNode", + "RxSaturationNode", + "RxSelectivityNode", + "RxSpurNode", + "RxSusceptibilityProfNode", + "SamplingNode", + "SceneGroupNode", + "SelectivityTraceNode", + "SolutionCouplingNode", + "SolutionsNode", + "Sparameter", + "SpurTraceNode", + "TR_Switch", + "TRSwitchTraceNode", + "Terminator", + "TestNoiseTraceNode", + "TopLevelSimulation", + "TouchstoneCouplingNode", + "TunableTraceNode", + "TwoRayPathLossCouplingNode", + "TwoToneTraceNode", + "TxBbEmissionNode", + "TxHarmonicNode", + "TxMeasNode", + "TxNbEmissionNode", + "TxSpectralProfEmitterNode", + "TxSpectralProfNode", + "TxSpurNode", + "WalfischCouplingNode", + "Waveform", + "ReadOnlyAmplifier", + "ReadOnlyAntennaNode", + "ReadOnlyAntennaPassband", + "ReadOnlyBand", + "ReadOnlyBandFolder", + "ReadOnlyCADNode", + "ReadOnlyCable", + "ReadOnlyCirculator", + "ReadOnlyCouplingLinkNode", + "ReadOnlyCouplingsNode", + "ReadOnlyCustomCouplingNode", + "ReadOnlyEmitSceneNode", + "ReadOnlyErcegCouplingNode", + "ReadOnlyFilter", + "ReadOnlyFiveGChannelModel", + "ReadOnlyHataCouplingNode", + "ReadOnlyIndoorPropagationCouplingNode", + "ReadOnlyIsolator", + "ReadOnlyLogDistanceCouplingNode", + "ReadOnlyMultiplexer", + "ReadOnlyMultiplexerBand", + "ReadOnlyPowerDivider", + "ReadOnlyPropagationLossCouplingNode", + "ReadOnlyRadioNode", + "ReadOnlyRfSystemGroup", + "ReadOnlyRxMeasNode", + "ReadOnlyRxMixerProductNode", + "ReadOnlyRxSaturationNode", + "ReadOnlyRxSelectivityNode", + "ReadOnlyRxSpurNode", + "ReadOnlyRxSusceptibilityProfNode", + "ReadOnlySamplingNode", + "ReadOnlySceneGroupNode", + "ReadOnlySolutionCouplingNode", + "ReadOnlySolutionsNode", + "ReadOnlySparameter", + "ReadOnlyTR_Switch", + "ReadOnlyTerminator", + "ReadOnlyTouchstoneCouplingNode", + "ReadOnlyTwoRayPathLossCouplingNode", + "ReadOnlyTxBbEmissionNode", + "ReadOnlyTxHarmonicNode", + "ReadOnlyTxMeasNode", + "ReadOnlyTxNbEmissionNode", + "ReadOnlyTxSpectralProfEmitterNode", + "ReadOnlyTxSpectralProfNode", + "ReadOnlyTxSpurNode", + "ReadOnlyWalfischCouplingNode", + "ReadOnlyWaveform", ] diff --git a/src/ansys/aedt/core/emit_core/results/__init__.py b/src/ansys/aedt/core/emit_core/results/__init__.py index 9c4476773da..b78d8fed76c 100644 --- a/src/ansys/aedt/core/emit_core/results/__init__.py +++ b/src/ansys/aedt/core/emit_core/results/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/emit_core/results/results.py b/src/ansys/aedt/core/emit_core/results/results.py index 9ae53eba020..3963907016a 100644 --- a/src/ansys/aedt/core/emit_core/results/results.py +++ b/src/ansys/aedt/core/emit_core/results/results.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index 0aaca4833ab..6c4eaffcf68 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # @@ -29,11 +29,10 @@ from ansys.aedt.core.emit_core.emit_constants import InterfererType from ansys.aedt.core.emit_core.emit_constants import ResultType from ansys.aedt.core.emit_core.emit_constants import TxRxMode -from ansys.aedt.core.generic.general_methods import pyaedt_function_handler - -from ansys.aedt.core.emit_core.nodes.EmitNode import EmitNode from ansys.aedt.core.emit_core.nodes import generated +from ansys.aedt.core.emit_core.nodes.EmitNode import EmitNode from ansys.aedt.core.emit_core.nodes.generated import * +from ansys.aedt.core.generic.general_methods import pyaedt_function_handler class Revision: @@ -102,7 +101,7 @@ def __init__(self, parent_results, emit_obj, name=None): self.timestamp = props["Timestamp"] """Unique timestamp for the revision.""" - + self.name = name """Name of the revision.""" @@ -797,8 +796,10 @@ def wrapper(self, *args, **kwargs): result = func(self, *args, **kwargs) return result else: - raise RuntimeError(f'This function is only supported in AEDT version {version} and later.') - return wrapper + raise RuntimeError(f"This function is only supported in AEDT version {version} and later.") + + return wrapper + return decorator @pyaedt_function_handler @@ -834,27 +835,27 @@ def _get_all_top_level_node_ids(self) -> list[int]: """ top_level_node_names = [ # 'Windows-*-Configuration Diagram', - 'Windows-*-Result Plot', + "Windows-*-Result Plot", # 'Windows-*-EMI Margin Plot', - 'Windows-*-Result Categorization', + "Windows-*-Result Categorization", # 'Windows-*-Plot', # 'Windows-*-Coupling Plot', - 'Windows-*-Project Tree', - 'Windows-*-Properties', + "Windows-*-Project Tree", + "Windows-*-Properties", # 'Windows-*-JETS Search', - 'Windows-*-Antenna Coupling Matrix', - 'Windows-*-Scenario Matrix', - 'Windows-*-Scenario Details', - 'Windows-*-Interaction Diagram', + "Windows-*-Antenna Coupling Matrix", + "Windows-*-Scenario Matrix", + "Windows-*-Scenario Details", + "Windows-*-Interaction Diagram", # 'Windows-*-Link Analysis', # 'Windows-*-Event Log', # 'Windows-*-Library Tree', # 'Windows-*-Python Script Window', - 'RF Systems', - 'Couplings', + "RF Systems", + "Couplings", # 'Analysis', - 'Simulation', - 'Scene', + "Simulation", + "Scene", ] top_level_node_ids = [] for name in top_level_node_names: @@ -879,7 +880,7 @@ def get_all_top_level_nodes(self) -> list[EmitNode]: top_level_node_ids = self._get_all_top_level_node_ids() top_level_nodes = [self._get_node(node_id) for node_id in top_level_node_ids] return top_level_nodes - + @pyaedt_function_handler @error_if_below_aedt_version(251) def get_all_component_nodes(self) -> list[EmitNode]: @@ -898,7 +899,7 @@ def get_all_component_nodes(self) -> list[EmitNode]: component_node_ids = [self._emit_com.GetComponentNodeID(self.results_index, name) for name in component_names] component_nodes = [self._get_node(node_id) for node_id in component_node_ids] return component_nodes - + @pyaedt_function_handler @error_if_below_aedt_version(251) def _get_all_node_ids(self) -> list[int]: @@ -929,10 +930,12 @@ def _get_all_node_ids(self) -> list[int]: node_ids.append(node_id_to_search) child_names = self._emit_com.GetChildNodeNames(self.results_index, node_id_to_search) - child_ids = [self._emit_com.GetChildNodeID(self.results_index, node_id_to_search, name) for name in child_names] + child_ids = [ + self._emit_com.GetChildNodeID(self.results_index, node_id_to_search, name) for name in child_names + ] if len(child_ids) > 0: node_ids_to_search.extend(child_ids) - + return node_ids @pyaedt_function_handler @@ -956,7 +959,7 @@ def _get_node(self, id: int) -> EmitNode: """ props = self._emit_com.GetEmitNodeProperties(self.results_index, id, True) props = EmitNode.props_to_dict(props) - type = props['Type'] + type = props["Type"] node = None try: @@ -992,7 +995,7 @@ def get_scene_node(self) -> EmitSceneNode: Returns ------- - node: EmitSceneNode + node: EmitSceneNode The Scene node for this revision. Examples @@ -1010,7 +1013,7 @@ def get_coupling_data_node(self) -> CouplingsNode: Returns ------- - node: CouplingsNode + node: CouplingsNode The Coupling Data node for this revision. Examples @@ -1030,7 +1033,7 @@ def get_simulation_node(self) -> EmitNode: ------- node: EmitNode The Simulation node for this revision. - + Examples -------- >>> simulation_node = revision.get_simulation_node() @@ -1038,7 +1041,7 @@ def get_simulation_node(self) -> EmitNode: simulation_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Simulation") simulation_node = self._get_node(simulation_node_id) return simulation_node - + @pyaedt_function_handler @error_if_below_aedt_version(251) def get_preferences_node(self) -> EmitNode: @@ -1048,7 +1051,7 @@ def get_preferences_node(self) -> EmitNode: ------- node: EmitNode The Preferences node for this revision. - + Examples -------- >>> preferences_node = revision.get_preferences_node() @@ -1082,7 +1085,7 @@ def get_result_plot_node(self) -> ResultPlotNode: Returns ------- - node: ResultPlotNode + node: ResultPlotNode The Result Plot node for this revision. Examples @@ -1107,7 +1110,9 @@ def get_result_categorization_node(self) -> EmitNode: -------- >>> result_categorization_node = revision.get_result_categorization_node() """ - result_categorization_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Windows-*-Result Categorization") + result_categorization_node_id = self._emit_com.GetTopLevelNodeID( + self.results_index, "Windows-*-Result Categorization" + ) result_categorization_node = self._get_node(result_categorization_node_id) return result_categorization_node @@ -1118,7 +1123,7 @@ def get_project_tree_node(self) -> EmitNode: Returns ------- - node: EmitNode + node: EmitNode The Project Tree node for this revision. Examples @@ -1161,7 +1166,9 @@ def get_antenna_coupling_matrix_node(self) -> EmitNode: -------- >>> antenna_coupling_matrix_node = revision.get_antenna_coupling_matrix_node() """ - antenna_coupling_matrix_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Windows-*-Antenna Coupling Matrix") + antenna_coupling_matrix_node_id = self._emit_com.GetTopLevelNodeID( + self.results_index, "Windows-*-Antenna Coupling Matrix" + ) antenna_coupling_matrix_node = self._get_node(antenna_coupling_matrix_node_id) return antenna_coupling_matrix_node @@ -1215,6 +1222,8 @@ def get_interaction_diagram_node(self) -> EmitNode: -------- >>> interaction_diagram_node = revision.get_interaction_diagram_node() """ - interaction_diagram_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Windows-*-Interaction Diagram") + interaction_diagram_node_id = self._emit_com.GetTopLevelNodeID( + self.results_index, "Windows-*-Interaction Diagram" + ) interaction_diagram_node = self._get_node(interaction_diagram_node_id) return interaction_diagram_node diff --git a/src/ansys/aedt/core/filtersolutions.py b/src/ansys/aedt/core/filtersolutions.py index a0835f7c531..a29d772a21e 100644 --- a/src/ansys/aedt/core/filtersolutions.py +++ b/src/ansys/aedt/core/filtersolutions.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/filtersolutions_core/__init__.py b/src/ansys/aedt/core/filtersolutions_core/__init__.py index 6d4c9c6d0cd..0839d1c1e95 100644 --- a/src/ansys/aedt/core/filtersolutions_core/__init__.py +++ b/src/ansys/aedt/core/filtersolutions_core/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/filtersolutions_core/attributes.py b/src/ansys/aedt/core/filtersolutions_core/attributes.py index d7073d9ec22..95193504ac6 100644 --- a/src/ansys/aedt/core/filtersolutions_core/attributes.py +++ b/src/ansys/aedt/core/filtersolutions_core/attributes.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/filtersolutions_core/dll_interface.py b/src/ansys/aedt/core/filtersolutions_core/dll_interface.py index 1f4f0381cd3..decb7bf1c7d 100644 --- a/src/ansys/aedt/core/filtersolutions_core/dll_interface.py +++ b/src/ansys/aedt/core/filtersolutions_core/dll_interface.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/filtersolutions_core/export_to_aedt.py b/src/ansys/aedt/core/filtersolutions_core/export_to_aedt.py index 61750324238..21f3e4f4aad 100644 --- a/src/ansys/aedt/core/filtersolutions_core/export_to_aedt.py +++ b/src/ansys/aedt/core/filtersolutions_core/export_to_aedt.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/filtersolutions_core/graph_setup.py b/src/ansys/aedt/core/filtersolutions_core/graph_setup.py index 98a64b4efaf..145822c00a2 100644 --- a/src/ansys/aedt/core/filtersolutions_core/graph_setup.py +++ b/src/ansys/aedt/core/filtersolutions_core/graph_setup.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/filtersolutions_core/ideal_response.py b/src/ansys/aedt/core/filtersolutions_core/ideal_response.py index 758116df5e6..2fe400c0252 100644 --- a/src/ansys/aedt/core/filtersolutions_core/ideal_response.py +++ b/src/ansys/aedt/core/filtersolutions_core/ideal_response.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/filtersolutions_core/lumped_nodes_and_leads.py b/src/ansys/aedt/core/filtersolutions_core/lumped_nodes_and_leads.py index b474ce4bc22..55e82767cda 100644 --- a/src/ansys/aedt/core/filtersolutions_core/lumped_nodes_and_leads.py +++ b/src/ansys/aedt/core/filtersolutions_core/lumped_nodes_and_leads.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/filtersolutions_core/lumped_parasitics.py b/src/ansys/aedt/core/filtersolutions_core/lumped_parasitics.py index 3f57e77686e..517e6579d69 100644 --- a/src/ansys/aedt/core/filtersolutions_core/lumped_parasitics.py +++ b/src/ansys/aedt/core/filtersolutions_core/lumped_parasitics.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/filtersolutions_core/lumped_termination_impedance_table.py b/src/ansys/aedt/core/filtersolutions_core/lumped_termination_impedance_table.py index 31561639a9c..b90e88abc62 100644 --- a/src/ansys/aedt/core/filtersolutions_core/lumped_termination_impedance_table.py +++ b/src/ansys/aedt/core/filtersolutions_core/lumped_termination_impedance_table.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/filtersolutions_core/lumped_topology.py b/src/ansys/aedt/core/filtersolutions_core/lumped_topology.py index 1df310d3924..e4d5ba71cab 100644 --- a/src/ansys/aedt/core/filtersolutions_core/lumped_topology.py +++ b/src/ansys/aedt/core/filtersolutions_core/lumped_topology.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/filtersolutions_core/multiple_bands_table.py b/src/ansys/aedt/core/filtersolutions_core/multiple_bands_table.py index c5d0b1b52df..a6023e265d8 100644 --- a/src/ansys/aedt/core/filtersolutions_core/multiple_bands_table.py +++ b/src/ansys/aedt/core/filtersolutions_core/multiple_bands_table.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/filtersolutions_core/optimization_goals_table.py b/src/ansys/aedt/core/filtersolutions_core/optimization_goals_table.py index 79852ae2753..a61edfd738d 100644 --- a/src/ansys/aedt/core/filtersolutions_core/optimization_goals_table.py +++ b/src/ansys/aedt/core/filtersolutions_core/optimization_goals_table.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/filtersolutions_core/transmission_zeros.py b/src/ansys/aedt/core/filtersolutions_core/transmission_zeros.py index 18fe4233244..d5547657ff6 100644 --- a/src/ansys/aedt/core/filtersolutions_core/transmission_zeros.py +++ b/src/ansys/aedt/core/filtersolutions_core/transmission_zeros.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/generic/__init__.py b/src/ansys/aedt/core/generic/__init__.py index 9c4476773da..b78d8fed76c 100644 --- a/src/ansys/aedt/core/generic/__init__.py +++ b/src/ansys/aedt/core/generic/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/generic/aedt_versions.py b/src/ansys/aedt/core/generic/aedt_versions.py index 187296bb304..28be63ff5ec 100644 --- a/src/ansys/aedt/core/generic/aedt_versions.py +++ b/src/ansys/aedt/core/generic/aedt_versions.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/generic/clr_module.py b/src/ansys/aedt/core/generic/clr_module.py index 6f8f3516716..698633f8414 100644 --- a/src/ansys/aedt/core/generic/clr_module.py +++ b/src/ansys/aedt/core/generic/clr_module.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/generic/configurations.py b/src/ansys/aedt/core/generic/configurations.py index 5ccd1131b47..9ac7d83d65c 100644 --- a/src/ansys/aedt/core/generic/configurations.py +++ b/src/ansys/aedt/core/generic/configurations.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/generic/constants.py b/src/ansys/aedt/core/generic/constants.py index a3a388d894c..26389fb9497 100644 --- a/src/ansys/aedt/core/generic/constants.py +++ b/src/ansys/aedt/core/generic/constants.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/generic/data_handlers.py b/src/ansys/aedt/core/generic/data_handlers.py index adc72547b78..8de82fa2000 100644 --- a/src/ansys/aedt/core/generic/data_handlers.py +++ b/src/ansys/aedt/core/generic/data_handlers.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/generic/design_types.py b/src/ansys/aedt/core/generic/design_types.py index 98519369059..8e3b670bc49 100644 --- a/src/ansys/aedt/core/generic/design_types.py +++ b/src/ansys/aedt/core/generic/design_types.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/generic/desktop_sessions.py b/src/ansys/aedt/core/generic/desktop_sessions.py index d348a47d551..b3ae6ff05ae 100644 --- a/src/ansys/aedt/core/generic/desktop_sessions.py +++ b/src/ansys/aedt/core/generic/desktop_sessions.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/generic/filesystem.py b/src/ansys/aedt/core/generic/filesystem.py index 534dcc2bc63..2ca1c736dd6 100644 --- a/src/ansys/aedt/core/generic/filesystem.py +++ b/src/ansys/aedt/core/generic/filesystem.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/generic/general_methods.py b/src/ansys/aedt/core/generic/general_methods.py index dc7d593af7a..f81b50b0aad 100644 --- a/src/ansys/aedt/core/generic/general_methods.py +++ b/src/ansys/aedt/core/generic/general_methods.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/generic/grpc_plugin_dll_class.py b/src/ansys/aedt/core/generic/grpc_plugin_dll_class.py index 822ee78e5de..de715b3d428 100644 --- a/src/ansys/aedt/core/generic/grpc_plugin_dll_class.py +++ b/src/ansys/aedt/core/generic/grpc_plugin_dll_class.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/generic/ibis_reader.py b/src/ansys/aedt/core/generic/ibis_reader.py index fa378466a49..917eebe4849 100644 --- a/src/ansys/aedt/core/generic/ibis_reader.py +++ b/src/ansys/aedt/core/generic/ibis_reader.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/generic/load_aedt_file.py b/src/ansys/aedt/core/generic/load_aedt_file.py index ef7ec682755..9af1ae80128 100644 --- a/src/ansys/aedt/core/generic/load_aedt_file.py +++ b/src/ansys/aedt/core/generic/load_aedt_file.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/generic/python_optimizers.py b/src/ansys/aedt/core/generic/python_optimizers.py index a3e9e36a011..5516e1a388b 100644 --- a/src/ansys/aedt/core/generic/python_optimizers.py +++ b/src/ansys/aedt/core/generic/python_optimizers.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/generic/settings.py b/src/ansys/aedt/core/generic/settings.py index 194b9c16b08..a602083b928 100644 --- a/src/ansys/aedt/core/generic/settings.py +++ b/src/ansys/aedt/core/generic/settings.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/hfss.py b/src/ansys/aedt/core/hfss.py index 95a0539c398..16ae5cd0225 100644 --- a/src/ansys/aedt/core/hfss.py +++ b/src/ansys/aedt/core/hfss.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/hfss3dlayout.py b/src/ansys/aedt/core/hfss3dlayout.py index 307ffd1f82a..cca17bbf89f 100644 --- a/src/ansys/aedt/core/hfss3dlayout.py +++ b/src/ansys/aedt/core/hfss3dlayout.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/icepak.py b/src/ansys/aedt/core/icepak.py index f3adda12068..3871cfa43a8 100644 --- a/src/ansys/aedt/core/icepak.py +++ b/src/ansys/aedt/core/icepak.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/maxwell.py b/src/ansys/aedt/core/maxwell.py index 1822002afeb..6cb3edc3e01 100644 --- a/src/ansys/aedt/core/maxwell.py +++ b/src/ansys/aedt/core/maxwell.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/maxwellcircuit.py b/src/ansys/aedt/core/maxwellcircuit.py index 033424e26f7..bf350befce7 100644 --- a/src/ansys/aedt/core/maxwellcircuit.py +++ b/src/ansys/aedt/core/maxwellcircuit.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/mechanical.py b/src/ansys/aedt/core/mechanical.py index 2f212fa4862..cd5f46cf7d8 100644 --- a/src/ansys/aedt/core/mechanical.py +++ b/src/ansys/aedt/core/mechanical.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/misc/__init__.py b/src/ansys/aedt/core/misc/__init__.py index 9c4476773da..b78d8fed76c 100644 --- a/src/ansys/aedt/core/misc/__init__.py +++ b/src/ansys/aedt/core/misc/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/misc/create_remote_dir.py b/src/ansys/aedt/core/misc/create_remote_dir.py index 2996053836f..7063056140d 100644 --- a/src/ansys/aedt/core/misc/create_remote_dir.py +++ b/src/ansys/aedt/core/misc/create_remote_dir.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/__init__.py b/src/ansys/aedt/core/modeler/__init__.py index 9c4476773da..b78d8fed76c 100644 --- a/src/ansys/aedt/core/modeler/__init__.py +++ b/src/ansys/aedt/core/modeler/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/advanced_cad/__init__.py b/src/ansys/aedt/core/modeler/advanced_cad/__init__.py index 9c4476773da..b78d8fed76c 100644 --- a/src/ansys/aedt/core/modeler/advanced_cad/__init__.py +++ b/src/ansys/aedt/core/modeler/advanced_cad/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/advanced_cad/actors.py b/src/ansys/aedt/core/modeler/advanced_cad/actors.py index f1a9dfabf13..1e5a674005d 100644 --- a/src/ansys/aedt/core/modeler/advanced_cad/actors.py +++ b/src/ansys/aedt/core/modeler/advanced_cad/actors.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/advanced_cad/multiparts.py b/src/ansys/aedt/core/modeler/advanced_cad/multiparts.py index dc8bfb72b26..5728362747c 100644 --- a/src/ansys/aedt/core/modeler/advanced_cad/multiparts.py +++ b/src/ansys/aedt/core/modeler/advanced_cad/multiparts.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/advanced_cad/oms.py b/src/ansys/aedt/core/modeler/advanced_cad/oms.py index 045bc42630d..c523b9d3735 100644 --- a/src/ansys/aedt/core/modeler/advanced_cad/oms.py +++ b/src/ansys/aedt/core/modeler/advanced_cad/oms.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/advanced_cad/parts.py b/src/ansys/aedt/core/modeler/advanced_cad/parts.py index dd6e4b1dbc2..cd1fb32e01e 100644 --- a/src/ansys/aedt/core/modeler/advanced_cad/parts.py +++ b/src/ansys/aedt/core/modeler/advanced_cad/parts.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/advanced_cad/stackup_3d.py b/src/ansys/aedt/core/modeler/advanced_cad/stackup_3d.py index fa6dc15ec9e..3891e3a0c21 100644 --- a/src/ansys/aedt/core/modeler/advanced_cad/stackup_3d.py +++ b/src/ansys/aedt/core/modeler/advanced_cad/stackup_3d.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/cad/__init__.py b/src/ansys/aedt/core/modeler/cad/__init__.py index 9c4476773da..b78d8fed76c 100644 --- a/src/ansys/aedt/core/modeler/cad/__init__.py +++ b/src/ansys/aedt/core/modeler/cad/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/cad/component_array.py b/src/ansys/aedt/core/modeler/cad/component_array.py index c41cb411ab9..5209bc1bd2a 100644 --- a/src/ansys/aedt/core/modeler/cad/component_array.py +++ b/src/ansys/aedt/core/modeler/cad/component_array.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/cad/components_3d.py b/src/ansys/aedt/core/modeler/cad/components_3d.py index 0fa7f45536d..36ec3479cfc 100644 --- a/src/ansys/aedt/core/modeler/cad/components_3d.py +++ b/src/ansys/aedt/core/modeler/cad/components_3d.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/cad/elements_3d.py b/src/ansys/aedt/core/modeler/cad/elements_3d.py index ef457b915c5..bbaa95278d5 100644 --- a/src/ansys/aedt/core/modeler/cad/elements_3d.py +++ b/src/ansys/aedt/core/modeler/cad/elements_3d.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/cad/modeler.py b/src/ansys/aedt/core/modeler/cad/modeler.py index 41fcb489dd2..034943ac4b9 100644 --- a/src/ansys/aedt/core/modeler/cad/modeler.py +++ b/src/ansys/aedt/core/modeler/cad/modeler.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/cad/object_3d.py b/src/ansys/aedt/core/modeler/cad/object_3d.py index 0872efde3ca..3b66f2f18a0 100644 --- a/src/ansys/aedt/core/modeler/cad/object_3d.py +++ b/src/ansys/aedt/core/modeler/cad/object_3d.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/cad/polylines.py b/src/ansys/aedt/core/modeler/cad/polylines.py index 914c1269376..de74047dddd 100644 --- a/src/ansys/aedt/core/modeler/cad/polylines.py +++ b/src/ansys/aedt/core/modeler/cad/polylines.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/cad/primitives.py b/src/ansys/aedt/core/modeler/cad/primitives.py index 3d38d7364f3..72765d1c304 100644 --- a/src/ansys/aedt/core/modeler/cad/primitives.py +++ b/src/ansys/aedt/core/modeler/cad/primitives.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/cad/primitives_2d.py b/src/ansys/aedt/core/modeler/cad/primitives_2d.py index c07ac588d00..65fe86993b9 100644 --- a/src/ansys/aedt/core/modeler/cad/primitives_2d.py +++ b/src/ansys/aedt/core/modeler/cad/primitives_2d.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/cad/primitives_3d.py b/src/ansys/aedt/core/modeler/cad/primitives_3d.py index f96c19ecada..da66f66aaaa 100644 --- a/src/ansys/aedt/core/modeler/cad/primitives_3d.py +++ b/src/ansys/aedt/core/modeler/cad/primitives_3d.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/calculators.py b/src/ansys/aedt/core/modeler/calculators.py index 03730723bf0..1430bf68f38 100644 --- a/src/ansys/aedt/core/modeler/calculators.py +++ b/src/ansys/aedt/core/modeler/calculators.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/circuits/__init__.py b/src/ansys/aedt/core/modeler/circuits/__init__.py index 9c4476773da..b78d8fed76c 100644 --- a/src/ansys/aedt/core/modeler/circuits/__init__.py +++ b/src/ansys/aedt/core/modeler/circuits/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/circuits/object_3d_circuit.py b/src/ansys/aedt/core/modeler/circuits/object_3d_circuit.py index 55e2de61824..4998761ea6a 100644 --- a/src/ansys/aedt/core/modeler/circuits/object_3d_circuit.py +++ b/src/ansys/aedt/core/modeler/circuits/object_3d_circuit.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/circuits/primitives_circuit.py b/src/ansys/aedt/core/modeler/circuits/primitives_circuit.py index 065d001a95f..b05a22a12c0 100644 --- a/src/ansys/aedt/core/modeler/circuits/primitives_circuit.py +++ b/src/ansys/aedt/core/modeler/circuits/primitives_circuit.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/circuits/primitives_emit.py b/src/ansys/aedt/core/modeler/circuits/primitives_emit.py index 7c4ee9507f9..ac088d74b90 100644 --- a/src/ansys/aedt/core/modeler/circuits/primitives_emit.py +++ b/src/ansys/aedt/core/modeler/circuits/primitives_emit.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/circuits/primitives_maxwell_circuit.py b/src/ansys/aedt/core/modeler/circuits/primitives_maxwell_circuit.py index fe2b6844302..a0b19d93a2f 100644 --- a/src/ansys/aedt/core/modeler/circuits/primitives_maxwell_circuit.py +++ b/src/ansys/aedt/core/modeler/circuits/primitives_maxwell_circuit.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/circuits/primitives_nexxim.py b/src/ansys/aedt/core/modeler/circuits/primitives_nexxim.py index 4179ed83b9b..86e99bd7c32 100644 --- a/src/ansys/aedt/core/modeler/circuits/primitives_nexxim.py +++ b/src/ansys/aedt/core/modeler/circuits/primitives_nexxim.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/circuits/primitives_twin_builder.py b/src/ansys/aedt/core/modeler/circuits/primitives_twin_builder.py index 814724ae0e9..260e99650c2 100644 --- a/src/ansys/aedt/core/modeler/circuits/primitives_twin_builder.py +++ b/src/ansys/aedt/core/modeler/circuits/primitives_twin_builder.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/geometry_operators.py b/src/ansys/aedt/core/modeler/geometry_operators.py index 30428732bdf..da6c6deaa4c 100644 --- a/src/ansys/aedt/core/modeler/geometry_operators.py +++ b/src/ansys/aedt/core/modeler/geometry_operators.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/modeler_2d.py b/src/ansys/aedt/core/modeler/modeler_2d.py index 43bf70f6bf1..f2e1aca6266 100644 --- a/src/ansys/aedt/core/modeler/modeler_2d.py +++ b/src/ansys/aedt/core/modeler/modeler_2d.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/modeler_3d.py b/src/ansys/aedt/core/modeler/modeler_3d.py index 834453b494a..d11c1cea110 100644 --- a/src/ansys/aedt/core/modeler/modeler_3d.py +++ b/src/ansys/aedt/core/modeler/modeler_3d.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/modeler_pcb.py b/src/ansys/aedt/core/modeler/modeler_pcb.py index 1eb485a22b9..ae54fa3de9a 100644 --- a/src/ansys/aedt/core/modeler/modeler_pcb.py +++ b/src/ansys/aedt/core/modeler/modeler_pcb.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/pcb/__init__.py b/src/ansys/aedt/core/modeler/pcb/__init__.py index 9c4476773da..b78d8fed76c 100644 --- a/src/ansys/aedt/core/modeler/pcb/__init__.py +++ b/src/ansys/aedt/core/modeler/pcb/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/pcb/object_3d_layout.py b/src/ansys/aedt/core/modeler/pcb/object_3d_layout.py index 12c85725348..afd9488739c 100644 --- a/src/ansys/aedt/core/modeler/pcb/object_3d_layout.py +++ b/src/ansys/aedt/core/modeler/pcb/object_3d_layout.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/pcb/primitives_3d_layout.py b/src/ansys/aedt/core/modeler/pcb/primitives_3d_layout.py index c32d2310232..27b0d38e85b 100644 --- a/src/ansys/aedt/core/modeler/pcb/primitives_3d_layout.py +++ b/src/ansys/aedt/core/modeler/pcb/primitives_3d_layout.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modeler/schematic.py b/src/ansys/aedt/core/modeler/schematic.py index 5d4320e40f0..a414ef13d08 100644 --- a/src/ansys/aedt/core/modeler/schematic.py +++ b/src/ansys/aedt/core/modeler/schematic.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modules/__init__.py b/src/ansys/aedt/core/modules/__init__.py index 9c4476773da..b78d8fed76c 100644 --- a/src/ansys/aedt/core/modules/__init__.py +++ b/src/ansys/aedt/core/modules/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modules/boundary.py b/src/ansys/aedt/core/modules/boundary.py index fa472e800b7..5bf8f063455 100644 --- a/src/ansys/aedt/core/modules/boundary.py +++ b/src/ansys/aedt/core/modules/boundary.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modules/cable_modeling.py b/src/ansys/aedt/core/modules/cable_modeling.py index 8f28443f3b7..a8bc5f96622 100644 --- a/src/ansys/aedt/core/modules/cable_modeling.py +++ b/src/ansys/aedt/core/modules/cable_modeling.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modules/circuit_templates.py b/src/ansys/aedt/core/modules/circuit_templates.py index 7560bd30952..0212f2d1c20 100644 --- a/src/ansys/aedt/core/modules/circuit_templates.py +++ b/src/ansys/aedt/core/modules/circuit_templates.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modules/design_xploration.py b/src/ansys/aedt/core/modules/design_xploration.py index 125a05aedef..4fb2f4be973 100644 --- a/src/ansys/aedt/core/modules/design_xploration.py +++ b/src/ansys/aedt/core/modules/design_xploration.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modules/layer_stackup.py b/src/ansys/aedt/core/modules/layer_stackup.py index bff035c30ff..7bc81d87c86 100644 --- a/src/ansys/aedt/core/modules/layer_stackup.py +++ b/src/ansys/aedt/core/modules/layer_stackup.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modules/material.py b/src/ansys/aedt/core/modules/material.py index 9d44c929e83..de068a4f283 100644 --- a/src/ansys/aedt/core/modules/material.py +++ b/src/ansys/aedt/core/modules/material.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modules/material_lib.py b/src/ansys/aedt/core/modules/material_lib.py index 1037e233f76..e2e90a01672 100644 --- a/src/ansys/aedt/core/modules/material_lib.py +++ b/src/ansys/aedt/core/modules/material_lib.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modules/material_workbench.py b/src/ansys/aedt/core/modules/material_workbench.py index 0fa47920eac..3189d9a74e9 100644 --- a/src/ansys/aedt/core/modules/material_workbench.py +++ b/src/ansys/aedt/core/modules/material_workbench.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modules/mesh.py b/src/ansys/aedt/core/modules/mesh.py index 69a4c34696d..7d05d0a86de 100644 --- a/src/ansys/aedt/core/modules/mesh.py +++ b/src/ansys/aedt/core/modules/mesh.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modules/mesh_3d_layout.py b/src/ansys/aedt/core/modules/mesh_3d_layout.py index 0b3e2380f5f..7ebccbd345c 100644 --- a/src/ansys/aedt/core/modules/mesh_3d_layout.py +++ b/src/ansys/aedt/core/modules/mesh_3d_layout.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modules/mesh_icepak.py b/src/ansys/aedt/core/modules/mesh_icepak.py index f57cfb4b181..04fa052fd20 100644 --- a/src/ansys/aedt/core/modules/mesh_icepak.py +++ b/src/ansys/aedt/core/modules/mesh_icepak.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modules/optimetrics_templates.py b/src/ansys/aedt/core/modules/optimetrics_templates.py index 76da1ac27c4..211afaba94a 100644 --- a/src/ansys/aedt/core/modules/optimetrics_templates.py +++ b/src/ansys/aedt/core/modules/optimetrics_templates.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modules/setup_templates.py b/src/ansys/aedt/core/modules/setup_templates.py index 9f47b9e38f4..7e2a406e1d2 100644 --- a/src/ansys/aedt/core/modules/setup_templates.py +++ b/src/ansys/aedt/core/modules/setup_templates.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modules/solve_setup.py b/src/ansys/aedt/core/modules/solve_setup.py index efcd68cd16f..45195d2a731 100644 --- a/src/ansys/aedt/core/modules/solve_setup.py +++ b/src/ansys/aedt/core/modules/solve_setup.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/modules/solve_sweeps.py b/src/ansys/aedt/core/modules/solve_sweeps.py index 100799142da..dec26d5c1b2 100644 --- a/src/ansys/aedt/core/modules/solve_sweeps.py +++ b/src/ansys/aedt/core/modules/solve_sweeps.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/q3d.py b/src/ansys/aedt/core/q3d.py index 01b42c8aed7..c4fbca97e74 100644 --- a/src/ansys/aedt/core/q3d.py +++ b/src/ansys/aedt/core/q3d.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/rmxprt.py b/src/ansys/aedt/core/rmxprt.py index f8275315932..31252cfd27a 100644 --- a/src/ansys/aedt/core/rmxprt.py +++ b/src/ansys/aedt/core/rmxprt.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/twinbuilder.py b/src/ansys/aedt/core/twinbuilder.py index 7de2381001c..5318917047f 100644 --- a/src/ansys/aedt/core/twinbuilder.py +++ b/src/ansys/aedt/core/twinbuilder.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/__init__.py b/src/ansys/aedt/core/visualization/__init__.py index 9c4476773da..b78d8fed76c 100644 --- a/src/ansys/aedt/core/visualization/__init__.py +++ b/src/ansys/aedt/core/visualization/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/advanced/__init__.py b/src/ansys/aedt/core/visualization/advanced/__init__.py index 9c4476773da..b78d8fed76c 100644 --- a/src/ansys/aedt/core/visualization/advanced/__init__.py +++ b/src/ansys/aedt/core/visualization/advanced/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/advanced/farfield_visualization.py b/src/ansys/aedt/core/visualization/advanced/farfield_visualization.py index 488780ba25b..cdd5835652c 100644 --- a/src/ansys/aedt/core/visualization/advanced/farfield_visualization.py +++ b/src/ansys/aedt/core/visualization/advanced/farfield_visualization.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/advanced/hdm_plot.py b/src/ansys/aedt/core/visualization/advanced/hdm_plot.py index 55b6590c4b2..9699b031e95 100644 --- a/src/ansys/aedt/core/visualization/advanced/hdm_plot.py +++ b/src/ansys/aedt/core/visualization/advanced/hdm_plot.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/advanced/misc.py b/src/ansys/aedt/core/visualization/advanced/misc.py index 3e57a615442..96719b195f0 100644 --- a/src/ansys/aedt/core/visualization/advanced/misc.py +++ b/src/ansys/aedt/core/visualization/advanced/misc.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/advanced/rcs_visualization.py b/src/ansys/aedt/core/visualization/advanced/rcs_visualization.py index 4fa04fbd338..85210c3cce5 100644 --- a/src/ansys/aedt/core/visualization/advanced/rcs_visualization.py +++ b/src/ansys/aedt/core/visualization/advanced/rcs_visualization.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/advanced/sbrplus/__init__.py b/src/ansys/aedt/core/visualization/advanced/sbrplus/__init__.py index 9c4476773da..b78d8fed76c 100644 --- a/src/ansys/aedt/core/visualization/advanced/sbrplus/__init__.py +++ b/src/ansys/aedt/core/visualization/advanced/sbrplus/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/advanced/sbrplus/hdm_parser.py b/src/ansys/aedt/core/visualization/advanced/sbrplus/hdm_parser.py index 6e432468ee7..d470f4b15ac 100644 --- a/src/ansys/aedt/core/visualization/advanced/sbrplus/hdm_parser.py +++ b/src/ansys/aedt/core/visualization/advanced/sbrplus/hdm_parser.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/advanced/sbrplus/hdm_utils.py b/src/ansys/aedt/core/visualization/advanced/sbrplus/hdm_utils.py index beb52ec1dcf..10524971784 100644 --- a/src/ansys/aedt/core/visualization/advanced/sbrplus/hdm_utils.py +++ b/src/ansys/aedt/core/visualization/advanced/sbrplus/hdm_utils.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/advanced/touchstone_parser.py b/src/ansys/aedt/core/visualization/advanced/touchstone_parser.py index 8f46baa50d3..83d07277e62 100644 --- a/src/ansys/aedt/core/visualization/advanced/touchstone_parser.py +++ b/src/ansys/aedt/core/visualization/advanced/touchstone_parser.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/plot/__init__.py b/src/ansys/aedt/core/visualization/plot/__init__.py index 9c4476773da..b78d8fed76c 100644 --- a/src/ansys/aedt/core/visualization/plot/__init__.py +++ b/src/ansys/aedt/core/visualization/plot/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/plot/matplotlib.py b/src/ansys/aedt/core/visualization/plot/matplotlib.py index 9f3c66dc57e..95d4e3b172a 100644 --- a/src/ansys/aedt/core/visualization/plot/matplotlib.py +++ b/src/ansys/aedt/core/visualization/plot/matplotlib.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/plot/pdf.py b/src/ansys/aedt/core/visualization/plot/pdf.py index 031c70bc01d..448a5728410 100644 --- a/src/ansys/aedt/core/visualization/plot/pdf.py +++ b/src/ansys/aedt/core/visualization/plot/pdf.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/plot/pyvista.py b/src/ansys/aedt/core/visualization/plot/pyvista.py index 9fcc9da268c..f95ec6c84dc 100644 --- a/src/ansys/aedt/core/visualization/plot/pyvista.py +++ b/src/ansys/aedt/core/visualization/plot/pyvista.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/post/__init__.py b/src/ansys/aedt/core/visualization/post/__init__.py index 4009620b257..48fcb1b8703 100644 --- a/src/ansys/aedt/core/visualization/post/__init__.py +++ b/src/ansys/aedt/core/visualization/post/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/post/common.py b/src/ansys/aedt/core/visualization/post/common.py index ab2d0b2b313..b0c4b5e8b50 100644 --- a/src/ansys/aedt/core/visualization/post/common.py +++ b/src/ansys/aedt/core/visualization/post/common.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/post/compliance.py b/src/ansys/aedt/core/visualization/post/compliance.py index 19fed86b555..ec0b1c6c5b3 100644 --- a/src/ansys/aedt/core/visualization/post/compliance.py +++ b/src/ansys/aedt/core/visualization/post/compliance.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/post/farfield_exporter.py b/src/ansys/aedt/core/visualization/post/farfield_exporter.py index 8edd492fe29..61b56b51657 100644 --- a/src/ansys/aedt/core/visualization/post/farfield_exporter.py +++ b/src/ansys/aedt/core/visualization/post/farfield_exporter.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/post/field_data.py b/src/ansys/aedt/core/visualization/post/field_data.py index 384ef3800c3..ca65717806a 100644 --- a/src/ansys/aedt/core/visualization/post/field_data.py +++ b/src/ansys/aedt/core/visualization/post/field_data.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/post/field_summary.py b/src/ansys/aedt/core/visualization/post/field_summary.py index 7cd4d98e5ab..7251721446a 100644 --- a/src/ansys/aedt/core/visualization/post/field_summary.py +++ b/src/ansys/aedt/core/visualization/post/field_summary.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/post/fields_calculator.py b/src/ansys/aedt/core/visualization/post/fields_calculator.py index 7114c734c2a..0e43e524689 100644 --- a/src/ansys/aedt/core/visualization/post/fields_calculator.py +++ b/src/ansys/aedt/core/visualization/post/fields_calculator.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/visualization/post/monitor_icepak.py b/src/ansys/aedt/core/visualization/post/monitor_icepak.py index fb86e2a96cd..a5fe5de8032 100644 --- a/src/ansys/aedt/core/visualization/post/monitor_icepak.py +++ b/src/ansys/aedt/core/visualization/post/monitor_icepak.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/post/post_3dlayout.py b/src/ansys/aedt/core/visualization/post/post_3dlayout.py index 9f1d0b918af..0abce127135 100644 --- a/src/ansys/aedt/core/visualization/post/post_3dlayout.py +++ b/src/ansys/aedt/core/visualization/post/post_3dlayout.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/post/post_circuit.py b/src/ansys/aedt/core/visualization/post/post_circuit.py index cc4de54953b..f9522a3ab6c 100644 --- a/src/ansys/aedt/core/visualization/post/post_circuit.py +++ b/src/ansys/aedt/core/visualization/post/post_circuit.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/post/post_common_3d.py b/src/ansys/aedt/core/visualization/post/post_common_3d.py index 238b148b3a5..05e610247ee 100644 --- a/src/ansys/aedt/core/visualization/post/post_common_3d.py +++ b/src/ansys/aedt/core/visualization/post/post_common_3d.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/post/post_icepak.py b/src/ansys/aedt/core/visualization/post/post_icepak.py index 942971f816b..a3e3da999de 100644 --- a/src/ansys/aedt/core/visualization/post/post_icepak.py +++ b/src/ansys/aedt/core/visualization/post/post_icepak.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/post/rcs_exporter.py b/src/ansys/aedt/core/visualization/post/rcs_exporter.py index 4592a769ea6..db8d1b5addd 100644 --- a/src/ansys/aedt/core/visualization/post/rcs_exporter.py +++ b/src/ansys/aedt/core/visualization/post/rcs_exporter.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/post/solution_data.py b/src/ansys/aedt/core/visualization/post/solution_data.py index aedec767547..6b95e1c28a5 100644 --- a/src/ansys/aedt/core/visualization/post/solution_data.py +++ b/src/ansys/aedt/core/visualization/post/solution_data.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/post/spisim.py b/src/ansys/aedt/core/visualization/post/spisim.py index 03ac4735ea1..8b719a767d1 100644 --- a/src/ansys/aedt/core/visualization/post/spisim.py +++ b/src/ansys/aedt/core/visualization/post/spisim.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/post/spisim_com_configuration_files/__init__.py b/src/ansys/aedt/core/visualization/post/spisim_com_configuration_files/__init__.py index addb0938ec4..39f7bda009b 100644 --- a/src/ansys/aedt/core/visualization/post/spisim_com_configuration_files/__init__.py +++ b/src/ansys/aedt/core/visualization/post/spisim_com_configuration_files/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/post/spisim_com_configuration_files/com_parameters.py b/src/ansys/aedt/core/visualization/post/spisim_com_configuration_files/com_parameters.py index dbe5b79d50f..7576319a8d4 100644 --- a/src/ansys/aedt/core/visualization/post/spisim_com_configuration_files/com_parameters.py +++ b/src/ansys/aedt/core/visualization/post/spisim_com_configuration_files/com_parameters.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/post/spisim_com_configuration_files/com_settings_mapping.py b/src/ansys/aedt/core/visualization/post/spisim_com_configuration_files/com_settings_mapping.py index b41e73b8e1d..58434e72e24 100644 --- a/src/ansys/aedt/core/visualization/post/spisim_com_configuration_files/com_settings_mapping.py +++ b/src/ansys/aedt/core/visualization/post/spisim_com_configuration_files/com_settings_mapping.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/post/vrt_data.py b/src/ansys/aedt/core/visualization/post/vrt_data.py index d556d4a20ed..d0ccf53d20f 100644 --- a/src/ansys/aedt/core/visualization/post/vrt_data.py +++ b/src/ansys/aedt/core/visualization/post/vrt_data.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/report/__init__.py b/src/ansys/aedt/core/visualization/report/__init__.py index 9c4476773da..b78d8fed76c 100644 --- a/src/ansys/aedt/core/visualization/report/__init__.py +++ b/src/ansys/aedt/core/visualization/report/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/report/common.py b/src/ansys/aedt/core/visualization/report/common.py index 2d4aa353ed6..f6fa7f18d8d 100644 --- a/src/ansys/aedt/core/visualization/report/common.py +++ b/src/ansys/aedt/core/visualization/report/common.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/report/constants.py b/src/ansys/aedt/core/visualization/report/constants.py index 4af74811b1d..e4f9a7c5ce7 100644 --- a/src/ansys/aedt/core/visualization/report/constants.py +++ b/src/ansys/aedt/core/visualization/report/constants.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/report/emi.py b/src/ansys/aedt/core/visualization/report/emi.py index c4f9d643518..04ff9eaa732 100644 --- a/src/ansys/aedt/core/visualization/report/emi.py +++ b/src/ansys/aedt/core/visualization/report/emi.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/report/eye.py b/src/ansys/aedt/core/visualization/report/eye.py index da06cd5b26d..5554572e053 100644 --- a/src/ansys/aedt/core/visualization/report/eye.py +++ b/src/ansys/aedt/core/visualization/report/eye.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/report/field.py b/src/ansys/aedt/core/visualization/report/field.py index a85b7571603..9ca7f3b62a7 100644 --- a/src/ansys/aedt/core/visualization/report/field.py +++ b/src/ansys/aedt/core/visualization/report/field.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/visualization/report/standard.py b/src/ansys/aedt/core/visualization/report/standard.py index 43425b20011..a02bd67ef4a 100644 --- a/src/ansys/aedt/core/visualization/report/standard.py +++ b/src/ansys/aedt/core/visualization/report/standard.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/workflows/__init__.py b/src/ansys/aedt/core/workflows/__init__.py index f10103137e9..4b4bef088b4 100644 --- a/src/ansys/aedt/core/workflows/__init__.py +++ b/src/ansys/aedt/core/workflows/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/circuit/__init__.py b/src/ansys/aedt/core/workflows/circuit/__init__.py index f10103137e9..4b4bef088b4 100644 --- a/src/ansys/aedt/core/workflows/circuit/__init__.py +++ b/src/ansys/aedt/core/workflows/circuit/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/circuit/import_schematic.py b/src/ansys/aedt/core/workflows/circuit/import_schematic.py index a084d4de468..ca608a25248 100644 --- a/src/ansys/aedt/core/workflows/circuit/import_schematic.py +++ b/src/ansys/aedt/core/workflows/circuit/import_schematic.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/customize_automation_tab.py b/src/ansys/aedt/core/workflows/customize_automation_tab.py index 6673f862d6f..e21539662f9 100644 --- a/src/ansys/aedt/core/workflows/customize_automation_tab.py +++ b/src/ansys/aedt/core/workflows/customize_automation_tab.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/emit/__init__.py b/src/ansys/aedt/core/workflows/emit/__init__.py index f10103137e9..4b4bef088b4 100644 --- a/src/ansys/aedt/core/workflows/emit/__init__.py +++ b/src/ansys/aedt/core/workflows/emit/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/hfss/__init__.py b/src/ansys/aedt/core/workflows/hfss/__init__.py index f10103137e9..4b4bef088b4 100644 --- a/src/ansys/aedt/core/workflows/hfss/__init__.py +++ b/src/ansys/aedt/core/workflows/hfss/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/hfss/choke_designer.py b/src/ansys/aedt/core/workflows/hfss/choke_designer.py index 0bd442fa66c..e083cdb1fad 100644 --- a/src/ansys/aedt/core/workflows/hfss/choke_designer.py +++ b/src/ansys/aedt/core/workflows/hfss/choke_designer.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/hfss/push_excitation_from_file.py b/src/ansys/aedt/core/workflows/hfss/push_excitation_from_file.py index d2283e5fa74..f770b6a4312 100644 --- a/src/ansys/aedt/core/workflows/hfss/push_excitation_from_file.py +++ b/src/ansys/aedt/core/workflows/hfss/push_excitation_from_file.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/hfss3dlayout/__init__.py b/src/ansys/aedt/core/workflows/hfss3dlayout/__init__.py index f10103137e9..4b4bef088b4 100644 --- a/src/ansys/aedt/core/workflows/hfss3dlayout/__init__.py +++ b/src/ansys/aedt/core/workflows/hfss3dlayout/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/hfss3dlayout/cutout.py b/src/ansys/aedt/core/workflows/hfss3dlayout/cutout.py index bbd0d4044ed..9fe91c4f733 100644 --- a/src/ansys/aedt/core/workflows/hfss3dlayout/cutout.py +++ b/src/ansys/aedt/core/workflows/hfss3dlayout/cutout.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/hfss3dlayout/export_layout.py b/src/ansys/aedt/core/workflows/hfss3dlayout/export_layout.py index 38c6bb7b562..c5fe40fbd65 100644 --- a/src/ansys/aedt/core/workflows/hfss3dlayout/export_layout.py +++ b/src/ansys/aedt/core/workflows/hfss3dlayout/export_layout.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/hfss3dlayout/export_to_3d.py b/src/ansys/aedt/core/workflows/hfss3dlayout/export_to_3d.py index 3202a6d5de1..49393585eb8 100644 --- a/src/ansys/aedt/core/workflows/hfss3dlayout/export_to_3d.py +++ b/src/ansys/aedt/core/workflows/hfss3dlayout/export_to_3d.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/hfss3dlayout/generate_arbitrary_wave_ports.py b/src/ansys/aedt/core/workflows/hfss3dlayout/generate_arbitrary_wave_ports.py index 90363289d98..be9a2e36a86 100644 --- a/src/ansys/aedt/core/workflows/hfss3dlayout/generate_arbitrary_wave_ports.py +++ b/src/ansys/aedt/core/workflows/hfss3dlayout/generate_arbitrary_wave_ports.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/hfss3dlayout/parametrize_edb.py b/src/ansys/aedt/core/workflows/hfss3dlayout/parametrize_edb.py index ab7cd9413fd..518dceea830 100644 --- a/src/ansys/aedt/core/workflows/hfss3dlayout/parametrize_edb.py +++ b/src/ansys/aedt/core/workflows/hfss3dlayout/parametrize_edb.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/hfss3dlayout/push_excitation_from_file_3dl.py b/src/ansys/aedt/core/workflows/hfss3dlayout/push_excitation_from_file_3dl.py index b8157f1e3ae..054a8c9a03b 100644 --- a/src/ansys/aedt/core/workflows/hfss3dlayout/push_excitation_from_file_3dl.py +++ b/src/ansys/aedt/core/workflows/hfss3dlayout/push_excitation_from_file_3dl.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/icepak/__init__.py b/src/ansys/aedt/core/workflows/icepak/__init__.py index f10103137e9..4b4bef088b4 100644 --- a/src/ansys/aedt/core/workflows/icepak/__init__.py +++ b/src/ansys/aedt/core/workflows/icepak/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/icepak/power_map_from_csv.py b/src/ansys/aedt/core/workflows/icepak/power_map_from_csv.py index c646b7563ae..1056a2d7840 100644 --- a/src/ansys/aedt/core/workflows/icepak/power_map_from_csv.py +++ b/src/ansys/aedt/core/workflows/icepak/power_map_from_csv.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/maxwell2d/__init__.py b/src/ansys/aedt/core/workflows/maxwell2d/__init__.py index f10103137e9..4b4bef088b4 100644 --- a/src/ansys/aedt/core/workflows/maxwell2d/__init__.py +++ b/src/ansys/aedt/core/workflows/maxwell2d/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/maxwell3d/__init__.py b/src/ansys/aedt/core/workflows/maxwell3d/__init__.py index f10103137e9..4b4bef088b4 100644 --- a/src/ansys/aedt/core/workflows/maxwell3d/__init__.py +++ b/src/ansys/aedt/core/workflows/maxwell3d/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/mechanical/__init__.py b/src/ansys/aedt/core/workflows/mechanical/__init__.py index f10103137e9..4b4bef088b4 100644 --- a/src/ansys/aedt/core/workflows/mechanical/__init__.py +++ b/src/ansys/aedt/core/workflows/mechanical/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/misc.py b/src/ansys/aedt/core/workflows/misc.py index 943b41e0eba..5feb4f52b8a 100644 --- a/src/ansys/aedt/core/workflows/misc.py +++ b/src/ansys/aedt/core/workflows/misc.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/project/__init__.py b/src/ansys/aedt/core/workflows/project/__init__.py index f10103137e9..4b4bef088b4 100644 --- a/src/ansys/aedt/core/workflows/project/__init__.py +++ b/src/ansys/aedt/core/workflows/project/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/project/advanced_fields_calculator.py b/src/ansys/aedt/core/workflows/project/advanced_fields_calculator.py index 7ccd443f493..022e4bbd568 100644 --- a/src/ansys/aedt/core/workflows/project/advanced_fields_calculator.py +++ b/src/ansys/aedt/core/workflows/project/advanced_fields_calculator.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/project/configure_edb.py b/src/ansys/aedt/core/workflows/project/configure_edb.py index 1a3530c13d2..1e4600fdf21 100644 --- a/src/ansys/aedt/core/workflows/project/configure_edb.py +++ b/src/ansys/aedt/core/workflows/project/configure_edb.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/project/create_report.py b/src/ansys/aedt/core/workflows/project/create_report.py index db376b51bde..1a4cc9f1915 100644 --- a/src/ansys/aedt/core/workflows/project/create_report.py +++ b/src/ansys/aedt/core/workflows/project/create_report.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/project/import_nastran.py b/src/ansys/aedt/core/workflows/project/import_nastran.py index 906963fe23f..20a38358b1d 100644 --- a/src/ansys/aedt/core/workflows/project/import_nastran.py +++ b/src/ansys/aedt/core/workflows/project/import_nastran.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/project/kernel_converter.py b/src/ansys/aedt/core/workflows/project/kernel_converter.py index 8adb60ef14e..6bc2b79bcaf 100644 --- a/src/ansys/aedt/core/workflows/project/kernel_converter.py +++ b/src/ansys/aedt/core/workflows/project/kernel_converter.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/aedt/core/workflows/q2d/__init__.py b/src/ansys/aedt/core/workflows/q2d/__init__.py index f10103137e9..4b4bef088b4 100644 --- a/src/ansys/aedt/core/workflows/q2d/__init__.py +++ b/src/ansys/aedt/core/workflows/q2d/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/q3d/__init__.py b/src/ansys/aedt/core/workflows/q3d/__init__.py index f10103137e9..4b4bef088b4 100644 --- a/src/ansys/aedt/core/workflows/q3d/__init__.py +++ b/src/ansys/aedt/core/workflows/q3d/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/templates/__init__.py b/src/ansys/aedt/core/workflows/templates/__init__.py index f10103137e9..4b4bef088b4 100644 --- a/src/ansys/aedt/core/workflows/templates/__init__.py +++ b/src/ansys/aedt/core/workflows/templates/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/templates/extension_template.py b/src/ansys/aedt/core/workflows/templates/extension_template.py index 81ff6a6a815..a9a8030317f 100644 --- a/src/ansys/aedt/core/workflows/templates/extension_template.py +++ b/src/ansys/aedt/core/workflows/templates/extension_template.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/templates/pyaedt_utils.py b/src/ansys/aedt/core/workflows/templates/pyaedt_utils.py index 3e432da6c16..8173009a79d 100644 --- a/src/ansys/aedt/core/workflows/templates/pyaedt_utils.py +++ b/src/ansys/aedt/core/workflows/templates/pyaedt_utils.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/twinbuilder/__init__.py b/src/ansys/aedt/core/workflows/twinbuilder/__init__.py index f10103137e9..4b4bef088b4 100644 --- a/src/ansys/aedt/core/workflows/twinbuilder/__init__.py +++ b/src/ansys/aedt/core/workflows/twinbuilder/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/ansys/aedt/core/workflows/twinbuilder/convert_to_circuit.py b/src/ansys/aedt/core/workflows/twinbuilder/convert_to_circuit.py index c9ed24cb098..0c7ae914447 100644 --- a/src/ansys/aedt/core/workflows/twinbuilder/convert_to_circuit.py +++ b/src/ansys/aedt/core/workflows/twinbuilder/convert_to_circuit.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/tests/__init__.py b/tests/__init__.py index 3a26ec85f77..354fd81f25f 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/conftest.py b/tests/conftest.py index 2daabf60f5b..4640dcda5b5 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/integration/__init__.py b/tests/integration/__init__.py index 822cc1f80fb..1a157585db4 100644 --- a/tests/integration/__init__.py +++ b/tests/integration/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/integration/test_monostatic_rcs_data.py b/tests/integration/test_monostatic_rcs_data.py index 8b224837656..46684abcef8 100644 --- a/tests/integration/test_monostatic_rcs_data.py +++ b/tests/integration/test_monostatic_rcs_data.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/integration/test_touchstone_data.py b/tests/integration/test_touchstone_data.py index 336b86bd7e2..837c7aeead0 100644 --- a/tests/integration/test_touchstone_data.py +++ b/tests/integration/test_touchstone_data.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/__init__.py b/tests/system/__init__.py index 296abe8d52c..ed642961485 100644 --- a/tests/system/__init__.py +++ b/tests/system/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/__init__.py b/tests/system/general/__init__.py index 9c4476773da..b78d8fed76c 100644 --- a/tests/system/general/__init__.py +++ b/tests/system/general/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/conftest.py b/tests/system/general/conftest.py index e874c99a1dd..d592eced345 100644 --- a/tests/system/general/conftest.py +++ b/tests/system/general/conftest.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_01_3dlayout_edb.py b/tests/system/general/test_01_3dlayout_edb.py index a3bcb6113c3..626d85d9cf4 100644 --- a/tests/system/general/test_01_3dlayout_edb.py +++ b/tests/system/general/test_01_3dlayout_edb.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_01_Design.py b/tests/system/general/test_01_Design.py index 040740de3fc..4f284f1e1fb 100644 --- a/tests/system/general/test_01_Design.py +++ b/tests/system/general/test_01_Design.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_01_GeometryOperators.py b/tests/system/general/test_01_GeometryOperators.py index 1c18398a7c4..fffe6d3f165 100644 --- a/tests/system/general/test_01_GeometryOperators.py +++ b/tests/system/general/test_01_GeometryOperators.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_01_configuration_files.py b/tests/system/general/test_01_configuration_files.py index 05168479c8e..590cd0530c8 100644 --- a/tests/system/general/test_01_configuration_files.py +++ b/tests/system/general/test_01_configuration_files.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_01_data_handlers.py b/tests/system/general/test_01_data_handlers.py index d46d20fb785..dd8dd0f8914 100644 --- a/tests/system/general/test_01_data_handlers.py +++ b/tests/system/general/test_01_data_handlers.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_01_downloads.py b/tests/system/general/test_01_downloads.py index 6323318e86e..12ffa4b806c 100644 --- a/tests/system/general/test_01_downloads.py +++ b/tests/system/general/test_01_downloads.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_01_general_methods.py b/tests/system/general/test_01_general_methods.py index a76677f2a8f..d9b8f13c872 100644 --- a/tests/system/general/test_01_general_methods.py +++ b/tests/system/general/test_01_general_methods.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_01_report_file_parser.py b/tests/system/general/test_01_report_file_parser.py index 2dc5f54c7ef..1e9b582acb7 100644 --- a/tests/system/general/test_01_report_file_parser.py +++ b/tests/system/general/test_01_report_file_parser.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_01_toolkit_icons.py b/tests/system/general/test_01_toolkit_icons.py index 738b460fb52..1e1081a9a18 100644 --- a/tests/system/general/test_01_toolkit_icons.py +++ b/tests/system/general/test_01_toolkit_icons.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_02_2D_modeler.py b/tests/system/general/test_02_2D_modeler.py index 7d9f87a58e1..d435c419e59 100644 --- a/tests/system/general/test_02_2D_modeler.py +++ b/tests/system/general/test_02_2D_modeler.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_02_3D_modeler.py b/tests/system/general/test_02_3D_modeler.py index d9592567d97..f5e9b833b6a 100644 --- a/tests/system/general/test_02_3D_modeler.py +++ b/tests/system/general/test_02_3D_modeler.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_03_Materials.py b/tests/system/general/test_03_Materials.py index c3758a23de7..95cec4cb59b 100644 --- a/tests/system/general/test_03_Materials.py +++ b/tests/system/general/test_03_Materials.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_04_SBR.py b/tests/system/general/test_04_SBR.py index 0a361c2a651..fc4522ffe4e 100644 --- a/tests/system/general/test_04_SBR.py +++ b/tests/system/general/test_04_SBR.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_05_Mesh.py b/tests/system/general/test_05_Mesh.py index 10632fa98fd..1678f4a2ca5 100644 --- a/tests/system/general/test_05_Mesh.py +++ b/tests/system/general/test_05_Mesh.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_06_MessageManager.py b/tests/system/general/test_06_MessageManager.py index ccddc65df60..704a79a271e 100644 --- a/tests/system/general/test_06_MessageManager.py +++ b/tests/system/general/test_06_MessageManager.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_07_Object3D.py b/tests/system/general/test_07_Object3D.py index a113e9f5c6c..9e6cd2fefd5 100644 --- a/tests/system/general/test_07_Object3D.py +++ b/tests/system/general/test_07_Object3D.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_08_Primitives3D.py b/tests/system/general/test_08_Primitives3D.py index bd7bd63febe..0f74b5337ae 100644 --- a/tests/system/general/test_08_Primitives3D.py +++ b/tests/system/general/test_08_Primitives3D.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_09_Primitives2D.py b/tests/system/general/test_09_Primitives2D.py index d9da2c97bc0..5e4764902ef 100644 --- a/tests/system/general/test_09_Primitives2D.py +++ b/tests/system/general/test_09_Primitives2D.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_09_VariableManager.py b/tests/system/general/test_09_VariableManager.py index 024996eefb8..c7407a39024 100644 --- a/tests/system/general/test_09_VariableManager.py +++ b/tests/system/general/test_09_VariableManager.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_11_Setup.py b/tests/system/general/test_11_Setup.py index 7e6ca70655e..79dead4162d 100644 --- a/tests/system/general/test_11_Setup.py +++ b/tests/system/general/test_11_Setup.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_12_1_PostProcessing.py b/tests/system/general/test_12_1_PostProcessing.py index 642f5302bfb..999441f7a1c 100644 --- a/tests/system/general/test_12_1_PostProcessing.py +++ b/tests/system/general/test_12_1_PostProcessing.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_12_PostProcessing.py b/tests/system/general/test_12_PostProcessing.py index 3680d734aa7..6289b68e246 100644 --- a/tests/system/general/test_12_PostProcessing.py +++ b/tests/system/general/test_12_PostProcessing.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_13_LoadAEDTFile.py b/tests/system/general/test_13_LoadAEDTFile.py index 4d58b2b2743..1fc85f3da85 100644 --- a/tests/system/general/test_13_LoadAEDTFile.py +++ b/tests/system/general/test_13_LoadAEDTFile.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_14_AedtLogger.py b/tests/system/general/test_14_AedtLogger.py index 14cb9c28698..d56e5fa29cf 100644 --- a/tests/system/general/test_14_AedtLogger.py +++ b/tests/system/general/test_14_AedtLogger.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_15_ibs_reader.py b/tests/system/general/test_15_ibs_reader.py index 1d4b4e7be71..8105d88f68e 100644 --- a/tests/system/general/test_15_ibs_reader.py +++ b/tests/system/general/test_15_ibs_reader.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_16_3d_stackup.py b/tests/system/general/test_16_3d_stackup.py index 9250fdd7dea..24833e63a12 100644 --- a/tests/system/general/test_16_3d_stackup.py +++ b/tests/system/general/test_16_3d_stackup.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_20_HFSS.py b/tests/system/general/test_20_HFSS.py index d5996eb1c00..0420a7032e4 100644 --- a/tests/system/general/test_20_HFSS.py +++ b/tests/system/general/test_20_HFSS.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_21_Circuit.py b/tests/system/general/test_21_Circuit.py index cb00a8bbe25..b6e53eb1bc4 100644 --- a/tests/system/general/test_21_Circuit.py +++ b/tests/system/general/test_21_Circuit.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_22_Circuit_DynamicLink.py b/tests/system/general/test_22_Circuit_DynamicLink.py index 3a5fbcfc2e6..9f17d7e2de2 100644 --- a/tests/system/general/test_22_Circuit_DynamicLink.py +++ b/tests/system/general/test_22_Circuit_DynamicLink.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_27_Maxwell2D.py b/tests/system/general/test_27_Maxwell2D.py index 18163164eda..cd45b23240a 100644 --- a/tests/system/general/test_27_Maxwell2D.py +++ b/tests/system/general/test_27_Maxwell2D.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_28_Maxwell3D.py b/tests/system/general/test_28_Maxwell3D.py index 0ba29f6b845..cb6d3b6e9cb 100644 --- a/tests/system/general/test_28_Maxwell3D.py +++ b/tests/system/general/test_28_Maxwell3D.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_29_Mechanical.py b/tests/system/general/test_29_Mechanical.py index 844265eb938..dc2680b060a 100644 --- a/tests/system/general/test_29_Mechanical.py +++ b/tests/system/general/test_29_Mechanical.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_30_Q2D.py b/tests/system/general/test_30_Q2D.py index 38c57f29c4a..9e173680139 100644 --- a/tests/system/general/test_30_Q2D.py +++ b/tests/system/general/test_30_Q2D.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_32_RMxprt.py b/tests/system/general/test_32_RMxprt.py index 6e9816f5d2c..800282d1ccc 100644 --- a/tests/system/general/test_32_RMxprt.py +++ b/tests/system/general/test_32_RMxprt.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_34_TwinBuilder.py b/tests/system/general/test_34_TwinBuilder.py index 717adda63a0..71cfbc4fc4e 100644 --- a/tests/system/general/test_34_TwinBuilder.py +++ b/tests/system/general/test_34_TwinBuilder.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_35_MaxwellCircuit.py b/tests/system/general/test_35_MaxwellCircuit.py index 39ef4277df4..3df6672e2f3 100644 --- a/tests/system/general/test_35_MaxwellCircuit.py +++ b/tests/system/general/test_35_MaxwellCircuit.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_36_Q2D_PostProcessing.py b/tests/system/general/test_36_Q2D_PostProcessing.py index bb674a5464a..d921c9634c0 100644 --- a/tests/system/general/test_36_Q2D_PostProcessing.py +++ b/tests/system/general/test_36_Q2D_PostProcessing.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_37_Genetic_Algorithm.py b/tests/system/general/test_37_Genetic_Algorithm.py index 263d8deff65..2da18ff88d3 100644 --- a/tests/system/general/test_37_Genetic_Algorithm.py +++ b/tests/system/general/test_37_Genetic_Algorithm.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_41_3dlayout_modeler.py b/tests/system/general/test_41_3dlayout_modeler.py index 8dbf26bd4c6..79105a241e4 100644 --- a/tests/system/general/test_41_3dlayout_modeler.py +++ b/tests/system/general/test_41_3dlayout_modeler.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_43_CableModeling.py b/tests/system/general/test_43_CableModeling.py index b8101c28209..e80faac5693 100644 --- a/tests/system/general/test_43_CableModeling.py +++ b/tests/system/general/test_43_CableModeling.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_44_TouchstoneParser.py b/tests/system/general/test_44_TouchstoneParser.py index 77068edea35..37b457253d0 100644 --- a/tests/system/general/test_44_TouchstoneParser.py +++ b/tests/system/general/test_44_TouchstoneParser.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_45_FilterSolutions/__init__.py b/tests/system/general/test_45_FilterSolutions/__init__.py index 9c4476773da..b78d8fed76c 100644 --- a/tests/system/general/test_45_FilterSolutions/__init__.py +++ b/tests/system/general/test_45_FilterSolutions/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_45_FilterSolutions/resources/__init__.py b/tests/system/general/test_45_FilterSolutions/resources/__init__.py index f744b86ba71..71f363ec64c 100644 --- a/tests/system/general/test_45_FilterSolutions/resources/__init__.py +++ b/tests/system/general/test_45_FilterSolutions/resources/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_45_FilterSolutions/resources/resources.py b/tests/system/general/test_45_FilterSolutions/resources/resources.py index 2cdcbbb2952..027f2606b28 100644 --- a/tests/system/general/test_45_FilterSolutions/resources/resources.py +++ b/tests/system/general/test_45_FilterSolutions/resources/resources.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_45_FilterSolutions/test_filter/__init__.py b/tests/system/general/test_45_FilterSolutions/test_filter/__init__.py index 9c4476773da..b78d8fed76c 100644 --- a/tests/system/general/test_45_FilterSolutions/test_filter/__init__.py +++ b/tests/system/general/test_45_FilterSolutions/test_filter/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_45_FilterSolutions/test_filter/test_attributes.py b/tests/system/general/test_45_FilterSolutions/test_filter/test_attributes.py index 28ade85e37f..117e3f3fe17 100644 --- a/tests/system/general/test_45_FilterSolutions/test_filter/test_attributes.py +++ b/tests/system/general/test_45_FilterSolutions/test_filter/test_attributes.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_45_FilterSolutions/test_filter/test_dll_interface.py b/tests/system/general/test_45_FilterSolutions/test_filter/test_dll_interface.py index 78059eb3ad7..d61cb5be1d7 100644 --- a/tests/system/general/test_45_FilterSolutions/test_filter/test_dll_interface.py +++ b/tests/system/general/test_45_FilterSolutions/test_filter/test_dll_interface.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_45_FilterSolutions/test_filter/test_graph_setup.py b/tests/system/general/test_45_FilterSolutions/test_filter/test_graph_setup.py index 24cdaf46449..dfb32ae2e4d 100644 --- a/tests/system/general/test_45_FilterSolutions/test_filter/test_graph_setup.py +++ b/tests/system/general/test_45_FilterSolutions/test_filter/test_graph_setup.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_45_FilterSolutions/test_filter/test_ideal_response.py b/tests/system/general/test_45_FilterSolutions/test_filter/test_ideal_response.py index 1bfd2dd1568..94a8ac18510 100644 --- a/tests/system/general/test_45_FilterSolutions/test_filter/test_ideal_response.py +++ b/tests/system/general/test_45_FilterSolutions/test_filter/test_ideal_response.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_45_FilterSolutions/test_filter/test_multiple_bands_table.py b/tests/system/general/test_45_FilterSolutions/test_filter/test_multiple_bands_table.py index 2050efce0a8..32f9a63fa8d 100644 --- a/tests/system/general/test_45_FilterSolutions/test_filter/test_multiple_bands_table.py +++ b/tests/system/general/test_45_FilterSolutions/test_filter/test_multiple_bands_table.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_45_FilterSolutions/test_filter/test_transmission_zeros.py b/tests/system/general/test_45_FilterSolutions/test_filter/test_transmission_zeros.py index 1cf81d7b2b3..c34ccdfcc32 100644 --- a/tests/system/general/test_45_FilterSolutions/test_filter/test_transmission_zeros.py +++ b/tests/system/general/test_45_FilterSolutions/test_filter/test_transmission_zeros.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_45_FilterSolutions/test_lumped_export/__init__.py b/tests/system/general/test_45_FilterSolutions/test_lumped_export/__init__.py index 9c4476773da..b78d8fed76c 100644 --- a/tests/system/general/test_45_FilterSolutions/test_lumped_export/__init__.py +++ b/tests/system/general/test_45_FilterSolutions/test_lumped_export/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_45_FilterSolutions/test_lumped_export/test_export_to_aedt.py b/tests/system/general/test_45_FilterSolutions/test_lumped_export/test_export_to_aedt.py index 876c335be0a..348edcefe35 100644 --- a/tests/system/general/test_45_FilterSolutions/test_lumped_export/test_export_to_aedt.py +++ b/tests/system/general/test_45_FilterSolutions/test_lumped_export/test_export_to_aedt.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_45_FilterSolutions/test_lumped_export/test_optimization_goals_table.py b/tests/system/general/test_45_FilterSolutions/test_lumped_export/test_optimization_goals_table.py index 902f18a3753..4c3b5ceb102 100644 --- a/tests/system/general/test_45_FilterSolutions/test_lumped_export/test_optimization_goals_table.py +++ b/tests/system/general/test_45_FilterSolutions/test_lumped_export/test_optimization_goals_table.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_45_FilterSolutions/test_lumped_filter/__init__.py b/tests/system/general/test_45_FilterSolutions/test_lumped_filter/__init__.py index 9c4476773da..b78d8fed76c 100644 --- a/tests/system/general/test_45_FilterSolutions/test_lumped_filter/__init__.py +++ b/tests/system/general/test_45_FilterSolutions/test_lumped_filter/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_nodes_and_leads.py b/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_nodes_and_leads.py index 066fa910254..8ab0696de4c 100644 --- a/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_nodes_and_leads.py +++ b/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_nodes_and_leads.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_parasitics.py b/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_parasitics.py index f0d455c6c69..b785ce8e9b6 100644 --- a/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_parasitics.py +++ b/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_parasitics.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_termination_impedance_table.py b/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_termination_impedance_table.py index a8a9f4c37d0..d512592f032 100644 --- a/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_termination_impedance_table.py +++ b/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_termination_impedance_table.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_topology.py b/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_topology.py index 24d9dd32a68..f42d138912c 100644 --- a/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_topology.py +++ b/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_topology.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_45_FilterSolutions/test_raise_error.py b/tests/system/general/test_45_FilterSolutions/test_raise_error.py index 8fc957e7f21..b491c862c0f 100644 --- a/tests/system/general/test_45_FilterSolutions/test_raise_error.py +++ b/tests/system/general/test_45_FilterSolutions/test_raise_error.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_46_FarField.py b/tests/system/general/test_46_FarField.py index 786599e97be..54ef87494c6 100644 --- a/tests/system/general/test_46_FarField.py +++ b/tests/system/general/test_46_FarField.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_47_CircuitNetlist.py b/tests/system/general/test_47_CircuitNetlist.py index e3c71e6c9b1..a148ad9a9a8 100644 --- a/tests/system/general/test_47_CircuitNetlist.py +++ b/tests/system/general/test_47_CircuitNetlist.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_48_RCS_export.py b/tests/system/general/test_48_RCS_export.py index c34d7e3794e..72eba6c9d43 100644 --- a/tests/system/general/test_48_RCS_export.py +++ b/tests/system/general/test_48_RCS_export.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_49_RCS_data_plotter.py b/tests/system/general/test_49_RCS_data_plotter.py index 11488f30117..2dfc9a3deb4 100644 --- a/tests/system/general/test_49_RCS_data_plotter.py +++ b/tests/system/general/test_49_RCS_data_plotter.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_98_Icepak.py b/tests/system/general/test_98_Icepak.py index e1184c056e1..d6372c2fce4 100644 --- a/tests/system/general/test_98_Icepak.py +++ b/tests/system/general/test_98_Icepak.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/general/test_launch_desktop.py b/tests/system/general/test_launch_desktop.py index 12894b436b1..0a2fa78fd58 100644 --- a/tests/system/general/test_launch_desktop.py +++ b/tests/system/general/test_launch_desktop.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/solvers/__init__.py b/tests/system/solvers/__init__.py index 9c4476773da..b78d8fed76c 100644 --- a/tests/system/solvers/__init__.py +++ b/tests/system/solvers/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/solvers/conftest.py b/tests/system/solvers/conftest.py index 17e04079bc5..0441921f808 100644 --- a/tests/system/solvers/conftest.py +++ b/tests/system/solvers/conftest.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/solvers/test_00_analyze.py b/tests/system/solvers/test_00_analyze.py index 346ac718ce0..4dbd1dba926 100644 --- a/tests/system/solvers/test_00_analyze.py +++ b/tests/system/solvers/test_00_analyze.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/solvers/test_01_pdf.py b/tests/system/solvers/test_01_pdf.py index c6afef2f25f..96a06e7cd48 100644 --- a/tests/system/solvers/test_01_pdf.py +++ b/tests/system/solvers/test_01_pdf.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/solvers/test_26_emit.py b/tests/system/solvers/test_26_emit.py index a63ebd112bd..54e0baca9d2 100644 --- a/tests/system/solvers/test_26_emit.py +++ b/tests/system/solvers/test_26_emit.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/solvers/test_31_Q3D.py b/tests/system/solvers/test_31_Q3D.py index 74f385b6e2e..24236a6743b 100644 --- a/tests/system/solvers/test_31_Q3D.py +++ b/tests/system/solvers/test_31_Q3D.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/system/solvers/test_45_workflows.py b/tests/system/solvers/test_45_workflows.py index 016aef68a55..629ff19b715 100644 --- a/tests/system/solvers/test_45_workflows.py +++ b/tests/system/solvers/test_45_workflows.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py index 3907083f623..65bb3bf87f3 100644 --- a/tests/unit/__init__.py +++ b/tests/unit/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py index a794ae37bae..8cd344720e6 100644 --- a/tests/unit/conftest.py +++ b/tests/unit/conftest.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/unit/test_aedt_versions.py b/tests/unit/test_aedt_versions.py index 7ec295331bf..ce91e869376 100644 --- a/tests/unit/test_aedt_versions.py +++ b/tests/unit/test_aedt_versions.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/unit/test_desktop.py b/tests/unit/test_desktop.py index 5d8a0660aef..fbf62c923b5 100644 --- a/tests/unit/test_desktop.py +++ b/tests/unit/test_desktop.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/unit/test_extension_misc.py b/tests/unit/test_extension_misc.py index 9e8a4c89b6f..8867d7d7fd4 100644 --- a/tests/unit/test_extension_misc.py +++ b/tests/unit/test_extension_misc.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/unit/test_generic_filesystem.py b/tests/unit/test_generic_filesystem.py index b2dc74364c1..8b5b1c91cbf 100644 --- a/tests/unit/test_generic_filesystem.py +++ b/tests/unit/test_generic_filesystem.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/unit/test_hdm_parser.py b/tests/unit/test_hdm_parser.py index 13811987310..9d6dc6469da 100644 --- a/tests/unit/test_hdm_parser.py +++ b/tests/unit/test_hdm_parser.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/unit/test_maxwell_3d.py b/tests/unit/test_maxwell_3d.py index d731e088aae..dbd014dba77 100644 --- a/tests/unit/test_maxwell_3d.py +++ b/tests/unit/test_maxwell_3d.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/unit/test_monostatic_rcs_data.py b/tests/unit/test_monostatic_rcs_data.py index ac396343b1b..c519a4f0b0b 100644 --- a/tests/unit/test_monostatic_rcs_data.py +++ b/tests/unit/test_monostatic_rcs_data.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/unit/test_monostatic_rcs_exporter.py b/tests/unit/test_monostatic_rcs_exporter.py index 085a4205393..01dfd670633 100644 --- a/tests/unit/test_monostatic_rcs_exporter.py +++ b/tests/unit/test_monostatic_rcs_exporter.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 46c3d7ff6ab..89e8ccac79b 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # diff --git a/tests/unit/test_warnings.py b/tests/unit/test_warnings.py index 078af6ce367..8711af96542 100644 --- a/tests/unit/test_warnings.py +++ b/tests/unit/test_warnings.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # From 5a0189485ad195e4fa553447e7453a052f7b9452 Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Wed, 16 Apr 2025 08:48:17 -0500 Subject: [PATCH 19/86] Add test for generated nodes --- .../aedt/core/emit_core/nodes/EmitNode.py | 7 +- .../aedt/core/emit_core/results/revision.py | 65 ++-- tests/system/solvers/test_26_emit.py | 313 +++++++++++++++++- 3 files changed, 361 insertions(+), 24 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py index e8fef0d3503..e94e5892081 100644 --- a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py @@ -75,7 +75,12 @@ def properties(self): @property def warnings(self): - return self._get_property("Warnings") + warnings = '' + try: + warnings = self._get_property("Warnings") + except Exception: + pass + return warnings @property def allowed_child_types(self): diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index 0aaca4833ab..490477b2e7d 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -22,7 +22,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -import time +import os import warnings from ansys.aedt.core.emit_core.emit_constants import EmiCategoryFilter @@ -78,39 +78,62 @@ def __init__(self, parent_results, emit_obj, name=None): self._emit_com = emit_obj.odesign.GetModule("EmitCom") if not name: - # User didn't specify a specific revision name to load- create a new Kept revision - timestamp = time.strftime("%Y%m%d_%H%M%S") - name = emit_obj.odesign.KeepResult(timestamp) + # User didn't specify a specific revision name to load- use the Current revision + self.results_index = 0 - kept_result_names = emit_obj.odesign.GetKeptResultNames() - if not (name in kept_result_names): - raise ValueError(f'Revision "{name}" does not exist in the project.') + self.name = 'Current' + """Name of the revision.""" - self.results_index = self._emit_com.GetKeptResultIndex(name) - """Index of the result for this revision.""" + emit_obj.odesign.SaveEmitProject() + + self.path = os.path.normpath(os.path.join(emit_obj.project_path, f'{emit_obj.project_name}.aedtresults', 'EmitDesign1', 'Current Project.emit')) + """Path to the EMIT result folder for the revision.""" + else: + kept_result_names = emit_obj.odesign.GetKeptResultNames() + if not (name in kept_result_names): + raise ValueError(f'Revision "{name}" does not exist in the project.') + + self.results_index = self._emit_com.GetKeptResultIndex(name) + """Index of the result for this revision.""" + + self.path = emit_obj.odesign.GetResultDirectory(name) + """Path to the EMIT result folder for the revision.""" + + self.name = name + """Name of the revision.""" # Get the SimulationNodeID for the specified result # self._sim_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Simulation") + else: + if not name: + name = emit_obj.odesign.GetCurrentResult() + if not name: + name = emit_obj.odesign.AddResult("") + else: + if name not in emit_obj.odesign.GetResultList(): + name = emit_obj.odesign.AddResult(name) + full = emit_obj.odesign.GetResultDirectory(name) + + self.name = name + """Name of the revision.""" - self.path = emit_obj.odesign.GetResultDirectory(name) - """Path to the EMIT result folder for the revision.""" + self.path = full + """Full path of the revision.""" - raw_props = emit_obj.odesign.GetKeptResultProperties(name) + raw_props = emit_obj.odesign.GetResultProperties(name) key = lambda s: s.split("=", 1)[0] val = lambda s: s.split("=", 1)[1] props = {key(s): val(s) for s in raw_props} - self.timestamp = props["Timestamp"] - """Unique timestamp for the revision.""" - - self.name = name - """Name of the revision.""" + self.revision_number = int(props["Revision"]) + """Unique revision number from the EMIT design""" - # load the revision after creating it - self.revision_loaded = False - """``True`` if the revision is loaded and ``False`` if it is not.""" + self.timestamp = props["Timestamp"] + """Unique timestamp for the revision""" - self._load_revision() + self.revision_loaded = False + """``True`` if the revision is loaded and ``False`` if it is not.""" + self._load_revision() @pyaedt_function_handler() def _load_revision(self): diff --git a/tests/system/solvers/test_26_emit.py b/tests/system/solvers/test_26_emit.py index a63ebd112bd..d0ddb5451df 100644 --- a/tests/system/solvers/test_26_emit.py +++ b/tests/system/solvers/test_26_emit.py @@ -25,6 +25,9 @@ # Import required modules import os import sys +from enum import Enum +import types +import inspect import tempfile from ansys.aedt.core.generic import constants as consts @@ -44,6 +47,11 @@ from ansys.aedt.core.emit_core.emit_constants import InterfererType from ansys.aedt.core.emit_core.emit_constants import ResultType from ansys.aedt.core.emit_core.emit_constants import TxRxMode + + from ansys.aedt.core.emit_core.nodes.EmitNode import EmitNode + from ansys.aedt.core.emit_core.nodes import generated + from ansys.aedt.core.emit_core.nodes.generated import * + from ansys.aedt.core.modeler.circuits.primitives_emit import EmitAntennaComponent from ansys.aedt.core.modeler.circuits.primitives_emit import EmitComponent from ansys.aedt.core.modeler.circuits.primitives_emit import EmitComponents @@ -51,13 +59,11 @@ TEST_SUBFOLDER = "T26" TEST_REVIEW_FLAG = True - @pytest.fixture(scope="class") def aedtapp(add_app): app = add_app(application=Emit) return app - @pytest.mark.skipif(is_linux, reason="Emit API is not supported on linux.") @pytest.mark.skipif( (sys.version_info < (3, 8) or sys.version_info > (3, 11)) and config["desktopVersion"] < "2025.1", @@ -73,6 +79,7 @@ class TestClass: def init(self, aedtapp, local_scratch): self.aedtapp = aedtapp self.local_scratch = local_scratch + self.nodes_tested = [] def test_01_objects(self): assert self.aedtapp.solution_type @@ -1293,3 +1300,305 @@ def count_license_actions(license_file_path): expected_checkins = checkins_per_run * (number_of_runs + 1) assert checkouts == expected_checkouts and checkins == expected_checkins + + @pytest.mark.skipif(config["desktopVersion"] < "2025.2", reason="Skipped on versions earlier than 2025 R2.") + def test_25_emit_nodes(self, add_app): + self.aedtapp = add_app(project_name="interference", application=Emit, subfolder=TEST_SUBFOLDER) + + # Generate a revision + results = self.aedtapp.results + revision = self.aedtapp.results.analyze() + + self.aedtapp.set_units("Frequency", "GHz") + + domain = results.interaction_domain() + interaction = revision.run(domain) + + # TODO(bkaylor): get_all_nodes() takes forever! + nodes = revision.get_all_nodes() + assert len(nodes) > 0 + + scene_node = revision.get_scene_node() + assert scene_node + + assert scene_node.valid + assert scene_node.name + + # TODO(bkaylor): iemit.exe crashes on rename currently + old_name = scene_node.name + new_name = scene_node._rename("New Name") + assert (new_name != old_name) and (new_name == scene_node.name) + + # TODO(bkaylor): Try to rename to a special character + + assert scene_node.properties + + assert len(scene_node.allowed_child_types) > 0 + + assert not scene_node._is_component + + assert scene_node == scene_node + + assert scene_node.warnings == '' + + @pytest.mark.skipif(config["desktopVersion"] < "2025.2", reason="Skipped on versions earlier than 2025 R2.") + def test_26_all_generated_emit_node_properties(self, add_app): + # Define enum for result types + class Result(Enum): + SKIPPED = 0 + VALUE = 1 + EXCEPTION = 2 + NEEDS_PARAMETERS = 3 + + def test_all_members(node, results, results_of_get_props): + # Dynamically get list of properties and methods + members = dir(node) + + for member in members: + key = f'{type(node).__name__}.{member}' + + try: + if member.startswith('_'): + results[key] = (Result.SKIPPED, 'Skipping private member') + continue + + class_attr = getattr(node.__class__, member) + if isinstance(class_attr, property): + # Member is a property + + has_fget = class_attr.fget is not None + has_fset = class_attr.fset is not None + + if has_fget and has_fset: + arg_type = class_attr.fset.__annotations__['value'] + + value = None + + if arg_type in (int, float): + value = 0 + + # If there's a min or max in the docstring, use it. + docstring = class_attr.fset.__doc__ + if docstring: + if "between" in docstring: + min_val = float(docstring.split("between")[1].split("and")[0].strip()) + max_val = float(docstring.split("and")[1].split(".")[0].strip()) + value = min_val + elif "less than" in docstring: + max_val = float(docstring.split("less than")[1].split(".")[0].strip()) + value = max_val + elif "greater than" in docstring: + min_val = float(docstring.split("greater than")[1].split(".")[0].strip()) + value = min_val + elif arg_type == str: + value = 'TestString' + elif arg_type == bool: + value = True + elif isinstance(arg_type, type) and issubclass(arg_type, Enum): + # Type is an Enum + first_enum_value = list(arg_type.__members__.values())[0] + value = first_enum_value + elif isinstance(arg_type, types.UnionType): + # Type is a Union + possible_arg_types = arg_type.__args__ + if int in possible_arg_types or float in possible_arg_types: + value = 0 + + # If value is None here, we failed to find a suitable value to call the setter with. + # Just call the getter, and put that in the results. + # TODO(bkaylor): Should we make any note of this? + if value: + class_attr.fset(node, value) + + result = class_attr.fget(node) + + if value: + assert(value == result) + + results[key] = (Result.VALUE, result) + results_of_get_props[class_attr] = result + elif has_fget: + result = class_attr.fget(node) + results[key] = (Result.VALUE, result) + results_of_get_props[class_attr] = result + + # if class_attr.fget is not None: + # # Call the getter + # result = class_attr.fget(node) + # results[key] = (Result.VALUE, result) + + # elif class_attr.fset is not None: + # setter = class_attr.fset + # signature = inspect.signature(setter) + # # Get the docstring for this setter + # docstring = setter.__doc__ + # # position_of_minmax = docstring.find("Value of property") + # results[key] = (Result.NEEDS_PARAMETERS, f'Set property requires {len(signature.parameters)} arguments: {signature.parameters}' \ + # f', docstring: {docstring}') + else: + attr = getattr(node, member) + + if inspect.ismethod(attr) or inspect.isfunction(attr): + # Member is a function + signature = inspect.signature(attr) + if len(signature.parameters) == 0: + result = attr() + results[key] = (Result.VALUE, result) + else: + results[key] = (Result.NEEDS_PARAMETERS, f'Function requires {len(signature.parameters)} arguments: {signature.parameters}') + else: + results[key] = (Result.VALUE, attr) + except Exception as e: + results[key] = (Result.EXCEPTION, f'{e}') + + def test_nodes_from_top_level(nodes, nodes_tested, results, results_of_get_props): + # Test every method on every node, but add node children to list while iterating + for node in nodes: + node_type = type(node).__name__ + if node_type not in nodes_tested: + nodes_tested.append(type(node).__name__) + + # Add any untested child nodes + # TODO(bkaylor): This method of adding untested child nodes still leaves a lot of holes. Figure out why. + # We're only testing about 20 different nodes by doing this. + for child_type in node.allowed_child_types: + if child_type not in nodes_tested: + node._add_child_node(child_type) + + nodes.extend(node.children) + + test_all_members(node, results, results_of_get_props) + + self.aedtapp = add_app(project_name="interference", application=Emit, subfolder=TEST_SUBFOLDER) + + # Generate a revision + results = self.aedtapp.results + revision = self.aedtapp.results.analyze() + + self.aedtapp.set_units("Frequency", "GHz") + + domain = results.interaction_domain() + interaction = revision.run(domain) + + # TODO(bkaylor): Create defects for any exceptions coming back from members. + + # TODO(bkaylor): Generate coverage report. + + results = {} + results_of_get_props = {} + nodes_tested = [] + + scene_node = revision.get_scene_node() + couplings_node = revision.get_coupling_data_node() + test_nodes_from_top_level([scene_node, couplings_node], nodes_tested, results, results_of_get_props) + + rf_systems_node = revision.get_rf_systems_node() + simulation_node = revision.get_simulation_node() + test_nodes_from_top_level([rf_systems_node, simulation_node], nodes_tested, results, results_of_get_props) + + result_plot_node = revision.get_result_plot_node() + result_categorization_node = revision.get_result_categorization_node() + project_tree_node = revision.get_project_tree_node() + properties_node = revision.get_properties_node() + antenna_coupling_matrix_node = revision.get_antenna_coupling_matrix_node() + scenario_matrix_node = revision.get_scenario_matrix_node() + scenario_details_node = revision.get_scenario_details_node() + interaction_diagram_node = revision.get_interaction_diagram_node() + test_nodes_from_top_level([ + result_plot_node, result_categorization_node, + project_tree_node, properties_node, + antenna_coupling_matrix_node, scenario_matrix_node, + scenario_details_node, interaction_diagram_node + ], nodes_tested, results, results_of_get_props) + + # Categorize results from all node member calls + results_by_type = { + Result.SKIPPED: {}, + Result.VALUE: {}, + Result.EXCEPTION: {}, + Result.NEEDS_PARAMETERS: {} + } + + for key, value in results.items(): + results_by_type[value[0]][key] = value[1] + + print(f'Skipped: {len(results_by_type[Result.SKIPPED])}') + print(f'Value: {len(results_by_type[Result.VALUE])}') + print(f'Exception: {len(results_by_type[Result.EXCEPTION])}') + print(f'Needs Parameters: {len(results_by_type[Result.NEEDS_PARAMETERS])}') + + exceptions = results_by_type[Result.EXCEPTION].items() + + # TODO(bkaylor): Filter out any exceptions we are ignoring for now. + + all_nodes = generated.__all__ + print(f'Tested {len(nodes_tested)/len(all_nodes)}% ({len(nodes_tested)}/{len(all_nodes)})') + nodes_untested = [node for node in all_nodes if node not in nodes_tested] + + # Save and close the project + self.aedtapp.save_project() + project_path = self.aedtapp.project_file + self.aedtapp.close_project() + + # Reload the project + self.aedtapp.load_project(project_path) + + # Verify all get properties have the same values + results = self.aedtapp.results + revision = self.aedtapp.results.analyze() # TODO(bkaylor): iemit.exe crashes here, when _load_revision is called. Project path is confirmed valid. + + self.aedtapp.set_units("Frequency", "GHz") + + domain = results.interaction_domain() + interaction = revision.run(domain) + + nodes = revision.get_all_nodes() + + bad_comparison_results = {} + for node in nodes: + properties = {} + members = dir(node) + + for member in members: + if member.startswith('_'): + continue + + class_attr = getattr(node.__class__, member) + + if isinstance(class_attr, property): + properties[member] = class_attr + + for name, prop in properties.items(): + has_fget = prop.fget is not None + + if has_fget: + result = prop.fget(node) + previous_result = results_of_get_props[prop] + + comparison_result = type(result) == type(previous_result) + if comparison_result: + if isinstance(result, (int, float, str, bool, bytes, Enum)): + comparison_result = result == previous_result + else: + continue + + if not comparison_result: + key = f'{node.__class__.__name__}.{name}' + bad_comparison_results.append(key) + + # Assert 3 things- + # 1. No exceptions were returned from any called node member. + # 2. All nodes were tested. + # 3. All get properties have the same value after saving and reopening the project. + + issues = [] + for exception in exceptions: + issues.append(f'Member invocation caused exception: {exception}.') + + for untested_node in nodes_untested: + issues.append(f'Node {untested_node} was untested.') + + for name in bad_comparison_results: + issues.append(f'Property {name} did not match after project save and reopen.') + + assert issues == [] From 726e6d40677d6ec207c95f8a58906ebfbf76a3ca Mon Sep 17 00:00:00 2001 From: Josh Salant <101826634+jsalant22@users.noreply.github.com> Date: Mon, 21 Apr 2025 16:23:17 -0400 Subject: [PATCH 20/86] Add warning for disconnected comps (#6056) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- src/ansys/aedt/core/emit.py | 89 --------------- .../aedt/core/emit_core/nodes/EmitNode.py | 2 +- .../aedt/core/emit_core/results/revision.py | 39 ++++++- .../core/modeler/circuits/primitives_emit.py | 3 - tests/system/solvers/test_26_emit.py | 106 ++++++++++-------- 5 files changed, 96 insertions(+), 143 deletions(-) diff --git a/src/ansys/aedt/core/emit.py b/src/ansys/aedt/core/emit.py index c68a35bdd0e..a063133e159 100644 --- a/src/ansys/aedt/core/emit.py +++ b/src/ansys/aedt/core/emit.py @@ -187,12 +187,6 @@ def __init__( self.__emit_api_enabled = True - # set the default units here to make sure the EmitApi level - # stays synced with pyaedt - unit_types = ["Power", "Frequency", "Length", "Time", "Voltage", "Data Rate", "Resistance"] - unit_values = ["dBm", "MHz", "meter", "ns", "mV", "bps", "Ohm"] - self.set_units(unit_types, unit_values) - def _init_from_design(self, *args, **kwargs): self.__init__(*args, **kwargs) @@ -242,89 +236,6 @@ def version(self, detailed=False): ver = self._emit_api.get_version(detailed) return ver - @pyaedt_function_handler() - def set_units(self, unit_type, unit_value): - """Set units for the EMIT design. - - Parameters - ---------- - unit_type : str - System of units. - unit_value : str - Units to use. - - Power : mW, W, kW, dBm, dBW - Frequency : Hz, kHz, MHz, GHz, THz - Length : pm, nm, um, mm, cm, dm, meter, km, mil, in, ft, yd, mile - Time : ps, ns, us, ms, s - Voltage : mV, V - Data Rate : bps, kbps, Mbps, Gbps - Resistance : uOhm, mOhm, Ohm, kOhm, megOhm, GOhm - - Returns - ------- - Bool - ``True`` if the units were successfully changed and ``False`` - if there was an error. - """ - - if isinstance(unit_type, list): - for t, v in zip(unit_type, unit_value): - if t not in EMIT_VALID_UNITS: - warnings.warn( - f"[{t}] units are not supported by EMIT. The options are: {EMIT_VALID_UNITS.keys()}: " - ) - return False - if v not in EMIT_VALID_UNITS[t]: - warnings.warn(f"[{v}] are not supported by EMIT. The options are: {EMIT_VALID_UNITS[t]}: ") - return False - ut = emit_unit_type_string_to_enum(t) - self._emit_api.set_units(ut, v) - self._units[t] = v - else: - if unit_type not in EMIT_VALID_UNITS: - warnings.warn( - f"[{unit_type}] units are not supported by EMIT. The options are: {EMIT_VALID_UNITS.keys()}: " - ) - return False - if unit_value not in EMIT_VALID_UNITS[unit_type]: - warnings.warn( - f"[{unit_value}] are not supported by EMIT. The options are: {EMIT_VALID_UNITS[unit_type]}: " - ) - return False - # keep the backend global units synced - ut = emit_unit_type_string_to_enum(unit_type) - self._emit_api.set_units(ut, unit_value) - self._units[unit_type] = unit_value - return True - - @pyaedt_function_handler() - def get_units(self, unit_type=""): - """Get units for the EMIT design. - - Parameters - ---------- - unit_type : str, optional - System of units: options are power, frequency, - length, time, voltage, data rate, or resistance. - The default is ``None`` which uses the units - specified globally for the project. - - Returns - ------- - Str or Dict - If unit_type is specified returns the units for that type - and if unit_type="", returns a Dict of all units. - """ - if not unit_type: - return self._units - if unit_type not in EMIT_VALID_UNITS: - warnings.warn( - f"[{unit_type}] units are not supported by EMIT. The options are: {EMIT_VALID_UNITS.keys()}: " - ) - return None - return self._units[unit_type] - @pyaedt_function_handler() def save_project(self, file_name=None, overwrite=True, refresh_ids=False): """Save the AEDT project and the current EMIT revision. diff --git a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py index 8a4e03fc53e..7b113ad74d8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py @@ -80,7 +80,7 @@ def properties(self): @property def warnings(self): - warnings = '' + warnings = "" try: warnings = self._get_property("Warnings") except Exception: diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index 696d98d40b9..faf8960c20a 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -80,12 +80,19 @@ def __init__(self, parent_results, emit_obj, name=None): # User didn't specify a specific revision name to load- use the Current revision self.results_index = 0 - self.name = 'Current' + self.name = "Current" """Name of the revision.""" emit_obj.odesign.SaveEmitProject() - self.path = os.path.normpath(os.path.join(emit_obj.project_path, f'{emit_obj.project_name}.aedtresults', 'EmitDesign1', 'Current Project.emit')) + self.path = os.path.normpath( + os.path.join( + emit_obj.project_path, + f"{emit_obj.project_name}.aedtresults", + "EmitDesign1", + "Current Project.emit", + ) + ) """Path to the EMIT result folder for the revision.""" else: kept_result_names = emit_obj.odesign.GetKeptResultNames() @@ -226,6 +233,14 @@ def run(self, domain): engine.max_simultaneous_interferers = 1 if len(domain.interferer_names) > 1: raise ValueError("Multiple interferers cannot be specified prior to AEDT version 2024 R1.") + # check for disconnected systems and add a warning + disconnected_radios = self._get_disconnected_radios() + if len(disconnected_radios) > 0: + err_msg = ( + "Some radios are part of a system with unconnected ports or errors " + "and will not be included in the EMIT analysis: " + ", ".join(disconnected_radios) + ) + warnings.warn(err_msg) interaction = engine.run(domain) # save the project and revision self.emit_project.save_project() @@ -1250,3 +1265,23 @@ def get_interaction_diagram_node(self) -> EmitNode: ) interaction_diagram_node = self._get_node(interaction_diagram_node_id) return interaction_diagram_node + + @pyaedt_function_handler + @error_if_below_aedt_version(251) + def _get_disconnected_radios(self) -> list[str]: + """Gets a list of disconnected radios for this revision. + + Returns + ------- + list: str + All radios in the revision that are not connected to an antenna. A radio + is only considered "disconnected" if any of the components' ports in its + chain are left open. + """ + rf_systems_id = self._emit_com.GetTopLevelNodeID(self.results_index, "RF Systems") + sys_names = self._emit_com.GetChildNodeNames(self.results_index, rf_systems_id) + if "Disconnected Components" in sys_names: + dis_comp_id = self._emit_com.GetChildNodeID(self.results_index, rf_systems_id, "Disconnected Components") + radios_id = self._emit_com.GetChildNodeID(self.results_index, dis_comp_id, "Radios") + return self._emit_com.GetChildNodeNames(0, radios_id) + return [] diff --git a/src/ansys/aedt/core/modeler/circuits/primitives_emit.py b/src/ansys/aedt/core/modeler/circuits/primitives_emit.py index ac088d74b90..75eb165f3bd 100644 --- a/src/ansys/aedt/core/modeler/circuits/primitives_emit.py +++ b/src/ansys/aedt/core/modeler/circuits/primitives_emit.py @@ -369,9 +369,6 @@ def __init__(self, components, component_name): self.root_prop_node = None """Root node of the component.""" - self.units = components._parent.get_units() - """Units for the component.""" - @property def composed_name(self): """Component name. Needed for compatibility.""" diff --git a/tests/system/solvers/test_26_emit.py b/tests/system/solvers/test_26_emit.py index b5aa28973b6..f61e7656bf0 100644 --- a/tests/system/solvers/test_26_emit.py +++ b/tests/system/solvers/test_26_emit.py @@ -22,13 +22,14 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. +from enum import Enum +import inspect + # Import required modules import os import sys -from enum import Enum -import types -import inspect import tempfile +import types from ansys.aedt.core.generic import constants as consts from ansys.aedt.core.generic.general_methods import is_linux @@ -47,11 +48,9 @@ from ansys.aedt.core.emit_core.emit_constants import InterfererType from ansys.aedt.core.emit_core.emit_constants import ResultType from ansys.aedt.core.emit_core.emit_constants import TxRxMode - - from ansys.aedt.core.emit_core.nodes.EmitNode import EmitNode from ansys.aedt.core.emit_core.nodes import generated + from ansys.aedt.core.emit_core.nodes.EmitNode import EmitNode from ansys.aedt.core.emit_core.nodes.generated import * - from ansys.aedt.core.modeler.circuits.primitives_emit import EmitAntennaComponent from ansys.aedt.core.modeler.circuits.primitives_emit import EmitComponent from ansys.aedt.core.modeler.circuits.primitives_emit import EmitComponents @@ -59,11 +58,13 @@ TEST_SUBFOLDER = "T26" TEST_REVIEW_FLAG = True + @pytest.fixture(scope="class") def aedtapp(add_app): app = add_app(application=Emit) return app + @pytest.mark.skipif(is_linux, reason="Emit API is not supported on linux.") @pytest.mark.skipif( (sys.version_info < (3, 8) or sys.version_info > (3, 11)) and config["desktopVersion"] < "2025.1", @@ -1339,7 +1340,7 @@ def test_25_emit_nodes(self, add_app): assert scene_node == scene_node - assert scene_node.warnings == '' + assert scene_node.warnings == "" @pytest.mark.skipif(config["desktopVersion"] < "2025.2", reason="Skipped on versions earlier than 2025 R2.") def test_26_all_generated_emit_node_properties(self, add_app): @@ -1355,13 +1356,13 @@ def test_all_members(node, results, results_of_get_props): members = dir(node) for member in members: - key = f'{type(node).__name__}.{member}' + key = f"{type(node).__name__}.{member}" try: - if member.startswith('_'): - results[key] = (Result.SKIPPED, 'Skipping private member') + if member.startswith("_"): + results[key] = (Result.SKIPPED, "Skipping private member") continue - + class_attr = getattr(node.__class__, member) if isinstance(class_attr, property): # Member is a property @@ -1369,8 +1370,8 @@ def test_all_members(node, results, results_of_get_props): has_fget = class_attr.fget is not None has_fset = class_attr.fset is not None - if has_fget and has_fset: - arg_type = class_attr.fset.__annotations__['value'] + if has_fget and has_fset: + arg_type = class_attr.fset.__annotations__["value"] value = None @@ -1391,7 +1392,7 @@ def test_all_members(node, results, results_of_get_props): min_val = float(docstring.split("greater than")[1].split(".")[0].strip()) value = min_val elif arg_type == str: - value = 'TestString' + value = "TestString" elif arg_type == bool: value = True elif isinstance(arg_type, type) and issubclass(arg_type, Enum): @@ -1403,7 +1404,7 @@ def test_all_members(node, results, results_of_get_props): possible_arg_types = arg_type.__args__ if int in possible_arg_types or float in possible_arg_types: value = 0 - + # If value is None here, we failed to find a suitable value to call the setter with. # Just call the getter, and put that in the results. # TODO(bkaylor): Should we make any note of this? @@ -1413,7 +1414,7 @@ def test_all_members(node, results, results_of_get_props): result = class_attr.fget(node) if value: - assert(value == result) + assert value == result results[key] = (Result.VALUE, result) results_of_get_props[class_attr] = result @@ -1426,7 +1427,7 @@ def test_all_members(node, results, results_of_get_props): # # Call the getter # result = class_attr.fget(node) # results[key] = (Result.VALUE, result) - + # elif class_attr.fset is not None: # setter = class_attr.fset # signature = inspect.signature(setter) @@ -1437,7 +1438,7 @@ def test_all_members(node, results, results_of_get_props): # f', docstring: {docstring}') else: attr = getattr(node, member) - + if inspect.ismethod(attr) or inspect.isfunction(attr): # Member is a function signature = inspect.signature(attr) @@ -1445,11 +1446,14 @@ def test_all_members(node, results, results_of_get_props): result = attr() results[key] = (Result.VALUE, result) else: - results[key] = (Result.NEEDS_PARAMETERS, f'Function requires {len(signature.parameters)} arguments: {signature.parameters}') + results[key] = ( + Result.NEEDS_PARAMETERS, + f"Function requires {len(signature.parameters)} arguments: {signature.parameters}", + ) else: results[key] = (Result.VALUE, attr) except Exception as e: - results[key] = (Result.EXCEPTION, f'{e}') + results[key] = (Result.EXCEPTION, f"{e}") def test_nodes_from_top_level(nodes, nodes_tested, results, results_of_get_props): # Test every method on every node, but add node children to list while iterating @@ -1464,7 +1468,7 @@ def test_nodes_from_top_level(nodes, nodes_tested, results, results_of_get_props for child_type in node.allowed_child_types: if child_type not in nodes_tested: node._add_child_node(child_type) - + nodes.extend(node.children) test_all_members(node, results, results_of_get_props) @@ -1504,35 +1508,39 @@ def test_nodes_from_top_level(nodes, nodes_tested, results, results_of_get_props scenario_matrix_node = revision.get_scenario_matrix_node() scenario_details_node = revision.get_scenario_details_node() interaction_diagram_node = revision.get_interaction_diagram_node() - test_nodes_from_top_level([ - result_plot_node, result_categorization_node, - project_tree_node, properties_node, - antenna_coupling_matrix_node, scenario_matrix_node, - scenario_details_node, interaction_diagram_node - ], nodes_tested, results, results_of_get_props) + test_nodes_from_top_level( + [ + result_plot_node, + result_categorization_node, + project_tree_node, + properties_node, + antenna_coupling_matrix_node, + scenario_matrix_node, + scenario_details_node, + interaction_diagram_node, + ], + nodes_tested, + results, + results_of_get_props, + ) # Categorize results from all node member calls - results_by_type = { - Result.SKIPPED: {}, - Result.VALUE: {}, - Result.EXCEPTION: {}, - Result.NEEDS_PARAMETERS: {} - } + results_by_type = {Result.SKIPPED: {}, Result.VALUE: {}, Result.EXCEPTION: {}, Result.NEEDS_PARAMETERS: {}} for key, value in results.items(): results_by_type[value[0]][key] = value[1] - - print(f'Skipped: {len(results_by_type[Result.SKIPPED])}') - print(f'Value: {len(results_by_type[Result.VALUE])}') - print(f'Exception: {len(results_by_type[Result.EXCEPTION])}') - print(f'Needs Parameters: {len(results_by_type[Result.NEEDS_PARAMETERS])}') + + print(f"Skipped: {len(results_by_type[Result.SKIPPED])}") + print(f"Value: {len(results_by_type[Result.VALUE])}") + print(f"Exception: {len(results_by_type[Result.EXCEPTION])}") + print(f"Needs Parameters: {len(results_by_type[Result.NEEDS_PARAMETERS])}") exceptions = results_by_type[Result.EXCEPTION].items() # TODO(bkaylor): Filter out any exceptions we are ignoring for now. all_nodes = generated.__all__ - print(f'Tested {len(nodes_tested)/len(all_nodes)}% ({len(nodes_tested)}/{len(all_nodes)})') + print(f"Tested {len(nodes_tested)/len(all_nodes)}% ({len(nodes_tested)}/{len(all_nodes)})") nodes_untested = [node for node in all_nodes if node not in nodes_tested] # Save and close the project @@ -1545,7 +1553,9 @@ def test_nodes_from_top_level(nodes, nodes_tested, results, results_of_get_props # Verify all get properties have the same values results = self.aedtapp.results - revision = self.aedtapp.results.analyze() # TODO(bkaylor): iemit.exe crashes here, when _load_revision is called. Project path is confirmed valid. + revision = ( + self.aedtapp.results.analyze() + ) # TODO(bkaylor): iemit.exe crashes here, when _load_revision is called. Project path is confirmed valid. self.aedtapp.set_units("Frequency", "GHz") @@ -1560,7 +1570,7 @@ def test_nodes_from_top_level(nodes, nodes_tested, results, results_of_get_props members = dir(node) for member in members: - if member.startswith('_'): + if member.startswith("_"): continue class_attr = getattr(node.__class__, member) @@ -1571,7 +1581,7 @@ def test_nodes_from_top_level(nodes, nodes_tested, results, results_of_get_props for name, prop in properties.items(): has_fget = prop.fget is not None - if has_fget: + if has_fget: result = prop.fget(node) previous_result = results_of_get_props[prop] @@ -1583,9 +1593,9 @@ def test_nodes_from_top_level(nodes, nodes_tested, results, results_of_get_props continue if not comparison_result: - key = f'{node.__class__.__name__}.{name}' + key = f"{node.__class__.__name__}.{name}" bad_comparison_results.append(key) - + # Assert 3 things- # 1. No exceptions were returned from any called node member. # 2. All nodes were tested. @@ -1593,12 +1603,12 @@ def test_nodes_from_top_level(nodes, nodes_tested, results, results_of_get_props issues = [] for exception in exceptions: - issues.append(f'Member invocation caused exception: {exception}.') - + issues.append(f"Member invocation caused exception: {exception}.") + for untested_node in nodes_untested: - issues.append(f'Node {untested_node} was untested.') + issues.append(f"Node {untested_node} was untested.") for name in bad_comparison_results: - issues.append(f'Property {name} did not match after project save and reopen.') + issues.append(f"Property {name} did not match after project save and reopen.") assert issues == [] From 4b68e24018b9c7bda84d3f86742eab8a593f70d7 Mon Sep 17 00:00:00 2001 From: Josh Salant <101826634+jsalant22@users.noreply.github.com> Date: Mon, 21 Apr 2025 16:23:37 -0400 Subject: [PATCH 21/86] F1251272 (#6063) --- .../emit_core/nodes/generated/Amplifier.py | 70 ++-- .../emit_core/nodes/generated/AntennaNode.py | 204 +++++------ .../nodes/generated/AntennaPassband.py | 54 +-- .../core/emit_core/nodes/generated/Band.py | 198 +++++------ .../emit_core/nodes/generated/BandFolder.py | 26 +- .../nodes/generated/BandTraceNode.py | 68 ++-- .../core/emit_core/nodes/generated/CADNode.py | 152 ++++----- .../core/emit_core/nodes/generated/Cable.py | 60 +--- .../nodes/generated/CategoriesViewNode.py | 26 +- .../emit_core/nodes/generated/Circulator.py | 76 ++--- .../nodes/generated/CouplingLinkNode.py | 32 +- .../nodes/generated/CouplingTraceNode.py | 82 ++--- .../nodes/generated/CouplingsNode.py | 36 +- .../nodes/generated/CustomCouplingNode.py | 52 +-- .../nodes/generated/EmiPlotMarkerNode.py | 86 ++--- .../nodes/generated/EmitSceneNode.py | 50 +-- .../nodes/generated/ErcegCouplingNode.py | 96 ++---- .../core/emit_core/nodes/generated/Filter.py | 134 +++----- .../nodes/generated/FiveGChannelModel.py | 108 +++--- .../nodes/generated/HataCouplingNode.py | 94 ++--- .../IndoorPropagationCouplingNode.py | 110 +++--- .../emit_core/nodes/generated/Isolator.py | 76 ++--- .../generated/LogDistanceCouplingNode.py | 104 +++--- .../nodes/generated/MPlexBandTraceNode.py | 64 ++-- .../emit_core/nodes/generated/Multiplexer.py | 58 +--- .../nodes/generated/MultiplexerBand.py | 78 ++--- .../nodes/generated/OutboardTraceNode.py | 62 ++-- .../generated/ParametricCouplingTraceNode.py | 66 ++-- .../nodes/generated/PlotMarkerNode.py | 88 ++--- .../emit_core/nodes/generated/PlotNode.py | 108 +++--- .../emit_core/nodes/generated/PowerDivider.py | 80 ++--- .../nodes/generated/PowerTraceNode.py | 66 ++-- .../nodes/generated/ProfileTraceNode.py | 58 +--- .../generated/PropagationLossCouplingNode.py | 86 ++--- .../emit_core/nodes/generated/RadioNode.py | 38 +-- .../nodes/generated/ReadOnlyAmplifier.py | 30 +- .../nodes/generated/ReadOnlyAntennaNode.py | 76 ++--- .../generated/ReadOnlyAntennaPassband.py | 28 +- .../emit_core/nodes/generated/ReadOnlyBand.py | 82 ++--- .../nodes/generated/ReadOnlyBandFolder.py | 26 +- .../nodes/generated/ReadOnlyCADNode.py | 44 +-- .../nodes/generated/ReadOnlyCable.py | 38 +-- .../nodes/generated/ReadOnlyCirculator.py | 40 +-- .../generated/ReadOnlyCouplingLinkNode.py | 28 +- .../nodes/generated/ReadOnlyCouplingsNode.py | 28 +- .../generated/ReadOnlyCustomCouplingNode.py | 38 +-- .../nodes/generated/ReadOnlyEmitSceneNode.py | 38 +-- .../generated/ReadOnlyErcegCouplingNode.py | 50 +-- .../nodes/generated/ReadOnlyFilter.py | 58 +--- .../generated/ReadOnlyFiveGChannelModel.py | 56 +-- .../generated/ReadOnlyHataCouplingNode.py | 48 +-- .../ReadOnlyIndoorPropagationCouplingNode.py | 62 ++-- .../nodes/generated/ReadOnlyIsolator.py | 40 +-- .../ReadOnlyLogDistanceCouplingNode.py | 56 +-- .../nodes/generated/ReadOnlyMultiplexer.py | 44 +-- .../generated/ReadOnlyMultiplexerBand.py | 38 +-- .../nodes/generated/ReadOnlyPowerDivider.py | 42 +-- .../ReadOnlyPropagationLossCouplingNode.py | 42 +-- .../nodes/generated/ReadOnlyRadioNode.py | 36 +- .../nodes/generated/ReadOnlyRfSystemGroup.py | 26 +- .../nodes/generated/ReadOnlyRxMeasNode.py | 30 +- .../generated/ReadOnlyRxMixerProductNode.py | 58 +--- .../generated/ReadOnlyRxSaturationNode.py | 26 +- .../generated/ReadOnlyRxSelectivityNode.py | 26 +- .../nodes/generated/ReadOnlyRxSpurNode.py | 36 +- .../ReadOnlyRxSusceptibilityProfNode.py | 36 +- .../nodes/generated/ReadOnlySamplingNode.py | 46 +-- .../nodes/generated/ReadOnlySceneGroupNode.py | 34 +- .../generated/ReadOnlySolutionCouplingNode.py | 28 +- .../nodes/generated/ReadOnlySolutionsNode.py | 26 +- .../nodes/generated/ReadOnlySparameter.py | 34 +- .../nodes/generated/ReadOnlyTR_Switch.py | 40 +-- .../nodes/generated/ReadOnlyTerminator.py | 40 +-- .../ReadOnlyTouchstoneCouplingNode.py | 34 +- .../ReadOnlyTwoRayPathLossCouplingNode.py | 42 +-- .../generated/ReadOnlyTxBbEmissionNode.py | 38 +-- .../nodes/generated/ReadOnlyTxHarmonicNode.py | 28 +- .../nodes/generated/ReadOnlyTxMeasNode.py | 28 +- .../generated/ReadOnlyTxNbEmissionNode.py | 34 +- .../ReadOnlyTxSpectralProfEmitterNode.py | 30 +- .../generated/ReadOnlyTxSpectralProfNode.py | 50 +-- .../nodes/generated/ReadOnlyTxSpurNode.py | 36 +- .../generated/ReadOnlyWalfischCouplingNode.py | 54 +-- .../nodes/generated/ReadOnlyWaveform.py | 42 +-- .../nodes/generated/ResultPlotNode.py | 110 +++--- .../nodes/generated/RfSystemGroup.py | 32 +- .../emit_core/nodes/generated/RxMeasNode.py | 80 ++--- .../nodes/generated/RxMixerProductNode.py | 126 +++---- .../nodes/generated/RxSaturationNode.py | 32 +- .../nodes/generated/RxSelectivityNode.py | 34 +- .../emit_core/nodes/generated/RxSpurNode.py | 44 +-- .../generated/RxSusceptibilityProfNode.py | 90 ++--- .../emit_core/nodes/generated/SamplingNode.py | 58 +--- .../nodes/generated/SceneGroupNode.py | 54 +-- .../nodes/generated/SelectivityTraceNode.py | 58 +--- .../nodes/generated/SolutionCouplingNode.py | 36 +- .../nodes/generated/SolutionsNode.py | 28 +- .../emit_core/nodes/generated/Sparameter.py | 115 ------- .../nodes/generated/SpurTraceNode.py | 64 ++-- .../nodes/generated/TRSwitchTraceNode.py | 62 ++-- .../emit_core/nodes/generated/TR_Switch.py | 78 ++--- .../emit_core/nodes/generated/Terminator.py | 52 +-- .../nodes/generated/TestNoiseTraceNode.py | 88 ++--- .../nodes/generated/TopLevelSimulation.py | 26 +- .../nodes/generated/TouchstoneCouplingNode.py | 50 +-- .../nodes/generated/TunableTraceNode.py | 68 ++-- .../generated/TwoRayPathLossCouplingNode.py | 90 ++--- .../nodes/generated/TwoToneTraceNode.py | 88 ++--- .../nodes/generated/TxBbEmissionNode.py | 50 +-- .../nodes/generated/TxHarmonicNode.py | 38 +-- .../emit_core/nodes/generated/TxMeasNode.py | 46 +-- .../nodes/generated/TxNbEmissionNode.py | 50 +-- .../generated/TxSpectralProfEmitterNode.py | 70 ++-- .../nodes/generated/TxSpectralProfNode.py | 126 +++---- .../emit_core/nodes/generated/TxSpurNode.py | 44 +-- .../nodes/generated/WalfischCouplingNode.py | 118 +++---- .../emit_core/nodes/generated/Waveform.py | 124 +++---- .../emit_core/nodes/generated/__init__.py | 322 ++++++++---------- 118 files changed, 2142 insertions(+), 5225 deletions(-) delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index c7f9beabd8b..0a5b93dba7e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class Amplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -53,7 +28,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filename=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -66,19 +41,19 @@ def noise_temperature(self) -> float: @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Temperature=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) class AmplifierTypeOption(Enum): TRANSMIT_AMPLIFIER = "Transmit Amplifier" @@ -88,14 +63,14 @@ class AmplifierTypeOption(Enum): def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type "Configures the amplifier as a Tx or Rx amplifier." - " """ + " """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] return val @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Amplifier Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplifier Type={value.value}"]) @property def gain(self) -> float: @@ -108,7 +83,7 @@ def gain(self) -> float: @gain.setter def gain(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Gain=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Gain={value}"]) @property def center_frequency(self) -> float: @@ -121,9 +96,9 @@ def center_frequency(self) -> float: return val @center_frequency.setter - def center_frequency(self, value: float | str): + def center_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Center Frequency=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Center Frequency={value}"]) @property def bandwidth(self) -> float: @@ -136,9 +111,9 @@ def bandwidth(self) -> float: return val @bandwidth.setter - def bandwidth(self, value: float | str): + def bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Bandwidth=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bandwidth={value}"]) @property def noise_figure(self) -> float: @@ -151,7 +126,7 @@ def noise_figure(self) -> float: @noise_figure.setter def noise_figure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Figure=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Figure={value}"]) @property def saturation_level(self) -> float: @@ -164,9 +139,9 @@ def saturation_level(self) -> float: return val @saturation_level.setter - def saturation_level(self, value: float | str): + def saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Saturation Level=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Saturation Level={value}"]) @property def p1_db_point_ref_input(self) -> float: @@ -179,11 +154,9 @@ def p1_db_point_ref_input(self) -> float: return val @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value: float | str): + def p1_db_point_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["P1-dB Point, Ref. Input=" + f"{value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"P1-dB Point, Ref. Input={value}"]) @property def ip3_ref_input(self) -> float: @@ -196,9 +169,9 @@ def ip3_ref_input(self) -> float: return val @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["IP3, Ref. Input=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"IP3, Ref. Input={value}"]) @property def shape_factor(self) -> float: @@ -211,7 +184,7 @@ def shape_factor(self) -> float: @shape_factor.setter def shape_factor(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Shape Factor=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Shape Factor={value}"]) @property def reverse_isolation(self) -> float: @@ -224,7 +197,7 @@ def reverse_isolation(self) -> float: @reverse_isolation.setter def reverse_isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Reverse Isolation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -237,4 +210,5 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Intermod Order=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py index cf4e484466a..aa4bd0d648d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class AntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -55,13 +30,13 @@ def delete(self): def tags(self) -> str: """Tags "Space delimited list of tags for coupling selections." - " """ + " """ val = self._get_property("Tags") return val @tags.setter def tags(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Tags=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tags={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -74,9 +49,7 @@ def show_relative_coordinates(self) -> bool: @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Show Relative Coordinates=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Relative Coordinates={value}"]) @property def position(self): @@ -89,7 +62,7 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Position=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position={value}"]) @property def relative_position(self): @@ -102,24 +75,24 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Relative Position=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Relative Position={value}"]) class OrientationModeOption(Enum): - RPYDEG = "Roll-Pitch-Yaw" - AETDEG = "Az-El-Twist" + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" + AZ_EL_TWIST = "Az-El-Twist" @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Orientation Mode=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -132,7 +105,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Orientation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation={value}"]) @property def relative_orientation(self): @@ -145,7 +118,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Relative Orientation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Relative Orientation={value}"]) @property def position_defined(self) -> bool: @@ -158,7 +131,7 @@ def position_defined(self) -> bool: @position_defined.setter def position_defined(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Position Defined=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position Defined={value}"]) @property def antenna_temperature(self) -> float: @@ -171,19 +144,19 @@ def antenna_temperature(self) -> float: @antenna_temperature.setter def antenna_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna Temperature=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna Temperature={value}"]) @property def type(self): """Type "Defines the type of antenna." - " """ + " """ val = self._get_property("Type") return val @type.setter def type(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Type=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value}"]) @property def antenna_file(self) -> str: @@ -195,7 +168,7 @@ def antenna_file(self) -> str: @antenna_file.setter def antenna_file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna File=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna File={value}"]) @property def project_name(self) -> str: @@ -208,7 +181,7 @@ def project_name(self) -> str: @project_name.setter def project_name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Project Name=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Project Name={value}"]) @property def peak_gain(self) -> float: @@ -221,7 +194,7 @@ def peak_gain(self) -> float: @peak_gain.setter def peak_gain(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Peak Gain=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Peak Gain={value}"]) class BoresightOption(Enum): XAXIS = "+X Axis" @@ -232,14 +205,14 @@ class BoresightOption(Enum): def boresight(self) -> BoresightOption: """Boresight "Select peak beam direction in local coordinates." - " """ + " """ val = self._get_property("Boresight") val = self.BoresightOption[val] return val @boresight.setter def boresight(self, value: BoresightOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Boresight=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Boresight={value.value}"]) @property def vertical_beamwidth(self) -> float: @@ -252,7 +225,7 @@ def vertical_beamwidth(self) -> float: @vertical_beamwidth.setter def vertical_beamwidth(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Vertical Beamwidth=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Vertical Beamwidth={value}"]) @property def horizontal_beamwidth(self) -> float: @@ -265,7 +238,7 @@ def horizontal_beamwidth(self) -> float: @horizontal_beamwidth.setter def horizontal_beamwidth(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Horizontal Beamwidth=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Horizontal Beamwidth={value}"]) @property def extra_sidelobe(self) -> bool: @@ -278,7 +251,7 @@ def extra_sidelobe(self) -> bool: @extra_sidelobe.setter def extra_sidelobe(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Extra Sidelobe=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Extra Sidelobe={value}"]) @property def first_sidelobe_level(self) -> float: @@ -291,7 +264,7 @@ def first_sidelobe_level(self) -> float: @first_sidelobe_level.setter def first_sidelobe_level(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["First Sidelobe Level=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"First Sidelobe Level={value}"]) @property def first_sidelobe_vert_bw(self) -> float: @@ -304,7 +277,7 @@ def first_sidelobe_vert_bw(self) -> float: @first_sidelobe_vert_bw.setter def first_sidelobe_vert_bw(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["First Sidelobe Vert. BW=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"First Sidelobe Vert. BW={value}"]) @property def first_sidelobe_hor_bw(self) -> float: @@ -317,7 +290,7 @@ def first_sidelobe_hor_bw(self) -> float: @first_sidelobe_hor_bw.setter def first_sidelobe_hor_bw(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["First Sidelobe Hor. BW=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"First Sidelobe Hor. BW={value}"]) @property def outerbacklobe_level(self) -> float: @@ -330,7 +303,7 @@ def outerbacklobe_level(self) -> float: @outerbacklobe_level.setter def outerbacklobe_level(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Outer/Backlobe Level=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Outer/Backlobe Level={value}"]) @property def resonant_frequency(self) -> float: @@ -343,9 +316,9 @@ def resonant_frequency(self) -> float: return val @resonant_frequency.setter - def resonant_frequency(self, value: float | str): + def resonant_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Resonant Frequency=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Resonant Frequency={value}"]) @property def slot_length(self) -> float: @@ -358,9 +331,9 @@ def slot_length(self) -> float: return val @slot_length.setter - def slot_length(self, value: float | str): + def slot_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Slot Length=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Slot Length={value}"]) @property def mouth_width(self) -> float: @@ -373,9 +346,9 @@ def mouth_width(self) -> float: return val @mouth_width.setter - def mouth_width(self, value: float | str): + def mouth_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Mouth Width=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mouth Width={value}"]) @property def mouth_height(self) -> float: @@ -388,9 +361,9 @@ def mouth_height(self) -> float: return val @mouth_height.setter - def mouth_height(self, value: float | str): + def mouth_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Mouth Height=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mouth Height={value}"]) @property def waveguide_width(self) -> float: @@ -403,9 +376,9 @@ def waveguide_width(self) -> float: return val @waveguide_width.setter - def waveguide_width(self, value: float | str): + def waveguide_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Waveguide Width=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Waveguide Width={value}"]) @property def width_flare_half_angle(self) -> float: @@ -418,7 +391,7 @@ def width_flare_half_angle(self) -> float: @width_flare_half_angle.setter def width_flare_half_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Width Flare Half-angle=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Width Flare Half-angle={value}"]) @property def height_flare_half_angle(self) -> float: @@ -431,7 +404,7 @@ def height_flare_half_angle(self) -> float: @height_flare_half_angle.setter def height_flare_half_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Height Flare Half-angle=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Height Flare Half-angle={value}"]) @property def mouth_diameter(self) -> float: @@ -444,9 +417,9 @@ def mouth_diameter(self) -> float: return val @mouth_diameter.setter - def mouth_diameter(self, value: float | str): + def mouth_diameter(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Mouth Diameter=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mouth Diameter={value}"]) @property def flare_half_angle(self) -> float: @@ -459,7 +432,7 @@ def flare_half_angle(self) -> float: @flare_half_angle.setter def flare_half_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Flare Half-angle=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Flare Half-angle={value}"]) @property def vswr(self) -> float: @@ -472,7 +445,7 @@ def vswr(self) -> float: @vswr.setter def vswr(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["VSWR=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"VSWR={value}"]) class AntennaPolarizationOption(Enum): VERTICAL = "Vertical" @@ -484,16 +457,14 @@ class AntennaPolarizationOption(Enum): def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] return val @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Antenna Polarization=" + value.value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna Polarization={value.value}"]) class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" @@ -503,14 +474,14 @@ class CrossDipoleModeOption(Enum): def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode "Choose the Cross Dipole type." - " """ + " """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] return val @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Cross Dipole Mode=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Cross Dipole Mode={value.value}"]) class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" @@ -520,16 +491,14 @@ class CrossDipolePolarizationOption(Enum): def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] return val @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Cross Dipole Polarization=" + value.value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Cross Dipole Polarization={value.value}"]) @property def override_height(self) -> bool: @@ -542,7 +511,7 @@ def override_height(self) -> bool: @override_height.setter def override_height(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Override Height=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Override Height={value}"]) @property def offset_height(self) -> float: @@ -555,9 +524,9 @@ def offset_height(self) -> float: return val @offset_height.setter - def offset_height(self, value: float | str): + def offset_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Offset Height=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Offset Height={value}"]) @property def auto_height_offset(self) -> bool: @@ -570,7 +539,7 @@ def auto_height_offset(self) -> bool: @auto_height_offset.setter def auto_height_offset(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Auto Height Offset=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Auto Height Offset={value}"]) @property def conform__adjust_antenna(self) -> bool: @@ -583,7 +552,7 @@ def conform__adjust_antenna(self) -> bool: @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Conform / Adjust Antenna=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Conform / Adjust Antenna={value}"]) @property def element_offset(self): @@ -596,7 +565,7 @@ def element_offset(self): @element_offset.setter def element_offset(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Element Offset=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Element Offset={value}"]) class ConformtoPlatformOption(Enum): NONE = "None" @@ -607,16 +576,14 @@ class ConformtoPlatformOption(Enum): def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform "Select method of automated conforming applied after Element Offset." - " """ + " """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] return val @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Conform to Platform=" + value.value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Conform to Platform={value.value}"]) class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" @@ -627,14 +594,14 @@ class ReferencePlaneOption(Enum): def reference_plane(self) -> ReferencePlaneOption: """Reference Plane "Select reference plane for determining original element heights." - " """ + " """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] return val @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Reference Plane=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Reference Plane={value.value}"]) @property def conform_element_orientation(self) -> bool: @@ -647,9 +614,7 @@ def conform_element_orientation(self) -> bool: @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Conform Element Orientation=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Conform Element Orientation={value}"]) @property def show_axes(self) -> bool: @@ -662,7 +627,7 @@ def show_axes(self) -> bool: @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Show Axes=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Axes={value}"]) @property def show_icon(self) -> bool: @@ -675,7 +640,7 @@ def show_icon(self) -> bool: @show_icon.setter def show_icon(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Show Icon=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Icon={value}"]) @property def size(self) -> float: @@ -688,7 +653,7 @@ def size(self) -> float: @size.setter def size(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Size=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Size={value}"]) @property def color(self): @@ -701,13 +666,13 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Color={value}"]) @property def el_sample_interval(self) -> float: """El Sample Interval "Space between elevation-angle samples of pattern." - " """ + " """ val = self._get_property("El Sample Interval") return val @@ -715,7 +680,7 @@ def el_sample_interval(self) -> float: def az_sample_interval(self) -> float: """Az Sample Interval "Space between azimuth-angle samples of pattern." - " """ + " """ val = self._get_property("Az Sample Interval") return val @@ -732,7 +697,7 @@ def has_frequency_domain(self) -> bool: def frequency_domain(self): """Frequency Domain "Frequency sample(s) defining antenna." - " """ + " """ val = self._get_property("Frequency Domain") return val @@ -740,7 +705,7 @@ def frequency_domain(self): def number_of_electric_sources(self) -> int: """Number of Electric Sources "Number of freestanding electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Electric Sources") return val @@ -748,7 +713,7 @@ def number_of_electric_sources(self) -> int: def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources "Number of freestanding magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Magnetic Sources") return val @@ -756,7 +721,7 @@ def number_of_magnetic_sources(self) -> int: def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources "Number of imaged, half-space radiating electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Electric Sources") return val @@ -764,7 +729,7 @@ def number_of_imaged_electric_sources(self) -> int: def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources "Number of imaged, half-space radiating magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Magnetic Sources") return val @@ -772,7 +737,7 @@ def number_of_imaged_magnetic_sources(self) -> int: def waveguide_height(self) -> float: """Waveguide Height "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." - " """ + " """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") return val @@ -781,7 +746,7 @@ def waveguide_height(self) -> float: def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." - " """ + " """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -790,30 +755,28 @@ def waveguide_cutoff_frequency(self) -> float: def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." - " """ + " """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val class SWEModeTruncationOption(Enum): DYNAMIC = "Dynamic" - CUSTOM = "Fixed (Custom)" + FIXED_CUSTOM = "Fixed (Custom)" NONE = "None" @property def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation "Select the method for stability-enhancing truncation of spherical wave expansion terms." - " """ + " """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] return val @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["SWE Mode Truncation=" + value.value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"SWE Mode Truncation={value.value}"]) @property def max_n_index(self) -> int: @@ -826,19 +789,19 @@ def max_n_index(self) -> int: @max_n_index.setter def max_n_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max N Index=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max N Index={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) @property def show_composite_passband(self) -> bool: @@ -851,7 +814,7 @@ def show_composite_passband(self) -> bool: @show_composite_passband.setter def show_composite_passband(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Show Composite Passband=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Composite Passband={value}"]) @property def use_phase_center(self) -> bool: @@ -864,13 +827,13 @@ def use_phase_center(self) -> bool: @use_phase_center.setter def use_phase_center(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Use Phase Center=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use Phase Center={value}"]) @property def coordinate_systems(self) -> str: """Coordinate Systems "Specifies the coordinate system for the phase center of this antenna." - " """ + " """ val = self._get_property("Coordinate Systems") return val @@ -891,3 +854,4 @@ def phasecenterorientation(self): """ val = self._get_property("PhaseCenterOrientation") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py index 7c3c62426fe..28b1c6c871a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class AntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,11 +25,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) @property def passband_loss(self) -> float: @@ -67,7 +42,7 @@ def passband_loss(self) -> float: @passband_loss.setter def passband_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Passband Loss=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Passband Loss={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -80,7 +55,7 @@ def out_of_band_attenuation(self) -> float: @out_of_band_attenuation.setter def out_of_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Out of Band Attenuation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Out of Band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -93,9 +68,9 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Stop Band=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -108,9 +83,9 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Cutoff=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -123,9 +98,9 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Cutoff=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -138,18 +113,19 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Stop Band=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index 926456175f3..f82622df879 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class Band(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,23 +13,23 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) @property def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") return val @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Port=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port={value}"]) @property def use_dd_1494_mode(self) -> bool: @@ -67,7 +42,7 @@ def use_dd_1494_mode(self) -> bool: @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Use DD-1494 Mode=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use DD-1494 Mode={value}"]) @property def use_emission_designator(self) -> bool: @@ -80,25 +55,25 @@ def use_emission_designator(self) -> bool: @use_emission_designator.setter def use_emission_designator(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Use Emission Designator=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use Emission Designator={value}"]) @property def emission_designator(self) -> str: """Emission Designator "Enter the Emission Designator to define the bandwidth and modulation." - " """ + " """ val = self._get_property("Emission Designator") return val @emission_designator.setter def emission_designator(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Emission Designator=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Emission Designator={value}"]) @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." - " """ + " """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -107,7 +82,7 @@ def emission_designator_ch_bw(self) -> float: def emit_modulation_type(self) -> str: """EMIT Modulation Type "Modulation based off the emission designator." - " """ + " """ val = self._get_property("EMIT Modulation Type") return val @@ -122,9 +97,7 @@ def override_emission_designator_bw(self) -> bool: @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Override Emission Designator BW=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Override Emission Designator BW={value}"]) @property def channel_bandwidth(self) -> float: @@ -137,9 +110,9 @@ def channel_bandwidth(self) -> float: return val @channel_bandwidth.setter - def channel_bandwidth(self, value: float | str): + def channel_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Channel Bandwidth=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Channel Bandwidth={value}"]) class ModulationOption(Enum): GENERIC = "Generic" @@ -158,14 +131,14 @@ class ModulationOption(Enum): def modulation(self) -> ModulationOption: """Modulation "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Modulation") val = self.ModulationOption[val] return val @modulation.setter def modulation(self, value: ModulationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Modulation=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Modulation={value.value}"]) @property def max_modulating_freq(self) -> float: @@ -178,11 +151,9 @@ def max_modulating_freq(self) -> float: return val @max_modulating_freq.setter - def max_modulating_freq(self, value: float | str): + def max_modulating_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Max Modulating Freq.=" + f"{value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Modulating Freq.={value}"]) @property def modulation_index(self) -> float: @@ -195,7 +166,7 @@ def modulation_index(self) -> float: @modulation_index.setter def modulation_index(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Modulation Index=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Modulation Index={value}"]) @property def freq_deviation(self) -> float: @@ -208,9 +179,9 @@ def freq_deviation(self) -> float: return val @freq_deviation.setter - def freq_deviation(self, value: float | str): + def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Freq. Deviation=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Freq. Deviation={value}"]) @property def bit_rate(self) -> float: @@ -223,9 +194,9 @@ def bit_rate(self) -> float: return val @bit_rate.setter - def bit_rate(self, value: float | str): + def bit_rate(self, value : float|str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Bit Rate=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bit Rate={value}"]) @property def sidelobes(self) -> int: @@ -238,11 +209,11 @@ def sidelobes(self) -> int: @sidelobes.setter def sidelobes(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Sidelobes=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Sidelobes={value}"]) @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ @@ -251,88 +222,88 @@ def freq_deviation_(self) -> float: return val @freq_deviation_.setter - def freq_deviation_(self, value: float | str): + def freq_deviation_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Freq. Deviation =" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Freq. Deviation ={value}"]) class PSKTypeOption(Enum): BPSK = "BPSK" QPSK = "QPSK" - _8_PSK = "8-PSK" - _16_PSK = "16-PSK" - _32_PSK = "32-PSK" - _64_PSK = "64-PSK" + PSK_8 = "PSK-8" + PSK_16 = "PSK-16" + PSK_32 = "PSK-32" + PSK_64 = "PSK-64" @property def psk_type(self) -> PSKTypeOption: """PSK Type "PSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] return val @psk_type.setter def psk_type(self, value: PSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["PSK Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"PSK Type={value.value}"]) class FSKTypeOption(Enum): - _2_FSK = "2-FSK" - _4_FSK = "4-FSK" - _8_FSK = "8-FSK" + FSK_2 = "FSK-2" + FSK_4 = "FSK-4" + FSK_8 = "FSK-8" @property def fsk_type(self) -> FSKTypeOption: """FSK Type "FSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] return val @fsk_type.setter def fsk_type(self, value: FSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["FSK Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"FSK Type={value.value}"]) class QAMTypeOption(Enum): - _4_QAM = "4-QAM" - _16_QAM = "16-QAM" - _64_QAM = "64-QAM" - _256_QAM = "256-QAM" - _1024_QAM = "1024-QAM" + QAM_4 = "QAM-4" + QAM_16 = "QAM-16" + QAM_64 = "QAM-64" + QAM_256 = "QAM-256" + QAM_1024 = "QAM-1024" @property def qam_type(self) -> QAMTypeOption: """QAM Type "QAM modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] return val @qam_type.setter def qam_type(self, value: QAMTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["QAM Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"QAM Type={value.value}"]) class APSKTypeOption(Enum): - _4_APSK = "4-APSK" - _16_APSK = "16-APSK" - _64_APSK = "64-APSK" - _256_APSK = "256-APSK" - _1024_APSK = "1024-APSK" + APSK_4 = "APSK-4" + APSK_16 = "APSK-16" + APSK_64 = "APSK-64" + APSK_256 = "APSK-256" + APSK_1024 = "APSK-1024" @property def apsk_type(self) -> APSKTypeOption: """APSK Type "APSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] return val @apsk_type.setter def apsk_type(self, value: APSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["APSK Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"APSK Type={value.value}"]) @property def start_frequency(self) -> float: @@ -345,9 +316,9 @@ def start_frequency(self) -> float: return val @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Start Frequency=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -360,9 +331,9 @@ def stop_frequency(self) -> float: return val @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Stop Frequency=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -375,9 +346,9 @@ def channel_spacing(self) -> float: return val @channel_spacing.setter - def channel_spacing(self, value: float | str): + def channel_spacing(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Channel Spacing=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Channel Spacing={value}"]) @property def tx_offset(self) -> float: @@ -390,9 +361,9 @@ def tx_offset(self) -> float: return val @tx_offset.setter - def tx_offset(self, value: float | str): + def tx_offset(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Tx Offset=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tx Offset={value}"]) class RadarTypeOption(Enum): CW = "CW" @@ -405,14 +376,14 @@ class RadarTypeOption(Enum): def radar_type(self) -> RadarTypeOption: """Radar Type "Radar type: helps determine spectral profile." - " """ + " """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] return val @radar_type.setter def radar_type(self, value: RadarTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Radar Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Radar Type={value.value}"]) @property def hopping_radar(self) -> bool: @@ -425,7 +396,7 @@ def hopping_radar(self) -> bool: @hopping_radar.setter def hopping_radar(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Hopping Radar=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Hopping Radar={value}"]) @property def post_october_2020_procurement(self) -> bool: @@ -438,9 +409,7 @@ def post_october_2020_procurement(self) -> bool: @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Post October 2020 Procurement=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Post October 2020 Procurement={value}"]) @property def hop_range_min_freq(self) -> float: @@ -453,9 +422,9 @@ def hop_range_min_freq(self) -> float: return val @hop_range_min_freq.setter - def hop_range_min_freq(self, value: float | str): + def hop_range_min_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Hop Range Min Freq=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Hop Range Min Freq={value}"]) @property def hop_range_max_freq(self) -> float: @@ -468,9 +437,9 @@ def hop_range_max_freq(self) -> float: return val @hop_range_max_freq.setter - def hop_range_max_freq(self, value: float | str): + def hop_range_max_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Hop Range Max Freq=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Hop Range Max Freq={value}"]) @property def pulse_duration(self) -> float: @@ -483,9 +452,9 @@ def pulse_duration(self) -> float: return val @pulse_duration.setter - def pulse_duration(self, value: float | str): + def pulse_duration(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pulse Duration=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pulse Duration={value}"]) @property def pulse_rise_time(self) -> float: @@ -498,9 +467,9 @@ def pulse_rise_time(self) -> float: return val @pulse_rise_time.setter - def pulse_rise_time(self, value: float | str): + def pulse_rise_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pulse Rise Time=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pulse Rise Time={value}"]) @property def pulse_fall_time(self) -> float: @@ -513,9 +482,9 @@ def pulse_fall_time(self) -> float: return val @pulse_fall_time.setter - def pulse_fall_time(self, value: float | str): + def pulse_fall_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pulse Fall Time=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pulse Fall Time={value}"]) @property def pulse_repetition_rate(self) -> float: @@ -528,7 +497,7 @@ def pulse_repetition_rate(self) -> float: @pulse_repetition_rate.setter def pulse_repetition_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pulse Repetition Rate=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pulse Repetition Rate={value}"]) @property def number_of_chips(self) -> float: @@ -541,7 +510,7 @@ def number_of_chips(self) -> float: @number_of_chips.setter def number_of_chips(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Number of Chips=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Number of Chips={value}"]) @property def pulse_compression_ratio(self) -> float: @@ -554,7 +523,7 @@ def pulse_compression_ratio(self) -> float: @pulse_compression_ratio.setter def pulse_compression_ratio(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pulse Compression Ratio=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pulse Compression Ratio={value}"]) @property def fm_chirp_period(self) -> float: @@ -567,9 +536,9 @@ def fm_chirp_period(self) -> float: return val @fm_chirp_period.setter - def fm_chirp_period(self, value: float | str): + def fm_chirp_period(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["FM Chirp Period=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"FM Chirp Period={value}"]) @property def fm_freq_deviation(self) -> float: @@ -582,9 +551,9 @@ def fm_freq_deviation(self) -> float: return val @fm_freq_deviation.setter - def fm_freq_deviation(self, value: float | str): + def fm_freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["FM Freq Deviation=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"FM Freq Deviation={value}"]) @property def fm_freq_dev_bandwidth(self) -> float: @@ -597,8 +566,7 @@ def fm_freq_dev_bandwidth(self) -> float: return val @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value: float | str): + def fm_freq_dev_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["FM Freq Dev Bandwidth=" + f"{value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"FM Freq Dev Bandwidth={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py index 02237f50677..d2012de1304 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class BandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,3 +25,4 @@ def duplicate(self, new_name): def delete(self): """Delete this node""" self._delete() + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py index b472d24368d..939c1c843c2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class BandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -51,13 +26,13 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) class TxorRxOption(Enum): TX = "Tx" @@ -67,32 +42,32 @@ class TxorRxOption(Enum): def tx_or_rx(self) -> TxorRxOption: """Tx or Rx "Specifies whether the trace is a Tx or Rx channel." - " """ + " """ val = self._get_property("Tx or Rx") val = self.TxorRxOption[val] return val @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Tx or Rx=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tx or Rx={value.value}"]) @property def channel_frequency(self): """Channel Frequency "Select band channel frequency to display." - " """ + " """ val = self._get_property("Channel Frequency") return val @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Channel Frequency=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -108,7 +83,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -121,19 +96,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -147,14 +122,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -167,7 +142,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -180,7 +155,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -203,14 +178,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -223,7 +198,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -236,7 +211,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -249,7 +224,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -262,4 +237,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py index 6c64e1247fc..4236d5de9f4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class CADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -76,14 +51,14 @@ class ModelTypeOption(Enum): def model_type(self) -> ModelTypeOption: """Model Type "Select type of parametric model to create." - " """ + " """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] return val @model_type.setter def model_type(self, value: ModelTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Model Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Model Type={value.value}"]) @property def length(self) -> float: @@ -96,9 +71,9 @@ def length(self) -> float: return val @length.setter - def length(self, value: float | str): + def length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Length=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Length={value}"]) @property def width(self) -> float: @@ -111,9 +86,9 @@ def width(self) -> float: return val @width.setter - def width(self, value: float | str): + def width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Width=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Width={value}"]) @property def height(self) -> float: @@ -126,9 +101,9 @@ def height(self) -> float: return val @height.setter - def height(self, value: float | str): + def height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Height=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Height={value}"]) @property def angle(self) -> float: @@ -141,7 +116,7 @@ def angle(self) -> float: @angle.setter def angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Angle=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Angle={value}"]) @property def top_side(self) -> float: @@ -154,9 +129,9 @@ def top_side(self) -> float: return val @top_side.setter - def top_side(self, value: float | str): + def top_side(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Top Side=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Top Side={value}"]) @property def top_radius(self) -> float: @@ -169,9 +144,9 @@ def top_radius(self) -> float: return val @top_radius.setter - def top_radius(self, value: float | str): + def top_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Top Radius=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Top Radius={value}"]) @property def side(self) -> float: @@ -184,9 +159,9 @@ def side(self) -> float: return val @side.setter - def side(self, value: float | str): + def side(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Side=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Side={value}"]) @property def radius(self) -> float: @@ -199,9 +174,9 @@ def radius(self) -> float: return val @radius.setter - def radius(self, value: float | str): + def radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Radius=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Radius={value}"]) @property def base_radius(self) -> float: @@ -214,9 +189,9 @@ def base_radius(self) -> float: return val @base_radius.setter - def base_radius(self, value: float | str): + def base_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Base Radius=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Base Radius={value}"]) @property def center_radius(self) -> float: @@ -229,9 +204,9 @@ def center_radius(self) -> float: return val @center_radius.setter - def center_radius(self, value: float | str): + def center_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Center Radius=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Center Radius={value}"]) @property def x_axis_ellipsoid_radius(self) -> float: @@ -244,11 +219,9 @@ def x_axis_ellipsoid_radius(self) -> float: return val @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value: float | str): + def x_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["X Axis Ellipsoid Radius=" + f"{value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"X Axis Ellipsoid Radius={value}"]) @property def y_axis_ellipsoid_radius(self) -> float: @@ -261,11 +234,9 @@ def y_axis_ellipsoid_radius(self) -> float: return val @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value: float | str): + def y_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Y Axis Ellipsoid Radius=" + f"{value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y Axis Ellipsoid Radius={value}"]) @property def z_axis_ellipsoid_radius(self) -> float: @@ -278,11 +249,9 @@ def z_axis_ellipsoid_radius(self) -> float: return val @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value: float | str): + def z_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Z Axis Ellipsoid Radius=" + f"{value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Z Axis Ellipsoid Radius={value}"]) @property def focal_length(self) -> float: @@ -295,23 +264,23 @@ def focal_length(self) -> float: return val @focal_length.setter - def focal_length(self, value: float | str): + def focal_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Focal Length=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Focal Length={value}"]) @property def offset(self) -> float: """Offset "Offset of parabolic reflector." - " """ + " """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") return val @offset.setter - def offset(self, value: float | str): + def offset(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Offset=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Offset={value}"]) @property def x_direction_taper(self) -> float: @@ -324,7 +293,7 @@ def x_direction_taper(self) -> float: @x_direction_taper.setter def x_direction_taper(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["X Direction Taper=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"X Direction Taper={value}"]) @property def y_direction_taper(self) -> float: @@ -337,7 +306,7 @@ def y_direction_taper(self) -> float: @y_direction_taper.setter def y_direction_taper(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Y Direction Taper=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y Direction Taper={value}"]) @property def prism_direction(self): @@ -350,7 +319,7 @@ def prism_direction(self): @prism_direction.setter def prism_direction(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Prism Direction=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Prism Direction={value}"]) @property def closed_top(self) -> bool: @@ -363,7 +332,7 @@ def closed_top(self) -> bool: @closed_top.setter def closed_top(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Closed Top=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Closed Top={value}"]) @property def closed_base(self) -> bool: @@ -376,7 +345,7 @@ def closed_base(self) -> bool: @closed_base.setter def closed_base(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Closed Base=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Closed Base={value}"]) @property def mesh_density(self) -> int: @@ -389,7 +358,7 @@ def mesh_density(self) -> int: @mesh_density.setter def mesh_density(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Mesh Density=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mesh Density={value}"]) @property def use_symmetric_mesh(self) -> bool: @@ -402,7 +371,7 @@ def use_symmetric_mesh(self) -> bool: @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Use Symmetric Mesh=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use Symmetric Mesh={value}"]) class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -412,14 +381,14 @@ class MeshOptionOption(Enum): def mesh_option(self) -> MeshOptionOption: """Mesh Option "Select from different meshing options." - " """ + " """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] return val @mesh_option.setter def mesh_option(self, value: MeshOptionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Mesh Option=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mesh Option={value.value}"]) @property def coating_index(self) -> int: @@ -432,7 +401,7 @@ def coating_index(self) -> int: @coating_index.setter def coating_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Coating Index=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Coating Index={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -445,9 +414,7 @@ def show_relative_coordinates(self) -> bool: @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Show Relative Coordinates=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Relative Coordinates={value}"]) @property def position(self): @@ -460,7 +427,7 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Position=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position={value}"]) @property def relative_position(self): @@ -473,24 +440,24 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Relative Position=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Relative Position={value}"]) class OrientationModeOption(Enum): - RPYDEG = "Roll-Pitch-Yaw" - AETDEG = "Az-El-Twist" + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" + AZ_EL_TWIST = "Az-El-Twist" @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Orientation Mode=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -503,7 +470,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Orientation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation={value}"]) @property def relative_orientation(self): @@ -516,7 +483,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Relative Orientation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Relative Orientation={value}"]) @property def visible(self) -> bool: @@ -529,7 +496,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -541,14 +508,14 @@ class RenderModeOption(Enum): def render_mode(self) -> RenderModeOption: """Render Mode "Select drawing style for surfaces." - " """ + " """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] return val @render_mode.setter def render_mode(self, value: RenderModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Render Mode=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Render Mode={value.value}"]) @property def show_axes(self) -> bool: @@ -561,7 +528,7 @@ def show_axes(self) -> bool: @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Show Axes=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Axes={value}"]) @property def min(self): @@ -585,7 +552,7 @@ def max(self): def number_of_surfaces(self) -> int: """Number of Surfaces "Number of surfaces in the model." - " """ + " """ val = self._get_property("Number of Surfaces") return val @@ -600,16 +567,17 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Color={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index b79b82d313c..e5454b5278b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class Cable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -53,7 +28,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filename=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -66,37 +41,37 @@ def noise_temperature(self) -> float: @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Temperature=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) class TypeOption(Enum): - BYFILE = "By File" - CONSTANT = "Constant Loss" - COAXIAL = "Coaxial Cable" + BY_FILE = "By File" + CONSTANT_LOSS = "Constant Loss" + COAXIAL_CABLE = "Coaxial Cable" @property def type(self) -> TypeOption: """Type "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) @property def length(self) -> float: @@ -109,9 +84,9 @@ def length(self) -> float: return val @length.setter - def length(self, value: float | str): + def length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Length=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Length={value}"]) @property def loss_per_length(self) -> float: @@ -124,7 +99,7 @@ def loss_per_length(self) -> float: @loss_per_length.setter def loss_per_length(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Loss Per Length=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Loss Per Length={value}"]) @property def measurement_length(self) -> float: @@ -137,9 +112,9 @@ def measurement_length(self) -> float: return val @measurement_length.setter - def measurement_length(self, value: float | str): + def measurement_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Measurement Length=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Measurement Length={value}"]) @property def resistive_loss_constant(self) -> float: @@ -152,7 +127,7 @@ def resistive_loss_constant(self) -> float: @resistive_loss_constant.setter def resistive_loss_constant(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Resistive Loss Constant=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Resistive Loss Constant={value}"]) @property def dielectric_loss_constant(self) -> float: @@ -165,12 +140,13 @@ def dielectric_loss_constant(self) -> float: @dielectric_loss_constant.setter def dielectric_loss_constant(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Dielectric Loss Constant=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Dielectric Loss Constant={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py index c7c2f555fb7..5074051246b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py @@ -1,31 +1,7 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class CategoriesViewNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index 931e9e34913..4155d82397a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class Circulator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -53,7 +28,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filename=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -66,53 +41,53 @@ def noise_temperature(self) -> float: @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Temperature=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) class TypeOption(Enum): - BYFILE = "By File" + BY_FILE = "By File" PARAMETRIC = "Parametric" @property def type(self) -> TypeOption: """Type "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) class Port1LocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + RADIO_SIDE = "Radio Side" + ANTENNA_SIDE = "Antenna Side" @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the circulator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Port 1 Location=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -125,7 +100,7 @@ def insertion_loss(self) -> float: @insertion_loss.setter def insertion_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Insertion Loss=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -138,7 +113,7 @@ def finite_reverse_isolation(self) -> bool: @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Finite Reverse Isolation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -151,7 +126,7 @@ def reverse_isolation(self) -> float: @reverse_isolation.setter def reverse_isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Reverse Isolation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -164,7 +139,7 @@ def finite_bandwidth(self) -> bool: @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Finite Bandwidth=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -177,7 +152,7 @@ def out_of_band_attenuation(self) -> float: @out_of_band_attenuation.setter def out_of_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Out-of-band Attenuation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -190,9 +165,9 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Stop Band=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -205,9 +180,9 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Cutoff=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -220,9 +195,9 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Cutoff=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -235,14 +210,15 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Stop Band=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py index a9bd0d9946c..40a09a839b3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class CouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -46,17 +21,18 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) @property def ports(self): """Ports "Maps each port in the link to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Ports") return val @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Ports=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Ports={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py index 54e5bdf7c38..46cb12d7076 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class CouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,36 +25,36 @@ def delete(self): @property def transmitter(self) -> EmitNode: """Transmitter - " """ + " """ val = self._get_property("Transmitter") return val @transmitter.setter def transmitter(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Transmitter=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Transmitter={value}"]) @property def receiver(self) -> EmitNode: """Receiver - " """ + " """ val = self._get_property("Receiver") return val @receiver.setter def receiver(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Receiver=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Receiver={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) @property def visible(self) -> bool: @@ -92,7 +67,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -105,19 +80,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -131,14 +106,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -151,7 +126,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -164,7 +139,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -187,14 +162,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -207,7 +182,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -220,7 +195,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -233,7 +208,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -246,7 +221,7 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) @property def highlight_regions(self) -> bool: @@ -259,7 +234,7 @@ def highlight_regions(self) -> bool: @highlight_regions.setter def highlight_regions(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Highlight Regions=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Highlight Regions={value}"]) @property def show_region_labels(self) -> bool: @@ -272,7 +247,7 @@ def show_region_labels(self) -> bool: @show_region_labels.setter def show_region_labels(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Show Region Labels=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Region Labels={value}"]) @property def font(self): @@ -285,7 +260,7 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Font=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Font={value}"]) @property def color(self): @@ -298,7 +273,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Color={value}"]) @property def background_color(self): @@ -311,7 +286,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Background Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Background Color={value}"]) @property def border(self) -> bool: @@ -324,7 +299,7 @@ def border(self) -> bool: @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Border=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border={value}"]) @property def border_width(self) -> int: @@ -337,7 +312,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Border Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border Width={value}"]) @property def border_color(self): @@ -350,4 +325,5 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Border Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border Color={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py index 597d04c4f71..fa399762680 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class CouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -32,7 +7,7 @@ def __init__(self, oDesign, result_id, node_id): def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" - return self._import(file_name, "TouchstoneCoupling") + return self._import(file_name,"TouchstoneCoupling") def add_custom_coupling(self): """Add a new node to define custom coupling between antennas""" @@ -66,7 +41,7 @@ def add_indoor_propagation_coupling(self): """Add a new node to define coupling between antennas using the ITU Indoor Propagation model""" return self._add_child_node("Indoor Propagation Coupling") - def add__5g_channel_model_coupling(self): + def add_5g_channel_model_coupling(self): """Add a new node to define coupling between antennas using the 5G channel coupling model""" return self._add_child_node("5G Channel Model Coupling") @@ -81,7 +56,7 @@ def minimum_allowed_coupling(self) -> float: @minimum_allowed_coupling.setter def minimum_allowed_coupling(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Minimum Allowed Coupling=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Minimum Allowed Coupling={value}"]) @property def global_default_coupling(self) -> float: @@ -94,12 +69,13 @@ def global_default_coupling(self) -> float: @global_default_coupling.setter def global_default_coupling(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Global Default Coupling=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Global Default Coupling={value}"]) @property def antenna_tags(self) -> str: """Antenna Tags "All tags currently used by all antennas in the project." - " """ + " """ val = self._get_property("Antenna Tags") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py index 1e1c80d8485..a5e8c05fd8e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class CustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +12,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def rename(self, new_name): """Rename this node""" @@ -53,11 +28,11 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Value (dB): + "Value (dB): " Value should be between -1000 and 0." """ return self._get_table_data() @@ -77,31 +52,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna A=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna B=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -114,7 +89,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable Refinement=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -127,16 +102,17 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Adaptive Sampling=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Refinement Domain=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py index d052a02ed27..3cd719d0028 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class EmiPlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,25 +33,25 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def attached(self): """Attached "Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False)." - " """ + " """ val = self._get_property("Attached") return val @attached.setter def attached(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Attached=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Attached={value}"]) @property def position(self) -> float: """Position "Set position of the marker along the X-axis." - " """ + " """ val = self._get_property("Position") return val @@ -84,7 +59,7 @@ def position(self) -> float: def position(self) -> float: """Position "Set position of the marker along the Y-axis." - " """ + " """ val = self._get_property("Position") return val @@ -99,7 +74,7 @@ def floating_label(self) -> bool: @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Floating Label=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -112,7 +87,7 @@ def position_from_left(self) -> float: @position_from_left.setter def position_from_left(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Position from Left=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -125,19 +100,19 @@ def position_from_top(self) -> float: @position_from_top.setter def position_from_top(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Position from Top=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position from Top={value}"]) @property def text(self) -> str: """Text "Set the text of the label." - " """ + " """ val = self._get_property("Text") return val @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Text=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -148,16 +123,14 @@ class HorizontalPositionOption(Enum): def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position "Specify horizontal position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] return val @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Horizontal Position=" + value.value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Horizontal Position={value.value}"]) class VerticalPositionOption(Enum): TOP = "Top" @@ -168,14 +141,14 @@ class VerticalPositionOption(Enum): def vertical_position(self) -> VerticalPositionOption: """Vertical Position "Specify vertical position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] return val @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Vertical Position=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -186,14 +159,14 @@ class TextAlignmentOption(Enum): def text_alignment(self) -> TextAlignmentOption: """Text Alignment "Specify justification applied to multi-line text." - " """ + " """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] return val @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Text Alignment=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Text Alignment={value.value}"]) @property def font(self): @@ -206,7 +179,7 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Font=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Font={value}"]) @property def color(self): @@ -219,7 +192,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Color={value}"]) @property def background_color(self): @@ -232,7 +205,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Background Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Background Color={value}"]) @property def border(self) -> bool: @@ -245,7 +218,7 @@ def border(self) -> bool: @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Border=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border={value}"]) @property def border_width(self) -> int: @@ -258,7 +231,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Border Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border Width={value}"]) @property def border_color(self): @@ -271,7 +244,7 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Border Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -295,14 +268,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Specify symbol displayed next to the label." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -315,7 +288,7 @@ def arrow_direction(self) -> int: @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Arrow Direction=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -328,7 +301,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -341,7 +314,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -354,7 +327,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def filled(self) -> bool: @@ -367,4 +340,5 @@ def filled(self) -> bool: @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py index e5401167da3..1d481e8bfc6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class EmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,46 +13,43 @@ def add_group(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) class GroundPlaneNormalOption(Enum): - XAXIS = "X Axis" - YAXIS = "Y Axis" - ZAXIS = "Z Axis" + X_AXIS = "X Axis" + Y_AXIS = "Y Axis" + Z_AXIS = "Z Axis" @property def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal "Specifies the axis of the normal to the ground plane." - " """ + " """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] return val @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Ground Plane Normal=" + value.value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Ground Plane Normal={value.value}"]) @property def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." - " """ + " """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return val @gp_position_along_normal.setter - def gp_position_along_normal(self, value: float | str): + def gp_position_along_normal(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["GP Position Along Normal=" + f"{value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"GP Position Along Normal={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py index 24f0f8b7e38..188d9fa1321 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,31 +33,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Base Antenna=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Mobile Antenna=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -95,7 +70,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable Refinement=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -108,37 +83,37 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Adaptive Sampling=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Refinement Domain=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) class TerrainCategoryOption(Enum): - TYPEA = "Type A" - TYPEB = "Type B" - TYPEC = "Type C" + TYPE_A = "Type A" + TYPE_B = "Type B" + TYPE_C = "Type C" @property def terrain_category(self) -> TerrainCategoryOption: """Terrain Category "Specify the terrain category type for the Erceg model." - " """ + " """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] return val @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Terrain Category=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Terrain Category={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -151,7 +126,7 @@ def custom_fading_margin(self) -> float: @custom_fading_margin.setter def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Fading Margin=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -164,7 +139,7 @@ def polarization_mismatch(self) -> float: @polarization_mismatch.setter def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Mismatch=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -177,26 +152,26 @@ def pointing_error_loss(self) -> float: @pointing_error_loss.setter def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pointing Error Loss=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -209,7 +184,7 @@ def fading_availability(self) -> float: @fading_availability.setter def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Availability=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -222,7 +197,7 @@ def std_deviation(self) -> float: @std_deviation.setter def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Std Deviation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -235,7 +210,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Include Rain Attenuation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -248,7 +223,7 @@ def rain_availability(self) -> float: @rain_availability.setter def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Availability=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -261,7 +236,7 @@ def rain_rate(self) -> float: @rain_rate.setter def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Rate=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -274,7 +249,7 @@ def polarization_tilt_angle(self) -> float: @polarization_tilt_angle.setter def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Tilt Angle=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -287,9 +262,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Include Atmospheric Absorption=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -302,7 +275,7 @@ def temperature(self) -> float: @temperature.setter def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Temperature=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -315,7 +288,7 @@ def total_air_pressure(self) -> float: @total_air_pressure.setter def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Total Air Pressure=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -328,6 +301,5 @@ def water_vapor_concentration(self) -> float: @water_vapor_concentration.setter def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Water Vapor Concentration=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index 46566d60c18..310820673cb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class Filter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -53,7 +28,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filename=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -66,41 +41,41 @@ def noise_temperature(self) -> float: @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Temperature=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) class TypeOption(Enum): - BYFILE = "By File" - LOWPASS = "Low Pass" - HIGHPASS = "High Pass" - BANDPASS = "Band Pass" - BANDSTOP = "Band Stop" - TUNABLEBANDPASS = "Tunable Bandpass" - TUNABLEBANDSTOP = "Tunable Bandstop" + BY_FILE = "By File" + LOW_PASS = "Low Pass" + HIGH_PASS = "High Pass" + BAND_PASS = "Band Pass" + BAND_STOP = "Band Stop" + TUNABLE_BANDPASS = "Tunable Bandpass" + TUNABLE_BANDSTOP = "Tunable Bandstop" @property def type(self) -> TypeOption: """Type "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) @property def insertion_loss(self) -> float: @@ -113,7 +88,7 @@ def insertion_loss(self) -> float: @insertion_loss.setter def insertion_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Insertion Loss=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -126,7 +101,7 @@ def stop_band_attenuation(self) -> float: @stop_band_attenuation.setter def stop_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Stop band Attenuation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -139,9 +114,9 @@ def max_pass_band(self) -> float: return val @max_pass_band.setter - def max_pass_band(self, value: float | str): + def max_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Pass Band=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -154,9 +129,9 @@ def min_stop_band(self) -> float: return val @min_stop_band.setter - def min_stop_band(self, value: float | str): + def min_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Min Stop Band=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -169,9 +144,9 @@ def max_stop_band(self) -> float: return val @max_stop_band.setter - def max_stop_band(self, value: float | str): + def max_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Stop Band=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -184,9 +159,9 @@ def min_pass_band(self) -> float: return val @min_pass_band.setter - def min_pass_band(self, value: float | str): + def min_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Min Pass Band=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -199,9 +174,9 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Stop Band=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -214,9 +189,9 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Cutoff=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -229,9 +204,9 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Cutoff=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -244,13 +219,13 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Stop Band=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ @@ -259,13 +234,13 @@ def lower_cutoff_(self) -> float: return val @lower_cutoff_.setter - def lower_cutoff_(self, value: float | str): + def lower_cutoff_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Cutoff =" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff ={value}"]) @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ @@ -274,13 +249,13 @@ def lower_stop_band_(self) -> float: return val @lower_stop_band_.setter - def lower_stop_band_(self, value: float | str): + def lower_stop_band_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Stop Band =" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band ={value}"]) @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ @@ -289,13 +264,13 @@ def higher_stop_band_(self) -> float: return val @higher_stop_band_.setter - def higher_stop_band_(self, value: float | str): + def higher_stop_band_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Stop Band =" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band ={value}"]) @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ @@ -304,13 +279,13 @@ def higher_cutoff_(self) -> float: return val @higher_cutoff_.setter - def higher_cutoff_(self, value: float | str): + def higher_cutoff_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Cutoff =" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff ={value}"]) @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency "Lowest tuned frequency." "Value should be between 1 and 1e+11." """ @@ -319,15 +294,13 @@ def lowest_tuned_frequency_(self) -> float: return val @lowest_tuned_frequency_.setter - def lowest_tuned_frequency_(self, value: float | str): + def lowest_tuned_frequency_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Lowest Tuned Frequency =" + f"{value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lowest Tuned Frequency ={value}"]) @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency "Highest tuned frequency." "Value should be between 1 and 1e+11." """ @@ -336,11 +309,9 @@ def highest_tuned_frequency_(self) -> float: return val @highest_tuned_frequency_.setter - def highest_tuned_frequency_(self, value: float | str): + def highest_tuned_frequency_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Highest Tuned Frequency =" + f"{value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Highest Tuned Frequency ={value}"]) @property def percent_bandwidth(self) -> float: @@ -353,7 +324,7 @@ def percent_bandwidth(self) -> float: @percent_bandwidth.setter def percent_bandwidth(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Percent Bandwidth=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Percent Bandwidth={value}"]) @property def shape_factor(self) -> float: @@ -366,12 +337,13 @@ def shape_factor(self) -> float: @shape_factor.setter def shape_factor(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Shape Factor=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Shape Factor={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py index 00cb65e3617..9a4d4965c6b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class FiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,31 +33,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Base Antenna=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Mobile Antenna=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -95,7 +70,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable Refinement=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -108,37 +83,37 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Adaptive Sampling=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Refinement Domain=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) class EnvironmentOption(Enum): - URBANMICROCELL = "Urban Microcell" - URBANMACROCELL = "Urban Macrocell" - RURALMACROCELL = "Rural Macrocell" + URBAN_MICROCELL = "Urban Microcell" + URBAN_MACROCELL = "Urban Macrocell" + RURAL_MACROCELL = "Rural Macrocell" @property def environment(self) -> EnvironmentOption: """Environment "Specify the environment for the 5G channel model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Environment=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Environment={value.value}"]) @property def los(self) -> bool: @@ -151,7 +126,7 @@ def los(self) -> bool: @los.setter def los(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["LOS=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"LOS={value}"]) @property def include_bpl(self) -> bool: @@ -164,24 +139,24 @@ def include_bpl(self) -> bool: @include_bpl.setter def include_bpl(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Include BPL=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include BPL={value}"]) class NYUBPLModelOption(Enum): - LOWLOSSMODEL = "Low-loss model" - HIGHLOSSMODEL = "High-loss model" + LOW_LOSS_MODEL = "Low-loss model" + HIGH_LOSS_MODEL = "High-loss model" @property def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model "Specify the NYU Building Penetration Loss model." - " """ + " """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] return val @nyu_bpl_model.setter def nyu_bpl_model(self, value: NYUBPLModelOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["NYU BPL Model=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"NYU BPL Model={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -194,7 +169,7 @@ def custom_fading_margin(self) -> float: @custom_fading_margin.setter def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Fading Margin=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -207,7 +182,7 @@ def polarization_mismatch(self) -> float: @polarization_mismatch.setter def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Mismatch=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -220,26 +195,26 @@ def pointing_error_loss(self) -> float: @pointing_error_loss.setter def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pointing Error Loss=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -252,7 +227,7 @@ def fading_availability(self) -> float: @fading_availability.setter def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Availability=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -265,7 +240,7 @@ def std_deviation(self) -> float: @std_deviation.setter def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Std Deviation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -278,7 +253,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Include Rain Attenuation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -291,7 +266,7 @@ def rain_availability(self) -> float: @rain_availability.setter def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Availability=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -304,7 +279,7 @@ def rain_rate(self) -> float: @rain_rate.setter def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Rate=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -317,7 +292,7 @@ def polarization_tilt_angle(self) -> float: @polarization_tilt_angle.setter def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Tilt Angle=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -330,9 +305,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Include Atmospheric Absorption=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -345,7 +318,7 @@ def temperature(self) -> float: @temperature.setter def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Temperature=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -358,7 +331,7 @@ def total_air_pressure(self) -> float: @total_air_pressure.setter def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Total Air Pressure=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -371,6 +344,5 @@ def water_vapor_concentration(self) -> float: @water_vapor_concentration.setter def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Water Vapor Concentration=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py index 69f4be566da..e29959b917d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class HataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,31 +33,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Base Antenna=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Mobile Antenna=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -95,7 +70,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable Refinement=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -108,23 +83,23 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Adaptive Sampling=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Refinement Domain=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) class EnvironmentOption(Enum): - LARGECITY = "Large City" - SMALLMEDCITY = "Small/Medium City" + LARGE_CITY = "Large City" + SMALLMEDIUM_CITY = "Small/Medium City" SUBURBAN = "Suburban" RURAL = "Rural" @@ -132,14 +107,14 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Hata model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Environment=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Environment={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -152,7 +127,7 @@ def custom_fading_margin(self) -> float: @custom_fading_margin.setter def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Fading Margin=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -165,7 +140,7 @@ def polarization_mismatch(self) -> float: @polarization_mismatch.setter def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Mismatch=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -178,26 +153,26 @@ def pointing_error_loss(self) -> float: @pointing_error_loss.setter def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pointing Error Loss=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -210,7 +185,7 @@ def fading_availability(self) -> float: @fading_availability.setter def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Availability=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -223,7 +198,7 @@ def std_deviation(self) -> float: @std_deviation.setter def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Std Deviation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -236,7 +211,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Include Rain Attenuation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -249,7 +224,7 @@ def rain_availability(self) -> float: @rain_availability.setter def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Availability=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -262,7 +237,7 @@ def rain_rate(self) -> float: @rain_rate.setter def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Rate=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -275,7 +250,7 @@ def polarization_tilt_angle(self) -> float: @polarization_tilt_angle.setter def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Tilt Angle=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -288,9 +263,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Include Atmospheric Absorption=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -303,7 +276,7 @@ def temperature(self) -> float: @temperature.setter def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Temperature=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -316,7 +289,7 @@ def total_air_pressure(self) -> float: @total_air_pressure.setter def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Total Air Pressure=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -329,6 +302,5 @@ def water_vapor_concentration(self) -> float: @water_vapor_concentration.setter def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Water Vapor Concentration=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py index 9ed8147460c..af85e562f95 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class IndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -49,13 +24,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Power Loss Coefficient: + "Power Loss Coefficient: " Value should be between 0 and 100." - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): " Value should be between 0 and 1000." """ return self._get_table_data() @@ -75,31 +50,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna A=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna B=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -112,7 +87,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable Refinement=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -125,39 +100,39 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Adaptive Sampling=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Refinement Domain=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) class BuildingTypeOption(Enum): - RESIDENTIALAPARTMENT = "Residential Apartment" - RESIDENTIALHOUSE = "Residential House" - OFFICEBUILDING = "Office Building" - COMMERCIALBUILDING = "Commercial Building" - CUSTOMBUILDING = "Custom Building" + RESIDENTIAL_APARTMENT = "Residential Apartment" + RESIDENTIAL_HOUSE = "Residential House" + OFFICE_BUILDING = "Office Building" + COMMERCIAL_BUILDING = "Commercial Building" + CUSTOM_BUILDING = "Custom Building" @property def building_type(self) -> BuildingTypeOption: """Building Type "Specify the building type for the Indoor Propagation model." - " """ + " """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] return val @building_type.setter def building_type(self, value: BuildingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Building Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Building Type={value.value}"]) @property def number_of_floors(self) -> int: @@ -170,7 +145,7 @@ def number_of_floors(self) -> int: @number_of_floors.setter def number_of_floors(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Number of Floors=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Number of Floors={value}"]) @property def custom_fading_margin(self) -> float: @@ -183,7 +158,7 @@ def custom_fading_margin(self) -> float: @custom_fading_margin.setter def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Fading Margin=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -196,7 +171,7 @@ def polarization_mismatch(self) -> float: @polarization_mismatch.setter def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Mismatch=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -209,26 +184,26 @@ def pointing_error_loss(self) -> float: @pointing_error_loss.setter def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pointing Error Loss=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -241,7 +216,7 @@ def fading_availability(self) -> float: @fading_availability.setter def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Availability=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -254,7 +229,7 @@ def std_deviation(self) -> float: @std_deviation.setter def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Std Deviation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -267,7 +242,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Include Rain Attenuation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -280,7 +255,7 @@ def rain_availability(self) -> float: @rain_availability.setter def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Availability=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -293,7 +268,7 @@ def rain_rate(self) -> float: @rain_rate.setter def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Rate=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -306,7 +281,7 @@ def polarization_tilt_angle(self) -> float: @polarization_tilt_angle.setter def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Tilt Angle=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -319,9 +294,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Include Atmospheric Absorption=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -334,7 +307,7 @@ def temperature(self) -> float: @temperature.setter def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Temperature=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -347,7 +320,7 @@ def total_air_pressure(self) -> float: @total_air_pressure.setter def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Total Air Pressure=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -360,6 +333,5 @@ def water_vapor_concentration(self) -> float: @water_vapor_concentration.setter def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Water Vapor Concentration=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index 0970614f650..0d9b62e96ce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class Isolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -53,7 +28,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filename=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -66,53 +41,53 @@ def noise_temperature(self) -> float: @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Temperature=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) class TypeOption(Enum): - BYFILE = "By File" + BY_FILE = "By File" PARAMETRIC = "Parametric" @property def type(self) -> TypeOption: """Type "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) class Port1LocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + RADIO_SIDE = "Radio Side" + ANTENNA_SIDE = "Antenna Side" @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the isolator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Port 1 Location=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -125,7 +100,7 @@ def insertion_loss(self) -> float: @insertion_loss.setter def insertion_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Insertion Loss=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -138,7 +113,7 @@ def finite_reverse_isolation(self) -> bool: @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Finite Reverse Isolation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -151,7 +126,7 @@ def reverse_isolation(self) -> float: @reverse_isolation.setter def reverse_isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Reverse Isolation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -164,7 +139,7 @@ def finite_bandwidth(self) -> bool: @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Finite Bandwidth=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -177,7 +152,7 @@ def out_of_band_attenuation(self) -> float: @out_of_band_attenuation.setter def out_of_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Out-of-band Attenuation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -190,9 +165,9 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Stop Band=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -205,9 +180,9 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Cutoff=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -220,9 +195,9 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Cutoff=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -235,14 +210,15 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Stop Band=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py index c3929d11405..ab59ea96afb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class LogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,31 +33,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna A=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna B=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -95,7 +70,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable Refinement=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -108,41 +83,41 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Adaptive Sampling=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Refinement Domain=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) class EnvironmentOption(Enum): - FREESPACE = "Free Space" + FREE_SPACE = "Free Space" URBAN = "Urban" - SHADOWEDURBAN = "Shadowed Urban" - BUILDINGLINEOFSIGHT = "Building - Line of Sight" - BUILDINGOBSTRUCTED = "Building - Obstructed" - FACTORYOBSTRUCTED = "Factory - Obstructed" - CUSTOMEXPONENT = "Custom" + SHADOWED_URBAN = "Shadowed Urban" + BUILDING_LINE_OF_SIGHT = "Building Line of Sight" + BUILDING_OBSTRUCTED = "Building Obstructed" + FACTORY_OBSTRUCTED = "Factory Obstructed" + CUSTOM = "Custom" @property def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Log Distance model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Environment=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Environment={value.value}"]) @property def path_loss_exponent(self) -> float: @@ -155,7 +130,7 @@ def path_loss_exponent(self) -> float: @path_loss_exponent.setter def path_loss_exponent(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Path Loss Exponent=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Path Loss Exponent={value}"]) @property def custom_fading_margin(self) -> float: @@ -168,7 +143,7 @@ def custom_fading_margin(self) -> float: @custom_fading_margin.setter def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Fading Margin=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -181,7 +156,7 @@ def polarization_mismatch(self) -> float: @polarization_mismatch.setter def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Mismatch=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -194,26 +169,26 @@ def pointing_error_loss(self) -> float: @pointing_error_loss.setter def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pointing Error Loss=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -226,7 +201,7 @@ def fading_availability(self) -> float: @fading_availability.setter def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Availability=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -239,7 +214,7 @@ def std_deviation(self) -> float: @std_deviation.setter def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Std Deviation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -252,7 +227,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Include Rain Attenuation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -265,7 +240,7 @@ def rain_availability(self) -> float: @rain_availability.setter def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Availability=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -278,7 +253,7 @@ def rain_rate(self) -> float: @rain_rate.setter def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Rate=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -291,7 +266,7 @@ def polarization_tilt_angle(self) -> float: @polarization_tilt_angle.setter def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Tilt Angle=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -304,9 +279,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Include Atmospheric Absorption=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -319,7 +292,7 @@ def temperature(self) -> float: @temperature.setter def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Temperature=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -332,7 +305,7 @@ def total_air_pressure(self) -> float: @total_air_pressure.setter def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Total Air Pressure=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -345,6 +318,5 @@ def water_vapor_concentration(self) -> float: @water_vapor_concentration.setter def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Water Vapor Concentration=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py index ed3d0632142..d800b688991 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class MPlexBandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,31 +23,31 @@ def delete(self): self._delete() class PowerDirectionOption(Enum): - INCOMMONPORTOUTCOMMONPORT = "Into Common Port|Out of Common Port" + INTO_COMMON_PORTOUT_OF_COMMON_PORT = "Into Common Port|Out of Common Port" @property def power_direction(self) -> PowerDirectionOption: """Power Direction - " """ + " """ val = self._get_property("Power Direction") val = self.PowerDirectionOption[val] return val @power_direction.setter def power_direction(self, value: PowerDirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Power Direction=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Power Direction={value.value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) @property def visible(self) -> bool: @@ -85,7 +60,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -98,19 +73,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -124,14 +99,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -144,7 +119,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -157,7 +132,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -180,14 +155,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -200,7 +175,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -213,7 +188,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -226,7 +201,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -239,4 +214,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index c0aec46855f..e17754b2144 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class Multiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -57,7 +32,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filename=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -70,53 +45,53 @@ def noise_temperature(self) -> float: @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Temperature=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) class TypeOption(Enum): - PARAMETRIC = "By Pass Band" - BYFILE = "By File" + BY_PASS_BAND = "By Pass Band" + BY_FILE = "By File" @property def type(self) -> TypeOption: """Type "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) class Port1LocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + RADIO_SIDE = "Radio Side" + ANTENNA_SIDE = "Antenna Side" @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the multiplexer.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Port 1 Location=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port 1 Location={value.value}"]) @property def flip_ports_vertically(self) -> bool: @@ -129,25 +104,26 @@ def flip_ports_vertically(self) -> bool: @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Flip Ports Vertically=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Flip Ports Vertically={value}"]) @property def ports(self): """Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ + " """ val = self._get_property("Ports") return val @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Ports=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Ports={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py index 0bace57e6db..90e19b9f9da 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class MultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,23 +23,23 @@ def delete(self): self._delete() class TypeOption(Enum): - BYFILE = "By File" - LOWPASS = "Low Pass" - HIGHPASS = "High Pass" - BANDPASS = "Band Pass" + BY_FILE = "By File" + LOW_PASS = "Low Pass" + HIGH_PASS = "High Pass" + BAND_PASS = "Band Pass" @property def type(self) -> TypeOption: """Type "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) @property def filename(self) -> str: @@ -77,7 +52,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filename=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) @property def insertion_loss(self) -> float: @@ -90,7 +65,7 @@ def insertion_loss(self) -> float: @insertion_loss.setter def insertion_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Insertion Loss=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -103,7 +78,7 @@ def stop_band_attenuation(self) -> float: @stop_band_attenuation.setter def stop_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Stop band Attenuation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -116,9 +91,9 @@ def max_pass_band(self) -> float: return val @max_pass_band.setter - def max_pass_band(self, value: float | str): + def max_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Pass Band=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -131,9 +106,9 @@ def min_stop_band(self) -> float: return val @min_stop_band.setter - def min_stop_band(self, value: float | str): + def min_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Min Stop Band=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -146,9 +121,9 @@ def max_stop_band(self) -> float: return val @max_stop_band.setter - def max_stop_band(self, value: float | str): + def max_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Stop Band=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -161,9 +136,9 @@ def min_pass_band(self) -> float: return val @min_pass_band.setter - def min_pass_band(self, value: float | str): + def min_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Min Pass Band=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -176,9 +151,9 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Stop Band=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -191,9 +166,9 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Cutoff=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -206,9 +181,9 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Cutoff=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -221,14 +196,15 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Stop Band=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py index 912f8dc0917..c8b09e15ad1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class OutboardTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,7 +33,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Input Port=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Input Port={value}"]) @property def output_port(self) -> int: @@ -71,19 +46,19 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Output Port=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,7 +71,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -109,19 +84,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -135,14 +110,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -155,7 +130,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -168,7 +143,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -191,14 +166,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -211,7 +186,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -224,7 +199,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -237,7 +212,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -250,4 +225,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py index b0336eb982c..89fa1b61444 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ParametricCouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,36 +25,36 @@ def delete(self): @property def antenna_a(self) -> EmitNode: """Antenna A - " """ + " """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna A=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B - " """ + " """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna B=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna B={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) @property def visible(self) -> bool: @@ -92,7 +67,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -105,19 +80,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -131,14 +106,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -151,7 +126,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -164,7 +139,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -187,14 +162,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -207,7 +182,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -220,7 +195,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -233,7 +208,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -246,4 +221,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py index 50c5ad2b928..da9a0ec31b7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class PlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,7 +33,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def attached(self) -> bool: @@ -71,31 +46,31 @@ def attached(self) -> bool: @attached.setter def attached(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Attached=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Attached={value}"]) @property def position(self) -> float: """Position "Set position of the marker along the X-axis." - " """ + " """ val = self._get_property("Position") return val @position.setter def position(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Position=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position={value}"]) @property def position(self) -> float: """Position "Set position of the marker along the Y-axis." - " """ + " """ val = self._get_property("Position") return val @position.setter def position(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Position=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position={value}"]) @property def floating_label(self) -> bool: @@ -108,7 +83,7 @@ def floating_label(self) -> bool: @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Floating Label=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -121,7 +96,7 @@ def position_from_left(self) -> float: @position_from_left.setter def position_from_left(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Position from Left=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -134,19 +109,19 @@ def position_from_top(self) -> float: @position_from_top.setter def position_from_top(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Position from Top=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position from Top={value}"]) @property def text(self) -> str: """Text "Set the text of the label." - " """ + " """ val = self._get_property("Text") return val @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Text=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -157,16 +132,14 @@ class HorizontalPositionOption(Enum): def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position "Specify horizontal position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] return val @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Horizontal Position=" + value.value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Horizontal Position={value.value}"]) class VerticalPositionOption(Enum): TOP = "Top" @@ -177,14 +150,14 @@ class VerticalPositionOption(Enum): def vertical_position(self) -> VerticalPositionOption: """Vertical Position "Specify vertical position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] return val @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Vertical Position=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -195,14 +168,14 @@ class TextAlignmentOption(Enum): def text_alignment(self) -> TextAlignmentOption: """Text Alignment "Specify justification applied to multi-line text." - " """ + " """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] return val @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Text Alignment=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Text Alignment={value.value}"]) @property def font(self): @@ -215,7 +188,7 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Font=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Font={value}"]) @property def color(self): @@ -228,7 +201,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Color={value}"]) @property def background_color(self): @@ -241,7 +214,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Background Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Background Color={value}"]) @property def border(self) -> bool: @@ -254,7 +227,7 @@ def border(self) -> bool: @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Border=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border={value}"]) @property def border_width(self) -> int: @@ -267,7 +240,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Border Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border Width={value}"]) @property def border_color(self): @@ -280,7 +253,7 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Border Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -304,14 +277,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Specify symbol displayed next to the label." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -324,7 +297,7 @@ def arrow_direction(self) -> int: @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Arrow Direction=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -337,7 +310,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -350,7 +323,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -363,7 +336,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def filled(self) -> bool: @@ -376,4 +349,5 @@ def filled(self) -> bool: @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py index ebb7319040e..744d76f4cb6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class PlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,13 +29,13 @@ def delete(self): def title(self) -> str: """Title "Enter title at the top of the plot, room will be made for it." - " """ + " """ val = self._get_property("Title") return val @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Title=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Title={value}"]) @property def title_font(self): @@ -73,7 +48,7 @@ def title_font(self): @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Title Font=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -86,7 +61,7 @@ def show_legend(self) -> bool: @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Show Legend=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Legend={value}"]) @property def legend_font(self): @@ -99,7 +74,7 @@ def legend_font(self): @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Legend Font=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Legend Font={value}"]) @property def display_cad_overlay(self) -> bool: @@ -112,7 +87,7 @@ def display_cad_overlay(self) -> bool: @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Display CAD Overlay=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -125,19 +100,19 @@ def opacity(self) -> float: @opacity.setter def opacity(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Opacity=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset "Adjust vertical position of CAD model overlay." - " """ + " """ val = self._get_property("Vertical Offset") return val @vertical_offset.setter def vertical_offset(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Vertical Offset=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -150,7 +125,7 @@ def range_axis_rotation(self) -> float: @range_axis_rotation.setter def range_axis_rotation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Range Axis Rotation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -163,55 +138,55 @@ def lock_axes(self) -> bool: @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lock Axes=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min "Set lower extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Min") return val @x_axis_min.setter def x_axis_min(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["X-axis Min=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max "Set upper extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Max") return val @x_axis_max.setter def x_axis_max(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["X-axis Max=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min "Set lower extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Min") return val @y_axis_min.setter def y_axis_min(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Y-axis Min=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max "Set upper extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Max") return val @y_axis_max.setter def y_axis_max(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Y-axis Max=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -224,7 +199,7 @@ def y_axis_range(self) -> float: @y_axis_range.setter def y_axis_range(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Y-axis Range=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y-axis Range={value}"]) @property def max_major_ticks(self) -> int: @@ -237,7 +212,7 @@ def max_major_ticks(self) -> int: @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Major Ticks=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Major Ticks={value}"]) @property def max_minor_ticks(self) -> int: @@ -250,7 +225,7 @@ def max_minor_ticks(self) -> int: @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Minor Ticks=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Minor Ticks={value}"]) @property def max_major_ticks(self) -> int: @@ -263,7 +238,7 @@ def max_major_ticks(self) -> int: @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Major Ticks=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Major Ticks={value}"]) @property def max_minor_ticks(self) -> int: @@ -276,7 +251,7 @@ def max_minor_ticks(self) -> int: @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Minor Ticks=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Minor Ticks={value}"]) @property def axis_label_font(self): @@ -289,7 +264,7 @@ def axis_label_font(self): @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Axis Label Font=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -302,7 +277,7 @@ def axis_tick_label_font(self): @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Axis Tick Label Font=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -316,16 +291,14 @@ class MajorGridLineStyleOption(Enum): def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style "Select line style of major-tick grid lines." - " """ + " """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] return val @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Major Grid Line Style=" + value.value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Major Grid Line Style={value.value}"]) @property def major_grid_color(self): @@ -338,7 +311,7 @@ def major_grid_color(self): @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Major Grid Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -352,16 +325,14 @@ class MinorGridLineStyleOption(Enum): def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style "Select line style of minor-tick grid lines." - " """ + " """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] return val @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Minor Grid Line Style=" + value.value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Minor Grid Line Style={value.value}"]) @property def minor_grid_color(self): @@ -374,7 +345,7 @@ def minor_grid_color(self): @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Minor Grid Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Minor Grid Color={value}"]) @property def background_color(self): @@ -387,7 +358,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Background Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -399,16 +370,14 @@ class BBPowerforPlotsUnitOption(Enum): def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit "Units to use for plotting broadband power densities." - " """ + " """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] return val @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["BB Power for Plots Unit=" + value.value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"BB Power for Plots Unit={value.value}"]) @property def bb_power_bandwidth(self) -> float: @@ -421,9 +390,9 @@ def bb_power_bandwidth(self) -> float: return val @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value: float | str): + def bb_power_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["BB Power Bandwidth=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -436,4 +405,5 @@ def log_scale(self) -> bool: @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Log Scale=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Log Scale={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py index 3e71b5aaeed..c40cde9206b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class PowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -53,7 +28,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filename=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -66,54 +41,54 @@ def noise_temperature(self) -> float: @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Temperature=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) class TypeOption(Enum): - BYFILE = "By File" - _3DB = "3 dB" + BY_FILE = "By File" + P3_DB = "P3 dB" RESISTIVE = "Resistive" @property def type(self) -> TypeOption: """Type "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) class OrientationOption(Enum): - RADIOSIDE = "Divider" - ANTENNASIDE = "Combiner" + DIVIDER = "Divider" + COMBINER = "Combiner" @property def orientation(self) -> OrientationOption: """Orientation "Defines the orientation of the Power Divider.." - " """ + " """ val = self._get_property("Orientation") val = self.OrientationOption[val] return val @orientation.setter def orientation(self, value: OrientationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Orientation=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation={value.value}"]) @property def insertion_loss_above_ideal(self) -> float: @@ -126,9 +101,7 @@ def insertion_loss_above_ideal(self) -> float: @insertion_loss_above_ideal.setter def insertion_loss_above_ideal(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Insertion Loss Above Ideal=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Insertion Loss Above Ideal={value}"]) @property def finite_isolation(self) -> bool: @@ -141,7 +114,7 @@ def finite_isolation(self) -> bool: @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Finite Isolation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -154,7 +127,7 @@ def isolation(self) -> float: @isolation.setter def isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Isolation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -167,7 +140,7 @@ def finite_bandwidth(self) -> bool: @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Finite Bandwidth=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -180,7 +153,7 @@ def out_of_band_attenuation(self) -> float: @out_of_band_attenuation.setter def out_of_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Out-of-band Attenuation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -193,9 +166,9 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Stop Band=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -208,9 +181,9 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Cutoff=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -223,9 +196,9 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Cutoff=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -238,14 +211,15 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Stop Band=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py index ee9e43213f2..d46ce891852 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class PowerTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,33 +23,33 @@ def delete(self): self._delete() class DirectionOption(Enum): - AWAY = "Away From Tx" - TOWARD = "Toward Tx" + AWAY_FROM_TX = "Away From Tx" + TOWARD_TX = "Toward Tx" @property def direction(self) -> DirectionOption: """Direction "Direction of power flow (towards or away from the transmitter) to plot." - " """ + " """ val = self._get_property("Direction") val = self.DirectionOption[val] return val @direction.setter def direction(self, value: DirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Direction=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Direction={value.value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) @property def visible(self) -> bool: @@ -87,7 +62,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -100,19 +75,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -126,14 +101,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -146,7 +121,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -159,7 +134,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -182,14 +157,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -202,7 +177,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -215,7 +190,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -228,7 +203,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -241,4 +216,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py index 6496fef5768..058b832ad2b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ProfileTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -51,13 +26,13 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) @property def visible(self) -> bool: @@ -70,7 +45,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -83,19 +58,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -109,14 +84,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -129,7 +104,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -142,7 +117,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -165,14 +140,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -185,7 +160,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -198,7 +173,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -211,7 +186,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -224,4 +199,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py index efe0577158f..584d7d62c69 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class PropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,31 +33,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna A=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna B=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -95,7 +70,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable Refinement=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -108,19 +83,19 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Adaptive Sampling=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Refinement Domain=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) @property def custom_fading_margin(self) -> float: @@ -133,7 +108,7 @@ def custom_fading_margin(self) -> float: @custom_fading_margin.setter def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Fading Margin=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -146,7 +121,7 @@ def polarization_mismatch(self) -> float: @polarization_mismatch.setter def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Mismatch=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -159,26 +134,26 @@ def pointing_error_loss(self) -> float: @pointing_error_loss.setter def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pointing Error Loss=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -191,7 +166,7 @@ def fading_availability(self) -> float: @fading_availability.setter def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Availability=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -204,7 +179,7 @@ def std_deviation(self) -> float: @std_deviation.setter def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Std Deviation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -217,7 +192,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Include Rain Attenuation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -230,7 +205,7 @@ def rain_availability(self) -> float: @rain_availability.setter def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Availability=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -243,7 +218,7 @@ def rain_rate(self) -> float: @rain_rate.setter def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Rate=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -256,7 +231,7 @@ def polarization_tilt_angle(self) -> float: @polarization_tilt_angle.setter def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Tilt Angle=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -269,9 +244,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Include Atmospheric Absorption=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -284,7 +257,7 @@ def temperature(self) -> float: @temperature.setter def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Temperature=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -297,7 +270,7 @@ def total_air_pressure(self) -> float: @total_air_pressure.setter def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Total Air Pressure=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -310,6 +283,5 @@ def water_vapor_concentration(self) -> float: @water_vapor_concentration.setter def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Water Vapor Concentration=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py index 1ce34a26dfc..55a096b32a5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class RadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,11 +28,11 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Name: - " "Type: - " """ + "Name: + " "Type: + " """ return self._get_table_data() @table_data.setter @@ -68,10 +43,11 @@ def table_data(self, value): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py index 7abe5cb06ad..e29c74f6923 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyAmplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -52,7 +27,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -64,7 +39,7 @@ class AmplifierTypeOption(Enum): def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type "Configures the amplifier as a Tx or Rx amplifier." - " """ + " """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] return val @@ -163,3 +138,4 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py index 0590b919bc3..e07566fa950 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyAntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +14,7 @@ def parent(self): def tags(self) -> str: """Tags "Space delimited list of tags for coupling selections." - " """ + " """ val = self._get_property("Tags") return val @@ -71,14 +46,14 @@ def relative_position(self): return val class OrientationModeOption(Enum): - RPYDEG = "Roll-Pitch-Yaw" - AETDEG = "Az-El-Twist" + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" + AZ_EL_TWIST = "Az-El-Twist" @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -123,7 +98,7 @@ def antenna_temperature(self) -> float: def type(self): """Type "Defines the type of antenna." - " """ + " """ val = self._get_property("Type") return val @@ -162,7 +137,7 @@ class BoresightOption(Enum): def boresight(self) -> BoresightOption: """Boresight "Select peak beam direction in local coordinates." - " """ + " """ val = self._get_property("Boresight") val = self.BoresightOption[val] return val @@ -336,7 +311,7 @@ class AntennaPolarizationOption(Enum): def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] return val @@ -349,7 +324,7 @@ class CrossDipoleModeOption(Enum): def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode "Choose the Cross Dipole type." - " """ + " """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] return val @@ -362,7 +337,7 @@ class CrossDipolePolarizationOption(Enum): def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] return val @@ -422,7 +397,7 @@ class ConformtoPlatformOption(Enum): def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform "Select method of automated conforming applied after Element Offset." - " """ + " """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] return val @@ -436,7 +411,7 @@ class ReferencePlaneOption(Enum): def reference_plane(self) -> ReferencePlaneOption: """Reference Plane "Select reference plane for determining original element heights." - " """ + " """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] return val @@ -490,7 +465,7 @@ def color(self): def el_sample_interval(self) -> float: """El Sample Interval "Space between elevation-angle samples of pattern." - " """ + " """ val = self._get_property("El Sample Interval") return val @@ -498,7 +473,7 @@ def el_sample_interval(self) -> float: def az_sample_interval(self) -> float: """Az Sample Interval "Space between azimuth-angle samples of pattern." - " """ + " """ val = self._get_property("Az Sample Interval") return val @@ -515,7 +490,7 @@ def has_frequency_domain(self) -> bool: def frequency_domain(self): """Frequency Domain "Frequency sample(s) defining antenna." - " """ + " """ val = self._get_property("Frequency Domain") return val @@ -523,7 +498,7 @@ def frequency_domain(self): def number_of_electric_sources(self) -> int: """Number of Electric Sources "Number of freestanding electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Electric Sources") return val @@ -531,7 +506,7 @@ def number_of_electric_sources(self) -> int: def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources "Number of freestanding magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Magnetic Sources") return val @@ -539,7 +514,7 @@ def number_of_magnetic_sources(self) -> int: def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources "Number of imaged, half-space radiating electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Electric Sources") return val @@ -547,7 +522,7 @@ def number_of_imaged_electric_sources(self) -> int: def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources "Number of imaged, half-space radiating magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Magnetic Sources") return val @@ -555,7 +530,7 @@ def number_of_imaged_magnetic_sources(self) -> int: def waveguide_height(self) -> float: """Waveguide Height "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." - " """ + " """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") return val @@ -564,7 +539,7 @@ def waveguide_height(self) -> float: def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." - " """ + " """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -573,21 +548,21 @@ def waveguide_cutoff_frequency(self) -> float: def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." - " """ + " """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val class SWEModeTruncationOption(Enum): DYNAMIC = "Dynamic" - CUSTOM = "Fixed (Custom)" + FIXED_CUSTOM = "Fixed (Custom)" NONE = "None" @property def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation "Select the method for stability-enhancing truncation of spherical wave expansion terms." - " """ + " """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] return val @@ -605,7 +580,7 @@ def max_n_index(self) -> int: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -631,7 +606,7 @@ def use_phase_center(self) -> bool: def coordinate_systems(self) -> str: """Coordinate Systems "Specifies the coordinate system for the phase center of this antenna." - " """ + " """ val = self._get_property("Coordinate Systems") return val @@ -652,3 +627,4 @@ def phasecenterorientation(self): """ val = self._get_property("PhaseCenterOrientation") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py index 2db0cb29ca5..bd98c0b7fe5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyAntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -97,6 +72,7 @@ def higher_stop_band(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py index dab62d9fffc..333cf6d61f6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +14,7 @@ def parent(self): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") return val @@ -65,7 +40,7 @@ def use_emission_designator(self) -> bool: def emission_designator(self) -> str: """Emission Designator "Enter the Emission Designator to define the bandwidth and modulation." - " """ + " """ val = self._get_property("Emission Designator") return val @@ -73,7 +48,7 @@ def emission_designator(self) -> str: def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." - " """ + " """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -82,7 +57,7 @@ def emission_designator_ch_bw(self) -> float: def emit_modulation_type(self) -> str: """EMIT Modulation Type "Modulation based off the emission designator." - " """ + " """ val = self._get_property("EMIT Modulation Type") return val @@ -122,7 +97,7 @@ class ModulationOption(Enum): def modulation(self) -> ModulationOption: """Modulation "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Modulation") val = self.ModulationOption[val] return val @@ -177,7 +152,7 @@ def sidelobes(self) -> int: @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ @@ -188,62 +163,62 @@ def freq_deviation_(self) -> float: class PSKTypeOption(Enum): BPSK = "BPSK" QPSK = "QPSK" - _8_PSK = "8-PSK" - _16_PSK = "16-PSK" - _32_PSK = "32-PSK" - _64_PSK = "64-PSK" + PSK_8 = "PSK-8" + PSK_16 = "PSK-16" + PSK_32 = "PSK-32" + PSK_64 = "PSK-64" @property def psk_type(self) -> PSKTypeOption: """PSK Type "PSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] return val class FSKTypeOption(Enum): - _2_FSK = "2-FSK" - _4_FSK = "4-FSK" - _8_FSK = "8-FSK" + FSK_2 = "FSK-2" + FSK_4 = "FSK-4" + FSK_8 = "FSK-8" @property def fsk_type(self) -> FSKTypeOption: """FSK Type "FSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] return val class QAMTypeOption(Enum): - _4_QAM = "4-QAM" - _16_QAM = "16-QAM" - _64_QAM = "64-QAM" - _256_QAM = "256-QAM" - _1024_QAM = "1024-QAM" + QAM_4 = "QAM-4" + QAM_16 = "QAM-16" + QAM_64 = "QAM-64" + QAM_256 = "QAM-256" + QAM_1024 = "QAM-1024" @property def qam_type(self) -> QAMTypeOption: """QAM Type "QAM modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] return val class APSKTypeOption(Enum): - _4_APSK = "4-APSK" - _16_APSK = "16-APSK" - _64_APSK = "64-APSK" - _256_APSK = "256-APSK" - _1024_APSK = "1024-APSK" + APSK_4 = "APSK-4" + APSK_16 = "APSK-16" + APSK_64 = "APSK-64" + APSK_256 = "APSK-256" + APSK_1024 = "APSK-1024" @property def apsk_type(self) -> APSKTypeOption: """APSK Type "APSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] return val @@ -299,7 +274,7 @@ class RadarTypeOption(Enum): def radar_type(self) -> RadarTypeOption: """Radar Type "Radar type: helps determine spectral profile." - " """ + " """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] return val @@ -428,3 +403,4 @@ def fm_freq_dev_bandwidth(self) -> float: val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py index 609059ce036..be2a0e34ea0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyBandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -34,3 +9,4 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py index 73520cbde3b..ffc01cd9f13 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyCADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -64,7 +39,7 @@ class ModelTypeOption(Enum): def model_type(self) -> ModelTypeOption: """Model Type "Select type of parametric model to create." - " """ + " """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] return val @@ -212,7 +187,7 @@ def focal_length(self) -> float: def offset(self) -> float: """Offset "Offset of parabolic reflector." - " """ + " """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") return val @@ -288,7 +263,7 @@ class MeshOptionOption(Enum): def mesh_option(self) -> MeshOptionOption: """Mesh Option "Select from different meshing options." - " """ + " """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] return val @@ -330,14 +305,14 @@ def relative_position(self): return val class OrientationModeOption(Enum): - RPYDEG = "Roll-Pitch-Yaw" - AETDEG = "Az-El-Twist" + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" + AZ_EL_TWIST = "Az-El-Twist" @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -379,7 +354,7 @@ class RenderModeOption(Enum): def render_mode(self) -> RenderModeOption: """Render Mode "Select drawing style for surfaces." - " """ + " """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] return val @@ -415,7 +390,7 @@ def max(self): def number_of_surfaces(self) -> int: """Number of Surfaces "Number of surfaces in the model." - " """ + " """ val = self._get_property("Number of Surfaces") return val @@ -432,6 +407,7 @@ def color(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py index 136e7b63d1a..687d9efcc26 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyCable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -52,20 +27,20 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val class TypeOption(Enum): - BYFILE = "By File" - CONSTANT = "Constant Loss" - COAXIAL = "Coaxial Cable" + BY_FILE = "By File" + CONSTANT_LOSS = "Constant Loss" + COAXIAL_CABLE = "Coaxial Cable" @property def type(self) -> TypeOption: """Type "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -121,6 +96,7 @@ def dielectric_loss_constant(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py index 79400d54584..f72db484ef6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyCirculator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -52,32 +27,32 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val class TypeOption(Enum): - BYFILE = "By File" + BY_FILE = "By File" PARAMETRIC = "Parametric" @property def type(self) -> TypeOption: """Type "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val class Port1LocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + RADIO_SIDE = "Radio Side" + ANTENNA_SIDE = "Antenna Side" @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the circulator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @@ -171,6 +146,7 @@ def higher_stop_band(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py index 142edb7bea0..67921ba175a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -49,6 +24,7 @@ def ports(self): """Ports "Maps each port in the link to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Ports") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py index 69441c5b321..5755c96c846 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyCouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,6 +27,7 @@ def global_default_coupling(self) -> float: def antenna_tags(self) -> str: """Antenna Tags "All tags currently used by all antennas in the project." - " """ + " """ val = self._get_property("Antenna Tags") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py index 5029f5ca9e8..96e388f35f1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,11 +12,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Value (dB): + "Value (dB): " Value should be between -1000 and 0." """ return self._get_table_data() @@ -59,7 +34,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -67,7 +42,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -93,6 +68,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py index 4b7de2ffdc6..a76457092ae 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -34,20 +9,20 @@ def __init__(self, oDesign, result_id, node_id): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val class GroundPlaneNormalOption(Enum): - XAXIS = "X Axis" - YAXIS = "Y Axis" - ZAXIS = "Z Axis" + X_AXIS = "X Axis" + Y_AXIS = "Y Axis" + Z_AXIS = "Z Axis" @property def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal "Specifies the axis of the normal to the ground plane." - " """ + " """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] return val @@ -56,7 +31,8 @@ def ground_plane_normal(self) -> GroundPlaneNormalOption: def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." - " """ + " """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py index 558d1515b20..b9970309043 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,7 +23,7 @@ def enabled(self) -> bool: def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -56,7 +31,7 @@ def base_antenna(self) -> EmitNode: def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -82,20 +57,20 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val class TerrainCategoryOption(Enum): - TYPEA = "Type A" - TYPEB = "Type B" - TYPEC = "Type C" + TYPE_A = "Type A" + TYPE_B = "Type B" + TYPE_C = "Type C" @property def terrain_category(self) -> TerrainCategoryOption: """Terrain Category "Specify the terrain category type for the Erceg model." - " """ + " """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] return val @@ -128,16 +103,16 @@ def pointing_error_loss(self) -> float: return val class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -231,3 +206,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py index 128b33306a7..0554fd61fa8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyFilter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -52,24 +27,24 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val class TypeOption(Enum): - BYFILE = "By File" - LOWPASS = "Low Pass" - HIGHPASS = "High Pass" - BANDPASS = "Band Pass" - BANDSTOP = "Band Stop" - TUNABLEBANDPASS = "Tunable Bandpass" - TUNABLEBANDSTOP = "Tunable Bandstop" + BY_FILE = "By File" + LOW_PASS = "Low Pass" + HIGH_PASS = "High Pass" + BAND_PASS = "Band Pass" + BAND_STOP = "Band Stop" + TUNABLE_BANDPASS = "Tunable Bandpass" + TUNABLE_BANDSTOP = "Tunable Bandstop" @property def type(self) -> TypeOption: """Type "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -174,7 +149,7 @@ def higher_stop_band(self) -> float: @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ @@ -184,7 +159,7 @@ def lower_cutoff_(self) -> float: @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ @@ -194,7 +169,7 @@ def lower_stop_band_(self) -> float: @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ @@ -204,7 +179,7 @@ def higher_stop_band_(self) -> float: @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ @@ -214,7 +189,7 @@ def higher_cutoff_(self) -> float: @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency "Lowest tuned frequency." "Value should be between 1 and 1e+11." """ @@ -224,7 +199,7 @@ def lowest_tuned_frequency_(self) -> float: @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency "Highest tuned frequency." "Value should be between 1 and 1e+11." """ @@ -254,6 +229,7 @@ def shape_factor(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py index 77ce1d55491..82a84b61400 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,7 +23,7 @@ def enabled(self) -> bool: def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -56,7 +31,7 @@ def base_antenna(self) -> EmitNode: def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -82,20 +57,20 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val class EnvironmentOption(Enum): - URBANMICROCELL = "Urban Microcell" - URBANMACROCELL = "Urban Macrocell" - RURALMACROCELL = "Rural Macrocell" + URBAN_MICROCELL = "Urban Microcell" + URBAN_MACROCELL = "Urban Macrocell" + RURAL_MACROCELL = "Rural Macrocell" @property def environment(self) -> EnvironmentOption: """Environment "Specify the environment for the 5G channel model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -119,14 +94,14 @@ def include_bpl(self) -> bool: return val class NYUBPLModelOption(Enum): - LOWLOSSMODEL = "Low-loss model" - HIGHLOSSMODEL = "High-loss model" + LOW_LOSS_MODEL = "Low-loss model" + HIGH_LOSS_MODEL = "High-loss model" @property def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model "Specify the NYU Building Penetration Loss model." - " """ + " """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] return val @@ -159,16 +134,16 @@ def pointing_error_loss(self) -> float: return val class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -262,3 +237,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py index 4458ec69c69..96a6c542889 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,7 +23,7 @@ def enabled(self) -> bool: def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -56,7 +31,7 @@ def base_antenna(self) -> EmitNode: def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -82,13 +57,13 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val class EnvironmentOption(Enum): - LARGECITY = "Large City" - SMALLMEDCITY = "Small/Medium City" + LARGE_CITY = "Large City" + SMALLMEDIUM_CITY = "Small/Medium City" SUBURBAN = "Suburban" RURAL = "Rural" @@ -96,7 +71,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Hata model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -129,16 +104,16 @@ def pointing_error_loss(self) -> float: return val class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -232,3 +207,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py index d8d95a58aa1..e023aac8d72 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,13 +12,13 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Power Loss Coefficient: + "Power Loss Coefficient: " Value should be between 0 and 100." - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): " Value should be between 0 and 1000." """ return self._get_table_data() @@ -61,7 +36,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -69,7 +44,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -95,22 +70,22 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val class BuildingTypeOption(Enum): - RESIDENTIALAPARTMENT = "Residential Apartment" - RESIDENTIALHOUSE = "Residential House" - OFFICEBUILDING = "Office Building" - COMMERCIALBUILDING = "Commercial Building" - CUSTOMBUILDING = "Custom Building" + RESIDENTIAL_APARTMENT = "Residential Apartment" + RESIDENTIAL_HOUSE = "Residential House" + OFFICE_BUILDING = "Office Building" + COMMERCIAL_BUILDING = "Commercial Building" + CUSTOM_BUILDING = "Custom Building" @property def building_type(self) -> BuildingTypeOption: """Building Type "Specify the building type for the Indoor Propagation model." - " """ + " """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] return val @@ -152,16 +127,16 @@ def pointing_error_loss(self) -> float: return val class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -255,3 +230,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py index 9a05f57e1a8..723155eb0d1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyIsolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -52,32 +27,32 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val class TypeOption(Enum): - BYFILE = "By File" + BY_FILE = "By File" PARAMETRIC = "Parametric" @property def type(self) -> TypeOption: """Type "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val class Port1LocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + RADIO_SIDE = "Radio Side" + ANTENNA_SIDE = "Antenna Side" @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the isolator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @@ -171,6 +146,7 @@ def higher_stop_band(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py index a9f75a26670..c064c8a3b00 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,7 +23,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -56,7 +31,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -82,24 +57,24 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val class EnvironmentOption(Enum): - FREESPACE = "Free Space" + FREE_SPACE = "Free Space" URBAN = "Urban" - SHADOWEDURBAN = "Shadowed Urban" - BUILDINGLINEOFSIGHT = "Building - Line of Sight" - BUILDINGOBSTRUCTED = "Building - Obstructed" - FACTORYOBSTRUCTED = "Factory - Obstructed" - CUSTOMEXPONENT = "Custom" + SHADOWED_URBAN = "Shadowed Urban" + BUILDING_LINE_OF_SIGHT = "Building Line of Sight" + BUILDING_OBSTRUCTED = "Building Obstructed" + FACTORY_OBSTRUCTED = "Factory Obstructed" + CUSTOM = "Custom" @property def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Log Distance model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -141,16 +116,16 @@ def pointing_error_loss(self) -> float: return val class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -244,3 +219,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py index 4bfcc7e19ce..8afb7b32af5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyMultiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -52,32 +27,32 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val class TypeOption(Enum): - PARAMETRIC = "By Pass Band" - BYFILE = "By File" + BY_PASS_BAND = "By Pass Band" + BY_FILE = "By File" @property def type(self) -> TypeOption: """Type "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val class Port1LocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + RADIO_SIDE = "Radio Side" + ANTENNA_SIDE = "Antenna Side" @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the multiplexer.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @@ -96,7 +71,7 @@ def ports(self): """Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ + " """ val = self._get_property("Ports") return val @@ -104,6 +79,7 @@ def ports(self): def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py index 0760e578556..55a30d26621 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,16 +11,16 @@ def parent(self): return self._parent class TypeOption(Enum): - BYFILE = "By File" - LOWPASS = "Low Pass" - HIGHPASS = "High Pass" - BANDPASS = "Band Pass" + BY_FILE = "By File" + LOW_PASS = "Low Pass" + HIGH_PASS = "High Pass" + BAND_PASS = "Band Pass" @property def type(self) -> TypeOption: """Type "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -161,6 +136,7 @@ def higher_stop_band(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py index 1faf125d797..d060dfad2e8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyPowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -52,33 +27,33 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val class TypeOption(Enum): - BYFILE = "By File" - _3DB = "3 dB" + BY_FILE = "By File" + P3_DB = "P3 dB" RESISTIVE = "Resistive" @property def type(self) -> TypeOption: """Type "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val class OrientationOption(Enum): - RADIOSIDE = "Divider" - ANTENNASIDE = "Combiner" + DIVIDER = "Divider" + COMBINER = "Combiner" @property def orientation(self) -> OrientationOption: """Orientation "Defines the orientation of the Power Divider.." - " """ + " """ val = self._get_property("Orientation") val = self.OrientationOption[val] return val @@ -172,6 +147,7 @@ def higher_stop_band(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py index d8001cf9ffe..3971af9d479 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,7 +23,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -56,7 +31,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -82,7 +57,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -114,16 +89,16 @@ def pointing_error_loss(self) -> float: return val class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -217,3 +192,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py index 84e6f0fa1a5..e7e9e6309d2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyRadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,17 +12,18 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Name: - " "Type: - " """ + "Name: + " "Type: + " """ return self._get_table_data() @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py index 49ab661f127..7200ded6877 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyRfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,3 +27,4 @@ def enforce_thermal_noise_floor(self) -> bool: """ val = self._get_property("Enforce Thermal Noise Floor") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py index 93c85821e11..c96e17dc510 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyRxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -57,7 +32,7 @@ def source_file(self) -> str: def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -71,7 +46,7 @@ class MeasurementModeOption(Enum): def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode "Defines the mode for the receiver measurement." - " """ + " """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] return val @@ -240,3 +215,4 @@ def exclude_mixer_products_below_noise(self) -> bool: """ val = self._get_property("Exclude Mixer Products Below Noise") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py index 086092c0268..01b24815cab 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,7 +19,7 @@ class MixerProductTaperOption(Enum): def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper "Taper for setting amplitude of mixer products." - " """ + " """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] return val @@ -106,12 +81,12 @@ def mixer_product_intercept(self) -> float: return val @property - def _80_db_bandwidth(self) -> float: - """80 dB Bandwidth + def bandwidth_80_db(self) -> float: + """Bandwidth 80 dB "Bandwidth where Rx's susceptibility envelope is 80 dB above in-band susceptibility level." "Value should be greater than 1." """ - val = self._get_property("80 dB Bandwidth") + val = self._get_property("Bandwidth 80 dB") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -143,46 +118,46 @@ def maximum_lo_harmonic_order(self) -> int: return val class MixingModeOption(Enum): - ABOVETUNEDFREQUENCY = "LO Above Tuned (RF) Frequency" - BELOWTUNEDFREQUENCY = "LO Below Tuned (RF) Frequency" - BOTHTUNEDFREQUENCIES = "LO Above/Below Tuned (RF) Frequency" + LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" + LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" + LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" @property def mixing_mode(self) -> MixingModeOption: """Mixing Mode "Specifies whether the IF frequency is > or < RF channel frequency." - " """ + " """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] return val @property - def _1st_if_frequency(self): - """1st IF Frequency + def first_if_frequency(self): + """First IF Frequency "Intermediate frequency for Rx's 1st conversion stage." "Value should be a mathematical expression." """ - val = self._get_property("1st IF Frequency") + val = self._get_property("First IF Frequency") return val @property def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." - " """ + " """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val class UseHighLOOption(Enum): - ABOVETRANSITION = "Above Transition Frequency" - BELOWTRANSITION = "Below Transition Frequency" + ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" + BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" @property def use_high_lo(self) -> UseHighLOOption: """Use High LO "Use High LO above/below the transition frequency." - " """ + " """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] return val @@ -195,7 +170,8 @@ class MixerProductTableUnitsOption(Enum): def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units "Specifies the units for the Mixer Products." - " """ + " """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py index a1c7bb94686..3339801422b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -34,3 +9,4 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py index 44125e171b2..8a576345f53 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -43,3 +18,4 @@ def use_arithmetic_mean(self) -> bool: """ val = self._get_property("Use Arithmetic Mean") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py index 80d4ae72f21..e21711da12b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyRxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,13 +12,13 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -56,7 +31,8 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py index c615cade63e..c25aa7f680b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -45,14 +20,14 @@ class SensitivityUnitsOption(Enum): def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units "Units to use for the Rx Sensitivity." - " """ + " """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] return val @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr "Received signal power level at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ @@ -107,7 +82,7 @@ def rx_noise_figure(self) -> float: @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." "Value should be between -1000 and 1000." """ @@ -117,7 +92,7 @@ def receiver_sensitivity_(self) -> float: @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity "SNR or SINAD at the specified sensitivity level." "Value should be between -1000 and 1000." """ @@ -145,7 +120,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." "Value should be between -1000 and 1000." """ @@ -171,3 +146,4 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py index b12fa7a7f71..5feba9747ed 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlySamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,25 +12,25 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Min: + "Min: " Value should be greater than 1." - "Max: + "Max: " Value should be greater than 1." """ return self._get_table_data() class SamplingTypeOption(Enum): - SAMPLEALLCHANNELS = "Sample All Channels in Range(s)" - RANDOMSAMPLING = "Random Sampling" - UNIFORMSAMPLING = "Uniform Sampling" + SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" + RANDOM_SAMPLING = "Random Sampling" + UNIFORM_SAMPLING = "Uniform Sampling" @property def sampling_type(self) -> SamplingTypeOption: """Sampling Type "Sampling to apply to this configuration." - " """ + " """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] return val @@ -100,7 +75,7 @@ def seed(self) -> int: def total_tx_channels(self) -> int: """Total Tx Channels "Total number of transmit channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Tx Channels") return val @@ -108,7 +83,7 @@ def total_tx_channels(self) -> int: def total_rx_channels(self) -> int: """Total Rx Channels "Total number of receive channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Rx Channels") return val @@ -116,6 +91,7 @@ def total_rx_channels(self) -> int: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py index 386c413408a..81d70bcae59 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlySceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -63,14 +38,14 @@ def relative_position(self): return val class OrientationModeOption(Enum): - RPYDEG = "Roll-Pitch-Yaw" - AETDEG = "Az-El-Twist" + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" + AZ_EL_TWIST = "Az-El-Twist" @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -115,6 +90,7 @@ def box_color(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py index c63b5ce5fd2..46a97aca42a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -66,6 +41,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py index 7c3eb46e7b9..11617fde044 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlySolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -43,3 +18,4 @@ def enabled(self) -> bool: """ val = self._get_property("Enabled") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py index 3b3ef6682dd..28d94d8e679 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlySparameter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -52,7 +27,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -61,7 +36,7 @@ def radio_side_ports(self): """Radio Side Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ + " """ val = self._get_property("Radio Side Ports") return val @@ -70,7 +45,7 @@ def antenna_side_ports(self): """Antenna Side Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ + " """ val = self._get_property("Antenna Side Ports") return val @@ -78,6 +53,7 @@ def antenna_side_ports(self): def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py index 092723879f5..ff5ddc47da9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyTR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -52,32 +27,32 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val class TxPortOption(Enum): - _0 = "Port 1" - _1 = "Port 2" + PORT_1 = "Port 1" + PORT_2 = "Port 2" @property def tx_port(self) -> TxPortOption: """Tx Port "Specifies which port on the TR Switch is part of the Tx path.." - " """ + " """ val = self._get_property("Tx Port") val = self.TxPortOption[val] return val class CommonPortLocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + RADIO_SIDE = "Radio Side" + ANTENNA_SIDE = "Antenna Side" @property def common_port_location(self) -> CommonPortLocationOption: """Common Port Location "Defines the orientation of the tr switch.." - " """ + " """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] return val @@ -166,3 +141,4 @@ def higher_stop_band(self) -> float: val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py index f725b912490..e5dda4afa22 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyTerminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -52,32 +27,32 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val class TypeOption(Enum): - BYFILE = "By File" + BY_FILE = "By File" PARAMETRIC = "Parametric" @property def type(self) -> TypeOption: """Type "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val class PortLocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + RADIO_SIDE = "Radio Side" + ANTENNA_SIDE = "Antenna Side" @property def port_location(self) -> PortLocationOption: """Port Location "Defines the orientation of the terminator.." - " """ + " """ val = self._get_property("Port Location") val = self.PortLocationOption[val] return val @@ -95,6 +70,7 @@ def vswr(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py index b21d8fbd140..aaf393b8e59 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -66,7 +41,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -83,7 +58,7 @@ def filename(self) -> str: def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File "Coupling data generated by Savant and exported as a matched file." - " """ + " """ val = self._get_property("Savant Matched Coupling File") return val @@ -101,7 +76,7 @@ def port_antenna_assignment(self): """Port-Antenna Assignment "Maps each port in the coupling file to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Port-Antenna Assignment") return val @@ -109,6 +84,7 @@ def port_antenna_assignment(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py index 41ab8f0f22a..76d90afd89a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,7 +23,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -56,7 +31,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -82,7 +57,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -132,16 +107,16 @@ def pointing_error_loss(self) -> float: return val class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -235,3 +210,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py index b0ac3044a44..0028a9f37ae 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,24 +14,24 @@ def parent(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): " Value should be between -200 and 150." """ return self._get_table_data() class NoiseBehaviorOption(Enum): ABSOLUTE = "Absolute" - RELATIVEBANDWIDTH = "Relative (Bandwidth)" - RELATIVEOFFSET = "Relative (Offset)" - BROADBANDEQUATION = "Equation" + RELATIVE_BANDWIDTH = "Relative (Bandwidth)" + RELATIVE_OFFSET = "Relative (Offset)" + EQUATION = "Equation" @property def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior "Specifies the behavior of the parametric noise profile." - " """ + " """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] return val @@ -69,3 +44,4 @@ def use_log_linear_interpolation(self) -> bool: """ val = self._get_property("Use Log-Linear Interpolation") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py index 85f7ca097ce..c0d4c45d06e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -43,7 +18,8 @@ class HarmonicTableUnitsOption(Enum): def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units "Specifies the units for the Harmonics." - " """ + " """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py index 716e0cae37e..f5e467b20f2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyTxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -57,7 +32,7 @@ def source_file(self) -> str: def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -99,3 +74,4 @@ def exclude_harmonics_below_noise(self) -> bool: """ val = self._get_property("Exclude Harmonics Below Noise") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py index ae096ad8d6b..fdf31ea4ce4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,14 +11,14 @@ def parent(self): return self._parent class NarrowbandBehaviorOption(Enum): - ABSOLUTE = "Absolute Freqs and Power" - RELATIVEBANDWIDTH = "Relative Freqs and Attenuation" + ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" + RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" @property def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." - " """ + " """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] return val @@ -52,7 +27,8 @@ def narrowband_behavior(self) -> NarrowbandBehaviorOption: def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - " """ + " """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py index 831ce3be5eb..ea670ab4ff4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyTxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +14,7 @@ def parent(self): def output_voltage_peak(self) -> float: """Output Voltage Peak "Output High Voltage Level: maximum voltage of the digital signal." - " """ + " """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") return val @@ -101,7 +76,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ @@ -136,3 +111,4 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py index 74178e74ef5..632c7d4f3fd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,14 +11,14 @@ def parent(self): return self._parent class SpectrumTypeOption(Enum): - BOTH = "Narrowband & Broadband" - BROADBANDONLY = "Broadband Only" + NARROWBAND__BROADBAND = "Narrowband & Broadband" + BROADBAND_ONLY = "Broadband Only" @property def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type "Specifies EMI Margins to calculate." - " """ + " """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] return val @@ -56,7 +31,7 @@ class TxPowerOption(Enum): def tx_power(self) -> TxPowerOption: """Tx Power "Method used to specify the power." - " """ + " """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] return val @@ -109,7 +84,7 @@ class HarmonicTaperOption(Enum): def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper "Taper type used to set amplitude of harmonics." - " """ + " """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] return val @@ -160,21 +135,21 @@ def number_of_harmonics(self) -> int: return val @property - def _2nd_harmonic_level(self) -> float: - """2nd Harmonic Level + def second_harmonic_level(self) -> float: + """Second Harmonic Level "Amplitude (relative to the carrier power) of the 2nd harmonic." "Value should be between -1000 and 0." """ - val = self._get_property("2nd Harmonic Level") + val = self._get_property("Second Harmonic Level") return val @property - def _3rd_harmonic_level(self) -> float: - """3rd Harmonic Level + def third_harmonic_level(self) -> float: + """Third Harmonic Level "Amplitude (relative to the carrier power) of the 3rd harmonic." "Value should be between -1000 and 0." """ - val = self._get_property("3rd Harmonic Level") + val = self._get_property("Third Harmonic Level") return val @property @@ -225,7 +200,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ @@ -260,3 +235,4 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py index 46822f23973..bf400d8c923 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyTxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,13 +12,13 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -56,7 +31,8 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py index 9171d749229..f185652b9d2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,7 +23,7 @@ def enabled(self) -> bool: def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -56,7 +31,7 @@ def base_antenna(self) -> EmitNode: def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -82,32 +57,32 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val class PathLossTypeOption(Enum): - WALFISCHLOS = "LOS (Urban Canyon)" - WALFISCHNLOS = "NLOS" + LOS_URBAN_CANYON = "LOS (Urban Canyon)" + NLOS = "NLOS" @property def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type "Specify LOS vs NLOS for the Walfisch-Ikegami model." - " """ + " """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] return val class EnvironmentOption(Enum): - DENSEMETROAREA = "Dense Metro" - SMALLURBANORSUBURBAN = "Small/Medium City or Suburban" + DENSE_METRO = "Dense Metro" + SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" @property def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Walfisch model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -179,16 +154,16 @@ def pointing_error_loss(self) -> float: return val class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -282,3 +257,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py index 5507fb61f53..69347c43239 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ReadOnlyWaveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,13 +14,13 @@ def parent(self): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") return val class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" - SPREAD_SPECTRUM = "Spread Spectrum Clock" + SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" PRBS = "PRBS" PRBS_PERIODIC = "PRBS (Periodic)" IMPORTED = "Imported" @@ -54,7 +29,7 @@ class WaveformOption(Enum): def waveform(self) -> WaveformOption: """Waveform "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Waveform") val = self.WaveformOption[val] return val @@ -117,7 +92,7 @@ class SpreadingTypeOption(Enum): def spreading_type(self) -> SpreadingTypeOption: """Spreading Type "Type of spreading employed by the Spread Spectrum Clock." - " """ + " """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] return val @@ -143,7 +118,7 @@ def imported_spectrum(self) -> str: def raw_data_format(self) -> str: """Raw Data Format "Format of the imported raw data." - " """ + " """ val = self._get_property("Raw Data Format") return val @@ -201,7 +176,7 @@ class AlgorithmOption(Enum): def algorithm(self) -> AlgorithmOption: """Algorithm "Algorithm used to transform the imported time domain spectrum." - " """ + " """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] return val @@ -220,7 +195,7 @@ def start_time(self) -> float: def stop_time(self) -> float: """Stop Time "Final time of the imported time domain spectrum." - " """ + " """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") return val @@ -250,7 +225,7 @@ class WindowTypeOption(Enum): def window_type(self) -> WindowTypeOption: """Window Type "Windowing scheme used for importing time domain spectrum." - " """ + " """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] return val @@ -319,3 +294,4 @@ def delay_skew(self) -> float: val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py index 00ffc0f66a8..7a6006b4f88 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class ResultPlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,13 +17,13 @@ def export_model(self, file_name): def title(self) -> str: """Title "Enter title at the top of the plot, room will be made for it." - " """ + " """ val = self._get_property("Title") return val @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Title=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Title={value}"]) @property def title_font(self): @@ -61,7 +36,7 @@ def title_font(self): @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Title Font=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -74,7 +49,7 @@ def show_legend(self) -> bool: @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Show Legend=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Legend={value}"]) @property def legend_font(self): @@ -87,7 +62,7 @@ def legend_font(self): @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Legend Font=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Legend Font={value}"]) @property def show_emi_thresholds(self) -> bool: @@ -100,7 +75,7 @@ def show_emi_thresholds(self) -> bool: @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Show EMI Thresholds=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show EMI Thresholds={value}"]) @property def display_cad_overlay(self) -> bool: @@ -113,7 +88,7 @@ def display_cad_overlay(self) -> bool: @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Display CAD Overlay=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -126,19 +101,19 @@ def opacity(self) -> float: @opacity.setter def opacity(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Opacity=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset "Adjust vertical position of CAD model overlay." - " """ + " """ val = self._get_property("Vertical Offset") return val @vertical_offset.setter def vertical_offset(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Vertical Offset=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -151,7 +126,7 @@ def range_axis_rotation(self) -> float: @range_axis_rotation.setter def range_axis_rotation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Range Axis Rotation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -164,55 +139,55 @@ def lock_axes(self) -> bool: @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lock Axes=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min "Set lower extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Min") return val @x_axis_min.setter def x_axis_min(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["X-axis Min=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max "Set upper extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Max") return val @x_axis_max.setter def x_axis_max(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["X-axis Max=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min "Set lower extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Min") return val @y_axis_min.setter def y_axis_min(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Y-axis Min=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max "Set upper extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Max") return val @y_axis_max.setter def y_axis_max(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Y-axis Max=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -225,7 +200,7 @@ def y_axis_range(self) -> float: @y_axis_range.setter def y_axis_range(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Y-axis Range=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y-axis Range={value}"]) @property def max_major_ticks(self) -> int: @@ -238,7 +213,7 @@ def max_major_ticks(self) -> int: @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Major Ticks=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Major Ticks={value}"]) @property def max_minor_ticks(self) -> int: @@ -251,7 +226,7 @@ def max_minor_ticks(self) -> int: @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Minor Ticks=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Minor Ticks={value}"]) @property def max_major_ticks(self) -> int: @@ -264,7 +239,7 @@ def max_major_ticks(self) -> int: @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Major Ticks=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Major Ticks={value}"]) @property def max_minor_ticks(self) -> int: @@ -277,7 +252,7 @@ def max_minor_ticks(self) -> int: @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Minor Ticks=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Minor Ticks={value}"]) @property def axis_label_font(self): @@ -290,7 +265,7 @@ def axis_label_font(self): @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Axis Label Font=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -303,7 +278,7 @@ def axis_tick_label_font(self): @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Axis Tick Label Font=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -317,16 +292,14 @@ class MajorGridLineStyleOption(Enum): def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style "Select line style of major-tick grid lines." - " """ + " """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] return val @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Major Grid Line Style=" + value.value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Major Grid Line Style={value.value}"]) @property def major_grid_color(self): @@ -339,7 +312,7 @@ def major_grid_color(self): @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Major Grid Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -353,16 +326,14 @@ class MinorGridLineStyleOption(Enum): def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style "Select line style of minor-tick grid lines." - " """ + " """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] return val @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Minor Grid Line Style=" + value.value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Minor Grid Line Style={value.value}"]) @property def minor_grid_color(self): @@ -375,7 +346,7 @@ def minor_grid_color(self): @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Minor Grid Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Minor Grid Color={value}"]) @property def background_color(self): @@ -388,7 +359,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Background Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -400,16 +371,14 @@ class BBPowerforPlotsUnitOption(Enum): def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit "Units to use for plotting broadband power densities." - " """ + " """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] return val @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["BB Power for Plots Unit=" + value.value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"BB Power for Plots Unit={value.value}"]) @property def bb_power_bandwidth(self) -> float: @@ -422,9 +391,9 @@ def bb_power_bandwidth(self) -> float: return val @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value: float | str): + def bb_power_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["BB Power Bandwidth=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -437,4 +406,5 @@ def log_scale(self) -> bool: @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Log Scale=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Log Scale={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py index f18416dff4f..c4cd7c1d011 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class RfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -46,7 +21,7 @@ def enable_passive_noise(self) -> bool: @enable_passive_noise.setter def enable_passive_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable Passive Noise=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Passive Noise={value}"]) @property def enforce_thermal_noise_floor(self) -> bool: @@ -59,6 +34,5 @@ def enforce_thermal_noise_floor(self) -> bool: @enforce_thermal_noise_floor.setter def enforce_thermal_noise_floor(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Enforce Thermal Noise Floor=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enforce Thermal Noise Floor={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py index 61bc194ac21..ba57abf46d5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class RxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -65,7 +40,7 @@ def source_file(self) -> str: def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -79,14 +54,14 @@ class MeasurementModeOption(Enum): def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode "Defines the mode for the receiver measurement." - " """ + " """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] return val @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Measurement Mode=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Measurement Mode={value.value}"]) @property def sinad_threshold(self) -> float: @@ -99,7 +74,7 @@ def sinad_threshold(self) -> float: @sinad_threshold.setter def sinad_threshold(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["SINAD Threshold=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"SINAD Threshold={value}"]) @property def gps_cnr_threshold(self) -> float: @@ -112,7 +87,7 @@ def gps_cnr_threshold(self) -> float: @gps_cnr_threshold.setter def gps_cnr_threshold(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["GPS CNR Threshold=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"GPS CNR Threshold={value}"]) @property def ber_threshold(self) -> float: @@ -125,7 +100,7 @@ def ber_threshold(self) -> float: @ber_threshold.setter def ber_threshold(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["BER Threshold=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"BER Threshold={value}"]) @property def default_intended_power(self) -> bool: @@ -138,7 +113,7 @@ def default_intended_power(self) -> bool: @default_intended_power.setter def default_intended_power(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Default Intended Power=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Default Intended Power={value}"]) @property def intended_signal_power(self) -> float: @@ -151,7 +126,7 @@ def intended_signal_power(self) -> float: @intended_signal_power.setter def intended_signal_power(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Intended Signal Power=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Intended Signal Power={value}"]) @property def freq_deviation(self) -> float: @@ -164,9 +139,9 @@ def freq_deviation(self) -> float: return val @freq_deviation.setter - def freq_deviation(self, value: float | str): + def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Freq. Deviation=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Freq. Deviation={value}"]) @property def modulation_depth(self) -> float: @@ -179,7 +154,7 @@ def modulation_depth(self) -> float: @modulation_depth.setter def modulation_depth(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Modulation Depth=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Modulation Depth={value}"]) @property def measure_selectivity(self) -> bool: @@ -192,7 +167,7 @@ def measure_selectivity(self) -> bool: @measure_selectivity.setter def measure_selectivity(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Measure Selectivity=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Measure Selectivity={value}"]) @property def measure_mixer_products(self) -> bool: @@ -205,7 +180,7 @@ def measure_mixer_products(self) -> bool: @measure_mixer_products.setter def measure_mixer_products(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Measure Mixer Products=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Measure Mixer Products={value}"]) @property def max_rf_order(self) -> int: @@ -218,7 +193,7 @@ def max_rf_order(self) -> int: @max_rf_order.setter def max_rf_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max RF Order=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max RF Order={value}"]) @property def max_lo_order(self) -> int: @@ -231,7 +206,7 @@ def max_lo_order(self) -> int: @max_lo_order.setter def max_lo_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max LO Order=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max LO Order={value}"]) @property def include_if(self) -> bool: @@ -244,7 +219,7 @@ def include_if(self) -> bool: @include_if.setter def include_if(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Include IF=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include IF={value}"]) @property def measure_saturation(self) -> bool: @@ -257,7 +232,7 @@ def measure_saturation(self) -> bool: @measure_saturation.setter def measure_saturation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Measure Saturation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Measure Saturation={value}"]) @property def use_ams_limits(self) -> bool: @@ -270,7 +245,7 @@ def use_ams_limits(self) -> bool: @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Use AMS Limits=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -283,9 +258,9 @@ def start_frequency(self) -> float: return val @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Start Frequency=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -298,9 +273,9 @@ def stop_frequency(self) -> float: return val @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Stop Frequency=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop Frequency={value}"]) @property def samples(self) -> int: @@ -313,7 +288,7 @@ def samples(self) -> int: @samples.setter def samples(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Samples=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Samples={value}"]) @property def exclude_mixer_products_below_noise(self) -> bool: @@ -326,15 +301,14 @@ def exclude_mixer_products_below_noise(self) -> bool: @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Exclude Mixer Products Below Noise=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Exclude Mixer Products Below Noise={value}"]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py index 96a17d944b8..0c28429437f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class RxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +12,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -46,11 +21,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) class MixerProductTaperOption(Enum): CONSTANT = "Constant" @@ -61,16 +36,14 @@ class MixerProductTaperOption(Enum): def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper "Taper for setting amplitude of mixer products." - " """ + " """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] return val @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Mixer Product Taper=" + value.value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mixer Product Taper={value.value}"]) @property def mixer_product_susceptibility(self) -> float: @@ -83,9 +56,7 @@ def mixer_product_susceptibility(self) -> float: @mixer_product_susceptibility.setter def mixer_product_susceptibility(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Mixer Product Susceptibility=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mixer Product Susceptibility={value}"]) @property def spurious_rejection(self) -> float: @@ -98,7 +69,7 @@ def spurious_rejection(self) -> float: @spurious_rejection.setter def spurious_rejection(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Spurious Rejection=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Spurious Rejection={value}"]) @property def minimum_tuning_frequency(self) -> float: @@ -111,11 +82,9 @@ def minimum_tuning_frequency(self) -> float: return val @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value: float | str): + def minimum_tuning_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Minimum Tuning Frequency=" + f"{value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Minimum Tuning Frequency={value}"]) @property def maximum_tuning_frequency(self) -> float: @@ -128,11 +97,9 @@ def maximum_tuning_frequency(self) -> float: return val @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value: float | str): + def maximum_tuning_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Maximum Tuning Frequency=" + f"{value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Maximum Tuning Frequency={value}"]) @property def mixer_product_slope(self) -> float: @@ -145,7 +112,7 @@ def mixer_product_slope(self) -> float: @mixer_product_slope.setter def mixer_product_slope(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Mixer Product Slope=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mixer Product Slope={value}"]) @property def mixer_product_intercept(self) -> float: @@ -158,22 +125,22 @@ def mixer_product_intercept(self) -> float: @mixer_product_intercept.setter def mixer_product_intercept(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Mixer Product Intercept=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mixer Product Intercept={value}"]) @property - def _80_db_bandwidth(self) -> float: - """80 dB Bandwidth + def bandwidth_80_db(self) -> float: + """Bandwidth 80 dB "Bandwidth where Rx's susceptibility envelope is 80 dB above in-band susceptibility level." "Value should be greater than 1." """ - val = self._get_property("80 dB Bandwidth") + val = self._get_property("Bandwidth 80 dB") val = self._convert_from_internal_units(float(val), "Freq") return val - @_80_db_bandwidth.setter - def _80_db_bandwidth(self, value: float | str): + @bandwidth_80_db.setter + def bandwidth_80_db(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["80 dB Bandwidth=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bandwidth 80 dB={value}"]) @property def image_rejection(self) -> float: @@ -186,7 +153,7 @@ def image_rejection(self) -> float: @image_rejection.setter def image_rejection(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Image Rejection=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Image Rejection={value}"]) @property def maximum_rf_harmonic_order(self) -> int: @@ -199,9 +166,7 @@ def maximum_rf_harmonic_order(self) -> int: @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Maximum RF Harmonic Order=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Maximum RF Harmonic Order={value}"]) @property def maximum_lo_harmonic_order(self) -> int: @@ -214,73 +179,69 @@ def maximum_lo_harmonic_order(self) -> int: @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Maximum LO Harmonic Order=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Maximum LO Harmonic Order={value}"]) class MixingModeOption(Enum): - ABOVETUNEDFREQUENCY = "LO Above Tuned (RF) Frequency" - BELOWTUNEDFREQUENCY = "LO Below Tuned (RF) Frequency" - BOTHTUNEDFREQUENCIES = "LO Above/Below Tuned (RF) Frequency" + LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" + LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" + LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" @property def mixing_mode(self) -> MixingModeOption: """Mixing Mode "Specifies whether the IF frequency is > or < RF channel frequency." - " """ + " """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] return val @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Mixing Mode=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mixing Mode={value.value}"]) @property - def _1st_if_frequency(self): - """1st IF Frequency + def first_if_frequency(self): + """First IF Frequency "Intermediate frequency for Rx's 1st conversion stage." "Value should be a mathematical expression." """ - val = self._get_property("1st IF Frequency") + val = self._get_property("First IF Frequency") return val - @_1st_if_frequency.setter - def _1st_if_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["1st IF Frequency=" + value]) + @first_if_frequency.setter + def first_if_frequency(self, value): + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"First IF Frequency={value}"]) @property def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." - " """ + " """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @rf_transition_frequency.setter - def rf_transition_frequency(self, value: float | str): + def rf_transition_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["RF Transition Frequency=" + f"{value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"RF Transition Frequency={value}"]) class UseHighLOOption(Enum): - ABOVETRANSITION = "Above Transition Frequency" - BELOWTRANSITION = "Below Transition Frequency" + ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" + BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" @property def use_high_lo(self) -> UseHighLOOption: """Use High LO "Use High LO above/below the transition frequency." - " """ + " """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] return val @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Use High LO=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use High LO={value.value}"]) class MixerProductTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -290,13 +251,12 @@ class MixerProductTableUnitsOption(Enum): def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units "Specifies the units for the Mixer Products." - " """ + " """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] return val @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Mixer Product Table Units=" + value.value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mixer Product Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py index f1a12b5131b..274ebaf4d2a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class RxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +12,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -46,8 +21,9 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py index 3ed215135f1..236096b9290 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class RxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +12,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -46,11 +21,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) @property def use_arithmetic_mean(self) -> bool: @@ -63,4 +38,5 @@ def use_arithmetic_mean(self) -> bool: @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Use Arithmetic Mean=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use Arithmetic Mean={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py index 7e10d4aaab8..1f965396be6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class RxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +12,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -45,13 +20,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -63,11 +38,11 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) class SpurTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -77,11 +52,12 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Spur Table Units=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Spur Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py index d27cad2bb65..2650827924a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class RxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,11 +13,11 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) class SensitivityUnitsOption(Enum): DBM = "dBm" @@ -54,18 +29,18 @@ class SensitivityUnitsOption(Enum): def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units "Units to use for the Rx Sensitivity." - " """ + " """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] return val @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Sensitivity Units=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Sensitivity Units={value.value}"]) @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr "Received signal power level at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ @@ -74,7 +49,7 @@ def min_receive_signal_pwr_(self) -> float: @min_receive_signal_pwr_.setter def min_receive_signal_pwr_(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Min. Receive Signal Pwr =" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Min. Receive Signal Pwr ={value}"]) @property def snr_at_rx_signal_pwr(self) -> float: @@ -87,7 +62,7 @@ def snr_at_rx_signal_pwr(self) -> float: @snr_at_rx_signal_pwr.setter def snr_at_rx_signal_pwr(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["SNR at Rx Signal Pwr=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"SNR at Rx Signal Pwr={value}"]) @property def processing_gain(self) -> float: @@ -100,7 +75,7 @@ def processing_gain(self) -> float: @processing_gain.setter def processing_gain(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Processing Gain=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Processing Gain={value}"]) @property def apply_pg_to_narrowband_only(self) -> bool: @@ -113,9 +88,7 @@ def apply_pg_to_narrowband_only(self) -> bool: @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Apply PG to Narrowband Only=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Apply PG to Narrowband Only={value}"]) @property def saturation_level(self) -> float: @@ -128,9 +101,9 @@ def saturation_level(self) -> float: return val @saturation_level.setter - def saturation_level(self, value: float | str): + def saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Saturation Level=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Saturation Level={value}"]) @property def rx_noise_figure(self) -> float: @@ -143,11 +116,11 @@ def rx_noise_figure(self) -> float: @rx_noise_figure.setter def rx_noise_figure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rx Noise Figure=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rx Noise Figure={value}"]) @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." "Value should be between -1000 and 1000." """ @@ -156,15 +129,13 @@ def receiver_sensitivity_(self) -> float: return val @receiver_sensitivity_.setter - def receiver_sensitivity_(self, value: float | str): + def receiver_sensitivity_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Receiver Sensitivity =" + f"{value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Receiver Sensitivity ={value}"]) @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity "SNR or SINAD at the specified sensitivity level." "Value should be between -1000 and 1000." """ @@ -173,9 +144,7 @@ def snrsinad_at_sensitivity_(self) -> float: @snrsinad_at_sensitivity_.setter def snrsinad_at_sensitivity_(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["SNR/SINAD at Sensitivity =" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"SNR/SINAD at Sensitivity ={value}"]) @property def perform_rx_intermod_analysis(self) -> bool: @@ -188,9 +157,7 @@ def perform_rx_intermod_analysis(self) -> bool: @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Perform Rx Intermod Analysis=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Perform Rx Intermod Analysis={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -203,15 +170,13 @@ def amplifier_saturation_level(self) -> float: return val @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Amplifier Saturation Level=" + f"{value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." "Value should be between -1000 and 1000." """ @@ -220,11 +185,9 @@ def p1_db_point_ref_input_(self) -> float: return val @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["P1-dB Point, Ref. Input =" + f"{value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -237,9 +200,9 @@ def ip3_ref_input(self) -> float: return val @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["IP3, Ref. Input=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"IP3, Ref. Input={value}"]) @property def max_intermod_order(self) -> int: @@ -252,4 +215,5 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Intermod Order=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py index 73c26bfc68c..71ecfcd4033 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class SamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,11 +12,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Min: + "Min: " Value should be greater than 1." - "Max: + "Max: " Value should be greater than 1." """ return self._get_table_data() @@ -51,22 +26,22 @@ def table_data(self, value): self._set_table_data(value) class SamplingTypeOption(Enum): - SAMPLEALLCHANNELS = "Sample All Channels in Range(s)" - RANDOMSAMPLING = "Random Sampling" - UNIFORMSAMPLING = "Uniform Sampling" + SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" + RANDOM_SAMPLING = "Random Sampling" + UNIFORM_SAMPLING = "Uniform Sampling" @property def sampling_type(self) -> SamplingTypeOption: """Sampling Type "Sampling to apply to this configuration." - " """ + " """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] return val @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Sampling Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Sampling Type={value.value}"]) @property def specify_percentage(self) -> bool: @@ -79,7 +54,7 @@ def specify_percentage(self) -> bool: @specify_percentage.setter def specify_percentage(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Specify Percentage=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Specify Percentage={value}"]) @property def percentage_of_channels(self) -> float: @@ -92,7 +67,7 @@ def percentage_of_channels(self) -> float: @percentage_of_channels.setter def percentage_of_channels(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Percentage of Channels=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Percentage of Channels={value}"]) @property def max__channelsrangeband(self) -> int: @@ -105,9 +80,7 @@ def max__channelsrangeband(self) -> int: @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Max # Channels/Range/Band=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max # Channels/Range/Band={value}"]) @property def seed(self) -> int: @@ -120,13 +93,13 @@ def seed(self) -> int: @seed.setter def seed(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Seed=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Seed={value}"]) @property def total_tx_channels(self) -> int: """Total Tx Channels "Total number of transmit channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Tx Channels") return val @@ -134,7 +107,7 @@ def total_tx_channels(self) -> int: def total_rx_channels(self) -> int: """Total Rx Channels "Total number of receive channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Rx Channels") return val @@ -142,6 +115,7 @@ def total_rx_channels(self) -> int: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py index 52db51c4248..8074002dadd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class SceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -62,9 +37,7 @@ def show_relative_coordinates(self) -> bool: @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Show Relative Coordinates=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Relative Coordinates={value}"]) @property def position(self): @@ -77,7 +50,7 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Position=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position={value}"]) @property def relative_position(self): @@ -90,24 +63,24 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Relative Position=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Relative Position={value}"]) class OrientationModeOption(Enum): - RPYDEG = "Roll-Pitch-Yaw" - AETDEG = "Az-El-Twist" + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" + AZ_EL_TWIST = "Az-El-Twist" @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Orientation Mode=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -120,7 +93,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Orientation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation={value}"]) @property def relative_orientation(self): @@ -133,7 +106,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Relative Orientation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Relative Orientation={value}"]) @property def show_axes(self) -> bool: @@ -146,7 +119,7 @@ def show_axes(self) -> bool: @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Show Axes=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Axes={value}"]) @property def box_color(self): @@ -159,16 +132,17 @@ def box_color(self): @box_color.setter def box_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Box Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Box Color={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py index 39865de49bc..e1c1d40a583 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class SelectivityTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -51,13 +26,13 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) @property def visible(self) -> bool: @@ -70,7 +45,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -83,19 +58,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -109,14 +84,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -129,7 +104,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -142,7 +117,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -165,14 +140,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -185,7 +160,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -198,7 +173,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -211,7 +186,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -224,4 +199,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py index ccc80e4f2bf..14684b98585 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class SolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -46,7 +21,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -59,7 +34,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable Refinement=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -72,16 +47,17 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Adaptive Sampling=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Refinement Domain=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py index e6a7466dddb..8aae5221843 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class SolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -46,4 +21,5 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py deleted file mode 100644 index 08a840f8b03..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py +++ /dev/null @@ -1,115 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - - -class Sparameter(EmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = True - EmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def file(self) -> str: - """File - "S-Parameter file defining the component." - "Value should be a full file path." - """ - val = self._get_property("File") - return val - - @file.setter - def file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["File=" + value]) - - @property - def noise_temperature(self) -> float: - """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." - """ - val = self._get_property("Noise Temperature") - return val - - @noise_temperature.setter - def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Temperature=" + value]) - - @property - def notes(self) -> str: - """Notes - "Expand to view/edit notes stored with the project." - " """ - val = self._get_property("Notes") - return val - - @notes.setter - def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) - - @property - def radio_side_ports(self): - """Radio Side Ports - "Assigns the child port nodes to the multiplexers ports." - "A list of values." - " """ - val = self._get_property("Radio Side Ports") - return val - - @radio_side_ports.setter - def radio_side_ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Radio Side Ports=" + value]) - - @property - def antenna_side_ports(self): - """Antenna Side Ports - "Assigns the child port nodes to the multiplexers ports." - "A list of values." - " """ - val = self._get_property("Antenna Side Ports") - return val - - @antenna_side_ports.setter - def antenna_side_ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna Side Ports=" + value]) - - @property - def warnings(self) -> str: - """Warnings - "Warning(s) for this node." - " """ - val = self._get_property("Warnings") - return val diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py index b4624da4c3b..3d67442eab5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class SpurTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -51,19 +26,19 @@ def delete(self): def channel_frequency(self): """Channel Frequency "Select band channel frequency to display." - " """ + " """ val = self._get_property("Channel Frequency") return val @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Channel Frequency=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -72,13 +47,13 @@ def transmit_frequency(self) -> float: def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) @property def visible(self) -> bool: @@ -91,7 +66,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -104,19 +79,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -130,14 +105,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -150,7 +125,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -163,7 +138,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -186,14 +161,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -206,7 +181,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -219,7 +194,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -232,7 +207,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -245,4 +220,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py index f2cbb6e5f19..5daf1c35ba0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class TRSwitchTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,7 +33,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Input Port=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Input Port={value}"]) @property def output_port(self) -> int: @@ -71,19 +46,19 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Output Port=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,7 +71,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -109,19 +84,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -135,14 +110,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -155,7 +130,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -168,7 +143,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -191,14 +166,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -211,7 +186,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -224,7 +199,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -237,7 +212,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -250,4 +225,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index 01c5a9ced51..d8af2e6ebb7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class TR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -53,7 +28,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filename=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -66,55 +41,53 @@ def noise_temperature(self) -> float: @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Temperature=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) class TxPortOption(Enum): - _0 = "Port 1" - _1 = "Port 2" + PORT_1 = "Port 1" + PORT_2 = "Port 2" @property def tx_port(self) -> TxPortOption: """Tx Port "Specifies which port on the TR Switch is part of the Tx path.." - " """ + " """ val = self._get_property("Tx Port") val = self.TxPortOption[val] return val @tx_port.setter def tx_port(self, value: TxPortOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Tx Port=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tx Port={value.value}"]) class CommonPortLocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + RADIO_SIDE = "Radio Side" + ANTENNA_SIDE = "Antenna Side" @property def common_port_location(self) -> CommonPortLocationOption: """Common Port Location "Defines the orientation of the tr switch.." - " """ + " """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] return val @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Common Port Location=" + value.value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Common Port Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -127,7 +100,7 @@ def insertion_loss(self) -> float: @insertion_loss.setter def insertion_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Insertion Loss=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Insertion Loss={value}"]) @property def finite_isolation(self) -> bool: @@ -140,7 +113,7 @@ def finite_isolation(self) -> bool: @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Finite Isolation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -153,7 +126,7 @@ def isolation(self) -> float: @isolation.setter def isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Isolation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -166,7 +139,7 @@ def finite_bandwidth(self) -> bool: @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Finite Bandwidth=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -179,7 +152,7 @@ def out_of_band_attenuation(self) -> float: @out_of_band_attenuation.setter def out_of_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Out-of-band Attenuation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -192,9 +165,9 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Stop Band=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -207,9 +180,9 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Lower Cutoff=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -222,9 +195,9 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Cutoff=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -237,6 +210,7 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Higher Stop Band=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index cde034e4c02..55aed32241d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class Terminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -53,7 +28,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filename=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -66,53 +41,53 @@ def noise_temperature(self) -> float: @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Temperature=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) class TypeOption(Enum): - BYFILE = "By File" + BY_FILE = "By File" PARAMETRIC = "Parametric" @property def type(self) -> TypeOption: """Type "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) class PortLocationOption(Enum): - RADIOSIDE = "Radio Side" - ANTENNASIDE = "Antenna Side" + RADIO_SIDE = "Radio Side" + ANTENNA_SIDE = "Antenna Side" @property def port_location(self) -> PortLocationOption: """Port Location "Defines the orientation of the terminator.." - " """ + " """ val = self._get_property("Port Location") val = self.PortLocationOption[val] return val @port_location.setter def port_location(self, value: PortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Port Location=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port Location={value.value}"]) @property def vswr(self) -> float: @@ -125,12 +100,13 @@ def vswr(self) -> float: @vswr.setter def vswr(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["VSWR=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"VSWR={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py index 8ee88209acd..f21a5116b17 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class TestNoiseTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,7 +33,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Input Port=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Input Port={value}"]) @property def output_port(self) -> int: @@ -71,19 +46,19 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Output Port=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,7 +71,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -109,19 +84,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -135,14 +110,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -155,7 +130,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -168,7 +143,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -191,14 +166,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -211,7 +186,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -224,7 +199,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -237,7 +212,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -250,7 +225,7 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -263,9 +238,9 @@ def frequency_1(self) -> float: return val @frequency_1.setter - def frequency_1(self, value: float | str): + def frequency_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Frequency 1=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -278,9 +253,9 @@ def amplitude_1(self) -> float: return val @amplitude_1.setter - def amplitude_1(self, value: float | str): + def amplitude_1(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Amplitude 1=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -293,9 +268,9 @@ def bandwidth_1(self) -> float: return val @bandwidth_1.setter - def bandwidth_1(self, value: float | str): + def bandwidth_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Bandwidth 1=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -308,9 +283,9 @@ def frequency_2(self) -> float: return val @frequency_2.setter - def frequency_2(self, value: float | str): + def frequency_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Frequency 2=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -323,9 +298,9 @@ def amplitude_2(self) -> float: return val @amplitude_2.setter - def amplitude_2(self, value: float | str): + def amplitude_2(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Amplitude 2=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -338,9 +313,9 @@ def bandwidth_2(self) -> float: return val @bandwidth_2.setter - def bandwidth_2(self, value: float | str): + def bandwidth_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Bandwidth 2=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -353,4 +328,5 @@ def noise_level(self) -> float: @noise_level.setter def noise_level(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Level=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Level={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py index 8784f3bfd94..51d239917c9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py @@ -1,31 +1,7 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class TopLevelSimulation(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py index e63cbb03ec7..b93f2ee11e3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class TouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,7 +33,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -71,7 +46,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable Refinement=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -84,19 +59,19 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Adaptive Sampling=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Refinement Domain=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) @property def filename(self) -> str: @@ -109,13 +84,13 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Filename=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File "Coupling data generated by Savant and exported as a matched file." - " """ + " """ val = self._get_property("Savant Matched Coupling File") return val @@ -130,29 +105,30 @@ def enable_em_isolation(self) -> bool: @enable_em_isolation.setter def enable_em_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable EM Isolation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable EM Isolation={value}"]) @property def port_antenna_assignment(self): """Port-Antenna Assignment "Maps each port in the coupling file to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Port-Antenna Assignment") return val @port_antenna_assignment.setter def port_antenna_assignment(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Port-Antenna Assignment=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port-Antenna Assignment={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Notes=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py index 85451650259..7d679767569 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class TunableTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,7 +33,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Input Port=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Input Port={value}"]) @property def output_port(self) -> int: @@ -71,33 +46,33 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Output Port=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Output Port={value}"]) @property def frequency(self) -> float: """Frequency "Tunable filter center frequency." - " """ + " """ val = self._get_property("Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @frequency.setter - def frequency(self, value: float | str): + def frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Frequency=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Frequency={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) @property def visible(self) -> bool: @@ -110,7 +85,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -123,19 +98,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -149,14 +124,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -169,7 +144,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -182,7 +157,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -205,14 +180,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -225,7 +200,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -238,7 +213,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -251,7 +226,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -264,4 +239,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py index 5c1f80af07f..d75b4789f2f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,31 +33,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna A=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Antenna B=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -95,7 +70,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable Refinement=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -108,19 +83,19 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Adaptive Sampling=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Refinement Domain=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) @property def ground_reflection_coeff(self) -> float: @@ -133,7 +108,7 @@ def ground_reflection_coeff(self) -> float: @ground_reflection_coeff.setter def ground_reflection_coeff(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Ground Reflection Coeff.=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Ground Reflection Coeff.={value}"]) @property def pointspeak(self) -> int: @@ -146,7 +121,7 @@ def pointspeak(self) -> int: @pointspeak.setter def pointspeak(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Points/Peak=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Points/Peak={value}"]) @property def custom_fading_margin(self) -> float: @@ -159,7 +134,7 @@ def custom_fading_margin(self) -> float: @custom_fading_margin.setter def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Fading Margin=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -172,7 +147,7 @@ def polarization_mismatch(self) -> float: @polarization_mismatch.setter def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Mismatch=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -185,26 +160,26 @@ def pointing_error_loss(self) -> float: @pointing_error_loss.setter def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pointing Error Loss=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -217,7 +192,7 @@ def fading_availability(self) -> float: @fading_availability.setter def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Availability=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -230,7 +205,7 @@ def std_deviation(self) -> float: @std_deviation.setter def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Std Deviation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -243,7 +218,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Include Rain Attenuation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -256,7 +231,7 @@ def rain_availability(self) -> float: @rain_availability.setter def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Availability=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -269,7 +244,7 @@ def rain_rate(self) -> float: @rain_rate.setter def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Rate=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -282,7 +257,7 @@ def polarization_tilt_angle(self) -> float: @polarization_tilt_angle.setter def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Tilt Angle=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -295,9 +270,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Include Atmospheric Absorption=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -310,7 +283,7 @@ def temperature(self) -> float: @temperature.setter def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Temperature=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -323,7 +296,7 @@ def total_air_pressure(self) -> float: @total_air_pressure.setter def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Total Air Pressure=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -336,6 +309,5 @@ def water_vapor_concentration(self) -> float: @water_vapor_concentration.setter def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Water Vapor Concentration=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py index ced1e76c9fe..d66dc065d34 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class TwoToneTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,7 +33,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Input Port=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Input Port={value}"]) @property def output_port(self) -> int: @@ -71,19 +46,19 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Output Port=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Source=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,7 +71,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Visible=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -109,19 +84,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Legend=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Name=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -135,14 +110,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Style=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -155,7 +130,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -168,7 +143,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Line Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -191,14 +166,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -211,7 +186,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Size=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -224,7 +199,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Color=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -237,7 +212,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Line Width=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -250,7 +225,7 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Symbol Filled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -263,9 +238,9 @@ def frequency_1(self) -> float: return val @frequency_1.setter - def frequency_1(self, value: float | str): + def frequency_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Frequency 1=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -278,9 +253,9 @@ def amplitude_1(self) -> float: return val @amplitude_1.setter - def amplitude_1(self, value: float | str): + def amplitude_1(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Amplitude 1=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -293,9 +268,9 @@ def bandwidth_1(self) -> float: return val @bandwidth_1.setter - def bandwidth_1(self, value: float | str): + def bandwidth_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Bandwidth 1=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -308,9 +283,9 @@ def frequency_2(self) -> float: return val @frequency_2.setter - def frequency_2(self, value: float | str): + def frequency_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Frequency 2=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -323,9 +298,9 @@ def amplitude_2(self) -> float: return val @amplitude_2.setter - def amplitude_2(self, value: float | str): + def amplitude_2(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Amplitude 2=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -338,9 +313,9 @@ def bandwidth_2(self) -> float: return val @bandwidth_2.setter - def bandwidth_2(self, value: float | str): + def bandwidth_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Bandwidth 2=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -353,4 +328,5 @@ def noise_level(self) -> float: @noise_level.setter def noise_level(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Level=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Level={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py index 4a6d89e8efb..893f11ca147 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class TxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +12,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -47,9 +22,9 @@ def delete(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): " Value should be between -200 and 150." """ return self._get_table_data() @@ -61,30 +36,30 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) class NoiseBehaviorOption(Enum): ABSOLUTE = "Absolute" - RELATIVEBANDWIDTH = "Relative (Bandwidth)" - RELATIVEOFFSET = "Relative (Offset)" - BROADBANDEQUATION = "Equation" + RELATIVE_BANDWIDTH = "Relative (Bandwidth)" + RELATIVE_OFFSET = "Relative (Offset)" + EQUATION = "Equation" @property def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior "Specifies the behavior of the parametric noise profile." - " """ + " """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] return val @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Behavior=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Behavior={value.value}"]) @property def use_log_linear_interpolation(self) -> bool: @@ -97,6 +72,5 @@ def use_log_linear_interpolation(self) -> bool: @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Use Log-Linear Interpolation=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use Log-Linear Interpolation={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py index 449b1cbed1b..4f2264469ef 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class TxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +12,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -46,11 +21,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) class HarmonicTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -60,13 +35,12 @@ class HarmonicTableUnitsOption(Enum): def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units "Specifies the units for the Harmonics." - " """ + " """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] return val @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Harmonic Table Units=" + value.value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Harmonic Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py index f13313b3482..ce763bb84b0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class TxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -65,7 +40,7 @@ def source_file(self) -> str: def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -81,7 +56,7 @@ def use_ams_limits(self) -> bool: @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Use AMS Limits=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -94,9 +69,9 @@ def start_frequency(self) -> float: return val @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Start Frequency=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -109,9 +84,9 @@ def stop_frequency(self) -> float: return val @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Stop Frequency=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop Frequency={value}"]) @property def exclude_harmonics_below_noise(self) -> bool: @@ -124,15 +99,14 @@ def exclude_harmonics_below_noise(self) -> bool: @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Exclude Harmonics Below Noise=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Exclude Harmonics Below Noise={value}"]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py index ce31376dda3..589a0726875 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class TxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +12,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -46,43 +21,40 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) class NarrowbandBehaviorOption(Enum): - ABSOLUTE = "Absolute Freqs and Power" - RELATIVEBANDWIDTH = "Relative Freqs and Attenuation" + ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" + RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" @property def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." - " """ + " """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] return val @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Narrowband Behavior=" + value.value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Narrowband Behavior={value.value}"]) @property def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - " """ + " """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @measurement_frequency.setter - def measurement_frequency(self, value: float | str): + def measurement_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Measurement Frequency=" + f"{value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Measurement Frequency={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py index 4d8b8bc6c99..63329fdab7e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class TxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,25 +13,25 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) @property def output_voltage_peak(self) -> float: """Output Voltage Peak "Output High Voltage Level: maximum voltage of the digital signal." - " """ + " """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") return val @output_voltage_peak.setter - def output_voltage_peak(self, value: float | str): + def output_voltage_peak(self, value : float|str): value = self._convert_to_internal_units(value, "Voltage") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Output Voltage Peak=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Output Voltage Peak={value}"]) @property def include_phase_noise(self) -> bool: @@ -69,7 +44,7 @@ def include_phase_noise(self) -> bool: @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Include Phase Noise=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -82,7 +57,7 @@ def tx_broadband_noise(self) -> float: @tx_broadband_noise.setter def tx_broadband_noise(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Tx Broadband Noise=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tx Broadband Noise={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -95,9 +70,7 @@ def perform_tx_intermod_analysis(self) -> bool: @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Perform Tx Intermod Analysis=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Perform Tx Intermod Analysis={value}"]) @property def internal_amp_gain(self) -> float: @@ -110,7 +83,7 @@ def internal_amp_gain(self) -> float: @internal_amp_gain.setter def internal_amp_gain(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Internal Amp Gain=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -123,7 +96,7 @@ def noise_figure(self) -> float: @noise_figure.setter def noise_figure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Figure=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -136,15 +109,13 @@ def amplifier_saturation_level(self) -> float: return val @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Amplifier Saturation Level=" + f"{value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ @@ -153,11 +124,9 @@ def p1_db_point_ref_input_(self) -> float: return val @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["P1-dB Point, Ref. Input =" + f"{value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -170,9 +139,9 @@ def ip3_ref_input(self) -> float: return val @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["IP3, Ref. Input=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -185,7 +154,7 @@ def reverse_isolation(self) -> float: @reverse_isolation.setter def reverse_isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Reverse Isolation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -198,4 +167,5 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Intermod Order=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py index 251f079352d..6e02b3cb77e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class TxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,28 +13,28 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) class SpectrumTypeOption(Enum): - BOTH = "Narrowband & Broadband" - BROADBANDONLY = "Broadband Only" + NARROWBAND__BROADBAND = "Narrowband & Broadband" + BROADBAND_ONLY = "Broadband Only" @property def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type "Specifies EMI Margins to calculate." - " """ + " """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] return val @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Spectrum Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Spectrum Type={value.value}"]) class TxPowerOption(Enum): PEAK_POWER = "Peak Power" @@ -69,14 +44,14 @@ class TxPowerOption(Enum): def tx_power(self) -> TxPowerOption: """Tx Power "Method used to specify the power." - " """ + " """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] return val @tx_power.setter def tx_power(self, value: TxPowerOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Tx Power=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tx Power={value.value}"]) @property def peak_power(self) -> float: @@ -89,9 +64,9 @@ def peak_power(self) -> float: return val @peak_power.setter - def peak_power(self, value: float | str): + def peak_power(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Peak Power=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Peak Power={value}"]) @property def average_power(self) -> float: @@ -104,9 +79,9 @@ def average_power(self) -> float: return val @average_power.setter - def average_power(self, value: float | str): + def average_power(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Average Power=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Average Power={value}"]) @property def include_phase_noise(self) -> bool: @@ -119,7 +94,7 @@ def include_phase_noise(self) -> bool: @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Include Phase Noise=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -132,7 +107,7 @@ def tx_broadband_noise(self) -> float: @tx_broadband_noise.setter def tx_broadband_noise(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Tx Broadband Noise=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tx Broadband Noise={value}"]) class HarmonicTaperOption(Enum): CONSTANT = "Constant" @@ -144,14 +119,14 @@ class HarmonicTaperOption(Enum): def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper "Taper type used to set amplitude of harmonics." - " """ + " """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] return val @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Harmonic Taper=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Harmonic Taper={value.value}"]) @property def harmonic_amplitude(self) -> float: @@ -164,7 +139,7 @@ def harmonic_amplitude(self) -> float: @harmonic_amplitude.setter def harmonic_amplitude(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Harmonic Amplitude=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Harmonic Amplitude={value}"]) @property def harmonic_slope(self) -> float: @@ -177,7 +152,7 @@ def harmonic_slope(self) -> float: @harmonic_slope.setter def harmonic_slope(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Harmonic Slope=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Harmonic Slope={value}"]) @property def harmonic_intercept(self) -> float: @@ -190,7 +165,7 @@ def harmonic_intercept(self) -> float: @harmonic_intercept.setter def harmonic_intercept(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Harmonic Intercept=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Harmonic Intercept={value}"]) @property def enable_harmonic_bw_expansion(self) -> bool: @@ -203,9 +178,7 @@ def enable_harmonic_bw_expansion(self) -> bool: @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Enable Harmonic BW Expansion=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Harmonic BW Expansion={value}"]) @property def number_of_harmonics(self) -> int: @@ -218,33 +191,33 @@ def number_of_harmonics(self) -> int: @number_of_harmonics.setter def number_of_harmonics(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Number of Harmonics=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Number of Harmonics={value}"]) @property - def _2nd_harmonic_level(self) -> float: - """2nd Harmonic Level + def second_harmonic_level(self) -> float: + """Second Harmonic Level "Amplitude (relative to the carrier power) of the 2nd harmonic." "Value should be between -1000 and 0." """ - val = self._get_property("2nd Harmonic Level") + val = self._get_property("Second Harmonic Level") return val - @_2nd_harmonic_level.setter - def _2nd_harmonic_level(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["2nd Harmonic Level=" + value]) + @second_harmonic_level.setter + def second_harmonic_level(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Second Harmonic Level={value}"]) @property - def _3rd_harmonic_level(self) -> float: - """3rd Harmonic Level + def third_harmonic_level(self) -> float: + """Third Harmonic Level "Amplitude (relative to the carrier power) of the 3rd harmonic." "Value should be between -1000 and 0." """ - val = self._get_property("3rd Harmonic Level") + val = self._get_property("Third Harmonic Level") return val - @_3rd_harmonic_level.setter - def _3rd_harmonic_level(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["3rd Harmonic Level=" + value]) + @third_harmonic_level.setter + def third_harmonic_level(self, value) -> float: + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Third Harmonic Level={value}"]) @property def other_harmonic_levels(self) -> float: @@ -257,7 +230,7 @@ def other_harmonic_levels(self) -> float: @other_harmonic_levels.setter def other_harmonic_levels(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Other Harmonic Levels=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Other Harmonic Levels={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -270,9 +243,7 @@ def perform_tx_intermod_analysis(self) -> bool: @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Perform Tx Intermod Analysis=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Perform Tx Intermod Analysis={value}"]) @property def internal_amp_gain(self) -> float: @@ -285,7 +256,7 @@ def internal_amp_gain(self) -> float: @internal_amp_gain.setter def internal_amp_gain(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Internal Amp Gain=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -298,7 +269,7 @@ def noise_figure(self) -> float: @noise_figure.setter def noise_figure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Noise Figure=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -311,15 +282,13 @@ def amplifier_saturation_level(self) -> float: return val @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Amplifier Saturation Level=" + f"{value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ @@ -328,11 +297,9 @@ def p1_db_point_ref_input_(self) -> float: return val @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["P1-dB Point, Ref. Input =" + f"{value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -345,9 +312,9 @@ def ip3_ref_input(self) -> float: return val @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["IP3, Ref. Input=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -360,7 +327,7 @@ def reverse_isolation(self) -> float: @reverse_isolation.setter def reverse_isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Reverse Isolation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -373,4 +340,5 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Intermod Order=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py index 215b5d8ced1..0f0212bcb9f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class TxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +12,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -45,13 +20,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -63,11 +38,11 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) class SpurTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -77,11 +52,12 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Spur Table Units=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Spur Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py index 1097ece643f..db12bf8ac91 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class WalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,31 +33,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Base Antenna=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Mobile Antenna=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -95,7 +70,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Enable Refinement=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -108,53 +83,53 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Adaptive Sampling=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Refinement Domain=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) class PathLossTypeOption(Enum): - WALFISCHLOS = "LOS (Urban Canyon)" - WALFISCHNLOS = "NLOS" + LOS_URBAN_CANYON = "LOS (Urban Canyon)" + NLOS = "NLOS" @property def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type "Specify LOS vs NLOS for the Walfisch-Ikegami model." - " """ + " """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] return val @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Path Loss Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Path Loss Type={value.value}"]) class EnvironmentOption(Enum): - DENSEMETROAREA = "Dense Metro" - SMALLURBANORSUBURBAN = "Small/Medium City or Suburban" + DENSE_METRO = "Dense Metro" + SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" @property def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Walfisch model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Environment=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Environment={value.value}"]) @property def roof_height(self) -> float: @@ -167,9 +142,9 @@ def roof_height(self) -> float: return val @roof_height.setter - def roof_height(self, value: float | str): + def roof_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Roof Height=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Roof Height={value}"]) @property def distance_between_buildings(self) -> float: @@ -182,11 +157,9 @@ def distance_between_buildings(self) -> float: return val @distance_between_buildings.setter - def distance_between_buildings(self, value: float | str): + def distance_between_buildings(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Distance Between Buildings=" + f"{value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Distance Between Buildings={value}"]) @property def street_width(self) -> float: @@ -199,9 +172,9 @@ def street_width(self) -> float: return val @street_width.setter - def street_width(self, value: float | str): + def street_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Street Width=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Street Width={value}"]) @property def incidence_angle(self) -> float: @@ -214,7 +187,7 @@ def incidence_angle(self) -> float: @incidence_angle.setter def incidence_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Incidence Angle=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Incidence Angle={value}"]) @property def custom_fading_margin(self) -> float: @@ -227,7 +200,7 @@ def custom_fading_margin(self) -> float: @custom_fading_margin.setter def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Custom Fading Margin=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -240,7 +213,7 @@ def polarization_mismatch(self) -> float: @polarization_mismatch.setter def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Mismatch=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -253,26 +226,26 @@ def pointing_error_loss(self) -> float: @pointing_error_loss.setter def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Pointing Error Loss=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NOFADING = "None" - FASTFADINGONLY = "Fast Fading Only" - SHADOWINGONLY = "Shadowing Only" - SHADOWINGANDFASTFADING = "Fast Fading and Shadowing" + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -285,7 +258,7 @@ def fading_availability(self) -> float: @fading_availability.setter def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Fading Availability=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -298,7 +271,7 @@ def std_deviation(self) -> float: @std_deviation.setter def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Std Deviation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -311,7 +284,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Include Rain Attenuation=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -324,7 +297,7 @@ def rain_availability(self) -> float: @rain_availability.setter def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Availability=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -337,7 +310,7 @@ def rain_rate(self) -> float: @rain_rate.setter def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Rain Rate=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -350,7 +323,7 @@ def polarization_tilt_angle(self) -> float: @polarization_tilt_angle.setter def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Polarization Tilt Angle=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -363,9 +336,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Include Atmospheric Absorption=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -378,7 +349,7 @@ def temperature(self) -> float: @temperature.setter def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Temperature=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -391,7 +362,7 @@ def total_air_pressure(self) -> float: @total_air_pressure.setter def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Total Air Pressure=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -404,6 +375,5 @@ def water_vapor_concentration(self) -> float: @water_vapor_concentration.setter def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Water Vapor Concentration=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py index cc2c9e3e39d..af6cd2bfca1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import * - class Waveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,27 +13,27 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["enabled=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) @property def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") return val @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Port=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port={value}"]) class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" - SPREAD_SPECTRUM = "Spread Spectrum Clock" + SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" PRBS = "PRBS" PRBS_PERIODIC = "PRBS (Periodic)" IMPORTED = "Imported" @@ -67,14 +42,14 @@ class WaveformOption(Enum): def waveform(self) -> WaveformOption: """Waveform "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Waveform") val = self.WaveformOption[val] return val @waveform.setter def waveform(self, value: WaveformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Waveform=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Waveform={value.value}"]) @property def start_frequency(self) -> float: @@ -87,9 +62,9 @@ def start_frequency(self) -> float: return val @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Start Frequency=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -102,9 +77,9 @@ def stop_frequency(self) -> float: return val @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Stop Frequency=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -117,9 +92,9 @@ def channel_spacing(self) -> float: return val @channel_spacing.setter - def channel_spacing(self, value: float | str): + def channel_spacing(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Channel Spacing=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Channel Spacing={value}"]) @property def clock_duty_cycle(self) -> float: @@ -132,7 +107,7 @@ def clock_duty_cycle(self) -> float: @clock_duty_cycle.setter def clock_duty_cycle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Clock Duty Cycle=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Clock Duty Cycle={value}"]) @property def clock_risefall_time(self) -> float: @@ -145,11 +120,9 @@ def clock_risefall_time(self) -> float: return val @clock_risefall_time.setter - def clock_risefall_time(self, value: float | str): + def clock_risefall_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Clock Rise/Fall Time=" + f"{value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Clock Rise/Fall Time={value}"]) class SpreadingTypeOption(Enum): LOW_SPREAD = "Low Spread" @@ -160,14 +133,14 @@ class SpreadingTypeOption(Enum): def spreading_type(self) -> SpreadingTypeOption: """Spreading Type "Type of spreading employed by the Spread Spectrum Clock." - " """ + " """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] return val @spreading_type.setter def spreading_type(self, value: SpreadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Spreading Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Spreading Type={value.value}"]) @property def spread_percentage(self) -> float: @@ -180,7 +153,7 @@ def spread_percentage(self) -> float: @spread_percentage.setter def spread_percentage(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Spread Percentage=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Spread Percentage={value}"]) @property def imported_spectrum(self) -> str: @@ -192,13 +165,13 @@ def imported_spectrum(self) -> str: @imported_spectrum.setter def imported_spectrum(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Imported Spectrum=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Imported Spectrum={value}"]) @property def raw_data_format(self) -> str: """Raw Data Format "Format of the imported raw data." - " """ + " """ val = self._get_property("Raw Data Format") return val @@ -213,9 +186,9 @@ def system_impedance(self) -> float: return val @system_impedance.setter - def system_impedance(self, value: float | str): + def system_impedance(self, value : float|str): value = self._convert_to_internal_units(value, "Resistance") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["System Impedance=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"System Impedance={value}"]) @property def advanced_extraction_params(self) -> bool: @@ -228,9 +201,7 @@ def advanced_extraction_params(self) -> bool: @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, ["Advanced Extraction Params=" + value] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Advanced Extraction Params={value}"]) @property def nb_window_size(self) -> float: @@ -243,7 +214,7 @@ def nb_window_size(self) -> float: @nb_window_size.setter def nb_window_size(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["NB Window Size=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"NB Window Size={value}"]) @property def bb_smoothing_factor(self) -> float: @@ -256,7 +227,7 @@ def bb_smoothing_factor(self) -> float: @bb_smoothing_factor.setter def bb_smoothing_factor(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["BB Smoothing Factor=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"BB Smoothing Factor={value}"]) @property def nb_detector_threshold(self) -> float: @@ -269,7 +240,7 @@ def nb_detector_threshold(self) -> float: @nb_detector_threshold.setter def nb_detector_threshold(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["NB Detector Threshold=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"NB Detector Threshold={value}"]) class AlgorithmOption(Enum): FFT = "FFT" @@ -279,14 +250,14 @@ class AlgorithmOption(Enum): def algorithm(self) -> AlgorithmOption: """Algorithm "Algorithm used to transform the imported time domain spectrum." - " """ + " """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] return val @algorithm.setter def algorithm(self, value: AlgorithmOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Algorithm=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Algorithm={value.value}"]) @property def start_time(self) -> float: @@ -299,23 +270,23 @@ def start_time(self) -> float: return val @start_time.setter - def start_time(self, value: float | str): + def start_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Start Time=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Start Time={value}"]) @property def stop_time(self) -> float: """Stop Time "Final time of the imported time domain spectrum." - " """ + " """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") return val @stop_time.setter - def stop_time(self, value: float | str): + def stop_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Stop Time=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop Time={value}"]) @property def max_frequency(self) -> float: @@ -328,9 +299,9 @@ def max_frequency(self) -> float: return val @max_frequency.setter - def max_frequency(self, value: float | str): + def max_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Max Frequency=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Frequency={value}"]) class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" @@ -347,14 +318,14 @@ class WindowTypeOption(Enum): def window_type(self) -> WindowTypeOption: """Window Type "Windowing scheme used for importing time domain spectrum." - " """ + " """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] return val @window_type.setter def window_type(self, value: WindowTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Window Type=" + value.value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Window Type={value.value}"]) @property def kaiser_parameter(self) -> float: @@ -367,7 +338,7 @@ def kaiser_parameter(self) -> float: @kaiser_parameter.setter def kaiser_parameter(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Kaiser Parameter=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Kaiser Parameter={value}"]) @property def adjust_coherent_gain(self) -> bool: @@ -380,7 +351,7 @@ def adjust_coherent_gain(self) -> bool: @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Adjust Coherent Gain=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adjust Coherent Gain={value}"]) @property def data_rate(self) -> float: @@ -393,9 +364,9 @@ def data_rate(self) -> float: return val @data_rate.setter - def data_rate(self, value: float | str): + def data_rate(self, value : float|str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Data Rate=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Rate={value}"]) @property def num_of_bits(self) -> int: @@ -408,7 +379,7 @@ def num_of_bits(self) -> int: @num_of_bits.setter def num_of_bits(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Num of Bits=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Num of Bits={value}"]) @property def use_envelope(self) -> bool: @@ -421,7 +392,7 @@ def use_envelope(self) -> bool: @use_envelope.setter def use_envelope(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Use Envelope=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use Envelope={value}"]) @property def min_ptsnull(self) -> int: @@ -434,7 +405,7 @@ def min_ptsnull(self) -> int: @min_ptsnull.setter def min_ptsnull(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Min Pts/Null=" + value]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Min Pts/Null={value}"]) @property def delay_skew(self) -> float: @@ -447,6 +418,7 @@ def delay_skew(self) -> float: return val @delay_skew.setter - def delay_skew(self, value: float | str): + def delay_skew(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, ["Delay Skew=" + f"{value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Delay Skew={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index ca262ec53d4..bd6f8b1de0e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,27 +1,3 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from .Amplifier import Amplifier from .AntennaNode import AntennaNode from .AntennaPassband import AntennaPassband @@ -57,6 +33,38 @@ from .ProfileTraceNode import ProfileTraceNode from .PropagationLossCouplingNode import PropagationLossCouplingNode from .RadioNode import RadioNode +from .ResultPlotNode import ResultPlotNode +from .RfSystemGroup import RfSystemGroup +from .RxMeasNode import RxMeasNode +from .RxMixerProductNode import RxMixerProductNode +from .RxSaturationNode import RxSaturationNode +from .RxSelectivityNode import RxSelectivityNode +from .RxSpurNode import RxSpurNode +from .RxSusceptibilityProfNode import RxSusceptibilityProfNode +from .SamplingNode import SamplingNode +from .SceneGroupNode import SceneGroupNode +from .SelectivityTraceNode import SelectivityTraceNode +from .SolutionCouplingNode import SolutionCouplingNode +from .SolutionsNode import SolutionsNode +from .SpurTraceNode import SpurTraceNode +from .TR_Switch import TR_Switch +from .TRSwitchTraceNode import TRSwitchTraceNode +from .Terminator import Terminator +from .TestNoiseTraceNode import TestNoiseTraceNode +from .TopLevelSimulation import TopLevelSimulation +from .TouchstoneCouplingNode import TouchstoneCouplingNode +from .TunableTraceNode import TunableTraceNode +from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode +from .TwoToneTraceNode import TwoToneTraceNode +from .TxBbEmissionNode import TxBbEmissionNode +from .TxHarmonicNode import TxHarmonicNode +from .TxMeasNode import TxMeasNode +from .TxNbEmissionNode import TxNbEmissionNode +from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode +from .TxSpectralProfNode import TxSpectralProfNode +from .TxSpurNode import TxSpurNode +from .WalfischCouplingNode import WalfischCouplingNode +from .Waveform import Waveform from .ReadOnlyAmplifier import ReadOnlyAmplifier from .ReadOnlyAntennaNode import ReadOnlyAntennaNode from .ReadOnlyAntennaPassband import ReadOnlyAntennaPassband @@ -92,7 +100,6 @@ from .ReadOnlySceneGroupNode import ReadOnlySceneGroupNode from .ReadOnlySolutionCouplingNode import ReadOnlySolutionCouplingNode from .ReadOnlySolutionsNode import ReadOnlySolutionsNode -from .ReadOnlySparameter import ReadOnlySparameter from .ReadOnlyTR_Switch import ReadOnlyTR_Switch from .ReadOnlyTerminator import ReadOnlyTerminator from .ReadOnlyTouchstoneCouplingNode import ReadOnlyTouchstoneCouplingNode @@ -106,156 +113,121 @@ from .ReadOnlyTxSpurNode import ReadOnlyTxSpurNode from .ReadOnlyWalfischCouplingNode import ReadOnlyWalfischCouplingNode from .ReadOnlyWaveform import ReadOnlyWaveform -from .ResultPlotNode import ResultPlotNode -from .RfSystemGroup import RfSystemGroup -from .RxMeasNode import RxMeasNode -from .RxMixerProductNode import RxMixerProductNode -from .RxSaturationNode import RxSaturationNode -from .RxSelectivityNode import RxSelectivityNode -from .RxSpurNode import RxSpurNode -from .RxSusceptibilityProfNode import RxSusceptibilityProfNode -from .SamplingNode import SamplingNode -from .SceneGroupNode import SceneGroupNode -from .SelectivityTraceNode import SelectivityTraceNode -from .SolutionCouplingNode import SolutionCouplingNode -from .SolutionsNode import SolutionsNode -from .Sparameter import Sparameter -from .SpurTraceNode import SpurTraceNode -from .TRSwitchTraceNode import TRSwitchTraceNode -from .TR_Switch import TR_Switch -from .Terminator import Terminator -from .TestNoiseTraceNode import TestNoiseTraceNode -from .TopLevelSimulation import TopLevelSimulation -from .TouchstoneCouplingNode import TouchstoneCouplingNode -from .TunableTraceNode import TunableTraceNode -from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode -from .TwoToneTraceNode import TwoToneTraceNode -from .TxBbEmissionNode import TxBbEmissionNode -from .TxHarmonicNode import TxHarmonicNode -from .TxMeasNode import TxMeasNode -from .TxNbEmissionNode import TxNbEmissionNode -from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode -from .TxSpectralProfNode import TxSpectralProfNode -from .TxSpurNode import TxSpurNode -from .WalfischCouplingNode import WalfischCouplingNode -from .Waveform import Waveform __all__ = [ - "Amplifier", - "AntennaNode", - "AntennaPassband", - "Band", - "BandFolder", - "BandTraceNode", - "CADNode", - "Cable", - "CategoriesViewNode", - "Circulator", - "CouplingLinkNode", - "CouplingTraceNode", - "CouplingsNode", - "CustomCouplingNode", - "EmiPlotMarkerNode", - "EmitSceneNode", - "ErcegCouplingNode", - "Filter", - "FiveGChannelModel", - "HataCouplingNode", - "IndoorPropagationCouplingNode", - "Isolator", - "LogDistanceCouplingNode", - "MPlexBandTraceNode", - "Multiplexer", - "MultiplexerBand", - "OutboardTraceNode", - "ParametricCouplingTraceNode", - "PlotMarkerNode", - "PlotNode", - "PowerDivider", - "PowerTraceNode", - "ProfileTraceNode", - "PropagationLossCouplingNode", - "RadioNode", - "ResultPlotNode", - "RfSystemGroup", - "RxMeasNode", - "RxMixerProductNode", - "RxSaturationNode", - "RxSelectivityNode", - "RxSpurNode", - "RxSusceptibilityProfNode", - "SamplingNode", - "SceneGroupNode", - "SelectivityTraceNode", - "SolutionCouplingNode", - "SolutionsNode", - "Sparameter", - "SpurTraceNode", - "TR_Switch", - "TRSwitchTraceNode", - "Terminator", - "TestNoiseTraceNode", - "TopLevelSimulation", - "TouchstoneCouplingNode", - "TunableTraceNode", - "TwoRayPathLossCouplingNode", - "TwoToneTraceNode", - "TxBbEmissionNode", - "TxHarmonicNode", - "TxMeasNode", - "TxNbEmissionNode", - "TxSpectralProfEmitterNode", - "TxSpectralProfNode", - "TxSpurNode", - "WalfischCouplingNode", - "Waveform", - "ReadOnlyAmplifier", - "ReadOnlyAntennaNode", - "ReadOnlyAntennaPassband", - "ReadOnlyBand", - "ReadOnlyBandFolder", - "ReadOnlyCADNode", - "ReadOnlyCable", - "ReadOnlyCirculator", - "ReadOnlyCouplingLinkNode", - "ReadOnlyCouplingsNode", - "ReadOnlyCustomCouplingNode", - "ReadOnlyEmitSceneNode", - "ReadOnlyErcegCouplingNode", - "ReadOnlyFilter", - "ReadOnlyFiveGChannelModel", - "ReadOnlyHataCouplingNode", - "ReadOnlyIndoorPropagationCouplingNode", - "ReadOnlyIsolator", - "ReadOnlyLogDistanceCouplingNode", - "ReadOnlyMultiplexer", - "ReadOnlyMultiplexerBand", - "ReadOnlyPowerDivider", - "ReadOnlyPropagationLossCouplingNode", - "ReadOnlyRadioNode", - "ReadOnlyRfSystemGroup", - "ReadOnlyRxMeasNode", - "ReadOnlyRxMixerProductNode", - "ReadOnlyRxSaturationNode", - "ReadOnlyRxSelectivityNode", - "ReadOnlyRxSpurNode", - "ReadOnlyRxSusceptibilityProfNode", - "ReadOnlySamplingNode", - "ReadOnlySceneGroupNode", - "ReadOnlySolutionCouplingNode", - "ReadOnlySolutionsNode", - "ReadOnlySparameter", - "ReadOnlyTR_Switch", - "ReadOnlyTerminator", - "ReadOnlyTouchstoneCouplingNode", - "ReadOnlyTwoRayPathLossCouplingNode", - "ReadOnlyTxBbEmissionNode", - "ReadOnlyTxHarmonicNode", - "ReadOnlyTxMeasNode", - "ReadOnlyTxNbEmissionNode", - "ReadOnlyTxSpectralProfEmitterNode", - "ReadOnlyTxSpectralProfNode", - "ReadOnlyTxSpurNode", - "ReadOnlyWalfischCouplingNode", - "ReadOnlyWaveform", + 'Amplifier', + 'AntennaNode', + 'AntennaPassband', + 'Band', + 'BandFolder', + 'BandTraceNode', + 'CADNode', + 'Cable', + 'CategoriesViewNode', + 'Circulator', + 'CouplingLinkNode', + 'CouplingTraceNode', + 'CouplingsNode', + 'CustomCouplingNode', + 'EmiPlotMarkerNode', + 'EmitSceneNode', + 'ErcegCouplingNode', + 'Filter', + 'FiveGChannelModel', + 'HataCouplingNode', + 'IndoorPropagationCouplingNode', + 'Isolator', + 'LogDistanceCouplingNode', + 'MPlexBandTraceNode', + 'Multiplexer', + 'MultiplexerBand', + 'OutboardTraceNode', + 'ParametricCouplingTraceNode', + 'PlotMarkerNode', + 'PlotNode', + 'PowerDivider', + 'PowerTraceNode', + 'ProfileTraceNode', + 'PropagationLossCouplingNode', + 'RadioNode', + 'ResultPlotNode', + 'RfSystemGroup', + 'RxMeasNode', + 'RxMixerProductNode', + 'RxSaturationNode', + 'RxSelectivityNode', + 'RxSpurNode', + 'RxSusceptibilityProfNode', + 'SamplingNode', + 'SceneGroupNode', + 'SelectivityTraceNode', + 'SolutionCouplingNode', + 'SolutionsNode', + 'SpurTraceNode', + 'TR_Switch', + 'TRSwitchTraceNode', + 'Terminator', + 'TestNoiseTraceNode', + 'TopLevelSimulation', + 'TouchstoneCouplingNode', + 'TunableTraceNode', + 'TwoRayPathLossCouplingNode', + 'TwoToneTraceNode', + 'TxBbEmissionNode', + 'TxHarmonicNode', + 'TxMeasNode', + 'TxNbEmissionNode', + 'TxSpectralProfEmitterNode', + 'TxSpectralProfNode', + 'TxSpurNode', + 'WalfischCouplingNode', + 'Waveform', + 'ReadOnlyAmplifier', + 'ReadOnlyAntennaNode', + 'ReadOnlyAntennaPassband', + 'ReadOnlyBand', + 'ReadOnlyBandFolder', + 'ReadOnlyCADNode', + 'ReadOnlyCable', + 'ReadOnlyCirculator', + 'ReadOnlyCouplingLinkNode', + 'ReadOnlyCouplingsNode', + 'ReadOnlyCustomCouplingNode', + 'ReadOnlyEmitSceneNode', + 'ReadOnlyErcegCouplingNode', + 'ReadOnlyFilter', + 'ReadOnlyFiveGChannelModel', + 'ReadOnlyHataCouplingNode', + 'ReadOnlyIndoorPropagationCouplingNode', + 'ReadOnlyIsolator', + 'ReadOnlyLogDistanceCouplingNode', + 'ReadOnlyMultiplexer', + 'ReadOnlyMultiplexerBand', + 'ReadOnlyPowerDivider', + 'ReadOnlyPropagationLossCouplingNode', + 'ReadOnlyRadioNode', + 'ReadOnlyRfSystemGroup', + 'ReadOnlyRxMeasNode', + 'ReadOnlyRxMixerProductNode', + 'ReadOnlyRxSaturationNode', + 'ReadOnlyRxSelectivityNode', + 'ReadOnlyRxSpurNode', + 'ReadOnlyRxSusceptibilityProfNode', + 'ReadOnlySamplingNode', + 'ReadOnlySceneGroupNode', + 'ReadOnlySolutionCouplingNode', + 'ReadOnlySolutionsNode', + 'ReadOnlyTR_Switch', + 'ReadOnlyTerminator', + 'ReadOnlyTouchstoneCouplingNode', + 'ReadOnlyTwoRayPathLossCouplingNode', + 'ReadOnlyTxBbEmissionNode', + 'ReadOnlyTxHarmonicNode', + 'ReadOnlyTxMeasNode', + 'ReadOnlyTxNbEmissionNode', + 'ReadOnlyTxSpectralProfEmitterNode', + 'ReadOnlyTxSpectralProfNode', + 'ReadOnlyTxSpurNode', + 'ReadOnlyWalfischCouplingNode', + 'ReadOnlyWaveform', ] From 95189be1d4ca5994991632ca5167fae37ac324a3 Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Mon, 21 Apr 2025 15:41:39 -0500 Subject: [PATCH 22/86] Add dynamic generated node test --- .../aedt/core/emit_core/nodes/EmitNode.py | 4 +- tests/system/solvers/test_26_emit.py | 173 ++++-------------- 2 files changed, 39 insertions(+), 138 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py index 8a4e03fc53e..e1f5657e79f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py @@ -213,7 +213,7 @@ def _convert_from_internal_units(self, value: float, unit_system: str) -> float: return converted_value def _delete(self): - if self._is_component(): + if self.get_is_component(): self._oRevisionData.DeleteEmitComponent(self._result_id, self._node_id) else: self._oRevisionData.DeleteEmitNode(self._result_id, self._node_id) @@ -232,7 +232,7 @@ def _import(self, file_path, import_type): def _export_model(self, file_path): self._oRevisionData.EmitExportModel(self._result_id, self._node_id, file_path) - def _is_component(self): + def get_is_component(self): return self._is_component def _get_child_node_id(self, child_name): diff --git a/tests/system/solvers/test_26_emit.py b/tests/system/solvers/test_26_emit.py index b5aa28973b6..21ed92151fb 100644 --- a/tests/system/solvers/test_26_emit.py +++ b/tests/system/solvers/test_26_emit.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates. # SPDX-License-Identifier: MIT # # @@ -1305,7 +1305,7 @@ def count_license_actions(license_file_path): def test_25_emit_nodes(self, add_app): self.aedtapp = add_app(project_name="interference", application=Emit, subfolder=TEST_SUBFOLDER) - # Generate a revision + # Generate and run a revision results = self.aedtapp.results revision = self.aedtapp.results.analyze() @@ -1314,23 +1314,16 @@ def test_25_emit_nodes(self, add_app): domain = results.interaction_domain() interaction = revision.run(domain) - # TODO(bkaylor): get_all_nodes() takes forever! nodes = revision.get_all_nodes() assert len(nodes) > 0 + # Test various properties of the Scene node scene_node = revision.get_scene_node() assert scene_node assert scene_node.valid assert scene_node.name - # TODO(bkaylor): iemit.exe crashes on rename currently - old_name = scene_node.name - new_name = scene_node._rename("New Name") - assert (new_name != old_name) and (new_name == scene_node.name) - - # TODO(bkaylor): Try to rename to a special character - assert scene_node.properties assert len(scene_node.allowed_child_types) > 0 @@ -1362,6 +1355,10 @@ def test_all_members(node, results, results_of_get_props): results[key] = (Result.SKIPPED, 'Skipping private member') continue + if member.startswith('delete'): + results[key] = (Result.SKIPPED, 'Skipping delete method') + continue + class_attr = getattr(node.__class__, member) if isinstance(class_attr, property): # Member is a property @@ -1406,8 +1403,7 @@ def test_all_members(node, results, results_of_get_props): # If value is None here, we failed to find a suitable value to call the setter with. # Just call the getter, and put that in the results. - # TODO(bkaylor): Should we make any note of this? - if value: + if value is not None: class_attr.fset(node, value) result = class_attr.fget(node) @@ -1421,20 +1417,6 @@ def test_all_members(node, results, results_of_get_props): result = class_attr.fget(node) results[key] = (Result.VALUE, result) results_of_get_props[class_attr] = result - - # if class_attr.fget is not None: - # # Call the getter - # result = class_attr.fget(node) - # results[key] = (Result.VALUE, result) - - # elif class_attr.fset is not None: - # setter = class_attr.fset - # signature = inspect.signature(setter) - # # Get the docstring for this setter - # docstring = setter.__doc__ - # # position_of_minmax = docstring.find("Value of property") - # results[key] = (Result.NEEDS_PARAMETERS, f'Set property requires {len(signature.parameters)} arguments: {signature.parameters}' \ - # f', docstring: {docstring}') else: attr = getattr(node, member) @@ -1456,14 +1438,14 @@ def test_nodes_from_top_level(nodes, nodes_tested, results, results_of_get_props for node in nodes: node_type = type(node).__name__ if node_type not in nodes_tested: - nodes_tested.append(type(node).__name__) + nodes_tested.append(node_type) # Add any untested child nodes - # TODO(bkaylor): This method of adding untested child nodes still leaves a lot of holes. Figure out why. - # We're only testing about 20 different nodes by doing this. for child_type in node.allowed_child_types: - if child_type not in nodes_tested: + # Skip any nodes that end in ..., as they open a dialog + if child_type not in nodes_tested and not child_type.endswith('...'): node._add_child_node(child_type) + print(f'Added a {child_type} node under a {node_type} node.') nodes.extend(node.children) @@ -1471,45 +1453,39 @@ def test_nodes_from_top_level(nodes, nodes_tested, results, results_of_get_props self.aedtapp = add_app(project_name="interference", application=Emit, subfolder=TEST_SUBFOLDER) - # Generate a revision + # Add some components + self.aedtapp.modeler.components.create_component("Antenna", "TestAntenna") + self.aedtapp.modeler.components.create_component("New Emitter", "TestEmitter") + self.aedtapp.modeler.components.create_component("Amplifier", "TestAmplifier") + self.aedtapp.modeler.components.create_component("Cable", "TestCable") + self.aedtapp.modeler.components.create_component("Circulator", "TestCirculator") + self.aedtapp.modeler.components.create_component("Divider", "TestDivider") + self.aedtapp.modeler.components.create_component("Band Pass", "TestBPF") + self.aedtapp.modeler.components.create_component("Band Stop", "TestBSF") + self.aedtapp.modeler.components.create_component("File-based", "TestFilterByFile") + self.aedtapp.modeler.components.create_component("High Pass", "TestHPF") + self.aedtapp.modeler.components.create_component("Low Pass", "TestLPF") + self.aedtapp.modeler.components.create_component("Tunable Band Pass", "TestTBPF") + self.aedtapp.modeler.components.create_component("Tunable Band Stop", "TestTBSF") + self.aedtapp.modeler.components.create_component("Isolator", "TestIsolator") + self.aedtapp.modeler.components.create_component("TR Switch", "TestSwitch") + self.aedtapp.modeler.components.create_component("Terminator", "TestTerminator") + self.aedtapp.modeler.components.create_component("3 Port", "Test3port") + + # Generate and run a revision results = self.aedtapp.results revision = self.aedtapp.results.analyze() self.aedtapp.set_units("Frequency", "GHz") domain = results.interaction_domain() - interaction = revision.run(domain) - - # TODO(bkaylor): Create defects for any exceptions coming back from members. - - # TODO(bkaylor): Generate coverage report. + revision.run(domain) results = {} results_of_get_props = {} nodes_tested = [] - scene_node = revision.get_scene_node() - couplings_node = revision.get_coupling_data_node() - test_nodes_from_top_level([scene_node, couplings_node], nodes_tested, results, results_of_get_props) - - rf_systems_node = revision.get_rf_systems_node() - simulation_node = revision.get_simulation_node() - test_nodes_from_top_level([rf_systems_node, simulation_node], nodes_tested, results, results_of_get_props) - - result_plot_node = revision.get_result_plot_node() - result_categorization_node = revision.get_result_categorization_node() - project_tree_node = revision.get_project_tree_node() - properties_node = revision.get_properties_node() - antenna_coupling_matrix_node = revision.get_antenna_coupling_matrix_node() - scenario_matrix_node = revision.get_scenario_matrix_node() - scenario_details_node = revision.get_scenario_details_node() - interaction_diagram_node = revision.get_interaction_diagram_node() - test_nodes_from_top_level([ - result_plot_node, result_categorization_node, - project_tree_node, properties_node, - antenna_coupling_matrix_node, scenario_matrix_node, - scenario_details_node, interaction_diagram_node - ], nodes_tested, results, results_of_get_props) + test_nodes_from_top_level(revision.get_all_nodes(), nodes_tested, results, results_of_get_props) # Categorize results from all node member calls results_by_type = { @@ -1522,83 +1498,8 @@ def test_nodes_from_top_level(nodes, nodes_tested, results, results_of_get_props for key, value in results.items(): results_by_type[value[0]][key] = value[1] - print(f'Skipped: {len(results_by_type[Result.SKIPPED])}') - print(f'Value: {len(results_by_type[Result.VALUE])}') - print(f'Exception: {len(results_by_type[Result.EXCEPTION])}') - print(f'Needs Parameters: {len(results_by_type[Result.NEEDS_PARAMETERS])}') - - exceptions = results_by_type[Result.EXCEPTION].items() - - # TODO(bkaylor): Filter out any exceptions we are ignoring for now. - + # Verify we tested most of the generated nodes all_nodes = generated.__all__ - print(f'Tested {len(nodes_tested)/len(all_nodes)}% ({len(nodes_tested)}/{len(all_nodes)})') - nodes_untested = [node for node in all_nodes if node not in nodes_tested] - - # Save and close the project - self.aedtapp.save_project() - project_path = self.aedtapp.project_file - self.aedtapp.close_project() - - # Reload the project - self.aedtapp.load_project(project_path) - - # Verify all get properties have the same values - results = self.aedtapp.results - revision = self.aedtapp.results.analyze() # TODO(bkaylor): iemit.exe crashes here, when _load_revision is called. Project path is confirmed valid. - - self.aedtapp.set_units("Frequency", "GHz") - - domain = results.interaction_domain() - interaction = revision.run(domain) - - nodes = revision.get_all_nodes() - - bad_comparison_results = {} - for node in nodes: - properties = {} - members = dir(node) - - for member in members: - if member.startswith('_'): - continue - - class_attr = getattr(node.__class__, member) - - if isinstance(class_attr, property): - properties[member] = class_attr - - for name, prop in properties.items(): - has_fget = prop.fget is not None - - if has_fget: - result = prop.fget(node) - previous_result = results_of_get_props[prop] - - comparison_result = type(result) == type(previous_result) - if comparison_result: - if isinstance(result, (int, float, str, bool, bytes, Enum)): - comparison_result = result == previous_result - else: - continue - - if not comparison_result: - key = f'{node.__class__.__name__}.{name}' - bad_comparison_results.append(key) - - # Assert 3 things- - # 1. No exceptions were returned from any called node member. - # 2. All nodes were tested. - # 3. All get properties have the same value after saving and reopening the project. - - issues = [] - for exception in exceptions: - issues.append(f'Member invocation caused exception: {exception}.') - - for untested_node in nodes_untested: - issues.append(f'Node {untested_node} was untested.') - - for name in bad_comparison_results: - issues.append(f'Property {name} did not match after project save and reopen.') + nodes_untested = [node for node in all_nodes if (node not in nodes_tested) and (not node.startswith('ReadOnly'))] - assert issues == [] + assert (len(nodes_tested) > len(nodes_untested)) From 5fba8f8c08550f092c13c8db63cddf1c860eaaab Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 22 Apr 2025 15:38:11 +0000 Subject: [PATCH 23/86] CHORE: Auto fixes from pre-commit hooks --- .../emit_core/nodes/generated/Amplifier.py | 68 ++-- .../emit_core/nodes/generated/AntennaNode.py | 198 ++++++----- .../nodes/generated/AntennaPassband.py | 54 ++- .../core/emit_core/nodes/generated/Band.py | 160 +++++---- .../emit_core/nodes/generated/BandFolder.py | 26 +- .../nodes/generated/BandTraceNode.py | 68 ++-- .../core/emit_core/nodes/generated/CADNode.py | 142 ++++---- .../core/emit_core/nodes/generated/Cable.py | 54 ++- .../nodes/generated/CategoriesViewNode.py | 26 +- .../emit_core/nodes/generated/Circulator.py | 70 ++-- .../nodes/generated/CouplingLinkNode.py | 32 +- .../nodes/generated/CouplingTraceNode.py | 82 +++-- .../nodes/generated/CouplingsNode.py | 34 +- .../nodes/generated/CustomCouplingNode.py | 52 ++- .../nodes/generated/EmiPlotMarkerNode.py | 86 +++-- .../nodes/generated/EmitSceneNode.py | 42 ++- .../nodes/generated/ErcegCouplingNode.py | 82 +++-- .../core/emit_core/nodes/generated/Filter.py | 116 ++++--- .../nodes/generated/FiveGChannelModel.py | 90 +++-- .../nodes/generated/HataCouplingNode.py | 82 +++-- .../IndoorPropagationCouplingNode.py | 92 +++-- .../emit_core/nodes/generated/Isolator.py | 70 ++-- .../generated/LogDistanceCouplingNode.py | 84 +++-- .../nodes/generated/MPlexBandTraceNode.py | 62 ++-- .../emit_core/nodes/generated/Multiplexer.py | 50 ++- .../nodes/generated/MultiplexerBand.py | 70 ++-- .../nodes/generated/OutboardTraceNode.py | 62 ++-- .../generated/ParametricCouplingTraceNode.py | 66 ++-- .../nodes/generated/PlotMarkerNode.py | 88 +++-- .../emit_core/nodes/generated/PlotNode.py | 108 +++--- .../emit_core/nodes/generated/PowerDivider.py | 72 ++-- .../nodes/generated/PowerTraceNode.py | 62 ++-- .../nodes/generated/ProfileTraceNode.py | 58 +++- .../generated/PropagationLossCouplingNode.py | 78 +++-- .../emit_core/nodes/generated/RadioNode.py | 38 ++- .../nodes/generated/ReadOnlyAmplifier.py | 30 +- .../nodes/generated/ReadOnlyAntennaNode.py | 70 ++-- .../generated/ReadOnlyAntennaPassband.py | 28 +- .../emit_core/nodes/generated/ReadOnlyBand.py | 48 ++- .../nodes/generated/ReadOnlyBandFolder.py | 26 +- .../nodes/generated/ReadOnlyCADNode.py | 40 ++- .../nodes/generated/ReadOnlyCable.py | 32 +- .../nodes/generated/ReadOnlyCirculator.py | 34 +- .../generated/ReadOnlyCouplingLinkNode.py | 28 +- .../nodes/generated/ReadOnlyCouplingsNode.py | 28 +- .../generated/ReadOnlyCustomCouplingNode.py | 38 ++- .../nodes/generated/ReadOnlyEmitSceneNode.py | 32 +- .../generated/ReadOnlyErcegCouplingNode.py | 36 +- .../nodes/generated/ReadOnlyFilter.py | 44 ++- .../generated/ReadOnlyFiveGChannelModel.py | 38 ++- .../generated/ReadOnlyHataCouplingNode.py | 36 +- .../ReadOnlyIndoorPropagationCouplingNode.py | 44 ++- .../nodes/generated/ReadOnlyIsolator.py | 34 +- .../ReadOnlyLogDistanceCouplingNode.py | 36 +- .../nodes/generated/ReadOnlyMultiplexer.py | 36 +- .../generated/ReadOnlyMultiplexerBand.py | 30 +- .../nodes/generated/ReadOnlyPowerDivider.py | 34 +- .../ReadOnlyPropagationLossCouplingNode.py | 34 +- .../nodes/generated/ReadOnlyRadioNode.py | 36 +- .../nodes/generated/ReadOnlyRfSystemGroup.py | 26 +- .../nodes/generated/ReadOnlyRxMeasNode.py | 30 +- .../generated/ReadOnlyRxMixerProductNode.py | 36 +- .../generated/ReadOnlyRxSaturationNode.py | 26 +- .../generated/ReadOnlyRxSelectivityNode.py | 26 +- .../nodes/generated/ReadOnlyRxSpurNode.py | 36 +- .../ReadOnlyRxSusceptibilityProfNode.py | 36 +- .../nodes/generated/ReadOnlySamplingNode.py | 40 ++- .../nodes/generated/ReadOnlySceneGroupNode.py | 30 +- .../generated/ReadOnlySolutionCouplingNode.py | 28 +- .../nodes/generated/ReadOnlySolutionsNode.py | 26 +- .../nodes/generated/ReadOnlySparameter.py | 34 +- .../nodes/generated/ReadOnlyTR_Switch.py | 32 +- .../nodes/generated/ReadOnlyTerminator.py | 34 +- .../ReadOnlyTouchstoneCouplingNode.py | 34 +- .../ReadOnlyTwoRayPathLossCouplingNode.py | 34 +- .../generated/ReadOnlyTxBbEmissionNode.py | 32 +- .../nodes/generated/ReadOnlyTxHarmonicNode.py | 28 +- .../nodes/generated/ReadOnlyTxMeasNode.py | 28 +- .../generated/ReadOnlyTxNbEmissionNode.py | 30 +- .../ReadOnlyTxSpectralProfEmitterNode.py | 30 +- .../generated/ReadOnlyTxSpectralProfNode.py | 34 +- .../nodes/generated/ReadOnlyTxSpurNode.py | 36 +- .../generated/ReadOnlyWalfischCouplingNode.py | 38 ++- .../nodes/generated/ReadOnlyWaveform.py | 40 ++- .../nodes/generated/ResultPlotNode.py | 110 +++--- .../nodes/generated/RfSystemGroup.py | 32 +- .../emit_core/nodes/generated/RxMeasNode.py | 80 +++-- .../nodes/generated/RxMixerProductNode.py | 92 +++-- .../nodes/generated/RxSaturationNode.py | 32 +- .../nodes/generated/RxSelectivityNode.py | 34 +- .../emit_core/nodes/generated/RxSpurNode.py | 44 ++- .../generated/RxSusceptibilityProfNode.py | 86 +++-- .../emit_core/nodes/generated/SamplingNode.py | 52 ++- .../nodes/generated/SceneGroupNode.py | 50 ++- .../nodes/generated/SelectivityTraceNode.py | 58 +++- .../nodes/generated/SolutionCouplingNode.py | 36 +- .../nodes/generated/SolutionsNode.py | 28 +- .../nodes/generated/SpurTraceNode.py | 64 ++-- .../nodes/generated/TRSwitchTraceNode.py | 62 ++-- .../emit_core/nodes/generated/TR_Switch.py | 70 ++-- .../emit_core/nodes/generated/Terminator.py | 46 ++- .../nodes/generated/TestNoiseTraceNode.py | 88 +++-- .../nodes/generated/TopLevelSimulation.py | 26 +- .../nodes/generated/TouchstoneCouplingNode.py | 50 ++- .../nodes/generated/TunableTraceNode.py | 68 ++-- .../generated/TwoRayPathLossCouplingNode.py | 82 +++-- .../nodes/generated/TwoToneTraceNode.py | 88 +++-- .../nodes/generated/TxBbEmissionNode.py | 44 ++- .../nodes/generated/TxHarmonicNode.py | 38 ++- .../emit_core/nodes/generated/TxMeasNode.py | 46 ++- .../nodes/generated/TxNbEmissionNode.py | 44 ++- .../generated/TxSpectralProfEmitterNode.py | 68 ++-- .../nodes/generated/TxSpectralProfNode.py | 100 ++++-- .../emit_core/nodes/generated/TxSpurNode.py | 44 ++- .../nodes/generated/WalfischCouplingNode.py | 102 ++++-- .../emit_core/nodes/generated/Waveform.py | 120 ++++--- .../emit_core/nodes/generated/__init__.py | 318 ++++++++++-------- tests/system/solvers/test_26_emit.py | 20 +- 118 files changed, 4776 insertions(+), 1846 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index 0a5b93dba7e..b35d8c1bda5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class Amplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -28,7 +53,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -41,19 +66,19 @@ def noise_temperature(self) -> float: @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class AmplifierTypeOption(Enum): TRANSMIT_AMPLIFIER = "Transmit Amplifier" @@ -63,14 +88,14 @@ class AmplifierTypeOption(Enum): def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type "Configures the amplifier as a Tx or Rx amplifier." - " """ + " """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] return val @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplifier Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Type={value.value}"]) @property def gain(self) -> float: @@ -83,7 +108,7 @@ def gain(self) -> float: @gain.setter def gain(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Gain={value}"]) @property def center_frequency(self) -> float: @@ -96,9 +121,9 @@ def center_frequency(self) -> float: return val @center_frequency.setter - def center_frequency(self, value : float|str): + def center_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Center Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Frequency={value}"]) @property def bandwidth(self) -> float: @@ -111,9 +136,9 @@ def bandwidth(self) -> float: return val @bandwidth.setter - def bandwidth(self, value : float|str): + def bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth={value}"]) @property def noise_figure(self) -> float: @@ -126,7 +151,7 @@ def noise_figure(self) -> float: @noise_figure.setter def noise_figure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Figure={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def saturation_level(self) -> float: @@ -139,9 +164,9 @@ def saturation_level(self) -> float: return val @saturation_level.setter - def saturation_level(self, value : float|str): + def saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) @property def p1_db_point_ref_input(self) -> float: @@ -154,9 +179,9 @@ def p1_db_point_ref_input(self) -> float: return val @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value : float|str): + def p1_db_point_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"P1-dB Point, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input={value}"]) @property def ip3_ref_input(self) -> float: @@ -169,9 +194,9 @@ def ip3_ref_input(self) -> float: return val @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def shape_factor(self) -> float: @@ -184,7 +209,7 @@ def shape_factor(self) -> float: @shape_factor.setter def shape_factor(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Shape Factor={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) @property def reverse_isolation(self) -> float: @@ -197,7 +222,7 @@ def reverse_isolation(self) -> float: @reverse_isolation.setter def reverse_isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -210,5 +235,4 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py index aa4bd0d648d..0f6b7be30ec 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class AntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -30,13 +55,13 @@ def delete(self): def tags(self) -> str: """Tags "Space delimited list of tags for coupling selections." - " """ + " """ val = self._get_property("Tags") return val @tags.setter def tags(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tags={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tags={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -49,7 +74,9 @@ def show_relative_coordinates(self) -> bool: @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -62,7 +89,7 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -75,7 +102,7 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -85,14 +112,14 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -105,7 +132,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -118,7 +145,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def position_defined(self) -> bool: @@ -131,7 +158,7 @@ def position_defined(self) -> bool: @position_defined.setter def position_defined(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position Defined={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Defined={value}"]) @property def antenna_temperature(self) -> float: @@ -144,19 +171,19 @@ def antenna_temperature(self) -> float: @antenna_temperature.setter def antenna_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna Temperature={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna Temperature={value}"]) @property def type(self): """Type "Defines the type of antenna." - " """ + " """ val = self._get_property("Type") return val @type.setter def type(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value}"]) @property def antenna_file(self) -> str: @@ -168,7 +195,7 @@ def antenna_file(self) -> str: @antenna_file.setter def antenna_file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna File={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna File={value}"]) @property def project_name(self) -> str: @@ -181,7 +208,7 @@ def project_name(self) -> str: @project_name.setter def project_name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Project Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Project Name={value}"]) @property def peak_gain(self) -> float: @@ -194,7 +221,7 @@ def peak_gain(self) -> float: @peak_gain.setter def peak_gain(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Peak Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Gain={value}"]) class BoresightOption(Enum): XAXIS = "+X Axis" @@ -205,14 +232,14 @@ class BoresightOption(Enum): def boresight(self) -> BoresightOption: """Boresight "Select peak beam direction in local coordinates." - " """ + " """ val = self._get_property("Boresight") val = self.BoresightOption[val] return val @boresight.setter def boresight(self, value: BoresightOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Boresight={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Boresight={value.value}"]) @property def vertical_beamwidth(self) -> float: @@ -225,7 +252,7 @@ def vertical_beamwidth(self) -> float: @vertical_beamwidth.setter def vertical_beamwidth(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Vertical Beamwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Beamwidth={value}"]) @property def horizontal_beamwidth(self) -> float: @@ -238,7 +265,7 @@ def horizontal_beamwidth(self) -> float: @horizontal_beamwidth.setter def horizontal_beamwidth(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Horizontal Beamwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Beamwidth={value}"]) @property def extra_sidelobe(self) -> bool: @@ -251,7 +278,7 @@ def extra_sidelobe(self) -> bool: @extra_sidelobe.setter def extra_sidelobe(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Extra Sidelobe={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Extra Sidelobe={value}"]) @property def first_sidelobe_level(self) -> float: @@ -264,7 +291,7 @@ def first_sidelobe_level(self) -> float: @first_sidelobe_level.setter def first_sidelobe_level(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"First Sidelobe Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Level={value}"]) @property def first_sidelobe_vert_bw(self) -> float: @@ -277,7 +304,7 @@ def first_sidelobe_vert_bw(self) -> float: @first_sidelobe_vert_bw.setter def first_sidelobe_vert_bw(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"First Sidelobe Vert. BW={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Vert. BW={value}"]) @property def first_sidelobe_hor_bw(self) -> float: @@ -290,7 +317,7 @@ def first_sidelobe_hor_bw(self) -> float: @first_sidelobe_hor_bw.setter def first_sidelobe_hor_bw(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"First Sidelobe Hor. BW={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Hor. BW={value}"]) @property def outerbacklobe_level(self) -> float: @@ -303,7 +330,7 @@ def outerbacklobe_level(self) -> float: @outerbacklobe_level.setter def outerbacklobe_level(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Outer/Backlobe Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Outer/Backlobe Level={value}"]) @property def resonant_frequency(self) -> float: @@ -316,9 +343,9 @@ def resonant_frequency(self) -> float: return val @resonant_frequency.setter - def resonant_frequency(self, value : float|str): + def resonant_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Resonant Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resonant Frequency={value}"]) @property def slot_length(self) -> float: @@ -331,9 +358,9 @@ def slot_length(self) -> float: return val @slot_length.setter - def slot_length(self, value : float|str): + def slot_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Slot Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Slot Length={value}"]) @property def mouth_width(self) -> float: @@ -346,9 +373,9 @@ def mouth_width(self) -> float: return val @mouth_width.setter - def mouth_width(self, value : float|str): + def mouth_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mouth Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Width={value}"]) @property def mouth_height(self) -> float: @@ -361,9 +388,9 @@ def mouth_height(self) -> float: return val @mouth_height.setter - def mouth_height(self, value : float|str): + def mouth_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mouth Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Height={value}"]) @property def waveguide_width(self) -> float: @@ -376,9 +403,9 @@ def waveguide_width(self) -> float: return val @waveguide_width.setter - def waveguide_width(self, value : float|str): + def waveguide_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Waveguide Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveguide Width={value}"]) @property def width_flare_half_angle(self) -> float: @@ -391,7 +418,7 @@ def width_flare_half_angle(self) -> float: @width_flare_half_angle.setter def width_flare_half_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Width Flare Half-angle={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width Flare Half-angle={value}"]) @property def height_flare_half_angle(self) -> float: @@ -404,7 +431,7 @@ def height_flare_half_angle(self) -> float: @height_flare_half_angle.setter def height_flare_half_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Height Flare Half-angle={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height Flare Half-angle={value}"]) @property def mouth_diameter(self) -> float: @@ -417,9 +444,9 @@ def mouth_diameter(self) -> float: return val @mouth_diameter.setter - def mouth_diameter(self, value : float|str): + def mouth_diameter(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mouth Diameter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Diameter={value}"]) @property def flare_half_angle(self) -> float: @@ -432,7 +459,7 @@ def flare_half_angle(self) -> float: @flare_half_angle.setter def flare_half_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Flare Half-angle={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flare Half-angle={value}"]) @property def vswr(self) -> float: @@ -445,7 +472,7 @@ def vswr(self) -> float: @vswr.setter def vswr(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"VSWR={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) class AntennaPolarizationOption(Enum): VERTICAL = "Vertical" @@ -457,14 +484,16 @@ class AntennaPolarizationOption(Enum): def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] return val @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna Polarization={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Antenna Polarization={value.value}"] + ) class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" @@ -474,14 +503,14 @@ class CrossDipoleModeOption(Enum): def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode "Choose the Cross Dipole type." - " """ + " """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] return val @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Cross Dipole Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Cross Dipole Mode={value.value}"]) class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" @@ -491,14 +520,16 @@ class CrossDipolePolarizationOption(Enum): def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] return val @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Cross Dipole Polarization={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Cross Dipole Polarization={value.value}"] + ) @property def override_height(self) -> bool: @@ -511,7 +542,7 @@ def override_height(self) -> bool: @override_height.setter def override_height(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Override Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Override Height={value}"]) @property def offset_height(self) -> float: @@ -524,9 +555,9 @@ def offset_height(self) -> float: return val @offset_height.setter - def offset_height(self, value : float|str): + def offset_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Offset Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset Height={value}"]) @property def auto_height_offset(self) -> bool: @@ -539,7 +570,7 @@ def auto_height_offset(self) -> bool: @auto_height_offset.setter def auto_height_offset(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Auto Height Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Auto Height Offset={value}"]) @property def conform__adjust_antenna(self) -> bool: @@ -552,7 +583,7 @@ def conform__adjust_antenna(self) -> bool: @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Conform / Adjust Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform / Adjust Antenna={value}"]) @property def element_offset(self): @@ -565,7 +596,7 @@ def element_offset(self): @element_offset.setter def element_offset(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Element Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Element Offset={value}"]) class ConformtoPlatformOption(Enum): NONE = "None" @@ -576,14 +607,16 @@ class ConformtoPlatformOption(Enum): def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform "Select method of automated conforming applied after Element Offset." - " """ + " """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] return val @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Conform to Platform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Conform to Platform={value.value}"] + ) class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" @@ -594,14 +627,14 @@ class ReferencePlaneOption(Enum): def reference_plane(self) -> ReferencePlaneOption: """Reference Plane "Select reference plane for determining original element heights." - " """ + " """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] return val @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Reference Plane={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reference Plane={value.value}"]) @property def conform_element_orientation(self) -> bool: @@ -614,7 +647,9 @@ def conform_element_orientation(self) -> bool: @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Conform Element Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Conform Element Orientation={value}"] + ) @property def show_axes(self) -> bool: @@ -627,7 +662,7 @@ def show_axes(self) -> bool: @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def show_icon(self) -> bool: @@ -640,7 +675,7 @@ def show_icon(self) -> bool: @show_icon.setter def show_icon(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Icon={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Icon={value}"]) @property def size(self) -> float: @@ -653,7 +688,7 @@ def size(self) -> float: @size.setter def size(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Size={value}"]) @property def color(self): @@ -666,13 +701,13 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def el_sample_interval(self) -> float: """El Sample Interval "Space between elevation-angle samples of pattern." - " """ + " """ val = self._get_property("El Sample Interval") return val @@ -680,7 +715,7 @@ def el_sample_interval(self) -> float: def az_sample_interval(self) -> float: """Az Sample Interval "Space between azimuth-angle samples of pattern." - " """ + " """ val = self._get_property("Az Sample Interval") return val @@ -697,7 +732,7 @@ def has_frequency_domain(self) -> bool: def frequency_domain(self): """Frequency Domain "Frequency sample(s) defining antenna." - " """ + " """ val = self._get_property("Frequency Domain") return val @@ -705,7 +740,7 @@ def frequency_domain(self): def number_of_electric_sources(self) -> int: """Number of Electric Sources "Number of freestanding electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Electric Sources") return val @@ -713,7 +748,7 @@ def number_of_electric_sources(self) -> int: def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources "Number of freestanding magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Magnetic Sources") return val @@ -721,7 +756,7 @@ def number_of_magnetic_sources(self) -> int: def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources "Number of imaged, half-space radiating electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Electric Sources") return val @@ -729,7 +764,7 @@ def number_of_imaged_electric_sources(self) -> int: def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources "Number of imaged, half-space radiating magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Magnetic Sources") return val @@ -737,7 +772,7 @@ def number_of_imaged_magnetic_sources(self) -> int: def waveguide_height(self) -> float: """Waveguide Height "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." - " """ + " """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") return val @@ -746,7 +781,7 @@ def waveguide_height(self) -> float: def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." - " """ + " """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -755,7 +790,7 @@ def waveguide_cutoff_frequency(self) -> float: def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." - " """ + " """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -769,14 +804,16 @@ class SWEModeTruncationOption(Enum): def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation "Select the method for stability-enhancing truncation of spherical wave expansion terms." - " """ + " """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] return val @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"SWE Mode Truncation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"SWE Mode Truncation={value.value}"] + ) @property def max_n_index(self) -> int: @@ -789,19 +826,19 @@ def max_n_index(self) -> int: @max_n_index.setter def max_n_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max N Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max N Index={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) @property def show_composite_passband(self) -> bool: @@ -814,7 +851,7 @@ def show_composite_passband(self) -> bool: @show_composite_passband.setter def show_composite_passband(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Composite Passband={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Composite Passband={value}"]) @property def use_phase_center(self) -> bool: @@ -827,13 +864,13 @@ def use_phase_center(self) -> bool: @use_phase_center.setter def use_phase_center(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use Phase Center={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Phase Center={value}"]) @property def coordinate_systems(self) -> str: """Coordinate Systems "Specifies the coordinate system for the phase center of this antenna." - " """ + " """ val = self._get_property("Coordinate Systems") return val @@ -854,4 +891,3 @@ def phasecenterorientation(self): """ val = self._get_property("PhaseCenterOrientation") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py index 28b1c6c871a..e503cf36df5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class AntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -25,11 +50,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) @property def passband_loss(self) -> float: @@ -42,7 +67,7 @@ def passband_loss(self) -> float: @passband_loss.setter def passband_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Passband Loss={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Passband Loss={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -55,7 +80,7 @@ def out_of_band_attenuation(self) -> float: @out_of_band_attenuation.setter def out_of_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Out of Band Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out of Band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -68,9 +93,9 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -83,9 +108,9 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -98,9 +123,9 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -113,19 +138,18 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index f82622df879..ead45160c0d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class Band(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,23 +38,23 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) @property def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") return val @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) @property def use_dd_1494_mode(self) -> bool: @@ -42,7 +67,7 @@ def use_dd_1494_mode(self) -> bool: @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use DD-1494 Mode={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use DD-1494 Mode={value}"]) @property def use_emission_designator(self) -> bool: @@ -55,25 +80,25 @@ def use_emission_designator(self) -> bool: @use_emission_designator.setter def use_emission_designator(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Emission Designator={value}"]) @property def emission_designator(self) -> str: """Emission Designator "Enter the Emission Designator to define the bandwidth and modulation." - " """ + " """ val = self._get_property("Emission Designator") return val @emission_designator.setter def emission_designator(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Emission Designator={value}"]) @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." - " """ + " """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -82,7 +107,7 @@ def emission_designator_ch_bw(self) -> float: def emit_modulation_type(self) -> str: """EMIT Modulation Type "Modulation based off the emission designator." - " """ + " """ val = self._get_property("EMIT Modulation Type") return val @@ -97,7 +122,9 @@ def override_emission_designator_bw(self) -> bool: @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Override Emission Designator BW={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Override Emission Designator BW={value}"] + ) @property def channel_bandwidth(self) -> float: @@ -110,9 +137,9 @@ def channel_bandwidth(self) -> float: return val @channel_bandwidth.setter - def channel_bandwidth(self, value : float|str): + def channel_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Channel Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Bandwidth={value}"]) class ModulationOption(Enum): GENERIC = "Generic" @@ -131,14 +158,14 @@ class ModulationOption(Enum): def modulation(self) -> ModulationOption: """Modulation "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Modulation") val = self.ModulationOption[val] return val @modulation.setter def modulation(self, value: ModulationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Modulation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation={value.value}"]) @property def max_modulating_freq(self) -> float: @@ -151,9 +178,9 @@ def max_modulating_freq(self) -> float: return val @max_modulating_freq.setter - def max_modulating_freq(self, value : float|str): + def max_modulating_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Modulating Freq.={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Modulating Freq.={value}"]) @property def modulation_index(self) -> float: @@ -166,7 +193,7 @@ def modulation_index(self) -> float: @modulation_index.setter def modulation_index(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Modulation Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Index={value}"]) @property def freq_deviation(self) -> float: @@ -179,9 +206,9 @@ def freq_deviation(self) -> float: return val @freq_deviation.setter - def freq_deviation(self, value : float|str): + def freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) @property def bit_rate(self) -> float: @@ -194,9 +221,9 @@ def bit_rate(self) -> float: return val @bit_rate.setter - def bit_rate(self, value : float|str): + def bit_rate(self, value: float | str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bit Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bit Rate={value}"]) @property def sidelobes(self) -> int: @@ -209,11 +236,11 @@ def sidelobes(self) -> int: @sidelobes.setter def sidelobes(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Sidelobes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sidelobes={value}"]) @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ @@ -222,9 +249,9 @@ def freq_deviation_(self) -> float: return val @freq_deviation_.setter - def freq_deviation_(self, value : float|str): + def freq_deviation_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Freq. Deviation ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation ={value}"]) class PSKTypeOption(Enum): BPSK = "BPSK" @@ -238,14 +265,14 @@ class PSKTypeOption(Enum): def psk_type(self) -> PSKTypeOption: """PSK Type "PSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] return val @psk_type.setter def psk_type(self, value: PSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"PSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"PSK Type={value.value}"]) class FSKTypeOption(Enum): FSK_2 = "FSK-2" @@ -256,14 +283,14 @@ class FSKTypeOption(Enum): def fsk_type(self) -> FSKTypeOption: """FSK Type "FSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] return val @fsk_type.setter def fsk_type(self, value: FSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"FSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FSK Type={value.value}"]) class QAMTypeOption(Enum): QAM_4 = "QAM-4" @@ -276,14 +303,14 @@ class QAMTypeOption(Enum): def qam_type(self) -> QAMTypeOption: """QAM Type "QAM modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] return val @qam_type.setter def qam_type(self, value: QAMTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"QAM Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"QAM Type={value.value}"]) class APSKTypeOption(Enum): APSK_4 = "APSK-4" @@ -296,14 +323,14 @@ class APSKTypeOption(Enum): def apsk_type(self) -> APSKTypeOption: """APSK Type "APSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] return val @apsk_type.setter def apsk_type(self, value: APSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"APSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"APSK Type={value.value}"]) @property def start_frequency(self) -> float: @@ -316,9 +343,9 @@ def start_frequency(self) -> float: return val @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -331,9 +358,9 @@ def stop_frequency(self) -> float: return val @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -346,9 +373,9 @@ def channel_spacing(self) -> float: return val @channel_spacing.setter - def channel_spacing(self, value : float|str): + def channel_spacing(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) @property def tx_offset(self) -> float: @@ -361,9 +388,9 @@ def tx_offset(self) -> float: return val @tx_offset.setter - def tx_offset(self, value : float|str): + def tx_offset(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tx Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Offset={value}"]) class RadarTypeOption(Enum): CW = "CW" @@ -376,14 +403,14 @@ class RadarTypeOption(Enum): def radar_type(self) -> RadarTypeOption: """Radar Type "Radar type: helps determine spectral profile." - " """ + " """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] return val @radar_type.setter def radar_type(self, value: RadarTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Radar Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radar Type={value.value}"]) @property def hopping_radar(self) -> bool: @@ -396,7 +423,7 @@ def hopping_radar(self) -> bool: @hopping_radar.setter def hopping_radar(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Hopping Radar={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hopping Radar={value}"]) @property def post_october_2020_procurement(self) -> bool: @@ -409,7 +436,9 @@ def post_october_2020_procurement(self) -> bool: @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Post October 2020 Procurement={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Post October 2020 Procurement={value}"] + ) @property def hop_range_min_freq(self) -> float: @@ -422,9 +451,9 @@ def hop_range_min_freq(self) -> float: return val @hop_range_min_freq.setter - def hop_range_min_freq(self, value : float|str): + def hop_range_min_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Hop Range Min Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Min Freq={value}"]) @property def hop_range_max_freq(self) -> float: @@ -437,9 +466,9 @@ def hop_range_max_freq(self) -> float: return val @hop_range_max_freq.setter - def hop_range_max_freq(self, value : float|str): + def hop_range_max_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Hop Range Max Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Max Freq={value}"]) @property def pulse_duration(self) -> float: @@ -452,9 +481,9 @@ def pulse_duration(self) -> float: return val @pulse_duration.setter - def pulse_duration(self, value : float|str): + def pulse_duration(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pulse Duration={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Duration={value}"]) @property def pulse_rise_time(self) -> float: @@ -467,9 +496,9 @@ def pulse_rise_time(self) -> float: return val @pulse_rise_time.setter - def pulse_rise_time(self, value : float|str): + def pulse_rise_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pulse Rise Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Rise Time={value}"]) @property def pulse_fall_time(self) -> float: @@ -482,9 +511,9 @@ def pulse_fall_time(self) -> float: return val @pulse_fall_time.setter - def pulse_fall_time(self, value : float|str): + def pulse_fall_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pulse Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Fall Time={value}"]) @property def pulse_repetition_rate(self) -> float: @@ -497,7 +526,7 @@ def pulse_repetition_rate(self) -> float: @pulse_repetition_rate.setter def pulse_repetition_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pulse Repetition Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Repetition Rate={value}"]) @property def number_of_chips(self) -> float: @@ -510,7 +539,7 @@ def number_of_chips(self) -> float: @number_of_chips.setter def number_of_chips(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Number of Chips={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Chips={value}"]) @property def pulse_compression_ratio(self) -> float: @@ -523,7 +552,7 @@ def pulse_compression_ratio(self) -> float: @pulse_compression_ratio.setter def pulse_compression_ratio(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pulse Compression Ratio={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Compression Ratio={value}"]) @property def fm_chirp_period(self) -> float: @@ -536,9 +565,9 @@ def fm_chirp_period(self) -> float: return val @fm_chirp_period.setter - def fm_chirp_period(self, value : float|str): + def fm_chirp_period(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"FM Chirp Period={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Chirp Period={value}"]) @property def fm_freq_deviation(self) -> float: @@ -551,9 +580,9 @@ def fm_freq_deviation(self) -> float: return val @fm_freq_deviation.setter - def fm_freq_deviation(self, value : float|str): + def fm_freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"FM Freq Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Deviation={value}"]) @property def fm_freq_dev_bandwidth(self) -> float: @@ -566,7 +595,6 @@ def fm_freq_dev_bandwidth(self) -> float: return val @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value : float|str): + def fm_freq_dev_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"FM Freq Dev Bandwidth={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Dev Bandwidth={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py index d2012de1304..02237f50677 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class BandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -25,4 +50,3 @@ def duplicate(self, new_name): def delete(self): """Delete this node""" self._delete() - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py index 939c1c843c2..69ac47b5018 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class BandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -26,13 +51,13 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) class TxorRxOption(Enum): TX = "Tx" @@ -42,32 +67,32 @@ class TxorRxOption(Enum): def tx_or_rx(self) -> TxorRxOption: """Tx or Rx "Specifies whether the trace is a Tx or Rx channel." - " """ + " """ val = self._get_property("Tx or Rx") val = self.TxorRxOption[val] return val @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tx or Rx={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx or Rx={value.value}"]) @property def channel_frequency(self): """Channel Frequency "Select band channel frequency to display." - " """ + " """ val = self._get_property("Channel Frequency") return val @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -83,7 +108,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -96,19 +121,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -122,14 +147,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -142,7 +167,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -155,7 +180,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -178,14 +203,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -198,7 +223,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -211,7 +236,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -224,7 +249,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -237,5 +262,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py index 4236d5de9f4..375adc6f17f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class CADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -51,14 +76,14 @@ class ModelTypeOption(Enum): def model_type(self) -> ModelTypeOption: """Model Type "Select type of parametric model to create." - " """ + " """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] return val @model_type.setter def model_type(self, value: ModelTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Model Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Model Type={value.value}"]) @property def length(self) -> float: @@ -71,9 +96,9 @@ def length(self) -> float: return val @length.setter - def length(self, value : float|str): + def length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) @property def width(self) -> float: @@ -86,9 +111,9 @@ def width(self) -> float: return val @width.setter - def width(self, value : float|str): + def width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width={value}"]) @property def height(self) -> float: @@ -101,9 +126,9 @@ def height(self) -> float: return val @height.setter - def height(self, value : float|str): + def height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height={value}"]) @property def angle(self) -> float: @@ -116,7 +141,7 @@ def angle(self) -> float: @angle.setter def angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Angle={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Angle={value}"]) @property def top_side(self) -> float: @@ -129,9 +154,9 @@ def top_side(self) -> float: return val @top_side.setter - def top_side(self, value : float|str): + def top_side(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Top Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Side={value}"]) @property def top_radius(self) -> float: @@ -144,9 +169,9 @@ def top_radius(self) -> float: return val @top_radius.setter - def top_radius(self, value : float|str): + def top_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Top Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Radius={value}"]) @property def side(self) -> float: @@ -159,9 +184,9 @@ def side(self) -> float: return val @side.setter - def side(self, value : float|str): + def side(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Side={value}"]) @property def radius(self) -> float: @@ -174,9 +199,9 @@ def radius(self) -> float: return val @radius.setter - def radius(self, value : float|str): + def radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radius={value}"]) @property def base_radius(self) -> float: @@ -189,9 +214,9 @@ def base_radius(self) -> float: return val @base_radius.setter - def base_radius(self, value : float|str): + def base_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Base Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Radius={value}"]) @property def center_radius(self) -> float: @@ -204,9 +229,9 @@ def center_radius(self) -> float: return val @center_radius.setter - def center_radius(self, value : float|str): + def center_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Center Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Radius={value}"]) @property def x_axis_ellipsoid_radius(self) -> float: @@ -219,9 +244,9 @@ def x_axis_ellipsoid_radius(self) -> float: return val @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value : float|str): + def x_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"X Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Axis Ellipsoid Radius={value}"]) @property def y_axis_ellipsoid_radius(self) -> float: @@ -234,9 +259,9 @@ def y_axis_ellipsoid_radius(self) -> float: return val @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value : float|str): + def y_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Axis Ellipsoid Radius={value}"]) @property def z_axis_ellipsoid_radius(self) -> float: @@ -249,9 +274,9 @@ def z_axis_ellipsoid_radius(self) -> float: return val @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value : float|str): + def z_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Z Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Z Axis Ellipsoid Radius={value}"]) @property def focal_length(self) -> float: @@ -264,23 +289,23 @@ def focal_length(self) -> float: return val @focal_length.setter - def focal_length(self, value : float|str): + def focal_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Focal Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Focal Length={value}"]) @property def offset(self) -> float: """Offset "Offset of parabolic reflector." - " """ + " """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") return val @offset.setter - def offset(self, value : float|str): + def offset(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset={value}"]) @property def x_direction_taper(self) -> float: @@ -293,7 +318,7 @@ def x_direction_taper(self) -> float: @x_direction_taper.setter def x_direction_taper(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"X Direction Taper={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Direction Taper={value}"]) @property def y_direction_taper(self) -> float: @@ -306,7 +331,7 @@ def y_direction_taper(self) -> float: @y_direction_taper.setter def y_direction_taper(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y Direction Taper={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Direction Taper={value}"]) @property def prism_direction(self): @@ -319,7 +344,7 @@ def prism_direction(self): @prism_direction.setter def prism_direction(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Prism Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Prism Direction={value}"]) @property def closed_top(self) -> bool: @@ -332,7 +357,7 @@ def closed_top(self) -> bool: @closed_top.setter def closed_top(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Closed Top={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Top={value}"]) @property def closed_base(self) -> bool: @@ -345,7 +370,7 @@ def closed_base(self) -> bool: @closed_base.setter def closed_base(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Closed Base={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Base={value}"]) @property def mesh_density(self) -> int: @@ -358,7 +383,7 @@ def mesh_density(self) -> int: @mesh_density.setter def mesh_density(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mesh Density={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Density={value}"]) @property def use_symmetric_mesh(self) -> bool: @@ -371,7 +396,7 @@ def use_symmetric_mesh(self) -> bool: @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use Symmetric Mesh={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Symmetric Mesh={value}"]) class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -381,14 +406,14 @@ class MeshOptionOption(Enum): def mesh_option(self) -> MeshOptionOption: """Mesh Option "Select from different meshing options." - " """ + " """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] return val @mesh_option.setter def mesh_option(self, value: MeshOptionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mesh Option={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Option={value.value}"]) @property def coating_index(self) -> int: @@ -401,7 +426,7 @@ def coating_index(self) -> int: @coating_index.setter def coating_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Coating Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Coating Index={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -414,7 +439,9 @@ def show_relative_coordinates(self) -> bool: @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -427,7 +454,7 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -440,7 +467,7 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -450,14 +477,14 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -470,7 +497,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -483,7 +510,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def visible(self) -> bool: @@ -496,7 +523,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -508,14 +535,14 @@ class RenderModeOption(Enum): def render_mode(self) -> RenderModeOption: """Render Mode "Select drawing style for surfaces." - " """ + " """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] return val @render_mode.setter def render_mode(self, value: RenderModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Render Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Render Mode={value.value}"]) @property def show_axes(self) -> bool: @@ -528,7 +555,7 @@ def show_axes(self) -> bool: @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def min(self): @@ -552,7 +579,7 @@ def max(self): def number_of_surfaces(self) -> int: """Number of Surfaces "Number of surfaces in the model." - " """ + " """ val = self._get_property("Number of Surfaces") return val @@ -567,17 +594,16 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index e5454b5278b..968794a89ed 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class Cable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -28,7 +53,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -41,19 +66,19 @@ def noise_temperature(self) -> float: @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -64,14 +89,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def length(self) -> float: @@ -84,9 +109,9 @@ def length(self) -> float: return val @length.setter - def length(self, value : float|str): + def length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) @property def loss_per_length(self) -> float: @@ -99,7 +124,7 @@ def loss_per_length(self) -> float: @loss_per_length.setter def loss_per_length(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Loss Per Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Loss Per Length={value}"]) @property def measurement_length(self) -> float: @@ -112,9 +137,9 @@ def measurement_length(self) -> float: return val @measurement_length.setter - def measurement_length(self, value : float|str): + def measurement_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Measurement Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Length={value}"]) @property def resistive_loss_constant(self) -> float: @@ -127,7 +152,7 @@ def resistive_loss_constant(self) -> float: @resistive_loss_constant.setter def resistive_loss_constant(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Resistive Loss Constant={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resistive Loss Constant={value}"]) @property def dielectric_loss_constant(self) -> float: @@ -140,13 +165,12 @@ def dielectric_loss_constant(self) -> float: @dielectric_loss_constant.setter def dielectric_loss_constant(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Dielectric Loss Constant={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Dielectric Loss Constant={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py index 5074051246b..c7c2f555fb7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py @@ -1,7 +1,31 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class CategoriesViewNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index 4155d82397a..6f2364c2f31 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class Circulator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -28,7 +53,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -41,19 +66,19 @@ def noise_temperature(self) -> float: @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -63,14 +88,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -80,14 +105,14 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the circulator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -100,7 +125,7 @@ def insertion_loss(self) -> float: @insertion_loss.setter def insertion_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Insertion Loss={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -113,7 +138,7 @@ def finite_reverse_isolation(self) -> bool: @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -126,7 +151,7 @@ def reverse_isolation(self) -> float: @reverse_isolation.setter def reverse_isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -139,7 +164,7 @@ def finite_bandwidth(self) -> bool: @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -152,7 +177,7 @@ def out_of_band_attenuation(self) -> float: @out_of_band_attenuation.setter def out_of_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Out-of-band Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -165,9 +190,9 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -180,9 +205,9 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -195,9 +220,9 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -210,15 +235,14 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py index 40a09a839b3..617dbe4100a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class CouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -21,18 +46,17 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def ports(self): """Ports "Maps each port in the link to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Ports") return val @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Ports={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py index 46cb12d7076..759749d241f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class CouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -25,36 +50,36 @@ def delete(self): @property def transmitter(self) -> EmitNode: """Transmitter - " """ + " """ val = self._get_property("Transmitter") return val @transmitter.setter def transmitter(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Transmitter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Transmitter={value}"]) @property def receiver(self) -> EmitNode: """Receiver - " """ + " """ val = self._get_property("Receiver") return val @receiver.setter def receiver(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Receiver={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -67,7 +92,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -80,19 +105,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -106,14 +131,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -126,7 +151,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -139,7 +164,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -162,14 +187,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -182,7 +207,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -195,7 +220,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -208,7 +233,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -221,7 +246,7 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def highlight_regions(self) -> bool: @@ -234,7 +259,7 @@ def highlight_regions(self) -> bool: @highlight_regions.setter def highlight_regions(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Highlight Regions={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highlight Regions={value}"]) @property def show_region_labels(self) -> bool: @@ -247,7 +272,7 @@ def show_region_labels(self) -> bool: @show_region_labels.setter def show_region_labels(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Region Labels={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Region Labels={value}"]) @property def font(self): @@ -260,7 +285,7 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -273,7 +298,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -286,7 +311,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -299,7 +324,7 @@ def border(self) -> bool: @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -312,7 +337,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -325,5 +350,4 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border Color={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py index fa399762680..994631eb195 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class CouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -7,7 +32,7 @@ def __init__(self, oDesign, result_id, node_id): def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" - return self._import(file_name,"TouchstoneCoupling") + return self._import(file_name, "TouchstoneCoupling") def add_custom_coupling(self): """Add a new node to define custom coupling between antennas""" @@ -56,7 +81,7 @@ def minimum_allowed_coupling(self) -> float: @minimum_allowed_coupling.setter def minimum_allowed_coupling(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Minimum Allowed Coupling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Allowed Coupling={value}"]) @property def global_default_coupling(self) -> float: @@ -69,13 +94,12 @@ def global_default_coupling(self) -> float: @global_default_coupling.setter def global_default_coupling(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Global Default Coupling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Global Default Coupling={value}"]) @property def antenna_tags(self) -> str: """Antenna Tags "All tags currently used by all antennas in the project." - " """ + " """ val = self._get_property("Antenna Tags") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py index a5e8c05fd8e..0b0ddcd8f6b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class CustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def rename(self, new_name): """Rename this node""" @@ -28,11 +53,11 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Value (dB): + "Value (dB): " Value should be between -1000 and 0." """ return self._get_table_data() @@ -52,31 +77,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -89,7 +114,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -102,17 +127,16 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py index 3cd719d0028..43a3d695b30 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class EmiPlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -33,25 +58,25 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def attached(self): """Attached "Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False)." - " """ + " """ val = self._get_property("Attached") return val @attached.setter def attached(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) @property def position(self) -> float: """Position "Set position of the marker along the X-axis." - " """ + " """ val = self._get_property("Position") return val @@ -59,7 +84,7 @@ def position(self) -> float: def position(self) -> float: """Position "Set position of the marker along the Y-axis." - " """ + " """ val = self._get_property("Position") return val @@ -74,7 +99,7 @@ def floating_label(self) -> bool: @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -87,7 +112,7 @@ def position_from_left(self) -> float: @position_from_left.setter def position_from_left(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position from Left={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -100,19 +125,19 @@ def position_from_top(self) -> float: @position_from_top.setter def position_from_top(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position from Top={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) @property def text(self) -> str: """Text "Set the text of the label." - " """ + " """ val = self._get_property("Text") return val @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -123,14 +148,16 @@ class HorizontalPositionOption(Enum): def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position "Specify horizontal position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] return val @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Horizontal Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Horizontal Position={value.value}"] + ) class VerticalPositionOption(Enum): TOP = "Top" @@ -141,14 +168,14 @@ class VerticalPositionOption(Enum): def vertical_position(self) -> VerticalPositionOption: """Vertical Position "Specify vertical position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] return val @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -159,14 +186,14 @@ class TextAlignmentOption(Enum): def text_alignment(self) -> TextAlignmentOption: """Text Alignment "Specify justification applied to multi-line text." - " """ + " """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] return val @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) @property def font(self): @@ -179,7 +206,7 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -192,7 +219,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -205,7 +232,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -218,7 +245,7 @@ def border(self) -> bool: @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -231,7 +258,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -244,7 +271,7 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -268,14 +295,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Specify symbol displayed next to the label." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -288,7 +315,7 @@ def arrow_direction(self) -> int: @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -301,7 +328,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -314,7 +341,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -327,7 +354,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -340,5 +367,4 @@ def filled(self) -> bool: @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py index 1d481e8bfc6..b646adc2d15 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class EmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,13 +38,13 @@ def add_group(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class GroundPlaneNormalOption(Enum): X_AXIS = "X Axis" @@ -30,26 +55,27 @@ class GroundPlaneNormalOption(Enum): def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal "Specifies the axis of the normal to the ground plane." - " """ + " """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] return val @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Ground Plane Normal={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"] + ) @property def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." - " """ + " """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return val @gp_position_along_normal.setter - def gp_position_along_normal(self, value : float|str): + def gp_position_along_normal(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"GP Position Along Normal={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GP Position Along Normal={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py index 188d9fa1321..209dcafeff2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -33,31 +58,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -70,7 +95,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -83,19 +108,19 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class TerrainCategoryOption(Enum): TYPE_A = "Type A" @@ -106,14 +131,14 @@ class TerrainCategoryOption(Enum): def terrain_category(self) -> TerrainCategoryOption: """Terrain Category "Specify the terrain category type for the Erceg model." - " """ + " """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] return val @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Terrain Category={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Terrain Category={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -126,7 +151,7 @@ def custom_fading_margin(self) -> float: @custom_fading_margin.setter def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -139,7 +164,7 @@ def polarization_mismatch(self) -> float: @polarization_mismatch.setter def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -152,7 +177,7 @@ def pointing_error_loss(self) -> float: @pointing_error_loss.setter def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -164,14 +189,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -184,7 +209,7 @@ def fading_availability(self) -> float: @fading_availability.setter def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -197,7 +222,7 @@ def std_deviation(self) -> float: @std_deviation.setter def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -210,7 +235,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -223,7 +248,7 @@ def rain_availability(self) -> float: @rain_availability.setter def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -236,7 +261,7 @@ def rain_rate(self) -> float: @rain_rate.setter def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -249,7 +274,7 @@ def polarization_tilt_angle(self) -> float: @polarization_tilt_angle.setter def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -262,7 +287,9 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -275,7 +302,7 @@ def temperature(self) -> float: @temperature.setter def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -288,7 +315,7 @@ def total_air_pressure(self) -> float: @total_air_pressure.setter def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -301,5 +328,6 @@ def water_vapor_concentration(self) -> float: @water_vapor_concentration.setter def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index 310820673cb..a67a1e6e6bb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class Filter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -28,7 +53,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -41,19 +66,19 @@ def noise_temperature(self) -> float: @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -68,14 +93,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def insertion_loss(self) -> float: @@ -88,7 +113,7 @@ def insertion_loss(self) -> float: @insertion_loss.setter def insertion_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Insertion Loss={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -101,7 +126,7 @@ def stop_band_attenuation(self) -> float: @stop_band_attenuation.setter def stop_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop band Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -114,9 +139,9 @@ def max_pass_band(self) -> float: return val @max_pass_band.setter - def max_pass_band(self, value : float|str): + def max_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -129,9 +154,9 @@ def min_stop_band(self) -> float: return val @min_stop_band.setter - def min_stop_band(self, value : float|str): + def min_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -144,9 +169,9 @@ def max_stop_band(self) -> float: return val @max_stop_band.setter - def max_stop_band(self, value : float|str): + def max_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -159,9 +184,9 @@ def min_pass_band(self) -> float: return val @min_pass_band.setter - def min_pass_band(self, value : float|str): + def min_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -174,9 +199,9 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -189,9 +214,9 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -204,9 +229,9 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -219,13 +244,13 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ @@ -234,13 +259,13 @@ def lower_cutoff_(self) -> float: return val @lower_cutoff_.setter - def lower_cutoff_(self, value : float|str): + def lower_cutoff_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff ={value}"]) @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ @@ -249,13 +274,13 @@ def lower_stop_band_(self) -> float: return val @lower_stop_band_.setter - def lower_stop_band_(self, value : float|str): + def lower_stop_band_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band ={value}"]) @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ @@ -264,13 +289,13 @@ def higher_stop_band_(self) -> float: return val @higher_stop_band_.setter - def higher_stop_band_(self, value : float|str): + def higher_stop_band_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band ={value}"]) @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ @@ -279,13 +304,13 @@ def higher_cutoff_(self) -> float: return val @higher_cutoff_.setter - def higher_cutoff_(self, value : float|str): + def higher_cutoff_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff ={value}"]) @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency "Lowest tuned frequency." "Value should be between 1 and 1e+11." """ @@ -294,13 +319,13 @@ def lowest_tuned_frequency_(self) -> float: return val @lowest_tuned_frequency_.setter - def lowest_tuned_frequency_(self, value : float|str): + def lowest_tuned_frequency_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lowest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lowest Tuned Frequency ={value}"]) @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency "Highest tuned frequency." "Value should be between 1 and 1e+11." """ @@ -309,9 +334,9 @@ def highest_tuned_frequency_(self) -> float: return val @highest_tuned_frequency_.setter - def highest_tuned_frequency_(self, value : float|str): + def highest_tuned_frequency_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Highest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highest Tuned Frequency ={value}"]) @property def percent_bandwidth(self) -> float: @@ -324,7 +349,7 @@ def percent_bandwidth(self) -> float: @percent_bandwidth.setter def percent_bandwidth(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Percent Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percent Bandwidth={value}"]) @property def shape_factor(self) -> float: @@ -337,13 +362,12 @@ def shape_factor(self) -> float: @shape_factor.setter def shape_factor(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Shape Factor={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py index 9a4d4965c6b..00e86d1c7cf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class FiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -33,31 +58,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -70,7 +95,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -83,19 +108,19 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): URBAN_MICROCELL = "Urban Microcell" @@ -106,14 +131,14 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment for the 5G channel model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def los(self) -> bool: @@ -126,7 +151,7 @@ def los(self) -> bool: @los.setter def los(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"LOS={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"LOS={value}"]) @property def include_bpl(self) -> bool: @@ -139,7 +164,7 @@ def include_bpl(self) -> bool: @include_bpl.setter def include_bpl(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include BPL={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include BPL={value}"]) class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -149,14 +174,14 @@ class NYUBPLModelOption(Enum): def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model "Specify the NYU Building Penetration Loss model." - " """ + " """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] return val @nyu_bpl_model.setter def nyu_bpl_model(self, value: NYUBPLModelOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"NYU BPL Model={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NYU BPL Model={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -169,7 +194,7 @@ def custom_fading_margin(self) -> float: @custom_fading_margin.setter def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -182,7 +207,7 @@ def polarization_mismatch(self) -> float: @polarization_mismatch.setter def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -195,7 +220,7 @@ def pointing_error_loss(self) -> float: @pointing_error_loss.setter def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -207,14 +232,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -227,7 +252,7 @@ def fading_availability(self) -> float: @fading_availability.setter def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -240,7 +265,7 @@ def std_deviation(self) -> float: @std_deviation.setter def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -253,7 +278,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -266,7 +291,7 @@ def rain_availability(self) -> float: @rain_availability.setter def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -279,7 +304,7 @@ def rain_rate(self) -> float: @rain_rate.setter def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -292,7 +317,7 @@ def polarization_tilt_angle(self) -> float: @polarization_tilt_angle.setter def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -305,7 +330,9 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -318,7 +345,7 @@ def temperature(self) -> float: @temperature.setter def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -331,7 +358,7 @@ def total_air_pressure(self) -> float: @total_air_pressure.setter def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -344,5 +371,6 @@ def water_vapor_concentration(self) -> float: @water_vapor_concentration.setter def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py index e29959b917d..e73b0ebe145 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class HataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -33,31 +58,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -70,7 +95,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -83,19 +108,19 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): LARGE_CITY = "Large City" @@ -107,14 +132,14 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Hata model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -127,7 +152,7 @@ def custom_fading_margin(self) -> float: @custom_fading_margin.setter def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -140,7 +165,7 @@ def polarization_mismatch(self) -> float: @polarization_mismatch.setter def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -153,7 +178,7 @@ def pointing_error_loss(self) -> float: @pointing_error_loss.setter def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -165,14 +190,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -185,7 +210,7 @@ def fading_availability(self) -> float: @fading_availability.setter def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -198,7 +223,7 @@ def std_deviation(self) -> float: @std_deviation.setter def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -211,7 +236,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -224,7 +249,7 @@ def rain_availability(self) -> float: @rain_availability.setter def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -237,7 +262,7 @@ def rain_rate(self) -> float: @rain_rate.setter def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -250,7 +275,7 @@ def polarization_tilt_angle(self) -> float: @polarization_tilt_angle.setter def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -263,7 +288,9 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -276,7 +303,7 @@ def temperature(self) -> float: @temperature.setter def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -289,7 +316,7 @@ def total_air_pressure(self) -> float: @total_air_pressure.setter def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -302,5 +329,6 @@ def water_vapor_concentration(self) -> float: @water_vapor_concentration.setter def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py index af85e562f95..b27a95fcd16 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class IndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -24,13 +49,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Power Loss Coefficient: + "Power Loss Coefficient: " Value should be between 0 and 100." - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): " Value should be between 0 and 1000." """ return self._get_table_data() @@ -50,31 +75,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -87,7 +112,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -100,19 +125,19 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class BuildingTypeOption(Enum): RESIDENTIAL_APARTMENT = "Residential Apartment" @@ -125,14 +150,14 @@ class BuildingTypeOption(Enum): def building_type(self) -> BuildingTypeOption: """Building Type "Specify the building type for the Indoor Propagation model." - " """ + " """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] return val @building_type.setter def building_type(self, value: BuildingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Building Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Building Type={value.value}"]) @property def number_of_floors(self) -> int: @@ -145,7 +170,7 @@ def number_of_floors(self) -> int: @number_of_floors.setter def number_of_floors(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Number of Floors={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Floors={value}"]) @property def custom_fading_margin(self) -> float: @@ -158,7 +183,7 @@ def custom_fading_margin(self) -> float: @custom_fading_margin.setter def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -171,7 +196,7 @@ def polarization_mismatch(self) -> float: @polarization_mismatch.setter def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -184,7 +209,7 @@ def pointing_error_loss(self) -> float: @pointing_error_loss.setter def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -196,14 +221,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -216,7 +241,7 @@ def fading_availability(self) -> float: @fading_availability.setter def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -229,7 +254,7 @@ def std_deviation(self) -> float: @std_deviation.setter def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -242,7 +267,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -255,7 +280,7 @@ def rain_availability(self) -> float: @rain_availability.setter def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -268,7 +293,7 @@ def rain_rate(self) -> float: @rain_rate.setter def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -281,7 +306,7 @@ def polarization_tilt_angle(self) -> float: @polarization_tilt_angle.setter def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -294,7 +319,9 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -307,7 +334,7 @@ def temperature(self) -> float: @temperature.setter def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -320,7 +347,7 @@ def total_air_pressure(self) -> float: @total_air_pressure.setter def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -333,5 +360,6 @@ def water_vapor_concentration(self) -> float: @water_vapor_concentration.setter def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index 0d9b62e96ce..6934d9eba18 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class Isolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -28,7 +53,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -41,19 +66,19 @@ def noise_temperature(self) -> float: @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -63,14 +88,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -80,14 +105,14 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the isolator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -100,7 +125,7 @@ def insertion_loss(self) -> float: @insertion_loss.setter def insertion_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Insertion Loss={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -113,7 +138,7 @@ def finite_reverse_isolation(self) -> bool: @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -126,7 +151,7 @@ def reverse_isolation(self) -> float: @reverse_isolation.setter def reverse_isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -139,7 +164,7 @@ def finite_bandwidth(self) -> bool: @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -152,7 +177,7 @@ def out_of_band_attenuation(self) -> float: @out_of_band_attenuation.setter def out_of_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Out-of-band Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -165,9 +190,9 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -180,9 +205,9 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -195,9 +220,9 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -210,15 +235,14 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py index ab59ea96afb..108df462629 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class LogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -33,31 +58,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -70,7 +95,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -83,19 +108,19 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): FREE_SPACE = "Free Space" @@ -110,14 +135,14 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Log Distance model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def path_loss_exponent(self) -> float: @@ -130,7 +155,7 @@ def path_loss_exponent(self) -> float: @path_loss_exponent.setter def path_loss_exponent(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Path Loss Exponent={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Exponent={value}"]) @property def custom_fading_margin(self) -> float: @@ -143,7 +168,7 @@ def custom_fading_margin(self) -> float: @custom_fading_margin.setter def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -156,7 +181,7 @@ def polarization_mismatch(self) -> float: @polarization_mismatch.setter def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -169,7 +194,7 @@ def pointing_error_loss(self) -> float: @pointing_error_loss.setter def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -181,14 +206,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -201,7 +226,7 @@ def fading_availability(self) -> float: @fading_availability.setter def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -214,7 +239,7 @@ def std_deviation(self) -> float: @std_deviation.setter def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -227,7 +252,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -240,7 +265,7 @@ def rain_availability(self) -> float: @rain_availability.setter def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -253,7 +278,7 @@ def rain_rate(self) -> float: @rain_rate.setter def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -266,7 +291,7 @@ def polarization_tilt_angle(self) -> float: @polarization_tilt_angle.setter def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -279,7 +304,9 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -292,7 +319,7 @@ def temperature(self) -> float: @temperature.setter def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -305,7 +332,7 @@ def total_air_pressure(self) -> float: @total_air_pressure.setter def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -318,5 +345,6 @@ def water_vapor_concentration(self) -> float: @water_vapor_concentration.setter def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py index d800b688991..5709fd635dd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class MPlexBandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -28,26 +53,26 @@ class PowerDirectionOption(Enum): @property def power_direction(self) -> PowerDirectionOption: """Power Direction - " """ + " """ val = self._get_property("Power Direction") val = self.PowerDirectionOption[val] return val @power_direction.setter def power_direction(self, value: PowerDirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Power Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Power Direction={value.value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -60,7 +85,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -73,19 +98,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -99,14 +124,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -119,7 +144,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -132,7 +157,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -155,14 +180,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -175,7 +200,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -188,7 +213,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -201,7 +226,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -214,5 +239,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index e17754b2144..65d5526e6cb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class Multiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -32,7 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -45,19 +70,19 @@ def noise_temperature(self) -> float: @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_PASS_BAND = "By Pass Band" @@ -67,14 +92,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -84,14 +109,14 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the multiplexer.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def flip_ports_vertically(self) -> bool: @@ -104,26 +129,25 @@ def flip_ports_vertically(self) -> bool: @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Flip Ports Vertically={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flip Ports Vertically={value}"]) @property def ports(self): """Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ + " """ val = self._get_property("Ports") return val @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py index 90e19b9f9da..ebd09b1d5c8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class MultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -32,14 +57,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def filename(self) -> str: @@ -52,7 +77,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def insertion_loss(self) -> float: @@ -65,7 +90,7 @@ def insertion_loss(self) -> float: @insertion_loss.setter def insertion_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Insertion Loss={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -78,7 +103,7 @@ def stop_band_attenuation(self) -> float: @stop_band_attenuation.setter def stop_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop band Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -91,9 +116,9 @@ def max_pass_band(self) -> float: return val @max_pass_band.setter - def max_pass_band(self, value : float|str): + def max_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -106,9 +131,9 @@ def min_stop_band(self) -> float: return val @min_stop_band.setter - def min_stop_band(self, value : float|str): + def min_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -121,9 +146,9 @@ def max_stop_band(self) -> float: return val @max_stop_band.setter - def max_stop_band(self, value : float|str): + def max_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -136,9 +161,9 @@ def min_pass_band(self) -> float: return val @min_pass_band.setter - def min_pass_band(self, value : float|str): + def min_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -151,9 +176,9 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -166,9 +191,9 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -181,9 +206,9 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -196,15 +221,14 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py index c8b09e15ad1..ecf04ceb777 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class OutboardTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -33,7 +58,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -46,19 +71,19 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -71,7 +96,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -84,19 +109,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -110,14 +135,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -130,7 +155,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -143,7 +168,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -166,14 +191,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -186,7 +211,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -199,7 +224,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -212,7 +237,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -225,5 +250,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py index 89fa1b61444..76323b9873d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ParametricCouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -25,36 +50,36 @@ def delete(self): @property def antenna_a(self) -> EmitNode: """Antenna A - " """ + " """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B - " """ + " """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -67,7 +92,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -80,19 +105,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -106,14 +131,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -126,7 +151,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -139,7 +164,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -162,14 +187,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -182,7 +207,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -195,7 +220,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -208,7 +233,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -221,5 +246,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py index da9a0ec31b7..c2a721642f8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class PlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -33,7 +58,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def attached(self) -> bool: @@ -46,31 +71,31 @@ def attached(self) -> bool: @attached.setter def attached(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) @property def position(self) -> float: """Position "Set position of the marker along the X-axis." - " """ + " """ val = self._get_property("Position") return val @position.setter def position(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def position(self) -> float: """Position "Set position of the marker along the Y-axis." - " """ + " """ val = self._get_property("Position") return val @position.setter def position(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def floating_label(self) -> bool: @@ -83,7 +108,7 @@ def floating_label(self) -> bool: @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -96,7 +121,7 @@ def position_from_left(self) -> float: @position_from_left.setter def position_from_left(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position from Left={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -109,19 +134,19 @@ def position_from_top(self) -> float: @position_from_top.setter def position_from_top(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position from Top={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) @property def text(self) -> str: """Text "Set the text of the label." - " """ + " """ val = self._get_property("Text") return val @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -132,14 +157,16 @@ class HorizontalPositionOption(Enum): def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position "Specify horizontal position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] return val @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Horizontal Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Horizontal Position={value.value}"] + ) class VerticalPositionOption(Enum): TOP = "Top" @@ -150,14 +177,14 @@ class VerticalPositionOption(Enum): def vertical_position(self) -> VerticalPositionOption: """Vertical Position "Specify vertical position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] return val @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -168,14 +195,14 @@ class TextAlignmentOption(Enum): def text_alignment(self) -> TextAlignmentOption: """Text Alignment "Specify justification applied to multi-line text." - " """ + " """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] return val @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) @property def font(self): @@ -188,7 +215,7 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -201,7 +228,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -214,7 +241,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -227,7 +254,7 @@ def border(self) -> bool: @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -240,7 +267,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -253,7 +280,7 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -277,14 +304,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Specify symbol displayed next to the label." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -297,7 +324,7 @@ def arrow_direction(self) -> int: @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -310,7 +337,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -323,7 +350,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -336,7 +363,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -349,5 +376,4 @@ def filled(self) -> bool: @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py index 744d76f4cb6..1d329939271 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class PlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -29,13 +54,13 @@ def delete(self): def title(self) -> str: """Title "Enter title at the top of the plot, room will be made for it." - " """ + " """ val = self._get_property("Title") return val @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) @property def title_font(self): @@ -48,7 +73,7 @@ def title_font(self): @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -61,7 +86,7 @@ def show_legend(self) -> bool: @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) @property def legend_font(self): @@ -74,7 +99,7 @@ def legend_font(self): @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) @property def display_cad_overlay(self) -> bool: @@ -87,7 +112,7 @@ def display_cad_overlay(self) -> bool: @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -100,19 +125,19 @@ def opacity(self) -> float: @opacity.setter def opacity(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Opacity={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset "Adjust vertical position of CAD model overlay." - " """ + " """ val = self._get_property("Vertical Offset") return val @vertical_offset.setter def vertical_offset(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Vertical Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -125,7 +150,7 @@ def range_axis_rotation(self) -> float: @range_axis_rotation.setter def range_axis_rotation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Range Axis Rotation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -138,55 +163,55 @@ def lock_axes(self) -> bool: @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min "Set lower extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Min") return val @x_axis_min.setter def x_axis_min(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"X-axis Min={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max "Set upper extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Max") return val @x_axis_max.setter def x_axis_max(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"X-axis Max={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min "Set lower extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Min") return val @y_axis_min.setter def y_axis_min(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y-axis Min={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max "Set upper extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Max") return val @y_axis_max.setter def y_axis_max(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y-axis Max={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -199,7 +224,7 @@ def y_axis_range(self) -> float: @y_axis_range.setter def y_axis_range(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y-axis Range={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) @property def max_major_ticks(self) -> int: @@ -212,7 +237,7 @@ def max_major_ticks(self) -> int: @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Major Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks={value}"]) @property def max_minor_ticks(self) -> int: @@ -225,7 +250,7 @@ def max_minor_ticks(self) -> int: @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Minor Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks={value}"]) @property def max_major_ticks(self) -> int: @@ -238,7 +263,7 @@ def max_major_ticks(self) -> int: @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Major Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks={value}"]) @property def max_minor_ticks(self) -> int: @@ -251,7 +276,7 @@ def max_minor_ticks(self) -> int: @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Minor Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks={value}"]) @property def axis_label_font(self): @@ -264,7 +289,7 @@ def axis_label_font(self): @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -277,7 +302,7 @@ def axis_tick_label_font(self): @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -291,14 +316,16 @@ class MajorGridLineStyleOption(Enum): def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style "Select line style of major-tick grid lines." - " """ + " """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] return val @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Major Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] + ) @property def major_grid_color(self): @@ -311,7 +338,7 @@ def major_grid_color(self): @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -325,14 +352,16 @@ class MinorGridLineStyleOption(Enum): def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style "Select line style of minor-tick grid lines." - " """ + " """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] return val @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Minor Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] + ) @property def minor_grid_color(self): @@ -345,7 +374,7 @@ def minor_grid_color(self): @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -358,7 +387,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -370,14 +399,16 @@ class BBPowerforPlotsUnitOption(Enum): def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit "Units to use for plotting broadband power densities." - " """ + " """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] return val @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"BB Power for Plots Unit={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] + ) @property def bb_power_bandwidth(self) -> float: @@ -390,9 +421,9 @@ def bb_power_bandwidth(self) -> float: return val @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value : float|str): + def bb_power_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -405,5 +436,4 @@ def log_scale(self) -> bool: @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Log Scale={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py index c40cde9206b..b2a53bbf314 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class PowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -28,7 +53,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -41,19 +66,19 @@ def noise_temperature(self) -> float: @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -64,14 +89,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class OrientationOption(Enum): DIVIDER = "Divider" @@ -81,14 +106,14 @@ class OrientationOption(Enum): def orientation(self) -> OrientationOption: """Orientation "Defines the orientation of the Power Divider.." - " """ + " """ val = self._get_property("Orientation") val = self.OrientationOption[val] return val @orientation.setter def orientation(self, value: OrientationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value.value}"]) @property def insertion_loss_above_ideal(self) -> float: @@ -101,7 +126,9 @@ def insertion_loss_above_ideal(self) -> float: @insertion_loss_above_ideal.setter def insertion_loss_above_ideal(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Insertion Loss Above Ideal={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Insertion Loss Above Ideal={value}"] + ) @property def finite_isolation(self) -> bool: @@ -114,7 +141,7 @@ def finite_isolation(self) -> bool: @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -127,7 +154,7 @@ def isolation(self) -> float: @isolation.setter def isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -140,7 +167,7 @@ def finite_bandwidth(self) -> bool: @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -153,7 +180,7 @@ def out_of_band_attenuation(self) -> float: @out_of_band_attenuation.setter def out_of_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Out-of-band Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -166,9 +193,9 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -181,9 +208,9 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -196,9 +223,9 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -211,15 +238,14 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py index d46ce891852..3148df722c3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class PowerTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -30,26 +55,26 @@ class DirectionOption(Enum): def direction(self) -> DirectionOption: """Direction "Direction of power flow (towards or away from the transmitter) to plot." - " """ + " """ val = self._get_property("Direction") val = self.DirectionOption[val] return val @direction.setter def direction(self, value: DirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Direction={value.value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -62,7 +87,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -75,19 +100,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -101,14 +126,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -121,7 +146,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -134,7 +159,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -157,14 +182,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -177,7 +202,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -190,7 +215,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -203,7 +228,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -216,5 +241,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py index 058b832ad2b..f909eebd4bb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ProfileTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -26,13 +51,13 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -45,7 +70,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -58,19 +83,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -84,14 +109,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -104,7 +129,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -117,7 +142,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -140,14 +165,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -160,7 +185,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -173,7 +198,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -186,7 +211,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -199,5 +224,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py index 584d7d62c69..22e55d9b9f4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class PropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -33,31 +58,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -70,7 +95,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -83,19 +108,19 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def custom_fading_margin(self) -> float: @@ -108,7 +133,7 @@ def custom_fading_margin(self) -> float: @custom_fading_margin.setter def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -121,7 +146,7 @@ def polarization_mismatch(self) -> float: @polarization_mismatch.setter def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -134,7 +159,7 @@ def pointing_error_loss(self) -> float: @pointing_error_loss.setter def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -146,14 +171,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -166,7 +191,7 @@ def fading_availability(self) -> float: @fading_availability.setter def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -179,7 +204,7 @@ def std_deviation(self) -> float: @std_deviation.setter def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -192,7 +217,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -205,7 +230,7 @@ def rain_availability(self) -> float: @rain_availability.setter def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -218,7 +243,7 @@ def rain_rate(self) -> float: @rain_rate.setter def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -231,7 +256,7 @@ def polarization_tilt_angle(self) -> float: @polarization_tilt_angle.setter def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -244,7 +269,9 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -257,7 +284,7 @@ def temperature(self) -> float: @temperature.setter def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -270,7 +297,7 @@ def total_air_pressure(self) -> float: @total_air_pressure.setter def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -283,5 +310,6 @@ def water_vapor_concentration(self) -> float: @water_vapor_concentration.setter def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py index 55a096b32a5..113e999ca2d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class RadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -28,11 +53,11 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Name: - " "Type: - " """ + "Name: + " "Type: + " """ return self._get_table_data() @table_data.setter @@ -43,11 +68,10 @@ def table_data(self, value): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py index e29c74f6923..7abe5cb06ad 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyAmplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -27,7 +52,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -39,7 +64,7 @@ class AmplifierTypeOption(Enum): def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type "Configures the amplifier as a Tx or Rx amplifier." - " """ + " """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] return val @@ -138,4 +163,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py index e07566fa950..19823bd838f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyAntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -14,7 +39,7 @@ def parent(self): def tags(self) -> str: """Tags "Space delimited list of tags for coupling selections." - " """ + " """ val = self._get_property("Tags") return val @@ -53,7 +78,7 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -98,7 +123,7 @@ def antenna_temperature(self) -> float: def type(self): """Type "Defines the type of antenna." - " """ + " """ val = self._get_property("Type") return val @@ -137,7 +162,7 @@ class BoresightOption(Enum): def boresight(self) -> BoresightOption: """Boresight "Select peak beam direction in local coordinates." - " """ + " """ val = self._get_property("Boresight") val = self.BoresightOption[val] return val @@ -311,7 +336,7 @@ class AntennaPolarizationOption(Enum): def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] return val @@ -324,7 +349,7 @@ class CrossDipoleModeOption(Enum): def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode "Choose the Cross Dipole type." - " """ + " """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] return val @@ -337,7 +362,7 @@ class CrossDipolePolarizationOption(Enum): def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] return val @@ -397,7 +422,7 @@ class ConformtoPlatformOption(Enum): def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform "Select method of automated conforming applied after Element Offset." - " """ + " """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] return val @@ -411,7 +436,7 @@ class ReferencePlaneOption(Enum): def reference_plane(self) -> ReferencePlaneOption: """Reference Plane "Select reference plane for determining original element heights." - " """ + " """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] return val @@ -465,7 +490,7 @@ def color(self): def el_sample_interval(self) -> float: """El Sample Interval "Space between elevation-angle samples of pattern." - " """ + " """ val = self._get_property("El Sample Interval") return val @@ -473,7 +498,7 @@ def el_sample_interval(self) -> float: def az_sample_interval(self) -> float: """Az Sample Interval "Space between azimuth-angle samples of pattern." - " """ + " """ val = self._get_property("Az Sample Interval") return val @@ -490,7 +515,7 @@ def has_frequency_domain(self) -> bool: def frequency_domain(self): """Frequency Domain "Frequency sample(s) defining antenna." - " """ + " """ val = self._get_property("Frequency Domain") return val @@ -498,7 +523,7 @@ def frequency_domain(self): def number_of_electric_sources(self) -> int: """Number of Electric Sources "Number of freestanding electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Electric Sources") return val @@ -506,7 +531,7 @@ def number_of_electric_sources(self) -> int: def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources "Number of freestanding magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Magnetic Sources") return val @@ -514,7 +539,7 @@ def number_of_magnetic_sources(self) -> int: def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources "Number of imaged, half-space radiating electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Electric Sources") return val @@ -522,7 +547,7 @@ def number_of_imaged_electric_sources(self) -> int: def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources "Number of imaged, half-space radiating magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Magnetic Sources") return val @@ -530,7 +555,7 @@ def number_of_imaged_magnetic_sources(self) -> int: def waveguide_height(self) -> float: """Waveguide Height "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." - " """ + " """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") return val @@ -539,7 +564,7 @@ def waveguide_height(self) -> float: def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." - " """ + " """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -548,7 +573,7 @@ def waveguide_cutoff_frequency(self) -> float: def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." - " """ + " """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -562,7 +587,7 @@ class SWEModeTruncationOption(Enum): def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation "Select the method for stability-enhancing truncation of spherical wave expansion terms." - " """ + " """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] return val @@ -580,7 +605,7 @@ def max_n_index(self) -> int: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -606,7 +631,7 @@ def use_phase_center(self) -> bool: def coordinate_systems(self) -> str: """Coordinate Systems "Specifies the coordinate system for the phase center of this antenna." - " """ + " """ val = self._get_property("Coordinate Systems") return val @@ -627,4 +652,3 @@ def phasecenterorientation(self): """ val = self._get_property("PhaseCenterOrientation") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py index bd98c0b7fe5..2db0cb29ca5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyAntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -72,7 +97,6 @@ def higher_stop_band(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py index 333cf6d61f6..999ae25b7e8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -14,7 +39,7 @@ def parent(self): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") return val @@ -40,7 +65,7 @@ def use_emission_designator(self) -> bool: def emission_designator(self) -> str: """Emission Designator "Enter the Emission Designator to define the bandwidth and modulation." - " """ + " """ val = self._get_property("Emission Designator") return val @@ -48,7 +73,7 @@ def emission_designator(self) -> str: def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." - " """ + " """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -57,7 +82,7 @@ def emission_designator_ch_bw(self) -> float: def emit_modulation_type(self) -> str: """EMIT Modulation Type "Modulation based off the emission designator." - " """ + " """ val = self._get_property("EMIT Modulation Type") return val @@ -97,7 +122,7 @@ class ModulationOption(Enum): def modulation(self) -> ModulationOption: """Modulation "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Modulation") val = self.ModulationOption[val] return val @@ -152,7 +177,7 @@ def sidelobes(self) -> int: @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ @@ -172,7 +197,7 @@ class PSKTypeOption(Enum): def psk_type(self) -> PSKTypeOption: """PSK Type "PSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] return val @@ -186,7 +211,7 @@ class FSKTypeOption(Enum): def fsk_type(self) -> FSKTypeOption: """FSK Type "FSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] return val @@ -202,7 +227,7 @@ class QAMTypeOption(Enum): def qam_type(self) -> QAMTypeOption: """QAM Type "QAM modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] return val @@ -218,7 +243,7 @@ class APSKTypeOption(Enum): def apsk_type(self) -> APSKTypeOption: """APSK Type "APSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] return val @@ -274,7 +299,7 @@ class RadarTypeOption(Enum): def radar_type(self) -> RadarTypeOption: """Radar Type "Radar type: helps determine spectral profile." - " """ + " """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] return val @@ -403,4 +428,3 @@ def fm_freq_dev_bandwidth(self) -> float: val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py index be2a0e34ea0..609059ce036 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyBandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -9,4 +34,3 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py index ffc01cd9f13..c58356b024c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyCADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +64,7 @@ class ModelTypeOption(Enum): def model_type(self) -> ModelTypeOption: """Model Type "Select type of parametric model to create." - " """ + " """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] return val @@ -187,7 +212,7 @@ def focal_length(self) -> float: def offset(self) -> float: """Offset "Offset of parabolic reflector." - " """ + " """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") return val @@ -263,7 +288,7 @@ class MeshOptionOption(Enum): def mesh_option(self) -> MeshOptionOption: """Mesh Option "Select from different meshing options." - " """ + " """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] return val @@ -312,7 +337,7 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -354,7 +379,7 @@ class RenderModeOption(Enum): def render_mode(self) -> RenderModeOption: """Render Mode "Select drawing style for surfaces." - " """ + " """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] return val @@ -390,7 +415,7 @@ def max(self): def number_of_surfaces(self) -> int: """Number of Surfaces "Number of surfaces in the model." - " """ + " """ val = self._get_property("Number of Surfaces") return val @@ -407,7 +432,6 @@ def color(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py index 687d9efcc26..96e31b03517 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyCable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -27,7 +52,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -40,7 +65,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -96,7 +121,6 @@ def dielectric_loss_constant(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py index f72db484ef6..57955110774 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyCirculator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -27,7 +52,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -39,7 +64,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -52,7 +77,7 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the circulator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @@ -146,7 +171,6 @@ def higher_stop_band(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py index 67921ba175a..142edb7bea0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -24,7 +49,6 @@ def ports(self): """Ports "Maps each port in the link to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Ports") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py index 5755c96c846..69441c5b321 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyCouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -27,7 +52,6 @@ def global_default_coupling(self) -> float: def antenna_tags(self) -> str: """Antenna Tags "All tags currently used by all antennas in the project." - " """ + " """ val = self._get_property("Antenna Tags") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py index 96e388f35f1..5029f5ca9e8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,11 +37,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Value (dB): + "Value (dB): " Value should be between -1000 and 0." """ return self._get_table_data() @@ -34,7 +59,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -42,7 +67,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -68,7 +93,6 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py index a76457092ae..7ce5ccacabd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -9,7 +34,7 @@ def __init__(self, oDesign, result_id, node_id): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -22,7 +47,7 @@ class GroundPlaneNormalOption(Enum): def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal "Specifies the axis of the normal to the ground plane." - " """ + " """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] return val @@ -31,8 +56,7 @@ def ground_plane_normal(self) -> GroundPlaneNormalOption: def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." - " """ + " """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py index b9970309043..f4325567902 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -23,7 +48,7 @@ def enabled(self) -> bool: def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -31,7 +56,7 @@ def base_antenna(self) -> EmitNode: def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -57,7 +82,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -70,7 +95,7 @@ class TerrainCategoryOption(Enum): def terrain_category(self) -> TerrainCategoryOption: """Terrain Category "Specify the terrain category type for the Erceg model." - " """ + " """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] return val @@ -112,7 +137,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -206,4 +231,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py index 0554fd61fa8..49f31bd1302 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyFilter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -27,7 +52,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -44,7 +69,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -149,7 +174,7 @@ def higher_stop_band(self) -> float: @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ @@ -159,7 +184,7 @@ def lower_cutoff_(self) -> float: @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ @@ -169,7 +194,7 @@ def lower_stop_band_(self) -> float: @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ @@ -179,7 +204,7 @@ def higher_stop_band_(self) -> float: @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ @@ -189,7 +214,7 @@ def higher_cutoff_(self) -> float: @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency "Lowest tuned frequency." "Value should be between 1 and 1e+11." """ @@ -199,7 +224,7 @@ def lowest_tuned_frequency_(self) -> float: @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency "Highest tuned frequency." "Value should be between 1 and 1e+11." """ @@ -229,7 +254,6 @@ def shape_factor(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py index 82a84b61400..8779e6de7cf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -23,7 +48,7 @@ def enabled(self) -> bool: def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -31,7 +56,7 @@ def base_antenna(self) -> EmitNode: def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -57,7 +82,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -70,7 +95,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment for the 5G channel model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -101,7 +126,7 @@ class NYUBPLModelOption(Enum): def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model "Specify the NYU Building Penetration Loss model." - " """ + " """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] return val @@ -143,7 +168,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -237,4 +262,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py index 96a6c542889..92993c4d244 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -23,7 +48,7 @@ def enabled(self) -> bool: def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -31,7 +56,7 @@ def base_antenna(self) -> EmitNode: def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -57,7 +82,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -71,7 +96,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Hata model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -113,7 +138,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -207,4 +232,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py index e023aac8d72..d86d40293f6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,13 +37,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Power Loss Coefficient: + "Power Loss Coefficient: " Value should be between 0 and 100." - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): " Value should be between 0 and 1000." """ return self._get_table_data() @@ -36,7 +61,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -44,7 +69,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -70,7 +95,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -85,7 +110,7 @@ class BuildingTypeOption(Enum): def building_type(self) -> BuildingTypeOption: """Building Type "Specify the building type for the Indoor Propagation model." - " """ + " """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] return val @@ -136,7 +161,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -230,4 +255,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py index 723155eb0d1..0a0033eb17c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyIsolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -27,7 +52,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -39,7 +64,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -52,7 +77,7 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the isolator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @@ -146,7 +171,6 @@ def higher_stop_band(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py index c064c8a3b00..df4abf7706b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -23,7 +48,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -31,7 +56,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -57,7 +82,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -74,7 +99,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Log Distance model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -125,7 +150,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -219,4 +244,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py index 8afb7b32af5..8d6b11fd044 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyMultiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -27,7 +52,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -39,7 +64,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -52,7 +77,7 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the multiplexer.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @@ -71,7 +96,7 @@ def ports(self): """Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ + " """ val = self._get_property("Ports") return val @@ -79,7 +104,6 @@ def ports(self): def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py index 55a30d26621..aab9d9a1343 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -20,7 +45,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -136,7 +161,6 @@ def higher_stop_band(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py index d060dfad2e8..cdf78e3cfce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyPowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -27,7 +52,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -40,7 +65,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -53,7 +78,7 @@ class OrientationOption(Enum): def orientation(self) -> OrientationOption: """Orientation "Defines the orientation of the Power Divider.." - " """ + " """ val = self._get_property("Orientation") val = self.OrientationOption[val] return val @@ -147,7 +172,6 @@ def higher_stop_band(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py index 3971af9d479..72efc32a64d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -23,7 +48,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -31,7 +56,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -57,7 +82,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -98,7 +123,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -192,4 +217,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py index e7e9e6309d2..84e6f0fa1a5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyRadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,18 +37,17 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Name: - " "Type: - " """ + "Name: + " "Type: + " """ return self._get_table_data() @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py index 7200ded6877..49ab661f127 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyRfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -27,4 +52,3 @@ def enforce_thermal_noise_floor(self) -> bool: """ val = self._get_property("Enforce Thermal Noise Floor") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py index c96e17dc510..93c85821e11 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyRxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -32,7 +57,7 @@ def source_file(self) -> str: def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -46,7 +71,7 @@ class MeasurementModeOption(Enum): def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode "Defines the mode for the receiver measurement." - " """ + " """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] return val @@ -215,4 +240,3 @@ def exclude_mixer_products_below_noise(self) -> bool: """ val = self._get_property("Exclude Mixer Products Below Noise") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py index 01b24815cab..36eb9755631 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -19,7 +44,7 @@ class MixerProductTaperOption(Enum): def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper "Taper for setting amplitude of mixer products." - " """ + " """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] return val @@ -126,7 +151,7 @@ class MixingModeOption(Enum): def mixing_mode(self) -> MixingModeOption: """Mixing Mode "Specifies whether the IF frequency is > or < RF channel frequency." - " """ + " """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] return val @@ -144,7 +169,7 @@ def first_if_frequency(self): def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." - " """ + " """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -157,7 +182,7 @@ class UseHighLOOption(Enum): def use_high_lo(self) -> UseHighLOOption: """Use High LO "Use High LO above/below the transition frequency." - " """ + " """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] return val @@ -170,8 +195,7 @@ class MixerProductTableUnitsOption(Enum): def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units "Specifies the units for the Mixer Products." - " """ + " """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py index 3339801422b..a1c7bb94686 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -9,4 +34,3 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py index 8a576345f53..44125e171b2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -18,4 +43,3 @@ def use_arithmetic_mean(self) -> bool: """ val = self._get_property("Use Arithmetic Mean") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py index e21711da12b..80d4ae72f21 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyRxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,13 +37,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -31,8 +56,7 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py index c25aa7f680b..c615cade63e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -20,14 +45,14 @@ class SensitivityUnitsOption(Enum): def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units "Units to use for the Rx Sensitivity." - " """ + " """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] return val @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr "Received signal power level at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ @@ -82,7 +107,7 @@ def rx_noise_figure(self) -> float: @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." "Value should be between -1000 and 1000." """ @@ -92,7 +117,7 @@ def receiver_sensitivity_(self) -> float: @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity "SNR or SINAD at the specified sensitivity level." "Value should be between -1000 and 1000." """ @@ -120,7 +145,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." "Value should be between -1000 and 1000." """ @@ -146,4 +171,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py index 5feba9747ed..abe3a6adc62 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlySamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,11 +37,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Min: + "Min: " Value should be greater than 1." - "Max: + "Max: " Value should be greater than 1." """ return self._get_table_data() @@ -30,7 +55,7 @@ class SamplingTypeOption(Enum): def sampling_type(self) -> SamplingTypeOption: """Sampling Type "Sampling to apply to this configuration." - " """ + " """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] return val @@ -75,7 +100,7 @@ def seed(self) -> int: def total_tx_channels(self) -> int: """Total Tx Channels "Total number of transmit channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Tx Channels") return val @@ -83,7 +108,7 @@ def total_tx_channels(self) -> int: def total_rx_channels(self) -> int: """Total Rx Channels "Total number of receive channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Rx Channels") return val @@ -91,7 +116,6 @@ def total_rx_channels(self) -> int: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py index 81d70bcae59..ea474e49962 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlySceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -45,7 +70,7 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -90,7 +115,6 @@ def box_color(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py index 46a97aca42a..c63b5ce5fd2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +66,6 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py index 11617fde044..7c3eb46e7b9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlySolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -18,4 +43,3 @@ def enabled(self) -> bool: """ val = self._get_property("Enabled") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py index 28d94d8e679..3b3ef6682dd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlySparameter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -27,7 +52,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -36,7 +61,7 @@ def radio_side_ports(self): """Radio Side Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ + " """ val = self._get_property("Radio Side Ports") return val @@ -45,7 +70,7 @@ def antenna_side_ports(self): """Antenna Side Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ + " """ val = self._get_property("Antenna Side Ports") return val @@ -53,7 +78,6 @@ def antenna_side_ports(self): def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py index ff5ddc47da9..c1b4ca2cea9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyTR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -27,7 +52,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -39,7 +64,7 @@ class TxPortOption(Enum): def tx_port(self) -> TxPortOption: """Tx Port "Specifies which port on the TR Switch is part of the Tx path.." - " """ + " """ val = self._get_property("Tx Port") val = self.TxPortOption[val] return val @@ -52,7 +77,7 @@ class CommonPortLocationOption(Enum): def common_port_location(self) -> CommonPortLocationOption: """Common Port Location "Defines the orientation of the tr switch.." - " """ + " """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] return val @@ -141,4 +166,3 @@ def higher_stop_band(self) -> float: val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py index e5dda4afa22..9ff7f96311c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyTerminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -27,7 +52,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -39,7 +64,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -52,7 +77,7 @@ class PortLocationOption(Enum): def port_location(self) -> PortLocationOption: """Port Location "Defines the orientation of the terminator.." - " """ + " """ val = self._get_property("Port Location") val = self.PortLocationOption[val] return val @@ -70,7 +95,6 @@ def vswr(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py index aaf393b8e59..b21d8fbd140 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +66,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -58,7 +83,7 @@ def filename(self) -> str: def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File "Coupling data generated by Savant and exported as a matched file." - " """ + " """ val = self._get_property("Savant Matched Coupling File") return val @@ -76,7 +101,7 @@ def port_antenna_assignment(self): """Port-Antenna Assignment "Maps each port in the coupling file to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Port-Antenna Assignment") return val @@ -84,7 +109,6 @@ def port_antenna_assignment(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py index 76d90afd89a..47bfbe5c576 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -23,7 +48,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -31,7 +56,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -57,7 +82,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -116,7 +141,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -210,4 +235,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py index 0028a9f37ae..dd1aa24dc2b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -14,9 +39,9 @@ def parent(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): " Value should be between -200 and 150." """ return self._get_table_data() @@ -31,7 +56,7 @@ class NoiseBehaviorOption(Enum): def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior "Specifies the behavior of the parametric noise profile." - " """ + " """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] return val @@ -44,4 +69,3 @@ def use_log_linear_interpolation(self) -> bool: """ val = self._get_property("Use Log-Linear Interpolation") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py index c0d4c45d06e..85f7ca097ce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -18,8 +43,7 @@ class HarmonicTableUnitsOption(Enum): def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units "Specifies the units for the Harmonics." - " """ + " """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py index f5e467b20f2..716e0cae37e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyTxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -32,7 +57,7 @@ def source_file(self) -> str: def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -74,4 +99,3 @@ def exclude_harmonics_below_noise(self) -> bool: """ val = self._get_property("Exclude Harmonics Below Noise") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py index fdf31ea4ce4..b88d728a0f2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -18,7 +43,7 @@ class NarrowbandBehaviorOption(Enum): def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." - " """ + " """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] return val @@ -27,8 +52,7 @@ def narrowband_behavior(self) -> NarrowbandBehaviorOption: def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - " """ + " """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py index ea670ab4ff4..831ce3be5eb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyTxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -14,7 +39,7 @@ def parent(self): def output_voltage_peak(self) -> float: """Output Voltage Peak "Output High Voltage Level: maximum voltage of the digital signal." - " """ + " """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") return val @@ -76,7 +101,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ @@ -111,4 +136,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py index 632c7d4f3fd..d19f8771c4a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -18,7 +43,7 @@ class SpectrumTypeOption(Enum): def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type "Specifies EMI Margins to calculate." - " """ + " """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] return val @@ -31,7 +56,7 @@ class TxPowerOption(Enum): def tx_power(self) -> TxPowerOption: """Tx Power "Method used to specify the power." - " """ + " """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] return val @@ -84,7 +109,7 @@ class HarmonicTaperOption(Enum): def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper "Taper type used to set amplitude of harmonics." - " """ + " """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] return val @@ -200,7 +225,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ @@ -235,4 +260,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py index bf400d8c923..46822f23973 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyTxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,13 +37,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -31,8 +56,7 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py index f185652b9d2..3346ddc8371 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -23,7 +48,7 @@ def enabled(self) -> bool: def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -31,7 +56,7 @@ def base_antenna(self) -> EmitNode: def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -57,7 +82,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -69,7 +94,7 @@ class PathLossTypeOption(Enum): def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type "Specify LOS vs NLOS for the Walfisch-Ikegami model." - " """ + " """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] return val @@ -82,7 +107,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Walfisch model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -163,7 +188,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -257,4 +282,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py index 69347c43239..d14ee543959 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ReadOnlyWaveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -14,7 +39,7 @@ def parent(self): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") return val @@ -29,7 +54,7 @@ class WaveformOption(Enum): def waveform(self) -> WaveformOption: """Waveform "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Waveform") val = self.WaveformOption[val] return val @@ -92,7 +117,7 @@ class SpreadingTypeOption(Enum): def spreading_type(self) -> SpreadingTypeOption: """Spreading Type "Type of spreading employed by the Spread Spectrum Clock." - " """ + " """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] return val @@ -118,7 +143,7 @@ def imported_spectrum(self) -> str: def raw_data_format(self) -> str: """Raw Data Format "Format of the imported raw data." - " """ + " """ val = self._get_property("Raw Data Format") return val @@ -176,7 +201,7 @@ class AlgorithmOption(Enum): def algorithm(self) -> AlgorithmOption: """Algorithm "Algorithm used to transform the imported time domain spectrum." - " """ + " """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] return val @@ -195,7 +220,7 @@ def start_time(self) -> float: def stop_time(self) -> float: """Stop Time "Final time of the imported time domain spectrum." - " """ + " """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") return val @@ -225,7 +250,7 @@ class WindowTypeOption(Enum): def window_type(self) -> WindowTypeOption: """Window Type "Windowing scheme used for importing time domain spectrum." - " """ + " """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] return val @@ -294,4 +319,3 @@ def delay_skew(self) -> float: val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py index 7a6006b4f88..5eeeea8183f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class ResultPlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -17,13 +42,13 @@ def export_model(self, file_name): def title(self) -> str: """Title "Enter title at the top of the plot, room will be made for it." - " """ + " """ val = self._get_property("Title") return val @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) @property def title_font(self): @@ -36,7 +61,7 @@ def title_font(self): @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -49,7 +74,7 @@ def show_legend(self) -> bool: @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) @property def legend_font(self): @@ -62,7 +87,7 @@ def legend_font(self): @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) @property def show_emi_thresholds(self) -> bool: @@ -75,7 +100,7 @@ def show_emi_thresholds(self) -> bool: @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show EMI Thresholds={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show EMI Thresholds={value}"]) @property def display_cad_overlay(self) -> bool: @@ -88,7 +113,7 @@ def display_cad_overlay(self) -> bool: @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -101,19 +126,19 @@ def opacity(self) -> float: @opacity.setter def opacity(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Opacity={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset "Adjust vertical position of CAD model overlay." - " """ + " """ val = self._get_property("Vertical Offset") return val @vertical_offset.setter def vertical_offset(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Vertical Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -126,7 +151,7 @@ def range_axis_rotation(self) -> float: @range_axis_rotation.setter def range_axis_rotation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Range Axis Rotation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -139,55 +164,55 @@ def lock_axes(self) -> bool: @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min "Set lower extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Min") return val @x_axis_min.setter def x_axis_min(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"X-axis Min={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max "Set upper extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Max") return val @x_axis_max.setter def x_axis_max(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"X-axis Max={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min "Set lower extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Min") return val @y_axis_min.setter def y_axis_min(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y-axis Min={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max "Set upper extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Max") return val @y_axis_max.setter def y_axis_max(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y-axis Max={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -200,7 +225,7 @@ def y_axis_range(self) -> float: @y_axis_range.setter def y_axis_range(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y-axis Range={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) @property def max_major_ticks(self) -> int: @@ -213,7 +238,7 @@ def max_major_ticks(self) -> int: @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Major Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks={value}"]) @property def max_minor_ticks(self) -> int: @@ -226,7 +251,7 @@ def max_minor_ticks(self) -> int: @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Minor Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks={value}"]) @property def max_major_ticks(self) -> int: @@ -239,7 +264,7 @@ def max_major_ticks(self) -> int: @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Major Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks={value}"]) @property def max_minor_ticks(self) -> int: @@ -252,7 +277,7 @@ def max_minor_ticks(self) -> int: @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Minor Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks={value}"]) @property def axis_label_font(self): @@ -265,7 +290,7 @@ def axis_label_font(self): @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -278,7 +303,7 @@ def axis_tick_label_font(self): @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -292,14 +317,16 @@ class MajorGridLineStyleOption(Enum): def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style "Select line style of major-tick grid lines." - " """ + " """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] return val @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Major Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] + ) @property def major_grid_color(self): @@ -312,7 +339,7 @@ def major_grid_color(self): @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -326,14 +353,16 @@ class MinorGridLineStyleOption(Enum): def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style "Select line style of minor-tick grid lines." - " """ + " """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] return val @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Minor Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] + ) @property def minor_grid_color(self): @@ -346,7 +375,7 @@ def minor_grid_color(self): @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -359,7 +388,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -371,14 +400,16 @@ class BBPowerforPlotsUnitOption(Enum): def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit "Units to use for plotting broadband power densities." - " """ + " """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] return val @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"BB Power for Plots Unit={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] + ) @property def bb_power_bandwidth(self) -> float: @@ -391,9 +422,9 @@ def bb_power_bandwidth(self) -> float: return val @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value : float|str): + def bb_power_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -406,5 +437,4 @@ def log_scale(self) -> bool: @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Log Scale={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py index c4cd7c1d011..416c79a619e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class RfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -21,7 +46,7 @@ def enable_passive_noise(self) -> bool: @enable_passive_noise.setter def enable_passive_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Passive Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Passive Noise={value}"]) @property def enforce_thermal_noise_floor(self) -> bool: @@ -34,5 +59,6 @@ def enforce_thermal_noise_floor(self) -> bool: @enforce_thermal_noise_floor.setter def enforce_thermal_noise_floor(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enforce Thermal Noise Floor={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Enforce Thermal Noise Floor={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py index ba57abf46d5..426192c03b7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class RxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +65,7 @@ def source_file(self) -> str: def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -54,14 +79,14 @@ class MeasurementModeOption(Enum): def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode "Defines the mode for the receiver measurement." - " """ + " """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] return val @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Measurement Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Mode={value.value}"]) @property def sinad_threshold(self) -> float: @@ -74,7 +99,7 @@ def sinad_threshold(self) -> float: @sinad_threshold.setter def sinad_threshold(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"SINAD Threshold={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SINAD Threshold={value}"]) @property def gps_cnr_threshold(self) -> float: @@ -87,7 +112,7 @@ def gps_cnr_threshold(self) -> float: @gps_cnr_threshold.setter def gps_cnr_threshold(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"GPS CNR Threshold={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GPS CNR Threshold={value}"]) @property def ber_threshold(self) -> float: @@ -100,7 +125,7 @@ def ber_threshold(self) -> float: @ber_threshold.setter def ber_threshold(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"BER Threshold={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BER Threshold={value}"]) @property def default_intended_power(self) -> bool: @@ -113,7 +138,7 @@ def default_intended_power(self) -> bool: @default_intended_power.setter def default_intended_power(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Default Intended Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Default Intended Power={value}"]) @property def intended_signal_power(self) -> float: @@ -126,7 +151,7 @@ def intended_signal_power(self) -> float: @intended_signal_power.setter def intended_signal_power(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Intended Signal Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Intended Signal Power={value}"]) @property def freq_deviation(self) -> float: @@ -139,9 +164,9 @@ def freq_deviation(self) -> float: return val @freq_deviation.setter - def freq_deviation(self, value : float|str): + def freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) @property def modulation_depth(self) -> float: @@ -154,7 +179,7 @@ def modulation_depth(self) -> float: @modulation_depth.setter def modulation_depth(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Modulation Depth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Depth={value}"]) @property def measure_selectivity(self) -> bool: @@ -167,7 +192,7 @@ def measure_selectivity(self) -> bool: @measure_selectivity.setter def measure_selectivity(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Measure Selectivity={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Selectivity={value}"]) @property def measure_mixer_products(self) -> bool: @@ -180,7 +205,7 @@ def measure_mixer_products(self) -> bool: @measure_mixer_products.setter def measure_mixer_products(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Measure Mixer Products={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Mixer Products={value}"]) @property def max_rf_order(self) -> int: @@ -193,7 +218,7 @@ def max_rf_order(self) -> int: @max_rf_order.setter def max_rf_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max RF Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max RF Order={value}"]) @property def max_lo_order(self) -> int: @@ -206,7 +231,7 @@ def max_lo_order(self) -> int: @max_lo_order.setter def max_lo_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max LO Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max LO Order={value}"]) @property def include_if(self) -> bool: @@ -219,7 +244,7 @@ def include_if(self) -> bool: @include_if.setter def include_if(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include IF={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include IF={value}"]) @property def measure_saturation(self) -> bool: @@ -232,7 +257,7 @@ def measure_saturation(self) -> bool: @measure_saturation.setter def measure_saturation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Measure Saturation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Saturation={value}"]) @property def use_ams_limits(self) -> bool: @@ -245,7 +270,7 @@ def use_ams_limits(self) -> bool: @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -258,9 +283,9 @@ def start_frequency(self) -> float: return val @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -273,9 +298,9 @@ def stop_frequency(self) -> float: return val @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def samples(self) -> int: @@ -288,7 +313,7 @@ def samples(self) -> int: @samples.setter def samples(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Samples={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Samples={value}"]) @property def exclude_mixer_products_below_noise(self) -> bool: @@ -301,14 +326,15 @@ def exclude_mixer_products_below_noise(self) -> bool: @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Exclude Mixer Products Below Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Exclude Mixer Products Below Noise={value}"] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py index 0c28429437f..85899d6270b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class RxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -21,11 +46,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class MixerProductTaperOption(Enum): CONSTANT = "Constant" @@ -36,14 +61,16 @@ class MixerProductTaperOption(Enum): def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper "Taper for setting amplitude of mixer products." - " """ + " """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] return val @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mixer Product Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Taper={value.value}"] + ) @property def mixer_product_susceptibility(self) -> float: @@ -56,7 +83,9 @@ def mixer_product_susceptibility(self) -> float: @mixer_product_susceptibility.setter def mixer_product_susceptibility(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mixer Product Susceptibility={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Susceptibility={value}"] + ) @property def spurious_rejection(self) -> float: @@ -69,7 +98,7 @@ def spurious_rejection(self) -> float: @spurious_rejection.setter def spurious_rejection(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Spurious Rejection={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spurious Rejection={value}"]) @property def minimum_tuning_frequency(self) -> float: @@ -82,9 +111,9 @@ def minimum_tuning_frequency(self) -> float: return val @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value : float|str): + def minimum_tuning_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Minimum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Tuning Frequency={value}"]) @property def maximum_tuning_frequency(self) -> float: @@ -97,9 +126,9 @@ def maximum_tuning_frequency(self) -> float: return val @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value : float|str): + def maximum_tuning_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Maximum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum Tuning Frequency={value}"]) @property def mixer_product_slope(self) -> float: @@ -112,7 +141,7 @@ def mixer_product_slope(self) -> float: @mixer_product_slope.setter def mixer_product_slope(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mixer Product Slope={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Slope={value}"]) @property def mixer_product_intercept(self) -> float: @@ -125,7 +154,7 @@ def mixer_product_intercept(self) -> float: @mixer_product_intercept.setter def mixer_product_intercept(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mixer Product Intercept={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Intercept={value}"]) @property def bandwidth_80_db(self) -> float: @@ -138,9 +167,9 @@ def bandwidth_80_db(self) -> float: return val @bandwidth_80_db.setter - def bandwidth_80_db(self, value : float|str): + def bandwidth_80_db(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bandwidth 80 dB={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 80 dB={value}"]) @property def image_rejection(self) -> float: @@ -153,7 +182,7 @@ def image_rejection(self) -> float: @image_rejection.setter def image_rejection(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Image Rejection={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Image Rejection={value}"]) @property def maximum_rf_harmonic_order(self) -> int: @@ -166,7 +195,9 @@ def maximum_rf_harmonic_order(self) -> int: @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Maximum RF Harmonic Order={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Maximum RF Harmonic Order={value}"] + ) @property def maximum_lo_harmonic_order(self) -> int: @@ -179,7 +210,9 @@ def maximum_lo_harmonic_order(self) -> int: @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Maximum LO Harmonic Order={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Maximum LO Harmonic Order={value}"] + ) class MixingModeOption(Enum): LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" @@ -190,14 +223,14 @@ class MixingModeOption(Enum): def mixing_mode(self) -> MixingModeOption: """Mixing Mode "Specifies whether the IF frequency is > or < RF channel frequency." - " """ + " """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] return val @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mixing Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixing Mode={value.value}"]) @property def first_if_frequency(self): @@ -210,21 +243,21 @@ def first_if_frequency(self): @first_if_frequency.setter def first_if_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"First IF Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First IF Frequency={value}"]) @property def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." - " """ + " """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @rf_transition_frequency.setter - def rf_transition_frequency(self, value : float|str): + def rf_transition_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"RF Transition Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"RF Transition Frequency={value}"]) class UseHighLOOption(Enum): ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" @@ -234,14 +267,14 @@ class UseHighLOOption(Enum): def use_high_lo(self) -> UseHighLOOption: """Use High LO "Use High LO above/below the transition frequency." - " """ + " """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] return val @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use High LO={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use High LO={value.value}"]) class MixerProductTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -251,12 +284,13 @@ class MixerProductTableUnitsOption(Enum): def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units "Specifies the units for the Mixer Products." - " """ + " """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] return val @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mixer Product Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Table Units={value.value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py index 274ebaf4d2a..7ba3bbddc59 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class RxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -21,9 +46,8 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py index 236096b9290..8a8b14f2ebe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class RxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -21,11 +46,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) @property def use_arithmetic_mean(self) -> bool: @@ -38,5 +63,4 @@ def use_arithmetic_mean(self) -> bool: @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use Arithmetic Mean={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Arithmetic Mean={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py index 1f965396be6..72aba1fda70 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class RxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -20,13 +45,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -38,11 +63,11 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpurTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -52,12 +77,11 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Spur Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py index 2650827924a..ccb9101c8cd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class RxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,11 +38,11 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SensitivityUnitsOption(Enum): DBM = "dBm" @@ -29,18 +54,18 @@ class SensitivityUnitsOption(Enum): def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units "Units to use for the Rx Sensitivity." - " """ + " """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] return val @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Sensitivity Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sensitivity Units={value.value}"]) @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr "Received signal power level at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ @@ -49,7 +74,7 @@ def min_receive_signal_pwr_(self) -> float: @min_receive_signal_pwr_.setter def min_receive_signal_pwr_(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Min. Receive Signal Pwr ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min. Receive Signal Pwr ={value}"]) @property def snr_at_rx_signal_pwr(self) -> float: @@ -62,7 +87,7 @@ def snr_at_rx_signal_pwr(self) -> float: @snr_at_rx_signal_pwr.setter def snr_at_rx_signal_pwr(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"SNR at Rx Signal Pwr={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR at Rx Signal Pwr={value}"]) @property def processing_gain(self) -> float: @@ -75,7 +100,7 @@ def processing_gain(self) -> float: @processing_gain.setter def processing_gain(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Processing Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Processing Gain={value}"]) @property def apply_pg_to_narrowband_only(self) -> bool: @@ -88,7 +113,9 @@ def apply_pg_to_narrowband_only(self) -> bool: @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Apply PG to Narrowband Only={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Apply PG to Narrowband Only={value}"] + ) @property def saturation_level(self) -> float: @@ -101,9 +128,9 @@ def saturation_level(self) -> float: return val @saturation_level.setter - def saturation_level(self, value : float|str): + def saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) @property def rx_noise_figure(self) -> float: @@ -116,11 +143,11 @@ def rx_noise_figure(self) -> float: @rx_noise_figure.setter def rx_noise_figure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rx Noise Figure={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rx Noise Figure={value}"]) @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." "Value should be between -1000 and 1000." """ @@ -129,13 +156,13 @@ def receiver_sensitivity_(self) -> float: return val @receiver_sensitivity_.setter - def receiver_sensitivity_(self, value : float|str): + def receiver_sensitivity_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Receiver Sensitivity ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver Sensitivity ={value}"]) @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity "SNR or SINAD at the specified sensitivity level." "Value should be between -1000 and 1000." """ @@ -144,7 +171,9 @@ def snrsinad_at_sensitivity_(self) -> float: @snrsinad_at_sensitivity_.setter def snrsinad_at_sensitivity_(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"SNR/SINAD at Sensitivity ={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"SNR/SINAD at Sensitivity ={value}"] + ) @property def perform_rx_intermod_analysis(self) -> bool: @@ -157,7 +186,9 @@ def perform_rx_intermod_analysis(self) -> bool: @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Perform Rx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Rx Intermod Analysis={value}"] + ) @property def amplifier_saturation_level(self) -> float: @@ -170,13 +201,15 @@ def amplifier_saturation_level(self) -> float: return val @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." "Value should be between -1000 and 1000." """ @@ -185,9 +218,9 @@ def p1_db_point_ref_input_(self) -> float: return val @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -200,9 +233,9 @@ def ip3_ref_input(self) -> float: return val @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def max_intermod_order(self) -> int: @@ -215,5 +248,4 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py index 71ecfcd4033..67306291569 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class SamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,11 +37,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Min: + "Min: " Value should be greater than 1." - "Max: + "Max: " Value should be greater than 1." """ return self._get_table_data() @@ -34,14 +59,14 @@ class SamplingTypeOption(Enum): def sampling_type(self) -> SamplingTypeOption: """Sampling Type "Sampling to apply to this configuration." - " """ + " """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] return val @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Sampling Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sampling Type={value.value}"]) @property def specify_percentage(self) -> bool: @@ -54,7 +79,7 @@ def specify_percentage(self) -> bool: @specify_percentage.setter def specify_percentage(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Specify Percentage={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Specify Percentage={value}"]) @property def percentage_of_channels(self) -> float: @@ -67,7 +92,7 @@ def percentage_of_channels(self) -> float: @percentage_of_channels.setter def percentage_of_channels(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Percentage of Channels={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percentage of Channels={value}"]) @property def max__channelsrangeband(self) -> int: @@ -80,7 +105,9 @@ def max__channelsrangeband(self) -> int: @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max # Channels/Range/Band={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Max # Channels/Range/Band={value}"] + ) @property def seed(self) -> int: @@ -93,13 +120,13 @@ def seed(self) -> int: @seed.setter def seed(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Seed={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Seed={value}"]) @property def total_tx_channels(self) -> int: """Total Tx Channels "Total number of transmit channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Tx Channels") return val @@ -107,7 +134,7 @@ def total_tx_channels(self) -> int: def total_rx_channels(self) -> int: """Total Rx Channels "Total number of receive channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Rx Channels") return val @@ -115,7 +142,6 @@ def total_rx_channels(self) -> int: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py index 8074002dadd..67f251962d5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class SceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +62,9 @@ def show_relative_coordinates(self) -> bool: @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -50,7 +77,7 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -63,7 +90,7 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -73,14 +100,14 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -93,7 +120,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -106,7 +133,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def show_axes(self) -> bool: @@ -119,7 +146,7 @@ def show_axes(self) -> bool: @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def box_color(self): @@ -132,17 +159,16 @@ def box_color(self): @box_color.setter def box_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Box Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Box Color={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py index e1c1d40a583..b927d838658 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class SelectivityTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -26,13 +51,13 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -45,7 +70,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -58,19 +83,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -84,14 +109,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -104,7 +129,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -117,7 +142,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -140,14 +165,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -160,7 +185,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -173,7 +198,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -186,7 +211,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -199,5 +224,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py index 14684b98585..19c31482ddb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class SolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -21,7 +46,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -34,7 +59,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -47,17 +72,16 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py index 8aae5221843..5ca2220cdca 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class SolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -21,5 +46,4 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py index 3d67442eab5..56d4ef8b08c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class SpurTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -26,19 +51,19 @@ def delete(self): def channel_frequency(self): """Channel Frequency "Select band channel frequency to display." - " """ + " """ val = self._get_property("Channel Frequency") return val @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -47,13 +72,13 @@ def transmit_frequency(self) -> float: def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -66,7 +91,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -79,19 +104,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -105,14 +130,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -125,7 +150,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -138,7 +163,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -161,14 +186,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -181,7 +206,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -194,7 +219,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -207,7 +232,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -220,5 +245,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py index 5daf1c35ba0..c2a01c1f904 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TRSwitchTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -33,7 +58,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -46,19 +71,19 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -71,7 +96,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -84,19 +109,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -110,14 +135,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -130,7 +155,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -143,7 +168,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -166,14 +191,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -186,7 +211,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -199,7 +224,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -212,7 +237,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -225,5 +250,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index d8af2e6ebb7..28530bbb025 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -28,7 +53,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -41,19 +66,19 @@ def noise_temperature(self) -> float: @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TxPortOption(Enum): PORT_1 = "Port 1" @@ -63,14 +88,14 @@ class TxPortOption(Enum): def tx_port(self) -> TxPortOption: """Tx Port "Specifies which port on the TR Switch is part of the Tx path.." - " """ + " """ val = self._get_property("Tx Port") val = self.TxPortOption[val] return val @tx_port.setter def tx_port(self, value: TxPortOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tx Port={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Port={value.value}"]) class CommonPortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -80,14 +105,16 @@ class CommonPortLocationOption(Enum): def common_port_location(self) -> CommonPortLocationOption: """Common Port Location "Defines the orientation of the tr switch.." - " """ + " """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] return val @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Common Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Common Port Location={value.value}"] + ) @property def insertion_loss(self) -> float: @@ -100,7 +127,7 @@ def insertion_loss(self) -> float: @insertion_loss.setter def insertion_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Insertion Loss={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_isolation(self) -> bool: @@ -113,7 +140,7 @@ def finite_isolation(self) -> bool: @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -126,7 +153,7 @@ def isolation(self) -> float: @isolation.setter def isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -139,7 +166,7 @@ def finite_bandwidth(self) -> bool: @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -152,7 +179,7 @@ def out_of_band_attenuation(self) -> float: @out_of_band_attenuation.setter def out_of_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Out-of-band Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -165,9 +192,9 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -180,9 +207,9 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -195,9 +222,9 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -210,7 +237,6 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index 55aed32241d..11c88a08c47 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class Terminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -28,7 +53,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -41,19 +66,19 @@ def noise_temperature(self) -> float: @noise_temperature.setter def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -63,14 +88,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class PortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -80,14 +105,14 @@ class PortLocationOption(Enum): def port_location(self) -> PortLocationOption: """Port Location "Defines the orientation of the terminator.." - " """ + " """ val = self._get_property("Port Location") val = self.PortLocationOption[val] return val @port_location.setter def port_location(self, value: PortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port Location={value.value}"]) @property def vswr(self) -> float: @@ -100,13 +125,12 @@ def vswr(self) -> float: @vswr.setter def vswr(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"VSWR={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py index f21a5116b17..2e93eeabad4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TestNoiseTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -33,7 +58,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -46,19 +71,19 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -71,7 +96,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -84,19 +109,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -110,14 +135,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -130,7 +155,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -143,7 +168,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -166,14 +191,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -186,7 +211,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -199,7 +224,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -212,7 +237,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -225,7 +250,7 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -238,9 +263,9 @@ def frequency_1(self) -> float: return val @frequency_1.setter - def frequency_1(self, value : float|str): + def frequency_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -253,9 +278,9 @@ def amplitude_1(self) -> float: return val @amplitude_1.setter - def amplitude_1(self, value : float|str): + def amplitude_1(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -268,9 +293,9 @@ def bandwidth_1(self) -> float: return val @bandwidth_1.setter - def bandwidth_1(self, value : float|str): + def bandwidth_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -283,9 +308,9 @@ def frequency_2(self) -> float: return val @frequency_2.setter - def frequency_2(self, value : float|str): + def frequency_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -298,9 +323,9 @@ def amplitude_2(self) -> float: return val @amplitude_2.setter - def amplitude_2(self, value : float|str): + def amplitude_2(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -313,9 +338,9 @@ def bandwidth_2(self) -> float: return val @bandwidth_2.setter - def bandwidth_2(self, value : float|str): + def bandwidth_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -328,5 +353,4 @@ def noise_level(self) -> float: @noise_level.setter def noise_level(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Level={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py index 51d239917c9..8784f3bfd94 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py @@ -1,7 +1,31 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TopLevelSimulation(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py index b93f2ee11e3..ea4383bd7ee 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -33,7 +58,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -46,7 +71,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -59,19 +84,19 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def filename(self) -> str: @@ -84,13 +109,13 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File "Coupling data generated by Savant and exported as a matched file." - " """ + " """ val = self._get_property("Savant Matched Coupling File") return val @@ -105,30 +130,29 @@ def enable_em_isolation(self) -> bool: @enable_em_isolation.setter def enable_em_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable EM Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable EM Isolation={value}"]) @property def port_antenna_assignment(self): """Port-Antenna Assignment "Maps each port in the coupling file to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Port-Antenna Assignment") return val @port_antenna_assignment.setter def port_antenna_assignment(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port-Antenna Assignment={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port-Antenna Assignment={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py index 7d679767569..cdd646b88a0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TunableTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -33,7 +58,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -46,33 +71,33 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def frequency(self) -> float: """Frequency "Tunable filter center frequency." - " """ + " """ val = self._get_property("Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @frequency.setter - def frequency(self, value : float|str): + def frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -85,7 +110,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -98,19 +123,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -124,14 +149,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -144,7 +169,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -157,7 +182,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -180,14 +205,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -200,7 +225,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -213,7 +238,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -226,7 +251,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -239,5 +264,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py index d75b4789f2f..1665b3ae570 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -33,31 +58,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -70,7 +95,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -83,19 +108,19 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def ground_reflection_coeff(self) -> float: @@ -108,7 +133,7 @@ def ground_reflection_coeff(self) -> float: @ground_reflection_coeff.setter def ground_reflection_coeff(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Ground Reflection Coeff.={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ground Reflection Coeff.={value}"]) @property def pointspeak(self) -> int: @@ -121,7 +146,7 @@ def pointspeak(self) -> int: @pointspeak.setter def pointspeak(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Points/Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Points/Peak={value}"]) @property def custom_fading_margin(self) -> float: @@ -134,7 +159,7 @@ def custom_fading_margin(self) -> float: @custom_fading_margin.setter def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -147,7 +172,7 @@ def polarization_mismatch(self) -> float: @polarization_mismatch.setter def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -160,7 +185,7 @@ def pointing_error_loss(self) -> float: @pointing_error_loss.setter def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -172,14 +197,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -192,7 +217,7 @@ def fading_availability(self) -> float: @fading_availability.setter def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -205,7 +230,7 @@ def std_deviation(self) -> float: @std_deviation.setter def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -218,7 +243,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -231,7 +256,7 @@ def rain_availability(self) -> float: @rain_availability.setter def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -244,7 +269,7 @@ def rain_rate(self) -> float: @rain_rate.setter def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -257,7 +282,7 @@ def polarization_tilt_angle(self) -> float: @polarization_tilt_angle.setter def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -270,7 +295,9 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -283,7 +310,7 @@ def temperature(self) -> float: @temperature.setter def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -296,7 +323,7 @@ def total_air_pressure(self) -> float: @total_air_pressure.setter def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -309,5 +336,6 @@ def water_vapor_concentration(self) -> float: @water_vapor_concentration.setter def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py index d66dc065d34..11225c36ce8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TwoToneTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -33,7 +58,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -46,19 +71,19 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -71,7 +96,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -84,19 +109,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -110,14 +135,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -130,7 +155,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -143,7 +168,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -166,14 +191,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -186,7 +211,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -199,7 +224,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -212,7 +237,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -225,7 +250,7 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -238,9 +263,9 @@ def frequency_1(self) -> float: return val @frequency_1.setter - def frequency_1(self, value : float|str): + def frequency_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -253,9 +278,9 @@ def amplitude_1(self) -> float: return val @amplitude_1.setter - def amplitude_1(self, value : float|str): + def amplitude_1(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -268,9 +293,9 @@ def bandwidth_1(self) -> float: return val @bandwidth_1.setter - def bandwidth_1(self, value : float|str): + def bandwidth_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -283,9 +308,9 @@ def frequency_2(self) -> float: return val @frequency_2.setter - def frequency_2(self, value : float|str): + def frequency_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -298,9 +323,9 @@ def amplitude_2(self) -> float: return val @amplitude_2.setter - def amplitude_2(self, value : float|str): + def amplitude_2(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -313,9 +338,9 @@ def bandwidth_2(self) -> float: return val @bandwidth_2.setter - def bandwidth_2(self, value : float|str): + def bandwidth_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -328,5 +353,4 @@ def noise_level(self) -> float: @noise_level.setter def noise_level(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Level={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py index 893f11ca147..a7e355d378e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -22,9 +47,9 @@ def delete(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): " Value should be between -200 and 150." """ return self._get_table_data() @@ -36,11 +61,11 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class NoiseBehaviorOption(Enum): ABSOLUTE = "Absolute" @@ -52,14 +77,14 @@ class NoiseBehaviorOption(Enum): def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior "Specifies the behavior of the parametric noise profile." - " """ + " """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] return val @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Behavior={value.value}"]) @property def use_log_linear_interpolation(self) -> bool: @@ -72,5 +97,6 @@ def use_log_linear_interpolation(self) -> bool: @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use Log-Linear Interpolation={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py index 4f2264469ef..d295f19f7c9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -21,11 +46,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class HarmonicTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -35,12 +60,13 @@ class HarmonicTableUnitsOption(Enum): def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units "Specifies the units for the Harmonics." - " """ + " """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] return val @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Harmonic Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py index ce763bb84b0..2ae49fcca56 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +65,7 @@ def source_file(self) -> str: def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -56,7 +81,7 @@ def use_ams_limits(self) -> bool: @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -69,9 +94,9 @@ def start_frequency(self) -> float: return val @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -84,9 +109,9 @@ def stop_frequency(self) -> float: return val @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def exclude_harmonics_below_noise(self) -> bool: @@ -99,14 +124,15 @@ def exclude_harmonics_below_noise(self) -> bool: @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Exclude Harmonics Below Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py index 589a0726875..32bba26bae7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -21,11 +46,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class NarrowbandBehaviorOption(Enum): ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" @@ -35,26 +60,27 @@ class NarrowbandBehaviorOption(Enum): def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." - " """ + " """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] return val @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Narrowband Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"] + ) @property def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - " """ + " """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @measurement_frequency.setter - def measurement_frequency(self, value : float|str): + def measurement_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Measurement Frequency={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Frequency={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py index 63329fdab7e..063b1a2eab1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,25 +38,25 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) @property def output_voltage_peak(self) -> float: """Output Voltage Peak "Output High Voltage Level: maximum voltage of the digital signal." - " """ + " """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") return val @output_voltage_peak.setter - def output_voltage_peak(self, value : float|str): + def output_voltage_peak(self, value: float | str): value = self._convert_to_internal_units(value, "Voltage") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Output Voltage Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Voltage Peak={value}"]) @property def include_phase_noise(self) -> bool: @@ -44,7 +69,7 @@ def include_phase_noise(self) -> bool: @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -57,7 +82,7 @@ def tx_broadband_noise(self) -> float: @tx_broadband_noise.setter def tx_broadband_noise(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tx Broadband Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -70,7 +95,9 @@ def perform_tx_intermod_analysis(self) -> bool: @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Perform Tx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] + ) @property def internal_amp_gain(self) -> float: @@ -83,7 +110,7 @@ def internal_amp_gain(self) -> float: @internal_amp_gain.setter def internal_amp_gain(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Internal Amp Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -96,7 +123,7 @@ def noise_figure(self) -> float: @noise_figure.setter def noise_figure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Figure={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -109,13 +136,15 @@ def amplifier_saturation_level(self) -> float: return val @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ @@ -124,9 +153,9 @@ def p1_db_point_ref_input_(self) -> float: return val @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -139,9 +168,9 @@ def ip3_ref_input(self) -> float: return val @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -154,7 +183,7 @@ def reverse_isolation(self) -> float: @reverse_isolation.setter def reverse_isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -167,5 +196,4 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py index 6e02b3cb77e..c2204634707 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,11 +38,11 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpectrumTypeOption(Enum): NARROWBAND__BROADBAND = "Narrowband & Broadband" @@ -27,14 +52,14 @@ class SpectrumTypeOption(Enum): def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type "Specifies EMI Margins to calculate." - " """ + " """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] return val @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Spectrum Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spectrum Type={value.value}"]) class TxPowerOption(Enum): PEAK_POWER = "Peak Power" @@ -44,14 +69,14 @@ class TxPowerOption(Enum): def tx_power(self) -> TxPowerOption: """Tx Power "Method used to specify the power." - " """ + " """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] return val @tx_power.setter def tx_power(self, value: TxPowerOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tx Power={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Power={value.value}"]) @property def peak_power(self) -> float: @@ -64,9 +89,9 @@ def peak_power(self) -> float: return val @peak_power.setter - def peak_power(self, value : float|str): + def peak_power(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Peak Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Power={value}"]) @property def average_power(self) -> float: @@ -79,9 +104,9 @@ def average_power(self) -> float: return val @average_power.setter - def average_power(self, value : float|str): + def average_power(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Average Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Average Power={value}"]) @property def include_phase_noise(self) -> bool: @@ -94,7 +119,7 @@ def include_phase_noise(self) -> bool: @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -107,7 +132,7 @@ def tx_broadband_noise(self) -> float: @tx_broadband_noise.setter def tx_broadband_noise(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tx Broadband Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) class HarmonicTaperOption(Enum): CONSTANT = "Constant" @@ -119,14 +144,14 @@ class HarmonicTaperOption(Enum): def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper "Taper type used to set amplitude of harmonics." - " """ + " """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] return val @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Harmonic Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Taper={value.value}"]) @property def harmonic_amplitude(self) -> float: @@ -139,7 +164,7 @@ def harmonic_amplitude(self) -> float: @harmonic_amplitude.setter def harmonic_amplitude(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Harmonic Amplitude={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Amplitude={value}"]) @property def harmonic_slope(self) -> float: @@ -152,7 +177,7 @@ def harmonic_slope(self) -> float: @harmonic_slope.setter def harmonic_slope(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Harmonic Slope={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Slope={value}"]) @property def harmonic_intercept(self) -> float: @@ -165,7 +190,7 @@ def harmonic_intercept(self) -> float: @harmonic_intercept.setter def harmonic_intercept(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Harmonic Intercept={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Intercept={value}"]) @property def enable_harmonic_bw_expansion(self) -> bool: @@ -178,7 +203,9 @@ def enable_harmonic_bw_expansion(self) -> bool: @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Harmonic BW Expansion={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Enable Harmonic BW Expansion={value}"] + ) @property def number_of_harmonics(self) -> int: @@ -191,7 +218,7 @@ def number_of_harmonics(self) -> int: @number_of_harmonics.setter def number_of_harmonics(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Number of Harmonics={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Harmonics={value}"]) @property def second_harmonic_level(self) -> float: @@ -204,7 +231,7 @@ def second_harmonic_level(self) -> float: @second_harmonic_level.setter def second_harmonic_level(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Second Harmonic Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Second Harmonic Level={value}"]) @property def third_harmonic_level(self) -> float: @@ -217,7 +244,7 @@ def third_harmonic_level(self) -> float: @third_harmonic_level.setter def third_harmonic_level(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Third Harmonic Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Third Harmonic Level={value}"]) @property def other_harmonic_levels(self) -> float: @@ -230,7 +257,7 @@ def other_harmonic_levels(self) -> float: @other_harmonic_levels.setter def other_harmonic_levels(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Other Harmonic Levels={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Other Harmonic Levels={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -243,7 +270,9 @@ def perform_tx_intermod_analysis(self) -> bool: @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Perform Tx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] + ) @property def internal_amp_gain(self) -> float: @@ -256,7 +285,7 @@ def internal_amp_gain(self) -> float: @internal_amp_gain.setter def internal_amp_gain(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Internal Amp Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -269,7 +298,7 @@ def noise_figure(self) -> float: @noise_figure.setter def noise_figure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Figure={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -282,13 +311,15 @@ def amplifier_saturation_level(self) -> float: return val @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ @@ -297,9 +328,9 @@ def p1_db_point_ref_input_(self) -> float: return val @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -312,9 +343,9 @@ def ip3_ref_input(self) -> float: return val @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -327,7 +358,7 @@ def reverse_isolation(self) -> float: @reverse_isolation.setter def reverse_isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -340,5 +371,4 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py index 0f0212bcb9f..717b87ae693 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class TxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -20,13 +45,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -38,11 +63,11 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpurTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -52,12 +77,11 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Spur Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py index db12bf8ac91..076ce5fb844 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class WalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -33,31 +58,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -70,7 +95,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -83,19 +108,19 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class PathLossTypeOption(Enum): LOS_URBAN_CANYON = "LOS (Urban Canyon)" @@ -105,14 +130,14 @@ class PathLossTypeOption(Enum): def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type "Specify LOS vs NLOS for the Walfisch-Ikegami model." - " """ + " """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] return val @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Path Loss Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Type={value.value}"]) class EnvironmentOption(Enum): DENSE_METRO = "Dense Metro" @@ -122,14 +147,14 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Walfisch model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def roof_height(self) -> float: @@ -142,9 +167,9 @@ def roof_height(self) -> float: return val @roof_height.setter - def roof_height(self, value : float|str): + def roof_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Roof Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Roof Height={value}"]) @property def distance_between_buildings(self) -> float: @@ -157,9 +182,11 @@ def distance_between_buildings(self) -> float: return val @distance_between_buildings.setter - def distance_between_buildings(self, value : float|str): + def distance_between_buildings(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Distance Between Buildings={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Distance Between Buildings={value}"] + ) @property def street_width(self) -> float: @@ -172,9 +199,9 @@ def street_width(self) -> float: return val @street_width.setter - def street_width(self, value : float|str): + def street_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Street Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Street Width={value}"]) @property def incidence_angle(self) -> float: @@ -187,7 +214,7 @@ def incidence_angle(self) -> float: @incidence_angle.setter def incidence_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Incidence Angle={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Incidence Angle={value}"]) @property def custom_fading_margin(self) -> float: @@ -200,7 +227,7 @@ def custom_fading_margin(self) -> float: @custom_fading_margin.setter def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -213,7 +240,7 @@ def polarization_mismatch(self) -> float: @polarization_mismatch.setter def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -226,7 +253,7 @@ def pointing_error_loss(self) -> float: @pointing_error_loss.setter def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -238,14 +265,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -258,7 +285,7 @@ def fading_availability(self) -> float: @fading_availability.setter def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -271,7 +298,7 @@ def std_deviation(self) -> float: @std_deviation.setter def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -284,7 +311,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -297,7 +324,7 @@ def rain_availability(self) -> float: @rain_availability.setter def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -310,7 +337,7 @@ def rain_rate(self) -> float: @rain_rate.setter def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -323,7 +350,7 @@ def polarization_tilt_angle(self) -> float: @polarization_tilt_angle.setter def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -336,7 +363,9 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -349,7 +378,7 @@ def temperature(self) -> float: @temperature.setter def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -362,7 +391,7 @@ def total_air_pressure(self) -> float: @total_air_pressure.setter def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -375,5 +404,6 @@ def water_vapor_concentration(self) -> float: @water_vapor_concentration.setter def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py index af6cd2bfca1..495e93ea9f8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import * + class Waveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,23 +38,23 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) @property def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") return val @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" @@ -42,14 +67,14 @@ class WaveformOption(Enum): def waveform(self) -> WaveformOption: """Waveform "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Waveform") val = self.WaveformOption[val] return val @waveform.setter def waveform(self, value: WaveformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Waveform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveform={value.value}"]) @property def start_frequency(self) -> float: @@ -62,9 +87,9 @@ def start_frequency(self) -> float: return val @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -77,9 +102,9 @@ def stop_frequency(self) -> float: return val @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -92,9 +117,9 @@ def channel_spacing(self) -> float: return val @channel_spacing.setter - def channel_spacing(self, value : float|str): + def channel_spacing(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) @property def clock_duty_cycle(self) -> float: @@ -107,7 +132,7 @@ def clock_duty_cycle(self) -> float: @clock_duty_cycle.setter def clock_duty_cycle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Clock Duty Cycle={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Duty Cycle={value}"]) @property def clock_risefall_time(self) -> float: @@ -120,9 +145,9 @@ def clock_risefall_time(self) -> float: return val @clock_risefall_time.setter - def clock_risefall_time(self, value : float|str): + def clock_risefall_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Clock Rise/Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Rise/Fall Time={value}"]) class SpreadingTypeOption(Enum): LOW_SPREAD = "Low Spread" @@ -133,14 +158,14 @@ class SpreadingTypeOption(Enum): def spreading_type(self) -> SpreadingTypeOption: """Spreading Type "Type of spreading employed by the Spread Spectrum Clock." - " """ + " """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] return val @spreading_type.setter def spreading_type(self, value: SpreadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Spreading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spreading Type={value.value}"]) @property def spread_percentage(self) -> float: @@ -153,7 +178,7 @@ def spread_percentage(self) -> float: @spread_percentage.setter def spread_percentage(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Spread Percentage={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spread Percentage={value}"]) @property def imported_spectrum(self) -> str: @@ -165,13 +190,13 @@ def imported_spectrum(self) -> str: @imported_spectrum.setter def imported_spectrum(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Imported Spectrum={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Imported Spectrum={value}"]) @property def raw_data_format(self) -> str: """Raw Data Format "Format of the imported raw data." - " """ + " """ val = self._get_property("Raw Data Format") return val @@ -186,9 +211,9 @@ def system_impedance(self) -> float: return val @system_impedance.setter - def system_impedance(self, value : float|str): + def system_impedance(self, value: float | str): value = self._convert_to_internal_units(value, "Resistance") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"System Impedance={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"System Impedance={value}"]) @property def advanced_extraction_params(self) -> bool: @@ -201,7 +226,9 @@ def advanced_extraction_params(self) -> bool: @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Advanced Extraction Params={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Advanced Extraction Params={value}"] + ) @property def nb_window_size(self) -> float: @@ -214,7 +241,7 @@ def nb_window_size(self) -> float: @nb_window_size.setter def nb_window_size(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"NB Window Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Window Size={value}"]) @property def bb_smoothing_factor(self) -> float: @@ -227,7 +254,7 @@ def bb_smoothing_factor(self) -> float: @bb_smoothing_factor.setter def bb_smoothing_factor(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"BB Smoothing Factor={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Smoothing Factor={value}"]) @property def nb_detector_threshold(self) -> float: @@ -240,7 +267,7 @@ def nb_detector_threshold(self) -> float: @nb_detector_threshold.setter def nb_detector_threshold(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"NB Detector Threshold={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Detector Threshold={value}"]) class AlgorithmOption(Enum): FFT = "FFT" @@ -250,14 +277,14 @@ class AlgorithmOption(Enum): def algorithm(self) -> AlgorithmOption: """Algorithm "Algorithm used to transform the imported time domain spectrum." - " """ + " """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] return val @algorithm.setter def algorithm(self, value: AlgorithmOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Algorithm={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Algorithm={value.value}"]) @property def start_time(self) -> float: @@ -270,23 +297,23 @@ def start_time(self) -> float: return val @start_time.setter - def start_time(self, value : float|str): + def start_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Start Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Time={value}"]) @property def stop_time(self) -> float: """Stop Time "Final time of the imported time domain spectrum." - " """ + " """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") return val @stop_time.setter - def stop_time(self, value : float|str): + def stop_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Time={value}"]) @property def max_frequency(self) -> float: @@ -299,9 +326,9 @@ def max_frequency(self) -> float: return val @max_frequency.setter - def max_frequency(self, value : float|str): + def max_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Frequency={value}"]) class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" @@ -318,14 +345,14 @@ class WindowTypeOption(Enum): def window_type(self) -> WindowTypeOption: """Window Type "Windowing scheme used for importing time domain spectrum." - " """ + " """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] return val @window_type.setter def window_type(self, value: WindowTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Window Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Window Type={value.value}"]) @property def kaiser_parameter(self) -> float: @@ -338,7 +365,7 @@ def kaiser_parameter(self) -> float: @kaiser_parameter.setter def kaiser_parameter(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Kaiser Parameter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Kaiser Parameter={value}"]) @property def adjust_coherent_gain(self) -> bool: @@ -351,7 +378,7 @@ def adjust_coherent_gain(self) -> bool: @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adjust Coherent Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adjust Coherent Gain={value}"]) @property def data_rate(self) -> float: @@ -364,9 +391,9 @@ def data_rate(self) -> float: return val @data_rate.setter - def data_rate(self, value : float|str): + def data_rate(self, value: float | str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Rate={value}"]) @property def num_of_bits(self) -> int: @@ -379,7 +406,7 @@ def num_of_bits(self) -> int: @num_of_bits.setter def num_of_bits(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Num of Bits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Num of Bits={value}"]) @property def use_envelope(self) -> bool: @@ -392,7 +419,7 @@ def use_envelope(self) -> bool: @use_envelope.setter def use_envelope(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use Envelope={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Envelope={value}"]) @property def min_ptsnull(self) -> int: @@ -405,7 +432,7 @@ def min_ptsnull(self) -> int: @min_ptsnull.setter def min_ptsnull(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Min Pts/Null={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pts/Null={value}"]) @property def delay_skew(self) -> float: @@ -418,7 +445,6 @@ def delay_skew(self) -> float: return val @delay_skew.setter - def delay_skew(self, value : float|str): + def delay_skew(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Delay Skew={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Delay Skew={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index bd6f8b1de0e..7f7a748aedf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,3 +1,27 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from .Amplifier import Amplifier from .AntennaNode import AntennaNode from .AntennaPassband import AntennaPassband @@ -33,38 +57,6 @@ from .ProfileTraceNode import ProfileTraceNode from .PropagationLossCouplingNode import PropagationLossCouplingNode from .RadioNode import RadioNode -from .ResultPlotNode import ResultPlotNode -from .RfSystemGroup import RfSystemGroup -from .RxMeasNode import RxMeasNode -from .RxMixerProductNode import RxMixerProductNode -from .RxSaturationNode import RxSaturationNode -from .RxSelectivityNode import RxSelectivityNode -from .RxSpurNode import RxSpurNode -from .RxSusceptibilityProfNode import RxSusceptibilityProfNode -from .SamplingNode import SamplingNode -from .SceneGroupNode import SceneGroupNode -from .SelectivityTraceNode import SelectivityTraceNode -from .SolutionCouplingNode import SolutionCouplingNode -from .SolutionsNode import SolutionsNode -from .SpurTraceNode import SpurTraceNode -from .TR_Switch import TR_Switch -from .TRSwitchTraceNode import TRSwitchTraceNode -from .Terminator import Terminator -from .TestNoiseTraceNode import TestNoiseTraceNode -from .TopLevelSimulation import TopLevelSimulation -from .TouchstoneCouplingNode import TouchstoneCouplingNode -from .TunableTraceNode import TunableTraceNode -from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode -from .TwoToneTraceNode import TwoToneTraceNode -from .TxBbEmissionNode import TxBbEmissionNode -from .TxHarmonicNode import TxHarmonicNode -from .TxMeasNode import TxMeasNode -from .TxNbEmissionNode import TxNbEmissionNode -from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode -from .TxSpectralProfNode import TxSpectralProfNode -from .TxSpurNode import TxSpurNode -from .WalfischCouplingNode import WalfischCouplingNode -from .Waveform import Waveform from .ReadOnlyAmplifier import ReadOnlyAmplifier from .ReadOnlyAntennaNode import ReadOnlyAntennaNode from .ReadOnlyAntennaPassband import ReadOnlyAntennaPassband @@ -113,121 +105,153 @@ from .ReadOnlyTxSpurNode import ReadOnlyTxSpurNode from .ReadOnlyWalfischCouplingNode import ReadOnlyWalfischCouplingNode from .ReadOnlyWaveform import ReadOnlyWaveform +from .ResultPlotNode import ResultPlotNode +from .RfSystemGroup import RfSystemGroup +from .RxMeasNode import RxMeasNode +from .RxMixerProductNode import RxMixerProductNode +from .RxSaturationNode import RxSaturationNode +from .RxSelectivityNode import RxSelectivityNode +from .RxSpurNode import RxSpurNode +from .RxSusceptibilityProfNode import RxSusceptibilityProfNode +from .SamplingNode import SamplingNode +from .SceneGroupNode import SceneGroupNode +from .SelectivityTraceNode import SelectivityTraceNode +from .SolutionCouplingNode import SolutionCouplingNode +from .SolutionsNode import SolutionsNode +from .SpurTraceNode import SpurTraceNode +from .TRSwitchTraceNode import TRSwitchTraceNode +from .TR_Switch import TR_Switch +from .Terminator import Terminator +from .TestNoiseTraceNode import TestNoiseTraceNode +from .TopLevelSimulation import TopLevelSimulation +from .TouchstoneCouplingNode import TouchstoneCouplingNode +from .TunableTraceNode import TunableTraceNode +from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode +from .TwoToneTraceNode import TwoToneTraceNode +from .TxBbEmissionNode import TxBbEmissionNode +from .TxHarmonicNode import TxHarmonicNode +from .TxMeasNode import TxMeasNode +from .TxNbEmissionNode import TxNbEmissionNode +from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode +from .TxSpectralProfNode import TxSpectralProfNode +from .TxSpurNode import TxSpurNode +from .WalfischCouplingNode import WalfischCouplingNode +from .Waveform import Waveform __all__ = [ - 'Amplifier', - 'AntennaNode', - 'AntennaPassband', - 'Band', - 'BandFolder', - 'BandTraceNode', - 'CADNode', - 'Cable', - 'CategoriesViewNode', - 'Circulator', - 'CouplingLinkNode', - 'CouplingTraceNode', - 'CouplingsNode', - 'CustomCouplingNode', - 'EmiPlotMarkerNode', - 'EmitSceneNode', - 'ErcegCouplingNode', - 'Filter', - 'FiveGChannelModel', - 'HataCouplingNode', - 'IndoorPropagationCouplingNode', - 'Isolator', - 'LogDistanceCouplingNode', - 'MPlexBandTraceNode', - 'Multiplexer', - 'MultiplexerBand', - 'OutboardTraceNode', - 'ParametricCouplingTraceNode', - 'PlotMarkerNode', - 'PlotNode', - 'PowerDivider', - 'PowerTraceNode', - 'ProfileTraceNode', - 'PropagationLossCouplingNode', - 'RadioNode', - 'ResultPlotNode', - 'RfSystemGroup', - 'RxMeasNode', - 'RxMixerProductNode', - 'RxSaturationNode', - 'RxSelectivityNode', - 'RxSpurNode', - 'RxSusceptibilityProfNode', - 'SamplingNode', - 'SceneGroupNode', - 'SelectivityTraceNode', - 'SolutionCouplingNode', - 'SolutionsNode', - 'SpurTraceNode', - 'TR_Switch', - 'TRSwitchTraceNode', - 'Terminator', - 'TestNoiseTraceNode', - 'TopLevelSimulation', - 'TouchstoneCouplingNode', - 'TunableTraceNode', - 'TwoRayPathLossCouplingNode', - 'TwoToneTraceNode', - 'TxBbEmissionNode', - 'TxHarmonicNode', - 'TxMeasNode', - 'TxNbEmissionNode', - 'TxSpectralProfEmitterNode', - 'TxSpectralProfNode', - 'TxSpurNode', - 'WalfischCouplingNode', - 'Waveform', - 'ReadOnlyAmplifier', - 'ReadOnlyAntennaNode', - 'ReadOnlyAntennaPassband', - 'ReadOnlyBand', - 'ReadOnlyBandFolder', - 'ReadOnlyCADNode', - 'ReadOnlyCable', - 'ReadOnlyCirculator', - 'ReadOnlyCouplingLinkNode', - 'ReadOnlyCouplingsNode', - 'ReadOnlyCustomCouplingNode', - 'ReadOnlyEmitSceneNode', - 'ReadOnlyErcegCouplingNode', - 'ReadOnlyFilter', - 'ReadOnlyFiveGChannelModel', - 'ReadOnlyHataCouplingNode', - 'ReadOnlyIndoorPropagationCouplingNode', - 'ReadOnlyIsolator', - 'ReadOnlyLogDistanceCouplingNode', - 'ReadOnlyMultiplexer', - 'ReadOnlyMultiplexerBand', - 'ReadOnlyPowerDivider', - 'ReadOnlyPropagationLossCouplingNode', - 'ReadOnlyRadioNode', - 'ReadOnlyRfSystemGroup', - 'ReadOnlyRxMeasNode', - 'ReadOnlyRxMixerProductNode', - 'ReadOnlyRxSaturationNode', - 'ReadOnlyRxSelectivityNode', - 'ReadOnlyRxSpurNode', - 'ReadOnlyRxSusceptibilityProfNode', - 'ReadOnlySamplingNode', - 'ReadOnlySceneGroupNode', - 'ReadOnlySolutionCouplingNode', - 'ReadOnlySolutionsNode', - 'ReadOnlyTR_Switch', - 'ReadOnlyTerminator', - 'ReadOnlyTouchstoneCouplingNode', - 'ReadOnlyTwoRayPathLossCouplingNode', - 'ReadOnlyTxBbEmissionNode', - 'ReadOnlyTxHarmonicNode', - 'ReadOnlyTxMeasNode', - 'ReadOnlyTxNbEmissionNode', - 'ReadOnlyTxSpectralProfEmitterNode', - 'ReadOnlyTxSpectralProfNode', - 'ReadOnlyTxSpurNode', - 'ReadOnlyWalfischCouplingNode', - 'ReadOnlyWaveform', + "Amplifier", + "AntennaNode", + "AntennaPassband", + "Band", + "BandFolder", + "BandTraceNode", + "CADNode", + "Cable", + "CategoriesViewNode", + "Circulator", + "CouplingLinkNode", + "CouplingTraceNode", + "CouplingsNode", + "CustomCouplingNode", + "EmiPlotMarkerNode", + "EmitSceneNode", + "ErcegCouplingNode", + "Filter", + "FiveGChannelModel", + "HataCouplingNode", + "IndoorPropagationCouplingNode", + "Isolator", + "LogDistanceCouplingNode", + "MPlexBandTraceNode", + "Multiplexer", + "MultiplexerBand", + "OutboardTraceNode", + "ParametricCouplingTraceNode", + "PlotMarkerNode", + "PlotNode", + "PowerDivider", + "PowerTraceNode", + "ProfileTraceNode", + "PropagationLossCouplingNode", + "RadioNode", + "ResultPlotNode", + "RfSystemGroup", + "RxMeasNode", + "RxMixerProductNode", + "RxSaturationNode", + "RxSelectivityNode", + "RxSpurNode", + "RxSusceptibilityProfNode", + "SamplingNode", + "SceneGroupNode", + "SelectivityTraceNode", + "SolutionCouplingNode", + "SolutionsNode", + "SpurTraceNode", + "TR_Switch", + "TRSwitchTraceNode", + "Terminator", + "TestNoiseTraceNode", + "TopLevelSimulation", + "TouchstoneCouplingNode", + "TunableTraceNode", + "TwoRayPathLossCouplingNode", + "TwoToneTraceNode", + "TxBbEmissionNode", + "TxHarmonicNode", + "TxMeasNode", + "TxNbEmissionNode", + "TxSpectralProfEmitterNode", + "TxSpectralProfNode", + "TxSpurNode", + "WalfischCouplingNode", + "Waveform", + "ReadOnlyAmplifier", + "ReadOnlyAntennaNode", + "ReadOnlyAntennaPassband", + "ReadOnlyBand", + "ReadOnlyBandFolder", + "ReadOnlyCADNode", + "ReadOnlyCable", + "ReadOnlyCirculator", + "ReadOnlyCouplingLinkNode", + "ReadOnlyCouplingsNode", + "ReadOnlyCustomCouplingNode", + "ReadOnlyEmitSceneNode", + "ReadOnlyErcegCouplingNode", + "ReadOnlyFilter", + "ReadOnlyFiveGChannelModel", + "ReadOnlyHataCouplingNode", + "ReadOnlyIndoorPropagationCouplingNode", + "ReadOnlyIsolator", + "ReadOnlyLogDistanceCouplingNode", + "ReadOnlyMultiplexer", + "ReadOnlyMultiplexerBand", + "ReadOnlyPowerDivider", + "ReadOnlyPropagationLossCouplingNode", + "ReadOnlyRadioNode", + "ReadOnlyRfSystemGroup", + "ReadOnlyRxMeasNode", + "ReadOnlyRxMixerProductNode", + "ReadOnlyRxSaturationNode", + "ReadOnlyRxSelectivityNode", + "ReadOnlyRxSpurNode", + "ReadOnlyRxSusceptibilityProfNode", + "ReadOnlySamplingNode", + "ReadOnlySceneGroupNode", + "ReadOnlySolutionCouplingNode", + "ReadOnlySolutionsNode", + "ReadOnlyTR_Switch", + "ReadOnlyTerminator", + "ReadOnlyTouchstoneCouplingNode", + "ReadOnlyTwoRayPathLossCouplingNode", + "ReadOnlyTxBbEmissionNode", + "ReadOnlyTxHarmonicNode", + "ReadOnlyTxMeasNode", + "ReadOnlyTxNbEmissionNode", + "ReadOnlyTxSpectralProfEmitterNode", + "ReadOnlyTxSpectralProfNode", + "ReadOnlyTxSpurNode", + "ReadOnlyWalfischCouplingNode", + "ReadOnlyWaveform", ] diff --git a/tests/system/solvers/test_26_emit.py b/tests/system/solvers/test_26_emit.py index a985a8455c6..9190e44816b 100644 --- a/tests/system/solvers/test_26_emit.py +++ b/tests/system/solvers/test_26_emit.py @@ -1355,11 +1355,11 @@ def test_all_members(node, results, results_of_get_props): if member.startswith("_"): results[key] = (Result.SKIPPED, "Skipping private member") continue - - if member.startswith('delete'): - results[key] = (Result.SKIPPED, 'Skipping delete method') + + if member.startswith("delete"): + results[key] = (Result.SKIPPED, "Skipping delete method") continue - + class_attr = getattr(node.__class__, member) if isinstance(class_attr, property): # Member is a property @@ -1447,9 +1447,9 @@ def test_nodes_from_top_level(nodes, nodes_tested, results, results_of_get_props # Add any untested child nodes for child_type in node.allowed_child_types: # Skip any nodes that end in ..., as they open a dialog - if child_type not in nodes_tested and not child_type.endswith('...'): + if child_type not in nodes_tested and not child_type.endswith("..."): node._add_child_node(child_type) - + nodes.extend(node.children) test_all_members(node, results, results_of_get_props) @@ -1495,9 +1495,11 @@ def test_nodes_from_top_level(nodes, nodes_tested, results, results_of_get_props for key, value in results.items(): results_by_type[value[0]][key] = value[1] - + # Verify we tested most of the generated nodes all_nodes = generated.__all__ - nodes_untested = [node for node in all_nodes if (node not in nodes_tested) and (not node.startswith('ReadOnly'))] + nodes_untested = [ + node for node in all_nodes if (node not in nodes_tested) and (not node.startswith("ReadOnly")) + ] - assert (len(nodes_tested) > len(nodes_untested)) + assert len(nodes_tested) > len(nodes_untested) From 4c74e09fdb1a4c0f574190ff0920614be8c401dc Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Tue, 22 Apr 2025 15:41:09 +0000 Subject: [PATCH 24/86] chore: adding changelog file 6068.added.md [dependabot-skip] --- doc/changelog.d/6068.added.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/6068.added.md diff --git a/doc/changelog.d/6068.added.md b/doc/changelog.d/6068.added.md new file mode 100644 index 00000000000..352741f7a18 --- /dev/null +++ b/doc/changelog.d/6068.added.md @@ -0,0 +1 @@ +Support new EmitCom API for 26R1, add node classes for all EMIT node types \ No newline at end of file From 16d567f7d92ec6255ce48ccad5f93cfd2f05bf3e Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Tue, 22 Apr 2025 10:42:36 -0500 Subject: [PATCH 25/86] Re-delete readded files --- src/ansys/aedt/core/generic/clr_module.py | 121 - src/ansys/aedt/core/modules/boundary.py | 6006 ----------------- .../workflows/templates/extension_template.py | 71 - .../test_filter/test_attributes.py | 508 -- .../test_filter/test_graph_setup.py | 59 - .../test_filter/test_multiple_bands_table.py | 109 - .../test_filter/test_transmission_zeros.py | 140 - .../test_lumped_export/test_export_to_aedt.py | 630 -- .../test_optimization_goals_table.py | 149 - .../test_lumped_nodes_and_leads.py | 93 - .../test_lumped_parasitics.py | 93 - ...test_lumped_termination_impedance_table.py | 165 - .../test_lumped_topology.py | 313 - .../general/test_49_RCS_data_plotter.py | 261 - 14 files changed, 8718 deletions(-) delete mode 100644 src/ansys/aedt/core/generic/clr_module.py delete mode 100644 src/ansys/aedt/core/modules/boundary.py delete mode 100644 src/ansys/aedt/core/workflows/templates/extension_template.py delete mode 100644 tests/system/general/test_45_FilterSolutions/test_filter/test_attributes.py delete mode 100644 tests/system/general/test_45_FilterSolutions/test_filter/test_graph_setup.py delete mode 100644 tests/system/general/test_45_FilterSolutions/test_filter/test_multiple_bands_table.py delete mode 100644 tests/system/general/test_45_FilterSolutions/test_filter/test_transmission_zeros.py delete mode 100644 tests/system/general/test_45_FilterSolutions/test_lumped_export/test_export_to_aedt.py delete mode 100644 tests/system/general/test_45_FilterSolutions/test_lumped_export/test_optimization_goals_table.py delete mode 100644 tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_nodes_and_leads.py delete mode 100644 tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_parasitics.py delete mode 100644 tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_termination_impedance_table.py delete mode 100644 tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_topology.py delete mode 100644 tests/system/general/test_49_RCS_data_plotter.py diff --git a/src/ansys/aedt/core/generic/clr_module.py b/src/ansys/aedt/core/generic/clr_module.py deleted file mode 100644 index 698633f8414..00000000000 --- a/src/ansys/aedt/core/generic/clr_module.py +++ /dev/null @@ -1,121 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -import os -import pkgutil -import sys -import warnings - -from ansys.aedt.core.aedt_logger import pyaedt_logger as logger - -modules = [tup[1] for tup in pkgutil.iter_modules()] -pyaedt_path = os.path.dirname(os.path.dirname(__file__)) -cpython = "IronPython" not in sys.version and ".NETFramework" not in sys.version -is_linux = os.name == "posix" -is_windows = not is_linux -is_clr = False -sys.path.append(os.path.join(pyaedt_path, "dlls", "PDFReport")) -if is_linux and cpython: # pragma: no cover - try: - if os.environ.get("DOTNET_ROOT") is None: - runtime = None - try: - import dotnet - - runtime = os.path.join(os.path.dirname(dotnet.__path__)) - except Exception: - import dotnetcore2 - - runtime = os.path.join(os.path.dirname(dotnetcore2.__file__), "bin") - finally: - os.environ["DOTNET_ROOT"] = runtime - - from pythonnet import load - - json_file = os.path.abspath(os.path.join(pyaedt_path, "misc", "pyaedt.runtimeconfig.json")) - load("coreclr", runtime_config=json_file, dotnet_root=os.environ["DOTNET_ROOT"]) - print("DotNet Core correctly loaded.") - if "mono" not in os.getenv("LD_LIBRARY_PATH", ""): - warnings.warn("LD_LIBRARY_PATH needs to be setup to use pyaedt.") - warnings.warn("export ANSYSEM_ROOT232=/path/to/AnsysEM/v232/Linux64") - msg = "export LD_LIBRARY_PATH=" - msg += "$ANSYSEM_ROOT232/common/mono/Linux64/lib64:$LD_LIBRARY_PATH" - msg += "If PyAEDT will run on AEDT<2023.2 then $ANSYSEM_ROOT222/Delcross should be added to LD_LIBRARY_PATH" - warnings.warn(msg) - is_clr = True - except ImportError: - msg = "pythonnet or dotnetcore not installed. Pyaedt will work only in client mode." - warnings.warn(msg) -else: - try: - from pythonnet import load - - load("coreclr") - is_clr = True - - except Exception: - logger.error("An error occurred while loading clr.") - - -try: # work around a number formatting bug in the EDB API for non-English locales - # described in #1980 - import clr as _clr # isort:skip - from System.Globalization import CultureInfo as _CultureInfo - - _CultureInfo.DefaultThreadCurrentCulture = _CultureInfo.InvariantCulture - from System import Array - from System import Convert - from System import Double - from System import String - from System import Tuple - from System.Collections.Generic import Dictionary - from System.Collections.Generic import List - - edb_initialized = True - -except ImportError: # pragma: no cover - if is_windows: - warnings.warn( - "The clr is missing. Install PythonNET or use an IronPython version if you want to use the EDB module." - ) - edb_initialized = False - elif sys.version[0] == 3 and sys.version[1] < 7: - warnings.warn("EDB requires Linux Python 3.7 or later.") - _clr = None - String = None - Double = None - Convert = None - List = None - Tuple = None - Dictionary = None - Array = None - edb_initialized = False -if "win32com" in modules: - try: - import win32com.client as win32_client - except ImportError: - try: - import win32com.client as win32_client - except ImportError: - win32_client = None diff --git a/src/ansys/aedt/core/modules/boundary.py b/src/ansys/aedt/core/modules/boundary.py deleted file mode 100644 index 5bf8f063455..00000000000 --- a/src/ansys/aedt/core/modules/boundary.py +++ /dev/null @@ -1,6006 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -""" -This module contains these classes: ``BoundaryCommon`` and ``BoundaryObject``. -""" - -from abc import abstractmethod -import copy -import re - -from ansys.aedt.core.application.variables import decompose_variable_value -from ansys.aedt.core.generic.constants import CATEGORIESQ3D -from ansys.aedt.core.generic.data_handlers import _dict2arg -from ansys.aedt.core.generic.data_handlers import random_string -from ansys.aedt.core.generic.general_methods import GrpcApiError -from ansys.aedt.core.generic.general_methods import PropsManager -from ansys.aedt.core.generic.general_methods import _dim_arg -from ansys.aedt.core.generic.general_methods import filter_tuple -from ansys.aedt.core.generic.general_methods import generate_unique_name -from ansys.aedt.core.generic.general_methods import pyaedt_function_handler -from ansys.aedt.core.modeler.cad.elements_3d import EdgePrimitive -from ansys.aedt.core.modeler.cad.elements_3d import FacePrimitive -from ansys.aedt.core.modeler.cad.elements_3d import VertexPrimitive -from ansys.aedt.core.modules.circuit_templates import SourceKeys - - -class BoundaryProps(dict): - """AEDT Boundary Component Internal Parameters.""" - - def __setitem__(self, key, value): - dict.__setitem__(self, key, value) - if self._pyaedt_boundary.auto_update: - if key in ["Edges", "Faces", "Objects"]: - res = self._pyaedt_boundary.update_assignment() - else: - res = self._pyaedt_boundary.update() - if not res: - self._pyaedt_boundary._app.logger.warning("Update of %s Failed. Check needed arguments", key) - - def __init__(self, boundary, props): - dict.__init__(self) - if props: - for key, value in props.items(): - if isinstance(value, dict): - dict.__setitem__(self, key, BoundaryProps(boundary, value)) - elif isinstance(value, list): - list_els = [] - for el in value: - if isinstance(el, dict): - list_els.append(BoundaryProps(boundary, el)) - else: - list_els.append(el) - dict.__setitem__(self, key, list_els) - else: - dict.__setitem__(self, key, value) - self._pyaedt_boundary = boundary - - def _setitem_without_update(self, key, value): - dict.__setitem__(self, key, value) - - -class BoundaryCommon(PropsManager): - """ """ - - @pyaedt_function_handler() - def _get_args(self, props=None): - """Retrieve boundary properties. - - Parameters - ---------- - props : dict, optional - The default is ``None``. - - Returns - ------- - dict - Dictionary of boundary properties. - - """ - if not props: - props = self.props - arg = ["NAME:" + self.name] - _dict2arg(props, arg) - return arg - - @pyaedt_function_handler() - def delete(self): - """Delete the boundary. - - Returns - ------- - bool - ``True`` when successful, ``False`` when failed. - - """ - if self.type == "Matrix" or self.type == "Force" or self.type == "Torque": - self._app.o_maxwell_parameters.DeleteParameters([self.name]) - else: - self._app.oboundary.DeleteBoundaries([self.name]) - if self.name in self._app.excitation_objects.keys(): - self._app.excitation_objects.pop(self.name) - self._app.boundaries - return True - - def _get_boundary_data(self, ds): - try: - if "MaxwellParameterSetup" in self._app.design_properties: - param = "MaxwellParameters" - setup = "MaxwellParameterSetup" - if isinstance(self._app.design_properties[setup][param][ds], dict): - return [ - self._app.design_properties["MaxwellParameterSetup"]["MaxwellParameters"][ds], - self._app.design_properties["MaxwellParameterSetup"]["MaxwellParameters"][ds][ - "MaxwellParameterType" - ], - ] - except Exception: - self._app.logger.debug( - "An error occurred while getting boundary data for MaxwellParameterSetup." - ) # pragma: no cover - try: - if ( - "ModelSetup" in self._app.design_properties - and "MotionSetupList" in self._app.design_properties["ModelSetup"] - ): - motion_list = "MotionSetupList" - setup = "ModelSetup" - # check moving part - if isinstance(self._app.design_properties[setup][motion_list][ds], dict): - return [ - self._app.design_properties["ModelSetup"]["MotionSetupList"][ds], - self._app.design_properties["ModelSetup"]["MotionSetupList"][ds]["MotionType"], - ] - except Exception: - self._app.logger.debug("An error occurred while getting boundary data for ModelSetup.") # pragma: no cover - try: - if ds in self._app.design_properties["BoundarySetup"]["Boundaries"]: - if ( - self._app.design_properties["BoundarySetup"]["Boundaries"][ds]["BoundType"] == "Network" - and self._app.design_type == "Icepak" - ): - return [self._app.design_properties["BoundarySetup"]["Boundaries"][ds], ""] - else: - return [ - self._app.design_properties["BoundarySetup"]["Boundaries"][ds], - self._app.design_properties["BoundarySetup"]["Boundaries"][ds]["BoundType"], - ] - except Exception: - self._app.logger.debug( - "An error occurred while getting boundary data for BoundarySetup." - ) # pragma: no cover - return [] - - -class NativeComponentObject(BoundaryCommon, object): - """Manages Native Component data and execution. - - Parameters - ---------- - app : object - An AEDT application from ``ansys.aedt.core.application``. - component_type : str - Type of the component. - component_name : str - Name of the component. - props : dict - Properties of the boundary. - - Examples - -------- - in this example the par_beam returned object is a ``ansys.aedt.core.modules.boundary.NativeComponentObject`` - >>> from ansys.aedt.core import Hfss - >>> hfss = Hfss(solution_type="SBR+") - >>> ffd_file ="path/to/ffdfile.ffd" - >>> par_beam = hfss.create_sbr_file_based_antenna(ffd_file) - >>> par_beam.native_properties["Size"] = "0.1mm" - >>> par_beam.update() - >>> par_beam.delete() - """ - - def __init__(self, app, component_type, component_name, props): - self.auto_update = False - self._app = app - self._name = component_name - - self.props = BoundaryProps( - self, - { - "TargetCS": "Global", - "SubmodelDefinitionName": self.name, - "ComponentPriorityLists": {}, - "NextUniqueID": 0, - "MoveBackwards": False, - "DatasetType": "ComponentDatasetType", - "DatasetDefinitions": {}, - "BasicComponentInfo": { - "ComponentName": self.name, - "Company": "", - "Company URL": "", - "Model Number": "", - "Help URL": "", - "Version": "1.0", - "Notes": "", - "IconType": "", - }, - "GeometryDefinitionParameters": {"VariableOrders": {}}, - "DesignDefinitionParameters": {"VariableOrders": {}}, - "MaterialDefinitionParameters": {"VariableOrders": {}}, - "DefReferenceCSID": 1, - "MapInstanceParameters": "DesignVariable", - "UniqueDefinitionIdentifier": "89d26167-fb77-480e-a7ab-" - + random_string(12, char_set="abcdef0123456789"), - "OriginFilePath": "", - "IsLocal": False, - "ChecksumString": "", - "ChecksumHistory": [], - "VersionHistory": [], - "NativeComponentDefinitionProvider": {"Type": component_type}, - "InstanceParameters": {"GeometryParameters": "", "MaterialParameters": "", "DesignParameters": ""}, - }, - ) - if props: - self._update_props(self.props, props) - self.native_properties = self.props["NativeComponentDefinitionProvider"] - self.auto_update = True - - @property - def name(self): - """Name of the object. - - Returns - ------- - str - Name of the object. - - """ - return self._name - - @name.setter - def name(self, component_name): - if component_name != self._name: - if component_name not in self._app.native_component_names: - self.object_properties.props["Name"] = component_name - self._app.native_components.update({component_name: self}) - del self._app.native_components[self._name] - del self._app.modeler.user_defined_components[self._name] - self._name = component_name - else: # pragma: no cover - self._app._logger.warning("Name %s already assigned in the design", component_name) - - @property - def definition_name(self): - """Definition name of the native component. - - Returns - ------- - str - Name of the native component. - - """ - definition_name = None - if self.props and "SubmodelDefinitionName" in self.props: - definition_name = self.props["SubmodelDefinitionName"] - return definition_name - - @property - def targetcs(self): - """Native Component Coordinate System. - - Returns - ------- - str - Native Component Coordinate System. - """ - if "TargetCS" in list(self.props.keys()): - return self.props["TargetCS"] - else: - return "Global" - - @targetcs.setter - def targetcs(self, cs): - self.props["TargetCS"] = cs - - @property - def object_properties(self): - """Object-oriented properties. - - Returns - ------- - class:`ansys.aedt.core.modeler.cad.elements_3d.BinaryTreeNode` - - """ - - from ansys.aedt.core.modeler.cad.elements_3d import BinaryTreeNode - - child_object = self._app.get_oo_object(self._app.oeditor, self.name) - if child_object: - return BinaryTreeNode(self.name, child_object, False) - return False - - def _update_props(self, d, u): - for k, v in u.items(): - if isinstance(v, dict): - if k not in d: - d[k] = {} - d[k] = self._update_props(d[k], v) - else: - d[k] = v - return d - - @pyaedt_function_handler() - def _get_args(self, props=None): - if props is None: - props = self.props - arg = ["NAME:InsertNativeComponentData"] - _dict2arg(props, arg) - return arg - - @pyaedt_function_handler() - def create(self): - """Create a Native Component in AEDT. - - Returns - ------- - bool - ``True`` when successful, ``False`` when failed. - - """ - try: - names = [i for i in self._app.excitations] - except GrpcApiError: # pragma: no cover - names = [] - self._name = self._app.modeler.oeditor.InsertNativeComponent(self._get_args()) - try: - a = [i for i in self._app.excitations if i not in names] - self.excitation_name = a[0].split(":")[0] - except (GrpcApiError, IndexError): - self.excitation_name = self.name - return True - - @pyaedt_function_handler() - def update(self): - """Update the Native Component in AEDT. - - Returns - ------- - bool - ``True`` when successful, ``False`` when failed. - - """ - - self.update_props = {} - self.update_props["DefinitionName"] = self.props["SubmodelDefinitionName"] - self.update_props["GeometryDefinitionParameters"] = self.props["GeometryDefinitionParameters"] - self.update_props["DesignDefinitionParameters"] = self.props["DesignDefinitionParameters"] - self.update_props["MaterialDefinitionParameters"] = self.props["MaterialDefinitionParameters"] - self.update_props["NextUniqueID"] = self.props["NextUniqueID"] - self.update_props["MoveBackwards"] = self.props["MoveBackwards"] - self.update_props["DatasetType"] = self.props["DatasetType"] - self.update_props["DatasetDefinitions"] = self.props["DatasetDefinitions"] - self.update_props["NativeComponentDefinitionProvider"] = self.props["NativeComponentDefinitionProvider"] - self.update_props["ComponentName"] = self.props["BasicComponentInfo"]["ComponentName"] - self.update_props["Company"] = self.props["BasicComponentInfo"]["Company"] - self.update_props["Model Number"] = self.props["BasicComponentInfo"]["Model Number"] - self.update_props["Help URL"] = self.props["BasicComponentInfo"]["Help URL"] - self.update_props["Version"] = self.props["BasicComponentInfo"]["Version"] - self.update_props["Notes"] = self.props["BasicComponentInfo"]["Notes"] - self.update_props["IconType"] = self.props["BasicComponentInfo"]["IconType"] - self._app.modeler.oeditor.EditNativeComponentDefinition(self._get_args(self.update_props)) - - return True - - @pyaedt_function_handler() - def delete(self): - """Delete the Native Component in AEDT. - - Returns - ------- - bool - ``True`` when successful, ``False`` when failed. - - """ - self._app.modeler.oeditor.Delete(["NAME:Selections", "Selections:=", self.name]) - for el in self._app._native_components: - if el.name == self.name: - self._app._native_components.remove(el) - del self._app.modeler.user_defined_components[self.name] - self._app.modeler.cleanup_objects() - return True - - -def disable_auto_update(func): - """Decorator used to disable automatic update.""" - - def wrapper(self, *args, **kwargs): - """Inner wrapper function.""" - obj = self - if not hasattr(self, "auto_update"): - obj = self.pcb - auto_update = obj.auto_update - obj.auto_update = False - out = func(self, *args, **kwargs) - if auto_update: - obj.update() - obj.auto_update = auto_update - return out - - return wrapper - - -class PCBSettingsPackageParts(object): - """Handle package part settings of the PCB component. - - Parameters - ---------- - pcb_obj : :class:`pyaedt.modules.Boundary.NativeComponentPCB` - Inherited pcb object. - app : :class:`pyaedt.Icepak` - Inherited application object. - """ - - def __init__(self, pcb_obj, app): - self._app = app - self.pcb = pcb_obj - self._solderbumps_map = {"Lumped": "SbLumped", "Cylinders": "SbCylinder", "Boxes": "SbBlock"} - - def __eq__(self, other): - if isinstance(other, str): - return other == "Package" - elif isinstance(other, self.__class__): - return self.__dict__ == other.__dict__ - else: - return False - - def __ne__(self, other): - return not self.__eq__(other) - - @pyaedt_function_handler() - @disable_auto_update - def set_solderballs_modeling(self, modeling=None): - """Set how to model solderballs. - - Parameters - ---------- - modeling : str, optional - Method for modeling solderballs located below the stackup. The default is - ``None``, in which case they are not modeled. Options for modeling are - ``"Boxes"``, ``"Cylinders"``, and ``"Lumped"``. - - Returns - ------- - bool - ``True`` if successful, ``False`` otherwise. - """ - update_properties = { - "CreateBottomSolderballs": modeling is not None, - "BottomSolderballsModelType": self._solderbumps_map[modeling], - } - - self.pcb.props["NativeComponentDefinitionProvider"].update(update_properties) - return True - - @pyaedt_function_handler() - @disable_auto_update - def set_connectors_modeling( - self, - modeling=None, - solderbumps_modeling="Boxes", - bondwire_material="Au-Typical", - bondwire_diameter="0.05mm", - ): - """Set how to model connectors. - - Parameters - ---------- - modeling : str, optional - Method for modeling connectors located above the stackup. The default is - ``None``, in which case they are not modeled. Options for modeling are - ``"Bondwire"`` and ``"Solderbump"``. - solderbumps_modeling : str, optional - Method for modeling solderbumps if ``modeling="Solderbump"``. - The default is ```"Boxes"``. Options are ``"Boxes"``, ``"Cylinders"``, - and ``"Lumped"``. - bondwire_material : str, optional - Bondwire material if ``modeling="Bondwire"``. The default is - ``"Au-Typical"``. - bondwire_diameter : str, optional - Bondwires diameter if ``modeling="Bondwire". - The default is ``"0.05mm"``. - - Returns - ------- - bool - ``True`` if successful, ``False`` otherwise. - """ - valid_connectors = ["Solderbump", "Bondwire"] - if modeling is not None and modeling not in valid_connectors: - self._app.logger.error( - f"{modeling} option is not supported. Use one of the following: {', '.join(valid_connectors)}" - ) - return False - if bondwire_material not in self._app.materials.mat_names_aedt: - self._app.logger.error(f"{bondwire_material} material is not present in the library.") - return False - if self._solderbumps_map.get(solderbumps_modeling, None) is None: - self._app.logger.error( - f"Solderbumps modeling option {solderbumps_modeling} is not valid. " - f"Available options are: {', '.join(list(self._solderbumps_map.keys()))}." - ) - return False - - update_properties = { - "CreateTopSolderballs": modeling is not None, - "TopConnectorType": modeling, - "TopSolderballsModelType": self._solderbumps_map[solderbumps_modeling], - "BondwireMaterial": bondwire_material, - "BondwireDiameter": bondwire_diameter, - } - - self.pcb.props["NativeComponentDefinitionProvider"].update(update_properties) - return True - - def __repr__(self): - return "Package" - - -class PCBSettingsDeviceParts(object): - """Handle device part settings of the PCB component. - - Parameters - ---------- - pcb_obj : :class:`pyaedt.modules.Boundary.NativeComponentPCB` - Inherited pcb object. - app : :class:`pyaedt.Icepak` - Inherited application object. - """ - - def __init__(self, pcb_obj, app): - self._app = app - self.pcb = pcb_obj - self._filter_map2name = {"Cap": "Capacitors", "Ind": "Inductors", "Res": "Resistors"} - - def __eq__(self, other): - if isinstance(other, str): - return other == "Device" - elif isinstance(other, self.__class__): - return self.__dict__ == other.__dict__ - else: - return False - - def __ne__(self, other): - return not self.__eq__(other) - - def __repr__(self): - return "Device" - - @property - @pyaedt_function_handler() - def simplify_parts(self): - """Get whether parts are simplified as cuboid.""" - return self.pcb.props["NativeComponentDefinitionProvider"]["ModelDeviceAsRect"] - - @simplify_parts.setter - @pyaedt_function_handler() - def simplify_parts(self, value): - """Set whether parts are simplified as cuboid. - - Parameters - ---------- - value : bool - Whether parts are simplified as cuboid. - """ - self.pcb.props["NativeComponentDefinitionProvider"]["ModelDeviceAsRect"] = value - - @property - @pyaedt_function_handler() - def surface_material(self): - """Surface material to apply to parts.""" - return self.pcb.props["NativeComponentDefinitionProvider"]["DeviceSurfaceMaterial"] - - @surface_material.setter - @pyaedt_function_handler() - def surface_material(self, value): - """Set surface material to apply to parts. - - Parameters - ---------- - value : str - Surface material to apply to parts. - """ - self.pcb.props["NativeComponentDefinitionProvider"]["DeviceSurfaceMaterial"] = value - - @property - @pyaedt_function_handler() - def footprint_filter(self): - """Minimum component footprint for filtering.""" - if self.pcb.props["NativeComponentDefinitionProvider"]["PartsChoice"] != 1: - self._app.logger.error( - "Device parts modeling is not active. No filtering or override option is available." - ) - return None - if self._app.settings.aedt_version < "2024.2": - return None - return self.filters.get("FootPrint", {}).get("Value", None) - - @footprint_filter.setter - @pyaedt_function_handler() - @disable_auto_update - def footprint_filter(self, minimum_footprint): - """Set minimum component footprint for filtering. - - Parameters - ---------- - minimum_footprint : str - Value with unit of the minimum component footprint for filtering. - """ - if self.pcb.props["NativeComponentDefinitionProvider"]["PartsChoice"] != 1: - self._app.logger.error( - "Device parts modeling is not active. No filtering or override option is available." - ) - return - if self._app.settings.aedt_version < "2024.2": - return - new_filters = self.pcb.props["NativeComponentDefinitionProvider"].get("Filters", []) - if "FootPrint" in new_filters: - new_filters.remove("FootPrint") - if minimum_footprint is not None: - new_filters.append("FootPrint") - self.pcb.props["NativeComponentDefinitionProvider"]["FootPrint"] = minimum_footprint - self.pcb.props["NativeComponentDefinitionProvider"]["Filters"] = new_filters - - @property - @pyaedt_function_handler() - def power_filter(self): - """Minimum component power for filtering.""" - if self.pcb.props["NativeComponentDefinitionProvider"]["PartsChoice"] != 1: - self._app.logger.error( - "Device parts modeling is not active. No filtering or override option is available." - ) - return None - return self.filters.get("Power", {}).get("Value") - - @power_filter.setter - @pyaedt_function_handler() - @disable_auto_update - def power_filter(self, minimum_power): - """Set minimum component power for filtering. - - Parameters - ---------- - minimum_power : str - Value with unit of the minimum component power for filtering. - """ - if self.pcb.props["NativeComponentDefinitionProvider"]["PartsChoice"] != 1: - self._app.logger.error( - "Device parts modeling is not active. No filtering or override option is available." - ) - return - new_filters = self.pcb.props["NativeComponentDefinitionProvider"].get("Filters", []) - if "Power" in new_filters: - new_filters.remove("Power") - if minimum_power is not None: - new_filters.append("Power") - self.pcb.props["NativeComponentDefinitionProvider"]["PowerVal"] = minimum_power - self.pcb.props["NativeComponentDefinitionProvider"]["Filters"] = new_filters - - @property - @pyaedt_function_handler() - def type_filters(self): - """Types of component that are filtered.""" - if self.pcb.props["NativeComponentDefinitionProvider"]["PartsChoice"] != 1: - self._app.logger.error( - "Device parts modeling is not active. No filtering or override option is available." - ) - return None - return self.filters.get("Types") - - @type_filters.setter - @pyaedt_function_handler() - @disable_auto_update - def type_filters(self, object_type): - """Set types of component to filter. - - Parameters - ---------- - object_type : str or list - Types of object to filter. Options are ``"Capacitors"``, ``"Inductors"``, and ``"Resistors"``. - """ - if self.pcb.props["NativeComponentDefinitionProvider"]["PartsChoice"] != 1: - self._app.logger.error( - "Device parts modeling is not active. No filtering or override option is available." - ) - return - if not isinstance(object_type, list): - object_type = [object_type] - if not all(o in self._filter_map2name.values() for o in object_type): - self._app.logger.error( - f"Accepted elements of the list are: {', '.join(list(self._filter_map2name.values()))}" - ) - else: - new_filters = self.pcb.props["NativeComponentDefinitionProvider"].get("Filters", []) - map2arg = {v: k for k, v in self._filter_map2name.items()} - for f in self._filter_map2name.keys(): - if f in new_filters: - new_filters.remove(f) - new_filters += [map2arg[o] for o in object_type] - self.pcb.props["NativeComponentDefinitionProvider"]["Filters"] = new_filters - - @property - @pyaedt_function_handler() - def height_filter(self): - """Minimum component height for filtering.""" - if self.pcb.props["NativeComponentDefinitionProvider"]["PartsChoice"] != 1: - self._app.logger.error( - "Device parts modeling is not active. No filtering or override option is available." - ) - return None - return self.filters.get("Height", {}).get("Value", None) - - @height_filter.setter - @pyaedt_function_handler() - @disable_auto_update - def height_filter(self, minimum_height): - """Set minimum component height for filtering and whether to filter 2D objects. - - Parameters - ---------- - minimum_height : str - Value with unit of the minimum component power for filtering. - """ - if self.pcb.props["NativeComponentDefinitionProvider"]["PartsChoice"] != 1: - self._app.logger.error( - "Device parts modeling is not active. No filtering or override option is available." - ) - return - new_filters = self.pcb.props["NativeComponentDefinitionProvider"].get("Filters", []) - if "Height" in new_filters: - new_filters.remove("Height") - if minimum_height is not None: - new_filters.append("Height") - self.pcb.props["NativeComponentDefinitionProvider"]["HeightVal"] = minimum_height - self.pcb.props["NativeComponentDefinitionProvider"]["Filters"] = new_filters - - @property - @pyaedt_function_handler() - def objects_2d_filter(self): - """Whether 2d objects are filtered.""" - if self.pcb.props["NativeComponentDefinitionProvider"]["PartsChoice"] != 1: - self._app.logger.error( - "Device parts modeling is not active. No filtering or override option is available." - ) - return None - return self.filters.get("Exclude2DObjects", False) - - @objects_2d_filter.setter - @pyaedt_function_handler() - @disable_auto_update - def objects_2d_filter(self, filter): - """Set whether 2d objects are filtered. - - Parameters - ---------- - filter : bool - Whether 2d objects are filtered - """ - if self.pcb.props["NativeComponentDefinitionProvider"]["PartsChoice"] != 1: - self._app.logger.error( - "Device parts modeling is not active. No filtering or override option is available." - ) - return - new_filters = self.pcb.props["NativeComponentDefinitionProvider"].get("Filters", []) - if "HeightExclude2D" in new_filters: - new_filters.remove("HeightExclude2D") - if filter: - new_filters.append("HeightExclude2D") - self.pcb.props["NativeComponentDefinitionProvider"]["Filters"] = new_filters - - @property - @pyaedt_function_handler() - def filters(self): - """All active filters.""" - if self.pcb.props["NativeComponentDefinitionProvider"].get("PartsChoice", None) != 1: - self._app.logger.error( - "Device parts modeling is not active. No filtering or override option is available." - ) - return None - out_filters = {"Type": {"Capacitors": False, "Inductors": False, "Resistors": False}} - filters = self.pcb.props["NativeComponentDefinitionProvider"].get("Filters", []) - filter_map2type = { - "Cap": "Type", - "FootPrint": "FootPrint", - "Height": "Height", - "HeightExclude2D": None, - "Ind": "Type", - "Power": "Power", - "Res": "Type", - } - filter_map2val = {"FootPrint": "FootPrint", "Height": "HeightVal", "Power": "PowerVal"} - for f in filters: - if filter_map2type[f] == "Type": - out_filters["Type"][self._filter_map2name[f]] = True - elif filter_map2type[f] is not None: - out_filters[f] = {"Value": filter_map2val[f]} - if "HeightExclude2D" in filters: - out_filters["Exclude2DObjects"] = True - return out_filters - - @property - @pyaedt_function_handler() - def overridden_components(self): - """All overridden components.""" - override_component = ( - self.pcb.props["NativeComponentDefinitionProvider"] - .get("instanceOverridesMap", {}) - .get("oneOverrideBlk", []) - ) - return {o["overrideName"]: o["overrideProps"] for o in override_component} - - @pyaedt_function_handler() - def _override_common( - self, - map_name, - package=None, - part=None, - reference_designator=None, - filter_component=False, - power=None, - r_jb=None, - r_jc=None, - height=None, - ): - override_component = ( - self.pcb.props["NativeComponentDefinitionProvider"] - .get(map_name, {}) # "instanceOverridesMap" - .get("oneOverrideBlk", []) - ) - if map_name == "instanceOverridesMap": - for o in override_component: - if o["overrideName"] == reference_designator: - override_component.remove(o) - elif map_name == "definitionOverridesMap": # pragma: no cover - for o in override_component: - if o["overridePartNumberName"] == part: - override_component.remove(o) - new_filter = {} - if filter_component or any(override_val is not None for override_val in [power, r_jb, r_jc, height]): - if map_name == "instanceOverridesMap": - new_filter.update({"overrideName": reference_designator}) - elif map_name == "definitionOverridesMap": # pragma: no cover - new_filter.update({"overridePartNumberName": part, "overrideGeometryName": package}) - new_filter.update( - { - "overrideProps": { - "isFiltered": filter_component, - "isOverridePower": power is not None, - "isOverrideThetaJb": r_jb is not None, - "isOverrideThetaJc": r_jc is not None, - "isOverrideHeight": height is not None, - "powerOverride": power if power is not None else "nan", - "thetaJbOverride": r_jb if r_jb is not None else "nan", - "thetaJcOverride": r_jc if r_jc is not None else "nan", - "heightOverride": height if height is not None else "nan", - }, - } - ) - override_component.append(new_filter) - self.pcb.props["NativeComponentDefinitionProvider"][map_name] = {"oneOverrideBlk": override_component} - return True - - @pyaedt_function_handler() - @disable_auto_update - def override_definition(self, package, part, filter_component=False, power=None, r_jb=None, r_jc=None, height=None): - """Set component override. - - Parameters - ---------- - package : str - Package name of the definition to override. - part : str - Part name of the definition to override. - filter_component : bool, optional - Whether to filter out the component. The default is ``False``. - power : str, optional - Override component power. Default is ``None``, in which case the power is not overridden. - r_jb : str, optional - Override component r_jb value. Default is ``None``, in which case the resistance is not overridden. - r_jc : str, optional - Override component r_jc value. Default is ``None``, in which case the resistance is not overridden. - height : str, optional - Override component height value. Default is ``None``, in which case the height is not overridden. - - Returns - ------- - bool - ``True`` if successful, ``False`` otherwise. - """ - if self._app.settings.aedt_version < "2024.2": - self._app.logger.error( - "This method is available only with AEDT 2024 R2 or later. Use 'override_instance()' method instead." - ) - return False - return self._override_common( # pragma : no cover - "definitionOverridesMap", - package=package, - part=part, - filter_component=filter_component, - power=power, - r_jb=r_jb, - r_jc=r_jc, - height=height, - ) - - @pyaedt_function_handler() - @disable_auto_update - def override_instance( - self, reference_designator, filter_component=False, power=None, r_jb=None, r_jc=None, height=None - ): - """Set instance override. - - Parameters - ---------- - reference_designator : str - Reference designator of the instance to override. - filter_component : bool, optional - Whether to filter out the component. The default is ``False``. - power : str, optional - Override component power. The default is ``None``, in which case the power is not overridden. - r_jb : str, optional - Override component r_jb value. The default is ``None``, in which case the resistance is not overridden. - r_jc : str, optional - Override component r_jc value. The default is ``None``, in which case the resistance is not overridden. - height : str, optional - Override component height value. The default is ``None``, in which case the height is not overridden. - - Returns - ------- - bool - ``True`` if successful, ``False`` otherwise. - """ - return self._override_common( - "instanceOverridesMap", - reference_designator=reference_designator, - filter_component=filter_component, - power=power, - r_jb=r_jb, - r_jc=r_jc, - height=height, - ) - - -class NativeComponentPCB(NativeComponentObject, object): - """Manages native component PCB data and execution. - - Parameters - ---------- - app : object - AEDT application from the ``pyaedt.application`` class. - component_type : str - Type of the component. - component_name : str - Name of the component. - props : dict - Properties of the boundary. - """ - - def __init__(self, app, component_type, component_name, props): - NativeComponentObject.__init__(self, app, component_type, component_name, props) - - @pyaedt_function_handler() - @disable_auto_update - def set_resolution(self, resolution): - """Set metal fraction mapping resolution. - - Parameters - ------- - resolution : int - Resolution level. Accepted variables between 1 and 5. - - Returns - ------- - bool - True if successful, else False. - """ - if resolution < 1 or resolution > 5: - self._app.logger.error("Valid resolution values are between 1 and 5.") - return False - self.props["NativeComponentDefinitionProvider"]["Resolution"] = resolution - self.props["NativeComponentDefinitionProvider"]["CustomResolution"] = False - return True - - @pyaedt_function_handler() - @disable_auto_update - def set_custom_resolution(self, row, col): - """Set custom metal fraction mapping resolution. - - Parameters - ---------- - row : int - Resolution level in rows direction. - col : int - Resolution level in columns direction. - - Returns - ------- - bool - True if successful, else False. - """ - self.props["NativeComponentDefinitionProvider"]["CustomResolutionRow"] = row - self.props["NativeComponentDefinitionProvider"]["CustomResolutionCol"] = col - self.props["NativeComponentDefinitionProvider"]["CustomResolution"] = True - return True - - @property - def power(self): - """Power dissipation assigned to the PCB.""" - return self.props["NativeComponentDefinitionProvider"].get("Power", "0W") - - @pyaedt_function_handler() - @disable_auto_update - def set_high_side_radiation( - self, - enabled, - surface_material="Steel-oxidised-surface", - radiate_to_ref_temperature=False, - view_factor=1, - ref_temperature="AmbientTemp", - ): - """Set high side radiation properties. - - Parameters - ---------- - enabled : bool - Whether high side radiation is enabled. - surface_material : str, optional - Surface material to apply. Default is ``"Steel-oxidised-surface"``. - radiate_to_ref_temperature : bool, optional - Whether to radiate to a reference temperature instead of objects in the model. - Default is ``False``. - view_factor : float, optional - View factor to use for radiation computation if ``radiate_to_ref_temperature`` - is set to ``True``. Default is 1. - ref_temperature : str, optional - Reference temperature to use for radiation computation if - ``radiate_to_ref_temperature`` is set to True. Default is ``"AmbientTemp"``. - - Returns - ------- - bool - ``True`` if successful, else ``False``. - """ - high_rad = { - "Radiate": enabled, - "RadiateTo - High": "RefTemperature - High" if radiate_to_ref_temperature else "AllObjects - High", - "Surface Material - High": surface_material, - } - if radiate_to_ref_temperature: - high_rad["Ref. Temperature - High"] = (ref_temperature,) - high_rad["View Factor - High"] = view_factor - self.props["NativeComponentDefinitionProvider"]["HighSide"] = high_rad - return True - - @pyaedt_function_handler() - @disable_auto_update - def set_low_side_radiation( - self, - enabled, - surface_material="Steel-oxidised-surface", - radiate_to_ref_temperature=False, - view_factor=1, - ref_temperature="AmbientTemp", - ): - """Set low side radiation properties. - - Parameters - ---------- - enabled : bool - Whether high side radiation is enabled. - surface_material : str, optional - Surface material to apply. Default is ``"Steel-oxidised-surface"``. - radiate_to_ref_temperature : bool, optional - Whether to radiate to a reference temperature instead of objects in the model. - Default is ``False``. - view_factor : float, optional - View factor to use for radiation computation if ``radiate_to_ref_temperature`` - is set to True. Default is 1. - ref_temperature : str, optional - Reference temperature to use for radiation computation if - ``radiate_to_ref_temperature`` is set to ``True``. Default is ``"AmbientTemp"``. - - Returns - ------- - bool - ``True`` if successful, else ``False``. - """ - low_side = { - "Radiate": enabled, - "RadiateTo": "RefTemperature - High" if radiate_to_ref_temperature else "AllObjects", - "Surface Material": surface_material, - } - if radiate_to_ref_temperature: - low_side["Ref. Temperature"] = (ref_temperature,) - low_side["View Factor"] = view_factor - self.props["NativeComponentDefinitionProvider"]["LowSide"] = low_side - return True - - @power.setter - @disable_auto_update - def power(self, value): - """Assign power dissipation to the PCB. - - Parameters - ---------- - value : str - Power to apply to the PCB. - """ - self.props["NativeComponentDefinitionProvider"]["Power"] = value - - @property - def force_source_solve(self): - """Force source solution option.""" - return self.props["NativeComponentDefinitionProvider"].get("DefnLink", {}).get("ForceSourceToSolve", False) - - @force_source_solve.setter - @disable_auto_update - def force_source_solve(self, val): - """Set Whether to force source solution. - - Parameters - ---------- - value : bool - Whether to force source solution. - """ - if not isinstance(val, bool): - self._app.logger.error("Only Boolean value can be accepted.") - return - return self.props["NativeComponentDefinitionProvider"]["DefnLink"].update({"ForceSourceToSolve": val}) - - @property - def preserve_partner_solution(self): - """Preserve parner solution option.""" - return self.props["NativeComponentDefinitionProvider"].get("DefnLink", {}).get("PreservePartnerSoln", False) - - @preserve_partner_solution.setter - @disable_auto_update - def preserve_partner_solution(self, val): - """Set Whether to preserve partner solution. - - Parameters - ---------- - val : bool - Whether to preserve partner solution. - """ - if not isinstance(val, bool): - self._app.logger.error("Only boolean can be accepted.") - return - return self.props["NativeComponentDefinitionProvider"]["DefnLink"].update({"PreservePartnerSoln": val}) - - @property - def included_parts(self): - """Parts options.""" - p = self.props["NativeComponentDefinitionProvider"].get("PartsChoice", 0) - if p == 0: - return None - elif p == 1: - return PCBSettingsDeviceParts(self, self._app) - elif p == 2: - return PCBSettingsPackageParts(self, self._app) - - @included_parts.setter - @disable_auto_update - def included_parts(self, value): - """Set PCB parts incusion option. - - Parameters - ---------- - value : str or int - Valid options are ``"None"``, ``"Device"``, and ``"Package"`` (or 0, 1, and 2 respectivaly) - """ - if value is None: - value = "None" - part_map = {"None": 0, "Device": 1, "Package": 2} - if not isinstance(value, int): - value = part_map.get(value, None) - if value is not None: - self.props["NativeComponentDefinitionProvider"]["PartsChoice"] = value - else: - self._app.logger.error( - 'Invalid part choice. Valid options are "None", "Device", and "Package" (or 0, 1, and 2 respectively).' - ) - - @pyaedt_function_handler() - @disable_auto_update - def set_low_side_radiation( - self, - enabled, - surface_material="Steel-oxidised-surface", - radiate_to_ref_temperature=False, - view_factor=1, - ref_temperature="AmbientTemp", - ): - """Set low side radiation properties. - - Parameters - ---------- - enabled : bool - Whether high side radiation is enabled. - surface_material : str, optional - Surface material to apply. Default is ``"Steel-oxidised-surface"``. - radiate_to_ref_temperature : bool, optional - Whether to radiate to a reference temperature instead of objects in the model. - Default is ``False``. - view_factor : float, optional - View factor to use for radiation computation if ``radiate_to_ref_temperature`` - is set to True. Default is 1. - ref_temperature : str, optional - Reference temperature to use for radiation computation if - ``radiate_to_ref_temperature`` is set to ``True``. Default is ``"AmbientTemp"``. - - Returns - ------- - bool - ``True`` if successful, else ``False``. - """ - low_side = { - "Radiate": enabled, - "RadiateTo": "RefTemperature - High" if radiate_to_ref_temperature else "AllObjects", - "Surface Material": surface_material, - } - if radiate_to_ref_temperature: - low_side["Ref. Temperature"] = (ref_temperature,) - low_side["View Factor"] = view_factor - self.props["NativeComponentDefinitionProvider"]["LowSide"] = low_side - return True - - @power.setter - @disable_auto_update - def power(self, value): - """Assign power dissipation to the PCB. - - Parameters - ---------- - value : str - Power to apply to the PCB. - """ - self.props["NativeComponentDefinitionProvider"]["Power"] = value - - @property - def force_source_solve(self): - """Force source solution option.""" - return self.props["NativeComponentDefinitionProvider"].get("DefnLink", {}).get("ForceSourceToSolve", False) - - @force_source_solve.setter - @disable_auto_update - def force_source_solve(self, val): - """Set Whether to force source solution. - - Parameters - ---------- - value : bool - Whether to force source solution. - """ - if not isinstance(val, bool): - self._app.logger.error("Only Boolean value can be accepted.") - return - return self.props["NativeComponentDefinitionProvider"]["DefnLink"].update({"ForceSourceToSolve": val}) - - @property - def preserve_partner_solution(self): - """Preserve parner solution option.""" - return self.props["NativeComponentDefinitionProvider"].get("DefnLink", {}).get("PreservePartnerSoln", False) - - @preserve_partner_solution.setter - @disable_auto_update - def preserve_partner_solution(self, val): - """Set Whether to preserve partner solution. - - Parameters - ---------- - val : bool - Whether to preserve partner solution. - """ - if not isinstance(val, bool): - self._app.logger.error("Only boolean can be accepted.") - return - return self.props["NativeComponentDefinitionProvider"]["DefnLink"].update({"PreservePartnerSoln": val}) - - @property - def included_parts(self): - """Parts options.""" - p = self.props["NativeComponentDefinitionProvider"].get("PartsChoice", 0) - if p == 0: - return None - elif p == 1: - return PCBSettingsDeviceParts(self, self._app) - elif p == 2: - return PCBSettingsPackageParts(self, self._app) - - @included_parts.setter - @disable_auto_update - def included_parts(self, value): - """Set PCB parts incusion option. - - Parameters - ---------- - value : str or int - Valid options are ``"None"``, ``"Device"``, and ``"Package"`` (or 0, 1, and 2 respectivaly) - """ - if value is None: - value = "None" - part_map = {"None": 0, "Device": 1, "Package": 2} - if not isinstance(value, int): - value = part_map.get(value, None) - if value is not None: - self.props["NativeComponentDefinitionProvider"]["PartsChoice"] = value - else: - self._app.logger.error( - 'Invalid part choice. Valid options are "None", "Device", and "Package" (or 0, 1, and 2 respectively).' - ) - - @pyaedt_function_handler() - def identify_extent_poly(self): - """Get polygon that defines board extent. - - Returns - ------- - str - Name of the polygon to include. - """ - from ansys.aedt.core import Hfss3dLayout - - prj = self.props["NativeComponentDefinitionProvider"]["DefnLink"]["Project"] - if prj == "This Project*": - prj = self._app.project_name - layout = Hfss3dLayout(project=prj, design=self.props["NativeComponentDefinitionProvider"]["DefnLink"]["Design"]) - layer = [o for o in layout.modeler.stackup.drawing_layers if o.type == "outline"][0] - outlines = [p for p in layout.modeler.polygons.values() if p.placement_layer == layer.name] - if len(outlines) > 1: - self._app.logger.info( - f"{outlines[0].name} automatically selected as ``extent_polygon``, " - f"pass ``extent_polygon`` argument explixitly to select a different one. " - f"Available choices are: {', '.join([o.name for o in outlines])}" - ) - elif len(outlines) == 0: - self._app.logger.error("No polygon found in the Outline layer.") - return False - return outlines[0].name - - @property - def board_cutout_material(self): - """Material applied to cutout regions.""" - return self.props["NativeComponentDefinitionProvider"].get("BoardCutoutMaterial", "air ") - - @property - def via_holes_material(self): - """Material applied to via hole regions.""" - return self.props["NativeComponentDefinitionProvider"].get("ViaHoleMaterial", "copper") - - @board_cutout_material.setter - @disable_auto_update - def board_cutout_material(self, value): - """Set material to apply to cutout regions. - - Parameters - ---------- - value : str - Material to apply to cutout regions. - """ - self.props["NativeComponentDefinitionProvider"]["BoardCutoutMaterial"] = value - - @via_holes_material.setter - @disable_auto_update - def via_holes_material(self, value): - """Set material to apply to via hole regions. - - Parameters - ---------- - value : str - Material to apply to via hole regions. - """ - self.props["NativeComponentDefinitionProvider"]["ViaHoleMaterial"] = value - - @pyaedt_function_handler() - @disable_auto_update - def set_board_extents(self, extent_type=None, extent_polygon=None): - """Set board extent. - - Parameters - ---------- - extent_type : str, optional - Extent definition of the PCB. Default is ``None`` in which case the 3D Layout extent - will be used. Other possible options are: ``"Bounding Box"`` or ``"Polygon"``. - extent_polygon : str, optional - Polygon name to use in the extent definition of the PCB. Default is ``None``. This - argument is mandatory if ``extent_type`` is ``"Polygon"``. - - Returns - ------- - bool - ``True`` if successful. ``False`` otherwise. - """ - if extent_type is None: - self.props["NativeComponentDefinitionProvider"]["Use3DLayoutExtents"] = True - else: - allowed_extent_types = ["Bounding Box", "Polygon"] - if extent_type not in allowed_extent_types: - self._app.logger.error( - f"Accepted argument for ``extent_type`` are:" - f" {', '.join(allowed_extent_types)}. {extent_type} provided" - ) - return False - self.props["NativeComponentDefinitionProvider"]["ExtentsType"] = extent_type - if extent_type == "Polygon": - if extent_polygon is None: - extent_polygon = self.identify_extent_poly() - if not extent_polygon: - return False - self.props["NativeComponentDefinitionProvider"]["OutlinePolygon"] = extent_polygon - return True - - -class BoundaryObject(BoundaryCommon, object): - """Manages boundary data and execution. - - Parameters - ---------- - app : object - An AEDT application from ``ansys.aedt.core.application``. - name : str - Name of the boundary. - props : dict, optional - Properties of the boundary. - boundarytype : str, optional - Type of the boundary. - - Examples - -------- - - Create a cylinder at the XY working plane and assign a copper coating of 0.2 mm to it. The Coating is a boundary - operation and coat will return a ``ansys.aedt.core.modules.boundary.BoundaryObject`` - - >>> from ansys.aedt.core import Hfss - >>> hfss =Hfss() - >>> origin = hfss.modeler.Position(0, 0, 0) - >>> inner = hfss.modeler.create_cylinder(hfss.PLANE.XY,origin,3,200,0,"inner") - >>> inner_id = hfss.modeler.get_obj_id("inner",) - >>> coat = hfss.assign_coating([inner_id],"copper",use_thickness=True,thickness="0.2mm") - """ - - def __init__(self, app, name, props=None, boundarytype=None, auto_update=True): - self.auto_update = False - self._app = app - self._name = name - self._props = None - if props: - self._props = BoundaryProps(self, props) - self._type = boundarytype - self._boundary_name = self.name - self.auto_update = auto_update - - @property - def object_properties(self): - """Object-oriented properties. - - Returns - ------- - class:`ansys.aedt.core.modeler.cad.elements_3d.BinaryTreeNode` - - """ - from ansys.aedt.core.modeler.cad.elements_3d import BinaryTreeNode - - child_object = None - design_childs = self._app.get_oo_name(self._app.odesign) - - if "Thermal" in design_childs: - cc = self._app.get_oo_object(self._app.odesign, "Thermal") - cc_names = self._app.get_oo_name(cc) - if self.name in cc_names: - child_object = cc_names - if child_object: - return BinaryTreeNode(self.name, child_object, False) - elif "Boundaries" in design_childs: - cc = self._app.get_oo_object(self._app.odesign, "Boundaries") - if self.name in cc.GetChildNames(): - child_object = cc.GetChildObject(self.name) - elif "Excitations" in design_childs and self.name in self._app.get_oo_name( - self._app.odesign, "Excitations" - ): - child_object = self._app.get_oo_object(self._app.odesign, "Excitations").GetChildObject(self.name) - elif self._app.design_type in ["Maxwell 3D", "Maxwell 2D"] and "Model" in design_childs: - model = self._app.get_oo_object(self._app.odesign, "Model") - if self.name in model.GetChildNames(): - child_object = model.GetChildObject(self.name) - elif "Excitations" in design_childs and self._app.get_oo_name(self._app.odesign, "Excitations"): - for port in self._app.get_oo_name(self._app.odesign, "Excitations"): - terminals = self._app.get_oo_name(self._app.odesign, f"Excitations\\{port}") - if self.name in terminals: - child_object = self._app.get_oo_object(self._app.odesign, f"Excitations\\{port}\\{self.name}") - elif "Conductors" in design_childs and self._app.get_oo_name(self._app.odesign, "Conductors"): - for port in self._app.get_oo_name(self._app.odesign, "Conductors"): - if self.name == port: - child_object = self._app.get_oo_object(self._app.odesign, f"Conductors\\{port}") - - if child_object: - return BinaryTreeNode(self.name, child_object, False) - - return False - - @property - def props(self): - """Boundary data. - - Returns - ------- - :class:BoundaryProps - """ - if self._props: - return self._props - props = self._get_boundary_data(self.name) - - if props: - self._props = BoundaryProps(self, props[0]) - self._type = props[1] - return self._props - - @property - def type(self): - """Boundary type. - - Returns - ------- - str - Returns the type of the boundary. - """ - if not self._type: - if self.available_properties: - if "Type" in self.available_properties: - self._type = self.props["Type"] - elif "BoundType" in self.available_properties: - self._type = self.props["BoundType"] - elif self.object_properties and self.object_properties.props["Type"]: - self._type = self.object_properties.props["Type"] - - if self._app.design_type == "Icepak" and self._type == "Source": - return "SourceIcepak" - else: - return self._type - - @type.setter - def type(self, value): - self._type = value - - @property - def name(self): - """Boundary Name.""" - return self._name - - @name.setter - def name(self, value): - self._name = value - self.update() - - @pyaedt_function_handler() - def _get_args(self, props=None): - """Retrieve arguments. - - Parameters - ---------- - props : - The default is ``None``. - - Returns - ------- - list - List of boundary properties. - - """ - if props is None: - props = self.props - arg = ["NAME:" + self.name] - _dict2arg(props, arg) - return arg - - @pyaedt_function_handler() - def create(self): - """Create a boundary. - - Returns - ------- - bool - ``True`` when successful, ``False`` when failed. - - """ - bound_type = self.type - if bound_type == "Perfect E": - self._app.oboundary.AssignPerfectE(self._get_args()) - elif bound_type == "Perfect H": - self._app.oboundary.AssignPerfectH(self._get_args()) - elif bound_type == "Aperture": - self._app.oboundary.AssignAperture(self._get_args()) - elif bound_type == "Radiation": - self._app.oboundary.AssignRadiation(self._get_args()) - elif bound_type == "FE-BI": - self._app.oboundary.AssignFEBI(self._get_args()) - elif bound_type == "Finite Conductivity": - self._app.oboundary.AssignFiniteCond(self._get_args()) - elif bound_type == "Lumped RLC": - self._app.oboundary.AssignLumpedRLC(self._get_args()) - elif bound_type == "Impedance": - self._app.oboundary.AssignImpedance(self._get_args()) - elif bound_type == "Layered Impedance": - self._app.oboundary.AssignLayeredImp(self._get_args()) - elif bound_type == "Anisotropic Impedance": - self._app.oboundary.AssignAnisotropicImpedance(self._get_args()) - elif bound_type == "Primary": - self._app.oboundary.AssignPrimary(self._get_args()) - elif bound_type == "Secondary": - self._app.oboundary.AssignSecondary(self._get_args()) - elif bound_type == "Lattice Pair": - self._app.oboundary.AssignLatticePair(self._get_args()) - elif bound_type == "HalfSpace": - self._app.oboundary.AssignHalfSpace(self._get_args()) - elif bound_type == "Multipaction SEE": - self._app.oboundary.AssignMultipactionSEE(self._get_args()) - elif bound_type == "Fresnel": - self._app.oboundary.AssignFresnel(self._get_args()) - elif bound_type == "Symmetry": - self._app.oboundary.AssignSymmetry(self._get_args()) - elif bound_type == "Zero Tangential H Field": - self._app.oboundary.AssignZeroTangentialHField(self._get_args()) - elif bound_type == "Zero Integrated Tangential H Field": - self._app.oboundary.AssignIntegratedZeroTangentialHField(self._get_args()) - elif bound_type == "Tangential H Field": - self._app.oboundary.AssignTangentialHField(self._get_args()) - elif bound_type == "Insulating": - self._app.oboundary.AssignInsulating(self._get_args()) - elif bound_type == "Independent": - self._app.oboundary.AssignIndependent(self._get_args()) - elif bound_type == "Dependent": - self._app.oboundary.AssignDependent(self._get_args()) - elif bound_type == "Band": - self._app.omodelsetup.AssignBand(self._get_args()) - elif bound_type == "InfiniteGround": - self._app.oboundary.AssignInfiniteGround(self._get_args()) - elif bound_type == "ThinConductor": - self._app.oboundary.AssignThinConductor(self._get_args()) - elif bound_type == "Stationary Wall": - self._app.oboundary.AssignStationaryWallBoundary(self._get_args()) - elif bound_type == "Symmetry Wall": - self._app.oboundary.AssignSymmetryWallBoundary(self._get_args()) - elif bound_type == "Recirculating": - self._app.oboundary.AssignRecircBoundary(self._get_args()) - elif bound_type == "Resistance": - self._app.oboundary.AssignResistanceBoundary(self._get_args()) - elif bound_type == "Conducting Plate": - self._app.oboundary.AssignConductingPlateBoundary(self._get_args()) - elif bound_type == "Adiabatic Plate": - self._app.oboundary.AssignAdiabaticPlateBoundary(self._get_args()) - elif bound_type == "Network": - self._app.oboundary.AssignNetworkBoundary(self._get_args()) - elif bound_type == "Grille": - self._app.oboundary.AssignGrilleBoundary(self._get_args()) - elif bound_type == "Block": - self._app.oboundary.AssignBlockBoundary(self._get_args()) - elif bound_type == "Blower": - self._app.oboundary.AssignBlowerBoundary(self._get_args()) - elif bound_type == "SourceIcepak": - self._app.oboundary.AssignSourceBoundary(self._get_args()) - elif bound_type == "Opening": - self._app.oboundary.AssignOpeningBoundary(self._get_args()) - elif bound_type == "EMLoss": - self._app.oboundary.AssignEMLoss(self._get_args()) - elif bound_type == "ThermalCondition": - self._app.oboundary.AssignThermalCondition(self._get_args()) - elif bound_type == "Convection": - self._app.oboundary.AssignConvection(self._get_args()) - elif bound_type == "HeatFlux": - self._app.oboundary.AssignHeatFlux(self._get_args()) - elif bound_type == "HeatGeneration": - self._app.oboundary.AssignHeatGeneration(self._get_args()) - elif bound_type == "Temperature": - self._app.oboundary.AssignTemperature(self._get_args()) - elif bound_type == "RotatingFluid": - self._app.oboundary.AssignRotatingFluid(self._get_args()) - elif bound_type == "Frictionless": - self._app.oboundary.AssignFrictionlessSupport(self._get_args()) - elif bound_type == "FixedSupport": - self._app.oboundary.AssignFixedSupport(self._get_args()) - elif bound_type == "Voltage": - self._app.oboundary.AssignVoltage(self._get_args()) - elif bound_type == "VoltageDrop": - self._app.oboundary.AssignVoltageDrop(self._get_args()) - elif bound_type == "Floating": - self._app.oboundary.AssignFloating(self._get_args()) - elif bound_type == "Current": - self._app.oboundary.AssignCurrent(self._get_args()) - elif bound_type == "CurrentDensity": - self._app.oboundary.AssignCurrentDensity(self._get_args()) - elif bound_type == "CurrentDensityGroup": - self._app.oboundary.AssignCurrentDensityGroup(self._get_args()[2], self._get_args()[3]) - elif bound_type == "CurrentDensityTerminal": - self._app.oboundary.AssignCurrentDensityTerminal(self._get_args()) - elif bound_type == "CurrentDensityTerminalGroup": - self._app.oboundary.AssignCurrentDensityTerminalGroup(self._get_args()[2], self._get_args()[3]) - elif bound_type == "Balloon": - self._app.oboundary.AssignBalloon(self._get_args()) - elif bound_type == "Winding" or bound_type == "Winding Group": - self._app.oboundary.AssignWindingGroup(self._get_args()) - elif bound_type == "Vector Potential": - self._app.oboundary.AssignVectorPotential(self._get_args()) - elif bound_type == "CoilTerminal" or bound_type == "Coil Terminal": - self._app.oboundary.AssignCoilTerminal(self._get_args()) - elif bound_type == "Coil": - self._app.oboundary.AssignCoil(self._get_args()) - elif bound_type == "Source": - self._app.oboundary.AssignSource(self._get_args()) - elif bound_type == "Sink": - self._app.oboundary.AssignSink(self._get_args()) - elif bound_type == "SignalNet": - self._app.oboundary.AssignSignalNet(self._get_args()) - elif bound_type == "GroundNet": - self._app.oboundary.AssignGroundNet(self._get_args()) - elif bound_type == "FloatingNet": - self._app.oboundary.AssignFloatingNet(self._get_args()) - elif bound_type == "SignalLine": - self._app.oboundary.AssignSingleSignalLine(self._get_args()) - elif bound_type == "ReferenceGround": - self._app.oboundary.AssignSingleReferenceGround(self._get_args()) - elif bound_type == "Circuit Port": - self._app.oboundary.AssignCircuitPort(self._get_args()) - elif bound_type == "Lumped Port": - self._app.oboundary.AssignLumpedPort(self._get_args()) - elif bound_type == "Wave Port": - self._app.oboundary.AssignWavePort(self._get_args()) - elif bound_type == "Floquet Port": - self._app.oboundary.AssignFloquetPort(self._get_args()) - elif bound_type == "AutoIdentify": - # Build reference conductor argument as a list of strings - # ref_cond_arg should be a list. - ref_cond_arg = ["NAME:ReferenceConductors"] + self.props["ReferenceConductors"] - self._app.oboundary.AutoIdentifyPorts( - ["NAME:Faces", self.props["Faces"]], - self.props["IsWavePort"], - ref_cond_arg, - self.name, - self.props["RenormalizeModes"], - ) - elif bound_type == "SBRTxRxSettings": - self._app.oboundary.SetSBRTxRxSettings(self._get_args()) - elif bound_type == "EndConnection": - self._app.oboundary.AssignEndConnection(self._get_args()) - elif bound_type == "Hybrid": - self._app.oboundary.AssignHybridRegion(self._get_args()) - elif bound_type == "FluxTangential": - self._app.oboundary.AssignFluxTangential(self._get_args()) - elif bound_type == "Plane Incident Wave": - self._app.oboundary.AssignPlaneWave(self._get_args()) - elif bound_type == "ResistiveSheet": - self._app.oboundary.AssignResistiveSheet(self._get_args()) - else: - return False - return True - - @pyaedt_function_handler() - def update(self): - """Update the boundary. - - Returns - ------- - bool - ``True`` when successful, ``False`` when failed. - - """ - bound_type = self.type - if bound_type == "Perfect E": - self._app.oboundary.EditPerfectE(self._boundary_name, self._get_args()) - elif bound_type == "Perfect H": - self._app.oboundary.EditPerfectH(self._boundary_name, self._get_args()) - elif bound_type == "Aperture": - self._app.oboundary.EditAperture(self._boundary_name, self._get_args()) - elif bound_type == "Radiation": - self._app.oboundary.EditRadiation(self._boundary_name, self._get_args()) - elif bound_type == "Finite Conductivity": - self._app.oboundary.EditFiniteCond(self._boundary_name, self._get_args()) - elif bound_type == "Lumped RLC": - self._app.oboundary.EditLumpedRLC(self._boundary_name, self._get_args()) - elif bound_type == "Impedance": - self._app.oboundary.EditImpedance(self._boundary_name, self._get_args()) - elif bound_type == "Layered Impedance": - self._app.oboundary.EditLayeredImpedance(self._boundary_name, self._get_args()) - elif bound_type == "Anisotropic Impedance": - self._app.oboundary.EditAssignAnisotropicImpedance( - self._boundary_name, self._get_args() - ) # pragma: no cover - elif bound_type == "Primary": - self._app.oboundary.EditPrimary(self._boundary_name, self._get_args()) - elif bound_type == "Secondary": - self._app.oboundary.EditSecondary(self._boundary_name, self._get_args()) - elif bound_type == "Lattice Pair": - self._app.oboundary.EditLatticePair(self._boundary_name, self._get_args()) - elif bound_type == "HalfSpace": - self._app.oboundary.EditHalfSpace(self._boundary_name, self._get_args()) - elif bound_type == "Multipaction SEE": - self._app.oboundary.EditMultipactionSEE(self._boundary_name, self._get_args()) # pragma: no cover - elif bound_type == "Fresnel": - self._app.oboundary.EditFresnel(self._boundary_name, self._get_args()) # pragma: no cover - elif bound_type == "Symmetry": - self._app.oboundary.EditSymmetry(self._boundary_name, self._get_args()) - elif bound_type == "Zero Tangential H Field": - self._app.oboundary.EditZeroTangentialHField(self._boundary_name, self._get_args()) # pragma: no cover - elif bound_type == "Zero Integrated Tangential H Field": - self._app.oboundary.EditIntegratedZeroTangentialHField( - self._boundary_name, self._get_args() - ) # pragma: no cover - elif bound_type == "Tangential H Field": - self._app.oboundary.EditTangentialHField(self._boundary_name, self._get_args()) # pragma: no cover - elif bound_type == "Insulating": - self._app.oboundary.EditInsulating(self._boundary_name, self._get_args()) # pragma: no cover - elif bound_type == "Independent": - self._app.oboundary.EditIndependent(self._boundary_name, self._get_args()) # pragma: no cover - elif bound_type == "Dependent": - self._app.oboundary.EditDependent(self._boundary_name, self._get_args()) # pragma: no cover - elif bound_type == "Band": - self._app.omodelsetup.EditMotionSetup(self._boundary_name, self._get_args()) # pragma: no cover - elif bound_type == "InfiniteGround": - self._app.oboundary.EditInfiniteGround(self._boundary_name, self._get_args()) - elif bound_type == "ThinConductor": - self._app.oboundary.EditThinConductor(self._boundary_name, self._get_args()) - elif bound_type == "Stationary Wall": - self._app.oboundary.EditStationaryWallBoundary(self._boundary_name, self._get_args()) # pragma: no cover - elif bound_type == "Symmetry Wall": - self._app.oboundary.EditSymmetryWallBoundary(self._boundary_name, self._get_args()) # pragma: no cover - elif bound_type == "Recirculating": - self._app.oboundary.EditRecircBoundary(self._boundary_name, self._get_args()) - elif bound_type == "Resistance": - self._app.oboundary.EditResistanceBoundary(self._boundary_name, self._get_args()) # pragma: no cover - elif bound_type == "Conducting Plate": - self._app.oboundary.EditConductingPlateBoundary(self._boundary_name, self._get_args()) # pragma: no cover - elif bound_type == "Adiabatic Plate": - self._app.oboundary.EditAdiabaticPlateBoundary(self._boundary_name, self._get_args()) # pragma: no cover - elif bound_type == "Network": - self._app.oboundary.EditNetworkBoundary(self._boundary_name, self._get_args()) # pragma: no cover - elif bound_type == "Grille": - self._app.oboundary.EditGrilleBoundary(self._boundary_name, self._get_args()) - elif bound_type == "Opening": - self._app.oboundary.EditOpeningBoundary(self._boundary_name, self._get_args()) - elif bound_type == "EMLoss": - self._app.oboundary.EditEMLoss(self._boundary_name, self._get_args()) # pragma: no cover - elif bound_type == "Block": - self._app.oboundary.EditBlockBoundary(self._boundary_name, self._get_args()) - elif bound_type == "Blower": - self._app.oboundary.EditBlowerBoundary(self._boundary_name, self._get_args()) - elif bound_type == "SourceIcepak": - self._app.oboundary.EditSourceBoundary(self._boundary_name, self._get_args()) - elif bound_type == "HeatFlux": - self._app.oboundary.EditHeatFlux(self._boundary_name, self._get_args()) - elif bound_type == "HeatGeneration": - self._app.oboundary.EditHeatGeneration(self._boundary_name, self._get_args()) - elif bound_type == "Voltage": - self._app.oboundary.EditVoltage(self._boundary_name, self._get_args()) - elif bound_type == "VoltageDrop": - self._app.oboundary.EditVoltageDrop(self._boundary_name, self._get_args()) - elif bound_type == "Current": - self._app.oboundary.EditCurrent(self._boundary_name, self._get_args()) - elif bound_type == "CurrentDensity": - self._app.oboundary.AssignCurrentDensity(self._get_args()) - elif bound_type == "CurrentDensityGroup": - self._app.oboundary.AssignCurrentDensityGroup(self._get_args()[2], self._get_args()[3]) - elif bound_type == "CurrentDensityTerminal": - self._app.oboundary.AssignCurrentDensityTerminal(self._get_args()) - elif bound_type == "CurrentDensityTerminalGroup": - self._app.oboundary.AssignCurrentDensityTerminalGroup(self._get_args()[2], self._get_args()[3]) - elif bound_type == "Winding" or bound_type == "Winding Group": - self._app.oboundary.EditWindingGroup(self._boundary_name, self._get_args()) # pragma: no cover - elif bound_type == "Vector Potential": - self._app.oboundary.EditVectorPotential(self._boundary_name, self._get_args()) # pragma: no cover - elif bound_type == "CoilTerminal" or bound_type == "Coil Terminal": - self._app.oboundary.EditCoilTerminal(self._boundary_name, self._get_args()) - elif bound_type == "Coil": - self._app.oboundary.EditCoil(self._boundary_name, self._get_args()) - elif bound_type == "Source": - self._app.oboundary.EditTerminal(self._boundary_name, self._get_args()) # pragma: no cover - elif bound_type == "Sink": - self._app.oboundary.EditTerminal(self._boundary_name, self._get_args()) - elif bound_type == "SignalNet" or bound_type == "GroundNet" or bound_type == "FloatingNet": - self._app.oboundary.EditTerminal(self._boundary_name, self._get_args()) - elif bound_type in "Circuit Port": - self._app.oboundary.EditCircuitPort(self._boundary_name, self._get_args()) - elif bound_type in "Lumped Port": - self._app.oboundary.EditLumpedPort(self._boundary_name, self._get_args()) - elif bound_type in "Wave Port": - self._app.oboundary.EditWavePort(self._boundary_name, self._get_args()) - elif bound_type == "SetSBRTxRxSettings": - self._app.oboundary.SetSBRTxRxSettings(self._get_args()) # pragma: no cover - elif bound_type == "Floquet Port": - self._app.oboundary.EditFloquetPort(self._boundary_name, self._get_args()) # pragma: no cover - elif bound_type == "End Connection": - self._app.oboundary.EditEndConnection(self._boundary_name, self._get_args()) - elif bound_type == "Hybrid": - self._app.oboundary.EditHybridRegion(self._boundary_name, self._get_args()) - elif bound_type == "Terminal": - self._app.oboundary.EditTerminal(self._boundary_name, self._get_args()) - elif bound_type == "Plane Incident Wave": - self._app.oboundary.EditIncidentWave(self._boundary_name, self._get_args()) - else: - return False # pragma: no cover - - self._app._boundaries[self.name] = self._app._boundaries.pop(self._boundary_name) - self._boundary_name = self.name - - return True - - @pyaedt_function_handler() - def update_assignment(self): - """Update the boundary assignment. - - Returns - ------- - bool - ``True`` when successful, ``False`` when failed. - - """ - - out = ["Name:" + self.name] - - if "Faces" in self.props: - faces = self.props["Faces"] - faces_out = [] - if not isinstance(faces, list): - faces = [faces] - for f in faces: - if isinstance(f, (EdgePrimitive, FacePrimitive, VertexPrimitive)): - faces_out.append(f.id) - else: - faces_out.append(f) - out += ["Faces:=", faces_out] - - if "Objects" in self.props: - pr = [] - for el in self.props["Objects"]: - try: - pr.append(self._app.modeler[el].name) - except (KeyError, AttributeError): - pass - out += ["Objects:=", pr] - - if len(out) == 1: - return False - - self._app.oboundary.ReassignBoundary(out) - - return True - - -class MaxwellParameters(BoundaryCommon, object): - """Manages parameters data and execution. - - Parameters - ---------- - app : :class:`ansys.aedt.core.maxwell.Maxwell3d`, :class:`ansys.aedt.core.maxwell.Maxwell2d` - Either ``Maxwell3d`` or ``Maxwell2d`` application. - name : str - Name of the boundary. - props : dict, optional - Properties of the boundary. - boundarytype : str, optional - Type of the boundary. - - Examples - -------- - - Create a matrix in Maxwell3D return a ``ansys.aedt.core.modules.boundary.BoundaryObject`` - - >>> from ansys.aedt.core import Maxwell2d - >>> maxwell_2d = Maxwell2d() - >>> coil1 = maxwell_2d.modeler.create_rectangle([8.5,1.5, 0],[8, 3],True,"Coil_1","vacuum") - >>> coil2 = maxwell_2d.modeler.create_rectangle([8.5,1.5, 0],[8, 3],True,"Coil_2","vacuum") - >>> maxwell_2d.assign_matrix(["Coil_1", "Coil_2"]) - """ - - def __init__(self, app, name, props=None, boundarytype=None): - self.auto_update = False - self._app = app - self._name = name - self._props = None - if props: - self._props = BoundaryProps(self, props) - self.type = boundarytype - self._boundary_name = self.name - self.auto_update = True - self.__reduced_matrices = None - self.matrix_assignment = None - - @property - def reduced_matrices(self): - """List of reduced matrix groups for the parent matrix. - - Returns - ------- - dict - Dictionary of reduced matrices where the key is the name of the parent matrix - and the values are in a list of reduced matrix groups. - """ - if self._app.solution_type == "EddyCurrent": - self.__reduced_matrices = {} - cc = self._app.odesign.GetChildObject("Parameters") - parents = cc.GetChildNames() - if self.name in parents: - parent_object = self._app.odesign.GetChildObject("Parameters").GetChildObject(self.name) - parent_type = parent_object.GetPropValue("Type") - if parent_type == "Matrix": - self.matrix_assignment = parent_object.GetPropValue("Selection").split(",") - child_names = parent_object.GetChildNames() - self.__reduced_matrices = [] - for r in child_names: - self.__reduced_matrices.append(MaxwellMatrix(self._app, self.name, r)) - return self.__reduced_matrices - - @property - def object_properties(self): - """Object-oriented properties. - - Returns - ------- - class:`ansys.aedt.core.modeler.cad.elements_3d.BinaryTreeNode` - - """ - - from ansys.aedt.core.modeler.cad.elements_3d import BinaryTreeNode - - cc = self._app.odesign.GetChildObject("Parameters") - child_object = None - if self.name in cc.GetChildNames(): - child_object = self._app.odesign.GetChildObject("Parameters").GetChildObject(self.name) - elif self.name in self._app.odesign.GetChildObject("Parameters").GetChildNames(): - child_object = self._app.odesign.GetChildObject("Parameters").GetChildObject(self.name) - if child_object: - return BinaryTreeNode(self.name, child_object, False) - return False - - @property - def props(self): - """Maxwell parameter data. - - Returns - ------- - :class:BoundaryProps - """ - if self._props: - return self._props - props = self._get_boundary_data(self.name) - - if props: - self._props = BoundaryProps(self, props[0]) - self._type = props[1] - return self._props - - @property - def name(self): - """Boundary name.""" - return self._name - - @name.setter - def name(self, value): - self._name = value - self.update() - - @pyaedt_function_handler() - def _get_args(self, props=None): - """Retrieve arguments. - - Parameters - ---------- - props : - The default is ``None``. - - Returns - ------- - list - List of boundary properties. - - """ - if props is None: - props = self.props - arg = ["NAME:" + self.name] - _dict2arg(props, arg) - return arg - - @pyaedt_function_handler() - def create(self): - """Create a boundary. - - Returns - ------- - bool - ``True`` when successful, ``False`` when failed. - - """ - if self.type == "Matrix": - self._app.o_maxwell_parameters.AssignMatrix(self._get_args()) - elif self.type == "Torque": - self._app.o_maxwell_parameters.AssignTorque(self._get_args()) - elif self.type == "Force": - self._app.o_maxwell_parameters.AssignForce(self._get_args()) - elif self.type == "LayoutForce": - self._app.o_maxwell_parameters.AssignLayoutForce(self._get_args()) - else: - return False - return True - - @pyaedt_function_handler() - def update(self): - """Update the boundary. - - Returns - ------- - bool - ``True`` when successful, ``False`` when failed. - - """ - if self.type == "Matrix": - self._app.o_maxwell_parameters.EditMatrix(self._boundary_name, self._get_args()) - elif self.type == "Force": - self._app.o_maxwell_parameters.EditForce(self._boundary_name, self._get_args()) - elif self.type == "Torque": - self._app.o_maxwell_parameters.EditTorque(self._boundary_name, self._get_args()) - else: - return False - self._boundary_name = self.name - return True - - @pyaedt_function_handler() - def _create_matrix_reduction(self, red_type, sources, matrix_name=None, join_name=None): - if not self._app.solution_type == "EddyCurrent": - self._app.logger.error("Matrix reduction is possible only in Eddy current solvers.") - return False, False - if not matrix_name: - matrix_name = generate_unique_name("ReducedMatrix", n=3) - if not join_name: - join_name = generate_unique_name("Join" + red_type, n=3) - try: - self._app.o_maxwell_parameters.AddReduceOp( - self.name, - matrix_name, - ["NAME:" + join_name, "Type:=", "Join in " + red_type, "Sources:=", ",".join(sources)], - ) - return matrix_name, join_name - except Exception: - self._app.logger.error("Failed to create Matrix Reduction") - return False, False - - @pyaedt_function_handler() - def join_series(self, sources, matrix_name=None, join_name=None): - """ - - Parameters - ---------- - sources : list - Sources to be included in matrix reduction. - matrix_name : str, optional - name of the string to create. - join_name : str, optional - Name of the Join operation. - - Returns - ------- - (str, str) - Matrix name and Joint name. - - """ - return self._create_matrix_reduction( - red_type="Series", sources=sources, matrix_name=matrix_name, join_name=join_name - ) - - @pyaedt_function_handler() - def join_parallel(self, sources, matrix_name=None, join_name=None): - """ - - Parameters - ---------- - sources : list - Sources to be included in matrix reduction. - matrix_name : str, optional - name of the string to create. - join_name : str, optional - Name of the Join operation. - - Returns - ------- - (str, str) - Matrix name and Joint name. - - """ - return self._create_matrix_reduction( - red_type="Parallel", sources=sources, matrix_name=matrix_name, join_name=join_name - ) - - -class MaxwellMatrix(object): - def __init__(self, app, parent_name, reduced_name): - self._app = app - self.parent_matrix = parent_name - self.name = reduced_name - self.__sources = None - - @property - def sources(self): - """List of matrix sources.""" - if self._app.solution_type == "EddyCurrent": - sources = ( - self._app.odesign.GetChildObject("Parameters") - .GetChildObject(self.parent_matrix) - .GetChildObject(self.name) - .GetChildNames() - ) - self.__sources = {} - for s in sources: - excitations = ( - self._app.odesign.GetChildObject("Parameters") - .GetChildObject(self.parent_matrix) - .GetChildObject(self.name) - .GetChildObject(s) - .GetPropValue("Source") - ) - self.__sources[s] = excitations - return self.__sources - - @pyaedt_function_handler() - def update(self, old_source, source_type, new_source=None, new_excitations=None): - """Update the reduced matrix. - - Parameters - ---------- - old_source : str - Original name of the source to update. - source_type : str - Source type, which can be ``Series`` or ``Parallel``. - new_source : str, optional - New name of the source to update. - The default value is the old source name. - new_excitations : str, optional - List of excitations to include in the matrix reduction. - The default values are excitations included in the source to update. - - Returns - ------- - bool - ``True`` when successful, ``False`` when failed. - """ - if old_source not in self.sources.keys(): - self._app.logger.error("Source does not exist.") - return False - else: - new_excitations = self.sources[old_source] if not new_excitations else new_excitations - if source_type.lower() not in ["series", "parallel"]: - self._app.logger.error("Join type not valid.") - return False - if not new_source: - new_source = old_source - args = ["NAME:" + new_source, "Type:=", "Join in " + source_type, "Sources:=", new_excitations] - self._app.o_maxwell_parameters.EditReduceOp(self.parent_matrix, self.name, old_source, args) - return True - - @pyaedt_function_handler() - def delete(self, source): - """Delete a specified source in a reduced matrix. - - Parameters - ---------- - source : string - Name of the source to delete. - - Returns - ------- - bool - ``True`` when successful, ``False`` when failed. - """ - if source not in self.sources.keys(): - self._app.logger.error("Invalid source name.") - return False - self._app.o_maxwell_parameters.DeleteReduceOp(self.parent_matrix, self.name, source) - return True - - -class FieldSetup(BoundaryCommon, object): - """Manages far field and near field component data and execution. - - Examples - -------- - In this example the sphere1 returned object is a ``ansys.aedt.core.modules.boundary.FarFieldSetup`` - >>> from ansys.aedt.core import Hfss - >>> hfss = Hfss() - >>> sphere1 = hfss.insert_infinite_sphere() - >>> sphere1.props["ThetaStart"] = "-90deg" - >>> sphere1.props["ThetaStop"] = "90deg" - >>> sphere1.props["ThetaStep"] = "2deg" - >>> sphere1.delete() - """ - - def __init__(self, app, component_name, props, component_type): - self.auto_update = False - self._app = app - self.type = component_type - self._name = component_name - self.props = BoundaryProps(self, props) - self.auto_update = True - - @property - def name(self): - """Variable name.""" - return self._name - - @name.setter - def name(self, value): - self._app.oradfield.RenameSetup(self._name, value) - self._name = value - - @pyaedt_function_handler() - def _get_args(self, props=None): - if props is None: - props = self.props - arg = ["NAME:" + self.name] - _dict2arg(props, arg) - return arg - - @pyaedt_function_handler() - def create(self): - """Create a Field Setup Component in HFSS. - - Returns - ------- - bool - ``True`` when successful, ``False`` when failed. - - """ - - if self.type == "FarFieldSphere": - self._app.oradfield.InsertInfiniteSphereSetup(self._get_args()) - elif self.type == "NearFieldBox": - self._app.oradfield.InsertBoxSetup(self._get_args()) - elif self.type == "NearFieldSphere": - self._app.oradfield.InsertSphereSetup(self._get_args()) - elif self.type == "NearFieldRectangle": - self._app.oradfield.InsertRectangleSetup(self._get_args()) - elif self.type == "NearFieldLine": - self._app.oradfield.InsertLineSetup(self._get_args()) - elif self.type == "AntennaOverlay": - self._app.oradfield.AddAntennaOverlay(self._get_args()) - elif self.type == "FieldSourceGroup": - self._app.oradfield.AddRadFieldSourceGroup(self._get_args()) - return True - - @pyaedt_function_handler() - def update(self): - """Update the Field Setup in AEDT. - - Returns - ------- - bool - ``True`` when successful, ``False`` when failed. - - """ - - if self.type == "FarFieldSphere": - self._app.oradfield.EditInfiniteSphereSetup(self.name, self._get_args()) - elif self.type == "NearFieldBox": - self._app.oradfield.EditBoxSetup(self.name, self._get_args()) - elif self.type == "NearFieldSphere": - self._app.oradfield.EditSphereSetup(self.name, self._get_args()) - elif self.type == "NearFieldRectangle": - self._app.oradfield.EditRectangleSetup(self.name, self._get_args()) - elif self.type == "NearFieldLine": - self._app.oradfield.EditLineSetup(self.name, self._get_args()) - elif self.type == "AntennaOverlay": - self._app.oradfield.EditAntennaOverlay(self.name, self._get_args()) - elif self.type == "FieldSourceGroup": - self._app.oradfield.EditRadFieldSourceGroup(self._get_args()) - return True - - @pyaedt_function_handler() - def delete(self): - """Delete the Field Setup in AEDT. - - Returns - ------- - bool - ``True`` when successful, ``False`` when failed. - - """ - self._app.oradfield.DeleteSetup([self.name]) - for el in self._app.field_setups: - if el.name == self.name: - self._app.field_setups.remove(el) - return True - - -class FarFieldSetup(FieldSetup, object): - """Manages Far Field Component data and execution. - - Examples - -------- - in this example the sphere1 returned object is a ``ansys.aedt.core.modules.boundary.FarFieldSetup`` - >>> from ansys.aedt.core import Hfss - >>> hfss = Hfss() - >>> sphere1 = hfss.insert_infinite_sphere() - >>> sphere1.props["ThetaStart"] = "-90deg" - >>> sphere1.props["ThetaStop"] = "90deg" - >>> sphere1.props["ThetaStep"] = "2deg" - >>> sphere1.delete() - """ - - def __init__(self, app, component_name, props, component_type, units="deg"): - FieldSetup.__init__(self, app, component_name, props, component_type) - self.units = units - - @property - def definition(self): - """Set/Get the Far Field Angle Definition.""" - return self.props["CSDefinition"] - - @definition.setter - def definition(self, value): - actual_value = self.props["CSDefinition"] - self.props["CSDefinition"] = value - actual_defs = None - defs = None - if actual_value != value and value == "Theta-Phi": - defs = ["ThetaStart", "ThetaStop", "ThetaStep", "PhiStart", "PhiStop", "PhiStep"] - actual_defs = [ - "AzimuthStart", - "AzimuthStop", - "AzimuthStep", - "ElevationStart", - "ElevationStop", - "ElevationStep", - ] - elif actual_value != value and value == "El Over Az": - defs = ["AzimuthStart", "AzimuthStop", "AzimuthStep", "ElevationStart", "ElevationStop", "ElevationStep"] - if actual_value == "Theta-Phi": - actual_defs = ["ThetaStart", "ThetaStop", "ThetaStep", "PhiStart", "PhiStop", "PhiStep"] - else: - actual_defs = [ - "AzimuthStart", - "AzimuthStop", - "AzimuthStep", - "ElevationStart", - "ElevationStop", - "ElevationStep", - ] - elif actual_value != value: - defs = ["ElevationStart", "ElevationStop", "ElevationStep", "AzimuthStart", "AzimuthStop", "AzimuthStep"] - if actual_value == "Theta-Phi": - actual_defs = ["ThetaStart", "ThetaStop", "ThetaStep", "PhiStart", "PhiStop", "PhiStep"] - else: - actual_defs = [ - "ElevationStart", - "ElevationStop", - "ElevationStep", - "AzimuthStart", - "AzimuthStop", - "AzimuthStep", - ] - if actual_defs != defs: - self.props[defs[0]] = self.props[actual_defs[0]] - self.props[defs[1]] = self.props[actual_defs[1]] - self.props[defs[2]] = self.props[actual_defs[2]] - self.props[defs[3]] = self.props[actual_defs[3]] - self.props[defs[4]] = self.props[actual_defs[4]] - self.props[defs[5]] = self.props[actual_defs[5]] - del self.props[actual_defs[0]] - del self.props[actual_defs[1]] - del self.props[actual_defs[2]] - del self.props[actual_defs[3]] - del self.props[actual_defs[4]] - del self.props[actual_defs[5]] - self.update() - - @property - def use_custom_radiation_surface(self): - """Set/Get the Far Field Radiation Surface Enable.""" - return self.props["UseCustomRadiationSurface"] - - @use_custom_radiation_surface.setter - def use_custom_radiation_surface(self, value): - self.props["UseCustomRadiationSurface"] = value - self.update() - - @property - def custom_radiation_surface(self): - """Set/Get the Far Field Radiation Surface FaceList.""" - return self.props["CustomRadiationSurface"] - - @custom_radiation_surface.setter - def custom_radiation_surface(self, value): - if value: - self.props["UseCustomRadiationSurface"] = True - self.props["CustomRadiationSurface"] = value - else: - self.props["UseCustomRadiationSurface"] = False - self.props["CustomRadiationSurface"] = "" - self.update() - - @property - def use_local_coordinate_system(self): - """Set/Get the usage of a custom Coordinate System.""" - return self.props["UseLocalCS"] - - @use_local_coordinate_system.setter - def use_local_coordinate_system(self, value): - self.props["UseLocalCS"] = value - self.update() - - @property - def local_coordinate_system(self): - """Set/Get the custom Coordinate System name.""" - return self.props["CoordSystem"] - - @local_coordinate_system.setter - def local_coordinate_system(self, value): - if value: - self.props["UseLocalCS"] = True - self.props["CoordSystem"] = value - else: - self.props["UseLocalCS"] = False - self.props["CoordSystem"] = "" - self.update() - - @property - def polarization(self): - """Set/Get the Far Field Polarization.""" - return self.props["Polarization"] - - @polarization.setter - def polarization(self, value): - self.props["Polarization"] = value - self.update() - - @property - def slant_angle(self): - """Set/Get the Far Field Slant Angle if Polarization is Set to `Slant`.""" - - if self.props["Polarization"] == "Slant": - return self.props["SlantAngle"] - else: - return - - @slant_angle.setter - def slant_angle(self, value): - self.props["Polarization"] = "Slant" - self.props["SlantAngle"] = value - self.update() - - @property - def theta_start(self): - """Set/Get the Far Field Theta Start Angle if Definition is Set to `Theta-Phi`.""" - - if "ThetaStart" in self.props: - return self.props["ThetaStart"] - else: - return - - @property - def theta_stop(self): - """Set/Get the Far Field Theta Stop Angle if Definition is Set to `Theta-Phi`.""" - - if "ThetaStop" in self.props: - return self.props["ThetaStop"] - else: - return - - @property - def theta_step(self): - """Set/Get the Far Field Theta Step Angle if Definition is Set to `Theta-Phi`.""" - - if "ThetaStep" in self.props: - return self.props["ThetaStep"] - else: - return - - @property - def phi_start(self): - """Set/Get the Far Field Phi Start Angle if Definition is Set to `Theta-Phi`.""" - - if "PhiStart" in self.props: - return self.props["PhiStart"] - else: - return - - @property - def phi_stop(self): - """Set/Get the Far Field Phi Stop Angle if Definition is Set to `Theta-Phi`.""" - - if "PhiStop" in self.props: - return self.props["PhiStop"] - else: - return - - @property - def phi_step(self): - """Set/Get the Far Field Phi Step Angle if Definition is Set to `Theta-Phi`.""" - - if "PhiStep" in self.props: - return self.props["PhiStep"] - else: - return - - @property - def azimuth_start(self): - """Set/Get the Far Field Azimuth Start Angle if Definition is Set to `Az Over El` or `El Over Az`.""" - - if "AzimuthStart" in self.props: - return self.props["AzimuthStart"] - else: - return - - @property - def azimuth_stop(self): - """Set/Get the Far Field Azimuth Stop Angle if Definition is Set to `Az Over El` or `El Over Az`.""" - - if "AzimuthStop" in self.props: - return self.props["AzimuthStop"] - else: - return - - @property - def azimuth_step(self): - """Set/Get the Far Field Azimuth Step Angle if Definition is Set to `Az Over El` or `El Over Az`.""" - - if "AzimuthStep" in self.props: - return self.props["AzimuthStep"] - else: - return - - @property - def elevation_start(self): - """Set/Get the Far Field Elevation Start Angle if Definition is Set to `Az Over El` or `El Over Az`.""" - - if "ElevationStart" in self.props: - return self.props["ElevationStart"] - else: - return - - @property - def elevation_stop(self): - """Set/Get the Far Field Elevation Stop Angle if Definition is Set to `Az Over El` or `El Over Az`.""" - - if "ElevationStop" in self.props: - return self.props["ElevationStop"] - else: - return - - @property - def elevation_step(self): - """Set/Get the Far Field Elevation Step Angle if Definition is Set to `Az Over El` or `El Over Az`.""" - - if "ElevationStep" in self.props: - return self.props["ElevationStep"] - else: - return - - @theta_start.setter - def theta_start(self, value): - if "ThetaStart" in self.props: - self.props["ThetaStart"] = _dim_arg(value, self.units) - self.update() - - @theta_stop.setter - def theta_stop(self, value): - if "ThetaStop" in self.props: - self.props["ThetaStop"] = _dim_arg(value, self.units) - self.update() - - @theta_step.setter - def theta_step(self, value): - if "ThetaStep" in self.props: - self.props["ThetaStep"] = _dim_arg(value, self.units) - self.update() - - @phi_start.setter - def phi_start(self, value): - if "PhiStart" in self.props: - self.props["PhiStart"] = _dim_arg(value, self.units) - self.update() - - @phi_stop.setter - def phi_stop(self, value): - if "PhiStop" in self.props: - self.props["PhiStop"] = _dim_arg(value, self.units) - self.update() - - @phi_step.setter - def phi_step(self, value): - if "PhiStep" in self.props: - self.props["PhiStep"] = _dim_arg(value, self.units) - self.update() - - @azimuth_start.setter - def azimuth_start(self, value): - if "AzimuthStart" in self.props: - self.props["AzimuthStart"] = _dim_arg(value, self.units) - self.update() - - @azimuth_stop.setter - def azimuth_stop(self, value): - if "AzimuthStop" in self.props: - self.props["AzimuthStop"] = _dim_arg(value, self.units) - self.update() - - @azimuth_step.setter - def azimuth_step(self, value): - if "AzimuthStep" in self.props: - self.props["AzimuthStep"] = _dim_arg(value, self.units) - self.update() - - @elevation_start.setter - def elevation_start(self, value): - if "ElevationStart" in self.props: - self.props["ElevationStart"] = _dim_arg(value, self.units) - self.update() - - @elevation_stop.setter - def elevation_stop(self, value): - if "ElevationStop" in self.props: - self.props["ElevationStop"] = _dim_arg(value, self.units) - self.update() - - @elevation_step.setter - def elevation_step(self, value): - if "ElevationStep" in self.props: - self.props["ElevationStep"] = _dim_arg(value, self.units) - self.update() - - -class NearFieldSetup(FieldSetup, object): - """Manages Near Field Component data and execution. - - Examples - -------- - in this example the rectangle1 returned object is a ``ansys.aedt.core.modules.boundary.NearFieldSetup`` - >>> from ansys.aedt.core import Hfss - >>> hfss = Hfss() - >>> rectangle1 = hfss.insert_near_field_rectangle() - """ - - def __init__(self, app, component_name, props, component_type): - FieldSetup.__init__(self, app, component_name, props, component_type) - - -class Matrix(object): - """Manages Matrix in Q3d and Q2d Projects. - - Examples - -------- - - - """ - - def __init__(self, app, name, operations=None): - self._app = app - self.omatrix = self._app.omatrix - self.name = name - self._sources = [] - if operations: - if isinstance(operations, list): - self._operations = operations - else: - self._operations = [operations] - self.CATEGORIES = CATEGORIESQ3D() - - @pyaedt_function_handler() - def sources(self, is_gc_sources=True): - """List of matrix sources. - - Parameters - ---------- - is_gc_sources : bool, - In Q3d, define if to return GC sources or RL sources. Default `True`. - - Returns - ------- - List - """ - if self.name in list(self._app.omatrix.ListReduceMatrixes()): - if self._app.design_type == "Q3D Extractor": - self._sources = list(self._app.omatrix.ListReduceMatrixReducedSources(self.name, is_gc_sources)) - else: - self._sources = list(self._app.omatrix.ListReduceMatrixReducedSources(self.name)) - return self._sources - - @pyaedt_function_handler() - def get_sources_for_plot( - self, - get_self_terms=True, - get_mutual_terms=True, - first_element_filter=None, - second_element_filter=None, - category="C", - ): - """Return a list of source of specified matrix ready to be used in plot reports. - - Parameters - ---------- - get_self_terms : bool - Either if self terms have to be returned or not. - get_mutual_terms : bool - Either if mutual terms have to be returned or not. - first_element_filter : str, optional - Filter to apply to first element of equation. It accepts `*` and `?` as special characters. - second_element_filter : str, optional - Filter to apply to second element of equation. It accepts `*` and `?` as special characters. - category : str - Plot category name as in the report. Eg. "C" is category Capacitance. - Matrix `CATEGORIES` property can be used to map available categories. - - Returns - ------- - list - - Examples - -------- - >>> from ansys.aedt.core import Q3d - >>> q3d = Q3d(project_path) - >>> q3d.matrices[0].get_sources_for_plot(first_element_filter="Bo?1", - ... second_element_filter="GND*", category="DCL") - """ - if not first_element_filter: - first_element_filter = "*" - if not second_element_filter: - second_element_filter = "*" - is_cg = False - if category in [self.CATEGORIES.Q3D.C, self.CATEGORIES.Q3D.G]: - is_cg = True - list_output = [] - if get_self_terms: - for el in self.sources(is_gc_sources=is_cg): - value = f"{category}({el},{el})" - if filter_tuple(value, first_element_filter, second_element_filter): - list_output.append(value) - if get_mutual_terms: - for el1 in self.sources(is_gc_sources=is_cg): - for el2 in self.sources(is_gc_sources=is_cg): - if el1 != el2: - value = f"{category}({el1},{el2})" - if filter_tuple(value, first_element_filter, second_element_filter): - list_output.append(value) - return list_output - - @property - def operations(self): - """List of matrix operations. - - Returns - ------- - List - """ - if self.name in list(self._app.omatrix.ListReduceMatrixes()): - self._operations = self._app.omatrix.ListReduceMatrixOperations(self.name) - return self._operations - - @pyaedt_function_handler() - def create( - self, - source_names=None, - new_net_name=None, - new_source_name=None, - new_sink_name=None, - ): - """Create a new matrix. - - Parameters - ---------- - source_names : str, list - List or str containing the content of the matrix reduction (eg. source name). - new_net_name : str, optional - Name of the new net. The default is ``None``. - new_source_name : str, optional - Name of the new source. The default is ``None``. - new_sink_name : str, optional - Name of the new sink. The default is ``None``. - - Returns - ------- - bool - `True` if succeeded. - """ - if not isinstance(source_names, list) and source_names: - source_names = [source_names] - - command = self._write_command(source_names, new_net_name, new_source_name, new_sink_name) - self.omatrix.InsertRM(self.name, command) - return True - - @pyaedt_function_handler() - def delete(self): - """Delete current matrix. - - Returns - ------- - bool - ``True`` when successful, ``False`` when failed. - """ - self.omatrix.DeleteRM(self.name) - for el in self._app.matrices: - if el.name == self.name: - self._app.matrices.remove(el) - return True - - @pyaedt_function_handler() - def add_operation( - self, - operation_type, - source_names=None, - new_net_name=None, - new_source_name=None, - new_sink_name=None, - ): - """Add a new operation to existing matrix. - - Parameters - ---------- - operation_type : str - Operation to perform - source_names : str, list - List or str containing the content of the matrix reduction (eg. source name). - new_net_name : str, optional - Name of the new net. The default is ``None``. - new_source_name : str, optional - Name of the new source. The default is ``None``. - new_sink_name : str, optional - Name of the new sink. The default is ``None``. - - Returns - ------- - bool - `True` if succeeded. - """ - self._operations.append(operation_type) - if not isinstance(source_names, list) and source_names: - source_names = [source_names] - - if not new_net_name: - new_net_name = generate_unique_name("Net") - - if not new_source_name: - new_source_name = generate_unique_name("Source") - - if not new_sink_name: - new_sink_name = generate_unique_name("Sink") - - command = self._write_command(source_names, new_net_name, new_source_name, new_sink_name) - self.omatrix.RMAddOp(self.name, command) - return True - - @pyaedt_function_handler() - def _write_command(self, source_names, new_name, new_source, new_sink): - if self._operations[-1] == "JoinSeries": - command = f"""{self._operations[-1]}('{new_name}', '{"', '".join(source_names)}')""" - elif self._operations[-1] == "JoinParallel": - command = ( - f"""{self._operations[-1]}('{new_name}', '{new_source}', '{new_sink}', '{"', '".join(source_names)}')""" - ) - elif self._operations[-1] == "JoinSelectedTerminals": - command = f"""{self._operations[-1]}('', '{"', '".join(source_names)}')""" - elif self._operations[-1] == "FloatInfinity": - command = "FloatInfinity()" - elif self._operations[-1] == "AddGround": - command = f"""{self._operations[-1]}(SelectionArray[{len(source_names)}: '{"', '".join(source_names)}'], - OverrideInfo())""" - elif ( - self._operations[-1] == "SetReferenceGround" - or self._operations[-1] == "SetReferenceGround" - or self._operations[-1] == "Float" - ): - command = f"""{self._operations[-1]}(SelectionArray[{len(source_names)}: '{"', '".join(source_names)}'], - OverrideInfo())""" - elif self._operations[-1] == "Parallel" or self._operations[-1] == "DiffPair": - id_ = 0 - for el in self._app.boundaries: - if el.name == source_names[0]: - id_ = self._app.modeler[el.props["Objects"][0]].id - command = f"""{self._operations[-1]}(SelectionArray[{len(source_names)}: '{"', '".join(source_names)}'], - OverrideInfo({id_}, '{new_name}'))""" - else: - command = f"""{self._operations[-1]}('{"', '".join(source_names)}')""" - return command - - -class BoundaryObject3dLayout(BoundaryCommon, object): - """Manages boundary data and execution for Hfss3dLayout. - - Parameters - ---------- - app : object - An AEDT application from ``ansys.aedt.core.application``. - name : str - Name of the boundary. - props : dict - Properties of the boundary. - boundarytype : str - Type of the boundary. - """ - - def __init__(self, app, name, props, boundarytype): - self.auto_update = False - self._app = app - self._name = name - self._props = None - if props: - self._props = BoundaryProps(self, props) - self.type = boundarytype - self._boundary_name = self.name - self.auto_update = True - - @property - def object_properties(self): - """Object-oriented properties. - - Returns - ------- - class:`ansys.aedt.core.modeler.cad.elements_3d.BinaryTreeNode` - - """ - from ansys.aedt.core.modeler.cad.elements_3d import BinaryTreeNode - - cc = self._app.odesign.GetChildObject("Excitations") - child_object = None - if self.name in cc.GetChildNames(): - child_object = self._app.odesign.GetChildObject("Excitations").GetChildObject(self.name) - elif self.name in self._app.odesign.GetChildObject("Excitations").GetChildNames(): - child_object = self._app.odesign.GetChildObject("Excitations").GetChildObject(self.name) - if child_object: - return BinaryTreeNode(self.name, child_object, False) - - if "Boundaries" in self._app.odesign.GetChildNames(): - cc = self._app.odesign.GetChildObject("Boundaries") - if self.name in cc.GetChildNames(): - child_object = self._app.odesign.GetChildObject("Boundaries").GetChildObject(self.name) - elif self.name in self._app.odesign.GetChildObject("Boundaries").GetChildNames(): - child_object = self._app.odesign.GetChildObject("Boundaries").GetChildObject(self.name) - if child_object: - return BinaryTreeNode(self.name, child_object, False) - return False - - @property - def name(self): - """Boundary Name.""" - return self._name - - @name.setter - def name(self, value): - if "Port" in self.props: - self.auto_update = False - self.props["Port"] = value - self.auto_update = True - self.update() - self._name = value - - @property - def props(self): - """Excitation data. - - Returns - ------- - :class:BoundaryProps - """ - if self._props: - return self._props - props = self._get_boundary_data(self.name) - - if props: - self._props = BoundaryProps(self, props[0]) - self._type = props[1] - return self._props - - @pyaedt_function_handler() - def _get_args(self, props=None): - """Retrieve arguments. - - Parameters - ---------- - props : - The default is ``None``. - - Returns - ------- - list - List of boundary properties. - - """ - if props is None: - props = self.props - arg = ["NAME:" + self.name] - _dict2arg(props, arg) - return arg - - @pyaedt_function_handler() - def _refresh_properties(self): - if len(self._app.oeditor.GetProperties("EM Design", f"Excitations:{self.name}")) != len(self.props): - propnames = self._app.oeditor.GetProperties("EM Design", f"Excitations:{self.name}") - props = {} - for prop in propnames: - props[prop] = self._app.oeditor.GetPropertyValue("EM Design", f"Excitations:{self.name}", prop) - self._props = BoundaryProps(self, props) - - @pyaedt_function_handler() - def update(self): - """Update the boundary. - - Returns - ------- - bool - ``True`` when successful, ``False`` when failed. - - """ - updated = False - for el in list(self.props.keys()): - if el == "Port" and self._name != self.props[el]: - self._app.oeditor.SetPropertyValue("EM Design", "Excitations:" + self.name, el, self.props[el]) - self._name = self.props[el] - elif el in self._app.oeditor.GetProperties("EM Design", f"Excitations:{self.name}") and self.props[ - el - ] != self._app.oeditor.GetPropertyValue("EM Design", "Excitations:" + self.name, el): - self._app.oeditor.SetPropertyValue("EM Design", "Excitations:" + self.name, el, self.props[el]) - updated = True - - if updated: - self._refresh_properties() - - return True - - -class Sources(object): - """Manages sources in Circuit projects.""" - - def __init__(self, app, name, source_type=None): - self._app = app - self._name = name - self._props = self._source_props(name, source_type) - self.source_type = source_type - if not source_type: - self.source_type = self._source_type_by_key() - self._auto_update = True - - @property - def name(self): - """Source name. - - Returns - ------- - str - """ - return self._name - - @name.setter - def name(self, source_name): - if source_name not in self._app.source_names: - if source_name != self._name: - original_name = self._name - self._name = source_name - for port in self._app.excitations: - if original_name in self._app.excitation_objects[port].props["EnabledPorts"]: - self._app.excitation_objects[port].props["EnabledPorts"] = [ - w.replace(original_name, source_name) - for w in self._app.excitation_objects[port].props["EnabledPorts"] - ] - if original_name in self._app.excitation_objects[port].props["EnabledAnalyses"]: - self._app.excitation_objects[port].props["EnabledAnalyses"][source_name] = ( - self._app.excitation_objects[port].props["EnabledAnalyses"].pop(original_name) - ) - self.update(original_name) - else: - self._logger.warning("Name %s already assigned in the design", source_name) - - @property - def _logger(self): - """Logger.""" - return self._app.logger - - @pyaedt_function_handler() - def _source_props(self, source, source_type=None): - source_prop_dict = {} - if source in self._app.source_names: - source_aedt_props = self._app.odesign.GetChildObject("Excitations").GetChildObject(source) - for el in source_aedt_props.GetPropNames(): - if el == "CosimDefinition": - source_prop_dict[el] = None - elif el == "FreqDependentSourceData": - data = self._app.design_properties["NexximSources"]["Data"][source]["FDSFileName"] - freqs = re.findall(r"freqs=\[(.*?)\]", data) - magnitude = re.findall(r"magnitude=\[(.*?)\]", data) - angle = re.findall(r"angle=\[(.*?)\]", data) - vreal = re.findall(r"vreal=\[(.*?)\]", data) - vimag = re.findall(r"vimag=\[(.*?)\]", data) - source_file = re.findall("voltage_source_file=", data) - source_prop_dict["frequencies"] = None - source_prop_dict["vmag"] = None - source_prop_dict["vang"] = None - source_prop_dict["vreal"] = None - source_prop_dict["vimag"] = None - source_prop_dict["fds_filename"] = None - source_prop_dict["magnitude_angle"] = False - source_prop_dict["FreqDependentSourceData"] = data - if freqs: - source_prop_dict["frequencies"] = [float(i) for i in freqs[0].split()] - if magnitude: - source_prop_dict["vmag"] = [float(i) for i in magnitude[0].split()] - if angle: - source_prop_dict["vang"] = [float(i) for i in angle[0].split()] - if vreal: - source_prop_dict["vreal"] = [float(i) for i in vreal[0].split()] - if vimag: - source_prop_dict["vimag"] = [float(i) for i in vimag[0].split()] - if source_file: - source_prop_dict["fds_filename"] = data[len(re.findall("voltage_source_file=", data)[0]) :] - else: - if freqs and magnitude and angle: - source_prop_dict["magnitude_angle"] = True - elif freqs and vreal and vimag: - source_prop_dict["magnitude_angle"] = False - - elif el != "Name" and el != "Noise": - source_prop_dict[el] = source_aedt_props.GetPropValue(el) - if not source_prop_dict[el]: - source_prop_dict[el] = "" - else: - if source_type in SourceKeys.SourceNames: - command_template = SourceKeys.SourceTemplates[source_type] - commands = copy.deepcopy(command_template) - props = [value for value in commands if type(value) == list] - for el in props[0]: - if isinstance(el, list): - if el[0] == "CosimDefinition": - source_prop_dict[el[0]] = None - elif el[0] == "FreqDependentSourceData": - source_prop_dict["frequencies"] = None - source_prop_dict["vmag"] = None - source_prop_dict["vang"] = None - source_prop_dict["vreal"] = None - source_prop_dict["vimag"] = None - source_prop_dict["fds_filename"] = None - source_prop_dict["magnitude_angle"] = True - source_prop_dict["FreqDependentSourceData"] = "" - - elif el[0] != "ModelName" and el[0] != "LabelID": - source_prop_dict[el[0]] = el[3] - - return source_prop_dict - - @pyaedt_function_handler() - def _update_command(self, name, source_prop_dict, source_type, fds_filename=None): - command_template = SourceKeys.SourceTemplates[source_type] - commands = copy.deepcopy(command_template) - commands[0] = "NAME:" + name - commands[10] = source_prop_dict["Netlist"] - if fds_filename: - commands[14] = fds_filename - cont = 0 - props = [value for value in commands if type(value) == list] - for command in props[0]: - if isinstance(command, list) and command[0] in source_prop_dict.keys() and command[0] != "CosimDefinition": - if command[0] == "Netlist": - props[0].pop(cont) - elif command[0] == "file" and source_prop_dict[command[0]]: - props[0][cont][3] = source_prop_dict[command[0]] - props[0][cont][4] = source_prop_dict[command[0]] - elif command[0] == "FreqDependentSourceData" and fds_filename: - props[0][cont][3] = fds_filename - props[0][cont][4] = fds_filename - else: - props[0][cont][3] = source_prop_dict[command[0]] - cont += 1 - - return commands - - @pyaedt_function_handler() - def _source_type_by_key(self): - for source_name in SourceKeys.SourceNames: - template = SourceKeys.SourceProps[source_name] - if list(self._props.keys()) == template: - return source_name - return None - - @pyaedt_function_handler() - def update(self, original_name=None, new_source=None): - """Update the source in AEDT. - - Parameters - ---------- - original_name : str, optional - Original name of the source. The default value is ``None``. - new_source : str, optional - New name of the source. The default value is ``None``. - - Returns - ------- - bool - ``True`` when successful, ``False`` when failed. - - """ - - arg0 = ["NAME:Data"] - if self.source_type != "VoltageFrequencyDependent": - fds_filename = None - else: - fds_filename = self._props["FreqDependentSourceData"] - - for source in self._app.sources: - if "FreqDependentSourceData" in self._app.sources[source]._props.keys(): - fds_filename_source = self._app.sources[source]._props["FreqDependentSourceData"] - else: - fds_filename_source = None - if source == self.name: - arg0.append(list(self._update_command(source, self._props, self.source_type, fds_filename))) - elif source != self.name and original_name == source: - arg0.append( - list( - self._update_command( - self.name, self._props, self._app.sources[source].source_type, fds_filename - ) - ) - ) - else: - arg0.append( - list( - self._update_command( - source, - self._app.sources[source]._props, - self._app.sources[source].source_type, - fds_filename_source, - ) - ) - ) - - if new_source and new_source not in self._app.sources: - arg0.append(list(self._update_command(self.name, self._props, self.source_type, fds_filename))) - - arg1 = ["NAME:NexximSources", ["NAME:NexximSources", arg0]] - arg2 = ["NAME:ComponentConfigurationData"] - - # Check Ports with Sources - arg3 = ["NAME:EnabledPorts"] - for source_name in self._app.sources: - excitation_source = [] - for port in self._app.excitations: - if source_name in self._app.excitation_objects[port]._props["EnabledPorts"]: - excitation_source.append(port) - arg3.append(source_name + ":=") - arg3.append(excitation_source) - - if new_source and new_source not in self._app.sources: - arg3.append(new_source + ":=") - arg3.append([]) - - arg4 = ["NAME:EnabledMultipleComponents"] - for source_name in self._app.sources: - arg4.append(source_name + ":=") - arg4.append([]) - - if new_source and new_source not in self._app.sources: - arg4.append(new_source + ":=") - arg4.append([]) - - arg5 = ["NAME:EnabledAnalyses"] - for source_name in self._app.sources: - arg6 = ["NAME:" + source_name] - for port in self._app.excitations: - if source_name in self._app.excitation_objects[port]._props["EnabledAnalyses"]: - arg6.append(port + ":=") - arg6.append(self._app.excitation_objects[port]._props["EnabledAnalyses"][source_name]) - else: - arg6.append(port + ":=") - arg6.append([]) - arg5.append(arg6) - - if new_source and new_source not in self._app.sources: - arg6 = ["NAME:" + new_source] - for port in self._app.excitations: - arg6.append(port + ":=") - arg6.append([]) - arg5.append(arg6) - - arg7 = ["NAME:ComponentConfigurationData", arg3, arg4, arg5] - arg2.append(arg7) - - self._app.odesign.UpdateSources(arg1, arg2) - return True - - @pyaedt_function_handler() - def delete(self): - """Delete the source in AEDT. - - Returns - ------- - bool - ``True`` when successful, ``False`` when failed. - - """ - self._app.modeler._odesign.DeleteSource(self.name) - for port in self._app.excitations: - if self.name in self._app.excitation_objects[port].props["EnabledPorts"]: - self._app.excitation_objects[port].props["EnabledPorts"].remove(self.name) - if self.name in self._app.excitation_objects[port].props["EnabledAnalyses"]: - del self._app.excitation_objects[port].props["EnabledAnalyses"][self.name] - return True - - @pyaedt_function_handler() - def create(self): - """Create a new source in AEDT. - - Returns - ------- - bool - ``True`` when successful, ``False`` when failed. - - """ - self.update(original_name=None, new_source=self.name) - return True - - -class PowerSinSource(Sources, object): - """Power Sinusoidal Class.""" - - def __init__(self, app, name, source_type=None): - Sources.__init__(self, app, name, source_type) - - @property - def _child(self): - return self._app.odesign.GetChildObject("Excitations").GetChildObject(self.name) - - @property - def ac_magnitude(self): - """AC magnitude value. - - Returns - ------- - str - """ - return self._props["ACMAG"] - - @ac_magnitude.setter - def ac_magnitude(self, value): - self._props["ACMAG"] = value - self._child.SetPropValue("ACMAG", value) - - @property - def ac_phase(self): - """AC phase value. - - Returns - ------- - str - """ - return self._props["ACPHASE"] - - @ac_phase.setter - def ac_phase(self, value): - self._props["ACPHASE"] = value - self._child.SetPropValue("ACPHASE", value) - - @property - def dc_magnitude(self): - """DC voltage value. - - Returns - ------- - str - """ - return self._props["DC"] - - @dc_magnitude.setter - def dc_magnitude(self, value): - self._props["DC"] = value - self._child.SetPropValue("DC", value) - - @property - def power_offset(self): - """Power offset from zero watts. - - Returns - ------- - str - """ - return self._props["VO"] - - @power_offset.setter - def power_offset(self, value): - self._props["VO"] = value - self._child.SetPropValue("VO", value) - - @property - def power_magnitude(self): - """Available power of the source above power offset. - - Returns - ------- - str - """ - return self._props["POWER"] - - @power_magnitude.setter - def power_magnitude(self, value): - self._props["POWER"] = value - self._child.SetPropValue("POWER", value) - - @property - def frequency(self): - """Frequency. - - Returns - ------- - str - """ - return self._props["FREQ"] - - @frequency.setter - def frequency(self, value): - self._props["FREQ"] = value - self._child.SetPropValue("FREQ", value) - - @property - def delay(self): - """Delay to start of sine wave. - - Returns - ------- - str - """ - return self._props["TD"] - - @delay.setter - def delay(self, value): - self._props["TD"] = value - self._child.SetPropValue("TD", value) - - @property - def damping_factor(self): - """Damping factor. - - Returns - ------- - str - """ - return self._props["ALPHA"] - - @damping_factor.setter - def damping_factor(self, value): - self._props["ALPHA"] = value - self._child.SetPropValue("ALPHA", value) - - @property - def phase_delay(self): - """Phase delay. - - Returns - ------- - str - """ - return self._props["THETA"] - - @phase_delay.setter - def phase_delay(self, value): - self._props["THETA"] = value - self._child.SetPropValue("THETA", value) - - @property - def tone(self): - """Frequency to use for harmonic balance. - - Returns - ------- - str - """ - return self._props["TONE"] - - @tone.setter - def tone(self, value): - self._props["TONE"] = value - self._child.SetPropValue("TONE", value) - - -class PowerIQSource(Sources, object): - """Power IQ Class.""" - - def __init__(self, app, name, source_type=None): - Sources.__init__(self, app, name, source_type) - - @property - def _child(self): - return self._app.odesign.GetChildObject("Excitations").GetChildObject(self.name) - - @property - def carrier_frequency(self): - """Carrier frequency value. - - Returns - ------- - str - """ - return self._props["FC"] - - @carrier_frequency.setter - def carrier_frequency(self, value): - self._props["FC"] = value - self._child.SetPropValue("FC", value) - - @property - def sampling_time(self): - """Sampling time value. - - Returns - ------- - str - """ - return self._props["TS"] - - @sampling_time.setter - def sampling_time(self, value): - self._props["TS"] = value - self._child.SetPropValue("TS", value) - - @property - def dc_magnitude(self): - """DC voltage value. - - Returns - ------- - str - """ - return self._props["DC"] - - @dc_magnitude.setter - def dc_magnitude(self, value): - self._props["DC"] = value - self._child.SetPropValue("DC", value) - - @property - def repeat_from(self): - """Repeat from time. - - Returns - ------- - str - """ - return self._props["R"] - - @repeat_from.setter - def repeat_from(self, value): - self._props["R"] = value - self._child.SetPropValue("R", value) - - @property - def delay(self): - """Delay to start of sine wave. - - Returns - ------- - str - """ - return self._props["TD"] - - @delay.setter - def delay(self, value): - self._props["TD"] = value - self._child.SetPropValue("TD", value) - - @property - def carrier_amplitude_voltage(self): - """Carrier amplitude value, voltage-based. - - Returns - ------- - str - """ - return self._props["V"] - - @carrier_amplitude_voltage.setter - def carrier_amplitude_voltage(self, value): - self._props["V"] = value - self._child.SetPropValue("V", value) - - @property - def carrier_amplitude_power(self): - """Carrier amplitude value, power-based. - - Returns - ------- - str - """ - return self._props["VA"] - - @carrier_amplitude_power.setter - def carrier_amplitude_power(self, value): - self._props["VA"] = value - self._child.SetPropValue("VA", value) - - @property - def carrier_offset(self): - """Carrier offset. - - Returns - ------- - str - """ - return self._props["VO"] - - @carrier_offset.setter - def carrier_offset(self, value): - self._props["VO"] = value - self._child.SetPropValue("VO", value) - - @property - def real_impedance(self): - """Real carrier impedance. - - Returns - ------- - str - """ - return self._props["RZ"] - - @real_impedance.setter - def real_impedance(self, value): - self._props["RZ"] = value - self._child.SetPropValue("RZ", value) - - @property - def imaginary_impedance(self): - """Imaginary carrier impedance. - - Returns - ------- - str - """ - return self._props["IZ"] - - @imaginary_impedance.setter - def imaginary_impedance(self, value): - self._props["IZ"] = value - self._child.SetPropValue("IZ", value) - - @property - def damping_factor(self): - """Damping factor. - - Returns - ------- - str - """ - return self._props["ALPHA"] - - @damping_factor.setter - def damping_factor(self, value): - self._props["ALPHA"] = value - self._child.SetPropValue("ALPHA", value) - - @property - def phase_delay(self): - """Phase delay. - - Returns - ------- - str - """ - return self._props["THETA"] - - @phase_delay.setter - def phase_delay(self, value): - self._props["THETA"] = value - self._child.SetPropValue("THETA", value) - - @property - def tone(self): - """Frequency to use for harmonic balance. - - Returns - ------- - str - """ - return self._props["TONE"] - - @tone.setter - def tone(self, value): - self._props["TONE"] = value - self._child.SetPropValue("TONE", value) - - @property - def i_q_values(self): - """I and Q value at each timepoint. - - Returns - ------- - str - """ - i_q = [] - for cont in range(1, 20): - i_q.append( - [self._props["time" + str(cont)], self._props["ival" + str(cont)], self._props["qval" + str(cont)]] - ) - return i_q - - @i_q_values.setter - def i_q_values(self, value): - cont = 0 - for point in value: - self._props["time" + str(cont + 1)] = point[0] - self._child.SetPropValue("time" + str(cont + 1), point[0]) - self._props["ival" + str(cont + 1)] = point[1] - self._child.SetPropValue("ival" + str(cont + 1), point[1]) - self._props["qval" + str(cont + 1)] = point[2] - self._child.SetPropValue("qval" + str(cont + 1), point[2]) - cont += 1 - - @property - def file( - self, - ): - """File path with I and Q values. - - Returns - ------- - str - """ - return self._props["file"] - - @file.setter - def file(self, value): - self._props["file"] = value - self.update() - - -class VoltageFrequencyDependentSource(Sources, object): - """Voltage Frequency Dependent Class.""" - - def __init__(self, app, name, source_type=None): - Sources.__init__(self, app, name, source_type) - - @property - def _child(self): - return self._app.odesign.GetChildObject("Excitations").GetChildObject(self.name) - - @property - def frequencies(self): - """List of frequencies in ``Hz``. - - Returns - ------- - list - """ - return self._props["frequencies"] - - @frequencies.setter - def frequencies(self, value): - self._props["frequencies"] = [float(i) for i in value] - self._update_prop() - - @property - def vmag(self): - """List of magnitudes in ``V``. - - Returns - ------- - list - """ - return self._props["vmag"] - - @vmag.setter - def vmag(self, value): - self._props["vmag"] = [float(i) for i in value] - self._update_prop() - - @property - def vang(self): - """List of angles in ``rad``. - - Returns - ------- - list - """ - return self._props["vang"] - - @vang.setter - def vang(self, value): - self._props["vang"] = [float(i) for i in value] - self._update_prop() - - @property - def vreal(self): - """List of real values in ``V``. - - Returns - ------- - list - """ - return self._props["vreal"] - - @vreal.setter - def vreal(self, value): - self._props["vreal"] = [float(i) for i in value] - self._update_prop() - - @property - def vimag(self): - """List of imaginary values in ``V``. - - Returns - ------- - list - """ - return self._props["vimag"] - - @vimag.setter - def vimag(self, value): - self._props["vimag"] = [float(i) for i in value] - self._update_prop() - - @property - def magnitude_angle(self): - """Enable magnitude and angle data. - - Returns - ------- - bool - """ - return self._props["magnitude_angle"] - - @magnitude_angle.setter - def magnitude_angle(self, value): - self._props["magnitude_angle"] = value - self._update_prop() - - @property - def fds_filename(self): - """FDS file path. - - Returns - ------- - bool - """ - return self._props["fds_filename"] - - @fds_filename.setter - def fds_filename(self, name): - if not name: - self._props["fds_filename"] = None - self._update_prop() - else: - self._props["fds_filename"] = name - self._props["FreqDependentSourceData"] = "voltage_source_file=" + name - self.update() - - @pyaedt_function_handler() - def _update_prop(self): - if ( - self._props["vmag"] - and self._props["vang"] - and self._props["frequencies"] - and self._props["magnitude_angle"] - and not self._props["fds_filename"] - ): - if len(self._props["vmag"]) == len(self._props["vang"]) == len(self._props["frequencies"]): - self._props["FreqDependentSourceData"] = ( - "freqs=" - + str(self._props["frequencies"]).replace(",", "") - + " vmag=" - + str(self._props["vmag"]).replace(",", "") - + " vang=" - + str(self._props["vang"]).replace(",", "") - ) - self.update() - elif ( - self._props["vreal"] - and self._props["vimag"] - and self._props["frequencies"] - and not self._props["magnitude_angle"] - and not self._props["fds_filename"] - ): - if len(self._props["vreal"]) == len(self._props["vimag"]) == len(self._props["frequencies"]): - self._props["FreqDependentSourceData"] = ( - "freqs=" - + str(self._props["frequencies"]).replace(",", "") - + " vreal=" - + str(self._props["vreal"]).replace(",", "") - + " vimag=" - + str(self._props["vimag"]).replace(",", "") - ) - self.update() - else: - self._props["FreqDependentSourceData"] = "" - self.update() - return True - - -class VoltageDCSource(Sources, object): - """Power Sinusoidal Class.""" - - def __init__(self, app, name, source_type=None): - Sources.__init__(self, app, name, source_type) - - @property - def _child(self): - return self._app.odesign.GetChildObject("Excitations").GetChildObject(self.name) - - @property - def ac_magnitude(self): - """AC magnitude value. - - Returns - ------- - str - """ - return self._props["ACMAG"] - - @ac_magnitude.setter - def ac_magnitude(self, value): - self._props["ACMAG"] = value - self._child.SetPropValue("ACMAG", value) - - @property - def ac_phase(self): - """AC phase value. - - Returns - ------- - str - """ - return self._props["ACPHASE"] - - @ac_phase.setter - def ac_phase(self, value): - self._props["ACPHASE"] = value - self._child.SetPropValue("ACPHASE", value) - - @property - def dc_magnitude(self): - """DC voltage value. - - Returns - ------- - str - """ - return self._props["DC"] - - @dc_magnitude.setter - def dc_magnitude(self, value): - self._props["DC"] = value - self._child.SetPropValue("DC", value) - - -class VoltageSinSource(Sources, object): - """Power Sinusoidal Class.""" - - def __init__(self, app, name, source_type=None): - Sources.__init__(self, app, name, source_type) - - @property - def _child(self): - return self._app.odesign.GetChildObject("Excitations").GetChildObject(self.name) - - @property - def ac_magnitude(self): - """AC magnitude value. - - Returns - ------- - str - """ - return self._props["ACMAG"] - - @ac_magnitude.setter - def ac_magnitude(self, value): - self._props["ACMAG"] = value - self._child.SetPropValue("ACMAG", value) - - @property - def ac_phase(self): - """AC phase value. - - Returns - ------- - str - """ - return self._props["ACPHASE"] - - @ac_phase.setter - def ac_phase(self, value): - self._props["ACPHASE"] = value - self._child.SetPropValue("ACPHASE", value) - - @property - def dc_magnitude(self): - """DC voltage value. - - Returns - ------- - str - """ - return self._props["DC"] - - @dc_magnitude.setter - def dc_magnitude(self, value): - self._props["DC"] = value - self._child.SetPropValue("DC", value) - - @property - def voltage_amplitude(self): - """Voltage amplitude. - - Returns - ------- - str - """ - return self._props["VA"] - - @voltage_amplitude.setter - def voltage_amplitude(self, value): - self._props["VA"] = value - self._child.SetPropValue("VA", value) - - @property - def voltage_offset(self): - """Voltage offset from zero watts. - - Returns - ------- - str - """ - return self._props["VO"] - - @voltage_offset.setter - def voltage_offset(self, value): - self._props["VO"] = value - self._child.SetPropValue("VO", value) - - @property - def frequency(self): - """Frequency. - - Returns - ------- - str - """ - return self._props["FREQ"] - - @frequency.setter - def frequency(self, value): - self._props["FREQ"] = value - self._child.SetPropValue("FREQ", value) - - @property - def delay(self): - """Delay to start of sine wave. - - Returns - ------- - str - """ - return self._props["TD"] - - @delay.setter - def delay(self, value): - self._props["TD"] = value - self._child.SetPropValue("TD", value) - - @property - def damping_factor(self): - """Damping factor. - - Returns - ------- - str - """ - return self._props["ALPHA"] - - @damping_factor.setter - def damping_factor(self, value): - self._props["ALPHA"] = value - self._child.SetPropValue("ALPHA", value) - - @property - def phase_delay(self): - """Phase delay. - - Returns - ------- - str - """ - return self._props["THETA"] - - @phase_delay.setter - def phase_delay(self, value): - self._props["THETA"] = value - self._child.SetPropValue("THETA", value) - - @property - def tone(self): - """Frequency to use for harmonic balance. - - Returns - ------- - str - """ - return self._props["TONE"] - - @tone.setter - def tone(self, value): - self._props["TONE"] = value - self._child.SetPropValue("TONE", value) - - -class CurrentSinSource(Sources, object): - """Current Sinusoidal Class.""" - - def __init__(self, app, name, source_type=None): - Sources.__init__(self, app, name, source_type) - - @property - def _child(self): - return self._app.odesign.GetChildObject("Excitations").GetChildObject(self.name) - - @property - def ac_magnitude(self): - """AC magnitude value. - - Returns - ------- - str - """ - return self._props["ACMAG"] - - @ac_magnitude.setter - def ac_magnitude(self, value): - self._props["ACMAG"] = value - self._child.SetPropValue("ACMAG", value) - - @property - def ac_phase(self): - """AC phase value. - - Returns - ------- - str - """ - return self._props["ACPHASE"] - - @ac_phase.setter - def ac_phase(self, value): - self._props["ACPHASE"] = value - self._child.SetPropValue("ACPHASE", value) - - @property - def dc_magnitude(self): - """DC current value. - - Returns - ------- - str - """ - return self._props["DC"] - - @dc_magnitude.setter - def dc_magnitude(self, value): - self._props["DC"] = value - self._child.SetPropValue("DC", value) - - @property - def current_amplitude(self): - """Current amplitude. - - Returns - ------- - str - """ - return self._props["VA"] - - @current_amplitude.setter - def current_amplitude(self, value): - self._props["VA"] = value - self._child.SetPropValue("VA", value) - - @property - def current_offset(self): - """Current offset. - - Returns - ------- - str - """ - return self._props["VO"] - - @current_offset.setter - def current_offset(self, value): - self._props["VO"] = value - self._child.SetPropValue("VO", value) - - @property - def frequency(self): - """Frequency. - - Returns - ------- - str - """ - return self._props["FREQ"] - - @frequency.setter - def frequency(self, value): - self._props["FREQ"] = value - self._child.SetPropValue("FREQ", value) - - @property - def delay(self): - """Delay to start of sine wave. - - Returns - ------- - str - """ - return self._props["TD"] - - @delay.setter - def delay(self, value): - self._props["TD"] = value - self._child.SetPropValue("TD", value) - - @property - def damping_factor(self): - """Damping factor. - - Returns - ------- - str - """ - return self._props["ALPHA"] - - @damping_factor.setter - def damping_factor(self, value): - self._props["ALPHA"] = value - self._child.SetPropValue("ALPHA", value) - - @property - def phase_delay(self): - """Phase delay. - - Returns - ------- - str - """ - return self._props["THETA"] - - @phase_delay.setter - def phase_delay(self, value): - self._props["THETA"] = value - self._child.SetPropValue("THETA", value) - - @property - def multiplier(self): - """Multiplier for simulating multiple parallel current sources. - - Returns - ------- - str - """ - return self._props["M"] - - @multiplier.setter - def multiplier(self, value): - self._props["M"] = value - self._child.SetPropValue("M", value) - - @property - def tone(self): - """Frequency to use for harmonic balance. - - Returns - ------- - str - """ - return self._props["TONE"] - - @tone.setter - def tone(self, value): - self._props["TONE"] = value - self._child.SetPropValue("TONE", value) - - -class Excitations(object): - """Manages Excitations in Circuit Projects. - - Examples - -------- - - """ - - def __init__(self, app, name): - self._app = app - self._name = name - for comp in self._app.modeler.schematic.components: - if ( - "PortName" in self._app.modeler.schematic.components[comp].parameters.keys() - and self._app.modeler.schematic.components[comp].parameters["PortName"] == self.name - ): - self.schematic_id = comp - self.id = self._app.modeler.schematic.components[comp].id - self._angle = self._app.modeler.schematic.components[comp].angle - self.levels = self._app.modeler.schematic.components[comp].levels - self._location = self._app.modeler.schematic.components[comp].location - self._mirror = self._app.modeler.schematic.components[comp].mirror - self.pins = self._app.modeler.schematic.components[comp].pins - self._use_symbol_color = self._app.modeler.schematic.components[comp].usesymbolcolor - break - self._props = self._excitation_props(name) - self._auto_update = True - - @property - def name(self): - """Excitation name. - - Returns - ------- - str - """ - return self._name - - @name.setter - def name(self, port_name): - if port_name not in self._app.excitations: - if port_name != self._name: - # Take previous properties - self._app.odesign.RenamePort(self._name, port_name) - self._name = port_name - self._app.modeler.schematic.components[self.schematic_id].name = "IPort@" + port_name - self.pins[0].name = "IPort@" + port_name + ";" + str(self.schematic_id) - else: - self._logger.warning("Name %s already assigned in the design", port_name) - - @property - def angle(self): - """Symbol angle. - - Returns - ------- - float - """ - return self._angle - - @angle.setter - def angle(self, angle): - self._app.modeler.schematic.components[self.schematic_id].angle = angle - - @property - def mirror(self): - """Enable port mirror. - - Returns - ------- - bool - """ - return self._mirror - - @mirror.setter - def mirror(self, mirror_value=True): - self._app.modeler.schematic.components[self.schematic_id].mirror = mirror_value - self._mirror = mirror_value - - @property - def location(self): - """Port location. - - Returns - ------- - list - """ - return self._location - - @location.setter - def location(self, location_xy): - # The command must be called two times. - self._app.modeler.schematic.components[self.schematic_id].location = location_xy - self._app.modeler.schematic.components[self.schematic_id].location = location_xy - self._location = location_xy - - @property - def use_symbol_color(self): - """Use symbol color. - - Returns - ------- - list - """ - return self._use_symbol_color - - @use_symbol_color.setter - def use_symbol_color(self, use_color=True): - self._app.modeler.schematic.components[self.schematic_id].usesymbolcolor = use_color - self._app.modeler.schematic.components[self.schematic_id].set_use_symbol_color(use_color) - self._use_symbol_color = use_color - - @property - def impedance(self): - """Port termination. - - Returns - ------- - list - """ - return [self._props["rz"], self._props["iz"]] - - @impedance.setter - def impedance(self, termination=None): - if termination and len(termination) == 2: - self._app.modeler.schematic.components[self.schematic_id].change_property( - ["NAME:rz", "Value:=", termination[0]] - ) - self._app.modeler.schematic.components[self.schematic_id].change_property( - ["NAME:iz", "Value:=", termination[1]] - ) - self._props["rz"] = termination[0] - self._props["iz"] = termination[1] - - @property - def enable_noise(self): - """Enable noise. - - Returns - ------- - bool - """ - - return self._props["EnableNoise"] - - @enable_noise.setter - def enable_noise(self, enable=False): - self._app.modeler.schematic.components[self.schematic_id].change_property( - ["NAME:EnableNoise", "Value:=", enable] - ) - self._props["EnableNoise"] = enable - - @property - def noise_temperature(self): - """Enable noise. - - Returns - ------- - str - """ - - return self._props["noisetemp"] - - @noise_temperature.setter - def noise_temperature(self, noise=None): - if noise: - self._app.modeler.schematic.components[self.schematic_id].change_property( - ["NAME:noisetemp", "Value:=", noise] - ) - self._props["noisetemp"] = noise - - @property - def microwave_symbol(self): - """Enable microwave symbol. - - Returns - ------- - bool - """ - if self._props["SymbolType"] == 1: - return True - else: - return False - - @microwave_symbol.setter - def microwave_symbol(self, enable=False): - if enable: - self._props["SymbolType"] = 1 - else: - self._props["SymbolType"] = 0 - self.update() - - @property - def reference_node(self): - """Reference node. - - Returns - ------- - str - """ - if self._props["RefNode"] == "Z": - return "Ground" - return self._props["RefNode"] - - @reference_node.setter - def reference_node(self, ref_node=None): - if ref_node: - self._logger.warning("Set reference node only working with gRPC") - if ref_node == "Ground": - ref_node = "Z" - self._props["RefNode"] = ref_node - self.update() - - @property - def enabled_sources(self): - """Enabled sources. - - Returns - ------- - list - """ - return self._props["EnabledPorts"] - - @enabled_sources.setter - def enabled_sources(self, sources=None): - if sources: - self._props["EnabledPorts"] = sources - self.update() - - @property - def enabled_analyses(self): - """Enabled analyses. - - Returns - ------- - dict - """ - return self._props["EnabledAnalyses"] - - @enabled_analyses.setter - def enabled_analyses(self, analyses=None): - if analyses: - self._props["EnabledAnalyses"] = analyses - self.update() - - @pyaedt_function_handler() - def _excitation_props(self, port): - excitation_prop_dict = {} - for comp in self._app.modeler.schematic.components: - if ( - "PortName" in self._app.modeler.schematic.components[comp].parameters.keys() - and self._app.modeler.schematic.components[comp].parameters["PortName"] == port - ): - excitation_prop_dict["rz"] = "50ohm" - excitation_prop_dict["iz"] = "0ohm" - excitation_prop_dict["term"] = None - excitation_prop_dict["TerminationData"] = None - excitation_prop_dict["RefNode"] = "Z" - excitation_prop_dict["EnableNoise"] = False - excitation_prop_dict["noisetemp"] = "16.85cel" - - if "RefNode" in self._app.modeler.schematic.components[comp].parameters: - excitation_prop_dict["RefNode"] = self._app.modeler.schematic.components[comp].parameters["RefNode"] - if "term" in self._app.modeler.schematic.components[comp].parameters: - excitation_prop_dict["term"] = self._app.modeler.schematic.components[comp].parameters["term"] - excitation_prop_dict["TerminationData"] = self._app.modeler.schematic.components[comp].parameters[ - "TerminationData" - ] - else: - if "rz" in self._app.modeler.schematic.components[comp].parameters: - excitation_prop_dict["rz"] = self._app.modeler.schematic.components[comp].parameters["rz"] - excitation_prop_dict["iz"] = self._app.modeler.schematic.components[comp].parameters["iz"] - - if "EnableNoise" in self._app.modeler.schematic.components[comp].parameters: - if self._app.modeler.schematic.components[comp].parameters["EnableNoise"] == "true": - excitation_prop_dict["EnableNoise"] = True - else: - excitation_prop_dict["EnableNoise"] = False - - excitation_prop_dict["noisetemp"] = self._app.modeler.schematic.components[comp].parameters[ - "noisetemp" - ] - - if not self._app.design_properties or not self._app.design_properties["NexximPorts"]["Data"]: - excitation_prop_dict["SymbolType"] = 0 - else: - excitation_prop_dict["SymbolType"] = self._app.design_properties["NexximPorts"]["Data"][port][ - "SymbolType" - ] - - if "pnum" in self._app.modeler.schematic.components[comp].parameters: - excitation_prop_dict["pnum"] = self._app.modeler.schematic.components[comp].parameters["pnum"] - else: - excitation_prop_dict["pnum"] = None - source_port = [] - if not self._app.design_properties: - enabled_ports = None - else: - enabled_ports = self._app.design_properties["ComponentConfigurationData"]["EnabledPorts"] - if isinstance(enabled_ports, dict): - for source in enabled_ports: - if enabled_ports[source] and port in enabled_ports[source]: - source_port.append(source) - excitation_prop_dict["EnabledPorts"] = source_port - - components_port = [] - if not self._app.design_properties: - multiple = None - else: - multiple = self._app.design_properties["ComponentConfigurationData"]["EnabledMultipleComponents"] - if isinstance(multiple, dict): - for source in multiple: - if multiple[source] and port in multiple[source]: - components_port.append(source) - excitation_prop_dict["EnabledMultipleComponents"] = components_port - - port_analyses = {} - if not self._app.design_properties: - enabled_analyses = None - else: - enabled_analyses = self._app.design_properties["ComponentConfigurationData"]["EnabledAnalyses"] - if isinstance(enabled_analyses, dict): - for source in enabled_analyses: - if ( - enabled_analyses[source] - and port in enabled_analyses[source] - and source in excitation_prop_dict["EnabledPorts"] - ): - port_analyses[source] = enabled_analyses[source][port] - excitation_prop_dict["EnabledAnalyses"] = port_analyses - return excitation_prop_dict - - @pyaedt_function_handler() - def update(self): - """Update the excitation in AEDT. - - Returns - ------- - bool - ``True`` when successful, ``False`` when failed. - - """ - - # self._logger.warning("Property port update only working with GRPC") - - if self._props["RefNode"] == "Ground": - self._props["RefNode"] = "Z" - - arg0 = [ - "NAME:" + self.name, - "IIPortName:=", - self.name, - "SymbolType:=", - self._props["SymbolType"], - "DoPostProcess:=", - False, - ] - - arg1 = ["NAME:ChangedProps"] - arg2 = [] - - # Modify RefNode - if self._props["RefNode"] != "Z": - arg2 = [ - "NAME:NewProps", - ["NAME:RefNode", "PropType:=", "TextProp", "OverridingDef:=", True, "Value:=", self._props["RefNode"]], - ] - - # Modify Termination - if self._props["term"] and self._props["TerminationData"]: - arg2 = [ - "NAME:NewProps", - ["NAME:term", "PropType:=", "TextProp", "OverridingDef:=", True, "Value:=", self._props["term"]], - ] - - for prop in self._props: - skip1 = (prop == "rz" or prop == "iz") and isinstance(self._props["term"], str) - skip2 = prop == "EnabledPorts" or prop == "EnabledMultipleComponents" or prop == "EnabledAnalyses" - skip3 = prop == "SymbolType" - skip4 = prop == "TerminationData" and not isinstance(self._props["term"], str) - if not skip1 and not skip2 and not skip3 and not skip4 and self._props[prop] is not None: - command = ["NAME:" + prop, "Value:=", self._props[prop]] - arg1.append(command) - - arg1 = [["NAME:Properties", arg2, arg1]] - self._app.odesign.ChangePortProperty(self.name, arg0, arg1) - - for source in self._app.sources: - self._app.sources[source].update() - return True - - @pyaedt_function_handler() - def delete(self): - """Delete the port in AEDT. - - Returns - ------- - bool - ``True`` when successful, ``False`` when failed. - - """ - self._app.modeler._odesign.DeletePort(self.name) - return True - - @property - def _logger(self): - """Logger.""" - return self._app.logger - - -class NetworkObject(BoundaryObject): - """Manages networks in Icepak projects.""" - - def __init__(self, app, name=None, props=None, create=False): - if not app.design_type == "Icepak": # pragma: no cover - raise NotImplementedError("Networks object works only with Icepak projects ") - if name is None: - self._name = generate_unique_name("Network") - else: - self._name = name - super(NetworkObject, self).__init__(app, self._name, props, "Network", False) - if self.props is None: - self._props = {} - self._nodes = [] - self._links = [] - self._schematic_data = {} - self._update_from_props() - if create: - self.create() - - def _clean_list(self, arg): - new_list = [] - for item in arg: - if isinstance(item, list): - if item[0] == "NAME:PageNet": - page_net_list = [] - for i in item: - if isinstance(i, list): - name = page_net_list[-1] - page_net_list.pop(-1) - for j in i: - page_net_list.append(name) - page_net_list.append(j) - else: - page_net_list.append(i) - new_list.append(page_net_list) - else: - new_list.append(self._clean_list(item)) - else: - new_list.append(item) - return new_list - - @pyaedt_function_handler() - def create(self): - """ - Create network in AEDT. - - Returns - ------- - bool: - True if successful. - """ - if not self.props.get("Faces", None): - self.props["Faces"] = [node.props["FaceID"] for _, node in self.face_nodes.items()] - if not self.props.get("SchematicData", None): - self.props["SchematicData"] = {} - - if self.props.get("Links", None): - self.props["Links"] = {link_name: link_values.props for link_name, link_values in self.links.items()} - else: # pragma : no cover - raise KeyError("Links information is missing.") - if self.props.get("Nodes", None): - self.props["Nodes"] = {node_name: node_values.props for node_name, node_values in self.nodes.items()} - else: # pragma : no cover - raise KeyError("Nodes information is missing.") - - args = self._get_args() - - clean_args = self._clean_list(args) - self._app.oboundary.AssignNetworkBoundary(clean_args) - return True - - @pyaedt_function_handler() - def _update_from_props(self): - nodes = self.props.get("Nodes", None) - if nodes is not None: - nd_name_list = [node.name for node in self._nodes] - for node_name, node_dict in nodes.items(): - if node_name not in nd_name_list: - nd_type = node_dict.get("NodeType", None) - if nd_type == "InternalNode": - self.add_internal_node( - node_name, - node_dict.get("Power", node_dict.get("Power Variation Data", None)), - mass=node_dict.get("Mass", None), - specific_heat=node_dict.get("SpecificHeat", None), - ) - elif nd_type == "BoundaryNode": - self.add_boundary_node( - node_name, - assignment_type=node_dict["ValueType"].replace("Value", ""), - value=node_dict[node_dict["ValueType"].replace("Value", "")], - ) - else: - if ( - node_dict["ThermalResistance"] == "NoResistance" - or node_dict["ThermalResistance"] == "Specified" - ): - node_material, node_thickness = None, None - node_resistance = node_dict["Resistance"] - else: - node_thickness, node_material = node_dict["Thickness"], node_dict["Material"] - node_resistance = None - self.add_face_node( - node_dict["FaceID"], - name=node_name, - thermal_resistance=node_dict["ThermalResistance"], - material=node_material, - thickness=node_thickness, - resistance=node_resistance, - ) - links = self.props.get("Links", None) - if links is not None: - l_name_list = [l.name for l in self._links] - for link_name, link_dict in links.items(): - if link_name not in l_name_list: - self.add_link(link_dict[0], link_dict[1], link_dict[-1], link_name) - - @property - def auto_update(self): - """ - Get if auto-update is enabled. - - Returns - ------- - bool: - Whether auto-update is enabled. - """ - return False - - @auto_update.setter - def auto_update(self, b): - """ - Set auto-update on or off. - - Parameters - ---------- - b : bool - Whether to enable auto-update. - - """ - if b: - self._app.logger.warning( - "Network objects auto_update property is False by default" " and cannot be set to True." - ) - - @property - def links(self): - """ - Get links of the network. - - Returns - ------- - dict: - Links dictionary. - - """ - self._update_from_props() - return {link.name: link for link in self._links} - - @property - def r_links(self): - """ - Get r-links of the network. - - Returns - ------- - dict: - R-links dictionary. - - """ - self._update_from_props() - return {link.name: link for link in self._links if link._link_type[0] == "R-Link"} - - @property - def c_links(self): - """ - Get c-links of the network. - - Returns - ------- - dict: - C-links dictionary. - - """ - self._update_from_props() - return {link.name: link for link in self._links if link._link_type[0] == "C-Link"} - - @property - def nodes(self): - """ - Get nodes of the network. - - Returns - ------- - dict: - Nodes dictionary. - - """ - self._update_from_props() - return {node.name: node for node in self._nodes} - - @property - def face_nodes(self): - """ - Get face nodes of the network. - - Returns - ------- - dict: - Face nodes dictionary. - - """ - self._update_from_props() - return {node.name: node for node in self._nodes if node.node_type == "FaceNode"} - - @property - def faces_ids_in_network(self): - """ - Get ID of faces included in the network. - - Returns - ------- - list: - Face IDs. - - """ - out_arr = [] - for _, node_dict in self.face_nodes.items(): - out_arr.append(node_dict.props["FaceID"]) - return out_arr - - @property - def objects_in_network(self): - """ - Get objects included in the network. - - Returns - ------- - list: - Objects names. - - """ - out_arr = [] - for face_id in self.faces_ids_in_network: - out_arr.append(self._app.oeditor.GetObjectNameByFaceID(face_id)) - return out_arr - - @property - def internal_nodes(self): - """ - Get internal nodes. - - Returns - ------- - dict: - Internal nodes. - - """ - self._update_from_props() - return {node.name: node for node in self._nodes if node.node_type == "InternalNode"} - - @property - def boundary_nodes(self): - """ - Get boundary nodes. - - Returns - ------- - dict: - Boundary nodes. - - """ - self._update_from_props() - return {node.name: node for node in self._nodes if node.node_type == "BoundaryNode"} - - @property - def name(self): - """ - Get network name. - - Returns - ------- - str - Network name. - """ - return self._name - - @name.setter - def name(self, new_network_name): - """ - Set new name of the network. - - Parameters - ---------- - new_network_name : str - New name of the network. - """ - bound_names = [b.name for b in self._app.boundaries] - if self.name in bound_names: - if new_network_name not in bound_names: - if new_network_name != self._name: - self._app._oboundary.RenameBoundary(self._name, new_network_name) - self._name = new_network_name - else: - self._app.logger.warning("Name %s already assigned in the design", new_network_name) - else: - self._name = new_network_name - - @pyaedt_function_handler() - def add_internal_node(self, name, power, mass=None, specific_heat=None): - """Add an internal node to the network. - - Parameters - ---------- - name : str - Name of the node. - power : str or float or dict - String, float, or dictionary containing the value of the assignment. - If a float is passed, the ``"W"`` unit is used. A dictionary can be - passed to use temperature-dependent or transient - assignments. - mass : str or float, optional - Value of the mass assignment. This parameter is relevant only - if the solution is transient. If a float is passed, the ``"Kg"`` unit - is used. The default is ``None``, in which case ``"0.001kg"`` is used. - specific_heat : str or float, optional - Value of the specific heat assignment. This parameter is - relevant only if the solution is transient. If a float is passed, - the ``"J_per_Kelkg"`` unit is used. The default is ``None`, in - which case ``"1000J_per_Kelkg"`` is used. - - Returns - ------- - bool - ``True`` when successful, ``False`` when failed. - - Examples - -------- - - >>> import ansys.aedt.core - >>> app = ansys.aedt.core.Icepak() - >>> network = ansys.aedt.core.modules.boundary.Network(app) - >>> network.add_internal_node("TestNode", {"Type": "Transient", - >>> "Function": "Linear", "Values": ["0.01W", "1"]}) - """ - if self._app.solution_type != "SteadyState" and mass is None and specific_heat is None: - self._app.logger.warning("The solution is transient but neither mass nor specific heat is assigned.") - if self._app.solution_type == "SteadyState" and ( - mass is not None or specific_heat is not None - ): # pragma: no cover - self._app.logger.warning( - "Because the solution is steady state, neither mass nor specific heat assignment is relevant." - ) - if isinstance(power, (int, float)): - power = str(power) + "W" - props_dict = {"Power": power} - if mass is not None: - if isinstance(mass, (int, float)): - mass = str(mass) + "kg" - props_dict.update({"Mass": mass}) - if specific_heat is not None: - if isinstance(specific_heat, (int, float)): - specific_heat = str(specific_heat) + "J_per_Kelkg" - props_dict.update({"SpecificHeat": specific_heat}) - new_node = self._Node(name, self._app, node_type="InternalNode", props=props_dict, network=self) - self._nodes.append(new_node) - self._add_to_props(new_node) - return new_node - - @pyaedt_function_handler() - def add_boundary_node(self, name, assignment_type, value): - """ - Add a boundary node to the network. - - Parameters - ---------- - name : str - Name of the node. - assignment_type : str - Type assignment. Options are ``"Power"`` and ``"Temperature"``. - value : str or float or dict - String, float, or dictionary containing the value of the assignment. - If a float is passed the ``"W"`` or ``"cel"`` unit is used, depending on - the selection for the ``assignment_type`` parameter. If ``"Power"`` - is selected for the type, a dictionary can be passed to use - temperature-dependent or transient assignment. - - Returns - ------- - bool - ``True`` if successful. - - Examples - -------- - - >>> import ansys.aedt.core - >>> app = ansys.aedt.core.Icepak() - >>> network = ansys.aedt.core.modules.boundary.Network(app) - >>> network.add_boundary_node("TestNode", "Temperature", 2) - >>> ds = app.create_dataset1d_design("Test_DataSet",[1, 2, 3],[3, 4, 5]) - >>> network.add_boundary_node("TestNode", "Power", {"Type": "Temp Dep", - >>> "Function": "Piecewise Linear", - >>> "Values": "Test_DataSet"}) - """ - if assignment_type not in ["Power", "Temperature", "PowerValue", "TemperatureValue"]: # pragma: no cover - raise AttributeError('``type`` can be only ``"Power"`` or ``"Temperature"``.') - if isinstance(value, (float, int)): - if assignment_type == "Power" or assignment_type == "PowerValue": - value = str(value) + "W" - else: - value = str(value) + "cel" - if isinstance(value, dict) and ( - assignment_type == "Temperature" or assignment_type == "TemperatureValue" - ): # pragma: no cover - raise AttributeError( - "Temperature-dependent or transient assignment is not supported in a temperature boundary node." - ) - if not assignment_type.endswith("Value"): - assignment_type += "Value" - new_node = self._Node( - name, - self._app, - node_type="BoundaryNode", - props={"ValueType": assignment_type, assignment_type.removesuffix("Value"): value}, - network=self, - ) - self._nodes.append(new_node) - self._add_to_props(new_node) - return new_node - - @pyaedt_function_handler() - def _add_to_props(self, new_node, type_dict="Nodes"): - try: - self.props[type_dict].update({new_node.name: new_node.props}) - except KeyError: - self.props[type_dict] = {new_node.name: new_node.props} - - @pyaedt_function_handler(face_id="assignment") - def add_face_node( - self, assignment, name=None, thermal_resistance="NoResistance", material=None, thickness=None, resistance=None - ): - """ - Create a face node in the network. - - Parameters - ---------- - assignment : int - Face ID. - name : str, optional - Name of the node. Default is ``None``. - thermal_resistance : str - Thermal resistance value and unit. Default is ``"NoResistance"``. - material : str, optional - Material specification (required if ``thermal_resistance="Compute"``). - Default is ``None``. - thickness : str or float, optional - Thickness value and unit (required if ``thermal_resistance="Compute"``). - If a float is passed, ``"mm"`` unit is automatically used. Default is ``None``. - resistance : str or float, optional - Resistance value and unit (required if ``thermal_resistance="Specified"``). - If a float is passed, ``"cel_per_w"`` unit is automatically used. Default is ``None``. - - Returns - ------- - bool - True if successful. - - Examples - -------- - - >>> import ansys.aedt.core - >>> app = ansys.aedt.core.Icepak() - >>> network = ansys.aedt.core.modules.boundary.Network(app) - >>> box = app.modeler.create_box([5, 5, 5],[20, 50, 80]) - >>> faces_ids = [face.id for face in box.faces] - >>> network.add_face_node(faces_ids[0]) - >>> network.add_face_node(faces_ids[1],name="TestNode",thermal_resistance="Compute", - ... material="Al-Extruded",thickness="2mm") - >>> network.add_face_node(faces_ids[2],name="TestNode",thermal_resistance="Specified",resistance=2) - """ - props_dict = {} - props_dict["FaceID"] = assignment - if thermal_resistance is not None: - if thermal_resistance == "Compute": - if resistance is not None: - self._app.logger.info( - '``resistance`` assignment is incompatible with ``thermal_resistance="Compute"``' - "and it is ignored." - ) - if material is not None or thickness is not None: - props_dict["ThermalResistance"] = thermal_resistance - props_dict["Material"] = material - if not isinstance(thickness, str): - thickness = str(thickness) + "mm" - props_dict["Thickness"] = thickness - else: # pragma: no cover - raise AttributeError( - 'If ``thermal_resistance="Compute"`` both ``material`` and ``thickness``' - "arguments must be prescribed." - ) - if thermal_resistance == "Specified": - if material is not None or thickness is not None: - self._app.logger.warning( - "Because ``material`` and ``thickness`` assignments are incompatible with" - '``thermal_resistance="Specified"``, they are ignored.' - ) - if resistance is not None: - props_dict["ThermalResistance"] = thermal_resistance - if not isinstance(resistance, str): - resistance = str(resistance) + "cel_per_w" - props_dict["Resistance"] = resistance - else: # pragma : no cover - raise AttributeError( - 'If ``thermal_resistance="Specified"``, ``resistance`` argument must be prescribed.' - ) - - if name is None: - name = "FaceID" + str(assignment) - new_node = self._Node(name, self._app, node_type="FaceNode", props=props_dict, network=self) - self._nodes.append(new_node) - self._add_to_props(new_node) - return new_node - - @pyaedt_function_handler(nodes_dict="nodes") - def add_nodes_from_dictionaries(self, nodes): - """ - Add nodes to the network from dictionary. - - Parameters - ---------- - nodes : list or dict - A dictionary or list of dictionaries containing nodes to add to the network. Different - node types require different key and value pairs: - - - Face nodes must contain the ``"ID"`` key associated with an integer containing the face ID. - Optional keys and values pairs are: - - - ``"ThermalResistance"``: a string specifying the type of thermal resistance. - Options are ``"NoResistance"`` (default), ``"Compute"``, and ``"Specified"``. - - ``"Thickness"``: a string with the thickness value and unit (required if ``"Compute"`` - is selected for ``"ThermalResistance"``). - - ``"Material"``: a string with the name of the material (required if ``"Compute"`` is - selected for ``"ThermalResistance"``). - - ``"Resistance"``: a string with the resistance value and unit (required if - ``"Specified"`` is selected for ``"ThermalResistance"``). - - ``"Name"``: a string with the name of the node. If not - specified, a name is generated automatically. - - - - Internal nodes must contain the following keys and values pairs: - - - ``"Name"``: a string with the node name - - ``"Power"``: a string with the assigned power or a dictionary for transient or - temperature-dependent assignment - Optional keys and values pairs: - - ``"Mass"``: a string with the mass value and unit - - ``"SpecificHeat"``: a string with the specific heat value and unit - - - Boundary nodes must contain the following keys and values pairs: - - - ``"Name"``: a string with the node name - - ``"ValueType"``: a string specifying the type of value (``"Power"`` or - ``"Temperature"``) - Depending on the ``"ValueType"`` choice, one of the following keys and values pairs must - be used: - - ``"Power"``: a string with the power value and unit or a dictionary for transient or - temperature-dependent assignment - - ``"Temperature"``: a string with the temperature value and unit or a dictionary for - transient or temperature-dependent assignment - According to the ``"ValueType"`` choice, ``"Power"`` or ``"Temperature"`` key must be - used. Their associated value a string with the value and unit of the quantity prescribed or - a dictionary for transient or temperature dependent assignment. - - - All the temperature dependent or thermal dictionaries should contain three keys: - ``"Type"``, ``"Function"``, and ``"Values"``. Accepted ``"Type"`` values are: - ``"Temp Dep"`` and ``"Transient"``. Accepted ``"Function"`` are: ``"Linear"``, - ``"Power Law"``, ``"Exponential"``, ``"Sinusoidal"``, ``"Square Wave"``, and - ``"Piecewise Linear"``. ``"Temp Dep"`` only support the latter. ``"Values"`` - contains a list of strings containing the parameters required by the ``"Function"`` - selection (e.g. ``"Linear"`` requires two parameters: the value of the variable at t=0 - and the slope of the line). The parameters required by each ``Function`` option is in - Icepak documentation. The parameters must contain the units where needed. - - Returns - ------- - bool - ``True`` if successful. ``False`` otherwise. - - Examples - -------- - - >>> import ansys.aedt.core - >>> app = ansys.aedt.core.Icepak() - >>> network = ansys.aedt.core.modules.boundary.Network(app) - >>> box = app.modeler.create_box([5, 5, 5],[20, 50, 80]) - >>> faces_ids = [face.id for face in box.faces] - >>> nodes_dict = [ - >>> {"FaceID": faces_ids[0]}, - >>> {"Name": "TestNode", "FaceID": faces_ids[1], - >>> "ThermalResistance": "Compute", "Thickness": "2mm"}, - >>> {"FaceID": faces_ids[2], "ThermalResistance": "Specified", "Resistance": "2cel_per_w"}, - >>> {"Name": "Junction", "Power": "1W"}] - >>> network.add_nodes_from_dictionaries(nodes_dict) - - """ - if isinstance(nodes, dict): - nodes = [nodes] - for node_dict in nodes: - if "FaceID" in node_dict.keys(): - self.add_face_node( - assignment=node_dict["FaceID"], - name=node_dict.get("Name", None), - thermal_resistance=node_dict.get("ThermalResistance", None), - material=node_dict.get("Material", None), - thickness=node_dict.get("Thickness", None), - resistance=node_dict.get("Resistance", None), - ) - elif "ValueType" in node_dict.keys(): - if node_dict["ValueType"].endswith("Value"): - value = node_dict[node_dict["ValueType"].removesuffix("Value")] - else: - value = node_dict[node_dict["ValueType"]] - self.add_boundary_node(name=node_dict["Name"], assignment_type=node_dict["ValueType"], value=value) - else: - self.add_internal_node( - name=node_dict["Name"], - power=node_dict.get("Power", None), - mass=node_dict.get("Mass", None), - specific_heat=node_dict.get("SpecificHeat", None), - ) - return True - - @pyaedt_function_handler() - def add_link(self, node1, node2, value, name=None): - """Create links in the network object. - - Parameters - ---------- - node1 : str or int - String containing one of the node names that the link is connecting or an integer - containing the ID of the face. If an ID is used and the node associated with the - corresponding face is not created yet, it is added automatically. - node2 : str or int - String containing one of the node names that the link is connecting or an integer - containing the ID of the face. If an ID is used and the node associated with the - corresponding face is not created yet, it is added atuomatically. - value : str or float - String containing the value and unit of the connection. If a float is passed, an - R-Link is added to the network and the ``"cel_per_w"`` unit is used. - name : str, optional - Name of the link. The default is ``None``, in which case a name is - automatically generated. - - Returns - ------- - bool - ``True`` when successful, ``False`` when failed. - - Examples - -------- - - >>> import ansys.aedt.core - >>> app = ansys.aedt.core.Icepak() - >>> network = ansys.aedt.core.modules.boundary.Network(app) - >>> box = app.modeler.create_box([5, 5, 5],[20, 50, 80]) - >>> faces_ids = [face.id for face in box.faces] - >>> connection = {"Name": "LinkTest", "Connection": [faces_ids[1], faces_ids[0]], "Value": "1cel_per_w"} - >>> network.add_links_from_dictionaries(connection) - - """ - if name is None: - new_name = True - while new_name: - name = generate_unique_name("Link") - if name not in self.links.keys(): - new_name = False - new_link = self._Link(node1, node2, value, name, self) - self._links.append(new_link) - self._add_to_props(new_link, "Links") - return True - - @pyaedt_function_handler() - def add_links_from_dictionaries(self, connections): - """Create links in the network object. - - Parameters - ---------- - connections : dict or list of dict - Dictionary or list of dictionaries containing the links between nodes. Each dictionary - consists of these elements: - - - ``"Link"``: a three-item list consisting of the two nodes that the link is connecting and - the value with unit of the link. The node of the connection can be referred to with the - name (str) or face ID (int). The link type (resistance, heat transfer coefficient, or - mass flow) is determined automatically from the unit. - - ``"Name"`` (optional): a string specifying the name of the link. - - - Returns - ------- - bool - ``True`` if successful. - - Examples - -------- - - >>> import ansys.aedt.core - >>> app = ansys.aedt.core.Icepak() - >>> network = ansys.aedt.core.modules.boundary.Network(app) - >>> box = app.modeler.create_box([5, 5, 5],[20, 50, 80]) - >>> faces_ids = [face.id for face in box.faces] - >>> [network.add_face_node(faces_ids[i]) for i in range(2)] - >>> connection = {"Name": "LinkTest", "Link": [faces_ids[1], faces_ids[0], "1cel_per_w"]} - >>> network.add_links_from_dictionaries(connection) - - """ - if isinstance(connections, dict): - connections = [connections] - for connection in connections: - name = connection.get("Name", None) - try: - self.add_link(connection["Link"][0], connection["Link"][1], connection["Link"][2], name) - except Exception: # pragma : no cover - if name: - self._app.logger.error("Failed to add " + name + " link.") - else: - self._app.logger.error( - "Failed to add link associated with the following dictionary:\n" + str(connection) - ) - return True - - @pyaedt_function_handler() - def update(self): - """Update the network in AEDT. - - Returns - ------- - bool - ``True`` when successful, ``False`` when failed. - - """ - if self.name in [b.name for b in self._app.boundaries]: - self.delete() - try: - self.create() - self._app._boundaries[self.name] = self - return True - except Exception: # pragma : no cover - self._app.odesign.Undo() - self._app.logger.error("Update of network object failed.") - return False - else: # pragma : no cover - self._app.logger.warning("Network object not yet created in design.") - return False - - @pyaedt_function_handler() - def update_assignment(self): - """ - Update assignments of the network. - """ - return self.update() - - class _Link: - def __init__(self, node_1, node_2, value, name, network): - self.name = name - if not isinstance(node_1, str): - node_1 = "FaceID" + str(node_1) - if not isinstance(node_2, str): - node_2 = "FaceID" + str(node_2) - if not isinstance(value, str): - value = str(value) + "cel_per_w" - self.node_1 = node_1 - self.node_2 = node_2 - self.value = value - self._network = network - - @property - def _link_type(self): - unit2type_conversion = { - "g_per_s": ["C-Link", "Node1ToNode2"], - "kg_per_s": ["C-Link", "Node1ToNode2"], - "lbm_per_min": ["C-Link", "Node1ToNode2"], - "lbm_per_s": ["C-Link", "Node1ToNode2"], - "Kel_per_W": ["R-Link", "R"], - "cel_per_w": ["R-Link", "R"], - "FahSec_per_btu": ["R-Link", "R"], - "Kels_per_J": ["R-Link", "R"], - "w_per_m2kel": ["R-Link", "HTC"], - "w_per_m2Cel": ["R-Link", "HTC"], - "btu_per_rankHrFt2": ["R-Link", "HTC"], - "btu_per_fahHrFt2": ["R-Link", "HTC"], - "btu_per_rankSecFt2": ["R-Link", "HTC"], - "btu_per_fahSecFt2": ["R-Link", "HTC"], - "w_per_cm2kel": ["R-Link", "HTC"], - } - _, unit = decompose_variable_value(self.value) - return unit2type_conversion[unit] - - @property - def props(self): - """ - Get link properties. - - Returns - ------- - list - First two elements of the list are the node names that the link connects, - the third element is the link type while the fourth contains the value - associated with the link. - """ - return [self.node_1, self.node_2] + self._link_type + [self.value] - - @pyaedt_function_handler() - def delete_link(self): - """ - Delete link from network. - """ - self._network.props["Links"].pop(self.name) - self._network._links.remove(self) - - class _Node: - def __init__(self, name, app, network, node_type=None, props=None): - self.name = name - self._type = node_type - self._app = app - self._props = props - self._node_props() - self._network = network - - @pyaedt_function_handler() - def delete_node(self): - """ - Delete node from network. - """ - self._network.props["Nodes"].pop(self.name) - self._network._nodes.remove(self) - - @property - def node_type(self): - """ - Get node type. - - Returns - ------- - str - Node type. - """ - if self._type is None: # pragma: no cover - if self.props is None: - self._app.logger.error( - "Cannot define node_type. Both its assignment and properties assignment are missing." - ) - return None - else: - type_in_dict = self.props.get("NodeType", None) - if type_in_dict is None: - self._type = "FaceNode" - else: - self._type = type_in_dict - return self._type - - @property - def props(self): - """ - Get properties of the node. - - Returns - ------- - dict - Node properties. - """ - return self._props - - @props.setter - def props(self, props): - """ - Set properties of the node. - - Parameters - ---------- - props : dict - Node properties. - """ - self._props = props - self._node_props() - - def _node_props(self): - face_node_default_dict = { - "FaceID": None, - "ThermalResistance": "NoResistance", - "Thickness": "1mm", - "Material": "Al-Extruded", - "Resistance": "0cel_per_w", - } - boundary_node_default_dict = { - "NodeType": "BoundaryNode", - "ValueType": "PowerValue", - "Power": "0W", - "Temperature": "25cel", - } - internal_node_default_dict = { - "NodeType": "InternalNode", - "Power": "0W", - "Mass": "0.001kg", - "SpecificHeat": "1000J_per_Kelkg", - } - if self.props is None: - if self.node_type == "InternalNode": - self._props = internal_node_default_dict - elif self.node_type == "FaceNode": - self._props = face_node_default_dict - elif self.node_type == "BoundaryNode": - self._props = boundary_node_default_dict - else: - if self.node_type == "InternalNode": - self._props = self._create_node_dict(internal_node_default_dict) - elif self.node_type == "FaceNode": - self._props = self._create_node_dict(face_node_default_dict) - elif self.node_type == "BoundaryNode": - self._props = self._create_node_dict(boundary_node_default_dict) - - @pyaedt_function_handler() - def _create_node_dict(self, default_dict): - node_dict = self.props - node_name = node_dict.get("Name", self.name) - if not node_name: - try: - self.name = "Face" + str(node_dict["FaceID"]) - except KeyError: # pragma: no cover - raise KeyError('"Name" key is needed for "BoundaryNodes" and "InternalNodes" dictionaries.') - else: - self.name = node_name - node_dict.pop("Name", None) - node_args = copy.deepcopy(default_dict) - for k in node_dict.keys(): - val = node_dict[k] - if isinstance(val, dict): # pragma : no cover - val = self._app._parse_variation_data( - k, val["Type"], variation_value=val["Values"], function=val["Function"] - ) - node_args.pop(k) - node_args.update(val) - else: - node_args[k] = val - - return node_args - - -def _create_boundary(bound): - try: - if bound.create(): - bound._app._boundaries[bound.name] = bound - return bound - else: # pragma : no cover - raise Exception - except Exception: # pragma: no cover - return None - - -class BoundaryDictionary: - """ - Handles Icepak transient and temperature-dependent boundary condition assignments. - - Parameters - ---------- - assignment_type : str - Type of assignment represented by the class. Options are `"Temp Dep"`` - and ``"Transient"``. - function_type : str - Variation function to assign. If ``assignment_type=="Temp Dep"``, - the function can only be ``"Piecewise Linear"``. Otherwise, the function can be - ``"Exponential"``, ``"Linear"``, ``"Piecewise Linear"``, ``"Power Law"``, - ``"Sinusoidal"``, and ``"Square Wave"``. - """ - - def __init__(self, assignment_type, function_type): - if assignment_type not in ["Temp Dep", "Transient"]: # pragma : no cover - raise AttributeError(f"The argument {assignment_type} for ``assignment_type`` is not valid.") - if assignment_type == "Temp Dep" and function_type != "Piecewise Linear": # pragma : no cover - raise AttributeError( - "Temperature dependent assignments only support" - ' ``"Piecewise Linear"`` as ``function_type`` argument.' - ) - self.assignment_type = assignment_type - self.function_type = function_type - - @property - def props(self): - """Dictionary that defines all the boundary condition properties.""" - return { - "Type": self.assignment_type, - "Function": self.function_type, - "Values": self._parse_value(), - } - - @abstractmethod - def _parse_value(self): - pass # pragma : no cover - - @pyaedt_function_handler() - def __getitem__(self, k): - return self.props.get(k) - - -class LinearDictionary(BoundaryDictionary): - """ - Manages linear conditions assignments, which are children of the ``BoundaryDictionary`` class. - - This class applies a condition ``y`` dependent on the time ``t``: - ``y=a+b*t`` - - Parameters - ---------- - intercept : str - Value of the assignment condition at the initial time, which - corresponds to the coefficient ``a`` in the formula. - slope : str - Slope of the assignment condition, which - corresponds to the coefficient ``b`` in the formula. - """ - - def __init__(self, intercept, slope): - super().__init__("Transient", "Linear") - self.intercept = intercept - self.slope = slope - - @pyaedt_function_handler() - def _parse_value(self): - return [self.slope, self.intercept] - - -class PowerLawDictionary(BoundaryDictionary): - """ - Manages power law condition assignments, which are children of the ``BoundaryDictionary`` class. - - This class applies a condition ``y`` dependent on the time ``t``: - ``y=a+b*t^c`` - - Parameters - ---------- - intercept : str - Value of the assignment condition at the initial time, which - corresponds to the coefficient ``a`` in the formula. - coefficient : str - Coefficient that multiplies the power term, which - corresponds to the coefficient ``b`` in the formula. - scaling_exponent : str - Exponent of the power term, which - corresponds to the coefficient ``c`` in the formula. - """ - - def __init__(self, intercept, coefficient, scaling_exponent): - super().__init__("Transient", "Power Law") - self.intercept = intercept - self.coefficient = coefficient - self.scaling_exponent = scaling_exponent - - @pyaedt_function_handler() - def _parse_value(self): - return [self.intercept, self.coefficient, self.scaling_exponent] - - -class ExponentialDictionary(BoundaryDictionary): - """ - Manages exponential condition assignments, which are children of the ``BoundaryDictionary`` class. - - This class applies a condition ``y`` dependent on the time ``t``: - ``y=a+b*exp(c*t)`` - - Parameters - ---------- - vertical_offset : str - Vertical offset summed to the exponential law, which - corresponds to the coefficient ``a`` in the formula. - coefficient : str - Coefficient that multiplies the exponential term, which - corresponds to the coefficient ``b`` in the formula. - exponent_coefficient : str - Coefficient in the exponential term, which - corresponds to the coefficient ``c`` in the formula. - """ - - def __init__(self, vertical_offset, coefficient, exponent_coefficient): - super().__init__("Transient", "Exponential") - self.vertical_offset = vertical_offset - self.coefficient = coefficient - self.exponent_coefficient = exponent_coefficient - - @pyaedt_function_handler() - def _parse_value(self): - return [self.vertical_offset, self.coefficient, self.exponent_coefficient] - - -class SinusoidalDictionary(BoundaryDictionary): - """ - Manages sinusoidal condition assignments, which are children of the ``BoundaryDictionary`` class. - - This class applies a condition ``y`` dependent on the time ``t``: - ``y=a+b*sin(2*pi(t-t0)/T)`` - - Parameters - ---------- - vertical_offset : str - Vertical offset summed to the sinusoidal law, which - corresponds to the coefficient ``a`` in the formula. - vertical_scaling : str - Coefficient that multiplies the sinusoidal term, which - corresponds to the coefficient ``b`` in the formula. - period : str - Period of the sinusoid, which - corresponds to the coefficient ``T`` in the formula. - period_offset : str - Offset of the sinusoid, which - corresponds to the coefficient ``t0`` in the formula. - """ - - def __init__(self, vertical_offset, vertical_scaling, period, period_offset): - super().__init__("Transient", "Sinusoidal") - self.vertical_offset = vertical_offset - self.vertical_scaling = vertical_scaling - self.period = period - self.period_offset = period_offset - - @pyaedt_function_handler() - def _parse_value(self): - return [self.vertical_offset, self.vertical_scaling, self.period, self.period_offset] - - -class SquareWaveDictionary(BoundaryDictionary): - """ - Manages square wave condition assignments, which are children of the ``BoundaryDictionary`` class. - - Parameters - ---------- - on_value : str - Maximum value of the square wave. - initial_time_off : str - Time after which the square wave assignment starts. - on_time : str - Time for which the square wave keeps the maximum value during one period. - off_time : str - Time for which the square wave keeps the minimum value during one period. - off_value : str - Minimum value of the square wave. - """ - - def __init__(self, on_value, initial_time_off, on_time, off_time, off_value): - super().__init__("Transient", "Square Wave") - self.on_value = on_value - self.initial_time_off = initial_time_off - self.on_time = on_time - self.off_time = off_time - self.off_value = off_value - - @pyaedt_function_handler() - def _parse_value(self): - return [self.on_value, self.initial_time_off, self.on_time, self.off_time, self.off_value] - - -class PieceWiseLinearDictionary(BoundaryDictionary): - """ - Manages dataset condition assignments, which are children of the ``BoundaryDictionary`` class. - - Parameters - ---------- - assignment_type : str - Type of assignment represented by the class. - Options are ``"Temp Dep"`` and ``"Transient"``. - ds : str - Dataset name to assign. - scale : str - Scaling factor for the y values of the dataset. - """ - - def __init__(self, assignment_type, ds, scale): - super().__init__(assignment_type, "Piecewise Linear") - self.scale = scale - self._assignment_type = assignment_type - self.dataset = ds - - @pyaedt_function_handler() - def _parse_value(self): - return [self.scale, self.dataset.name] - - @property - def dataset_name(self): - """Dataset name that defines the piecewise assignment.""" - return self.dataset.name diff --git a/src/ansys/aedt/core/workflows/templates/extension_template.py b/src/ansys/aedt/core/workflows/templates/extension_template.py deleted file mode 100644 index a9a8030317f..00000000000 --- a/src/ansys/aedt/core/workflows/templates/extension_template.py +++ /dev/null @@ -1,71 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -# Toolkit template if the user does not pass any valid script in the toolkit manager - -import ansys.aedt.core -from ansys.aedt.core import get_pyaedt_app -from ansys.aedt.core.workflows.misc import get_aedt_version -from ansys.aedt.core.workflows.misc import get_arguments -from ansys.aedt.core.workflows.misc import get_port -from ansys.aedt.core.workflows.misc import get_process_id -from ansys.aedt.core.workflows.misc import is_student - -port = get_port() -version = get_aedt_version() -aedt_process_id = get_process_id() -is_student = is_student() - -# Extension batch arguments -extension_arguments = {"dummy_argument": True} -extension_description = "Extension template" - - -def main(extension_args): - app = ansys.aedt.core.Desktop( - new_desktop=False, - version=version, - port=port, - aedt_process_id=aedt_process_id, - student_version=is_student, - ) - - # active_project = app.active_project() - active_design = app.active_design() - - # project_name = active_project.GetName() - design_name = active_design.GetName() - - aedtapp = get_pyaedt_app(design_name=design_name, desktop=app) - - # Your PyAEDT script - aedtapp.modeler.create_sphere([0, 0, 0], 3) - - if not extension_args["is_test"]: # pragma: no cover - app.release_desktop(False, False) - return True - - -if __name__ == "__main__": - args = get_arguments(extension_arguments, extension_description) - main(args) diff --git a/tests/system/general/test_45_FilterSolutions/test_filter/test_attributes.py b/tests/system/general/test_45_FilterSolutions/test_filter/test_attributes.py deleted file mode 100644 index 117e3f3fe17..00000000000 --- a/tests/system/general/test_45_FilterSolutions/test_filter/test_attributes.py +++ /dev/null @@ -1,508 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -import ansys.aedt.core -from ansys.aedt.core.filtersolutions_core.attributes import BesselRipplePercentage -from ansys.aedt.core.filtersolutions_core.attributes import DiplexerType -from ansys.aedt.core.filtersolutions_core.attributes import FilterClass -from ansys.aedt.core.filtersolutions_core.attributes import FilterImplementation -from ansys.aedt.core.filtersolutions_core.attributes import FilterType -from ansys.aedt.core.filtersolutions_core.attributes import GaussianBesselReflection -from ansys.aedt.core.filtersolutions_core.attributes import GaussianTransition -from ansys.aedt.core.filtersolutions_core.attributes import PassbandDefinition -from ansys.aedt.core.filtersolutions_core.attributes import RippleConstrictionBandSelect -from ansys.aedt.core.filtersolutions_core.attributes import SinglePointRippleInfZeros -from ansys.aedt.core.filtersolutions_core.attributes import StopbandDefinition -from ansys.aedt.core.generic.general_methods import is_linux -import pytest - -from tests.system.general.conftest import config - - -@pytest.mark.skipif(is_linux, reason="FilterSolutions API is not supported on Linux.") -@pytest.mark.skipif(config["desktopVersion"] < "2025.1", reason="Skipped on versions earlier than 2025.1") -class TestClass: - def test_filter_type(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert design.attributes.filter_type == FilterType.BUTTERWORTH - - assert len(FilterType) == 10 - - for fimp in [FilterImplementation.LUMPED]: - design.attributes.filter_implementation = fimp - for ftype in FilterType: - design.attributes.filter_type = ftype - assert design.attributes.filter_type == ftype - - def test_filter_class(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert design.attributes.filter_class == FilterClass.LOW_PASS - - # Only lumped supports all classes - # TODO: Confirm proper exceptions are raised when setting unsupported filter class for each implementation. - - assert len(FilterClass) == 10 - for index, fclass in enumerate(FilterClass): - if index > 5: - design.attributes.filter_multiple_bands_enabled = True - design.attributes.filter_class = fclass - assert design.attributes.filter_class == fclass - - def test_filter_multiple_bands_enabled(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert design.attributes.filter_multiple_bands_enabled is False - design.attributes.filter_multiple_bands_enabled = True - assert design.attributes.filter_multiple_bands_enabled - - def test_filter_multiple_bands_low_pass_frequency(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_multiple_bands_enabled = True - design.attributes.filter_class = FilterClass.LOW_BAND - assert design.attributes.filter_multiple_bands_low_pass_frequency == "1G" - design.attributes.filter_multiple_bands_low_pass_frequency = "500M" - assert design.attributes.filter_multiple_bands_low_pass_frequency == "500M" - - def test_filter_multiple_bands_high_pass_frequency(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_multiple_bands_enabled = True - design.attributes.filter_class = FilterClass.BAND_HIGH - assert design.attributes.filter_multiple_bands_high_pass_frequency == "1G" - design.attributes.filter_multiple_bands_high_pass_frequency = "500M" - assert design.attributes.filter_multiple_bands_high_pass_frequency == "500M" - - def test_filter_implementation(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert len(FilterImplementation) == 5 - for fimplementation in FilterImplementation: - design.attributes.filter_implementation = fimplementation - assert design.attributes.filter_implementation == fimplementation - - def test_diplexer_type(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert len(DiplexerType) == 6 - for index, diplexer_type in enumerate(DiplexerType): - if index < 3: - design.attributes.filter_class = FilterClass.DIPLEXER_1 - elif index > 2: - design.attributes.filter_class = FilterClass.DIPLEXER_2 - design.attributes.diplexer_type = diplexer_type - assert design.attributes.diplexer_type == diplexer_type - - def test_filter_order(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert design.attributes.filter_order == 5 - - with pytest.raises(RuntimeError) as info: - design.attributes.filter_order = 0 - assert info.value.args[0] == "The minimum order is 1" - - for i in range(1, 22): - design.attributes.filter_order = i - assert design.attributes.filter_order == i - - with pytest.raises(RuntimeError) as info: - design.attributes.filter_order = 22 - assert info.value.args[0] == "The maximum order is 21" - - def test_minimum_order_stop_band_att(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert design.attributes.minimum_order_stop_band_attenuation_db == "60 dB" - design.attributes.minimum_order_stop_band_attenuation_db = "40 dB" - assert design.attributes.minimum_order_stop_band_attenuation_db == "40 dB" - - def test_minimum_order_stop_band_freq(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert design.attributes.minimum_order_stop_band_frequency == "10 GHz" - design.attributes.minimum_order_stop_band_frequency = "500 MHz" - assert design.attributes.minimum_order_stop_band_frequency == "500 MHz" - - def test_minimum_order_group_delay_error_percent(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.DELAY - assert design.attributes.minimum_order_group_delay_error_percent == "5" - design.attributes.minimum_order_group_delay_error_percent = "7" - assert design.attributes.minimum_order_group_delay_error_percent == "7" - - def test_minimum_order_group_delay_cutoff(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.DELAY - assert design.attributes.minimum_order_group_delay_cutoff == "2 GHz" - design.attributes.minimum_order_group_delay_cutoff = "500 MHz" - assert design.attributes.minimum_order_group_delay_cutoff == "500 MHz" - - def test_minimum_order_stop_band_freq(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert design.attributes.minimum_order_stop_band_frequency == "10 GHz" - design.attributes.minimum_order_stop_band_frequency = "500 MHz" - assert design.attributes.minimum_order_stop_band_frequency == "500 MHz" - - def test_minimum_order(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert design.attributes.filter_order == 5 - design.attributes.ideal_minimum_order - assert design.attributes.filter_order == 3 - - def test_pass_band_definition(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_class = FilterClass.BAND_PASS - assert len(PassbandDefinition) == 2 - assert design.attributes.pass_band_definition == PassbandDefinition.CENTER_FREQUENCY - for pbd in PassbandDefinition: - design.attributes.pass_band_definition = pbd - assert design.attributes.pass_band_definition == pbd - - def test_pass_band_center_frequency(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert design.attributes.pass_band_center_frequency == "1G" - design.attributes.pass_band_center_frequency = "500M" - assert design.attributes.pass_band_center_frequency == "500M" - - def test_pass_band_frequency(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_class = FilterClass.BAND_PASS - assert design.attributes.pass_band_width_frequency == "200M" - design.attributes.pass_band_width_frequency = "500M" - assert design.attributes.pass_band_width_frequency == "500M" - - def test_lower_frequency(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_class = FilterClass.BAND_PASS - design.attributes.pass_band_definition = PassbandDefinition.CORNER_FREQUENCIES - assert design.attributes.lower_frequency == "905 M" - design.attributes.lower_frequency = "800M" - assert design.attributes.lower_frequency == "800M" - - def test_upper_frequency(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_class = FilterClass.BAND_PASS - design.attributes.pass_band_definition = PassbandDefinition.CORNER_FREQUENCIES - assert design.attributes.upper_frequency == "1.105 G" - design.attributes.upper_frequency = "1.2 G" - assert design.attributes.upper_frequency == "1.2 G" - - def test_stop_band_definition(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.ELLIPTIC - assert len(StopbandDefinition) == 3 - assert design.attributes.stop_band_definition == StopbandDefinition.RATIO - for sbd in StopbandDefinition: - design.attributes.stop_band_definition = sbd - assert design.attributes.stop_band_definition == sbd - - def test_stop_band_ratio(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.ELLIPTIC - assert design.attributes.stop_band_ratio == "1.2" - design.attributes.stop_band_ratio = "1.5" - assert design.attributes.stop_band_ratio == "1.5" - - def test_stop_band_frequency(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.ELLIPTIC - design.attributes.stop_band_definition = StopbandDefinition.FREQUENCY - assert design.attributes.stop_band_frequency == "1.2 G" - design.attributes.stop_band_frequency = "1.5 G" - assert design.attributes.stop_band_frequency == "1.5 G" - - def test_stop_band_attenuation(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.ELLIPTIC - design.attributes.stop_band_definition = StopbandDefinition.ATTENUATION_DB - assert design.attributes.stop_band_attenuation_db == "60" - design.attributes.stop_band_attenuation_db = "40 dB" - assert design.attributes.stop_band_attenuation_db == "40" - - def test_standard_pass_band_attenuation(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert design.attributes.standard_pass_band_attenuation - design.attributes.standard_pass_band_attenuation = False - assert design.attributes.standard_pass_band_attenuation is False - - def test_standard_pass_band_attenuation_value_db(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.standard_pass_band_attenuation = False - assert design.attributes.standard_pass_band_attenuation_value_db == "3.01" - design.attributes.standard_pass_band_attenuation_value_db = "4" - assert design.attributes.standard_pass_band_attenuation_value_db == "4" - - def test_equiripple_delay(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.DELAY - assert design.attributes.equiripple_delay - design.attributes.equiripple_delay = False - assert design.attributes.equiripple_delay is False - - def test_group_delay_ripple_period(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.DELAY - assert design.attributes.group_delay_ripple_period == "2" - design.attributes.group_delay_ripple_period = "3" - assert design.attributes.group_delay_ripple_period == "3" - - def test_normalized_group_delay_percentage(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.DELAY - assert len(BesselRipplePercentage) == 6 - for normalized_group_delay_percentage in BesselRipplePercentage: - design.attributes.normalized_group_delay_percentage = normalized_group_delay_percentage - assert design.attributes.normalized_group_delay_percentage == normalized_group_delay_percentage - - def test_bessel_normalized_delay(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.BESSEL - assert design.attributes.bessel_normalized_delay is False - design.attributes.bessel_normalized_delay = True - assert design.attributes.bessel_normalized_delay - - def test_bessel_normalized_delay_period(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.BESSEL - design.attributes.bessel_normalized_delay = True - assert design.attributes.bessel_normalized_delay_period == "2" - design.attributes.bessel_normalized_delay_period = "3" - assert design.attributes.bessel_normalized_delay_period == "3" - - def test_bessel_normalized_delay_percentage(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.BESSEL - design.attributes.bessel_normalized_delay = True - assert len(BesselRipplePercentage) == 6 - for bessel_normalized_delay_percentage in BesselRipplePercentage: - design.attributes.bessel_normalized_delay_percentage = bessel_normalized_delay_percentage - assert design.attributes.bessel_normalized_delay_percentage == bessel_normalized_delay_percentage - - def test_pass_band_ripple(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.ELLIPTIC - assert design.attributes.pass_band_ripple == ".05" - design.attributes.pass_band_ripple = ".03" - assert design.attributes.pass_band_ripple == ".03" - - def test_arith_symmetry(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.ELLIPTIC - design.attributes.filter_class = FilterClass.BAND_PASS - assert design.attributes.arith_symmetry is False - design.attributes.arith_symmetry = True - assert design.attributes.arith_symmetry - - def test_asymmetric(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_class = FilterClass.BAND_PASS - assert design.attributes.asymmetric is False - design.attributes.asymmetric = True - assert design.attributes.asymmetric - - def test_asymmetric_low_order(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_class = FilterClass.BAND_PASS - design.attributes.asymmetric = True - assert design.attributes.asymmetric_low_order == 5 - - with pytest.raises(RuntimeError) as info: - design.attributes.asymmetric_low_order = 0 - assert info.value.args[0] == "The minimum order is 1" - - for i in range(1, 22): - design.attributes.asymmetric_low_order = i - assert design.attributes.asymmetric_low_order == i - - with pytest.raises(RuntimeError) as info: - design.attributes.asymmetric_low_order = 22 - assert info.value.args[0] == "The maximum order is 21" - - def test_asymmetric_high_order(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_class = FilterClass.BAND_PASS - design.attributes.asymmetric = True - assert design.attributes.asymmetric_high_order == 5 - - with pytest.raises(RuntimeError) as info: - design.attributes.asymmetric_high_order = 0 - assert info.value.args[0] == "The minimum order is 1" - - for i in range(1, 22): - design.attributes.asymmetric_high_order = i - assert design.attributes.asymmetric_high_order == i - - with pytest.raises(RuntimeError) as info: - design.attributes.asymmetric_high_order = 22 - assert info.value.args[0] == "The maximum order is 21" - - def test_asymmetric_low_stop_band_ratio(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_class = FilterClass.BAND_PASS - design.attributes.filter_type = FilterType.ELLIPTIC - design.attributes.asymmetric = True - assert design.attributes.asymmetric_low_stop_band_ratio == "1.2" - design.attributes.asymmetric_low_stop_band_ratio = "1.5" - assert design.attributes.asymmetric_low_stop_band_ratio == "1.5" - - def test_asymmetric_high_stop_band_ratio(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_class = FilterClass.BAND_PASS - design.attributes.filter_type = FilterType.ELLIPTIC - design.attributes.asymmetric = True - assert design.attributes.asymmetric_high_stop_band_ratio == "1.2" - design.attributes.asymmetric_high_stop_band_ratio = "1.5" - assert design.attributes.asymmetric_high_stop_band_ratio == "1.5" - - def test_asymmetric_low_stop_band_attenuation_db(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_class = FilterClass.BAND_PASS - design.attributes.filter_type = FilterType.ELLIPTIC - design.attributes.asymmetric = True - assert design.attributes.asymmetric_low_stop_band_attenuation_db == "60" - design.attributes.asymmetric_low_stop_band_attenuation_db = "40" - assert design.attributes.asymmetric_low_stop_band_attenuation_db == "40" - - def test_asymmetric_high_stop_band_attenuation_db(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_class = FilterClass.BAND_PASS - design.attributes.filter_type = FilterType.ELLIPTIC - design.attributes.asymmetric = True - assert design.attributes.asymmetric_high_stop_band_attenuation_db == "60" - design.attributes.asymmetric_high_stop_band_attenuation_db = "40" - assert design.attributes.asymmetric_high_stop_band_attenuation_db == "40" - - def test_gaussian_transition(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.GAUSSIAN - assert len(GaussianTransition) == 6 - for gaussian_transition in GaussianTransition: - design.attributes.gaussian_transition = gaussian_transition - assert design.attributes.gaussian_transition == gaussian_transition - - def test_gaussian_bessel_reflection(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.BESSEL - assert len(GaussianBesselReflection) == 3 - for gaussian_bessel_reflection in GaussianBesselReflection: - design.attributes.gaussian_bessel_reflection = gaussian_bessel_reflection - assert design.attributes.gaussian_bessel_reflection == gaussian_bessel_reflection - - def test_even_order(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.ELLIPTIC - design.attributes.filter_order = 4 - assert design.attributes.even_order - design.attributes.even_order = False - assert design.attributes.even_order is False - - def test_even_order_refl_zero(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.ELLIPTIC - design.attributes.filter_order = 4 - assert design.attributes.even_order_refl_zero - design.attributes.even_order_refl_zero = False - assert design.attributes.even_order_refl_zero is False - - def test_even_order_trn_zero(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.ELLIPTIC - design.attributes.filter_order = 4 - assert design.attributes.even_order_trn_zero - design.attributes.even_order_trn_zero = False - assert design.attributes.even_order_trn_zero is False - - def test_constrict_ripple(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.ELLIPTIC - assert design.attributes.constrict_ripple is False - design.attributes.constrict_ripple = True - assert design.attributes.constrict_ripple - - def test_single_point_ripple(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.ELLIPTIC - assert design.attributes.single_point_ripple is False - design.attributes.single_point_ripple = True - assert design.attributes.single_point_ripple - - def test_half_band_ripple(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.ELLIPTIC - assert design.attributes.half_band_ripple is False - design.attributes.half_band_ripple = True - assert design.attributes.half_band_ripple - - def test_constrict_ripple_percent(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.ELLIPTIC - design.attributes.constrict_ripple = True - assert design.attributes.constrict_ripple_percent == "50%" - design.attributes.constrict_ripple_percent = "40%" - assert design.attributes.constrict_ripple_percent == "40%" - - def test_ripple_constriction_band(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.ELLIPTIC - design.attributes.constrict_ripple = True - assert len(RippleConstrictionBandSelect) == 3 - for ripple_constriction_band in RippleConstrictionBandSelect: - design.attributes.ripple_constriction_band = ripple_constriction_band - assert design.attributes.ripple_constriction_band == ripple_constriction_band - - def test_single_point_ripple_inf_zeros(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_type = FilterType.ELLIPTIC - design.attributes.single_point_ripple = True - assert len(SinglePointRippleInfZeros) == 2 - for single_point_ripple_inf_zeros in SinglePointRippleInfZeros: - design.attributes.single_point_ripple_inf_zeros = single_point_ripple_inf_zeros - assert design.attributes.single_point_ripple_inf_zeros == single_point_ripple_inf_zeros - - def test_delay_equalizer(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert design.attributes.delay_equalizer is False - design.attributes.delay_equalizer = True - assert design.attributes.delay_equalizer - - def test_delay_equalizer_order(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.delay_equalizer = True - assert design.attributes.delay_equalizer_order == 2 - - for i in range(0, 21): - design.attributes.delay_equalizer_order = i - assert design.attributes.delay_equalizer_order == i - - with pytest.raises(RuntimeError) as info: - design.attributes.delay_equalizer_order = 21 - assert info.value.args[0] == "The maximum order is 20" - - def test_standard_delay_equ_pass_band_attenuation(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.delay_equalizer = True - assert design.attributes.standard_delay_equ_pass_band_attenuation - design.attributes.standard_delay_equ_pass_band_attenuation = False - assert design.attributes.standard_delay_equ_pass_band_attenuation is False - - def test_standard_delay_equ_pass_band_attenuation_value_db(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.delay_equalizer = True - design.attributes.standard_delay_equ_pass_band_attenuation = False - assert design.attributes.standard_delay_equ_pass_band_attenuation_value_db == "3.01" - design.attributes.standard_delay_equ_pass_band_attenuation_value_db = "4" - assert design.attributes.standard_delay_equ_pass_band_attenuation_value_db == "4" diff --git a/tests/system/general/test_45_FilterSolutions/test_filter/test_graph_setup.py b/tests/system/general/test_45_FilterSolutions/test_filter/test_graph_setup.py deleted file mode 100644 index dfb32ae2e4d..00000000000 --- a/tests/system/general/test_45_FilterSolutions/test_filter/test_graph_setup.py +++ /dev/null @@ -1,59 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -import ansys.aedt.core -from ansys.aedt.core.filtersolutions_core.attributes import FilterImplementation -from ansys.aedt.core.generic.general_methods import is_linux -import pytest - -from tests.system.general.conftest import config - - -@pytest.mark.skipif(is_linux, reason="FilterSolutions API is not supported on Linux.") -@pytest.mark.skipif(config["desktopVersion"] < "2025.1", reason="Skipped on versions earlier than 2025.1") -class TestClass: - - def test_minimum_frequency(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert design.graph_setup.minimum_frequency == "200 MHz" - design.graph_setup.minimum_frequency = "500 MHz" - assert design.graph_setup.minimum_frequency == "500 MHz" - - def test_maximum_frequency(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert design.graph_setup.maximum_frequency == "5 GHz" - design.graph_setup.maximum_frequency = "2 GHz" - assert design.graph_setup.maximum_frequency == "2 GHz" - - def test_minimum_time(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert design.graph_setup.minimum_time == "0" - design.graph_setup.minimum_time = "5 ns" - assert design.graph_setup.minimum_time == "5 ns" - - def test_maximum_time(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert design.graph_setup.maximum_time == "10 ns" - design.graph_setup.maximum_time = "8 ns" - assert design.graph_setup.maximum_time == "8 ns" diff --git a/tests/system/general/test_45_FilterSolutions/test_filter/test_multiple_bands_table.py b/tests/system/general/test_45_FilterSolutions/test_filter/test_multiple_bands_table.py deleted file mode 100644 index 32f9a63fa8d..00000000000 --- a/tests/system/general/test_45_FilterSolutions/test_filter/test_multiple_bands_table.py +++ /dev/null @@ -1,109 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -import ansys.aedt.core -from ansys.aedt.core.filtersolutions_core.attributes import FilterImplementation -from ansys.aedt.core.generic.general_methods import is_linux -import pytest - -from tests.system.general.conftest import config - - -@pytest.mark.skipif(is_linux, reason="FilterSolutions API is not supported on Linux.") -@pytest.mark.skipif(config["desktopVersion"] < "2025.1", reason="Skipped on versions earlier than 2025.1") -class TestClass: - def test_row_count(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_multiple_bands_enabled = True - assert design.multiple_bands_table.row_count == 2 - - def test_row(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_multiple_bands_enabled = True - assert design.multiple_bands_table.row(0) == ("2G", "3G") - - def test_update_row(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_multiple_bands_enabled = True - with pytest.raises(RuntimeError) as info: - design.multiple_bands_table.update_row(0) - assert info.value.args[0] == "It is not possible to update table with an empty value" - design.multiple_bands_table.update_row(0, lower_frequency="100M") - assert design.multiple_bands_table.row(0) == ("100M", "3G") - design.multiple_bands_table.update_row(0, upper_frequency="4G") - assert design.multiple_bands_table.row(0) == ("100M", "4G") - design.multiple_bands_table.update_row(0, "200M", "5G") - assert design.multiple_bands_table.row(0) == ("200M", "5G") - - def test_append_row(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_multiple_bands_enabled = True - design.multiple_bands_table.append_row("100M", "500M") - assert design.multiple_bands_table.row_count == 3 - assert design.multiple_bands_table.row(2) == ("100M", "500M") - with pytest.raises(RuntimeError) as info: - design.multiple_bands_table.append_row("", "500M") - assert info.value.args[0] == "It is not possible to append an empty value" - with pytest.raises(RuntimeError) as info: - design.multiple_bands_table.append_row("100M", "") - assert info.value.args[0] == "It is not possible to append an empty value" - - def test_insert_row(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_multiple_bands_enabled = True - design.multiple_bands_table.insert_row(0, "200M", "5G") - assert design.multiple_bands_table.row(0) == ("200M", "5G") - design.multiple_bands_table.insert_row(0, lower_frequency="500M", upper_frequency="2G") - assert design.multiple_bands_table.row(0) == ("500M", "2G") - with pytest.raises(RuntimeError) as info: - design.multiple_bands_table.insert_row(22, lower_frequency="500M", upper_frequency="2G") - assert info.value.args[0] == "The rowIndex must be greater than zero and less than row count" - - def test_remove_row(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_multiple_bands_enabled = True - design.multiple_bands_table.remove_row(0) - assert design.multiple_bands_table.row(0) == ("4G", "5G") - with pytest.raises(RuntimeError) as info: - design.multiple_bands_table.row(1) - assert ( - info.value.args[0] - == "Either no value is set for this band or the rowIndex must be greater than zero and less than row count" - ) - - def test_clear_table(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.attributes.filter_multiple_bands_enabled = True - # There are 2 rows in the table by default - assert design.multiple_bands_table.row_count == 2 - design.multiple_bands_table.clear_table() - assert design.multiple_bands_table.row_count == 0 - # Check if the table is empty for all 7 rows - for i in range(7): - with pytest.raises(RuntimeError) as info: - design.multiple_bands_table.row(i) - assert ( - info.value.args[0] == "Either no value is set for this band or the rowIndex must be greater than " - "zero and less than row count" - ) diff --git a/tests/system/general/test_45_FilterSolutions/test_filter/test_transmission_zeros.py b/tests/system/general/test_45_FilterSolutions/test_filter/test_transmission_zeros.py deleted file mode 100644 index c34ccdfcc32..00000000000 --- a/tests/system/general/test_45_FilterSolutions/test_filter/test_transmission_zeros.py +++ /dev/null @@ -1,140 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -import ansys.aedt.core -from ansys.aedt.core.filtersolutions_core.attributes import FilterImplementation -from ansys.aedt.core.generic.general_methods import is_linux -import pytest - -from tests.system.general.conftest import config - - -@pytest.mark.skipif(is_linux, reason="FilterSolutions API is not supported on Linux.") -@pytest.mark.skipif(config["desktopVersion"] < "2025.1", reason="Skipped on versions earlier than 2025.1") -class TestClass: - no_transmission_zero_msg = "This filter has no transmission zero at row 0" - no_transmission_zero_update_msg = "This filter has no transmission zero at row 0 to update" - input_value_blank_msg = "The input value is blank" - - def test_row_count(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert design.transmission_zeros_bandwidth.row_count == 0 - assert design.transmission_zeros_ratio.row_count == 0 - - def test_row(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - design.transmission_zeros_bandwidth.row(0) - assert info.value.args[0] == self.no_transmission_zero_msg - with pytest.raises(RuntimeError) as info: - design.transmission_zeros_ratio.row(0) - assert info.value.args[0] == self.no_transmission_zero_msg - - def test_update_row(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - design.transmission_zeros_bandwidth.update_row(0, zero="1.3G", position="2") - assert info.value.args[0] == self.no_transmission_zero_update_msg - with pytest.raises(RuntimeError) as info: - design.transmission_zeros_ratio.update_row(0, "1.3", "2") - assert info.value.args[0] == self.no_transmission_zero_update_msg - - def test_append_row(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - design.transmission_zeros_bandwidth.append_row(zero="", position="") - assert info.value.args[0] == self.input_value_blank_msg - with pytest.raises(RuntimeError) as info: - design.transmission_zeros_ratio.append_row("", "") - assert info.value.args[0] == self.input_value_blank_msg - design.transmission_zeros_bandwidth.append_row("1600M") - assert design.transmission_zeros_bandwidth.row(0) == ("1600M", "") - design.transmission_zeros_bandwidth.clear_table() - design.transmission_zeros_bandwidth.append_row(zero="1600M", position="2") - assert design.transmission_zeros_bandwidth.row(0) == ("1600M", "2") - design.transmission_zeros_bandwidth.clear_table() - design.transmission_zeros_ratio.append_row("1.6") - assert design.transmission_zeros_ratio.row(0) == ("1.6", "") - design.transmission_zeros_ratio.clear_table() - design.transmission_zeros_ratio.append_row(zero="1.6", position="2") - assert design.transmission_zeros_ratio.row(0) == ("1.6", "2") - - def test_insert_row(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - design.transmission_zeros_bandwidth.insert_row(6, zero="1.3G", position="2") - assert info.value.args[0] == "The given index 6 is larger than zeros order" - with pytest.raises(RuntimeError) as info: - design.transmission_zeros_ratio.insert_row(6, "1.3", "2") - assert info.value.args[0] == "The given index 6 is larger than zeros order" - with pytest.raises(RuntimeError) as info: - design.transmission_zeros_bandwidth.insert_row(0, zero="", position="2") - assert info.value.args[0] == self.input_value_blank_msg - with pytest.raises(RuntimeError) as info: - design.transmission_zeros_ratio.insert_row(0, "", "") - assert info.value.args[0] == self.input_value_blank_msg - design.transmission_zeros_bandwidth.insert_row(0, "1600M") - assert design.transmission_zeros_bandwidth.row(0) == ("1600M", "") - design.transmission_zeros_bandwidth.insert_row(0, zero="1600M", position="2") - assert design.transmission_zeros_bandwidth.row(0) == ("1600M", "2") - design.transmission_zeros_bandwidth.clear_table() - design.transmission_zeros_ratio.insert_row(0, "1.6") - assert design.transmission_zeros_ratio.row(0) == ("1.6", "") - design.transmission_zeros_ratio.insert_row(0, zero="1.6", position="2") - assert design.transmission_zeros_ratio.row(0) == ("1.6", "2") - - def test_remove_row(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - design.transmission_zeros_bandwidth.remove_row(2) - assert info.value.args[0] == "The given index 2 is larger than zeros order" - design.transmission_zeros_bandwidth.append_row(zero="1600M", position="2") - design.transmission_zeros_bandwidth.remove_row(0) - with pytest.raises(RuntimeError) as info: - design.transmission_zeros_bandwidth.row(0) - assert info.value.args[0] == self.no_transmission_zero_msg - - def test_clear_table(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.transmission_zeros_bandwidth.insert_row(0, zero="1600M", position="2") - assert design.transmission_zeros_bandwidth.row(0) == ("1600M", "2") - design.transmission_zeros_bandwidth.clear_table() - with pytest.raises(RuntimeError) as info: - design.transmission_zeros_bandwidth.row(0) - assert info.value.args[0] == self.no_transmission_zero_msg - design.transmission_zeros_ratio.insert_row(0, zero="1.6", position="2") - assert design.transmission_zeros_ratio.row(0) == ("1.6", "2") - design.transmission_zeros_ratio.clear_table() - with pytest.raises(RuntimeError) as info: - design.transmission_zeros_ratio.row(0) - assert info.value.args[0] == self.no_transmission_zero_msg - - def test_restore_default_positions(self): - design = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - design.transmission_zeros_bandwidth.insert_row(0, zero="1600M", position="2") - design.transmission_zeros_bandwidth.restore_default_positions() - assert design.transmission_zeros_bandwidth.row(0) == ("1600M", "3") - design.transmission_zeros_ratio.insert_row(0, zero="1.6", position="2") - design.transmission_zeros_ratio.restore_default_positions() - assert design.transmission_zeros_ratio.row(0) == ("1.6", "3") diff --git a/tests/system/general/test_45_FilterSolutions/test_lumped_export/test_export_to_aedt.py b/tests/system/general/test_45_FilterSolutions/test_lumped_export/test_export_to_aedt.py deleted file mode 100644 index 348edcefe35..00000000000 --- a/tests/system/general/test_45_FilterSolutions/test_lumped_export/test_export_to_aedt.py +++ /dev/null @@ -1,630 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -import ansys.aedt.core -from ansys.aedt.core.filtersolutions_core.attributes import FilterImplementation -from ansys.aedt.core.filtersolutions_core.export_to_aedt import PartLibraries -from ansys.aedt.core.filtersolutions_core.export_to_aedt import SubstrateEr -from ansys.aedt.core.filtersolutions_core.export_to_aedt import SubstrateResistivity -from ansys.aedt.core.filtersolutions_core.export_to_aedt import SubstrateType -from ansys.aedt.core.generic.general_methods import is_linux -import pytest - -from tests.system.general.conftest import config - -from ..resources import read_resource_file -from ..resources import resource_path - -first_modelithics_inductor = "AVX -> IND_AVX_0201_101 Accu-L" -second_modelithics_inductor = "AVX -> IND_AVX_0402_101 AccuL" -third_modelithics_inductor = "Wurth -> IND_WTH_0603_003 WE-KI" -first_modelithics_capacitor = "Amotech -> CAP_AMH_0201_001 A60Z" -second_modelithics_capacitor = "Murata -> CAP_MUR_0805_004 GRM219" -first_modelithics_resistor = "AVX -> RES_AVX_0402_001 UBR0402" -second_modelithics_resistor = "Vishay -> RES_VIS_0603_001 D11" - - -@pytest.mark.skipif(is_linux, reason="FilterSolutions API is not supported on Linux.") -@pytest.mark.skipif(config["desktopVersion"] < "2025.2", reason="Skipped on versions earlier than 2025.2") -class TestClass: - def test_modelithics_inductor_list_count(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_capacitor_list_count - assert info.value.args[0] == "The part library is not set to Modelithics" - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - assert lumpdesign.export_to_aedt.modelithics_inductor_list_count == 116 - - def test_modelithics_inductor_list(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_inductor_list(0) - assert info.value.args[0] == "The part library is not set to Modelithics" - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_inductor_list(-1) - assert info.value.args[0] == "The Modelithics inductor at the given index is not available" - lumpdesign.export_to_aedt.modelithics_inductor_selection = first_modelithics_inductor - assert lumpdesign.export_to_aedt.modelithics_inductor_list(0) == first_modelithics_inductor - - def test_modelithics_inductor_selection(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_inductor_selection - assert info.value.args[0] == "The part library is not set to Modelithics" - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_inductor_selection - assert info.value.args[0] == "No Modelithics inductor is selected" - lumpdesign.export_to_aedt.modelithics_inductor_selection = first_modelithics_inductor - assert lumpdesign.export_to_aedt.modelithics_inductor_selection == first_modelithics_inductor - - def test_modelithics_inductor_family_list_count(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_inductor_family_list_count - assert info.value.args[0] == "The part library is not set to Modelithics" - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - assert lumpdesign.export_to_aedt.modelithics_inductor_family_list_count == 0 - lumpdesign.export_to_aedt.modelithics_inductor_add_family(second_modelithics_inductor) - assert lumpdesign.export_to_aedt.modelithics_inductor_family_list_count == 1 - lumpdesign.export_to_aedt.modelithics_inductor_add_family(third_modelithics_inductor) - assert lumpdesign.export_to_aedt.modelithics_inductor_family_list_count == 2 - - def test_modelithics_inductor_family_list(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_inductor_family_list(0) - assert info.value.args[0] == "The part library is not set to Modelithics" - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_inductor_family_list(0) - assert info.value.args[0] == "The Modelithics inductor family at the given index is not available" - lumpdesign.export_to_aedt.modelithics_inductor_add_family(second_modelithics_inductor) - lumpdesign.export_to_aedt.modelithics_inductor_add_family(third_modelithics_inductor) - assert lumpdesign.export_to_aedt.modelithics_inductor_family_list(0) == second_modelithics_inductor - assert lumpdesign.export_to_aedt.modelithics_inductor_family_list(1) == third_modelithics_inductor - - def test_modelithics_inductor_family_list_add_family(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_inductor_add_family(second_modelithics_inductor) - assert info.value.args[0] == "The part library is not set to Modelithics" - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_inductor_family_list(0) - assert info.value.args[0] == "The Modelithics inductor family at the given index is not available" - lumpdesign.export_to_aedt.modelithics_inductor_add_family(second_modelithics_inductor) - lumpdesign.export_to_aedt.modelithics_inductor_add_family(third_modelithics_inductor) - assert lumpdesign.export_to_aedt.modelithics_inductor_family_list(0) == second_modelithics_inductor - assert lumpdesign.export_to_aedt.modelithics_inductor_family_list(1) == third_modelithics_inductor - - def test_modelithics_inductor_family_list_remove_family(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_inductor_remove_family(second_modelithics_inductor) - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_inductor_family_list(0) - assert info.value.args[0] == "The Modelithics inductor family at the given index is not available" - lumpdesign.export_to_aedt.modelithics_inductor_add_family(second_modelithics_inductor) - lumpdesign.export_to_aedt.modelithics_inductor_add_family(third_modelithics_inductor) - assert lumpdesign.export_to_aedt.modelithics_inductor_family_list_count == 2 - lumpdesign.export_to_aedt.modelithics_inductor_remove_family(third_modelithics_inductor) - assert lumpdesign.export_to_aedt.modelithics_inductor_family_list_count == 1 - - def test_modelithics_capacitor_list_count(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_capacitor_list_count - assert info.value.args[0] == "The part library is not set to Modelithics" - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - assert lumpdesign.export_to_aedt.modelithics_capacitor_list_count == 143 - - def test_modelithics_capacitor_list(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_capacitor_list(0) - assert info.value.args[0] == "The part library is not set to Modelithics" - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_capacitor_list(-1) - assert info.value.args[0] == "The Modelithics capacitor at the given index is not available" - lumpdesign.export_to_aedt.modelithics_capacitor_selection = first_modelithics_capacitor - assert lumpdesign.export_to_aedt.modelithics_capacitor_list(0) == first_modelithics_capacitor - - def test_modelithics_capacitor_selection(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_capacitor_selection - assert info.value.args[0] == "The part library is not set to Modelithics" - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_capacitor_selection - assert info.value.args[0] == "No Modelithics capacitor is selected" - lumpdesign.export_to_aedt.modelithics_capacitor_selection = first_modelithics_capacitor - assert lumpdesign.export_to_aedt.modelithics_capacitor_selection == first_modelithics_capacitor - - def test_modelithics_capacitor_family_list_count(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_capacitor_family_list_count - assert info.value.args[0] == "The part library is not set to Modelithics" - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - assert lumpdesign.export_to_aedt.modelithics_capacitor_family_list_count == 0 - lumpdesign.export_to_aedt.modelithics_capacitor_add_family(first_modelithics_capacitor) - assert lumpdesign.export_to_aedt.modelithics_capacitor_family_list_count == 1 - lumpdesign.export_to_aedt.modelithics_capacitor_add_family(second_modelithics_capacitor) - assert lumpdesign.export_to_aedt.modelithics_capacitor_family_list_count == 2 - - def test_modelithics_capacitor_family_list(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_capacitor_family_list(0) - assert info.value.args[0] == "The part library is not set to Modelithics" - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_capacitor_family_list(0) - assert info.value.args[0] == "The Modelithics capacitor family at the given index is not available" - lumpdesign.export_to_aedt.modelithics_capacitor_add_family(first_modelithics_capacitor) - lumpdesign.export_to_aedt.modelithics_capacitor_add_family(second_modelithics_capacitor) - assert lumpdesign.export_to_aedt.modelithics_capacitor_family_list(0) == first_modelithics_capacitor - assert lumpdesign.export_to_aedt.modelithics_capacitor_family_list(1) == second_modelithics_capacitor - - def test_modelithics_capacitor_family_list_add_family(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_capacitor_add_family(first_modelithics_capacitor) - assert info.value.args[0] == "The part library is not set to Modelithics" - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_capacitor_family_list(0) - assert info.value.args[0] == "The Modelithics capacitor family at the given index is not available" - lumpdesign.export_to_aedt.modelithics_capacitor_add_family(first_modelithics_capacitor) - lumpdesign.export_to_aedt.modelithics_capacitor_add_family(second_modelithics_capacitor) - assert lumpdesign.export_to_aedt.modelithics_capacitor_family_list(0) == first_modelithics_capacitor - assert lumpdesign.export_to_aedt.modelithics_capacitor_family_list(1) == second_modelithics_capacitor - - def test_modelithics_capacitor_family_list_remove_family(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_capacitor_remove_family(second_modelithics_capacitor) - assert info.value.args[0] == "The part library is not set to Modelithics" - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_capacitor_family_list(0) - assert info.value.args[0] == "The Modelithics capacitor family at the given index is not available" - lumpdesign.export_to_aedt.modelithics_capacitor_add_family(first_modelithics_capacitor) - lumpdesign.export_to_aedt.modelithics_capacitor_add_family(second_modelithics_capacitor) - assert lumpdesign.export_to_aedt.modelithics_capacitor_family_list_count == 2 - lumpdesign.export_to_aedt.modelithics_capacitor_remove_family(second_modelithics_capacitor) - assert lumpdesign.export_to_aedt.modelithics_capacitor_family_list_count == 1 - - def test_modelithics_resistor_list_count(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_resistor_list_count - assert info.value.args[0] == "The part library is not set to Modelithics" - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - assert lumpdesign.export_to_aedt.modelithics_resistor_list_count == 39 - - def test_modelithics_resistor_list(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_resistor_list(0) - assert info.value.args[0] == "The part library is not set to Modelithics" - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_resistor_list(-1) - assert info.value.args[0] == "The Modelithics resistor at the given index is not available" - lumpdesign.export_to_aedt.modelithics_resistor_selection = first_modelithics_resistor - assert lumpdesign.export_to_aedt.modelithics_resistor_list(0) == first_modelithics_resistor - - def test_modelithics_resistor_selection(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_resistor_selection - assert info.value.args[0] == "The part library is not set to Modelithics" - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_resistor_selection - assert info.value.args[0] == "No Modelithics resistor is selected" - lumpdesign.export_to_aedt.modelithics_resistor_selection = first_modelithics_resistor - assert lumpdesign.export_to_aedt.modelithics_resistor_selection == first_modelithics_resistor - - def test_modelithics_resistor_family_list_count(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_resistor_family_list_count - assert info.value.args[0] == "The part library is not set to Modelithics" - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - assert lumpdesign.export_to_aedt.modelithics_resistor_family_list_count == 0 - lumpdesign.export_to_aedt.modelithics_resistor_add_family(first_modelithics_resistor) - assert lumpdesign.export_to_aedt.modelithics_resistor_family_list_count == 1 - lumpdesign.export_to_aedt.modelithics_resistor_add_family(second_modelithics_resistor) - assert lumpdesign.export_to_aedt.modelithics_resistor_family_list_count == 2 - - def test_modelithics_resistor_family_list(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_resistor_family_list(0) - assert info.value.args[0] == "The part library is not set to Modelithics" - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_resistor_family_list(0) - assert info.value.args[0] == "The Modelithics resistor family at the given index is not available" - lumpdesign.export_to_aedt.modelithics_resistor_add_family(first_modelithics_resistor) - lumpdesign.export_to_aedt.modelithics_resistor_add_family(second_modelithics_resistor) - assert lumpdesign.export_to_aedt.modelithics_resistor_family_list(0) == first_modelithics_resistor - assert lumpdesign.export_to_aedt.modelithics_resistor_family_list(1) == second_modelithics_resistor - - def test_modelithics_resistor_family_list_add_family(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_resistor_add_family(first_modelithics_resistor) - assert info.value.args[0] == "The part library is not set to Modelithics" - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_resistor_family_list(0) - assert info.value.args[0] == "The Modelithics resistor family at the given index is not available" - lumpdesign.export_to_aedt.modelithics_resistor_add_family(first_modelithics_resistor) - lumpdesign.export_to_aedt.modelithics_resistor_add_family(second_modelithics_resistor) - assert lumpdesign.export_to_aedt.modelithics_resistor_family_list(0) == first_modelithics_resistor - assert lumpdesign.export_to_aedt.modelithics_resistor_family_list(1) == second_modelithics_resistor - - def test_modelithics_resistor_family_list_remove_family(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_resistor_remove_family(second_modelithics_resistor) - assert info.value.args[0] == "The part library is not set to Modelithics" - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - with pytest.raises(RuntimeError) as info: - lumpdesign.export_to_aedt.modelithics_resistor_family_list(0) - assert info.value.args[0] == "The Modelithics resistor family at the given index is not available" - lumpdesign.export_to_aedt.modelithics_resistor_add_family(first_modelithics_resistor) - lumpdesign.export_to_aedt.modelithics_resistor_add_family(second_modelithics_resistor) - assert lumpdesign.export_to_aedt.modelithics_resistor_family_list_count == 2 - lumpdesign.export_to_aedt.modelithics_resistor_remove_family(second_modelithics_resistor) - assert lumpdesign.export_to_aedt.modelithics_resistor_family_list_count == 1 - - def test_schematic_name(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.export_to_aedt.schematic_name = "my_schematic" - assert lumpdesign.export_to_aedt.schematic_name == "my_schematic" - - def test_simulate_after_export_enabled(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.simulate_after_export_enabled == False - lumpdesign.export_to_aedt.simulate_after_export_enabled = True - assert lumpdesign.export_to_aedt.simulate_after_export_enabled == True - - def test_include_group_delay_enabled(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.include_group_delay_enabled == False - lumpdesign.export_to_aedt.include_group_delay_enabled = True - assert lumpdesign.export_to_aedt.include_group_delay_enabled == True - - def test_include_gt_gain_enabled(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.include_gt_gain_enabled == False - lumpdesign.export_to_aedt.include_gt_gain_enabled = True - assert lumpdesign.export_to_aedt.include_gt_gain_enabled == True - - def test_include_vgsl_enabled(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.include_vgsl_enabled == False - lumpdesign.export_to_aedt.include_vgsl_enabled = True - assert lumpdesign.export_to_aedt.include_vgsl_enabled == True - - def test_include_vgin_enabled(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.include_vgin_enabled == False - lumpdesign.export_to_aedt.include_vgin_enabled = True - assert lumpdesign.export_to_aedt.include_vgin_enabled == True - - def test_include_input_return_loss_s11_enabled(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.include_input_return_loss_s11_enabled == True - lumpdesign.export_to_aedt.include_input_return_loss_s11_enabled = False - assert lumpdesign.export_to_aedt.include_input_return_loss_s11_enabled == False - - def test_include_forward_transfer_s21_enabled(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.include_forward_transfer_s21_enabled == True - lumpdesign.export_to_aedt.include_forward_transfer_s21_enabled = False - assert lumpdesign.export_to_aedt.include_forward_transfer_s21_enabled == False - - def test_include_reverse_transfer_s12_enabled(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.include_reverse_transfer_s12_enabled == False - lumpdesign.export_to_aedt.include_reverse_transfer_s12_enabled = True - assert lumpdesign.export_to_aedt.include_reverse_transfer_s12_enabled == True - - def test_include_output_return_loss_s22_enabled(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.include_output_return_loss_s22_enabled == False - lumpdesign.export_to_aedt.include_output_return_loss_s22_enabled = True - assert lumpdesign.export_to_aedt.include_output_return_loss_s22_enabled == True - - def test_db_format_enabled(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.db_format_enabled == True - lumpdesign.export_to_aedt.db_format_enabled = False - assert lumpdesign.export_to_aedt.db_format_enabled == False - - def test_rectangular_plot_enabled(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.rectangular_plot_enabled == True - lumpdesign.export_to_aedt.rectangular_plot_enabled = False - assert lumpdesign.export_to_aedt.rectangular_plot_enabled == False - - def test_smith_plot_enabled(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.smith_plot_enabled == False - lumpdesign.export_to_aedt.smith_plot_enabled = True - assert lumpdesign.export_to_aedt.smith_plot_enabled == True - - def test_polar_plot_enabled(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.polar_plot_enabled == False - lumpdesign.export_to_aedt.polar_plot_enabled = True - assert lumpdesign.export_to_aedt.polar_plot_enabled == True - - def test_table_data_enabled(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.table_data_enabled == False - lumpdesign.export_to_aedt.table_data_enabled = True - assert lumpdesign.export_to_aedt.table_data_enabled == True - - def test_optimitrics_enabled(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.optimitrics_enabled == True - lumpdesign.export_to_aedt.optimitrics_enabled = False - assert lumpdesign.export_to_aedt.optimitrics_enabled == False - - def test_optimize_after_export_enabled(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.optimize_after_export_enabled == False - lumpdesign.export_to_aedt.optimize_after_export_enabled = True - assert lumpdesign.export_to_aedt.optimize_after_export_enabled == True - - def test_load_library_parts_config(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.export_to_aedt.load_library_parts_config(resource_path("library_parts.cfg")) - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - assert lumpdesign.export_to_aedt.substrate_er == SubstrateEr.ALUMINA - assert lumpdesign.export_to_aedt.substrate_resistivity == SubstrateResistivity.GOLD - assert lumpdesign.export_to_aedt.substrate_conductor_thickness == "2.54 um" - assert lumpdesign.export_to_aedt.substrate_dielectric_height == "1.27 mm" - assert lumpdesign.export_to_aedt.substrate_loss_tangent == SubstrateEr.ALUMINA - - def test_save_library_parts_config(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - lumpdesign.export_to_aedt.substrate_er = "2.25" - lumpdesign.export_to_aedt.substrate_resistivity = "4.2E+07 " - lumpdesign.export_to_aedt.substrate_conductor_thickness = "350 nm" - lumpdesign.export_to_aedt.substrate_dielectric_height = "3 mm" - lumpdesign.export_to_aedt.substrate_loss_tangent = "0.065 " - lumpdesign.export_to_aedt.save_library_parts_config(resource_path("library_parts_test.cfg")) - lumpdesign.export_to_aedt.load_library_parts_config(resource_path("library_parts_test.cfg")) - assert lumpdesign.export_to_aedt.part_libraries == PartLibraries.MODELITHICS - assert lumpdesign.export_to_aedt.substrate_er == "2.25" - assert lumpdesign.export_to_aedt.substrate_resistivity == "4.2E+07 " - assert lumpdesign.export_to_aedt.substrate_conductor_thickness == "350 nm" - assert lumpdesign.export_to_aedt.substrate_dielectric_height == "3 mm" - assert lumpdesign.export_to_aedt.substrate_loss_tangent == "0.065 " - - def test_import_tuned_variables(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.export_to_aedt.simulate_after_export_enabled = True - lumpdesign.export_to_aedt.optimize_after_export_enabled = True - lumpdesign.export_to_aedt.export_design() - assert lumpdesign.export_to_aedt.import_tuned_variables().splitlines() == read_resource_file( - "imported_netlist.ckt" - ) - - def test_part_libraries(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.part_libraries == PartLibraries.LUMPED - assert len(PartLibraries) == 3 - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - assert lumpdesign.export_to_aedt.part_libraries == PartLibraries.MODELITHICS - - def test_interconnect_length_to_width_ratio(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.interconnect_length_to_width_ratio == "2" - lumpdesign.export_to_aedt.interconnect_length_to_width_ratio = "3" - assert lumpdesign.export_to_aedt.interconnect_length_to_width_ratio == "3" - - def test_interconnect_minimum_length_to_width_ratio(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.interconnect_minimum_length_to_width_ratio == "0.5" - lumpdesign.export_to_aedt.interconnect_minimum_length_to_width_ratio = "0.6" - assert lumpdesign.export_to_aedt.interconnect_minimum_length_to_width_ratio == "0.6" - - def test_interconnect_maximum_length_to_width_ratio(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.interconnect_maximum_length_to_width_ratio == "2" - lumpdesign.export_to_aedt.interconnect_maximum_length_to_width_ratio = "3" - assert lumpdesign.export_to_aedt.interconnect_maximum_length_to_width_ratio == "3" - - def test_interconnect_line_to_termination_width_ratio(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.interconnect_line_to_termination_width_ratio == "1" - lumpdesign.export_to_aedt.interconnect_line_to_termination_width_ratio = "2" - assert lumpdesign.export_to_aedt.interconnect_line_to_termination_width_ratio == "2" - - def test_interconnect_minimum_line_to_termination_width_ratio(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.interconnect_minimum_line_to_termination_width_ratio == "0.5" - lumpdesign.export_to_aedt.interconnect_minimum_line_to_termination_width_ratio = "0.6" - assert lumpdesign.export_to_aedt.interconnect_minimum_line_to_termination_width_ratio == "0.6" - - def test_interconnect_maximum_line_to_termination_width_ratio(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.interconnect_maximum_line_to_termination_width_ratio == "2" - lumpdesign.export_to_aedt.interconnect_maximum_line_to_termination_width_ratio = "3" - assert lumpdesign.export_to_aedt.interconnect_maximum_line_to_termination_width_ratio == "3" - - def test_interconnect_length_value(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.interconnect_length_value == "2.54 mm" - lumpdesign.export_to_aedt.interconnect_length_value = "3 mm" - assert lumpdesign.export_to_aedt.interconnect_length_value == "3 mm" - - def test_interconnect_minimum_length_value(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.interconnect_minimum_length_value == "1.27 mm" - lumpdesign.export_to_aedt.interconnect_minimum_length_value = "0.6 mm" - assert lumpdesign.export_to_aedt.interconnect_minimum_length_value == "0.6 mm" - - def test_interconnect_maximum_length_value(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.interconnect_maximum_length_value == "5.08 mm" - lumpdesign.export_to_aedt.interconnect_maximum_length_value = "6 mm" - assert lumpdesign.export_to_aedt.interconnect_maximum_length_value == "6 mm" - - def test_interconnect_line_width_value(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.interconnect_line_width_value == "1.27 mm" - lumpdesign.export_to_aedt.interconnect_line_width_value = "2 mm" - assert lumpdesign.export_to_aedt.interconnect_line_width_value == "2 mm" - - def test_interconnect_minimum_width_value(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.interconnect_minimum_width_value == "635 um" - lumpdesign.export_to_aedt.interconnect_minimum_width_value = "725 um" - assert lumpdesign.export_to_aedt.interconnect_minimum_width_value == "725 um" - - def test_interconnect_maximum_width_value(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.interconnect_maximum_width_value == "2.54 mm" - lumpdesign.export_to_aedt.interconnect_maximum_width_value = "3 mm" - assert lumpdesign.export_to_aedt.interconnect_maximum_width_value == "3 mm" - - def test_interconnect_inductor_tolerance_value(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - assert lumpdesign.export_to_aedt.interconnect_inductor_tolerance_value == "1" - lumpdesign.export_to_aedt.interconnect_inductor_tolerance_value = "10" - assert lumpdesign.export_to_aedt.interconnect_inductor_tolerance_value == "10" - - def test_interconnect_capacitor_tolerance_value(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.export_to_aedt.part_libraries = PartLibraries.MODELITHICS - assert lumpdesign.export_to_aedt.interconnect_capacitor_tolerance_value == "1" - lumpdesign.export_to_aedt.interconnect_capacitor_tolerance_value = "10" - assert lumpdesign.export_to_aedt.interconnect_capacitor_tolerance_value == "10" - - def test_interconnect_geometry_optimization_enabled(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.interconnect_geometry_optimization_enabled == True - lumpdesign.export_to_aedt.interconnect_geometry_optimization_enabled = False - assert lumpdesign.export_to_aedt.interconnect_geometry_optimization_enabled == False - - def test_substrate_type(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.substrate_type == SubstrateType.MICROSTRIP - assert len(SubstrateType) == 5 - for substrate in SubstrateType: - lumpdesign.export_to_aedt.substrate_type = substrate - assert lumpdesign.export_to_aedt.substrate_type == substrate - - def test_substrate_er(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.substrate_er == SubstrateEr.ALUMINA - assert len(SubstrateEr) == 17 - for er in SubstrateEr: - lumpdesign.export_to_aedt.substrate_er = er - assert lumpdesign.export_to_aedt.substrate_er == er - lumpdesign.export_to_aedt.substrate_er = "3.2" - assert lumpdesign.export_to_aedt.substrate_er == "3.2" - - def test_substrate_resistivity(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.substrate_resistivity == SubstrateResistivity.GOLD - assert len(SubstrateResistivity) == 11 - for resistivity in SubstrateResistivity: - lumpdesign.export_to_aedt.substrate_resistivity = resistivity - assert lumpdesign.export_to_aedt.substrate_resistivity == resistivity - lumpdesign.export_to_aedt.substrate_resistivity = "0.02" - assert lumpdesign.export_to_aedt.substrate_resistivity == "0.02" - - def test_substrate_loss_tangent(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.substrate_loss_tangent == SubstrateEr.ALUMINA - assert len(SubstrateEr) == 17 - for loss in SubstrateEr: - lumpdesign.export_to_aedt.substrate_loss_tangent = loss - assert lumpdesign.export_to_aedt.substrate_loss_tangent == loss - lumpdesign.export_to_aedt.substrate_loss_tangent = "0.0002" - assert lumpdesign.export_to_aedt.substrate_loss_tangent == "0.0002" - - def test_substrate_conductor_thickness(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.substrate_conductor_thickness == "2.54 um" - lumpdesign.export_to_aedt.substrate_conductor_thickness = "1.25 um" - assert lumpdesign.export_to_aedt.substrate_conductor_thickness == "1.25 um" - - def test_substrate_dielectric_height(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.substrate_dielectric_height == "1.27 mm" - lumpdesign.export_to_aedt.substrate_dielectric_height = "1.22 mm" - assert lumpdesign.export_to_aedt.substrate_dielectric_height == "1.22 mm" - - def test_substrate_unbalanced_lower_dielectric_height(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.export_to_aedt.substrate_type = SubstrateType.STRIPLINE - lumpdesign.export_to_aedt.substrate_unbalanced_stripline_enabled = True - assert lumpdesign.export_to_aedt.substrate_unbalanced_lower_dielectric_height == "6.35 mm" - lumpdesign.export_to_aedt.substrate_unbalanced_lower_dielectric_height = "5.2 mm" - assert lumpdesign.export_to_aedt.substrate_unbalanced_lower_dielectric_height == "5.2 mm" - - def test_substrate_suspend_dielectric_height(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.export_to_aedt.substrate_type = SubstrateType.SUSPEND - assert lumpdesign.export_to_aedt.substrate_suspend_dielectric_height == "1.27 mm" - lumpdesign.export_to_aedt.substrate_suspend_dielectric_height = "3.2 mm" - assert lumpdesign.export_to_aedt.substrate_suspend_dielectric_height == "3.2 mm" - - def test_substrate_cover_height(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.export_to_aedt.substrate_cover_height_enabled = True - assert lumpdesign.export_to_aedt.substrate_cover_height == "6.35 mm" - lumpdesign.export_to_aedt.substrate_cover_height = "2.5 mm" - assert lumpdesign.export_to_aedt.substrate_cover_height == "2.5 mm" - - def test_substrate_unbalanced_stripline_enabled(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.export_to_aedt.substrate_type = SubstrateType.STRIPLINE - assert lumpdesign.export_to_aedt.substrate_unbalanced_stripline_enabled == False - lumpdesign.export_to_aedt.substrate_unbalanced_stripline_enabled = True - assert lumpdesign.export_to_aedt.substrate_unbalanced_stripline_enabled == True - - def test_substrate_cover_height_enabled(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.export_to_aedt.substrate_cover_height_enabled == False - lumpdesign.export_to_aedt.substrate_cover_height_enabled = True - assert lumpdesign.export_to_aedt.substrate_cover_height_enabled == True diff --git a/tests/system/general/test_45_FilterSolutions/test_lumped_export/test_optimization_goals_table.py b/tests/system/general/test_45_FilterSolutions/test_lumped_export/test_optimization_goals_table.py deleted file mode 100644 index 4c3b5ceb102..00000000000 --- a/tests/system/general/test_45_FilterSolutions/test_lumped_export/test_optimization_goals_table.py +++ /dev/null @@ -1,149 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -import ansys.aedt.core -from ansys.aedt.core.filtersolutions_core.attributes import FilterImplementation -from ansys.aedt.core.filtersolutions_core.optimization_goals_table import OptimizationGoalParameter -from ansys.aedt.core.generic.general_methods import is_linux -import pytest - -from tests.system.general.conftest import config - - -@pytest.mark.skipif(is_linux, reason="FilterSolutions API is not supported on Linux.") -@pytest.mark.skipif(config["desktopVersion"] < "2025.1", reason="Skipped on versions earlier than 2025.1") -class TestClass: - - def test_row_count(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.export_to_aedt._open_aedt_export() - lumpdesign.optimization_goals_table.restore_design_goals() - assert lumpdesign.optimization_goals_table.row_count == 2 - - def test_row(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.export_to_aedt._open_aedt_export() - lumpdesign.optimization_goals_table.restore_design_goals() - assert lumpdesign.optimization_goals_table.row(0) == [ - "200 MHz", - "1 GHz", - "-3.0103", - "<=", - "dB(S(Port1,Port1))", - "1", - "Y", - ] - assert lumpdesign.optimization_goals_table.row(1) == [ - "1.5849 GHz", - "1.9019 GHz", - "-23.01", - "<=", - "dB(S(Port2,Port1))", - "0.5", - "Y", - ] - assert ( - lumpdesign.optimization_goals_table.row(0)[OptimizationGoalParameter.PARAMETER_NAME.value] - == "dB(S(Port1,Port1))" - ) - assert lumpdesign.optimization_goals_table.row(1)[OptimizationGoalParameter.WEIGHT.value] == "0.5" - - def test_update_row(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.export_to_aedt._open_aedt_export() - lumpdesign.optimization_goals_table.restore_design_goals() - lumpdesign.optimization_goals_table.update_row( - 0, lower_frequency="100 MHz", upper_frequency="2 GHz", condition=">", weight="0.7" - ) - assert lumpdesign.optimization_goals_table.row(0) == [ - "100 MHz", - "2 GHz", - "-3.0103", - ">", - "dB(S(Port1,Port1))", - "0.7", - "Y", - ] - - def test_append_row(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.export_to_aedt._open_aedt_export() - lumpdesign.optimization_goals_table.restore_design_goals() - lumpdesign.optimization_goals_table.append_row("100 MHz", "2 GHz", "-3", ">", "dB(S(Port2,Port2))", "0.3", "Y") - assert lumpdesign.optimization_goals_table.row(2) == [ - "100 MHz", - "2 GHz", - "-3", - ">", - "dB(S(Port2,Port2))", - "0.3", - "Y", - ] - - def test_insert_row(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.export_to_aedt._open_aedt_export() - lumpdesign.optimization_goals_table.restore_design_goals() - lumpdesign.optimization_goals_table.insert_row( - 1, "100 MHz", "2 GHz", "-3", ">", "dB(S(Port2,Port2))", "0.3", "Y" - ) - assert lumpdesign.optimization_goals_table.row(1) == [ - "100 MHz", - "2 GHz", - "-3", - ">", - "dB(S(Port2,Port2))", - "0.3", - "Y", - ] - - def test_remove_row(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.export_to_aedt._open_aedt_export() - lumpdesign.optimization_goals_table.restore_design_goals() - lumpdesign.optimization_goals_table.remove_row(1) - assert lumpdesign.optimization_goals_table.row_count == 1 - assert lumpdesign.optimization_goals_table.row(0) == [ - "200 MHz", - "1 GHz", - "-3.0103", - "<=", - "dB(S(Port1,Port1))", - "1", - "Y", - ] - - def test_adjust_goal_frequency(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.export_to_aedt._open_aedt_export() - lumpdesign.optimization_goals_table.restore_design_goals() - lumpdesign.optimization_goals_table.adjust_goal_frequency("150 MHz") - assert lumpdesign.optimization_goals_table.row(0)[OptimizationGoalParameter.LOWER_FREQUENCY.value] == "350 MHz" - assert lumpdesign.optimization_goals_table.row(0)[OptimizationGoalParameter.UPPER_FREQUENCY.value] == "1.15 GHz" - assert ( - lumpdesign.optimization_goals_table.row(1)[OptimizationGoalParameter.LOWER_FREQUENCY.value] == "1.7349 GHz" - ) - assert ( - lumpdesign.optimization_goals_table.row(1)[OptimizationGoalParameter.UPPER_FREQUENCY.value] == "2.0519 GHz" - ) diff --git a/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_nodes_and_leads.py b/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_nodes_and_leads.py deleted file mode 100644 index 8ab0696de4c..00000000000 --- a/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_nodes_and_leads.py +++ /dev/null @@ -1,93 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -import ansys.aedt.core -from ansys.aedt.core.filtersolutions_core.attributes import FilterImplementation -from ansys.aedt.core.generic.general_methods import is_linux -import pytest - -from tests.system.general.conftest import config - -from ..resources import read_resource_file - - -@pytest.mark.skipif(is_linux, reason="FilterSolutions API is not supported on Linux.") -@pytest.mark.skipif(config["desktopVersion"] < "2025.1", reason="Skipped on versions earlier than 2025.1") -class TestClass: - - def test_lumped_c_node_capacitor(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.leads_and_nodes.c_node_capacitor == "0" - lumpdesign.leads_and_nodes.c_node_capacitor = "1n" - assert lumpdesign.leads_and_nodes.c_node_capacitor == "1n" - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("c_node_capacitor.ckt") - - def test_lumped_c_lead_inductor(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.leads_and_nodes.c_lead_inductor == "0" - lumpdesign.leads_and_nodes.c_lead_inductor = "1n" - assert lumpdesign.leads_and_nodes.c_lead_inductor == "1n" - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("c_lead_inductor.ckt") - - def test_lumped_l_node_capacitor(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.leads_and_nodes.l_node_capacitor == "0" - lumpdesign.leads_and_nodes.l_node_capacitor = "1n" - assert lumpdesign.leads_and_nodes.l_node_capacitor == "1n" - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("l_node_capacitor.ckt") - - def test_lumped_l_lead_inductor(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.leads_and_nodes.l_lead_inductor == "0" - lumpdesign.leads_and_nodes.l_lead_inductor = "1n" - assert lumpdesign.leads_and_nodes.l_lead_inductor == "1n" - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("l_lead_inductor.ckt") - - def test_lumped_r_node_capacitor(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.leads_and_nodes.r_node_capacitor == "0" - lumpdesign.leads_and_nodes.r_node_capacitor = "1n" - assert lumpdesign.leads_and_nodes.r_node_capacitor == "1n" - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("r_node_capacitor.ckt") - - def test_lumped_r_lead_inductor(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.leads_and_nodes.r_lead_inductor == "0" - lumpdesign.leads_and_nodes.r_lead_inductor = "1n" - assert lumpdesign.leads_and_nodes.r_lead_inductor == "1n" - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("r_lead_inductor.ckt") - - def test_lumped_c_node_compensate(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.leads_and_nodes.c_node_compensate is False - lumpdesign.leads_and_nodes.c_node_compensate = True - assert lumpdesign.leads_and_nodes.c_node_compensate - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("c_node_compensate.ckt") - - def test_lumped_l_node_compensate(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.leads_and_nodes.l_node_compensate is False - lumpdesign.leads_and_nodes.l_node_compensate = True - assert lumpdesign.leads_and_nodes.l_node_compensate - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("l_node_compensate.ckt") diff --git a/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_parasitics.py b/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_parasitics.py deleted file mode 100644 index b785ce8e9b6..00000000000 --- a/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_parasitics.py +++ /dev/null @@ -1,93 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -import ansys.aedt.core -from ansys.aedt.core.filtersolutions_core.attributes import FilterImplementation -from ansys.aedt.core.generic.general_methods import is_linux -import pytest - -from tests.system.general.conftest import config - -from ..resources import read_resource_file - - -@pytest.mark.skipif(is_linux, reason="FilterSolutions API is not supported on Linux.") -@pytest.mark.skipif(config["desktopVersion"] < "2025.1", reason="Skipped on versions earlier than 2025.1") -class TestClass: - - def test_lumped_capacitor_q(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.parasitics.capacitor_q == "Inf" - lumpdesign.parasitics.capacitor_q = "100" - assert lumpdesign.parasitics.capacitor_q == "100" - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("capacitor_q.ckt") - - def test_lumped_capacitor_rs(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.parasitics.capacitor_rs == "0" - lumpdesign.parasitics.capacitor_rs = "1" - assert lumpdesign.parasitics.capacitor_rs == "1" - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("capacitor_rs.ckt") - - def test_lumped_capacitor_rp(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.parasitics.capacitor_rp == "Inf" - lumpdesign.parasitics.capacitor_rp = "1000" - assert lumpdesign.parasitics.capacitor_rp == "1000" - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("capacitor_rp.ckt") - - def test_lumped_capacitor_ls(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.parasitics.capacitor_ls == "0" - lumpdesign.parasitics.capacitor_ls = "1n" - assert lumpdesign.parasitics.capacitor_ls == "1n" - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("capacitor_ls.ckt") - - def test_lumped_inductor_q(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.parasitics.inductor_q == "Inf" - lumpdesign.parasitics.inductor_q = "100" - assert lumpdesign.parasitics.inductor_q == "100" - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("inductor_q.ckt") - - def test_lumped_inductor_rs(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.parasitics.inductor_rs == "0" - lumpdesign.parasitics.inductor_rs = "1" - assert lumpdesign.parasitics.inductor_rs == "1" - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("inductor_rs.ckt") - - def test_lumped_inductor_rp(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.parasitics.inductor_rp == "Inf" - lumpdesign.parasitics.inductor_rp = "1000" - assert lumpdesign.parasitics.inductor_rp == "1000" - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("inductor_rp.ckt") - - def test_lumped_inductor_cp(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.parasitics.inductor_cp == "0" - lumpdesign.parasitics.inductor_cp = "1n" - assert lumpdesign.parasitics.inductor_cp == "1n" - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("inductor_cp.ckt") diff --git a/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_termination_impedance_table.py b/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_termination_impedance_table.py deleted file mode 100644 index d512592f032..00000000000 --- a/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_termination_impedance_table.py +++ /dev/null @@ -1,165 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -import ansys.aedt.core -from ansys.aedt.core.filtersolutions_core.attributes import FilterImplementation -from ansys.aedt.core.filtersolutions_core.lumped_termination_impedance_table import ComplexReactanceType -from ansys.aedt.core.filtersolutions_core.lumped_termination_impedance_table import ComplexTerminationDefinition -from ansys.aedt.core.generic.general_methods import is_linux -import pytest - -from tests.system.general.conftest import config - - -@pytest.mark.skipif(is_linux, reason="FilterSolutions API is not supported on Linux.") -@pytest.mark.skipif(config["desktopVersion"] < "2025.1", reason="Skipped on versions earlier than 2025.1") -class TestClass: - def test_row_count(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.topology.complex_termination = True - assert lumpdesign.source_impedance_table.row_count == 3 - assert lumpdesign.load_impedance_table.row_count == 3 - - def test_row(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.topology.complex_termination = True - assert lumpdesign.source_impedance_table.row(0) == ("0.100G", "1.000", "0.000") - assert lumpdesign.load_impedance_table.row(0) == ("0.100G", "1.000", "0.000") - - def test_update_row(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.topology.complex_termination = True - with pytest.raises(RuntimeError) as info: - lumpdesign.source_impedance_table.update_row(0) - assert info.value.args[0] == "There is no input value to update" - with pytest.raises(RuntimeError) as info: - lumpdesign.load_impedance_table.update_row(0) - assert info.value.args[0] == "There is no input value to update" - lumpdesign.source_impedance_table.update_row(0, "2G", "22", "11") - assert lumpdesign.source_impedance_table.row(0) == ("2G", "22", "11") - lumpdesign.load_impedance_table.update_row(0, "2G", "22", "11") - assert lumpdesign.load_impedance_table.row(0) == ("2G", "22", "11") - lumpdesign.source_impedance_table.update_row(0, frequency="4G") - assert lumpdesign.source_impedance_table.row(0) == ("4G", "22", "11") - lumpdesign.load_impedance_table.update_row(0, frequency="4G") - assert lumpdesign.load_impedance_table.row(0) == ("4G", "22", "11") - lumpdesign.source_impedance_table.update_row(0, "2G", "50", "0") - assert lumpdesign.source_impedance_table.row(0) == ("2G", "50", "0") - lumpdesign.load_impedance_table.update_row(0, "2G", "50", "0") - assert lumpdesign.load_impedance_table.row(0) == ("2G", "50", "0") - - def test_append_row(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.topology.complex_termination = True - lumpdesign.source_impedance_table.append_row("100M", "10", "20") - assert lumpdesign.source_impedance_table.row_count == 4 - assert lumpdesign.source_impedance_table.row(3) == ("100M", "10", "20") - lumpdesign.topology.complex_termination = True - lumpdesign.load_impedance_table.append_row("100M", "10", "20") - assert lumpdesign.load_impedance_table.row_count == 4 - assert lumpdesign.load_impedance_table.row(3) == ("100M", "10", "20") - - def test_insert_row(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.topology.complex_termination = True - lumpdesign.source_impedance_table.insert_row(0, "2G", "50", "0") - assert lumpdesign.source_impedance_table.row(0) == ("2G", "50", "0") - lumpdesign.load_impedance_table.insert_row(0, "2G", "50", "0") - assert lumpdesign.load_impedance_table.row(0) == ("2G", "50", "0") - - def test_remove_row(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.topology.complex_termination = True - lumpdesign.source_impedance_table.remove_row(0) - assert lumpdesign.source_impedance_table.row(0) == ("1.000G", "1.000", "0.000") - with pytest.raises(RuntimeError) as info: - lumpdesign.source_impedance_table.row(2) - assert info.value.args[0] == "No value is set for this band" - lumpdesign.load_impedance_table.remove_row(0) - assert lumpdesign.load_impedance_table.row(0) == ("1.000G", "1.000", "0.000") - with pytest.raises(RuntimeError) as info: - lumpdesign.load_impedance_table.row(2) - assert info.value.args[0] == "No value is set for this band" - - def test_complex_definition(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.topology.complex_termination = True - assert len(ComplexTerminationDefinition) == 4 - assert lumpdesign.source_impedance_table.complex_definition == ComplexTerminationDefinition.CARTESIAN - for cdef in ComplexTerminationDefinition: - lumpdesign.source_impedance_table.complex_definition = cdef - assert lumpdesign.source_impedance_table.complex_definition == cdef - assert lumpdesign.load_impedance_table.complex_definition == ComplexTerminationDefinition.CARTESIAN - for cdef in ComplexTerminationDefinition: - lumpdesign.load_impedance_table.complex_definition = cdef - assert lumpdesign.load_impedance_table.complex_definition == cdef - - def test_reactance_type(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.topology.complex_termination = True - assert len(ComplexReactanceType) == 3 - assert lumpdesign.source_impedance_table.reactance_type == ComplexReactanceType.REAC - for creac in ComplexReactanceType: - lumpdesign.source_impedance_table.reactance_type = creac - assert lumpdesign.source_impedance_table.reactance_type == creac - assert lumpdesign.load_impedance_table.reactance_type == ComplexReactanceType.REAC - for creac in ComplexReactanceType: - lumpdesign.load_impedance_table.reactance_type = creac - assert lumpdesign.load_impedance_table.reactance_type == creac - - def test_compensation_enabled(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.topology.complex_termination = True - assert lumpdesign.source_impedance_table.compensation_enabled is False - lumpdesign.source_impedance_table.compensation_enabled = True - assert lumpdesign.source_impedance_table.compensation_enabled - assert lumpdesign.load_impedance_table.compensation_enabled is False - lumpdesign.load_impedance_table.compensation_enabled = True - assert lumpdesign.load_impedance_table.compensation_enabled - - def test_compensation_order(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.topology.complex_termination = True - lumpdesign.source_impedance_table.compensation_enabled = True - assert lumpdesign.source_impedance_table.compensation_order == 2 - with pytest.raises(RuntimeError) as info: - lumpdesign.source_impedance_table.compensation_order = 0 - assert info.value.args[0] == "The minimum impedance compensation order is 1" - for i in range(1, 22): - lumpdesign.source_impedance_table.compensation_order = i - assert lumpdesign.source_impedance_table.compensation_order == i - with pytest.raises(RuntimeError) as info: - lumpdesign.source_impedance_table.compensation_order = 22 - assert info.value.args[0] == "The maximum impedance compensation order is 21" - lumpdesign.load_impedance_table.compensation_enabled = True - assert lumpdesign.load_impedance_table.compensation_order == 2 - with pytest.raises(RuntimeError) as info: - lumpdesign.load_impedance_table.compensation_order = 0 - assert info.value.args[0] == "The minimum impedance compensation order is 1" - for i in range(1, 22): - lumpdesign.load_impedance_table.compensation_order = i - assert lumpdesign.load_impedance_table.compensation_order == i - with pytest.raises(RuntimeError) as info: - lumpdesign.load_impedance_table.compensation_order = 22 - assert info.value.args[0] == "The maximum impedance compensation order is 21" diff --git a/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_topology.py b/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_topology.py deleted file mode 100644 index f42d138912c..00000000000 --- a/tests/system/general/test_45_FilterSolutions/test_lumped_filter/test_lumped_topology.py +++ /dev/null @@ -1,313 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -import ansys.aedt.core -from ansys.aedt.core.filtersolutions_core.attributes import DiplexerType -from ansys.aedt.core.filtersolutions_core.attributes import FilterClass -from ansys.aedt.core.filtersolutions_core.attributes import FilterImplementation -from ansys.aedt.core.filtersolutions_core.attributes import FilterType -from ansys.aedt.core.generic.general_methods import is_linux -import pytest - -from tests.system.general.conftest import config - -from ..resources import read_resource_file - - -@pytest.mark.skipif(is_linux, reason="FilterSolutions API is not supported on Linux.") -@pytest.mark.skipif(config["desktopVersion"] < "2025.1", reason="Skipped on versions earlier than 2025.1") -class TestClass: - def test_lumped_generator_resistor_30(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.topology.generator_resistor == "50" - lumpdesign.topology.generator_resistor = "30" - assert lumpdesign.topology.generator_resistor == "30" - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("generator_resistor.ckt") - - def test_lumped_load_resistor_30(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.topology.load_resistor == "50" - lumpdesign.topology.load_resistor = "30" - assert lumpdesign.topology.load_resistor == "30" - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("laod_resistor.ckt") - - def test_lumped_current_source(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.topology.current_source is False - lumpdesign.topology.current_source = True - assert lumpdesign.topology.current_source - - def test_lumped_first_shunt(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.topology.first_shunt - lumpdesign.topology.first_shunt = True - assert lumpdesign.topology.first_shunt - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("first_shunt.ckt") - - def test_lumped_first_series(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.topology.first_shunt - lumpdesign.topology.first_shunt = False - assert lumpdesign.topology.first_shunt is False - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("first_series.ckt") - - def test_lumped_bridge_t(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.attributes.filter_type = FilterType.ELLIPTIC - assert lumpdesign.attributes.filter_type == FilterType.ELLIPTIC - assert lumpdesign.topology.bridge_t is False - lumpdesign.topology.bridge_t = True - assert lumpdesign.topology.bridge_t - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("bridge_t.ckt") - - def test_lumped_bridge_t_low(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.attributes.filter_class = FilterClass.DIPLEXER_1 - assert lumpdesign.attributes.filter_class == FilterClass.DIPLEXER_1 - lumpdesign.attributes.diplexer_type = DiplexerType.HI_LO - assert lumpdesign.attributes.diplexer_type == DiplexerType.HI_LO - lumpdesign.attributes.filter_type = FilterType.ELLIPTIC - assert lumpdesign.attributes.filter_type == FilterType.ELLIPTIC - assert lumpdesign.topology.bridge_t_low is False - lumpdesign.topology.bridge_t_low = True - assert lumpdesign.topology.bridge_t_low - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("bridge_t_low.ckt") - - def test_lumped_bridge_t_high(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.attributes.filter_class = FilterClass.DIPLEXER_1 - assert lumpdesign.attributes.filter_class == FilterClass.DIPLEXER_1 - lumpdesign.attributes.diplexer_type = DiplexerType.HI_LO - assert lumpdesign.attributes.diplexer_type == DiplexerType.HI_LO - lumpdesign.attributes.filter_type = FilterType.ELLIPTIC - assert lumpdesign.attributes.filter_type == FilterType.ELLIPTIC - assert lumpdesign.topology.bridge_t_high is False - lumpdesign.topology.bridge_t_high = True - assert lumpdesign.topology.bridge_t_high - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("bridge_t_high.ckt") - - def test_lumped_equal_inductors(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.attributes.filter_class = FilterClass.BAND_PASS - assert lumpdesign.attributes.filter_class == FilterClass.BAND_PASS - assert lumpdesign.topology.equal_inductors is False - lumpdesign.topology.equal_inductors = True - assert lumpdesign.topology.equal_inductors - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("equal_inductors.ckt") - - def test_lumped_equal_capacitors(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.attributes.filter_class = FilterClass.BAND_PASS - lumpdesign.attributes.filter_type = FilterType.ELLIPTIC - lumpdesign.topology.zig_zag = True - assert lumpdesign.attributes.filter_class == FilterClass.BAND_PASS - assert lumpdesign.attributes.filter_type == FilterType.ELLIPTIC - assert lumpdesign.topology.zig_zag - assert lumpdesign.topology.min_cap is False - assert lumpdesign.topology.equal_capacitors is False - lumpdesign.topology.min_cap = True - lumpdesign.topology.equal_capacitors = True - assert lumpdesign.topology.min_cap - assert lumpdesign.topology.equal_capacitors - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("equal_capacitors.ckt") - - def test_lumped_equal_legs(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.attributes.filter_class = FilterClass.BAND_PASS - assert lumpdesign.attributes.filter_class == FilterClass.BAND_PASS - assert lumpdesign.topology.equal_legs is False - lumpdesign.topology.equal_legs = True - assert lumpdesign.topology.equal_legs - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("equal_legs.ckt") - - def test_lumped_high_low_pass(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.attributes.filter_class = FilterClass.BAND_PASS - assert lumpdesign.attributes.filter_class == FilterClass.BAND_PASS - assert lumpdesign.topology.high_low_pass is False - lumpdesign.topology.high_low_pass = True - assert lumpdesign.topology.high_low_pass - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("high_low_pass.ckt") - - def test_lumped_high_low_pass_min_ind(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.attributes.filter_class = FilterClass.BAND_PASS - lumpdesign.attributes.filter_type = FilterType.ELLIPTIC - assert lumpdesign.attributes.filter_class == FilterClass.BAND_PASS - assert lumpdesign.attributes.filter_type == FilterType.ELLIPTIC - assert lumpdesign.topology.high_low_pass_min_ind is False - lumpdesign.topology.high_low_pass_min_ind = True - assert lumpdesign.topology.high_low_pass_min_ind - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("high_low_pass_min_ind.ckt") - - def test_lumped_zig_zag(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.attributes.filter_class = FilterClass.BAND_PASS - lumpdesign.attributes.filter_type = FilterType.ELLIPTIC - assert lumpdesign.attributes.filter_class == FilterClass.BAND_PASS - assert lumpdesign.attributes.filter_type == FilterType.ELLIPTIC - assert lumpdesign.topology.zig_zag is False - lumpdesign.topology.zig_zag = True - assert lumpdesign.topology.zig_zag - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("zig_zag.ckt") - - def test_lumped_min_ind(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.attributes.filter_class = FilterClass.BAND_PASS - lumpdesign.attributes.filter_type = FilterType.ELLIPTIC - lumpdesign.topology.zig_zag = True - assert lumpdesign.attributes.filter_class == FilterClass.BAND_PASS - assert lumpdesign.attributes.filter_type == FilterType.ELLIPTIC - assert lumpdesign.topology.zig_zag - assert lumpdesign.topology.min_ind - lumpdesign.topology.min_ind = True - assert lumpdesign.topology.min_ind - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("min_ind.ckt") - - def test_lumped_min_cap(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.attributes.filter_class = FilterClass.BAND_PASS - lumpdesign.attributes.filter_type = FilterType.ELLIPTIC - lumpdesign.topology.zig_zag = True - assert lumpdesign.attributes.filter_class == FilterClass.BAND_PASS - assert lumpdesign.attributes.filter_type == FilterType.ELLIPTIC - assert lumpdesign.topology.zig_zag - assert lumpdesign.topology.min_cap is False - lumpdesign.topology.min_cap = True - assert lumpdesign.topology.min_cap - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("min_cap.ckt") - - def test_lumped_set_source_res(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.attributes.filter_class = FilterClass.BAND_PASS - lumpdesign.attributes.filter_type = FilterType.ELLIPTIC - lumpdesign.topology.zig_zag = True - lumpdesign.topology.set_source_res = False - assert lumpdesign.topology.set_source_res is False - assert lumpdesign.attributes.filter_class == FilterClass.BAND_PASS - assert lumpdesign.attributes.filter_type == FilterType.ELLIPTIC - assert lumpdesign.topology.zig_zag - lumpdesign.topology.set_source_res = True - assert lumpdesign.topology.set_source_res - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("set_source_res.ckt") - - def test_lumped_trap_topology(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.attributes.filter_class = FilterClass.BAND_PASS - lumpdesign.attributes.filter_type = FilterType.ELLIPTIC - lumpdesign.topology.zig_zag = True - assert lumpdesign.attributes.filter_class == FilterClass.BAND_PASS - assert lumpdesign.attributes.filter_type == FilterType.ELLIPTIC - assert lumpdesign.topology.zig_zag - assert lumpdesign.topology.trap_topology is False - lumpdesign.topology.trap_topology = True - assert lumpdesign.topology.trap_topology - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("trap_topology.ckt") - - def test_lumped_node_cap_ground(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.attributes.filter_class = FilterClass.BAND_PASS - lumpdesign.attributes.filter_type = FilterType.ELLIPTIC - assert lumpdesign.attributes.filter_class == FilterClass.BAND_PASS - assert lumpdesign.attributes.filter_type == FilterType.ELLIPTIC - assert lumpdesign.topology.node_cap_ground is False - lumpdesign.topology.node_cap_ground = True - assert lumpdesign.topology.node_cap_ground - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("node_cap_ground.ckt") - - def test_lumped_match_impedance(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.attributes.filter_class = FilterClass.BAND_PASS - lumpdesign.topology.generator_resistor = "75" - assert lumpdesign.attributes.filter_class == FilterClass.BAND_PASS - assert lumpdesign.topology.generator_resistor == "75" - assert lumpdesign.topology.match_impedance is False - lumpdesign.topology.match_impedance = True - assert lumpdesign.topology.match_impedance - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("match_impedance.ckt") - - def test_lumped_complex_termination(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.topology.complex_termination is False - lumpdesign.topology.complex_termination = True - assert lumpdesign.topology.complex_termination - - def test_complex_element_tune_enabled(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.topology.complex_termination = True - assert lumpdesign.topology.complex_element_tune_enabled - lumpdesign.topology.complex_element_tune_enabled = False - assert lumpdesign.topology.complex_element_tune_enabled is False - - def test_lumped_circuit_export(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("netlist.ckt") - - def test_lumped_diplexer1_hi_lo(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.attributes.filter_class = FilterClass.DIPLEXER_1 - lumpdesign.attributes.diplexer_type = DiplexerType.HI_LO - assert lumpdesign.attributes.filter_class == FilterClass.DIPLEXER_1 - assert lumpdesign.attributes.diplexer_type == DiplexerType.HI_LO - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("diplexer1_hi_lo.ckt") - - def test_lumped_diplexer1_bp_1(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.attributes.filter_class = FilterClass.DIPLEXER_1 - lumpdesign.attributes.diplexer_type = DiplexerType.BP_1 - assert lumpdesign.attributes.filter_class == FilterClass.DIPLEXER_1 - assert lumpdesign.attributes.diplexer_type == DiplexerType.BP_1 - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("diplexer1_bp_1.ckt") - - def test_lumped_diplexer1_bp_2(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.attributes.filter_class = FilterClass.DIPLEXER_1 - lumpdesign.attributes.diplexer_type = DiplexerType.BP_2 - assert lumpdesign.attributes.filter_class == FilterClass.DIPLEXER_1 - assert lumpdesign.attributes.diplexer_type == DiplexerType.BP_2 - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("diplexer1_bp_2.ckt") - - def test_lumped_diplexer2_bp_bs(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.attributes.filter_class = FilterClass.DIPLEXER_2 - lumpdesign.attributes.diplexer_type = DiplexerType.BP_BS - assert lumpdesign.attributes.filter_class == FilterClass.DIPLEXER_2 - assert lumpdesign.attributes.diplexer_type == DiplexerType.BP_BS - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("diplexer2_bp_bs.ckt") - - def test_lumped_diplexer2_triplexer_1(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.attributes.filter_class = FilterClass.DIPLEXER_2 - lumpdesign.attributes.diplexer_type = DiplexerType.TRIPLEXER_1 - assert lumpdesign.attributes.filter_class == FilterClass.DIPLEXER_2 - assert lumpdesign.attributes.diplexer_type == DiplexerType.TRIPLEXER_1 - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("diplexer2_triplexer_1.ckt") - - def test_lumped_diplexer2_triplexer_2(self): - lumpdesign = ansys.aedt.core.FilterSolutions(implementation_type=FilterImplementation.LUMPED) - lumpdesign.attributes.filter_class = FilterClass.DIPLEXER_2 - lumpdesign.attributes.diplexer_type = DiplexerType.TRIPLEXER_2 - assert lumpdesign.attributes.filter_class == FilterClass.DIPLEXER_2 - assert lumpdesign.attributes.diplexer_type == DiplexerType.TRIPLEXER_2 - assert lumpdesign.topology.circuit_response().splitlines() == read_resource_file("diplexer2_triplexer_2.ckt") diff --git a/tests/system/general/test_49_RCS_data_plotter.py b/tests/system/general/test_49_RCS_data_plotter.py deleted file mode 100644 index 2dfc9a3deb4..00000000000 --- a/tests/system/general/test_49_RCS_data_plotter.py +++ /dev/null @@ -1,261 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -import os -import shutil - -from ansys.aedt.core.visualization.advanced.rcs_visualization import MonostaticRCSData -from ansys.aedt.core.visualization.advanced.rcs_visualization import MonostaticRCSPlotter -from ansys.aedt.core.visualization.plot.matplotlib import ReportPlotter -from ansys.tools.visualization_interface import Plotter -import pandas as pd -import pytest - -from tests import TESTS_GENERAL_PATH - -test_subfolder = "T49" - - -@pytest.fixture(scope="module", autouse=True) -def desktop(): - """Override the desktop fixture to DO NOT open the Desktop when running this test class""" - return - - -@pytest.fixture(scope="class") -def setup_test_data(request, local_scratch): - """Fixture to set up the test data directory and file before running the test class.""" - dir_original = os.path.join(TESTS_GENERAL_PATH, "example_models", test_subfolder) - data_dir = os.path.join(local_scratch.path, "rcs_files") - shutil.copytree(dir_original, data_dir) - request.cls.metadata_file = os.path.join(data_dir, "rcs_metadata.json") - request.cls.metadata_file_fake = os.path.join(data_dir, "rcs_metadata_fake.json") - yield - - -@pytest.mark.usefixtures("setup_test_data") -class TestClass: - def test_01_rcs_data(self): - with pytest.raises(Exception, match="JSON file does not exist."): - MonostaticRCSData(input_file="invented") - - with pytest.raises(Exception, match="Monostatic file invalid."): - MonostaticRCSData(input_file=self.metadata_file_fake) - - rcs_data = MonostaticRCSData(input_file=self.metadata_file) - assert isinstance(rcs_data.raw_data, pd.DataFrame) - - assert isinstance(rcs_data.metadata, dict) - - assert rcs_data.name == "HH" - assert rcs_data.solution == "Trihedral_RCS" - assert os.path.isfile(rcs_data.input_file) - assert rcs_data.frequency_units == "GHz" - assert len(rcs_data.frequencies) == 3 - - assert rcs_data.available_incident_wave_theta.size == 3 - assert rcs_data.incident_wave_theta == rcs_data.available_incident_wave_theta[0] - - rcs_data.incident_wave_theta = 89.0 - assert rcs_data.incident_wave_theta == rcs_data.available_incident_wave_theta[0] - - rcs_data.incident_wave_theta = rcs_data.available_incident_wave_theta[1] - assert rcs_data.incident_wave_theta == rcs_data.available_incident_wave_theta[1] - - rcs_data.incident_wave_theta = 80.0 - assert rcs_data.incident_wave_theta == rcs_data.available_incident_wave_theta[1] - - assert rcs_data.frequency == rcs_data.frequencies[0] - - rcs_data.frequency = f"{rcs_data.frequencies[1]}GHz" - assert rcs_data.frequency == rcs_data.frequencies[1] - - rcs_data.frequency = rcs_data.frequencies[2] - assert rcs_data.frequency == rcs_data.frequencies[2] - - rcs_data.frequency = 8.0 - assert rcs_data.frequency == rcs_data.frequencies[2] - - assert rcs_data.data_conversion_function == "dB20" - rcs_data.data_conversion_function = "abs" - assert rcs_data.data_conversion_function == "abs" - - assert rcs_data.window == "Flat" - - rcs_data.window = "Hamming" - assert rcs_data.window == "Hamming" - - rcs_data.window = "invented" - assert rcs_data.window == "Hamming" - - assert rcs_data.window_size == 1024 - rcs_data.window_size = 512 - assert rcs_data.window_size == 512 - - assert rcs_data.aspect_range == "Horizontal" - rcs_data.aspect_range = "Vertical" - assert rcs_data.aspect_range == "Vertical" - - assert rcs_data.upsample_range == 512 - rcs_data.upsample_range = 24 - assert rcs_data.upsample_range == 24 - - assert rcs_data.upsample_azimuth == 64 - rcs_data.upsample_azimuth = 32 - assert rcs_data.upsample_azimuth == 32 - - assert isinstance(rcs_data.rcs, float) - - assert isinstance(rcs_data.rcs_active_theta_phi, pd.DataFrame) - assert isinstance(rcs_data.rcs_active_frequency, pd.DataFrame) - assert isinstance(rcs_data.rcs_active_theta, pd.DataFrame) - assert isinstance(rcs_data.rcs_active_phi, pd.DataFrame) - - assert isinstance(rcs_data.range_profile, pd.DataFrame) - assert isinstance(rcs_data.waterfall, pd.DataFrame) - - assert isinstance(rcs_data.isar_2d, pd.DataFrame) - rcs_data.aspect_range = "Horizontal" - assert isinstance(rcs_data.isar_2d, pd.DataFrame) - - def test_02_rcs_plotter_properties(self): - rcs_data = MonostaticRCSData(input_file=self.metadata_file) - rcs_plotter = MonostaticRCSPlotter(rcs_data=rcs_data) - - assert rcs_plotter.rcs_data - - assert isinstance(rcs_plotter.model_info, dict) - assert rcs_plotter.model_units == "mm" - assert isinstance(rcs_plotter.all_scene_actors, dict) - assert len(rcs_plotter.extents) == 6 - assert rcs_plotter.center.size == 3 - assert isinstance(rcs_plotter.radius, float) - - def test_03_rcs_plotter_rcs(self): - rcs_data = MonostaticRCSData(input_file=self.metadata_file) - rcs_plotter = MonostaticRCSPlotter(rcs_data=rcs_data) - - rcs_plotter1 = rcs_plotter.plot_rcs( - show=False, primary_sweep="Freq", secondary_sweep="IWaveTheta", is_polar=True - ) - assert isinstance(rcs_plotter1, ReportPlotter) - - rcs_plotter2 = rcs_plotter.plot_rcs(show=False, primary_sweep="Freq", secondary_sweep="IWavePhi") - assert isinstance(rcs_plotter2, ReportPlotter) - - rcs_plotter3 = rcs_plotter.plot_rcs(show=False, primary_sweep="IWavePhi", secondary_sweep_value="all") - assert isinstance(rcs_plotter3, ReportPlotter) - - rcs_plotter4 = rcs_plotter.plot_rcs(show=False, primary_sweep="IWavePhi", secondary_sweep_value=None) - assert isinstance(rcs_plotter4, ReportPlotter) - - rcs_plotter5 = rcs_plotter.plot_rcs(show=False, primary_sweep="IWaveTheta", secondary_sweep_value="all") - assert isinstance(rcs_plotter5, ReportPlotter) - - rcs_plotter6 = rcs_plotter.plot_rcs(show=False, primary_sweep="IWaveTheta", secondary_sweep_value=None) - assert isinstance(rcs_plotter6, ReportPlotter) - - rcs_plotter7 = rcs_plotter.plot_rcs_3d(show=False) - assert isinstance(rcs_plotter7, ReportPlotter) - - def test_04_rcs_plotter_range_profile(self): - rcs_data = MonostaticRCSData(input_file=self.metadata_file) - rcs_plotter = MonostaticRCSPlotter(rcs_data=rcs_data) - - rcs_plotter = rcs_plotter.plot_range_profile(show=False) - assert isinstance(rcs_plotter, ReportPlotter) - - def test_05_rcs_plotter_waterfall(self): - rcs_data = MonostaticRCSData(input_file=self.metadata_file) - rcs_plotter = MonostaticRCSPlotter(rcs_data=rcs_data) - - rcs_plotter1 = rcs_plotter.plot_waterfall(show=False) - assert isinstance(rcs_plotter1, ReportPlotter) - - rcs_plotter2 = rcs_plotter.plot_waterfall(show=False, is_polar=True) - assert isinstance(rcs_plotter2, ReportPlotter) - - def test_06_rcs_plotter_2d_isar(self): - rcs_data = MonostaticRCSData(input_file=self.metadata_file) - rcs_plotter = MonostaticRCSPlotter(rcs_data=rcs_data) - - rcs_plotter1 = rcs_plotter.plot_isar_2d(show=False) - assert isinstance(rcs_plotter1, ReportPlotter) - - def test_07_rcs_plotter_add_rcs(self): - rcs_data = MonostaticRCSData(input_file=self.metadata_file) - rcs_plotter = MonostaticRCSPlotter(rcs_data=rcs_data) - - rcs_plotter.add_rcs() - plot = rcs_plotter.plot_scene(show=False) - assert isinstance(plot, Plotter) - - assert not rcs_plotter.clear_scene(first_level="model") - assert rcs_plotter.clear_scene(first_level="results") - assert rcs_plotter.clear_scene() - - def test_08_rcs_plotter_add_profile_settings(self): - rcs_data = MonostaticRCSData(input_file=self.metadata_file) - rcs_plotter = MonostaticRCSPlotter(rcs_data=rcs_data) - - rcs_plotter.add_range_profile_settings() - plot = rcs_plotter.plot_scene(show=False) - assert isinstance(plot, Plotter) - assert rcs_plotter.clear_scene() - - def test_09_rcs_plotter_add_waterfall_settings(self): - rcs_data = MonostaticRCSData(input_file=self.metadata_file) - rcs_plotter = MonostaticRCSPlotter(rcs_data=rcs_data) - - rcs_plotter.add_waterfall_settings() - plot = rcs_plotter.plot_scene(show=False) - assert isinstance(plot, Plotter) - assert rcs_plotter.clear_scene() - - def test_10_rcs_plotter_add_isar_2d_settings(self): - rcs_data = MonostaticRCSData(input_file=self.metadata_file) - rcs_plotter = MonostaticRCSPlotter(rcs_data=rcs_data) - - rcs_plotter.add_isar_2d_settings() - plot = rcs_plotter.plot_scene(show=False) - assert isinstance(plot, Plotter) - assert rcs_plotter.clear_scene() - - def test_11_rcs_plotter_add_range_profile(self): - rcs_data = MonostaticRCSData(input_file=self.metadata_file) - rcs_plotter = MonostaticRCSPlotter(rcs_data=rcs_data) - - rcs_plotter.add_range_profile() - plot = rcs_plotter.plot_scene(show=False) - assert isinstance(plot, Plotter) - assert rcs_plotter.clear_scene() - - def test_12_rcs_plotter_add_waterfall(self): - rcs_data = MonostaticRCSData(input_file=self.metadata_file) - rcs_plotter = MonostaticRCSPlotter(rcs_data=rcs_data) - - rcs_plotter.add_waterfall() - plot = rcs_plotter.plot_scene(show=False) - assert isinstance(plot, Plotter) - assert rcs_plotter.clear_scene() From 69224b2f1113d809828490a2a235699a70ebbad6 Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Tue, 22 Apr 2025 10:46:36 -0500 Subject: [PATCH 26/86] Remove unused TestClass member --- tests/system/solvers/test_26_emit.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/system/solvers/test_26_emit.py b/tests/system/solvers/test_26_emit.py index 9190e44816b..5ac46eccf2a 100644 --- a/tests/system/solvers/test_26_emit.py +++ b/tests/system/solvers/test_26_emit.py @@ -80,7 +80,6 @@ class TestClass: def init(self, aedtapp, local_scratch): self.aedtapp = aedtapp self.local_scratch = local_scratch - self.nodes_tested = [] def test_01_objects(self): assert self.aedtapp.solution_type From d3aa75341619154f0880848d3352b31e480f3411 Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Tue, 22 Apr 2025 14:33:17 -0500 Subject: [PATCH 27/86] Fix duplicate method in EmitNode, change dynamic test to run all methods --- .../aedt/core/emit_core/nodes/EmitNode.py | 2 +- tests/system/solvers/test_26_emit.py | 93 ++++++++++++------- 2 files changed, 58 insertions(+), 37 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py index e2f6c9efee3..a651df06cc5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py @@ -222,7 +222,7 @@ def _rename(self, requested_name): new_name = self._oRevisionData.RenameEmitNode(self._result_id, self._node_id, requested_name) return new_name - def _duplicate(self): + def _duplicate(self, new_name): # TODO (maybe needs to be custom?) pass diff --git a/tests/system/solvers/test_26_emit.py b/tests/system/solvers/test_26_emit.py index 5ac46eccf2a..3bd87c37dcd 100644 --- a/tests/system/solvers/test_26_emit.py +++ b/tests/system/solvers/test_26_emit.py @@ -1342,6 +1342,40 @@ class Result(Enum): VALUE = 1 EXCEPTION = 2 NEEDS_PARAMETERS = 3 + + def get_value_for_parameter(arg_type, docstring): + value = None + + if arg_type in (int, float): + value = 0 + + # If there's a min or max in the docstring, use it. + if docstring: + if "between" in docstring: + min_val = float(docstring.split("between")[1].split("and")[0].strip()) + max_val = float(docstring.split("and")[1].split(".")[0].strip()) + value = min_val + elif "less than" in docstring: + max_val = float(docstring.split("less than")[1].split(".")[0].strip()) + value = max_val + elif "greater than" in docstring: + min_val = float(docstring.split("greater than")[1].split(".")[0].strip()) + value = min_val + elif arg_type == str: + value = "TestString" + elif arg_type == bool: + value = True + elif isinstance(arg_type, type) and issubclass(arg_type, Enum): + # Type is an Enum + first_enum_value = list(arg_type.__members__.values())[0] + value = first_enum_value + elif isinstance(arg_type, types.UnionType): + # Type is a Union + possible_arg_types = arg_type.__args__ + if int in possible_arg_types or float in possible_arg_types: + value = 0 + + return value def test_all_members(node, results, results_of_get_props): # Dynamically get list of properties and methods @@ -1359,6 +1393,10 @@ def test_all_members(node, results, results_of_get_props): results[key] = (Result.SKIPPED, "Skipping delete method") continue + if member.startswith("rename"): + results[key] = (Result.SKIPPED, "Skipping rename method") + continue + class_attr = getattr(node.__class__, member) if isinstance(class_attr, property): # Member is a property @@ -1368,38 +1406,9 @@ def test_all_members(node, results, results_of_get_props): if has_fget and has_fset: arg_type = class_attr.fset.__annotations__["value"] + docstring = class_attr.fset.__doc__ - value = None - - if arg_type in (int, float): - value = 0 - - # If there's a min or max in the docstring, use it. - docstring = class_attr.fset.__doc__ - if docstring: - if "between" in docstring: - min_val = float(docstring.split("between")[1].split("and")[0].strip()) - max_val = float(docstring.split("and")[1].split(".")[0].strip()) - value = min_val - elif "less than" in docstring: - max_val = float(docstring.split("less than")[1].split(".")[0].strip()) - value = max_val - elif "greater than" in docstring: - min_val = float(docstring.split("greater than")[1].split(".")[0].strip()) - value = min_val - elif arg_type == str: - value = "TestString" - elif arg_type == bool: - value = True - elif isinstance(arg_type, type) and issubclass(arg_type, Enum): - # Type is an Enum - first_enum_value = list(arg_type.__members__.values())[0] - value = first_enum_value - elif isinstance(arg_type, types.UnionType): - # Type is a Union - possible_arg_types = arg_type.__args__ - if int in possible_arg_types or float in possible_arg_types: - value = 0 + value = get_value_for_parameter(arg_type, docstring) # If value is None here, we failed to find a suitable value to call the setter with. # Just call the getter, and put that in the results. @@ -1423,13 +1432,27 @@ def test_all_members(node, results, results_of_get_props): if inspect.ismethod(attr) or inspect.isfunction(attr): # Member is a function signature = inspect.signature(attr) - if len(signature.parameters) == 0: - result = attr() + + values = [] + bad_param = None + for parameter in signature.parameters: + arg_type = type(parameter) + docstring = attr.__doc__ + + value = get_value_for_parameter(arg_type, docstring) + if value is not None: + values.append(value) + else: + bad_param = parameter + break + + if len(values) == len(signature.parameters): + result = attr(*values) results[key] = (Result.VALUE, result) else: results[key] = ( Result.NEEDS_PARAMETERS, - f"Function requires {len(signature.parameters)} arguments: {signature.parameters}", + f'Could not find valid value for parameter "{bad_param}".', ) else: results[key] = (Result.VALUE, attr) @@ -1478,8 +1501,6 @@ def test_nodes_from_top_level(nodes, nodes_tested, results, results_of_get_props results = self.aedtapp.results revision = self.aedtapp.results.analyze() - self.aedtapp.set_units("Frequency", "GHz") - domain = results.interaction_domain() revision.run(domain) From c0da9c100b8912858faf911f206207fd15be9ef3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 22 Apr 2025 19:35:01 +0000 Subject: [PATCH 28/86] CHORE: Auto fixes from pre-commit hooks --- tests/system/solvers/test_26_emit.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/system/solvers/test_26_emit.py b/tests/system/solvers/test_26_emit.py index 3bd87c37dcd..3f0afdf1247 100644 --- a/tests/system/solvers/test_26_emit.py +++ b/tests/system/solvers/test_26_emit.py @@ -1342,7 +1342,7 @@ class Result(Enum): VALUE = 1 EXCEPTION = 2 NEEDS_PARAMETERS = 3 - + def get_value_for_parameter(arg_type, docstring): value = None @@ -1374,7 +1374,7 @@ def get_value_for_parameter(arg_type, docstring): possible_arg_types = arg_type.__args__ if int in possible_arg_types or float in possible_arg_types: value = 0 - + return value def test_all_members(node, results, results_of_get_props): @@ -1445,14 +1445,14 @@ def test_all_members(node, results, results_of_get_props): else: bad_param = parameter break - + if len(values) == len(signature.parameters): result = attr(*values) results[key] = (Result.VALUE, result) else: results[key] = ( Result.NEEDS_PARAMETERS, - f'Could not find valid value for parameter "{bad_param}".', + f'Could not find valid value for parameter "{bad_param}".', ) else: results[key] = (Result.VALUE, attr) From 80138a37c03a99a18a57c752e338ab35f0e3b293 Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Tue, 22 Apr 2025 23:35:41 -0500 Subject: [PATCH 29/86] Support loading Kept results, return ReadOnly nodes for Kept results, ensure dynamic test tests both standard and ReadOnly node classes --- .../aedt/core/emit_core/results/results.py | 2 +- .../aedt/core/emit_core/results/revision.py | 8 +++++--- tests/system/solvers/test_26_emit.py | 19 +++++++++++++++---- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/results/results.py b/src/ansys/aedt/core/emit_core/results/results.py index c4d25b72684..d158ae4bda8 100644 --- a/src/ansys/aedt/core/emit_core/results/results.py +++ b/src/ansys/aedt/core/emit_core/results/results.py @@ -216,7 +216,7 @@ def get_revision(self, revision_name=None): self.current_revision._load_revision() else: # might be an old revision that was never loaded by pyaedt - aedt_result_list = self.design.GetResultList() + aedt_result_list = self.design.GetKeptResultNames() rev = [x for x in aedt_result_list if revision_name == x] if len(rev) > 0: # unload the current revision and load the specified revision diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index f37846405c3..afa82132b82 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -46,8 +46,8 @@ class Revision: emit_obj : ``Emit`` object that this revision is associated with. name : str, optional - Name of the revision to create. The default is ``None``, in which - case a timestamp is used. + Name of the revision to load . The default is ``None``, in which + case the Current revision is used. Raises ------ @@ -996,9 +996,11 @@ def _get_node(self, id: int) -> EmitNode: props = EmitNode.props_to_dict(props) type = props["Type"] + prefix = '' if self.results_index == 0 else 'ReadOnly' + node = None try: - type_class = getattr(generated, type) + type_class = getattr(generated, f'{prefix}{type}') node = type_class(self.emit_project.odesign, self.results_index, id) except AttributeError: node = EmitNode(self.emit_project.odesign, self.results_index, id) diff --git a/tests/system/solvers/test_26_emit.py b/tests/system/solvers/test_26_emit.py index 3bd87c37dcd..5608802cac4 100644 --- a/tests/system/solvers/test_26_emit.py +++ b/tests/system/solvers/test_26_emit.py @@ -44,6 +44,7 @@ ): from ansys.aedt.core import Emit from ansys.aedt.core import generate_unique_project_name + from ansys.aedt.core.emit_core.results.revision import Revision from ansys.aedt.core.emit_core.emit_constants import EmiCategoryFilter from ansys.aedt.core.emit_core.emit_constants import InterfererType from ansys.aedt.core.emit_core.emit_constants import ResultType @@ -1504,22 +1505,32 @@ def test_nodes_from_top_level(nodes, nodes_tested, results, results_of_get_props domain = results.interaction_domain() revision.run(domain) - results = {} + results_dict = {} results_of_get_props = {} nodes_tested = [] - test_nodes_from_top_level(revision.get_all_nodes(), nodes_tested, results, results_of_get_props) + test_nodes_from_top_level(revision.get_all_nodes(), nodes_tested, results_dict, results_of_get_props) + + kept_result_name = self.aedtapp.odesign.KeepResult() + # kept_result_directory = self.aedtapp.odesign.GetResultDirectory(kept_result_name) + # kept_revision = Revision(results, results.emit_project, kept_result_directory) + + kept_revision = results.get_revision(kept_result_name) + + readonly_results_dict = {} + readonly_results_of_get_props = {} + test_nodes_from_top_level(kept_revision.get_all_nodes(), nodes_tested, readonly_results_dict, readonly_results_of_get_props) # Categorize results from all node member calls results_by_type = {Result.SKIPPED: {}, Result.VALUE: {}, Result.EXCEPTION: {}, Result.NEEDS_PARAMETERS: {}} - for key, value in results.items(): + for key, value in results_dict.items(): results_by_type[value[0]][key] = value[1] # Verify we tested most of the generated nodes all_nodes = generated.__all__ nodes_untested = [ - node for node in all_nodes if (node not in nodes_tested) and (not node.startswith("ReadOnly")) + node for node in all_nodes if (node not in nodes_tested) ] assert len(nodes_tested) > len(nodes_untested) From a9f347dac1da992a24ebd2db5181647d2c6ae8f1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 23 Apr 2025 04:37:46 +0000 Subject: [PATCH 30/86] CHORE: Auto fixes from pre-commit hooks --- src/ansys/aedt/core/emit_core/results/revision.py | 4 ++-- tests/system/solvers/test_26_emit.py | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index afa82132b82..77b485983fe 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -996,11 +996,11 @@ def _get_node(self, id: int) -> EmitNode: props = EmitNode.props_to_dict(props) type = props["Type"] - prefix = '' if self.results_index == 0 else 'ReadOnly' + prefix = "" if self.results_index == 0 else "ReadOnly" node = None try: - type_class = getattr(generated, f'{prefix}{type}') + type_class = getattr(generated, f"{prefix}{type}") node = type_class(self.emit_project.odesign, self.results_index, id) except AttributeError: node = EmitNode(self.emit_project.odesign, self.results_index, id) diff --git a/tests/system/solvers/test_26_emit.py b/tests/system/solvers/test_26_emit.py index f8cea24008f..1645fcf2f5a 100644 --- a/tests/system/solvers/test_26_emit.py +++ b/tests/system/solvers/test_26_emit.py @@ -44,7 +44,6 @@ ): from ansys.aedt.core import Emit from ansys.aedt.core import generate_unique_project_name - from ansys.aedt.core.emit_core.results.revision import Revision from ansys.aedt.core.emit_core.emit_constants import EmiCategoryFilter from ansys.aedt.core.emit_core.emit_constants import InterfererType from ansys.aedt.core.emit_core.emit_constants import ResultType @@ -52,6 +51,7 @@ from ansys.aedt.core.emit_core.nodes import generated from ansys.aedt.core.emit_core.nodes.EmitNode import EmitNode from ansys.aedt.core.emit_core.nodes.generated import * + from ansys.aedt.core.emit_core.results.revision import Revision from ansys.aedt.core.modeler.circuits.primitives_emit import EmitAntennaComponent from ansys.aedt.core.modeler.circuits.primitives_emit import EmitComponent from ansys.aedt.core.modeler.circuits.primitives_emit import EmitComponents @@ -1519,7 +1519,9 @@ def test_nodes_from_top_level(nodes, nodes_tested, results, results_of_get_props readonly_results_dict = {} readonly_results_of_get_props = {} - test_nodes_from_top_level(kept_revision.get_all_nodes(), nodes_tested, readonly_results_dict, readonly_results_of_get_props) + test_nodes_from_top_level( + kept_revision.get_all_nodes(), nodes_tested, readonly_results_dict, readonly_results_of_get_props + ) # Categorize results from all node member calls results_by_type = {Result.SKIPPED: {}, Result.VALUE: {}, Result.EXCEPTION: {}, Result.NEEDS_PARAMETERS: {}} @@ -1529,8 +1531,6 @@ def test_nodes_from_top_level(nodes, nodes_tested, results, results_of_get_props # Verify we tested most of the generated nodes all_nodes = generated.__all__ - nodes_untested = [ - node for node in all_nodes if (node not in nodes_tested) - ] + nodes_untested = [node for node in all_nodes if (node not in nodes_tested)] assert len(nodes_tested) > len(nodes_untested) From 393bb2922bfa7e1350ec1ed81314f24b61d67586 Mon Sep 17 00:00:00 2001 From: jsalant Date: Wed, 23 Apr 2025 13:58:20 -0400 Subject: [PATCH 31/86] style changes Adds import enum to classes where its used; Fix typehints for setters --- .../aedt/core/emit_core/nodes/EmitNode.py | 1 + .../emit_core/nodes/generated/Amplifier.py | 81 ++--- .../emit_core/nodes/generated/AntennaNode.py | 227 ++++++------- .../nodes/generated/AntennaPassband.py | 60 +--- .../core/emit_core/nodes/generated/Band.py | 171 ++++------ .../emit_core/nodes/generated/BandFolder.py | 28 +- .../nodes/generated/BandTraceNode.py | 71 ++-- .../core/emit_core/nodes/generated/CADNode.py | 151 ++++----- .../core/emit_core/nodes/generated/Cable.py | 65 ++-- .../nodes/generated/CategoriesViewNode.py | 28 +- .../emit_core/nodes/generated/Circulator.py | 81 ++--- .../nodes/generated/CouplingLinkNode.py | 34 +- .../nodes/generated/CouplingTraceNode.py | 85 ++--- .../nodes/generated/CouplingsNode.py | 40 +-- .../nodes/generated/CustomCouplingNode.py | 54 +-- .../nodes/generated/EmiPlotMarkerNode.py | 92 ++--- .../nodes/generated/EmitSceneNode.py | 45 +-- .../nodes/generated/ErcegCouplingNode.py | 107 +++--- .../core/emit_core/nodes/generated/Filter.py | 129 +++---- .../nodes/generated/FiveGChannelModel.py | 115 +++---- .../nodes/generated/HataCouplingNode.py | 107 +++--- .../IndoorPropagationCouplingNode.py | 117 +++---- .../emit_core/nodes/generated/Isolator.py | 81 ++--- .../generated/LogDistanceCouplingNode.py | 111 +++--- .../nodes/generated/MPlexBandTraceNode.py | 65 ++-- .../emit_core/nodes/generated/Multiplexer.py | 55 +-- .../nodes/generated/MultiplexerBand.py | 77 ++--- .../nodes/generated/OutboardTraceNode.py | 65 ++-- .../generated/ParametricCouplingTraceNode.py | 69 ++-- .../nodes/generated/PlotMarkerNode.py | 99 ++---- .../emit_core/nodes/generated/PlotNode.py | 127 +++---- .../emit_core/nodes/generated/PowerDivider.py | 83 ++--- .../nodes/generated/PowerTraceNode.py | 65 ++-- .../nodes/generated/ProfileTraceNode.py | 61 ++-- .../generated/PropagationLossCouplingNode.py | 103 +++--- .../emit_core/nodes/generated/RadioNode.py | 40 +-- .../nodes/generated/ReadOnlyAmplifier.py | 33 +- .../nodes/generated/ReadOnlyAntennaNode.py | 73 ++-- .../generated/ReadOnlyAntennaPassband.py | 30 +- .../emit_core/nodes/generated/ReadOnlyBand.py | 51 +-- .../nodes/generated/ReadOnlyBandFolder.py | 28 +- .../nodes/generated/ReadOnlyCADNode.py | 43 +-- .../nodes/generated/ReadOnlyCable.py | 35 +- .../nodes/generated/ReadOnlyCirculator.py | 37 +- .../generated/ReadOnlyCouplingLinkNode.py | 30 +- .../nodes/generated/ReadOnlyCouplingsNode.py | 30 +- .../generated/ReadOnlyCustomCouplingNode.py | 40 +-- .../nodes/generated/ReadOnlyEmitSceneNode.py | 35 +- .../generated/ReadOnlyErcegCouplingNode.py | 39 +-- .../nodes/generated/ReadOnlyFilter.py | 47 +-- .../generated/ReadOnlyFiveGChannelModel.py | 41 +-- .../generated/ReadOnlyHataCouplingNode.py | 39 +-- .../ReadOnlyIndoorPropagationCouplingNode.py | 47 +-- .../nodes/generated/ReadOnlyIsolator.py | 37 +- .../ReadOnlyLogDistanceCouplingNode.py | 39 +-- .../nodes/generated/ReadOnlyMultiplexer.py | 39 +-- .../generated/ReadOnlyMultiplexerBand.py | 33 +- .../nodes/generated/ReadOnlyPowerDivider.py | 37 +- .../ReadOnlyPropagationLossCouplingNode.py | 37 +- .../nodes/generated/ReadOnlyRadioNode.py | 38 +-- .../nodes/generated/ReadOnlyRfSystemGroup.py | 28 +- .../nodes/generated/ReadOnlyRxMeasNode.py | 33 +- .../generated/ReadOnlyRxMixerProductNode.py | 39 +-- .../generated/ReadOnlyRxSaturationNode.py | 28 +- .../generated/ReadOnlyRxSelectivityNode.py | 28 +- .../nodes/generated/ReadOnlyRxSpurNode.py | 39 +-- .../ReadOnlyRxSusceptibilityProfNode.py | 39 +-- .../nodes/generated/ReadOnlySamplingNode.py | 43 +-- .../nodes/generated/ReadOnlySceneGroupNode.py | 33 +- .../generated/ReadOnlySolutionCouplingNode.py | 30 +- .../nodes/generated/ReadOnlySolutionsNode.py | 28 +- .../nodes/generated/ReadOnlySparameter.py | 48 +-- .../nodes/generated/ReadOnlyTR_Switch.py | 34 +- .../nodes/generated/ReadOnlyTerminator.py | 37 +- .../ReadOnlyTouchstoneCouplingNode.py | 36 +- .../ReadOnlyTwoRayPathLossCouplingNode.py | 37 +- .../generated/ReadOnlyTxBbEmissionNode.py | 35 +- .../nodes/generated/ReadOnlyTxHarmonicNode.py | 31 +- .../nodes/generated/ReadOnlyTxMeasNode.py | 30 +- .../generated/ReadOnlyTxNbEmissionNode.py | 33 +- .../ReadOnlyTxSpectralProfEmitterNode.py | 32 +- .../generated/ReadOnlyTxSpectralProfNode.py | 37 +- .../nodes/generated/ReadOnlyTxSpurNode.py | 39 +-- .../generated/ReadOnlyWalfischCouplingNode.py | 41 +-- .../nodes/generated/ReadOnlyWaveform.py | 43 +-- .../nodes/generated/ResultPlotNode.py | 129 +++---- .../nodes/generated/RfSystemGroup.py | 34 +- .../emit_core/nodes/generated/RxMeasNode.py | 93 ++--- .../nodes/generated/RxMixerProductNode.py | 105 ++---- .../nodes/generated/RxSaturationNode.py | 34 +- .../nodes/generated/RxSelectivityNode.py | 36 +- .../emit_core/nodes/generated/RxSpurNode.py | 47 +-- .../generated/RxSusceptibilityProfNode.py | 99 ++---- .../emit_core/nodes/generated/SamplingNode.py | 57 +--- .../nodes/generated/SceneGroupNode.py | 53 +-- .../nodes/generated/SelectivityTraceNode.py | 61 ++-- .../nodes/generated/SolutionCouplingNode.py | 38 +-- .../nodes/generated/SolutionsNode.py | 30 +- .../emit_core/nodes/generated/Sparameter.py | 91 +++++ .../nodes/generated/SpurTraceNode.py | 67 ++-- .../nodes/generated/TRSwitchTraceNode.py | 65 ++-- .../emit_core/nodes/generated/TR_Switch.py | 80 ++--- .../emit_core/nodes/generated/Terminator.py | 53 +-- .../nodes/generated/TestNoiseTraceNode.py | 93 ++--- .../nodes/generated/TopLevelSimulation.py | 28 +- .../nodes/generated/TouchstoneCouplingNode.py | 52 +-- .../nodes/generated/TunableTraceNode.py | 71 ++-- .../generated/TwoRayPathLossCouplingNode.py | 109 +++--- .../nodes/generated/TwoToneTraceNode.py | 93 ++--- .../nodes/generated/TxBbEmissionNode.py | 47 +-- .../nodes/generated/TxHarmonicNode.py | 41 +-- .../emit_core/nodes/generated/TxMeasNode.py | 48 +-- .../nodes/generated/TxNbEmissionNode.py | 47 +-- .../generated/TxSpectralProfEmitterNode.py | 78 ++--- .../nodes/generated/TxSpectralProfNode.py | 123 +++---- .../emit_core/nodes/generated/TxSpurNode.py | 47 +-- .../nodes/generated/WalfischCouplingNode.py | 129 +++---- .../emit_core/nodes/generated/Waveform.py | 135 +++----- .../emit_core/nodes/generated/__init__.py | 318 ++++++++---------- 119 files changed, 2343 insertions(+), 5097 deletions(-) create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py diff --git a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py index a651df06cc5..b12aaf501a6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py @@ -42,6 +42,7 @@ def __init__(self, oDesign, result_id, node_id): self._result_id = result_id self._node_id = node_id self._valid = True + self._is_component = False def __eq__(self, other): return (self._result_id == other._result_id) and (self._node_id == other._node_id) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index b35d8c1bda5..e5d9ff463f0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class Amplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -53,7 +29,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,20 +41,20 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) class AmplifierTypeOption(Enum): TRANSMIT_AMPLIFIER = "Transmit Amplifier" @@ -88,14 +64,14 @@ class AmplifierTypeOption(Enum): def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type "Configures the amplifier as a Tx or Rx amplifier." - " """ + " """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] return val @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplifier Type={value.value}"]) @property def gain(self) -> float: @@ -107,8 +83,8 @@ def gain(self) -> float: return val @gain.setter - def gain(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Gain={value}"]) + def gain(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Gain={value}"]) @property def center_frequency(self) -> float: @@ -121,9 +97,9 @@ def center_frequency(self) -> float: return val @center_frequency.setter - def center_frequency(self, value: float | str): + def center_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Center Frequency={value}"]) @property def bandwidth(self) -> float: @@ -136,9 +112,9 @@ def bandwidth(self) -> float: return val @bandwidth.setter - def bandwidth(self, value: float | str): + def bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bandwidth={value}"]) @property def noise_figure(self) -> float: @@ -150,8 +126,8 @@ def noise_figure(self) -> float: return val @noise_figure.setter - def noise_figure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Figure={value}"]) @property def saturation_level(self) -> float: @@ -164,9 +140,9 @@ def saturation_level(self) -> float: return val @saturation_level.setter - def saturation_level(self, value: float | str): + def saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Saturation Level={value}"]) @property def p1_db_point_ref_input(self) -> float: @@ -179,9 +155,9 @@ def p1_db_point_ref_input(self) -> float: return val @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value: float | str): + def p1_db_point_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"P1-dB Point, Ref. Input={value}"]) @property def ip3_ref_input(self) -> float: @@ -194,9 +170,9 @@ def ip3_ref_input(self) -> float: return val @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"IP3, Ref. Input={value}"]) @property def shape_factor(self) -> float: @@ -208,8 +184,8 @@ def shape_factor(self) -> float: return val @shape_factor.setter - def shape_factor(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) + def shape_factor(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Shape Factor={value}"]) @property def reverse_isolation(self) -> float: @@ -221,8 +197,8 @@ def reverse_isolation(self) -> float: return val @reverse_isolation.setter - def reverse_isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -235,4 +211,5 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py index 0f6b7be30ec..e6c57ead995 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class AntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -55,13 +31,13 @@ def delete(self): def tags(self) -> str: """Tags "Space delimited list of tags for coupling selections." - " """ + " """ val = self._get_property("Tags") return val @tags.setter def tags(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tags={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tags={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -74,9 +50,7 @@ def show_relative_coordinates(self) -> bool: @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Relative Coordinates={value}"]) @property def position(self): @@ -89,7 +63,7 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position={value}"]) @property def relative_position(self): @@ -102,7 +76,7 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -112,14 +86,14 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -132,7 +106,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation={value}"]) @property def relative_orientation(self): @@ -145,7 +119,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Relative Orientation={value}"]) @property def position_defined(self) -> bool: @@ -158,7 +132,7 @@ def position_defined(self) -> bool: @position_defined.setter def position_defined(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Defined={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position Defined={value}"]) @property def antenna_temperature(self) -> float: @@ -170,20 +144,20 @@ def antenna_temperature(self) -> float: return val @antenna_temperature.setter - def antenna_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna Temperature={value}"]) + def antenna_temperature(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna Temperature={value}"]) @property def type(self): """Type "Defines the type of antenna." - " """ + " """ val = self._get_property("Type") return val @type.setter def type(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value}"]) @property def antenna_file(self) -> str: @@ -195,7 +169,7 @@ def antenna_file(self) -> str: @antenna_file.setter def antenna_file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna File={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna File={value}"]) @property def project_name(self) -> str: @@ -208,7 +182,7 @@ def project_name(self) -> str: @project_name.setter def project_name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Project Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Project Name={value}"]) @property def peak_gain(self) -> float: @@ -220,8 +194,8 @@ def peak_gain(self) -> float: return val @peak_gain.setter - def peak_gain(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Gain={value}"]) + def peak_gain(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Peak Gain={value}"]) class BoresightOption(Enum): XAXIS = "+X Axis" @@ -232,14 +206,14 @@ class BoresightOption(Enum): def boresight(self) -> BoresightOption: """Boresight "Select peak beam direction in local coordinates." - " """ + " """ val = self._get_property("Boresight") val = self.BoresightOption[val] return val @boresight.setter def boresight(self, value: BoresightOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Boresight={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Boresight={value.value}"]) @property def vertical_beamwidth(self) -> float: @@ -251,8 +225,8 @@ def vertical_beamwidth(self) -> float: return val @vertical_beamwidth.setter - def vertical_beamwidth(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Beamwidth={value}"]) + def vertical_beamwidth(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Vertical Beamwidth={value}"]) @property def horizontal_beamwidth(self) -> float: @@ -264,8 +238,8 @@ def horizontal_beamwidth(self) -> float: return val @horizontal_beamwidth.setter - def horizontal_beamwidth(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Beamwidth={value}"]) + def horizontal_beamwidth(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Horizontal Beamwidth={value}"]) @property def extra_sidelobe(self) -> bool: @@ -278,7 +252,7 @@ def extra_sidelobe(self) -> bool: @extra_sidelobe.setter def extra_sidelobe(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Extra Sidelobe={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Extra Sidelobe={value}"]) @property def first_sidelobe_level(self) -> float: @@ -290,8 +264,8 @@ def first_sidelobe_level(self) -> float: return val @first_sidelobe_level.setter - def first_sidelobe_level(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Level={value}"]) + def first_sidelobe_level(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"First Sidelobe Level={value}"]) @property def first_sidelobe_vert_bw(self) -> float: @@ -303,8 +277,8 @@ def first_sidelobe_vert_bw(self) -> float: return val @first_sidelobe_vert_bw.setter - def first_sidelobe_vert_bw(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Vert. BW={value}"]) + def first_sidelobe_vert_bw(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"First Sidelobe Vert. BW={value}"]) @property def first_sidelobe_hor_bw(self) -> float: @@ -316,8 +290,8 @@ def first_sidelobe_hor_bw(self) -> float: return val @first_sidelobe_hor_bw.setter - def first_sidelobe_hor_bw(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Hor. BW={value}"]) + def first_sidelobe_hor_bw(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"First Sidelobe Hor. BW={value}"]) @property def outerbacklobe_level(self) -> float: @@ -329,8 +303,8 @@ def outerbacklobe_level(self) -> float: return val @outerbacklobe_level.setter - def outerbacklobe_level(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Outer/Backlobe Level={value}"]) + def outerbacklobe_level(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Outer/Backlobe Level={value}"]) @property def resonant_frequency(self) -> float: @@ -343,9 +317,9 @@ def resonant_frequency(self) -> float: return val @resonant_frequency.setter - def resonant_frequency(self, value: float | str): + def resonant_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resonant Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Resonant Frequency={value}"]) @property def slot_length(self) -> float: @@ -358,9 +332,9 @@ def slot_length(self) -> float: return val @slot_length.setter - def slot_length(self, value: float | str): + def slot_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Slot Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Slot Length={value}"]) @property def mouth_width(self) -> float: @@ -373,9 +347,9 @@ def mouth_width(self) -> float: return val @mouth_width.setter - def mouth_width(self, value: float | str): + def mouth_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mouth Width={value}"]) @property def mouth_height(self) -> float: @@ -388,9 +362,9 @@ def mouth_height(self) -> float: return val @mouth_height.setter - def mouth_height(self, value: float | str): + def mouth_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mouth Height={value}"]) @property def waveguide_width(self) -> float: @@ -403,9 +377,9 @@ def waveguide_width(self) -> float: return val @waveguide_width.setter - def waveguide_width(self, value: float | str): + def waveguide_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveguide Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Waveguide Width={value}"]) @property def width_flare_half_angle(self) -> float: @@ -417,8 +391,8 @@ def width_flare_half_angle(self) -> float: return val @width_flare_half_angle.setter - def width_flare_half_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width Flare Half-angle={value}"]) + def width_flare_half_angle(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Width Flare Half-angle={value}"]) @property def height_flare_half_angle(self) -> float: @@ -430,8 +404,8 @@ def height_flare_half_angle(self) -> float: return val @height_flare_half_angle.setter - def height_flare_half_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height Flare Half-angle={value}"]) + def height_flare_half_angle(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Height Flare Half-angle={value}"]) @property def mouth_diameter(self) -> float: @@ -444,9 +418,9 @@ def mouth_diameter(self) -> float: return val @mouth_diameter.setter - def mouth_diameter(self, value: float | str): + def mouth_diameter(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Diameter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mouth Diameter={value}"]) @property def flare_half_angle(self) -> float: @@ -458,8 +432,8 @@ def flare_half_angle(self) -> float: return val @flare_half_angle.setter - def flare_half_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flare Half-angle={value}"]) + def flare_half_angle(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Flare Half-angle={value}"]) @property def vswr(self) -> float: @@ -471,8 +445,8 @@ def vswr(self) -> float: return val @vswr.setter - def vswr(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) + def vswr(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"VSWR={value}"]) class AntennaPolarizationOption(Enum): VERTICAL = "Vertical" @@ -484,16 +458,14 @@ class AntennaPolarizationOption(Enum): def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] return val @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Antenna Polarization={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna Polarization={value.value}"]) class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" @@ -503,14 +475,14 @@ class CrossDipoleModeOption(Enum): def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode "Choose the Cross Dipole type." - " """ + " """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] return val @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Cross Dipole Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Cross Dipole Mode={value.value}"]) class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" @@ -520,16 +492,14 @@ class CrossDipolePolarizationOption(Enum): def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] return val @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Cross Dipole Polarization={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Cross Dipole Polarization={value.value}"]) @property def override_height(self) -> bool: @@ -542,7 +512,7 @@ def override_height(self) -> bool: @override_height.setter def override_height(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Override Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Override Height={value}"]) @property def offset_height(self) -> float: @@ -555,9 +525,9 @@ def offset_height(self) -> float: return val @offset_height.setter - def offset_height(self, value: float | str): + def offset_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Offset Height={value}"]) @property def auto_height_offset(self) -> bool: @@ -570,7 +540,7 @@ def auto_height_offset(self) -> bool: @auto_height_offset.setter def auto_height_offset(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Auto Height Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Auto Height Offset={value}"]) @property def conform__adjust_antenna(self) -> bool: @@ -583,7 +553,7 @@ def conform__adjust_antenna(self) -> bool: @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform / Adjust Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Conform / Adjust Antenna={value}"]) @property def element_offset(self): @@ -596,7 +566,7 @@ def element_offset(self): @element_offset.setter def element_offset(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Element Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Element Offset={value}"]) class ConformtoPlatformOption(Enum): NONE = "None" @@ -607,16 +577,14 @@ class ConformtoPlatformOption(Enum): def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform "Select method of automated conforming applied after Element Offset." - " """ + " """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] return val @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Conform to Platform={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Conform to Platform={value.value}"]) class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" @@ -627,14 +595,14 @@ class ReferencePlaneOption(Enum): def reference_plane(self) -> ReferencePlaneOption: """Reference Plane "Select reference plane for determining original element heights." - " """ + " """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] return val @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reference Plane={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Reference Plane={value.value}"]) @property def conform_element_orientation(self) -> bool: @@ -647,9 +615,7 @@ def conform_element_orientation(self) -> bool: @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Conform Element Orientation={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Conform Element Orientation={value}"]) @property def show_axes(self) -> bool: @@ -662,7 +628,7 @@ def show_axes(self) -> bool: @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Axes={value}"]) @property def show_icon(self) -> bool: @@ -675,7 +641,7 @@ def show_icon(self) -> bool: @show_icon.setter def show_icon(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Icon={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Icon={value}"]) @property def size(self) -> float: @@ -687,8 +653,8 @@ def size(self) -> float: return val @size.setter - def size(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Size={value}"]) + def size(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Size={value}"]) @property def color(self): @@ -701,13 +667,13 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Color={value}"]) @property def el_sample_interval(self) -> float: """El Sample Interval "Space between elevation-angle samples of pattern." - " """ + " """ val = self._get_property("El Sample Interval") return val @@ -715,7 +681,7 @@ def el_sample_interval(self) -> float: def az_sample_interval(self) -> float: """Az Sample Interval "Space between azimuth-angle samples of pattern." - " """ + " """ val = self._get_property("Az Sample Interval") return val @@ -732,7 +698,7 @@ def has_frequency_domain(self) -> bool: def frequency_domain(self): """Frequency Domain "Frequency sample(s) defining antenna." - " """ + " """ val = self._get_property("Frequency Domain") return val @@ -740,7 +706,7 @@ def frequency_domain(self): def number_of_electric_sources(self) -> int: """Number of Electric Sources "Number of freestanding electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Electric Sources") return val @@ -748,7 +714,7 @@ def number_of_electric_sources(self) -> int: def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources "Number of freestanding magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Magnetic Sources") return val @@ -756,7 +722,7 @@ def number_of_magnetic_sources(self) -> int: def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources "Number of imaged, half-space radiating electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Electric Sources") return val @@ -764,7 +730,7 @@ def number_of_imaged_electric_sources(self) -> int: def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources "Number of imaged, half-space radiating magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Magnetic Sources") return val @@ -772,7 +738,7 @@ def number_of_imaged_magnetic_sources(self) -> int: def waveguide_height(self) -> float: """Waveguide Height "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." - " """ + " """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") return val @@ -781,7 +747,7 @@ def waveguide_height(self) -> float: def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." - " """ + " """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -790,7 +756,7 @@ def waveguide_cutoff_frequency(self) -> float: def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." - " """ + " """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -804,16 +770,14 @@ class SWEModeTruncationOption(Enum): def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation "Select the method for stability-enhancing truncation of spherical wave expansion terms." - " """ + " """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] return val @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"SWE Mode Truncation={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"SWE Mode Truncation={value.value}"]) @property def max_n_index(self) -> int: @@ -826,19 +790,19 @@ def max_n_index(self) -> int: @max_n_index.setter def max_n_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max N Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max N Index={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) @property def show_composite_passband(self) -> bool: @@ -851,7 +815,7 @@ def show_composite_passband(self) -> bool: @show_composite_passband.setter def show_composite_passband(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Composite Passband={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Composite Passband={value}"]) @property def use_phase_center(self) -> bool: @@ -864,13 +828,13 @@ def use_phase_center(self) -> bool: @use_phase_center.setter def use_phase_center(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Phase Center={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use Phase Center={value}"]) @property def coordinate_systems(self) -> str: """Coordinate Systems "Specifies the coordinate system for the phase center of this antenna." - " """ + " """ val = self._get_property("Coordinate Systems") return val @@ -891,3 +855,4 @@ def phasecenterorientation(self): """ val = self._get_property("PhaseCenterOrientation") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py index e503cf36df5..7c8e6719ffa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class AntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -50,11 +25,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) @property def passband_loss(self) -> float: @@ -66,8 +41,8 @@ def passband_loss(self) -> float: return val @passband_loss.setter - def passband_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Passband Loss={value}"]) + def passband_loss(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Passband Loss={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -79,8 +54,8 @@ def out_of_band_attenuation(self) -> float: return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out of Band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Out of Band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -93,9 +68,9 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -108,9 +83,9 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -123,9 +98,9 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -138,18 +113,19 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index ead45160c0d..e0199067cd6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class Band(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -38,23 +14,23 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) @property def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") return val @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port={value}"]) @property def use_dd_1494_mode(self) -> bool: @@ -67,7 +43,7 @@ def use_dd_1494_mode(self) -> bool: @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use DD-1494 Mode={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use DD-1494 Mode={value}"]) @property def use_emission_designator(self) -> bool: @@ -80,25 +56,25 @@ def use_emission_designator(self) -> bool: @use_emission_designator.setter def use_emission_designator(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use Emission Designator={value}"]) @property def emission_designator(self) -> str: """Emission Designator "Enter the Emission Designator to define the bandwidth and modulation." - " """ + " """ val = self._get_property("Emission Designator") return val @emission_designator.setter def emission_designator(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Emission Designator={value}"]) @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." - " """ + " """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -107,7 +83,7 @@ def emission_designator_ch_bw(self) -> float: def emit_modulation_type(self) -> str: """EMIT Modulation Type "Modulation based off the emission designator." - " """ + " """ val = self._get_property("EMIT Modulation Type") return val @@ -122,9 +98,7 @@ def override_emission_designator_bw(self) -> bool: @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Override Emission Designator BW={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Override Emission Designator BW={value}"]) @property def channel_bandwidth(self) -> float: @@ -137,9 +111,9 @@ def channel_bandwidth(self) -> float: return val @channel_bandwidth.setter - def channel_bandwidth(self, value: float | str): + def channel_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Channel Bandwidth={value}"]) class ModulationOption(Enum): GENERIC = "Generic" @@ -158,14 +132,14 @@ class ModulationOption(Enum): def modulation(self) -> ModulationOption: """Modulation "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Modulation") val = self.ModulationOption[val] return val @modulation.setter def modulation(self, value: ModulationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Modulation={value.value}"]) @property def max_modulating_freq(self) -> float: @@ -178,9 +152,9 @@ def max_modulating_freq(self) -> float: return val @max_modulating_freq.setter - def max_modulating_freq(self, value: float | str): + def max_modulating_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Modulating Freq.={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Modulating Freq.={value}"]) @property def modulation_index(self) -> float: @@ -192,8 +166,8 @@ def modulation_index(self) -> float: return val @modulation_index.setter - def modulation_index(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Index={value}"]) + def modulation_index(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Modulation Index={value}"]) @property def freq_deviation(self) -> float: @@ -206,9 +180,9 @@ def freq_deviation(self) -> float: return val @freq_deviation.setter - def freq_deviation(self, value: float | str): + def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Freq. Deviation={value}"]) @property def bit_rate(self) -> float: @@ -221,9 +195,9 @@ def bit_rate(self) -> float: return val @bit_rate.setter - def bit_rate(self, value: float | str): + def bit_rate(self, value : float|str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bit Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bit Rate={value}"]) @property def sidelobes(self) -> int: @@ -236,11 +210,11 @@ def sidelobes(self) -> int: @sidelobes.setter def sidelobes(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sidelobes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Sidelobes={value}"]) @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ @@ -249,9 +223,9 @@ def freq_deviation_(self) -> float: return val @freq_deviation_.setter - def freq_deviation_(self, value: float | str): + def freq_deviation_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Freq. Deviation ={value}"]) class PSKTypeOption(Enum): BPSK = "BPSK" @@ -265,14 +239,14 @@ class PSKTypeOption(Enum): def psk_type(self) -> PSKTypeOption: """PSK Type "PSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] return val @psk_type.setter def psk_type(self, value: PSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"PSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"PSK Type={value.value}"]) class FSKTypeOption(Enum): FSK_2 = "FSK-2" @@ -283,14 +257,14 @@ class FSKTypeOption(Enum): def fsk_type(self) -> FSKTypeOption: """FSK Type "FSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] return val @fsk_type.setter def fsk_type(self, value: FSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"FSK Type={value.value}"]) class QAMTypeOption(Enum): QAM_4 = "QAM-4" @@ -303,14 +277,14 @@ class QAMTypeOption(Enum): def qam_type(self) -> QAMTypeOption: """QAM Type "QAM modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] return val @qam_type.setter def qam_type(self, value: QAMTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"QAM Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"QAM Type={value.value}"]) class APSKTypeOption(Enum): APSK_4 = "APSK-4" @@ -323,14 +297,14 @@ class APSKTypeOption(Enum): def apsk_type(self) -> APSKTypeOption: """APSK Type "APSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] return val @apsk_type.setter def apsk_type(self, value: APSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"APSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"APSK Type={value.value}"]) @property def start_frequency(self) -> float: @@ -343,9 +317,9 @@ def start_frequency(self) -> float: return val @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -358,9 +332,9 @@ def stop_frequency(self) -> float: return val @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -373,9 +347,9 @@ def channel_spacing(self) -> float: return val @channel_spacing.setter - def channel_spacing(self, value: float | str): + def channel_spacing(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Channel Spacing={value}"]) @property def tx_offset(self) -> float: @@ -388,9 +362,9 @@ def tx_offset(self) -> float: return val @tx_offset.setter - def tx_offset(self, value: float | str): + def tx_offset(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tx Offset={value}"]) class RadarTypeOption(Enum): CW = "CW" @@ -403,14 +377,14 @@ class RadarTypeOption(Enum): def radar_type(self) -> RadarTypeOption: """Radar Type "Radar type: helps determine spectral profile." - " """ + " """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] return val @radar_type.setter def radar_type(self, value: RadarTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radar Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Radar Type={value.value}"]) @property def hopping_radar(self) -> bool: @@ -423,7 +397,7 @@ def hopping_radar(self) -> bool: @hopping_radar.setter def hopping_radar(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hopping Radar={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Hopping Radar={value}"]) @property def post_october_2020_procurement(self) -> bool: @@ -436,9 +410,7 @@ def post_october_2020_procurement(self) -> bool: @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Post October 2020 Procurement={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Post October 2020 Procurement={value}"]) @property def hop_range_min_freq(self) -> float: @@ -451,9 +423,9 @@ def hop_range_min_freq(self) -> float: return val @hop_range_min_freq.setter - def hop_range_min_freq(self, value: float | str): + def hop_range_min_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Min Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Hop Range Min Freq={value}"]) @property def hop_range_max_freq(self) -> float: @@ -466,9 +438,9 @@ def hop_range_max_freq(self) -> float: return val @hop_range_max_freq.setter - def hop_range_max_freq(self, value: float | str): + def hop_range_max_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Max Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Hop Range Max Freq={value}"]) @property def pulse_duration(self) -> float: @@ -481,9 +453,9 @@ def pulse_duration(self) -> float: return val @pulse_duration.setter - def pulse_duration(self, value: float | str): + def pulse_duration(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Duration={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pulse Duration={value}"]) @property def pulse_rise_time(self) -> float: @@ -496,9 +468,9 @@ def pulse_rise_time(self) -> float: return val @pulse_rise_time.setter - def pulse_rise_time(self, value: float | str): + def pulse_rise_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Rise Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pulse Rise Time={value}"]) @property def pulse_fall_time(self) -> float: @@ -511,9 +483,9 @@ def pulse_fall_time(self) -> float: return val @pulse_fall_time.setter - def pulse_fall_time(self, value: float | str): + def pulse_fall_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pulse Fall Time={value}"]) @property def pulse_repetition_rate(self) -> float: @@ -525,8 +497,8 @@ def pulse_repetition_rate(self) -> float: return val @pulse_repetition_rate.setter - def pulse_repetition_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Repetition Rate={value}"]) + def pulse_repetition_rate(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pulse Repetition Rate={value}"]) @property def number_of_chips(self) -> float: @@ -538,8 +510,8 @@ def number_of_chips(self) -> float: return val @number_of_chips.setter - def number_of_chips(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Chips={value}"]) + def number_of_chips(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Number of Chips={value}"]) @property def pulse_compression_ratio(self) -> float: @@ -551,8 +523,8 @@ def pulse_compression_ratio(self) -> float: return val @pulse_compression_ratio.setter - def pulse_compression_ratio(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Compression Ratio={value}"]) + def pulse_compression_ratio(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pulse Compression Ratio={value}"]) @property def fm_chirp_period(self) -> float: @@ -565,9 +537,9 @@ def fm_chirp_period(self) -> float: return val @fm_chirp_period.setter - def fm_chirp_period(self, value: float | str): + def fm_chirp_period(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Chirp Period={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"FM Chirp Period={value}"]) @property def fm_freq_deviation(self) -> float: @@ -580,9 +552,9 @@ def fm_freq_deviation(self) -> float: return val @fm_freq_deviation.setter - def fm_freq_deviation(self, value: float | str): + def fm_freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"FM Freq Deviation={value}"]) @property def fm_freq_dev_bandwidth(self) -> float: @@ -595,6 +567,7 @@ def fm_freq_dev_bandwidth(self) -> float: return val @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value: float | str): + def fm_freq_dev_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Dev Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"FM Freq Dev Bandwidth={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py index 02237f50677..b16ed48b03e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class BandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -50,3 +25,4 @@ def duplicate(self, new_name): def delete(self): """Delete this node""" self._delete() + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py index 69ac47b5018..5abe9a2bc33 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class BandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -51,13 +27,13 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) class TxorRxOption(Enum): TX = "Tx" @@ -67,32 +43,32 @@ class TxorRxOption(Enum): def tx_or_rx(self) -> TxorRxOption: """Tx or Rx "Specifies whether the trace is a Tx or Rx channel." - " """ + " """ val = self._get_property("Tx or Rx") val = self.TxorRxOption[val] return val @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx or Rx={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tx or Rx={value.value}"]) @property def channel_frequency(self): """Channel Frequency "Select band channel frequency to display." - " """ + " """ val = self._get_property("Channel Frequency") return val @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -108,7 +84,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -121,19 +97,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -147,14 +123,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -167,7 +143,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -180,7 +156,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -203,14 +179,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -223,7 +199,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -236,7 +212,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -249,7 +225,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -262,4 +238,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py index 375adc6f17f..67b5729364f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class CADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -76,14 +52,14 @@ class ModelTypeOption(Enum): def model_type(self) -> ModelTypeOption: """Model Type "Select type of parametric model to create." - " """ + " """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] return val @model_type.setter def model_type(self, value: ModelTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Model Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Model Type={value.value}"]) @property def length(self) -> float: @@ -96,9 +72,9 @@ def length(self) -> float: return val @length.setter - def length(self, value: float | str): + def length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Length={value}"]) @property def width(self) -> float: @@ -111,9 +87,9 @@ def width(self) -> float: return val @width.setter - def width(self, value: float | str): + def width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Width={value}"]) @property def height(self) -> float: @@ -126,9 +102,9 @@ def height(self) -> float: return val @height.setter - def height(self, value: float | str): + def height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Height={value}"]) @property def angle(self) -> float: @@ -140,8 +116,8 @@ def angle(self) -> float: return val @angle.setter - def angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Angle={value}"]) + def angle(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Angle={value}"]) @property def top_side(self) -> float: @@ -154,9 +130,9 @@ def top_side(self) -> float: return val @top_side.setter - def top_side(self, value: float | str): + def top_side(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Top Side={value}"]) @property def top_radius(self) -> float: @@ -169,9 +145,9 @@ def top_radius(self) -> float: return val @top_radius.setter - def top_radius(self, value: float | str): + def top_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Top Radius={value}"]) @property def side(self) -> float: @@ -184,9 +160,9 @@ def side(self) -> float: return val @side.setter - def side(self, value: float | str): + def side(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Side={value}"]) @property def radius(self) -> float: @@ -199,9 +175,9 @@ def radius(self) -> float: return val @radius.setter - def radius(self, value: float | str): + def radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Radius={value}"]) @property def base_radius(self) -> float: @@ -214,9 +190,9 @@ def base_radius(self) -> float: return val @base_radius.setter - def base_radius(self, value: float | str): + def base_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Base Radius={value}"]) @property def center_radius(self) -> float: @@ -229,9 +205,9 @@ def center_radius(self) -> float: return val @center_radius.setter - def center_radius(self, value: float | str): + def center_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Center Radius={value}"]) @property def x_axis_ellipsoid_radius(self) -> float: @@ -244,9 +220,9 @@ def x_axis_ellipsoid_radius(self) -> float: return val @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value: float | str): + def x_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"X Axis Ellipsoid Radius={value}"]) @property def y_axis_ellipsoid_radius(self) -> float: @@ -259,9 +235,9 @@ def y_axis_ellipsoid_radius(self) -> float: return val @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value: float | str): + def y_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y Axis Ellipsoid Radius={value}"]) @property def z_axis_ellipsoid_radius(self) -> float: @@ -274,9 +250,9 @@ def z_axis_ellipsoid_radius(self) -> float: return val @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value: float | str): + def z_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Z Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Z Axis Ellipsoid Radius={value}"]) @property def focal_length(self) -> float: @@ -289,23 +265,23 @@ def focal_length(self) -> float: return val @focal_length.setter - def focal_length(self, value: float | str): + def focal_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Focal Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Focal Length={value}"]) @property def offset(self) -> float: """Offset "Offset of parabolic reflector." - " """ + " """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") return val @offset.setter - def offset(self, value: float | str): + def offset(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Offset={value}"]) @property def x_direction_taper(self) -> float: @@ -317,8 +293,8 @@ def x_direction_taper(self) -> float: return val @x_direction_taper.setter - def x_direction_taper(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Direction Taper={value}"]) + def x_direction_taper(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"X Direction Taper={value}"]) @property def y_direction_taper(self) -> float: @@ -330,8 +306,8 @@ def y_direction_taper(self) -> float: return val @y_direction_taper.setter - def y_direction_taper(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Direction Taper={value}"]) + def y_direction_taper(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y Direction Taper={value}"]) @property def prism_direction(self): @@ -344,7 +320,7 @@ def prism_direction(self): @prism_direction.setter def prism_direction(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Prism Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Prism Direction={value}"]) @property def closed_top(self) -> bool: @@ -357,7 +333,7 @@ def closed_top(self) -> bool: @closed_top.setter def closed_top(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Top={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Closed Top={value}"]) @property def closed_base(self) -> bool: @@ -370,7 +346,7 @@ def closed_base(self) -> bool: @closed_base.setter def closed_base(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Base={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Closed Base={value}"]) @property def mesh_density(self) -> int: @@ -383,7 +359,7 @@ def mesh_density(self) -> int: @mesh_density.setter def mesh_density(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Density={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mesh Density={value}"]) @property def use_symmetric_mesh(self) -> bool: @@ -396,7 +372,7 @@ def use_symmetric_mesh(self) -> bool: @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Symmetric Mesh={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use Symmetric Mesh={value}"]) class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -406,14 +382,14 @@ class MeshOptionOption(Enum): def mesh_option(self) -> MeshOptionOption: """Mesh Option "Select from different meshing options." - " """ + " """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] return val @mesh_option.setter def mesh_option(self, value: MeshOptionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Option={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mesh Option={value.value}"]) @property def coating_index(self) -> int: @@ -426,7 +402,7 @@ def coating_index(self) -> int: @coating_index.setter def coating_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Coating Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Coating Index={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -439,9 +415,7 @@ def show_relative_coordinates(self) -> bool: @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Relative Coordinates={value}"]) @property def position(self): @@ -454,7 +428,7 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position={value}"]) @property def relative_position(self): @@ -467,7 +441,7 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -477,14 +451,14 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -497,7 +471,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation={value}"]) @property def relative_orientation(self): @@ -510,7 +484,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Relative Orientation={value}"]) @property def visible(self) -> bool: @@ -523,7 +497,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -535,14 +509,14 @@ class RenderModeOption(Enum): def render_mode(self) -> RenderModeOption: """Render Mode "Select drawing style for surfaces." - " """ + " """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] return val @render_mode.setter def render_mode(self, value: RenderModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Render Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Render Mode={value.value}"]) @property def show_axes(self) -> bool: @@ -555,7 +529,7 @@ def show_axes(self) -> bool: @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Axes={value}"]) @property def min(self): @@ -579,7 +553,7 @@ def max(self): def number_of_surfaces(self) -> int: """Number of Surfaces "Number of surfaces in the model." - " """ + " """ val = self._get_property("Number of Surfaces") return val @@ -594,16 +568,17 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Color={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index 968794a89ed..3b4cfd8bebe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class Cable(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -53,7 +29,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,20 +41,20 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -89,14 +65,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) @property def length(self) -> float: @@ -109,9 +85,9 @@ def length(self) -> float: return val @length.setter - def length(self, value: float | str): + def length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Length={value}"]) @property def loss_per_length(self) -> float: @@ -123,8 +99,8 @@ def loss_per_length(self) -> float: return val @loss_per_length.setter - def loss_per_length(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Loss Per Length={value}"]) + def loss_per_length(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Loss Per Length={value}"]) @property def measurement_length(self) -> float: @@ -137,9 +113,9 @@ def measurement_length(self) -> float: return val @measurement_length.setter - def measurement_length(self, value: float | str): + def measurement_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Measurement Length={value}"]) @property def resistive_loss_constant(self) -> float: @@ -151,8 +127,8 @@ def resistive_loss_constant(self) -> float: return val @resistive_loss_constant.setter - def resistive_loss_constant(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resistive Loss Constant={value}"]) + def resistive_loss_constant(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Resistive Loss Constant={value}"]) @property def dielectric_loss_constant(self) -> float: @@ -164,13 +140,14 @@ def dielectric_loss_constant(self) -> float: return val @dielectric_loss_constant.setter - def dielectric_loss_constant(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Dielectric Loss Constant={value}"]) + def dielectric_loss_constant(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Dielectric Loss Constant={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py index c7c2f555fb7..82bd87eb625 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py @@ -1,31 +1,7 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class CategoriesViewNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index 6f2364c2f31..8236622c3e5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class Circulator(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -53,7 +29,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,20 +41,20 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -88,14 +64,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -105,14 +81,14 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the circulator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -124,8 +100,8 @@ def insertion_loss(self) -> float: return val @insertion_loss.setter - def insertion_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -138,7 +114,7 @@ def finite_reverse_isolation(self) -> bool: @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -150,8 +126,8 @@ def reverse_isolation(self) -> float: return val @reverse_isolation.setter - def reverse_isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -164,7 +140,7 @@ def finite_bandwidth(self) -> bool: @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -176,8 +152,8 @@ def out_of_band_attenuation(self) -> float: return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -190,9 +166,9 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -205,9 +181,9 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -220,9 +196,9 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -235,14 +211,15 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py index 617dbe4100a..bcdbb952295 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class CouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -46,17 +21,18 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) @property def ports(self): """Ports "Maps each port in the link to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Ports") return val @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Ports={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py index 759749d241f..9ad195d5d69 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class CouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -50,36 +26,36 @@ def delete(self): @property def transmitter(self) -> EmitNode: """Transmitter - " """ + " """ val = self._get_property("Transmitter") return val @transmitter.setter def transmitter(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Transmitter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Transmitter={value}"]) @property def receiver(self) -> EmitNode: """Receiver - " """ + " """ val = self._get_property("Receiver") return val @receiver.setter def receiver(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Receiver={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) @property def visible(self) -> bool: @@ -92,7 +68,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -105,19 +81,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -131,14 +107,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -151,7 +127,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -164,7 +140,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -187,14 +163,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -207,7 +183,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -220,7 +196,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -233,7 +209,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -246,7 +222,7 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) @property def highlight_regions(self) -> bool: @@ -259,7 +235,7 @@ def highlight_regions(self) -> bool: @highlight_regions.setter def highlight_regions(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highlight Regions={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Highlight Regions={value}"]) @property def show_region_labels(self) -> bool: @@ -272,7 +248,7 @@ def show_region_labels(self) -> bool: @show_region_labels.setter def show_region_labels(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Region Labels={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Region Labels={value}"]) @property def font(self): @@ -285,7 +261,7 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Font={value}"]) @property def color(self): @@ -298,7 +274,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Color={value}"]) @property def background_color(self): @@ -311,7 +287,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Background Color={value}"]) @property def border(self) -> bool: @@ -324,7 +300,7 @@ def border(self) -> bool: @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border={value}"]) @property def border_width(self) -> int: @@ -337,7 +313,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border Width={value}"]) @property def border_color(self): @@ -350,4 +326,5 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border Color={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py index 994631eb195..579f7872a0c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class CouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -32,7 +7,7 @@ def __init__(self, oDesign, result_id, node_id): def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" - return self._import(file_name, "TouchstoneCoupling") + return self._import(file_name,"TouchstoneCoupling") def add_custom_coupling(self): """Add a new node to define custom coupling between antennas""" @@ -80,8 +55,8 @@ def minimum_allowed_coupling(self) -> float: return val @minimum_allowed_coupling.setter - def minimum_allowed_coupling(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Allowed Coupling={value}"]) + def minimum_allowed_coupling(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Minimum Allowed Coupling={value}"]) @property def global_default_coupling(self) -> float: @@ -93,13 +68,14 @@ def global_default_coupling(self) -> float: return val @global_default_coupling.setter - def global_default_coupling(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Global Default Coupling={value}"]) + def global_default_coupling(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Global Default Coupling={value}"]) @property def antenna_tags(self) -> str: """Antenna Tags "All tags currently used by all antennas in the project." - " """ + " """ val = self._get_property("Antenna Tags") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py index 0b0ddcd8f6b..bdfe99fdc0b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class CustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -37,7 +12,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def rename(self, new_name): """Rename this node""" @@ -53,11 +28,11 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Value (dB): + "Value (dB): " Value should be between -1000 and 0." """ return self._get_table_data() @@ -77,31 +52,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -114,7 +89,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -127,16 +102,17 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py index 43a3d695b30..00b306faaee 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class EmiPlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -58,25 +33,25 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def attached(self): """Attached "Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False)." - " """ + " """ val = self._get_property("Attached") return val @attached.setter def attached(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Attached={value}"]) @property def position(self) -> float: """Position "Set position of the marker along the X-axis." - " """ + " """ val = self._get_property("Position") return val @@ -84,7 +59,7 @@ def position(self) -> float: def position(self) -> float: """Position "Set position of the marker along the Y-axis." - " """ + " """ val = self._get_property("Position") return val @@ -99,7 +74,7 @@ def floating_label(self) -> bool: @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -111,8 +86,8 @@ def position_from_left(self) -> float: return val @position_from_left.setter - def position_from_left(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) + def position_from_left(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -124,20 +99,20 @@ def position_from_top(self) -> float: return val @position_from_top.setter - def position_from_top(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) + def position_from_top(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position from Top={value}"]) @property def text(self) -> str: """Text "Set the text of the label." - " """ + " """ val = self._get_property("Text") return val @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -148,16 +123,14 @@ class HorizontalPositionOption(Enum): def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position "Specify horizontal position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] return val @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Horizontal Position={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Horizontal Position={value.value}"]) class VerticalPositionOption(Enum): TOP = "Top" @@ -168,14 +141,14 @@ class VerticalPositionOption(Enum): def vertical_position(self) -> VerticalPositionOption: """Vertical Position "Specify vertical position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] return val @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -186,14 +159,14 @@ class TextAlignmentOption(Enum): def text_alignment(self) -> TextAlignmentOption: """Text Alignment "Specify justification applied to multi-line text." - " """ + " """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] return val @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Text Alignment={value.value}"]) @property def font(self): @@ -206,7 +179,7 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Font={value}"]) @property def color(self): @@ -219,7 +192,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Color={value}"]) @property def background_color(self): @@ -232,7 +205,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Background Color={value}"]) @property def border(self) -> bool: @@ -245,7 +218,7 @@ def border(self) -> bool: @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border={value}"]) @property def border_width(self) -> int: @@ -258,7 +231,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border Width={value}"]) @property def border_color(self): @@ -271,7 +244,7 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -295,14 +268,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Specify symbol displayed next to the label." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -315,7 +288,7 @@ def arrow_direction(self) -> int: @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -328,7 +301,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -341,7 +314,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -354,7 +327,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def filled(self) -> bool: @@ -367,4 +340,5 @@ def filled(self) -> bool: @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py index b646adc2d15..8363f62917e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class EmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -38,13 +14,13 @@ def add_group(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) class GroundPlaneNormalOption(Enum): X_AXIS = "X Axis" @@ -55,27 +31,26 @@ class GroundPlaneNormalOption(Enum): def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal "Specifies the axis of the normal to the ground plane." - " """ + " """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] return val @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Ground Plane Normal={value.value}"]) @property def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." - " """ + " """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return val @gp_position_along_normal.setter - def gp_position_along_normal(self, value: float | str): + def gp_position_along_normal(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GP Position Along Normal={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"GP Position Along Normal={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py index 209dcafeff2..2f570c94cb6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -58,31 +34,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -95,7 +71,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -108,19 +84,19 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) class TerrainCategoryOption(Enum): TYPE_A = "Type A" @@ -131,14 +107,14 @@ class TerrainCategoryOption(Enum): def terrain_category(self) -> TerrainCategoryOption: """Terrain Category "Specify the terrain category type for the Erceg model." - " """ + " """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] return val @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Terrain Category={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Terrain Category={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -150,8 +126,8 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -163,8 +139,8 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -176,8 +152,8 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -189,14 +165,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -208,8 +184,8 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -221,8 +197,8 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -235,7 +211,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -247,8 +223,8 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -260,8 +236,8 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -273,8 +249,8 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -287,9 +263,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -301,8 +275,8 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -314,8 +288,8 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -327,7 +301,6 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index a67a1e6e6bb..6768c0dc3cc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class Filter(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -53,7 +29,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,20 +41,20 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -93,14 +69,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) @property def insertion_loss(self) -> float: @@ -112,8 +88,8 @@ def insertion_loss(self) -> float: return val @insertion_loss.setter - def insertion_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -125,8 +101,8 @@ def stop_band_attenuation(self) -> float: return val @stop_band_attenuation.setter - def stop_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -139,9 +115,9 @@ def max_pass_band(self) -> float: return val @max_pass_band.setter - def max_pass_band(self, value: float | str): + def max_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -154,9 +130,9 @@ def min_stop_band(self) -> float: return val @min_stop_band.setter - def min_stop_band(self, value: float | str): + def min_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -169,9 +145,9 @@ def max_stop_band(self) -> float: return val @max_stop_band.setter - def max_stop_band(self, value: float | str): + def max_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -184,9 +160,9 @@ def min_pass_band(self) -> float: return val @min_pass_band.setter - def min_pass_band(self, value: float | str): + def min_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -199,9 +175,9 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -214,9 +190,9 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -229,9 +205,9 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -244,13 +220,13 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ @@ -259,13 +235,13 @@ def lower_cutoff_(self) -> float: return val @lower_cutoff_.setter - def lower_cutoff_(self, value: float | str): + def lower_cutoff_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff ={value}"]) @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ @@ -274,13 +250,13 @@ def lower_stop_band_(self) -> float: return val @lower_stop_band_.setter - def lower_stop_band_(self, value: float | str): + def lower_stop_band_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band ={value}"]) @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ @@ -289,13 +265,13 @@ def higher_stop_band_(self) -> float: return val @higher_stop_band_.setter - def higher_stop_band_(self, value: float | str): + def higher_stop_band_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band ={value}"]) @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ @@ -304,13 +280,13 @@ def higher_cutoff_(self) -> float: return val @higher_cutoff_.setter - def higher_cutoff_(self, value: float | str): + def higher_cutoff_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff ={value}"]) @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency "Lowest tuned frequency." "Value should be between 1 and 1e+11." """ @@ -319,13 +295,13 @@ def lowest_tuned_frequency_(self) -> float: return val @lowest_tuned_frequency_.setter - def lowest_tuned_frequency_(self, value: float | str): + def lowest_tuned_frequency_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lowest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lowest Tuned Frequency ={value}"]) @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency "Highest tuned frequency." "Value should be between 1 and 1e+11." """ @@ -334,9 +310,9 @@ def highest_tuned_frequency_(self) -> float: return val @highest_tuned_frequency_.setter - def highest_tuned_frequency_(self, value: float | str): + def highest_tuned_frequency_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Highest Tuned Frequency ={value}"]) @property def percent_bandwidth(self) -> float: @@ -348,8 +324,8 @@ def percent_bandwidth(self) -> float: return val @percent_bandwidth.setter - def percent_bandwidth(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percent Bandwidth={value}"]) + def percent_bandwidth(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Percent Bandwidth={value}"]) @property def shape_factor(self) -> float: @@ -361,13 +337,14 @@ def shape_factor(self) -> float: return val @shape_factor.setter - def shape_factor(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) + def shape_factor(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Shape Factor={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py index 00e86d1c7cf..7c669d0d7b1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class FiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -58,31 +34,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -95,7 +71,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -108,19 +84,19 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) class EnvironmentOption(Enum): URBAN_MICROCELL = "Urban Microcell" @@ -131,14 +107,14 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment for the 5G channel model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Environment={value.value}"]) @property def los(self) -> bool: @@ -151,7 +127,7 @@ def los(self) -> bool: @los.setter def los(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"LOS={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"LOS={value}"]) @property def include_bpl(self) -> bool: @@ -164,7 +140,7 @@ def include_bpl(self) -> bool: @include_bpl.setter def include_bpl(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include BPL={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include BPL={value}"]) class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -174,14 +150,14 @@ class NYUBPLModelOption(Enum): def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model "Specify the NYU Building Penetration Loss model." - " """ + " """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] return val @nyu_bpl_model.setter def nyu_bpl_model(self, value: NYUBPLModelOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NYU BPL Model={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"NYU BPL Model={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -193,8 +169,8 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -206,8 +182,8 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -219,8 +195,8 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -232,14 +208,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -251,8 +227,8 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -264,8 +240,8 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -278,7 +254,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -290,8 +266,8 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -303,8 +279,8 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -316,8 +292,8 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -330,9 +306,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -344,8 +318,8 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -357,8 +331,8 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -370,7 +344,6 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py index e73b0ebe145..392a649123a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class HataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -58,31 +34,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -95,7 +71,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -108,19 +84,19 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) class EnvironmentOption(Enum): LARGE_CITY = "Large City" @@ -132,14 +108,14 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Hata model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Environment={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -151,8 +127,8 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -164,8 +140,8 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -177,8 +153,8 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -190,14 +166,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -209,8 +185,8 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -222,8 +198,8 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -236,7 +212,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -248,8 +224,8 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -261,8 +237,8 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -274,8 +250,8 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -288,9 +264,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -302,8 +276,8 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -315,8 +289,8 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -328,7 +302,6 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py index b27a95fcd16..53e99762411 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class IndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -49,13 +25,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Power Loss Coefficient: + "Power Loss Coefficient: " Value should be between 0 and 100." - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): " Value should be between 0 and 1000." """ return self._get_table_data() @@ -75,31 +51,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -112,7 +88,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -125,19 +101,19 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) class BuildingTypeOption(Enum): RESIDENTIAL_APARTMENT = "Residential Apartment" @@ -150,14 +126,14 @@ class BuildingTypeOption(Enum): def building_type(self) -> BuildingTypeOption: """Building Type "Specify the building type for the Indoor Propagation model." - " """ + " """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] return val @building_type.setter def building_type(self, value: BuildingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Building Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Building Type={value.value}"]) @property def number_of_floors(self) -> int: @@ -170,7 +146,7 @@ def number_of_floors(self) -> int: @number_of_floors.setter def number_of_floors(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Floors={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Number of Floors={value}"]) @property def custom_fading_margin(self) -> float: @@ -182,8 +158,8 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -195,8 +171,8 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -208,8 +184,8 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -221,14 +197,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -240,8 +216,8 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -253,8 +229,8 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -267,7 +243,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -279,8 +255,8 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -292,8 +268,8 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -305,8 +281,8 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -319,9 +295,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -333,8 +307,8 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -346,8 +320,8 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -359,7 +333,6 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index 6934d9eba18..0e18a30cddb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class Isolator(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -53,7 +29,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,20 +41,20 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -88,14 +64,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -105,14 +81,14 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the isolator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -124,8 +100,8 @@ def insertion_loss(self) -> float: return val @insertion_loss.setter - def insertion_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -138,7 +114,7 @@ def finite_reverse_isolation(self) -> bool: @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -150,8 +126,8 @@ def reverse_isolation(self) -> float: return val @reverse_isolation.setter - def reverse_isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -164,7 +140,7 @@ def finite_bandwidth(self) -> bool: @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -176,8 +152,8 @@ def out_of_band_attenuation(self) -> float: return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -190,9 +166,9 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -205,9 +181,9 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -220,9 +196,9 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -235,14 +211,15 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py index 108df462629..6c423c4815a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class LogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -58,31 +34,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -95,7 +71,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -108,19 +84,19 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) class EnvironmentOption(Enum): FREE_SPACE = "Free Space" @@ -135,14 +111,14 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Log Distance model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Environment={value.value}"]) @property def path_loss_exponent(self) -> float: @@ -154,8 +130,8 @@ def path_loss_exponent(self) -> float: return val @path_loss_exponent.setter - def path_loss_exponent(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Exponent={value}"]) + def path_loss_exponent(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Path Loss Exponent={value}"]) @property def custom_fading_margin(self) -> float: @@ -167,8 +143,8 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -180,8 +156,8 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -193,8 +169,8 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -206,14 +182,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -225,8 +201,8 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -238,8 +214,8 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -252,7 +228,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -264,8 +240,8 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -277,8 +253,8 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -290,8 +266,8 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -304,9 +280,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -318,8 +292,8 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -331,8 +305,8 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -344,7 +318,6 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py index 5709fd635dd..61c9633555a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class MPlexBandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -53,26 +29,26 @@ class PowerDirectionOption(Enum): @property def power_direction(self) -> PowerDirectionOption: """Power Direction - " """ + " """ val = self._get_property("Power Direction") val = self.PowerDirectionOption[val] return val @power_direction.setter def power_direction(self, value: PowerDirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Power Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Power Direction={value.value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) @property def visible(self) -> bool: @@ -85,7 +61,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -98,19 +74,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -124,14 +100,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -144,7 +120,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -157,7 +133,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -180,14 +156,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -200,7 +176,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -213,7 +189,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -226,7 +202,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -239,4 +215,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index 65d5526e6cb..85355f70c51 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class Multiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -57,7 +33,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -69,20 +45,20 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) class TypeOption(Enum): BY_PASS_BAND = "By Pass Band" @@ -92,14 +68,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -109,14 +85,14 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the multiplexer.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port 1 Location={value.value}"]) @property def flip_ports_vertically(self) -> bool: @@ -129,25 +105,26 @@ def flip_ports_vertically(self) -> bool: @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flip Ports Vertically={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Flip Ports Vertically={value}"]) @property def ports(self): """Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ + " """ val = self._get_property("Ports") return val @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Ports={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py index ebd09b1d5c8..62e1e32a944 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class MultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -57,14 +33,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) @property def filename(self) -> str: @@ -77,7 +53,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) @property def insertion_loss(self) -> float: @@ -89,8 +65,8 @@ def insertion_loss(self) -> float: return val @insertion_loss.setter - def insertion_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -102,8 +78,8 @@ def stop_band_attenuation(self) -> float: return val @stop_band_attenuation.setter - def stop_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -116,9 +92,9 @@ def max_pass_band(self) -> float: return val @max_pass_band.setter - def max_pass_band(self, value: float | str): + def max_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -131,9 +107,9 @@ def min_stop_band(self) -> float: return val @min_stop_band.setter - def min_stop_band(self, value: float | str): + def min_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -146,9 +122,9 @@ def max_stop_band(self) -> float: return val @max_stop_band.setter - def max_stop_band(self, value: float | str): + def max_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -161,9 +137,9 @@ def min_pass_band(self) -> float: return val @min_pass_band.setter - def min_pass_band(self, value: float | str): + def min_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -176,9 +152,9 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -191,9 +167,9 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -206,9 +182,9 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -221,14 +197,15 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py index ecf04ceb777..55b6220a252 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class OutboardTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -58,7 +34,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Input Port={value}"]) @property def output_port(self) -> int: @@ -71,19 +47,19 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,7 +72,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -109,19 +85,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -135,14 +111,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -155,7 +131,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -168,7 +144,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -191,14 +167,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -211,7 +187,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -224,7 +200,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -237,7 +213,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -250,4 +226,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py index 76323b9873d..fdacd8d6a4c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ParametricCouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -50,36 +26,36 @@ def delete(self): @property def antenna_a(self) -> EmitNode: """Antenna A - " """ + " """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B - " """ + " """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna B={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) @property def visible(self) -> bool: @@ -92,7 +68,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -105,19 +81,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -131,14 +107,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -151,7 +127,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -164,7 +140,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -187,14 +163,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -207,7 +183,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -220,7 +196,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -233,7 +209,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -246,4 +222,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py index c2a721642f8..6bd9f6efb8d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class PlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -58,7 +34,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def attached(self) -> bool: @@ -71,31 +47,31 @@ def attached(self) -> bool: @attached.setter def attached(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Attached={value}"]) @property def position(self) -> float: """Position "Set position of the marker along the X-axis." - " """ + " """ val = self._get_property("Position") return val @position.setter - def position(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + def position(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position={value}"]) @property def position(self) -> float: """Position "Set position of the marker along the Y-axis." - " """ + " """ val = self._get_property("Position") return val @position.setter - def position(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + def position(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position={value}"]) @property def floating_label(self) -> bool: @@ -108,7 +84,7 @@ def floating_label(self) -> bool: @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -120,8 +96,8 @@ def position_from_left(self) -> float: return val @position_from_left.setter - def position_from_left(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) + def position_from_left(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -133,20 +109,20 @@ def position_from_top(self) -> float: return val @position_from_top.setter - def position_from_top(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) + def position_from_top(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position from Top={value}"]) @property def text(self) -> str: """Text "Set the text of the label." - " """ + " """ val = self._get_property("Text") return val @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -157,16 +133,14 @@ class HorizontalPositionOption(Enum): def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position "Specify horizontal position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] return val @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Horizontal Position={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Horizontal Position={value.value}"]) class VerticalPositionOption(Enum): TOP = "Top" @@ -177,14 +151,14 @@ class VerticalPositionOption(Enum): def vertical_position(self) -> VerticalPositionOption: """Vertical Position "Specify vertical position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] return val @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -195,14 +169,14 @@ class TextAlignmentOption(Enum): def text_alignment(self) -> TextAlignmentOption: """Text Alignment "Specify justification applied to multi-line text." - " """ + " """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] return val @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Text Alignment={value.value}"]) @property def font(self): @@ -215,7 +189,7 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Font={value}"]) @property def color(self): @@ -228,7 +202,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Color={value}"]) @property def background_color(self): @@ -241,7 +215,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Background Color={value}"]) @property def border(self) -> bool: @@ -254,7 +228,7 @@ def border(self) -> bool: @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border={value}"]) @property def border_width(self) -> int: @@ -267,7 +241,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border Width={value}"]) @property def border_color(self): @@ -280,7 +254,7 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -304,14 +278,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Specify symbol displayed next to the label." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -324,7 +298,7 @@ def arrow_direction(self) -> int: @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -337,7 +311,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -350,7 +324,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -363,7 +337,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def filled(self) -> bool: @@ -376,4 +350,5 @@ def filled(self) -> bool: @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py index 1d329939271..714e6aa897e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class PlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -54,13 +30,13 @@ def delete(self): def title(self) -> str: """Title "Enter title at the top of the plot, room will be made for it." - " """ + " """ val = self._get_property("Title") return val @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Title={value}"]) @property def title_font(self): @@ -73,7 +49,7 @@ def title_font(self): @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -86,7 +62,7 @@ def show_legend(self) -> bool: @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Legend={value}"]) @property def legend_font(self): @@ -99,7 +75,7 @@ def legend_font(self): @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Legend Font={value}"]) @property def display_cad_overlay(self) -> bool: @@ -112,7 +88,7 @@ def display_cad_overlay(self) -> bool: @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -124,20 +100,20 @@ def opacity(self) -> float: return val @opacity.setter - def opacity(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) + def opacity(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset "Adjust vertical position of CAD model overlay." - " """ + " """ val = self._get_property("Vertical Offset") return val @vertical_offset.setter - def vertical_offset(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) + def vertical_offset(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -149,8 +125,8 @@ def range_axis_rotation(self) -> float: return val @range_axis_rotation.setter - def range_axis_rotation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -163,55 +139,55 @@ def lock_axes(self) -> bool: @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min "Set lower extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Min") return val @x_axis_min.setter - def x_axis_min(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) + def x_axis_min(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max "Set upper extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Max") return val @x_axis_max.setter - def x_axis_max(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) + def x_axis_max(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min "Set lower extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Min") return val @y_axis_min.setter - def y_axis_min(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) + def y_axis_min(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max "Set upper extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Max") return val @y_axis_max.setter - def y_axis_max(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) + def y_axis_max(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -223,8 +199,8 @@ def y_axis_range(self) -> float: return val @y_axis_range.setter - def y_axis_range(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) + def y_axis_range(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y-axis Range={value}"]) @property def max_major_ticks(self) -> int: @@ -237,7 +213,7 @@ def max_major_ticks(self) -> int: @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Major Ticks={value}"]) @property def max_minor_ticks(self) -> int: @@ -250,7 +226,7 @@ def max_minor_ticks(self) -> int: @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Minor Ticks={value}"]) @property def max_major_ticks(self) -> int: @@ -263,7 +239,7 @@ def max_major_ticks(self) -> int: @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Major Ticks={value}"]) @property def max_minor_ticks(self) -> int: @@ -276,7 +252,7 @@ def max_minor_ticks(self) -> int: @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Minor Ticks={value}"]) @property def axis_label_font(self): @@ -289,7 +265,7 @@ def axis_label_font(self): @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -302,7 +278,7 @@ def axis_tick_label_font(self): @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -316,16 +292,14 @@ class MajorGridLineStyleOption(Enum): def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style "Select line style of major-tick grid lines." - " """ + " """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] return val @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Major Grid Line Style={value.value}"]) @property def major_grid_color(self): @@ -338,7 +312,7 @@ def major_grid_color(self): @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -352,16 +326,14 @@ class MinorGridLineStyleOption(Enum): def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style "Select line style of minor-tick grid lines." - " """ + " """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] return val @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Minor Grid Line Style={value.value}"]) @property def minor_grid_color(self): @@ -374,7 +346,7 @@ def minor_grid_color(self): @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Minor Grid Color={value}"]) @property def background_color(self): @@ -387,7 +359,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -399,16 +371,14 @@ class BBPowerforPlotsUnitOption(Enum): def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit "Units to use for plotting broadband power densities." - " """ + " """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] return val @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"BB Power for Plots Unit={value.value}"]) @property def bb_power_bandwidth(self) -> float: @@ -421,9 +391,9 @@ def bb_power_bandwidth(self) -> float: return val @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value: float | str): + def bb_power_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -436,4 +406,5 @@ def log_scale(self) -> bool: @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Log Scale={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py index b2a53bbf314..be12f531423 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class PowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -53,7 +29,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,20 +41,20 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -89,14 +65,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) class OrientationOption(Enum): DIVIDER = "Divider" @@ -106,14 +82,14 @@ class OrientationOption(Enum): def orientation(self) -> OrientationOption: """Orientation "Defines the orientation of the Power Divider.." - " """ + " """ val = self._get_property("Orientation") val = self.OrientationOption[val] return val @orientation.setter def orientation(self, value: OrientationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation={value.value}"]) @property def insertion_loss_above_ideal(self) -> float: @@ -125,10 +101,8 @@ def insertion_loss_above_ideal(self) -> float: return val @insertion_loss_above_ideal.setter - def insertion_loss_above_ideal(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Insertion Loss Above Ideal={value}"] - ) + def insertion_loss_above_ideal(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Insertion Loss Above Ideal={value}"]) @property def finite_isolation(self) -> bool: @@ -141,7 +115,7 @@ def finite_isolation(self) -> bool: @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -153,8 +127,8 @@ def isolation(self) -> float: return val @isolation.setter - def isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) + def isolation(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -167,7 +141,7 @@ def finite_bandwidth(self) -> bool: @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -179,8 +153,8 @@ def out_of_band_attenuation(self) -> float: return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -193,9 +167,9 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -208,9 +182,9 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -223,9 +197,9 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -238,14 +212,15 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py index 3148df722c3..1e36d405abb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class PowerTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -55,26 +31,26 @@ class DirectionOption(Enum): def direction(self) -> DirectionOption: """Direction "Direction of power flow (towards or away from the transmitter) to plot." - " """ + " """ val = self._get_property("Direction") val = self.DirectionOption[val] return val @direction.setter def direction(self, value: DirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Direction={value.value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) @property def visible(self) -> bool: @@ -87,7 +63,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -100,19 +76,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -126,14 +102,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -146,7 +122,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -159,7 +135,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -182,14 +158,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -202,7 +178,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -215,7 +191,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -228,7 +204,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -241,4 +217,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py index f909eebd4bb..49060e468ba 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ProfileTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -51,13 +27,13 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) @property def visible(self) -> bool: @@ -70,7 +46,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -83,19 +59,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -109,14 +85,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -129,7 +105,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -142,7 +118,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -165,14 +141,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -185,7 +161,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -198,7 +174,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -211,7 +187,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -224,4 +200,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py index 22e55d9b9f4..2f7eadc6fd3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class PropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -58,31 +34,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -95,7 +71,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -108,19 +84,19 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) @property def custom_fading_margin(self) -> float: @@ -132,8 +108,8 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -145,8 +121,8 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -158,8 +134,8 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -171,14 +147,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -190,8 +166,8 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -203,8 +179,8 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -217,7 +193,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -229,8 +205,8 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -242,8 +218,8 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -255,8 +231,8 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -269,9 +245,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -283,8 +257,8 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -296,8 +270,8 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -309,7 +283,6 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py index 113e999ca2d..a06ddffb619 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class RadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -53,11 +28,11 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Name: - " "Type: - " """ + "Name: + " "Type: + " """ return self._get_table_data() @table_data.setter @@ -68,10 +43,11 @@ def table_data(self, value): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py index 7abe5cb06ad..1508d26ac09 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyAmplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -52,7 +28,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -64,7 +40,7 @@ class AmplifierTypeOption(Enum): def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type "Configures the amplifier as a Tx or Rx amplifier." - " """ + " """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] return val @@ -163,3 +139,4 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py index 19823bd838f..fe64942ccbe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyAntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -39,7 +15,7 @@ def parent(self): def tags(self) -> str: """Tags "Space delimited list of tags for coupling selections." - " """ + " """ val = self._get_property("Tags") return val @@ -78,7 +54,7 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -123,7 +99,7 @@ def antenna_temperature(self) -> float: def type(self): """Type "Defines the type of antenna." - " """ + " """ val = self._get_property("Type") return val @@ -162,7 +138,7 @@ class BoresightOption(Enum): def boresight(self) -> BoresightOption: """Boresight "Select peak beam direction in local coordinates." - " """ + " """ val = self._get_property("Boresight") val = self.BoresightOption[val] return val @@ -336,7 +312,7 @@ class AntennaPolarizationOption(Enum): def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] return val @@ -349,7 +325,7 @@ class CrossDipoleModeOption(Enum): def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode "Choose the Cross Dipole type." - " """ + " """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] return val @@ -362,7 +338,7 @@ class CrossDipolePolarizationOption(Enum): def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] return val @@ -422,7 +398,7 @@ class ConformtoPlatformOption(Enum): def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform "Select method of automated conforming applied after Element Offset." - " """ + " """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] return val @@ -436,7 +412,7 @@ class ReferencePlaneOption(Enum): def reference_plane(self) -> ReferencePlaneOption: """Reference Plane "Select reference plane for determining original element heights." - " """ + " """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] return val @@ -490,7 +466,7 @@ def color(self): def el_sample_interval(self) -> float: """El Sample Interval "Space between elevation-angle samples of pattern." - " """ + " """ val = self._get_property("El Sample Interval") return val @@ -498,7 +474,7 @@ def el_sample_interval(self) -> float: def az_sample_interval(self) -> float: """Az Sample Interval "Space between azimuth-angle samples of pattern." - " """ + " """ val = self._get_property("Az Sample Interval") return val @@ -515,7 +491,7 @@ def has_frequency_domain(self) -> bool: def frequency_domain(self): """Frequency Domain "Frequency sample(s) defining antenna." - " """ + " """ val = self._get_property("Frequency Domain") return val @@ -523,7 +499,7 @@ def frequency_domain(self): def number_of_electric_sources(self) -> int: """Number of Electric Sources "Number of freestanding electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Electric Sources") return val @@ -531,7 +507,7 @@ def number_of_electric_sources(self) -> int: def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources "Number of freestanding magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Magnetic Sources") return val @@ -539,7 +515,7 @@ def number_of_magnetic_sources(self) -> int: def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources "Number of imaged, half-space radiating electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Electric Sources") return val @@ -547,7 +523,7 @@ def number_of_imaged_electric_sources(self) -> int: def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources "Number of imaged, half-space radiating magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Magnetic Sources") return val @@ -555,7 +531,7 @@ def number_of_imaged_magnetic_sources(self) -> int: def waveguide_height(self) -> float: """Waveguide Height "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." - " """ + " """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") return val @@ -564,7 +540,7 @@ def waveguide_height(self) -> float: def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." - " """ + " """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -573,7 +549,7 @@ def waveguide_cutoff_frequency(self) -> float: def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." - " """ + " """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -587,7 +563,7 @@ class SWEModeTruncationOption(Enum): def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation "Select the method for stability-enhancing truncation of spherical wave expansion terms." - " """ + " """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] return val @@ -605,7 +581,7 @@ def max_n_index(self) -> int: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -631,7 +607,7 @@ def use_phase_center(self) -> bool: def coordinate_systems(self) -> str: """Coordinate Systems "Specifies the coordinate system for the phase center of this antenna." - " """ + " """ val = self._get_property("Coordinate Systems") return val @@ -652,3 +628,4 @@ def phasecenterorientation(self): """ val = self._get_property("PhaseCenterOrientation") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py index 2db0cb29ca5..db835e4106a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class ReadOnlyAntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -97,6 +72,7 @@ def higher_stop_band(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py index 999ae25b7e8..53846a6bf8a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyBand(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -39,7 +15,7 @@ def parent(self): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") return val @@ -65,7 +41,7 @@ def use_emission_designator(self) -> bool: def emission_designator(self) -> str: """Emission Designator "Enter the Emission Designator to define the bandwidth and modulation." - " """ + " """ val = self._get_property("Emission Designator") return val @@ -73,7 +49,7 @@ def emission_designator(self) -> str: def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." - " """ + " """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -82,7 +58,7 @@ def emission_designator_ch_bw(self) -> float: def emit_modulation_type(self) -> str: """EMIT Modulation Type "Modulation based off the emission designator." - " """ + " """ val = self._get_property("EMIT Modulation Type") return val @@ -122,7 +98,7 @@ class ModulationOption(Enum): def modulation(self) -> ModulationOption: """Modulation "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Modulation") val = self.ModulationOption[val] return val @@ -177,7 +153,7 @@ def sidelobes(self) -> int: @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ @@ -197,7 +173,7 @@ class PSKTypeOption(Enum): def psk_type(self) -> PSKTypeOption: """PSK Type "PSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] return val @@ -211,7 +187,7 @@ class FSKTypeOption(Enum): def fsk_type(self) -> FSKTypeOption: """FSK Type "FSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] return val @@ -227,7 +203,7 @@ class QAMTypeOption(Enum): def qam_type(self) -> QAMTypeOption: """QAM Type "QAM modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] return val @@ -243,7 +219,7 @@ class APSKTypeOption(Enum): def apsk_type(self) -> APSKTypeOption: """APSK Type "APSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] return val @@ -299,7 +275,7 @@ class RadarTypeOption(Enum): def radar_type(self) -> RadarTypeOption: """Radar Type "Radar type: helps determine spectral profile." - " """ + " """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] return val @@ -428,3 +404,4 @@ def fm_freq_dev_bandwidth(self) -> float: val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py index 609059ce036..bffa4168833 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class ReadOnlyBandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -34,3 +9,4 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py index c58356b024c..0ffdf98626c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyCADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -64,7 +40,7 @@ class ModelTypeOption(Enum): def model_type(self) -> ModelTypeOption: """Model Type "Select type of parametric model to create." - " """ + " """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] return val @@ -212,7 +188,7 @@ def focal_length(self) -> float: def offset(self) -> float: """Offset "Offset of parabolic reflector." - " """ + " """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") return val @@ -288,7 +264,7 @@ class MeshOptionOption(Enum): def mesh_option(self) -> MeshOptionOption: """Mesh Option "Select from different meshing options." - " """ + " """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] return val @@ -337,7 +313,7 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -379,7 +355,7 @@ class RenderModeOption(Enum): def render_mode(self) -> RenderModeOption: """Render Mode "Select drawing style for surfaces." - " """ + " """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] return val @@ -415,7 +391,7 @@ def max(self): def number_of_surfaces(self) -> int: """Number of Surfaces "Number of surfaces in the model." - " """ + " """ val = self._get_property("Number of Surfaces") return val @@ -432,6 +408,7 @@ def color(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py index 96e31b03517..2c254cf9db2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyCable(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -52,7 +28,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -65,7 +41,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -121,6 +97,7 @@ def dielectric_loss_constant(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py index 57955110774..e8aa5a48ee1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyCirculator(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -52,7 +28,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -64,7 +40,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -77,7 +53,7 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the circulator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @@ -171,6 +147,7 @@ def higher_stop_band(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py index 142edb7bea0..86a050e840f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -49,6 +24,7 @@ def ports(self): """Ports "Maps each port in the link to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Ports") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py index 69441c5b321..82559ca8038 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class ReadOnlyCouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -52,6 +27,7 @@ def global_default_coupling(self) -> float: def antenna_tags(self) -> str: """Antenna Tags "All tags currently used by all antennas in the project." - " """ + " """ val = self._get_property("Antenna Tags") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py index 5029f5ca9e8..fcd6ae186b3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -37,11 +12,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Value (dB): + "Value (dB): " Value should be between -1000 and 0." """ return self._get_table_data() @@ -59,7 +34,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -67,7 +42,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -93,6 +68,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py index 7ce5ccacabd..e851167520a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -34,7 +10,7 @@ def __init__(self, oDesign, result_id, node_id): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -47,7 +23,7 @@ class GroundPlaneNormalOption(Enum): def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal "Specifies the axis of the normal to the ground plane." - " """ + " """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] return val @@ -56,7 +32,8 @@ def ground_plane_normal(self) -> GroundPlaneNormalOption: def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." - " """ + " """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py index f4325567902..cd0c73f02b7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -48,7 +24,7 @@ def enabled(self) -> bool: def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -56,7 +32,7 @@ def base_antenna(self) -> EmitNode: def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -82,7 +58,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -95,7 +71,7 @@ class TerrainCategoryOption(Enum): def terrain_category(self) -> TerrainCategoryOption: """Terrain Category "Specify the terrain category type for the Erceg model." - " """ + " """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] return val @@ -137,7 +113,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -231,3 +207,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py index 49f31bd1302..efaa6b33ef6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyFilter(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -52,7 +28,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -69,7 +45,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -174,7 +150,7 @@ def higher_stop_band(self) -> float: @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ @@ -184,7 +160,7 @@ def lower_cutoff_(self) -> float: @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ @@ -194,7 +170,7 @@ def lower_stop_band_(self) -> float: @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ @@ -204,7 +180,7 @@ def higher_stop_band_(self) -> float: @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ @@ -214,7 +190,7 @@ def higher_cutoff_(self) -> float: @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency "Lowest tuned frequency." "Value should be between 1 and 1e+11." """ @@ -224,7 +200,7 @@ def lowest_tuned_frequency_(self) -> float: @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency "Highest tuned frequency." "Value should be between 1 and 1e+11." """ @@ -254,6 +230,7 @@ def shape_factor(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py index 8779e6de7cf..efeb5397442 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -48,7 +24,7 @@ def enabled(self) -> bool: def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -56,7 +32,7 @@ def base_antenna(self) -> EmitNode: def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -82,7 +58,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -95,7 +71,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment for the 5G channel model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -126,7 +102,7 @@ class NYUBPLModelOption(Enum): def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model "Specify the NYU Building Penetration Loss model." - " """ + " """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] return val @@ -168,7 +144,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -262,3 +238,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py index 92993c4d244..b04e6ed20df 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -48,7 +24,7 @@ def enabled(self) -> bool: def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -56,7 +32,7 @@ def base_antenna(self) -> EmitNode: def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -82,7 +58,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -96,7 +72,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Hata model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -138,7 +114,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -232,3 +208,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py index d86d40293f6..130e5f1a062 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -37,13 +13,13 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Power Loss Coefficient: + "Power Loss Coefficient: " Value should be between 0 and 100." - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): " Value should be between 0 and 1000." """ return self._get_table_data() @@ -61,7 +37,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -69,7 +45,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -95,7 +71,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -110,7 +86,7 @@ class BuildingTypeOption(Enum): def building_type(self) -> BuildingTypeOption: """Building Type "Specify the building type for the Indoor Propagation model." - " """ + " """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] return val @@ -161,7 +137,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -255,3 +231,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py index 0a0033eb17c..d1b95dca9f6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyIsolator(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -52,7 +28,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -64,7 +40,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -77,7 +53,7 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the isolator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @@ -171,6 +147,7 @@ def higher_stop_band(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py index df4abf7706b..e2a70af0785 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -48,7 +24,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -56,7 +32,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -82,7 +58,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -99,7 +75,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Log Distance model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -150,7 +126,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -244,3 +220,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py index 8d6b11fd044..9bbd2030bb5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyMultiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -52,7 +28,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -64,7 +40,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -77,7 +53,7 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the multiplexer.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @@ -96,7 +72,7 @@ def ports(self): """Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ + " """ val = self._get_property("Ports") return val @@ -104,6 +80,7 @@ def ports(self): def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py index aab9d9a1343..65c73ce40e0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -45,7 +21,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -161,6 +137,7 @@ def higher_stop_band(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py index cdf78e3cfce..1a1b435b354 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyPowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -52,7 +28,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -65,7 +41,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -78,7 +54,7 @@ class OrientationOption(Enum): def orientation(self) -> OrientationOption: """Orientation "Defines the orientation of the Power Divider.." - " """ + " """ val = self._get_property("Orientation") val = self.OrientationOption[val] return val @@ -172,6 +148,7 @@ def higher_stop_band(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py index 72efc32a64d..b9873d42409 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -48,7 +24,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -56,7 +32,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -82,7 +58,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -123,7 +99,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -217,3 +193,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py index 84e6f0fa1a5..d81c15e9708 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class ReadOnlyRadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -37,17 +12,18 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Name: - " "Type: - " """ + "Name: + " "Type: + " """ return self._get_table_data() @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py index 49ab661f127..7db365483b8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class ReadOnlyRfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -52,3 +27,4 @@ def enforce_thermal_noise_floor(self) -> bool: """ val = self._get_property("Enforce Thermal Noise Floor") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py index 93c85821e11..1d6ab2a17c7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyRxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -57,7 +33,7 @@ def source_file(self) -> str: def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -71,7 +47,7 @@ class MeasurementModeOption(Enum): def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode "Defines the mode for the receiver measurement." - " """ + " """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] return val @@ -240,3 +216,4 @@ def exclude_mixer_products_below_noise(self) -> bool: """ val = self._get_property("Exclude Mixer Products Below Noise") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py index 36eb9755631..44654f1844c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -44,7 +20,7 @@ class MixerProductTaperOption(Enum): def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper "Taper for setting amplitude of mixer products." - " """ + " """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] return val @@ -151,7 +127,7 @@ class MixingModeOption(Enum): def mixing_mode(self) -> MixingModeOption: """Mixing Mode "Specifies whether the IF frequency is > or < RF channel frequency." - " """ + " """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] return val @@ -169,7 +145,7 @@ def first_if_frequency(self): def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." - " """ + " """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -182,7 +158,7 @@ class UseHighLOOption(Enum): def use_high_lo(self) -> UseHighLOOption: """Use High LO "Use High LO above/below the transition frequency." - " """ + " """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] return val @@ -195,7 +171,8 @@ class MixerProductTableUnitsOption(Enum): def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units "Specifies the units for the Mixer Products." - " """ + " """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py index a1c7bb94686..fa9ae9c40bb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -34,3 +9,4 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py index 44125e171b2..1ce5c919016 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -43,3 +18,4 @@ def use_arithmetic_mean(self) -> bool: """ val = self._get_property("Use Arithmetic Mean") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py index 80d4ae72f21..6b2267c55ff 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyRxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -37,13 +13,13 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -56,7 +32,8 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py index c615cade63e..e1ecc1750a6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -45,14 +21,14 @@ class SensitivityUnitsOption(Enum): def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units "Units to use for the Rx Sensitivity." - " """ + " """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] return val @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr "Received signal power level at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ @@ -107,7 +83,7 @@ def rx_noise_figure(self) -> float: @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." "Value should be between -1000 and 1000." """ @@ -117,7 +93,7 @@ def receiver_sensitivity_(self) -> float: @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity "SNR or SINAD at the specified sensitivity level." "Value should be between -1000 and 1000." """ @@ -145,7 +121,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." "Value should be between -1000 and 1000." """ @@ -171,3 +147,4 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py index abe3a6adc62..1a685283ceb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlySamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -37,11 +13,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Min: + "Min: " Value should be greater than 1." - "Max: + "Max: " Value should be greater than 1." """ return self._get_table_data() @@ -55,7 +31,7 @@ class SamplingTypeOption(Enum): def sampling_type(self) -> SamplingTypeOption: """Sampling Type "Sampling to apply to this configuration." - " """ + " """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] return val @@ -100,7 +76,7 @@ def seed(self) -> int: def total_tx_channels(self) -> int: """Total Tx Channels "Total number of transmit channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Tx Channels") return val @@ -108,7 +84,7 @@ def total_tx_channels(self) -> int: def total_rx_channels(self) -> int: """Total Rx Channels "Total number of receive channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Rx Channels") return val @@ -116,6 +92,7 @@ def total_rx_channels(self) -> int: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py index ea474e49962..04284007889 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlySceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -70,7 +46,7 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -115,6 +91,7 @@ def box_color(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py index c63b5ce5fd2..ed575659f51 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -66,6 +41,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py index 7c3eb46e7b9..c6e7dc29966 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class ReadOnlySolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -43,3 +18,4 @@ def enabled(self) -> bool: """ val = self._get_property("Enabled") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py index 3b3ef6682dd..2340c68cc03 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class ReadOnlySparameter(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -36,7 +11,7 @@ def file(self) -> str: "S-Parameter file defining the component." "Value should be a full file path." """ - val = self._get_property("File") + val = self._get_property('File') return val @property @@ -45,15 +20,15 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - val = self._get_property("Noise Temperature") + val = self._get_property('Noise Temperature') return val @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property("Notes") + " """ + val = self._get_property('Notes') return val @property @@ -61,8 +36,8 @@ def radio_side_ports(self): """Radio Side Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ - val = self._get_property("Radio Side Ports") + " """ + val = self._get_property('Radio Side Ports') return val @property @@ -70,14 +45,15 @@ def antenna_side_ports(self): """Antenna Side Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ - val = self._get_property("Antenna Side Ports") + " """ + val = self._get_property('Antenna Side Ports') return val @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ - val = self._get_property("Warnings") + " """ + val = self._get_property('Warnings') return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py index c1b4ca2cea9..f425ab74572 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class ReadOnlyTR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -52,7 +27,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -64,7 +39,7 @@ class TxPortOption(Enum): def tx_port(self) -> TxPortOption: """Tx Port "Specifies which port on the TR Switch is part of the Tx path.." - " """ + " """ val = self._get_property("Tx Port") val = self.TxPortOption[val] return val @@ -77,7 +52,7 @@ class CommonPortLocationOption(Enum): def common_port_location(self) -> CommonPortLocationOption: """Common Port Location "Defines the orientation of the tr switch.." - " """ + " """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] return val @@ -166,3 +141,4 @@ def higher_stop_band(self) -> float: val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py index 9ff7f96311c..22b92318463 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyTerminator(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -52,7 +28,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -64,7 +40,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -77,7 +53,7 @@ class PortLocationOption(Enum): def port_location(self) -> PortLocationOption: """Port Location "Defines the orientation of the terminator.." - " """ + " """ val = self._get_property("Port Location") val = self.PortLocationOption[val] return val @@ -95,6 +71,7 @@ def vswr(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py index b21d8fbd140..a9f9927707e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -66,7 +41,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -83,7 +58,7 @@ def filename(self) -> str: def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File "Coupling data generated by Savant and exported as a matched file." - " """ + " """ val = self._get_property("Savant Matched Coupling File") return val @@ -101,7 +76,7 @@ def port_antenna_assignment(self): """Port-Antenna Assignment "Maps each port in the coupling file to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Port-Antenna Assignment") return val @@ -109,6 +84,7 @@ def port_antenna_assignment(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py index 47bfbe5c576..98133b2cbd6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -48,7 +24,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -56,7 +32,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -82,7 +58,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -141,7 +117,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -235,3 +211,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py index dd1aa24dc2b..a7be1da91db 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -39,9 +15,9 @@ def parent(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): " Value should be between -200 and 150." """ return self._get_table_data() @@ -56,7 +32,7 @@ class NoiseBehaviorOption(Enum): def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior "Specifies the behavior of the parametric noise profile." - " """ + " """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] return val @@ -69,3 +45,4 @@ def use_log_linear_interpolation(self) -> bool: """ val = self._get_property("Use Log-Linear Interpolation") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py index 85f7ca097ce..12972cfb8b9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -43,7 +19,8 @@ class HarmonicTableUnitsOption(Enum): def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units "Specifies the units for the Harmonics." - " """ + " """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py index 716e0cae37e..9660e6d4202 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class ReadOnlyTxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -57,7 +32,7 @@ def source_file(self) -> str: def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -99,3 +74,4 @@ def exclude_harmonics_below_noise(self) -> bool: """ val = self._get_property("Exclude Harmonics Below Noise") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py index b88d728a0f2..67a7ef80291 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -43,7 +19,7 @@ class NarrowbandBehaviorOption(Enum): def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." - " """ + " """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] return val @@ -52,7 +28,8 @@ def narrowband_behavior(self) -> NarrowbandBehaviorOption: def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - " """ + " """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py index 831ce3be5eb..fb0b314db64 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class ReadOnlyTxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -39,7 +14,7 @@ def parent(self): def output_voltage_peak(self) -> float: """Output Voltage Peak "Output High Voltage Level: maximum voltage of the digital signal." - " """ + " """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") return val @@ -101,7 +76,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ @@ -136,3 +111,4 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py index d19f8771c4a..5ed120accb3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -43,7 +19,7 @@ class SpectrumTypeOption(Enum): def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type "Specifies EMI Margins to calculate." - " """ + " """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] return val @@ -56,7 +32,7 @@ class TxPowerOption(Enum): def tx_power(self) -> TxPowerOption: """Tx Power "Method used to specify the power." - " """ + " """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] return val @@ -109,7 +85,7 @@ class HarmonicTaperOption(Enum): def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper "Taper type used to set amplitude of harmonics." - " """ + " """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] return val @@ -225,7 +201,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ @@ -260,3 +236,4 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py index 46822f23973..4e01d323a9a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyTxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -37,13 +13,13 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -56,7 +32,8 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py index 3346ddc8371..a809657ca7f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -48,7 +24,7 @@ def enabled(self) -> bool: def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -56,7 +32,7 @@ def base_antenna(self) -> EmitNode: def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -82,7 +58,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -94,7 +70,7 @@ class PathLossTypeOption(Enum): def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type "Specify LOS vs NLOS for the Walfisch-Ikegami model." - " """ + " """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] return val @@ -107,7 +83,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Walfisch model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -188,7 +164,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -282,3 +258,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py index d14ee543959..d86e733ab8f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ReadOnlyWaveform(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -39,7 +15,7 @@ def parent(self): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") return val @@ -54,7 +30,7 @@ class WaveformOption(Enum): def waveform(self) -> WaveformOption: """Waveform "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Waveform") val = self.WaveformOption[val] return val @@ -117,7 +93,7 @@ class SpreadingTypeOption(Enum): def spreading_type(self) -> SpreadingTypeOption: """Spreading Type "Type of spreading employed by the Spread Spectrum Clock." - " """ + " """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] return val @@ -143,7 +119,7 @@ def imported_spectrum(self) -> str: def raw_data_format(self) -> str: """Raw Data Format "Format of the imported raw data." - " """ + " """ val = self._get_property("Raw Data Format") return val @@ -201,7 +177,7 @@ class AlgorithmOption(Enum): def algorithm(self) -> AlgorithmOption: """Algorithm "Algorithm used to transform the imported time domain spectrum." - " """ + " """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] return val @@ -220,7 +196,7 @@ def start_time(self) -> float: def stop_time(self) -> float: """Stop Time "Final time of the imported time domain spectrum." - " """ + " """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") return val @@ -250,7 +226,7 @@ class WindowTypeOption(Enum): def window_type(self) -> WindowTypeOption: """Window Type "Windowing scheme used for importing time domain spectrum." - " """ + " """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] return val @@ -319,3 +295,4 @@ def delay_skew(self) -> float: val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py index 5eeeea8183f..1839f83c329 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class ResultPlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -42,13 +18,13 @@ def export_model(self, file_name): def title(self) -> str: """Title "Enter title at the top of the plot, room will be made for it." - " """ + " """ val = self._get_property("Title") return val @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Title={value}"]) @property def title_font(self): @@ -61,7 +37,7 @@ def title_font(self): @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -74,7 +50,7 @@ def show_legend(self) -> bool: @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Legend={value}"]) @property def legend_font(self): @@ -87,7 +63,7 @@ def legend_font(self): @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Legend Font={value}"]) @property def show_emi_thresholds(self) -> bool: @@ -100,7 +76,7 @@ def show_emi_thresholds(self) -> bool: @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show EMI Thresholds={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show EMI Thresholds={value}"]) @property def display_cad_overlay(self) -> bool: @@ -113,7 +89,7 @@ def display_cad_overlay(self) -> bool: @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -125,20 +101,20 @@ def opacity(self) -> float: return val @opacity.setter - def opacity(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) + def opacity(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset "Adjust vertical position of CAD model overlay." - " """ + " """ val = self._get_property("Vertical Offset") return val @vertical_offset.setter - def vertical_offset(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) + def vertical_offset(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -150,8 +126,8 @@ def range_axis_rotation(self) -> float: return val @range_axis_rotation.setter - def range_axis_rotation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -164,55 +140,55 @@ def lock_axes(self) -> bool: @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min "Set lower extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Min") return val @x_axis_min.setter - def x_axis_min(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) + def x_axis_min(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max "Set upper extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Max") return val @x_axis_max.setter - def x_axis_max(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) + def x_axis_max(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min "Set lower extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Min") return val @y_axis_min.setter - def y_axis_min(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) + def y_axis_min(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max "Set upper extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Max") return val @y_axis_max.setter - def y_axis_max(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) + def y_axis_max(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -224,8 +200,8 @@ def y_axis_range(self) -> float: return val @y_axis_range.setter - def y_axis_range(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) + def y_axis_range(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y-axis Range={value}"]) @property def max_major_ticks(self) -> int: @@ -238,7 +214,7 @@ def max_major_ticks(self) -> int: @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Major Ticks={value}"]) @property def max_minor_ticks(self) -> int: @@ -251,7 +227,7 @@ def max_minor_ticks(self) -> int: @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Minor Ticks={value}"]) @property def max_major_ticks(self) -> int: @@ -264,7 +240,7 @@ def max_major_ticks(self) -> int: @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Major Ticks={value}"]) @property def max_minor_ticks(self) -> int: @@ -277,7 +253,7 @@ def max_minor_ticks(self) -> int: @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Minor Ticks={value}"]) @property def axis_label_font(self): @@ -290,7 +266,7 @@ def axis_label_font(self): @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -303,7 +279,7 @@ def axis_tick_label_font(self): @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -317,16 +293,14 @@ class MajorGridLineStyleOption(Enum): def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style "Select line style of major-tick grid lines." - " """ + " """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] return val @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Major Grid Line Style={value.value}"]) @property def major_grid_color(self): @@ -339,7 +313,7 @@ def major_grid_color(self): @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -353,16 +327,14 @@ class MinorGridLineStyleOption(Enum): def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style "Select line style of minor-tick grid lines." - " """ + " """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] return val @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Minor Grid Line Style={value.value}"]) @property def minor_grid_color(self): @@ -375,7 +347,7 @@ def minor_grid_color(self): @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Minor Grid Color={value}"]) @property def background_color(self): @@ -388,7 +360,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -400,16 +372,14 @@ class BBPowerforPlotsUnitOption(Enum): def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit "Units to use for plotting broadband power densities." - " """ + " """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] return val @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"BB Power for Plots Unit={value.value}"]) @property def bb_power_bandwidth(self) -> float: @@ -422,9 +392,9 @@ def bb_power_bandwidth(self) -> float: return val @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value: float | str): + def bb_power_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -437,4 +407,5 @@ def log_scale(self) -> bool: @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Log Scale={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py index 416c79a619e..9cb705d3dc5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class RfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -46,7 +21,7 @@ def enable_passive_noise(self) -> bool: @enable_passive_noise.setter def enable_passive_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Passive Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Passive Noise={value}"]) @property def enforce_thermal_noise_floor(self) -> bool: @@ -59,6 +34,5 @@ def enforce_thermal_noise_floor(self) -> bool: @enforce_thermal_noise_floor.setter def enforce_thermal_noise_floor(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Enforce Thermal Noise Floor={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enforce Thermal Noise Floor={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py index 426192c03b7..0453cf0e0c1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class RxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -65,7 +41,7 @@ def source_file(self) -> str: def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -79,14 +55,14 @@ class MeasurementModeOption(Enum): def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode "Defines the mode for the receiver measurement." - " """ + " """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] return val @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Measurement Mode={value.value}"]) @property def sinad_threshold(self) -> float: @@ -98,8 +74,8 @@ def sinad_threshold(self) -> float: return val @sinad_threshold.setter - def sinad_threshold(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SINAD Threshold={value}"]) + def sinad_threshold(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"SINAD Threshold={value}"]) @property def gps_cnr_threshold(self) -> float: @@ -111,8 +87,8 @@ def gps_cnr_threshold(self) -> float: return val @gps_cnr_threshold.setter - def gps_cnr_threshold(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GPS CNR Threshold={value}"]) + def gps_cnr_threshold(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"GPS CNR Threshold={value}"]) @property def ber_threshold(self) -> float: @@ -124,8 +100,8 @@ def ber_threshold(self) -> float: return val @ber_threshold.setter - def ber_threshold(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BER Threshold={value}"]) + def ber_threshold(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"BER Threshold={value}"]) @property def default_intended_power(self) -> bool: @@ -138,7 +114,7 @@ def default_intended_power(self) -> bool: @default_intended_power.setter def default_intended_power(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Default Intended Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Default Intended Power={value}"]) @property def intended_signal_power(self) -> float: @@ -150,8 +126,8 @@ def intended_signal_power(self) -> float: return val @intended_signal_power.setter - def intended_signal_power(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Intended Signal Power={value}"]) + def intended_signal_power(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Intended Signal Power={value}"]) @property def freq_deviation(self) -> float: @@ -164,9 +140,9 @@ def freq_deviation(self) -> float: return val @freq_deviation.setter - def freq_deviation(self, value: float | str): + def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Freq. Deviation={value}"]) @property def modulation_depth(self) -> float: @@ -178,8 +154,8 @@ def modulation_depth(self) -> float: return val @modulation_depth.setter - def modulation_depth(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Depth={value}"]) + def modulation_depth(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Modulation Depth={value}"]) @property def measure_selectivity(self) -> bool: @@ -192,7 +168,7 @@ def measure_selectivity(self) -> bool: @measure_selectivity.setter def measure_selectivity(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Selectivity={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Measure Selectivity={value}"]) @property def measure_mixer_products(self) -> bool: @@ -205,7 +181,7 @@ def measure_mixer_products(self) -> bool: @measure_mixer_products.setter def measure_mixer_products(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Mixer Products={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Measure Mixer Products={value}"]) @property def max_rf_order(self) -> int: @@ -218,7 +194,7 @@ def max_rf_order(self) -> int: @max_rf_order.setter def max_rf_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max RF Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max RF Order={value}"]) @property def max_lo_order(self) -> int: @@ -231,7 +207,7 @@ def max_lo_order(self) -> int: @max_lo_order.setter def max_lo_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max LO Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max LO Order={value}"]) @property def include_if(self) -> bool: @@ -244,7 +220,7 @@ def include_if(self) -> bool: @include_if.setter def include_if(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include IF={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include IF={value}"]) @property def measure_saturation(self) -> bool: @@ -257,7 +233,7 @@ def measure_saturation(self) -> bool: @measure_saturation.setter def measure_saturation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Saturation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Measure Saturation={value}"]) @property def use_ams_limits(self) -> bool: @@ -270,7 +246,7 @@ def use_ams_limits(self) -> bool: @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -283,9 +259,9 @@ def start_frequency(self) -> float: return val @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -298,9 +274,9 @@ def stop_frequency(self) -> float: return val @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop Frequency={value}"]) @property def samples(self) -> int: @@ -313,7 +289,7 @@ def samples(self) -> int: @samples.setter def samples(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Samples={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Samples={value}"]) @property def exclude_mixer_products_below_noise(self) -> bool: @@ -326,15 +302,14 @@ def exclude_mixer_products_below_noise(self) -> bool: @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Exclude Mixer Products Below Noise={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Exclude Mixer Products Below Noise={value}"]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py index 85899d6270b..d5a50e1decf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class RxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -37,7 +13,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -46,11 +22,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) class MixerProductTaperOption(Enum): CONSTANT = "Constant" @@ -61,16 +37,14 @@ class MixerProductTaperOption(Enum): def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper "Taper for setting amplitude of mixer products." - " """ + " """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] return val @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Taper={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mixer Product Taper={value.value}"]) @property def mixer_product_susceptibility(self) -> float: @@ -82,10 +56,8 @@ def mixer_product_susceptibility(self) -> float: return val @mixer_product_susceptibility.setter - def mixer_product_susceptibility(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Susceptibility={value}"] - ) + def mixer_product_susceptibility(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mixer Product Susceptibility={value}"]) @property def spurious_rejection(self) -> float: @@ -97,8 +69,8 @@ def spurious_rejection(self) -> float: return val @spurious_rejection.setter - def spurious_rejection(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spurious Rejection={value}"]) + def spurious_rejection(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Spurious Rejection={value}"]) @property def minimum_tuning_frequency(self) -> float: @@ -111,9 +83,9 @@ def minimum_tuning_frequency(self) -> float: return val @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value: float | str): + def minimum_tuning_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Minimum Tuning Frequency={value}"]) @property def maximum_tuning_frequency(self) -> float: @@ -126,9 +98,9 @@ def maximum_tuning_frequency(self) -> float: return val @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value: float | str): + def maximum_tuning_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Maximum Tuning Frequency={value}"]) @property def mixer_product_slope(self) -> float: @@ -140,8 +112,8 @@ def mixer_product_slope(self) -> float: return val @mixer_product_slope.setter - def mixer_product_slope(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Slope={value}"]) + def mixer_product_slope(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mixer Product Slope={value}"]) @property def mixer_product_intercept(self) -> float: @@ -153,8 +125,8 @@ def mixer_product_intercept(self) -> float: return val @mixer_product_intercept.setter - def mixer_product_intercept(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Intercept={value}"]) + def mixer_product_intercept(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mixer Product Intercept={value}"]) @property def bandwidth_80_db(self) -> float: @@ -167,9 +139,9 @@ def bandwidth_80_db(self) -> float: return val @bandwidth_80_db.setter - def bandwidth_80_db(self, value: float | str): + def bandwidth_80_db(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 80 dB={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bandwidth 80 dB={value}"]) @property def image_rejection(self) -> float: @@ -181,8 +153,8 @@ def image_rejection(self) -> float: return val @image_rejection.setter - def image_rejection(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Image Rejection={value}"]) + def image_rejection(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Image Rejection={value}"]) @property def maximum_rf_harmonic_order(self) -> int: @@ -195,9 +167,7 @@ def maximum_rf_harmonic_order(self) -> int: @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Maximum RF Harmonic Order={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Maximum RF Harmonic Order={value}"]) @property def maximum_lo_harmonic_order(self) -> int: @@ -210,9 +180,7 @@ def maximum_lo_harmonic_order(self) -> int: @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Maximum LO Harmonic Order={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Maximum LO Harmonic Order={value}"]) class MixingModeOption(Enum): LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" @@ -223,14 +191,14 @@ class MixingModeOption(Enum): def mixing_mode(self) -> MixingModeOption: """Mixing Mode "Specifies whether the IF frequency is > or < RF channel frequency." - " """ + " """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] return val @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixing Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mixing Mode={value.value}"]) @property def first_if_frequency(self): @@ -243,21 +211,21 @@ def first_if_frequency(self): @first_if_frequency.setter def first_if_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First IF Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"First IF Frequency={value}"]) @property def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." - " """ + " """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @rf_transition_frequency.setter - def rf_transition_frequency(self, value: float | str): + def rf_transition_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"RF Transition Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"RF Transition Frequency={value}"]) class UseHighLOOption(Enum): ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" @@ -267,14 +235,14 @@ class UseHighLOOption(Enum): def use_high_lo(self) -> UseHighLOOption: """Use High LO "Use High LO above/below the transition frequency." - " """ + " """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] return val @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use High LO={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use High LO={value.value}"]) class MixerProductTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -284,13 +252,12 @@ class MixerProductTableUnitsOption(Enum): def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units "Specifies the units for the Mixer Products." - " """ + " """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] return val @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Table Units={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mixer Product Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py index 7ba3bbddc59..d83a3a9bd76 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class RxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -37,7 +12,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -46,8 +21,9 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py index 8a8b14f2ebe..6c0f8c99a39 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class RxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -37,7 +12,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -46,11 +21,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) @property def use_arithmetic_mean(self) -> bool: @@ -63,4 +38,5 @@ def use_arithmetic_mean(self) -> bool: @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Arithmetic Mean={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use Arithmetic Mean={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py index 72aba1fda70..0388a7c3d14 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class RxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -37,7 +13,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -45,13 +21,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -63,11 +39,11 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) class SpurTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -77,11 +53,12 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Spur Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py index ccb9101c8cd..79ee5b42b91 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class RxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -38,11 +14,11 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) class SensitivityUnitsOption(Enum): DBM = "dBm" @@ -54,18 +30,18 @@ class SensitivityUnitsOption(Enum): def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units "Units to use for the Rx Sensitivity." - " """ + " """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] return val @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sensitivity Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Sensitivity Units={value.value}"]) @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr "Received signal power level at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ @@ -73,8 +49,8 @@ def min_receive_signal_pwr_(self) -> float: return val @min_receive_signal_pwr_.setter - def min_receive_signal_pwr_(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min. Receive Signal Pwr ={value}"]) + def min_receive_signal_pwr_(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Min. Receive Signal Pwr ={value}"]) @property def snr_at_rx_signal_pwr(self) -> float: @@ -86,8 +62,8 @@ def snr_at_rx_signal_pwr(self) -> float: return val @snr_at_rx_signal_pwr.setter - def snr_at_rx_signal_pwr(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR at Rx Signal Pwr={value}"]) + def snr_at_rx_signal_pwr(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"SNR at Rx Signal Pwr={value}"]) @property def processing_gain(self) -> float: @@ -99,8 +75,8 @@ def processing_gain(self) -> float: return val @processing_gain.setter - def processing_gain(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Processing Gain={value}"]) + def processing_gain(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Processing Gain={value}"]) @property def apply_pg_to_narrowband_only(self) -> bool: @@ -113,9 +89,7 @@ def apply_pg_to_narrowband_only(self) -> bool: @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Apply PG to Narrowband Only={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Apply PG to Narrowband Only={value}"]) @property def saturation_level(self) -> float: @@ -128,9 +102,9 @@ def saturation_level(self) -> float: return val @saturation_level.setter - def saturation_level(self, value: float | str): + def saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Saturation Level={value}"]) @property def rx_noise_figure(self) -> float: @@ -142,12 +116,12 @@ def rx_noise_figure(self) -> float: return val @rx_noise_figure.setter - def rx_noise_figure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rx Noise Figure={value}"]) + def rx_noise_figure(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rx Noise Figure={value}"]) @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." "Value should be between -1000 and 1000." """ @@ -156,13 +130,13 @@ def receiver_sensitivity_(self) -> float: return val @receiver_sensitivity_.setter - def receiver_sensitivity_(self, value: float | str): + def receiver_sensitivity_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver Sensitivity ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Receiver Sensitivity ={value}"]) @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity "SNR or SINAD at the specified sensitivity level." "Value should be between -1000 and 1000." """ @@ -170,10 +144,8 @@ def snrsinad_at_sensitivity_(self) -> float: return val @snrsinad_at_sensitivity_.setter - def snrsinad_at_sensitivity_(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"SNR/SINAD at Sensitivity ={value}"] - ) + def snrsinad_at_sensitivity_(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"SNR/SINAD at Sensitivity ={value}"]) @property def perform_rx_intermod_analysis(self) -> bool: @@ -186,9 +158,7 @@ def perform_rx_intermod_analysis(self) -> bool: @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Rx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Perform Rx Intermod Analysis={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -201,15 +171,13 @@ def amplifier_saturation_level(self) -> float: return val @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." "Value should be between -1000 and 1000." """ @@ -218,9 +186,9 @@ def p1_db_point_ref_input_(self) -> float: return val @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -233,9 +201,9 @@ def ip3_ref_input(self) -> float: return val @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"IP3, Ref. Input={value}"]) @property def max_intermod_order(self) -> int: @@ -248,4 +216,5 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py index 67306291569..fb178592b71 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class SamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -37,11 +13,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Min: + "Min: " Value should be greater than 1." - "Max: + "Max: " Value should be greater than 1." """ return self._get_table_data() @@ -59,14 +35,14 @@ class SamplingTypeOption(Enum): def sampling_type(self) -> SamplingTypeOption: """Sampling Type "Sampling to apply to this configuration." - " """ + " """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] return val @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sampling Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Sampling Type={value.value}"]) @property def specify_percentage(self) -> bool: @@ -79,7 +55,7 @@ def specify_percentage(self) -> bool: @specify_percentage.setter def specify_percentage(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Specify Percentage={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Specify Percentage={value}"]) @property def percentage_of_channels(self) -> float: @@ -91,8 +67,8 @@ def percentage_of_channels(self) -> float: return val @percentage_of_channels.setter - def percentage_of_channels(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percentage of Channels={value}"]) + def percentage_of_channels(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Percentage of Channels={value}"]) @property def max__channelsrangeband(self) -> int: @@ -105,9 +81,7 @@ def max__channelsrangeband(self) -> int: @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Max # Channels/Range/Band={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max # Channels/Range/Band={value}"]) @property def seed(self) -> int: @@ -120,13 +94,13 @@ def seed(self) -> int: @seed.setter def seed(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Seed={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Seed={value}"]) @property def total_tx_channels(self) -> int: """Total Tx Channels "Total number of transmit channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Tx Channels") return val @@ -134,7 +108,7 @@ def total_tx_channels(self) -> int: def total_rx_channels(self) -> int: """Total Rx Channels "Total number of receive channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Rx Channels") return val @@ -142,6 +116,7 @@ def total_rx_channels(self) -> int: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py index 67f251962d5..e71d86c3dce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class SceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -62,9 +38,7 @@ def show_relative_coordinates(self) -> bool: @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Relative Coordinates={value}"]) @property def position(self): @@ -77,7 +51,7 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position={value}"]) @property def relative_position(self): @@ -90,7 +64,7 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -100,14 +74,14 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -120,7 +94,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation={value}"]) @property def relative_orientation(self): @@ -133,7 +107,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Relative Orientation={value}"]) @property def show_axes(self) -> bool: @@ -146,7 +120,7 @@ def show_axes(self) -> bool: @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Axes={value}"]) @property def box_color(self): @@ -159,16 +133,17 @@ def box_color(self): @box_color.setter def box_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Box Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Box Color={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py index b927d838658..32d4c6ce54f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class SelectivityTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -51,13 +27,13 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) @property def visible(self) -> bool: @@ -70,7 +46,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -83,19 +59,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -109,14 +85,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -129,7 +105,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -142,7 +118,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -165,14 +141,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -185,7 +161,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -198,7 +174,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -211,7 +187,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -224,4 +200,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py index 19c31482ddb..28763dd444d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class SolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -46,7 +21,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -59,7 +34,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -72,16 +47,17 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py index 5ca2220cdca..0f6ba8021bf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class SolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -46,4 +21,5 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py new file mode 100644 index 00000000000..476d51a9e12 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py @@ -0,0 +1,91 @@ +from ..EmitNode import EmitNode + +class Sparameter(EmitNode): + def __init__(self, oDesign, result_id, node_id): + self._is_component = True + EmitNode.__init__(self, oDesign, result_id, node_id) + + def rename(self, new_name): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def file(self) -> str: + """File + "S-Parameter file defining the component." + "Value should be a full file path." + """ + val = self._get_property('File') + return val + + @file.setter + def file(self, value: str): + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['File=' + value]) + + @property + def noise_temperature(self) -> float: + """Noise Temperature + "System Noise temperature (K) of the component." + "Value should be between 0 and 1000." + """ + val = self._get_property('Noise Temperature') + return val + + @noise_temperature.setter + def noise_temperature(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) + + @property + def notes(self) -> str: + """Notes + "Expand to view/edit notes stored with the project." + " """ + val = self._get_property('Notes') + return val + + @notes.setter + def notes(self, value: str): + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) + + @property + def radio_side_ports(self): + """Radio Side Ports + "Assigns the child port nodes to the multiplexers ports." + "A list of values." + " """ + val = self._get_property('Radio Side Ports') + return val + + @radio_side_ports.setter + def radio_side_ports(self, value): + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Radio Side Ports=' + value]) + + @property + def antenna_side_ports(self): + """Antenna Side Ports + "Assigns the child port nodes to the multiplexers ports." + "A list of values." + " """ + val = self._get_property('Antenna Side Ports') + return val + + @antenna_side_ports.setter + def antenna_side_ports(self, value): + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna Side Ports=' + value]) + + @property + def warnings(self) -> str: + """Warnings + "Warning(s) for this node." + " """ + val = self._get_property('Warnings') + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py index 56d4ef8b08c..09aa223b269 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class SpurTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -51,19 +27,19 @@ def delete(self): def channel_frequency(self): """Channel Frequency "Select band channel frequency to display." - " """ + " """ val = self._get_property("Channel Frequency") return val @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -72,13 +48,13 @@ def transmit_frequency(self) -> float: def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) @property def visible(self) -> bool: @@ -91,7 +67,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -104,19 +80,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -130,14 +106,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -150,7 +126,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -163,7 +139,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -186,14 +162,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -206,7 +182,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -219,7 +195,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -232,7 +208,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -245,4 +221,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py index c2a01c1f904..5d770b8532e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class TRSwitchTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -58,7 +34,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Input Port={value}"]) @property def output_port(self) -> int: @@ -71,19 +47,19 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,7 +72,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -109,19 +85,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -135,14 +111,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -155,7 +131,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -168,7 +144,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -191,14 +167,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -211,7 +187,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -224,7 +200,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -237,7 +213,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -250,4 +226,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index 28530bbb025..ad1bbbca649 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class TR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -53,7 +28,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,20 +40,20 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) class TxPortOption(Enum): PORT_1 = "Port 1" @@ -88,14 +63,14 @@ class TxPortOption(Enum): def tx_port(self) -> TxPortOption: """Tx Port "Specifies which port on the TR Switch is part of the Tx path.." - " """ + " """ val = self._get_property("Tx Port") val = self.TxPortOption[val] return val @tx_port.setter def tx_port(self, value: TxPortOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Port={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tx Port={value.value}"]) class CommonPortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -105,16 +80,14 @@ class CommonPortLocationOption(Enum): def common_port_location(self) -> CommonPortLocationOption: """Common Port Location "Defines the orientation of the tr switch.." - " """ + " """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] return val @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Common Port Location={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Common Port Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -126,8 +99,8 @@ def insertion_loss(self) -> float: return val @insertion_loss.setter - def insertion_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Insertion Loss={value}"]) @property def finite_isolation(self) -> bool: @@ -140,7 +113,7 @@ def finite_isolation(self) -> bool: @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -152,8 +125,8 @@ def isolation(self) -> float: return val @isolation.setter - def isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) + def isolation(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -166,7 +139,7 @@ def finite_bandwidth(self) -> bool: @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -178,8 +151,8 @@ def out_of_band_attenuation(self) -> float: return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -192,9 +165,9 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -207,9 +180,9 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -222,9 +195,9 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -237,6 +210,7 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index 11c88a08c47..9deeee5f183 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class Terminator(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -53,7 +29,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,20 +41,20 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -88,14 +64,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) class PortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -105,14 +81,14 @@ class PortLocationOption(Enum): def port_location(self) -> PortLocationOption: """Port Location "Defines the orientation of the terminator.." - " """ + " """ val = self._get_property("Port Location") val = self.PortLocationOption[val] return val @port_location.setter def port_location(self, value: PortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port Location={value.value}"]) @property def vswr(self) -> float: @@ -124,13 +100,14 @@ def vswr(self) -> float: return val @vswr.setter - def vswr(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) + def vswr(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"VSWR={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py index 2e93eeabad4..d48cb572591 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class TestNoiseTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -58,7 +34,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Input Port={value}"]) @property def output_port(self) -> int: @@ -71,19 +47,19 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,7 +72,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -109,19 +85,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -135,14 +111,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -155,7 +131,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -168,7 +144,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -191,14 +167,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -211,7 +187,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -224,7 +200,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -237,7 +213,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -250,7 +226,7 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -263,9 +239,9 @@ def frequency_1(self) -> float: return val @frequency_1.setter - def frequency_1(self, value: float | str): + def frequency_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -278,9 +254,9 @@ def amplitude_1(self) -> float: return val @amplitude_1.setter - def amplitude_1(self, value: float | str): + def amplitude_1(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -293,9 +269,9 @@ def bandwidth_1(self) -> float: return val @bandwidth_1.setter - def bandwidth_1(self, value: float | str): + def bandwidth_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -308,9 +284,9 @@ def frequency_2(self) -> float: return val @frequency_2.setter - def frequency_2(self, value: float | str): + def frequency_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -323,9 +299,9 @@ def amplitude_2(self) -> float: return val @amplitude_2.setter - def amplitude_2(self, value: float | str): + def amplitude_2(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -338,9 +314,9 @@ def bandwidth_2(self) -> float: return val @bandwidth_2.setter - def bandwidth_2(self, value: float | str): + def bandwidth_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -352,5 +328,6 @@ def noise_level(self) -> float: return val @noise_level.setter - def noise_level(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) + def noise_level(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Level={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py index 8784f3bfd94..95fa62b6506 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py @@ -1,31 +1,7 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class TopLevelSimulation(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py index ea4383bd7ee..571e839921c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class TouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -58,7 +33,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -71,7 +46,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -84,19 +59,19 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) @property def filename(self) -> str: @@ -109,13 +84,13 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File "Coupling data generated by Savant and exported as a matched file." - " """ + " """ val = self._get_property("Savant Matched Coupling File") return val @@ -130,29 +105,30 @@ def enable_em_isolation(self) -> bool: @enable_em_isolation.setter def enable_em_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable EM Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable EM Isolation={value}"]) @property def port_antenna_assignment(self): """Port-Antenna Assignment "Maps each port in the coupling file to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Port-Antenna Assignment") return val @port_antenna_assignment.setter def port_antenna_assignment(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port-Antenna Assignment={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port-Antenna Assignment={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py index cdd646b88a0..0ff83db47f5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class TunableTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -58,7 +34,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Input Port={value}"]) @property def output_port(self) -> int: @@ -71,33 +47,33 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Output Port={value}"]) @property def frequency(self) -> float: """Frequency "Tunable filter center frequency." - " """ + " """ val = self._get_property("Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @frequency.setter - def frequency(self, value: float | str): + def frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Frequency={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) @property def visible(self) -> bool: @@ -110,7 +86,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -123,19 +99,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -149,14 +125,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -169,7 +145,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -182,7 +158,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -205,14 +181,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -225,7 +201,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -238,7 +214,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -251,7 +227,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -264,4 +240,5 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py index 1665b3ae570..563fe04d084 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -58,31 +34,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -95,7 +71,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -108,19 +84,19 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) @property def ground_reflection_coeff(self) -> float: @@ -132,8 +108,8 @@ def ground_reflection_coeff(self) -> float: return val @ground_reflection_coeff.setter - def ground_reflection_coeff(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ground Reflection Coeff.={value}"]) + def ground_reflection_coeff(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Ground Reflection Coeff.={value}"]) @property def pointspeak(self) -> int: @@ -146,7 +122,7 @@ def pointspeak(self) -> int: @pointspeak.setter def pointspeak(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Points/Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Points/Peak={value}"]) @property def custom_fading_margin(self) -> float: @@ -158,8 +134,8 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -171,8 +147,8 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -184,8 +160,8 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -197,14 +173,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -216,8 +192,8 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -229,8 +205,8 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -243,7 +219,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -255,8 +231,8 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -268,8 +244,8 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -281,8 +257,8 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -295,9 +271,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -309,8 +283,8 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -322,8 +296,8 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -335,7 +309,6 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py index 11225c36ce8..a1686ff5ea0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class TwoToneTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -58,7 +34,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Input Port={value}"]) @property def output_port(self) -> int: @@ -71,19 +47,19 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,7 +72,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -109,19 +85,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -135,14 +111,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) @property def line_width(self) -> int: @@ -155,7 +131,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) @property def line_color(self): @@ -168,7 +144,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -191,14 +167,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -211,7 +187,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) @property def symbol_color(self): @@ -224,7 +200,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -237,7 +213,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -250,7 +226,7 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -263,9 +239,9 @@ def frequency_1(self) -> float: return val @frequency_1.setter - def frequency_1(self, value: float | str): + def frequency_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -278,9 +254,9 @@ def amplitude_1(self) -> float: return val @amplitude_1.setter - def amplitude_1(self, value: float | str): + def amplitude_1(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -293,9 +269,9 @@ def bandwidth_1(self) -> float: return val @bandwidth_1.setter - def bandwidth_1(self, value: float | str): + def bandwidth_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -308,9 +284,9 @@ def frequency_2(self) -> float: return val @frequency_2.setter - def frequency_2(self, value: float | str): + def frequency_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -323,9 +299,9 @@ def amplitude_2(self) -> float: return val @amplitude_2.setter - def amplitude_2(self, value: float | str): + def amplitude_2(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -338,9 +314,9 @@ def bandwidth_2(self) -> float: return val @bandwidth_2.setter - def bandwidth_2(self, value: float | str): + def bandwidth_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -352,5 +328,6 @@ def noise_level(self) -> float: return val @noise_level.setter - def noise_level(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) + def noise_level(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Level={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py index a7e355d378e..b912ac33825 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class TxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -37,7 +13,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -47,9 +23,9 @@ def delete(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): " Value should be between -200 and 150." """ return self._get_table_data() @@ -61,11 +37,11 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) class NoiseBehaviorOption(Enum): ABSOLUTE = "Absolute" @@ -77,14 +53,14 @@ class NoiseBehaviorOption(Enum): def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior "Specifies the behavior of the parametric noise profile." - " """ + " """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] return val @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Behavior={value.value}"]) @property def use_log_linear_interpolation(self) -> bool: @@ -97,6 +73,5 @@ def use_log_linear_interpolation(self) -> bool: @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use Log-Linear Interpolation={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py index d295f19f7c9..61a457594cf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class TxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -37,7 +13,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -46,11 +22,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) class HarmonicTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -60,13 +36,12 @@ class HarmonicTableUnitsOption(Enum): def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units "Specifies the units for the Harmonics." - " """ + " """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] return val @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Harmonic Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py index 2ae49fcca56..dc0b904992c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class TxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -65,7 +40,7 @@ def source_file(self) -> str: def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -81,7 +56,7 @@ def use_ams_limits(self) -> bool: @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -94,9 +69,9 @@ def start_frequency(self) -> float: return val @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -109,9 +84,9 @@ def stop_frequency(self) -> float: return val @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop Frequency={value}"]) @property def exclude_harmonics_below_noise(self) -> bool: @@ -124,15 +99,14 @@ def exclude_harmonics_below_noise(self) -> bool: @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Exclude Harmonics Below Noise={value}"]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py index 32bba26bae7..65ac99edcca 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class TxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -37,7 +13,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -46,11 +22,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) class NarrowbandBehaviorOption(Enum): ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" @@ -60,27 +36,26 @@ class NarrowbandBehaviorOption(Enum): def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." - " """ + " """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] return val @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Narrowband Behavior={value.value}"]) @property def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - " """ + " """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @measurement_frequency.setter - def measurement_frequency(self, value: float | str): + def measurement_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Measurement Frequency={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py index 063b1a2eab1..c044f035034 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py @@ -1,29 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from ..EmitNode import EmitNode class TxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -38,25 +13,25 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) @property def output_voltage_peak(self) -> float: """Output Voltage Peak "Output High Voltage Level: maximum voltage of the digital signal." - " """ + " """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") return val @output_voltage_peak.setter - def output_voltage_peak(self, value: float | str): + def output_voltage_peak(self, value : float|str): value = self._convert_to_internal_units(value, "Voltage") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Voltage Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Output Voltage Peak={value}"]) @property def include_phase_noise(self) -> bool: @@ -69,7 +44,7 @@ def include_phase_noise(self) -> bool: @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -81,8 +56,8 @@ def tx_broadband_noise(self) -> float: return val @tx_broadband_noise.setter - def tx_broadband_noise(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tx Broadband Noise={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -95,9 +70,7 @@ def perform_tx_intermod_analysis(self) -> bool: @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Perform Tx Intermod Analysis={value}"]) @property def internal_amp_gain(self) -> float: @@ -109,8 +82,8 @@ def internal_amp_gain(self) -> float: return val @internal_amp_gain.setter - def internal_amp_gain(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -122,8 +95,8 @@ def noise_figure(self) -> float: return val @noise_figure.setter - def noise_figure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -136,15 +109,13 @@ def amplifier_saturation_level(self) -> float: return val @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ @@ -153,9 +124,9 @@ def p1_db_point_ref_input_(self) -> float: return val @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -168,9 +139,9 @@ def ip3_ref_input(self) -> float: return val @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -182,8 +153,8 @@ def reverse_isolation(self) -> float: return val @reverse_isolation.setter - def reverse_isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -196,4 +167,5 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py index c2204634707..b97214bd279 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class TxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -38,11 +14,11 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) class SpectrumTypeOption(Enum): NARROWBAND__BROADBAND = "Narrowband & Broadband" @@ -52,14 +28,14 @@ class SpectrumTypeOption(Enum): def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type "Specifies EMI Margins to calculate." - " """ + " """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] return val @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spectrum Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Spectrum Type={value.value}"]) class TxPowerOption(Enum): PEAK_POWER = "Peak Power" @@ -69,14 +45,14 @@ class TxPowerOption(Enum): def tx_power(self) -> TxPowerOption: """Tx Power "Method used to specify the power." - " """ + " """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] return val @tx_power.setter def tx_power(self, value: TxPowerOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Power={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tx Power={value.value}"]) @property def peak_power(self) -> float: @@ -89,9 +65,9 @@ def peak_power(self) -> float: return val @peak_power.setter - def peak_power(self, value: float | str): + def peak_power(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Peak Power={value}"]) @property def average_power(self) -> float: @@ -104,9 +80,9 @@ def average_power(self) -> float: return val @average_power.setter - def average_power(self, value: float | str): + def average_power(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Average Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Average Power={value}"]) @property def include_phase_noise(self) -> bool: @@ -119,7 +95,7 @@ def include_phase_noise(self) -> bool: @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -131,8 +107,8 @@ def tx_broadband_noise(self) -> float: return val @tx_broadband_noise.setter - def tx_broadband_noise(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tx Broadband Noise={value}"]) class HarmonicTaperOption(Enum): CONSTANT = "Constant" @@ -144,14 +120,14 @@ class HarmonicTaperOption(Enum): def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper "Taper type used to set amplitude of harmonics." - " """ + " """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] return val @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Harmonic Taper={value.value}"]) @property def harmonic_amplitude(self) -> float: @@ -163,8 +139,8 @@ def harmonic_amplitude(self) -> float: return val @harmonic_amplitude.setter - def harmonic_amplitude(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Amplitude={value}"]) + def harmonic_amplitude(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Harmonic Amplitude={value}"]) @property def harmonic_slope(self) -> float: @@ -176,8 +152,8 @@ def harmonic_slope(self) -> float: return val @harmonic_slope.setter - def harmonic_slope(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Slope={value}"]) + def harmonic_slope(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Harmonic Slope={value}"]) @property def harmonic_intercept(self) -> float: @@ -189,8 +165,8 @@ def harmonic_intercept(self) -> float: return val @harmonic_intercept.setter - def harmonic_intercept(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Intercept={value}"]) + def harmonic_intercept(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Harmonic Intercept={value}"]) @property def enable_harmonic_bw_expansion(self) -> bool: @@ -203,9 +179,7 @@ def enable_harmonic_bw_expansion(self) -> bool: @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Enable Harmonic BW Expansion={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Harmonic BW Expansion={value}"]) @property def number_of_harmonics(self) -> int: @@ -218,7 +192,7 @@ def number_of_harmonics(self) -> int: @number_of_harmonics.setter def number_of_harmonics(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Harmonics={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Number of Harmonics={value}"]) @property def second_harmonic_level(self) -> float: @@ -230,8 +204,8 @@ def second_harmonic_level(self) -> float: return val @second_harmonic_level.setter - def second_harmonic_level(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Second Harmonic Level={value}"]) + def second_harmonic_level(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Second Harmonic Level={value}"]) @property def third_harmonic_level(self) -> float: @@ -243,8 +217,8 @@ def third_harmonic_level(self) -> float: return val @third_harmonic_level.setter - def third_harmonic_level(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Third Harmonic Level={value}"]) + def third_harmonic_level(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Third Harmonic Level={value}"]) @property def other_harmonic_levels(self) -> float: @@ -256,8 +230,8 @@ def other_harmonic_levels(self) -> float: return val @other_harmonic_levels.setter - def other_harmonic_levels(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Other Harmonic Levels={value}"]) + def other_harmonic_levels(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Other Harmonic Levels={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -270,9 +244,7 @@ def perform_tx_intermod_analysis(self) -> bool: @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Perform Tx Intermod Analysis={value}"]) @property def internal_amp_gain(self) -> float: @@ -284,8 +256,8 @@ def internal_amp_gain(self) -> float: return val @internal_amp_gain.setter - def internal_amp_gain(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -297,8 +269,8 @@ def noise_figure(self) -> float: return val @noise_figure.setter - def noise_figure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -311,15 +283,13 @@ def amplifier_saturation_level(self) -> float: return val @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ @@ -328,9 +298,9 @@ def p1_db_point_ref_input_(self) -> float: return val @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -343,9 +313,9 @@ def ip3_ref_input(self) -> float: return val @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -357,8 +327,8 @@ def reverse_isolation(self) -> float: return val @reverse_isolation.setter - def reverse_isolation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -371,4 +341,5 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py index 717b87ae693..f51ee59c994 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class TxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -37,7 +13,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -45,13 +21,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -63,11 +39,11 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) class SpurTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -77,11 +53,12 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Spur Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py index 076ce5fb844..78518b19bee 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class WalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -58,31 +34,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -95,7 +71,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -108,19 +84,19 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) class PathLossTypeOption(Enum): LOS_URBAN_CANYON = "LOS (Urban Canyon)" @@ -130,14 +106,14 @@ class PathLossTypeOption(Enum): def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type "Specify LOS vs NLOS for the Walfisch-Ikegami model." - " """ + " """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] return val @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Path Loss Type={value.value}"]) class EnvironmentOption(Enum): DENSE_METRO = "Dense Metro" @@ -147,14 +123,14 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Walfisch model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Environment={value.value}"]) @property def roof_height(self) -> float: @@ -167,9 +143,9 @@ def roof_height(self) -> float: return val @roof_height.setter - def roof_height(self, value: float | str): + def roof_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Roof Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Roof Height={value}"]) @property def distance_between_buildings(self) -> float: @@ -182,11 +158,9 @@ def distance_between_buildings(self) -> float: return val @distance_between_buildings.setter - def distance_between_buildings(self, value: float | str): + def distance_between_buildings(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Distance Between Buildings={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Distance Between Buildings={value}"]) @property def street_width(self) -> float: @@ -199,9 +173,9 @@ def street_width(self) -> float: return val @street_width.setter - def street_width(self, value: float | str): + def street_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Street Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Street Width={value}"]) @property def incidence_angle(self) -> float: @@ -213,8 +187,8 @@ def incidence_angle(self) -> float: return val @incidence_angle.setter - def incidence_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Incidence Angle={value}"]) + def incidence_angle(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Incidence Angle={value}"]) @property def custom_fading_margin(self) -> float: @@ -226,8 +200,8 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -239,8 +213,8 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -252,8 +226,8 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -265,14 +239,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -284,8 +258,8 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -297,8 +271,8 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -311,7 +285,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -323,8 +297,8 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -336,8 +310,8 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -349,8 +323,8 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -363,9 +337,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -377,8 +349,8 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -390,8 +362,8 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -403,7 +375,6 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py index 495e93ea9f8..9e91eab3981 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py @@ -1,29 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import * - +from enum import Enum +from ..EmitNode import EmitNode class Waveform(EmitNode): def __init__(self, oDesign, result_id, node_id): @@ -38,23 +14,23 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) @property def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") return val @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port={value}"]) class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" @@ -67,14 +43,14 @@ class WaveformOption(Enum): def waveform(self) -> WaveformOption: """Waveform "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Waveform") val = self.WaveformOption[val] return val @waveform.setter def waveform(self, value: WaveformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Waveform={value.value}"]) @property def start_frequency(self) -> float: @@ -87,9 +63,9 @@ def start_frequency(self) -> float: return val @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -102,9 +78,9 @@ def stop_frequency(self) -> float: return val @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -117,9 +93,9 @@ def channel_spacing(self) -> float: return val @channel_spacing.setter - def channel_spacing(self, value: float | str): + def channel_spacing(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Channel Spacing={value}"]) @property def clock_duty_cycle(self) -> float: @@ -131,8 +107,8 @@ def clock_duty_cycle(self) -> float: return val @clock_duty_cycle.setter - def clock_duty_cycle(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Duty Cycle={value}"]) + def clock_duty_cycle(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Clock Duty Cycle={value}"]) @property def clock_risefall_time(self) -> float: @@ -145,9 +121,9 @@ def clock_risefall_time(self) -> float: return val @clock_risefall_time.setter - def clock_risefall_time(self, value: float | str): + def clock_risefall_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Rise/Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Clock Rise/Fall Time={value}"]) class SpreadingTypeOption(Enum): LOW_SPREAD = "Low Spread" @@ -158,14 +134,14 @@ class SpreadingTypeOption(Enum): def spreading_type(self) -> SpreadingTypeOption: """Spreading Type "Type of spreading employed by the Spread Spectrum Clock." - " """ + " """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] return val @spreading_type.setter def spreading_type(self, value: SpreadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spreading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Spreading Type={value.value}"]) @property def spread_percentage(self) -> float: @@ -177,8 +153,8 @@ def spread_percentage(self) -> float: return val @spread_percentage.setter - def spread_percentage(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spread Percentage={value}"]) + def spread_percentage(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Spread Percentage={value}"]) @property def imported_spectrum(self) -> str: @@ -190,13 +166,13 @@ def imported_spectrum(self) -> str: @imported_spectrum.setter def imported_spectrum(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Imported Spectrum={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Imported Spectrum={value}"]) @property def raw_data_format(self) -> str: """Raw Data Format "Format of the imported raw data." - " """ + " """ val = self._get_property("Raw Data Format") return val @@ -211,9 +187,9 @@ def system_impedance(self) -> float: return val @system_impedance.setter - def system_impedance(self, value: float | str): + def system_impedance(self, value : float|str): value = self._convert_to_internal_units(value, "Resistance") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"System Impedance={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"System Impedance={value}"]) @property def advanced_extraction_params(self) -> bool: @@ -226,9 +202,7 @@ def advanced_extraction_params(self) -> bool: @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Advanced Extraction Params={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Advanced Extraction Params={value}"]) @property def nb_window_size(self) -> float: @@ -240,8 +214,8 @@ def nb_window_size(self) -> float: return val @nb_window_size.setter - def nb_window_size(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Window Size={value}"]) + def nb_window_size(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"NB Window Size={value}"]) @property def bb_smoothing_factor(self) -> float: @@ -253,8 +227,8 @@ def bb_smoothing_factor(self) -> float: return val @bb_smoothing_factor.setter - def bb_smoothing_factor(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Smoothing Factor={value}"]) + def bb_smoothing_factor(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"BB Smoothing Factor={value}"]) @property def nb_detector_threshold(self) -> float: @@ -266,8 +240,8 @@ def nb_detector_threshold(self) -> float: return val @nb_detector_threshold.setter - def nb_detector_threshold(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Detector Threshold={value}"]) + def nb_detector_threshold(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"NB Detector Threshold={value}"]) class AlgorithmOption(Enum): FFT = "FFT" @@ -277,14 +251,14 @@ class AlgorithmOption(Enum): def algorithm(self) -> AlgorithmOption: """Algorithm "Algorithm used to transform the imported time domain spectrum." - " """ + " """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] return val @algorithm.setter def algorithm(self, value: AlgorithmOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Algorithm={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Algorithm={value.value}"]) @property def start_time(self) -> float: @@ -297,23 +271,23 @@ def start_time(self) -> float: return val @start_time.setter - def start_time(self, value: float | str): + def start_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Start Time={value}"]) @property def stop_time(self) -> float: """Stop Time "Final time of the imported time domain spectrum." - " """ + " """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") return val @stop_time.setter - def stop_time(self, value: float | str): + def stop_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop Time={value}"]) @property def max_frequency(self) -> float: @@ -326,9 +300,9 @@ def max_frequency(self) -> float: return val @max_frequency.setter - def max_frequency(self, value: float | str): + def max_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Frequency={value}"]) class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" @@ -345,14 +319,14 @@ class WindowTypeOption(Enum): def window_type(self) -> WindowTypeOption: """Window Type "Windowing scheme used for importing time domain spectrum." - " """ + " """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] return val @window_type.setter def window_type(self, value: WindowTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Window Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Window Type={value.value}"]) @property def kaiser_parameter(self) -> float: @@ -364,8 +338,8 @@ def kaiser_parameter(self) -> float: return val @kaiser_parameter.setter - def kaiser_parameter(self, value) -> float: - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Kaiser Parameter={value}"]) + def kaiser_parameter(self, value : float) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Kaiser Parameter={value}"]) @property def adjust_coherent_gain(self) -> bool: @@ -378,7 +352,7 @@ def adjust_coherent_gain(self) -> bool: @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adjust Coherent Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adjust Coherent Gain={value}"]) @property def data_rate(self) -> float: @@ -391,9 +365,9 @@ def data_rate(self) -> float: return val @data_rate.setter - def data_rate(self, value: float | str): + def data_rate(self, value : float|str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Rate={value}"]) @property def num_of_bits(self) -> int: @@ -406,7 +380,7 @@ def num_of_bits(self) -> int: @num_of_bits.setter def num_of_bits(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Num of Bits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Num of Bits={value}"]) @property def use_envelope(self) -> bool: @@ -419,7 +393,7 @@ def use_envelope(self) -> bool: @use_envelope.setter def use_envelope(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Envelope={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use Envelope={value}"]) @property def min_ptsnull(self) -> int: @@ -432,7 +406,7 @@ def min_ptsnull(self) -> int: @min_ptsnull.setter def min_ptsnull(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pts/Null={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Min Pts/Null={value}"]) @property def delay_skew(self) -> float: @@ -445,6 +419,7 @@ def delay_skew(self) -> float: return val @delay_skew.setter - def delay_skew(self, value: float | str): + def delay_skew(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Delay Skew={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Delay Skew={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index 7f7a748aedf..bd6f8b1de0e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,27 +1,3 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from .Amplifier import Amplifier from .AntennaNode import AntennaNode from .AntennaPassband import AntennaPassband @@ -57,6 +33,38 @@ from .ProfileTraceNode import ProfileTraceNode from .PropagationLossCouplingNode import PropagationLossCouplingNode from .RadioNode import RadioNode +from .ResultPlotNode import ResultPlotNode +from .RfSystemGroup import RfSystemGroup +from .RxMeasNode import RxMeasNode +from .RxMixerProductNode import RxMixerProductNode +from .RxSaturationNode import RxSaturationNode +from .RxSelectivityNode import RxSelectivityNode +from .RxSpurNode import RxSpurNode +from .RxSusceptibilityProfNode import RxSusceptibilityProfNode +from .SamplingNode import SamplingNode +from .SceneGroupNode import SceneGroupNode +from .SelectivityTraceNode import SelectivityTraceNode +from .SolutionCouplingNode import SolutionCouplingNode +from .SolutionsNode import SolutionsNode +from .SpurTraceNode import SpurTraceNode +from .TR_Switch import TR_Switch +from .TRSwitchTraceNode import TRSwitchTraceNode +from .Terminator import Terminator +from .TestNoiseTraceNode import TestNoiseTraceNode +from .TopLevelSimulation import TopLevelSimulation +from .TouchstoneCouplingNode import TouchstoneCouplingNode +from .TunableTraceNode import TunableTraceNode +from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode +from .TwoToneTraceNode import TwoToneTraceNode +from .TxBbEmissionNode import TxBbEmissionNode +from .TxHarmonicNode import TxHarmonicNode +from .TxMeasNode import TxMeasNode +from .TxNbEmissionNode import TxNbEmissionNode +from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode +from .TxSpectralProfNode import TxSpectralProfNode +from .TxSpurNode import TxSpurNode +from .WalfischCouplingNode import WalfischCouplingNode +from .Waveform import Waveform from .ReadOnlyAmplifier import ReadOnlyAmplifier from .ReadOnlyAntennaNode import ReadOnlyAntennaNode from .ReadOnlyAntennaPassband import ReadOnlyAntennaPassband @@ -105,153 +113,121 @@ from .ReadOnlyTxSpurNode import ReadOnlyTxSpurNode from .ReadOnlyWalfischCouplingNode import ReadOnlyWalfischCouplingNode from .ReadOnlyWaveform import ReadOnlyWaveform -from .ResultPlotNode import ResultPlotNode -from .RfSystemGroup import RfSystemGroup -from .RxMeasNode import RxMeasNode -from .RxMixerProductNode import RxMixerProductNode -from .RxSaturationNode import RxSaturationNode -from .RxSelectivityNode import RxSelectivityNode -from .RxSpurNode import RxSpurNode -from .RxSusceptibilityProfNode import RxSusceptibilityProfNode -from .SamplingNode import SamplingNode -from .SceneGroupNode import SceneGroupNode -from .SelectivityTraceNode import SelectivityTraceNode -from .SolutionCouplingNode import SolutionCouplingNode -from .SolutionsNode import SolutionsNode -from .SpurTraceNode import SpurTraceNode -from .TRSwitchTraceNode import TRSwitchTraceNode -from .TR_Switch import TR_Switch -from .Terminator import Terminator -from .TestNoiseTraceNode import TestNoiseTraceNode -from .TopLevelSimulation import TopLevelSimulation -from .TouchstoneCouplingNode import TouchstoneCouplingNode -from .TunableTraceNode import TunableTraceNode -from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode -from .TwoToneTraceNode import TwoToneTraceNode -from .TxBbEmissionNode import TxBbEmissionNode -from .TxHarmonicNode import TxHarmonicNode -from .TxMeasNode import TxMeasNode -from .TxNbEmissionNode import TxNbEmissionNode -from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode -from .TxSpectralProfNode import TxSpectralProfNode -from .TxSpurNode import TxSpurNode -from .WalfischCouplingNode import WalfischCouplingNode -from .Waveform import Waveform __all__ = [ - "Amplifier", - "AntennaNode", - "AntennaPassband", - "Band", - "BandFolder", - "BandTraceNode", - "CADNode", - "Cable", - "CategoriesViewNode", - "Circulator", - "CouplingLinkNode", - "CouplingTraceNode", - "CouplingsNode", - "CustomCouplingNode", - "EmiPlotMarkerNode", - "EmitSceneNode", - "ErcegCouplingNode", - "Filter", - "FiveGChannelModel", - "HataCouplingNode", - "IndoorPropagationCouplingNode", - "Isolator", - "LogDistanceCouplingNode", - "MPlexBandTraceNode", - "Multiplexer", - "MultiplexerBand", - "OutboardTraceNode", - "ParametricCouplingTraceNode", - "PlotMarkerNode", - "PlotNode", - "PowerDivider", - "PowerTraceNode", - "ProfileTraceNode", - "PropagationLossCouplingNode", - "RadioNode", - "ResultPlotNode", - "RfSystemGroup", - "RxMeasNode", - "RxMixerProductNode", - "RxSaturationNode", - "RxSelectivityNode", - "RxSpurNode", - "RxSusceptibilityProfNode", - "SamplingNode", - "SceneGroupNode", - "SelectivityTraceNode", - "SolutionCouplingNode", - "SolutionsNode", - "SpurTraceNode", - "TR_Switch", - "TRSwitchTraceNode", - "Terminator", - "TestNoiseTraceNode", - "TopLevelSimulation", - "TouchstoneCouplingNode", - "TunableTraceNode", - "TwoRayPathLossCouplingNode", - "TwoToneTraceNode", - "TxBbEmissionNode", - "TxHarmonicNode", - "TxMeasNode", - "TxNbEmissionNode", - "TxSpectralProfEmitterNode", - "TxSpectralProfNode", - "TxSpurNode", - "WalfischCouplingNode", - "Waveform", - "ReadOnlyAmplifier", - "ReadOnlyAntennaNode", - "ReadOnlyAntennaPassband", - "ReadOnlyBand", - "ReadOnlyBandFolder", - "ReadOnlyCADNode", - "ReadOnlyCable", - "ReadOnlyCirculator", - "ReadOnlyCouplingLinkNode", - "ReadOnlyCouplingsNode", - "ReadOnlyCustomCouplingNode", - "ReadOnlyEmitSceneNode", - "ReadOnlyErcegCouplingNode", - "ReadOnlyFilter", - "ReadOnlyFiveGChannelModel", - "ReadOnlyHataCouplingNode", - "ReadOnlyIndoorPropagationCouplingNode", - "ReadOnlyIsolator", - "ReadOnlyLogDistanceCouplingNode", - "ReadOnlyMultiplexer", - "ReadOnlyMultiplexerBand", - "ReadOnlyPowerDivider", - "ReadOnlyPropagationLossCouplingNode", - "ReadOnlyRadioNode", - "ReadOnlyRfSystemGroup", - "ReadOnlyRxMeasNode", - "ReadOnlyRxMixerProductNode", - "ReadOnlyRxSaturationNode", - "ReadOnlyRxSelectivityNode", - "ReadOnlyRxSpurNode", - "ReadOnlyRxSusceptibilityProfNode", - "ReadOnlySamplingNode", - "ReadOnlySceneGroupNode", - "ReadOnlySolutionCouplingNode", - "ReadOnlySolutionsNode", - "ReadOnlyTR_Switch", - "ReadOnlyTerminator", - "ReadOnlyTouchstoneCouplingNode", - "ReadOnlyTwoRayPathLossCouplingNode", - "ReadOnlyTxBbEmissionNode", - "ReadOnlyTxHarmonicNode", - "ReadOnlyTxMeasNode", - "ReadOnlyTxNbEmissionNode", - "ReadOnlyTxSpectralProfEmitterNode", - "ReadOnlyTxSpectralProfNode", - "ReadOnlyTxSpurNode", - "ReadOnlyWalfischCouplingNode", - "ReadOnlyWaveform", + 'Amplifier', + 'AntennaNode', + 'AntennaPassband', + 'Band', + 'BandFolder', + 'BandTraceNode', + 'CADNode', + 'Cable', + 'CategoriesViewNode', + 'Circulator', + 'CouplingLinkNode', + 'CouplingTraceNode', + 'CouplingsNode', + 'CustomCouplingNode', + 'EmiPlotMarkerNode', + 'EmitSceneNode', + 'ErcegCouplingNode', + 'Filter', + 'FiveGChannelModel', + 'HataCouplingNode', + 'IndoorPropagationCouplingNode', + 'Isolator', + 'LogDistanceCouplingNode', + 'MPlexBandTraceNode', + 'Multiplexer', + 'MultiplexerBand', + 'OutboardTraceNode', + 'ParametricCouplingTraceNode', + 'PlotMarkerNode', + 'PlotNode', + 'PowerDivider', + 'PowerTraceNode', + 'ProfileTraceNode', + 'PropagationLossCouplingNode', + 'RadioNode', + 'ResultPlotNode', + 'RfSystemGroup', + 'RxMeasNode', + 'RxMixerProductNode', + 'RxSaturationNode', + 'RxSelectivityNode', + 'RxSpurNode', + 'RxSusceptibilityProfNode', + 'SamplingNode', + 'SceneGroupNode', + 'SelectivityTraceNode', + 'SolutionCouplingNode', + 'SolutionsNode', + 'SpurTraceNode', + 'TR_Switch', + 'TRSwitchTraceNode', + 'Terminator', + 'TestNoiseTraceNode', + 'TopLevelSimulation', + 'TouchstoneCouplingNode', + 'TunableTraceNode', + 'TwoRayPathLossCouplingNode', + 'TwoToneTraceNode', + 'TxBbEmissionNode', + 'TxHarmonicNode', + 'TxMeasNode', + 'TxNbEmissionNode', + 'TxSpectralProfEmitterNode', + 'TxSpectralProfNode', + 'TxSpurNode', + 'WalfischCouplingNode', + 'Waveform', + 'ReadOnlyAmplifier', + 'ReadOnlyAntennaNode', + 'ReadOnlyAntennaPassband', + 'ReadOnlyBand', + 'ReadOnlyBandFolder', + 'ReadOnlyCADNode', + 'ReadOnlyCable', + 'ReadOnlyCirculator', + 'ReadOnlyCouplingLinkNode', + 'ReadOnlyCouplingsNode', + 'ReadOnlyCustomCouplingNode', + 'ReadOnlyEmitSceneNode', + 'ReadOnlyErcegCouplingNode', + 'ReadOnlyFilter', + 'ReadOnlyFiveGChannelModel', + 'ReadOnlyHataCouplingNode', + 'ReadOnlyIndoorPropagationCouplingNode', + 'ReadOnlyIsolator', + 'ReadOnlyLogDistanceCouplingNode', + 'ReadOnlyMultiplexer', + 'ReadOnlyMultiplexerBand', + 'ReadOnlyPowerDivider', + 'ReadOnlyPropagationLossCouplingNode', + 'ReadOnlyRadioNode', + 'ReadOnlyRfSystemGroup', + 'ReadOnlyRxMeasNode', + 'ReadOnlyRxMixerProductNode', + 'ReadOnlyRxSaturationNode', + 'ReadOnlyRxSelectivityNode', + 'ReadOnlyRxSpurNode', + 'ReadOnlyRxSusceptibilityProfNode', + 'ReadOnlySamplingNode', + 'ReadOnlySceneGroupNode', + 'ReadOnlySolutionCouplingNode', + 'ReadOnlySolutionsNode', + 'ReadOnlyTR_Switch', + 'ReadOnlyTerminator', + 'ReadOnlyTouchstoneCouplingNode', + 'ReadOnlyTwoRayPathLossCouplingNode', + 'ReadOnlyTxBbEmissionNode', + 'ReadOnlyTxHarmonicNode', + 'ReadOnlyTxMeasNode', + 'ReadOnlyTxNbEmissionNode', + 'ReadOnlyTxSpectralProfEmitterNode', + 'ReadOnlyTxSpectralProfNode', + 'ReadOnlyTxSpurNode', + 'ReadOnlyWalfischCouplingNode', + 'ReadOnlyWaveform', ] From fdf0c3f7e34976e7007833e8cd648f00545dc262 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 23 Apr 2025 18:00:13 +0000 Subject: [PATCH 32/86] CHORE: Auto fixes from pre-commit hooks --- .../emit_core/nodes/generated/Amplifier.py | 26 ++ .../emit_core/nodes/generated/AntennaNode.py | 26 ++ .../nodes/generated/AntennaPassband.py | 25 ++ .../core/emit_core/nodes/generated/Band.py | 28 +- .../emit_core/nodes/generated/BandFolder.py | 26 +- .../nodes/generated/BandTraceNode.py | 69 ++-- .../core/emit_core/nodes/generated/CADNode.py | 26 ++ .../core/emit_core/nodes/generated/Cable.py | 26 ++ .../nodes/generated/CategoriesViewNode.py | 26 +- .../emit_core/nodes/generated/Circulator.py | 26 ++ .../nodes/generated/CouplingLinkNode.py | 32 +- .../nodes/generated/CouplingTraceNode.py | 83 +++-- .../nodes/generated/CouplingsNode.py | 25 ++ .../nodes/generated/CustomCouplingNode.py | 52 ++- .../nodes/generated/EmiPlotMarkerNode.py | 25 ++ .../nodes/generated/EmitSceneNode.py | 43 ++- .../nodes/generated/ErcegCouplingNode.py | 26 ++ .../core/emit_core/nodes/generated/Filter.py | 38 ++- .../nodes/generated/FiveGChannelModel.py | 26 ++ .../nodes/generated/HataCouplingNode.py | 26 ++ .../IndoorPropagationCouplingNode.py | 32 +- .../emit_core/nodes/generated/Isolator.py | 26 ++ .../generated/LogDistanceCouplingNode.py | 26 ++ .../nodes/generated/MPlexBandTraceNode.py | 63 ++-- .../emit_core/nodes/generated/Multiplexer.py | 26 ++ .../nodes/generated/MultiplexerBand.py | 26 ++ .../nodes/generated/OutboardTraceNode.py | 63 ++-- .../generated/ParametricCouplingTraceNode.py | 67 ++-- .../nodes/generated/PlotMarkerNode.py | 26 ++ .../emit_core/nodes/generated/PlotNode.py | 26 ++ .../emit_core/nodes/generated/PowerDivider.py | 26 ++ .../nodes/generated/PowerTraceNode.py | 63 ++-- .../nodes/generated/ProfileTraceNode.py | 59 +++- .../generated/PropagationLossCouplingNode.py | 26 ++ .../emit_core/nodes/generated/RadioNode.py | 38 ++- .../nodes/generated/ReadOnlyAmplifier.py | 31 +- .../nodes/generated/ReadOnlyAntennaNode.py | 71 ++-- .../generated/ReadOnlyAntennaPassband.py | 28 +- .../emit_core/nodes/generated/ReadOnlyBand.py | 49 ++- .../nodes/generated/ReadOnlyBandFolder.py | 26 +- .../nodes/generated/ReadOnlyCADNode.py | 41 ++- .../nodes/generated/ReadOnlyCable.py | 33 +- .../nodes/generated/ReadOnlyCirculator.py | 35 +- .../generated/ReadOnlyCouplingLinkNode.py | 28 +- .../nodes/generated/ReadOnlyCouplingsNode.py | 28 +- .../generated/ReadOnlyCustomCouplingNode.py | 38 ++- .../nodes/generated/ReadOnlyEmitSceneNode.py | 33 +- .../generated/ReadOnlyErcegCouplingNode.py | 37 +- .../nodes/generated/ReadOnlyFilter.py | 45 ++- .../generated/ReadOnlyFiveGChannelModel.py | 39 ++- .../generated/ReadOnlyHataCouplingNode.py | 37 +- .../ReadOnlyIndoorPropagationCouplingNode.py | 45 ++- .../nodes/generated/ReadOnlyIsolator.py | 35 +- .../ReadOnlyLogDistanceCouplingNode.py | 37 +- .../nodes/generated/ReadOnlyMultiplexer.py | 37 +- .../generated/ReadOnlyMultiplexerBand.py | 31 +- .../nodes/generated/ReadOnlyPowerDivider.py | 35 +- .../ReadOnlyPropagationLossCouplingNode.py | 35 +- .../nodes/generated/ReadOnlyRadioNode.py | 36 +- .../nodes/generated/ReadOnlyRfSystemGroup.py | 26 +- .../nodes/generated/ReadOnlyRxMeasNode.py | 31 +- .../generated/ReadOnlyRxMixerProductNode.py | 37 +- .../generated/ReadOnlyRxSaturationNode.py | 26 +- .../generated/ReadOnlyRxSelectivityNode.py | 26 +- .../nodes/generated/ReadOnlyRxSpurNode.py | 37 +- .../ReadOnlyRxSusceptibilityProfNode.py | 37 +- .../nodes/generated/ReadOnlySamplingNode.py | 41 ++- .../nodes/generated/ReadOnlySceneGroupNode.py | 31 +- .../generated/ReadOnlySolutionCouplingNode.py | 28 +- .../nodes/generated/ReadOnlySolutionsNode.py | 26 +- .../nodes/generated/ReadOnlySparameter.py | 46 ++- .../nodes/generated/ReadOnlyTR_Switch.py | 32 +- .../nodes/generated/ReadOnlyTerminator.py | 35 +- .../ReadOnlyTouchstoneCouplingNode.py | 34 +- .../ReadOnlyTwoRayPathLossCouplingNode.py | 35 +- .../generated/ReadOnlyTxBbEmissionNode.py | 33 +- .../nodes/generated/ReadOnlyTxHarmonicNode.py | 29 +- .../nodes/generated/ReadOnlyTxMeasNode.py | 28 +- .../generated/ReadOnlyTxNbEmissionNode.py | 31 +- .../ReadOnlyTxSpectralProfEmitterNode.py | 30 +- .../generated/ReadOnlyTxSpectralProfNode.py | 35 +- .../nodes/generated/ReadOnlyTxSpurNode.py | 37 +- .../generated/ReadOnlyWalfischCouplingNode.py | 39 ++- .../nodes/generated/ReadOnlyWaveform.py | 41 ++- .../nodes/generated/ResultPlotNode.py | 26 ++ .../nodes/generated/RfSystemGroup.py | 32 +- .../emit_core/nodes/generated/RxMeasNode.py | 26 ++ .../nodes/generated/RxMixerProductNode.py | 26 ++ .../nodes/generated/RxSaturationNode.py | 32 +- .../nodes/generated/RxSelectivityNode.py | 34 +- .../emit_core/nodes/generated/RxSpurNode.py | 45 ++- .../generated/RxSusceptibilityProfNode.py | 34 +- .../emit_core/nodes/generated/SamplingNode.py | 30 +- .../nodes/generated/SceneGroupNode.py | 51 ++- .../nodes/generated/SelectivityTraceNode.py | 59 +++- .../nodes/generated/SolutionCouplingNode.py | 36 +- .../nodes/generated/SolutionsNode.py | 28 +- .../emit_core/nodes/generated/Sparameter.py | 25 ++ .../nodes/generated/SpurTraceNode.py | 65 ++-- .../nodes/generated/TRSwitchTraceNode.py | 63 ++-- .../emit_core/nodes/generated/TR_Switch.py | 25 ++ .../emit_core/nodes/generated/Terminator.py | 26 ++ .../nodes/generated/TestNoiseTraceNode.py | 26 ++ .../nodes/generated/TopLevelSimulation.py | 26 +- .../nodes/generated/TouchstoneCouplingNode.py | 50 ++- .../nodes/generated/TunableTraceNode.py | 69 ++-- .../generated/TwoRayPathLossCouplingNode.py | 26 ++ .../nodes/generated/TwoToneTraceNode.py | 26 ++ .../nodes/generated/TxBbEmissionNode.py | 45 ++- .../nodes/generated/TxHarmonicNode.py | 39 ++- .../emit_core/nodes/generated/TxMeasNode.py | 46 ++- .../nodes/generated/TxNbEmissionNode.py | 45 ++- .../generated/TxSpectralProfEmitterNode.py | 27 +- .../nodes/generated/TxSpectralProfNode.py | 28 +- .../emit_core/nodes/generated/TxSpurNode.py | 45 ++- .../nodes/generated/WalfischCouplingNode.py | 26 ++ .../emit_core/nodes/generated/Waveform.py | 26 ++ .../emit_core/nodes/generated/__init__.py | 318 ++++++++++-------- 118 files changed, 3745 insertions(+), 780 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index e5d9ff463f0..966d8eb20b0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Amplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py index e6c57ead995..a56fae7c13d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class AntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py index 7c8e6719ffa..932961b2cb5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class AntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index e0199067cd6..3e0861a582f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Band(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -214,7 +240,7 @@ def sidelobes(self, value: int): @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py index b16ed48b03e..e173c1d3913 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class BandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -25,4 +50,3 @@ def duplicate(self, new_name): def delete(self): """Delete this node""" self._delete() - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py index 5abe9a2bc33..b61929a3baa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class BandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -27,13 +53,13 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) class TxorRxOption(Enum): TX = "Tx" @@ -43,32 +69,32 @@ class TxorRxOption(Enum): def tx_or_rx(self) -> TxorRxOption: """Tx or Rx "Specifies whether the trace is a Tx or Rx channel." - " """ + " """ val = self._get_property("Tx or Rx") val = self.TxorRxOption[val] return val @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tx or Rx={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx or Rx={value.value}"]) @property def channel_frequency(self): """Channel Frequency "Select band channel frequency to display." - " """ + " """ val = self._get_property("Channel Frequency") return val @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -84,7 +110,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -97,19 +123,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -123,14 +149,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -143,7 +169,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -156,7 +182,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -179,14 +205,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -199,7 +225,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -212,7 +238,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -225,7 +251,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -238,5 +264,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py index 67b5729364f..6ce73bf29ec 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class CADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index 3b4cfd8bebe..4080d7e7d34 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Cable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py index 82bd87eb625..7d77e3d1184 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py @@ -1,7 +1,31 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class CategoriesViewNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index 8236622c3e5..f4063e853b8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Circulator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py index bcdbb952295..706972bc560 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class CouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -21,18 +46,17 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def ports(self): """Ports "Maps each port in the link to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Ports") return val @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Ports={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py index 9ad195d5d69..6d93d55cab2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class CouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -26,36 +52,36 @@ def delete(self): @property def transmitter(self) -> EmitNode: """Transmitter - " """ + " """ val = self._get_property("Transmitter") return val @transmitter.setter def transmitter(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Transmitter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Transmitter={value}"]) @property def receiver(self) -> EmitNode: """Receiver - " """ + " """ val = self._get_property("Receiver") return val @receiver.setter def receiver(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Receiver={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -68,7 +94,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -81,19 +107,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -107,14 +133,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -127,7 +153,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -140,7 +166,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -163,14 +189,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -183,7 +209,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -196,7 +222,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -209,7 +235,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -222,7 +248,7 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def highlight_regions(self) -> bool: @@ -235,7 +261,7 @@ def highlight_regions(self) -> bool: @highlight_regions.setter def highlight_regions(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Highlight Regions={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highlight Regions={value}"]) @property def show_region_labels(self) -> bool: @@ -248,7 +274,7 @@ def show_region_labels(self) -> bool: @show_region_labels.setter def show_region_labels(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Region Labels={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Region Labels={value}"]) @property def font(self): @@ -261,7 +287,7 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -274,7 +300,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -287,7 +313,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -300,7 +326,7 @@ def border(self) -> bool: @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -313,7 +339,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -326,5 +352,4 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border Color={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py index 579f7872a0c..d8fd8c63d49 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class CouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py index bdfe99fdc0b..aa3c55f2ff6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class CustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def rename(self, new_name): """Rename this node""" @@ -28,11 +53,11 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Value (dB): + "Value (dB): " Value should be between -1000 and 0." """ return self._get_table_data() @@ -52,31 +77,31 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -89,7 +114,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -102,17 +127,16 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py index 00b306faaee..9768190efb4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class EmiPlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py index 8363f62917e..1fc5315ac89 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class EmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -14,13 +40,13 @@ def add_group(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class GroundPlaneNormalOption(Enum): X_AXIS = "X Axis" @@ -31,26 +57,27 @@ class GroundPlaneNormalOption(Enum): def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal "Specifies the axis of the normal to the ground plane." - " """ + " """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] return val @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Ground Plane Normal={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"] + ) @property def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." - " """ + " """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return val @gp_position_along_normal.setter - def gp_position_along_normal(self, value : float|str): + def gp_position_along_normal(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"GP Position Along Normal={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GP Position Along Normal={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py index 2f570c94cb6..02aa4072817 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index 6768c0dc3cc..e4fe742b5ee 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Filter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -226,7 +252,7 @@ def higher_stop_band(self, value : float|str): @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ @@ -241,7 +267,7 @@ def lower_cutoff_(self, value : float|str): @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ @@ -256,7 +282,7 @@ def lower_stop_band_(self, value : float|str): @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ @@ -271,7 +297,7 @@ def higher_stop_band_(self, value : float|str): @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ @@ -286,7 +312,7 @@ def higher_cutoff_(self, value : float|str): @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency "Lowest tuned frequency." "Value should be between 1 and 1e+11." """ @@ -301,7 +327,7 @@ def lowest_tuned_frequency_(self, value : float|str): @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency "Highest tuned frequency." "Value should be between 1 and 1e+11." """ diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py index 7c669d0d7b1..ac72cdc0254 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class FiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py index 392a649123a..12d1ea8ef21 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class HataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py index 53e99762411..07885f34357 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class IndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -27,11 +53,11 @@ def delete(self): def table_data(self): """ Table" "Table consists of 3 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Power Loss Coefficient: + "Power Loss Coefficient: " Value should be between 0 and 100." - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): " Value should be between 0 and 1000." """ return self._get_table_data() diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index 0e18a30cddb..8ec5ebdd51c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Isolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py index 6c423c4815a..2979e93c5e0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class LogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py index 61c9633555a..26133fc59a0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class MPlexBandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -29,26 +55,26 @@ class PowerDirectionOption(Enum): @property def power_direction(self) -> PowerDirectionOption: """Power Direction - " """ + " """ val = self._get_property("Power Direction") val = self.PowerDirectionOption[val] return val @power_direction.setter def power_direction(self, value: PowerDirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Power Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Power Direction={value.value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -61,7 +87,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -74,19 +100,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -100,14 +126,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -120,7 +146,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -133,7 +159,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -156,14 +182,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -176,7 +202,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -189,7 +215,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -202,7 +228,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -215,5 +241,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index 85355f70c51..cbf5a59b895 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Multiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py index 62e1e32a944..b96dc1318c4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class MultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py index 55b6220a252..34d36c4e09a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class OutboardTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -34,7 +60,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -47,19 +73,19 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -72,7 +98,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -85,19 +111,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -111,14 +137,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -131,7 +157,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -144,7 +170,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -167,14 +193,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -187,7 +213,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -200,7 +226,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -213,7 +239,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -226,5 +252,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py index fdacd8d6a4c..f042a394f10 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ParametricCouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -26,36 +52,36 @@ def delete(self): @property def antenna_a(self) -> EmitNode: """Antenna A - " """ + " """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B - " """ + " """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -68,7 +94,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -81,19 +107,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -107,14 +133,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -127,7 +153,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -140,7 +166,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -163,14 +189,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -183,7 +209,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -196,7 +222,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -209,7 +235,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -222,5 +248,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py index 6bd9f6efb8d..0fd469225d5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py index 714e6aa897e..9eed78fd7b7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py index be12f531423..e7b4f631cd5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py index 1e36d405abb..3d6fdda3a1a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PowerTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -31,26 +57,26 @@ class DirectionOption(Enum): def direction(self) -> DirectionOption: """Direction "Direction of power flow (towards or away from the transmitter) to plot." - " """ + " """ val = self._get_property("Direction") val = self.DirectionOption[val] return val @direction.setter def direction(self, value: DirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Direction={value.value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -63,7 +89,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -76,19 +102,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -102,14 +128,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -122,7 +148,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -135,7 +161,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -158,14 +184,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -178,7 +204,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -191,7 +217,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -204,7 +230,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -217,5 +243,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py index 49060e468ba..e80f61ed3ce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ProfileTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -27,13 +53,13 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -46,7 +72,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -59,19 +85,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -85,14 +111,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -105,7 +131,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -118,7 +144,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -141,14 +167,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -161,7 +187,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -174,7 +200,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -187,7 +213,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -200,5 +226,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py index 2f7eadc6fd3..600e6fc2152 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py index a06ddffb619..4ef044f8118 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class RadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -28,11 +53,11 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Name: - " "Type: - " """ + "Name: + " "Type: + " """ return self._get_table_data() @table_data.setter @@ -43,11 +68,10 @@ def table_data(self, value): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py index 1508d26ac09..4fc81c0c4c0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyAmplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -28,7 +54,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -40,7 +66,7 @@ class AmplifierTypeOption(Enum): def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type "Configures the amplifier as a Tx or Rx amplifier." - " """ + " """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] return val @@ -139,4 +165,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py index fe64942ccbe..a71a708be66 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyAntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -15,7 +41,7 @@ def parent(self): def tags(self) -> str: """Tags "Space delimited list of tags for coupling selections." - " """ + " """ val = self._get_property("Tags") return val @@ -54,7 +80,7 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -99,7 +125,7 @@ def antenna_temperature(self) -> float: def type(self): """Type "Defines the type of antenna." - " """ + " """ val = self._get_property("Type") return val @@ -138,7 +164,7 @@ class BoresightOption(Enum): def boresight(self) -> BoresightOption: """Boresight "Select peak beam direction in local coordinates." - " """ + " """ val = self._get_property("Boresight") val = self.BoresightOption[val] return val @@ -312,7 +338,7 @@ class AntennaPolarizationOption(Enum): def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] return val @@ -325,7 +351,7 @@ class CrossDipoleModeOption(Enum): def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode "Choose the Cross Dipole type." - " """ + " """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] return val @@ -338,7 +364,7 @@ class CrossDipolePolarizationOption(Enum): def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] return val @@ -398,7 +424,7 @@ class ConformtoPlatformOption(Enum): def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform "Select method of automated conforming applied after Element Offset." - " """ + " """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] return val @@ -412,7 +438,7 @@ class ReferencePlaneOption(Enum): def reference_plane(self) -> ReferencePlaneOption: """Reference Plane "Select reference plane for determining original element heights." - " """ + " """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] return val @@ -466,7 +492,7 @@ def color(self): def el_sample_interval(self) -> float: """El Sample Interval "Space between elevation-angle samples of pattern." - " """ + " """ val = self._get_property("El Sample Interval") return val @@ -474,7 +500,7 @@ def el_sample_interval(self) -> float: def az_sample_interval(self) -> float: """Az Sample Interval "Space between azimuth-angle samples of pattern." - " """ + " """ val = self._get_property("Az Sample Interval") return val @@ -491,7 +517,7 @@ def has_frequency_domain(self) -> bool: def frequency_domain(self): """Frequency Domain "Frequency sample(s) defining antenna." - " """ + " """ val = self._get_property("Frequency Domain") return val @@ -499,7 +525,7 @@ def frequency_domain(self): def number_of_electric_sources(self) -> int: """Number of Electric Sources "Number of freestanding electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Electric Sources") return val @@ -507,7 +533,7 @@ def number_of_electric_sources(self) -> int: def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources "Number of freestanding magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Magnetic Sources") return val @@ -515,7 +541,7 @@ def number_of_magnetic_sources(self) -> int: def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources "Number of imaged, half-space radiating electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Electric Sources") return val @@ -523,7 +549,7 @@ def number_of_imaged_electric_sources(self) -> int: def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources "Number of imaged, half-space radiating magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Magnetic Sources") return val @@ -531,7 +557,7 @@ def number_of_imaged_magnetic_sources(self) -> int: def waveguide_height(self) -> float: """Waveguide Height "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." - " """ + " """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") return val @@ -540,7 +566,7 @@ def waveguide_height(self) -> float: def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." - " """ + " """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -549,7 +575,7 @@ def waveguide_cutoff_frequency(self) -> float: def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." - " """ + " """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -563,7 +589,7 @@ class SWEModeTruncationOption(Enum): def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation "Select the method for stability-enhancing truncation of spherical wave expansion terms." - " """ + " """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] return val @@ -581,7 +607,7 @@ def max_n_index(self) -> int: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -607,7 +633,7 @@ def use_phase_center(self) -> bool: def coordinate_systems(self) -> str: """Coordinate Systems "Specifies the coordinate system for the phase center of this antenna." - " """ + " """ val = self._get_property("Coordinate Systems") return val @@ -628,4 +654,3 @@ def phasecenterorientation(self): """ val = self._get_property("PhaseCenterOrientation") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py index db835e4106a..bc94666ed93 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyAntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -72,7 +97,6 @@ def higher_stop_band(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py index 53846a6bf8a..5977c725870 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -15,7 +41,7 @@ def parent(self): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") return val @@ -41,7 +67,7 @@ def use_emission_designator(self) -> bool: def emission_designator(self) -> str: """Emission Designator "Enter the Emission Designator to define the bandwidth and modulation." - " """ + " """ val = self._get_property("Emission Designator") return val @@ -49,7 +75,7 @@ def emission_designator(self) -> str: def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." - " """ + " """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -58,7 +84,7 @@ def emission_designator_ch_bw(self) -> float: def emit_modulation_type(self) -> str: """EMIT Modulation Type "Modulation based off the emission designator." - " """ + " """ val = self._get_property("EMIT Modulation Type") return val @@ -98,7 +124,7 @@ class ModulationOption(Enum): def modulation(self) -> ModulationOption: """Modulation "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Modulation") val = self.ModulationOption[val] return val @@ -153,7 +179,7 @@ def sidelobes(self) -> int: @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ @@ -173,7 +199,7 @@ class PSKTypeOption(Enum): def psk_type(self) -> PSKTypeOption: """PSK Type "PSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] return val @@ -187,7 +213,7 @@ class FSKTypeOption(Enum): def fsk_type(self) -> FSKTypeOption: """FSK Type "FSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] return val @@ -203,7 +229,7 @@ class QAMTypeOption(Enum): def qam_type(self) -> QAMTypeOption: """QAM Type "QAM modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] return val @@ -219,7 +245,7 @@ class APSKTypeOption(Enum): def apsk_type(self) -> APSKTypeOption: """APSK Type "APSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] return val @@ -275,7 +301,7 @@ class RadarTypeOption(Enum): def radar_type(self) -> RadarTypeOption: """Radar Type "Radar type: helps determine spectral profile." - " """ + " """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] return val @@ -404,4 +430,3 @@ def fm_freq_dev_bandwidth(self) -> float: val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py index bffa4168833..e504f8967e0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyBandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -9,4 +34,3 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py index 0ffdf98626c..1f6f4ff2dd7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyCADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +66,7 @@ class ModelTypeOption(Enum): def model_type(self) -> ModelTypeOption: """Model Type "Select type of parametric model to create." - " """ + " """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] return val @@ -188,7 +214,7 @@ def focal_length(self) -> float: def offset(self) -> float: """Offset "Offset of parabolic reflector." - " """ + " """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") return val @@ -264,7 +290,7 @@ class MeshOptionOption(Enum): def mesh_option(self) -> MeshOptionOption: """Mesh Option "Select from different meshing options." - " """ + " """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] return val @@ -313,7 +339,7 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -355,7 +381,7 @@ class RenderModeOption(Enum): def render_mode(self) -> RenderModeOption: """Render Mode "Select drawing style for surfaces." - " """ + " """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] return val @@ -391,7 +417,7 @@ def max(self): def number_of_surfaces(self) -> int: """Number of Surfaces "Number of surfaces in the model." - " """ + " """ val = self._get_property("Number of Surfaces") return val @@ -408,7 +434,6 @@ def color(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py index 2c254cf9db2..85a92646227 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyCable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -28,7 +54,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -41,7 +67,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -97,7 +123,6 @@ def dielectric_loss_constant(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py index e8aa5a48ee1..3311c3b4584 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyCirculator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -28,7 +54,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -40,7 +66,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -53,7 +79,7 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the circulator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @@ -147,7 +173,6 @@ def higher_stop_band(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py index 86a050e840f..4d7ca736cc9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -24,7 +49,6 @@ def ports(self): """Ports "Maps each port in the link to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Ports") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py index 82559ca8038..d3a0840ed3f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyCouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -27,7 +52,6 @@ def global_default_coupling(self) -> float: def antenna_tags(self) -> str: """Antenna Tags "All tags currently used by all antennas in the project." - " """ + " """ val = self._get_property("Antenna Tags") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py index fcd6ae186b3..1d973305649 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,11 +37,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Value (dB): + "Value (dB): " Value should be between -1000 and 0." """ return self._get_table_data() @@ -34,7 +59,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -42,7 +67,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -68,7 +93,6 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py index e851167520a..eed94653c3e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -10,7 +36,7 @@ def __init__(self, oDesign, result_id, node_id): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -23,7 +49,7 @@ class GroundPlaneNormalOption(Enum): def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal "Specifies the axis of the normal to the ground plane." - " """ + " """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] return val @@ -32,8 +58,7 @@ def ground_plane_normal(self) -> GroundPlaneNormalOption: def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." - " """ + " """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py index cd0c73f02b7..47a5ae0e620 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -24,7 +50,7 @@ def enabled(self) -> bool: def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -32,7 +58,7 @@ def base_antenna(self) -> EmitNode: def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -58,7 +84,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -71,7 +97,7 @@ class TerrainCategoryOption(Enum): def terrain_category(self) -> TerrainCategoryOption: """Terrain Category "Specify the terrain category type for the Erceg model." - " """ + " """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] return val @@ -113,7 +139,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -207,4 +233,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py index efaa6b33ef6..c99aae23628 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyFilter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -28,7 +54,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -45,7 +71,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -150,7 +176,7 @@ def higher_stop_band(self) -> float: @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ @@ -160,7 +186,7 @@ def lower_cutoff_(self) -> float: @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ @@ -170,7 +196,7 @@ def lower_stop_band_(self) -> float: @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ @@ -180,7 +206,7 @@ def higher_stop_band_(self) -> float: @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ @@ -190,7 +216,7 @@ def higher_cutoff_(self) -> float: @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency "Lowest tuned frequency." "Value should be between 1 and 1e+11." """ @@ -200,7 +226,7 @@ def lowest_tuned_frequency_(self) -> float: @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency "Highest tuned frequency." "Value should be between 1 and 1e+11." """ @@ -230,7 +256,6 @@ def shape_factor(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py index efeb5397442..f8936afbd98 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -24,7 +50,7 @@ def enabled(self) -> bool: def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -32,7 +58,7 @@ def base_antenna(self) -> EmitNode: def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -58,7 +84,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -71,7 +97,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment for the 5G channel model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -102,7 +128,7 @@ class NYUBPLModelOption(Enum): def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model "Specify the NYU Building Penetration Loss model." - " """ + " """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] return val @@ -144,7 +170,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -238,4 +264,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py index b04e6ed20df..036366d8cb0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -24,7 +50,7 @@ def enabled(self) -> bool: def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -32,7 +58,7 @@ def base_antenna(self) -> EmitNode: def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -58,7 +84,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -72,7 +98,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Hata model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -114,7 +140,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -208,4 +234,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py index 130e5f1a062..ce4c29850a8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,13 +39,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Power Loss Coefficient: + "Power Loss Coefficient: " Value should be between 0 and 100." - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): " Value should be between 0 and 1000." """ return self._get_table_data() @@ -37,7 +63,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -45,7 +71,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -71,7 +97,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -86,7 +112,7 @@ class BuildingTypeOption(Enum): def building_type(self) -> BuildingTypeOption: """Building Type "Specify the building type for the Indoor Propagation model." - " """ + " """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] return val @@ -137,7 +163,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -231,4 +257,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py index d1b95dca9f6..a4142cac7aa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyIsolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -28,7 +54,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -40,7 +66,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -53,7 +79,7 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the isolator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @@ -147,7 +173,6 @@ def higher_stop_band(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py index e2a70af0785..5e19f891681 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -24,7 +50,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -32,7 +58,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -58,7 +84,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -75,7 +101,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Log Distance model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -126,7 +152,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -220,4 +246,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py index 9bbd2030bb5..971b0323902 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyMultiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -28,7 +54,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -40,7 +66,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -53,7 +79,7 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the multiplexer.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @@ -72,7 +98,7 @@ def ports(self): """Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ + " """ val = self._get_property("Ports") return val @@ -80,7 +106,6 @@ def ports(self): def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py index 65c73ce40e0..005d0bdb544 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -21,7 +47,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -137,7 +163,6 @@ def higher_stop_band(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py index 1a1b435b354..b5565c86e05 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyPowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -28,7 +54,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -41,7 +67,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -54,7 +80,7 @@ class OrientationOption(Enum): def orientation(self) -> OrientationOption: """Orientation "Defines the orientation of the Power Divider.." - " """ + " """ val = self._get_property("Orientation") val = self.OrientationOption[val] return val @@ -148,7 +174,6 @@ def higher_stop_band(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py index b9873d42409..22e6f31f4a3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -24,7 +50,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -32,7 +58,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -58,7 +84,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -99,7 +125,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -193,4 +219,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py index d81c15e9708..194dd1ea71e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,18 +37,17 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Name: - " "Type: - " """ + "Name: + " "Type: + " """ return self._get_table_data() @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py index 7db365483b8..6dc2c96f7a7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -27,4 +52,3 @@ def enforce_thermal_noise_floor(self) -> bool: """ val = self._get_property("Enforce Thermal Noise Floor") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py index 1d6ab2a17c7..40310bfbc29 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -33,7 +59,7 @@ def source_file(self) -> str: def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -47,7 +73,7 @@ class MeasurementModeOption(Enum): def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode "Defines the mode for the receiver measurement." - " """ + " """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] return val @@ -216,4 +242,3 @@ def exclude_mixer_products_below_noise(self) -> bool: """ val = self._get_property("Exclude Mixer Products Below Noise") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py index 44654f1844c..0fd1681a8fd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -20,7 +46,7 @@ class MixerProductTaperOption(Enum): def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper "Taper for setting amplitude of mixer products." - " """ + " """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] return val @@ -127,7 +153,7 @@ class MixingModeOption(Enum): def mixing_mode(self) -> MixingModeOption: """Mixing Mode "Specifies whether the IF frequency is > or < RF channel frequency." - " """ + " """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] return val @@ -145,7 +171,7 @@ def first_if_frequency(self): def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." - " """ + " """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -158,7 +184,7 @@ class UseHighLOOption(Enum): def use_high_lo(self) -> UseHighLOOption: """Use High LO "Use High LO above/below the transition frequency." - " """ + " """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] return val @@ -171,8 +197,7 @@ class MixerProductTableUnitsOption(Enum): def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units "Specifies the units for the Mixer Products." - " """ + " """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py index fa9ae9c40bb..74e76d2d9ac 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -9,4 +34,3 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py index 1ce5c919016..37665e0f6ef 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -18,4 +43,3 @@ def use_arithmetic_mean(self) -> bool: """ val = self._get_property("Use Arithmetic Mean") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py index 6b2267c55ff..1b7f8f44df2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,13 +39,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -32,8 +58,7 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py index e1ecc1750a6..13d383c2d88 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -21,14 +47,14 @@ class SensitivityUnitsOption(Enum): def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units "Units to use for the Rx Sensitivity." - " """ + " """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] return val @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr "Received signal power level at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ @@ -83,7 +109,7 @@ def rx_noise_figure(self) -> float: @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." "Value should be between -1000 and 1000." """ @@ -93,7 +119,7 @@ def receiver_sensitivity_(self) -> float: @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity "SNR or SINAD at the specified sensitivity level." "Value should be between -1000 and 1000." """ @@ -121,7 +147,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." "Value should be between -1000 and 1000." """ @@ -147,4 +173,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py index 1a685283ceb..7ed82bcdef5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlySamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,11 +39,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Min: + "Min: " Value should be greater than 1." - "Max: + "Max: " Value should be greater than 1." """ return self._get_table_data() @@ -31,7 +57,7 @@ class SamplingTypeOption(Enum): def sampling_type(self) -> SamplingTypeOption: """Sampling Type "Sampling to apply to this configuration." - " """ + " """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] return val @@ -76,7 +102,7 @@ def seed(self) -> int: def total_tx_channels(self) -> int: """Total Tx Channels "Total number of transmit channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Tx Channels") return val @@ -84,7 +110,7 @@ def total_tx_channels(self) -> int: def total_rx_channels(self) -> int: """Total Rx Channels "Total number of receive channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Rx Channels") return val @@ -92,7 +118,6 @@ def total_rx_channels(self) -> int: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py index 04284007889..1f8e5ba8384 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlySceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -46,7 +72,7 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -91,7 +117,6 @@ def box_color(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py index ed575659f51..037d5137cc7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +66,6 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py index c6e7dc29966..66d32dfb0ee 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlySolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -18,4 +43,3 @@ def enabled(self) -> bool: """ val = self._get_property("Enabled") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py index 2340c68cc03..b4d1e3fc24e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlySparameter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -11,7 +36,7 @@ def file(self) -> str: "S-Parameter file defining the component." "Value should be a full file path." """ - val = self._get_property('File') + val = self._get_property("File") return val @property @@ -20,15 +45,15 @@ def noise_temperature(self) -> float: "System Noise temperature (K) of the component." "Value should be between 0 and 1000." """ - val = self._get_property('Noise Temperature') + val = self._get_property("Noise Temperature") return val @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') + " """ + val = self._get_property("Notes") return val @property @@ -36,8 +61,8 @@ def radio_side_ports(self): """Radio Side Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ - val = self._get_property('Radio Side Ports') + " """ + val = self._get_property("Radio Side Ports") return val @property @@ -45,15 +70,14 @@ def antenna_side_ports(self): """Antenna Side Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ - val = self._get_property('Antenna Side Ports') + " """ + val = self._get_property("Antenna Side Ports") return val @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ - val = self._get_property('Warnings') + " """ + val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py index f425ab74572..ec2bd8e249d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyTR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -27,7 +52,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -39,7 +64,7 @@ class TxPortOption(Enum): def tx_port(self) -> TxPortOption: """Tx Port "Specifies which port on the TR Switch is part of the Tx path.." - " """ + " """ val = self._get_property("Tx Port") val = self.TxPortOption[val] return val @@ -52,7 +77,7 @@ class CommonPortLocationOption(Enum): def common_port_location(self) -> CommonPortLocationOption: """Common Port Location "Defines the orientation of the tr switch.." - " """ + " """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] return val @@ -141,4 +166,3 @@ def higher_stop_band(self) -> float: val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py index 22b92318463..29f9c65eff8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTerminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -28,7 +54,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -40,7 +66,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -53,7 +79,7 @@ class PortLocationOption(Enum): def port_location(self) -> PortLocationOption: """Port Location "Defines the orientation of the terminator.." - " """ + " """ val = self._get_property("Port Location") val = self.PortLocationOption[val] return val @@ -71,7 +97,6 @@ def vswr(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py index a9f9927707e..ee1f0627ffa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +66,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -58,7 +83,7 @@ def filename(self) -> str: def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File "Coupling data generated by Savant and exported as a matched file." - " """ + " """ val = self._get_property("Savant Matched Coupling File") return val @@ -76,7 +101,7 @@ def port_antenna_assignment(self): """Port-Antenna Assignment "Maps each port in the coupling file to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Port-Antenna Assignment") return val @@ -84,7 +109,6 @@ def port_antenna_assignment(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py index 98133b2cbd6..c238bee432f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -24,7 +50,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -32,7 +58,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -58,7 +84,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -117,7 +143,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -211,4 +237,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py index a7be1da91db..eb9a34196ad 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -15,9 +41,9 @@ def parent(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): " Value should be between -200 and 150." """ return self._get_table_data() @@ -32,7 +58,7 @@ class NoiseBehaviorOption(Enum): def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior "Specifies the behavior of the parametric noise profile." - " """ + " """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] return val @@ -45,4 +71,3 @@ def use_log_linear_interpolation(self) -> bool: """ val = self._get_property("Use Log-Linear Interpolation") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py index 12972cfb8b9..10c3e80efda 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -19,8 +45,7 @@ class HarmonicTableUnitsOption(Enum): def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units "Specifies the units for the Harmonics." - " """ + " """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py index 9660e6d4202..b3c1a0a08fb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyTxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -32,7 +57,7 @@ def source_file(self) -> str: def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -74,4 +99,3 @@ def exclude_harmonics_below_noise(self) -> bool: """ val = self._get_property("Exclude Harmonics Below Noise") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py index 67a7ef80291..0750e4c1e63 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -19,7 +45,7 @@ class NarrowbandBehaviorOption(Enum): def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." - " """ + " """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] return val @@ -28,8 +54,7 @@ def narrowband_behavior(self) -> NarrowbandBehaviorOption: def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - " """ + " """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py index fb0b314db64..7dc5a453f99 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyTxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -14,7 +39,7 @@ def parent(self): def output_voltage_peak(self) -> float: """Output Voltage Peak "Output High Voltage Level: maximum voltage of the digital signal." - " """ + " """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") return val @@ -76,7 +101,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ @@ -111,4 +136,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py index 5ed120accb3..c55752fe903 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -19,7 +45,7 @@ class SpectrumTypeOption(Enum): def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type "Specifies EMI Margins to calculate." - " """ + " """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] return val @@ -32,7 +58,7 @@ class TxPowerOption(Enum): def tx_power(self) -> TxPowerOption: """Tx Power "Method used to specify the power." - " """ + " """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] return val @@ -85,7 +111,7 @@ class HarmonicTaperOption(Enum): def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper "Taper type used to set amplitude of harmonics." - " """ + " """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] return val @@ -201,7 +227,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ @@ -236,4 +262,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py index 4e01d323a9a..27dcdbcaa4c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,13 +39,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -32,8 +58,7 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py index a809657ca7f..2a3c3c9f26b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -24,7 +50,7 @@ def enabled(self) -> bool: def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -32,7 +58,7 @@ def base_antenna(self) -> EmitNode: def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -58,7 +84,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -70,7 +96,7 @@ class PathLossTypeOption(Enum): def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type "Specify LOS vs NLOS for the Walfisch-Ikegami model." - " """ + " """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] return val @@ -83,7 +109,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Walfisch model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -164,7 +190,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -258,4 +284,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py index d86e733ab8f..95490724b46 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyWaveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -15,7 +41,7 @@ def parent(self): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") return val @@ -30,7 +56,7 @@ class WaveformOption(Enum): def waveform(self) -> WaveformOption: """Waveform "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Waveform") val = self.WaveformOption[val] return val @@ -93,7 +119,7 @@ class SpreadingTypeOption(Enum): def spreading_type(self) -> SpreadingTypeOption: """Spreading Type "Type of spreading employed by the Spread Spectrum Clock." - " """ + " """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] return val @@ -119,7 +145,7 @@ def imported_spectrum(self) -> str: def raw_data_format(self) -> str: """Raw Data Format "Format of the imported raw data." - " """ + " """ val = self._get_property("Raw Data Format") return val @@ -177,7 +203,7 @@ class AlgorithmOption(Enum): def algorithm(self) -> AlgorithmOption: """Algorithm "Algorithm used to transform the imported time domain spectrum." - " """ + " """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] return val @@ -196,7 +222,7 @@ def start_time(self) -> float: def stop_time(self) -> float: """Stop Time "Final time of the imported time domain spectrum." - " """ + " """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") return val @@ -226,7 +252,7 @@ class WindowTypeOption(Enum): def window_type(self) -> WindowTypeOption: """Window Type "Windowing scheme used for importing time domain spectrum." - " """ + " """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] return val @@ -295,4 +321,3 @@ def delay_skew(self) -> float: val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py index 1839f83c329..44981cb3900 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ResultPlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py index 9cb705d3dc5..9eedffb4e24 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class RfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -21,7 +46,7 @@ def enable_passive_noise(self) -> bool: @enable_passive_noise.setter def enable_passive_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Passive Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Passive Noise={value}"]) @property def enforce_thermal_noise_floor(self) -> bool: @@ -34,5 +59,6 @@ def enforce_thermal_noise_floor(self) -> bool: @enforce_thermal_noise_floor.setter def enforce_thermal_noise_floor(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enforce Thermal Noise Floor={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Enforce Thermal Noise Floor={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py index 0453cf0e0c1..699cb3cf0f3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py index d5a50e1decf..fdd4cc1e4e8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py index d83a3a9bd76..5bfe49eba0b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class RxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -21,9 +46,8 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py index 6c0f8c99a39..c0c6141aa74 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class RxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -21,11 +46,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) @property def use_arithmetic_mean(self) -> bool: @@ -38,5 +63,4 @@ def use_arithmetic_mean(self) -> bool: @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use Arithmetic Mean={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Arithmetic Mean={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py index 0388a7c3d14..0ab0a70d512 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,7 +39,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -21,13 +47,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -39,11 +65,11 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpurTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -53,12 +79,11 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Spur Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py index 79ee5b42b91..0ca951036d0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +67,7 @@ def sensitivity_units(self, value: SensitivityUnitsOption): @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr "Received signal power level at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ @@ -121,7 +147,7 @@ def rx_noise_figure(self, value : float) @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." "Value should be between -1000 and 1000." """ @@ -136,7 +162,7 @@ def receiver_sensitivity_(self, value : float|str): @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity "SNR or SINAD at the specified sensitivity level." "Value should be between -1000 and 1000." """ @@ -177,7 +203,7 @@ def amplifier_saturation_level(self, value : float|str): @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." "Value should be between -1000 and 1000." """ diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py index fb178592b71..44214d7d276 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -15,9 +41,9 @@ def parent(self): def table_data(self): """ Table" "Table consists of 2 columns." - "Min: + "Min: " Value should be greater than 1." - "Max: + "Max: " Value should be greater than 1." """ return self._get_table_data() diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py index e71d86c3dce..720b7e79017 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,7 +64,9 @@ def show_relative_coordinates(self) -> bool: @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -51,7 +79,7 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -64,7 +92,7 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -74,14 +102,14 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -94,7 +122,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -107,7 +135,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def show_axes(self) -> bool: @@ -120,7 +148,7 @@ def show_axes(self) -> bool: @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def box_color(self): @@ -133,17 +161,16 @@ def box_color(self): @box_color.setter def box_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Box Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Box Color={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py index 32d4c6ce54f..800d7b1efac 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SelectivityTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -27,13 +53,13 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -46,7 +72,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -59,19 +85,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -85,14 +111,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -105,7 +131,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -118,7 +144,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -141,14 +167,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -161,7 +187,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -174,7 +200,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -187,7 +213,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -200,5 +226,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py index 28763dd444d..f05d3a06a83 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class SolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -21,7 +46,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -34,7 +59,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -47,17 +72,16 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py index 0f6ba8021bf..e09974b532d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class SolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -21,5 +46,4 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py index 476d51a9e12..9bfaff2d2ca 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class Sparameter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py index 09aa223b269..3a7eb50105b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SpurTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -27,19 +53,19 @@ def delete(self): def channel_frequency(self): """Channel Frequency "Select band channel frequency to display." - " """ + " """ val = self._get_property("Channel Frequency") return val @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -48,13 +74,13 @@ def transmit_frequency(self) -> float: def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -67,7 +93,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -80,19 +106,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -106,14 +132,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -126,7 +152,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -139,7 +165,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -162,14 +188,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -182,7 +208,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -195,7 +221,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -208,7 +234,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -221,5 +247,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py index 5d770b8532e..7a7e997b0b8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TRSwitchTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -34,7 +60,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -47,19 +73,19 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -72,7 +98,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -85,19 +111,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -111,14 +137,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -131,7 +157,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -144,7 +170,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -167,14 +193,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -187,7 +213,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -200,7 +226,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -213,7 +239,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -226,5 +252,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index ad1bbbca649..ba86c463561 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class TR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index 9deeee5f183..1b4d42afadb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Terminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py index d48cb572591..8f17ce2c218 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TestNoiseTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py index 95fa62b6506..e8225cd97be 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py @@ -1,7 +1,31 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class TopLevelSimulation(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py index 571e839921c..f541940a636 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class TouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -33,7 +58,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -46,7 +71,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -59,19 +84,19 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def filename(self) -> str: @@ -84,13 +109,13 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File "Coupling data generated by Savant and exported as a matched file." - " """ + " """ val = self._get_property("Savant Matched Coupling File") return val @@ -105,30 +130,29 @@ def enable_em_isolation(self) -> bool: @enable_em_isolation.setter def enable_em_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable EM Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable EM Isolation={value}"]) @property def port_antenna_assignment(self): """Port-Antenna Assignment "Maps each port in the coupling file to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Port-Antenna Assignment") return val @port_antenna_assignment.setter def port_antenna_assignment(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port-Antenna Assignment={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port-Antenna Assignment={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py index 0ff83db47f5..bfe14e48567 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TunableTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -34,7 +60,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -47,33 +73,33 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def frequency(self) -> float: """Frequency "Tunable filter center frequency." - " """ + " """ val = self._get_property("Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @frequency.setter - def frequency(self, value : float|str): + def frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -86,7 +112,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -99,19 +125,19 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -125,14 +151,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -145,7 +171,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -158,7 +184,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -181,14 +207,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -201,7 +227,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -214,7 +240,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -227,7 +253,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -240,5 +266,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py index 563fe04d084..7a525f9f860 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py index a1686ff5ea0..b7401799b83 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TwoToneTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py index b912ac33825..6f964b322e4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,7 +39,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -23,9 +49,9 @@ def delete(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): " Value should be between -200 and 150." """ return self._get_table_data() @@ -37,11 +63,11 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class NoiseBehaviorOption(Enum): ABSOLUTE = "Absolute" @@ -53,14 +79,14 @@ class NoiseBehaviorOption(Enum): def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior "Specifies the behavior of the parametric noise profile." - " """ + " """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] return val @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Behavior={value.value}"]) @property def use_log_linear_interpolation(self) -> bool: @@ -73,5 +99,6 @@ def use_log_linear_interpolation(self) -> bool: @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use Log-Linear Interpolation={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py index 61a457594cf..ea92ab0c255 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,7 +39,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -22,11 +48,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class HarmonicTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -36,12 +62,13 @@ class HarmonicTableUnitsOption(Enum): def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units "Specifies the units for the Harmonics." - " """ + " """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] return val @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Harmonic Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py index dc0b904992c..7e71a02d156 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class TxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +65,7 @@ def source_file(self) -> str: def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -56,7 +81,7 @@ def use_ams_limits(self) -> bool: @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -69,9 +94,9 @@ def start_frequency(self) -> float: return val @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -84,9 +109,9 @@ def stop_frequency(self) -> float: return val @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def exclude_harmonics_below_noise(self) -> bool: @@ -99,14 +124,15 @@ def exclude_harmonics_below_noise(self) -> bool: @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Exclude Harmonics Below Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py index 65ac99edcca..eb2964eeaaa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,7 +39,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -22,11 +48,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class NarrowbandBehaviorOption(Enum): ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" @@ -36,26 +62,27 @@ class NarrowbandBehaviorOption(Enum): def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." - " """ + " """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] return val @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Narrowband Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"] + ) @property def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - " """ + " """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @measurement_frequency.setter - def measurement_frequency(self, value : float|str): + def measurement_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Measurement Frequency={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Frequency={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py index c044f035034..d729b4d643c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class TxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -115,7 +140,7 @@ def amplifier_saturation_level(self, value : float|str): @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py index b97214bd279..01d1f263471 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -289,7 +315,7 @@ def amplifier_saturation_level(self, value : float|str): @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py index f51ee59c994..e6dda14524e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,7 +39,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -21,13 +47,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -39,11 +65,11 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpurTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -53,12 +79,11 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Spur Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py index 78518b19bee..1df7d443157 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class WalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py index 9e91eab3981..60821486b11 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Waveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index bd6f8b1de0e..7f7a748aedf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,3 +1,27 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from .Amplifier import Amplifier from .AntennaNode import AntennaNode from .AntennaPassband import AntennaPassband @@ -33,38 +57,6 @@ from .ProfileTraceNode import ProfileTraceNode from .PropagationLossCouplingNode import PropagationLossCouplingNode from .RadioNode import RadioNode -from .ResultPlotNode import ResultPlotNode -from .RfSystemGroup import RfSystemGroup -from .RxMeasNode import RxMeasNode -from .RxMixerProductNode import RxMixerProductNode -from .RxSaturationNode import RxSaturationNode -from .RxSelectivityNode import RxSelectivityNode -from .RxSpurNode import RxSpurNode -from .RxSusceptibilityProfNode import RxSusceptibilityProfNode -from .SamplingNode import SamplingNode -from .SceneGroupNode import SceneGroupNode -from .SelectivityTraceNode import SelectivityTraceNode -from .SolutionCouplingNode import SolutionCouplingNode -from .SolutionsNode import SolutionsNode -from .SpurTraceNode import SpurTraceNode -from .TR_Switch import TR_Switch -from .TRSwitchTraceNode import TRSwitchTraceNode -from .Terminator import Terminator -from .TestNoiseTraceNode import TestNoiseTraceNode -from .TopLevelSimulation import TopLevelSimulation -from .TouchstoneCouplingNode import TouchstoneCouplingNode -from .TunableTraceNode import TunableTraceNode -from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode -from .TwoToneTraceNode import TwoToneTraceNode -from .TxBbEmissionNode import TxBbEmissionNode -from .TxHarmonicNode import TxHarmonicNode -from .TxMeasNode import TxMeasNode -from .TxNbEmissionNode import TxNbEmissionNode -from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode -from .TxSpectralProfNode import TxSpectralProfNode -from .TxSpurNode import TxSpurNode -from .WalfischCouplingNode import WalfischCouplingNode -from .Waveform import Waveform from .ReadOnlyAmplifier import ReadOnlyAmplifier from .ReadOnlyAntennaNode import ReadOnlyAntennaNode from .ReadOnlyAntennaPassband import ReadOnlyAntennaPassband @@ -113,121 +105,153 @@ from .ReadOnlyTxSpurNode import ReadOnlyTxSpurNode from .ReadOnlyWalfischCouplingNode import ReadOnlyWalfischCouplingNode from .ReadOnlyWaveform import ReadOnlyWaveform +from .ResultPlotNode import ResultPlotNode +from .RfSystemGroup import RfSystemGroup +from .RxMeasNode import RxMeasNode +from .RxMixerProductNode import RxMixerProductNode +from .RxSaturationNode import RxSaturationNode +from .RxSelectivityNode import RxSelectivityNode +from .RxSpurNode import RxSpurNode +from .RxSusceptibilityProfNode import RxSusceptibilityProfNode +from .SamplingNode import SamplingNode +from .SceneGroupNode import SceneGroupNode +from .SelectivityTraceNode import SelectivityTraceNode +from .SolutionCouplingNode import SolutionCouplingNode +from .SolutionsNode import SolutionsNode +from .SpurTraceNode import SpurTraceNode +from .TRSwitchTraceNode import TRSwitchTraceNode +from .TR_Switch import TR_Switch +from .Terminator import Terminator +from .TestNoiseTraceNode import TestNoiseTraceNode +from .TopLevelSimulation import TopLevelSimulation +from .TouchstoneCouplingNode import TouchstoneCouplingNode +from .TunableTraceNode import TunableTraceNode +from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode +from .TwoToneTraceNode import TwoToneTraceNode +from .TxBbEmissionNode import TxBbEmissionNode +from .TxHarmonicNode import TxHarmonicNode +from .TxMeasNode import TxMeasNode +from .TxNbEmissionNode import TxNbEmissionNode +from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode +from .TxSpectralProfNode import TxSpectralProfNode +from .TxSpurNode import TxSpurNode +from .WalfischCouplingNode import WalfischCouplingNode +from .Waveform import Waveform __all__ = [ - 'Amplifier', - 'AntennaNode', - 'AntennaPassband', - 'Band', - 'BandFolder', - 'BandTraceNode', - 'CADNode', - 'Cable', - 'CategoriesViewNode', - 'Circulator', - 'CouplingLinkNode', - 'CouplingTraceNode', - 'CouplingsNode', - 'CustomCouplingNode', - 'EmiPlotMarkerNode', - 'EmitSceneNode', - 'ErcegCouplingNode', - 'Filter', - 'FiveGChannelModel', - 'HataCouplingNode', - 'IndoorPropagationCouplingNode', - 'Isolator', - 'LogDistanceCouplingNode', - 'MPlexBandTraceNode', - 'Multiplexer', - 'MultiplexerBand', - 'OutboardTraceNode', - 'ParametricCouplingTraceNode', - 'PlotMarkerNode', - 'PlotNode', - 'PowerDivider', - 'PowerTraceNode', - 'ProfileTraceNode', - 'PropagationLossCouplingNode', - 'RadioNode', - 'ResultPlotNode', - 'RfSystemGroup', - 'RxMeasNode', - 'RxMixerProductNode', - 'RxSaturationNode', - 'RxSelectivityNode', - 'RxSpurNode', - 'RxSusceptibilityProfNode', - 'SamplingNode', - 'SceneGroupNode', - 'SelectivityTraceNode', - 'SolutionCouplingNode', - 'SolutionsNode', - 'SpurTraceNode', - 'TR_Switch', - 'TRSwitchTraceNode', - 'Terminator', - 'TestNoiseTraceNode', - 'TopLevelSimulation', - 'TouchstoneCouplingNode', - 'TunableTraceNode', - 'TwoRayPathLossCouplingNode', - 'TwoToneTraceNode', - 'TxBbEmissionNode', - 'TxHarmonicNode', - 'TxMeasNode', - 'TxNbEmissionNode', - 'TxSpectralProfEmitterNode', - 'TxSpectralProfNode', - 'TxSpurNode', - 'WalfischCouplingNode', - 'Waveform', - 'ReadOnlyAmplifier', - 'ReadOnlyAntennaNode', - 'ReadOnlyAntennaPassband', - 'ReadOnlyBand', - 'ReadOnlyBandFolder', - 'ReadOnlyCADNode', - 'ReadOnlyCable', - 'ReadOnlyCirculator', - 'ReadOnlyCouplingLinkNode', - 'ReadOnlyCouplingsNode', - 'ReadOnlyCustomCouplingNode', - 'ReadOnlyEmitSceneNode', - 'ReadOnlyErcegCouplingNode', - 'ReadOnlyFilter', - 'ReadOnlyFiveGChannelModel', - 'ReadOnlyHataCouplingNode', - 'ReadOnlyIndoorPropagationCouplingNode', - 'ReadOnlyIsolator', - 'ReadOnlyLogDistanceCouplingNode', - 'ReadOnlyMultiplexer', - 'ReadOnlyMultiplexerBand', - 'ReadOnlyPowerDivider', - 'ReadOnlyPropagationLossCouplingNode', - 'ReadOnlyRadioNode', - 'ReadOnlyRfSystemGroup', - 'ReadOnlyRxMeasNode', - 'ReadOnlyRxMixerProductNode', - 'ReadOnlyRxSaturationNode', - 'ReadOnlyRxSelectivityNode', - 'ReadOnlyRxSpurNode', - 'ReadOnlyRxSusceptibilityProfNode', - 'ReadOnlySamplingNode', - 'ReadOnlySceneGroupNode', - 'ReadOnlySolutionCouplingNode', - 'ReadOnlySolutionsNode', - 'ReadOnlyTR_Switch', - 'ReadOnlyTerminator', - 'ReadOnlyTouchstoneCouplingNode', - 'ReadOnlyTwoRayPathLossCouplingNode', - 'ReadOnlyTxBbEmissionNode', - 'ReadOnlyTxHarmonicNode', - 'ReadOnlyTxMeasNode', - 'ReadOnlyTxNbEmissionNode', - 'ReadOnlyTxSpectralProfEmitterNode', - 'ReadOnlyTxSpectralProfNode', - 'ReadOnlyTxSpurNode', - 'ReadOnlyWalfischCouplingNode', - 'ReadOnlyWaveform', + "Amplifier", + "AntennaNode", + "AntennaPassband", + "Band", + "BandFolder", + "BandTraceNode", + "CADNode", + "Cable", + "CategoriesViewNode", + "Circulator", + "CouplingLinkNode", + "CouplingTraceNode", + "CouplingsNode", + "CustomCouplingNode", + "EmiPlotMarkerNode", + "EmitSceneNode", + "ErcegCouplingNode", + "Filter", + "FiveGChannelModel", + "HataCouplingNode", + "IndoorPropagationCouplingNode", + "Isolator", + "LogDistanceCouplingNode", + "MPlexBandTraceNode", + "Multiplexer", + "MultiplexerBand", + "OutboardTraceNode", + "ParametricCouplingTraceNode", + "PlotMarkerNode", + "PlotNode", + "PowerDivider", + "PowerTraceNode", + "ProfileTraceNode", + "PropagationLossCouplingNode", + "RadioNode", + "ResultPlotNode", + "RfSystemGroup", + "RxMeasNode", + "RxMixerProductNode", + "RxSaturationNode", + "RxSelectivityNode", + "RxSpurNode", + "RxSusceptibilityProfNode", + "SamplingNode", + "SceneGroupNode", + "SelectivityTraceNode", + "SolutionCouplingNode", + "SolutionsNode", + "SpurTraceNode", + "TR_Switch", + "TRSwitchTraceNode", + "Terminator", + "TestNoiseTraceNode", + "TopLevelSimulation", + "TouchstoneCouplingNode", + "TunableTraceNode", + "TwoRayPathLossCouplingNode", + "TwoToneTraceNode", + "TxBbEmissionNode", + "TxHarmonicNode", + "TxMeasNode", + "TxNbEmissionNode", + "TxSpectralProfEmitterNode", + "TxSpectralProfNode", + "TxSpurNode", + "WalfischCouplingNode", + "Waveform", + "ReadOnlyAmplifier", + "ReadOnlyAntennaNode", + "ReadOnlyAntennaPassband", + "ReadOnlyBand", + "ReadOnlyBandFolder", + "ReadOnlyCADNode", + "ReadOnlyCable", + "ReadOnlyCirculator", + "ReadOnlyCouplingLinkNode", + "ReadOnlyCouplingsNode", + "ReadOnlyCustomCouplingNode", + "ReadOnlyEmitSceneNode", + "ReadOnlyErcegCouplingNode", + "ReadOnlyFilter", + "ReadOnlyFiveGChannelModel", + "ReadOnlyHataCouplingNode", + "ReadOnlyIndoorPropagationCouplingNode", + "ReadOnlyIsolator", + "ReadOnlyLogDistanceCouplingNode", + "ReadOnlyMultiplexer", + "ReadOnlyMultiplexerBand", + "ReadOnlyPowerDivider", + "ReadOnlyPropagationLossCouplingNode", + "ReadOnlyRadioNode", + "ReadOnlyRfSystemGroup", + "ReadOnlyRxMeasNode", + "ReadOnlyRxMixerProductNode", + "ReadOnlyRxSaturationNode", + "ReadOnlyRxSelectivityNode", + "ReadOnlyRxSpurNode", + "ReadOnlyRxSusceptibilityProfNode", + "ReadOnlySamplingNode", + "ReadOnlySceneGroupNode", + "ReadOnlySolutionCouplingNode", + "ReadOnlySolutionsNode", + "ReadOnlyTR_Switch", + "ReadOnlyTerminator", + "ReadOnlyTouchstoneCouplingNode", + "ReadOnlyTwoRayPathLossCouplingNode", + "ReadOnlyTxBbEmissionNode", + "ReadOnlyTxHarmonicNode", + "ReadOnlyTxMeasNode", + "ReadOnlyTxNbEmissionNode", + "ReadOnlyTxSpectralProfEmitterNode", + "ReadOnlyTxSpectralProfNode", + "ReadOnlyTxSpurNode", + "ReadOnlyWalfischCouplingNode", + "ReadOnlyWaveform", ] From df07da71686852d280940e73f68fb94ade0b890a Mon Sep 17 00:00:00 2001 From: jsalant Date: Wed, 23 Apr 2025 14:37:43 -0400 Subject: [PATCH 33/86] more style fixes more style fixes --- src/ansys/aedt/core/emit.py | 2 - src/ansys/aedt/core/emit_core/__init__.py | 20 -- .../aedt/core/emit_core/nodes/EmitNode.py | 21 +- .../emit_core/nodes/generated/Amplifier.py | 64 ++-- .../emit_core/nodes/generated/AntennaNode.py | 154 ++++----- .../nodes/generated/AntennaPassband.py | 47 +-- .../core/emit_core/nodes/generated/Band.py | 110 +++--- .../emit_core/nodes/generated/BandFolder.py | 26 +- .../nodes/generated/BandTraceNode.py | 41 +-- .../core/emit_core/nodes/generated/CADNode.py | 104 +++--- .../core/emit_core/nodes/generated/Cable.py | 52 +-- .../nodes/generated/CategoriesViewNode.py | 26 +- .../emit_core/nodes/generated/Circulator.py | 62 +--- .../nodes/generated/CouplingLinkNode.py | 28 +- .../nodes/generated/CouplingTraceNode.py | 39 +-- .../nodes/generated/CouplingsNode.py | 33 +- .../nodes/generated/CustomCouplingNode.py | 40 +-- .../nodes/generated/EmiPlotMarkerNode.py | 71 ++-- .../nodes/generated/EmitSceneNode.py | 39 +-- .../nodes/generated/ErcegCouplingNode.py | 90 ++--- .../core/emit_core/nodes/generated/Filter.py | 92 ++--- .../nodes/generated/FiveGChannelModel.py | 96 ++---- .../nodes/generated/HataCouplingNode.py | 90 ++--- .../IndoorPropagationCouplingNode.py | 98 ++---- .../emit_core/nodes/generated/Isolator.py | 62 +--- .../generated/LogDistanceCouplingNode.py | 94 ++---- .../nodes/generated/MPlexBandTraceNode.py | 37 +- .../emit_core/nodes/generated/Multiplexer.py | 42 +-- .../nodes/generated/MultiplexerBand.py | 54 +-- .../nodes/generated/OutboardTraceNode.py | 35 +- .../generated/ParametricCouplingTraceNode.py | 39 +-- .../nodes/generated/PlotMarkerNode.py | 80 ++--- .../emit_core/nodes/generated/PlotNode.py | 98 ++---- .../emit_core/nodes/generated/PowerDivider.py | 62 +--- .../nodes/generated/PowerTraceNode.py | 37 +- .../nodes/generated/ProfileTraceNode.py | 35 +- .../generated/PropagationLossCouplingNode.py | 88 ++--- .../emit_core/nodes/generated/RadioNode.py | 36 +- .../nodes/generated/ReadOnlyAmplifier.py | 31 +- .../nodes/generated/ReadOnlyAntennaNode.py | 71 ++-- .../generated/ReadOnlyAntennaPassband.py | 28 +- .../emit_core/nodes/generated/ReadOnlyBand.py | 49 +-- .../nodes/generated/ReadOnlyBandFolder.py | 26 +- .../nodes/generated/ReadOnlyCADNode.py | 41 +-- .../nodes/generated/ReadOnlyCable.py | 33 +- .../nodes/generated/ReadOnlyCirculator.py | 35 +- .../generated/ReadOnlyCouplingLinkNode.py | 28 +- .../nodes/generated/ReadOnlyCouplingsNode.py | 28 +- .../generated/ReadOnlyCustomCouplingNode.py | 38 +-- .../nodes/generated/ReadOnlyEmitSceneNode.py | 33 +- .../generated/ReadOnlyErcegCouplingNode.py | 37 +- .../nodes/generated/ReadOnlyFilter.py | 45 +-- .../generated/ReadOnlyFiveGChannelModel.py | 39 +-- .../generated/ReadOnlyHataCouplingNode.py | 37 +- .../ReadOnlyIndoorPropagationCouplingNode.py | 45 +-- .../nodes/generated/ReadOnlyIsolator.py | 35 +- .../ReadOnlyLogDistanceCouplingNode.py | 37 +- .../nodes/generated/ReadOnlyMultiplexer.py | 37 +- .../generated/ReadOnlyMultiplexerBand.py | 31 +- .../nodes/generated/ReadOnlyPowerDivider.py | 35 +- .../ReadOnlyPropagationLossCouplingNode.py | 35 +- .../nodes/generated/ReadOnlyRadioNode.py | 36 +- .../nodes/generated/ReadOnlyRfSystemGroup.py | 26 +- .../nodes/generated/ReadOnlyRxMeasNode.py | 31 +- .../generated/ReadOnlyRxMixerProductNode.py | 37 +- .../generated/ReadOnlyRxSaturationNode.py | 26 +- .../generated/ReadOnlyRxSelectivityNode.py | 26 +- .../nodes/generated/ReadOnlyRxSpurNode.py | 37 +- .../ReadOnlyRxSusceptibilityProfNode.py | 37 +- .../nodes/generated/ReadOnlySamplingNode.py | 41 +-- .../nodes/generated/ReadOnlySceneGroupNode.py | 31 +- .../generated/ReadOnlySolutionCouplingNode.py | 28 +- .../nodes/generated/ReadOnlySolutionsNode.py | 26 +- .../nodes/generated/ReadOnlyTR_Switch.py | 32 +- .../nodes/generated/ReadOnlyTerminator.py | 35 +- .../ReadOnlyTouchstoneCouplingNode.py | 34 +- .../ReadOnlyTwoRayPathLossCouplingNode.py | 35 +- .../generated/ReadOnlyTxBbEmissionNode.py | 33 +- .../nodes/generated/ReadOnlyTxHarmonicNode.py | 29 +- .../nodes/generated/ReadOnlyTxMeasNode.py | 28 +- .../generated/ReadOnlyTxNbEmissionNode.py | 31 +- .../ReadOnlyTxSpectralProfEmitterNode.py | 30 +- .../generated/ReadOnlyTxSpectralProfNode.py | 35 +- .../nodes/generated/ReadOnlyTxSpurNode.py | 37 +- .../generated/ReadOnlyWalfischCouplingNode.py | 39 +-- .../nodes/generated/ReadOnlyWaveform.py | 41 +-- .../nodes/generated/ResultPlotNode.py | 100 ++---- .../nodes/generated/RfSystemGroup.py | 30 +- .../emit_core/nodes/generated/RxMeasNode.py | 78 ++--- .../nodes/generated/RxMixerProductNode.py | 72 ++-- .../nodes/generated/RxSaturationNode.py | 30 +- .../nodes/generated/RxSelectivityNode.py | 30 +- .../emit_core/nodes/generated/RxSpurNode.py | 41 +-- .../generated/RxSusceptibilityProfNode.py | 76 ++--- .../emit_core/nodes/generated/SamplingNode.py | 42 +-- .../nodes/generated/SceneGroupNode.py | 35 +- .../nodes/generated/SelectivityTraceNode.py | 35 +- .../nodes/generated/SolutionCouplingNode.py | 28 +- .../nodes/generated/SolutionsNode.py | 26 +- .../nodes/generated/SpurTraceNode.py | 39 +-- .../nodes/generated/TRSwitchTraceNode.py | 35 +- .../emit_core/nodes/generated/TR_Switch.py | 61 +--- .../emit_core/nodes/generated/Terminator.py | 42 +-- .../nodes/generated/TestNoiseTraceNode.py | 70 ++-- .../nodes/generated/TopLevelSimulation.py | 26 +- .../nodes/generated/TouchstoneCouplingNode.py | 34 +- .../nodes/generated/TunableTraceNode.py | 39 +-- .../generated/TwoRayPathLossCouplingNode.py | 94 ++---- .../nodes/generated/TwoToneTraceNode.py | 70 ++-- .../nodes/generated/TxBbEmissionNode.py | 41 +-- .../nodes/generated/TxHarmonicNode.py | 37 +- .../emit_core/nodes/generated/TxMeasNode.py | 38 +-- .../nodes/generated/TxNbEmissionNode.py | 41 +-- .../generated/TxSpectralProfEmitterNode.py | 61 +--- .../nodes/generated/TxSpectralProfNode.py | 98 ++---- .../emit_core/nodes/generated/TxSpurNode.py | 41 +-- .../nodes/generated/WalfischCouplingNode.py | 102 +++--- .../emit_core/nodes/generated/Waveform.py | 96 ++---- .../emit_core/nodes/generated/__init__.py | 318 ++++++++---------- .../aedt/core/emit_core/results/revision.py | 20 +- 120 files changed, 1503 insertions(+), 4442 deletions(-) diff --git a/src/ansys/aedt/core/emit.py b/src/ansys/aedt/core/emit.py index a89679daefd..1384fb9f550 100644 --- a/src/ansys/aedt/core/emit.py +++ b/src/ansys/aedt/core/emit.py @@ -22,8 +22,6 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -import warnings - from ansys.aedt.core import emit_core from ansys.aedt.core.application.design import Design from ansys.aedt.core.emit_core.couplings import CouplingsEmit diff --git a/src/ansys/aedt/core/emit_core/__init__.py b/src/ansys/aedt/core/emit_core/__init__.py index 070dc262fdf..17d7b54c2f6 100644 --- a/src/ansys/aedt/core/emit_core/__init__.py +++ b/src/ansys/aedt/core/emit_core/__init__.py @@ -78,26 +78,6 @@ def _init_enums(aedt_version): UnitType.VOLTAGE = emit_api_python().unit_type().voltage UnitType.DATA_RATE = emit_api_python().unit_type().dataRate UnitType.RESISTANCE = emit_api_python().unit_type().resistance - """ResultType.EMI = 0 - ResultType.DESENSE = 1 - ResultType.SENSITIVITY = 2 - ResultType.POWER_AT_RX = 3 - - TxRxMode.TX = 0 - TxRxMode.RX = 1 - TxRxMode.BOTH = 2 - - InterfererType.TRANSMITTERS = 0 - InterfererType.EMITTERS = 1 - InterfererType.TRANSMITTERS_AND_EMITTERS = 2 - - UnitType.POWER = 0 - UnitType.FREQUENCY = 1 - UnitType.LENGTH = 2 - UnitType.TIME = 3 - UnitType.VOLTAGE = 4 - UnitType.DATA_RATE = 5 - UnitType.RESISTANCE = 6""" EmiCategoryFilter.IN_CHANNEL_TX_FUNDAMENTAL = 0 EmiCategoryFilter.IN_CHANNEL_TX_HARMONIC_SPURIOUS = 1 diff --git a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py index b12aaf501a6..5dc93b43298 100644 --- a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py @@ -22,14 +22,10 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -from enum import Enum import warnings - -from ansys.aedt.core.emit_core.results import revision import ansys.aedt.core.generic.constants as consts from ..emit_constants import EMIT_INTERNAL_UNITS -from ..emit_constants import EMIT_TO_AEDT_UNITS from ..emit_constants import EMIT_VALID_UNITS from ..emit_constants import data_rate_conv @@ -80,13 +76,16 @@ def properties(self): return props @property - def warnings(self): - warnings = "" + def node_warnings(self): + node_warnings = "" try: - warnings = self._get_property("Warnings") + node_warnings = self._get_property("Warnings") except Exception: - pass - return warnings + warnings.warn( + f"Unable to get the warnings for node: {self.name}.", + UserWarning, + ) + return node_warnings @property def allowed_child_types(self): @@ -113,11 +112,11 @@ def _get_node(self, id: int): props = self._oRevisionData.GetEmitNodeProperties(self._result_id, id, True) props = self.props_to_dict(props) - type = props["Type"] + node_type = props["Type"] node = None try: - type_class = getattr(generated, type) + type_class = getattr(generated, node_type) node = type_class(self._oDesign, self._result_id, id) except AttributeError: node = EmitNode(self._oDesign, self._result_id, id) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index 966d8eb20b0..6bc2b1c782a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Amplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -55,7 +29,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,8 +41,8 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: @@ -80,7 +54,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class AmplifierTypeOption(Enum): TRANSMIT_AMPLIFIER = "Transmit Amplifier" @@ -97,7 +71,7 @@ def amplifier_type(self) -> AmplifierTypeOption: @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplifier Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Type={value.value}"]) @property def gain(self) -> float: @@ -109,8 +83,8 @@ def gain(self) -> float: return val @gain.setter - def gain(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Gain={value}"]) + def gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Gain={value}"]) @property def center_frequency(self) -> float: @@ -125,7 +99,7 @@ def center_frequency(self) -> float: @center_frequency.setter def center_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Center Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Frequency={value}"]) @property def bandwidth(self) -> float: @@ -140,7 +114,7 @@ def bandwidth(self) -> float: @bandwidth.setter def bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth={value}"]) @property def noise_figure(self) -> float: @@ -152,8 +126,8 @@ def noise_figure(self) -> float: return val @noise_figure.setter - def noise_figure(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def saturation_level(self) -> float: @@ -168,7 +142,7 @@ def saturation_level(self) -> float: @saturation_level.setter def saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) @property def p1_db_point_ref_input(self) -> float: @@ -183,7 +157,7 @@ def p1_db_point_ref_input(self) -> float: @p1_db_point_ref_input.setter def p1_db_point_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"P1-dB Point, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input={value}"]) @property def ip3_ref_input(self) -> float: @@ -198,7 +172,7 @@ def ip3_ref_input(self) -> float: @ip3_ref_input.setter def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def shape_factor(self) -> float: @@ -210,8 +184,8 @@ def shape_factor(self) -> float: return val @shape_factor.setter - def shape_factor(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Shape Factor={value}"]) + def shape_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) @property def reverse_isolation(self) -> float: @@ -223,8 +197,8 @@ def reverse_isolation(self) -> float: return val @reverse_isolation.setter - def reverse_isolation(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -237,5 +211,5 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py index a56fae7c13d..26ac0ddd934 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class AntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -63,7 +37,7 @@ def tags(self) -> str: @tags.setter def tags(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tags={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tags={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -76,7 +50,7 @@ def show_relative_coordinates(self) -> bool: @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Relative Coordinates={value}"]) @property def position(self): @@ -89,7 +63,7 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -102,7 +76,7 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -119,7 +93,7 @@ def orientation_mode(self) -> OrientationModeOption: @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -132,7 +106,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -145,7 +119,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def position_defined(self) -> bool: @@ -158,7 +132,7 @@ def position_defined(self) -> bool: @position_defined.setter def position_defined(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position Defined={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Defined={value}"]) @property def antenna_temperature(self) -> float: @@ -170,8 +144,8 @@ def antenna_temperature(self) -> float: return val @antenna_temperature.setter - def antenna_temperature(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna Temperature={value}"]) + def antenna_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna Temperature={value}"]) @property def type(self): @@ -183,7 +157,7 @@ def type(self): @type.setter def type(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value}"]) @property def antenna_file(self) -> str: @@ -195,7 +169,7 @@ def antenna_file(self) -> str: @antenna_file.setter def antenna_file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna File={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna File={value}"]) @property def project_name(self) -> str: @@ -208,7 +182,7 @@ def project_name(self) -> str: @project_name.setter def project_name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Project Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Project Name={value}"]) @property def peak_gain(self) -> float: @@ -220,8 +194,8 @@ def peak_gain(self) -> float: return val @peak_gain.setter - def peak_gain(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Peak Gain={value}"]) + def peak_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Gain={value}"]) class BoresightOption(Enum): XAXIS = "+X Axis" @@ -239,7 +213,7 @@ def boresight(self) -> BoresightOption: @boresight.setter def boresight(self, value: BoresightOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Boresight={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Boresight={value.value}"]) @property def vertical_beamwidth(self) -> float: @@ -251,8 +225,8 @@ def vertical_beamwidth(self) -> float: return val @vertical_beamwidth.setter - def vertical_beamwidth(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Vertical Beamwidth={value}"]) + def vertical_beamwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Beamwidth={value}"]) @property def horizontal_beamwidth(self) -> float: @@ -264,8 +238,8 @@ def horizontal_beamwidth(self) -> float: return val @horizontal_beamwidth.setter - def horizontal_beamwidth(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Horizontal Beamwidth={value}"]) + def horizontal_beamwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Beamwidth={value}"]) @property def extra_sidelobe(self) -> bool: @@ -278,7 +252,7 @@ def extra_sidelobe(self) -> bool: @extra_sidelobe.setter def extra_sidelobe(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Extra Sidelobe={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Extra Sidelobe={value}"]) @property def first_sidelobe_level(self) -> float: @@ -290,8 +264,8 @@ def first_sidelobe_level(self) -> float: return val @first_sidelobe_level.setter - def first_sidelobe_level(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"First Sidelobe Level={value}"]) + def first_sidelobe_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Level={value}"]) @property def first_sidelobe_vert_bw(self) -> float: @@ -303,8 +277,8 @@ def first_sidelobe_vert_bw(self) -> float: return val @first_sidelobe_vert_bw.setter - def first_sidelobe_vert_bw(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"First Sidelobe Vert. BW={value}"]) + def first_sidelobe_vert_bw(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Vert. BW={value}"]) @property def first_sidelobe_hor_bw(self) -> float: @@ -316,8 +290,8 @@ def first_sidelobe_hor_bw(self) -> float: return val @first_sidelobe_hor_bw.setter - def first_sidelobe_hor_bw(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"First Sidelobe Hor. BW={value}"]) + def first_sidelobe_hor_bw(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Hor. BW={value}"]) @property def outerbacklobe_level(self) -> float: @@ -329,8 +303,8 @@ def outerbacklobe_level(self) -> float: return val @outerbacklobe_level.setter - def outerbacklobe_level(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Outer/Backlobe Level={value}"]) + def outerbacklobe_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Outer/Backlobe Level={value}"]) @property def resonant_frequency(self) -> float: @@ -345,7 +319,7 @@ def resonant_frequency(self) -> float: @resonant_frequency.setter def resonant_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Resonant Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resonant Frequency={value}"]) @property def slot_length(self) -> float: @@ -360,7 +334,7 @@ def slot_length(self) -> float: @slot_length.setter def slot_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Slot Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Slot Length={value}"]) @property def mouth_width(self) -> float: @@ -375,7 +349,7 @@ def mouth_width(self) -> float: @mouth_width.setter def mouth_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mouth Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Width={value}"]) @property def mouth_height(self) -> float: @@ -390,7 +364,7 @@ def mouth_height(self) -> float: @mouth_height.setter def mouth_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mouth Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Height={value}"]) @property def waveguide_width(self) -> float: @@ -405,7 +379,7 @@ def waveguide_width(self) -> float: @waveguide_width.setter def waveguide_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Waveguide Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveguide Width={value}"]) @property def width_flare_half_angle(self) -> float: @@ -417,8 +391,8 @@ def width_flare_half_angle(self) -> float: return val @width_flare_half_angle.setter - def width_flare_half_angle(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Width Flare Half-angle={value}"]) + def width_flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width Flare Half-angle={value}"]) @property def height_flare_half_angle(self) -> float: @@ -430,8 +404,8 @@ def height_flare_half_angle(self) -> float: return val @height_flare_half_angle.setter - def height_flare_half_angle(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Height Flare Half-angle={value}"]) + def height_flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height Flare Half-angle={value}"]) @property def mouth_diameter(self) -> float: @@ -446,7 +420,7 @@ def mouth_diameter(self) -> float: @mouth_diameter.setter def mouth_diameter(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mouth Diameter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Diameter={value}"]) @property def flare_half_angle(self) -> float: @@ -458,8 +432,8 @@ def flare_half_angle(self) -> float: return val @flare_half_angle.setter - def flare_half_angle(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Flare Half-angle={value}"]) + def flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flare Half-angle={value}"]) @property def vswr(self) -> float: @@ -471,8 +445,8 @@ def vswr(self) -> float: return val @vswr.setter - def vswr(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"VSWR={value}"]) + def vswr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) class AntennaPolarizationOption(Enum): VERTICAL = "Vertical" @@ -491,7 +465,7 @@ def antenna_polarization(self) -> AntennaPolarizationOption: @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna Polarization={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna Polarization={value.value}"]) class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" @@ -508,7 +482,7 @@ def cross_dipole_mode(self) -> CrossDipoleModeOption: @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Cross Dipole Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Cross Dipole Mode={value.value}"]) class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" @@ -525,7 +499,7 @@ def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Cross Dipole Polarization={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Cross Dipole Polarization={value.value}"]) @property def override_height(self) -> bool: @@ -538,7 +512,7 @@ def override_height(self) -> bool: @override_height.setter def override_height(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Override Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Override Height={value}"]) @property def offset_height(self) -> float: @@ -553,7 +527,7 @@ def offset_height(self) -> float: @offset_height.setter def offset_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Offset Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset Height={value}"]) @property def auto_height_offset(self) -> bool: @@ -566,7 +540,7 @@ def auto_height_offset(self) -> bool: @auto_height_offset.setter def auto_height_offset(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Auto Height Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Auto Height Offset={value}"]) @property def conform__adjust_antenna(self) -> bool: @@ -579,7 +553,7 @@ def conform__adjust_antenna(self) -> bool: @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Conform / Adjust Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform / Adjust Antenna={value}"]) @property def element_offset(self): @@ -592,7 +566,7 @@ def element_offset(self): @element_offset.setter def element_offset(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Element Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Element Offset={value}"]) class ConformtoPlatformOption(Enum): NONE = "None" @@ -610,7 +584,7 @@ def conform_to_platform(self) -> ConformtoPlatformOption: @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Conform to Platform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform to Platform={value.value}"]) class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" @@ -628,7 +602,7 @@ def reference_plane(self) -> ReferencePlaneOption: @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Reference Plane={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reference Plane={value.value}"]) @property def conform_element_orientation(self) -> bool: @@ -641,7 +615,7 @@ def conform_element_orientation(self) -> bool: @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Conform Element Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform Element Orientation={value}"]) @property def show_axes(self) -> bool: @@ -654,7 +628,7 @@ def show_axes(self) -> bool: @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def show_icon(self) -> bool: @@ -667,7 +641,7 @@ def show_icon(self) -> bool: @show_icon.setter def show_icon(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Icon={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Icon={value}"]) @property def size(self) -> float: @@ -679,8 +653,8 @@ def size(self) -> float: return val @size.setter - def size(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Size={value}"]) + def size(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Size={value}"]) @property def color(self): @@ -693,7 +667,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def el_sample_interval(self) -> float: @@ -803,7 +777,7 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"SWE Mode Truncation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SWE Mode Truncation={value.value}"]) @property def max_n_index(self) -> int: @@ -816,7 +790,7 @@ def max_n_index(self) -> int: @max_n_index.setter def max_n_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max N Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max N Index={value}"]) @property def notes(self) -> str: @@ -828,7 +802,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) @property def show_composite_passband(self) -> bool: @@ -841,7 +815,7 @@ def show_composite_passband(self) -> bool: @show_composite_passband.setter def show_composite_passband(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Composite Passband={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Composite Passband={value}"]) @property def use_phase_center(self) -> bool: @@ -854,7 +828,7 @@ def use_phase_center(self) -> bool: @use_phase_center.setter def use_phase_center(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use Phase Center={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Phase Center={value}"]) @property def coordinate_systems(self) -> str: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py index 932961b2cb5..2624a00a849 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class AntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,11 +25,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) @property def passband_loss(self) -> float: @@ -66,8 +41,8 @@ def passband_loss(self) -> float: return val @passband_loss.setter - def passband_loss(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Passband Loss={value}"]) + def passband_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Passband Loss={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -79,8 +54,8 @@ def out_of_band_attenuation(self) -> float: return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Out of Band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out of Band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -95,7 +70,7 @@ def lower_stop_band(self) -> float: @lower_stop_band.setter def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -110,7 +85,7 @@ def lower_cutoff(self) -> float: @lower_cutoff.setter def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -125,7 +100,7 @@ def higher_cutoff(self) -> float: @higher_cutoff.setter def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -140,7 +115,7 @@ def higher_stop_band(self) -> float: @higher_stop_band.setter def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def notes(self) -> str: @@ -152,5 +127,5 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index 3e0861a582f..ab2560410a0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Band(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,11 +14,11 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) @property def port(self): @@ -56,7 +30,7 @@ def port(self): @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) @property def use_dd_1494_mode(self) -> bool: @@ -69,7 +43,7 @@ def use_dd_1494_mode(self) -> bool: @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use DD-1494 Mode={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use DD-1494 Mode={value}"]) @property def use_emission_designator(self) -> bool: @@ -82,7 +56,7 @@ def use_emission_designator(self) -> bool: @use_emission_designator.setter def use_emission_designator(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Emission Designator={value}"]) @property def emission_designator(self) -> str: @@ -94,7 +68,7 @@ def emission_designator(self) -> str: @emission_designator.setter def emission_designator(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Emission Designator={value}"]) @property def emission_designator_ch_bw(self) -> float: @@ -124,7 +98,7 @@ def override_emission_designator_bw(self) -> bool: @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Override Emission Designator BW={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Override Emission Designator BW={value}"]) @property def channel_bandwidth(self) -> float: @@ -139,7 +113,7 @@ def channel_bandwidth(self) -> float: @channel_bandwidth.setter def channel_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Channel Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Bandwidth={value}"]) class ModulationOption(Enum): GENERIC = "Generic" @@ -165,7 +139,7 @@ def modulation(self) -> ModulationOption: @modulation.setter def modulation(self, value: ModulationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Modulation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation={value.value}"]) @property def max_modulating_freq(self) -> float: @@ -180,7 +154,7 @@ def max_modulating_freq(self) -> float: @max_modulating_freq.setter def max_modulating_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Modulating Freq.={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Modulating Freq.={value}"]) @property def modulation_index(self) -> float: @@ -192,8 +166,8 @@ def modulation_index(self) -> float: return val @modulation_index.setter - def modulation_index(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Modulation Index={value}"]) + def modulation_index(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Index={value}"]) @property def freq_deviation(self) -> float: @@ -208,7 +182,7 @@ def freq_deviation(self) -> float: @freq_deviation.setter def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) @property def bit_rate(self) -> float: @@ -223,7 +197,7 @@ def bit_rate(self) -> float: @bit_rate.setter def bit_rate(self, value : float|str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bit Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bit Rate={value}"]) @property def sidelobes(self) -> int: @@ -236,11 +210,11 @@ def sidelobes(self) -> int: @sidelobes.setter def sidelobes(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Sidelobes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sidelobes={value}"]) @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ @@ -251,7 +225,7 @@ def freq_deviation_(self) -> float: @freq_deviation_.setter def freq_deviation_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Freq. Deviation ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation ={value}"]) class PSKTypeOption(Enum): BPSK = "BPSK" @@ -272,7 +246,7 @@ def psk_type(self) -> PSKTypeOption: @psk_type.setter def psk_type(self, value: PSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"PSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"PSK Type={value.value}"]) class FSKTypeOption(Enum): FSK_2 = "FSK-2" @@ -290,7 +264,7 @@ def fsk_type(self) -> FSKTypeOption: @fsk_type.setter def fsk_type(self, value: FSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"FSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FSK Type={value.value}"]) class QAMTypeOption(Enum): QAM_4 = "QAM-4" @@ -310,7 +284,7 @@ def qam_type(self) -> QAMTypeOption: @qam_type.setter def qam_type(self, value: QAMTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"QAM Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"QAM Type={value.value}"]) class APSKTypeOption(Enum): APSK_4 = "APSK-4" @@ -330,7 +304,7 @@ def apsk_type(self) -> APSKTypeOption: @apsk_type.setter def apsk_type(self, value: APSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"APSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"APSK Type={value.value}"]) @property def start_frequency(self) -> float: @@ -345,7 +319,7 @@ def start_frequency(self) -> float: @start_frequency.setter def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -360,7 +334,7 @@ def stop_frequency(self) -> float: @stop_frequency.setter def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -375,7 +349,7 @@ def channel_spacing(self) -> float: @channel_spacing.setter def channel_spacing(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) @property def tx_offset(self) -> float: @@ -390,7 +364,7 @@ def tx_offset(self) -> float: @tx_offset.setter def tx_offset(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tx Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Offset={value}"]) class RadarTypeOption(Enum): CW = "CW" @@ -410,7 +384,7 @@ def radar_type(self) -> RadarTypeOption: @radar_type.setter def radar_type(self, value: RadarTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Radar Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radar Type={value.value}"]) @property def hopping_radar(self) -> bool: @@ -423,7 +397,7 @@ def hopping_radar(self) -> bool: @hopping_radar.setter def hopping_radar(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Hopping Radar={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hopping Radar={value}"]) @property def post_october_2020_procurement(self) -> bool: @@ -436,7 +410,7 @@ def post_october_2020_procurement(self) -> bool: @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Post October 2020 Procurement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Post October 2020 Procurement={value}"]) @property def hop_range_min_freq(self) -> float: @@ -451,7 +425,7 @@ def hop_range_min_freq(self) -> float: @hop_range_min_freq.setter def hop_range_min_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Hop Range Min Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Min Freq={value}"]) @property def hop_range_max_freq(self) -> float: @@ -466,7 +440,7 @@ def hop_range_max_freq(self) -> float: @hop_range_max_freq.setter def hop_range_max_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Hop Range Max Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Max Freq={value}"]) @property def pulse_duration(self) -> float: @@ -481,7 +455,7 @@ def pulse_duration(self) -> float: @pulse_duration.setter def pulse_duration(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pulse Duration={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Duration={value}"]) @property def pulse_rise_time(self) -> float: @@ -496,7 +470,7 @@ def pulse_rise_time(self) -> float: @pulse_rise_time.setter def pulse_rise_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pulse Rise Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Rise Time={value}"]) @property def pulse_fall_time(self) -> float: @@ -511,7 +485,7 @@ def pulse_fall_time(self) -> float: @pulse_fall_time.setter def pulse_fall_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pulse Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Fall Time={value}"]) @property def pulse_repetition_rate(self) -> float: @@ -523,8 +497,8 @@ def pulse_repetition_rate(self) -> float: return val @pulse_repetition_rate.setter - def pulse_repetition_rate(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pulse Repetition Rate={value}"]) + def pulse_repetition_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Repetition Rate={value}"]) @property def number_of_chips(self) -> float: @@ -536,8 +510,8 @@ def number_of_chips(self) -> float: return val @number_of_chips.setter - def number_of_chips(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Number of Chips={value}"]) + def number_of_chips(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Chips={value}"]) @property def pulse_compression_ratio(self) -> float: @@ -549,8 +523,8 @@ def pulse_compression_ratio(self) -> float: return val @pulse_compression_ratio.setter - def pulse_compression_ratio(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pulse Compression Ratio={value}"]) + def pulse_compression_ratio(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Compression Ratio={value}"]) @property def fm_chirp_period(self) -> float: @@ -565,7 +539,7 @@ def fm_chirp_period(self) -> float: @fm_chirp_period.setter def fm_chirp_period(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"FM Chirp Period={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Chirp Period={value}"]) @property def fm_freq_deviation(self) -> float: @@ -580,7 +554,7 @@ def fm_freq_deviation(self) -> float: @fm_freq_deviation.setter def fm_freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"FM Freq Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Deviation={value}"]) @property def fm_freq_dev_bandwidth(self) -> float: @@ -595,5 +569,5 @@ def fm_freq_dev_bandwidth(self) -> float: @fm_freq_dev_bandwidth.setter def fm_freq_dev_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"FM Freq Dev Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Dev Bandwidth={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py index e173c1d3913..b16ed48b03e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class BandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,3 +25,4 @@ def duplicate(self, new_name): def delete(self): """Delete this node""" self._delete() + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py index b61929a3baa..cf38504b9d6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class BandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,7 +27,7 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @@ -69,7 +43,7 @@ class TxorRxOption(Enum): def tx_or_rx(self) -> TxorRxOption: """Tx or Rx "Specifies whether the trace is a Tx or Rx channel." - " """ + " """ val = self._get_property("Tx or Rx") val = self.TxorRxOption[val] return val @@ -82,7 +56,7 @@ def tx_or_rx(self, value: TxorRxOption): def channel_frequency(self): """Channel Frequency "Select band channel frequency to display." - " """ + " """ val = self._get_property("Channel Frequency") return val @@ -94,7 +68,7 @@ def channel_frequency(self, value): def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -129,7 +103,7 @@ def custom_legend(self, value: bool): def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @@ -149,7 +123,7 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @@ -205,7 +179,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -265,3 +239,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py index 6ce73bf29ec..b07050bd244 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class CADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -85,7 +59,7 @@ def model_type(self) -> ModelTypeOption: @model_type.setter def model_type(self, value: ModelTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Model Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Model Type={value.value}"]) @property def length(self) -> float: @@ -100,7 +74,7 @@ def length(self) -> float: @length.setter def length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) @property def width(self) -> float: @@ -115,7 +89,7 @@ def width(self) -> float: @width.setter def width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width={value}"]) @property def height(self) -> float: @@ -130,7 +104,7 @@ def height(self) -> float: @height.setter def height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height={value}"]) @property def angle(self) -> float: @@ -142,8 +116,8 @@ def angle(self) -> float: return val @angle.setter - def angle(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Angle={value}"]) + def angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Angle={value}"]) @property def top_side(self) -> float: @@ -158,7 +132,7 @@ def top_side(self) -> float: @top_side.setter def top_side(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Top Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Side={value}"]) @property def top_radius(self) -> float: @@ -173,7 +147,7 @@ def top_radius(self) -> float: @top_radius.setter def top_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Top Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Radius={value}"]) @property def side(self) -> float: @@ -188,7 +162,7 @@ def side(self) -> float: @side.setter def side(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Side={value}"]) @property def radius(self) -> float: @@ -203,7 +177,7 @@ def radius(self) -> float: @radius.setter def radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radius={value}"]) @property def base_radius(self) -> float: @@ -218,7 +192,7 @@ def base_radius(self) -> float: @base_radius.setter def base_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Base Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Radius={value}"]) @property def center_radius(self) -> float: @@ -233,7 +207,7 @@ def center_radius(self) -> float: @center_radius.setter def center_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Center Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Radius={value}"]) @property def x_axis_ellipsoid_radius(self) -> float: @@ -248,7 +222,7 @@ def x_axis_ellipsoid_radius(self) -> float: @x_axis_ellipsoid_radius.setter def x_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"X Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Axis Ellipsoid Radius={value}"]) @property def y_axis_ellipsoid_radius(self) -> float: @@ -263,7 +237,7 @@ def y_axis_ellipsoid_radius(self) -> float: @y_axis_ellipsoid_radius.setter def y_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Axis Ellipsoid Radius={value}"]) @property def z_axis_ellipsoid_radius(self) -> float: @@ -278,7 +252,7 @@ def z_axis_ellipsoid_radius(self) -> float: @z_axis_ellipsoid_radius.setter def z_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Z Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Z Axis Ellipsoid Radius={value}"]) @property def focal_length(self) -> float: @@ -293,7 +267,7 @@ def focal_length(self) -> float: @focal_length.setter def focal_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Focal Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Focal Length={value}"]) @property def offset(self) -> float: @@ -307,7 +281,7 @@ def offset(self) -> float: @offset.setter def offset(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset={value}"]) @property def x_direction_taper(self) -> float: @@ -319,8 +293,8 @@ def x_direction_taper(self) -> float: return val @x_direction_taper.setter - def x_direction_taper(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"X Direction Taper={value}"]) + def x_direction_taper(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Direction Taper={value}"]) @property def y_direction_taper(self) -> float: @@ -332,8 +306,8 @@ def y_direction_taper(self) -> float: return val @y_direction_taper.setter - def y_direction_taper(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y Direction Taper={value}"]) + def y_direction_taper(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Direction Taper={value}"]) @property def prism_direction(self): @@ -346,7 +320,7 @@ def prism_direction(self): @prism_direction.setter def prism_direction(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Prism Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Prism Direction={value}"]) @property def closed_top(self) -> bool: @@ -359,7 +333,7 @@ def closed_top(self) -> bool: @closed_top.setter def closed_top(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Closed Top={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Top={value}"]) @property def closed_base(self) -> bool: @@ -372,7 +346,7 @@ def closed_base(self) -> bool: @closed_base.setter def closed_base(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Closed Base={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Base={value}"]) @property def mesh_density(self) -> int: @@ -385,7 +359,7 @@ def mesh_density(self) -> int: @mesh_density.setter def mesh_density(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mesh Density={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Density={value}"]) @property def use_symmetric_mesh(self) -> bool: @@ -398,7 +372,7 @@ def use_symmetric_mesh(self) -> bool: @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use Symmetric Mesh={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Symmetric Mesh={value}"]) class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -415,7 +389,7 @@ def mesh_option(self) -> MeshOptionOption: @mesh_option.setter def mesh_option(self, value: MeshOptionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mesh Option={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Option={value.value}"]) @property def coating_index(self) -> int: @@ -428,7 +402,7 @@ def coating_index(self) -> int: @coating_index.setter def coating_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Coating Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Coating Index={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -441,7 +415,7 @@ def show_relative_coordinates(self) -> bool: @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Relative Coordinates={value}"]) @property def position(self): @@ -454,7 +428,7 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -467,7 +441,7 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -484,7 +458,7 @@ def orientation_mode(self) -> OrientationModeOption: @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -497,7 +471,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -510,7 +484,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def visible(self) -> bool: @@ -523,7 +497,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -542,7 +516,7 @@ def render_mode(self) -> RenderModeOption: @render_mode.setter def render_mode(self, value: RenderModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Render Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Render Mode={value.value}"]) @property def show_axes(self) -> bool: @@ -555,7 +529,7 @@ def show_axes(self) -> bool: @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def min(self): @@ -594,7 +568,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def notes(self) -> str: @@ -606,5 +580,5 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index 4080d7e7d34..827b05efda1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Cable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -55,7 +29,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,8 +41,8 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: @@ -80,7 +54,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -98,7 +72,7 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def length(self) -> float: @@ -113,7 +87,7 @@ def length(self) -> float: @length.setter def length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) @property def loss_per_length(self) -> float: @@ -125,8 +99,8 @@ def loss_per_length(self) -> float: return val @loss_per_length.setter - def loss_per_length(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Loss Per Length={value}"]) + def loss_per_length(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Loss Per Length={value}"]) @property def measurement_length(self) -> float: @@ -141,7 +115,7 @@ def measurement_length(self) -> float: @measurement_length.setter def measurement_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Measurement Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Length={value}"]) @property def resistive_loss_constant(self) -> float: @@ -153,8 +127,8 @@ def resistive_loss_constant(self) -> float: return val @resistive_loss_constant.setter - def resistive_loss_constant(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Resistive Loss Constant={value}"]) + def resistive_loss_constant(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resistive Loss Constant={value}"]) @property def dielectric_loss_constant(self) -> float: @@ -166,8 +140,8 @@ def dielectric_loss_constant(self) -> float: return val @dielectric_loss_constant.setter - def dielectric_loss_constant(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Dielectric Loss Constant={value}"]) + def dielectric_loss_constant(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Dielectric Loss Constant={value}"]) @property def warnings(self) -> str: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py index 7d77e3d1184..82bd87eb625 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py @@ -1,31 +1,7 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class CategoriesViewNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index f4063e853b8..e6c0bcf9a98 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Circulator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -55,7 +29,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,8 +41,8 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: @@ -80,7 +54,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -97,7 +71,7 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -114,7 +88,7 @@ def port_1_location(self) -> Port1LocationOption: @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -126,8 +100,8 @@ def insertion_loss(self) -> float: return val @insertion_loss.setter - def insertion_loss(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -140,7 +114,7 @@ def finite_reverse_isolation(self) -> bool: @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -152,8 +126,8 @@ def reverse_isolation(self) -> float: return val @reverse_isolation.setter - def reverse_isolation(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -166,7 +140,7 @@ def finite_bandwidth(self) -> bool: @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -178,8 +152,8 @@ def out_of_band_attenuation(self) -> float: return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -194,7 +168,7 @@ def lower_stop_band(self) -> float: @lower_stop_band.setter def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -209,7 +183,7 @@ def lower_cutoff(self) -> float: @lower_cutoff.setter def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -224,7 +198,7 @@ def higher_cutoff(self) -> float: @higher_cutoff.setter def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -239,7 +213,7 @@ def higher_stop_band(self) -> float: @higher_stop_band.setter def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py index 706972bc560..db3b288fc65 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class CouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,10 +28,11 @@ def ports(self): """Ports "Maps each port in the link to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Ports") return val @ports.setter def ports(self, value): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py index 6d93d55cab2..7702528f752 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class CouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,7 +26,7 @@ def delete(self): @property def transmitter(self) -> EmitNode: """Transmitter - " """ + " """ val = self._get_property("Transmitter") return val @@ -63,7 +37,7 @@ def transmitter(self, value: EmitNode): @property def receiver(self) -> EmitNode: """Receiver - " """ + " """ val = self._get_property("Receiver") return val @@ -75,7 +49,7 @@ def receiver(self, value: EmitNode): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @@ -113,7 +87,7 @@ def custom_legend(self, value: bool): def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @@ -133,7 +107,7 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @@ -189,7 +163,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -353,3 +327,4 @@ def border_color(self): @border_color.setter def border_color(self, value): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py index d8fd8c63d49..fd8a0394e59 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class CouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -80,8 +55,8 @@ def minimum_allowed_coupling(self) -> float: return val @minimum_allowed_coupling.setter - def minimum_allowed_coupling(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Minimum Allowed Coupling={value}"]) + def minimum_allowed_coupling(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Allowed Coupling={value}"]) @property def global_default_coupling(self) -> float: @@ -93,8 +68,8 @@ def global_default_coupling(self) -> float: return val @global_default_coupling.setter - def global_default_coupling(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Global Default Coupling={value}"]) + def global_default_coupling(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Global Default Coupling={value}"]) @property def antenna_tags(self) -> str: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py index aa3c55f2ff6..65eb0cc74c2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class CustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +12,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def rename(self, new_name): """Rename this node""" @@ -53,11 +28,11 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Value (dB): + "Value (dB): " Value should be between -1000 and 0." """ return self._get_table_data() @@ -83,7 +58,7 @@ def enabled(self, value: bool): def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -95,7 +70,7 @@ def antenna_a(self, value: EmitNode): def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -133,10 +108,11 @@ def adaptive_sampling(self, value: bool): def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py index 9768190efb4..1f2b15f902d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class EmiPlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,7 +33,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def attached(self): @@ -70,7 +45,7 @@ def attached(self): @attached.setter def attached(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) @property def position(self) -> float: @@ -99,7 +74,7 @@ def floating_label(self) -> bool: @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -111,8 +86,8 @@ def position_from_left(self) -> float: return val @position_from_left.setter - def position_from_left(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position from Left={value}"]) + def position_from_left(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -124,8 +99,8 @@ def position_from_top(self) -> float: return val @position_from_top.setter - def position_from_top(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position from Top={value}"]) + def position_from_top(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) @property def text(self) -> str: @@ -137,7 +112,7 @@ def text(self) -> str: @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -155,7 +130,7 @@ def horizontal_position(self) -> HorizontalPositionOption: @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Horizontal Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Position={value.value}"]) class VerticalPositionOption(Enum): TOP = "Top" @@ -173,7 +148,7 @@ def vertical_position(self) -> VerticalPositionOption: @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -191,7 +166,7 @@ def text_alignment(self) -> TextAlignmentOption: @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) @property def font(self): @@ -204,7 +179,7 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -217,7 +192,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -230,7 +205,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -243,7 +218,7 @@ def border(self) -> bool: @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -256,7 +231,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -269,7 +244,7 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -300,7 +275,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -313,7 +288,7 @@ def arrow_direction(self) -> int: @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -326,7 +301,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -339,7 +314,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -352,7 +327,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -365,5 +340,5 @@ def filled(self) -> bool: @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py index 1fc5315ac89..f7be0d8385a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class EmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +14,7 @@ def add_group(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -57,27 +31,26 @@ class GroundPlaneNormalOption(Enum): def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal "Specifies the axis of the normal to the ground plane." - " """ + " """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] return val @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"]) @property def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." - " """ + " """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return val @gp_position_along_normal.setter - def gp_position_along_normal(self, value: float | str): + def gp_position_along_normal(self, value : float|str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GP Position Along Normal={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py index 02aa4072817..859edfdfec9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -60,7 +34,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: @@ -72,7 +46,7 @@ def base_antenna(self) -> EmitNode: @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: @@ -84,7 +58,7 @@ def mobile_antenna(self) -> EmitNode: @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -97,7 +71,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -110,7 +84,7 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): @@ -122,7 +96,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class TerrainCategoryOption(Enum): TYPE_A = "Type A" @@ -140,7 +114,7 @@ def terrain_category(self) -> TerrainCategoryOption: @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Terrain Category={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Terrain Category={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -152,8 +126,8 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -165,8 +139,8 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -178,8 +152,8 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -198,7 +172,7 @@ def fading_type(self) -> FadingTypeOption: @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -210,8 +184,8 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -223,8 +197,8 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -237,7 +211,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -249,8 +223,8 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -262,8 +236,8 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -275,8 +249,8 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -289,7 +263,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -301,8 +275,8 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -314,8 +288,8 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -327,6 +301,6 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Water Vapor Concentration={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index e4fe742b5ee..7911e53f955 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Filter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -55,7 +29,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,8 +41,8 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: @@ -80,7 +54,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -102,7 +76,7 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def insertion_loss(self) -> float: @@ -114,8 +88,8 @@ def insertion_loss(self) -> float: return val @insertion_loss.setter - def insertion_loss(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -127,8 +101,8 @@ def stop_band_attenuation(self) -> float: return val @stop_band_attenuation.setter - def stop_band_attenuation(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -143,7 +117,7 @@ def max_pass_band(self) -> float: @max_pass_band.setter def max_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -158,7 +132,7 @@ def min_stop_band(self) -> float: @min_stop_band.setter def min_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -173,7 +147,7 @@ def max_stop_band(self) -> float: @max_stop_band.setter def max_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -188,7 +162,7 @@ def min_pass_band(self) -> float: @min_pass_band.setter def min_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -203,7 +177,7 @@ def lower_stop_band(self) -> float: @lower_stop_band.setter def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -218,7 +192,7 @@ def lower_cutoff(self) -> float: @lower_cutoff.setter def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -233,7 +207,7 @@ def higher_cutoff(self) -> float: @higher_cutoff.setter def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -248,11 +222,11 @@ def higher_stop_band(self) -> float: @higher_stop_band.setter def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ @@ -263,11 +237,11 @@ def lower_cutoff_(self) -> float: @lower_cutoff_.setter def lower_cutoff_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff ={value}"]) @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ @@ -278,11 +252,11 @@ def lower_stop_band_(self) -> float: @lower_stop_band_.setter def lower_stop_band_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band ={value}"]) @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ @@ -293,11 +267,11 @@ def higher_stop_band_(self) -> float: @higher_stop_band_.setter def higher_stop_band_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band ={value}"]) @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ @@ -308,11 +282,11 @@ def higher_cutoff_(self) -> float: @higher_cutoff_.setter def higher_cutoff_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff ={value}"]) @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency "Lowest tuned frequency." "Value should be between 1 and 1e+11." """ @@ -323,11 +297,11 @@ def lowest_tuned_frequency_(self) -> float: @lowest_tuned_frequency_.setter def lowest_tuned_frequency_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lowest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lowest Tuned Frequency ={value}"]) @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency "Highest tuned frequency." "Value should be between 1 and 1e+11." """ @@ -338,7 +312,7 @@ def highest_tuned_frequency_(self) -> float: @highest_tuned_frequency_.setter def highest_tuned_frequency_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Highest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highest Tuned Frequency ={value}"]) @property def percent_bandwidth(self) -> float: @@ -350,8 +324,8 @@ def percent_bandwidth(self) -> float: return val @percent_bandwidth.setter - def percent_bandwidth(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Percent Bandwidth={value}"]) + def percent_bandwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percent Bandwidth={value}"]) @property def shape_factor(self) -> float: @@ -363,8 +337,8 @@ def shape_factor(self) -> float: return val @shape_factor.setter - def shape_factor(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Shape Factor={value}"]) + def shape_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) @property def warnings(self) -> str: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py index ac72cdc0254..bd576f88d4c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class FiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -60,7 +34,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: @@ -72,7 +46,7 @@ def base_antenna(self) -> EmitNode: @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: @@ -84,7 +58,7 @@ def mobile_antenna(self) -> EmitNode: @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -97,7 +71,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -110,7 +84,7 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): @@ -122,7 +96,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): URBAN_MICROCELL = "Urban Microcell" @@ -140,7 +114,7 @@ def environment(self) -> EnvironmentOption: @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def los(self) -> bool: @@ -153,7 +127,7 @@ def los(self) -> bool: @los.setter def los(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"LOS={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"LOS={value}"]) @property def include_bpl(self) -> bool: @@ -166,7 +140,7 @@ def include_bpl(self) -> bool: @include_bpl.setter def include_bpl(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include BPL={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include BPL={value}"]) class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -183,7 +157,7 @@ def nyu_bpl_model(self) -> NYUBPLModelOption: @nyu_bpl_model.setter def nyu_bpl_model(self, value: NYUBPLModelOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"NYU BPL Model={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NYU BPL Model={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -195,8 +169,8 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -208,8 +182,8 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -221,8 +195,8 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -241,7 +215,7 @@ def fading_type(self) -> FadingTypeOption: @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -253,8 +227,8 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -266,8 +240,8 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -280,7 +254,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -292,8 +266,8 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -305,8 +279,8 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -318,8 +292,8 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -332,7 +306,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -344,8 +318,8 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -357,8 +331,8 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -370,6 +344,6 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Water Vapor Concentration={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py index 12d1ea8ef21..bd304adffc6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class HataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -60,7 +34,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: @@ -72,7 +46,7 @@ def base_antenna(self) -> EmitNode: @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: @@ -84,7 +58,7 @@ def mobile_antenna(self) -> EmitNode: @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -97,7 +71,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -110,7 +84,7 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): @@ -122,7 +96,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): LARGE_CITY = "Large City" @@ -141,7 +115,7 @@ def environment(self) -> EnvironmentOption: @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -153,8 +127,8 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -166,8 +140,8 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -179,8 +153,8 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -199,7 +173,7 @@ def fading_type(self) -> FadingTypeOption: @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -211,8 +185,8 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -224,8 +198,8 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -238,7 +212,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -250,8 +224,8 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -263,8 +237,8 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -276,8 +250,8 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -290,7 +264,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -302,8 +276,8 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -315,8 +289,8 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -328,6 +302,6 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Water Vapor Concentration={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py index 07885f34357..cb721ebdabc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class IndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,11 +27,11 @@ def delete(self): def table_data(self): """ Table" "Table consists of 3 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Power Loss Coefficient: + "Power Loss Coefficient: " Value should be between 0 and 100." - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): " Value should be between 0 and 1000." """ return self._get_table_data() @@ -77,7 +51,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: @@ -89,7 +63,7 @@ def antenna_a(self) -> EmitNode: @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: @@ -101,7 +75,7 @@ def antenna_b(self) -> EmitNode: @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -114,7 +88,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -127,7 +101,7 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): @@ -139,7 +113,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class BuildingTypeOption(Enum): RESIDENTIAL_APARTMENT = "Residential Apartment" @@ -159,7 +133,7 @@ def building_type(self) -> BuildingTypeOption: @building_type.setter def building_type(self, value: BuildingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Building Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Building Type={value.value}"]) @property def number_of_floors(self) -> int: @@ -172,7 +146,7 @@ def number_of_floors(self) -> int: @number_of_floors.setter def number_of_floors(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Number of Floors={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Floors={value}"]) @property def custom_fading_margin(self) -> float: @@ -184,8 +158,8 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -197,8 +171,8 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -210,8 +184,8 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -230,7 +204,7 @@ def fading_type(self) -> FadingTypeOption: @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -242,8 +216,8 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -255,8 +229,8 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -269,7 +243,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -281,8 +255,8 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -294,8 +268,8 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -307,8 +281,8 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -321,7 +295,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -333,8 +307,8 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -346,8 +320,8 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -359,6 +333,6 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Water Vapor Concentration={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index 8ec5ebdd51c..12b2ecb957b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Isolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -55,7 +29,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,8 +41,8 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: @@ -80,7 +54,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -97,7 +71,7 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -114,7 +88,7 @@ def port_1_location(self) -> Port1LocationOption: @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -126,8 +100,8 @@ def insertion_loss(self) -> float: return val @insertion_loss.setter - def insertion_loss(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -140,7 +114,7 @@ def finite_reverse_isolation(self) -> bool: @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -152,8 +126,8 @@ def reverse_isolation(self) -> float: return val @reverse_isolation.setter - def reverse_isolation(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -166,7 +140,7 @@ def finite_bandwidth(self) -> bool: @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -178,8 +152,8 @@ def out_of_band_attenuation(self) -> float: return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -194,7 +168,7 @@ def lower_stop_band(self) -> float: @lower_stop_band.setter def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -209,7 +183,7 @@ def lower_cutoff(self) -> float: @lower_cutoff.setter def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -224,7 +198,7 @@ def higher_cutoff(self) -> float: @higher_cutoff.setter def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -239,7 +213,7 @@ def higher_stop_band(self) -> float: @higher_stop_band.setter def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py index 2979e93c5e0..7ee23937407 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class LogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -60,7 +34,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: @@ -72,7 +46,7 @@ def antenna_a(self) -> EmitNode: @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: @@ -84,7 +58,7 @@ def antenna_b(self) -> EmitNode: @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -97,7 +71,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -110,7 +84,7 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): @@ -122,7 +96,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): FREE_SPACE = "Free Space" @@ -144,7 +118,7 @@ def environment(self) -> EnvironmentOption: @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def path_loss_exponent(self) -> float: @@ -156,8 +130,8 @@ def path_loss_exponent(self) -> float: return val @path_loss_exponent.setter - def path_loss_exponent(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Path Loss Exponent={value}"]) + def path_loss_exponent(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Exponent={value}"]) @property def custom_fading_margin(self) -> float: @@ -169,8 +143,8 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -182,8 +156,8 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -195,8 +169,8 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -215,7 +189,7 @@ def fading_type(self) -> FadingTypeOption: @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -227,8 +201,8 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -240,8 +214,8 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -254,7 +228,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -266,8 +240,8 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -279,8 +253,8 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -292,8 +266,8 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -306,7 +280,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -318,8 +292,8 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -331,8 +305,8 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -344,6 +318,6 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Water Vapor Concentration={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py index 26133fc59a0..479d372f4fc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class MPlexBandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -55,7 +29,7 @@ class PowerDirectionOption(Enum): @property def power_direction(self) -> PowerDirectionOption: """Power Direction - " """ + " """ val = self._get_property("Power Direction") val = self.PowerDirectionOption[val] return val @@ -68,7 +42,7 @@ def power_direction(self, value: PowerDirectionOption): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @@ -106,7 +80,7 @@ def custom_legend(self, value: bool): def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @@ -126,7 +100,7 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @@ -182,7 +156,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -242,3 +216,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index cbf5a59b895..f9da3798c42 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Multiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -59,7 +33,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -71,8 +45,8 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: @@ -84,7 +58,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_PASS_BAND = "By Pass Band" @@ -101,7 +75,7 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -118,7 +92,7 @@ def port_1_location(self) -> Port1LocationOption: @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def flip_ports_vertically(self) -> bool: @@ -131,7 +105,7 @@ def flip_ports_vertically(self) -> bool: @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Flip Ports Vertically={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flip Ports Vertically={value}"]) @property def ports(self): @@ -144,7 +118,7 @@ def ports(self): @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) @property def warnings(self) -> str: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py index b96dc1318c4..b2af8f366bf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class MultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -66,7 +40,7 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def filename(self) -> str: @@ -79,7 +53,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def insertion_loss(self) -> float: @@ -91,8 +65,8 @@ def insertion_loss(self) -> float: return val @insertion_loss.setter - def insertion_loss(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -104,8 +78,8 @@ def stop_band_attenuation(self) -> float: return val @stop_band_attenuation.setter - def stop_band_attenuation(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -120,7 +94,7 @@ def max_pass_band(self) -> float: @max_pass_band.setter def max_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -135,7 +109,7 @@ def min_stop_band(self) -> float: @min_stop_band.setter def min_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -150,7 +124,7 @@ def max_stop_band(self) -> float: @max_stop_band.setter def max_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -165,7 +139,7 @@ def min_pass_band(self) -> float: @min_pass_band.setter def min_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -180,7 +154,7 @@ def lower_stop_band(self) -> float: @lower_stop_band.setter def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -195,7 +169,7 @@ def lower_cutoff(self) -> float: @lower_cutoff.setter def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -210,7 +184,7 @@ def higher_cutoff(self) -> float: @higher_cutoff.setter def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -225,7 +199,7 @@ def higher_stop_band(self) -> float: @higher_stop_band.setter def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py index 34d36c4e09a..ca50428fc9e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class OutboardTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -79,7 +53,7 @@ def output_port(self, value: int): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @@ -117,7 +91,7 @@ def custom_legend(self, value: bool): def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @@ -137,7 +111,7 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @@ -193,7 +167,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -253,3 +227,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py index f042a394f10..69e17bf77c7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ParametricCouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,7 +26,7 @@ def delete(self): @property def antenna_a(self) -> EmitNode: """Antenna A - " """ + " """ val = self._get_property("Antenna A") return val @@ -63,7 +37,7 @@ def antenna_a(self, value: EmitNode): @property def antenna_b(self) -> EmitNode: """Antenna B - " """ + " """ val = self._get_property("Antenna B") return val @@ -75,7 +49,7 @@ def antenna_b(self, value: EmitNode): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @@ -113,7 +87,7 @@ def custom_legend(self, value: bool): def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @@ -133,7 +107,7 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @@ -189,7 +163,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -249,3 +223,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py index 0fd469225d5..58f9be6c4eb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -60,7 +34,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def attached(self) -> bool: @@ -73,7 +47,7 @@ def attached(self) -> bool: @attached.setter def attached(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) @property def position(self) -> float: @@ -84,8 +58,8 @@ def position(self) -> float: return val @position.setter - def position(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position={value}"]) + def position(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def position(self) -> float: @@ -96,8 +70,8 @@ def position(self) -> float: return val @position.setter - def position(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position={value}"]) + def position(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def floating_label(self) -> bool: @@ -110,7 +84,7 @@ def floating_label(self) -> bool: @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -122,8 +96,8 @@ def position_from_left(self) -> float: return val @position_from_left.setter - def position_from_left(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position from Left={value}"]) + def position_from_left(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -135,8 +109,8 @@ def position_from_top(self) -> float: return val @position_from_top.setter - def position_from_top(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Position from Top={value}"]) + def position_from_top(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) @property def text(self) -> str: @@ -148,7 +122,7 @@ def text(self) -> str: @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -166,7 +140,7 @@ def horizontal_position(self) -> HorizontalPositionOption: @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Horizontal Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Position={value.value}"]) class VerticalPositionOption(Enum): TOP = "Top" @@ -184,7 +158,7 @@ def vertical_position(self) -> VerticalPositionOption: @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -202,7 +176,7 @@ def text_alignment(self) -> TextAlignmentOption: @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) @property def font(self): @@ -215,7 +189,7 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -228,7 +202,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -241,7 +215,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -254,7 +228,7 @@ def border(self) -> bool: @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -267,7 +241,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -280,7 +254,7 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -311,7 +285,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -324,7 +298,7 @@ def arrow_direction(self) -> int: @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -337,7 +311,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -350,7 +324,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -363,7 +337,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -376,5 +350,5 @@ def filled(self) -> bool: @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py index 9eed78fd7b7..cdc7dc8c821 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -62,7 +36,7 @@ def title(self) -> str: @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) @property def title_font(self): @@ -75,7 +49,7 @@ def title_font(self): @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -88,7 +62,7 @@ def show_legend(self) -> bool: @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) @property def legend_font(self): @@ -101,7 +75,7 @@ def legend_font(self): @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) @property def display_cad_overlay(self) -> bool: @@ -114,7 +88,7 @@ def display_cad_overlay(self) -> bool: @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -126,8 +100,8 @@ def opacity(self) -> float: return val @opacity.setter - def opacity(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Opacity={value}"]) + def opacity(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) @property def vertical_offset(self) -> float: @@ -138,8 +112,8 @@ def vertical_offset(self) -> float: return val @vertical_offset.setter - def vertical_offset(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Vertical Offset={value}"]) + def vertical_offset(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -151,8 +125,8 @@ def range_axis_rotation(self) -> float: return val @range_axis_rotation.setter - def range_axis_rotation(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -165,7 +139,7 @@ def lock_axes(self) -> bool: @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: @@ -176,8 +150,8 @@ def x_axis_min(self) -> float: return val @x_axis_min.setter - def x_axis_min(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"X-axis Min={value}"]) + def x_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: @@ -188,8 +162,8 @@ def x_axis_max(self) -> float: return val @x_axis_max.setter - def x_axis_max(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"X-axis Max={value}"]) + def x_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: @@ -200,8 +174,8 @@ def y_axis_min(self) -> float: return val @y_axis_min.setter - def y_axis_min(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y-axis Min={value}"]) + def y_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: @@ -212,8 +186,8 @@ def y_axis_max(self) -> float: return val @y_axis_max.setter - def y_axis_max(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y-axis Max={value}"]) + def y_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -225,8 +199,8 @@ def y_axis_range(self) -> float: return val @y_axis_range.setter - def y_axis_range(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y-axis Range={value}"]) + def y_axis_range(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) @property def max_major_ticks(self) -> int: @@ -239,7 +213,7 @@ def max_major_ticks(self) -> int: @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Major Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks={value}"]) @property def max_minor_ticks(self) -> int: @@ -252,7 +226,7 @@ def max_minor_ticks(self) -> int: @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Minor Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks={value}"]) @property def max_major_ticks(self) -> int: @@ -265,7 +239,7 @@ def max_major_ticks(self) -> int: @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Major Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks={value}"]) @property def max_minor_ticks(self) -> int: @@ -278,7 +252,7 @@ def max_minor_ticks(self) -> int: @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Minor Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks={value}"]) @property def axis_label_font(self): @@ -291,7 +265,7 @@ def axis_label_font(self): @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -304,7 +278,7 @@ def axis_tick_label_font(self): @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -325,7 +299,7 @@ def major_grid_line_style(self) -> MajorGridLineStyleOption: @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Major Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"]) @property def major_grid_color(self): @@ -338,7 +312,7 @@ def major_grid_color(self): @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -359,7 +333,7 @@ def minor_grid_line_style(self) -> MinorGridLineStyleOption: @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Minor Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"]) @property def minor_grid_color(self): @@ -372,7 +346,7 @@ def minor_grid_color(self): @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -385,7 +359,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -404,7 +378,7 @@ def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"BB Power for Plots Unit={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"]) @property def bb_power_bandwidth(self) -> float: @@ -419,7 +393,7 @@ def bb_power_bandwidth(self) -> float: @bb_power_bandwidth.setter def bb_power_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -432,5 +406,5 @@ def log_scale(self) -> bool: @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Log Scale={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py index e7b4f631cd5..53d9b8ac2bc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -55,7 +29,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,8 +41,8 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: @@ -80,7 +54,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -98,7 +72,7 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class OrientationOption(Enum): DIVIDER = "Divider" @@ -115,7 +89,7 @@ def orientation(self) -> OrientationOption: @orientation.setter def orientation(self, value: OrientationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Orientation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value.value}"]) @property def insertion_loss_above_ideal(self) -> float: @@ -127,8 +101,8 @@ def insertion_loss_above_ideal(self) -> float: return val @insertion_loss_above_ideal.setter - def insertion_loss_above_ideal(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Insertion Loss Above Ideal={value}"]) + def insertion_loss_above_ideal(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss Above Ideal={value}"]) @property def finite_isolation(self) -> bool: @@ -141,7 +115,7 @@ def finite_isolation(self) -> bool: @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -153,8 +127,8 @@ def isolation(self) -> float: return val @isolation.setter - def isolation(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Isolation={value}"]) + def isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -167,7 +141,7 @@ def finite_bandwidth(self) -> bool: @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -179,8 +153,8 @@ def out_of_band_attenuation(self) -> float: return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -195,7 +169,7 @@ def lower_stop_band(self) -> float: @lower_stop_band.setter def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -210,7 +184,7 @@ def lower_cutoff(self) -> float: @lower_cutoff.setter def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -225,7 +199,7 @@ def higher_cutoff(self) -> float: @higher_cutoff.setter def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -240,7 +214,7 @@ def higher_stop_band(self) -> float: @higher_stop_band.setter def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py index 3d6fdda3a1a..483a50a5852 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PowerTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -57,7 +31,7 @@ class DirectionOption(Enum): def direction(self) -> DirectionOption: """Direction "Direction of power flow (towards or away from the transmitter) to plot." - " """ + " """ val = self._get_property("Direction") val = self.DirectionOption[val] return val @@ -70,7 +44,7 @@ def direction(self, value: DirectionOption): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @@ -108,7 +82,7 @@ def custom_legend(self, value: bool): def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @@ -128,7 +102,7 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @@ -184,7 +158,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -244,3 +218,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py index e80f61ed3ce..0e09743c001 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ProfileTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,7 +27,7 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @@ -91,7 +65,7 @@ def custom_legend(self, value: bool): def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @@ -111,7 +85,7 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @@ -167,7 +141,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -227,3 +201,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py index 600e6fc2152..311c65e540c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -60,7 +34,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: @@ -72,7 +46,7 @@ def antenna_a(self) -> EmitNode: @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: @@ -84,7 +58,7 @@ def antenna_b(self) -> EmitNode: @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -97,7 +71,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -110,7 +84,7 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): @@ -122,7 +96,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def custom_fading_margin(self) -> float: @@ -134,8 +108,8 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -147,8 +121,8 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -160,8 +134,8 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -180,7 +154,7 @@ def fading_type(self) -> FadingTypeOption: @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -192,8 +166,8 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -205,8 +179,8 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -219,7 +193,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -231,8 +205,8 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -244,8 +218,8 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -257,8 +231,8 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -271,7 +245,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -283,8 +257,8 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -296,8 +270,8 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -309,6 +283,6 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Water Vapor Concentration={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py index 4ef044f8118..83a3a0f9e2a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class RadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,11 +28,11 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Name: - " "Type: - " """ + "Name: + " "Type: + " """ return self._get_table_data() @table_data.setter @@ -68,10 +43,11 @@ def table_data(self, value): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py index 4fc81c0c4c0..1508d26ac09 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyAmplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -54,7 +28,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -66,7 +40,7 @@ class AmplifierTypeOption(Enum): def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type "Configures the amplifier as a Tx or Rx amplifier." - " """ + " """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] return val @@ -165,3 +139,4 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py index a71a708be66..fe64942ccbe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyAntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +15,7 @@ def parent(self): def tags(self) -> str: """Tags "Space delimited list of tags for coupling selections." - " """ + " """ val = self._get_property("Tags") return val @@ -80,7 +54,7 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -125,7 +99,7 @@ def antenna_temperature(self) -> float: def type(self): """Type "Defines the type of antenna." - " """ + " """ val = self._get_property("Type") return val @@ -164,7 +138,7 @@ class BoresightOption(Enum): def boresight(self) -> BoresightOption: """Boresight "Select peak beam direction in local coordinates." - " """ + " """ val = self._get_property("Boresight") val = self.BoresightOption[val] return val @@ -338,7 +312,7 @@ class AntennaPolarizationOption(Enum): def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] return val @@ -351,7 +325,7 @@ class CrossDipoleModeOption(Enum): def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode "Choose the Cross Dipole type." - " """ + " """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] return val @@ -364,7 +338,7 @@ class CrossDipolePolarizationOption(Enum): def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] return val @@ -424,7 +398,7 @@ class ConformtoPlatformOption(Enum): def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform "Select method of automated conforming applied after Element Offset." - " """ + " """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] return val @@ -438,7 +412,7 @@ class ReferencePlaneOption(Enum): def reference_plane(self) -> ReferencePlaneOption: """Reference Plane "Select reference plane for determining original element heights." - " """ + " """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] return val @@ -492,7 +466,7 @@ def color(self): def el_sample_interval(self) -> float: """El Sample Interval "Space between elevation-angle samples of pattern." - " """ + " """ val = self._get_property("El Sample Interval") return val @@ -500,7 +474,7 @@ def el_sample_interval(self) -> float: def az_sample_interval(self) -> float: """Az Sample Interval "Space between azimuth-angle samples of pattern." - " """ + " """ val = self._get_property("Az Sample Interval") return val @@ -517,7 +491,7 @@ def has_frequency_domain(self) -> bool: def frequency_domain(self): """Frequency Domain "Frequency sample(s) defining antenna." - " """ + " """ val = self._get_property("Frequency Domain") return val @@ -525,7 +499,7 @@ def frequency_domain(self): def number_of_electric_sources(self) -> int: """Number of Electric Sources "Number of freestanding electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Electric Sources") return val @@ -533,7 +507,7 @@ def number_of_electric_sources(self) -> int: def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources "Number of freestanding magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Magnetic Sources") return val @@ -541,7 +515,7 @@ def number_of_magnetic_sources(self) -> int: def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources "Number of imaged, half-space radiating electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Electric Sources") return val @@ -549,7 +523,7 @@ def number_of_imaged_electric_sources(self) -> int: def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources "Number of imaged, half-space radiating magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Magnetic Sources") return val @@ -557,7 +531,7 @@ def number_of_imaged_magnetic_sources(self) -> int: def waveguide_height(self) -> float: """Waveguide Height "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." - " """ + " """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") return val @@ -566,7 +540,7 @@ def waveguide_height(self) -> float: def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." - " """ + " """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -575,7 +549,7 @@ def waveguide_cutoff_frequency(self) -> float: def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." - " """ + " """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -589,7 +563,7 @@ class SWEModeTruncationOption(Enum): def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation "Select the method for stability-enhancing truncation of spherical wave expansion terms." - " """ + " """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] return val @@ -607,7 +581,7 @@ def max_n_index(self) -> int: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -633,7 +607,7 @@ def use_phase_center(self) -> bool: def coordinate_systems(self) -> str: """Coordinate Systems "Specifies the coordinate system for the phase center of this antenna." - " """ + " """ val = self._get_property("Coordinate Systems") return val @@ -654,3 +628,4 @@ def phasecenterorientation(self): """ val = self._get_property("PhaseCenterOrientation") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py index bc94666ed93..db835e4106a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyAntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -97,6 +72,7 @@ def higher_stop_band(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py index 5977c725870..53846a6bf8a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +15,7 @@ def parent(self): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") return val @@ -67,7 +41,7 @@ def use_emission_designator(self) -> bool: def emission_designator(self) -> str: """Emission Designator "Enter the Emission Designator to define the bandwidth and modulation." - " """ + " """ val = self._get_property("Emission Designator") return val @@ -75,7 +49,7 @@ def emission_designator(self) -> str: def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." - " """ + " """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -84,7 +58,7 @@ def emission_designator_ch_bw(self) -> float: def emit_modulation_type(self) -> str: """EMIT Modulation Type "Modulation based off the emission designator." - " """ + " """ val = self._get_property("EMIT Modulation Type") return val @@ -124,7 +98,7 @@ class ModulationOption(Enum): def modulation(self) -> ModulationOption: """Modulation "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Modulation") val = self.ModulationOption[val] return val @@ -179,7 +153,7 @@ def sidelobes(self) -> int: @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ @@ -199,7 +173,7 @@ class PSKTypeOption(Enum): def psk_type(self) -> PSKTypeOption: """PSK Type "PSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] return val @@ -213,7 +187,7 @@ class FSKTypeOption(Enum): def fsk_type(self) -> FSKTypeOption: """FSK Type "FSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] return val @@ -229,7 +203,7 @@ class QAMTypeOption(Enum): def qam_type(self) -> QAMTypeOption: """QAM Type "QAM modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] return val @@ -245,7 +219,7 @@ class APSKTypeOption(Enum): def apsk_type(self) -> APSKTypeOption: """APSK Type "APSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] return val @@ -301,7 +275,7 @@ class RadarTypeOption(Enum): def radar_type(self) -> RadarTypeOption: """Radar Type "Radar type: helps determine spectral profile." - " """ + " """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] return val @@ -430,3 +404,4 @@ def fm_freq_dev_bandwidth(self) -> float: val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py index e504f8967e0..bffa4168833 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyBandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -34,3 +9,4 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py index 1f6f4ff2dd7..0ffdf98626c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyCADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -66,7 +40,7 @@ class ModelTypeOption(Enum): def model_type(self) -> ModelTypeOption: """Model Type "Select type of parametric model to create." - " """ + " """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] return val @@ -214,7 +188,7 @@ def focal_length(self) -> float: def offset(self) -> float: """Offset "Offset of parabolic reflector." - " """ + " """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") return val @@ -290,7 +264,7 @@ class MeshOptionOption(Enum): def mesh_option(self) -> MeshOptionOption: """Mesh Option "Select from different meshing options." - " """ + " """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] return val @@ -339,7 +313,7 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -381,7 +355,7 @@ class RenderModeOption(Enum): def render_mode(self) -> RenderModeOption: """Render Mode "Select drawing style for surfaces." - " """ + " """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] return val @@ -417,7 +391,7 @@ def max(self): def number_of_surfaces(self) -> int: """Number of Surfaces "Number of surfaces in the model." - " """ + " """ val = self._get_property("Number of Surfaces") return val @@ -434,6 +408,7 @@ def color(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py index 85a92646227..2c254cf9db2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyCable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -54,7 +28,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -67,7 +41,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -123,6 +97,7 @@ def dielectric_loss_constant(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py index 3311c3b4584..e8aa5a48ee1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyCirculator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -54,7 +28,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -66,7 +40,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -79,7 +53,7 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the circulator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @@ -173,6 +147,7 @@ def higher_stop_band(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py index 4d7ca736cc9..86a050e840f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -49,6 +24,7 @@ def ports(self): """Ports "Maps each port in the link to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Ports") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py index d3a0840ed3f..82559ca8038 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyCouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,6 +27,7 @@ def global_default_coupling(self) -> float: def antenna_tags(self) -> str: """Antenna Tags "All tags currently used by all antennas in the project." - " """ + " """ val = self._get_property("Antenna Tags") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py index 1d973305649..fcd6ae186b3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,11 +12,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Value (dB): + "Value (dB): " Value should be between -1000 and 0." """ return self._get_table_data() @@ -59,7 +34,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -67,7 +42,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -93,6 +68,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py index eed94653c3e..e851167520a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,7 +10,7 @@ def __init__(self, oDesign, result_id, node_id): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -49,7 +23,7 @@ class GroundPlaneNormalOption(Enum): def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal "Specifies the axis of the normal to the ground plane." - " """ + " """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] return val @@ -58,7 +32,8 @@ def ground_plane_normal(self) -> GroundPlaneNormalOption: def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." - " """ + " """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py index 47a5ae0e620..cd0c73f02b7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,7 +24,7 @@ def enabled(self) -> bool: def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -58,7 +32,7 @@ def base_antenna(self) -> EmitNode: def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -84,7 +58,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -97,7 +71,7 @@ class TerrainCategoryOption(Enum): def terrain_category(self) -> TerrainCategoryOption: """Terrain Category "Specify the terrain category type for the Erceg model." - " """ + " """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] return val @@ -139,7 +113,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -233,3 +207,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py index c99aae23628..efaa6b33ef6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyFilter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -54,7 +28,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -71,7 +45,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -176,7 +150,7 @@ def higher_stop_band(self) -> float: @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ @@ -186,7 +160,7 @@ def lower_cutoff_(self) -> float: @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ @@ -196,7 +170,7 @@ def lower_stop_band_(self) -> float: @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ @@ -206,7 +180,7 @@ def higher_stop_band_(self) -> float: @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ @@ -216,7 +190,7 @@ def higher_cutoff_(self) -> float: @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency "Lowest tuned frequency." "Value should be between 1 and 1e+11." """ @@ -226,7 +200,7 @@ def lowest_tuned_frequency_(self) -> float: @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency "Highest tuned frequency." "Value should be between 1 and 1e+11." """ @@ -256,6 +230,7 @@ def shape_factor(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py index f8936afbd98..efeb5397442 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,7 +24,7 @@ def enabled(self) -> bool: def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -58,7 +32,7 @@ def base_antenna(self) -> EmitNode: def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -84,7 +58,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -97,7 +71,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment for the 5G channel model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -128,7 +102,7 @@ class NYUBPLModelOption(Enum): def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model "Specify the NYU Building Penetration Loss model." - " """ + " """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] return val @@ -170,7 +144,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -264,3 +238,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py index 036366d8cb0..b04e6ed20df 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,7 +24,7 @@ def enabled(self) -> bool: def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -58,7 +32,7 @@ def base_antenna(self) -> EmitNode: def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -84,7 +58,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -98,7 +72,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Hata model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -140,7 +114,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -234,3 +208,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py index ce4c29850a8..130e5f1a062 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,13 +13,13 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Power Loss Coefficient: + "Power Loss Coefficient: " Value should be between 0 and 100." - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): " Value should be between 0 and 1000." """ return self._get_table_data() @@ -63,7 +37,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -71,7 +45,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -97,7 +71,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -112,7 +86,7 @@ class BuildingTypeOption(Enum): def building_type(self) -> BuildingTypeOption: """Building Type "Specify the building type for the Indoor Propagation model." - " """ + " """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] return val @@ -163,7 +137,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -257,3 +231,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py index a4142cac7aa..d1b95dca9f6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyIsolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -54,7 +28,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -66,7 +40,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -79,7 +53,7 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the isolator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @@ -173,6 +147,7 @@ def higher_stop_band(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py index 5e19f891681..e2a70af0785 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,7 +24,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -58,7 +32,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -84,7 +58,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -101,7 +75,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Log Distance model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -152,7 +126,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -246,3 +220,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py index 971b0323902..9bbd2030bb5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyMultiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -54,7 +28,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -66,7 +40,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -79,7 +53,7 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the multiplexer.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @@ -98,7 +72,7 @@ def ports(self): """Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ + " """ val = self._get_property("Ports") return val @@ -106,6 +80,7 @@ def ports(self): def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py index 005d0bdb544..65c73ce40e0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -47,7 +21,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -163,6 +137,7 @@ def higher_stop_band(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py index b5565c86e05..1a1b435b354 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyPowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -54,7 +28,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -67,7 +41,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -80,7 +54,7 @@ class OrientationOption(Enum): def orientation(self) -> OrientationOption: """Orientation "Defines the orientation of the Power Divider.." - " """ + " """ val = self._get_property("Orientation") val = self.OrientationOption[val] return val @@ -174,6 +148,7 @@ def higher_stop_band(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py index 22e6f31f4a3..b9873d42409 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,7 +24,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -58,7 +32,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -84,7 +58,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -125,7 +99,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -219,3 +193,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py index 194dd1ea71e..d81c15e9708 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyRadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,17 +12,18 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Name: - " "Type: - " """ + "Name: + " "Type: + " """ return self._get_table_data() @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py index 6dc2c96f7a7..7db365483b8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyRfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,3 +27,4 @@ def enforce_thermal_noise_floor(self) -> bool: """ val = self._get_property("Enforce Thermal Noise Floor") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py index 40310bfbc29..1d6ab2a17c7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyRxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -59,7 +33,7 @@ def source_file(self) -> str: def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -73,7 +47,7 @@ class MeasurementModeOption(Enum): def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode "Defines the mode for the receiver measurement." - " """ + " """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] return val @@ -242,3 +216,4 @@ def exclude_mixer_products_below_noise(self) -> bool: """ val = self._get_property("Exclude Mixer Products Below Noise") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py index 0fd1681a8fd..44654f1844c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -46,7 +20,7 @@ class MixerProductTaperOption(Enum): def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper "Taper for setting amplitude of mixer products." - " """ + " """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] return val @@ -153,7 +127,7 @@ class MixingModeOption(Enum): def mixing_mode(self) -> MixingModeOption: """Mixing Mode "Specifies whether the IF frequency is > or < RF channel frequency." - " """ + " """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] return val @@ -171,7 +145,7 @@ def first_if_frequency(self): def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." - " """ + " """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -184,7 +158,7 @@ class UseHighLOOption(Enum): def use_high_lo(self) -> UseHighLOOption: """Use High LO "Use High LO above/below the transition frequency." - " """ + " """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] return val @@ -197,7 +171,8 @@ class MixerProductTableUnitsOption(Enum): def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units "Specifies the units for the Mixer Products." - " """ + " """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py index 74e76d2d9ac..fa9ae9c40bb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -34,3 +9,4 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py index 37665e0f6ef..1ce5c919016 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -43,3 +18,4 @@ def use_arithmetic_mean(self) -> bool: """ val = self._get_property("Use Arithmetic Mean") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py index 1b7f8f44df2..6b2267c55ff 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyRxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,13 +13,13 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -58,7 +32,8 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py index 13d383c2d88..e1ecc1750a6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -47,14 +21,14 @@ class SensitivityUnitsOption(Enum): def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units "Units to use for the Rx Sensitivity." - " """ + " """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] return val @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr "Received signal power level at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ @@ -109,7 +83,7 @@ def rx_noise_figure(self) -> float: @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." "Value should be between -1000 and 1000." """ @@ -119,7 +93,7 @@ def receiver_sensitivity_(self) -> float: @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity "SNR or SINAD at the specified sensitivity level." "Value should be between -1000 and 1000." """ @@ -147,7 +121,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." "Value should be between -1000 and 1000." """ @@ -173,3 +147,4 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py index 7ed82bcdef5..1a685283ceb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlySamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,11 +13,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Min: + "Min: " Value should be greater than 1." - "Max: + "Max: " Value should be greater than 1." """ return self._get_table_data() @@ -57,7 +31,7 @@ class SamplingTypeOption(Enum): def sampling_type(self) -> SamplingTypeOption: """Sampling Type "Sampling to apply to this configuration." - " """ + " """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] return val @@ -102,7 +76,7 @@ def seed(self) -> int: def total_tx_channels(self) -> int: """Total Tx Channels "Total number of transmit channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Tx Channels") return val @@ -110,7 +84,7 @@ def total_tx_channels(self) -> int: def total_rx_channels(self) -> int: """Total Rx Channels "Total number of receive channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Rx Channels") return val @@ -118,6 +92,7 @@ def total_rx_channels(self) -> int: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py index 1f8e5ba8384..04284007889 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlySceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -72,7 +46,7 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -117,6 +91,7 @@ def box_color(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py index 037d5137cc7..ed575659f51 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -66,6 +41,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py index 66d32dfb0ee..c6e7dc29966 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlySolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -43,3 +18,4 @@ def enabled(self) -> bool: """ val = self._get_property("Enabled") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py index ec2bd8e249d..f425ab74572 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyTR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -52,7 +27,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -64,7 +39,7 @@ class TxPortOption(Enum): def tx_port(self) -> TxPortOption: """Tx Port "Specifies which port on the TR Switch is part of the Tx path.." - " """ + " """ val = self._get_property("Tx Port") val = self.TxPortOption[val] return val @@ -77,7 +52,7 @@ class CommonPortLocationOption(Enum): def common_port_location(self) -> CommonPortLocationOption: """Common Port Location "Defines the orientation of the tr switch.." - " """ + " """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] return val @@ -166,3 +141,4 @@ def higher_stop_band(self) -> float: val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py index 29f9c65eff8..22b92318463 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTerminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -54,7 +28,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -66,7 +40,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -79,7 +53,7 @@ class PortLocationOption(Enum): def port_location(self) -> PortLocationOption: """Port Location "Defines the orientation of the terminator.." - " """ + " """ val = self._get_property("Port Location") val = self.PortLocationOption[val] return val @@ -97,6 +71,7 @@ def vswr(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py index ee1f0627ffa..a9f9927707e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -66,7 +41,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -83,7 +58,7 @@ def filename(self) -> str: def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File "Coupling data generated by Savant and exported as a matched file." - " """ + " """ val = self._get_property("Savant Matched Coupling File") return val @@ -101,7 +76,7 @@ def port_antenna_assignment(self): """Port-Antenna Assignment "Maps each port in the coupling file to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Port-Antenna Assignment") return val @@ -109,6 +84,7 @@ def port_antenna_assignment(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py index c238bee432f..98133b2cbd6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,7 +24,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -58,7 +32,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -84,7 +58,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -143,7 +117,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -237,3 +211,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py index eb9a34196ad..a7be1da91db 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,9 +15,9 @@ def parent(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): " Value should be between -200 and 150." """ return self._get_table_data() @@ -58,7 +32,7 @@ class NoiseBehaviorOption(Enum): def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior "Specifies the behavior of the parametric noise profile." - " """ + " """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] return val @@ -71,3 +45,4 @@ def use_log_linear_interpolation(self) -> bool: """ val = self._get_property("Use Log-Linear Interpolation") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py index 10c3e80efda..12972cfb8b9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -45,7 +19,8 @@ class HarmonicTableUnitsOption(Enum): def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units "Specifies the units for the Harmonics." - " """ + " """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py index b3c1a0a08fb..9660e6d4202 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyTxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -57,7 +32,7 @@ def source_file(self) -> str: def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -99,3 +74,4 @@ def exclude_harmonics_below_noise(self) -> bool: """ val = self._get_property("Exclude Harmonics Below Noise") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py index 0750e4c1e63..67a7ef80291 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -45,7 +19,7 @@ class NarrowbandBehaviorOption(Enum): def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." - " """ + " """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] return val @@ -54,7 +28,8 @@ def narrowband_behavior(self) -> NarrowbandBehaviorOption: def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - " """ + " """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py index 7dc5a453f99..fb0b314db64 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyTxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +14,7 @@ def parent(self): def output_voltage_peak(self) -> float: """Output Voltage Peak "Output High Voltage Level: maximum voltage of the digital signal." - " """ + " """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") return val @@ -101,7 +76,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ @@ -136,3 +111,4 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py index c55752fe903..5ed120accb3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -45,7 +19,7 @@ class SpectrumTypeOption(Enum): def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type "Specifies EMI Margins to calculate." - " """ + " """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] return val @@ -58,7 +32,7 @@ class TxPowerOption(Enum): def tx_power(self) -> TxPowerOption: """Tx Power "Method used to specify the power." - " """ + " """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] return val @@ -111,7 +85,7 @@ class HarmonicTaperOption(Enum): def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper "Taper type used to set amplitude of harmonics." - " """ + " """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] return val @@ -227,7 +201,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ @@ -262,3 +236,4 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py index 27dcdbcaa4c..4e01d323a9a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,13 +13,13 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -58,7 +32,8 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py index 2a3c3c9f26b..a809657ca7f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,7 +24,7 @@ def enabled(self) -> bool: def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -58,7 +32,7 @@ def base_antenna(self) -> EmitNode: def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -84,7 +58,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -96,7 +70,7 @@ class PathLossTypeOption(Enum): def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type "Specify LOS vs NLOS for the Walfisch-Ikegami model." - " """ + " """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] return val @@ -109,7 +83,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Walfisch model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -190,7 +164,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -284,3 +258,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py index 95490724b46..d86e733ab8f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyWaveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +15,7 @@ def parent(self): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") return val @@ -56,7 +30,7 @@ class WaveformOption(Enum): def waveform(self) -> WaveformOption: """Waveform "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Waveform") val = self.WaveformOption[val] return val @@ -119,7 +93,7 @@ class SpreadingTypeOption(Enum): def spreading_type(self) -> SpreadingTypeOption: """Spreading Type "Type of spreading employed by the Spread Spectrum Clock." - " """ + " """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] return val @@ -145,7 +119,7 @@ def imported_spectrum(self) -> str: def raw_data_format(self) -> str: """Raw Data Format "Format of the imported raw data." - " """ + " """ val = self._get_property("Raw Data Format") return val @@ -203,7 +177,7 @@ class AlgorithmOption(Enum): def algorithm(self) -> AlgorithmOption: """Algorithm "Algorithm used to transform the imported time domain spectrum." - " """ + " """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] return val @@ -222,7 +196,7 @@ def start_time(self) -> float: def stop_time(self) -> float: """Stop Time "Final time of the imported time domain spectrum." - " """ + " """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") return val @@ -252,7 +226,7 @@ class WindowTypeOption(Enum): def window_type(self) -> WindowTypeOption: """Window Type "Windowing scheme used for importing time domain spectrum." - " """ + " """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] return val @@ -321,3 +295,4 @@ def delay_skew(self) -> float: val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py index 44981cb3900..acd9da12826 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ResultPlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,7 +24,7 @@ def title(self) -> str: @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) @property def title_font(self): @@ -63,7 +37,7 @@ def title_font(self): @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -76,7 +50,7 @@ def show_legend(self) -> bool: @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) @property def legend_font(self): @@ -89,7 +63,7 @@ def legend_font(self): @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) @property def show_emi_thresholds(self) -> bool: @@ -102,7 +76,7 @@ def show_emi_thresholds(self) -> bool: @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Show EMI Thresholds={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show EMI Thresholds={value}"]) @property def display_cad_overlay(self) -> bool: @@ -115,7 +89,7 @@ def display_cad_overlay(self) -> bool: @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -127,8 +101,8 @@ def opacity(self) -> float: return val @opacity.setter - def opacity(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Opacity={value}"]) + def opacity(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) @property def vertical_offset(self) -> float: @@ -139,8 +113,8 @@ def vertical_offset(self) -> float: return val @vertical_offset.setter - def vertical_offset(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Vertical Offset={value}"]) + def vertical_offset(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -152,8 +126,8 @@ def range_axis_rotation(self) -> float: return val @range_axis_rotation.setter - def range_axis_rotation(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -166,7 +140,7 @@ def lock_axes(self) -> bool: @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: @@ -177,8 +151,8 @@ def x_axis_min(self) -> float: return val @x_axis_min.setter - def x_axis_min(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"X-axis Min={value}"]) + def x_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: @@ -189,8 +163,8 @@ def x_axis_max(self) -> float: return val @x_axis_max.setter - def x_axis_max(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"X-axis Max={value}"]) + def x_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: @@ -201,8 +175,8 @@ def y_axis_min(self) -> float: return val @y_axis_min.setter - def y_axis_min(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y-axis Min={value}"]) + def y_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: @@ -213,8 +187,8 @@ def y_axis_max(self) -> float: return val @y_axis_max.setter - def y_axis_max(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y-axis Max={value}"]) + def y_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -226,8 +200,8 @@ def y_axis_range(self) -> float: return val @y_axis_range.setter - def y_axis_range(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Y-axis Range={value}"]) + def y_axis_range(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) @property def max_major_ticks(self) -> int: @@ -240,7 +214,7 @@ def max_major_ticks(self) -> int: @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Major Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks={value}"]) @property def max_minor_ticks(self) -> int: @@ -253,7 +227,7 @@ def max_minor_ticks(self) -> int: @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Minor Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks={value}"]) @property def max_major_ticks(self) -> int: @@ -266,7 +240,7 @@ def max_major_ticks(self) -> int: @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Major Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks={value}"]) @property def max_minor_ticks(self) -> int: @@ -279,7 +253,7 @@ def max_minor_ticks(self) -> int: @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Minor Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks={value}"]) @property def axis_label_font(self): @@ -292,7 +266,7 @@ def axis_label_font(self): @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -305,7 +279,7 @@ def axis_tick_label_font(self): @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -326,7 +300,7 @@ def major_grid_line_style(self) -> MajorGridLineStyleOption: @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Major Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"]) @property def major_grid_color(self): @@ -339,7 +313,7 @@ def major_grid_color(self): @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -360,7 +334,7 @@ def minor_grid_line_style(self) -> MinorGridLineStyleOption: @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Minor Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"]) @property def minor_grid_color(self): @@ -373,7 +347,7 @@ def minor_grid_color(self): @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -386,7 +360,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -405,7 +379,7 @@ def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"BB Power for Plots Unit={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"]) @property def bb_power_bandwidth(self) -> float: @@ -420,7 +394,7 @@ def bb_power_bandwidth(self) -> float: @bb_power_bandwidth.setter def bb_power_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -433,5 +407,5 @@ def log_scale(self) -> bool: @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Log Scale={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py index 9eedffb4e24..5d0cd0332af 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class RfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -59,6 +34,5 @@ def enforce_thermal_noise_floor(self) -> bool: @enforce_thermal_noise_floor.setter def enforce_thermal_noise_floor(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Enforce Thermal Noise Floor={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enforce Thermal Noise Floor={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py index 699cb3cf0f3..62c35cd2503 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class RxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -88,7 +62,7 @@ def measurement_mode(self) -> MeasurementModeOption: @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Measurement Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Mode={value.value}"]) @property def sinad_threshold(self) -> float: @@ -100,8 +74,8 @@ def sinad_threshold(self) -> float: return val @sinad_threshold.setter - def sinad_threshold(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"SINAD Threshold={value}"]) + def sinad_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SINAD Threshold={value}"]) @property def gps_cnr_threshold(self) -> float: @@ -113,8 +87,8 @@ def gps_cnr_threshold(self) -> float: return val @gps_cnr_threshold.setter - def gps_cnr_threshold(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"GPS CNR Threshold={value}"]) + def gps_cnr_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GPS CNR Threshold={value}"]) @property def ber_threshold(self) -> float: @@ -126,8 +100,8 @@ def ber_threshold(self) -> float: return val @ber_threshold.setter - def ber_threshold(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"BER Threshold={value}"]) + def ber_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BER Threshold={value}"]) @property def default_intended_power(self) -> bool: @@ -140,7 +114,7 @@ def default_intended_power(self) -> bool: @default_intended_power.setter def default_intended_power(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Default Intended Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Default Intended Power={value}"]) @property def intended_signal_power(self) -> float: @@ -152,8 +126,8 @@ def intended_signal_power(self) -> float: return val @intended_signal_power.setter - def intended_signal_power(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Intended Signal Power={value}"]) + def intended_signal_power(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Intended Signal Power={value}"]) @property def freq_deviation(self) -> float: @@ -168,7 +142,7 @@ def freq_deviation(self) -> float: @freq_deviation.setter def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) @property def modulation_depth(self) -> float: @@ -180,8 +154,8 @@ def modulation_depth(self) -> float: return val @modulation_depth.setter - def modulation_depth(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Modulation Depth={value}"]) + def modulation_depth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Depth={value}"]) @property def measure_selectivity(self) -> bool: @@ -194,7 +168,7 @@ def measure_selectivity(self) -> bool: @measure_selectivity.setter def measure_selectivity(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Measure Selectivity={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Selectivity={value}"]) @property def measure_mixer_products(self) -> bool: @@ -207,7 +181,7 @@ def measure_mixer_products(self) -> bool: @measure_mixer_products.setter def measure_mixer_products(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Measure Mixer Products={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Mixer Products={value}"]) @property def max_rf_order(self) -> int: @@ -220,7 +194,7 @@ def max_rf_order(self) -> int: @max_rf_order.setter def max_rf_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max RF Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max RF Order={value}"]) @property def max_lo_order(self) -> int: @@ -233,7 +207,7 @@ def max_lo_order(self) -> int: @max_lo_order.setter def max_lo_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max LO Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max LO Order={value}"]) @property def include_if(self) -> bool: @@ -246,7 +220,7 @@ def include_if(self) -> bool: @include_if.setter def include_if(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include IF={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include IF={value}"]) @property def measure_saturation(self) -> bool: @@ -259,7 +233,7 @@ def measure_saturation(self) -> bool: @measure_saturation.setter def measure_saturation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Measure Saturation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Saturation={value}"]) @property def use_ams_limits(self) -> bool: @@ -272,7 +246,7 @@ def use_ams_limits(self) -> bool: @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -287,7 +261,7 @@ def start_frequency(self) -> float: @start_frequency.setter def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -302,7 +276,7 @@ def stop_frequency(self) -> float: @stop_frequency.setter def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def samples(self) -> int: @@ -315,7 +289,7 @@ def samples(self) -> int: @samples.setter def samples(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Samples={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Samples={value}"]) @property def exclude_mixer_products_below_noise(self) -> bool: @@ -328,14 +302,14 @@ def exclude_mixer_products_below_noise(self) -> bool: @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Exclude Mixer Products Below Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Exclude Mixer Products Below Noise={value}"]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py index fdd4cc1e4e8..823c28be243 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class RxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,11 +22,11 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class MixerProductTaperOption(Enum): CONSTANT = "Constant" @@ -70,7 +44,7 @@ def mixer_product_taper(self) -> MixerProductTaperOption: @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mixer Product Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Taper={value.value}"]) @property def mixer_product_susceptibility(self) -> float: @@ -82,8 +56,8 @@ def mixer_product_susceptibility(self) -> float: return val @mixer_product_susceptibility.setter - def mixer_product_susceptibility(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mixer Product Susceptibility={value}"]) + def mixer_product_susceptibility(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Susceptibility={value}"]) @property def spurious_rejection(self) -> float: @@ -95,8 +69,8 @@ def spurious_rejection(self) -> float: return val @spurious_rejection.setter - def spurious_rejection(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Spurious Rejection={value}"]) + def spurious_rejection(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spurious Rejection={value}"]) @property def minimum_tuning_frequency(self) -> float: @@ -111,7 +85,7 @@ def minimum_tuning_frequency(self) -> float: @minimum_tuning_frequency.setter def minimum_tuning_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Minimum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Tuning Frequency={value}"]) @property def maximum_tuning_frequency(self) -> float: @@ -126,7 +100,7 @@ def maximum_tuning_frequency(self) -> float: @maximum_tuning_frequency.setter def maximum_tuning_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Maximum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum Tuning Frequency={value}"]) @property def mixer_product_slope(self) -> float: @@ -138,8 +112,8 @@ def mixer_product_slope(self) -> float: return val @mixer_product_slope.setter - def mixer_product_slope(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mixer Product Slope={value}"]) + def mixer_product_slope(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Slope={value}"]) @property def mixer_product_intercept(self) -> float: @@ -151,8 +125,8 @@ def mixer_product_intercept(self) -> float: return val @mixer_product_intercept.setter - def mixer_product_intercept(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mixer Product Intercept={value}"]) + def mixer_product_intercept(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Intercept={value}"]) @property def bandwidth_80_db(self) -> float: @@ -167,7 +141,7 @@ def bandwidth_80_db(self) -> float: @bandwidth_80_db.setter def bandwidth_80_db(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bandwidth 80 dB={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 80 dB={value}"]) @property def image_rejection(self) -> float: @@ -179,8 +153,8 @@ def image_rejection(self) -> float: return val @image_rejection.setter - def image_rejection(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Image Rejection={value}"]) + def image_rejection(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Image Rejection={value}"]) @property def maximum_rf_harmonic_order(self) -> int: @@ -193,7 +167,7 @@ def maximum_rf_harmonic_order(self) -> int: @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Maximum RF Harmonic Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum RF Harmonic Order={value}"]) @property def maximum_lo_harmonic_order(self) -> int: @@ -206,7 +180,7 @@ def maximum_lo_harmonic_order(self) -> int: @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Maximum LO Harmonic Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum LO Harmonic Order={value}"]) class MixingModeOption(Enum): LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" @@ -224,7 +198,7 @@ def mixing_mode(self) -> MixingModeOption: @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mixing Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixing Mode={value.value}"]) @property def first_if_frequency(self): @@ -237,7 +211,7 @@ def first_if_frequency(self): @first_if_frequency.setter def first_if_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"First IF Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First IF Frequency={value}"]) @property def rf_transition_frequency(self) -> float: @@ -251,7 +225,7 @@ def rf_transition_frequency(self) -> float: @rf_transition_frequency.setter def rf_transition_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"RF Transition Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"RF Transition Frequency={value}"]) class UseHighLOOption(Enum): ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" @@ -268,7 +242,7 @@ def use_high_lo(self) -> UseHighLOOption: @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use High LO={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use High LO={value.value}"]) class MixerProductTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -285,5 +259,5 @@ def mixer_product_table_units(self) -> MixerProductTableUnitsOption: @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mixer Product Table Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Table Units={value.value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py index 5bfe49eba0b..b46a4d251de 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class RxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +12,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -46,8 +21,9 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py index c0c6141aa74..738c36784d0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class RxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +12,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -46,7 +21,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -64,3 +39,4 @@ def use_arithmetic_mean(self) -> bool: @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Arithmetic Mean={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py index 0ab0a70d512..2b3b326973a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class RxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +13,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -47,13 +21,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -65,7 +39,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -79,7 +53,7 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val @@ -87,3 +61,4 @@ def spur_table_units(self) -> SpurTableUnitsOption: @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py index 0ca951036d0..6233f992375 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class RxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,11 +14,11 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SensitivityUnitsOption(Enum): DBM = "dBm" @@ -63,11 +37,11 @@ def sensitivity_units(self) -> SensitivityUnitsOption: @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Sensitivity Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sensitivity Units={value.value}"]) @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr "Received signal power level at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ @@ -75,8 +49,8 @@ def min_receive_signal_pwr_(self) -> float: return val @min_receive_signal_pwr_.setter - def min_receive_signal_pwr_(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Min. Receive Signal Pwr ={value}"]) + def min_receive_signal_pwr_(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min. Receive Signal Pwr ={value}"]) @property def snr_at_rx_signal_pwr(self) -> float: @@ -88,8 +62,8 @@ def snr_at_rx_signal_pwr(self) -> float: return val @snr_at_rx_signal_pwr.setter - def snr_at_rx_signal_pwr(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"SNR at Rx Signal Pwr={value}"]) + def snr_at_rx_signal_pwr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR at Rx Signal Pwr={value}"]) @property def processing_gain(self) -> float: @@ -101,8 +75,8 @@ def processing_gain(self) -> float: return val @processing_gain.setter - def processing_gain(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Processing Gain={value}"]) + def processing_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Processing Gain={value}"]) @property def apply_pg_to_narrowband_only(self) -> bool: @@ -115,7 +89,7 @@ def apply_pg_to_narrowband_only(self) -> bool: @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Apply PG to Narrowband Only={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Apply PG to Narrowband Only={value}"]) @property def saturation_level(self) -> float: @@ -130,7 +104,7 @@ def saturation_level(self) -> float: @saturation_level.setter def saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) @property def rx_noise_figure(self) -> float: @@ -142,12 +116,12 @@ def rx_noise_figure(self) -> float: return val @rx_noise_figure.setter - def rx_noise_figure(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rx Noise Figure={value}"]) + def rx_noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rx Noise Figure={value}"]) @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." "Value should be between -1000 and 1000." """ @@ -158,11 +132,11 @@ def receiver_sensitivity_(self) -> float: @receiver_sensitivity_.setter def receiver_sensitivity_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Receiver Sensitivity ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver Sensitivity ={value}"]) @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity "SNR or SINAD at the specified sensitivity level." "Value should be between -1000 and 1000." """ @@ -170,8 +144,8 @@ def snrsinad_at_sensitivity_(self) -> float: return val @snrsinad_at_sensitivity_.setter - def snrsinad_at_sensitivity_(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"SNR/SINAD at Sensitivity ={value}"]) + def snrsinad_at_sensitivity_(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR/SINAD at Sensitivity ={value}"]) @property def perform_rx_intermod_analysis(self) -> bool: @@ -184,7 +158,7 @@ def perform_rx_intermod_analysis(self) -> bool: @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Perform Rx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Perform Rx Intermod Analysis={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -199,11 +173,11 @@ def amplifier_saturation_level(self) -> float: @amplifier_saturation_level.setter def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." "Value should be between -1000 and 1000." """ @@ -214,7 +188,7 @@ def p1_db_point_ref_input_(self) -> float: @p1_db_point_ref_input_.setter def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -229,7 +203,7 @@ def ip3_ref_input(self) -> float: @ip3_ref_input.setter def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def max_intermod_order(self) -> int: @@ -242,5 +216,5 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py index 44214d7d276..0b6b4c92478 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class SamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,9 +15,9 @@ def parent(self): def table_data(self): """ Table" "Table consists of 2 columns." - "Min: + "Min: " Value should be greater than 1." - "Max: + "Max: " Value should be greater than 1." """ return self._get_table_data() @@ -68,7 +42,7 @@ def sampling_type(self) -> SamplingTypeOption: @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Sampling Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sampling Type={value.value}"]) @property def specify_percentage(self) -> bool: @@ -81,7 +55,7 @@ def specify_percentage(self) -> bool: @specify_percentage.setter def specify_percentage(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Specify Percentage={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Specify Percentage={value}"]) @property def percentage_of_channels(self) -> float: @@ -93,8 +67,8 @@ def percentage_of_channels(self) -> float: return val @percentage_of_channels.setter - def percentage_of_channels(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Percentage of Channels={value}"]) + def percentage_of_channels(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percentage of Channels={value}"]) @property def max__channelsrangeband(self) -> int: @@ -107,7 +81,7 @@ def max__channelsrangeband(self) -> int: @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max # Channels/Range/Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max # Channels/Range/Band={value}"]) @property def seed(self) -> int: @@ -120,7 +94,7 @@ def seed(self) -> int: @seed.setter def seed(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Seed={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Seed={value}"]) @property def total_tx_channels(self) -> int: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py index 720b7e79017..0e97636872b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class SceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -64,9 +38,7 @@ def show_relative_coordinates(self) -> bool: @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Relative Coordinates={value}"]) @property def position(self): @@ -102,7 +74,7 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -167,10 +139,11 @@ def box_color(self, value): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py index 800d7b1efac..cb0f0f9bb1f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class SelectivityTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,7 +27,7 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @@ -91,7 +65,7 @@ def custom_legend(self, value: bool): def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @@ -111,7 +85,7 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @@ -167,7 +141,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -227,3 +201,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py index f05d3a06a83..3b13967f159 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class SolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -78,10 +53,11 @@ def adaptive_sampling(self, value: bool): def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py index e09974b532d..bb0d934da7c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class SolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -47,3 +22,4 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py index 3a7eb50105b..b892cacadac 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class SpurTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,7 +27,7 @@ def delete(self): def channel_frequency(self): """Channel Frequency "Select band channel frequency to display." - " """ + " """ val = self._get_property("Channel Frequency") return val @@ -65,7 +39,7 @@ def channel_frequency(self, value): def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -74,7 +48,7 @@ def transmit_frequency(self) -> float: def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @@ -112,7 +86,7 @@ def custom_legend(self, value: bool): def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @@ -132,7 +106,7 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @@ -188,7 +162,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -248,3 +222,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py index 7a7e997b0b8..ab0ad06c1c6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TRSwitchTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -79,7 +53,7 @@ def output_port(self, value: int): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @@ -117,7 +91,7 @@ def custom_legend(self, value: bool): def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @@ -137,7 +111,7 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @@ -193,7 +167,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -253,3 +227,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index ba86c463561..0684853bf1f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class TR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -53,7 +28,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,8 +40,8 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: @@ -78,7 +53,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TxPortOption(Enum): PORT_1 = "Port 1" @@ -95,7 +70,7 @@ def tx_port(self) -> TxPortOption: @tx_port.setter def tx_port(self, value: TxPortOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tx Port={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Port={value.value}"]) class CommonPortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -112,7 +87,7 @@ def common_port_location(self) -> CommonPortLocationOption: @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Common Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Common Port Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -124,8 +99,8 @@ def insertion_loss(self) -> float: return val @insertion_loss.setter - def insertion_loss(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_isolation(self) -> bool: @@ -138,7 +113,7 @@ def finite_isolation(self) -> bool: @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -150,8 +125,8 @@ def isolation(self) -> float: return val @isolation.setter - def isolation(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Isolation={value}"]) + def isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -164,7 +139,7 @@ def finite_bandwidth(self) -> bool: @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -176,8 +151,8 @@ def out_of_band_attenuation(self) -> float: return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -192,7 +167,7 @@ def lower_stop_band(self) -> float: @lower_stop_band.setter def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -207,7 +182,7 @@ def lower_cutoff(self) -> float: @lower_cutoff.setter def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -222,7 +197,7 @@ def higher_cutoff(self) -> float: @higher_cutoff.setter def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -237,5 +212,5 @@ def higher_stop_band(self) -> float: @higher_stop_band.setter def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index 1b4d42afadb..595941bf256 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Terminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -55,7 +29,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,8 +41,8 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: @@ -80,7 +54,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -97,7 +71,7 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class PortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -114,7 +88,7 @@ def port_location(self) -> PortLocationOption: @port_location.setter def port_location(self, value: PortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port Location={value.value}"]) @property def vswr(self) -> float: @@ -126,8 +100,8 @@ def vswr(self) -> float: return val @vswr.setter - def vswr(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"VSWR={value}"]) + def vswr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) @property def warnings(self) -> str: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py index 8f17ce2c218..10ec9c62cd5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TestNoiseTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -60,7 +34,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -73,7 +47,7 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -85,7 +59,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -98,7 +72,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -111,7 +85,7 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: @@ -123,7 +97,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -144,7 +118,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -157,7 +131,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -170,7 +144,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -200,7 +174,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -213,7 +187,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -226,7 +200,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -239,7 +213,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -252,7 +226,7 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -267,7 +241,7 @@ def frequency_1(self) -> float: @frequency_1.setter def frequency_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -282,7 +256,7 @@ def amplitude_1(self) -> float: @amplitude_1.setter def amplitude_1(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -297,7 +271,7 @@ def bandwidth_1(self) -> float: @bandwidth_1.setter def bandwidth_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -312,7 +286,7 @@ def frequency_2(self) -> float: @frequency_2.setter def frequency_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -327,7 +301,7 @@ def amplitude_2(self) -> float: @amplitude_2.setter def amplitude_2(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -342,7 +316,7 @@ def bandwidth_2(self) -> float: @bandwidth_2.setter def bandwidth_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -354,6 +328,6 @@ def noise_level(self) -> float: return val @noise_level.setter - def noise_level(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Level={value}"]) + def noise_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py index e8225cd97be..95fa62b6506 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py @@ -1,31 +1,7 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class TopLevelSimulation(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py index f541940a636..d38973827ea 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class TouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -90,7 +65,7 @@ def adaptive_sampling(self, value: bool): def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -115,7 +90,7 @@ def filename(self, value: str): def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File "Coupling data generated by Savant and exported as a matched file." - " """ + " """ val = self._get_property("Savant Matched Coupling File") return val @@ -137,7 +112,7 @@ def port_antenna_assignment(self): """Port-Antenna Assignment "Maps each port in the coupling file to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Port-Antenna Assignment") return val @@ -149,10 +124,11 @@ def port_antenna_assignment(self, value): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py index bfe14e48567..b94e7b1b2c4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TunableTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -79,13 +53,13 @@ def output_port(self, value: int): def frequency(self) -> float: """Frequency "Tunable filter center frequency." - " """ + " """ val = self._get_property("Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @frequency.setter - def frequency(self, value: float | str): + def frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency={value}"]) @@ -93,7 +67,7 @@ def frequency(self, value: float | str): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @@ -131,7 +105,7 @@ def custom_legend(self, value: bool): def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @@ -151,7 +125,7 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @@ -207,7 +181,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -267,3 +241,4 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py index 7a525f9f860..73fe3ce479a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -60,7 +34,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: @@ -72,7 +46,7 @@ def antenna_a(self) -> EmitNode: @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: @@ -84,7 +58,7 @@ def antenna_b(self) -> EmitNode: @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -97,7 +71,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -110,7 +84,7 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): @@ -122,7 +96,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def ground_reflection_coeff(self) -> float: @@ -134,8 +108,8 @@ def ground_reflection_coeff(self) -> float: return val @ground_reflection_coeff.setter - def ground_reflection_coeff(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Ground Reflection Coeff.={value}"]) + def ground_reflection_coeff(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ground Reflection Coeff.={value}"]) @property def pointspeak(self) -> int: @@ -148,7 +122,7 @@ def pointspeak(self) -> int: @pointspeak.setter def pointspeak(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Points/Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Points/Peak={value}"]) @property def custom_fading_margin(self) -> float: @@ -160,8 +134,8 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -173,8 +147,8 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -186,8 +160,8 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -206,7 +180,7 @@ def fading_type(self) -> FadingTypeOption: @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -218,8 +192,8 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -231,8 +205,8 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -245,7 +219,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -257,8 +231,8 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -270,8 +244,8 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -283,8 +257,8 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -297,7 +271,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -309,8 +283,8 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -322,8 +296,8 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -335,6 +309,6 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Water Vapor Concentration={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py index b7401799b83..5ae9217dacb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TwoToneTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -60,7 +34,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -73,7 +47,7 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -85,7 +59,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -98,7 +72,7 @@ def visible(self) -> bool: @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -111,7 +85,7 @@ def custom_legend(self) -> bool: @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: @@ -123,7 +97,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -144,7 +118,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -157,7 +131,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -170,7 +144,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -200,7 +174,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -213,7 +187,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -226,7 +200,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -239,7 +213,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -252,7 +226,7 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -267,7 +241,7 @@ def frequency_1(self) -> float: @frequency_1.setter def frequency_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -282,7 +256,7 @@ def amplitude_1(self) -> float: @amplitude_1.setter def amplitude_1(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -297,7 +271,7 @@ def bandwidth_1(self) -> float: @bandwidth_1.setter def bandwidth_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -312,7 +286,7 @@ def frequency_2(self) -> float: @frequency_2.setter def frequency_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -327,7 +301,7 @@ def amplitude_2(self) -> float: @amplitude_2.setter def amplitude_2(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -342,7 +316,7 @@ def bandwidth_2(self) -> float: @bandwidth_2.setter def bandwidth_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -354,6 +328,6 @@ def noise_level(self) -> float: return val @noise_level.setter - def noise_level(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Level={value}"]) + def noise_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py index 6f964b322e4..49f9e095240 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +13,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -49,9 +23,9 @@ def delete(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): " Value should be between -200 and 150." """ return self._get_table_data() @@ -63,7 +37,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -79,7 +53,7 @@ class NoiseBehaviorOption(Enum): def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior "Specifies the behavior of the parametric noise profile." - " """ + " """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] return val @@ -99,6 +73,5 @@ def use_log_linear_interpolation(self) -> bool: @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py index ea92ab0c255..82ca84610c4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +13,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -48,7 +22,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -62,13 +36,12 @@ class HarmonicTableUnitsOption(Enum): def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units "Specifies the units for the Harmonics." - " """ + " """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] return val @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py index 7e71a02d156..ae44ce1ca8c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class TxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -65,7 +40,7 @@ def source_file(self) -> str: def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -94,7 +69,7 @@ def start_frequency(self) -> float: return val @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @@ -109,7 +84,7 @@ def stop_frequency(self) -> float: return val @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @@ -124,15 +99,14 @@ def exclude_harmonics_below_noise(self) -> bool: @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py index eb2964eeaaa..573659b24c6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +13,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -48,7 +22,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -62,27 +36,26 @@ class NarrowbandBehaviorOption(Enum): def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." - " """ + " """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] return val @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"]) @property def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - " """ + " """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @measurement_frequency.setter - def measurement_frequency(self, value: float | str): + def measurement_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Frequency={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py index d729b4d643c..7fbc52c83e8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class TxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,11 +13,11 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) @property def output_voltage_peak(self) -> float: @@ -56,7 +31,7 @@ def output_voltage_peak(self) -> float: @output_voltage_peak.setter def output_voltage_peak(self, value : float|str): value = self._convert_to_internal_units(value, "Voltage") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Output Voltage Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Voltage Peak={value}"]) @property def include_phase_noise(self) -> bool: @@ -69,7 +44,7 @@ def include_phase_noise(self) -> bool: @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -81,8 +56,8 @@ def tx_broadband_noise(self) -> float: return val @tx_broadband_noise.setter - def tx_broadband_noise(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -95,7 +70,7 @@ def perform_tx_intermod_analysis(self) -> bool: @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Perform Tx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"]) @property def internal_amp_gain(self) -> float: @@ -107,8 +82,8 @@ def internal_amp_gain(self) -> float: return val @internal_amp_gain.setter - def internal_amp_gain(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -120,8 +95,8 @@ def noise_figure(self) -> float: return val @noise_figure.setter - def noise_figure(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -136,11 +111,11 @@ def amplifier_saturation_level(self) -> float: @amplifier_saturation_level.setter def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ @@ -151,7 +126,7 @@ def p1_db_point_ref_input_(self) -> float: @p1_db_point_ref_input_.setter def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -166,7 +141,7 @@ def ip3_ref_input(self) -> float: @ip3_ref_input.setter def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -178,8 +153,8 @@ def reverse_isolation(self) -> float: return val @reverse_isolation.setter - def reverse_isolation(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -192,5 +167,5 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py index 01d1f263471..11743e20e4d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,11 +14,11 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpectrumTypeOption(Enum): NARROWBAND__BROADBAND = "Narrowband & Broadband" @@ -61,7 +35,7 @@ def spectrum_type(self) -> SpectrumTypeOption: @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Spectrum Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spectrum Type={value.value}"]) class TxPowerOption(Enum): PEAK_POWER = "Peak Power" @@ -78,7 +52,7 @@ def tx_power(self) -> TxPowerOption: @tx_power.setter def tx_power(self, value: TxPowerOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tx Power={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Power={value.value}"]) @property def peak_power(self) -> float: @@ -93,7 +67,7 @@ def peak_power(self) -> float: @peak_power.setter def peak_power(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Peak Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Power={value}"]) @property def average_power(self) -> float: @@ -108,7 +82,7 @@ def average_power(self) -> float: @average_power.setter def average_power(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Average Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Average Power={value}"]) @property def include_phase_noise(self) -> bool: @@ -121,7 +95,7 @@ def include_phase_noise(self) -> bool: @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -133,8 +107,8 @@ def tx_broadband_noise(self) -> float: return val @tx_broadband_noise.setter - def tx_broadband_noise(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) class HarmonicTaperOption(Enum): CONSTANT = "Constant" @@ -153,7 +127,7 @@ def harmonic_taper(self) -> HarmonicTaperOption: @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Harmonic Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Taper={value.value}"]) @property def harmonic_amplitude(self) -> float: @@ -165,8 +139,8 @@ def harmonic_amplitude(self) -> float: return val @harmonic_amplitude.setter - def harmonic_amplitude(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Harmonic Amplitude={value}"]) + def harmonic_amplitude(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Amplitude={value}"]) @property def harmonic_slope(self) -> float: @@ -178,8 +152,8 @@ def harmonic_slope(self) -> float: return val @harmonic_slope.setter - def harmonic_slope(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Harmonic Slope={value}"]) + def harmonic_slope(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Slope={value}"]) @property def harmonic_intercept(self) -> float: @@ -191,8 +165,8 @@ def harmonic_intercept(self) -> float: return val @harmonic_intercept.setter - def harmonic_intercept(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Harmonic Intercept={value}"]) + def harmonic_intercept(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Intercept={value}"]) @property def enable_harmonic_bw_expansion(self) -> bool: @@ -205,7 +179,7 @@ def enable_harmonic_bw_expansion(self) -> bool: @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Harmonic BW Expansion={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Harmonic BW Expansion={value}"]) @property def number_of_harmonics(self) -> int: @@ -218,7 +192,7 @@ def number_of_harmonics(self) -> int: @number_of_harmonics.setter def number_of_harmonics(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Number of Harmonics={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Harmonics={value}"]) @property def second_harmonic_level(self) -> float: @@ -230,8 +204,8 @@ def second_harmonic_level(self) -> float: return val @second_harmonic_level.setter - def second_harmonic_level(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Second Harmonic Level={value}"]) + def second_harmonic_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Second Harmonic Level={value}"]) @property def third_harmonic_level(self) -> float: @@ -243,8 +217,8 @@ def third_harmonic_level(self) -> float: return val @third_harmonic_level.setter - def third_harmonic_level(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Third Harmonic Level={value}"]) + def third_harmonic_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Third Harmonic Level={value}"]) @property def other_harmonic_levels(self) -> float: @@ -256,8 +230,8 @@ def other_harmonic_levels(self) -> float: return val @other_harmonic_levels.setter - def other_harmonic_levels(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Other Harmonic Levels={value}"]) + def other_harmonic_levels(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Other Harmonic Levels={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -270,7 +244,7 @@ def perform_tx_intermod_analysis(self) -> bool: @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Perform Tx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"]) @property def internal_amp_gain(self) -> float: @@ -282,8 +256,8 @@ def internal_amp_gain(self) -> float: return val @internal_amp_gain.setter - def internal_amp_gain(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -295,8 +269,8 @@ def noise_figure(self) -> float: return val @noise_figure.setter - def noise_figure(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -311,11 +285,11 @@ def amplifier_saturation_level(self) -> float: @amplifier_saturation_level.setter def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ @@ -326,7 +300,7 @@ def p1_db_point_ref_input_(self) -> float: @p1_db_point_ref_input_.setter def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -341,7 +315,7 @@ def ip3_ref_input(self) -> float: @ip3_ref_input.setter def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -353,8 +327,8 @@ def reverse_isolation(self) -> float: return val @reverse_isolation.setter - def reverse_isolation(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -367,5 +341,5 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py index e6dda14524e..67e0534be08 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +13,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -47,13 +21,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -65,7 +39,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -79,7 +53,7 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val @@ -87,3 +61,4 @@ def spur_table_units(self) -> SpurTableUnitsOption: @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py index 1df7d443157..a91f66fac5d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class WalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -60,7 +34,7 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: @@ -72,7 +46,7 @@ def base_antenna(self) -> EmitNode: @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: @@ -84,7 +58,7 @@ def mobile_antenna(self) -> EmitNode: @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -97,7 +71,7 @@ def enable_refinement(self) -> bool: @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -110,7 +84,7 @@ def adaptive_sampling(self) -> bool: @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): @@ -122,7 +96,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class PathLossTypeOption(Enum): LOS_URBAN_CANYON = "LOS (Urban Canyon)" @@ -139,7 +113,7 @@ def path_loss_type(self) -> PathLossTypeOption: @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Path Loss Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Type={value.value}"]) class EnvironmentOption(Enum): DENSE_METRO = "Dense Metro" @@ -156,7 +130,7 @@ def environment(self) -> EnvironmentOption: @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def roof_height(self) -> float: @@ -171,7 +145,7 @@ def roof_height(self) -> float: @roof_height.setter def roof_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Roof Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Roof Height={value}"]) @property def distance_between_buildings(self) -> float: @@ -186,7 +160,7 @@ def distance_between_buildings(self) -> float: @distance_between_buildings.setter def distance_between_buildings(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Distance Between Buildings={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Distance Between Buildings={value}"]) @property def street_width(self) -> float: @@ -201,7 +175,7 @@ def street_width(self) -> float: @street_width.setter def street_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Street Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Street Width={value}"]) @property def incidence_angle(self) -> float: @@ -213,8 +187,8 @@ def incidence_angle(self) -> float: return val @incidence_angle.setter - def incidence_angle(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Incidence Angle={value}"]) + def incidence_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Incidence Angle={value}"]) @property def custom_fading_margin(self) -> float: @@ -226,8 +200,8 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -239,8 +213,8 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -252,8 +226,8 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -272,7 +246,7 @@ def fading_type(self) -> FadingTypeOption: @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -284,8 +258,8 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -297,8 +271,8 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -311,7 +285,7 @@ def include_rain_attenuation(self) -> bool: @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -323,8 +297,8 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -336,8 +310,8 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -349,8 +323,8 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -363,7 +337,7 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -375,8 +349,8 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -388,8 +362,8 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -401,6 +375,6 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Water Vapor Concentration={value}"]) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Water Vapor Concentration={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py index 60821486b11..a50a7403e46 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Waveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,11 +14,11 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id,self._node_id,'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"enabled= + {value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) @property def port(self): @@ -56,7 +30,7 @@ def port(self): @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" @@ -76,7 +50,7 @@ def waveform(self) -> WaveformOption: @waveform.setter def waveform(self, value: WaveformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Waveform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveform={value.value}"]) @property def start_frequency(self) -> float: @@ -91,7 +65,7 @@ def start_frequency(self) -> float: @start_frequency.setter def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -106,7 +80,7 @@ def stop_frequency(self) -> float: @stop_frequency.setter def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -121,7 +95,7 @@ def channel_spacing(self) -> float: @channel_spacing.setter def channel_spacing(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) @property def clock_duty_cycle(self) -> float: @@ -133,8 +107,8 @@ def clock_duty_cycle(self) -> float: return val @clock_duty_cycle.setter - def clock_duty_cycle(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Clock Duty Cycle={value}"]) + def clock_duty_cycle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Duty Cycle={value}"]) @property def clock_risefall_time(self) -> float: @@ -149,7 +123,7 @@ def clock_risefall_time(self) -> float: @clock_risefall_time.setter def clock_risefall_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Clock Rise/Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Rise/Fall Time={value}"]) class SpreadingTypeOption(Enum): LOW_SPREAD = "Low Spread" @@ -167,7 +141,7 @@ def spreading_type(self) -> SpreadingTypeOption: @spreading_type.setter def spreading_type(self, value: SpreadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Spreading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spreading Type={value.value}"]) @property def spread_percentage(self) -> float: @@ -179,8 +153,8 @@ def spread_percentage(self) -> float: return val @spread_percentage.setter - def spread_percentage(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Spread Percentage={value}"]) + def spread_percentage(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spread Percentage={value}"]) @property def imported_spectrum(self) -> str: @@ -192,7 +166,7 @@ def imported_spectrum(self) -> str: @imported_spectrum.setter def imported_spectrum(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Imported Spectrum={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Imported Spectrum={value}"]) @property def raw_data_format(self) -> str: @@ -215,7 +189,7 @@ def system_impedance(self) -> float: @system_impedance.setter def system_impedance(self, value : float|str): value = self._convert_to_internal_units(value, "Resistance") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"System Impedance={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"System Impedance={value}"]) @property def advanced_extraction_params(self) -> bool: @@ -228,7 +202,7 @@ def advanced_extraction_params(self) -> bool: @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Advanced Extraction Params={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Advanced Extraction Params={value}"]) @property def nb_window_size(self) -> float: @@ -240,8 +214,8 @@ def nb_window_size(self) -> float: return val @nb_window_size.setter - def nb_window_size(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"NB Window Size={value}"]) + def nb_window_size(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Window Size={value}"]) @property def bb_smoothing_factor(self) -> float: @@ -253,8 +227,8 @@ def bb_smoothing_factor(self) -> float: return val @bb_smoothing_factor.setter - def bb_smoothing_factor(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"BB Smoothing Factor={value}"]) + def bb_smoothing_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Smoothing Factor={value}"]) @property def nb_detector_threshold(self) -> float: @@ -266,8 +240,8 @@ def nb_detector_threshold(self) -> float: return val @nb_detector_threshold.setter - def nb_detector_threshold(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"NB Detector Threshold={value}"]) + def nb_detector_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Detector Threshold={value}"]) class AlgorithmOption(Enum): FFT = "FFT" @@ -284,7 +258,7 @@ def algorithm(self) -> AlgorithmOption: @algorithm.setter def algorithm(self, value: AlgorithmOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Algorithm={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Algorithm={value.value}"]) @property def start_time(self) -> float: @@ -299,7 +273,7 @@ def start_time(self) -> float: @start_time.setter def start_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Start Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Time={value}"]) @property def stop_time(self) -> float: @@ -313,7 +287,7 @@ def stop_time(self) -> float: @stop_time.setter def stop_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Stop Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Time={value}"]) @property def max_frequency(self) -> float: @@ -328,7 +302,7 @@ def max_frequency(self) -> float: @max_frequency.setter def max_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Max Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Frequency={value}"]) class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" @@ -352,7 +326,7 @@ def window_type(self) -> WindowTypeOption: @window_type.setter def window_type(self, value: WindowTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Window Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Window Type={value.value}"]) @property def kaiser_parameter(self) -> float: @@ -364,8 +338,8 @@ def kaiser_parameter(self) -> float: return val @kaiser_parameter.setter - def kaiser_parameter(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Kaiser Parameter={value}"]) + def kaiser_parameter(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Kaiser Parameter={value}"]) @property def adjust_coherent_gain(self) -> bool: @@ -378,7 +352,7 @@ def adjust_coherent_gain(self) -> bool: @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Adjust Coherent Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adjust Coherent Gain={value}"]) @property def data_rate(self) -> float: @@ -393,7 +367,7 @@ def data_rate(self) -> float: @data_rate.setter def data_rate(self, value : float|str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Data Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Rate={value}"]) @property def num_of_bits(self) -> int: @@ -406,7 +380,7 @@ def num_of_bits(self) -> int: @num_of_bits.setter def num_of_bits(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Num of Bits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Num of Bits={value}"]) @property def use_envelope(self) -> bool: @@ -419,7 +393,7 @@ def use_envelope(self) -> bool: @use_envelope.setter def use_envelope(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Use Envelope={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Envelope={value}"]) @property def min_ptsnull(self) -> int: @@ -432,7 +406,7 @@ def min_ptsnull(self) -> int: @min_ptsnull.setter def min_ptsnull(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Min Pts/Null={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pts/Null={value}"]) @property def delay_skew(self) -> float: @@ -447,5 +421,5 @@ def delay_skew(self) -> float: @delay_skew.setter def delay_skew(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,[f"Delay Skew={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Delay Skew={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index 7f7a748aedf..bd6f8b1de0e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,27 +1,3 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from .Amplifier import Amplifier from .AntennaNode import AntennaNode from .AntennaPassband import AntennaPassband @@ -57,6 +33,38 @@ from .ProfileTraceNode import ProfileTraceNode from .PropagationLossCouplingNode import PropagationLossCouplingNode from .RadioNode import RadioNode +from .ResultPlotNode import ResultPlotNode +from .RfSystemGroup import RfSystemGroup +from .RxMeasNode import RxMeasNode +from .RxMixerProductNode import RxMixerProductNode +from .RxSaturationNode import RxSaturationNode +from .RxSelectivityNode import RxSelectivityNode +from .RxSpurNode import RxSpurNode +from .RxSusceptibilityProfNode import RxSusceptibilityProfNode +from .SamplingNode import SamplingNode +from .SceneGroupNode import SceneGroupNode +from .SelectivityTraceNode import SelectivityTraceNode +from .SolutionCouplingNode import SolutionCouplingNode +from .SolutionsNode import SolutionsNode +from .SpurTraceNode import SpurTraceNode +from .TR_Switch import TR_Switch +from .TRSwitchTraceNode import TRSwitchTraceNode +from .Terminator import Terminator +from .TestNoiseTraceNode import TestNoiseTraceNode +from .TopLevelSimulation import TopLevelSimulation +from .TouchstoneCouplingNode import TouchstoneCouplingNode +from .TunableTraceNode import TunableTraceNode +from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode +from .TwoToneTraceNode import TwoToneTraceNode +from .TxBbEmissionNode import TxBbEmissionNode +from .TxHarmonicNode import TxHarmonicNode +from .TxMeasNode import TxMeasNode +from .TxNbEmissionNode import TxNbEmissionNode +from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode +from .TxSpectralProfNode import TxSpectralProfNode +from .TxSpurNode import TxSpurNode +from .WalfischCouplingNode import WalfischCouplingNode +from .Waveform import Waveform from .ReadOnlyAmplifier import ReadOnlyAmplifier from .ReadOnlyAntennaNode import ReadOnlyAntennaNode from .ReadOnlyAntennaPassband import ReadOnlyAntennaPassband @@ -105,153 +113,121 @@ from .ReadOnlyTxSpurNode import ReadOnlyTxSpurNode from .ReadOnlyWalfischCouplingNode import ReadOnlyWalfischCouplingNode from .ReadOnlyWaveform import ReadOnlyWaveform -from .ResultPlotNode import ResultPlotNode -from .RfSystemGroup import RfSystemGroup -from .RxMeasNode import RxMeasNode -from .RxMixerProductNode import RxMixerProductNode -from .RxSaturationNode import RxSaturationNode -from .RxSelectivityNode import RxSelectivityNode -from .RxSpurNode import RxSpurNode -from .RxSusceptibilityProfNode import RxSusceptibilityProfNode -from .SamplingNode import SamplingNode -from .SceneGroupNode import SceneGroupNode -from .SelectivityTraceNode import SelectivityTraceNode -from .SolutionCouplingNode import SolutionCouplingNode -from .SolutionsNode import SolutionsNode -from .SpurTraceNode import SpurTraceNode -from .TRSwitchTraceNode import TRSwitchTraceNode -from .TR_Switch import TR_Switch -from .Terminator import Terminator -from .TestNoiseTraceNode import TestNoiseTraceNode -from .TopLevelSimulation import TopLevelSimulation -from .TouchstoneCouplingNode import TouchstoneCouplingNode -from .TunableTraceNode import TunableTraceNode -from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode -from .TwoToneTraceNode import TwoToneTraceNode -from .TxBbEmissionNode import TxBbEmissionNode -from .TxHarmonicNode import TxHarmonicNode -from .TxMeasNode import TxMeasNode -from .TxNbEmissionNode import TxNbEmissionNode -from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode -from .TxSpectralProfNode import TxSpectralProfNode -from .TxSpurNode import TxSpurNode -from .WalfischCouplingNode import WalfischCouplingNode -from .Waveform import Waveform __all__ = [ - "Amplifier", - "AntennaNode", - "AntennaPassband", - "Band", - "BandFolder", - "BandTraceNode", - "CADNode", - "Cable", - "CategoriesViewNode", - "Circulator", - "CouplingLinkNode", - "CouplingTraceNode", - "CouplingsNode", - "CustomCouplingNode", - "EmiPlotMarkerNode", - "EmitSceneNode", - "ErcegCouplingNode", - "Filter", - "FiveGChannelModel", - "HataCouplingNode", - "IndoorPropagationCouplingNode", - "Isolator", - "LogDistanceCouplingNode", - "MPlexBandTraceNode", - "Multiplexer", - "MultiplexerBand", - "OutboardTraceNode", - "ParametricCouplingTraceNode", - "PlotMarkerNode", - "PlotNode", - "PowerDivider", - "PowerTraceNode", - "ProfileTraceNode", - "PropagationLossCouplingNode", - "RadioNode", - "ResultPlotNode", - "RfSystemGroup", - "RxMeasNode", - "RxMixerProductNode", - "RxSaturationNode", - "RxSelectivityNode", - "RxSpurNode", - "RxSusceptibilityProfNode", - "SamplingNode", - "SceneGroupNode", - "SelectivityTraceNode", - "SolutionCouplingNode", - "SolutionsNode", - "SpurTraceNode", - "TR_Switch", - "TRSwitchTraceNode", - "Terminator", - "TestNoiseTraceNode", - "TopLevelSimulation", - "TouchstoneCouplingNode", - "TunableTraceNode", - "TwoRayPathLossCouplingNode", - "TwoToneTraceNode", - "TxBbEmissionNode", - "TxHarmonicNode", - "TxMeasNode", - "TxNbEmissionNode", - "TxSpectralProfEmitterNode", - "TxSpectralProfNode", - "TxSpurNode", - "WalfischCouplingNode", - "Waveform", - "ReadOnlyAmplifier", - "ReadOnlyAntennaNode", - "ReadOnlyAntennaPassband", - "ReadOnlyBand", - "ReadOnlyBandFolder", - "ReadOnlyCADNode", - "ReadOnlyCable", - "ReadOnlyCirculator", - "ReadOnlyCouplingLinkNode", - "ReadOnlyCouplingsNode", - "ReadOnlyCustomCouplingNode", - "ReadOnlyEmitSceneNode", - "ReadOnlyErcegCouplingNode", - "ReadOnlyFilter", - "ReadOnlyFiveGChannelModel", - "ReadOnlyHataCouplingNode", - "ReadOnlyIndoorPropagationCouplingNode", - "ReadOnlyIsolator", - "ReadOnlyLogDistanceCouplingNode", - "ReadOnlyMultiplexer", - "ReadOnlyMultiplexerBand", - "ReadOnlyPowerDivider", - "ReadOnlyPropagationLossCouplingNode", - "ReadOnlyRadioNode", - "ReadOnlyRfSystemGroup", - "ReadOnlyRxMeasNode", - "ReadOnlyRxMixerProductNode", - "ReadOnlyRxSaturationNode", - "ReadOnlyRxSelectivityNode", - "ReadOnlyRxSpurNode", - "ReadOnlyRxSusceptibilityProfNode", - "ReadOnlySamplingNode", - "ReadOnlySceneGroupNode", - "ReadOnlySolutionCouplingNode", - "ReadOnlySolutionsNode", - "ReadOnlyTR_Switch", - "ReadOnlyTerminator", - "ReadOnlyTouchstoneCouplingNode", - "ReadOnlyTwoRayPathLossCouplingNode", - "ReadOnlyTxBbEmissionNode", - "ReadOnlyTxHarmonicNode", - "ReadOnlyTxMeasNode", - "ReadOnlyTxNbEmissionNode", - "ReadOnlyTxSpectralProfEmitterNode", - "ReadOnlyTxSpectralProfNode", - "ReadOnlyTxSpurNode", - "ReadOnlyWalfischCouplingNode", - "ReadOnlyWaveform", + 'Amplifier', + 'AntennaNode', + 'AntennaPassband', + 'Band', + 'BandFolder', + 'BandTraceNode', + 'CADNode', + 'Cable', + 'CategoriesViewNode', + 'Circulator', + 'CouplingLinkNode', + 'CouplingTraceNode', + 'CouplingsNode', + 'CustomCouplingNode', + 'EmiPlotMarkerNode', + 'EmitSceneNode', + 'ErcegCouplingNode', + 'Filter', + 'FiveGChannelModel', + 'HataCouplingNode', + 'IndoorPropagationCouplingNode', + 'Isolator', + 'LogDistanceCouplingNode', + 'MPlexBandTraceNode', + 'Multiplexer', + 'MultiplexerBand', + 'OutboardTraceNode', + 'ParametricCouplingTraceNode', + 'PlotMarkerNode', + 'PlotNode', + 'PowerDivider', + 'PowerTraceNode', + 'ProfileTraceNode', + 'PropagationLossCouplingNode', + 'RadioNode', + 'ResultPlotNode', + 'RfSystemGroup', + 'RxMeasNode', + 'RxMixerProductNode', + 'RxSaturationNode', + 'RxSelectivityNode', + 'RxSpurNode', + 'RxSusceptibilityProfNode', + 'SamplingNode', + 'SceneGroupNode', + 'SelectivityTraceNode', + 'SolutionCouplingNode', + 'SolutionsNode', + 'SpurTraceNode', + 'TR_Switch', + 'TRSwitchTraceNode', + 'Terminator', + 'TestNoiseTraceNode', + 'TopLevelSimulation', + 'TouchstoneCouplingNode', + 'TunableTraceNode', + 'TwoRayPathLossCouplingNode', + 'TwoToneTraceNode', + 'TxBbEmissionNode', + 'TxHarmonicNode', + 'TxMeasNode', + 'TxNbEmissionNode', + 'TxSpectralProfEmitterNode', + 'TxSpectralProfNode', + 'TxSpurNode', + 'WalfischCouplingNode', + 'Waveform', + 'ReadOnlyAmplifier', + 'ReadOnlyAntennaNode', + 'ReadOnlyAntennaPassband', + 'ReadOnlyBand', + 'ReadOnlyBandFolder', + 'ReadOnlyCADNode', + 'ReadOnlyCable', + 'ReadOnlyCirculator', + 'ReadOnlyCouplingLinkNode', + 'ReadOnlyCouplingsNode', + 'ReadOnlyCustomCouplingNode', + 'ReadOnlyEmitSceneNode', + 'ReadOnlyErcegCouplingNode', + 'ReadOnlyFilter', + 'ReadOnlyFiveGChannelModel', + 'ReadOnlyHataCouplingNode', + 'ReadOnlyIndoorPropagationCouplingNode', + 'ReadOnlyIsolator', + 'ReadOnlyLogDistanceCouplingNode', + 'ReadOnlyMultiplexer', + 'ReadOnlyMultiplexerBand', + 'ReadOnlyPowerDivider', + 'ReadOnlyPropagationLossCouplingNode', + 'ReadOnlyRadioNode', + 'ReadOnlyRfSystemGroup', + 'ReadOnlyRxMeasNode', + 'ReadOnlyRxMixerProductNode', + 'ReadOnlyRxSaturationNode', + 'ReadOnlyRxSelectivityNode', + 'ReadOnlyRxSpurNode', + 'ReadOnlyRxSusceptibilityProfNode', + 'ReadOnlySamplingNode', + 'ReadOnlySceneGroupNode', + 'ReadOnlySolutionCouplingNode', + 'ReadOnlySolutionsNode', + 'ReadOnlyTR_Switch', + 'ReadOnlyTerminator', + 'ReadOnlyTouchstoneCouplingNode', + 'ReadOnlyTwoRayPathLossCouplingNode', + 'ReadOnlyTxBbEmissionNode', + 'ReadOnlyTxHarmonicNode', + 'ReadOnlyTxMeasNode', + 'ReadOnlyTxNbEmissionNode', + 'ReadOnlyTxSpectralProfEmitterNode', + 'ReadOnlyTxSpectralProfNode', + 'ReadOnlyTxSpurNode', + 'ReadOnlyWalfischCouplingNode', + 'ReadOnlyWaveform', ] diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index 77b485983fe..1c1100a782d 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -31,7 +31,7 @@ from ansys.aedt.core.emit_core.emit_constants import TxRxMode from ansys.aedt.core.emit_core.nodes import generated from ansys.aedt.core.emit_core.nodes.EmitNode import EmitNode -from ansys.aedt.core.emit_core.nodes.generated import * +from ansys.aedt.core.emit_core.nodes.generated import ResultPlotNode, CouplingsNode, EmitSceneNode from ansys.aedt.core.generic.general_methods import pyaedt_function_handler @@ -824,7 +824,7 @@ def get_license_session(self): engine = self.emit_project._emit_api.get_engine() return engine.license_session() - def error_if_below_aedt_version(version: int): + def error_if_below_aedt_version(self, version: int): def decorator(func): def wrapper(self, *args, **kwargs): if self.aedt_version > version: @@ -975,13 +975,13 @@ def _get_all_node_ids(self) -> list[int]: @pyaedt_function_handler @error_if_below_aedt_version(251) - def _get_node(self, id: int) -> EmitNode: + def _get_node(self, node_id: int) -> EmitNode: """Gets a node for this revision with the given id. Parameters ---------- - id: int - id of node to construct. + node_id: int + node_id of node to construct. Returns ------- @@ -992,18 +992,18 @@ def _get_node(self, id: int) -> EmitNode: -------- >>> node = revision._get_node(node_id) """ - props = self._emit_com.GetEmitNodeProperties(self.results_index, id, True) + props = self._emit_com.GetEmitNodeProperties(self.results_index, node_id, True) props = EmitNode.props_to_dict(props) - type = props["Type"] + node_type = props["Type"] prefix = "" if self.results_index == 0 else "ReadOnly" node = None try: - type_class = getattr(generated, f"{prefix}{type}") - node = type_class(self.emit_project.odesign, self.results_index, id) + type_class = getattr(generated, f"{prefix}{node_type}") + node = type_class(self.emit_project.odesign, self.results_index, node_id) except AttributeError: - node = EmitNode(self.emit_project.odesign, self.results_index, id) + node = EmitNode(self.emit_project.odesign, self.results_index, node_id) return node @pyaedt_function_handler From e3faed087d29dd333dbee33fe01f65cd763db5e3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 23 Apr 2025 18:40:00 +0000 Subject: [PATCH 34/86] CHORE: Auto fixes from pre-commit hooks --- .../aedt/core/emit_core/nodes/EmitNode.py | 1 + .../emit_core/nodes/generated/Amplifier.py | 51 ++- .../emit_core/nodes/generated/AntennaNode.py | 135 +++++--- .../nodes/generated/AntennaPassband.py | 42 ++- .../core/emit_core/nodes/generated/Band.py | 101 ++++-- .../emit_core/nodes/generated/BandFolder.py | 26 +- .../nodes/generated/BandTraceNode.py | 41 ++- .../core/emit_core/nodes/generated/CADNode.py | 79 +++-- .../core/emit_core/nodes/generated/Cable.py | 45 ++- .../nodes/generated/CategoriesViewNode.py | 26 +- .../emit_core/nodes/generated/Circulator.py | 51 ++- .../nodes/generated/CouplingLinkNode.py | 28 +- .../nodes/generated/CouplingTraceNode.py | 39 ++- .../nodes/generated/CouplingsNode.py | 34 +- .../nodes/generated/CustomCouplingNode.py | 40 ++- .../nodes/generated/EmiPlotMarkerNode.py | 50 ++- .../nodes/generated/EmitSceneNode.py | 39 ++- .../nodes/generated/ErcegCouplingNode.py | 67 ++-- .../core/emit_core/nodes/generated/Filter.py | 83 +++-- .../nodes/generated/FiveGChannelModel.py | 69 ++-- .../nodes/generated/HataCouplingNode.py | 67 ++-- .../IndoorPropagationCouplingNode.py | 75 +++-- .../emit_core/nodes/generated/Isolator.py | 51 ++- .../generated/LogDistanceCouplingNode.py | 69 ++-- .../nodes/generated/MPlexBandTraceNode.py | 37 +- .../emit_core/nodes/generated/Multiplexer.py | 39 ++- .../nodes/generated/MultiplexerBand.py | 51 ++- .../nodes/generated/OutboardTraceNode.py | 35 +- .../generated/ParametricCouplingTraceNode.py | 39 ++- .../nodes/generated/PlotMarkerNode.py | 53 ++- .../emit_core/nodes/generated/PlotNode.py | 75 +++-- .../emit_core/nodes/generated/PowerDivider.py | 55 ++- .../nodes/generated/PowerTraceNode.py | 37 +- .../nodes/generated/ProfileTraceNode.py | 35 +- .../generated/PropagationLossCouplingNode.py | 65 +++- .../emit_core/nodes/generated/RadioNode.py | 36 +- .../nodes/generated/ReadOnlyAmplifier.py | 31 +- .../nodes/generated/ReadOnlyAntennaNode.py | 71 ++-- .../generated/ReadOnlyAntennaPassband.py | 28 +- .../emit_core/nodes/generated/ReadOnlyBand.py | 49 ++- .../nodes/generated/ReadOnlyBandFolder.py | 26 +- .../nodes/generated/ReadOnlyCADNode.py | 41 ++- .../nodes/generated/ReadOnlyCable.py | 33 +- .../nodes/generated/ReadOnlyCirculator.py | 35 +- .../generated/ReadOnlyCouplingLinkNode.py | 28 +- .../nodes/generated/ReadOnlyCouplingsNode.py | 28 +- .../generated/ReadOnlyCustomCouplingNode.py | 38 ++- .../nodes/generated/ReadOnlyEmitSceneNode.py | 33 +- .../generated/ReadOnlyErcegCouplingNode.py | 37 +- .../nodes/generated/ReadOnlyFilter.py | 45 ++- .../generated/ReadOnlyFiveGChannelModel.py | 39 ++- .../generated/ReadOnlyHataCouplingNode.py | 37 +- .../ReadOnlyIndoorPropagationCouplingNode.py | 45 ++- .../nodes/generated/ReadOnlyIsolator.py | 35 +- .../ReadOnlyLogDistanceCouplingNode.py | 37 +- .../nodes/generated/ReadOnlyMultiplexer.py | 37 +- .../generated/ReadOnlyMultiplexerBand.py | 31 +- .../nodes/generated/ReadOnlyPowerDivider.py | 35 +- .../ReadOnlyPropagationLossCouplingNode.py | 35 +- .../nodes/generated/ReadOnlyRadioNode.py | 36 +- .../nodes/generated/ReadOnlyRfSystemGroup.py | 26 +- .../nodes/generated/ReadOnlyRxMeasNode.py | 31 +- .../generated/ReadOnlyRxMixerProductNode.py | 37 +- .../generated/ReadOnlyRxSaturationNode.py | 26 +- .../generated/ReadOnlyRxSelectivityNode.py | 26 +- .../nodes/generated/ReadOnlyRxSpurNode.py | 37 +- .../ReadOnlyRxSusceptibilityProfNode.py | 37 +- .../nodes/generated/ReadOnlySamplingNode.py | 41 ++- .../nodes/generated/ReadOnlySceneGroupNode.py | 31 +- .../generated/ReadOnlySolutionCouplingNode.py | 28 +- .../nodes/generated/ReadOnlySolutionsNode.py | 26 +- .../nodes/generated/ReadOnlyTR_Switch.py | 32 +- .../nodes/generated/ReadOnlyTerminator.py | 35 +- .../ReadOnlyTouchstoneCouplingNode.py | 34 +- .../ReadOnlyTwoRayPathLossCouplingNode.py | 35 +- .../generated/ReadOnlyTxBbEmissionNode.py | 33 +- .../nodes/generated/ReadOnlyTxHarmonicNode.py | 29 +- .../nodes/generated/ReadOnlyTxMeasNode.py | 28 +- .../generated/ReadOnlyTxNbEmissionNode.py | 31 +- .../ReadOnlyTxSpectralProfEmitterNode.py | 30 +- .../generated/ReadOnlyTxSpectralProfNode.py | 35 +- .../nodes/generated/ReadOnlyTxSpurNode.py | 37 +- .../generated/ReadOnlyWalfischCouplingNode.py | 39 ++- .../nodes/generated/ReadOnlyWaveform.py | 41 ++- .../nodes/generated/ResultPlotNode.py | 75 +++-- .../nodes/generated/RfSystemGroup.py | 30 +- .../emit_core/nodes/generated/RxMeasNode.py | 53 ++- .../nodes/generated/RxMixerProductNode.py | 79 +++-- .../nodes/generated/RxSaturationNode.py | 30 +- .../nodes/generated/RxSelectivityNode.py | 30 +- .../emit_core/nodes/generated/RxSpurNode.py | 41 ++- .../generated/RxSusceptibilityProfNode.py | 75 +++-- .../emit_core/nodes/generated/SamplingNode.py | 47 ++- .../nodes/generated/SceneGroupNode.py | 35 +- .../nodes/generated/SelectivityTraceNode.py | 35 +- .../nodes/generated/SolutionCouplingNode.py | 28 +- .../nodes/generated/SolutionsNode.py | 26 +- .../nodes/generated/SpurTraceNode.py | 39 ++- .../nodes/generated/TRSwitchTraceNode.py | 35 +- .../emit_core/nodes/generated/TR_Switch.py | 52 ++- .../emit_core/nodes/generated/Terminator.py | 39 ++- .../nodes/generated/TestNoiseTraceNode.py | 49 ++- .../nodes/generated/TopLevelSimulation.py | 26 +- .../nodes/generated/TouchstoneCouplingNode.py | 34 +- .../nodes/generated/TunableTraceNode.py | 39 ++- .../generated/TwoRayPathLossCouplingNode.py | 67 ++-- .../nodes/generated/TwoToneTraceNode.py | 49 ++- .../nodes/generated/TxBbEmissionNode.py | 41 ++- .../nodes/generated/TxHarmonicNode.py | 37 +- .../emit_core/nodes/generated/TxMeasNode.py | 38 ++- .../nodes/generated/TxNbEmissionNode.py | 41 ++- .../generated/TxSpectralProfEmitterNode.py | 56 ++- .../nodes/generated/TxSpectralProfNode.py | 79 +++-- .../emit_core/nodes/generated/TxSpurNode.py | 41 ++- .../nodes/generated/WalfischCouplingNode.py | 81 +++-- .../emit_core/nodes/generated/Waveform.py | 79 +++-- .../emit_core/nodes/generated/__init__.py | 318 ++++++++++-------- .../aedt/core/emit_core/results/revision.py | 4 +- 118 files changed, 4179 insertions(+), 1190 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py index 5dc93b43298..ac2fe41d6e1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py @@ -23,6 +23,7 @@ # SOFTWARE. import warnings + import ansys.aedt.core.generic.constants as consts from ..emit_constants import EMIT_INTERNAL_UNITS diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index 6bc2b1c782a..114725e04eb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Amplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -41,14 +67,14 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value : float): + def noise_temperature(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -64,7 +90,7 @@ class AmplifierTypeOption(Enum): def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type "Configures the amplifier as a Tx or Rx amplifier." - " """ + " """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] return val @@ -83,7 +109,7 @@ def gain(self) -> float: return val @gain.setter - def gain(self, value : float): + def gain(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Gain={value}"]) @property @@ -97,7 +123,7 @@ def center_frequency(self) -> float: return val @center_frequency.setter - def center_frequency(self, value : float|str): + def center_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Frequency={value}"]) @@ -112,7 +138,7 @@ def bandwidth(self) -> float: return val @bandwidth.setter - def bandwidth(self, value : float|str): + def bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth={value}"]) @@ -126,7 +152,7 @@ def noise_figure(self) -> float: return val @noise_figure.setter - def noise_figure(self, value : float): + def noise_figure(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property @@ -140,7 +166,7 @@ def saturation_level(self) -> float: return val @saturation_level.setter - def saturation_level(self, value : float|str): + def saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) @@ -155,7 +181,7 @@ def p1_db_point_ref_input(self) -> float: return val @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value : float|str): + def p1_db_point_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input={value}"]) @@ -170,7 +196,7 @@ def ip3_ref_input(self) -> float: return val @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @@ -184,7 +210,7 @@ def shape_factor(self) -> float: return val @shape_factor.setter - def shape_factor(self, value : float): + def shape_factor(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) @property @@ -197,7 +223,7 @@ def reverse_isolation(self) -> float: return val @reverse_isolation.setter - def reverse_isolation(self, value : float): + def reverse_isolation(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property @@ -212,4 +238,3 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py index 26ac0ddd934..87dc265d454 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class AntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -31,7 +57,7 @@ def delete(self): def tags(self) -> str: """Tags "Space delimited list of tags for coupling selections." - " """ + " """ val = self._get_property("Tags") return val @@ -50,7 +76,9 @@ def show_relative_coordinates(self) -> bool: @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -86,7 +114,7 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -144,14 +172,14 @@ def antenna_temperature(self) -> float: return val @antenna_temperature.setter - def antenna_temperature(self, value : float): + def antenna_temperature(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna Temperature={value}"]) @property def type(self): """Type "Defines the type of antenna." - " """ + " """ val = self._get_property("Type") return val @@ -194,7 +222,7 @@ def peak_gain(self) -> float: return val @peak_gain.setter - def peak_gain(self, value : float): + def peak_gain(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Gain={value}"]) class BoresightOption(Enum): @@ -206,7 +234,7 @@ class BoresightOption(Enum): def boresight(self) -> BoresightOption: """Boresight "Select peak beam direction in local coordinates." - " """ + " """ val = self._get_property("Boresight") val = self.BoresightOption[val] return val @@ -225,7 +253,7 @@ def vertical_beamwidth(self) -> float: return val @vertical_beamwidth.setter - def vertical_beamwidth(self, value : float): + def vertical_beamwidth(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Beamwidth={value}"]) @property @@ -238,7 +266,7 @@ def horizontal_beamwidth(self) -> float: return val @horizontal_beamwidth.setter - def horizontal_beamwidth(self, value : float): + def horizontal_beamwidth(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Beamwidth={value}"]) @property @@ -264,7 +292,7 @@ def first_sidelobe_level(self) -> float: return val @first_sidelobe_level.setter - def first_sidelobe_level(self, value : float): + def first_sidelobe_level(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Level={value}"]) @property @@ -277,7 +305,7 @@ def first_sidelobe_vert_bw(self) -> float: return val @first_sidelobe_vert_bw.setter - def first_sidelobe_vert_bw(self, value : float): + def first_sidelobe_vert_bw(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Vert. BW={value}"]) @property @@ -290,7 +318,7 @@ def first_sidelobe_hor_bw(self) -> float: return val @first_sidelobe_hor_bw.setter - def first_sidelobe_hor_bw(self, value : float): + def first_sidelobe_hor_bw(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Hor. BW={value}"]) @property @@ -303,7 +331,7 @@ def outerbacklobe_level(self) -> float: return val @outerbacklobe_level.setter - def outerbacklobe_level(self, value : float): + def outerbacklobe_level(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Outer/Backlobe Level={value}"]) @property @@ -317,7 +345,7 @@ def resonant_frequency(self) -> float: return val @resonant_frequency.setter - def resonant_frequency(self, value : float|str): + def resonant_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resonant Frequency={value}"]) @@ -332,7 +360,7 @@ def slot_length(self) -> float: return val @slot_length.setter - def slot_length(self, value : float|str): + def slot_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Slot Length={value}"]) @@ -347,7 +375,7 @@ def mouth_width(self) -> float: return val @mouth_width.setter - def mouth_width(self, value : float|str): + def mouth_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Width={value}"]) @@ -362,7 +390,7 @@ def mouth_height(self) -> float: return val @mouth_height.setter - def mouth_height(self, value : float|str): + def mouth_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Height={value}"]) @@ -377,7 +405,7 @@ def waveguide_width(self) -> float: return val @waveguide_width.setter - def waveguide_width(self, value : float|str): + def waveguide_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveguide Width={value}"]) @@ -391,7 +419,7 @@ def width_flare_half_angle(self) -> float: return val @width_flare_half_angle.setter - def width_flare_half_angle(self, value : float): + def width_flare_half_angle(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width Flare Half-angle={value}"]) @property @@ -404,7 +432,7 @@ def height_flare_half_angle(self) -> float: return val @height_flare_half_angle.setter - def height_flare_half_angle(self, value : float): + def height_flare_half_angle(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height Flare Half-angle={value}"]) @property @@ -418,7 +446,7 @@ def mouth_diameter(self) -> float: return val @mouth_diameter.setter - def mouth_diameter(self, value : float|str): + def mouth_diameter(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Diameter={value}"]) @@ -432,7 +460,7 @@ def flare_half_angle(self) -> float: return val @flare_half_angle.setter - def flare_half_angle(self, value : float): + def flare_half_angle(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flare Half-angle={value}"]) @property @@ -445,7 +473,7 @@ def vswr(self) -> float: return val @vswr.setter - def vswr(self, value : float): + def vswr(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) class AntennaPolarizationOption(Enum): @@ -458,14 +486,16 @@ class AntennaPolarizationOption(Enum): def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] return val @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna Polarization={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Antenna Polarization={value.value}"] + ) class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" @@ -475,7 +505,7 @@ class CrossDipoleModeOption(Enum): def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode "Choose the Cross Dipole type." - " """ + " """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] return val @@ -492,14 +522,16 @@ class CrossDipolePolarizationOption(Enum): def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] return val @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Cross Dipole Polarization={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Cross Dipole Polarization={value.value}"] + ) @property def override_height(self) -> bool: @@ -525,7 +557,7 @@ def offset_height(self) -> float: return val @offset_height.setter - def offset_height(self, value : float|str): + def offset_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset Height={value}"]) @@ -577,14 +609,16 @@ class ConformtoPlatformOption(Enum): def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform "Select method of automated conforming applied after Element Offset." - " """ + " """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] return val @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform to Platform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Conform to Platform={value.value}"] + ) class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" @@ -595,7 +629,7 @@ class ReferencePlaneOption(Enum): def reference_plane(self) -> ReferencePlaneOption: """Reference Plane "Select reference plane for determining original element heights." - " """ + " """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] return val @@ -615,7 +649,9 @@ def conform_element_orientation(self) -> bool: @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform Element Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Conform Element Orientation={value}"] + ) @property def show_axes(self) -> bool: @@ -653,7 +689,7 @@ def size(self) -> float: return val @size.setter - def size(self, value : float): + def size(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Size={value}"]) @property @@ -673,7 +709,7 @@ def color(self, value): def el_sample_interval(self) -> float: """El Sample Interval "Space between elevation-angle samples of pattern." - " """ + " """ val = self._get_property("El Sample Interval") return val @@ -681,7 +717,7 @@ def el_sample_interval(self) -> float: def az_sample_interval(self) -> float: """Az Sample Interval "Space between azimuth-angle samples of pattern." - " """ + " """ val = self._get_property("Az Sample Interval") return val @@ -698,7 +734,7 @@ def has_frequency_domain(self) -> bool: def frequency_domain(self): """Frequency Domain "Frequency sample(s) defining antenna." - " """ + " """ val = self._get_property("Frequency Domain") return val @@ -706,7 +742,7 @@ def frequency_domain(self): def number_of_electric_sources(self) -> int: """Number of Electric Sources "Number of freestanding electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Electric Sources") return val @@ -714,7 +750,7 @@ def number_of_electric_sources(self) -> int: def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources "Number of freestanding magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Magnetic Sources") return val @@ -722,7 +758,7 @@ def number_of_magnetic_sources(self) -> int: def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources "Number of imaged, half-space radiating electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Electric Sources") return val @@ -730,7 +766,7 @@ def number_of_imaged_electric_sources(self) -> int: def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources "Number of imaged, half-space radiating magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Magnetic Sources") return val @@ -738,7 +774,7 @@ def number_of_imaged_magnetic_sources(self) -> int: def waveguide_height(self) -> float: """Waveguide Height "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." - " """ + " """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") return val @@ -747,7 +783,7 @@ def waveguide_height(self) -> float: def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." - " """ + " """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -756,7 +792,7 @@ def waveguide_cutoff_frequency(self) -> float: def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." - " """ + " """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -770,14 +806,16 @@ class SWEModeTruncationOption(Enum): def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation "Select the method for stability-enhancing truncation of spherical wave expansion terms." - " """ + " """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] return val @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SWE Mode Truncation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"SWE Mode Truncation={value.value}"] + ) @property def max_n_index(self) -> int: @@ -796,7 +834,7 @@ def max_n_index(self, value: int): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -834,7 +872,7 @@ def use_phase_center(self, value: bool): def coordinate_systems(self) -> str: """Coordinate Systems "Specifies the coordinate system for the phase center of this antenna." - " """ + " """ val = self._get_property("Coordinate Systems") return val @@ -855,4 +893,3 @@ def phasecenterorientation(self): """ val = self._get_property("PhaseCenterOrientation") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py index 2624a00a849..db84f87ec26 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class AntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -25,7 +50,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -41,7 +66,7 @@ def passband_loss(self) -> float: return val @passband_loss.setter - def passband_loss(self, value : float): + def passband_loss(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Passband Loss={value}"]) @property @@ -54,7 +79,7 @@ def out_of_band_attenuation(self) -> float: return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): + def out_of_band_attenuation(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out of Band Attenuation={value}"]) @property @@ -68,7 +93,7 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @@ -83,7 +108,7 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @@ -98,7 +123,7 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @@ -113,7 +138,7 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @@ -121,11 +146,10 @@ def higher_stop_band(self, value : float|str): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index ab2560410a0..54881f631b7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Band(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -14,7 +40,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -24,7 +50,7 @@ def enabled(self, value: bool): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") return val @@ -62,7 +88,7 @@ def use_emission_designator(self, value: bool): def emission_designator(self) -> str: """Emission Designator "Enter the Emission Designator to define the bandwidth and modulation." - " """ + " """ val = self._get_property("Emission Designator") return val @@ -74,7 +100,7 @@ def emission_designator(self, value: str): def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." - " """ + " """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -83,7 +109,7 @@ def emission_designator_ch_bw(self) -> float: def emit_modulation_type(self) -> str: """EMIT Modulation Type "Modulation based off the emission designator." - " """ + " """ val = self._get_property("EMIT Modulation Type") return val @@ -98,7 +124,9 @@ def override_emission_designator_bw(self) -> bool: @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Override Emission Designator BW={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Override Emission Designator BW={value}"] + ) @property def channel_bandwidth(self) -> float: @@ -111,7 +139,7 @@ def channel_bandwidth(self) -> float: return val @channel_bandwidth.setter - def channel_bandwidth(self, value : float|str): + def channel_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Bandwidth={value}"]) @@ -132,7 +160,7 @@ class ModulationOption(Enum): def modulation(self) -> ModulationOption: """Modulation "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Modulation") val = self.ModulationOption[val] return val @@ -152,7 +180,7 @@ def max_modulating_freq(self) -> float: return val @max_modulating_freq.setter - def max_modulating_freq(self, value : float|str): + def max_modulating_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Modulating Freq.={value}"]) @@ -166,7 +194,7 @@ def modulation_index(self) -> float: return val @modulation_index.setter - def modulation_index(self, value : float): + def modulation_index(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Index={value}"]) @property @@ -180,7 +208,7 @@ def freq_deviation(self) -> float: return val @freq_deviation.setter - def freq_deviation(self, value : float|str): + def freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) @@ -195,7 +223,7 @@ def bit_rate(self) -> float: return val @bit_rate.setter - def bit_rate(self, value : float|str): + def bit_rate(self, value: float | str): value = self._convert_to_internal_units(value, "Data Rate") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bit Rate={value}"]) @@ -214,7 +242,7 @@ def sidelobes(self, value: int): @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ @@ -223,7 +251,7 @@ def freq_deviation_(self) -> float: return val @freq_deviation_.setter - def freq_deviation_(self, value : float|str): + def freq_deviation_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation ={value}"]) @@ -239,7 +267,7 @@ class PSKTypeOption(Enum): def psk_type(self) -> PSKTypeOption: """PSK Type "PSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] return val @@ -257,7 +285,7 @@ class FSKTypeOption(Enum): def fsk_type(self) -> FSKTypeOption: """FSK Type "FSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] return val @@ -277,7 +305,7 @@ class QAMTypeOption(Enum): def qam_type(self) -> QAMTypeOption: """QAM Type "QAM modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] return val @@ -297,7 +325,7 @@ class APSKTypeOption(Enum): def apsk_type(self) -> APSKTypeOption: """APSK Type "APSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] return val @@ -317,7 +345,7 @@ def start_frequency(self) -> float: return val @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @@ -332,7 +360,7 @@ def stop_frequency(self) -> float: return val @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @@ -347,7 +375,7 @@ def channel_spacing(self) -> float: return val @channel_spacing.setter - def channel_spacing(self, value : float|str): + def channel_spacing(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) @@ -362,7 +390,7 @@ def tx_offset(self) -> float: return val @tx_offset.setter - def tx_offset(self, value : float|str): + def tx_offset(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Offset={value}"]) @@ -377,7 +405,7 @@ class RadarTypeOption(Enum): def radar_type(self) -> RadarTypeOption: """Radar Type "Radar type: helps determine spectral profile." - " """ + " """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] return val @@ -410,7 +438,9 @@ def post_october_2020_procurement(self) -> bool: @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Post October 2020 Procurement={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Post October 2020 Procurement={value}"] + ) @property def hop_range_min_freq(self) -> float: @@ -423,7 +453,7 @@ def hop_range_min_freq(self) -> float: return val @hop_range_min_freq.setter - def hop_range_min_freq(self, value : float|str): + def hop_range_min_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Min Freq={value}"]) @@ -438,7 +468,7 @@ def hop_range_max_freq(self) -> float: return val @hop_range_max_freq.setter - def hop_range_max_freq(self, value : float|str): + def hop_range_max_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Max Freq={value}"]) @@ -453,7 +483,7 @@ def pulse_duration(self) -> float: return val @pulse_duration.setter - def pulse_duration(self, value : float|str): + def pulse_duration(self, value: float | str): value = self._convert_to_internal_units(value, "Time") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Duration={value}"]) @@ -468,7 +498,7 @@ def pulse_rise_time(self) -> float: return val @pulse_rise_time.setter - def pulse_rise_time(self, value : float|str): + def pulse_rise_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Rise Time={value}"]) @@ -483,7 +513,7 @@ def pulse_fall_time(self) -> float: return val @pulse_fall_time.setter - def pulse_fall_time(self, value : float|str): + def pulse_fall_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Fall Time={value}"]) @@ -497,7 +527,7 @@ def pulse_repetition_rate(self) -> float: return val @pulse_repetition_rate.setter - def pulse_repetition_rate(self, value : float): + def pulse_repetition_rate(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Repetition Rate={value}"]) @property @@ -510,7 +540,7 @@ def number_of_chips(self) -> float: return val @number_of_chips.setter - def number_of_chips(self, value : float): + def number_of_chips(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Chips={value}"]) @property @@ -523,7 +553,7 @@ def pulse_compression_ratio(self) -> float: return val @pulse_compression_ratio.setter - def pulse_compression_ratio(self, value : float): + def pulse_compression_ratio(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Compression Ratio={value}"]) @property @@ -537,7 +567,7 @@ def fm_chirp_period(self) -> float: return val @fm_chirp_period.setter - def fm_chirp_period(self, value : float|str): + def fm_chirp_period(self, value: float | str): value = self._convert_to_internal_units(value, "Time") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Chirp Period={value}"]) @@ -552,7 +582,7 @@ def fm_freq_deviation(self) -> float: return val @fm_freq_deviation.setter - def fm_freq_deviation(self, value : float|str): + def fm_freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Deviation={value}"]) @@ -567,7 +597,6 @@ def fm_freq_dev_bandwidth(self) -> float: return val @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value : float|str): + def fm_freq_dev_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Dev Bandwidth={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py index b16ed48b03e..e173c1d3913 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class BandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -25,4 +50,3 @@ def duplicate(self, new_name): def delete(self): """Delete this node""" self._delete() - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py index cf38504b9d6..b61929a3baa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class BandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -27,7 +53,7 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @@ -43,7 +69,7 @@ class TxorRxOption(Enum): def tx_or_rx(self) -> TxorRxOption: """Tx or Rx "Specifies whether the trace is a Tx or Rx channel." - " """ + " """ val = self._get_property("Tx or Rx") val = self.TxorRxOption[val] return val @@ -56,7 +82,7 @@ def tx_or_rx(self, value: TxorRxOption): def channel_frequency(self): """Channel Frequency "Select band channel frequency to display." - " """ + " """ val = self._get_property("Channel Frequency") return val @@ -68,7 +94,7 @@ def channel_frequency(self, value): def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -103,7 +129,7 @@ def custom_legend(self, value: bool): def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @@ -123,7 +149,7 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @@ -179,7 +205,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -239,4 +265,3 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py index b07050bd244..db8bd66e915 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class CADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,7 +78,7 @@ class ModelTypeOption(Enum): def model_type(self) -> ModelTypeOption: """Model Type "Select type of parametric model to create." - " """ + " """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] return val @@ -72,7 +98,7 @@ def length(self) -> float: return val @length.setter - def length(self, value : float|str): + def length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) @@ -87,7 +113,7 @@ def width(self) -> float: return val @width.setter - def width(self, value : float|str): + def width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width={value}"]) @@ -102,7 +128,7 @@ def height(self) -> float: return val @height.setter - def height(self, value : float|str): + def height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height={value}"]) @@ -116,7 +142,7 @@ def angle(self) -> float: return val @angle.setter - def angle(self, value : float): + def angle(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Angle={value}"]) @property @@ -130,7 +156,7 @@ def top_side(self) -> float: return val @top_side.setter - def top_side(self, value : float|str): + def top_side(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Side={value}"]) @@ -145,7 +171,7 @@ def top_radius(self) -> float: return val @top_radius.setter - def top_radius(self, value : float|str): + def top_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Radius={value}"]) @@ -160,7 +186,7 @@ def side(self) -> float: return val @side.setter - def side(self, value : float|str): + def side(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Side={value}"]) @@ -175,7 +201,7 @@ def radius(self) -> float: return val @radius.setter - def radius(self, value : float|str): + def radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radius={value}"]) @@ -190,7 +216,7 @@ def base_radius(self) -> float: return val @base_radius.setter - def base_radius(self, value : float|str): + def base_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Radius={value}"]) @@ -205,7 +231,7 @@ def center_radius(self) -> float: return val @center_radius.setter - def center_radius(self, value : float|str): + def center_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Radius={value}"]) @@ -220,7 +246,7 @@ def x_axis_ellipsoid_radius(self) -> float: return val @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value : float|str): + def x_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Axis Ellipsoid Radius={value}"]) @@ -235,7 +261,7 @@ def y_axis_ellipsoid_radius(self) -> float: return val @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value : float|str): + def y_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Axis Ellipsoid Radius={value}"]) @@ -250,7 +276,7 @@ def z_axis_ellipsoid_radius(self) -> float: return val @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value : float|str): + def z_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Z Axis Ellipsoid Radius={value}"]) @@ -265,7 +291,7 @@ def focal_length(self) -> float: return val @focal_length.setter - def focal_length(self, value : float|str): + def focal_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Focal Length={value}"]) @@ -273,13 +299,13 @@ def focal_length(self, value : float|str): def offset(self) -> float: """Offset "Offset of parabolic reflector." - " """ + " """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") return val @offset.setter - def offset(self, value : float|str): + def offset(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset={value}"]) @@ -293,7 +319,7 @@ def x_direction_taper(self) -> float: return val @x_direction_taper.setter - def x_direction_taper(self, value : float): + def x_direction_taper(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Direction Taper={value}"]) @property @@ -306,7 +332,7 @@ def y_direction_taper(self) -> float: return val @y_direction_taper.setter - def y_direction_taper(self, value : float): + def y_direction_taper(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Direction Taper={value}"]) @property @@ -382,7 +408,7 @@ class MeshOptionOption(Enum): def mesh_option(self) -> MeshOptionOption: """Mesh Option "Select from different meshing options." - " """ + " """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] return val @@ -415,7 +441,9 @@ def show_relative_coordinates(self) -> bool: @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -451,7 +479,7 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -509,7 +537,7 @@ class RenderModeOption(Enum): def render_mode(self) -> RenderModeOption: """Render Mode "Select drawing style for surfaces." - " """ + " """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] return val @@ -553,7 +581,7 @@ def max(self): def number_of_surfaces(self) -> int: """Number of Surfaces "Number of surfaces in the model." - " """ + " """ val = self._get_property("Number of Surfaces") return val @@ -574,11 +602,10 @@ def color(self, value): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index 827b05efda1..06b0e456571 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Cable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -41,14 +67,14 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value : float): + def noise_temperature(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -65,7 +91,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -85,7 +111,7 @@ def length(self) -> float: return val @length.setter - def length(self, value : float|str): + def length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) @@ -99,7 +125,7 @@ def loss_per_length(self) -> float: return val @loss_per_length.setter - def loss_per_length(self, value : float): + def loss_per_length(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Loss Per Length={value}"]) @property @@ -113,7 +139,7 @@ def measurement_length(self) -> float: return val @measurement_length.setter - def measurement_length(self, value : float|str): + def measurement_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Length={value}"]) @@ -127,7 +153,7 @@ def resistive_loss_constant(self) -> float: return val @resistive_loss_constant.setter - def resistive_loss_constant(self, value : float): + def resistive_loss_constant(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resistive Loss Constant={value}"]) @property @@ -140,14 +166,13 @@ def dielectric_loss_constant(self) -> float: return val @dielectric_loss_constant.setter - def dielectric_loss_constant(self, value : float): + def dielectric_loss_constant(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Dielectric Loss Constant={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py index 82bd87eb625..7d77e3d1184 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py @@ -1,7 +1,31 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class CategoriesViewNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index e6c0bcf9a98..52b5b3f7fd7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Circulator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -41,14 +67,14 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value : float): + def noise_temperature(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -64,7 +90,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -81,7 +107,7 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the circulator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @@ -100,7 +126,7 @@ def insertion_loss(self) -> float: return val @insertion_loss.setter - def insertion_loss(self, value : float): + def insertion_loss(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property @@ -126,7 +152,7 @@ def reverse_isolation(self) -> float: return val @reverse_isolation.setter - def reverse_isolation(self, value : float): + def reverse_isolation(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property @@ -152,7 +178,7 @@ def out_of_band_attenuation(self) -> float: return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): + def out_of_band_attenuation(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property @@ -166,7 +192,7 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @@ -181,7 +207,7 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @@ -196,7 +222,7 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @@ -211,7 +237,7 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @@ -219,7 +245,6 @@ def higher_stop_band(self, value : float|str): def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py index db3b288fc65..706972bc560 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class CouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -28,11 +53,10 @@ def ports(self): """Ports "Maps each port in the link to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Ports") return val @ports.setter def ports(self, value): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py index 7702528f752..6d93d55cab2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class CouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -26,7 +52,7 @@ def delete(self): @property def transmitter(self) -> EmitNode: """Transmitter - " """ + " """ val = self._get_property("Transmitter") return val @@ -37,7 +63,7 @@ def transmitter(self, value: EmitNode): @property def receiver(self) -> EmitNode: """Receiver - " """ + " """ val = self._get_property("Receiver") return val @@ -49,7 +75,7 @@ def receiver(self, value: EmitNode): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @@ -87,7 +113,7 @@ def custom_legend(self, value: bool): def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @@ -107,7 +133,7 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @@ -163,7 +189,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -327,4 +353,3 @@ def border_color(self): @border_color.setter def border_color(self, value): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py index fd8a0394e59..8d7cda4e457 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class CouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -7,7 +32,7 @@ def __init__(self, oDesign, result_id, node_id): def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" - return self._import(file_name,"TouchstoneCoupling") + return self._import(file_name, "TouchstoneCoupling") def add_custom_coupling(self): """Add a new node to define custom coupling between antennas""" @@ -55,7 +80,7 @@ def minimum_allowed_coupling(self) -> float: return val @minimum_allowed_coupling.setter - def minimum_allowed_coupling(self, value : float): + def minimum_allowed_coupling(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Allowed Coupling={value}"]) @property @@ -68,14 +93,13 @@ def global_default_coupling(self) -> float: return val @global_default_coupling.setter - def global_default_coupling(self, value : float): + def global_default_coupling(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Global Default Coupling={value}"]) @property def antenna_tags(self) -> str: """Antenna Tags "All tags currently used by all antennas in the project." - " """ + " """ val = self._get_property("Antenna Tags") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py index 65eb0cc74c2..aa3c55f2ff6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class CustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def rename(self, new_name): """Rename this node""" @@ -28,11 +53,11 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Value (dB): + "Value (dB): " Value should be between -1000 and 0." """ return self._get_table_data() @@ -58,7 +83,7 @@ def enabled(self, value: bool): def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -70,7 +95,7 @@ def antenna_a(self, value: EmitNode): def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -108,11 +133,10 @@ def adaptive_sampling(self, value: bool): def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py index 1f2b15f902d..898638022af 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class EmiPlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +64,7 @@ def visible(self, value: bool): def attached(self): """Attached "Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False)." - " """ + " """ val = self._get_property("Attached") return val @@ -51,7 +76,7 @@ def attached(self, value): def position(self) -> float: """Position "Set position of the marker along the X-axis." - " """ + " """ val = self._get_property("Position") return val @@ -59,7 +84,7 @@ def position(self) -> float: def position(self) -> float: """Position "Set position of the marker along the Y-axis." - " """ + " """ val = self._get_property("Position") return val @@ -86,7 +111,7 @@ def position_from_left(self) -> float: return val @position_from_left.setter - def position_from_left(self, value : float): + def position_from_left(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) @property @@ -99,14 +124,14 @@ def position_from_top(self) -> float: return val @position_from_top.setter - def position_from_top(self, value : float): + def position_from_top(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) @property def text(self) -> str: """Text "Set the text of the label." - " """ + " """ val = self._get_property("Text") return val @@ -123,14 +148,16 @@ class HorizontalPositionOption(Enum): def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position "Specify horizontal position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] return val @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Horizontal Position={value.value}"] + ) class VerticalPositionOption(Enum): TOP = "Top" @@ -141,7 +168,7 @@ class VerticalPositionOption(Enum): def vertical_position(self) -> VerticalPositionOption: """Vertical Position "Specify vertical position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] return val @@ -159,7 +186,7 @@ class TextAlignmentOption(Enum): def text_alignment(self) -> TextAlignmentOption: """Text Alignment "Specify justification applied to multi-line text." - " """ + " """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] return val @@ -268,7 +295,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Specify symbol displayed next to the label." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -341,4 +368,3 @@ def filled(self) -> bool: @filled.setter def filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py index f7be0d8385a..1fc5315ac89 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class EmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -14,7 +40,7 @@ def add_group(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -31,26 +57,27 @@ class GroundPlaneNormalOption(Enum): def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal "Specifies the axis of the normal to the ground plane." - " """ + " """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] return val @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"] + ) @property def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." - " """ + " """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return val @gp_position_along_normal.setter - def gp_position_along_normal(self, value : float|str): + def gp_position_along_normal(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GP Position Along Normal={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py index 859edfdfec9..008334efbeb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +66,7 @@ def enabled(self, value: bool): def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -52,7 +78,7 @@ def base_antenna(self, value: EmitNode): def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -90,7 +116,7 @@ def adaptive_sampling(self, value: bool): def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -107,7 +133,7 @@ class TerrainCategoryOption(Enum): def terrain_category(self) -> TerrainCategoryOption: """Terrain Category "Specify the terrain category type for the Erceg model." - " """ + " """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] return val @@ -126,7 +152,7 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value : float): + def custom_fading_margin(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property @@ -139,7 +165,7 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value : float): + def polarization_mismatch(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property @@ -152,7 +178,7 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value : float): + def pointing_error_loss(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): @@ -165,7 +191,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -184,7 +210,7 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value : float): + def fading_availability(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property @@ -197,7 +223,7 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value : float): + def std_deviation(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property @@ -223,7 +249,7 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value : float): + def rain_availability(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property @@ -236,7 +262,7 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value : float): + def rain_rate(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property @@ -249,7 +275,7 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): + def polarization_tilt_angle(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property @@ -263,7 +289,9 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -275,7 +303,7 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value : float): + def temperature(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property @@ -288,7 +316,7 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value : float): + def total_air_pressure(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property @@ -301,6 +329,7 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index 7911e53f955..6b70812ca88 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Filter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -41,14 +67,14 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value : float): + def noise_temperature(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -69,7 +95,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -88,7 +114,7 @@ def insertion_loss(self) -> float: return val @insertion_loss.setter - def insertion_loss(self, value : float): + def insertion_loss(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property @@ -101,7 +127,7 @@ def stop_band_attenuation(self) -> float: return val @stop_band_attenuation.setter - def stop_band_attenuation(self, value : float): + def stop_band_attenuation(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) @property @@ -115,7 +141,7 @@ def max_pass_band(self) -> float: return val @max_pass_band.setter - def max_pass_band(self, value : float|str): + def max_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) @@ -130,7 +156,7 @@ def min_stop_band(self) -> float: return val @min_stop_band.setter - def min_stop_band(self, value : float|str): + def min_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) @@ -145,7 +171,7 @@ def max_stop_band(self) -> float: return val @max_stop_band.setter - def max_stop_band(self, value : float|str): + def max_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) @@ -160,7 +186,7 @@ def min_pass_band(self) -> float: return val @min_pass_band.setter - def min_pass_band(self, value : float|str): + def min_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) @@ -175,7 +201,7 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @@ -190,7 +216,7 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @@ -205,7 +231,7 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @@ -220,13 +246,13 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ @@ -235,13 +261,13 @@ def lower_cutoff_(self) -> float: return val @lower_cutoff_.setter - def lower_cutoff_(self, value : float|str): + def lower_cutoff_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff ={value}"]) @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ @@ -250,13 +276,13 @@ def lower_stop_band_(self) -> float: return val @lower_stop_band_.setter - def lower_stop_band_(self, value : float|str): + def lower_stop_band_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band ={value}"]) @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ @@ -265,13 +291,13 @@ def higher_stop_band_(self) -> float: return val @higher_stop_band_.setter - def higher_stop_band_(self, value : float|str): + def higher_stop_band_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band ={value}"]) @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ @@ -280,13 +306,13 @@ def higher_cutoff_(self) -> float: return val @higher_cutoff_.setter - def higher_cutoff_(self, value : float|str): + def higher_cutoff_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff ={value}"]) @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency "Lowest tuned frequency." "Value should be between 1 and 1e+11." """ @@ -295,13 +321,13 @@ def lowest_tuned_frequency_(self) -> float: return val @lowest_tuned_frequency_.setter - def lowest_tuned_frequency_(self, value : float|str): + def lowest_tuned_frequency_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lowest Tuned Frequency ={value}"]) @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency "Highest tuned frequency." "Value should be between 1 and 1e+11." """ @@ -310,7 +336,7 @@ def highest_tuned_frequency_(self) -> float: return val @highest_tuned_frequency_.setter - def highest_tuned_frequency_(self, value : float|str): + def highest_tuned_frequency_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highest Tuned Frequency ={value}"]) @@ -324,7 +350,7 @@ def percent_bandwidth(self) -> float: return val @percent_bandwidth.setter - def percent_bandwidth(self, value : float): + def percent_bandwidth(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percent Bandwidth={value}"]) @property @@ -337,14 +363,13 @@ def shape_factor(self) -> float: return val @shape_factor.setter - def shape_factor(self, value : float): + def shape_factor(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py index bd576f88d4c..255589e8aaf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class FiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +66,7 @@ def enabled(self, value: bool): def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -52,7 +78,7 @@ def base_antenna(self, value: EmitNode): def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -90,7 +116,7 @@ def adaptive_sampling(self, value: bool): def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -107,7 +133,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment for the 5G channel model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -150,7 +176,7 @@ class NYUBPLModelOption(Enum): def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model "Specify the NYU Building Penetration Loss model." - " """ + " """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] return val @@ -169,7 +195,7 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value : float): + def custom_fading_margin(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property @@ -182,7 +208,7 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value : float): + def polarization_mismatch(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property @@ -195,7 +221,7 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value : float): + def pointing_error_loss(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): @@ -208,7 +234,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -227,7 +253,7 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value : float): + def fading_availability(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property @@ -240,7 +266,7 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value : float): + def std_deviation(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property @@ -266,7 +292,7 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value : float): + def rain_availability(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property @@ -279,7 +305,7 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value : float): + def rain_rate(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property @@ -292,7 +318,7 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): + def polarization_tilt_angle(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property @@ -306,7 +332,9 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -318,7 +346,7 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value : float): + def temperature(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property @@ -331,7 +359,7 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value : float): + def total_air_pressure(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property @@ -344,6 +372,7 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py index bd304adffc6..fe9a68f0369 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class HataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +66,7 @@ def enabled(self, value: bool): def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -52,7 +78,7 @@ def base_antenna(self, value: EmitNode): def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -90,7 +116,7 @@ def adaptive_sampling(self, value: bool): def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -108,7 +134,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Hata model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -127,7 +153,7 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value : float): + def custom_fading_margin(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property @@ -140,7 +166,7 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value : float): + def polarization_mismatch(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property @@ -153,7 +179,7 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value : float): + def pointing_error_loss(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): @@ -166,7 +192,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -185,7 +211,7 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value : float): + def fading_availability(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property @@ -198,7 +224,7 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value : float): + def std_deviation(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property @@ -224,7 +250,7 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value : float): + def rain_availability(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property @@ -237,7 +263,7 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value : float): + def rain_rate(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property @@ -250,7 +276,7 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): + def polarization_tilt_angle(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property @@ -264,7 +290,9 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -276,7 +304,7 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value : float): + def temperature(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property @@ -289,7 +317,7 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value : float): + def total_air_pressure(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property @@ -302,6 +330,7 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py index cb721ebdabc..4b6ad0f7104 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class IndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -25,13 +51,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Power Loss Coefficient: + "Power Loss Coefficient: " Value should be between 0 and 100." - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): " Value should be between 0 and 1000." """ return self._get_table_data() @@ -57,7 +83,7 @@ def enabled(self, value: bool): def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -69,7 +95,7 @@ def antenna_a(self, value: EmitNode): def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -107,7 +133,7 @@ def adaptive_sampling(self, value: bool): def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -126,7 +152,7 @@ class BuildingTypeOption(Enum): def building_type(self) -> BuildingTypeOption: """Building Type "Specify the building type for the Indoor Propagation model." - " """ + " """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] return val @@ -158,7 +184,7 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value : float): + def custom_fading_margin(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property @@ -171,7 +197,7 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value : float): + def polarization_mismatch(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property @@ -184,7 +210,7 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value : float): + def pointing_error_loss(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): @@ -197,7 +223,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -216,7 +242,7 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value : float): + def fading_availability(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property @@ -229,7 +255,7 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value : float): + def std_deviation(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property @@ -255,7 +281,7 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value : float): + def rain_availability(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property @@ -268,7 +294,7 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value : float): + def rain_rate(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property @@ -281,7 +307,7 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): + def polarization_tilt_angle(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property @@ -295,7 +321,9 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -307,7 +335,7 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value : float): + def temperature(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property @@ -320,7 +348,7 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value : float): + def total_air_pressure(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property @@ -333,6 +361,7 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index 12b2ecb957b..f8e250d0dcf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Isolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -41,14 +67,14 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value : float): + def noise_temperature(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -64,7 +90,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -81,7 +107,7 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the isolator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @@ -100,7 +126,7 @@ def insertion_loss(self) -> float: return val @insertion_loss.setter - def insertion_loss(self, value : float): + def insertion_loss(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property @@ -126,7 +152,7 @@ def reverse_isolation(self) -> float: return val @reverse_isolation.setter - def reverse_isolation(self, value : float): + def reverse_isolation(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property @@ -152,7 +178,7 @@ def out_of_band_attenuation(self) -> float: return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): + def out_of_band_attenuation(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property @@ -166,7 +192,7 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @@ -181,7 +207,7 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @@ -196,7 +222,7 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @@ -211,7 +237,7 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @@ -219,7 +245,6 @@ def higher_stop_band(self, value : float|str): def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py index 7ee23937407..5726e956981 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class LogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +66,7 @@ def enabled(self, value: bool): def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -52,7 +78,7 @@ def antenna_a(self, value: EmitNode): def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -90,7 +116,7 @@ def adaptive_sampling(self, value: bool): def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -111,7 +137,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Log Distance model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -130,7 +156,7 @@ def path_loss_exponent(self) -> float: return val @path_loss_exponent.setter - def path_loss_exponent(self, value : float): + def path_loss_exponent(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Exponent={value}"]) @property @@ -143,7 +169,7 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value : float): + def custom_fading_margin(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property @@ -156,7 +182,7 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value : float): + def polarization_mismatch(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property @@ -169,7 +195,7 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value : float): + def pointing_error_loss(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): @@ -182,7 +208,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -201,7 +227,7 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value : float): + def fading_availability(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property @@ -214,7 +240,7 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value : float): + def std_deviation(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property @@ -240,7 +266,7 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value : float): + def rain_availability(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property @@ -253,7 +279,7 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value : float): + def rain_rate(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property @@ -266,7 +292,7 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): + def polarization_tilt_angle(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property @@ -280,7 +306,9 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -292,7 +320,7 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value : float): + def temperature(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property @@ -305,7 +333,7 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value : float): + def total_air_pressure(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property @@ -318,6 +346,7 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py index 479d372f4fc..26133fc59a0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class MPlexBandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -29,7 +55,7 @@ class PowerDirectionOption(Enum): @property def power_direction(self) -> PowerDirectionOption: """Power Direction - " """ + " """ val = self._get_property("Power Direction") val = self.PowerDirectionOption[val] return val @@ -42,7 +68,7 @@ def power_direction(self, value: PowerDirectionOption): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @@ -80,7 +106,7 @@ def custom_legend(self, value: bool): def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @@ -100,7 +126,7 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @@ -156,7 +182,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -216,4 +242,3 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index f9da3798c42..cbb702447d8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Multiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -45,14 +71,14 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value : float): + def noise_temperature(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -68,7 +94,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -85,7 +111,7 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the multiplexer.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @@ -112,7 +138,7 @@ def ports(self): """Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ + " """ val = self._get_property("Ports") return val @@ -124,7 +150,6 @@ def ports(self, value): def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py index b2af8f366bf..b674b9e1448 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class MultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -33,7 +59,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -65,7 +91,7 @@ def insertion_loss(self) -> float: return val @insertion_loss.setter - def insertion_loss(self, value : float): + def insertion_loss(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property @@ -78,7 +104,7 @@ def stop_band_attenuation(self) -> float: return val @stop_band_attenuation.setter - def stop_band_attenuation(self, value : float): + def stop_band_attenuation(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) @property @@ -92,7 +118,7 @@ def max_pass_band(self) -> float: return val @max_pass_band.setter - def max_pass_band(self, value : float|str): + def max_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) @@ -107,7 +133,7 @@ def min_stop_band(self) -> float: return val @min_stop_band.setter - def min_stop_band(self, value : float|str): + def min_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) @@ -122,7 +148,7 @@ def max_stop_band(self) -> float: return val @max_stop_band.setter - def max_stop_band(self, value : float|str): + def max_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) @@ -137,7 +163,7 @@ def min_pass_band(self) -> float: return val @min_pass_band.setter - def min_pass_band(self, value : float|str): + def min_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) @@ -152,7 +178,7 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @@ -167,7 +193,7 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @@ -182,7 +208,7 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @@ -197,7 +223,7 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @@ -205,7 +231,6 @@ def higher_stop_band(self, value : float|str): def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py index ca50428fc9e..34d36c4e09a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class OutboardTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,7 +79,7 @@ def output_port(self, value: int): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @@ -91,7 +117,7 @@ def custom_legend(self, value: bool): def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @@ -111,7 +137,7 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @@ -167,7 +193,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -227,4 +253,3 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py index 69e17bf77c7..f042a394f10 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ParametricCouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -26,7 +52,7 @@ def delete(self): @property def antenna_a(self) -> EmitNode: """Antenna A - " """ + " """ val = self._get_property("Antenna A") return val @@ -37,7 +63,7 @@ def antenna_a(self, value: EmitNode): @property def antenna_b(self) -> EmitNode: """Antenna B - " """ + " """ val = self._get_property("Antenna B") return val @@ -49,7 +75,7 @@ def antenna_b(self, value: EmitNode): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @@ -87,7 +113,7 @@ def custom_legend(self, value: bool): def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @@ -107,7 +133,7 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @@ -163,7 +189,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -223,4 +249,3 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py index 58f9be6c4eb..1baf3a7b024 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,24 +79,24 @@ def attached(self, value: bool): def position(self) -> float: """Position "Set position of the marker along the X-axis." - " """ + " """ val = self._get_property("Position") return val @position.setter - def position(self, value : float): + def position(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def position(self) -> float: """Position "Set position of the marker along the Y-axis." - " """ + " """ val = self._get_property("Position") return val @position.setter - def position(self, value : float): + def position(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property @@ -96,7 +122,7 @@ def position_from_left(self) -> float: return val @position_from_left.setter - def position_from_left(self, value : float): + def position_from_left(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) @property @@ -109,14 +135,14 @@ def position_from_top(self) -> float: return val @position_from_top.setter - def position_from_top(self, value : float): + def position_from_top(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) @property def text(self) -> str: """Text "Set the text of the label." - " """ + " """ val = self._get_property("Text") return val @@ -133,14 +159,16 @@ class HorizontalPositionOption(Enum): def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position "Specify horizontal position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] return val @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Horizontal Position={value.value}"] + ) class VerticalPositionOption(Enum): TOP = "Top" @@ -151,7 +179,7 @@ class VerticalPositionOption(Enum): def vertical_position(self) -> VerticalPositionOption: """Vertical Position "Specify vertical position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] return val @@ -169,7 +197,7 @@ class TextAlignmentOption(Enum): def text_alignment(self) -> TextAlignmentOption: """Text Alignment "Specify justification applied to multi-line text." - " """ + " """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] return val @@ -278,7 +306,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Specify symbol displayed next to the label." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -351,4 +379,3 @@ def filled(self) -> bool: @filled.setter def filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py index cdc7dc8c821..66580038df7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -30,7 +56,7 @@ def delete(self): def title(self) -> str: """Title "Enter title at the top of the plot, room will be made for it." - " """ + " """ val = self._get_property("Title") return val @@ -100,19 +126,19 @@ def opacity(self) -> float: return val @opacity.setter - def opacity(self, value : float): + def opacity(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset "Adjust vertical position of CAD model overlay." - " """ + " """ val = self._get_property("Vertical Offset") return val @vertical_offset.setter - def vertical_offset(self, value : float): + def vertical_offset(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) @property @@ -125,7 +151,7 @@ def range_axis_rotation(self) -> float: return val @range_axis_rotation.setter - def range_axis_rotation(self, value : float): + def range_axis_rotation(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) @property @@ -145,48 +171,48 @@ def lock_axes(self, value: bool): def x_axis_min(self) -> float: """X-axis Min "Set lower extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Min") return val @x_axis_min.setter - def x_axis_min(self, value : float): + def x_axis_min(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max "Set upper extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Max") return val @x_axis_max.setter - def x_axis_max(self, value : float): + def x_axis_max(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min "Set lower extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Min") return val @y_axis_min.setter - def y_axis_min(self, value : float): + def y_axis_min(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max "Set upper extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Max") return val @y_axis_max.setter - def y_axis_max(self, value : float): + def y_axis_max(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) @property @@ -199,7 +225,7 @@ def y_axis_range(self) -> float: return val @y_axis_range.setter - def y_axis_range(self, value : float): + def y_axis_range(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) @property @@ -292,14 +318,16 @@ class MajorGridLineStyleOption(Enum): def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style "Select line style of major-tick grid lines." - " """ + " """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] return val @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] + ) @property def major_grid_color(self): @@ -326,14 +354,16 @@ class MinorGridLineStyleOption(Enum): def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style "Select line style of minor-tick grid lines." - " """ + " """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] return val @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] + ) @property def minor_grid_color(self): @@ -371,14 +401,16 @@ class BBPowerforPlotsUnitOption(Enum): def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit "Units to use for plotting broadband power densities." - " """ + " """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] return val @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] + ) @property def bb_power_bandwidth(self) -> float: @@ -391,7 +423,7 @@ def bb_power_bandwidth(self) -> float: return val @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value : float|str): + def bb_power_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) @@ -407,4 +439,3 @@ def log_scale(self) -> bool: @log_scale.setter def log_scale(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py index 53d9b8ac2bc..327cd810641 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -41,14 +67,14 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value : float): + def noise_temperature(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -65,7 +91,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -82,7 +108,7 @@ class OrientationOption(Enum): def orientation(self) -> OrientationOption: """Orientation "Defines the orientation of the Power Divider.." - " """ + " """ val = self._get_property("Orientation") val = self.OrientationOption[val] return val @@ -101,8 +127,10 @@ def insertion_loss_above_ideal(self) -> float: return val @insertion_loss_above_ideal.setter - def insertion_loss_above_ideal(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss Above Ideal={value}"]) + def insertion_loss_above_ideal(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Insertion Loss Above Ideal={value}"] + ) @property def finite_isolation(self) -> bool: @@ -127,7 +155,7 @@ def isolation(self) -> float: return val @isolation.setter - def isolation(self, value : float): + def isolation(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) @property @@ -153,7 +181,7 @@ def out_of_band_attenuation(self) -> float: return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): + def out_of_band_attenuation(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property @@ -167,7 +195,7 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @@ -182,7 +210,7 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @@ -197,7 +225,7 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @@ -212,7 +240,7 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @@ -220,7 +248,6 @@ def higher_stop_band(self, value : float|str): def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py index 483a50a5852..3d6fdda3a1a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PowerTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -31,7 +57,7 @@ class DirectionOption(Enum): def direction(self) -> DirectionOption: """Direction "Direction of power flow (towards or away from the transmitter) to plot." - " """ + " """ val = self._get_property("Direction") val = self.DirectionOption[val] return val @@ -44,7 +70,7 @@ def direction(self, value: DirectionOption): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @@ -82,7 +108,7 @@ def custom_legend(self, value: bool): def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @@ -102,7 +128,7 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @@ -158,7 +184,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -218,4 +244,3 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py index 0e09743c001..e80f61ed3ce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ProfileTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -27,7 +53,7 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @@ -65,7 +91,7 @@ def custom_legend(self, value: bool): def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @@ -85,7 +111,7 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @@ -141,7 +167,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -201,4 +227,3 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py index 311c65e540c..270c0327635 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +66,7 @@ def enabled(self, value: bool): def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -52,7 +78,7 @@ def antenna_a(self, value: EmitNode): def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -90,7 +116,7 @@ def adaptive_sampling(self, value: bool): def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -108,7 +134,7 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value : float): + def custom_fading_margin(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property @@ -121,7 +147,7 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value : float): + def polarization_mismatch(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property @@ -134,7 +160,7 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value : float): + def pointing_error_loss(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): @@ -147,7 +173,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -166,7 +192,7 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value : float): + def fading_availability(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property @@ -179,7 +205,7 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value : float): + def std_deviation(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property @@ -205,7 +231,7 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value : float): + def rain_availability(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property @@ -218,7 +244,7 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value : float): + def rain_rate(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property @@ -231,7 +257,7 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): + def polarization_tilt_angle(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property @@ -245,7 +271,9 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -257,7 +285,7 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value : float): + def temperature(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property @@ -270,7 +298,7 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value : float): + def total_air_pressure(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property @@ -283,6 +311,7 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py index 83a3a0f9e2a..4ef044f8118 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class RadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -28,11 +53,11 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Name: - " "Type: - " """ + "Name: + " "Type: + " """ return self._get_table_data() @table_data.setter @@ -43,11 +68,10 @@ def table_data(self, value): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py index 1508d26ac09..4fc81c0c4c0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyAmplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -28,7 +54,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -40,7 +66,7 @@ class AmplifierTypeOption(Enum): def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type "Configures the amplifier as a Tx or Rx amplifier." - " """ + " """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] return val @@ -139,4 +165,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py index fe64942ccbe..a71a708be66 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyAntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -15,7 +41,7 @@ def parent(self): def tags(self) -> str: """Tags "Space delimited list of tags for coupling selections." - " """ + " """ val = self._get_property("Tags") return val @@ -54,7 +80,7 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -99,7 +125,7 @@ def antenna_temperature(self) -> float: def type(self): """Type "Defines the type of antenna." - " """ + " """ val = self._get_property("Type") return val @@ -138,7 +164,7 @@ class BoresightOption(Enum): def boresight(self) -> BoresightOption: """Boresight "Select peak beam direction in local coordinates." - " """ + " """ val = self._get_property("Boresight") val = self.BoresightOption[val] return val @@ -312,7 +338,7 @@ class AntennaPolarizationOption(Enum): def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] return val @@ -325,7 +351,7 @@ class CrossDipoleModeOption(Enum): def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode "Choose the Cross Dipole type." - " """ + " """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] return val @@ -338,7 +364,7 @@ class CrossDipolePolarizationOption(Enum): def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] return val @@ -398,7 +424,7 @@ class ConformtoPlatformOption(Enum): def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform "Select method of automated conforming applied after Element Offset." - " """ + " """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] return val @@ -412,7 +438,7 @@ class ReferencePlaneOption(Enum): def reference_plane(self) -> ReferencePlaneOption: """Reference Plane "Select reference plane for determining original element heights." - " """ + " """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] return val @@ -466,7 +492,7 @@ def color(self): def el_sample_interval(self) -> float: """El Sample Interval "Space between elevation-angle samples of pattern." - " """ + " """ val = self._get_property("El Sample Interval") return val @@ -474,7 +500,7 @@ def el_sample_interval(self) -> float: def az_sample_interval(self) -> float: """Az Sample Interval "Space between azimuth-angle samples of pattern." - " """ + " """ val = self._get_property("Az Sample Interval") return val @@ -491,7 +517,7 @@ def has_frequency_domain(self) -> bool: def frequency_domain(self): """Frequency Domain "Frequency sample(s) defining antenna." - " """ + " """ val = self._get_property("Frequency Domain") return val @@ -499,7 +525,7 @@ def frequency_domain(self): def number_of_electric_sources(self) -> int: """Number of Electric Sources "Number of freestanding electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Electric Sources") return val @@ -507,7 +533,7 @@ def number_of_electric_sources(self) -> int: def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources "Number of freestanding magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Magnetic Sources") return val @@ -515,7 +541,7 @@ def number_of_magnetic_sources(self) -> int: def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources "Number of imaged, half-space radiating electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Electric Sources") return val @@ -523,7 +549,7 @@ def number_of_imaged_electric_sources(self) -> int: def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources "Number of imaged, half-space radiating magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Magnetic Sources") return val @@ -531,7 +557,7 @@ def number_of_imaged_magnetic_sources(self) -> int: def waveguide_height(self) -> float: """Waveguide Height "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." - " """ + " """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") return val @@ -540,7 +566,7 @@ def waveguide_height(self) -> float: def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." - " """ + " """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -549,7 +575,7 @@ def waveguide_cutoff_frequency(self) -> float: def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." - " """ + " """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -563,7 +589,7 @@ class SWEModeTruncationOption(Enum): def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation "Select the method for stability-enhancing truncation of spherical wave expansion terms." - " """ + " """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] return val @@ -581,7 +607,7 @@ def max_n_index(self) -> int: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -607,7 +633,7 @@ def use_phase_center(self) -> bool: def coordinate_systems(self) -> str: """Coordinate Systems "Specifies the coordinate system for the phase center of this antenna." - " """ + " """ val = self._get_property("Coordinate Systems") return val @@ -628,4 +654,3 @@ def phasecenterorientation(self): """ val = self._get_property("PhaseCenterOrientation") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py index db835e4106a..bc94666ed93 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyAntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -72,7 +97,6 @@ def higher_stop_band(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py index 53846a6bf8a..5977c725870 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -15,7 +41,7 @@ def parent(self): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") return val @@ -41,7 +67,7 @@ def use_emission_designator(self) -> bool: def emission_designator(self) -> str: """Emission Designator "Enter the Emission Designator to define the bandwidth and modulation." - " """ + " """ val = self._get_property("Emission Designator") return val @@ -49,7 +75,7 @@ def emission_designator(self) -> str: def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." - " """ + " """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -58,7 +84,7 @@ def emission_designator_ch_bw(self) -> float: def emit_modulation_type(self) -> str: """EMIT Modulation Type "Modulation based off the emission designator." - " """ + " """ val = self._get_property("EMIT Modulation Type") return val @@ -98,7 +124,7 @@ class ModulationOption(Enum): def modulation(self) -> ModulationOption: """Modulation "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Modulation") val = self.ModulationOption[val] return val @@ -153,7 +179,7 @@ def sidelobes(self) -> int: @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ @@ -173,7 +199,7 @@ class PSKTypeOption(Enum): def psk_type(self) -> PSKTypeOption: """PSK Type "PSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] return val @@ -187,7 +213,7 @@ class FSKTypeOption(Enum): def fsk_type(self) -> FSKTypeOption: """FSK Type "FSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] return val @@ -203,7 +229,7 @@ class QAMTypeOption(Enum): def qam_type(self) -> QAMTypeOption: """QAM Type "QAM modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] return val @@ -219,7 +245,7 @@ class APSKTypeOption(Enum): def apsk_type(self) -> APSKTypeOption: """APSK Type "APSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] return val @@ -275,7 +301,7 @@ class RadarTypeOption(Enum): def radar_type(self) -> RadarTypeOption: """Radar Type "Radar type: helps determine spectral profile." - " """ + " """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] return val @@ -404,4 +430,3 @@ def fm_freq_dev_bandwidth(self) -> float: val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py index bffa4168833..e504f8967e0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyBandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -9,4 +34,3 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py index 0ffdf98626c..1f6f4ff2dd7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyCADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +66,7 @@ class ModelTypeOption(Enum): def model_type(self) -> ModelTypeOption: """Model Type "Select type of parametric model to create." - " """ + " """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] return val @@ -188,7 +214,7 @@ def focal_length(self) -> float: def offset(self) -> float: """Offset "Offset of parabolic reflector." - " """ + " """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") return val @@ -264,7 +290,7 @@ class MeshOptionOption(Enum): def mesh_option(self) -> MeshOptionOption: """Mesh Option "Select from different meshing options." - " """ + " """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] return val @@ -313,7 +339,7 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -355,7 +381,7 @@ class RenderModeOption(Enum): def render_mode(self) -> RenderModeOption: """Render Mode "Select drawing style for surfaces." - " """ + " """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] return val @@ -391,7 +417,7 @@ def max(self): def number_of_surfaces(self) -> int: """Number of Surfaces "Number of surfaces in the model." - " """ + " """ val = self._get_property("Number of Surfaces") return val @@ -408,7 +434,6 @@ def color(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py index 2c254cf9db2..85a92646227 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyCable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -28,7 +54,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -41,7 +67,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -97,7 +123,6 @@ def dielectric_loss_constant(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py index e8aa5a48ee1..3311c3b4584 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyCirculator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -28,7 +54,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -40,7 +66,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -53,7 +79,7 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the circulator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @@ -147,7 +173,6 @@ def higher_stop_band(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py index 86a050e840f..4d7ca736cc9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -24,7 +49,6 @@ def ports(self): """Ports "Maps each port in the link to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Ports") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py index 82559ca8038..d3a0840ed3f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyCouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -27,7 +52,6 @@ def global_default_coupling(self) -> float: def antenna_tags(self) -> str: """Antenna Tags "All tags currently used by all antennas in the project." - " """ + " """ val = self._get_property("Antenna Tags") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py index fcd6ae186b3..1d973305649 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,11 +37,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Value (dB): + "Value (dB): " Value should be between -1000 and 0." """ return self._get_table_data() @@ -34,7 +59,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -42,7 +67,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -68,7 +93,6 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py index e851167520a..eed94653c3e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -10,7 +36,7 @@ def __init__(self, oDesign, result_id, node_id): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -23,7 +49,7 @@ class GroundPlaneNormalOption(Enum): def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal "Specifies the axis of the normal to the ground plane." - " """ + " """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] return val @@ -32,8 +58,7 @@ def ground_plane_normal(self) -> GroundPlaneNormalOption: def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." - " """ + " """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py index cd0c73f02b7..47a5ae0e620 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -24,7 +50,7 @@ def enabled(self) -> bool: def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -32,7 +58,7 @@ def base_antenna(self) -> EmitNode: def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -58,7 +84,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -71,7 +97,7 @@ class TerrainCategoryOption(Enum): def terrain_category(self) -> TerrainCategoryOption: """Terrain Category "Specify the terrain category type for the Erceg model." - " """ + " """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] return val @@ -113,7 +139,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -207,4 +233,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py index efaa6b33ef6..c99aae23628 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyFilter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -28,7 +54,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -45,7 +71,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -150,7 +176,7 @@ def higher_stop_band(self) -> float: @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ @@ -160,7 +186,7 @@ def lower_cutoff_(self) -> float: @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ @@ -170,7 +196,7 @@ def lower_stop_band_(self) -> float: @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ @@ -180,7 +206,7 @@ def higher_stop_band_(self) -> float: @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ @@ -190,7 +216,7 @@ def higher_cutoff_(self) -> float: @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency "Lowest tuned frequency." "Value should be between 1 and 1e+11." """ @@ -200,7 +226,7 @@ def lowest_tuned_frequency_(self) -> float: @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency "Highest tuned frequency." "Value should be between 1 and 1e+11." """ @@ -230,7 +256,6 @@ def shape_factor(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py index efeb5397442..f8936afbd98 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -24,7 +50,7 @@ def enabled(self) -> bool: def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -32,7 +58,7 @@ def base_antenna(self) -> EmitNode: def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -58,7 +84,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -71,7 +97,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment for the 5G channel model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -102,7 +128,7 @@ class NYUBPLModelOption(Enum): def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model "Specify the NYU Building Penetration Loss model." - " """ + " """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] return val @@ -144,7 +170,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -238,4 +264,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py index b04e6ed20df..036366d8cb0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -24,7 +50,7 @@ def enabled(self) -> bool: def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -32,7 +58,7 @@ def base_antenna(self) -> EmitNode: def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -58,7 +84,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -72,7 +98,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Hata model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -114,7 +140,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -208,4 +234,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py index 130e5f1a062..ce4c29850a8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,13 +39,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Power Loss Coefficient: + "Power Loss Coefficient: " Value should be between 0 and 100." - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): " Value should be between 0 and 1000." """ return self._get_table_data() @@ -37,7 +63,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -45,7 +71,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -71,7 +97,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -86,7 +112,7 @@ class BuildingTypeOption(Enum): def building_type(self) -> BuildingTypeOption: """Building Type "Specify the building type for the Indoor Propagation model." - " """ + " """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] return val @@ -137,7 +163,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -231,4 +257,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py index d1b95dca9f6..a4142cac7aa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyIsolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -28,7 +54,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -40,7 +66,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -53,7 +79,7 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the isolator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @@ -147,7 +173,6 @@ def higher_stop_band(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py index e2a70af0785..5e19f891681 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -24,7 +50,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -32,7 +58,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -58,7 +84,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -75,7 +101,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Log Distance model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -126,7 +152,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -220,4 +246,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py index 9bbd2030bb5..971b0323902 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyMultiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -28,7 +54,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -40,7 +66,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -53,7 +79,7 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the multiplexer.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] return val @@ -72,7 +98,7 @@ def ports(self): """Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ + " """ val = self._get_property("Ports") return val @@ -80,7 +106,6 @@ def ports(self): def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py index 65c73ce40e0..005d0bdb544 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -21,7 +47,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -137,7 +163,6 @@ def higher_stop_band(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py index 1a1b435b354..b5565c86e05 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyPowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -28,7 +54,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -41,7 +67,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -54,7 +80,7 @@ class OrientationOption(Enum): def orientation(self) -> OrientationOption: """Orientation "Defines the orientation of the Power Divider.." - " """ + " """ val = self._get_property("Orientation") val = self.OrientationOption[val] return val @@ -148,7 +174,6 @@ def higher_stop_band(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py index b9873d42409..22e6f31f4a3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -24,7 +50,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -32,7 +58,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -58,7 +84,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -99,7 +125,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -193,4 +219,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py index d81c15e9708..194dd1ea71e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,18 +37,17 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Name: - " "Type: - " """ + "Name: + " "Type: + " """ return self._get_table_data() @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py index 7db365483b8..6dc2c96f7a7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -27,4 +52,3 @@ def enforce_thermal_noise_floor(self) -> bool: """ val = self._get_property("Enforce Thermal Noise Floor") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py index 1d6ab2a17c7..40310bfbc29 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -33,7 +59,7 @@ def source_file(self) -> str: def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -47,7 +73,7 @@ class MeasurementModeOption(Enum): def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode "Defines the mode for the receiver measurement." - " """ + " """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] return val @@ -216,4 +242,3 @@ def exclude_mixer_products_below_noise(self) -> bool: """ val = self._get_property("Exclude Mixer Products Below Noise") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py index 44654f1844c..0fd1681a8fd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -20,7 +46,7 @@ class MixerProductTaperOption(Enum): def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper "Taper for setting amplitude of mixer products." - " """ + " """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] return val @@ -127,7 +153,7 @@ class MixingModeOption(Enum): def mixing_mode(self) -> MixingModeOption: """Mixing Mode "Specifies whether the IF frequency is > or < RF channel frequency." - " """ + " """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] return val @@ -145,7 +171,7 @@ def first_if_frequency(self): def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." - " """ + " """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -158,7 +184,7 @@ class UseHighLOOption(Enum): def use_high_lo(self) -> UseHighLOOption: """Use High LO "Use High LO above/below the transition frequency." - " """ + " """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] return val @@ -171,8 +197,7 @@ class MixerProductTableUnitsOption(Enum): def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units "Specifies the units for the Mixer Products." - " """ + " """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py index fa9ae9c40bb..74e76d2d9ac 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -9,4 +34,3 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py index 1ce5c919016..37665e0f6ef 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -18,4 +43,3 @@ def use_arithmetic_mean(self) -> bool: """ val = self._get_property("Use Arithmetic Mean") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py index 6b2267c55ff..1b7f8f44df2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,13 +39,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -32,8 +58,7 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py index e1ecc1750a6..13d383c2d88 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -21,14 +47,14 @@ class SensitivityUnitsOption(Enum): def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units "Units to use for the Rx Sensitivity." - " """ + " """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] return val @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr "Received signal power level at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ @@ -83,7 +109,7 @@ def rx_noise_figure(self) -> float: @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." "Value should be between -1000 and 1000." """ @@ -93,7 +119,7 @@ def receiver_sensitivity_(self) -> float: @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity "SNR or SINAD at the specified sensitivity level." "Value should be between -1000 and 1000." """ @@ -121,7 +147,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." "Value should be between -1000 and 1000." """ @@ -147,4 +173,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py index 1a685283ceb..7ed82bcdef5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlySamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,11 +39,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Min: + "Min: " Value should be greater than 1." - "Max: + "Max: " Value should be greater than 1." """ return self._get_table_data() @@ -31,7 +57,7 @@ class SamplingTypeOption(Enum): def sampling_type(self) -> SamplingTypeOption: """Sampling Type "Sampling to apply to this configuration." - " """ + " """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] return val @@ -76,7 +102,7 @@ def seed(self) -> int: def total_tx_channels(self) -> int: """Total Tx Channels "Total number of transmit channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Tx Channels") return val @@ -84,7 +110,7 @@ def total_tx_channels(self) -> int: def total_rx_channels(self) -> int: """Total Rx Channels "Total number of receive channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Rx Channels") return val @@ -92,7 +118,6 @@ def total_rx_channels(self) -> int: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py index 04284007889..1f8e5ba8384 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlySceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -46,7 +72,7 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -91,7 +117,6 @@ def box_color(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py index ed575659f51..037d5137cc7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +66,6 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py index c6e7dc29966..66d32dfb0ee 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlySolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -18,4 +43,3 @@ def enabled(self) -> bool: """ val = self._get_property("Enabled") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py index f425ab74572..ec2bd8e249d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyTR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -27,7 +52,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -39,7 +64,7 @@ class TxPortOption(Enum): def tx_port(self) -> TxPortOption: """Tx Port "Specifies which port on the TR Switch is part of the Tx path.." - " """ + " """ val = self._get_property("Tx Port") val = self.TxPortOption[val] return val @@ -52,7 +77,7 @@ class CommonPortLocationOption(Enum): def common_port_location(self) -> CommonPortLocationOption: """Common Port Location "Defines the orientation of the tr switch.." - " """ + " """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] return val @@ -141,4 +166,3 @@ def higher_stop_band(self) -> float: val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py index 22b92318463..29f9c65eff8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTerminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -28,7 +54,7 @@ def noise_temperature(self) -> float: def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -40,7 +66,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -53,7 +79,7 @@ class PortLocationOption(Enum): def port_location(self) -> PortLocationOption: """Port Location "Defines the orientation of the terminator.." - " """ + " """ val = self._get_property("Port Location") val = self.PortLocationOption[val] return val @@ -71,7 +97,6 @@ def vswr(self) -> float: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py index a9f9927707e..ee1f0627ffa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +66,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -58,7 +83,7 @@ def filename(self) -> str: def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File "Coupling data generated by Savant and exported as a matched file." - " """ + " """ val = self._get_property("Savant Matched Coupling File") return val @@ -76,7 +101,7 @@ def port_antenna_assignment(self): """Port-Antenna Assignment "Maps each port in the coupling file to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Port-Antenna Assignment") return val @@ -84,7 +109,6 @@ def port_antenna_assignment(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py index 98133b2cbd6..c238bee432f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -24,7 +50,7 @@ def enabled(self) -> bool: def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -32,7 +58,7 @@ def antenna_a(self) -> EmitNode: def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -58,7 +84,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -117,7 +143,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -211,4 +237,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py index a7be1da91db..eb9a34196ad 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -15,9 +41,9 @@ def parent(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): " Value should be between -200 and 150." """ return self._get_table_data() @@ -32,7 +58,7 @@ class NoiseBehaviorOption(Enum): def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior "Specifies the behavior of the parametric noise profile." - " """ + " """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] return val @@ -45,4 +71,3 @@ def use_log_linear_interpolation(self) -> bool: """ val = self._get_property("Use Log-Linear Interpolation") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py index 12972cfb8b9..10c3e80efda 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -19,8 +45,7 @@ class HarmonicTableUnitsOption(Enum): def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units "Specifies the units for the Harmonics." - " """ + " """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py index 9660e6d4202..b3c1a0a08fb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyTxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -32,7 +57,7 @@ def source_file(self) -> str: def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -74,4 +99,3 @@ def exclude_harmonics_below_noise(self) -> bool: """ val = self._get_property("Exclude Harmonics Below Noise") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py index 67a7ef80291..0750e4c1e63 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -19,7 +45,7 @@ class NarrowbandBehaviorOption(Enum): def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." - " """ + " """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] return val @@ -28,8 +54,7 @@ def narrowband_behavior(self) -> NarrowbandBehaviorOption: def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - " """ + " """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py index fb0b314db64..7dc5a453f99 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyTxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -14,7 +39,7 @@ def parent(self): def output_voltage_peak(self) -> float: """Output Voltage Peak "Output High Voltage Level: maximum voltage of the digital signal." - " """ + " """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") return val @@ -76,7 +101,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ @@ -111,4 +136,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py index 5ed120accb3..c55752fe903 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -19,7 +45,7 @@ class SpectrumTypeOption(Enum): def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type "Specifies EMI Margins to calculate." - " """ + " """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] return val @@ -32,7 +58,7 @@ class TxPowerOption(Enum): def tx_power(self) -> TxPowerOption: """Tx Power "Method used to specify the power." - " """ + " """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] return val @@ -85,7 +111,7 @@ class HarmonicTaperOption(Enum): def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper "Taper type used to set amplitude of harmonics." - " """ + " """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] return val @@ -201,7 +227,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ @@ -236,4 +262,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py index 4e01d323a9a..27dcdbcaa4c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,13 +39,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -32,8 +58,7 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py index a809657ca7f..2a3c3c9f26b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -24,7 +50,7 @@ def enabled(self) -> bool: def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -32,7 +58,7 @@ def base_antenna(self) -> EmitNode: def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -58,7 +84,7 @@ def adaptive_sampling(self) -> bool: def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -70,7 +96,7 @@ class PathLossTypeOption(Enum): def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type "Specify LOS vs NLOS for the Walfisch-Ikegami model." - " """ + " """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] return val @@ -83,7 +109,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Walfisch model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -164,7 +190,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -258,4 +284,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py index d86e733ab8f..95490724b46 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyWaveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -15,7 +41,7 @@ def parent(self): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") return val @@ -30,7 +56,7 @@ class WaveformOption(Enum): def waveform(self) -> WaveformOption: """Waveform "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Waveform") val = self.WaveformOption[val] return val @@ -93,7 +119,7 @@ class SpreadingTypeOption(Enum): def spreading_type(self) -> SpreadingTypeOption: """Spreading Type "Type of spreading employed by the Spread Spectrum Clock." - " """ + " """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] return val @@ -119,7 +145,7 @@ def imported_spectrum(self) -> str: def raw_data_format(self) -> str: """Raw Data Format "Format of the imported raw data." - " """ + " """ val = self._get_property("Raw Data Format") return val @@ -177,7 +203,7 @@ class AlgorithmOption(Enum): def algorithm(self) -> AlgorithmOption: """Algorithm "Algorithm used to transform the imported time domain spectrum." - " """ + " """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] return val @@ -196,7 +222,7 @@ def start_time(self) -> float: def stop_time(self) -> float: """Stop Time "Final time of the imported time domain spectrum." - " """ + " """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") return val @@ -226,7 +252,7 @@ class WindowTypeOption(Enum): def window_type(self) -> WindowTypeOption: """Window Type "Windowing scheme used for importing time domain spectrum." - " """ + " """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] return val @@ -295,4 +321,3 @@ def delay_skew(self) -> float: val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py index acd9da12826..aa77927cb5d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ResultPlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -18,7 +44,7 @@ def export_model(self, file_name): def title(self) -> str: """Title "Enter title at the top of the plot, room will be made for it." - " """ + " """ val = self._get_property("Title") return val @@ -101,19 +127,19 @@ def opacity(self) -> float: return val @opacity.setter - def opacity(self, value : float): + def opacity(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset "Adjust vertical position of CAD model overlay." - " """ + " """ val = self._get_property("Vertical Offset") return val @vertical_offset.setter - def vertical_offset(self, value : float): + def vertical_offset(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) @property @@ -126,7 +152,7 @@ def range_axis_rotation(self) -> float: return val @range_axis_rotation.setter - def range_axis_rotation(self, value : float): + def range_axis_rotation(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) @property @@ -146,48 +172,48 @@ def lock_axes(self, value: bool): def x_axis_min(self) -> float: """X-axis Min "Set lower extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Min") return val @x_axis_min.setter - def x_axis_min(self, value : float): + def x_axis_min(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max "Set upper extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Max") return val @x_axis_max.setter - def x_axis_max(self, value : float): + def x_axis_max(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min "Set lower extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Min") return val @y_axis_min.setter - def y_axis_min(self, value : float): + def y_axis_min(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max "Set upper extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Max") return val @y_axis_max.setter - def y_axis_max(self, value : float): + def y_axis_max(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) @property @@ -200,7 +226,7 @@ def y_axis_range(self) -> float: return val @y_axis_range.setter - def y_axis_range(self, value : float): + def y_axis_range(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) @property @@ -293,14 +319,16 @@ class MajorGridLineStyleOption(Enum): def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style "Select line style of major-tick grid lines." - " """ + " """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] return val @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] + ) @property def major_grid_color(self): @@ -327,14 +355,16 @@ class MinorGridLineStyleOption(Enum): def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style "Select line style of minor-tick grid lines." - " """ + " """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] return val @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] + ) @property def minor_grid_color(self): @@ -372,14 +402,16 @@ class BBPowerforPlotsUnitOption(Enum): def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit "Units to use for plotting broadband power densities." - " """ + " """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] return val @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] + ) @property def bb_power_bandwidth(self) -> float: @@ -392,7 +424,7 @@ def bb_power_bandwidth(self) -> float: return val @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value : float|str): + def bb_power_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) @@ -408,4 +440,3 @@ def log_scale(self) -> bool: @log_scale.setter def log_scale(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py index 5d0cd0332af..9eedffb4e24 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class RfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -34,5 +59,6 @@ def enforce_thermal_noise_floor(self) -> bool: @enforce_thermal_noise_floor.setter def enforce_thermal_noise_floor(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enforce Thermal Noise Floor={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Enforce Thermal Noise Floor={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py index 62c35cd2503..d9941eca967 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +67,7 @@ def source_file(self) -> str: def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -55,7 +81,7 @@ class MeasurementModeOption(Enum): def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode "Defines the mode for the receiver measurement." - " """ + " """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] return val @@ -74,7 +100,7 @@ def sinad_threshold(self) -> float: return val @sinad_threshold.setter - def sinad_threshold(self, value : float): + def sinad_threshold(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SINAD Threshold={value}"]) @property @@ -87,7 +113,7 @@ def gps_cnr_threshold(self) -> float: return val @gps_cnr_threshold.setter - def gps_cnr_threshold(self, value : float): + def gps_cnr_threshold(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GPS CNR Threshold={value}"]) @property @@ -100,7 +126,7 @@ def ber_threshold(self) -> float: return val @ber_threshold.setter - def ber_threshold(self, value : float): + def ber_threshold(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BER Threshold={value}"]) @property @@ -126,7 +152,7 @@ def intended_signal_power(self) -> float: return val @intended_signal_power.setter - def intended_signal_power(self, value : float): + def intended_signal_power(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Intended Signal Power={value}"]) @property @@ -140,7 +166,7 @@ def freq_deviation(self) -> float: return val @freq_deviation.setter - def freq_deviation(self, value : float|str): + def freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) @@ -154,7 +180,7 @@ def modulation_depth(self) -> float: return val @modulation_depth.setter - def modulation_depth(self, value : float): + def modulation_depth(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Depth={value}"]) @property @@ -259,7 +285,7 @@ def start_frequency(self) -> float: return val @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @@ -274,7 +300,7 @@ def stop_frequency(self) -> float: return val @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @@ -302,14 +328,15 @@ def exclude_mixer_products_below_noise(self) -> bool: @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Exclude Mixer Products Below Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Exclude Mixer Products Below Noise={value}"] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py index 823c28be243..51def9d924c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,7 +39,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -22,7 +48,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -37,14 +63,16 @@ class MixerProductTaperOption(Enum): def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper "Taper for setting amplitude of mixer products." - " """ + " """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] return val @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Taper={value.value}"] + ) @property def mixer_product_susceptibility(self) -> float: @@ -56,8 +84,10 @@ def mixer_product_susceptibility(self) -> float: return val @mixer_product_susceptibility.setter - def mixer_product_susceptibility(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Susceptibility={value}"]) + def mixer_product_susceptibility(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Susceptibility={value}"] + ) @property def spurious_rejection(self) -> float: @@ -69,7 +99,7 @@ def spurious_rejection(self) -> float: return val @spurious_rejection.setter - def spurious_rejection(self, value : float): + def spurious_rejection(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spurious Rejection={value}"]) @property @@ -83,7 +113,7 @@ def minimum_tuning_frequency(self) -> float: return val @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value : float|str): + def minimum_tuning_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Tuning Frequency={value}"]) @@ -98,7 +128,7 @@ def maximum_tuning_frequency(self) -> float: return val @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value : float|str): + def maximum_tuning_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum Tuning Frequency={value}"]) @@ -112,7 +142,7 @@ def mixer_product_slope(self) -> float: return val @mixer_product_slope.setter - def mixer_product_slope(self, value : float): + def mixer_product_slope(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Slope={value}"]) @property @@ -125,7 +155,7 @@ def mixer_product_intercept(self) -> float: return val @mixer_product_intercept.setter - def mixer_product_intercept(self, value : float): + def mixer_product_intercept(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Intercept={value}"]) @property @@ -139,7 +169,7 @@ def bandwidth_80_db(self) -> float: return val @bandwidth_80_db.setter - def bandwidth_80_db(self, value : float|str): + def bandwidth_80_db(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 80 dB={value}"]) @@ -153,7 +183,7 @@ def image_rejection(self) -> float: return val @image_rejection.setter - def image_rejection(self, value : float): + def image_rejection(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Image Rejection={value}"]) @property @@ -167,7 +197,9 @@ def maximum_rf_harmonic_order(self) -> int: @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum RF Harmonic Order={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Maximum RF Harmonic Order={value}"] + ) @property def maximum_lo_harmonic_order(self) -> int: @@ -180,7 +212,9 @@ def maximum_lo_harmonic_order(self) -> int: @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum LO Harmonic Order={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Maximum LO Harmonic Order={value}"] + ) class MixingModeOption(Enum): LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" @@ -191,7 +225,7 @@ class MixingModeOption(Enum): def mixing_mode(self) -> MixingModeOption: """Mixing Mode "Specifies whether the IF frequency is > or < RF channel frequency." - " """ + " """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] return val @@ -217,13 +251,13 @@ def first_if_frequency(self, value): def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." - " """ + " """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @rf_transition_frequency.setter - def rf_transition_frequency(self, value : float|str): + def rf_transition_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"RF Transition Frequency={value}"]) @@ -235,7 +269,7 @@ class UseHighLOOption(Enum): def use_high_lo(self) -> UseHighLOOption: """Use High LO "Use High LO above/below the transition frequency." - " """ + " """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] return val @@ -252,12 +286,13 @@ class MixerProductTableUnitsOption(Enum): def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units "Specifies the units for the Mixer Products." - " """ + " """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] return val @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Table Units={value.value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py index b46a4d251de..5bfe49eba0b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class RxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -21,9 +46,8 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py index 738c36784d0..c0c6141aa74 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class RxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -21,7 +46,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -39,4 +64,3 @@ def use_arithmetic_mean(self) -> bool: @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Arithmetic Mean={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py index 2b3b326973a..0ab0a70d512 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,7 +39,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -21,13 +47,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -39,7 +65,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -53,7 +79,7 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val @@ -61,4 +87,3 @@ def spur_table_units(self) -> SpurTableUnitsOption: @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py index 6233f992375..2677fa3d226 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -14,7 +40,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -30,7 +56,7 @@ class SensitivityUnitsOption(Enum): def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units "Units to use for the Rx Sensitivity." - " """ + " """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] return val @@ -41,7 +67,7 @@ def sensitivity_units(self, value: SensitivityUnitsOption): @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr "Received signal power level at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ @@ -49,7 +75,7 @@ def min_receive_signal_pwr_(self) -> float: return val @min_receive_signal_pwr_.setter - def min_receive_signal_pwr_(self, value : float): + def min_receive_signal_pwr_(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min. Receive Signal Pwr ={value}"]) @property @@ -62,7 +88,7 @@ def snr_at_rx_signal_pwr(self) -> float: return val @snr_at_rx_signal_pwr.setter - def snr_at_rx_signal_pwr(self, value : float): + def snr_at_rx_signal_pwr(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR at Rx Signal Pwr={value}"]) @property @@ -75,7 +101,7 @@ def processing_gain(self) -> float: return val @processing_gain.setter - def processing_gain(self, value : float): + def processing_gain(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Processing Gain={value}"]) @property @@ -89,7 +115,9 @@ def apply_pg_to_narrowband_only(self) -> bool: @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Apply PG to Narrowband Only={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Apply PG to Narrowband Only={value}"] + ) @property def saturation_level(self) -> float: @@ -102,7 +130,7 @@ def saturation_level(self) -> float: return val @saturation_level.setter - def saturation_level(self, value : float|str): + def saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) @@ -116,12 +144,12 @@ def rx_noise_figure(self) -> float: return val @rx_noise_figure.setter - def rx_noise_figure(self, value : float): + def rx_noise_figure(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rx Noise Figure={value}"]) @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." "Value should be between -1000 and 1000." """ @@ -130,13 +158,13 @@ def receiver_sensitivity_(self) -> float: return val @receiver_sensitivity_.setter - def receiver_sensitivity_(self, value : float|str): + def receiver_sensitivity_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver Sensitivity ={value}"]) @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity "SNR or SINAD at the specified sensitivity level." "Value should be between -1000 and 1000." """ @@ -144,8 +172,10 @@ def snrsinad_at_sensitivity_(self) -> float: return val @snrsinad_at_sensitivity_.setter - def snrsinad_at_sensitivity_(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR/SINAD at Sensitivity ={value}"]) + def snrsinad_at_sensitivity_(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"SNR/SINAD at Sensitivity ={value}"] + ) @property def perform_rx_intermod_analysis(self) -> bool: @@ -158,7 +188,9 @@ def perform_rx_intermod_analysis(self) -> bool: @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Perform Rx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Rx Intermod Analysis={value}"] + ) @property def amplifier_saturation_level(self) -> float: @@ -171,13 +203,15 @@ def amplifier_saturation_level(self) -> float: return val @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." "Value should be between -1000 and 1000." """ @@ -186,7 +220,7 @@ def p1_db_point_ref_input_(self) -> float: return val @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @@ -201,7 +235,7 @@ def ip3_ref_input(self) -> float: return val @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @@ -217,4 +251,3 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py index 0b6b4c92478..4333766c07c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,11 +39,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Min: + "Min: " Value should be greater than 1." - "Max: + "Max: " Value should be greater than 1." """ return self._get_table_data() @@ -35,7 +61,7 @@ class SamplingTypeOption(Enum): def sampling_type(self) -> SamplingTypeOption: """Sampling Type "Sampling to apply to this configuration." - " """ + " """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] return val @@ -67,7 +93,7 @@ def percentage_of_channels(self) -> float: return val @percentage_of_channels.setter - def percentage_of_channels(self, value : float): + def percentage_of_channels(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percentage of Channels={value}"]) @property @@ -81,7 +107,9 @@ def max__channelsrangeband(self) -> int: @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max # Channels/Range/Band={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Max # Channels/Range/Band={value}"] + ) @property def seed(self) -> int: @@ -100,7 +128,7 @@ def seed(self, value: int): def total_tx_channels(self) -> int: """Total Tx Channels "Total number of transmit channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Tx Channels") return val @@ -108,7 +136,7 @@ def total_tx_channels(self) -> int: def total_rx_channels(self) -> int: """Total Rx Channels "Total number of receive channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Rx Channels") return val @@ -116,7 +144,6 @@ def total_rx_channels(self) -> int: def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py index 0e97636872b..720b7e79017 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,7 +64,9 @@ def show_relative_coordinates(self) -> bool: @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -74,7 +102,7 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] return val @@ -139,11 +167,10 @@ def box_color(self, value): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py index cb0f0f9bb1f..800d7b1efac 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SelectivityTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -27,7 +53,7 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @@ -65,7 +91,7 @@ def custom_legend(self, value: bool): def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @@ -85,7 +111,7 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @@ -141,7 +167,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -201,4 +227,3 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py index 3b13967f159..f05d3a06a83 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class SolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,11 +78,10 @@ def adaptive_sampling(self, value: bool): def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py index bb0d934da7c..e09974b532d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class SolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -22,4 +47,3 @@ def enabled(self) -> bool: @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py index b892cacadac..3a7eb50105b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SpurTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -27,7 +53,7 @@ def delete(self): def channel_frequency(self): """Channel Frequency "Select band channel frequency to display." - " """ + " """ val = self._get_property("Channel Frequency") return val @@ -39,7 +65,7 @@ def channel_frequency(self, value): def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -48,7 +74,7 @@ def transmit_frequency(self) -> float: def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @@ -86,7 +112,7 @@ def custom_legend(self, value: bool): def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @@ -106,7 +132,7 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @@ -162,7 +188,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -222,4 +248,3 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py index ab0ad06c1c6..7a7e997b0b8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TRSwitchTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,7 +79,7 @@ def output_port(self, value: int): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @@ -91,7 +117,7 @@ def custom_legend(self, value: bool): def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @@ -111,7 +137,7 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @@ -167,7 +193,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -227,4 +253,3 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index 0684853bf1f..aed4dd0dc94 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class TR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -40,14 +65,14 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value : float): + def noise_temperature(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -63,7 +88,7 @@ class TxPortOption(Enum): def tx_port(self) -> TxPortOption: """Tx Port "Specifies which port on the TR Switch is part of the Tx path.." - " """ + " """ val = self._get_property("Tx Port") val = self.TxPortOption[val] return val @@ -80,14 +105,16 @@ class CommonPortLocationOption(Enum): def common_port_location(self) -> CommonPortLocationOption: """Common Port Location "Defines the orientation of the tr switch.." - " """ + " """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] return val @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Common Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Common Port Location={value.value}"] + ) @property def insertion_loss(self) -> float: @@ -99,7 +126,7 @@ def insertion_loss(self) -> float: return val @insertion_loss.setter - def insertion_loss(self, value : float): + def insertion_loss(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property @@ -125,7 +152,7 @@ def isolation(self) -> float: return val @isolation.setter - def isolation(self, value : float): + def isolation(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) @property @@ -151,7 +178,7 @@ def out_of_band_attenuation(self) -> float: return val @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): + def out_of_band_attenuation(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property @@ -165,7 +192,7 @@ def lower_stop_band(self) -> float: return val @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @@ -180,7 +207,7 @@ def lower_cutoff(self) -> float: return val @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @@ -195,7 +222,7 @@ def higher_cutoff(self) -> float: return val @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @@ -210,7 +237,6 @@ def higher_stop_band(self) -> float: return val @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index 595941bf256..962fb86ceff 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Terminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -41,14 +67,14 @@ def noise_temperature(self) -> float: return val @noise_temperature.setter - def noise_temperature(self, value : float): + def noise_temperature(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @@ -64,7 +90,7 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] return val @@ -81,7 +107,7 @@ class PortLocationOption(Enum): def port_location(self) -> PortLocationOption: """Port Location "Defines the orientation of the terminator.." - " """ + " """ val = self._get_property("Port Location") val = self.PortLocationOption[val] return val @@ -100,14 +126,13 @@ def vswr(self) -> float: return val @vswr.setter - def vswr(self, value : float): + def vswr(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py index 10ec9c62cd5..6461f44d091 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TestNoiseTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,7 +79,7 @@ def output_port(self, value: int): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @@ -91,7 +117,7 @@ def custom_legend(self, value: bool): def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @@ -111,7 +137,7 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @@ -167,7 +193,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -239,7 +265,7 @@ def frequency_1(self) -> float: return val @frequency_1.setter - def frequency_1(self, value : float|str): + def frequency_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) @@ -254,7 +280,7 @@ def amplitude_1(self) -> float: return val @amplitude_1.setter - def amplitude_1(self, value : float|str): + def amplitude_1(self, value: float | str): value = self._convert_to_internal_units(value, "Power") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) @@ -269,7 +295,7 @@ def bandwidth_1(self) -> float: return val @bandwidth_1.setter - def bandwidth_1(self, value : float|str): + def bandwidth_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) @@ -284,7 +310,7 @@ def frequency_2(self) -> float: return val @frequency_2.setter - def frequency_2(self, value : float|str): + def frequency_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) @@ -299,7 +325,7 @@ def amplitude_2(self) -> float: return val @amplitude_2.setter - def amplitude_2(self, value : float|str): + def amplitude_2(self, value: float | str): value = self._convert_to_internal_units(value, "Power") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) @@ -314,7 +340,7 @@ def bandwidth_2(self) -> float: return val @bandwidth_2.setter - def bandwidth_2(self, value : float|str): + def bandwidth_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) @@ -328,6 +354,5 @@ def noise_level(self) -> float: return val @noise_level.setter - def noise_level(self, value : float): + def noise_level(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py index 95fa62b6506..e8225cd97be 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py @@ -1,7 +1,31 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class TopLevelSimulation(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py index d38973827ea..f541940a636 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class TouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -65,7 +90,7 @@ def adaptive_sampling(self, value: bool): def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -90,7 +115,7 @@ def filename(self, value: str): def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File "Coupling data generated by Savant and exported as a matched file." - " """ + " """ val = self._get_property("Savant Matched Coupling File") return val @@ -112,7 +137,7 @@ def port_antenna_assignment(self): """Port-Antenna Assignment "Maps each port in the coupling file to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Port-Antenna Assignment") return val @@ -124,11 +149,10 @@ def port_antenna_assignment(self, value): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py index b94e7b1b2c4..bfe14e48567 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TunableTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,13 +79,13 @@ def output_port(self, value: int): def frequency(self) -> float: """Frequency "Tunable filter center frequency." - " """ + " """ val = self._get_property("Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @frequency.setter - def frequency(self, value : float|str): + def frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency={value}"]) @@ -67,7 +93,7 @@ def frequency(self, value : float|str): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @@ -105,7 +131,7 @@ def custom_legend(self, value: bool): def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @@ -125,7 +151,7 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @@ -181,7 +207,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -241,4 +267,3 @@ def symbol_filled(self) -> bool: @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py index 73fe3ce479a..8dfaafec757 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +66,7 @@ def enabled(self, value: bool): def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") return val @@ -52,7 +78,7 @@ def antenna_a(self, value: EmitNode): def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") return val @@ -90,7 +116,7 @@ def adaptive_sampling(self, value: bool): def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -108,7 +134,7 @@ def ground_reflection_coeff(self) -> float: return val @ground_reflection_coeff.setter - def ground_reflection_coeff(self, value : float): + def ground_reflection_coeff(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ground Reflection Coeff.={value}"]) @property @@ -134,7 +160,7 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value : float): + def custom_fading_margin(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property @@ -147,7 +173,7 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value : float): + def polarization_mismatch(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property @@ -160,7 +186,7 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value : float): + def pointing_error_loss(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): @@ -173,7 +199,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -192,7 +218,7 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value : float): + def fading_availability(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property @@ -205,7 +231,7 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value : float): + def std_deviation(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property @@ -231,7 +257,7 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value : float): + def rain_availability(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property @@ -244,7 +270,7 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value : float): + def rain_rate(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property @@ -257,7 +283,7 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): + def polarization_tilt_angle(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property @@ -271,7 +297,9 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -283,7 +311,7 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value : float): + def temperature(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property @@ -296,7 +324,7 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value : float): + def total_air_pressure(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property @@ -309,6 +337,7 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py index 5ae9217dacb..9069eb02b55 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TwoToneTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,7 +79,7 @@ def output_port(self, value: int): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") return val @@ -91,7 +117,7 @@ def custom_legend(self, value: bool): def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") return val @@ -111,7 +137,7 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] return val @@ -167,7 +193,7 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] return val @@ -239,7 +265,7 @@ def frequency_1(self) -> float: return val @frequency_1.setter - def frequency_1(self, value : float|str): + def frequency_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) @@ -254,7 +280,7 @@ def amplitude_1(self) -> float: return val @amplitude_1.setter - def amplitude_1(self, value : float|str): + def amplitude_1(self, value: float | str): value = self._convert_to_internal_units(value, "Power") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) @@ -269,7 +295,7 @@ def bandwidth_1(self) -> float: return val @bandwidth_1.setter - def bandwidth_1(self, value : float|str): + def bandwidth_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) @@ -284,7 +310,7 @@ def frequency_2(self) -> float: return val @frequency_2.setter - def frequency_2(self, value : float|str): + def frequency_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) @@ -299,7 +325,7 @@ def amplitude_2(self) -> float: return val @amplitude_2.setter - def amplitude_2(self, value : float|str): + def amplitude_2(self, value: float | str): value = self._convert_to_internal_units(value, "Power") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) @@ -314,7 +340,7 @@ def bandwidth_2(self) -> float: return val @bandwidth_2.setter - def bandwidth_2(self, value : float|str): + def bandwidth_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) @@ -328,6 +354,5 @@ def noise_level(self) -> float: return val @noise_level.setter - def noise_level(self, value : float): + def noise_level(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py index 49f9e095240..6f964b322e4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,7 +39,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -23,9 +49,9 @@ def delete(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): " Value should be between -200 and 150." """ return self._get_table_data() @@ -37,7 +63,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -53,7 +79,7 @@ class NoiseBehaviorOption(Enum): def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior "Specifies the behavior of the parametric noise profile." - " """ + " """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] return val @@ -73,5 +99,6 @@ def use_log_linear_interpolation(self) -> bool: @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py index 82ca84610c4..ea92ab0c255 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,7 +39,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -22,7 +48,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -36,12 +62,13 @@ class HarmonicTableUnitsOption(Enum): def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units "Specifies the units for the Harmonics." - " """ + " """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] return val @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py index ae44ce1ca8c..7e71a02d156 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class TxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +65,7 @@ def source_file(self) -> str: def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @@ -69,7 +94,7 @@ def start_frequency(self) -> float: return val @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @@ -84,7 +109,7 @@ def stop_frequency(self) -> float: return val @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @@ -99,14 +124,15 @@ def exclude_harmonics_below_noise(self) -> bool: @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py index 573659b24c6..eb2964eeaaa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,7 +39,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -22,7 +48,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -36,26 +62,27 @@ class NarrowbandBehaviorOption(Enum): def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." - " """ + " """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] return val @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"] + ) @property def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - " """ + " """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return val @measurement_frequency.setter - def measurement_frequency(self, value : float|str): + def measurement_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Frequency={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py index 7fbc52c83e8..06c88dc38ad 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class TxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,7 +38,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -23,13 +48,13 @@ def enabled(self, value: bool): def output_voltage_peak(self) -> float: """Output Voltage Peak "Output High Voltage Level: maximum voltage of the digital signal." - " """ + " """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") return val @output_voltage_peak.setter - def output_voltage_peak(self, value : float|str): + def output_voltage_peak(self, value: float | str): value = self._convert_to_internal_units(value, "Voltage") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Voltage Peak={value}"]) @@ -56,7 +81,7 @@ def tx_broadband_noise(self) -> float: return val @tx_broadband_noise.setter - def tx_broadband_noise(self, value : float): + def tx_broadband_noise(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) @property @@ -70,7 +95,9 @@ def perform_tx_intermod_analysis(self) -> bool: @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] + ) @property def internal_amp_gain(self) -> float: @@ -82,7 +109,7 @@ def internal_amp_gain(self) -> float: return val @internal_amp_gain.setter - def internal_amp_gain(self, value : float): + def internal_amp_gain(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) @property @@ -95,7 +122,7 @@ def noise_figure(self) -> float: return val @noise_figure.setter - def noise_figure(self, value : float): + def noise_figure(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property @@ -109,13 +136,15 @@ def amplifier_saturation_level(self) -> float: return val @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ @@ -124,7 +153,7 @@ def p1_db_point_ref_input_(self) -> float: return val @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @@ -139,7 +168,7 @@ def ip3_ref_input(self) -> float: return val @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @@ -153,7 +182,7 @@ def reverse_isolation(self) -> float: return val @reverse_isolation.setter - def reverse_isolation(self, value : float): + def reverse_isolation(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property @@ -168,4 +197,3 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py index 11743e20e4d..c870255a30c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -14,7 +40,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -28,7 +54,7 @@ class SpectrumTypeOption(Enum): def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type "Specifies EMI Margins to calculate." - " """ + " """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] return val @@ -45,7 +71,7 @@ class TxPowerOption(Enum): def tx_power(self) -> TxPowerOption: """Tx Power "Method used to specify the power." - " """ + " """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] return val @@ -65,7 +91,7 @@ def peak_power(self) -> float: return val @peak_power.setter - def peak_power(self, value : float|str): + def peak_power(self, value: float | str): value = self._convert_to_internal_units(value, "Power") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Power={value}"]) @@ -80,7 +106,7 @@ def average_power(self) -> float: return val @average_power.setter - def average_power(self, value : float|str): + def average_power(self, value: float | str): value = self._convert_to_internal_units(value, "Power") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Average Power={value}"]) @@ -107,7 +133,7 @@ def tx_broadband_noise(self) -> float: return val @tx_broadband_noise.setter - def tx_broadband_noise(self, value : float): + def tx_broadband_noise(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) class HarmonicTaperOption(Enum): @@ -120,7 +146,7 @@ class HarmonicTaperOption(Enum): def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper "Taper type used to set amplitude of harmonics." - " """ + " """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] return val @@ -139,7 +165,7 @@ def harmonic_amplitude(self) -> float: return val @harmonic_amplitude.setter - def harmonic_amplitude(self, value : float): + def harmonic_amplitude(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Amplitude={value}"]) @property @@ -152,7 +178,7 @@ def harmonic_slope(self) -> float: return val @harmonic_slope.setter - def harmonic_slope(self, value : float): + def harmonic_slope(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Slope={value}"]) @property @@ -165,7 +191,7 @@ def harmonic_intercept(self) -> float: return val @harmonic_intercept.setter - def harmonic_intercept(self, value : float): + def harmonic_intercept(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Intercept={value}"]) @property @@ -179,7 +205,9 @@ def enable_harmonic_bw_expansion(self) -> bool: @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Harmonic BW Expansion={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Enable Harmonic BW Expansion={value}"] + ) @property def number_of_harmonics(self) -> int: @@ -204,7 +232,7 @@ def second_harmonic_level(self) -> float: return val @second_harmonic_level.setter - def second_harmonic_level(self, value : float): + def second_harmonic_level(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Second Harmonic Level={value}"]) @property @@ -217,7 +245,7 @@ def third_harmonic_level(self) -> float: return val @third_harmonic_level.setter - def third_harmonic_level(self, value : float): + def third_harmonic_level(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Third Harmonic Level={value}"]) @property @@ -230,7 +258,7 @@ def other_harmonic_levels(self) -> float: return val @other_harmonic_levels.setter - def other_harmonic_levels(self, value : float): + def other_harmonic_levels(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Other Harmonic Levels={value}"]) @property @@ -244,7 +272,9 @@ def perform_tx_intermod_analysis(self) -> bool: @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] + ) @property def internal_amp_gain(self) -> float: @@ -256,7 +286,7 @@ def internal_amp_gain(self) -> float: return val @internal_amp_gain.setter - def internal_amp_gain(self, value : float): + def internal_amp_gain(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) @property @@ -269,7 +299,7 @@ def noise_figure(self) -> float: return val @noise_figure.setter - def noise_figure(self, value : float): + def noise_figure(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property @@ -283,13 +313,15 @@ def amplifier_saturation_level(self) -> float: return val @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ @@ -298,7 +330,7 @@ def p1_db_point_ref_input_(self) -> float: return val @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @@ -313,7 +345,7 @@ def ip3_ref_input(self) -> float: return val @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @@ -327,7 +359,7 @@ def reverse_isolation(self) -> float: return val @reverse_isolation.setter - def reverse_isolation(self, value : float): + def reverse_isolation(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property @@ -342,4 +374,3 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py index 67e0534be08..e6dda14524e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,7 +39,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -21,13 +47,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -39,7 +65,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -53,7 +79,7 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] return val @@ -61,4 +87,3 @@ def spur_table_units(self) -> SpurTableUnitsOption: @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py index a91f66fac5d..c1691907269 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class WalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +66,7 @@ def enabled(self, value: bool): def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") return val @@ -52,7 +78,7 @@ def base_antenna(self, value: EmitNode): def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") return val @@ -90,7 +116,7 @@ def adaptive_sampling(self, value: bool): def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") return val @@ -106,7 +132,7 @@ class PathLossTypeOption(Enum): def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type "Specify LOS vs NLOS for the Walfisch-Ikegami model." - " """ + " """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] return val @@ -123,7 +149,7 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Walfisch model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] return val @@ -143,7 +169,7 @@ def roof_height(self) -> float: return val @roof_height.setter - def roof_height(self, value : float|str): + def roof_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Roof Height={value}"]) @@ -158,9 +184,11 @@ def distance_between_buildings(self) -> float: return val @distance_between_buildings.setter - def distance_between_buildings(self, value : float|str): + def distance_between_buildings(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Distance Between Buildings={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Distance Between Buildings={value}"] + ) @property def street_width(self) -> float: @@ -173,7 +201,7 @@ def street_width(self) -> float: return val @street_width.setter - def street_width(self, value : float|str): + def street_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Street Width={value}"]) @@ -187,7 +215,7 @@ def incidence_angle(self) -> float: return val @incidence_angle.setter - def incidence_angle(self, value : float): + def incidence_angle(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Incidence Angle={value}"]) @property @@ -200,7 +228,7 @@ def custom_fading_margin(self) -> float: return val @custom_fading_margin.setter - def custom_fading_margin(self, value : float): + def custom_fading_margin(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property @@ -213,7 +241,7 @@ def polarization_mismatch(self) -> float: return val @polarization_mismatch.setter - def polarization_mismatch(self, value : float): + def polarization_mismatch(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property @@ -226,7 +254,7 @@ def pointing_error_loss(self) -> float: return val @pointing_error_loss.setter - def pointing_error_loss(self, value : float): + def pointing_error_loss(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): @@ -239,7 +267,7 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] return val @@ -258,7 +286,7 @@ def fading_availability(self) -> float: return val @fading_availability.setter - def fading_availability(self, value : float): + def fading_availability(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property @@ -271,7 +299,7 @@ def std_deviation(self) -> float: return val @std_deviation.setter - def std_deviation(self, value : float): + def std_deviation(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property @@ -297,7 +325,7 @@ def rain_availability(self) -> float: return val @rain_availability.setter - def rain_availability(self, value : float): + def rain_availability(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property @@ -310,7 +338,7 @@ def rain_rate(self) -> float: return val @rain_rate.setter - def rain_rate(self, value : float): + def rain_rate(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property @@ -323,7 +351,7 @@ def polarization_tilt_angle(self) -> float: return val @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): + def polarization_tilt_angle(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property @@ -337,7 +365,9 @@ def include_atmospheric_absorption(self) -> bool: @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -349,7 +379,7 @@ def temperature(self) -> float: return val @temperature.setter - def temperature(self, value : float): + def temperature(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property @@ -362,7 +392,7 @@ def total_air_pressure(self) -> float: return val @total_air_pressure.setter - def total_air_pressure(self, value : float): + def total_air_pressure(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property @@ -375,6 +405,7 @@ def water_vapor_concentration(self) -> float: return val @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py index a50a7403e46..10baa89a846 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Waveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -14,7 +40,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -24,7 +50,7 @@ def enabled(self, value: bool): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") return val @@ -43,7 +69,7 @@ class WaveformOption(Enum): def waveform(self) -> WaveformOption: """Waveform "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Waveform") val = self.WaveformOption[val] return val @@ -63,7 +89,7 @@ def start_frequency(self) -> float: return val @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @@ -78,7 +104,7 @@ def stop_frequency(self) -> float: return val @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @@ -93,7 +119,7 @@ def channel_spacing(self) -> float: return val @channel_spacing.setter - def channel_spacing(self, value : float|str): + def channel_spacing(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) @@ -107,7 +133,7 @@ def clock_duty_cycle(self) -> float: return val @clock_duty_cycle.setter - def clock_duty_cycle(self, value : float): + def clock_duty_cycle(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Duty Cycle={value}"]) @property @@ -121,7 +147,7 @@ def clock_risefall_time(self) -> float: return val @clock_risefall_time.setter - def clock_risefall_time(self, value : float|str): + def clock_risefall_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Rise/Fall Time={value}"]) @@ -134,7 +160,7 @@ class SpreadingTypeOption(Enum): def spreading_type(self) -> SpreadingTypeOption: """Spreading Type "Type of spreading employed by the Spread Spectrum Clock." - " """ + " """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] return val @@ -153,7 +179,7 @@ def spread_percentage(self) -> float: return val @spread_percentage.setter - def spread_percentage(self, value : float): + def spread_percentage(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spread Percentage={value}"]) @property @@ -172,7 +198,7 @@ def imported_spectrum(self, value: str): def raw_data_format(self) -> str: """Raw Data Format "Format of the imported raw data." - " """ + " """ val = self._get_property("Raw Data Format") return val @@ -187,7 +213,7 @@ def system_impedance(self) -> float: return val @system_impedance.setter - def system_impedance(self, value : float|str): + def system_impedance(self, value: float | str): value = self._convert_to_internal_units(value, "Resistance") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"System Impedance={value}"]) @@ -202,7 +228,9 @@ def advanced_extraction_params(self) -> bool: @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Advanced Extraction Params={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Advanced Extraction Params={value}"] + ) @property def nb_window_size(self) -> float: @@ -214,7 +242,7 @@ def nb_window_size(self) -> float: return val @nb_window_size.setter - def nb_window_size(self, value : float): + def nb_window_size(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Window Size={value}"]) @property @@ -227,7 +255,7 @@ def bb_smoothing_factor(self) -> float: return val @bb_smoothing_factor.setter - def bb_smoothing_factor(self, value : float): + def bb_smoothing_factor(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Smoothing Factor={value}"]) @property @@ -240,7 +268,7 @@ def nb_detector_threshold(self) -> float: return val @nb_detector_threshold.setter - def nb_detector_threshold(self, value : float): + def nb_detector_threshold(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Detector Threshold={value}"]) class AlgorithmOption(Enum): @@ -251,7 +279,7 @@ class AlgorithmOption(Enum): def algorithm(self) -> AlgorithmOption: """Algorithm "Algorithm used to transform the imported time domain spectrum." - " """ + " """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] return val @@ -271,7 +299,7 @@ def start_time(self) -> float: return val @start_time.setter - def start_time(self, value : float|str): + def start_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Time={value}"]) @@ -279,13 +307,13 @@ def start_time(self, value : float|str): def stop_time(self) -> float: """Stop Time "Final time of the imported time domain spectrum." - " """ + " """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") return val @stop_time.setter - def stop_time(self, value : float|str): + def stop_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Time={value}"]) @@ -300,7 +328,7 @@ def max_frequency(self) -> float: return val @max_frequency.setter - def max_frequency(self, value : float|str): + def max_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Frequency={value}"]) @@ -319,7 +347,7 @@ class WindowTypeOption(Enum): def window_type(self) -> WindowTypeOption: """Window Type "Windowing scheme used for importing time domain spectrum." - " """ + " """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] return val @@ -338,7 +366,7 @@ def kaiser_parameter(self) -> float: return val @kaiser_parameter.setter - def kaiser_parameter(self, value : float): + def kaiser_parameter(self, value: float): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Kaiser Parameter={value}"]) @property @@ -365,7 +393,7 @@ def data_rate(self) -> float: return val @data_rate.setter - def data_rate(self, value : float|str): + def data_rate(self, value: float | str): value = self._convert_to_internal_units(value, "Data Rate") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Rate={value}"]) @@ -419,7 +447,6 @@ def delay_skew(self) -> float: return val @delay_skew.setter - def delay_skew(self, value : float|str): + def delay_skew(self, value: float | str): value = self._convert_to_internal_units(value, "Time") self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Delay Skew={value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index bd6f8b1de0e..7f7a748aedf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,3 +1,27 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from .Amplifier import Amplifier from .AntennaNode import AntennaNode from .AntennaPassband import AntennaPassband @@ -33,38 +57,6 @@ from .ProfileTraceNode import ProfileTraceNode from .PropagationLossCouplingNode import PropagationLossCouplingNode from .RadioNode import RadioNode -from .ResultPlotNode import ResultPlotNode -from .RfSystemGroup import RfSystemGroup -from .RxMeasNode import RxMeasNode -from .RxMixerProductNode import RxMixerProductNode -from .RxSaturationNode import RxSaturationNode -from .RxSelectivityNode import RxSelectivityNode -from .RxSpurNode import RxSpurNode -from .RxSusceptibilityProfNode import RxSusceptibilityProfNode -from .SamplingNode import SamplingNode -from .SceneGroupNode import SceneGroupNode -from .SelectivityTraceNode import SelectivityTraceNode -from .SolutionCouplingNode import SolutionCouplingNode -from .SolutionsNode import SolutionsNode -from .SpurTraceNode import SpurTraceNode -from .TR_Switch import TR_Switch -from .TRSwitchTraceNode import TRSwitchTraceNode -from .Terminator import Terminator -from .TestNoiseTraceNode import TestNoiseTraceNode -from .TopLevelSimulation import TopLevelSimulation -from .TouchstoneCouplingNode import TouchstoneCouplingNode -from .TunableTraceNode import TunableTraceNode -from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode -from .TwoToneTraceNode import TwoToneTraceNode -from .TxBbEmissionNode import TxBbEmissionNode -from .TxHarmonicNode import TxHarmonicNode -from .TxMeasNode import TxMeasNode -from .TxNbEmissionNode import TxNbEmissionNode -from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode -from .TxSpectralProfNode import TxSpectralProfNode -from .TxSpurNode import TxSpurNode -from .WalfischCouplingNode import WalfischCouplingNode -from .Waveform import Waveform from .ReadOnlyAmplifier import ReadOnlyAmplifier from .ReadOnlyAntennaNode import ReadOnlyAntennaNode from .ReadOnlyAntennaPassband import ReadOnlyAntennaPassband @@ -113,121 +105,153 @@ from .ReadOnlyTxSpurNode import ReadOnlyTxSpurNode from .ReadOnlyWalfischCouplingNode import ReadOnlyWalfischCouplingNode from .ReadOnlyWaveform import ReadOnlyWaveform +from .ResultPlotNode import ResultPlotNode +from .RfSystemGroup import RfSystemGroup +from .RxMeasNode import RxMeasNode +from .RxMixerProductNode import RxMixerProductNode +from .RxSaturationNode import RxSaturationNode +from .RxSelectivityNode import RxSelectivityNode +from .RxSpurNode import RxSpurNode +from .RxSusceptibilityProfNode import RxSusceptibilityProfNode +from .SamplingNode import SamplingNode +from .SceneGroupNode import SceneGroupNode +from .SelectivityTraceNode import SelectivityTraceNode +from .SolutionCouplingNode import SolutionCouplingNode +from .SolutionsNode import SolutionsNode +from .SpurTraceNode import SpurTraceNode +from .TRSwitchTraceNode import TRSwitchTraceNode +from .TR_Switch import TR_Switch +from .Terminator import Terminator +from .TestNoiseTraceNode import TestNoiseTraceNode +from .TopLevelSimulation import TopLevelSimulation +from .TouchstoneCouplingNode import TouchstoneCouplingNode +from .TunableTraceNode import TunableTraceNode +from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode +from .TwoToneTraceNode import TwoToneTraceNode +from .TxBbEmissionNode import TxBbEmissionNode +from .TxHarmonicNode import TxHarmonicNode +from .TxMeasNode import TxMeasNode +from .TxNbEmissionNode import TxNbEmissionNode +from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode +from .TxSpectralProfNode import TxSpectralProfNode +from .TxSpurNode import TxSpurNode +from .WalfischCouplingNode import WalfischCouplingNode +from .Waveform import Waveform __all__ = [ - 'Amplifier', - 'AntennaNode', - 'AntennaPassband', - 'Band', - 'BandFolder', - 'BandTraceNode', - 'CADNode', - 'Cable', - 'CategoriesViewNode', - 'Circulator', - 'CouplingLinkNode', - 'CouplingTraceNode', - 'CouplingsNode', - 'CustomCouplingNode', - 'EmiPlotMarkerNode', - 'EmitSceneNode', - 'ErcegCouplingNode', - 'Filter', - 'FiveGChannelModel', - 'HataCouplingNode', - 'IndoorPropagationCouplingNode', - 'Isolator', - 'LogDistanceCouplingNode', - 'MPlexBandTraceNode', - 'Multiplexer', - 'MultiplexerBand', - 'OutboardTraceNode', - 'ParametricCouplingTraceNode', - 'PlotMarkerNode', - 'PlotNode', - 'PowerDivider', - 'PowerTraceNode', - 'ProfileTraceNode', - 'PropagationLossCouplingNode', - 'RadioNode', - 'ResultPlotNode', - 'RfSystemGroup', - 'RxMeasNode', - 'RxMixerProductNode', - 'RxSaturationNode', - 'RxSelectivityNode', - 'RxSpurNode', - 'RxSusceptibilityProfNode', - 'SamplingNode', - 'SceneGroupNode', - 'SelectivityTraceNode', - 'SolutionCouplingNode', - 'SolutionsNode', - 'SpurTraceNode', - 'TR_Switch', - 'TRSwitchTraceNode', - 'Terminator', - 'TestNoiseTraceNode', - 'TopLevelSimulation', - 'TouchstoneCouplingNode', - 'TunableTraceNode', - 'TwoRayPathLossCouplingNode', - 'TwoToneTraceNode', - 'TxBbEmissionNode', - 'TxHarmonicNode', - 'TxMeasNode', - 'TxNbEmissionNode', - 'TxSpectralProfEmitterNode', - 'TxSpectralProfNode', - 'TxSpurNode', - 'WalfischCouplingNode', - 'Waveform', - 'ReadOnlyAmplifier', - 'ReadOnlyAntennaNode', - 'ReadOnlyAntennaPassband', - 'ReadOnlyBand', - 'ReadOnlyBandFolder', - 'ReadOnlyCADNode', - 'ReadOnlyCable', - 'ReadOnlyCirculator', - 'ReadOnlyCouplingLinkNode', - 'ReadOnlyCouplingsNode', - 'ReadOnlyCustomCouplingNode', - 'ReadOnlyEmitSceneNode', - 'ReadOnlyErcegCouplingNode', - 'ReadOnlyFilter', - 'ReadOnlyFiveGChannelModel', - 'ReadOnlyHataCouplingNode', - 'ReadOnlyIndoorPropagationCouplingNode', - 'ReadOnlyIsolator', - 'ReadOnlyLogDistanceCouplingNode', - 'ReadOnlyMultiplexer', - 'ReadOnlyMultiplexerBand', - 'ReadOnlyPowerDivider', - 'ReadOnlyPropagationLossCouplingNode', - 'ReadOnlyRadioNode', - 'ReadOnlyRfSystemGroup', - 'ReadOnlyRxMeasNode', - 'ReadOnlyRxMixerProductNode', - 'ReadOnlyRxSaturationNode', - 'ReadOnlyRxSelectivityNode', - 'ReadOnlyRxSpurNode', - 'ReadOnlyRxSusceptibilityProfNode', - 'ReadOnlySamplingNode', - 'ReadOnlySceneGroupNode', - 'ReadOnlySolutionCouplingNode', - 'ReadOnlySolutionsNode', - 'ReadOnlyTR_Switch', - 'ReadOnlyTerminator', - 'ReadOnlyTouchstoneCouplingNode', - 'ReadOnlyTwoRayPathLossCouplingNode', - 'ReadOnlyTxBbEmissionNode', - 'ReadOnlyTxHarmonicNode', - 'ReadOnlyTxMeasNode', - 'ReadOnlyTxNbEmissionNode', - 'ReadOnlyTxSpectralProfEmitterNode', - 'ReadOnlyTxSpectralProfNode', - 'ReadOnlyTxSpurNode', - 'ReadOnlyWalfischCouplingNode', - 'ReadOnlyWaveform', + "Amplifier", + "AntennaNode", + "AntennaPassband", + "Band", + "BandFolder", + "BandTraceNode", + "CADNode", + "Cable", + "CategoriesViewNode", + "Circulator", + "CouplingLinkNode", + "CouplingTraceNode", + "CouplingsNode", + "CustomCouplingNode", + "EmiPlotMarkerNode", + "EmitSceneNode", + "ErcegCouplingNode", + "Filter", + "FiveGChannelModel", + "HataCouplingNode", + "IndoorPropagationCouplingNode", + "Isolator", + "LogDistanceCouplingNode", + "MPlexBandTraceNode", + "Multiplexer", + "MultiplexerBand", + "OutboardTraceNode", + "ParametricCouplingTraceNode", + "PlotMarkerNode", + "PlotNode", + "PowerDivider", + "PowerTraceNode", + "ProfileTraceNode", + "PropagationLossCouplingNode", + "RadioNode", + "ResultPlotNode", + "RfSystemGroup", + "RxMeasNode", + "RxMixerProductNode", + "RxSaturationNode", + "RxSelectivityNode", + "RxSpurNode", + "RxSusceptibilityProfNode", + "SamplingNode", + "SceneGroupNode", + "SelectivityTraceNode", + "SolutionCouplingNode", + "SolutionsNode", + "SpurTraceNode", + "TR_Switch", + "TRSwitchTraceNode", + "Terminator", + "TestNoiseTraceNode", + "TopLevelSimulation", + "TouchstoneCouplingNode", + "TunableTraceNode", + "TwoRayPathLossCouplingNode", + "TwoToneTraceNode", + "TxBbEmissionNode", + "TxHarmonicNode", + "TxMeasNode", + "TxNbEmissionNode", + "TxSpectralProfEmitterNode", + "TxSpectralProfNode", + "TxSpurNode", + "WalfischCouplingNode", + "Waveform", + "ReadOnlyAmplifier", + "ReadOnlyAntennaNode", + "ReadOnlyAntennaPassband", + "ReadOnlyBand", + "ReadOnlyBandFolder", + "ReadOnlyCADNode", + "ReadOnlyCable", + "ReadOnlyCirculator", + "ReadOnlyCouplingLinkNode", + "ReadOnlyCouplingsNode", + "ReadOnlyCustomCouplingNode", + "ReadOnlyEmitSceneNode", + "ReadOnlyErcegCouplingNode", + "ReadOnlyFilter", + "ReadOnlyFiveGChannelModel", + "ReadOnlyHataCouplingNode", + "ReadOnlyIndoorPropagationCouplingNode", + "ReadOnlyIsolator", + "ReadOnlyLogDistanceCouplingNode", + "ReadOnlyMultiplexer", + "ReadOnlyMultiplexerBand", + "ReadOnlyPowerDivider", + "ReadOnlyPropagationLossCouplingNode", + "ReadOnlyRadioNode", + "ReadOnlyRfSystemGroup", + "ReadOnlyRxMeasNode", + "ReadOnlyRxMixerProductNode", + "ReadOnlyRxSaturationNode", + "ReadOnlyRxSelectivityNode", + "ReadOnlyRxSpurNode", + "ReadOnlyRxSusceptibilityProfNode", + "ReadOnlySamplingNode", + "ReadOnlySceneGroupNode", + "ReadOnlySolutionCouplingNode", + "ReadOnlySolutionsNode", + "ReadOnlyTR_Switch", + "ReadOnlyTerminator", + "ReadOnlyTouchstoneCouplingNode", + "ReadOnlyTwoRayPathLossCouplingNode", + "ReadOnlyTxBbEmissionNode", + "ReadOnlyTxHarmonicNode", + "ReadOnlyTxMeasNode", + "ReadOnlyTxNbEmissionNode", + "ReadOnlyTxSpectralProfEmitterNode", + "ReadOnlyTxSpectralProfNode", + "ReadOnlyTxSpurNode", + "ReadOnlyWalfischCouplingNode", + "ReadOnlyWaveform", ] diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index 1c1100a782d..388a0cb7ea5 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -31,7 +31,9 @@ from ansys.aedt.core.emit_core.emit_constants import TxRxMode from ansys.aedt.core.emit_core.nodes import generated from ansys.aedt.core.emit_core.nodes.EmitNode import EmitNode -from ansys.aedt.core.emit_core.nodes.generated import ResultPlotNode, CouplingsNode, EmitSceneNode +from ansys.aedt.core.emit_core.nodes.generated import CouplingsNode +from ansys.aedt.core.emit_core.nodes.generated import EmitSceneNode +from ansys.aedt.core.emit_core.nodes.generated import ResultPlotNode from ansys.aedt.core.generic.general_methods import pyaedt_function_handler From ca0c268b21a2a55e5f64656ebc5ad1184851a5b7 Mon Sep 17 00:00:00 2001 From: jsalant Date: Wed, 23 Apr 2025 14:49:12 -0400 Subject: [PATCH 35/86] add enum imports remove SParameter class (doesn't exist in aedt) --- .../nodes/generated/EmiPlotMarkerNode.py | 1 + .../nodes/generated/ReadOnlySparameter.py | 83 ------------- .../nodes/generated/ReadOnlyTR_Switch.py | 1 + .../emit_core/nodes/generated/Sparameter.py | 116 ------------------ .../emit_core/nodes/generated/TR_Switch.py | 1 + 5 files changed, 3 insertions(+), 199 deletions(-) delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py index 1f2b15f902d..2457895e3ba 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py @@ -1,3 +1,4 @@ +from enum import Enum from ..EmitNode import EmitNode class EmiPlotMarkerNode(EmitNode): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py deleted file mode 100644 index b4d1e3fc24e..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySparameter.py +++ /dev/null @@ -1,83 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import EmitNode - - -class ReadOnlySparameter(EmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = True - EmitNode.__init__(self, oDesign, result_id, node_id) - - @property - def file(self) -> str: - """File - "S-Parameter file defining the component." - "Value should be a full file path." - """ - val = self._get_property("File") - return val - - @property - def noise_temperature(self) -> float: - """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." - """ - val = self._get_property("Noise Temperature") - return val - - @property - def notes(self) -> str: - """Notes - "Expand to view/edit notes stored with the project." - " """ - val = self._get_property("Notes") - return val - - @property - def radio_side_ports(self): - """Radio Side Ports - "Assigns the child port nodes to the multiplexers ports." - "A list of values." - " """ - val = self._get_property("Radio Side Ports") - return val - - @property - def antenna_side_ports(self): - """Antenna Side Ports - "Assigns the child port nodes to the multiplexers ports." - "A list of values." - " """ - val = self._get_property("Antenna Side Ports") - return val - - @property - def warnings(self) -> str: - """Warnings - "Warning(s) for this node." - " """ - val = self._get_property("Warnings") - return val diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py index f425ab74572..5914b0184be 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -1,3 +1,4 @@ +from enum import Enum from ..EmitNode import EmitNode class ReadOnlyTR_Switch(EmitNode): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py deleted file mode 100644 index 9bfaff2d2ca..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Sparameter.py +++ /dev/null @@ -1,116 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import EmitNode - - -class Sparameter(EmitNode): - def __init__(self, oDesign, result_id, node_id): - self._is_component = True - EmitNode.__init__(self, oDesign, result_id, node_id) - - def rename(self, new_name): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def file(self) -> str: - """File - "S-Parameter file defining the component." - "Value should be a full file path." - """ - val = self._get_property('File') - return val - - @file.setter - def file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['File=' + value]) - - @property - def noise_temperature(self) -> float: - """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." - """ - val = self._get_property('Noise Temperature') - return val - - @noise_temperature.setter - def noise_temperature(self, value : float) - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Noise Temperature=' + value]) - - @property - def notes(self) -> str: - """Notes - "Expand to view/edit notes stored with the project." - " """ - val = self._get_property('Notes') - return val - - @notes.setter - def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Notes=' + value]) - - @property - def radio_side_ports(self): - """Radio Side Ports - "Assigns the child port nodes to the multiplexers ports." - "A list of values." - " """ - val = self._get_property('Radio Side Ports') - return val - - @radio_side_ports.setter - def radio_side_ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Radio Side Ports=' + value]) - - @property - def antenna_side_ports(self): - """Antenna Side Ports - "Assigns the child port nodes to the multiplexers ports." - "A list of values." - " """ - val = self._get_property('Antenna Side Ports') - return val - - @antenna_side_ports.setter - def antenna_side_ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id,self._node_id,['Antenna Side Ports=' + value]) - - @property - def warnings(self) -> str: - """Warnings - "Warning(s) for this node." - " """ - val = self._get_property('Warnings') - return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index 0684853bf1f..cea99a2a972 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -1,3 +1,4 @@ +from enum import Enum from ..EmitNode import EmitNode class TR_Switch(EmitNode): From 420ed94ae632e29e4f3dc5fefaab540ca0cbca1f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 23 Apr 2025 18:56:43 +0000 Subject: [PATCH 36/86] CHORE: Auto fixes from pre-commit hooks --- .../aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py | 1 + .../aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py | 1 + src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py | 1 + 3 files changed, 3 insertions(+) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py index 9b5bb954af8..5c333704dd9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py @@ -23,6 +23,7 @@ # SOFTWARE. from enum import Enum + from ..EmitNode import EmitNode diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py index 032c8a2409a..bf6da34921a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -23,6 +23,7 @@ # SOFTWARE. from enum import Enum + from ..EmitNode import EmitNode diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index 33401b99dff..ef75ba36066 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -23,6 +23,7 @@ # SOFTWARE. from enum import Enum + from ..EmitNode import EmitNode From b21517c49db2301f3fde933b232120a4cdb63d00 Mon Sep 17 00:00:00 2001 From: jsalant Date: Wed, 23 Apr 2025 15:12:00 -0400 Subject: [PATCH 37/86] use pyaedt decorator use pyaedt decorator for version check instead of our own --- .../aedt/core/emit_core/results/revision.py | 45 ++++++++++--------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index 388a0cb7ea5..b5c46107b27 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -35,6 +35,7 @@ from ansys.aedt.core.emit_core.nodes.generated import EmitSceneNode from ansys.aedt.core.emit_core.nodes.generated import ResultPlotNode from ansys.aedt.core.generic.general_methods import pyaedt_function_handler +from ansys.aedt.core.internal.checks import min_aedt_version class Revision: @@ -826,7 +827,7 @@ def get_license_session(self): engine = self.emit_project._emit_api.get_engine() return engine.license_session() - def error_if_below_aedt_version(self, version: int): + def error_if_below_aedt_version(self, version : int): def decorator(func): def wrapper(self, *args, **kwargs): if self.aedt_version > version: @@ -840,7 +841,7 @@ def wrapper(self, *args, **kwargs): return decorator @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.1") def _get_all_component_names(self) -> list[str]: """Gets all component names from this revision. @@ -857,7 +858,7 @@ def _get_all_component_names(self) -> list[str]: return component_names @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.1") def _get_all_top_level_node_ids(self) -> list[int]: """Gets all top level node ids from this revision. @@ -901,7 +902,7 @@ def _get_all_top_level_node_ids(self) -> list[int]: return top_level_node_ids @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.1") def get_all_top_level_nodes(self) -> list[EmitNode]: """Gets all top level nodes from this revision. @@ -919,7 +920,7 @@ def get_all_top_level_nodes(self) -> list[EmitNode]: return top_level_nodes @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.1") def get_all_component_nodes(self) -> list[EmitNode]: """Gets all component nodes from this revision. @@ -938,7 +939,7 @@ def get_all_component_nodes(self) -> list[EmitNode]: return component_nodes @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.1") def _get_all_node_ids(self) -> list[int]: """Gets all node ids from this revision. @@ -976,7 +977,7 @@ def _get_all_node_ids(self) -> list[int]: return node_ids @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.1") def _get_node(self, node_id: int) -> EmitNode: """Gets a node for this revision with the given id. @@ -1009,7 +1010,7 @@ def _get_node(self, node_id: int) -> EmitNode: return node @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.1") def get_all_nodes(self) -> list[EmitNode]: """Gets all nodes for this revision. @@ -1028,7 +1029,7 @@ def get_all_nodes(self) -> list[EmitNode]: # Methods to get specific top level nodes @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.1") def get_scene_node(self) -> EmitSceneNode: """Gets the Scene node for this revision. @@ -1046,7 +1047,7 @@ def get_scene_node(self) -> EmitSceneNode: return scene_node @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.1") def get_coupling_data_node(self) -> CouplingsNode: """Gets the Coupling Data node for this revision. @@ -1064,7 +1065,7 @@ def get_coupling_data_node(self) -> CouplingsNode: return coupling_data_node @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.1") def get_simulation_node(self) -> EmitNode: """Gets the Simulation node for this revision. @@ -1082,7 +1083,7 @@ def get_simulation_node(self) -> EmitNode: return simulation_node @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.1") def get_preferences_node(self) -> EmitNode: """Gets the Preferences node for this revision. @@ -1100,7 +1101,7 @@ def get_preferences_node(self) -> EmitNode: return preferences_node @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.1") def get_rf_systems_node(self) -> EmitNode: """Gets the RF Systems node for this revision. @@ -1118,7 +1119,7 @@ def get_rf_systems_node(self) -> EmitNode: return rf_systems_node @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.1") def get_result_plot_node(self) -> ResultPlotNode: """Gets the Result Plot node for this revision. @@ -1136,7 +1137,7 @@ def get_result_plot_node(self) -> ResultPlotNode: return result_plot_node @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.1") def get_result_categorization_node(self) -> EmitNode: """Gets the Result Categorization node for this revision. @@ -1156,7 +1157,7 @@ def get_result_categorization_node(self) -> EmitNode: return result_categorization_node @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.1") def get_project_tree_node(self) -> EmitNode: """Gets the Project Tree node for this revision. @@ -1174,7 +1175,7 @@ def get_project_tree_node(self) -> EmitNode: return project_tree_node @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.1") def get_properties_node(self) -> EmitNode: """Gets the Properties node for this revision. @@ -1192,7 +1193,7 @@ def get_properties_node(self) -> EmitNode: return properties_node @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.1") def get_antenna_coupling_matrix_node(self) -> EmitNode: """Gets the Antenna Coupling Matrix node for this revision. @@ -1212,7 +1213,7 @@ def get_antenna_coupling_matrix_node(self) -> EmitNode: return antenna_coupling_matrix_node @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.1") def get_scenario_matrix_node(self) -> EmitNode: """Gets the Scenario Matrix node for this revision. @@ -1230,7 +1231,7 @@ def get_scenario_matrix_node(self) -> EmitNode: return scenario_matrix_node @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.1") def get_scenario_details_node(self) -> EmitNode: """Gets the Scenario Details node for this revision. @@ -1248,7 +1249,7 @@ def get_scenario_details_node(self) -> EmitNode: return scenario_details_node @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.1") def get_interaction_diagram_node(self) -> EmitNode: """Gets the Interaction Diagram node for this revision. @@ -1268,7 +1269,7 @@ def get_interaction_diagram_node(self) -> EmitNode: return interaction_diagram_node @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.1") def _get_disconnected_radios(self) -> list[str]: """Gets a list of disconnected radios for this revision. From f86bdd1be70a70bc9c2bd6d25f0ad00bb0977ebc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 23 Apr 2025 19:15:39 +0000 Subject: [PATCH 38/86] CHORE: Auto fixes from pre-commit hooks --- src/ansys/aedt/core/emit_core/results/revision.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index b5c46107b27..db3f7aeea17 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -827,7 +827,7 @@ def get_license_session(self): engine = self.emit_project._emit_api.get_engine() return engine.license_session() - def error_if_below_aedt_version(self, version : int): + def error_if_below_aedt_version(self, version: int): def decorator(func): def wrapper(self, *args, **kwargs): if self.aedt_version > version: From b28c6675ecb052d6a5f9d486c9bda6e4251c5c18 Mon Sep 17 00:00:00 2001 From: jsalant Date: Wed, 23 Apr 2025 16:04:49 -0400 Subject: [PATCH 39/86] style fixes more style fixes fix some duplicate property names --- .../emit_core/nodes/generated/Amplifier.py | 135 +++--- .../emit_core/nodes/generated/AntennaNode.py | 457 ++++++++++-------- .../nodes/generated/AntennaPassband.py | 84 ++-- .../core/emit_core/nodes/generated/Band.py | 311 ++++++------ .../emit_core/nodes/generated/BandFolder.py | 26 +- .../nodes/generated/BandTraceNode.py | 127 ++--- .../core/emit_core/nodes/generated/CADNode.py | 301 +++++++----- .../core/emit_core/nodes/generated/Cable.py | 101 ++-- .../nodes/generated/CategoriesViewNode.py | 26 +- .../emit_core/nodes/generated/Circulator.py | 137 +++--- .../nodes/generated/CouplingLinkNode.py | 40 +- .../nodes/generated/CouplingTraceNode.py | 171 ++++--- .../nodes/generated/CouplingsNode.py | 48 +- .../nodes/generated/CustomCouplingNode.py | 76 ++- .../nodes/generated/EmiPlotMarkerNode.py | 195 ++++---- .../nodes/generated/EmitSceneNode.py | 55 +-- .../nodes/generated/ErcegCouplingNode.py | 189 ++++---- .../core/emit_core/nodes/generated/Filter.py | 217 +++++---- .../nodes/generated/FiveGChannelModel.py | 209 ++++---- .../nodes/generated/HataCouplingNode.py | 189 ++++---- .../IndoorPropagationCouplingNode.py | 203 ++++---- .../emit_core/nodes/generated/Isolator.py | 137 +++--- .../generated/LogDistanceCouplingNode.py | 197 ++++---- .../nodes/generated/MPlexBandTraceNode.py | 115 ++--- .../emit_core/nodes/generated/Multiplexer.py | 83 ++-- .../nodes/generated/MultiplexerBand.py | 125 +++-- .../nodes/generated/OutboardTraceNode.py | 119 ++--- .../generated/ParametricCouplingTraceNode.py | 123 ++--- .../nodes/generated/PlotMarkerNode.py | 213 ++++---- .../emit_core/nodes/generated/PlotNode.py | 237 +++++---- .../emit_core/nodes/generated/PowerDivider.py | 139 +++--- .../nodes/generated/PowerTraceNode.py | 115 ++--- .../nodes/generated/ProfileTraceNode.py | 107 ++-- .../generated/PropagationLossCouplingNode.py | 181 +++---- .../emit_core/nodes/generated/RadioNode.py | 42 +- .../nodes/generated/ReadOnlyAmplifier.py | 59 +-- .../nodes/generated/ReadOnlyAntennaNode.py | 201 ++++---- .../generated/ReadOnlyAntennaPassband.py | 42 +- .../emit_core/nodes/generated/ReadOnlyBand.py | 123 ++--- .../nodes/generated/ReadOnlyBandFolder.py | 26 +- .../nodes/generated/ReadOnlyCADNode.py | 121 ++--- .../nodes/generated/ReadOnlyCable.py | 53 +- .../nodes/generated/ReadOnlyCirculator.py | 65 +-- .../generated/ReadOnlyCouplingLinkNode.py | 32 +- .../nodes/generated/ReadOnlyCouplingsNode.py | 34 +- .../generated/ReadOnlyCustomCouplingNode.py | 50 +- .../nodes/generated/ReadOnlyEmitSceneNode.py | 39 +- .../generated/ReadOnlyErcegCouplingNode.py | 79 ++- .../nodes/generated/ReadOnlyFilter.py | 91 ++-- .../generated/ReadOnlyFiveGChannelModel.py | 87 ++-- .../generated/ReadOnlyHataCouplingNode.py | 79 ++- .../ReadOnlyIndoorPropagationCouplingNode.py | 89 ++-- .../nodes/generated/ReadOnlyIsolator.py | 65 +-- .../ReadOnlyLogDistanceCouplingNode.py | 81 ++-- .../nodes/generated/ReadOnlyMultiplexer.py | 53 +- .../generated/ReadOnlyMultiplexerBand.py | 57 +-- .../nodes/generated/ReadOnlyPowerDivider.py | 65 +-- .../ReadOnlyPropagationLossCouplingNode.py | 75 +-- .../nodes/generated/ReadOnlyRadioNode.py | 38 +- .../nodes/generated/ReadOnlyRfSystemGroup.py | 30 +- .../nodes/generated/ReadOnlyRxMeasNode.py | 75 +-- .../generated/ReadOnlyRxMixerProductNode.py | 69 +-- .../generated/ReadOnlyRxSaturationNode.py | 26 +- .../generated/ReadOnlyRxSelectivityNode.py | 28 +- .../nodes/generated/ReadOnlyRxSpurNode.py | 39 +- .../ReadOnlyRxSusceptibilityProfNode.py | 65 +-- .../nodes/generated/ReadOnlySamplingNode.py | 57 +-- .../nodes/generated/ReadOnlySceneGroupNode.py | 49 +- .../generated/ReadOnlySolutionCouplingNode.py | 36 +- .../nodes/generated/ReadOnlySolutionsNode.py | 28 +- .../nodes/generated/ReadOnlyTR_Switch.py | 61 +-- .../nodes/generated/ReadOnlyTerminator.py | 49 +- .../ReadOnlyTouchstoneCouplingNode.py | 52 +- .../ReadOnlyTwoRayPathLossCouplingNode.py | 79 ++- .../generated/ReadOnlyTxBbEmissionNode.py | 37 +- .../nodes/generated/ReadOnlyTxHarmonicNode.py | 31 +- .../nodes/generated/ReadOnlyTxMeasNode.py | 42 +- .../generated/ReadOnlyTxNbEmissionNode.py | 35 +- .../ReadOnlyTxSpectralProfEmitterNode.py | 52 +- .../generated/ReadOnlyTxSpectralProfNode.py | 81 ++-- .../nodes/generated/ReadOnlyTxSpurNode.py | 39 +- .../generated/ReadOnlyWalfischCouplingNode.py | 91 ++-- .../nodes/generated/ReadOnlyWaveform.py | 97 ++-- .../nodes/generated/ResultPlotNode.py | 243 +++++----- .../nodes/generated/RfSystemGroup.py | 40 +- .../emit_core/nodes/generated/RxMeasNode.py | 171 ++++--- .../nodes/generated/RxMixerProductNode.py | 165 ++++--- .../nodes/generated/RxSaturationNode.py | 30 +- .../nodes/generated/RxSelectivityNode.py | 36 +- .../emit_core/nodes/generated/RxSpurNode.py | 47 +- .../generated/RxSusceptibilityProfNode.py | 151 +++--- .../emit_core/nodes/generated/SamplingNode.py | 81 ++-- .../nodes/generated/SceneGroupNode.py | 87 ++-- .../nodes/generated/SelectivityTraceNode.py | 107 ++-- .../nodes/generated/SolutionCouplingNode.py | 52 +- .../nodes/generated/SolutionsNode.py | 32 +- .../nodes/generated/SpurTraceNode.py | 119 ++--- .../nodes/generated/TRSwitchTraceNode.py | 119 ++--- .../emit_core/nodes/generated/TR_Switch.py | 135 +++--- .../emit_core/nodes/generated/Terminator.py | 77 ++- .../nodes/generated/TestNoiseTraceNode.py | 175 ++++--- .../nodes/generated/TopLevelSimulation.py | 26 +- .../nodes/generated/TouchstoneCouplingNode.py | 84 ++-- .../nodes/generated/TunableTraceNode.py | 129 ++--- .../generated/TwoRayPathLossCouplingNode.py | 195 ++++---- .../nodes/generated/TwoToneTraceNode.py | 175 ++++--- .../nodes/generated/TxBbEmissionNode.py | 51 +- .../nodes/generated/TxHarmonicNode.py | 41 +- .../emit_core/nodes/generated/TxMeasNode.py | 66 +-- .../nodes/generated/TxNbEmissionNode.py | 51 +- .../generated/TxSpectralProfEmitterNode.py | 118 +++-- .../nodes/generated/TxSpectralProfNode.py | 211 ++++---- .../emit_core/nodes/generated/TxSpurNode.py | 47 +- .../nodes/generated/WalfischCouplingNode.py | 231 +++++---- .../emit_core/nodes/generated/Waveform.py | 241 +++++---- .../emit_core/nodes/generated/__init__.py | 318 ++++++------ 116 files changed, 5419 insertions(+), 6614 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index 114725e04eb..769659be39c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Amplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -51,11 +25,13 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -64,23 +40,27 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class AmplifierTypeOption(Enum): TRANSMIT_AMPLIFIER = "Transmit Amplifier" @@ -90,14 +70,16 @@ class AmplifierTypeOption(Enum): def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type "Configures the amplifier as a Tx or Rx amplifier." - " """ + " """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] - return val + return val # type: ignore @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Type={value.value}"]) @property def gain(self) -> float: @@ -106,11 +88,13 @@ def gain(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Gain") - return val + return val # type: ignore @gain.setter - def gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Gain={value}"]) + def gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Gain={value}"]) @property def center_frequency(self) -> float: @@ -120,12 +104,14 @@ def center_frequency(self) -> float: """ val = self._get_property("Center Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @center_frequency.setter - def center_frequency(self, value: float | str): + def center_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Center Frequency={value}"]) @property def bandwidth(self) -> float: @@ -135,12 +121,14 @@ def bandwidth(self) -> float: """ val = self._get_property("Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @bandwidth.setter - def bandwidth(self, value: float | str): + def bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth={value}"]) @property def noise_figure(self) -> float: @@ -149,11 +137,13 @@ def noise_figure(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Noise Figure") - return val + return val # type: ignore @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def saturation_level(self) -> float: @@ -163,12 +153,14 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @saturation_level.setter - def saturation_level(self, value: float | str): + def saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Saturation Level={value}"]) @property def p1_db_point_ref_input(self) -> float: @@ -178,12 +170,14 @@ def p1_db_point_ref_input(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value: float | str): + def p1_db_point_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input={value}"]) @property def ip3_ref_input(self) -> float: @@ -193,12 +187,14 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def shape_factor(self) -> float: @@ -207,11 +203,13 @@ def shape_factor(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("Shape Factor") - return val + return val # type: ignore @shape_factor.setter - def shape_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) + def shape_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Shape Factor={value}"]) @property def reverse_isolation(self) -> float: @@ -220,11 +218,13 @@ def reverse_isolation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Reverse Isolation") - return val + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -233,8 +233,11 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py index 87dc265d454..791a46aa100 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class AntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -57,13 +31,15 @@ def delete(self): def tags(self) -> str: """Tags "Space delimited list of tags for coupling selections." - " """ + " """ val = self._get_property("Tags") - return val + return val # type: ignore @tags.setter def tags(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tags={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tags={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -72,13 +48,13 @@ def show_relative_coordinates(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Relative Coordinates") - return val + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): @@ -87,11 +63,13 @@ def position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Position") - return val + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): @@ -100,11 +78,13 @@ def relative_position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Relative Position") - return val + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -114,14 +94,16 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -130,11 +112,13 @@ def orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Orientation") - return val + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): @@ -143,11 +127,13 @@ def relative_orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Relative Orientation") - return val + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def position_defined(self) -> bool: @@ -156,11 +142,13 @@ def position_defined(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Position Defined") - return val + return val # type: ignore @position_defined.setter def position_defined(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Defined={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position Defined={value}"]) @property def antenna_temperature(self) -> float: @@ -169,23 +157,27 @@ def antenna_temperature(self) -> float: "Value should be between 0 and 100000." """ val = self._get_property("Antenna Temperature") - return val + return val # type: ignore @antenna_temperature.setter - def antenna_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna Temperature={value}"]) + def antenna_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna Temperature={value}"]) @property def type(self): """Type "Defines the type of antenna." - " """ + " """ val = self._get_property("Type") - return val + return val # type: ignore @type.setter def type(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value}"]) @property def antenna_file(self) -> str: @@ -193,11 +185,13 @@ def antenna_file(self) -> str: "Value should be a full file path." """ val = self._get_property("Antenna File") - return val + return val # type: ignore @antenna_file.setter def antenna_file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna File={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna File={value}"]) @property def project_name(self) -> str: @@ -206,11 +200,13 @@ def project_name(self) -> str: "Value should be a full file path." """ val = self._get_property("Project Name") - return val + return val # type: ignore @project_name.setter def project_name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Project Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Project Name={value}"]) @property def peak_gain(self) -> float: @@ -219,11 +215,13 @@ def peak_gain(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Peak Gain") - return val + return val # type: ignore @peak_gain.setter - def peak_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Gain={value}"]) + def peak_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Peak Gain={value}"]) class BoresightOption(Enum): XAXIS = "+X Axis" @@ -234,14 +232,16 @@ class BoresightOption(Enum): def boresight(self) -> BoresightOption: """Boresight "Select peak beam direction in local coordinates." - " """ + " """ val = self._get_property("Boresight") val = self.BoresightOption[val] - return val + return val # type: ignore @boresight.setter def boresight(self, value: BoresightOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Boresight={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Boresight={value.value}"]) @property def vertical_beamwidth(self) -> float: @@ -250,11 +250,13 @@ def vertical_beamwidth(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("Vertical Beamwidth") - return val + return val # type: ignore @vertical_beamwidth.setter - def vertical_beamwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Beamwidth={value}"]) + def vertical_beamwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Beamwidth={value}"]) @property def horizontal_beamwidth(self) -> float: @@ -263,11 +265,13 @@ def horizontal_beamwidth(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("Horizontal Beamwidth") - return val + return val # type: ignore @horizontal_beamwidth.setter - def horizontal_beamwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Beamwidth={value}"]) + def horizontal_beamwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Beamwidth={value}"]) @property def extra_sidelobe(self) -> bool: @@ -276,11 +280,13 @@ def extra_sidelobe(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Extra Sidelobe") - return val + return val # type: ignore @extra_sidelobe.setter def extra_sidelobe(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Extra Sidelobe={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Extra Sidelobe={value}"]) @property def first_sidelobe_level(self) -> float: @@ -289,11 +295,13 @@ def first_sidelobe_level(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("First Sidelobe Level") - return val + return val # type: ignore @first_sidelobe_level.setter - def first_sidelobe_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Level={value}"]) + def first_sidelobe_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Level={value}"]) @property def first_sidelobe_vert_bw(self) -> float: @@ -302,11 +310,13 @@ def first_sidelobe_vert_bw(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("First Sidelobe Vert. BW") - return val + return val # type: ignore @first_sidelobe_vert_bw.setter - def first_sidelobe_vert_bw(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Vert. BW={value}"]) + def first_sidelobe_vert_bw(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Vert. BW={value}"]) @property def first_sidelobe_hor_bw(self) -> float: @@ -315,11 +325,13 @@ def first_sidelobe_hor_bw(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("First Sidelobe Hor. BW") - return val + return val # type: ignore @first_sidelobe_hor_bw.setter - def first_sidelobe_hor_bw(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Hor. BW={value}"]) + def first_sidelobe_hor_bw(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Hor. BW={value}"]) @property def outerbacklobe_level(self) -> float: @@ -328,11 +340,13 @@ def outerbacklobe_level(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Outer/Backlobe Level") - return val + return val # type: ignore @outerbacklobe_level.setter - def outerbacklobe_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Outer/Backlobe Level={value}"]) + def outerbacklobe_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Outer/Backlobe Level={value}"]) @property def resonant_frequency(self) -> float: @@ -342,12 +356,14 @@ def resonant_frequency(self) -> float: """ val = self._get_property("Resonant Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @resonant_frequency.setter - def resonant_frequency(self, value: float | str): + def resonant_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resonant Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Resonant Frequency={value}"]) @property def slot_length(self) -> float: @@ -357,12 +373,14 @@ def slot_length(self) -> float: """ val = self._get_property("Slot Length") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @slot_length.setter - def slot_length(self, value: float | str): + def slot_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Slot Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Slot Length={value}"]) @property def mouth_width(self) -> float: @@ -372,12 +390,14 @@ def mouth_width(self) -> float: """ val = self._get_property("Mouth Width") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @mouth_width.setter - def mouth_width(self, value: float | str): + def mouth_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Width={value}"]) @property def mouth_height(self) -> float: @@ -387,12 +407,14 @@ def mouth_height(self) -> float: """ val = self._get_property("Mouth Height") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @mouth_height.setter - def mouth_height(self, value: float | str): + def mouth_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Height={value}"]) @property def waveguide_width(self) -> float: @@ -402,12 +424,14 @@ def waveguide_width(self) -> float: """ val = self._get_property("Waveguide Width") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @waveguide_width.setter - def waveguide_width(self, value: float | str): + def waveguide_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveguide Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Waveguide Width={value}"]) @property def width_flare_half_angle(self) -> float: @@ -416,11 +440,13 @@ def width_flare_half_angle(self) -> float: "Value should be between 1 and 89.9." """ val = self._get_property("Width Flare Half-angle") - return val + return val # type: ignore @width_flare_half_angle.setter - def width_flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width Flare Half-angle={value}"]) + def width_flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Width Flare Half-angle={value}"]) @property def height_flare_half_angle(self) -> float: @@ -429,11 +455,13 @@ def height_flare_half_angle(self) -> float: "Value should be between 1 and 89.9." """ val = self._get_property("Height Flare Half-angle") - return val + return val # type: ignore @height_flare_half_angle.setter - def height_flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height Flare Half-angle={value}"]) + def height_flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Height Flare Half-angle={value}"]) @property def mouth_diameter(self) -> float: @@ -443,12 +471,14 @@ def mouth_diameter(self) -> float: """ val = self._get_property("Mouth Diameter") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @mouth_diameter.setter - def mouth_diameter(self, value: float | str): + def mouth_diameter(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Diameter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Diameter={value}"]) @property def flare_half_angle(self) -> float: @@ -457,11 +487,13 @@ def flare_half_angle(self) -> float: "Value should be between 1 and 89.9." """ val = self._get_property("Flare Half-angle") - return val + return val # type: ignore @flare_half_angle.setter - def flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flare Half-angle={value}"]) + def flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Flare Half-angle={value}"]) @property def vswr(self) -> float: @@ -470,11 +502,13 @@ def vswr(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("VSWR") - return val + return val # type: ignore @vswr.setter - def vswr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) + def vswr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"VSWR={value}"]) class AntennaPolarizationOption(Enum): VERTICAL = "Vertical" @@ -486,16 +520,16 @@ class AntennaPolarizationOption(Enum): def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] - return val + return val # type: ignore @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Antenna Polarization={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna Polarization={value.value}"]) class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" @@ -505,14 +539,16 @@ class CrossDipoleModeOption(Enum): def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode "Choose the Cross Dipole type." - " """ + " """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] - return val + return val # type: ignore @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Cross Dipole Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Cross Dipole Mode={value.value}"]) class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" @@ -522,16 +558,16 @@ class CrossDipolePolarizationOption(Enum): def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] - return val + return val # type: ignore @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Cross Dipole Polarization={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Cross Dipole Polarization={value.value}"]) @property def override_height(self) -> bool: @@ -540,11 +576,13 @@ def override_height(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Override Height") - return val + return val # type: ignore @override_height.setter def override_height(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Override Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Override Height={value}"]) @property def offset_height(self) -> float: @@ -554,12 +592,14 @@ def offset_height(self) -> float: """ val = self._get_property("Offset Height") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @offset_height.setter - def offset_height(self, value: float | str): + def offset_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Offset Height={value}"]) @property def auto_height_offset(self) -> bool: @@ -568,11 +608,13 @@ def auto_height_offset(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Auto Height Offset") - return val + return val # type: ignore @auto_height_offset.setter def auto_height_offset(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Auto Height Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Auto Height Offset={value}"]) @property def conform__adjust_antenna(self) -> bool: @@ -581,11 +623,13 @@ def conform__adjust_antenna(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Conform / Adjust Antenna") - return val + return val # type: ignore @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform / Adjust Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform / Adjust Antenna={value}"]) @property def element_offset(self): @@ -594,11 +638,13 @@ def element_offset(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Element Offset") - return val + return val # type: ignore @element_offset.setter def element_offset(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Element Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Element Offset={value}"]) class ConformtoPlatformOption(Enum): NONE = "None" @@ -609,16 +655,16 @@ class ConformtoPlatformOption(Enum): def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform "Select method of automated conforming applied after Element Offset." - " """ + " """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] - return val + return val # type: ignore @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Conform to Platform={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform to Platform={value.value}"]) class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" @@ -629,14 +675,16 @@ class ReferencePlaneOption(Enum): def reference_plane(self) -> ReferencePlaneOption: """Reference Plane "Select reference plane for determining original element heights." - " """ + " """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] - return val + return val # type: ignore @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reference Plane={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reference Plane={value.value}"]) @property def conform_element_orientation(self) -> bool: @@ -645,13 +693,13 @@ def conform_element_orientation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Conform Element Orientation") - return val + return val # type: ignore @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Conform Element Orientation={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform Element Orientation={value}"]) @property def show_axes(self) -> bool: @@ -660,11 +708,13 @@ def show_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Axes") - return val + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def show_icon(self) -> bool: @@ -673,11 +723,13 @@ def show_icon(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Icon") - return val + return val # type: ignore @show_icon.setter def show_icon(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Icon={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Icon={value}"]) @property def size(self) -> float: @@ -686,11 +738,13 @@ def size(self) -> float: "Value should be between 0.001 and 1." """ val = self._get_property("Size") - return val + return val # type: ignore @size.setter - def size(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Size={value}"]) + def size(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Size={value}"]) @property def color(self): @@ -699,27 +753,29 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def el_sample_interval(self) -> float: """El Sample Interval "Space between elevation-angle samples of pattern." - " """ + " """ val = self._get_property("El Sample Interval") - return val + return val # type: ignore @property def az_sample_interval(self) -> float: """Az Sample Interval "Space between azimuth-angle samples of pattern." - " """ + " """ val = self._get_property("Az Sample Interval") - return val + return val # type: ignore @property def has_frequency_domain(self) -> bool: @@ -728,74 +784,74 @@ def has_frequency_domain(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Has Frequency Domain") - return val + return val # type: ignore @property def frequency_domain(self): """Frequency Domain "Frequency sample(s) defining antenna." - " """ + " """ val = self._get_property("Frequency Domain") - return val + return val # type: ignore @property def number_of_electric_sources(self) -> int: """Number of Electric Sources "Number of freestanding electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Electric Sources") - return val + return val # type: ignore @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources "Number of freestanding magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Magnetic Sources") - return val + return val # type: ignore @property def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources "Number of imaged, half-space radiating electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Electric Sources") - return val + return val # type: ignore @property def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources "Number of imaged, half-space radiating magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Magnetic Sources") - return val + return val # type: ignore @property def waveguide_height(self) -> float: """Waveguide Height "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." - " """ + " """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." - " """ + " """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." - " """ + " """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore class SWEModeTruncationOption(Enum): DYNAMIC = "Dynamic" @@ -806,16 +862,16 @@ class SWEModeTruncationOption(Enum): def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation "Select the method for stability-enhancing truncation of spherical wave expansion terms." - " """ + " """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] - return val + return val # type: ignore @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"SWE Mode Truncation={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SWE Mode Truncation={value.value}"]) @property def max_n_index(self) -> int: @@ -824,23 +880,27 @@ def max_n_index(self) -> int: "Value should be greater than 1." """ val = self._get_property("Max N Index") - return val + return val # type: ignore @max_n_index.setter def max_n_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max N Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max N Index={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) @property def show_composite_passband(self) -> bool: @@ -849,11 +909,13 @@ def show_composite_passband(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Composite Passband") - return val + return val # type: ignore @show_composite_passband.setter def show_composite_passband(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Composite Passband={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Composite Passband={value}"]) @property def use_phase_center(self) -> bool: @@ -862,19 +924,21 @@ def use_phase_center(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Phase Center") - return val + return val # type: ignore @use_phase_center.setter def use_phase_center(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Phase Center={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Phase Center={value}"]) @property def coordinate_systems(self) -> str: """Coordinate Systems "Specifies the coordinate system for the phase center of this antenna." - " """ + " """ val = self._get_property("Coordinate Systems") - return val + return val # type: ignore @property def phasecenterposition(self): @@ -883,7 +947,7 @@ def phasecenterposition(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("PhaseCenterPosition") - return val + return val # type: ignore @property def phasecenterorientation(self): @@ -892,4 +956,5 @@ def phasecenterorientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("PhaseCenterOrientation") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py index db84f87ec26..b6ff2f640fc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class AntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,7 +25,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -63,11 +38,13 @@ def passband_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Passband Loss") - return val + return val # type: ignore @passband_loss.setter - def passband_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Passband Loss={value}"]) + def passband_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Passband Loss={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -76,11 +53,13 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out of Band Attenuation") - return val + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out of Band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out of Band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -90,12 +69,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -105,12 +86,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -120,12 +103,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -135,21 +120,26 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index 54881f631b7..5c3ea430acc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Band(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +14,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -50,13 +24,15 @@ def enabled(self, value: bool): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") - return val + return val # type: ignore @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port={value}"]) @property def use_dd_1494_mode(self) -> bool: @@ -65,11 +41,13 @@ def use_dd_1494_mode(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use DD-1494 Mode") - return val + return val # type: ignore @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use DD-1494 Mode={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use DD-1494 Mode={value}"]) @property def use_emission_designator(self) -> bool: @@ -78,40 +56,44 @@ def use_emission_designator(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Emission Designator") - return val + return val # type: ignore @use_emission_designator.setter def use_emission_designator(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Emission Designator={value}"]) @property def emission_designator(self) -> str: """Emission Designator "Enter the Emission Designator to define the bandwidth and modulation." - " """ + " """ val = self._get_property("Emission Designator") - return val + return val # type: ignore @emission_designator.setter def emission_designator(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Emission Designator={value}"]) @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." - " """ + " """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def emit_modulation_type(self) -> str: """EMIT Modulation Type "Modulation based off the emission designator." - " """ + " """ val = self._get_property("EMIT Modulation Type") - return val + return val # type: ignore @property def override_emission_designator_bw(self) -> bool: @@ -120,13 +102,13 @@ def override_emission_designator_bw(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Override Emission Designator BW") - return val + return val # type: ignore @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Override Emission Designator BW={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Override Emission Designator BW={value}"]) @property def channel_bandwidth(self) -> float: @@ -136,12 +118,14 @@ def channel_bandwidth(self) -> float: """ val = self._get_property("Channel Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @channel_bandwidth.setter - def channel_bandwidth(self, value: float | str): + def channel_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Bandwidth={value}"]) class ModulationOption(Enum): GENERIC = "Generic" @@ -160,14 +144,16 @@ class ModulationOption(Enum): def modulation(self) -> ModulationOption: """Modulation "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Modulation") val = self.ModulationOption[val] - return val + return val # type: ignore @modulation.setter def modulation(self, value: ModulationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation={value.value}"]) @property def max_modulating_freq(self) -> float: @@ -177,12 +163,14 @@ def max_modulating_freq(self) -> float: """ val = self._get_property("Max Modulating Freq.") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @max_modulating_freq.setter - def max_modulating_freq(self, value: float | str): + def max_modulating_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Modulating Freq.={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Modulating Freq.={value}"]) @property def modulation_index(self) -> float: @@ -191,11 +179,13 @@ def modulation_index(self) -> float: "Value should be between 0.01 and 1." """ val = self._get_property("Modulation Index") - return val + return val # type: ignore @modulation_index.setter - def modulation_index(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Index={value}"]) + def modulation_index(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation Index={value}"]) @property def freq_deviation(self) -> float: @@ -205,12 +195,14 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @freq_deviation.setter - def freq_deviation(self, value: float | str): + def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation={value}"]) @property def bit_rate(self) -> float: @@ -220,12 +212,14 @@ def bit_rate(self) -> float: """ val = self._get_property("Bit Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val + return val # type: ignore @bit_rate.setter - def bit_rate(self, value: float | str): + def bit_rate(self, value : float|str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bit Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bit Rate={value}"]) @property def sidelobes(self) -> int: @@ -234,26 +228,30 @@ def sidelobes(self) -> int: "Value should be greater than 0." """ val = self._get_property("Sidelobes") - return val + return val # type: ignore @sidelobes.setter def sidelobes(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sidelobes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sidelobes={value}"]) @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ val = self._get_property("Freq. Deviation ") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @freq_deviation_.setter - def freq_deviation_(self, value: float | str): + def freq_deviation_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation ={value}"]) class PSKTypeOption(Enum): BPSK = "BPSK" @@ -267,14 +265,16 @@ class PSKTypeOption(Enum): def psk_type(self) -> PSKTypeOption: """PSK Type "PSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] - return val + return val # type: ignore @psk_type.setter def psk_type(self, value: PSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"PSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"PSK Type={value.value}"]) class FSKTypeOption(Enum): FSK_2 = "FSK-2" @@ -285,14 +285,16 @@ class FSKTypeOption(Enum): def fsk_type(self) -> FSKTypeOption: """FSK Type "FSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] - return val + return val # type: ignore @fsk_type.setter def fsk_type(self, value: FSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FSK Type={value.value}"]) class QAMTypeOption(Enum): QAM_4 = "QAM-4" @@ -305,14 +307,16 @@ class QAMTypeOption(Enum): def qam_type(self) -> QAMTypeOption: """QAM Type "QAM modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] - return val + return val # type: ignore @qam_type.setter def qam_type(self, value: QAMTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"QAM Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"QAM Type={value.value}"]) class APSKTypeOption(Enum): APSK_4 = "APSK-4" @@ -325,14 +329,16 @@ class APSKTypeOption(Enum): def apsk_type(self) -> APSKTypeOption: """APSK Type "APSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] - return val + return val # type: ignore @apsk_type.setter def apsk_type(self, value: APSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"APSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"APSK Type={value.value}"]) @property def start_frequency(self) -> float: @@ -342,12 +348,14 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -357,12 +365,14 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -372,12 +382,14 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @channel_spacing.setter - def channel_spacing(self, value: float | str): + def channel_spacing(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Spacing={value}"]) @property def tx_offset(self) -> float: @@ -387,12 +399,14 @@ def tx_offset(self) -> float: """ val = self._get_property("Tx Offset") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @tx_offset.setter - def tx_offset(self, value: float | str): + def tx_offset(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Offset={value}"]) class RadarTypeOption(Enum): CW = "CW" @@ -405,14 +419,16 @@ class RadarTypeOption(Enum): def radar_type(self) -> RadarTypeOption: """Radar Type "Radar type: helps determine spectral profile." - " """ + " """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] - return val + return val # type: ignore @radar_type.setter def radar_type(self, value: RadarTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radar Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Radar Type={value.value}"]) @property def hopping_radar(self) -> bool: @@ -421,11 +437,13 @@ def hopping_radar(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Hopping Radar") - return val + return val # type: ignore @hopping_radar.setter def hopping_radar(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hopping Radar={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hopping Radar={value}"]) @property def post_october_2020_procurement(self) -> bool: @@ -434,13 +452,13 @@ def post_october_2020_procurement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Post October 2020 Procurement") - return val + return val # type: ignore @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Post October 2020 Procurement={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Post October 2020 Procurement={value}"]) @property def hop_range_min_freq(self) -> float: @@ -450,12 +468,14 @@ def hop_range_min_freq(self) -> float: """ val = self._get_property("Hop Range Min Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @hop_range_min_freq.setter - def hop_range_min_freq(self, value: float | str): + def hop_range_min_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Min Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hop Range Min Freq={value}"]) @property def hop_range_max_freq(self) -> float: @@ -465,12 +485,14 @@ def hop_range_max_freq(self) -> float: """ val = self._get_property("Hop Range Max Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @hop_range_max_freq.setter - def hop_range_max_freq(self, value: float | str): + def hop_range_max_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Max Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hop Range Max Freq={value}"]) @property def pulse_duration(self) -> float: @@ -480,12 +502,14 @@ def pulse_duration(self) -> float: """ val = self._get_property("Pulse Duration") val = self._convert_from_internal_units(float(val), "Time") - return val + return val # type: ignore @pulse_duration.setter - def pulse_duration(self, value: float | str): + def pulse_duration(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Duration={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Duration={value}"]) @property def pulse_rise_time(self) -> float: @@ -495,12 +519,14 @@ def pulse_rise_time(self) -> float: """ val = self._get_property("Pulse Rise Time") val = self._convert_from_internal_units(float(val), "Time") - return val + return val # type: ignore @pulse_rise_time.setter - def pulse_rise_time(self, value: float | str): + def pulse_rise_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Rise Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Rise Time={value}"]) @property def pulse_fall_time(self) -> float: @@ -510,12 +536,14 @@ def pulse_fall_time(self) -> float: """ val = self._get_property("Pulse Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val + return val # type: ignore @pulse_fall_time.setter - def pulse_fall_time(self, value: float | str): + def pulse_fall_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Fall Time={value}"]) @property def pulse_repetition_rate(self) -> float: @@ -524,11 +552,13 @@ def pulse_repetition_rate(self) -> float: "Value should be greater than 1." """ val = self._get_property("Pulse Repetition Rate") - return val + return val # type: ignore @pulse_repetition_rate.setter - def pulse_repetition_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Repetition Rate={value}"]) + def pulse_repetition_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Repetition Rate={value}"]) @property def number_of_chips(self) -> float: @@ -537,11 +567,13 @@ def number_of_chips(self) -> float: "Value should be greater than 1." """ val = self._get_property("Number of Chips") - return val + return val # type: ignore @number_of_chips.setter - def number_of_chips(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Chips={value}"]) + def number_of_chips(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Chips={value}"]) @property def pulse_compression_ratio(self) -> float: @@ -550,11 +582,13 @@ def pulse_compression_ratio(self) -> float: "Value should be greater than 1." """ val = self._get_property("Pulse Compression Ratio") - return val + return val # type: ignore @pulse_compression_ratio.setter - def pulse_compression_ratio(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Compression Ratio={value}"]) + def pulse_compression_ratio(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Compression Ratio={value}"]) @property def fm_chirp_period(self) -> float: @@ -564,12 +598,14 @@ def fm_chirp_period(self) -> float: """ val = self._get_property("FM Chirp Period") val = self._convert_from_internal_units(float(val), "Time") - return val + return val # type: ignore @fm_chirp_period.setter - def fm_chirp_period(self, value: float | str): + def fm_chirp_period(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Chirp Period={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Chirp Period={value}"]) @property def fm_freq_deviation(self) -> float: @@ -579,12 +615,14 @@ def fm_freq_deviation(self) -> float: """ val = self._get_property("FM Freq Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @fm_freq_deviation.setter - def fm_freq_deviation(self, value: float | str): + def fm_freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Freq Deviation={value}"]) @property def fm_freq_dev_bandwidth(self) -> float: @@ -594,9 +632,12 @@ def fm_freq_dev_bandwidth(self) -> float: """ val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value: float | str): + def fm_freq_dev_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Dev Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Freq Dev Bandwidth={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py index e173c1d3913..b16ed48b03e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class BandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,3 +25,4 @@ def duplicate(self, new_name): def delete(self): """Delete this node""" self._delete() + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py index b61929a3baa..c6a657f343e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class BandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,13 +27,15 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) class TxorRxOption(Enum): TX = "Tx" @@ -69,35 +45,39 @@ class TxorRxOption(Enum): def tx_or_rx(self) -> TxorRxOption: """Tx or Rx "Specifies whether the trace is a Tx or Rx channel." - " """ + " """ val = self._get_property("Tx or Rx") val = self.TxorRxOption[val] - return val + return val # type: ignore @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx or Rx={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx or Rx={value.value}"]) @property def channel_frequency(self): """Channel Frequency "Select band channel frequency to display." - " """ + " """ val = self._get_property("Channel Frequency") - return val + return val # type: ignore @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def visible(self) -> bool: @@ -106,11 +86,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -119,23 +101,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -149,14 +135,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -165,11 +153,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -178,11 +168,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -205,14 +197,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -221,11 +215,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -234,11 +230,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -247,11 +245,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -260,8 +260,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py index db8bd66e915..c20f1200c50 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class CADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,7 +30,7 @@ def file(self) -> str: "Value should be a full file path." """ val = self._get_property("File") - return val + return val # type: ignore class ModelTypeOption(Enum): PLATE = "Plate" @@ -78,14 +52,16 @@ class ModelTypeOption(Enum): def model_type(self) -> ModelTypeOption: """Model Type "Select type of parametric model to create." - " """ + " """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] - return val + return val # type: ignore @model_type.setter def model_type(self, value: ModelTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Model Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Model Type={value.value}"]) @property def length(self) -> float: @@ -95,12 +71,14 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @length.setter - def length(self, value: float | str): + def length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Length={value}"]) @property def width(self) -> float: @@ -110,12 +88,14 @@ def width(self) -> float: """ val = self._get_property("Width") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @width.setter - def width(self, value: float | str): + def width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Width={value}"]) @property def height(self) -> float: @@ -125,12 +105,14 @@ def height(self) -> float: """ val = self._get_property("Height") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @height.setter - def height(self, value: float | str): + def height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Height={value}"]) @property def angle(self) -> float: @@ -139,11 +121,13 @@ def angle(self) -> float: "Value should be between 0 and 360." """ val = self._get_property("Angle") - return val + return val # type: ignore @angle.setter - def angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Angle={value}"]) + def angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Angle={value}"]) @property def top_side(self) -> float: @@ -153,12 +137,14 @@ def top_side(self) -> float: """ val = self._get_property("Top Side") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @top_side.setter - def top_side(self, value: float | str): + def top_side(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Top Side={value}"]) @property def top_radius(self) -> float: @@ -168,12 +154,14 @@ def top_radius(self) -> float: """ val = self._get_property("Top Radius") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @top_radius.setter - def top_radius(self, value: float | str): + def top_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Top Radius={value}"]) @property def side(self) -> float: @@ -183,12 +171,14 @@ def side(self) -> float: """ val = self._get_property("Side") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @side.setter - def side(self, value: float | str): + def side(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Side={value}"]) @property def radius(self) -> float: @@ -198,12 +188,14 @@ def radius(self) -> float: """ val = self._get_property("Radius") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @radius.setter - def radius(self, value: float | str): + def radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Radius={value}"]) @property def base_radius(self) -> float: @@ -213,12 +205,14 @@ def base_radius(self) -> float: """ val = self._get_property("Base Radius") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @base_radius.setter - def base_radius(self, value: float | str): + def base_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Radius={value}"]) @property def center_radius(self) -> float: @@ -228,12 +222,14 @@ def center_radius(self) -> float: """ val = self._get_property("Center Radius") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @center_radius.setter - def center_radius(self, value: float | str): + def center_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Center Radius={value}"]) @property def x_axis_ellipsoid_radius(self) -> float: @@ -243,12 +239,14 @@ def x_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("X Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value: float | str): + def x_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X Axis Ellipsoid Radius={value}"]) @property def y_axis_ellipsoid_radius(self) -> float: @@ -258,12 +256,14 @@ def y_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Y Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value: float | str): + def y_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y Axis Ellipsoid Radius={value}"]) @property def z_axis_ellipsoid_radius(self) -> float: @@ -273,12 +273,14 @@ def z_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Z Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value: float | str): + def z_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Z Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Z Axis Ellipsoid Radius={value}"]) @property def focal_length(self) -> float: @@ -288,26 +290,30 @@ def focal_length(self) -> float: """ val = self._get_property("Focal Length") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @focal_length.setter - def focal_length(self, value: float | str): + def focal_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Focal Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Focal Length={value}"]) @property def offset(self) -> float: """Offset "Offset of parabolic reflector." - " """ + " """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @offset.setter - def offset(self, value: float | str): + def offset(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Offset={value}"]) @property def x_direction_taper(self) -> float: @@ -316,11 +322,13 @@ def x_direction_taper(self) -> float: "Value should be greater than 0." """ val = self._get_property("X Direction Taper") - return val + return val # type: ignore @x_direction_taper.setter - def x_direction_taper(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Direction Taper={value}"]) + def x_direction_taper(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X Direction Taper={value}"]) @property def y_direction_taper(self) -> float: @@ -329,11 +337,13 @@ def y_direction_taper(self) -> float: "Value should be greater than 0." """ val = self._get_property("Y Direction Taper") - return val + return val # type: ignore @y_direction_taper.setter - def y_direction_taper(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Direction Taper={value}"]) + def y_direction_taper(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y Direction Taper={value}"]) @property def prism_direction(self): @@ -342,11 +352,13 @@ def prism_direction(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Prism Direction") - return val + return val # type: ignore @prism_direction.setter def prism_direction(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Prism Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Prism Direction={value}"]) @property def closed_top(self) -> bool: @@ -355,11 +367,13 @@ def closed_top(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Closed Top") - return val + return val # type: ignore @closed_top.setter def closed_top(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Top={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Closed Top={value}"]) @property def closed_base(self) -> bool: @@ -368,11 +382,13 @@ def closed_base(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Closed Base") - return val + return val # type: ignore @closed_base.setter def closed_base(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Base={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Closed Base={value}"]) @property def mesh_density(self) -> int: @@ -381,11 +397,13 @@ def mesh_density(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Mesh Density") - return val + return val # type: ignore @mesh_density.setter def mesh_density(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Density={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mesh Density={value}"]) @property def use_symmetric_mesh(self) -> bool: @@ -394,11 +412,13 @@ def use_symmetric_mesh(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Symmetric Mesh") - return val + return val # type: ignore @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Symmetric Mesh={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Symmetric Mesh={value}"]) class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -408,14 +428,16 @@ class MeshOptionOption(Enum): def mesh_option(self) -> MeshOptionOption: """Mesh Option "Select from different meshing options." - " """ + " """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] - return val + return val # type: ignore @mesh_option.setter def mesh_option(self, value: MeshOptionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Option={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mesh Option={value.value}"]) @property def coating_index(self) -> int: @@ -424,11 +446,13 @@ def coating_index(self) -> int: "Value should be between 0 and 100000." """ val = self._get_property("Coating Index") - return val + return val # type: ignore @coating_index.setter def coating_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Coating Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Coating Index={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -437,13 +461,13 @@ def show_relative_coordinates(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Relative Coordinates") - return val + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): @@ -452,11 +476,13 @@ def position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Position") - return val + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): @@ -465,11 +491,13 @@ def relative_position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Relative Position") - return val + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -479,14 +507,16 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -495,11 +525,13 @@ def orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Orientation") - return val + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): @@ -508,11 +540,13 @@ def relative_orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Relative Orientation") - return val + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def visible(self) -> bool: @@ -521,11 +555,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -537,14 +573,16 @@ class RenderModeOption(Enum): def render_mode(self) -> RenderModeOption: """Render Mode "Select drawing style for surfaces." - " """ + " """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] - return val + return val # type: ignore @render_mode.setter def render_mode(self, value: RenderModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Render Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Render Mode={value.value}"]) @property def show_axes(self) -> bool: @@ -553,11 +591,13 @@ def show_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Axes") - return val + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def min(self): @@ -566,7 +606,7 @@ def min(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Min") - return val + return val # type: ignore @property def max(self): @@ -575,15 +615,15 @@ def max(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Max") - return val + return val # type: ignore @property def number_of_surfaces(self) -> int: """Number of Surfaces "Number of surfaces in the model." - " """ + " """ val = self._get_property("Number of Surfaces") - return val + return val # type: ignore @property def color(self): @@ -592,20 +632,25 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index 06b0e456571..ecbd8e12fff 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Cable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -51,11 +25,13 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -64,23 +40,27 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -91,14 +71,16 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def length(self) -> float: @@ -108,12 +90,14 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @length.setter - def length(self, value: float | str): + def length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Length={value}"]) @property def loss_per_length(self) -> float: @@ -122,11 +106,13 @@ def loss_per_length(self) -> float: "Value should be between 0 and 20." """ val = self._get_property("Loss Per Length") - return val + return val # type: ignore @loss_per_length.setter - def loss_per_length(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Loss Per Length={value}"]) + def loss_per_length(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Loss Per Length={value}"]) @property def measurement_length(self) -> float: @@ -136,12 +122,14 @@ def measurement_length(self) -> float: """ val = self._get_property("Measurement Length") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @measurement_length.setter - def measurement_length(self, value: float | str): + def measurement_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Length={value}"]) @property def resistive_loss_constant(self) -> float: @@ -150,11 +138,13 @@ def resistive_loss_constant(self) -> float: "Value should be between 0 and 2." """ val = self._get_property("Resistive Loss Constant") - return val + return val # type: ignore @resistive_loss_constant.setter - def resistive_loss_constant(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resistive Loss Constant={value}"]) + def resistive_loss_constant(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Resistive Loss Constant={value}"]) @property def dielectric_loss_constant(self) -> float: @@ -163,16 +153,19 @@ def dielectric_loss_constant(self) -> float: "Value should be between 0 and 1." """ val = self._get_property("Dielectric Loss Constant") - return val + return val # type: ignore @dielectric_loss_constant.setter - def dielectric_loss_constant(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Dielectric Loss Constant={value}"]) + def dielectric_loss_constant(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Dielectric Loss Constant={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py index 7d77e3d1184..82bd87eb625 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py @@ -1,31 +1,7 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class CategoriesViewNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index 52b5b3f7fd7..43eacd2faee 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Circulator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -51,11 +25,13 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -64,23 +40,27 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -90,14 +70,16 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -107,14 +89,16 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the circulator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -123,11 +107,13 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -136,11 +122,13 @@ def finite_reverse_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Reverse Isolation") - return val + return val # type: ignore @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -149,11 +137,13 @@ def reverse_isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Reverse Isolation") - return val + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -162,11 +152,13 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -175,11 +167,13 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -189,12 +183,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -204,12 +200,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -219,12 +217,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -234,17 +234,20 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py index 706972bc560..ebdec441f77 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class CouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,21 +17,26 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def ports(self): """Ports "Maps each port in the link to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Ports") - return val + return val # type: ignore @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ports={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py index 6d93d55cab2..c0d2a188e62 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class CouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,36 +26,42 @@ def delete(self): @property def transmitter(self) -> EmitNode: """Transmitter - " """ + " """ val = self._get_property("Transmitter") - return val + return val # type: ignore @transmitter.setter def transmitter(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Transmitter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Transmitter={value}"]) @property def receiver(self) -> EmitNode: """Receiver - " """ + " """ val = self._get_property("Receiver") - return val + return val # type: ignore @receiver.setter def receiver(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Receiver={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -90,11 +70,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -103,23 +85,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -133,14 +119,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -149,11 +137,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -162,11 +152,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -189,14 +181,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -205,11 +199,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -218,11 +214,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -231,11 +229,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -244,11 +244,13 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def highlight_regions(self) -> bool: @@ -257,11 +259,13 @@ def highlight_regions(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Highlight Regions") - return val + return val # type: ignore @highlight_regions.setter def highlight_regions(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highlight Regions={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Highlight Regions={value}"]) @property def show_region_labels(self) -> bool: @@ -270,11 +274,13 @@ def show_region_labels(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Region Labels") - return val + return val # type: ignore @show_region_labels.setter def show_region_labels(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Region Labels={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Region Labels={value}"]) @property def font(self): @@ -283,11 +289,13 @@ def font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Font") - return val + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): @@ -296,11 +304,13 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): @@ -309,11 +319,13 @@ def background_color(self): "Color should be in RGBA form: #AARRGGBB." """ val = self._get_property("Background Color") - return val + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: @@ -322,11 +334,13 @@ def border(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Border") - return val + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: @@ -335,11 +349,13 @@ def border_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Border Width") - return val + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): @@ -348,8 +364,11 @@ def border_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Border Color") - return val + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py index 8d7cda4e457..732fb2d0107 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class CouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -32,7 +7,7 @@ def __init__(self, oDesign, result_id, node_id): def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" - return self._import(file_name, "TouchstoneCoupling") + return self._import(file_name,"TouchstoneCoupling") def add_custom_coupling(self): """Add a new node to define custom coupling between antennas""" @@ -77,11 +52,13 @@ def minimum_allowed_coupling(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Minimum Allowed Coupling") - return val + return val # type: ignore @minimum_allowed_coupling.setter - def minimum_allowed_coupling(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Allowed Coupling={value}"]) + def minimum_allowed_coupling(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minimum Allowed Coupling={value}"]) @property def global_default_coupling(self) -> float: @@ -90,16 +67,19 @@ def global_default_coupling(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Global Default Coupling") - return val + return val # type: ignore @global_default_coupling.setter - def global_default_coupling(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Global Default Coupling={value}"]) + def global_default_coupling(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Global Default Coupling={value}"]) @property def antenna_tags(self) -> str: """Antenna Tags "All tags currently used by all antennas in the project." - " """ + " """ val = self._get_property("Antenna Tags") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py index aa3c55f2ff6..56ebcbea022 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class CustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +12,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def rename(self, new_name): """Rename this node""" @@ -53,11 +28,11 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Value (dB): + "Value (dB): " Value should be between -1000 and 0." """ return self._get_table_data() @@ -73,35 +48,41 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -110,11 +91,13 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -123,20 +106,25 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py index 5c333704dd9..d3ebf5e3814 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class EmiPlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,39 +30,43 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def attached(self): """Attached "Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False)." - " """ + " """ val = self._get_property("Attached") - return val + return val # type: ignore @attached.setter def attached(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Attached={value}"]) @property - def position(self) -> float: - """Position - "Set position of the marker along the X-axis." - " """ - val = self._get_property("Position") - return val + def position_x(self) -> float: + """Position X + "Position of the marker on the X-axis (frequency axis).." + " """ + val = self._get_property("Position X") + return val # type: ignore @property - def position(self) -> float: - """Position - "Set position of the marker along the Y-axis." - " """ - val = self._get_property("Position") - return val + def position_y(self) -> float: + """Position Y + "Position of the marker on the Y-axis (result axis).." + " """ + val = self._get_property("Position Y") + return val # type: ignore @property def floating_label(self) -> bool: @@ -97,11 +75,13 @@ def floating_label(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Floating Label") - return val + return val # type: ignore @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -110,11 +90,13 @@ def position_from_left(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Position from Left") - return val + return val # type: ignore @position_from_left.setter - def position_from_left(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) + def position_from_left(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -123,23 +105,27 @@ def position_from_top(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Position from Top") - return val + return val # type: ignore @position_from_top.setter - def position_from_top(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) + def position_from_top(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Top={value}"]) @property def text(self) -> str: """Text "Set the text of the label." - " """ + " """ val = self._get_property("Text") - return val + return val # type: ignore @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -150,16 +136,16 @@ class HorizontalPositionOption(Enum): def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position "Specify horizontal position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] - return val + return val # type: ignore @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Horizontal Position={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Position={value.value}"]) class VerticalPositionOption(Enum): TOP = "Top" @@ -170,14 +156,16 @@ class VerticalPositionOption(Enum): def vertical_position(self) -> VerticalPositionOption: """Vertical Position "Specify vertical position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] - return val + return val # type: ignore @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -188,14 +176,16 @@ class TextAlignmentOption(Enum): def text_alignment(self) -> TextAlignmentOption: """Text Alignment "Specify justification applied to multi-line text." - " """ + " """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] - return val + return val # type: ignore @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text Alignment={value.value}"]) @property def font(self): @@ -204,11 +194,13 @@ def font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Font") - return val + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): @@ -217,11 +209,13 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): @@ -230,11 +224,13 @@ def background_color(self): "Color should be in RGBA form: #AARRGGBB." """ val = self._get_property("Background Color") - return val + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: @@ -243,11 +239,13 @@ def border(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Border") - return val + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: @@ -256,11 +254,13 @@ def border_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Border Width") - return val + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): @@ -269,11 +269,13 @@ def border_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Border Color") - return val + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -297,14 +299,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Specify symbol displayed next to the label." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -313,11 +317,13 @@ def arrow_direction(self) -> int: "Value should be between -360 and 360." """ val = self._get_property("Arrow Direction") - return val + return val # type: ignore @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -326,11 +332,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -339,11 +347,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -352,11 +362,13 @@ def line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Line Width") - return val + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -365,8 +377,11 @@ def filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Filled") - return val + return val # type: ignore @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py index 1fc5315ac89..5fa7ec95182 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class EmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,13 +14,15 @@ def add_group(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class GroundPlaneNormalOption(Enum): X_AXIS = "X Axis" @@ -57,27 +33,30 @@ class GroundPlaneNormalOption(Enum): def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal "Specifies the axis of the normal to the ground plane." - " """ + " """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] - return val + return val # type: ignore @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ground Plane Normal={value.value}"]) @property def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." - " """ + " """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @gp_position_along_normal.setter - def gp_position_along_normal(self, value: float | str): + def gp_position_along_normal(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GP Position Along Normal={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"GP Position Along Normal={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py index 008334efbeb..584842c9bbd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,35 +30,41 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -93,11 +73,13 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -106,23 +88,27 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class TerrainCategoryOption(Enum): TYPE_A = "Type A" @@ -133,14 +119,16 @@ class TerrainCategoryOption(Enum): def terrain_category(self) -> TerrainCategoryOption: """Terrain Category "Specify the terrain category type for the Erceg model." - " """ + " """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] - return val + return val # type: ignore @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Terrain Category={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Terrain Category={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -149,11 +137,13 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -162,11 +152,13 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -175,11 +167,13 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -191,14 +185,16 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -207,11 +203,13 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -220,11 +218,13 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -233,11 +233,13 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -246,11 +248,13 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -259,11 +263,13 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -272,11 +278,13 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -285,13 +293,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -300,11 +308,13 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -313,11 +323,13 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -326,10 +338,11 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index 6b70812ca88..5780cd7d62f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Filter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -51,11 +25,13 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -64,23 +40,27 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -95,14 +75,16 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def insertion_loss(self) -> float: @@ -111,11 +93,13 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -124,11 +108,13 @@ def stop_band_attenuation(self) -> float: "Value should be less than 200." """ val = self._get_property("Stop band Attenuation") - return val + return val # type: ignore @stop_band_attenuation.setter - def stop_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -138,12 +124,14 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @max_pass_band.setter - def max_pass_band(self, value: float | str): + def max_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -153,12 +141,14 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @min_stop_band.setter - def min_stop_band(self, value: float | str): + def min_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -168,12 +158,14 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @max_stop_band.setter - def max_stop_band(self, value: float | str): + def max_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -183,12 +175,14 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @min_pass_band.setter - def min_pass_band(self, value: float | str): + def min_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -198,12 +192,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -213,12 +209,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -228,12 +226,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -243,102 +243,116 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Lower Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @lower_cutoff_.setter - def lower_cutoff_(self, value: float | str): + def lower_cutoff_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff ={value}"]) @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Lower Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @lower_stop_band_.setter - def lower_stop_band_(self, value: float | str): + def lower_stop_band_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band ={value}"]) @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Higher Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @higher_stop_band_.setter - def higher_stop_band_(self, value: float | str): + def higher_stop_band_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band ={value}"]) @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Higher Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @higher_cutoff_.setter - def higher_cutoff_(self, value: float | str): + def higher_cutoff_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff ={value}"]) @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency "Lowest tuned frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Lowest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @lowest_tuned_frequency_.setter - def lowest_tuned_frequency_(self, value: float | str): + def lowest_tuned_frequency_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lowest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lowest Tuned Frequency ={value}"]) @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency "Highest tuned frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Highest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @highest_tuned_frequency_.setter - def highest_tuned_frequency_(self, value: float | str): + def highest_tuned_frequency_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Highest Tuned Frequency ={value}"]) @property def percent_bandwidth(self) -> float: @@ -347,11 +361,13 @@ def percent_bandwidth(self) -> float: "Value should be between 0.001 and 100." """ val = self._get_property("Percent Bandwidth") - return val + return val # type: ignore @percent_bandwidth.setter - def percent_bandwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percent Bandwidth={value}"]) + def percent_bandwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Percent Bandwidth={value}"]) @property def shape_factor(self) -> float: @@ -360,16 +376,19 @@ def shape_factor(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("Shape Factor") - return val + return val # type: ignore @shape_factor.setter - def shape_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) + def shape_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Shape Factor={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py index 255589e8aaf..4e8eeb4f6c7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class FiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,35 +30,41 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -93,11 +73,13 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -106,23 +88,27 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): URBAN_MICROCELL = "Urban Microcell" @@ -133,14 +119,16 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment for the 5G channel model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def los(self) -> bool: @@ -149,11 +137,13 @@ def los(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("LOS") - return val + return val # type: ignore @los.setter def los(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"LOS={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"LOS={value}"]) @property def include_bpl(self) -> bool: @@ -162,11 +152,13 @@ def include_bpl(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include BPL") - return val + return val # type: ignore @include_bpl.setter def include_bpl(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include BPL={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include BPL={value}"]) class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -176,14 +168,16 @@ class NYUBPLModelOption(Enum): def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model "Specify the NYU Building Penetration Loss model." - " """ + " """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] - return val + return val # type: ignore @nyu_bpl_model.setter def nyu_bpl_model(self, value: NYUBPLModelOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NYU BPL Model={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NYU BPL Model={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -192,11 +186,13 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -205,11 +201,13 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -218,11 +216,13 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -234,14 +234,16 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -250,11 +252,13 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -263,11 +267,13 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -276,11 +282,13 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -289,11 +297,13 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -302,11 +312,13 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -315,11 +327,13 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -328,13 +342,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -343,11 +357,13 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -356,11 +372,13 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -369,10 +387,11 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py index fe9a68f0369..a9744669b97 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class HataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,35 +30,41 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -93,11 +73,13 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -106,23 +88,27 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): LARGE_CITY = "Large City" @@ -134,14 +120,16 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Hata model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -150,11 +138,13 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -163,11 +153,13 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -176,11 +168,13 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -192,14 +186,16 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -208,11 +204,13 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -221,11 +219,13 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -234,11 +234,13 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -247,11 +249,13 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -260,11 +264,13 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -273,11 +279,13 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -286,13 +294,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -301,11 +309,13 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -314,11 +324,13 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -327,10 +339,11 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py index 4b6ad0f7104..8b4436a364e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class IndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -51,13 +25,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Power Loss Coefficient: + "Power Loss Coefficient: " Value should be between 0 and 100." - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): " Value should be between 0 and 1000." """ return self._get_table_data() @@ -73,35 +47,41 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -110,11 +90,13 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -123,23 +105,27 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class BuildingTypeOption(Enum): RESIDENTIAL_APARTMENT = "Residential Apartment" @@ -152,14 +138,16 @@ class BuildingTypeOption(Enum): def building_type(self) -> BuildingTypeOption: """Building Type "Specify the building type for the Indoor Propagation model." - " """ + " """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] - return val + return val # type: ignore @building_type.setter def building_type(self, value: BuildingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Building Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Building Type={value.value}"]) @property def number_of_floors(self) -> int: @@ -168,11 +156,13 @@ def number_of_floors(self) -> int: "Value should be between 1 and 3." """ val = self._get_property("Number of Floors") - return val + return val # type: ignore @number_of_floors.setter def number_of_floors(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Floors={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Floors={value}"]) @property def custom_fading_margin(self) -> float: @@ -181,11 +171,13 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -194,11 +186,13 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -207,11 +201,13 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -223,14 +219,16 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -239,11 +237,13 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -252,11 +252,13 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -265,11 +267,13 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -278,11 +282,13 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -291,11 +297,13 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -304,11 +312,13 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -317,13 +327,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -332,11 +342,13 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -345,11 +357,13 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -358,10 +372,11 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index f8e250d0dcf..3188286f581 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Isolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -51,11 +25,13 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -64,23 +40,27 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -90,14 +70,16 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -107,14 +89,16 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the isolator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -123,11 +107,13 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -136,11 +122,13 @@ def finite_reverse_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Reverse Isolation") - return val + return val # type: ignore @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -149,11 +137,13 @@ def reverse_isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Reverse Isolation") - return val + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -162,11 +152,13 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -175,11 +167,13 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -189,12 +183,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -204,12 +200,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -219,12 +217,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -234,17 +234,20 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py index 5726e956981..6be3579ba36 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class LogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,35 +30,41 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -93,11 +73,13 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -106,23 +88,27 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): FREE_SPACE = "Free Space" @@ -137,14 +123,16 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Log Distance model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def path_loss_exponent(self) -> float: @@ -153,11 +141,13 @@ def path_loss_exponent(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Path Loss Exponent") - return val + return val # type: ignore @path_loss_exponent.setter - def path_loss_exponent(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Exponent={value}"]) + def path_loss_exponent(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Path Loss Exponent={value}"]) @property def custom_fading_margin(self) -> float: @@ -166,11 +156,13 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -179,11 +171,13 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -192,11 +186,13 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -208,14 +204,16 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -224,11 +222,13 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -237,11 +237,13 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -250,11 +252,13 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -263,11 +267,13 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -276,11 +282,13 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -289,11 +297,13 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -302,13 +312,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -317,11 +327,13 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -330,11 +342,13 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -343,10 +357,11 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py index 26133fc59a0..289f8de29fd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class MPlexBandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -55,26 +29,30 @@ class PowerDirectionOption(Enum): @property def power_direction(self) -> PowerDirectionOption: """Power Direction - " """ + " """ val = self._get_property("Power Direction") val = self.PowerDirectionOption[val] - return val + return val # type: ignore @power_direction.setter def power_direction(self, value: PowerDirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Power Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Power Direction={value.value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -83,11 +61,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -96,23 +76,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -126,14 +110,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -142,11 +128,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -155,11 +143,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -182,14 +172,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -198,11 +190,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -211,11 +205,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -224,11 +220,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -237,8 +235,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index cbb702447d8..3fe45402082 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Multiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -55,11 +29,13 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,23 +44,27 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_PASS_BAND = "By Pass Band" @@ -94,14 +74,16 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -111,14 +93,16 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the multiplexer.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def flip_ports_vertically(self) -> bool: @@ -127,29 +111,34 @@ def flip_ports_vertically(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Flip Ports Vertically") - return val + return val # type: ignore @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flip Ports Vertically={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Flip Ports Vertically={value}"]) @property def ports(self): """Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ + " """ val = self._get_property("Ports") - return val + return val # type: ignore @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ports={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py index b674b9e1448..1b131bc29a1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class MultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -59,14 +33,16 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def filename(self) -> str: @@ -75,11 +51,13 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def insertion_loss(self) -> float: @@ -88,11 +66,13 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -101,11 +81,13 @@ def stop_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Stop band Attenuation") - return val + return val # type: ignore @stop_band_attenuation.setter - def stop_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -115,12 +97,14 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @max_pass_band.setter - def max_pass_band(self, value: float | str): + def max_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -130,12 +114,14 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @min_stop_band.setter - def min_stop_band(self, value: float | str): + def min_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -145,12 +131,14 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @max_stop_band.setter - def max_stop_band(self, value: float | str): + def max_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -160,12 +148,14 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @min_pass_band.setter - def min_pass_band(self, value: float | str): + def min_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -175,12 +165,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -190,12 +182,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -205,12 +199,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -220,17 +216,20 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py index 34d36c4e09a..7e8cb4d3824 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class OutboardTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,11 +30,13 @@ def input_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Input Port") - return val + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -69,23 +45,27 @@ def output_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Output Port") - return val + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -94,11 +74,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -107,23 +89,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -137,14 +123,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -153,11 +141,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -166,11 +156,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -193,14 +185,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -209,11 +203,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -222,11 +218,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -235,11 +233,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -248,8 +248,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py index f042a394f10..ee81afe6816 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ParametricCouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,36 +26,42 @@ def delete(self): @property def antenna_a(self) -> EmitNode: """Antenna A - " """ + " """ val = self._get_property("Antenna A") - return val + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B - " """ + " """ val = self._get_property("Antenna B") - return val + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -90,11 +70,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -103,23 +85,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -133,14 +119,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -149,11 +137,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -162,11 +152,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -189,14 +181,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -205,11 +199,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -218,11 +214,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -231,11 +229,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -244,8 +244,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py index 1baf3a7b024..59297cd17a4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,11 +30,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def attached(self) -> bool: @@ -69,35 +45,41 @@ def attached(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Attached") - return val + return val # type: ignore @attached.setter def attached(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Attached={value}"]) @property - def position(self) -> float: - """Position - "Set position of the marker along the X-axis." - " """ - val = self._get_property("Position") - return val - - @position.setter - def position(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + def position_x(self) -> float: + """Position X + "Position of the marker on the X-axis (frequency axis).." + " """ + val = self._get_property("Position X") + return val # type: ignore + + @position_x.setter + def position_x(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position X={value}"]) @property - def position(self) -> float: - """Position - "Set position of the marker along the Y-axis." - " """ - val = self._get_property("Position") - return val - - @position.setter - def position(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + def position_y(self) -> float: + """Position Y + "Position of the marker on the Y-axis (result axis).." + " """ + val = self._get_property("Position Y") + return val # type: ignore + + @position_y.setter + def position_y(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position Y={value}"]) @property def floating_label(self) -> bool: @@ -106,11 +88,13 @@ def floating_label(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Floating Label") - return val + return val # type: ignore @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -119,11 +103,13 @@ def position_from_left(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Position from Left") - return val + return val # type: ignore @position_from_left.setter - def position_from_left(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) + def position_from_left(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -132,23 +118,27 @@ def position_from_top(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Position from Top") - return val + return val # type: ignore @position_from_top.setter - def position_from_top(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) + def position_from_top(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Top={value}"]) @property def text(self) -> str: """Text "Set the text of the label." - " """ + " """ val = self._get_property("Text") - return val + return val # type: ignore @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -159,16 +149,16 @@ class HorizontalPositionOption(Enum): def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position "Specify horizontal position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] - return val + return val # type: ignore @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Horizontal Position={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Position={value.value}"]) class VerticalPositionOption(Enum): TOP = "Top" @@ -179,14 +169,16 @@ class VerticalPositionOption(Enum): def vertical_position(self) -> VerticalPositionOption: """Vertical Position "Specify vertical position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] - return val + return val # type: ignore @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -197,14 +189,16 @@ class TextAlignmentOption(Enum): def text_alignment(self) -> TextAlignmentOption: """Text Alignment "Specify justification applied to multi-line text." - " """ + " """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] - return val + return val # type: ignore @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text Alignment={value.value}"]) @property def font(self): @@ -213,11 +207,13 @@ def font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Font") - return val + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): @@ -226,11 +222,13 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): @@ -239,11 +237,13 @@ def background_color(self): "Color should be in RGBA form: #AARRGGBB." """ val = self._get_property("Background Color") - return val + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: @@ -252,11 +252,13 @@ def border(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Border") - return val + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: @@ -265,11 +267,13 @@ def border_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Border Width") - return val + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): @@ -278,11 +282,13 @@ def border_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Border Color") - return val + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -306,14 +312,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Specify symbol displayed next to the label." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -322,11 +330,13 @@ def arrow_direction(self) -> int: "Value should be between -360 and 360." """ val = self._get_property("Arrow Direction") - return val + return val # type: ignore @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -335,11 +345,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -348,11 +360,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -361,11 +375,13 @@ def line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Line Width") - return val + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -374,8 +390,11 @@ def filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Filled") - return val + return val # type: ignore @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py index 66580038df7..8d52c34ed66 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,13 +30,15 @@ def delete(self): def title(self) -> str: """Title "Enter title at the top of the plot, room will be made for it." - " """ + " """ val = self._get_property("Title") - return val + return val # type: ignore @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title={value}"]) @property def title_font(self): @@ -71,11 +47,13 @@ def title_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Title Font") - return val + return val # type: ignore @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -84,11 +62,13 @@ def show_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Legend") - return val + return val # type: ignore @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Legend={value}"]) @property def legend_font(self): @@ -97,11 +77,13 @@ def legend_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Legend Font") - return val + return val # type: ignore @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Legend Font={value}"]) @property def display_cad_overlay(self) -> bool: @@ -110,11 +92,13 @@ def display_cad_overlay(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Display CAD Overlay") - return val + return val # type: ignore @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -123,23 +107,27 @@ def opacity(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Opacity") - return val + return val # type: ignore @opacity.setter - def opacity(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) + def opacity(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset "Adjust vertical position of CAD model overlay." - " """ + " """ val = self._get_property("Vertical Offset") - return val + return val # type: ignore @vertical_offset.setter - def vertical_offset(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) + def vertical_offset(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -148,11 +136,13 @@ def range_axis_rotation(self) -> float: "Value should be between -180 and 180." """ val = self._get_property("Range Axis Rotation") - return val + return val # type: ignore @range_axis_rotation.setter - def range_axis_rotation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -161,59 +151,69 @@ def lock_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Lock Axes") - return val + return val # type: ignore @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min "Set lower extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Min") - return val + return val # type: ignore @x_axis_min.setter - def x_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) + def x_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max "Set upper extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Max") - return val + return val # type: ignore @x_axis_max.setter - def x_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) + def x_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min "Set lower extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Min") - return val + return val # type: ignore @y_axis_min.setter - def y_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) + def y_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max "Set upper extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Max") - return val + return val # type: ignore @y_axis_max.setter - def y_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) + def y_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -222,11 +222,13 @@ def y_axis_range(self) -> float: "Value should be greater than 0." """ val = self._get_property("Y-axis Range") - return val + return val # type: ignore @y_axis_range.setter - def y_axis_range(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) + def y_axis_range(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Range={value}"]) @property def max_major_ticks(self) -> int: @@ -235,11 +237,13 @@ def max_major_ticks(self) -> int: "Value should be between 1 and 30." """ val = self._get_property("Max Major Ticks") - return val + return val # type: ignore @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks={value}"]) @property def max_minor_ticks(self) -> int: @@ -248,11 +252,13 @@ def max_minor_ticks(self) -> int: "Value should be between 0 and 100." """ val = self._get_property("Max Minor Ticks") - return val + return val # type: ignore @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks={value}"]) @property def max_major_ticks(self) -> int: @@ -261,11 +267,13 @@ def max_major_ticks(self) -> int: "Value should be between 1 and 30." """ val = self._get_property("Max Major Ticks") - return val + return val # type: ignore @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks={value}"]) @property def max_minor_ticks(self) -> int: @@ -274,11 +282,13 @@ def max_minor_ticks(self) -> int: "Value should be between 0 and 100." """ val = self._get_property("Max Minor Ticks") - return val + return val # type: ignore @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks={value}"]) @property def axis_label_font(self): @@ -287,11 +297,13 @@ def axis_label_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Axis Label Font") - return val + return val # type: ignore @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -300,11 +312,13 @@ def axis_tick_label_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Axis Tick Label Font") - return val + return val # type: ignore @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -318,16 +332,16 @@ class MajorGridLineStyleOption(Enum): def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style "Select line style of major-tick grid lines." - " """ + " """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] - return val + return val # type: ignore @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Line Style={value.value}"]) @property def major_grid_color(self): @@ -336,11 +350,13 @@ def major_grid_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Major Grid Color") - return val + return val # type: ignore @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -354,16 +370,16 @@ class MinorGridLineStyleOption(Enum): def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style "Select line style of minor-tick grid lines." - " """ + " """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] - return val + return val # type: ignore @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Line Style={value.value}"]) @property def minor_grid_color(self): @@ -372,11 +388,13 @@ def minor_grid_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Minor Grid Color") - return val + return val # type: ignore @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -385,11 +403,13 @@ def background_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Background Color") - return val + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -401,16 +421,16 @@ class BBPowerforPlotsUnitOption(Enum): def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit "Units to use for plotting broadband power densities." - " """ + " """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] - return val + return val # type: ignore @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power for Plots Unit={value.value}"]) @property def bb_power_bandwidth(self) -> float: @@ -420,12 +440,14 @@ def bb_power_bandwidth(self) -> float: """ val = self._get_property("BB Power Bandwidth") val = self._convert_from_internal_units(float(val), "") - return val + return val # type: ignore @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value: float | str): + def bb_power_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -434,8 +456,11 @@ def log_scale(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Log Scale") - return val + return val # type: ignore @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Log Scale={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py index 327cd810641..28738ddf7fa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -51,11 +25,13 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -64,23 +40,27 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -91,14 +71,16 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class OrientationOption(Enum): DIVIDER = "Divider" @@ -108,14 +90,16 @@ class OrientationOption(Enum): def orientation(self) -> OrientationOption: """Orientation "Defines the orientation of the Power Divider.." - " """ + " """ val = self._get_property("Orientation") val = self.OrientationOption[val] - return val + return val # type: ignore @orientation.setter def orientation(self, value: OrientationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value.value}"]) @property def insertion_loss_above_ideal(self) -> float: @@ -124,13 +108,13 @@ def insertion_loss_above_ideal(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss Above Ideal") - return val + return val # type: ignore @insertion_loss_above_ideal.setter - def insertion_loss_above_ideal(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Insertion Loss Above Ideal={value}"] - ) + def insertion_loss_above_ideal(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss Above Ideal={value}"]) @property def finite_isolation(self) -> bool: @@ -139,11 +123,13 @@ def finite_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Isolation") - return val + return val # type: ignore @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -152,11 +138,13 @@ def isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Isolation") - return val + return val # type: ignore @isolation.setter - def isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) + def isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -165,11 +153,13 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -178,11 +168,13 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -192,12 +184,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -207,12 +201,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -222,12 +218,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -237,17 +235,20 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py index 3d6fdda3a1a..e1ad6a92959 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PowerTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -57,26 +31,30 @@ class DirectionOption(Enum): def direction(self) -> DirectionOption: """Direction "Direction of power flow (towards or away from the transmitter) to plot." - " """ + " """ val = self._get_property("Direction") val = self.DirectionOption[val] - return val + return val # type: ignore @direction.setter def direction(self, value: DirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Direction={value.value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -85,11 +63,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -98,23 +78,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -128,14 +112,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -144,11 +130,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -157,11 +145,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -184,14 +174,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -200,11 +192,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -213,11 +207,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -226,11 +222,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -239,8 +237,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py index e80f61ed3ce..cefa684cf4c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ProfileTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,13 +27,15 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -68,11 +44,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -81,23 +59,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -111,14 +93,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -127,11 +111,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -140,11 +126,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -167,14 +155,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -183,11 +173,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -196,11 +188,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -209,11 +203,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -222,8 +218,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py index 270c0327635..3c8e3427903 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,35 +30,41 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -93,11 +73,13 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -106,23 +88,27 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def custom_fading_margin(self) -> float: @@ -131,11 +117,13 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -144,11 +132,13 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -157,11 +147,13 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -173,14 +165,16 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -189,11 +183,13 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -202,11 +198,13 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -215,11 +213,13 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -228,11 +228,13 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -241,11 +243,13 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -254,11 +258,13 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -267,13 +273,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -282,11 +288,13 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -295,11 +303,13 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -308,10 +318,11 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py index 4ef044f8118..6b0b1dcfb6e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class RadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,11 +28,11 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Name: - " "Type: - " """ + "Name: + " "Type: + " """ return self._get_table_data() @table_data.setter @@ -68,10 +43,13 @@ def table_data(self, value): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py index 4fc81c0c4c0..497fca03015 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyAmplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -39,7 +13,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val + return val # type: ignore @property def noise_temperature(self) -> float: @@ -48,15 +22,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore class AmplifierTypeOption(Enum): TRANSMIT_AMPLIFIER = "Transmit Amplifier" @@ -66,10 +40,10 @@ class AmplifierTypeOption(Enum): def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type "Configures the amplifier as a Tx or Rx amplifier." - " """ + " """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] - return val + return val # type: ignore @property def gain(self) -> float: @@ -78,7 +52,7 @@ def gain(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Gain") - return val + return val # type: ignore @property def center_frequency(self) -> float: @@ -88,7 +62,7 @@ def center_frequency(self) -> float: """ val = self._get_property("Center Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def bandwidth(self) -> float: @@ -98,7 +72,7 @@ def bandwidth(self) -> float: """ val = self._get_property("Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def noise_figure(self) -> float: @@ -107,7 +81,7 @@ def noise_figure(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Noise Figure") - return val + return val # type: ignore @property def saturation_level(self) -> float: @@ -117,7 +91,7 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @property def p1_db_point_ref_input(self) -> float: @@ -127,7 +101,7 @@ def p1_db_point_ref_input(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -137,7 +111,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @property def shape_factor(self) -> float: @@ -146,7 +120,7 @@ def shape_factor(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("Shape Factor") - return val + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -155,7 +129,7 @@ def reverse_isolation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Reverse Isolation") - return val + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -164,4 +138,5 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py index a71a708be66..a6e0663434c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyAntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,9 +15,9 @@ def parent(self): def tags(self) -> str: """Tags "Space delimited list of tags for coupling selections." - " """ + " """ val = self._get_property("Tags") - return val + return val # type: ignore @property def show_relative_coordinates(self) -> bool: @@ -52,7 +26,7 @@ def show_relative_coordinates(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Relative Coordinates") - return val + return val # type: ignore @property def position(self): @@ -61,7 +35,7 @@ def position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Position") - return val + return val # type: ignore @property def relative_position(self): @@ -70,7 +44,7 @@ def relative_position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Relative Position") - return val + return val # type: ignore class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -80,10 +54,10 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val + return val # type: ignore @property def orientation(self): @@ -92,7 +66,7 @@ def orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Orientation") - return val + return val # type: ignore @property def relative_orientation(self): @@ -101,7 +75,7 @@ def relative_orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Relative Orientation") - return val + return val # type: ignore @property def position_defined(self) -> bool: @@ -110,7 +84,7 @@ def position_defined(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Position Defined") - return val + return val # type: ignore @property def antenna_temperature(self) -> float: @@ -119,15 +93,15 @@ def antenna_temperature(self) -> float: "Value should be between 0 and 100000." """ val = self._get_property("Antenna Temperature") - return val + return val # type: ignore @property def type(self): """Type "Defines the type of antenna." - " """ + " """ val = self._get_property("Type") - return val + return val # type: ignore @property def antenna_file(self) -> str: @@ -135,7 +109,7 @@ def antenna_file(self) -> str: "Value should be a full file path." """ val = self._get_property("Antenna File") - return val + return val # type: ignore @property def project_name(self) -> str: @@ -144,7 +118,7 @@ def project_name(self) -> str: "Value should be a full file path." """ val = self._get_property("Project Name") - return val + return val # type: ignore @property def peak_gain(self) -> float: @@ -153,7 +127,7 @@ def peak_gain(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Peak Gain") - return val + return val # type: ignore class BoresightOption(Enum): XAXIS = "+X Axis" @@ -164,10 +138,10 @@ class BoresightOption(Enum): def boresight(self) -> BoresightOption: """Boresight "Select peak beam direction in local coordinates." - " """ + " """ val = self._get_property("Boresight") val = self.BoresightOption[val] - return val + return val # type: ignore @property def vertical_beamwidth(self) -> float: @@ -176,7 +150,7 @@ def vertical_beamwidth(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("Vertical Beamwidth") - return val + return val # type: ignore @property def horizontal_beamwidth(self) -> float: @@ -185,7 +159,7 @@ def horizontal_beamwidth(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("Horizontal Beamwidth") - return val + return val # type: ignore @property def extra_sidelobe(self) -> bool: @@ -194,7 +168,7 @@ def extra_sidelobe(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Extra Sidelobe") - return val + return val # type: ignore @property def first_sidelobe_level(self) -> float: @@ -203,7 +177,7 @@ def first_sidelobe_level(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("First Sidelobe Level") - return val + return val # type: ignore @property def first_sidelobe_vert_bw(self) -> float: @@ -212,7 +186,7 @@ def first_sidelobe_vert_bw(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("First Sidelobe Vert. BW") - return val + return val # type: ignore @property def first_sidelobe_hor_bw(self) -> float: @@ -221,7 +195,7 @@ def first_sidelobe_hor_bw(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("First Sidelobe Hor. BW") - return val + return val # type: ignore @property def outerbacklobe_level(self) -> float: @@ -230,7 +204,7 @@ def outerbacklobe_level(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Outer/Backlobe Level") - return val + return val # type: ignore @property def resonant_frequency(self) -> float: @@ -240,7 +214,7 @@ def resonant_frequency(self) -> float: """ val = self._get_property("Resonant Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def slot_length(self) -> float: @@ -250,7 +224,7 @@ def slot_length(self) -> float: """ val = self._get_property("Slot Length") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def mouth_width(self) -> float: @@ -260,7 +234,7 @@ def mouth_width(self) -> float: """ val = self._get_property("Mouth Width") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def mouth_height(self) -> float: @@ -270,7 +244,7 @@ def mouth_height(self) -> float: """ val = self._get_property("Mouth Height") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def waveguide_width(self) -> float: @@ -280,7 +254,7 @@ def waveguide_width(self) -> float: """ val = self._get_property("Waveguide Width") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def width_flare_half_angle(self) -> float: @@ -289,7 +263,7 @@ def width_flare_half_angle(self) -> float: "Value should be between 1 and 89.9." """ val = self._get_property("Width Flare Half-angle") - return val + return val # type: ignore @property def height_flare_half_angle(self) -> float: @@ -298,7 +272,7 @@ def height_flare_half_angle(self) -> float: "Value should be between 1 and 89.9." """ val = self._get_property("Height Flare Half-angle") - return val + return val # type: ignore @property def mouth_diameter(self) -> float: @@ -308,7 +282,7 @@ def mouth_diameter(self) -> float: """ val = self._get_property("Mouth Diameter") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def flare_half_angle(self) -> float: @@ -317,7 +291,7 @@ def flare_half_angle(self) -> float: "Value should be between 1 and 89.9." """ val = self._get_property("Flare Half-angle") - return val + return val # type: ignore @property def vswr(self) -> float: @@ -326,7 +300,7 @@ def vswr(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("VSWR") - return val + return val # type: ignore class AntennaPolarizationOption(Enum): VERTICAL = "Vertical" @@ -338,10 +312,10 @@ class AntennaPolarizationOption(Enum): def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] - return val + return val # type: ignore class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" @@ -351,10 +325,10 @@ class CrossDipoleModeOption(Enum): def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode "Choose the Cross Dipole type." - " """ + " """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] - return val + return val # type: ignore class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" @@ -364,10 +338,10 @@ class CrossDipolePolarizationOption(Enum): def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] - return val + return val # type: ignore @property def override_height(self) -> bool: @@ -376,7 +350,7 @@ def override_height(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Override Height") - return val + return val # type: ignore @property def offset_height(self) -> float: @@ -386,7 +360,7 @@ def offset_height(self) -> float: """ val = self._get_property("Offset Height") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def auto_height_offset(self) -> bool: @@ -395,7 +369,7 @@ def auto_height_offset(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Auto Height Offset") - return val + return val # type: ignore @property def conform__adjust_antenna(self) -> bool: @@ -404,7 +378,7 @@ def conform__adjust_antenna(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Conform / Adjust Antenna") - return val + return val # type: ignore @property def element_offset(self): @@ -413,7 +387,7 @@ def element_offset(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Element Offset") - return val + return val # type: ignore class ConformtoPlatformOption(Enum): NONE = "None" @@ -424,10 +398,10 @@ class ConformtoPlatformOption(Enum): def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform "Select method of automated conforming applied after Element Offset." - " """ + " """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] - return val + return val # type: ignore class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" @@ -438,10 +412,10 @@ class ReferencePlaneOption(Enum): def reference_plane(self) -> ReferencePlaneOption: """Reference Plane "Select reference plane for determining original element heights." - " """ + " """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] - return val + return val # type: ignore @property def conform_element_orientation(self) -> bool: @@ -450,7 +424,7 @@ def conform_element_orientation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Conform Element Orientation") - return val + return val # type: ignore @property def show_axes(self) -> bool: @@ -459,7 +433,7 @@ def show_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Axes") - return val + return val # type: ignore @property def show_icon(self) -> bool: @@ -468,7 +442,7 @@ def show_icon(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Icon") - return val + return val # type: ignore @property def size(self) -> float: @@ -477,7 +451,7 @@ def size(self) -> float: "Value should be between 0.001 and 1." """ val = self._get_property("Size") - return val + return val # type: ignore @property def color(self): @@ -486,23 +460,23 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val + return val # type: ignore @property def el_sample_interval(self) -> float: """El Sample Interval "Space between elevation-angle samples of pattern." - " """ + " """ val = self._get_property("El Sample Interval") - return val + return val # type: ignore @property def az_sample_interval(self) -> float: """Az Sample Interval "Space between azimuth-angle samples of pattern." - " """ + " """ val = self._get_property("Az Sample Interval") - return val + return val # type: ignore @property def has_frequency_domain(self) -> bool: @@ -511,74 +485,74 @@ def has_frequency_domain(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Has Frequency Domain") - return val + return val # type: ignore @property def frequency_domain(self): """Frequency Domain "Frequency sample(s) defining antenna." - " """ + " """ val = self._get_property("Frequency Domain") - return val + return val # type: ignore @property def number_of_electric_sources(self) -> int: """Number of Electric Sources "Number of freestanding electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Electric Sources") - return val + return val # type: ignore @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources "Number of freestanding magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Magnetic Sources") - return val + return val # type: ignore @property def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources "Number of imaged, half-space radiating electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Electric Sources") - return val + return val # type: ignore @property def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources "Number of imaged, half-space radiating magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Magnetic Sources") - return val + return val # type: ignore @property def waveguide_height(self) -> float: """Waveguide Height "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." - " """ + " """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." - " """ + " """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." - " """ + " """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore class SWEModeTruncationOption(Enum): DYNAMIC = "Dynamic" @@ -589,10 +563,10 @@ class SWEModeTruncationOption(Enum): def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation "Select the method for stability-enhancing truncation of spherical wave expansion terms." - " """ + " """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] - return val + return val # type: ignore @property def max_n_index(self) -> int: @@ -601,15 +575,15 @@ def max_n_index(self) -> int: "Value should be greater than 1." """ val = self._get_property("Max N Index") - return val + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore @property def show_composite_passband(self) -> bool: @@ -618,7 +592,7 @@ def show_composite_passband(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Composite Passband") - return val + return val # type: ignore @property def use_phase_center(self) -> bool: @@ -627,15 +601,15 @@ def use_phase_center(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Phase Center") - return val + return val # type: ignore @property def coordinate_systems(self) -> str: """Coordinate Systems "Specifies the coordinate system for the phase center of this antenna." - " """ + " """ val = self._get_property("Coordinate Systems") - return val + return val # type: ignore @property def phasecenterposition(self): @@ -644,7 +618,7 @@ def phasecenterposition(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("PhaseCenterPosition") - return val + return val # type: ignore @property def phasecenterorientation(self): @@ -653,4 +627,5 @@ def phasecenterorientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("PhaseCenterOrientation") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py index bc94666ed93..8c0a200baae 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyAntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,7 +17,7 @@ def passband_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Passband Loss") - return val + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -51,7 +26,7 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out of Band Attenuation") - return val + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -61,7 +36,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -71,7 +46,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -81,7 +56,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -91,12 +66,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py index 5977c725870..dd0d7db8fa6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,9 +15,9 @@ def parent(self): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") - return val + return val # type: ignore @property def use_dd_1494_mode(self) -> bool: @@ -52,7 +26,7 @@ def use_dd_1494_mode(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use DD-1494 Mode") - return val + return val # type: ignore @property def use_emission_designator(self) -> bool: @@ -61,32 +35,32 @@ def use_emission_designator(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Emission Designator") - return val + return val # type: ignore @property def emission_designator(self) -> str: """Emission Designator "Enter the Emission Designator to define the bandwidth and modulation." - " """ + " """ val = self._get_property("Emission Designator") - return val + return val # type: ignore @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." - " """ + " """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def emit_modulation_type(self) -> str: """EMIT Modulation Type "Modulation based off the emission designator." - " """ + " """ val = self._get_property("EMIT Modulation Type") - return val + return val # type: ignore @property def override_emission_designator_bw(self) -> bool: @@ -95,7 +69,7 @@ def override_emission_designator_bw(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Override Emission Designator BW") - return val + return val # type: ignore @property def channel_bandwidth(self) -> float: @@ -105,7 +79,7 @@ def channel_bandwidth(self) -> float: """ val = self._get_property("Channel Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore class ModulationOption(Enum): GENERIC = "Generic" @@ -124,10 +98,10 @@ class ModulationOption(Enum): def modulation(self) -> ModulationOption: """Modulation "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Modulation") val = self.ModulationOption[val] - return val + return val # type: ignore @property def max_modulating_freq(self) -> float: @@ -137,7 +111,7 @@ def max_modulating_freq(self) -> float: """ val = self._get_property("Max Modulating Freq.") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def modulation_index(self) -> float: @@ -146,7 +120,7 @@ def modulation_index(self) -> float: "Value should be between 0.01 and 1." """ val = self._get_property("Modulation Index") - return val + return val # type: ignore @property def freq_deviation(self) -> float: @@ -156,7 +130,7 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def bit_rate(self) -> float: @@ -166,7 +140,7 @@ def bit_rate(self) -> float: """ val = self._get_property("Bit Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val + return val # type: ignore @property def sidelobes(self) -> int: @@ -175,17 +149,17 @@ def sidelobes(self) -> int: "Value should be greater than 0." """ val = self._get_property("Sidelobes") - return val + return val # type: ignore @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ val = self._get_property("Freq. Deviation ") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore class PSKTypeOption(Enum): BPSK = "BPSK" @@ -199,10 +173,10 @@ class PSKTypeOption(Enum): def psk_type(self) -> PSKTypeOption: """PSK Type "PSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] - return val + return val # type: ignore class FSKTypeOption(Enum): FSK_2 = "FSK-2" @@ -213,10 +187,10 @@ class FSKTypeOption(Enum): def fsk_type(self) -> FSKTypeOption: """FSK Type "FSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] - return val + return val # type: ignore class QAMTypeOption(Enum): QAM_4 = "QAM-4" @@ -229,10 +203,10 @@ class QAMTypeOption(Enum): def qam_type(self) -> QAMTypeOption: """QAM Type "QAM modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] - return val + return val # type: ignore class APSKTypeOption(Enum): APSK_4 = "APSK-4" @@ -245,10 +219,10 @@ class APSKTypeOption(Enum): def apsk_type(self) -> APSKTypeOption: """APSK Type "APSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] - return val + return val # type: ignore @property def start_frequency(self) -> float: @@ -258,7 +232,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def stop_frequency(self) -> float: @@ -268,7 +242,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def channel_spacing(self) -> float: @@ -278,7 +252,7 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def tx_offset(self) -> float: @@ -288,7 +262,7 @@ def tx_offset(self) -> float: """ val = self._get_property("Tx Offset") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore class RadarTypeOption(Enum): CW = "CW" @@ -301,10 +275,10 @@ class RadarTypeOption(Enum): def radar_type(self) -> RadarTypeOption: """Radar Type "Radar type: helps determine spectral profile." - " """ + " """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] - return val + return val # type: ignore @property def hopping_radar(self) -> bool: @@ -313,7 +287,7 @@ def hopping_radar(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Hopping Radar") - return val + return val # type: ignore @property def post_october_2020_procurement(self) -> bool: @@ -322,7 +296,7 @@ def post_october_2020_procurement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Post October 2020 Procurement") - return val + return val # type: ignore @property def hop_range_min_freq(self) -> float: @@ -332,7 +306,7 @@ def hop_range_min_freq(self) -> float: """ val = self._get_property("Hop Range Min Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def hop_range_max_freq(self) -> float: @@ -342,7 +316,7 @@ def hop_range_max_freq(self) -> float: """ val = self._get_property("Hop Range Max Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def pulse_duration(self) -> float: @@ -352,7 +326,7 @@ def pulse_duration(self) -> float: """ val = self._get_property("Pulse Duration") val = self._convert_from_internal_units(float(val), "Time") - return val + return val # type: ignore @property def pulse_rise_time(self) -> float: @@ -362,7 +336,7 @@ def pulse_rise_time(self) -> float: """ val = self._get_property("Pulse Rise Time") val = self._convert_from_internal_units(float(val), "Time") - return val + return val # type: ignore @property def pulse_fall_time(self) -> float: @@ -372,7 +346,7 @@ def pulse_fall_time(self) -> float: """ val = self._get_property("Pulse Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val + return val # type: ignore @property def pulse_repetition_rate(self) -> float: @@ -381,7 +355,7 @@ def pulse_repetition_rate(self) -> float: "Value should be greater than 1." """ val = self._get_property("Pulse Repetition Rate") - return val + return val # type: ignore @property def number_of_chips(self) -> float: @@ -390,7 +364,7 @@ def number_of_chips(self) -> float: "Value should be greater than 1." """ val = self._get_property("Number of Chips") - return val + return val # type: ignore @property def pulse_compression_ratio(self) -> float: @@ -399,7 +373,7 @@ def pulse_compression_ratio(self) -> float: "Value should be greater than 1." """ val = self._get_property("Pulse Compression Ratio") - return val + return val # type: ignore @property def fm_chirp_period(self) -> float: @@ -409,7 +383,7 @@ def fm_chirp_period(self) -> float: """ val = self._get_property("FM Chirp Period") val = self._convert_from_internal_units(float(val), "Time") - return val + return val # type: ignore @property def fm_freq_deviation(self) -> float: @@ -419,7 +393,7 @@ def fm_freq_deviation(self) -> float: """ val = self._get_property("FM Freq Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def fm_freq_dev_bandwidth(self) -> float: @@ -429,4 +403,5 @@ def fm_freq_dev_bandwidth(self) -> float: """ val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py index e504f8967e0..bffa4168833 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyBandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -34,3 +9,4 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py index 1f6f4ff2dd7..2b39686be75 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyCADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,7 +18,7 @@ def file(self) -> str: "Value should be a full file path." """ val = self._get_property("File") - return val + return val # type: ignore class ModelTypeOption(Enum): PLATE = "Plate" @@ -66,10 +40,10 @@ class ModelTypeOption(Enum): def model_type(self) -> ModelTypeOption: """Model Type "Select type of parametric model to create." - " """ + " """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] - return val + return val # type: ignore @property def length(self) -> float: @@ -79,7 +53,7 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def width(self) -> float: @@ -89,7 +63,7 @@ def width(self) -> float: """ val = self._get_property("Width") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def height(self) -> float: @@ -99,7 +73,7 @@ def height(self) -> float: """ val = self._get_property("Height") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def angle(self) -> float: @@ -108,7 +82,7 @@ def angle(self) -> float: "Value should be between 0 and 360." """ val = self._get_property("Angle") - return val + return val # type: ignore @property def top_side(self) -> float: @@ -118,7 +92,7 @@ def top_side(self) -> float: """ val = self._get_property("Top Side") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def top_radius(self) -> float: @@ -128,7 +102,7 @@ def top_radius(self) -> float: """ val = self._get_property("Top Radius") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def side(self) -> float: @@ -138,7 +112,7 @@ def side(self) -> float: """ val = self._get_property("Side") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def radius(self) -> float: @@ -148,7 +122,7 @@ def radius(self) -> float: """ val = self._get_property("Radius") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def base_radius(self) -> float: @@ -158,7 +132,7 @@ def base_radius(self) -> float: """ val = self._get_property("Base Radius") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def center_radius(self) -> float: @@ -168,7 +142,7 @@ def center_radius(self) -> float: """ val = self._get_property("Center Radius") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def x_axis_ellipsoid_radius(self) -> float: @@ -178,7 +152,7 @@ def x_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("X Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def y_axis_ellipsoid_radius(self) -> float: @@ -188,7 +162,7 @@ def y_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Y Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def z_axis_ellipsoid_radius(self) -> float: @@ -198,7 +172,7 @@ def z_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Z Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def focal_length(self) -> float: @@ -208,16 +182,16 @@ def focal_length(self) -> float: """ val = self._get_property("Focal Length") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def offset(self) -> float: """Offset "Offset of parabolic reflector." - " """ + " """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def x_direction_taper(self) -> float: @@ -226,7 +200,7 @@ def x_direction_taper(self) -> float: "Value should be greater than 0." """ val = self._get_property("X Direction Taper") - return val + return val # type: ignore @property def y_direction_taper(self) -> float: @@ -235,7 +209,7 @@ def y_direction_taper(self) -> float: "Value should be greater than 0." """ val = self._get_property("Y Direction Taper") - return val + return val # type: ignore @property def prism_direction(self): @@ -244,7 +218,7 @@ def prism_direction(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Prism Direction") - return val + return val # type: ignore @property def closed_top(self) -> bool: @@ -253,7 +227,7 @@ def closed_top(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Closed Top") - return val + return val # type: ignore @property def closed_base(self) -> bool: @@ -262,7 +236,7 @@ def closed_base(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Closed Base") - return val + return val # type: ignore @property def mesh_density(self) -> int: @@ -271,7 +245,7 @@ def mesh_density(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Mesh Density") - return val + return val # type: ignore @property def use_symmetric_mesh(self) -> bool: @@ -280,7 +254,7 @@ def use_symmetric_mesh(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Symmetric Mesh") - return val + return val # type: ignore class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -290,10 +264,10 @@ class MeshOptionOption(Enum): def mesh_option(self) -> MeshOptionOption: """Mesh Option "Select from different meshing options." - " """ + " """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] - return val + return val # type: ignore @property def coating_index(self) -> int: @@ -302,7 +276,7 @@ def coating_index(self) -> int: "Value should be between 0 and 100000." """ val = self._get_property("Coating Index") - return val + return val # type: ignore @property def show_relative_coordinates(self) -> bool: @@ -311,7 +285,7 @@ def show_relative_coordinates(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Relative Coordinates") - return val + return val # type: ignore @property def position(self): @@ -320,7 +294,7 @@ def position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Position") - return val + return val # type: ignore @property def relative_position(self): @@ -329,7 +303,7 @@ def relative_position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Relative Position") - return val + return val # type: ignore class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -339,10 +313,10 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val + return val # type: ignore @property def orientation(self): @@ -351,7 +325,7 @@ def orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Orientation") - return val + return val # type: ignore @property def relative_orientation(self): @@ -360,7 +334,7 @@ def relative_orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Relative Orientation") - return val + return val # type: ignore @property def visible(self) -> bool: @@ -369,7 +343,7 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val + return val # type: ignore class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -381,10 +355,10 @@ class RenderModeOption(Enum): def render_mode(self) -> RenderModeOption: """Render Mode "Select drawing style for surfaces." - " """ + " """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] - return val + return val # type: ignore @property def show_axes(self) -> bool: @@ -393,7 +367,7 @@ def show_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Axes") - return val + return val # type: ignore @property def min(self): @@ -402,7 +376,7 @@ def min(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Min") - return val + return val # type: ignore @property def max(self): @@ -411,15 +385,15 @@ def max(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Max") - return val + return val # type: ignore @property def number_of_surfaces(self) -> int: """Number of Surfaces "Number of surfaces in the model." - " """ + " """ val = self._get_property("Number of Surfaces") - return val + return val # type: ignore @property def color(self): @@ -428,12 +402,13 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py index 85a92646227..23a1486e6e4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyCable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -39,7 +13,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val + return val # type: ignore @property def noise_temperature(self) -> float: @@ -48,15 +22,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -67,10 +41,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val + return val # type: ignore @property def length(self) -> float: @@ -80,7 +54,7 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def loss_per_length(self) -> float: @@ -89,7 +63,7 @@ def loss_per_length(self) -> float: "Value should be between 0 and 20." """ val = self._get_property("Loss Per Length") - return val + return val # type: ignore @property def measurement_length(self) -> float: @@ -99,7 +73,7 @@ def measurement_length(self) -> float: """ val = self._get_property("Measurement Length") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def resistive_loss_constant(self) -> float: @@ -108,7 +82,7 @@ def resistive_loss_constant(self) -> float: "Value should be between 0 and 2." """ val = self._get_property("Resistive Loss Constant") - return val + return val # type: ignore @property def dielectric_loss_constant(self) -> float: @@ -117,12 +91,13 @@ def dielectric_loss_constant(self) -> float: "Value should be between 0 and 1." """ val = self._get_property("Dielectric Loss Constant") - return val + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py index 3311c3b4584..8176f7949f0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyCirculator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -39,7 +13,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val + return val # type: ignore @property def noise_temperature(self) -> float: @@ -48,15 +22,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -66,10 +40,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val + return val # type: ignore class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -79,10 +53,10 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the circulator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val + return val # type: ignore @property def insertion_loss(self) -> float: @@ -91,7 +65,7 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val + return val # type: ignore @property def finite_reverse_isolation(self) -> bool: @@ -100,7 +74,7 @@ def finite_reverse_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Reverse Isolation") - return val + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -109,7 +83,7 @@ def reverse_isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Reverse Isolation") - return val + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -118,7 +92,7 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -127,7 +101,7 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -137,7 +111,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -147,7 +121,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -157,7 +131,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -167,12 +141,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py index 4d7ca736cc9..3480053174e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,13 +17,14 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @property def ports(self): """Ports "Maps each port in the link to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Ports") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py index d3a0840ed3f..83e581dab1e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyCouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +12,7 @@ def minimum_allowed_coupling(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Minimum Allowed Coupling") - return val + return val # type: ignore @property def global_default_coupling(self) -> float: @@ -46,12 +21,13 @@ def global_default_coupling(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Global Default Coupling") - return val + return val # type: ignore @property def antenna_tags(self) -> str: """Antenna Tags "All tags currently used by all antennas in the project." - " """ + " """ val = self._get_property("Antenna Tags") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py index 1d973305649..063fe16ad7d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,11 +12,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Value (dB): + "Value (dB): " Value should be between -1000 and 0." """ return self._get_table_data() @@ -53,23 +28,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -78,7 +53,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -87,12 +62,13 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py index eed94653c3e..4e3490c6084 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,9 +10,9 @@ def __init__(self, oDesign, result_id, node_id): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore class GroundPlaneNormalOption(Enum): X_AXIS = "X Axis" @@ -49,16 +23,17 @@ class GroundPlaneNormalOption(Enum): def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal "Specifies the axis of the normal to the ground plane." - " """ + " """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] - return val + return val # type: ignore @property def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." - " """ + " """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py index 47a5ae0e620..ed557720577 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,23 +18,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -69,7 +43,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -78,15 +52,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val + return val # type: ignore class TerrainCategoryOption(Enum): TYPE_A = "Type A" @@ -97,10 +71,10 @@ class TerrainCategoryOption(Enum): def terrain_category(self) -> TerrainCategoryOption: """Terrain Category "Specify the terrain category type for the Erceg model." - " """ + " """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] - return val + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -109,7 +83,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -118,7 +92,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -127,7 +101,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -139,10 +113,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val + return val # type: ignore @property def fading_availability(self) -> float: @@ -151,7 +125,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val + return val # type: ignore @property def std_deviation(self) -> float: @@ -160,7 +134,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -169,7 +143,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val + return val # type: ignore @property def rain_availability(self) -> float: @@ -178,7 +152,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val + return val # type: ignore @property def rain_rate(self) -> float: @@ -187,7 +161,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -196,7 +170,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -205,7 +179,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val + return val # type: ignore @property def temperature(self) -> float: @@ -214,7 +188,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -223,7 +197,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -232,4 +206,5 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py index c99aae23628..2fe1206a5b8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyFilter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -39,7 +13,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val + return val # type: ignore @property def noise_temperature(self) -> float: @@ -48,15 +22,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -71,10 +45,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val + return val # type: ignore @property def insertion_loss(self) -> float: @@ -83,7 +57,7 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val + return val # type: ignore @property def stop_band_attenuation(self) -> float: @@ -92,7 +66,7 @@ def stop_band_attenuation(self) -> float: "Value should be less than 200." """ val = self._get_property("Stop band Attenuation") - return val + return val # type: ignore @property def max_pass_band(self) -> float: @@ -102,7 +76,7 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def min_stop_band(self) -> float: @@ -112,7 +86,7 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def max_stop_band(self) -> float: @@ -122,7 +96,7 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def min_pass_band(self) -> float: @@ -132,7 +106,7 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -142,7 +116,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -152,7 +126,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -162,7 +136,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -172,67 +146,67 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Lower Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Lower Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Higher Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Higher Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency "Lowest tuned frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Lowest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency "Highest tuned frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Highest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def percent_bandwidth(self) -> float: @@ -241,7 +215,7 @@ def percent_bandwidth(self) -> float: "Value should be between 0.001 and 100." """ val = self._get_property("Percent Bandwidth") - return val + return val # type: ignore @property def shape_factor(self) -> float: @@ -250,12 +224,13 @@ def shape_factor(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("Shape Factor") - return val + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py index f8936afbd98..568e340e964 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,23 +18,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -69,7 +43,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -78,15 +52,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val + return val # type: ignore class EnvironmentOption(Enum): URBAN_MICROCELL = "Urban Microcell" @@ -97,10 +71,10 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment for the 5G channel model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val + return val # type: ignore @property def los(self) -> bool: @@ -109,7 +83,7 @@ def los(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("LOS") - return val + return val # type: ignore @property def include_bpl(self) -> bool: @@ -118,7 +92,7 @@ def include_bpl(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include BPL") - return val + return val # type: ignore class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -128,10 +102,10 @@ class NYUBPLModelOption(Enum): def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model "Specify the NYU Building Penetration Loss model." - " """ + " """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] - return val + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -140,7 +114,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -149,7 +123,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -158,7 +132,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -170,10 +144,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val + return val # type: ignore @property def fading_availability(self) -> float: @@ -182,7 +156,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val + return val # type: ignore @property def std_deviation(self) -> float: @@ -191,7 +165,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -200,7 +174,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val + return val # type: ignore @property def rain_availability(self) -> float: @@ -209,7 +183,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val + return val # type: ignore @property def rain_rate(self) -> float: @@ -218,7 +192,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -227,7 +201,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -236,7 +210,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val + return val # type: ignore @property def temperature(self) -> float: @@ -245,7 +219,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -254,7 +228,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -263,4 +237,5 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py index 036366d8cb0..d701023358c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,23 +18,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -69,7 +43,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -78,15 +52,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val + return val # type: ignore class EnvironmentOption(Enum): LARGE_CITY = "Large City" @@ -98,10 +72,10 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Hata model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -110,7 +84,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -119,7 +93,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -128,7 +102,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -140,10 +114,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val + return val # type: ignore @property def fading_availability(self) -> float: @@ -152,7 +126,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val + return val # type: ignore @property def std_deviation(self) -> float: @@ -161,7 +135,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -170,7 +144,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val + return val # type: ignore @property def rain_availability(self) -> float: @@ -179,7 +153,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val + return val # type: ignore @property def rain_rate(self) -> float: @@ -188,7 +162,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -197,7 +171,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -206,7 +180,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val + return val # type: ignore @property def temperature(self) -> float: @@ -215,7 +189,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -224,7 +198,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -233,4 +207,5 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py index ce4c29850a8..9f2a7484742 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,13 +13,13 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Power Loss Coefficient: + "Power Loss Coefficient: " Value should be between 0 and 100." - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): " Value should be between 0 and 1000." """ return self._get_table_data() @@ -57,23 +31,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -82,7 +56,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -91,15 +65,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val + return val # type: ignore class BuildingTypeOption(Enum): RESIDENTIAL_APARTMENT = "Residential Apartment" @@ -112,10 +86,10 @@ class BuildingTypeOption(Enum): def building_type(self) -> BuildingTypeOption: """Building Type "Specify the building type for the Indoor Propagation model." - " """ + " """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] - return val + return val # type: ignore @property def number_of_floors(self) -> int: @@ -124,7 +98,7 @@ def number_of_floors(self) -> int: "Value should be between 1 and 3." """ val = self._get_property("Number of Floors") - return val + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -133,7 +107,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -142,7 +116,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -151,7 +125,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -163,10 +137,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val + return val # type: ignore @property def fading_availability(self) -> float: @@ -175,7 +149,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val + return val # type: ignore @property def std_deviation(self) -> float: @@ -184,7 +158,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -193,7 +167,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val + return val # type: ignore @property def rain_availability(self) -> float: @@ -202,7 +176,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val + return val # type: ignore @property def rain_rate(self) -> float: @@ -211,7 +185,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -220,7 +194,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -229,7 +203,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val + return val # type: ignore @property def temperature(self) -> float: @@ -238,7 +212,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -247,7 +221,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -256,4 +230,5 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py index a4142cac7aa..7a74fb45bb4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyIsolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -39,7 +13,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val + return val # type: ignore @property def noise_temperature(self) -> float: @@ -48,15 +22,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -66,10 +40,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val + return val # type: ignore class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -79,10 +53,10 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the isolator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val + return val # type: ignore @property def insertion_loss(self) -> float: @@ -91,7 +65,7 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val + return val # type: ignore @property def finite_reverse_isolation(self) -> bool: @@ -100,7 +74,7 @@ def finite_reverse_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Reverse Isolation") - return val + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -109,7 +83,7 @@ def reverse_isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Reverse Isolation") - return val + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -118,7 +92,7 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -127,7 +101,7 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -137,7 +111,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -147,7 +121,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -157,7 +131,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -167,12 +141,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py index 5e19f891681..d61148a11a9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,23 +18,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -69,7 +43,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -78,15 +52,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val + return val # type: ignore class EnvironmentOption(Enum): FREE_SPACE = "Free Space" @@ -101,10 +75,10 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Log Distance model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val + return val # type: ignore @property def path_loss_exponent(self) -> float: @@ -113,7 +87,7 @@ def path_loss_exponent(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Path Loss Exponent") - return val + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -122,7 +96,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -131,7 +105,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -140,7 +114,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -152,10 +126,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val + return val # type: ignore @property def fading_availability(self) -> float: @@ -164,7 +138,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val + return val # type: ignore @property def std_deviation(self) -> float: @@ -173,7 +147,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -182,7 +156,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val + return val # type: ignore @property def rain_availability(self) -> float: @@ -191,7 +165,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val + return val # type: ignore @property def rain_rate(self) -> float: @@ -200,7 +174,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -209,7 +183,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -218,7 +192,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val + return val # type: ignore @property def temperature(self) -> float: @@ -227,7 +201,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -236,7 +210,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -245,4 +219,5 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py index 971b0323902..608fb40dfc9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyMultiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -39,7 +13,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val + return val # type: ignore @property def noise_temperature(self) -> float: @@ -48,15 +22,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore class TypeOption(Enum): BY_PASS_BAND = "By Pass Band" @@ -66,10 +40,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val + return val # type: ignore class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -79,10 +53,10 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the multiplexer.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val + return val # type: ignore @property def flip_ports_vertically(self) -> bool: @@ -91,21 +65,22 @@ def flip_ports_vertically(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Flip Ports Vertically") - return val + return val # type: ignore @property def ports(self): """Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ + " """ val = self._get_property("Ports") - return val + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py index 005d0bdb544..15d0b89b401 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -47,10 +21,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val + return val # type: ignore @property def filename(self) -> str: @@ -59,7 +33,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val + return val # type: ignore @property def insertion_loss(self) -> float: @@ -68,7 +42,7 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val + return val # type: ignore @property def stop_band_attenuation(self) -> float: @@ -77,7 +51,7 @@ def stop_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Stop band Attenuation") - return val + return val # type: ignore @property def max_pass_band(self) -> float: @@ -87,7 +61,7 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def min_stop_band(self) -> float: @@ -97,7 +71,7 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def max_stop_band(self) -> float: @@ -107,7 +81,7 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def min_pass_band(self) -> float: @@ -117,7 +91,7 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -127,7 +101,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -137,7 +111,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -147,7 +121,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -157,12 +131,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py index b5565c86e05..cfcb4d74fa9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyPowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -39,7 +13,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val + return val # type: ignore @property def noise_temperature(self) -> float: @@ -48,15 +22,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -67,10 +41,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val + return val # type: ignore class OrientationOption(Enum): DIVIDER = "Divider" @@ -80,10 +54,10 @@ class OrientationOption(Enum): def orientation(self) -> OrientationOption: """Orientation "Defines the orientation of the Power Divider.." - " """ + " """ val = self._get_property("Orientation") val = self.OrientationOption[val] - return val + return val # type: ignore @property def insertion_loss_above_ideal(self) -> float: @@ -92,7 +66,7 @@ def insertion_loss_above_ideal(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss Above Ideal") - return val + return val # type: ignore @property def finite_isolation(self) -> bool: @@ -101,7 +75,7 @@ def finite_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Isolation") - return val + return val # type: ignore @property def isolation(self) -> float: @@ -110,7 +84,7 @@ def isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Isolation") - return val + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -119,7 +93,7 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -128,7 +102,7 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -138,7 +112,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -148,7 +122,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -158,7 +132,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -168,12 +142,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py index 22e6f31f4a3..d67dcbb9cfa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,23 +18,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -69,7 +43,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -78,15 +52,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -95,7 +69,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -104,7 +78,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -113,7 +87,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -125,10 +99,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val + return val # type: ignore @property def fading_availability(self) -> float: @@ -137,7 +111,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val + return val # type: ignore @property def std_deviation(self) -> float: @@ -146,7 +120,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -155,7 +129,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val + return val # type: ignore @property def rain_availability(self) -> float: @@ -164,7 +138,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val + return val # type: ignore @property def rain_rate(self) -> float: @@ -173,7 +147,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -182,7 +156,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -191,7 +165,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val + return val # type: ignore @property def temperature(self) -> float: @@ -200,7 +174,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -209,7 +183,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -218,4 +192,5 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py index 194dd1ea71e..4608cb161e1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyRadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,17 +12,18 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Name: - " "Type: - " """ + "Name: + " "Type: + " """ return self._get_table_data() @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py index 6dc2c96f7a7..b50d25ba1cd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyRfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,7 +17,7 @@ def enable_passive_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Passive Noise") - return val + return val # type: ignore @property def enforce_thermal_noise_floor(self) -> bool: @@ -51,4 +26,5 @@ def enforce_thermal_noise_floor(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enforce Thermal Noise Floor") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py index 40310bfbc29..688003dee4e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyRxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,7 +18,7 @@ def file(self) -> str: "Value should be a full file path." """ val = self._get_property("File") - return val + return val # type: ignore @property def source_file(self) -> str: @@ -53,16 +27,16 @@ def source_file(self) -> str: "Value should be a full file path." """ val = self._get_property("Source File") - return val + return val # type: ignore @property def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore class MeasurementModeOption(Enum): AUDIO_SINAD = "Audio SINAD" @@ -73,10 +47,10 @@ class MeasurementModeOption(Enum): def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode "Defines the mode for the receiver measurement." - " """ + " """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] - return val + return val # type: ignore @property def sinad_threshold(self) -> float: @@ -85,7 +59,7 @@ def sinad_threshold(self) -> float: "Value should be between 5 and 20." """ val = self._get_property("SINAD Threshold") - return val + return val # type: ignore @property def gps_cnr_threshold(self) -> float: @@ -94,7 +68,7 @@ def gps_cnr_threshold(self) -> float: "Value should be between 15 and 30." """ val = self._get_property("GPS CNR Threshold") - return val + return val # type: ignore @property def ber_threshold(self) -> float: @@ -103,7 +77,7 @@ def ber_threshold(self) -> float: "Value should be between -12 and -1." """ val = self._get_property("BER Threshold") - return val + return val # type: ignore @property def default_intended_power(self) -> bool: @@ -112,7 +86,7 @@ def default_intended_power(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Default Intended Power") - return val + return val # type: ignore @property def intended_signal_power(self) -> float: @@ -121,7 +95,7 @@ def intended_signal_power(self) -> float: "Value should be between -140 and -50." """ val = self._get_property("Intended Signal Power") - return val + return val # type: ignore @property def freq_deviation(self) -> float: @@ -131,7 +105,7 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def modulation_depth(self) -> float: @@ -140,7 +114,7 @@ def modulation_depth(self) -> float: "Value should be between 10 and 100." """ val = self._get_property("Modulation Depth") - return val + return val # type: ignore @property def measure_selectivity(self) -> bool: @@ -149,7 +123,7 @@ def measure_selectivity(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Measure Selectivity") - return val + return val # type: ignore @property def measure_mixer_products(self) -> bool: @@ -158,7 +132,7 @@ def measure_mixer_products(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Measure Mixer Products") - return val + return val # type: ignore @property def max_rf_order(self) -> int: @@ -167,7 +141,7 @@ def max_rf_order(self) -> int: "Value should be greater than 1." """ val = self._get_property("Max RF Order") - return val + return val # type: ignore @property def max_lo_order(self) -> int: @@ -176,7 +150,7 @@ def max_lo_order(self) -> int: "Value should be greater than 1." """ val = self._get_property("Max LO Order") - return val + return val # type: ignore @property def include_if(self) -> bool: @@ -185,7 +159,7 @@ def include_if(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include IF") - return val + return val # type: ignore @property def measure_saturation(self) -> bool: @@ -194,7 +168,7 @@ def measure_saturation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Measure Saturation") - return val + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -203,7 +177,7 @@ def use_ams_limits(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use AMS Limits") - return val + return val # type: ignore @property def start_frequency(self) -> float: @@ -213,7 +187,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def stop_frequency(self) -> float: @@ -223,7 +197,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def samples(self) -> int: @@ -232,7 +206,7 @@ def samples(self) -> int: "Value should be between 2 and 100." """ val = self._get_property("Samples") - return val + return val # type: ignore @property def exclude_mixer_products_below_noise(self) -> bool: @@ -241,4 +215,5 @@ def exclude_mixer_products_below_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Exclude Mixer Products Below Noise") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py index 0fd1681a8fd..214f32e19e5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -46,10 +20,10 @@ class MixerProductTaperOption(Enum): def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper "Taper for setting amplitude of mixer products." - " """ + " """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] - return val + return val # type: ignore @property def mixer_product_susceptibility(self) -> float: @@ -58,7 +32,7 @@ def mixer_product_susceptibility(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Mixer Product Susceptibility") - return val + return val # type: ignore @property def spurious_rejection(self) -> float: @@ -67,7 +41,7 @@ def spurious_rejection(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Spurious Rejection") - return val + return val # type: ignore @property def minimum_tuning_frequency(self) -> float: @@ -77,7 +51,7 @@ def minimum_tuning_frequency(self) -> float: """ val = self._get_property("Minimum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def maximum_tuning_frequency(self) -> float: @@ -87,7 +61,7 @@ def maximum_tuning_frequency(self) -> float: """ val = self._get_property("Maximum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def mixer_product_slope(self) -> float: @@ -96,7 +70,7 @@ def mixer_product_slope(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Mixer Product Slope") - return val + return val # type: ignore @property def mixer_product_intercept(self) -> float: @@ -105,7 +79,7 @@ def mixer_product_intercept(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Mixer Product Intercept") - return val + return val # type: ignore @property def bandwidth_80_db(self) -> float: @@ -115,7 +89,7 @@ def bandwidth_80_db(self) -> float: """ val = self._get_property("Bandwidth 80 dB") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def image_rejection(self) -> float: @@ -124,7 +98,7 @@ def image_rejection(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Image Rejection") - return val + return val # type: ignore @property def maximum_rf_harmonic_order(self) -> int: @@ -133,7 +107,7 @@ def maximum_rf_harmonic_order(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Maximum RF Harmonic Order") - return val + return val # type: ignore @property def maximum_lo_harmonic_order(self) -> int: @@ -142,7 +116,7 @@ def maximum_lo_harmonic_order(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Maximum LO Harmonic Order") - return val + return val # type: ignore class MixingModeOption(Enum): LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" @@ -153,10 +127,10 @@ class MixingModeOption(Enum): def mixing_mode(self) -> MixingModeOption: """Mixing Mode "Specifies whether the IF frequency is > or < RF channel frequency." - " """ + " """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] - return val + return val # type: ignore @property def first_if_frequency(self): @@ -165,16 +139,16 @@ def first_if_frequency(self): "Value should be a mathematical expression." """ val = self._get_property("First IF Frequency") - return val + return val # type: ignore @property def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." - " """ + " """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore class UseHighLOOption(Enum): ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" @@ -184,10 +158,10 @@ class UseHighLOOption(Enum): def use_high_lo(self) -> UseHighLOOption: """Use High LO "Use High LO above/below the transition frequency." - " """ + " """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] - return val + return val # type: ignore class MixerProductTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -197,7 +171,8 @@ class MixerProductTableUnitsOption(Enum): def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units "Specifies the units for the Mixer Products." - " """ + " """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py index 74e76d2d9ac..fa9ae9c40bb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -34,3 +9,4 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py index 37665e0f6ef..2b48bef870a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,4 +17,5 @@ def use_arithmetic_mean(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Arithmetic Mean") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py index 1b7f8f44df2..3269c78487f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyRxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,13 +13,13 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -58,7 +32,8 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py index 13d383c2d88..bc1d216c787 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -47,19 +21,19 @@ class SensitivityUnitsOption(Enum): def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units "Units to use for the Rx Sensitivity." - " """ + " """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] - return val + return val # type: ignore @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr "Received signal power level at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ val = self._get_property("Min. Receive Signal Pwr ") - return val + return val # type: ignore @property def snr_at_rx_signal_pwr(self) -> float: @@ -68,7 +42,7 @@ def snr_at_rx_signal_pwr(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("SNR at Rx Signal Pwr") - return val + return val # type: ignore @property def processing_gain(self) -> float: @@ -77,7 +51,7 @@ def processing_gain(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Processing Gain") - return val + return val # type: ignore @property def apply_pg_to_narrowband_only(self) -> bool: @@ -86,7 +60,7 @@ def apply_pg_to_narrowband_only(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Apply PG to Narrowband Only") - return val + return val # type: ignore @property def saturation_level(self) -> float: @@ -96,7 +70,7 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @property def rx_noise_figure(self) -> float: @@ -105,26 +79,26 @@ def rx_noise_figure(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rx Noise Figure") - return val + return val # type: ignore @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." "Value should be between -1000 and 1000." """ val = self._get_property("Receiver Sensitivity ") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity "SNR or SINAD at the specified sensitivity level." "Value should be between -1000 and 1000." """ val = self._get_property("SNR/SINAD at Sensitivity ") - return val + return val # type: ignore @property def perform_rx_intermod_analysis(self) -> bool: @@ -133,7 +107,7 @@ def perform_rx_intermod_analysis(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Perform Rx Intermod Analysis") - return val + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -143,17 +117,17 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." "Value should be between -1000 and 1000." """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -163,7 +137,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -172,4 +146,5 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py index 7ed82bcdef5..cded830c4b1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlySamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,11 +13,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Min: + "Min: " Value should be greater than 1." - "Max: + "Max: " Value should be greater than 1." """ return self._get_table_data() @@ -57,10 +31,10 @@ class SamplingTypeOption(Enum): def sampling_type(self) -> SamplingTypeOption: """Sampling Type "Sampling to apply to this configuration." - " """ + " """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] - return val + return val # type: ignore @property def specify_percentage(self) -> bool: @@ -69,7 +43,7 @@ def specify_percentage(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Specify Percentage") - return val + return val # type: ignore @property def percentage_of_channels(self) -> float: @@ -78,7 +52,7 @@ def percentage_of_channels(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("Percentage of Channels") - return val + return val # type: ignore @property def max__channelsrangeband(self) -> int: @@ -87,7 +61,7 @@ def max__channelsrangeband(self) -> int: "Value should be between 1 and 100000." """ val = self._get_property("Max # Channels/Range/Band") - return val + return val # type: ignore @property def seed(self) -> int: @@ -96,28 +70,29 @@ def seed(self) -> int: "Value should be greater than 0." """ val = self._get_property("Seed") - return val + return val # type: ignore @property def total_tx_channels(self) -> int: """Total Tx Channels "Total number of transmit channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Tx Channels") - return val + return val # type: ignore @property def total_rx_channels(self) -> int: """Total Rx Channels "Total number of receive channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Rx Channels") - return val + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py index 1f8e5ba8384..82aa04bfa3b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlySceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,7 +18,7 @@ def show_relative_coordinates(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Relative Coordinates") - return val + return val # type: ignore @property def position(self): @@ -53,7 +27,7 @@ def position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Position") - return val + return val # type: ignore @property def relative_position(self): @@ -62,7 +36,7 @@ def relative_position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Relative Position") - return val + return val # type: ignore class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -72,10 +46,10 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val + return val # type: ignore @property def orientation(self): @@ -84,7 +58,7 @@ def orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Orientation") - return val + return val # type: ignore @property def relative_orientation(self): @@ -93,7 +67,7 @@ def relative_orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Relative Orientation") - return val + return val # type: ignore @property def show_axes(self) -> bool: @@ -102,7 +76,7 @@ def show_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Axes") - return val + return val # type: ignore @property def box_color(self): @@ -111,12 +85,13 @@ def box_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Box Color") - return val + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py index 037d5137cc7..61b08bcbd58 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,7 +17,7 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -51,7 +26,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -60,12 +35,13 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py index 66d32dfb0ee..9c4b7a0a0aa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlySolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,4 +17,5 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py index bf6da34921a..541d65c4d2d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -39,7 +13,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val + return val # type: ignore @property def noise_temperature(self) -> float: @@ -48,15 +22,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore class TxPortOption(Enum): PORT_1 = "Port 1" @@ -66,10 +40,10 @@ class TxPortOption(Enum): def tx_port(self) -> TxPortOption: """Tx Port "Specifies which port on the TR Switch is part of the Tx path.." - " """ + " """ val = self._get_property("Tx Port") val = self.TxPortOption[val] - return val + return val # type: ignore class CommonPortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -79,10 +53,10 @@ class CommonPortLocationOption(Enum): def common_port_location(self) -> CommonPortLocationOption: """Common Port Location "Defines the orientation of the tr switch.." - " """ + " """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] - return val + return val # type: ignore @property def insertion_loss(self) -> float: @@ -91,7 +65,7 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val + return val # type: ignore @property def finite_isolation(self) -> bool: @@ -100,7 +74,7 @@ def finite_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Isolation") - return val + return val # type: ignore @property def isolation(self) -> float: @@ -109,7 +83,7 @@ def isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Isolation") - return val + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -118,7 +92,7 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -127,7 +101,7 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -137,7 +111,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -147,7 +121,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -157,7 +131,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -167,4 +141,5 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py index 29f9c65eff8..bf841555985 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTerminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -39,7 +13,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val + return val # type: ignore @property def noise_temperature(self) -> float: @@ -48,15 +22,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -66,10 +40,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val + return val # type: ignore class PortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -79,10 +53,10 @@ class PortLocationOption(Enum): def port_location(self) -> PortLocationOption: """Port Location "Defines the orientation of the terminator.." - " """ + " """ val = self._get_property("Port Location") val = self.PortLocationOption[val] - return val + return val # type: ignore @property def vswr(self) -> float: @@ -91,12 +65,13 @@ def vswr(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("VSWR") - return val + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py index ee1f0627ffa..0f4b5804ec3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,7 +17,7 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -51,7 +26,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -60,15 +35,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val + return val # type: ignore @property def filename(self) -> str: @@ -77,15 +52,15 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val + return val # type: ignore @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File "Coupling data generated by Savant and exported as a matched file." - " """ + " """ val = self._get_property("Savant Matched Coupling File") - return val + return val # type: ignore @property def enable_em_isolation(self) -> bool: @@ -94,21 +69,22 @@ def enable_em_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable EM Isolation") - return val + return val # type: ignore @property def port_antenna_assignment(self): """Port-Antenna Assignment "Maps each port in the coupling file to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Port-Antenna Assignment") - return val + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py index c238bee432f..ca94b1571bb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,23 +18,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -69,7 +43,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -78,15 +52,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val + return val # type: ignore @property def ground_reflection_coeff(self) -> float: @@ -95,7 +69,7 @@ def ground_reflection_coeff(self) -> float: "Value should be between -100 and 100." """ val = self._get_property("Ground Reflection Coeff.") - return val + return val # type: ignore @property def pointspeak(self) -> int: @@ -104,7 +78,7 @@ def pointspeak(self) -> int: "Value should be between 3 and 100." """ val = self._get_property("Points/Peak") - return val + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -113,7 +87,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -122,7 +96,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -131,7 +105,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -143,10 +117,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val + return val # type: ignore @property def fading_availability(self) -> float: @@ -155,7 +129,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val + return val # type: ignore @property def std_deviation(self) -> float: @@ -164,7 +138,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -173,7 +147,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val + return val # type: ignore @property def rain_availability(self) -> float: @@ -182,7 +156,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val + return val # type: ignore @property def rain_rate(self) -> float: @@ -191,7 +165,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -200,7 +174,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -209,7 +183,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val + return val # type: ignore @property def temperature(self) -> float: @@ -218,7 +192,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -227,7 +201,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -236,4 +210,5 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py index eb9a34196ad..d905f9e0157 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,9 +15,9 @@ def parent(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): " Value should be between -200 and 150." """ return self._get_table_data() @@ -58,10 +32,10 @@ class NoiseBehaviorOption(Enum): def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior "Specifies the behavior of the parametric noise profile." - " """ + " """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] - return val + return val # type: ignore @property def use_log_linear_interpolation(self) -> bool: @@ -70,4 +44,5 @@ def use_log_linear_interpolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Log-Linear Interpolation") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py index 10c3e80efda..834ecd25dbe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -45,7 +19,8 @@ class HarmonicTableUnitsOption(Enum): def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units "Specifies the units for the Harmonics." - " """ + " """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py index b3c1a0a08fb..e2985b56844 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyTxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,7 +17,7 @@ def file(self) -> str: "Value should be a full file path." """ val = self._get_property("File") - return val + return val # type: ignore @property def source_file(self) -> str: @@ -51,16 +26,16 @@ def source_file(self) -> str: "Value should be a full file path." """ val = self._get_property("Source File") - return val + return val # type: ignore @property def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -69,7 +44,7 @@ def use_ams_limits(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use AMS Limits") - return val + return val # type: ignore @property def start_frequency(self) -> float: @@ -79,7 +54,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def stop_frequency(self) -> float: @@ -89,7 +64,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def exclude_harmonics_below_noise(self) -> bool: @@ -98,4 +73,5 @@ def exclude_harmonics_below_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Exclude Harmonics Below Noise") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py index 0750e4c1e63..214bd0e939d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -45,16 +19,17 @@ class NarrowbandBehaviorOption(Enum): def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." - " """ + " """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] - return val + return val # type: ignore @property def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - " """ + " """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py index 7dc5a453f99..069bebc557e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyTxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,10 +14,10 @@ def parent(self): def output_voltage_peak(self) -> float: """Output Voltage Peak "Output High Voltage Level: maximum voltage of the digital signal." - " """ + " """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") - return val + return val # type: ignore @property def include_phase_noise(self) -> bool: @@ -51,7 +26,7 @@ def include_phase_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Phase Noise") - return val + return val # type: ignore @property def tx_broadband_noise(self) -> float: @@ -60,7 +35,7 @@ def tx_broadband_noise(self) -> float: "Value should be less than 1000." """ val = self._get_property("Tx Broadband Noise") - return val + return val # type: ignore @property def perform_tx_intermod_analysis(self) -> bool: @@ -69,7 +44,7 @@ def perform_tx_intermod_analysis(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Perform Tx Intermod Analysis") - return val + return val # type: ignore @property def internal_amp_gain(self) -> float: @@ -78,7 +53,7 @@ def internal_amp_gain(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Internal Amp Gain") - return val + return val # type: ignore @property def noise_figure(self) -> float: @@ -87,7 +62,7 @@ def noise_figure(self) -> float: "Value should be between 0 and 50." """ val = self._get_property("Noise Figure") - return val + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -97,17 +72,17 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -117,7 +92,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -126,7 +101,7 @@ def reverse_isolation(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Reverse Isolation") - return val + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -135,4 +110,5 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py index c55752fe903..da750c2f9e5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -45,10 +19,10 @@ class SpectrumTypeOption(Enum): def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type "Specifies EMI Margins to calculate." - " """ + " """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] - return val + return val # type: ignore class TxPowerOption(Enum): PEAK_POWER = "Peak Power" @@ -58,10 +32,10 @@ class TxPowerOption(Enum): def tx_power(self) -> TxPowerOption: """Tx Power "Method used to specify the power." - " """ + " """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] - return val + return val # type: ignore @property def peak_power(self) -> float: @@ -71,7 +45,7 @@ def peak_power(self) -> float: """ val = self._get_property("Peak Power") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @property def average_power(self) -> float: @@ -81,7 +55,7 @@ def average_power(self) -> float: """ val = self._get_property("Average Power") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @property def include_phase_noise(self) -> bool: @@ -90,7 +64,7 @@ def include_phase_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Phase Noise") - return val + return val # type: ignore @property def tx_broadband_noise(self) -> float: @@ -99,7 +73,7 @@ def tx_broadband_noise(self) -> float: "Value should be less than 1000." """ val = self._get_property("Tx Broadband Noise") - return val + return val # type: ignore class HarmonicTaperOption(Enum): CONSTANT = "Constant" @@ -111,10 +85,10 @@ class HarmonicTaperOption(Enum): def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper "Taper type used to set amplitude of harmonics." - " """ + " """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] - return val + return val # type: ignore @property def harmonic_amplitude(self) -> float: @@ -123,7 +97,7 @@ def harmonic_amplitude(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Harmonic Amplitude") - return val + return val # type: ignore @property def harmonic_slope(self) -> float: @@ -132,7 +106,7 @@ def harmonic_slope(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Harmonic Slope") - return val + return val # type: ignore @property def harmonic_intercept(self) -> float: @@ -141,7 +115,7 @@ def harmonic_intercept(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Harmonic Intercept") - return val + return val # type: ignore @property def enable_harmonic_bw_expansion(self) -> bool: @@ -150,7 +124,7 @@ def enable_harmonic_bw_expansion(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Harmonic BW Expansion") - return val + return val # type: ignore @property def number_of_harmonics(self) -> int: @@ -159,7 +133,7 @@ def number_of_harmonics(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Number of Harmonics") - return val + return val # type: ignore @property def second_harmonic_level(self) -> float: @@ -168,7 +142,7 @@ def second_harmonic_level(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Second Harmonic Level") - return val + return val # type: ignore @property def third_harmonic_level(self) -> float: @@ -177,7 +151,7 @@ def third_harmonic_level(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Third Harmonic Level") - return val + return val # type: ignore @property def other_harmonic_levels(self) -> float: @@ -186,7 +160,7 @@ def other_harmonic_levels(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Other Harmonic Levels") - return val + return val # type: ignore @property def perform_tx_intermod_analysis(self) -> bool: @@ -195,7 +169,7 @@ def perform_tx_intermod_analysis(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Perform Tx Intermod Analysis") - return val + return val # type: ignore @property def internal_amp_gain(self) -> float: @@ -204,7 +178,7 @@ def internal_amp_gain(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Internal Amp Gain") - return val + return val # type: ignore @property def noise_figure(self) -> float: @@ -213,7 +187,7 @@ def noise_figure(self) -> float: "Value should be between 0 and 50." """ val = self._get_property("Noise Figure") - return val + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -223,17 +197,17 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -243,7 +217,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -252,7 +226,7 @@ def reverse_isolation(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Reverse Isolation") - return val + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -261,4 +235,5 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py index 27dcdbcaa4c..0bff44eda73 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,13 +13,13 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -58,7 +32,8 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py index 2a3c3c9f26b..e5e38f684b0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,23 +18,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -69,7 +43,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -78,15 +52,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val + return val # type: ignore class PathLossTypeOption(Enum): LOS_URBAN_CANYON = "LOS (Urban Canyon)" @@ -96,10 +70,10 @@ class PathLossTypeOption(Enum): def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type "Specify LOS vs NLOS for the Walfisch-Ikegami model." - " """ + " """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] - return val + return val # type: ignore class EnvironmentOption(Enum): DENSE_METRO = "Dense Metro" @@ -109,10 +83,10 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Walfisch model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val + return val # type: ignore @property def roof_height(self) -> float: @@ -122,7 +96,7 @@ def roof_height(self) -> float: """ val = self._get_property("Roof Height") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def distance_between_buildings(self) -> float: @@ -132,7 +106,7 @@ def distance_between_buildings(self) -> float: """ val = self._get_property("Distance Between Buildings") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def street_width(self) -> float: @@ -142,7 +116,7 @@ def street_width(self) -> float: """ val = self._get_property("Street Width") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @property def incidence_angle(self) -> float: @@ -151,7 +125,7 @@ def incidence_angle(self) -> float: "Value should be between 0 and 90." """ val = self._get_property("Incidence Angle") - return val + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -160,7 +134,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -169,7 +143,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -178,7 +152,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -190,10 +164,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val + return val # type: ignore @property def fading_availability(self) -> float: @@ -202,7 +176,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val + return val # type: ignore @property def std_deviation(self) -> float: @@ -211,7 +185,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -220,7 +194,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val + return val # type: ignore @property def rain_availability(self) -> float: @@ -229,7 +203,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val + return val # type: ignore @property def rain_rate(self) -> float: @@ -238,7 +212,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -247,7 +221,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -256,7 +230,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val + return val # type: ignore @property def temperature(self) -> float: @@ -265,7 +239,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -274,7 +248,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -283,4 +257,5 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py index 95490724b46..3f88bef2116 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyWaveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,9 +15,9 @@ def parent(self): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") - return val + return val # type: ignore class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" @@ -56,10 +30,10 @@ class WaveformOption(Enum): def waveform(self) -> WaveformOption: """Waveform "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Waveform") val = self.WaveformOption[val] - return val + return val # type: ignore @property def start_frequency(self) -> float: @@ -69,7 +43,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def stop_frequency(self) -> float: @@ -79,7 +53,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def channel_spacing(self) -> float: @@ -89,7 +63,7 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def clock_duty_cycle(self) -> float: @@ -98,7 +72,7 @@ def clock_duty_cycle(self) -> float: "Value should be between 0.001 and 1." """ val = self._get_property("Clock Duty Cycle") - return val + return val # type: ignore @property def clock_risefall_time(self) -> float: @@ -108,7 +82,7 @@ def clock_risefall_time(self) -> float: """ val = self._get_property("Clock Rise/Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val + return val # type: ignore class SpreadingTypeOption(Enum): LOW_SPREAD = "Low Spread" @@ -119,10 +93,10 @@ class SpreadingTypeOption(Enum): def spreading_type(self) -> SpreadingTypeOption: """Spreading Type "Type of spreading employed by the Spread Spectrum Clock." - " """ + " """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] - return val + return val # type: ignore @property def spread_percentage(self) -> float: @@ -131,7 +105,7 @@ def spread_percentage(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Spread Percentage") - return val + return val # type: ignore @property def imported_spectrum(self) -> str: @@ -139,15 +113,15 @@ def imported_spectrum(self) -> str: "Value should be a full file path." """ val = self._get_property("Imported Spectrum") - return val + return val # type: ignore @property def raw_data_format(self) -> str: """Raw Data Format "Format of the imported raw data." - " """ + " """ val = self._get_property("Raw Data Format") - return val + return val # type: ignore @property def system_impedance(self) -> float: @@ -157,7 +131,7 @@ def system_impedance(self) -> float: """ val = self._get_property("System Impedance") val = self._convert_from_internal_units(float(val), "Resistance") - return val + return val # type: ignore @property def advanced_extraction_params(self) -> bool: @@ -166,7 +140,7 @@ def advanced_extraction_params(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Advanced Extraction Params") - return val + return val # type: ignore @property def nb_window_size(self) -> float: @@ -175,7 +149,7 @@ def nb_window_size(self) -> float: "Value should be greater than 3." """ val = self._get_property("NB Window Size") - return val + return val # type: ignore @property def bb_smoothing_factor(self) -> float: @@ -184,7 +158,7 @@ def bb_smoothing_factor(self) -> float: "Value should be greater than 1." """ val = self._get_property("BB Smoothing Factor") - return val + return val # type: ignore @property def nb_detector_threshold(self) -> float: @@ -193,7 +167,7 @@ def nb_detector_threshold(self) -> float: "Value should be between 2 and 10." """ val = self._get_property("NB Detector Threshold") - return val + return val # type: ignore class AlgorithmOption(Enum): FFT = "FFT" @@ -203,10 +177,10 @@ class AlgorithmOption(Enum): def algorithm(self) -> AlgorithmOption: """Algorithm "Algorithm used to transform the imported time domain spectrum." - " """ + " """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] - return val + return val # type: ignore @property def start_time(self) -> float: @@ -216,16 +190,16 @@ def start_time(self) -> float: """ val = self._get_property("Start Time") val = self._convert_from_internal_units(float(val), "Time") - return val + return val # type: ignore @property def stop_time(self) -> float: """Stop Time "Final time of the imported time domain spectrum." - " """ + " """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") - return val + return val # type: ignore @property def max_frequency(self) -> float: @@ -235,7 +209,7 @@ def max_frequency(self) -> float: """ val = self._get_property("Max Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" @@ -252,10 +226,10 @@ class WindowTypeOption(Enum): def window_type(self) -> WindowTypeOption: """Window Type "Windowing scheme used for importing time domain spectrum." - " """ + " """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] - return val + return val # type: ignore @property def kaiser_parameter(self) -> float: @@ -264,7 +238,7 @@ def kaiser_parameter(self) -> float: "Value should be greater than 0." """ val = self._get_property("Kaiser Parameter") - return val + return val # type: ignore @property def adjust_coherent_gain(self) -> bool: @@ -273,7 +247,7 @@ def adjust_coherent_gain(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adjust Coherent Gain") - return val + return val # type: ignore @property def data_rate(self) -> float: @@ -283,7 +257,7 @@ def data_rate(self) -> float: """ val = self._get_property("Data Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val + return val # type: ignore @property def num_of_bits(self) -> int: @@ -292,7 +266,7 @@ def num_of_bits(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Num of Bits") - return val + return val # type: ignore @property def use_envelope(self) -> bool: @@ -301,7 +275,7 @@ def use_envelope(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Envelope") - return val + return val # type: ignore @property def min_ptsnull(self) -> int: @@ -310,7 +284,7 @@ def min_ptsnull(self) -> int: "Value should be between 2 and 50." """ val = self._get_property("Min Pts/Null") - return val + return val # type: ignore @property def delay_skew(self) -> float: @@ -320,4 +294,5 @@ def delay_skew(self) -> float: """ val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py index aa77927cb5d..189cac658b7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ResultPlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,13 +18,15 @@ def export_model(self, file_name): def title(self) -> str: """Title "Enter title at the top of the plot, room will be made for it." - " """ + " """ val = self._get_property("Title") - return val + return val # type: ignore @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title={value}"]) @property def title_font(self): @@ -59,11 +35,13 @@ def title_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Title Font") - return val + return val # type: ignore @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -72,11 +50,13 @@ def show_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Legend") - return val + return val # type: ignore @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Legend={value}"]) @property def legend_font(self): @@ -85,11 +65,13 @@ def legend_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Legend Font") - return val + return val # type: ignore @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Legend Font={value}"]) @property def show_emi_thresholds(self) -> bool: @@ -98,11 +80,13 @@ def show_emi_thresholds(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show EMI Thresholds") - return val + return val # type: ignore @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show EMI Thresholds={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show EMI Thresholds={value}"]) @property def display_cad_overlay(self) -> bool: @@ -111,11 +95,13 @@ def display_cad_overlay(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Display CAD Overlay") - return val + return val # type: ignore @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -124,23 +110,27 @@ def opacity(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Opacity") - return val + return val # type: ignore @opacity.setter - def opacity(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) + def opacity(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset "Adjust vertical position of CAD model overlay." - " """ + " """ val = self._get_property("Vertical Offset") - return val + return val # type: ignore @vertical_offset.setter - def vertical_offset(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) + def vertical_offset(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -149,11 +139,13 @@ def range_axis_rotation(self) -> float: "Value should be between -180 and 180." """ val = self._get_property("Range Axis Rotation") - return val + return val # type: ignore @range_axis_rotation.setter - def range_axis_rotation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -162,59 +154,69 @@ def lock_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Lock Axes") - return val + return val # type: ignore @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min "Set lower extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Min") - return val + return val # type: ignore @x_axis_min.setter - def x_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) + def x_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max "Set upper extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Max") - return val + return val # type: ignore @x_axis_max.setter - def x_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) + def x_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min "Set lower extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Min") - return val + return val # type: ignore @y_axis_min.setter - def y_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) + def y_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max "Set upper extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Max") - return val + return val # type: ignore @y_axis_max.setter - def y_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) + def y_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -223,11 +225,13 @@ def y_axis_range(self) -> float: "Value should be greater than 0." """ val = self._get_property("Y-axis Range") - return val + return val # type: ignore @y_axis_range.setter - def y_axis_range(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) + def y_axis_range(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Range={value}"]) @property def max_major_ticks(self) -> int: @@ -236,11 +240,13 @@ def max_major_ticks(self) -> int: "Value should be between 1 and 30." """ val = self._get_property("Max Major Ticks") - return val + return val # type: ignore @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks={value}"]) @property def max_minor_ticks(self) -> int: @@ -249,11 +255,13 @@ def max_minor_ticks(self) -> int: "Value should be between 0 and 100." """ val = self._get_property("Max Minor Ticks") - return val + return val # type: ignore @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks={value}"]) @property def max_major_ticks(self) -> int: @@ -262,11 +270,13 @@ def max_major_ticks(self) -> int: "Value should be between 1 and 30." """ val = self._get_property("Max Major Ticks") - return val + return val # type: ignore @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks={value}"]) @property def max_minor_ticks(self) -> int: @@ -275,11 +285,13 @@ def max_minor_ticks(self) -> int: "Value should be between 0 and 100." """ val = self._get_property("Max Minor Ticks") - return val + return val # type: ignore @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks={value}"]) @property def axis_label_font(self): @@ -288,11 +300,13 @@ def axis_label_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Axis Label Font") - return val + return val # type: ignore @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -301,11 +315,13 @@ def axis_tick_label_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Axis Tick Label Font") - return val + return val # type: ignore @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -319,16 +335,16 @@ class MajorGridLineStyleOption(Enum): def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style "Select line style of major-tick grid lines." - " """ + " """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] - return val + return val # type: ignore @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Line Style={value.value}"]) @property def major_grid_color(self): @@ -337,11 +353,13 @@ def major_grid_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Major Grid Color") - return val + return val # type: ignore @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -355,16 +373,16 @@ class MinorGridLineStyleOption(Enum): def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style "Select line style of minor-tick grid lines." - " """ + " """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] - return val + return val # type: ignore @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Line Style={value.value}"]) @property def minor_grid_color(self): @@ -373,11 +391,13 @@ def minor_grid_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Minor Grid Color") - return val + return val # type: ignore @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -386,11 +406,13 @@ def background_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Background Color") - return val + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -402,16 +424,16 @@ class BBPowerforPlotsUnitOption(Enum): def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit "Units to use for plotting broadband power densities." - " """ + " """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] - return val + return val # type: ignore @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power for Plots Unit={value.value}"]) @property def bb_power_bandwidth(self) -> float: @@ -421,12 +443,14 @@ def bb_power_bandwidth(self) -> float: """ val = self._get_property("BB Power Bandwidth") val = self._convert_from_internal_units(float(val), "") - return val + return val # type: ignore @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value: float | str): + def bb_power_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -435,8 +459,11 @@ def log_scale(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Log Scale") - return val + return val # type: ignore @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Log Scale={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py index 9eedffb4e24..3d22fe7b6f7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class RfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,11 +17,13 @@ def enable_passive_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Passive Noise") - return val + return val # type: ignore @enable_passive_noise.setter def enable_passive_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Passive Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Passive Noise={value}"]) @property def enforce_thermal_noise_floor(self) -> bool: @@ -55,10 +32,11 @@ def enforce_thermal_noise_floor(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enforce Thermal Noise Floor") - return val + return val # type: ignore @enforce_thermal_noise_floor.setter def enforce_thermal_noise_floor(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Enforce Thermal Noise Floor={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enforce Thermal Noise Floor={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py index d9941eca967..531d06f7764 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class RxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,7 +26,7 @@ def file(self) -> str: "Value should be a full file path." """ val = self._get_property("File") - return val + return val # type: ignore @property def source_file(self) -> str: @@ -61,16 +35,16 @@ def source_file(self) -> str: "Value should be a full file path." """ val = self._get_property("Source File") - return val + return val # type: ignore @property def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore class MeasurementModeOption(Enum): AUDIO_SINAD = "Audio SINAD" @@ -81,14 +55,16 @@ class MeasurementModeOption(Enum): def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode "Defines the mode for the receiver measurement." - " """ + " """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] - return val + return val # type: ignore @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Mode={value.value}"]) @property def sinad_threshold(self) -> float: @@ -97,11 +73,13 @@ def sinad_threshold(self) -> float: "Value should be between 5 and 20." """ val = self._get_property("SINAD Threshold") - return val + return val # type: ignore @sinad_threshold.setter - def sinad_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SINAD Threshold={value}"]) + def sinad_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SINAD Threshold={value}"]) @property def gps_cnr_threshold(self) -> float: @@ -110,11 +88,13 @@ def gps_cnr_threshold(self) -> float: "Value should be between 15 and 30." """ val = self._get_property("GPS CNR Threshold") - return val + return val # type: ignore @gps_cnr_threshold.setter - def gps_cnr_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GPS CNR Threshold={value}"]) + def gps_cnr_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"GPS CNR Threshold={value}"]) @property def ber_threshold(self) -> float: @@ -123,11 +103,13 @@ def ber_threshold(self) -> float: "Value should be between -12 and -1." """ val = self._get_property("BER Threshold") - return val + return val # type: ignore @ber_threshold.setter - def ber_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BER Threshold={value}"]) + def ber_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BER Threshold={value}"]) @property def default_intended_power(self) -> bool: @@ -136,11 +118,13 @@ def default_intended_power(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Default Intended Power") - return val + return val # type: ignore @default_intended_power.setter def default_intended_power(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Default Intended Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Default Intended Power={value}"]) @property def intended_signal_power(self) -> float: @@ -149,11 +133,13 @@ def intended_signal_power(self) -> float: "Value should be between -140 and -50." """ val = self._get_property("Intended Signal Power") - return val + return val # type: ignore @intended_signal_power.setter - def intended_signal_power(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Intended Signal Power={value}"]) + def intended_signal_power(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Intended Signal Power={value}"]) @property def freq_deviation(self) -> float: @@ -163,12 +149,14 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @freq_deviation.setter - def freq_deviation(self, value: float | str): + def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation={value}"]) @property def modulation_depth(self) -> float: @@ -177,11 +165,13 @@ def modulation_depth(self) -> float: "Value should be between 10 and 100." """ val = self._get_property("Modulation Depth") - return val + return val # type: ignore @modulation_depth.setter - def modulation_depth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Depth={value}"]) + def modulation_depth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation Depth={value}"]) @property def measure_selectivity(self) -> bool: @@ -190,11 +180,13 @@ def measure_selectivity(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Measure Selectivity") - return val + return val # type: ignore @measure_selectivity.setter def measure_selectivity(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Selectivity={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Selectivity={value}"]) @property def measure_mixer_products(self) -> bool: @@ -203,11 +195,13 @@ def measure_mixer_products(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Measure Mixer Products") - return val + return val # type: ignore @measure_mixer_products.setter def measure_mixer_products(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Mixer Products={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Mixer Products={value}"]) @property def max_rf_order(self) -> int: @@ -216,11 +210,13 @@ def max_rf_order(self) -> int: "Value should be greater than 1." """ val = self._get_property("Max RF Order") - return val + return val # type: ignore @max_rf_order.setter def max_rf_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max RF Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max RF Order={value}"]) @property def max_lo_order(self) -> int: @@ -229,11 +225,13 @@ def max_lo_order(self) -> int: "Value should be greater than 1." """ val = self._get_property("Max LO Order") - return val + return val # type: ignore @max_lo_order.setter def max_lo_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max LO Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max LO Order={value}"]) @property def include_if(self) -> bool: @@ -242,11 +240,13 @@ def include_if(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include IF") - return val + return val # type: ignore @include_if.setter def include_if(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include IF={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include IF={value}"]) @property def measure_saturation(self) -> bool: @@ -255,11 +255,13 @@ def measure_saturation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Measure Saturation") - return val + return val # type: ignore @measure_saturation.setter def measure_saturation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Saturation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Saturation={value}"]) @property def use_ams_limits(self) -> bool: @@ -268,11 +270,13 @@ def use_ams_limits(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use AMS Limits") - return val + return val # type: ignore @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -282,12 +286,14 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -297,12 +303,14 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def samples(self) -> int: @@ -311,11 +319,13 @@ def samples(self) -> int: "Value should be between 2 and 100." """ val = self._get_property("Samples") - return val + return val # type: ignore @samples.setter def samples(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Samples={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Samples={value}"]) @property def exclude_mixer_products_below_noise(self) -> bool: @@ -324,19 +334,20 @@ def exclude_mixer_products_below_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Exclude Mixer Products Below Noise") - return val + return val # type: ignore @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Exclude Mixer Products Below Noise={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Exclude Mixer Products Below Noise={value}"]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py index 51def9d924c..acf29af48e8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class RxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +13,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -48,7 +22,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -63,16 +37,16 @@ class MixerProductTaperOption(Enum): def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper "Taper for setting amplitude of mixer products." - " """ + " """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] - return val + return val # type: ignore @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Taper={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Taper={value.value}"]) @property def mixer_product_susceptibility(self) -> float: @@ -81,13 +55,13 @@ def mixer_product_susceptibility(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Mixer Product Susceptibility") - return val + return val # type: ignore @mixer_product_susceptibility.setter - def mixer_product_susceptibility(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Susceptibility={value}"] - ) + def mixer_product_susceptibility(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Susceptibility={value}"]) @property def spurious_rejection(self) -> float: @@ -96,11 +70,13 @@ def spurious_rejection(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Spurious Rejection") - return val + return val # type: ignore @spurious_rejection.setter - def spurious_rejection(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spurious Rejection={value}"]) + def spurious_rejection(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spurious Rejection={value}"]) @property def minimum_tuning_frequency(self) -> float: @@ -110,12 +86,14 @@ def minimum_tuning_frequency(self) -> float: """ val = self._get_property("Minimum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value: float | str): + def minimum_tuning_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minimum Tuning Frequency={value}"]) @property def maximum_tuning_frequency(self) -> float: @@ -125,12 +103,14 @@ def maximum_tuning_frequency(self) -> float: """ val = self._get_property("Maximum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value: float | str): + def maximum_tuning_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum Tuning Frequency={value}"]) @property def mixer_product_slope(self) -> float: @@ -139,11 +119,13 @@ def mixer_product_slope(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Mixer Product Slope") - return val + return val # type: ignore @mixer_product_slope.setter - def mixer_product_slope(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Slope={value}"]) + def mixer_product_slope(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Slope={value}"]) @property def mixer_product_intercept(self) -> float: @@ -152,11 +134,13 @@ def mixer_product_intercept(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Mixer Product Intercept") - return val + return val # type: ignore @mixer_product_intercept.setter - def mixer_product_intercept(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Intercept={value}"]) + def mixer_product_intercept(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Intercept={value}"]) @property def bandwidth_80_db(self) -> float: @@ -166,12 +150,14 @@ def bandwidth_80_db(self) -> float: """ val = self._get_property("Bandwidth 80 dB") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @bandwidth_80_db.setter - def bandwidth_80_db(self, value: float | str): + def bandwidth_80_db(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 80 dB={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 80 dB={value}"]) @property def image_rejection(self) -> float: @@ -180,11 +166,13 @@ def image_rejection(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Image Rejection") - return val + return val # type: ignore @image_rejection.setter - def image_rejection(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Image Rejection={value}"]) + def image_rejection(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Image Rejection={value}"]) @property def maximum_rf_harmonic_order(self) -> int: @@ -193,13 +181,13 @@ def maximum_rf_harmonic_order(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Maximum RF Harmonic Order") - return val + return val # type: ignore @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Maximum RF Harmonic Order={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum RF Harmonic Order={value}"]) @property def maximum_lo_harmonic_order(self) -> int: @@ -208,13 +196,13 @@ def maximum_lo_harmonic_order(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Maximum LO Harmonic Order") - return val + return val # type: ignore @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Maximum LO Harmonic Order={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum LO Harmonic Order={value}"]) class MixingModeOption(Enum): LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" @@ -225,14 +213,16 @@ class MixingModeOption(Enum): def mixing_mode(self) -> MixingModeOption: """Mixing Mode "Specifies whether the IF frequency is > or < RF channel frequency." - " """ + " """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] - return val + return val # type: ignore @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixing Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixing Mode={value.value}"]) @property def first_if_frequency(self): @@ -241,25 +231,29 @@ def first_if_frequency(self): "Value should be a mathematical expression." """ val = self._get_property("First IF Frequency") - return val + return val # type: ignore @first_if_frequency.setter def first_if_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First IF Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First IF Frequency={value}"]) @property def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." - " """ + " """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @rf_transition_frequency.setter - def rf_transition_frequency(self, value: float | str): + def rf_transition_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"RF Transition Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"RF Transition Frequency={value}"]) class UseHighLOOption(Enum): ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" @@ -269,14 +263,16 @@ class UseHighLOOption(Enum): def use_high_lo(self) -> UseHighLOOption: """Use High LO "Use High LO above/below the transition frequency." - " """ + " """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] - return val + return val # type: ignore @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use High LO={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use High LO={value.value}"]) class MixerProductTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -286,13 +282,14 @@ class MixerProductTableUnitsOption(Enum): def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units "Specifies the units for the Mixer Products." - " """ + " """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] - return val + return val # type: ignore @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Table Units={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py index 5bfe49eba0b..b46a4d251de 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class RxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +12,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -46,8 +21,9 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py index c0c6141aa74..bfc213cc0ea 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class RxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +12,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -46,7 +21,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -59,8 +34,11 @@ def use_arithmetic_mean(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Arithmetic Mean") - return val + return val # type: ignore @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Arithmetic Mean={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Arithmetic Mean={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py index 0ab0a70d512..1d4b4639214 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class RxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +13,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -47,13 +21,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -65,7 +39,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -79,11 +53,14 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val + return val # type: ignore @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spur Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py index 2677fa3d226..1897062b46d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class RxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +14,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -56,27 +30,31 @@ class SensitivityUnitsOption(Enum): def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units "Units to use for the Rx Sensitivity." - " """ + " """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] - return val + return val # type: ignore @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sensitivity Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sensitivity Units={value.value}"]) @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr "Received signal power level at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ val = self._get_property("Min. Receive Signal Pwr ") - return val + return val # type: ignore @min_receive_signal_pwr_.setter - def min_receive_signal_pwr_(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min. Receive Signal Pwr ={value}"]) + def min_receive_signal_pwr_(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min. Receive Signal Pwr ={value}"]) @property def snr_at_rx_signal_pwr(self) -> float: @@ -85,11 +63,13 @@ def snr_at_rx_signal_pwr(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("SNR at Rx Signal Pwr") - return val + return val # type: ignore @snr_at_rx_signal_pwr.setter - def snr_at_rx_signal_pwr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR at Rx Signal Pwr={value}"]) + def snr_at_rx_signal_pwr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SNR at Rx Signal Pwr={value}"]) @property def processing_gain(self) -> float: @@ -98,11 +78,13 @@ def processing_gain(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Processing Gain") - return val + return val # type: ignore @processing_gain.setter - def processing_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Processing Gain={value}"]) + def processing_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Processing Gain={value}"]) @property def apply_pg_to_narrowband_only(self) -> bool: @@ -111,13 +93,13 @@ def apply_pg_to_narrowband_only(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Apply PG to Narrowband Only") - return val + return val # type: ignore @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Apply PG to Narrowband Only={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Apply PG to Narrowband Only={value}"]) @property def saturation_level(self) -> float: @@ -127,12 +109,14 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @saturation_level.setter - def saturation_level(self, value: float | str): + def saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Saturation Level={value}"]) @property def rx_noise_figure(self) -> float: @@ -141,41 +125,45 @@ def rx_noise_figure(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rx Noise Figure") - return val + return val # type: ignore @rx_noise_figure.setter - def rx_noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rx Noise Figure={value}"]) + def rx_noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rx Noise Figure={value}"]) @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." "Value should be between -1000 and 1000." """ val = self._get_property("Receiver Sensitivity ") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @receiver_sensitivity_.setter - def receiver_sensitivity_(self, value: float | str): + def receiver_sensitivity_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver Sensitivity ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Receiver Sensitivity ={value}"]) @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity "SNR or SINAD at the specified sensitivity level." "Value should be between -1000 and 1000." """ val = self._get_property("SNR/SINAD at Sensitivity ") - return val + return val # type: ignore @snrsinad_at_sensitivity_.setter - def snrsinad_at_sensitivity_(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"SNR/SINAD at Sensitivity ={value}"] - ) + def snrsinad_at_sensitivity_(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SNR/SINAD at Sensitivity ={value}"]) @property def perform_rx_intermod_analysis(self) -> bool: @@ -184,13 +172,13 @@ def perform_rx_intermod_analysis(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Perform Rx Intermod Analysis") - return val + return val # type: ignore @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Rx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Rx Intermod Analysis={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -200,29 +188,31 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." "Value should be between -1000 and 1000." """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -232,12 +222,14 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def max_intermod_order(self) -> int: @@ -246,8 +238,11 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py index 4333766c07c..ee98f186a5d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class SamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,11 +13,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Min: + "Min: " Value should be greater than 1." - "Max: + "Max: " Value should be greater than 1." """ return self._get_table_data() @@ -61,14 +35,16 @@ class SamplingTypeOption(Enum): def sampling_type(self) -> SamplingTypeOption: """Sampling Type "Sampling to apply to this configuration." - " """ + " """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] - return val + return val # type: ignore @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sampling Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sampling Type={value.value}"]) @property def specify_percentage(self) -> bool: @@ -77,11 +53,13 @@ def specify_percentage(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Specify Percentage") - return val + return val # type: ignore @specify_percentage.setter def specify_percentage(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Specify Percentage={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Specify Percentage={value}"]) @property def percentage_of_channels(self) -> float: @@ -90,11 +68,13 @@ def percentage_of_channels(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("Percentage of Channels") - return val + return val # type: ignore @percentage_of_channels.setter - def percentage_of_channels(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percentage of Channels={value}"]) + def percentage_of_channels(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Percentage of Channels={value}"]) @property def max__channelsrangeband(self) -> int: @@ -103,13 +83,13 @@ def max__channelsrangeband(self) -> int: "Value should be between 1 and 100000." """ val = self._get_property("Max # Channels/Range/Band") - return val + return val # type: ignore @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Max # Channels/Range/Band={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max # Channels/Range/Band={value}"]) @property def seed(self) -> int: @@ -118,32 +98,35 @@ def seed(self) -> int: "Value should be greater than 0." """ val = self._get_property("Seed") - return val + return val # type: ignore @seed.setter def seed(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Seed={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Seed={value}"]) @property def total_tx_channels(self) -> int: """Total Tx Channels "Total number of transmit channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Tx Channels") - return val + return val # type: ignore @property def total_rx_channels(self) -> int: """Total Rx Channels "Total number of receive channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Rx Channels") - return val + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py index 720b7e79017..a7c6c04c2d0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class SceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -60,13 +34,13 @@ def show_relative_coordinates(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Relative Coordinates") - return val + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): @@ -75,11 +49,13 @@ def position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Position") - return val + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): @@ -88,11 +64,13 @@ def relative_position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Relative Position") - return val + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -102,14 +80,16 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -118,11 +98,13 @@ def orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Orientation") - return val + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): @@ -131,11 +113,13 @@ def relative_orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Relative Orientation") - return val + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def show_axes(self) -> bool: @@ -144,11 +128,13 @@ def show_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Axes") - return val + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def box_color(self): @@ -157,20 +143,25 @@ def box_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Box Color") - return val + return val # type: ignore @box_color.setter def box_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Box Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Box Color={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py index 800d7b1efac..7a33597db8f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class SelectivityTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,13 +27,15 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -68,11 +44,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -81,23 +59,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -111,14 +93,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -127,11 +111,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -140,11 +126,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -167,14 +155,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -183,11 +173,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -196,11 +188,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -209,11 +203,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -222,8 +218,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py index f05d3a06a83..651b8d6af4c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class SolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,11 +17,13 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -55,11 +32,13 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -68,20 +47,25 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py index e09974b532d..4d75c7c87c7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class SolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,8 +17,11 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py index 3a7eb50105b..28f7cfb0c41 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class SpurTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,34 +27,38 @@ def delete(self): def channel_frequency(self): """Channel Frequency "Select band channel frequency to display." - " """ + " """ val = self._get_property("Channel Frequency") - return val + return val # type: ignore @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -89,11 +67,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -102,23 +82,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -132,14 +116,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -148,11 +134,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -161,11 +149,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -188,14 +178,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -204,11 +196,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -217,11 +211,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -230,11 +226,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -243,8 +241,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py index 7a7e997b0b8..7c6fec8dca2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TRSwitchTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,11 +30,13 @@ def input_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Input Port") - return val + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -69,23 +45,27 @@ def output_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Output Port") - return val + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -94,11 +74,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -107,23 +89,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -137,14 +123,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -153,11 +141,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -166,11 +156,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -193,14 +185,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -209,11 +203,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -222,11 +218,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -235,11 +233,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -248,8 +248,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index ef75ba36066..ae16d5e9d45 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -51,11 +25,13 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -64,23 +40,27 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TxPortOption(Enum): PORT_1 = "Port 1" @@ -90,14 +70,16 @@ class TxPortOption(Enum): def tx_port(self) -> TxPortOption: """Tx Port "Specifies which port on the TR Switch is part of the Tx path.." - " """ + " """ val = self._get_property("Tx Port") val = self.TxPortOption[val] - return val + return val # type: ignore @tx_port.setter def tx_port(self, value: TxPortOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Port={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Port={value.value}"]) class CommonPortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -107,16 +89,16 @@ class CommonPortLocationOption(Enum): def common_port_location(self) -> CommonPortLocationOption: """Common Port Location "Defines the orientation of the tr switch.." - " """ + " """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] - return val + return val # type: ignore @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Common Port Location={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Common Port Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -125,11 +107,13 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_isolation(self) -> bool: @@ -138,11 +122,13 @@ def finite_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Isolation") - return val + return val # type: ignore @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -151,11 +137,13 @@ def isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Isolation") - return val + return val # type: ignore @isolation.setter - def isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) + def isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -164,11 +152,13 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -177,11 +167,13 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -191,12 +183,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -206,12 +200,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -221,12 +217,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -236,9 +234,12 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index 962fb86ceff..0e21f1e8294 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Terminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -51,11 +25,13 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -64,23 +40,27 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -90,14 +70,16 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class PortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -107,14 +89,16 @@ class PortLocationOption(Enum): def port_location(self) -> PortLocationOption: """Port Location "Defines the orientation of the terminator.." - " """ + " """ val = self._get_property("Port Location") val = self.PortLocationOption[val] - return val + return val # type: ignore @port_location.setter def port_location(self, value: PortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port Location={value.value}"]) @property def vswr(self) -> float: @@ -123,16 +107,19 @@ def vswr(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("VSWR") - return val + return val # type: ignore @vswr.setter - def vswr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) + def vswr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"VSWR={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py index 6461f44d091..c6d0eab1279 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TestNoiseTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,11 +30,13 @@ def input_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Input Port") - return val + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -69,23 +45,27 @@ def output_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Output Port") - return val + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -94,11 +74,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -107,23 +89,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -137,14 +123,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -153,11 +141,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -166,11 +156,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -193,14 +185,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -209,11 +203,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -222,11 +218,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -235,11 +233,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -248,11 +248,13 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -262,12 +264,14 @@ def frequency_1(self) -> float: """ val = self._get_property("Frequency 1") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @frequency_1.setter - def frequency_1(self, value: float | str): + def frequency_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -277,12 +281,14 @@ def amplitude_1(self) -> float: """ val = self._get_property("Amplitude 1") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @amplitude_1.setter - def amplitude_1(self, value: float | str): + def amplitude_1(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -292,12 +298,14 @@ def bandwidth_1(self) -> float: """ val = self._get_property("Bandwidth 1") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @bandwidth_1.setter - def bandwidth_1(self, value: float | str): + def bandwidth_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -307,12 +315,14 @@ def frequency_2(self) -> float: """ val = self._get_property("Frequency 2") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @frequency_2.setter - def frequency_2(self, value: float | str): + def frequency_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -322,12 +332,14 @@ def amplitude_2(self) -> float: """ val = self._get_property("Amplitude 2") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @amplitude_2.setter - def amplitude_2(self, value: float | str): + def amplitude_2(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -337,12 +349,14 @@ def bandwidth_2(self) -> float: """ val = self._get_property("Bandwidth 2") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @bandwidth_2.setter - def bandwidth_2(self, value: float | str): + def bandwidth_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -351,8 +365,11 @@ def noise_level(self) -> float: "Value should be between -200 and 0." """ val = self._get_property("Noise Level") - return val + return val # type: ignore @noise_level.setter - def noise_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) + def noise_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Level={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py index e8225cd97be..95fa62b6506 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py @@ -1,31 +1,7 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class TopLevelSimulation(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py index f541940a636..c147c41419a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class TouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,11 +29,13 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -67,11 +44,13 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -80,23 +59,27 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def filename(self) -> str: @@ -105,19 +88,21 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File "Coupling data generated by Savant and exported as a matched file." - " """ + " """ val = self._get_property("Savant Matched Coupling File") - return val + return val # type: ignore @property def enable_em_isolation(self) -> bool: @@ -126,33 +111,40 @@ def enable_em_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable EM Isolation") - return val + return val # type: ignore @enable_em_isolation.setter def enable_em_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable EM Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable EM Isolation={value}"]) @property def port_antenna_assignment(self): """Port-Antenna Assignment "Maps each port in the coupling file to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Port-Antenna Assignment") - return val + return val # type: ignore @port_antenna_assignment.setter def port_antenna_assignment(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port-Antenna Assignment={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port-Antenna Assignment={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py index bfe14e48567..b855ee14d02 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TunableTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,11 +30,13 @@ def input_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Input Port") - return val + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -69,37 +45,43 @@ def output_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Output Port") - return val + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def frequency(self) -> float: """Frequency "Tunable filter center frequency." - " """ + " """ val = self._get_property("Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @frequency.setter - def frequency(self, value: float | str): + def frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -108,11 +90,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -121,23 +105,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -151,14 +139,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -167,11 +157,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -180,11 +172,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -207,14 +201,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -223,11 +219,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -236,11 +234,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -249,11 +249,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -262,8 +264,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py index 8dfaafec757..b73940afc2f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,35 +30,41 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -93,11 +73,13 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -106,23 +88,27 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def ground_reflection_coeff(self) -> float: @@ -131,11 +117,13 @@ def ground_reflection_coeff(self) -> float: "Value should be between -100 and 100." """ val = self._get_property("Ground Reflection Coeff.") - return val + return val # type: ignore @ground_reflection_coeff.setter - def ground_reflection_coeff(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ground Reflection Coeff.={value}"]) + def ground_reflection_coeff(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ground Reflection Coeff.={value}"]) @property def pointspeak(self) -> int: @@ -144,11 +132,13 @@ def pointspeak(self) -> int: "Value should be between 3 and 100." """ val = self._get_property("Points/Peak") - return val + return val # type: ignore @pointspeak.setter def pointspeak(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Points/Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Points/Peak={value}"]) @property def custom_fading_margin(self) -> float: @@ -157,11 +147,13 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -170,11 +162,13 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -183,11 +177,13 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -199,14 +195,16 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -215,11 +213,13 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -228,11 +228,13 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -241,11 +243,13 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -254,11 +258,13 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -267,11 +273,13 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -280,11 +288,13 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -293,13 +303,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -308,11 +318,13 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -321,11 +333,13 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -334,10 +348,11 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py index 9069eb02b55..88d6579f824 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TwoToneTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,11 +30,13 @@ def input_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Input Port") - return val + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -69,23 +45,27 @@ def output_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Output Port") - return val + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -94,11 +74,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -107,23 +89,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -137,14 +123,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -153,11 +141,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -166,11 +156,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -193,14 +185,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -209,11 +203,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -222,11 +218,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -235,11 +233,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -248,11 +248,13 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -262,12 +264,14 @@ def frequency_1(self) -> float: """ val = self._get_property("Frequency 1") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @frequency_1.setter - def frequency_1(self, value: float | str): + def frequency_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -277,12 +281,14 @@ def amplitude_1(self) -> float: """ val = self._get_property("Amplitude 1") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @amplitude_1.setter - def amplitude_1(self, value: float | str): + def amplitude_1(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -292,12 +298,14 @@ def bandwidth_1(self) -> float: """ val = self._get_property("Bandwidth 1") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @bandwidth_1.setter - def bandwidth_1(self, value: float | str): + def bandwidth_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -307,12 +315,14 @@ def frequency_2(self) -> float: """ val = self._get_property("Frequency 2") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @frequency_2.setter - def frequency_2(self, value: float | str): + def frequency_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -322,12 +332,14 @@ def amplitude_2(self) -> float: """ val = self._get_property("Amplitude 2") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @amplitude_2.setter - def amplitude_2(self, value: float | str): + def amplitude_2(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -337,12 +349,14 @@ def bandwidth_2(self) -> float: """ val = self._get_property("Bandwidth 2") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @bandwidth_2.setter - def bandwidth_2(self, value: float | str): + def bandwidth_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -351,8 +365,11 @@ def noise_level(self) -> float: "Value should be between -200 and 0." """ val = self._get_property("Noise Level") - return val + return val # type: ignore @noise_level.setter - def noise_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) + def noise_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Level={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py index 6f964b322e4..874765e998a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +13,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -49,9 +23,9 @@ def delete(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): " Value should be between -200 and 150." """ return self._get_table_data() @@ -63,7 +37,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -79,14 +53,16 @@ class NoiseBehaviorOption(Enum): def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior "Specifies the behavior of the parametric noise profile." - " """ + " """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] - return val + return val # type: ignore @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Behavior={value.value}"]) @property def use_log_linear_interpolation(self) -> bool: @@ -95,10 +71,11 @@ def use_log_linear_interpolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Log-Linear Interpolation") - return val + return val # type: ignore @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Log-Linear Interpolation={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py index ea92ab0c255..4009457dd32 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +13,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -48,7 +22,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -62,13 +36,14 @@ class HarmonicTableUnitsOption(Enum): def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units "Specifies the units for the Harmonics." - " """ + " """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] - return val + return val # type: ignore @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py index 7e71a02d156..ea6a449bbad 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class TxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,7 +25,7 @@ def file(self) -> str: "Value should be a full file path." """ val = self._get_property("File") - return val + return val # type: ignore @property def source_file(self) -> str: @@ -59,16 +34,16 @@ def source_file(self) -> str: "Value should be a full file path." """ val = self._get_property("Source File") - return val + return val # type: ignore @property def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -77,11 +52,13 @@ def use_ams_limits(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use AMS Limits") - return val + return val # type: ignore @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -91,12 +68,14 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -106,12 +85,14 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def exclude_harmonics_below_noise(self) -> bool: @@ -120,19 +101,20 @@ def exclude_harmonics_below_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Exclude Harmonics Below Noise") - return val + return val # type: ignore @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Exclude Harmonics Below Noise={value}"]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py index eb2964eeaaa..1b6501716ae 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +13,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -48,7 +22,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -62,27 +36,30 @@ class NarrowbandBehaviorOption(Enum): def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." - " """ + " """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] - return val + return val # type: ignore @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Narrowband Behavior={value.value}"]) @property def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - " """ + " """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @measurement_frequency.setter - def measurement_frequency(self, value: float | str): + def measurement_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Frequency={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py index 06c88dc38ad..510758e7c7d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py @@ -1,30 +1,5 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from ..EmitNode import EmitNode - class TxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,7 +13,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -48,15 +23,17 @@ def enabled(self, value: bool): def output_voltage_peak(self) -> float: """Output Voltage Peak "Output High Voltage Level: maximum voltage of the digital signal." - " """ + " """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") - return val + return val # type: ignore @output_voltage_peak.setter - def output_voltage_peak(self, value: float | str): + def output_voltage_peak(self, value : float|str): value = self._convert_to_internal_units(value, "Voltage") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Voltage Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Voltage Peak={value}"]) @property def include_phase_noise(self) -> bool: @@ -65,11 +42,13 @@ def include_phase_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Phase Noise") - return val + return val # type: ignore @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -78,11 +57,13 @@ def tx_broadband_noise(self) -> float: "Value should be less than 1000." """ val = self._get_property("Tx Broadband Noise") - return val + return val # type: ignore @tx_broadband_noise.setter - def tx_broadband_noise(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Broadband Noise={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -91,13 +72,13 @@ def perform_tx_intermod_analysis(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Perform Tx Intermod Analysis") - return val + return val # type: ignore @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Tx Intermod Analysis={value}"]) @property def internal_amp_gain(self) -> float: @@ -106,11 +87,13 @@ def internal_amp_gain(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Internal Amp Gain") - return val + return val # type: ignore @internal_amp_gain.setter - def internal_amp_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -119,11 +102,13 @@ def noise_figure(self) -> float: "Value should be between 0 and 50." """ val = self._get_property("Noise Figure") - return val + return val # type: ignore @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -133,29 +118,31 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -165,12 +152,14 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -179,11 +168,13 @@ def reverse_isolation(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Reverse Isolation") - return val + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -192,8 +183,11 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py index c870255a30c..908f9041fc4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +14,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -54,14 +28,16 @@ class SpectrumTypeOption(Enum): def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type "Specifies EMI Margins to calculate." - " """ + " """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] - return val + return val # type: ignore @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spectrum Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spectrum Type={value.value}"]) class TxPowerOption(Enum): PEAK_POWER = "Peak Power" @@ -71,14 +47,16 @@ class TxPowerOption(Enum): def tx_power(self) -> TxPowerOption: """Tx Power "Method used to specify the power." - " """ + " """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] - return val + return val # type: ignore @tx_power.setter def tx_power(self, value: TxPowerOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Power={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Power={value.value}"]) @property def peak_power(self) -> float: @@ -88,12 +66,14 @@ def peak_power(self) -> float: """ val = self._get_property("Peak Power") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @peak_power.setter - def peak_power(self, value: float | str): + def peak_power(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Peak Power={value}"]) @property def average_power(self) -> float: @@ -103,12 +83,14 @@ def average_power(self) -> float: """ val = self._get_property("Average Power") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @average_power.setter - def average_power(self, value: float | str): + def average_power(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Average Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Average Power={value}"]) @property def include_phase_noise(self) -> bool: @@ -117,11 +99,13 @@ def include_phase_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Phase Noise") - return val + return val # type: ignore @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -130,11 +114,13 @@ def tx_broadband_noise(self) -> float: "Value should be less than 1000." """ val = self._get_property("Tx Broadband Noise") - return val + return val # type: ignore @tx_broadband_noise.setter - def tx_broadband_noise(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Broadband Noise={value}"]) class HarmonicTaperOption(Enum): CONSTANT = "Constant" @@ -146,14 +132,16 @@ class HarmonicTaperOption(Enum): def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper "Taper type used to set amplitude of harmonics." - " """ + " """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] - return val + return val # type: ignore @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Taper={value.value}"]) @property def harmonic_amplitude(self) -> float: @@ -162,11 +150,13 @@ def harmonic_amplitude(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Harmonic Amplitude") - return val + return val # type: ignore @harmonic_amplitude.setter - def harmonic_amplitude(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Amplitude={value}"]) + def harmonic_amplitude(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Amplitude={value}"]) @property def harmonic_slope(self) -> float: @@ -175,11 +165,13 @@ def harmonic_slope(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Harmonic Slope") - return val + return val # type: ignore @harmonic_slope.setter - def harmonic_slope(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Slope={value}"]) + def harmonic_slope(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Slope={value}"]) @property def harmonic_intercept(self) -> float: @@ -188,11 +180,13 @@ def harmonic_intercept(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Harmonic Intercept") - return val + return val # type: ignore @harmonic_intercept.setter - def harmonic_intercept(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Intercept={value}"]) + def harmonic_intercept(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Intercept={value}"]) @property def enable_harmonic_bw_expansion(self) -> bool: @@ -201,13 +195,13 @@ def enable_harmonic_bw_expansion(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Harmonic BW Expansion") - return val + return val # type: ignore @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Enable Harmonic BW Expansion={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Harmonic BW Expansion={value}"]) @property def number_of_harmonics(self) -> int: @@ -216,11 +210,13 @@ def number_of_harmonics(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Number of Harmonics") - return val + return val # type: ignore @number_of_harmonics.setter def number_of_harmonics(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Harmonics={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Harmonics={value}"]) @property def second_harmonic_level(self) -> float: @@ -229,11 +225,13 @@ def second_harmonic_level(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Second Harmonic Level") - return val + return val # type: ignore @second_harmonic_level.setter - def second_harmonic_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Second Harmonic Level={value}"]) + def second_harmonic_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Second Harmonic Level={value}"]) @property def third_harmonic_level(self) -> float: @@ -242,11 +240,13 @@ def third_harmonic_level(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Third Harmonic Level") - return val + return val # type: ignore @third_harmonic_level.setter - def third_harmonic_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Third Harmonic Level={value}"]) + def third_harmonic_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Third Harmonic Level={value}"]) @property def other_harmonic_levels(self) -> float: @@ -255,11 +255,13 @@ def other_harmonic_levels(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Other Harmonic Levels") - return val + return val # type: ignore @other_harmonic_levels.setter - def other_harmonic_levels(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Other Harmonic Levels={value}"]) + def other_harmonic_levels(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Other Harmonic Levels={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -268,13 +270,13 @@ def perform_tx_intermod_analysis(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Perform Tx Intermod Analysis") - return val + return val # type: ignore @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Tx Intermod Analysis={value}"]) @property def internal_amp_gain(self) -> float: @@ -283,11 +285,13 @@ def internal_amp_gain(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Internal Amp Gain") - return val + return val # type: ignore @internal_amp_gain.setter - def internal_amp_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -296,11 +300,13 @@ def noise_figure(self) -> float: "Value should be between 0 and 50." """ val = self._get_property("Noise Figure") - return val + return val # type: ignore @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -310,29 +316,31 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -342,12 +350,14 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -356,11 +366,13 @@ def reverse_isolation(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Reverse Isolation") - return val + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -369,8 +381,11 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py index e6dda14524e..90e9a40ded7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +13,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -47,13 +21,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -65,7 +39,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -79,11 +53,14 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val + return val # type: ignore @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spur Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py index c1691907269..342e1435a0b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class WalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,35 +30,41 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -93,11 +73,13 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -106,23 +88,27 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class PathLossTypeOption(Enum): LOS_URBAN_CANYON = "LOS (Urban Canyon)" @@ -132,14 +118,16 @@ class PathLossTypeOption(Enum): def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type "Specify LOS vs NLOS for the Walfisch-Ikegami model." - " """ + " """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] - return val + return val # type: ignore @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Path Loss Type={value.value}"]) class EnvironmentOption(Enum): DENSE_METRO = "Dense Metro" @@ -149,14 +137,16 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Walfisch model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def roof_height(self) -> float: @@ -166,12 +156,14 @@ def roof_height(self) -> float: """ val = self._get_property("Roof Height") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @roof_height.setter - def roof_height(self, value: float | str): + def roof_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Roof Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Roof Height={value}"]) @property def distance_between_buildings(self) -> float: @@ -181,14 +173,14 @@ def distance_between_buildings(self) -> float: """ val = self._get_property("Distance Between Buildings") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @distance_between_buildings.setter - def distance_between_buildings(self, value: float | str): + def distance_between_buildings(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Distance Between Buildings={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Distance Between Buildings={value}"]) @property def street_width(self) -> float: @@ -198,12 +190,14 @@ def street_width(self) -> float: """ val = self._get_property("Street Width") val = self._convert_from_internal_units(float(val), "Length") - return val + return val # type: ignore @street_width.setter - def street_width(self, value: float | str): + def street_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Street Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Street Width={value}"]) @property def incidence_angle(self) -> float: @@ -212,11 +206,13 @@ def incidence_angle(self) -> float: "Value should be between 0 and 90." """ val = self._get_property("Incidence Angle") - return val + return val # type: ignore @incidence_angle.setter - def incidence_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Incidence Angle={value}"]) + def incidence_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Incidence Angle={value}"]) @property def custom_fading_margin(self) -> float: @@ -225,11 +221,13 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -238,11 +236,13 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -251,11 +251,13 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -267,14 +269,16 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -283,11 +287,13 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -296,11 +302,13 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -309,11 +317,13 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -322,11 +332,13 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -335,11 +347,13 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -348,11 +362,13 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -361,13 +377,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -376,11 +392,13 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -389,11 +407,13 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -402,10 +422,11 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py index 10baa89a846..741370d351c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py @@ -1,32 +1,6 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Waveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +14,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -50,13 +24,15 @@ def enabled(self, value: bool): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") - return val + return val # type: ignore @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port={value}"]) class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" @@ -69,14 +45,16 @@ class WaveformOption(Enum): def waveform(self) -> WaveformOption: """Waveform "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Waveform") val = self.WaveformOption[val] - return val + return val # type: ignore @waveform.setter def waveform(self, value: WaveformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Waveform={value.value}"]) @property def start_frequency(self) -> float: @@ -86,12 +64,14 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -101,12 +81,14 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -116,12 +98,14 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @channel_spacing.setter - def channel_spacing(self, value: float | str): + def channel_spacing(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Spacing={value}"]) @property def clock_duty_cycle(self) -> float: @@ -130,11 +114,13 @@ def clock_duty_cycle(self) -> float: "Value should be between 0.001 and 1." """ val = self._get_property("Clock Duty Cycle") - return val + return val # type: ignore @clock_duty_cycle.setter - def clock_duty_cycle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Duty Cycle={value}"]) + def clock_duty_cycle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Clock Duty Cycle={value}"]) @property def clock_risefall_time(self) -> float: @@ -144,12 +130,14 @@ def clock_risefall_time(self) -> float: """ val = self._get_property("Clock Rise/Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val + return val # type: ignore @clock_risefall_time.setter - def clock_risefall_time(self, value: float | str): + def clock_risefall_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Rise/Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Clock Rise/Fall Time={value}"]) class SpreadingTypeOption(Enum): LOW_SPREAD = "Low Spread" @@ -160,14 +148,16 @@ class SpreadingTypeOption(Enum): def spreading_type(self) -> SpreadingTypeOption: """Spreading Type "Type of spreading employed by the Spread Spectrum Clock." - " """ + " """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] - return val + return val # type: ignore @spreading_type.setter def spreading_type(self, value: SpreadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spreading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spreading Type={value.value}"]) @property def spread_percentage(self) -> float: @@ -176,11 +166,13 @@ def spread_percentage(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Spread Percentage") - return val + return val # type: ignore @spread_percentage.setter - def spread_percentage(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spread Percentage={value}"]) + def spread_percentage(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spread Percentage={value}"]) @property def imported_spectrum(self) -> str: @@ -188,19 +180,21 @@ def imported_spectrum(self) -> str: "Value should be a full file path." """ val = self._get_property("Imported Spectrum") - return val + return val # type: ignore @imported_spectrum.setter def imported_spectrum(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Imported Spectrum={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Imported Spectrum={value}"]) @property def raw_data_format(self) -> str: """Raw Data Format "Format of the imported raw data." - " """ + " """ val = self._get_property("Raw Data Format") - return val + return val # type: ignore @property def system_impedance(self) -> float: @@ -210,12 +204,14 @@ def system_impedance(self) -> float: """ val = self._get_property("System Impedance") val = self._convert_from_internal_units(float(val), "Resistance") - return val + return val # type: ignore @system_impedance.setter - def system_impedance(self, value: float | str): + def system_impedance(self, value : float|str): value = self._convert_to_internal_units(value, "Resistance") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"System Impedance={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"System Impedance={value}"]) @property def advanced_extraction_params(self) -> bool: @@ -224,13 +220,13 @@ def advanced_extraction_params(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Advanced Extraction Params") - return val + return val # type: ignore @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Advanced Extraction Params={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Advanced Extraction Params={value}"]) @property def nb_window_size(self) -> float: @@ -239,11 +235,13 @@ def nb_window_size(self) -> float: "Value should be greater than 3." """ val = self._get_property("NB Window Size") - return val + return val # type: ignore @nb_window_size.setter - def nb_window_size(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Window Size={value}"]) + def nb_window_size(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NB Window Size={value}"]) @property def bb_smoothing_factor(self) -> float: @@ -252,11 +250,13 @@ def bb_smoothing_factor(self) -> float: "Value should be greater than 1." """ val = self._get_property("BB Smoothing Factor") - return val + return val # type: ignore @bb_smoothing_factor.setter - def bb_smoothing_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Smoothing Factor={value}"]) + def bb_smoothing_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Smoothing Factor={value}"]) @property def nb_detector_threshold(self) -> float: @@ -265,11 +265,13 @@ def nb_detector_threshold(self) -> float: "Value should be between 2 and 10." """ val = self._get_property("NB Detector Threshold") - return val + return val # type: ignore @nb_detector_threshold.setter - def nb_detector_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Detector Threshold={value}"]) + def nb_detector_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NB Detector Threshold={value}"]) class AlgorithmOption(Enum): FFT = "FFT" @@ -279,14 +281,16 @@ class AlgorithmOption(Enum): def algorithm(self) -> AlgorithmOption: """Algorithm "Algorithm used to transform the imported time domain spectrum." - " """ + " """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] - return val + return val # type: ignore @algorithm.setter def algorithm(self, value: AlgorithmOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Algorithm={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Algorithm={value.value}"]) @property def start_time(self) -> float: @@ -296,26 +300,30 @@ def start_time(self) -> float: """ val = self._get_property("Start Time") val = self._convert_from_internal_units(float(val), "Time") - return val + return val # type: ignore @start_time.setter - def start_time(self, value: float | str): + def start_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Time={value}"]) @property def stop_time(self) -> float: """Stop Time "Final time of the imported time domain spectrum." - " """ + " """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") - return val + return val # type: ignore @stop_time.setter - def stop_time(self, value: float | str): + def stop_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Time={value}"]) @property def max_frequency(self) -> float: @@ -325,12 +333,14 @@ def max_frequency(self) -> float: """ val = self._get_property("Max Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val + return val # type: ignore @max_frequency.setter - def max_frequency(self, value: float | str): + def max_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Frequency={value}"]) class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" @@ -347,14 +357,16 @@ class WindowTypeOption(Enum): def window_type(self) -> WindowTypeOption: """Window Type "Windowing scheme used for importing time domain spectrum." - " """ + " """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] - return val + return val # type: ignore @window_type.setter def window_type(self, value: WindowTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Window Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Window Type={value.value}"]) @property def kaiser_parameter(self) -> float: @@ -363,11 +375,13 @@ def kaiser_parameter(self) -> float: "Value should be greater than 0." """ val = self._get_property("Kaiser Parameter") - return val + return val # type: ignore @kaiser_parameter.setter - def kaiser_parameter(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Kaiser Parameter={value}"]) + def kaiser_parameter(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Kaiser Parameter={value}"]) @property def adjust_coherent_gain(self) -> bool: @@ -376,11 +390,13 @@ def adjust_coherent_gain(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adjust Coherent Gain") - return val + return val # type: ignore @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adjust Coherent Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adjust Coherent Gain={value}"]) @property def data_rate(self) -> float: @@ -390,12 +406,14 @@ def data_rate(self) -> float: """ val = self._get_property("Data Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val + return val # type: ignore @data_rate.setter - def data_rate(self, value: float | str): + def data_rate(self, value : float|str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Rate={value}"]) @property def num_of_bits(self) -> int: @@ -404,11 +422,13 @@ def num_of_bits(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Num of Bits") - return val + return val # type: ignore @num_of_bits.setter def num_of_bits(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Num of Bits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Num of Bits={value}"]) @property def use_envelope(self) -> bool: @@ -417,11 +437,13 @@ def use_envelope(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Envelope") - return val + return val # type: ignore @use_envelope.setter def use_envelope(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Envelope={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Envelope={value}"]) @property def min_ptsnull(self) -> int: @@ -430,11 +452,13 @@ def min_ptsnull(self) -> int: "Value should be between 2 and 50." """ val = self._get_property("Min Pts/Null") - return val + return val # type: ignore @min_ptsnull.setter def min_ptsnull(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pts/Null={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pts/Null={value}"]) @property def delay_skew(self) -> float: @@ -444,9 +468,12 @@ def delay_skew(self) -> float: """ val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") - return val + return val # type: ignore @delay_skew.setter - def delay_skew(self, value: float | str): + def delay_skew(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Delay Skew={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Delay Skew={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index 7f7a748aedf..bd6f8b1de0e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,27 +1,3 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from .Amplifier import Amplifier from .AntennaNode import AntennaNode from .AntennaPassband import AntennaPassband @@ -57,6 +33,38 @@ from .ProfileTraceNode import ProfileTraceNode from .PropagationLossCouplingNode import PropagationLossCouplingNode from .RadioNode import RadioNode +from .ResultPlotNode import ResultPlotNode +from .RfSystemGroup import RfSystemGroup +from .RxMeasNode import RxMeasNode +from .RxMixerProductNode import RxMixerProductNode +from .RxSaturationNode import RxSaturationNode +from .RxSelectivityNode import RxSelectivityNode +from .RxSpurNode import RxSpurNode +from .RxSusceptibilityProfNode import RxSusceptibilityProfNode +from .SamplingNode import SamplingNode +from .SceneGroupNode import SceneGroupNode +from .SelectivityTraceNode import SelectivityTraceNode +from .SolutionCouplingNode import SolutionCouplingNode +from .SolutionsNode import SolutionsNode +from .SpurTraceNode import SpurTraceNode +from .TR_Switch import TR_Switch +from .TRSwitchTraceNode import TRSwitchTraceNode +from .Terminator import Terminator +from .TestNoiseTraceNode import TestNoiseTraceNode +from .TopLevelSimulation import TopLevelSimulation +from .TouchstoneCouplingNode import TouchstoneCouplingNode +from .TunableTraceNode import TunableTraceNode +from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode +from .TwoToneTraceNode import TwoToneTraceNode +from .TxBbEmissionNode import TxBbEmissionNode +from .TxHarmonicNode import TxHarmonicNode +from .TxMeasNode import TxMeasNode +from .TxNbEmissionNode import TxNbEmissionNode +from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode +from .TxSpectralProfNode import TxSpectralProfNode +from .TxSpurNode import TxSpurNode +from .WalfischCouplingNode import WalfischCouplingNode +from .Waveform import Waveform from .ReadOnlyAmplifier import ReadOnlyAmplifier from .ReadOnlyAntennaNode import ReadOnlyAntennaNode from .ReadOnlyAntennaPassband import ReadOnlyAntennaPassband @@ -105,153 +113,121 @@ from .ReadOnlyTxSpurNode import ReadOnlyTxSpurNode from .ReadOnlyWalfischCouplingNode import ReadOnlyWalfischCouplingNode from .ReadOnlyWaveform import ReadOnlyWaveform -from .ResultPlotNode import ResultPlotNode -from .RfSystemGroup import RfSystemGroup -from .RxMeasNode import RxMeasNode -from .RxMixerProductNode import RxMixerProductNode -from .RxSaturationNode import RxSaturationNode -from .RxSelectivityNode import RxSelectivityNode -from .RxSpurNode import RxSpurNode -from .RxSusceptibilityProfNode import RxSusceptibilityProfNode -from .SamplingNode import SamplingNode -from .SceneGroupNode import SceneGroupNode -from .SelectivityTraceNode import SelectivityTraceNode -from .SolutionCouplingNode import SolutionCouplingNode -from .SolutionsNode import SolutionsNode -from .SpurTraceNode import SpurTraceNode -from .TRSwitchTraceNode import TRSwitchTraceNode -from .TR_Switch import TR_Switch -from .Terminator import Terminator -from .TestNoiseTraceNode import TestNoiseTraceNode -from .TopLevelSimulation import TopLevelSimulation -from .TouchstoneCouplingNode import TouchstoneCouplingNode -from .TunableTraceNode import TunableTraceNode -from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode -from .TwoToneTraceNode import TwoToneTraceNode -from .TxBbEmissionNode import TxBbEmissionNode -from .TxHarmonicNode import TxHarmonicNode -from .TxMeasNode import TxMeasNode -from .TxNbEmissionNode import TxNbEmissionNode -from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode -from .TxSpectralProfNode import TxSpectralProfNode -from .TxSpurNode import TxSpurNode -from .WalfischCouplingNode import WalfischCouplingNode -from .Waveform import Waveform __all__ = [ - "Amplifier", - "AntennaNode", - "AntennaPassband", - "Band", - "BandFolder", - "BandTraceNode", - "CADNode", - "Cable", - "CategoriesViewNode", - "Circulator", - "CouplingLinkNode", - "CouplingTraceNode", - "CouplingsNode", - "CustomCouplingNode", - "EmiPlotMarkerNode", - "EmitSceneNode", - "ErcegCouplingNode", - "Filter", - "FiveGChannelModel", - "HataCouplingNode", - "IndoorPropagationCouplingNode", - "Isolator", - "LogDistanceCouplingNode", - "MPlexBandTraceNode", - "Multiplexer", - "MultiplexerBand", - "OutboardTraceNode", - "ParametricCouplingTraceNode", - "PlotMarkerNode", - "PlotNode", - "PowerDivider", - "PowerTraceNode", - "ProfileTraceNode", - "PropagationLossCouplingNode", - "RadioNode", - "ResultPlotNode", - "RfSystemGroup", - "RxMeasNode", - "RxMixerProductNode", - "RxSaturationNode", - "RxSelectivityNode", - "RxSpurNode", - "RxSusceptibilityProfNode", - "SamplingNode", - "SceneGroupNode", - "SelectivityTraceNode", - "SolutionCouplingNode", - "SolutionsNode", - "SpurTraceNode", - "TR_Switch", - "TRSwitchTraceNode", - "Terminator", - "TestNoiseTraceNode", - "TopLevelSimulation", - "TouchstoneCouplingNode", - "TunableTraceNode", - "TwoRayPathLossCouplingNode", - "TwoToneTraceNode", - "TxBbEmissionNode", - "TxHarmonicNode", - "TxMeasNode", - "TxNbEmissionNode", - "TxSpectralProfEmitterNode", - "TxSpectralProfNode", - "TxSpurNode", - "WalfischCouplingNode", - "Waveform", - "ReadOnlyAmplifier", - "ReadOnlyAntennaNode", - "ReadOnlyAntennaPassband", - "ReadOnlyBand", - "ReadOnlyBandFolder", - "ReadOnlyCADNode", - "ReadOnlyCable", - "ReadOnlyCirculator", - "ReadOnlyCouplingLinkNode", - "ReadOnlyCouplingsNode", - "ReadOnlyCustomCouplingNode", - "ReadOnlyEmitSceneNode", - "ReadOnlyErcegCouplingNode", - "ReadOnlyFilter", - "ReadOnlyFiveGChannelModel", - "ReadOnlyHataCouplingNode", - "ReadOnlyIndoorPropagationCouplingNode", - "ReadOnlyIsolator", - "ReadOnlyLogDistanceCouplingNode", - "ReadOnlyMultiplexer", - "ReadOnlyMultiplexerBand", - "ReadOnlyPowerDivider", - "ReadOnlyPropagationLossCouplingNode", - "ReadOnlyRadioNode", - "ReadOnlyRfSystemGroup", - "ReadOnlyRxMeasNode", - "ReadOnlyRxMixerProductNode", - "ReadOnlyRxSaturationNode", - "ReadOnlyRxSelectivityNode", - "ReadOnlyRxSpurNode", - "ReadOnlyRxSusceptibilityProfNode", - "ReadOnlySamplingNode", - "ReadOnlySceneGroupNode", - "ReadOnlySolutionCouplingNode", - "ReadOnlySolutionsNode", - "ReadOnlyTR_Switch", - "ReadOnlyTerminator", - "ReadOnlyTouchstoneCouplingNode", - "ReadOnlyTwoRayPathLossCouplingNode", - "ReadOnlyTxBbEmissionNode", - "ReadOnlyTxHarmonicNode", - "ReadOnlyTxMeasNode", - "ReadOnlyTxNbEmissionNode", - "ReadOnlyTxSpectralProfEmitterNode", - "ReadOnlyTxSpectralProfNode", - "ReadOnlyTxSpurNode", - "ReadOnlyWalfischCouplingNode", - "ReadOnlyWaveform", + 'Amplifier', + 'AntennaNode', + 'AntennaPassband', + 'Band', + 'BandFolder', + 'BandTraceNode', + 'CADNode', + 'Cable', + 'CategoriesViewNode', + 'Circulator', + 'CouplingLinkNode', + 'CouplingTraceNode', + 'CouplingsNode', + 'CustomCouplingNode', + 'EmiPlotMarkerNode', + 'EmitSceneNode', + 'ErcegCouplingNode', + 'Filter', + 'FiveGChannelModel', + 'HataCouplingNode', + 'IndoorPropagationCouplingNode', + 'Isolator', + 'LogDistanceCouplingNode', + 'MPlexBandTraceNode', + 'Multiplexer', + 'MultiplexerBand', + 'OutboardTraceNode', + 'ParametricCouplingTraceNode', + 'PlotMarkerNode', + 'PlotNode', + 'PowerDivider', + 'PowerTraceNode', + 'ProfileTraceNode', + 'PropagationLossCouplingNode', + 'RadioNode', + 'ResultPlotNode', + 'RfSystemGroup', + 'RxMeasNode', + 'RxMixerProductNode', + 'RxSaturationNode', + 'RxSelectivityNode', + 'RxSpurNode', + 'RxSusceptibilityProfNode', + 'SamplingNode', + 'SceneGroupNode', + 'SelectivityTraceNode', + 'SolutionCouplingNode', + 'SolutionsNode', + 'SpurTraceNode', + 'TR_Switch', + 'TRSwitchTraceNode', + 'Terminator', + 'TestNoiseTraceNode', + 'TopLevelSimulation', + 'TouchstoneCouplingNode', + 'TunableTraceNode', + 'TwoRayPathLossCouplingNode', + 'TwoToneTraceNode', + 'TxBbEmissionNode', + 'TxHarmonicNode', + 'TxMeasNode', + 'TxNbEmissionNode', + 'TxSpectralProfEmitterNode', + 'TxSpectralProfNode', + 'TxSpurNode', + 'WalfischCouplingNode', + 'Waveform', + 'ReadOnlyAmplifier', + 'ReadOnlyAntennaNode', + 'ReadOnlyAntennaPassband', + 'ReadOnlyBand', + 'ReadOnlyBandFolder', + 'ReadOnlyCADNode', + 'ReadOnlyCable', + 'ReadOnlyCirculator', + 'ReadOnlyCouplingLinkNode', + 'ReadOnlyCouplingsNode', + 'ReadOnlyCustomCouplingNode', + 'ReadOnlyEmitSceneNode', + 'ReadOnlyErcegCouplingNode', + 'ReadOnlyFilter', + 'ReadOnlyFiveGChannelModel', + 'ReadOnlyHataCouplingNode', + 'ReadOnlyIndoorPropagationCouplingNode', + 'ReadOnlyIsolator', + 'ReadOnlyLogDistanceCouplingNode', + 'ReadOnlyMultiplexer', + 'ReadOnlyMultiplexerBand', + 'ReadOnlyPowerDivider', + 'ReadOnlyPropagationLossCouplingNode', + 'ReadOnlyRadioNode', + 'ReadOnlyRfSystemGroup', + 'ReadOnlyRxMeasNode', + 'ReadOnlyRxMixerProductNode', + 'ReadOnlyRxSaturationNode', + 'ReadOnlyRxSelectivityNode', + 'ReadOnlyRxSpurNode', + 'ReadOnlyRxSusceptibilityProfNode', + 'ReadOnlySamplingNode', + 'ReadOnlySceneGroupNode', + 'ReadOnlySolutionCouplingNode', + 'ReadOnlySolutionsNode', + 'ReadOnlyTR_Switch', + 'ReadOnlyTerminator', + 'ReadOnlyTouchstoneCouplingNode', + 'ReadOnlyTwoRayPathLossCouplingNode', + 'ReadOnlyTxBbEmissionNode', + 'ReadOnlyTxHarmonicNode', + 'ReadOnlyTxMeasNode', + 'ReadOnlyTxNbEmissionNode', + 'ReadOnlyTxSpectralProfEmitterNode', + 'ReadOnlyTxSpectralProfNode', + 'ReadOnlyTxSpurNode', + 'ReadOnlyWalfischCouplingNode', + 'ReadOnlyWaveform', ] From 5d43d9a783ede8fa53704d4b42d2b239e619b207 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 23 Apr 2025 20:06:54 +0000 Subject: [PATCH 40/86] CHORE: Auto fixes from pre-commit hooks --- .../emit_core/nodes/generated/Amplifier.py | 135 +++--- .../emit_core/nodes/generated/AntennaNode.py | 457 ++++++++---------- .../nodes/generated/AntennaPassband.py | 84 ++-- .../core/emit_core/nodes/generated/Band.py | 311 ++++++------ .../emit_core/nodes/generated/BandFolder.py | 26 +- .../nodes/generated/BandTraceNode.py | 127 +++-- .../core/emit_core/nodes/generated/CADNode.py | 301 +++++------- .../core/emit_core/nodes/generated/Cable.py | 101 ++-- .../nodes/generated/CategoriesViewNode.py | 26 +- .../emit_core/nodes/generated/Circulator.py | 137 +++--- .../nodes/generated/CouplingLinkNode.py | 40 +- .../nodes/generated/CouplingTraceNode.py | 171 +++---- .../nodes/generated/CouplingsNode.py | 48 +- .../nodes/generated/CustomCouplingNode.py | 76 +-- .../nodes/generated/EmiPlotMarkerNode.py | 179 ++++--- .../nodes/generated/EmitSceneNode.py | 55 ++- .../nodes/generated/ErcegCouplingNode.py | 189 ++++---- .../core/emit_core/nodes/generated/Filter.py | 217 ++++----- .../nodes/generated/FiveGChannelModel.py | 209 ++++---- .../nodes/generated/HataCouplingNode.py | 189 ++++---- .../IndoorPropagationCouplingNode.py | 203 ++++---- .../emit_core/nodes/generated/Isolator.py | 137 +++--- .../generated/LogDistanceCouplingNode.py | 197 ++++---- .../nodes/generated/MPlexBandTraceNode.py | 115 +++-- .../emit_core/nodes/generated/Multiplexer.py | 83 ++-- .../nodes/generated/MultiplexerBand.py | 125 ++--- .../nodes/generated/OutboardTraceNode.py | 119 +++-- .../generated/ParametricCouplingTraceNode.py | 123 +++-- .../nodes/generated/PlotMarkerNode.py | 189 ++++---- .../emit_core/nodes/generated/PlotNode.py | 237 ++++----- .../emit_core/nodes/generated/PowerDivider.py | 139 +++--- .../nodes/generated/PowerTraceNode.py | 115 +++-- .../nodes/generated/ProfileTraceNode.py | 107 ++-- .../generated/PropagationLossCouplingNode.py | 181 ++++--- .../emit_core/nodes/generated/RadioNode.py | 42 +- .../nodes/generated/ReadOnlyAmplifier.py | 59 ++- .../nodes/generated/ReadOnlyAntennaNode.py | 201 ++++---- .../generated/ReadOnlyAntennaPassband.py | 42 +- .../emit_core/nodes/generated/ReadOnlyBand.py | 123 +++-- .../nodes/generated/ReadOnlyBandFolder.py | 26 +- .../nodes/generated/ReadOnlyCADNode.py | 121 +++-- .../nodes/generated/ReadOnlyCable.py | 53 +- .../nodes/generated/ReadOnlyCirculator.py | 65 ++- .../generated/ReadOnlyCouplingLinkNode.py | 32 +- .../nodes/generated/ReadOnlyCouplingsNode.py | 34 +- .../generated/ReadOnlyCustomCouplingNode.py | 50 +- .../nodes/generated/ReadOnlyEmitSceneNode.py | 39 +- .../generated/ReadOnlyErcegCouplingNode.py | 79 +-- .../nodes/generated/ReadOnlyFilter.py | 91 ++-- .../generated/ReadOnlyFiveGChannelModel.py | 87 ++-- .../generated/ReadOnlyHataCouplingNode.py | 79 +-- .../ReadOnlyIndoorPropagationCouplingNode.py | 89 ++-- .../nodes/generated/ReadOnlyIsolator.py | 65 ++- .../ReadOnlyLogDistanceCouplingNode.py | 81 ++-- .../nodes/generated/ReadOnlyMultiplexer.py | 53 +- .../generated/ReadOnlyMultiplexerBand.py | 57 ++- .../nodes/generated/ReadOnlyPowerDivider.py | 65 ++- .../ReadOnlyPropagationLossCouplingNode.py | 75 ++- .../nodes/generated/ReadOnlyRadioNode.py | 38 +- .../nodes/generated/ReadOnlyRfSystemGroup.py | 30 +- .../nodes/generated/ReadOnlyRxMeasNode.py | 75 ++- .../generated/ReadOnlyRxMixerProductNode.py | 69 ++- .../generated/ReadOnlyRxSaturationNode.py | 26 +- .../generated/ReadOnlyRxSelectivityNode.py | 28 +- .../nodes/generated/ReadOnlyRxSpurNode.py | 39 +- .../ReadOnlyRxSusceptibilityProfNode.py | 65 ++- .../nodes/generated/ReadOnlySamplingNode.py | 57 ++- .../nodes/generated/ReadOnlySceneGroupNode.py | 49 +- .../generated/ReadOnlySolutionCouplingNode.py | 36 +- .../nodes/generated/ReadOnlySolutionsNode.py | 28 +- .../nodes/generated/ReadOnlyTR_Switch.py | 61 ++- .../nodes/generated/ReadOnlyTerminator.py | 49 +- .../ReadOnlyTouchstoneCouplingNode.py | 52 +- .../ReadOnlyTwoRayPathLossCouplingNode.py | 79 +-- .../generated/ReadOnlyTxBbEmissionNode.py | 37 +- .../nodes/generated/ReadOnlyTxHarmonicNode.py | 31 +- .../nodes/generated/ReadOnlyTxMeasNode.py | 42 +- .../generated/ReadOnlyTxNbEmissionNode.py | 35 +- .../ReadOnlyTxSpectralProfEmitterNode.py | 52 +- .../generated/ReadOnlyTxSpectralProfNode.py | 81 ++-- .../nodes/generated/ReadOnlyTxSpurNode.py | 39 +- .../generated/ReadOnlyWalfischCouplingNode.py | 91 ++-- .../nodes/generated/ReadOnlyWaveform.py | 97 ++-- .../nodes/generated/ResultPlotNode.py | 243 +++++----- .../nodes/generated/RfSystemGroup.py | 40 +- .../emit_core/nodes/generated/RxMeasNode.py | 171 +++---- .../nodes/generated/RxMixerProductNode.py | 165 +++---- .../nodes/generated/RxSaturationNode.py | 30 +- .../nodes/generated/RxSelectivityNode.py | 36 +- .../emit_core/nodes/generated/RxSpurNode.py | 47 +- .../generated/RxSusceptibilityProfNode.py | 151 +++--- .../emit_core/nodes/generated/SamplingNode.py | 81 ++-- .../nodes/generated/SceneGroupNode.py | 87 ++-- .../nodes/generated/SelectivityTraceNode.py | 107 ++-- .../nodes/generated/SolutionCouplingNode.py | 52 +- .../nodes/generated/SolutionsNode.py | 32 +- .../nodes/generated/SpurTraceNode.py | 119 +++-- .../nodes/generated/TRSwitchTraceNode.py | 119 +++-- .../emit_core/nodes/generated/TR_Switch.py | 135 +++--- .../emit_core/nodes/generated/Terminator.py | 77 +-- .../nodes/generated/TestNoiseTraceNode.py | 175 +++---- .../nodes/generated/TopLevelSimulation.py | 26 +- .../nodes/generated/TouchstoneCouplingNode.py | 84 ++-- .../nodes/generated/TunableTraceNode.py | 129 +++-- .../generated/TwoRayPathLossCouplingNode.py | 195 ++++---- .../nodes/generated/TwoToneTraceNode.py | 175 +++---- .../nodes/generated/TxBbEmissionNode.py | 51 +- .../nodes/generated/TxHarmonicNode.py | 41 +- .../emit_core/nodes/generated/TxMeasNode.py | 66 ++- .../nodes/generated/TxNbEmissionNode.py | 51 +- .../generated/TxSpectralProfEmitterNode.py | 118 ++--- .../nodes/generated/TxSpectralProfNode.py | 211 ++++---- .../emit_core/nodes/generated/TxSpurNode.py | 47 +- .../nodes/generated/WalfischCouplingNode.py | 231 ++++----- .../emit_core/nodes/generated/Waveform.py | 241 ++++----- .../emit_core/nodes/generated/__init__.py | 318 ++++++------ 116 files changed, 6594 insertions(+), 5399 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index 769659be39c..adcce524af1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Amplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -25,13 +51,11 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -40,27 +64,23 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class AmplifierTypeOption(Enum): TRANSMIT_AMPLIFIER = "Transmit Amplifier" @@ -70,16 +90,14 @@ class AmplifierTypeOption(Enum): def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type "Configures the amplifier as a Tx or Rx amplifier." - " """ + " """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] - return val # type: ignore + return val # type: ignore @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Type={value.value}"]) @property def gain(self) -> float: @@ -88,13 +106,11 @@ def gain(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Gain") - return val # type: ignore + return val # type: ignore @gain.setter - def gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Gain={value}"]) + def gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Gain={value}"]) @property def center_frequency(self) -> float: @@ -104,14 +120,12 @@ def center_frequency(self) -> float: """ val = self._get_property("Center Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @center_frequency.setter - def center_frequency(self, value : float|str): + def center_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Center Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Frequency={value}"]) @property def bandwidth(self) -> float: @@ -121,14 +135,12 @@ def bandwidth(self) -> float: """ val = self._get_property("Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth.setter - def bandwidth(self, value : float|str): + def bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth={value}"]) @property def noise_figure(self) -> float: @@ -137,13 +149,11 @@ def noise_figure(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def saturation_level(self) -> float: @@ -153,14 +163,12 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @saturation_level.setter - def saturation_level(self, value : float|str): + def saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) @property def p1_db_point_ref_input(self) -> float: @@ -170,14 +178,12 @@ def p1_db_point_ref_input(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value : float|str): + def p1_db_point_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input={value}"]) @property def ip3_ref_input(self) -> float: @@ -187,14 +193,12 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def shape_factor(self) -> float: @@ -203,13 +207,11 @@ def shape_factor(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @shape_factor.setter - def shape_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Shape Factor={value}"]) + def shape_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) @property def reverse_isolation(self) -> float: @@ -218,13 +220,11 @@ def reverse_isolation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -233,11 +233,8 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py index 791a46aa100..57e6dd99f3c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class AntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -31,15 +57,13 @@ def delete(self): def tags(self) -> str: """Tags "Space delimited list of tags for coupling selections." - " """ + " """ val = self._get_property("Tags") - return val # type: ignore + return val # type: ignore @tags.setter def tags(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tags={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tags={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -48,13 +72,13 @@ def show_relative_coordinates(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -63,13 +87,11 @@ def position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -78,13 +100,11 @@ def relative_position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -94,16 +114,14 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -112,13 +130,11 @@ def orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -127,13 +143,11 @@ def relative_orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def position_defined(self) -> bool: @@ -142,13 +156,11 @@ def position_defined(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Position Defined") - return val # type: ignore + return val # type: ignore @position_defined.setter def position_defined(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position Defined={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Defined={value}"]) @property def antenna_temperature(self) -> float: @@ -157,27 +169,23 @@ def antenna_temperature(self) -> float: "Value should be between 0 and 100000." """ val = self._get_property("Antenna Temperature") - return val # type: ignore + return val # type: ignore @antenna_temperature.setter - def antenna_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna Temperature={value}"]) + def antenna_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna Temperature={value}"]) @property def type(self): """Type "Defines the type of antenna." - " """ + " """ val = self._get_property("Type") - return val # type: ignore + return val # type: ignore @type.setter def type(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value}"]) @property def antenna_file(self) -> str: @@ -185,13 +193,11 @@ def antenna_file(self) -> str: "Value should be a full file path." """ val = self._get_property("Antenna File") - return val # type: ignore + return val # type: ignore @antenna_file.setter def antenna_file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna File={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna File={value}"]) @property def project_name(self) -> str: @@ -200,13 +206,11 @@ def project_name(self) -> str: "Value should be a full file path." """ val = self._get_property("Project Name") - return val # type: ignore + return val # type: ignore @project_name.setter def project_name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Project Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Project Name={value}"]) @property def peak_gain(self) -> float: @@ -215,13 +219,11 @@ def peak_gain(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Peak Gain") - return val # type: ignore + return val # type: ignore @peak_gain.setter - def peak_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Peak Gain={value}"]) + def peak_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Gain={value}"]) class BoresightOption(Enum): XAXIS = "+X Axis" @@ -232,16 +234,14 @@ class BoresightOption(Enum): def boresight(self) -> BoresightOption: """Boresight "Select peak beam direction in local coordinates." - " """ + " """ val = self._get_property("Boresight") val = self.BoresightOption[val] - return val # type: ignore + return val # type: ignore @boresight.setter def boresight(self, value: BoresightOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Boresight={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Boresight={value.value}"]) @property def vertical_beamwidth(self) -> float: @@ -250,13 +250,11 @@ def vertical_beamwidth(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("Vertical Beamwidth") - return val # type: ignore + return val # type: ignore @vertical_beamwidth.setter - def vertical_beamwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Beamwidth={value}"]) + def vertical_beamwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Beamwidth={value}"]) @property def horizontal_beamwidth(self) -> float: @@ -265,13 +263,11 @@ def horizontal_beamwidth(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("Horizontal Beamwidth") - return val # type: ignore + return val # type: ignore @horizontal_beamwidth.setter - def horizontal_beamwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Beamwidth={value}"]) + def horizontal_beamwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Beamwidth={value}"]) @property def extra_sidelobe(self) -> bool: @@ -280,13 +276,11 @@ def extra_sidelobe(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Extra Sidelobe") - return val # type: ignore + return val # type: ignore @extra_sidelobe.setter def extra_sidelobe(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Extra Sidelobe={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Extra Sidelobe={value}"]) @property def first_sidelobe_level(self) -> float: @@ -295,13 +289,11 @@ def first_sidelobe_level(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("First Sidelobe Level") - return val # type: ignore + return val # type: ignore @first_sidelobe_level.setter - def first_sidelobe_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Level={value}"]) + def first_sidelobe_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Level={value}"]) @property def first_sidelobe_vert_bw(self) -> float: @@ -310,13 +302,11 @@ def first_sidelobe_vert_bw(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("First Sidelobe Vert. BW") - return val # type: ignore + return val # type: ignore @first_sidelobe_vert_bw.setter - def first_sidelobe_vert_bw(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Vert. BW={value}"]) + def first_sidelobe_vert_bw(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Vert. BW={value}"]) @property def first_sidelobe_hor_bw(self) -> float: @@ -325,13 +315,11 @@ def first_sidelobe_hor_bw(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("First Sidelobe Hor. BW") - return val # type: ignore + return val # type: ignore @first_sidelobe_hor_bw.setter - def first_sidelobe_hor_bw(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Hor. BW={value}"]) + def first_sidelobe_hor_bw(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Hor. BW={value}"]) @property def outerbacklobe_level(self) -> float: @@ -340,13 +328,11 @@ def outerbacklobe_level(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Outer/Backlobe Level") - return val # type: ignore + return val # type: ignore @outerbacklobe_level.setter - def outerbacklobe_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Outer/Backlobe Level={value}"]) + def outerbacklobe_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Outer/Backlobe Level={value}"]) @property def resonant_frequency(self) -> float: @@ -356,14 +342,12 @@ def resonant_frequency(self) -> float: """ val = self._get_property("Resonant Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @resonant_frequency.setter - def resonant_frequency(self, value : float|str): + def resonant_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Resonant Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resonant Frequency={value}"]) @property def slot_length(self) -> float: @@ -373,14 +357,12 @@ def slot_length(self) -> float: """ val = self._get_property("Slot Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @slot_length.setter - def slot_length(self, value : float|str): + def slot_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Slot Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Slot Length={value}"]) @property def mouth_width(self) -> float: @@ -390,14 +372,12 @@ def mouth_width(self) -> float: """ val = self._get_property("Mouth Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_width.setter - def mouth_width(self, value : float|str): + def mouth_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Width={value}"]) @property def mouth_height(self) -> float: @@ -407,14 +387,12 @@ def mouth_height(self) -> float: """ val = self._get_property("Mouth Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_height.setter - def mouth_height(self, value : float|str): + def mouth_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Height={value}"]) @property def waveguide_width(self) -> float: @@ -424,14 +402,12 @@ def waveguide_width(self) -> float: """ val = self._get_property("Waveguide Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @waveguide_width.setter - def waveguide_width(self, value : float|str): + def waveguide_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Waveguide Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveguide Width={value}"]) @property def width_flare_half_angle(self) -> float: @@ -440,13 +416,11 @@ def width_flare_half_angle(self) -> float: "Value should be between 1 and 89.9." """ val = self._get_property("Width Flare Half-angle") - return val # type: ignore + return val # type: ignore @width_flare_half_angle.setter - def width_flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Width Flare Half-angle={value}"]) + def width_flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width Flare Half-angle={value}"]) @property def height_flare_half_angle(self) -> float: @@ -455,13 +429,11 @@ def height_flare_half_angle(self) -> float: "Value should be between 1 and 89.9." """ val = self._get_property("Height Flare Half-angle") - return val # type: ignore + return val # type: ignore @height_flare_half_angle.setter - def height_flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Height Flare Half-angle={value}"]) + def height_flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height Flare Half-angle={value}"]) @property def mouth_diameter(self) -> float: @@ -471,14 +443,12 @@ def mouth_diameter(self) -> float: """ val = self._get_property("Mouth Diameter") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_diameter.setter - def mouth_diameter(self, value : float|str): + def mouth_diameter(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Diameter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Diameter={value}"]) @property def flare_half_angle(self) -> float: @@ -487,13 +457,11 @@ def flare_half_angle(self) -> float: "Value should be between 1 and 89.9." """ val = self._get_property("Flare Half-angle") - return val # type: ignore + return val # type: ignore @flare_half_angle.setter - def flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Flare Half-angle={value}"]) + def flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flare Half-angle={value}"]) @property def vswr(self) -> float: @@ -502,13 +470,11 @@ def vswr(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @vswr.setter - def vswr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"VSWR={value}"]) + def vswr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) class AntennaPolarizationOption(Enum): VERTICAL = "Vertical" @@ -520,16 +486,16 @@ class AntennaPolarizationOption(Enum): def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] - return val # type: ignore + return val # type: ignore @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna Polarization={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Antenna Polarization={value.value}"] + ) class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" @@ -539,16 +505,14 @@ class CrossDipoleModeOption(Enum): def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode "Choose the Cross Dipole type." - " """ + " """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] - return val # type: ignore + return val # type: ignore @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Cross Dipole Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Cross Dipole Mode={value.value}"]) class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" @@ -558,16 +522,16 @@ class CrossDipolePolarizationOption(Enum): def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] - return val # type: ignore + return val # type: ignore @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Cross Dipole Polarization={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Cross Dipole Polarization={value.value}"] + ) @property def override_height(self) -> bool: @@ -576,13 +540,11 @@ def override_height(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Override Height") - return val # type: ignore + return val # type: ignore @override_height.setter def override_height(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Override Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Override Height={value}"]) @property def offset_height(self) -> float: @@ -592,14 +554,12 @@ def offset_height(self) -> float: """ val = self._get_property("Offset Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @offset_height.setter - def offset_height(self, value : float|str): + def offset_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Offset Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset Height={value}"]) @property def auto_height_offset(self) -> bool: @@ -608,13 +568,11 @@ def auto_height_offset(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Auto Height Offset") - return val # type: ignore + return val # type: ignore @auto_height_offset.setter def auto_height_offset(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Auto Height Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Auto Height Offset={value}"]) @property def conform__adjust_antenna(self) -> bool: @@ -623,13 +581,11 @@ def conform__adjust_antenna(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Conform / Adjust Antenna") - return val # type: ignore + return val # type: ignore @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform / Adjust Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform / Adjust Antenna={value}"]) @property def element_offset(self): @@ -638,13 +594,11 @@ def element_offset(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Element Offset") - return val # type: ignore + return val # type: ignore @element_offset.setter def element_offset(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Element Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Element Offset={value}"]) class ConformtoPlatformOption(Enum): NONE = "None" @@ -655,16 +609,16 @@ class ConformtoPlatformOption(Enum): def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform "Select method of automated conforming applied after Element Offset." - " """ + " """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] - return val # type: ignore + return val # type: ignore @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform to Platform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Conform to Platform={value.value}"] + ) class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" @@ -675,16 +629,14 @@ class ReferencePlaneOption(Enum): def reference_plane(self) -> ReferencePlaneOption: """Reference Plane "Select reference plane for determining original element heights." - " """ + " """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] - return val # type: ignore + return val # type: ignore @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reference Plane={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reference Plane={value.value}"]) @property def conform_element_orientation(self) -> bool: @@ -693,13 +645,13 @@ def conform_element_orientation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Conform Element Orientation") - return val # type: ignore + return val # type: ignore @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform Element Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Conform Element Orientation={value}"] + ) @property def show_axes(self) -> bool: @@ -708,13 +660,11 @@ def show_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def show_icon(self) -> bool: @@ -723,13 +673,11 @@ def show_icon(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Icon") - return val # type: ignore + return val # type: ignore @show_icon.setter def show_icon(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Icon={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Icon={value}"]) @property def size(self) -> float: @@ -738,13 +686,11 @@ def size(self) -> float: "Value should be between 0.001 and 1." """ val = self._get_property("Size") - return val # type: ignore + return val # type: ignore @size.setter - def size(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Size={value}"]) + def size(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Size={value}"]) @property def color(self): @@ -753,29 +699,27 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def el_sample_interval(self) -> float: """El Sample Interval "Space between elevation-angle samples of pattern." - " """ + " """ val = self._get_property("El Sample Interval") - return val # type: ignore + return val # type: ignore @property def az_sample_interval(self) -> float: """Az Sample Interval "Space between azimuth-angle samples of pattern." - " """ + " """ val = self._get_property("Az Sample Interval") - return val # type: ignore + return val # type: ignore @property def has_frequency_domain(self) -> bool: @@ -784,74 +728,74 @@ def has_frequency_domain(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Has Frequency Domain") - return val # type: ignore + return val # type: ignore @property def frequency_domain(self): """Frequency Domain "Frequency sample(s) defining antenna." - " """ + " """ val = self._get_property("Frequency Domain") - return val # type: ignore + return val # type: ignore @property def number_of_electric_sources(self) -> int: """Number of Electric Sources "Number of freestanding electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources "Number of freestanding magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources "Number of imaged, half-space radiating electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources "Number of imaged, half-space radiating magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def waveguide_height(self) -> float: """Waveguide Height "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." - " """ + " """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." - " """ + " """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." - " """ + " """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class SWEModeTruncationOption(Enum): DYNAMIC = "Dynamic" @@ -862,16 +806,16 @@ class SWEModeTruncationOption(Enum): def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation "Select the method for stability-enhancing truncation of spherical wave expansion terms." - " """ + " """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] - return val # type: ignore + return val # type: ignore @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SWE Mode Truncation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"SWE Mode Truncation={value.value}"] + ) @property def max_n_index(self) -> int: @@ -880,27 +824,23 @@ def max_n_index(self) -> int: "Value should be greater than 1." """ val = self._get_property("Max N Index") - return val # type: ignore + return val # type: ignore @max_n_index.setter def max_n_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max N Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max N Index={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) @property def show_composite_passband(self) -> bool: @@ -909,13 +849,11 @@ def show_composite_passband(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Composite Passband") - return val # type: ignore + return val # type: ignore @show_composite_passband.setter def show_composite_passband(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Composite Passband={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Composite Passband={value}"]) @property def use_phase_center(self) -> bool: @@ -924,21 +862,19 @@ def use_phase_center(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Phase Center") - return val # type: ignore + return val # type: ignore @use_phase_center.setter def use_phase_center(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Phase Center={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Phase Center={value}"]) @property def coordinate_systems(self) -> str: """Coordinate Systems "Specifies the coordinate system for the phase center of this antenna." - " """ + " """ val = self._get_property("Coordinate Systems") - return val # type: ignore + return val # type: ignore @property def phasecenterposition(self): @@ -947,7 +883,7 @@ def phasecenterposition(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("PhaseCenterPosition") - return val # type: ignore + return val # type: ignore @property def phasecenterorientation(self): @@ -956,5 +892,4 @@ def phasecenterorientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("PhaseCenterOrientation") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py index b6ff2f640fc..53ec055465e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class AntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -25,7 +50,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -38,13 +63,11 @@ def passband_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Passband Loss") - return val # type: ignore + return val # type: ignore @passband_loss.setter - def passband_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Passband Loss={value}"]) + def passband_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Passband Loss={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -53,13 +76,11 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out of Band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out of Band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out of Band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -69,14 +90,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -86,14 +105,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -103,14 +120,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -120,26 +135,21 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index 5c3ea430acc..e2e80df9244 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Band(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -14,7 +40,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -24,15 +50,13 @@ def enabled(self, value: bool): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) @property def use_dd_1494_mode(self) -> bool: @@ -41,13 +65,11 @@ def use_dd_1494_mode(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use DD-1494 Mode") - return val # type: ignore + return val # type: ignore @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use DD-1494 Mode={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use DD-1494 Mode={value}"]) @property def use_emission_designator(self) -> bool: @@ -56,44 +78,40 @@ def use_emission_designator(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Emission Designator") - return val # type: ignore + return val # type: ignore @use_emission_designator.setter def use_emission_designator(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Emission Designator={value}"]) @property def emission_designator(self) -> str: """Emission Designator "Enter the Emission Designator to define the bandwidth and modulation." - " """ + " """ val = self._get_property("Emission Designator") - return val # type: ignore + return val # type: ignore @emission_designator.setter def emission_designator(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Emission Designator={value}"]) @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." - " """ + " """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def emit_modulation_type(self) -> str: """EMIT Modulation Type "Modulation based off the emission designator." - " """ + " """ val = self._get_property("EMIT Modulation Type") - return val # type: ignore + return val # type: ignore @property def override_emission_designator_bw(self) -> bool: @@ -102,13 +120,13 @@ def override_emission_designator_bw(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Override Emission Designator BW") - return val # type: ignore + return val # type: ignore @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Override Emission Designator BW={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Override Emission Designator BW={value}"] + ) @property def channel_bandwidth(self) -> float: @@ -118,14 +136,12 @@ def channel_bandwidth(self) -> float: """ val = self._get_property("Channel Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_bandwidth.setter - def channel_bandwidth(self, value : float|str): + def channel_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Bandwidth={value}"]) class ModulationOption(Enum): GENERIC = "Generic" @@ -144,16 +160,14 @@ class ModulationOption(Enum): def modulation(self) -> ModulationOption: """Modulation "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Modulation") val = self.ModulationOption[val] - return val # type: ignore + return val # type: ignore @modulation.setter def modulation(self, value: ModulationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation={value.value}"]) @property def max_modulating_freq(self) -> float: @@ -163,14 +177,12 @@ def max_modulating_freq(self) -> float: """ val = self._get_property("Max Modulating Freq.") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_modulating_freq.setter - def max_modulating_freq(self, value : float|str): + def max_modulating_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Modulating Freq.={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Modulating Freq.={value}"]) @property def modulation_index(self) -> float: @@ -179,13 +191,11 @@ def modulation_index(self) -> float: "Value should be between 0.01 and 1." """ val = self._get_property("Modulation Index") - return val # type: ignore + return val # type: ignore @modulation_index.setter - def modulation_index(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation Index={value}"]) + def modulation_index(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Index={value}"]) @property def freq_deviation(self) -> float: @@ -195,14 +205,12 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation.setter - def freq_deviation(self, value : float|str): + def freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) @property def bit_rate(self) -> float: @@ -212,14 +220,12 @@ def bit_rate(self) -> float: """ val = self._get_property("Bit Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @bit_rate.setter - def bit_rate(self, value : float|str): + def bit_rate(self, value: float | str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bit Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bit Rate={value}"]) @property def sidelobes(self) -> int: @@ -228,30 +234,26 @@ def sidelobes(self) -> int: "Value should be greater than 0." """ val = self._get_property("Sidelobes") - return val # type: ignore + return val # type: ignore @sidelobes.setter def sidelobes(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sidelobes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sidelobes={value}"]) @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ val = self._get_property("Freq. Deviation ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation_.setter - def freq_deviation_(self, value : float|str): + def freq_deviation_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation ={value}"]) class PSKTypeOption(Enum): BPSK = "BPSK" @@ -265,16 +267,14 @@ class PSKTypeOption(Enum): def psk_type(self) -> PSKTypeOption: """PSK Type "PSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] - return val # type: ignore + return val # type: ignore @psk_type.setter def psk_type(self, value: PSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"PSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"PSK Type={value.value}"]) class FSKTypeOption(Enum): FSK_2 = "FSK-2" @@ -285,16 +285,14 @@ class FSKTypeOption(Enum): def fsk_type(self) -> FSKTypeOption: """FSK Type "FSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] - return val # type: ignore + return val # type: ignore @fsk_type.setter def fsk_type(self, value: FSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FSK Type={value.value}"]) class QAMTypeOption(Enum): QAM_4 = "QAM-4" @@ -307,16 +305,14 @@ class QAMTypeOption(Enum): def qam_type(self) -> QAMTypeOption: """QAM Type "QAM modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] - return val # type: ignore + return val # type: ignore @qam_type.setter def qam_type(self, value: QAMTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"QAM Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"QAM Type={value.value}"]) class APSKTypeOption(Enum): APSK_4 = "APSK-4" @@ -329,16 +325,14 @@ class APSKTypeOption(Enum): def apsk_type(self) -> APSKTypeOption: """APSK Type "APSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] - return val # type: ignore + return val # type: ignore @apsk_type.setter def apsk_type(self, value: APSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"APSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"APSK Type={value.value}"]) @property def start_frequency(self) -> float: @@ -348,14 +342,12 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -365,14 +357,12 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -382,14 +372,12 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_spacing.setter - def channel_spacing(self, value : float|str): + def channel_spacing(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) @property def tx_offset(self) -> float: @@ -399,14 +387,12 @@ def tx_offset(self) -> float: """ val = self._get_property("Tx Offset") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @tx_offset.setter - def tx_offset(self, value : float|str): + def tx_offset(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Offset={value}"]) class RadarTypeOption(Enum): CW = "CW" @@ -419,16 +405,14 @@ class RadarTypeOption(Enum): def radar_type(self) -> RadarTypeOption: """Radar Type "Radar type: helps determine spectral profile." - " """ + " """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] - return val # type: ignore + return val # type: ignore @radar_type.setter def radar_type(self, value: RadarTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Radar Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radar Type={value.value}"]) @property def hopping_radar(self) -> bool: @@ -437,13 +421,11 @@ def hopping_radar(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Hopping Radar") - return val # type: ignore + return val # type: ignore @hopping_radar.setter def hopping_radar(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hopping Radar={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hopping Radar={value}"]) @property def post_october_2020_procurement(self) -> bool: @@ -452,13 +434,13 @@ def post_october_2020_procurement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Post October 2020 Procurement") - return val # type: ignore + return val # type: ignore @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Post October 2020 Procurement={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Post October 2020 Procurement={value}"] + ) @property def hop_range_min_freq(self) -> float: @@ -468,14 +450,12 @@ def hop_range_min_freq(self) -> float: """ val = self._get_property("Hop Range Min Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @hop_range_min_freq.setter - def hop_range_min_freq(self, value : float|str): + def hop_range_min_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hop Range Min Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Min Freq={value}"]) @property def hop_range_max_freq(self) -> float: @@ -485,14 +465,12 @@ def hop_range_max_freq(self) -> float: """ val = self._get_property("Hop Range Max Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @hop_range_max_freq.setter - def hop_range_max_freq(self, value : float|str): + def hop_range_max_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hop Range Max Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Max Freq={value}"]) @property def pulse_duration(self) -> float: @@ -502,14 +480,12 @@ def pulse_duration(self) -> float: """ val = self._get_property("Pulse Duration") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_duration.setter - def pulse_duration(self, value : float|str): + def pulse_duration(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Duration={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Duration={value}"]) @property def pulse_rise_time(self) -> float: @@ -519,14 +495,12 @@ def pulse_rise_time(self) -> float: """ val = self._get_property("Pulse Rise Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_rise_time.setter - def pulse_rise_time(self, value : float|str): + def pulse_rise_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Rise Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Rise Time={value}"]) @property def pulse_fall_time(self) -> float: @@ -536,14 +510,12 @@ def pulse_fall_time(self) -> float: """ val = self._get_property("Pulse Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_fall_time.setter - def pulse_fall_time(self, value : float|str): + def pulse_fall_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Fall Time={value}"]) @property def pulse_repetition_rate(self) -> float: @@ -552,13 +524,11 @@ def pulse_repetition_rate(self) -> float: "Value should be greater than 1." """ val = self._get_property("Pulse Repetition Rate") - return val # type: ignore + return val # type: ignore @pulse_repetition_rate.setter - def pulse_repetition_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Repetition Rate={value}"]) + def pulse_repetition_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Repetition Rate={value}"]) @property def number_of_chips(self) -> float: @@ -567,13 +537,11 @@ def number_of_chips(self) -> float: "Value should be greater than 1." """ val = self._get_property("Number of Chips") - return val # type: ignore + return val # type: ignore @number_of_chips.setter - def number_of_chips(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Chips={value}"]) + def number_of_chips(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Chips={value}"]) @property def pulse_compression_ratio(self) -> float: @@ -582,13 +550,11 @@ def pulse_compression_ratio(self) -> float: "Value should be greater than 1." """ val = self._get_property("Pulse Compression Ratio") - return val # type: ignore + return val # type: ignore @pulse_compression_ratio.setter - def pulse_compression_ratio(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Compression Ratio={value}"]) + def pulse_compression_ratio(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Compression Ratio={value}"]) @property def fm_chirp_period(self) -> float: @@ -598,14 +564,12 @@ def fm_chirp_period(self) -> float: """ val = self._get_property("FM Chirp Period") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @fm_chirp_period.setter - def fm_chirp_period(self, value : float|str): + def fm_chirp_period(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Chirp Period={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Chirp Period={value}"]) @property def fm_freq_deviation(self) -> float: @@ -615,14 +579,12 @@ def fm_freq_deviation(self) -> float: """ val = self._get_property("FM Freq Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @fm_freq_deviation.setter - def fm_freq_deviation(self, value : float|str): + def fm_freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Freq Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Deviation={value}"]) @property def fm_freq_dev_bandwidth(self) -> float: @@ -632,12 +594,9 @@ def fm_freq_dev_bandwidth(self) -> float: """ val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value : float|str): + def fm_freq_dev_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Freq Dev Bandwidth={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Dev Bandwidth={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py index b16ed48b03e..e173c1d3913 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class BandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -25,4 +50,3 @@ def duplicate(self, new_name): def delete(self): """Delete this node""" self._delete() - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py index c6a657f343e..05eeafc2527 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class BandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -27,15 +53,13 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) class TxorRxOption(Enum): TX = "Tx" @@ -45,39 +69,35 @@ class TxorRxOption(Enum): def tx_or_rx(self) -> TxorRxOption: """Tx or Rx "Specifies whether the trace is a Tx or Rx channel." - " """ + " """ val = self._get_property("Tx or Rx") val = self.TxorRxOption[val] - return val # type: ignore + return val # type: ignore @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx or Rx={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx or Rx={value.value}"]) @property def channel_frequency(self): """Channel Frequency "Select band channel frequency to display." - " """ + " """ val = self._get_property("Channel Frequency") - return val # type: ignore + return val # type: ignore @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def visible(self) -> bool: @@ -86,13 +106,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -101,27 +119,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -135,16 +149,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -153,13 +165,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -168,13 +178,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -197,16 +205,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -215,13 +221,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -230,13 +234,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -245,13 +247,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -260,11 +260,8 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py index c20f1200c50..7f6c9e24351 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class CADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -30,7 +56,7 @@ def file(self) -> str: "Value should be a full file path." """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore class ModelTypeOption(Enum): PLATE = "Plate" @@ -52,16 +78,14 @@ class ModelTypeOption(Enum): def model_type(self) -> ModelTypeOption: """Model Type "Select type of parametric model to create." - " """ + " """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] - return val # type: ignore + return val # type: ignore @model_type.setter def model_type(self, value: ModelTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Model Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Model Type={value.value}"]) @property def length(self) -> float: @@ -71,14 +95,12 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @length.setter - def length(self, value : float|str): + def length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) @property def width(self) -> float: @@ -88,14 +110,12 @@ def width(self) -> float: """ val = self._get_property("Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @width.setter - def width(self, value : float|str): + def width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width={value}"]) @property def height(self) -> float: @@ -105,14 +125,12 @@ def height(self) -> float: """ val = self._get_property("Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @height.setter - def height(self, value : float|str): + def height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height={value}"]) @property def angle(self) -> float: @@ -121,13 +139,11 @@ def angle(self) -> float: "Value should be between 0 and 360." """ val = self._get_property("Angle") - return val # type: ignore + return val # type: ignore @angle.setter - def angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Angle={value}"]) + def angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Angle={value}"]) @property def top_side(self) -> float: @@ -137,14 +153,12 @@ def top_side(self) -> float: """ val = self._get_property("Top Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @top_side.setter - def top_side(self, value : float|str): + def top_side(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Top Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Side={value}"]) @property def top_radius(self) -> float: @@ -154,14 +168,12 @@ def top_radius(self) -> float: """ val = self._get_property("Top Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @top_radius.setter - def top_radius(self, value : float|str): + def top_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Top Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Radius={value}"]) @property def side(self) -> float: @@ -171,14 +183,12 @@ def side(self) -> float: """ val = self._get_property("Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @side.setter - def side(self, value : float|str): + def side(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Side={value}"]) @property def radius(self) -> float: @@ -188,14 +198,12 @@ def radius(self) -> float: """ val = self._get_property("Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @radius.setter - def radius(self, value : float|str): + def radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radius={value}"]) @property def base_radius(self) -> float: @@ -205,14 +213,12 @@ def base_radius(self) -> float: """ val = self._get_property("Base Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @base_radius.setter - def base_radius(self, value : float|str): + def base_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Radius={value}"]) @property def center_radius(self) -> float: @@ -222,14 +228,12 @@ def center_radius(self) -> float: """ val = self._get_property("Center Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @center_radius.setter - def center_radius(self, value : float|str): + def center_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Center Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Radius={value}"]) @property def x_axis_ellipsoid_radius(self) -> float: @@ -239,14 +243,12 @@ def x_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("X Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value : float|str): + def x_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Axis Ellipsoid Radius={value}"]) @property def y_axis_ellipsoid_radius(self) -> float: @@ -256,14 +258,12 @@ def y_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Y Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value : float|str): + def y_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Axis Ellipsoid Radius={value}"]) @property def z_axis_ellipsoid_radius(self) -> float: @@ -273,14 +273,12 @@ def z_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Z Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value : float|str): + def z_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Z Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Z Axis Ellipsoid Radius={value}"]) @property def focal_length(self) -> float: @@ -290,30 +288,26 @@ def focal_length(self) -> float: """ val = self._get_property("Focal Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @focal_length.setter - def focal_length(self, value : float|str): + def focal_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Focal Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Focal Length={value}"]) @property def offset(self) -> float: """Offset "Offset of parabolic reflector." - " """ + " """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @offset.setter - def offset(self, value : float|str): + def offset(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset={value}"]) @property def x_direction_taper(self) -> float: @@ -322,13 +316,11 @@ def x_direction_taper(self) -> float: "Value should be greater than 0." """ val = self._get_property("X Direction Taper") - return val # type: ignore + return val # type: ignore @x_direction_taper.setter - def x_direction_taper(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X Direction Taper={value}"]) + def x_direction_taper(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Direction Taper={value}"]) @property def y_direction_taper(self) -> float: @@ -337,13 +329,11 @@ def y_direction_taper(self) -> float: "Value should be greater than 0." """ val = self._get_property("Y Direction Taper") - return val # type: ignore + return val # type: ignore @y_direction_taper.setter - def y_direction_taper(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y Direction Taper={value}"]) + def y_direction_taper(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Direction Taper={value}"]) @property def prism_direction(self): @@ -352,13 +342,11 @@ def prism_direction(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Prism Direction") - return val # type: ignore + return val # type: ignore @prism_direction.setter def prism_direction(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Prism Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Prism Direction={value}"]) @property def closed_top(self) -> bool: @@ -367,13 +355,11 @@ def closed_top(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Closed Top") - return val # type: ignore + return val # type: ignore @closed_top.setter def closed_top(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Closed Top={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Top={value}"]) @property def closed_base(self) -> bool: @@ -382,13 +368,11 @@ def closed_base(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Closed Base") - return val # type: ignore + return val # type: ignore @closed_base.setter def closed_base(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Closed Base={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Base={value}"]) @property def mesh_density(self) -> int: @@ -397,13 +381,11 @@ def mesh_density(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Mesh Density") - return val # type: ignore + return val # type: ignore @mesh_density.setter def mesh_density(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mesh Density={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Density={value}"]) @property def use_symmetric_mesh(self) -> bool: @@ -412,13 +394,11 @@ def use_symmetric_mesh(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Symmetric Mesh") - return val # type: ignore + return val # type: ignore @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Symmetric Mesh={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Symmetric Mesh={value}"]) class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -428,16 +408,14 @@ class MeshOptionOption(Enum): def mesh_option(self) -> MeshOptionOption: """Mesh Option "Select from different meshing options." - " """ + " """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] - return val # type: ignore + return val # type: ignore @mesh_option.setter def mesh_option(self, value: MeshOptionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mesh Option={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Option={value.value}"]) @property def coating_index(self) -> int: @@ -446,13 +424,11 @@ def coating_index(self) -> int: "Value should be between 0 and 100000." """ val = self._get_property("Coating Index") - return val # type: ignore + return val # type: ignore @coating_index.setter def coating_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Coating Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Coating Index={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -461,13 +437,13 @@ def show_relative_coordinates(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -476,13 +452,11 @@ def position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -491,13 +465,11 @@ def relative_position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -507,16 +479,14 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -525,13 +495,11 @@ def orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -540,13 +508,11 @@ def relative_orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def visible(self) -> bool: @@ -555,13 +521,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -573,16 +537,14 @@ class RenderModeOption(Enum): def render_mode(self) -> RenderModeOption: """Render Mode "Select drawing style for surfaces." - " """ + " """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] - return val # type: ignore + return val # type: ignore @render_mode.setter def render_mode(self, value: RenderModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Render Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Render Mode={value.value}"]) @property def show_axes(self) -> bool: @@ -591,13 +553,11 @@ def show_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def min(self): @@ -606,7 +566,7 @@ def min(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Min") - return val # type: ignore + return val # type: ignore @property def max(self): @@ -615,15 +575,15 @@ def max(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Max") - return val # type: ignore + return val # type: ignore @property def number_of_surfaces(self) -> int: """Number of Surfaces "Number of surfaces in the model." - " """ + " """ val = self._get_property("Number of Surfaces") - return val # type: ignore + return val # type: ignore @property def color(self): @@ -632,25 +592,20 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index ecbd8e12fff..722c57f550e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Cable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -25,13 +51,11 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -40,27 +64,23 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -71,16 +91,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def length(self) -> float: @@ -90,14 +108,12 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @length.setter - def length(self, value : float|str): + def length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) @property def loss_per_length(self) -> float: @@ -106,13 +122,11 @@ def loss_per_length(self) -> float: "Value should be between 0 and 20." """ val = self._get_property("Loss Per Length") - return val # type: ignore + return val # type: ignore @loss_per_length.setter - def loss_per_length(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Loss Per Length={value}"]) + def loss_per_length(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Loss Per Length={value}"]) @property def measurement_length(self) -> float: @@ -122,14 +136,12 @@ def measurement_length(self) -> float: """ val = self._get_property("Measurement Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @measurement_length.setter - def measurement_length(self, value : float|str): + def measurement_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Length={value}"]) @property def resistive_loss_constant(self) -> float: @@ -138,13 +150,11 @@ def resistive_loss_constant(self) -> float: "Value should be between 0 and 2." """ val = self._get_property("Resistive Loss Constant") - return val # type: ignore + return val # type: ignore @resistive_loss_constant.setter - def resistive_loss_constant(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Resistive Loss Constant={value}"]) + def resistive_loss_constant(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resistive Loss Constant={value}"]) @property def dielectric_loss_constant(self) -> float: @@ -153,19 +163,16 @@ def dielectric_loss_constant(self) -> float: "Value should be between 0 and 1." """ val = self._get_property("Dielectric Loss Constant") - return val # type: ignore + return val # type: ignore @dielectric_loss_constant.setter - def dielectric_loss_constant(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Dielectric Loss Constant={value}"]) + def dielectric_loss_constant(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Dielectric Loss Constant={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py index 82bd87eb625..7d77e3d1184 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py @@ -1,7 +1,31 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class CategoriesViewNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index 43eacd2faee..cb1aa73a4ad 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Circulator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -25,13 +51,11 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -40,27 +64,23 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -70,16 +90,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -89,16 +107,14 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the circulator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -107,13 +123,11 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -122,13 +136,11 @@ def finite_reverse_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -137,13 +149,11 @@ def reverse_isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -152,13 +162,11 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -167,13 +175,11 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -183,14 +189,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -200,14 +204,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -217,14 +219,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -234,20 +234,17 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py index ebdec441f77..57a22b214b6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class CouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -17,26 +42,21 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def ports(self): """Ports "Maps each port in the link to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ports={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py index c0d2a188e62..d79a96c6d73 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class CouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -26,42 +52,36 @@ def delete(self): @property def transmitter(self) -> EmitNode: """Transmitter - " """ + " """ val = self._get_property("Transmitter") - return val # type: ignore + return val # type: ignore @transmitter.setter def transmitter(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Transmitter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Transmitter={value}"]) @property def receiver(self) -> EmitNode: """Receiver - " """ + " """ val = self._get_property("Receiver") - return val # type: ignore + return val # type: ignore @receiver.setter def receiver(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Receiver={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -70,13 +90,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -85,27 +103,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -119,16 +133,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -137,13 +149,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -152,13 +162,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -181,16 +189,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -199,13 +205,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -214,13 +218,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -229,13 +231,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -244,13 +244,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def highlight_regions(self) -> bool: @@ -259,13 +257,11 @@ def highlight_regions(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Highlight Regions") - return val # type: ignore + return val # type: ignore @highlight_regions.setter def highlight_regions(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Highlight Regions={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highlight Regions={value}"]) @property def show_region_labels(self) -> bool: @@ -274,13 +270,11 @@ def show_region_labels(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Region Labels") - return val # type: ignore + return val # type: ignore @show_region_labels.setter def show_region_labels(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Region Labels={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Region Labels={value}"]) @property def font(self): @@ -289,13 +283,11 @@ def font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -304,13 +296,11 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -319,13 +309,11 @@ def background_color(self): "Color should be in RGBA form: #AARRGGBB." """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -334,13 +322,11 @@ def border(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Border") - return val # type: ignore + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -349,13 +335,11 @@ def border_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -364,11 +348,8 @@ def border_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py index 732fb2d0107..ee4f848f03f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class CouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -7,7 +32,7 @@ def __init__(self, oDesign, result_id, node_id): def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" - return self._import(file_name,"TouchstoneCoupling") + return self._import(file_name, "TouchstoneCoupling") def add_custom_coupling(self): """Add a new node to define custom coupling between antennas""" @@ -52,13 +77,11 @@ def minimum_allowed_coupling(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Minimum Allowed Coupling") - return val # type: ignore + return val # type: ignore @minimum_allowed_coupling.setter - def minimum_allowed_coupling(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minimum Allowed Coupling={value}"]) + def minimum_allowed_coupling(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Allowed Coupling={value}"]) @property def global_default_coupling(self) -> float: @@ -67,19 +90,16 @@ def global_default_coupling(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Global Default Coupling") - return val # type: ignore + return val # type: ignore @global_default_coupling.setter - def global_default_coupling(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Global Default Coupling={value}"]) + def global_default_coupling(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Global Default Coupling={value}"]) @property def antenna_tags(self) -> str: """Antenna Tags "All tags currently used by all antennas in the project." - " """ + " """ val = self._get_property("Antenna Tags") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py index 56ebcbea022..da3d9facb87 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class CustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def rename(self, new_name): """Rename this node""" @@ -28,11 +53,11 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Value (dB): + "Value (dB): " Value should be between -1000 and 0." """ return self._get_table_data() @@ -48,41 +73,35 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -91,13 +110,11 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -106,25 +123,20 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py index d3ebf5e3814..53aa4ace767 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class EmiPlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -30,43 +56,39 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def attached(self): """Attached "Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False)." - " """ + " """ val = self._get_property("Attached") - return val # type: ignore + return val # type: ignore @attached.setter def attached(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) @property def position_x(self) -> float: """Position X "Position of the marker on the X-axis (frequency axis).." - " """ + " """ val = self._get_property("Position X") - return val # type: ignore + return val # type: ignore @property def position_y(self) -> float: """Position Y "Position of the marker on the Y-axis (result axis).." - " """ + " """ val = self._get_property("Position Y") - return val # type: ignore + return val # type: ignore @property def floating_label(self) -> bool: @@ -75,13 +97,11 @@ def floating_label(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Floating Label") - return val # type: ignore + return val # type: ignore @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -90,13 +110,11 @@ def position_from_left(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Position from Left") - return val # type: ignore + return val # type: ignore @position_from_left.setter - def position_from_left(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Left={value}"]) + def position_from_left(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -105,27 +123,23 @@ def position_from_top(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Position from Top") - return val # type: ignore + return val # type: ignore @position_from_top.setter - def position_from_top(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Top={value}"]) + def position_from_top(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) @property def text(self) -> str: """Text "Set the text of the label." - " """ + " """ val = self._get_property("Text") - return val # type: ignore + return val # type: ignore @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -136,16 +150,16 @@ class HorizontalPositionOption(Enum): def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position "Specify horizontal position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] - return val # type: ignore + return val # type: ignore @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Horizontal Position={value.value}"] + ) class VerticalPositionOption(Enum): TOP = "Top" @@ -156,16 +170,14 @@ class VerticalPositionOption(Enum): def vertical_position(self) -> VerticalPositionOption: """Vertical Position "Specify vertical position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] - return val # type: ignore + return val # type: ignore @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -176,16 +188,14 @@ class TextAlignmentOption(Enum): def text_alignment(self) -> TextAlignmentOption: """Text Alignment "Specify justification applied to multi-line text." - " """ + " """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] - return val # type: ignore + return val # type: ignore @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) @property def font(self): @@ -194,13 +204,11 @@ def font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -209,13 +217,11 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -224,13 +230,11 @@ def background_color(self): "Color should be in RGBA form: #AARRGGBB." """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -239,13 +243,11 @@ def border(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Border") - return val # type: ignore + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -254,13 +256,11 @@ def border_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -269,13 +269,11 @@ def border_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -299,16 +297,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Specify symbol displayed next to the label." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -317,13 +313,11 @@ def arrow_direction(self) -> int: "Value should be between -360 and 360." """ val = self._get_property("Arrow Direction") - return val # type: ignore + return val # type: ignore @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -332,13 +326,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -347,13 +339,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -362,13 +352,11 @@ def line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -377,11 +365,8 @@ def filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Filled") - return val # type: ignore + return val # type: ignore @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py index 5fa7ec95182..d65786db548 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class EmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -14,15 +40,13 @@ def add_group(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class GroundPlaneNormalOption(Enum): X_AXIS = "X Axis" @@ -33,30 +57,27 @@ class GroundPlaneNormalOption(Enum): def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal "Specifies the axis of the normal to the ground plane." - " """ + " """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] - return val # type: ignore + return val # type: ignore @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ground Plane Normal={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"] + ) @property def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." - " """ + " """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @gp_position_along_normal.setter - def gp_position_along_normal(self, value : float|str): + def gp_position_along_normal(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"GP Position Along Normal={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GP Position Along Normal={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py index 584842c9bbd..02b96d79fc5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -30,41 +56,35 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -73,13 +93,11 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -88,27 +106,23 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class TerrainCategoryOption(Enum): TYPE_A = "Type A" @@ -119,16 +133,14 @@ class TerrainCategoryOption(Enum): def terrain_category(self) -> TerrainCategoryOption: """Terrain Category "Specify the terrain category type for the Erceg model." - " """ + " """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] - return val # type: ignore + return val # type: ignore @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Terrain Category={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Terrain Category={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -137,13 +149,11 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -152,13 +162,11 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -167,13 +175,11 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -185,16 +191,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -203,13 +207,11 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -218,13 +220,11 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -233,13 +233,11 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -248,13 +246,11 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -263,13 +259,11 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -278,13 +272,11 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -293,13 +285,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -308,13 +300,11 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -323,13 +313,11 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -338,11 +326,10 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index 5780cd7d62f..46027623d0c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Filter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -25,13 +51,11 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -40,27 +64,23 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -75,16 +95,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def insertion_loss(self) -> float: @@ -93,13 +111,11 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -108,13 +124,11 @@ def stop_band_attenuation(self) -> float: "Value should be less than 200." """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @stop_band_attenuation.setter - def stop_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -124,14 +138,12 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_pass_band.setter - def max_pass_band(self, value : float|str): + def max_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -141,14 +153,12 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_stop_band.setter - def min_stop_band(self, value : float|str): + def min_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -158,14 +168,12 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_stop_band.setter - def max_stop_band(self, value : float|str): + def max_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -175,14 +183,12 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_pass_band.setter - def min_pass_band(self, value : float|str): + def min_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -192,14 +198,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -209,14 +213,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -226,14 +228,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -243,116 +243,102 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Lower Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff_.setter - def lower_cutoff_(self, value : float|str): + def lower_cutoff_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff ={value}"]) @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Lower Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band_.setter - def lower_stop_band_(self, value : float|str): + def lower_stop_band_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band ={value}"]) @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Higher Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band_.setter - def higher_stop_band_(self, value : float|str): + def higher_stop_band_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band ={value}"]) @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Higher Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff_.setter - def higher_cutoff_(self, value : float|str): + def higher_cutoff_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff ={value}"]) @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency "Lowest tuned frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Lowest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lowest_tuned_frequency_.setter - def lowest_tuned_frequency_(self, value : float|str): + def lowest_tuned_frequency_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lowest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lowest Tuned Frequency ={value}"]) @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency "Highest tuned frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Highest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @highest_tuned_frequency_.setter - def highest_tuned_frequency_(self, value : float|str): + def highest_tuned_frequency_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Highest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highest Tuned Frequency ={value}"]) @property def percent_bandwidth(self) -> float: @@ -361,13 +347,11 @@ def percent_bandwidth(self) -> float: "Value should be between 0.001 and 100." """ val = self._get_property("Percent Bandwidth") - return val # type: ignore + return val # type: ignore @percent_bandwidth.setter - def percent_bandwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Percent Bandwidth={value}"]) + def percent_bandwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percent Bandwidth={value}"]) @property def shape_factor(self) -> float: @@ -376,19 +360,16 @@ def shape_factor(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @shape_factor.setter - def shape_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Shape Factor={value}"]) + def shape_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py index 4e8eeb4f6c7..ab929af5801 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class FiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -30,41 +56,35 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -73,13 +93,11 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -88,27 +106,23 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): URBAN_MICROCELL = "Urban Microcell" @@ -119,16 +133,14 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment for the 5G channel model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def los(self) -> bool: @@ -137,13 +149,11 @@ def los(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("LOS") - return val # type: ignore + return val # type: ignore @los.setter def los(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"LOS={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"LOS={value}"]) @property def include_bpl(self) -> bool: @@ -152,13 +162,11 @@ def include_bpl(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include BPL") - return val # type: ignore + return val # type: ignore @include_bpl.setter def include_bpl(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include BPL={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include BPL={value}"]) class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -168,16 +176,14 @@ class NYUBPLModelOption(Enum): def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model "Specify the NYU Building Penetration Loss model." - " """ + " """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] - return val # type: ignore + return val # type: ignore @nyu_bpl_model.setter def nyu_bpl_model(self, value: NYUBPLModelOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NYU BPL Model={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NYU BPL Model={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -186,13 +192,11 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -201,13 +205,11 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -216,13 +218,11 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -234,16 +234,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -252,13 +250,11 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -267,13 +263,11 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -282,13 +276,11 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -297,13 +289,11 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -312,13 +302,11 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -327,13 +315,11 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -342,13 +328,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -357,13 +343,11 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -372,13 +356,11 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -387,11 +369,10 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py index a9744669b97..723af28959d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class HataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -30,41 +56,35 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -73,13 +93,11 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -88,27 +106,23 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): LARGE_CITY = "Large City" @@ -120,16 +134,14 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Hata model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -138,13 +150,11 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -153,13 +163,11 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -168,13 +176,11 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -186,16 +192,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -204,13 +208,11 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -219,13 +221,11 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -234,13 +234,11 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -249,13 +247,11 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -264,13 +260,11 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -279,13 +273,11 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -294,13 +286,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -309,13 +301,11 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -324,13 +314,11 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -339,11 +327,10 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py index 8b4436a364e..b117a8bc328 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class IndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -25,13 +51,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Power Loss Coefficient: + "Power Loss Coefficient: " Value should be between 0 and 100." - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): " Value should be between 0 and 1000." """ return self._get_table_data() @@ -47,41 +73,35 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -90,13 +110,11 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -105,27 +123,23 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class BuildingTypeOption(Enum): RESIDENTIAL_APARTMENT = "Residential Apartment" @@ -138,16 +152,14 @@ class BuildingTypeOption(Enum): def building_type(self) -> BuildingTypeOption: """Building Type "Specify the building type for the Indoor Propagation model." - " """ + " """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] - return val # type: ignore + return val # type: ignore @building_type.setter def building_type(self, value: BuildingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Building Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Building Type={value.value}"]) @property def number_of_floors(self) -> int: @@ -156,13 +168,11 @@ def number_of_floors(self) -> int: "Value should be between 1 and 3." """ val = self._get_property("Number of Floors") - return val # type: ignore + return val # type: ignore @number_of_floors.setter def number_of_floors(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Floors={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Floors={value}"]) @property def custom_fading_margin(self) -> float: @@ -171,13 +181,11 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -186,13 +194,11 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -201,13 +207,11 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -219,16 +223,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -237,13 +239,11 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -252,13 +252,11 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -267,13 +265,11 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -282,13 +278,11 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -297,13 +291,11 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -312,13 +304,11 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -327,13 +317,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -342,13 +332,11 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -357,13 +345,11 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -372,11 +358,10 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index 3188286f581..6ded95e3e39 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Isolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -25,13 +51,11 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -40,27 +64,23 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -70,16 +90,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -89,16 +107,14 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the isolator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -107,13 +123,11 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -122,13 +136,11 @@ def finite_reverse_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -137,13 +149,11 @@ def reverse_isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -152,13 +162,11 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -167,13 +175,11 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -183,14 +189,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -200,14 +204,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -217,14 +219,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -234,20 +234,17 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py index 6be3579ba36..7cda0255a91 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class LogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -30,41 +56,35 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -73,13 +93,11 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -88,27 +106,23 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): FREE_SPACE = "Free Space" @@ -123,16 +137,14 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Log Distance model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def path_loss_exponent(self) -> float: @@ -141,13 +153,11 @@ def path_loss_exponent(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Path Loss Exponent") - return val # type: ignore + return val # type: ignore @path_loss_exponent.setter - def path_loss_exponent(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Path Loss Exponent={value}"]) + def path_loss_exponent(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Exponent={value}"]) @property def custom_fading_margin(self) -> float: @@ -156,13 +166,11 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -171,13 +179,11 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -186,13 +192,11 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -204,16 +208,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -222,13 +224,11 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -237,13 +237,11 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -252,13 +250,11 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -267,13 +263,11 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -282,13 +276,11 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -297,13 +289,11 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -312,13 +302,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -327,13 +317,11 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -342,13 +330,11 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -357,11 +343,10 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py index 289f8de29fd..70cec510d14 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class MPlexBandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -29,30 +55,26 @@ class PowerDirectionOption(Enum): @property def power_direction(self) -> PowerDirectionOption: """Power Direction - " """ + " """ val = self._get_property("Power Direction") val = self.PowerDirectionOption[val] - return val # type: ignore + return val # type: ignore @power_direction.setter def power_direction(self, value: PowerDirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Power Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Power Direction={value.value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -61,13 +83,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -76,27 +96,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -110,16 +126,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -128,13 +142,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -143,13 +155,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -172,16 +182,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -190,13 +198,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -205,13 +211,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -220,13 +224,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -235,11 +237,8 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index 3fe45402082..bb2ab262e5a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Multiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -29,13 +55,11 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -44,27 +68,23 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_PASS_BAND = "By Pass Band" @@ -74,16 +94,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -93,16 +111,14 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the multiplexer.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def flip_ports_vertically(self) -> bool: @@ -111,34 +127,29 @@ def flip_ports_vertically(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Flip Ports Vertically") - return val # type: ignore + return val # type: ignore @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Flip Ports Vertically={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flip Ports Vertically={value}"]) @property def ports(self): """Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ + " """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py index 1b131bc29a1..4ef2d5f6b7f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class MultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -33,16 +59,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def filename(self) -> str: @@ -51,13 +75,11 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def insertion_loss(self) -> float: @@ -66,13 +88,11 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -81,13 +101,11 @@ def stop_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @stop_band_attenuation.setter - def stop_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -97,14 +115,12 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_pass_band.setter - def max_pass_band(self, value : float|str): + def max_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -114,14 +130,12 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_stop_band.setter - def min_stop_band(self, value : float|str): + def min_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -131,14 +145,12 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_stop_band.setter - def max_stop_band(self, value : float|str): + def max_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -148,14 +160,12 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_pass_band.setter - def min_pass_band(self, value : float|str): + def min_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -165,14 +175,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -182,14 +190,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -199,14 +205,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -216,20 +220,17 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py index 7e8cb4d3824..463bdc1d67e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class OutboardTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -30,13 +56,11 @@ def input_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -45,27 +69,23 @@ def output_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -74,13 +94,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -89,27 +107,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -123,16 +137,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -141,13 +153,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -156,13 +166,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -185,16 +193,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -203,13 +209,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -218,13 +222,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -233,13 +235,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -248,11 +248,8 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py index ee81afe6816..394562831e0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ParametricCouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -26,42 +52,36 @@ def delete(self): @property def antenna_a(self) -> EmitNode: """Antenna A - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -70,13 +90,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -85,27 +103,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -119,16 +133,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -137,13 +149,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -152,13 +162,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -181,16 +189,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -199,13 +205,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -214,13 +218,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -229,13 +231,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -244,11 +244,8 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py index 59297cd17a4..0538755e75b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -30,13 +56,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def attached(self) -> bool: @@ -45,41 +69,35 @@ def attached(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Attached") - return val # type: ignore + return val # type: ignore @attached.setter def attached(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) @property def position_x(self) -> float: """Position X "Position of the marker on the X-axis (frequency axis).." - " """ + " """ val = self._get_property("Position X") - return val # type: ignore + return val # type: ignore @position_x.setter - def position_x(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position X={value}"]) + def position_x(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position X={value}"]) @property def position_y(self) -> float: """Position Y "Position of the marker on the Y-axis (result axis).." - " """ + " """ val = self._get_property("Position Y") - return val # type: ignore + return val # type: ignore @position_y.setter - def position_y(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position Y={value}"]) + def position_y(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Y={value}"]) @property def floating_label(self) -> bool: @@ -88,13 +106,11 @@ def floating_label(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Floating Label") - return val # type: ignore + return val # type: ignore @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -103,13 +119,11 @@ def position_from_left(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Position from Left") - return val # type: ignore + return val # type: ignore @position_from_left.setter - def position_from_left(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Left={value}"]) + def position_from_left(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -118,27 +132,23 @@ def position_from_top(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Position from Top") - return val # type: ignore + return val # type: ignore @position_from_top.setter - def position_from_top(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Top={value}"]) + def position_from_top(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) @property def text(self) -> str: """Text "Set the text of the label." - " """ + " """ val = self._get_property("Text") - return val # type: ignore + return val # type: ignore @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -149,16 +159,16 @@ class HorizontalPositionOption(Enum): def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position "Specify horizontal position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] - return val # type: ignore + return val # type: ignore @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Horizontal Position={value.value}"] + ) class VerticalPositionOption(Enum): TOP = "Top" @@ -169,16 +179,14 @@ class VerticalPositionOption(Enum): def vertical_position(self) -> VerticalPositionOption: """Vertical Position "Specify vertical position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] - return val # type: ignore + return val # type: ignore @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -189,16 +197,14 @@ class TextAlignmentOption(Enum): def text_alignment(self) -> TextAlignmentOption: """Text Alignment "Specify justification applied to multi-line text." - " """ + " """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] - return val # type: ignore + return val # type: ignore @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) @property def font(self): @@ -207,13 +213,11 @@ def font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -222,13 +226,11 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -237,13 +239,11 @@ def background_color(self): "Color should be in RGBA form: #AARRGGBB." """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -252,13 +252,11 @@ def border(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Border") - return val # type: ignore + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -267,13 +265,11 @@ def border_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -282,13 +278,11 @@ def border_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -312,16 +306,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Specify symbol displayed next to the label." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -330,13 +322,11 @@ def arrow_direction(self) -> int: "Value should be between -360 and 360." """ val = self._get_property("Arrow Direction") - return val # type: ignore + return val # type: ignore @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -345,13 +335,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -360,13 +348,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -375,13 +361,11 @@ def line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -390,11 +374,8 @@ def filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Filled") - return val # type: ignore + return val # type: ignore @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py index 8d52c34ed66..283c7c0bec7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -30,15 +56,13 @@ def delete(self): def title(self) -> str: """Title "Enter title at the top of the plot, room will be made for it." - " """ + " """ val = self._get_property("Title") - return val # type: ignore + return val # type: ignore @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) @property def title_font(self): @@ -47,13 +71,11 @@ def title_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Title Font") - return val # type: ignore + return val # type: ignore @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -62,13 +84,11 @@ def show_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Legend") - return val # type: ignore + return val # type: ignore @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) @property def legend_font(self): @@ -77,13 +97,11 @@ def legend_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Legend Font") - return val # type: ignore + return val # type: ignore @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) @property def display_cad_overlay(self) -> bool: @@ -92,13 +110,11 @@ def display_cad_overlay(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Display CAD Overlay") - return val # type: ignore + return val # type: ignore @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -107,27 +123,23 @@ def opacity(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Opacity") - return val # type: ignore + return val # type: ignore @opacity.setter - def opacity(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Opacity={value}"]) + def opacity(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset "Adjust vertical position of CAD model overlay." - " """ + " """ val = self._get_property("Vertical Offset") - return val # type: ignore + return val # type: ignore @vertical_offset.setter - def vertical_offset(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Offset={value}"]) + def vertical_offset(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -136,13 +148,11 @@ def range_axis_rotation(self) -> float: "Value should be between -180 and 180." """ val = self._get_property("Range Axis Rotation") - return val # type: ignore + return val # type: ignore @range_axis_rotation.setter - def range_axis_rotation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -151,69 +161,59 @@ def lock_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Lock Axes") - return val # type: ignore + return val # type: ignore @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min "Set lower extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Min") - return val # type: ignore + return val # type: ignore @x_axis_min.setter - def x_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Min={value}"]) + def x_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max "Set upper extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Max") - return val # type: ignore + return val # type: ignore @x_axis_max.setter - def x_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Max={value}"]) + def x_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min "Set lower extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Min") - return val # type: ignore + return val # type: ignore @y_axis_min.setter - def y_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Min={value}"]) + def y_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max "Set upper extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Max") - return val # type: ignore + return val # type: ignore @y_axis_max.setter - def y_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Max={value}"]) + def y_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -222,13 +222,11 @@ def y_axis_range(self) -> float: "Value should be greater than 0." """ val = self._get_property("Y-axis Range") - return val # type: ignore + return val # type: ignore @y_axis_range.setter - def y_axis_range(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Range={value}"]) + def y_axis_range(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) @property def max_major_ticks(self) -> int: @@ -237,13 +235,11 @@ def max_major_ticks(self) -> int: "Value should be between 1 and 30." """ val = self._get_property("Max Major Ticks") - return val # type: ignore + return val # type: ignore @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks={value}"]) @property def max_minor_ticks(self) -> int: @@ -252,13 +248,11 @@ def max_minor_ticks(self) -> int: "Value should be between 0 and 100." """ val = self._get_property("Max Minor Ticks") - return val # type: ignore + return val # type: ignore @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks={value}"]) @property def max_major_ticks(self) -> int: @@ -267,13 +261,11 @@ def max_major_ticks(self) -> int: "Value should be between 1 and 30." """ val = self._get_property("Max Major Ticks") - return val # type: ignore + return val # type: ignore @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks={value}"]) @property def max_minor_ticks(self) -> int: @@ -282,13 +274,11 @@ def max_minor_ticks(self) -> int: "Value should be between 0 and 100." """ val = self._get_property("Max Minor Ticks") - return val # type: ignore + return val # type: ignore @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks={value}"]) @property def axis_label_font(self): @@ -297,13 +287,11 @@ def axis_label_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Axis Label Font") - return val # type: ignore + return val # type: ignore @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -312,13 +300,11 @@ def axis_tick_label_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Axis Tick Label Font") - return val # type: ignore + return val # type: ignore @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -332,16 +318,16 @@ class MajorGridLineStyleOption(Enum): def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style "Select line style of major-tick grid lines." - " """ + " """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] + ) @property def major_grid_color(self): @@ -350,13 +336,11 @@ def major_grid_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Major Grid Color") - return val # type: ignore + return val # type: ignore @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -370,16 +354,16 @@ class MinorGridLineStyleOption(Enum): def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style "Select line style of minor-tick grid lines." - " """ + " """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] + ) @property def minor_grid_color(self): @@ -388,13 +372,11 @@ def minor_grid_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Minor Grid Color") - return val # type: ignore + return val # type: ignore @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -403,13 +385,11 @@ def background_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -421,16 +401,16 @@ class BBPowerforPlotsUnitOption(Enum): def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit "Units to use for plotting broadband power densities." - " """ + " """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] - return val # type: ignore + return val # type: ignore @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power for Plots Unit={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] + ) @property def bb_power_bandwidth(self) -> float: @@ -440,14 +420,12 @@ def bb_power_bandwidth(self) -> float: """ val = self._get_property("BB Power Bandwidth") val = self._convert_from_internal_units(float(val), "") - return val # type: ignore + return val # type: ignore @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value : float|str): + def bb_power_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -456,11 +434,8 @@ def log_scale(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Log Scale") - return val # type: ignore + return val # type: ignore @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Log Scale={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py index 28738ddf7fa..2bae5c55802 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -25,13 +51,11 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -40,27 +64,23 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -71,16 +91,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class OrientationOption(Enum): DIVIDER = "Divider" @@ -90,16 +108,14 @@ class OrientationOption(Enum): def orientation(self) -> OrientationOption: """Orientation "Defines the orientation of the Power Divider.." - " """ + " """ val = self._get_property("Orientation") val = self.OrientationOption[val] - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value: OrientationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value.value}"]) @property def insertion_loss_above_ideal(self) -> float: @@ -108,13 +124,13 @@ def insertion_loss_above_ideal(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss Above Ideal") - return val # type: ignore + return val # type: ignore @insertion_loss_above_ideal.setter - def insertion_loss_above_ideal(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss Above Ideal={value}"]) + def insertion_loss_above_ideal(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Insertion Loss Above Ideal={value}"] + ) @property def finite_isolation(self) -> bool: @@ -123,13 +139,11 @@ def finite_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -138,13 +152,11 @@ def isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @isolation.setter - def isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Isolation={value}"]) + def isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -153,13 +165,11 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -168,13 +178,11 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -184,14 +192,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -201,14 +207,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -218,14 +222,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -235,20 +237,17 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py index e1ad6a92959..75053721862 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PowerTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -31,30 +57,26 @@ class DirectionOption(Enum): def direction(self) -> DirectionOption: """Direction "Direction of power flow (towards or away from the transmitter) to plot." - " """ + " """ val = self._get_property("Direction") val = self.DirectionOption[val] - return val # type: ignore + return val # type: ignore @direction.setter def direction(self, value: DirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Direction={value.value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -63,13 +85,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -78,27 +98,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -112,16 +128,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -130,13 +144,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -145,13 +157,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -174,16 +184,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -192,13 +200,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -207,13 +213,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -222,13 +226,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -237,11 +239,8 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py index cefa684cf4c..f197901d4b7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ProfileTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -27,15 +53,13 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -44,13 +68,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -59,27 +81,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -93,16 +111,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -111,13 +127,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -126,13 +140,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -155,16 +167,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -173,13 +183,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -188,13 +196,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -203,13 +209,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -218,11 +222,8 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py index 3c8e3427903..33c0d9696e0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -30,41 +56,35 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -73,13 +93,11 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -88,27 +106,23 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def custom_fading_margin(self) -> float: @@ -117,13 +131,11 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -132,13 +144,11 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -147,13 +157,11 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -165,16 +173,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -183,13 +189,11 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -198,13 +202,11 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -213,13 +215,11 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -228,13 +228,11 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -243,13 +241,11 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -258,13 +254,11 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -273,13 +267,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -288,13 +282,11 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -303,13 +295,11 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -318,11 +308,10 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py index 6b0b1dcfb6e..ca48e860816 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class RadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -28,11 +53,11 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Name: - " "Type: - " """ + "Name: + " "Type: + " """ return self._get_table_data() @table_data.setter @@ -43,13 +68,10 @@ def table_data(self, value): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py index 497fca03015..ff35477fc79 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyAmplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -13,7 +39,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -22,15 +48,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class AmplifierTypeOption(Enum): TRANSMIT_AMPLIFIER = "Transmit Amplifier" @@ -40,10 +66,10 @@ class AmplifierTypeOption(Enum): def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type "Configures the amplifier as a Tx or Rx amplifier." - " """ + " """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] - return val # type: ignore + return val # type: ignore @property def gain(self) -> float: @@ -52,7 +78,7 @@ def gain(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Gain") - return val # type: ignore + return val # type: ignore @property def center_frequency(self) -> float: @@ -62,7 +88,7 @@ def center_frequency(self) -> float: """ val = self._get_property("Center Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def bandwidth(self) -> float: @@ -72,7 +98,7 @@ def bandwidth(self) -> float: """ val = self._get_property("Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: @@ -81,7 +107,7 @@ def noise_figure(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def saturation_level(self) -> float: @@ -91,7 +117,7 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input(self) -> float: @@ -101,7 +127,7 @@ def p1_db_point_ref_input(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -111,7 +137,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def shape_factor(self) -> float: @@ -120,7 +146,7 @@ def shape_factor(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -129,7 +155,7 @@ def reverse_isolation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -138,5 +164,4 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py index a6e0663434c..fd36c686cac 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyAntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -15,9 +41,9 @@ def parent(self): def tags(self) -> str: """Tags "Space delimited list of tags for coupling selections." - " """ + " """ val = self._get_property("Tags") - return val # type: ignore + return val # type: ignore @property def show_relative_coordinates(self) -> bool: @@ -26,7 +52,7 @@ def show_relative_coordinates(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @property def position(self): @@ -35,7 +61,7 @@ def position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): @@ -44,7 +70,7 @@ def relative_position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -54,10 +80,10 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @property def orientation(self): @@ -66,7 +92,7 @@ def orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): @@ -75,7 +101,7 @@ def relative_orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def position_defined(self) -> bool: @@ -84,7 +110,7 @@ def position_defined(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Position Defined") - return val # type: ignore + return val # type: ignore @property def antenna_temperature(self) -> float: @@ -93,15 +119,15 @@ def antenna_temperature(self) -> float: "Value should be between 0 and 100000." """ val = self._get_property("Antenna Temperature") - return val # type: ignore + return val # type: ignore @property def type(self): """Type "Defines the type of antenna." - " """ + " """ val = self._get_property("Type") - return val # type: ignore + return val # type: ignore @property def antenna_file(self) -> str: @@ -109,7 +135,7 @@ def antenna_file(self) -> str: "Value should be a full file path." """ val = self._get_property("Antenna File") - return val # type: ignore + return val # type: ignore @property def project_name(self) -> str: @@ -118,7 +144,7 @@ def project_name(self) -> str: "Value should be a full file path." """ val = self._get_property("Project Name") - return val # type: ignore + return val # type: ignore @property def peak_gain(self) -> float: @@ -127,7 +153,7 @@ def peak_gain(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Peak Gain") - return val # type: ignore + return val # type: ignore class BoresightOption(Enum): XAXIS = "+X Axis" @@ -138,10 +164,10 @@ class BoresightOption(Enum): def boresight(self) -> BoresightOption: """Boresight "Select peak beam direction in local coordinates." - " """ + " """ val = self._get_property("Boresight") val = self.BoresightOption[val] - return val # type: ignore + return val # type: ignore @property def vertical_beamwidth(self) -> float: @@ -150,7 +176,7 @@ def vertical_beamwidth(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("Vertical Beamwidth") - return val # type: ignore + return val # type: ignore @property def horizontal_beamwidth(self) -> float: @@ -159,7 +185,7 @@ def horizontal_beamwidth(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("Horizontal Beamwidth") - return val # type: ignore + return val # type: ignore @property def extra_sidelobe(self) -> bool: @@ -168,7 +194,7 @@ def extra_sidelobe(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Extra Sidelobe") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_level(self) -> float: @@ -177,7 +203,7 @@ def first_sidelobe_level(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("First Sidelobe Level") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_vert_bw(self) -> float: @@ -186,7 +212,7 @@ def first_sidelobe_vert_bw(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("First Sidelobe Vert. BW") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_hor_bw(self) -> float: @@ -195,7 +221,7 @@ def first_sidelobe_hor_bw(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("First Sidelobe Hor. BW") - return val # type: ignore + return val # type: ignore @property def outerbacklobe_level(self) -> float: @@ -204,7 +230,7 @@ def outerbacklobe_level(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Outer/Backlobe Level") - return val # type: ignore + return val # type: ignore @property def resonant_frequency(self) -> float: @@ -214,7 +240,7 @@ def resonant_frequency(self) -> float: """ val = self._get_property("Resonant Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def slot_length(self) -> float: @@ -224,7 +250,7 @@ def slot_length(self) -> float: """ val = self._get_property("Slot Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def mouth_width(self) -> float: @@ -234,7 +260,7 @@ def mouth_width(self) -> float: """ val = self._get_property("Mouth Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def mouth_height(self) -> float: @@ -244,7 +270,7 @@ def mouth_height(self) -> float: """ val = self._get_property("Mouth Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_width(self) -> float: @@ -254,7 +280,7 @@ def waveguide_width(self) -> float: """ val = self._get_property("Waveguide Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def width_flare_half_angle(self) -> float: @@ -263,7 +289,7 @@ def width_flare_half_angle(self) -> float: "Value should be between 1 and 89.9." """ val = self._get_property("Width Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def height_flare_half_angle(self) -> float: @@ -272,7 +298,7 @@ def height_flare_half_angle(self) -> float: "Value should be between 1 and 89.9." """ val = self._get_property("Height Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def mouth_diameter(self) -> float: @@ -282,7 +308,7 @@ def mouth_diameter(self) -> float: """ val = self._get_property("Mouth Diameter") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def flare_half_angle(self) -> float: @@ -291,7 +317,7 @@ def flare_half_angle(self) -> float: "Value should be between 1 and 89.9." """ val = self._get_property("Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def vswr(self) -> float: @@ -300,7 +326,7 @@ def vswr(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore class AntennaPolarizationOption(Enum): VERTICAL = "Vertical" @@ -312,10 +338,10 @@ class AntennaPolarizationOption(Enum): def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] - return val # type: ignore + return val # type: ignore class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" @@ -325,10 +351,10 @@ class CrossDipoleModeOption(Enum): def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode "Choose the Cross Dipole type." - " """ + " """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] - return val # type: ignore + return val # type: ignore class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" @@ -338,10 +364,10 @@ class CrossDipolePolarizationOption(Enum): def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] - return val # type: ignore + return val # type: ignore @property def override_height(self) -> bool: @@ -350,7 +376,7 @@ def override_height(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Override Height") - return val # type: ignore + return val # type: ignore @property def offset_height(self) -> float: @@ -360,7 +386,7 @@ def offset_height(self) -> float: """ val = self._get_property("Offset Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def auto_height_offset(self) -> bool: @@ -369,7 +395,7 @@ def auto_height_offset(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Auto Height Offset") - return val # type: ignore + return val # type: ignore @property def conform__adjust_antenna(self) -> bool: @@ -378,7 +404,7 @@ def conform__adjust_antenna(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Conform / Adjust Antenna") - return val # type: ignore + return val # type: ignore @property def element_offset(self): @@ -387,7 +413,7 @@ def element_offset(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Element Offset") - return val # type: ignore + return val # type: ignore class ConformtoPlatformOption(Enum): NONE = "None" @@ -398,10 +424,10 @@ class ConformtoPlatformOption(Enum): def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform "Select method of automated conforming applied after Element Offset." - " """ + " """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] - return val # type: ignore + return val # type: ignore class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" @@ -412,10 +438,10 @@ class ReferencePlaneOption(Enum): def reference_plane(self) -> ReferencePlaneOption: """Reference Plane "Select reference plane for determining original element heights." - " """ + " """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] - return val # type: ignore + return val # type: ignore @property def conform_element_orientation(self) -> bool: @@ -424,7 +450,7 @@ def conform_element_orientation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Conform Element Orientation") - return val # type: ignore + return val # type: ignore @property def show_axes(self) -> bool: @@ -433,7 +459,7 @@ def show_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @property def show_icon(self) -> bool: @@ -442,7 +468,7 @@ def show_icon(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Icon") - return val # type: ignore + return val # type: ignore @property def size(self) -> float: @@ -451,7 +477,7 @@ def size(self) -> float: "Value should be between 0.001 and 1." """ val = self._get_property("Size") - return val # type: ignore + return val # type: ignore @property def color(self): @@ -460,23 +486,23 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @property def el_sample_interval(self) -> float: """El Sample Interval "Space between elevation-angle samples of pattern." - " """ + " """ val = self._get_property("El Sample Interval") - return val # type: ignore + return val # type: ignore @property def az_sample_interval(self) -> float: """Az Sample Interval "Space between azimuth-angle samples of pattern." - " """ + " """ val = self._get_property("Az Sample Interval") - return val # type: ignore + return val # type: ignore @property def has_frequency_domain(self) -> bool: @@ -485,74 +511,74 @@ def has_frequency_domain(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Has Frequency Domain") - return val # type: ignore + return val # type: ignore @property def frequency_domain(self): """Frequency Domain "Frequency sample(s) defining antenna." - " """ + " """ val = self._get_property("Frequency Domain") - return val # type: ignore + return val # type: ignore @property def number_of_electric_sources(self) -> int: """Number of Electric Sources "Number of freestanding electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources "Number of freestanding magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources "Number of imaged, half-space radiating electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources "Number of imaged, half-space radiating magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def waveguide_height(self) -> float: """Waveguide Height "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." - " """ + " """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." - " """ + " """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." - " """ + " """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class SWEModeTruncationOption(Enum): DYNAMIC = "Dynamic" @@ -563,10 +589,10 @@ class SWEModeTruncationOption(Enum): def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation "Select the method for stability-enhancing truncation of spherical wave expansion terms." - " """ + " """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] - return val # type: ignore + return val # type: ignore @property def max_n_index(self) -> int: @@ -575,15 +601,15 @@ def max_n_index(self) -> int: "Value should be greater than 1." """ val = self._get_property("Max N Index") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @property def show_composite_passband(self) -> bool: @@ -592,7 +618,7 @@ def show_composite_passband(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Composite Passband") - return val # type: ignore + return val # type: ignore @property def use_phase_center(self) -> bool: @@ -601,15 +627,15 @@ def use_phase_center(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Phase Center") - return val # type: ignore + return val # type: ignore @property def coordinate_systems(self) -> str: """Coordinate Systems "Specifies the coordinate system for the phase center of this antenna." - " """ + " """ val = self._get_property("Coordinate Systems") - return val # type: ignore + return val # type: ignore @property def phasecenterposition(self): @@ -618,7 +644,7 @@ def phasecenterposition(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("PhaseCenterPosition") - return val # type: ignore + return val # type: ignore @property def phasecenterorientation(self): @@ -627,5 +653,4 @@ def phasecenterorientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("PhaseCenterOrientation") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py index 8c0a200baae..67b97900535 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyAntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -17,7 +42,7 @@ def passband_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Passband Loss") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -26,7 +51,7 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out of Band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -36,7 +61,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -46,7 +71,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -56,7 +81,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -66,13 +91,12 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py index dd0d7db8fa6..23defb3b667 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -15,9 +41,9 @@ def parent(self): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @property def use_dd_1494_mode(self) -> bool: @@ -26,7 +52,7 @@ def use_dd_1494_mode(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use DD-1494 Mode") - return val # type: ignore + return val # type: ignore @property def use_emission_designator(self) -> bool: @@ -35,32 +61,32 @@ def use_emission_designator(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Emission Designator") - return val # type: ignore + return val # type: ignore @property def emission_designator(self) -> str: """Emission Designator "Enter the Emission Designator to define the bandwidth and modulation." - " """ + " """ val = self._get_property("Emission Designator") - return val # type: ignore + return val # type: ignore @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." - " """ + " """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def emit_modulation_type(self) -> str: """EMIT Modulation Type "Modulation based off the emission designator." - " """ + " """ val = self._get_property("EMIT Modulation Type") - return val # type: ignore + return val # type: ignore @property def override_emission_designator_bw(self) -> bool: @@ -69,7 +95,7 @@ def override_emission_designator_bw(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Override Emission Designator BW") - return val # type: ignore + return val # type: ignore @property def channel_bandwidth(self) -> float: @@ -79,7 +105,7 @@ def channel_bandwidth(self) -> float: """ val = self._get_property("Channel Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class ModulationOption(Enum): GENERIC = "Generic" @@ -98,10 +124,10 @@ class ModulationOption(Enum): def modulation(self) -> ModulationOption: """Modulation "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Modulation") val = self.ModulationOption[val] - return val # type: ignore + return val # type: ignore @property def max_modulating_freq(self) -> float: @@ -111,7 +137,7 @@ def max_modulating_freq(self) -> float: """ val = self._get_property("Max Modulating Freq.") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def modulation_index(self) -> float: @@ -120,7 +146,7 @@ def modulation_index(self) -> float: "Value should be between 0.01 and 1." """ val = self._get_property("Modulation Index") - return val # type: ignore + return val # type: ignore @property def freq_deviation(self) -> float: @@ -130,7 +156,7 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def bit_rate(self) -> float: @@ -140,7 +166,7 @@ def bit_rate(self) -> float: """ val = self._get_property("Bit Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @property def sidelobes(self) -> int: @@ -149,17 +175,17 @@ def sidelobes(self) -> int: "Value should be greater than 0." """ val = self._get_property("Sidelobes") - return val # type: ignore + return val # type: ignore @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ val = self._get_property("Freq. Deviation ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class PSKTypeOption(Enum): BPSK = "BPSK" @@ -173,10 +199,10 @@ class PSKTypeOption(Enum): def psk_type(self) -> PSKTypeOption: """PSK Type "PSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] - return val # type: ignore + return val # type: ignore class FSKTypeOption(Enum): FSK_2 = "FSK-2" @@ -187,10 +213,10 @@ class FSKTypeOption(Enum): def fsk_type(self) -> FSKTypeOption: """FSK Type "FSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] - return val # type: ignore + return val # type: ignore class QAMTypeOption(Enum): QAM_4 = "QAM-4" @@ -203,10 +229,10 @@ class QAMTypeOption(Enum): def qam_type(self) -> QAMTypeOption: """QAM Type "QAM modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] - return val # type: ignore + return val # type: ignore class APSKTypeOption(Enum): APSK_4 = "APSK-4" @@ -219,10 +245,10 @@ class APSKTypeOption(Enum): def apsk_type(self) -> APSKTypeOption: """APSK Type "APSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -232,7 +258,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -242,7 +268,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def channel_spacing(self) -> float: @@ -252,7 +278,7 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def tx_offset(self) -> float: @@ -262,7 +288,7 @@ def tx_offset(self) -> float: """ val = self._get_property("Tx Offset") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class RadarTypeOption(Enum): CW = "CW" @@ -275,10 +301,10 @@ class RadarTypeOption(Enum): def radar_type(self) -> RadarTypeOption: """Radar Type "Radar type: helps determine spectral profile." - " """ + " """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] - return val # type: ignore + return val # type: ignore @property def hopping_radar(self) -> bool: @@ -287,7 +313,7 @@ def hopping_radar(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Hopping Radar") - return val # type: ignore + return val # type: ignore @property def post_october_2020_procurement(self) -> bool: @@ -296,7 +322,7 @@ def post_october_2020_procurement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Post October 2020 Procurement") - return val # type: ignore + return val # type: ignore @property def hop_range_min_freq(self) -> float: @@ -306,7 +332,7 @@ def hop_range_min_freq(self) -> float: """ val = self._get_property("Hop Range Min Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def hop_range_max_freq(self) -> float: @@ -316,7 +342,7 @@ def hop_range_max_freq(self) -> float: """ val = self._get_property("Hop Range Max Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def pulse_duration(self) -> float: @@ -326,7 +352,7 @@ def pulse_duration(self) -> float: """ val = self._get_property("Pulse Duration") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_rise_time(self) -> float: @@ -336,7 +362,7 @@ def pulse_rise_time(self) -> float: """ val = self._get_property("Pulse Rise Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_fall_time(self) -> float: @@ -346,7 +372,7 @@ def pulse_fall_time(self) -> float: """ val = self._get_property("Pulse Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_repetition_rate(self) -> float: @@ -355,7 +381,7 @@ def pulse_repetition_rate(self) -> float: "Value should be greater than 1." """ val = self._get_property("Pulse Repetition Rate") - return val # type: ignore + return val # type: ignore @property def number_of_chips(self) -> float: @@ -364,7 +390,7 @@ def number_of_chips(self) -> float: "Value should be greater than 1." """ val = self._get_property("Number of Chips") - return val # type: ignore + return val # type: ignore @property def pulse_compression_ratio(self) -> float: @@ -373,7 +399,7 @@ def pulse_compression_ratio(self) -> float: "Value should be greater than 1." """ val = self._get_property("Pulse Compression Ratio") - return val # type: ignore + return val # type: ignore @property def fm_chirp_period(self) -> float: @@ -383,7 +409,7 @@ def fm_chirp_period(self) -> float: """ val = self._get_property("FM Chirp Period") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def fm_freq_deviation(self) -> float: @@ -393,7 +419,7 @@ def fm_freq_deviation(self) -> float: """ val = self._get_property("FM Freq Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def fm_freq_dev_bandwidth(self) -> float: @@ -403,5 +429,4 @@ def fm_freq_dev_bandwidth(self) -> float: """ val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py index bffa4168833..e504f8967e0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyBandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -9,4 +34,3 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py index 2b39686be75..6b15ef1d0e8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyCADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -18,7 +44,7 @@ def file(self) -> str: "Value should be a full file path." """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore class ModelTypeOption(Enum): PLATE = "Plate" @@ -40,10 +66,10 @@ class ModelTypeOption(Enum): def model_type(self) -> ModelTypeOption: """Model Type "Select type of parametric model to create." - " """ + " """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] - return val # type: ignore + return val # type: ignore @property def length(self) -> float: @@ -53,7 +79,7 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def width(self) -> float: @@ -63,7 +89,7 @@ def width(self) -> float: """ val = self._get_property("Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def height(self) -> float: @@ -73,7 +99,7 @@ def height(self) -> float: """ val = self._get_property("Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def angle(self) -> float: @@ -82,7 +108,7 @@ def angle(self) -> float: "Value should be between 0 and 360." """ val = self._get_property("Angle") - return val # type: ignore + return val # type: ignore @property def top_side(self) -> float: @@ -92,7 +118,7 @@ def top_side(self) -> float: """ val = self._get_property("Top Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def top_radius(self) -> float: @@ -102,7 +128,7 @@ def top_radius(self) -> float: """ val = self._get_property("Top Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def side(self) -> float: @@ -112,7 +138,7 @@ def side(self) -> float: """ val = self._get_property("Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def radius(self) -> float: @@ -122,7 +148,7 @@ def radius(self) -> float: """ val = self._get_property("Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def base_radius(self) -> float: @@ -132,7 +158,7 @@ def base_radius(self) -> float: """ val = self._get_property("Base Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def center_radius(self) -> float: @@ -142,7 +168,7 @@ def center_radius(self) -> float: """ val = self._get_property("Center Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def x_axis_ellipsoid_radius(self) -> float: @@ -152,7 +178,7 @@ def x_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("X Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def y_axis_ellipsoid_radius(self) -> float: @@ -162,7 +188,7 @@ def y_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Y Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def z_axis_ellipsoid_radius(self) -> float: @@ -172,7 +198,7 @@ def z_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Z Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def focal_length(self) -> float: @@ -182,16 +208,16 @@ def focal_length(self) -> float: """ val = self._get_property("Focal Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def offset(self) -> float: """Offset "Offset of parabolic reflector." - " """ + " """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def x_direction_taper(self) -> float: @@ -200,7 +226,7 @@ def x_direction_taper(self) -> float: "Value should be greater than 0." """ val = self._get_property("X Direction Taper") - return val # type: ignore + return val # type: ignore @property def y_direction_taper(self) -> float: @@ -209,7 +235,7 @@ def y_direction_taper(self) -> float: "Value should be greater than 0." """ val = self._get_property("Y Direction Taper") - return val # type: ignore + return val # type: ignore @property def prism_direction(self): @@ -218,7 +244,7 @@ def prism_direction(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Prism Direction") - return val # type: ignore + return val # type: ignore @property def closed_top(self) -> bool: @@ -227,7 +253,7 @@ def closed_top(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Closed Top") - return val # type: ignore + return val # type: ignore @property def closed_base(self) -> bool: @@ -236,7 +262,7 @@ def closed_base(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Closed Base") - return val # type: ignore + return val # type: ignore @property def mesh_density(self) -> int: @@ -245,7 +271,7 @@ def mesh_density(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Mesh Density") - return val # type: ignore + return val # type: ignore @property def use_symmetric_mesh(self) -> bool: @@ -254,7 +280,7 @@ def use_symmetric_mesh(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Symmetric Mesh") - return val # type: ignore + return val # type: ignore class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -264,10 +290,10 @@ class MeshOptionOption(Enum): def mesh_option(self) -> MeshOptionOption: """Mesh Option "Select from different meshing options." - " """ + " """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] - return val # type: ignore + return val # type: ignore @property def coating_index(self) -> int: @@ -276,7 +302,7 @@ def coating_index(self) -> int: "Value should be between 0 and 100000." """ val = self._get_property("Coating Index") - return val # type: ignore + return val # type: ignore @property def show_relative_coordinates(self) -> bool: @@ -285,7 +311,7 @@ def show_relative_coordinates(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @property def position(self): @@ -294,7 +320,7 @@ def position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): @@ -303,7 +329,7 @@ def relative_position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -313,10 +339,10 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @property def orientation(self): @@ -325,7 +351,7 @@ def orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): @@ -334,7 +360,7 @@ def relative_orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def visible(self) -> bool: @@ -343,7 +369,7 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -355,10 +381,10 @@ class RenderModeOption(Enum): def render_mode(self) -> RenderModeOption: """Render Mode "Select drawing style for surfaces." - " """ + " """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] - return val # type: ignore + return val # type: ignore @property def show_axes(self) -> bool: @@ -367,7 +393,7 @@ def show_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @property def min(self): @@ -376,7 +402,7 @@ def min(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Min") - return val # type: ignore + return val # type: ignore @property def max(self): @@ -385,15 +411,15 @@ def max(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Max") - return val # type: ignore + return val # type: ignore @property def number_of_surfaces(self) -> int: """Number of Surfaces "Number of surfaces in the model." - " """ + " """ val = self._get_property("Number of Surfaces") - return val # type: ignore + return val # type: ignore @property def color(self): @@ -402,13 +428,12 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py index 23a1486e6e4..1969c0848f1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyCable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -13,7 +39,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -22,15 +48,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -41,10 +67,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @property def length(self) -> float: @@ -54,7 +80,7 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def loss_per_length(self) -> float: @@ -63,7 +89,7 @@ def loss_per_length(self) -> float: "Value should be between 0 and 20." """ val = self._get_property("Loss Per Length") - return val # type: ignore + return val # type: ignore @property def measurement_length(self) -> float: @@ -73,7 +99,7 @@ def measurement_length(self) -> float: """ val = self._get_property("Measurement Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def resistive_loss_constant(self) -> float: @@ -82,7 +108,7 @@ def resistive_loss_constant(self) -> float: "Value should be between 0 and 2." """ val = self._get_property("Resistive Loss Constant") - return val # type: ignore + return val # type: ignore @property def dielectric_loss_constant(self) -> float: @@ -91,13 +117,12 @@ def dielectric_loss_constant(self) -> float: "Value should be between 0 and 1." """ val = self._get_property("Dielectric Loss Constant") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py index 8176f7949f0..6943479d600 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyCirculator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -13,7 +39,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -22,15 +48,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -40,10 +66,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -53,10 +79,10 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the circulator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -65,7 +91,7 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_reverse_isolation(self) -> bool: @@ -74,7 +100,7 @@ def finite_reverse_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -83,7 +109,7 @@ def reverse_isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -92,7 +118,7 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -101,7 +127,7 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -111,7 +137,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -121,7 +147,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -131,7 +157,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -141,13 +167,12 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py index 3480053174e..03fbcc99af8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -17,14 +42,13 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def ports(self): """Ports "Maps each port in the link to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Ports") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py index 83e581dab1e..ff945ad77f8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyCouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def minimum_allowed_coupling(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Minimum Allowed Coupling") - return val # type: ignore + return val # type: ignore @property def global_default_coupling(self) -> float: @@ -21,13 +46,12 @@ def global_default_coupling(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Global Default Coupling") - return val # type: ignore + return val # type: ignore @property def antenna_tags(self) -> str: """Antenna Tags "All tags currently used by all antennas in the project." - " """ + " """ val = self._get_property("Antenna Tags") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py index 063fe16ad7d..f4efec09751 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,11 +37,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Value (dB): + "Value (dB): " Value should be between -1000 and 0." """ return self._get_table_data() @@ -28,23 +53,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -53,7 +78,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -62,13 +87,12 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py index 4e3490c6084..e1056069af4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -10,9 +36,9 @@ def __init__(self, oDesign, result_id, node_id): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class GroundPlaneNormalOption(Enum): X_AXIS = "X Axis" @@ -23,17 +49,16 @@ class GroundPlaneNormalOption(Enum): def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal "Specifies the axis of the normal to the ground plane." - " """ + " """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] - return val # type: ignore + return val # type: ignore @property def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." - " """ + " """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py index ed557720577..0b3da28667e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -18,23 +44,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -43,7 +69,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -52,15 +78,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class TerrainCategoryOption(Enum): TYPE_A = "Type A" @@ -71,10 +97,10 @@ class TerrainCategoryOption(Enum): def terrain_category(self) -> TerrainCategoryOption: """Terrain Category "Specify the terrain category type for the Erceg model." - " """ + " """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -83,7 +109,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -92,7 +118,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -101,7 +127,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -113,10 +139,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -125,7 +151,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -134,7 +160,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -143,7 +169,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -152,7 +178,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -161,7 +187,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -170,7 +196,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -179,7 +205,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -188,7 +214,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -197,7 +223,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -206,5 +232,4 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py index 2fe1206a5b8..10a1c44b0f6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyFilter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -13,7 +39,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -22,15 +48,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -45,10 +71,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -57,7 +83,7 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def stop_band_attenuation(self) -> float: @@ -66,7 +92,7 @@ def stop_band_attenuation(self) -> float: "Value should be less than 200." """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @property def max_pass_band(self) -> float: @@ -76,7 +102,7 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_stop_band(self) -> float: @@ -86,7 +112,7 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def max_stop_band(self) -> float: @@ -96,7 +122,7 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_pass_band(self) -> float: @@ -106,7 +132,7 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -116,7 +142,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -126,7 +152,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -136,7 +162,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -146,67 +172,67 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Lower Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Lower Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Higher Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Higher Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency "Lowest tuned frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Lowest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency "Highest tuned frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Highest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def percent_bandwidth(self) -> float: @@ -215,7 +241,7 @@ def percent_bandwidth(self) -> float: "Value should be between 0.001 and 100." """ val = self._get_property("Percent Bandwidth") - return val # type: ignore + return val # type: ignore @property def shape_factor(self) -> float: @@ -224,13 +250,12 @@ def shape_factor(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py index 568e340e964..73cf07a6ab6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -18,23 +44,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -43,7 +69,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -52,15 +78,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): URBAN_MICROCELL = "Urban Microcell" @@ -71,10 +97,10 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment for the 5G channel model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def los(self) -> bool: @@ -83,7 +109,7 @@ def los(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("LOS") - return val # type: ignore + return val # type: ignore @property def include_bpl(self) -> bool: @@ -92,7 +118,7 @@ def include_bpl(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include BPL") - return val # type: ignore + return val # type: ignore class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -102,10 +128,10 @@ class NYUBPLModelOption(Enum): def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model "Specify the NYU Building Penetration Loss model." - " """ + " """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -114,7 +140,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -123,7 +149,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -132,7 +158,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -144,10 +170,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -156,7 +182,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -165,7 +191,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -174,7 +200,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -183,7 +209,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -192,7 +218,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -201,7 +227,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -210,7 +236,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -219,7 +245,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -228,7 +254,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -237,5 +263,4 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py index d701023358c..fc1e7ff1496 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -18,23 +44,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -43,7 +69,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -52,15 +78,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): LARGE_CITY = "Large City" @@ -72,10 +98,10 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Hata model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -84,7 +110,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -93,7 +119,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -102,7 +128,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -114,10 +140,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -126,7 +152,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -135,7 +161,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -144,7 +170,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -153,7 +179,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -162,7 +188,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -171,7 +197,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -180,7 +206,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -189,7 +215,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -198,7 +224,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -207,5 +233,4 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py index 9f2a7484742..bef763f7aad 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,13 +39,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Power Loss Coefficient: + "Power Loss Coefficient: " Value should be between 0 and 100." - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): " Value should be between 0 and 1000." """ return self._get_table_data() @@ -31,23 +57,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -56,7 +82,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -65,15 +91,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class BuildingTypeOption(Enum): RESIDENTIAL_APARTMENT = "Residential Apartment" @@ -86,10 +112,10 @@ class BuildingTypeOption(Enum): def building_type(self) -> BuildingTypeOption: """Building Type "Specify the building type for the Indoor Propagation model." - " """ + " """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def number_of_floors(self) -> int: @@ -98,7 +124,7 @@ def number_of_floors(self) -> int: "Value should be between 1 and 3." """ val = self._get_property("Number of Floors") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -107,7 +133,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -116,7 +142,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -125,7 +151,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -137,10 +163,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -149,7 +175,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -158,7 +184,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -167,7 +193,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -176,7 +202,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -185,7 +211,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -194,7 +220,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -203,7 +229,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -212,7 +238,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -221,7 +247,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -230,5 +256,4 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py index 7a74fb45bb4..f2c62339534 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyIsolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -13,7 +39,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -22,15 +48,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -40,10 +66,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -53,10 +79,10 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the isolator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -65,7 +91,7 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_reverse_isolation(self) -> bool: @@ -74,7 +100,7 @@ def finite_reverse_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -83,7 +109,7 @@ def reverse_isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -92,7 +118,7 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -101,7 +127,7 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -111,7 +137,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -121,7 +147,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -131,7 +157,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -141,13 +167,12 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py index d61148a11a9..95d6ca9f848 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -18,23 +44,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -43,7 +69,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -52,15 +78,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): FREE_SPACE = "Free Space" @@ -75,10 +101,10 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Log Distance model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def path_loss_exponent(self) -> float: @@ -87,7 +113,7 @@ def path_loss_exponent(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Path Loss Exponent") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -96,7 +122,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -105,7 +131,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -114,7 +140,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -126,10 +152,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -138,7 +164,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -147,7 +173,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -156,7 +182,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -165,7 +191,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -174,7 +200,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -183,7 +209,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -192,7 +218,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -201,7 +227,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -210,7 +236,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -219,5 +245,4 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py index 608fb40dfc9..db6ba80d356 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyMultiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -13,7 +39,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -22,15 +48,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_PASS_BAND = "By Pass Band" @@ -40,10 +66,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -53,10 +79,10 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the multiplexer.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @property def flip_ports_vertically(self) -> bool: @@ -65,22 +91,21 @@ def flip_ports_vertically(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Flip Ports Vertically") - return val # type: ignore + return val # type: ignore @property def ports(self): """Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ + " """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py index 15d0b89b401..a4385132573 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -21,10 +47,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @property def filename(self) -> str: @@ -33,7 +59,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -42,7 +68,7 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def stop_band_attenuation(self) -> float: @@ -51,7 +77,7 @@ def stop_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @property def max_pass_band(self) -> float: @@ -61,7 +87,7 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_stop_band(self) -> float: @@ -71,7 +97,7 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def max_stop_band(self) -> float: @@ -81,7 +107,7 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_pass_band(self) -> float: @@ -91,7 +117,7 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -101,7 +127,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -111,7 +137,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -121,7 +147,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -131,13 +157,12 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py index cfcb4d74fa9..8fc107f89f4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyPowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -13,7 +39,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -22,15 +48,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -41,10 +67,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class OrientationOption(Enum): DIVIDER = "Divider" @@ -54,10 +80,10 @@ class OrientationOption(Enum): def orientation(self) -> OrientationOption: """Orientation "Defines the orientation of the Power Divider.." - " """ + " """ val = self._get_property("Orientation") val = self.OrientationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss_above_ideal(self) -> float: @@ -66,7 +92,7 @@ def insertion_loss_above_ideal(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss Above Ideal") - return val # type: ignore + return val # type: ignore @property def finite_isolation(self) -> bool: @@ -75,7 +101,7 @@ def finite_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @property def isolation(self) -> float: @@ -84,7 +110,7 @@ def isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -93,7 +119,7 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -102,7 +128,7 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -112,7 +138,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -122,7 +148,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -132,7 +158,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -142,13 +168,12 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py index d67dcbb9cfa..13cf5c19f43 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -18,23 +44,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -43,7 +69,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -52,15 +78,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -69,7 +95,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -78,7 +104,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -87,7 +113,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -99,10 +125,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -111,7 +137,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -120,7 +146,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -129,7 +155,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -138,7 +164,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -147,7 +173,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -156,7 +182,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -165,7 +191,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -174,7 +200,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -183,7 +209,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -192,5 +218,4 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py index 4608cb161e1..3f234537979 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,18 +37,17 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Name: - " "Type: - " """ + "Name: + " "Type: + " """ return self._get_table_data() @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py index b50d25ba1cd..cace4f652ba 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -17,7 +42,7 @@ def enable_passive_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Passive Noise") - return val # type: ignore + return val # type: ignore @property def enforce_thermal_noise_floor(self) -> bool: @@ -26,5 +51,4 @@ def enforce_thermal_noise_floor(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enforce Thermal Noise Floor") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py index 688003dee4e..a63a0a43d62 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -18,7 +44,7 @@ def file(self) -> str: "Value should be a full file path." """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -27,16 +53,16 @@ def source_file(self) -> str: "Value should be a full file path." """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class MeasurementModeOption(Enum): AUDIO_SINAD = "Audio SINAD" @@ -47,10 +73,10 @@ class MeasurementModeOption(Enum): def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode "Defines the mode for the receiver measurement." - " """ + " """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] - return val # type: ignore + return val # type: ignore @property def sinad_threshold(self) -> float: @@ -59,7 +85,7 @@ def sinad_threshold(self) -> float: "Value should be between 5 and 20." """ val = self._get_property("SINAD Threshold") - return val # type: ignore + return val # type: ignore @property def gps_cnr_threshold(self) -> float: @@ -68,7 +94,7 @@ def gps_cnr_threshold(self) -> float: "Value should be between 15 and 30." """ val = self._get_property("GPS CNR Threshold") - return val # type: ignore + return val # type: ignore @property def ber_threshold(self) -> float: @@ -77,7 +103,7 @@ def ber_threshold(self) -> float: "Value should be between -12 and -1." """ val = self._get_property("BER Threshold") - return val # type: ignore + return val # type: ignore @property def default_intended_power(self) -> bool: @@ -86,7 +112,7 @@ def default_intended_power(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Default Intended Power") - return val # type: ignore + return val # type: ignore @property def intended_signal_power(self) -> float: @@ -95,7 +121,7 @@ def intended_signal_power(self) -> float: "Value should be between -140 and -50." """ val = self._get_property("Intended Signal Power") - return val # type: ignore + return val # type: ignore @property def freq_deviation(self) -> float: @@ -105,7 +131,7 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def modulation_depth(self) -> float: @@ -114,7 +140,7 @@ def modulation_depth(self) -> float: "Value should be between 10 and 100." """ val = self._get_property("Modulation Depth") - return val # type: ignore + return val # type: ignore @property def measure_selectivity(self) -> bool: @@ -123,7 +149,7 @@ def measure_selectivity(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Measure Selectivity") - return val # type: ignore + return val # type: ignore @property def measure_mixer_products(self) -> bool: @@ -132,7 +158,7 @@ def measure_mixer_products(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Measure Mixer Products") - return val # type: ignore + return val # type: ignore @property def max_rf_order(self) -> int: @@ -141,7 +167,7 @@ def max_rf_order(self) -> int: "Value should be greater than 1." """ val = self._get_property("Max RF Order") - return val # type: ignore + return val # type: ignore @property def max_lo_order(self) -> int: @@ -150,7 +176,7 @@ def max_lo_order(self) -> int: "Value should be greater than 1." """ val = self._get_property("Max LO Order") - return val # type: ignore + return val # type: ignore @property def include_if(self) -> bool: @@ -159,7 +185,7 @@ def include_if(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include IF") - return val # type: ignore + return val # type: ignore @property def measure_saturation(self) -> bool: @@ -168,7 +194,7 @@ def measure_saturation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Measure Saturation") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -177,7 +203,7 @@ def use_ams_limits(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -187,7 +213,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -197,7 +223,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def samples(self) -> int: @@ -206,7 +232,7 @@ def samples(self) -> int: "Value should be between 2 and 100." """ val = self._get_property("Samples") - return val # type: ignore + return val # type: ignore @property def exclude_mixer_products_below_noise(self) -> bool: @@ -215,5 +241,4 @@ def exclude_mixer_products_below_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Exclude Mixer Products Below Noise") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py index 214f32e19e5..c389e7d96cb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -20,10 +46,10 @@ class MixerProductTaperOption(Enum): def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper "Taper for setting amplitude of mixer products." - " """ + " """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] - return val # type: ignore + return val # type: ignore @property def mixer_product_susceptibility(self) -> float: @@ -32,7 +58,7 @@ def mixer_product_susceptibility(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Mixer Product Susceptibility") - return val # type: ignore + return val # type: ignore @property def spurious_rejection(self) -> float: @@ -41,7 +67,7 @@ def spurious_rejection(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Spurious Rejection") - return val # type: ignore + return val # type: ignore @property def minimum_tuning_frequency(self) -> float: @@ -51,7 +77,7 @@ def minimum_tuning_frequency(self) -> float: """ val = self._get_property("Minimum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def maximum_tuning_frequency(self) -> float: @@ -61,7 +87,7 @@ def maximum_tuning_frequency(self) -> float: """ val = self._get_property("Maximum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def mixer_product_slope(self) -> float: @@ -70,7 +96,7 @@ def mixer_product_slope(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Mixer Product Slope") - return val # type: ignore + return val # type: ignore @property def mixer_product_intercept(self) -> float: @@ -79,7 +105,7 @@ def mixer_product_intercept(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Mixer Product Intercept") - return val # type: ignore + return val # type: ignore @property def bandwidth_80_db(self) -> float: @@ -89,7 +115,7 @@ def bandwidth_80_db(self) -> float: """ val = self._get_property("Bandwidth 80 dB") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def image_rejection(self) -> float: @@ -98,7 +124,7 @@ def image_rejection(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Image Rejection") - return val # type: ignore + return val # type: ignore @property def maximum_rf_harmonic_order(self) -> int: @@ -107,7 +133,7 @@ def maximum_rf_harmonic_order(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Maximum RF Harmonic Order") - return val # type: ignore + return val # type: ignore @property def maximum_lo_harmonic_order(self) -> int: @@ -116,7 +142,7 @@ def maximum_lo_harmonic_order(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Maximum LO Harmonic Order") - return val # type: ignore + return val # type: ignore class MixingModeOption(Enum): LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" @@ -127,10 +153,10 @@ class MixingModeOption(Enum): def mixing_mode(self) -> MixingModeOption: """Mixing Mode "Specifies whether the IF frequency is > or < RF channel frequency." - " """ + " """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] - return val # type: ignore + return val # type: ignore @property def first_if_frequency(self): @@ -139,16 +165,16 @@ def first_if_frequency(self): "Value should be a mathematical expression." """ val = self._get_property("First IF Frequency") - return val # type: ignore + return val # type: ignore @property def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." - " """ + " """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class UseHighLOOption(Enum): ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" @@ -158,10 +184,10 @@ class UseHighLOOption(Enum): def use_high_lo(self) -> UseHighLOOption: """Use High LO "Use High LO above/below the transition frequency." - " """ + " """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] - return val # type: ignore + return val # type: ignore class MixerProductTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -171,8 +197,7 @@ class MixerProductTableUnitsOption(Enum): def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units "Specifies the units for the Mixer Products." - " """ + " """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py index fa9ae9c40bb..74e76d2d9ac 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -9,4 +34,3 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py index 2b48bef870a..fcbf5e3d399 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -17,5 +42,4 @@ def use_arithmetic_mean(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Arithmetic Mean") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py index 3269c78487f..616cd70244e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,13 +39,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -32,8 +58,7 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py index bc1d216c787..0903902e7e5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -21,19 +47,19 @@ class SensitivityUnitsOption(Enum): def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units "Units to use for the Rx Sensitivity." - " """ + " """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] - return val # type: ignore + return val # type: ignore @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr "Received signal power level at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ val = self._get_property("Min. Receive Signal Pwr ") - return val # type: ignore + return val # type: ignore @property def snr_at_rx_signal_pwr(self) -> float: @@ -42,7 +68,7 @@ def snr_at_rx_signal_pwr(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("SNR at Rx Signal Pwr") - return val # type: ignore + return val # type: ignore @property def processing_gain(self) -> float: @@ -51,7 +77,7 @@ def processing_gain(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Processing Gain") - return val # type: ignore + return val # type: ignore @property def apply_pg_to_narrowband_only(self) -> bool: @@ -60,7 +86,7 @@ def apply_pg_to_narrowband_only(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Apply PG to Narrowband Only") - return val # type: ignore + return val # type: ignore @property def saturation_level(self) -> float: @@ -70,7 +96,7 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def rx_noise_figure(self) -> float: @@ -79,26 +105,26 @@ def rx_noise_figure(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rx Noise Figure") - return val # type: ignore + return val # type: ignore @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." "Value should be between -1000 and 1000." """ val = self._get_property("Receiver Sensitivity ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity "SNR or SINAD at the specified sensitivity level." "Value should be between -1000 and 1000." """ val = self._get_property("SNR/SINAD at Sensitivity ") - return val # type: ignore + return val # type: ignore @property def perform_rx_intermod_analysis(self) -> bool: @@ -107,7 +133,7 @@ def perform_rx_intermod_analysis(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Perform Rx Intermod Analysis") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -117,17 +143,17 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." "Value should be between -1000 and 1000." """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -137,7 +163,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -146,5 +172,4 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py index cded830c4b1..9f6a097ba6a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlySamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,11 +39,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Min: + "Min: " Value should be greater than 1." - "Max: + "Max: " Value should be greater than 1." """ return self._get_table_data() @@ -31,10 +57,10 @@ class SamplingTypeOption(Enum): def sampling_type(self) -> SamplingTypeOption: """Sampling Type "Sampling to apply to this configuration." - " """ + " """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def specify_percentage(self) -> bool: @@ -43,7 +69,7 @@ def specify_percentage(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Specify Percentage") - return val # type: ignore + return val # type: ignore @property def percentage_of_channels(self) -> float: @@ -52,7 +78,7 @@ def percentage_of_channels(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("Percentage of Channels") - return val # type: ignore + return val # type: ignore @property def max__channelsrangeband(self) -> int: @@ -61,7 +87,7 @@ def max__channelsrangeband(self) -> int: "Value should be between 1 and 100000." """ val = self._get_property("Max # Channels/Range/Band") - return val # type: ignore + return val # type: ignore @property def seed(self) -> int: @@ -70,29 +96,28 @@ def seed(self) -> int: "Value should be greater than 0." """ val = self._get_property("Seed") - return val # type: ignore + return val # type: ignore @property def total_tx_channels(self) -> int: """Total Tx Channels "Total number of transmit channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Tx Channels") - return val # type: ignore + return val # type: ignore @property def total_rx_channels(self) -> int: """Total Rx Channels "Total number of receive channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Rx Channels") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py index 82aa04bfa3b..77a71638b75 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlySceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -18,7 +44,7 @@ def show_relative_coordinates(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @property def position(self): @@ -27,7 +53,7 @@ def position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): @@ -36,7 +62,7 @@ def relative_position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -46,10 +72,10 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @property def orientation(self): @@ -58,7 +84,7 @@ def orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): @@ -67,7 +93,7 @@ def relative_orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def show_axes(self) -> bool: @@ -76,7 +102,7 @@ def show_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @property def box_color(self): @@ -85,13 +111,12 @@ def box_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Box Color") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py index 61b08bcbd58..666982895bc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -17,7 +42,7 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -26,7 +51,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -35,13 +60,12 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py index 9c4b7a0a0aa..7b1953fdfbb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlySolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -17,5 +42,4 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py index 541d65c4d2d..066de229404 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -13,7 +39,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -22,15 +48,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TxPortOption(Enum): PORT_1 = "Port 1" @@ -40,10 +66,10 @@ class TxPortOption(Enum): def tx_port(self) -> TxPortOption: """Tx Port "Specifies which port on the TR Switch is part of the Tx path.." - " """ + " """ val = self._get_property("Tx Port") val = self.TxPortOption[val] - return val # type: ignore + return val # type: ignore class CommonPortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -53,10 +79,10 @@ class CommonPortLocationOption(Enum): def common_port_location(self) -> CommonPortLocationOption: """Common Port Location "Defines the orientation of the tr switch.." - " """ + " """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -65,7 +91,7 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_isolation(self) -> bool: @@ -74,7 +100,7 @@ def finite_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @property def isolation(self) -> float: @@ -83,7 +109,7 @@ def isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -92,7 +118,7 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -101,7 +127,7 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -111,7 +137,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -121,7 +147,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -131,7 +157,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -141,5 +167,4 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py index bf841555985..d804e293f89 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTerminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -13,7 +39,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -22,15 +48,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -40,10 +66,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class PortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -53,10 +79,10 @@ class PortLocationOption(Enum): def port_location(self) -> PortLocationOption: """Port Location "Defines the orientation of the terminator.." - " """ + " """ val = self._get_property("Port Location") val = self.PortLocationOption[val] - return val # type: ignore + return val # type: ignore @property def vswr(self) -> float: @@ -65,13 +91,12 @@ def vswr(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py index 0f4b5804ec3..0930c56bee5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -17,7 +42,7 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -26,7 +51,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -35,15 +60,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def filename(self) -> str: @@ -52,15 +77,15 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File "Coupling data generated by Savant and exported as a matched file." - " """ + " """ val = self._get_property("Savant Matched Coupling File") - return val # type: ignore + return val # type: ignore @property def enable_em_isolation(self) -> bool: @@ -69,22 +94,21 @@ def enable_em_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable EM Isolation") - return val # type: ignore + return val # type: ignore @property def port_antenna_assignment(self): """Port-Antenna Assignment "Maps each port in the coupling file to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Port-Antenna Assignment") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py index ca94b1571bb..12c7ffb580a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -18,23 +44,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -43,7 +69,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -52,15 +78,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def ground_reflection_coeff(self) -> float: @@ -69,7 +95,7 @@ def ground_reflection_coeff(self) -> float: "Value should be between -100 and 100." """ val = self._get_property("Ground Reflection Coeff.") - return val # type: ignore + return val # type: ignore @property def pointspeak(self) -> int: @@ -78,7 +104,7 @@ def pointspeak(self) -> int: "Value should be between 3 and 100." """ val = self._get_property("Points/Peak") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -87,7 +113,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -96,7 +122,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -105,7 +131,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -117,10 +143,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -129,7 +155,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -138,7 +164,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -147,7 +173,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -156,7 +182,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -165,7 +191,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -174,7 +200,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -183,7 +209,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -192,7 +218,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -201,7 +227,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -210,5 +236,4 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py index d905f9e0157..cd951e77c4f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -15,9 +41,9 @@ def parent(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): " Value should be between -200 and 150." """ return self._get_table_data() @@ -32,10 +58,10 @@ class NoiseBehaviorOption(Enum): def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior "Specifies the behavior of the parametric noise profile." - " """ + " """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] - return val # type: ignore + return val # type: ignore @property def use_log_linear_interpolation(self) -> bool: @@ -44,5 +70,4 @@ def use_log_linear_interpolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Log-Linear Interpolation") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py index 834ecd25dbe..c757fb046c2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -19,8 +45,7 @@ class HarmonicTableUnitsOption(Enum): def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units "Specifies the units for the Harmonics." - " """ + " """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py index e2985b56844..7f344fcdc63 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyTxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -17,7 +42,7 @@ def file(self) -> str: "Value should be a full file path." """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -26,16 +51,16 @@ def source_file(self) -> str: "Value should be a full file path." """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -44,7 +69,7 @@ def use_ams_limits(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -54,7 +79,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -64,7 +89,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def exclude_harmonics_below_noise(self) -> bool: @@ -73,5 +98,4 @@ def exclude_harmonics_below_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Exclude Harmonics Below Noise") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py index 214bd0e939d..16ac8b25bc1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -19,17 +45,16 @@ class NarrowbandBehaviorOption(Enum): def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." - " """ + " """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] - return val # type: ignore + return val # type: ignore @property def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - " """ + " """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py index 069bebc557e..3f6e4c700c2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyTxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -14,10 +39,10 @@ def parent(self): def output_voltage_peak(self) -> float: """Output Voltage Peak "Output High Voltage Level: maximum voltage of the digital signal." - " """ + " """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") - return val # type: ignore + return val # type: ignore @property def include_phase_noise(self) -> bool: @@ -26,7 +51,7 @@ def include_phase_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @property def tx_broadband_noise(self) -> float: @@ -35,7 +60,7 @@ def tx_broadband_noise(self) -> float: "Value should be less than 1000." """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @property def perform_tx_intermod_analysis(self) -> bool: @@ -44,7 +69,7 @@ def perform_tx_intermod_analysis(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @property def internal_amp_gain(self) -> float: @@ -53,7 +78,7 @@ def internal_amp_gain(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: @@ -62,7 +87,7 @@ def noise_figure(self) -> float: "Value should be between 0 and 50." """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -72,17 +97,17 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -92,7 +117,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -101,7 +126,7 @@ def reverse_isolation(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -110,5 +135,4 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py index da750c2f9e5..6221c610c7b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -19,10 +45,10 @@ class SpectrumTypeOption(Enum): def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type "Specifies EMI Margins to calculate." - " """ + " """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] - return val # type: ignore + return val # type: ignore class TxPowerOption(Enum): PEAK_POWER = "Peak Power" @@ -32,10 +58,10 @@ class TxPowerOption(Enum): def tx_power(self) -> TxPowerOption: """Tx Power "Method used to specify the power." - " """ + " """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] - return val # type: ignore + return val # type: ignore @property def peak_power(self) -> float: @@ -45,7 +71,7 @@ def peak_power(self) -> float: """ val = self._get_property("Peak Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def average_power(self) -> float: @@ -55,7 +81,7 @@ def average_power(self) -> float: """ val = self._get_property("Average Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def include_phase_noise(self) -> bool: @@ -64,7 +90,7 @@ def include_phase_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @property def tx_broadband_noise(self) -> float: @@ -73,7 +99,7 @@ def tx_broadband_noise(self) -> float: "Value should be less than 1000." """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore class HarmonicTaperOption(Enum): CONSTANT = "Constant" @@ -85,10 +111,10 @@ class HarmonicTaperOption(Enum): def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper "Taper type used to set amplitude of harmonics." - " """ + " """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] - return val # type: ignore + return val # type: ignore @property def harmonic_amplitude(self) -> float: @@ -97,7 +123,7 @@ def harmonic_amplitude(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Harmonic Amplitude") - return val # type: ignore + return val # type: ignore @property def harmonic_slope(self) -> float: @@ -106,7 +132,7 @@ def harmonic_slope(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Harmonic Slope") - return val # type: ignore + return val # type: ignore @property def harmonic_intercept(self) -> float: @@ -115,7 +141,7 @@ def harmonic_intercept(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Harmonic Intercept") - return val # type: ignore + return val # type: ignore @property def enable_harmonic_bw_expansion(self) -> bool: @@ -124,7 +150,7 @@ def enable_harmonic_bw_expansion(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Harmonic BW Expansion") - return val # type: ignore + return val # type: ignore @property def number_of_harmonics(self) -> int: @@ -133,7 +159,7 @@ def number_of_harmonics(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Number of Harmonics") - return val # type: ignore + return val # type: ignore @property def second_harmonic_level(self) -> float: @@ -142,7 +168,7 @@ def second_harmonic_level(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Second Harmonic Level") - return val # type: ignore + return val # type: ignore @property def third_harmonic_level(self) -> float: @@ -151,7 +177,7 @@ def third_harmonic_level(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Third Harmonic Level") - return val # type: ignore + return val # type: ignore @property def other_harmonic_levels(self) -> float: @@ -160,7 +186,7 @@ def other_harmonic_levels(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Other Harmonic Levels") - return val # type: ignore + return val # type: ignore @property def perform_tx_intermod_analysis(self) -> bool: @@ -169,7 +195,7 @@ def perform_tx_intermod_analysis(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @property def internal_amp_gain(self) -> float: @@ -178,7 +204,7 @@ def internal_amp_gain(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: @@ -187,7 +213,7 @@ def noise_figure(self) -> float: "Value should be between 0 and 50." """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -197,17 +223,17 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -217,7 +243,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -226,7 +252,7 @@ def reverse_isolation(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -235,5 +261,4 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py index 0bff44eda73..33dddc27772 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,13 +39,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -32,8 +58,7 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py index e5e38f684b0..27db9f4a0a7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -18,23 +44,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -43,7 +69,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -52,15 +78,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class PathLossTypeOption(Enum): LOS_URBAN_CANYON = "LOS (Urban Canyon)" @@ -70,10 +96,10 @@ class PathLossTypeOption(Enum): def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type "Specify LOS vs NLOS for the Walfisch-Ikegami model." - " """ + " """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): DENSE_METRO = "Dense Metro" @@ -83,10 +109,10 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Walfisch model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def roof_height(self) -> float: @@ -96,7 +122,7 @@ def roof_height(self) -> float: """ val = self._get_property("Roof Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def distance_between_buildings(self) -> float: @@ -106,7 +132,7 @@ def distance_between_buildings(self) -> float: """ val = self._get_property("Distance Between Buildings") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def street_width(self) -> float: @@ -116,7 +142,7 @@ def street_width(self) -> float: """ val = self._get_property("Street Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def incidence_angle(self) -> float: @@ -125,7 +151,7 @@ def incidence_angle(self) -> float: "Value should be between 0 and 90." """ val = self._get_property("Incidence Angle") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -134,7 +160,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -143,7 +169,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -152,7 +178,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -164,10 +190,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -176,7 +202,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -185,7 +211,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -194,7 +220,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -203,7 +229,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -212,7 +238,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -221,7 +247,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -230,7 +256,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -239,7 +265,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -248,7 +274,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -257,5 +283,4 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py index 3f88bef2116..82974ecdfc0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyWaveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -15,9 +41,9 @@ def parent(self): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" @@ -30,10 +56,10 @@ class WaveformOption(Enum): def waveform(self) -> WaveformOption: """Waveform "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Waveform") val = self.WaveformOption[val] - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -43,7 +69,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -53,7 +79,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def channel_spacing(self) -> float: @@ -63,7 +89,7 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def clock_duty_cycle(self) -> float: @@ -72,7 +98,7 @@ def clock_duty_cycle(self) -> float: "Value should be between 0.001 and 1." """ val = self._get_property("Clock Duty Cycle") - return val # type: ignore + return val # type: ignore @property def clock_risefall_time(self) -> float: @@ -82,7 +108,7 @@ def clock_risefall_time(self) -> float: """ val = self._get_property("Clock Rise/Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore class SpreadingTypeOption(Enum): LOW_SPREAD = "Low Spread" @@ -93,10 +119,10 @@ class SpreadingTypeOption(Enum): def spreading_type(self) -> SpreadingTypeOption: """Spreading Type "Type of spreading employed by the Spread Spectrum Clock." - " """ + " """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def spread_percentage(self) -> float: @@ -105,7 +131,7 @@ def spread_percentage(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Spread Percentage") - return val # type: ignore + return val # type: ignore @property def imported_spectrum(self) -> str: @@ -113,15 +139,15 @@ def imported_spectrum(self) -> str: "Value should be a full file path." """ val = self._get_property("Imported Spectrum") - return val # type: ignore + return val # type: ignore @property def raw_data_format(self) -> str: """Raw Data Format "Format of the imported raw data." - " """ + " """ val = self._get_property("Raw Data Format") - return val # type: ignore + return val # type: ignore @property def system_impedance(self) -> float: @@ -131,7 +157,7 @@ def system_impedance(self) -> float: """ val = self._get_property("System Impedance") val = self._convert_from_internal_units(float(val), "Resistance") - return val # type: ignore + return val # type: ignore @property def advanced_extraction_params(self) -> bool: @@ -140,7 +166,7 @@ def advanced_extraction_params(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Advanced Extraction Params") - return val # type: ignore + return val # type: ignore @property def nb_window_size(self) -> float: @@ -149,7 +175,7 @@ def nb_window_size(self) -> float: "Value should be greater than 3." """ val = self._get_property("NB Window Size") - return val # type: ignore + return val # type: ignore @property def bb_smoothing_factor(self) -> float: @@ -158,7 +184,7 @@ def bb_smoothing_factor(self) -> float: "Value should be greater than 1." """ val = self._get_property("BB Smoothing Factor") - return val # type: ignore + return val # type: ignore @property def nb_detector_threshold(self) -> float: @@ -167,7 +193,7 @@ def nb_detector_threshold(self) -> float: "Value should be between 2 and 10." """ val = self._get_property("NB Detector Threshold") - return val # type: ignore + return val # type: ignore class AlgorithmOption(Enum): FFT = "FFT" @@ -177,10 +203,10 @@ class AlgorithmOption(Enum): def algorithm(self) -> AlgorithmOption: """Algorithm "Algorithm used to transform the imported time domain spectrum." - " """ + " """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] - return val # type: ignore + return val # type: ignore @property def start_time(self) -> float: @@ -190,16 +216,16 @@ def start_time(self) -> float: """ val = self._get_property("Start Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def stop_time(self) -> float: """Stop Time "Final time of the imported time domain spectrum." - " """ + " """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def max_frequency(self) -> float: @@ -209,7 +235,7 @@ def max_frequency(self) -> float: """ val = self._get_property("Max Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" @@ -226,10 +252,10 @@ class WindowTypeOption(Enum): def window_type(self) -> WindowTypeOption: """Window Type "Windowing scheme used for importing time domain spectrum." - " """ + " """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] - return val # type: ignore + return val # type: ignore @property def kaiser_parameter(self) -> float: @@ -238,7 +264,7 @@ def kaiser_parameter(self) -> float: "Value should be greater than 0." """ val = self._get_property("Kaiser Parameter") - return val # type: ignore + return val # type: ignore @property def adjust_coherent_gain(self) -> bool: @@ -247,7 +273,7 @@ def adjust_coherent_gain(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adjust Coherent Gain") - return val # type: ignore + return val # type: ignore @property def data_rate(self) -> float: @@ -257,7 +283,7 @@ def data_rate(self) -> float: """ val = self._get_property("Data Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @property def num_of_bits(self) -> int: @@ -266,7 +292,7 @@ def num_of_bits(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Num of Bits") - return val # type: ignore + return val # type: ignore @property def use_envelope(self) -> bool: @@ -275,7 +301,7 @@ def use_envelope(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Envelope") - return val # type: ignore + return val # type: ignore @property def min_ptsnull(self) -> int: @@ -284,7 +310,7 @@ def min_ptsnull(self) -> int: "Value should be between 2 and 50." """ val = self._get_property("Min Pts/Null") - return val # type: ignore + return val # type: ignore @property def delay_skew(self) -> float: @@ -294,5 +320,4 @@ def delay_skew(self) -> float: """ val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py index 189cac658b7..c1662c3f0da 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ResultPlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -18,15 +44,13 @@ def export_model(self, file_name): def title(self) -> str: """Title "Enter title at the top of the plot, room will be made for it." - " """ + " """ val = self._get_property("Title") - return val # type: ignore + return val # type: ignore @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) @property def title_font(self): @@ -35,13 +59,11 @@ def title_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Title Font") - return val # type: ignore + return val # type: ignore @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -50,13 +72,11 @@ def show_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Legend") - return val # type: ignore + return val # type: ignore @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) @property def legend_font(self): @@ -65,13 +85,11 @@ def legend_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Legend Font") - return val # type: ignore + return val # type: ignore @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) @property def show_emi_thresholds(self) -> bool: @@ -80,13 +98,11 @@ def show_emi_thresholds(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show EMI Thresholds") - return val # type: ignore + return val # type: ignore @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show EMI Thresholds={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show EMI Thresholds={value}"]) @property def display_cad_overlay(self) -> bool: @@ -95,13 +111,11 @@ def display_cad_overlay(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Display CAD Overlay") - return val # type: ignore + return val # type: ignore @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -110,27 +124,23 @@ def opacity(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Opacity") - return val # type: ignore + return val # type: ignore @opacity.setter - def opacity(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Opacity={value}"]) + def opacity(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset "Adjust vertical position of CAD model overlay." - " """ + " """ val = self._get_property("Vertical Offset") - return val # type: ignore + return val # type: ignore @vertical_offset.setter - def vertical_offset(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Offset={value}"]) + def vertical_offset(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -139,13 +149,11 @@ def range_axis_rotation(self) -> float: "Value should be between -180 and 180." """ val = self._get_property("Range Axis Rotation") - return val # type: ignore + return val # type: ignore @range_axis_rotation.setter - def range_axis_rotation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -154,69 +162,59 @@ def lock_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Lock Axes") - return val # type: ignore + return val # type: ignore @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min "Set lower extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Min") - return val # type: ignore + return val # type: ignore @x_axis_min.setter - def x_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Min={value}"]) + def x_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max "Set upper extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Max") - return val # type: ignore + return val # type: ignore @x_axis_max.setter - def x_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Max={value}"]) + def x_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min "Set lower extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Min") - return val # type: ignore + return val # type: ignore @y_axis_min.setter - def y_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Min={value}"]) + def y_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max "Set upper extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Max") - return val # type: ignore + return val # type: ignore @y_axis_max.setter - def y_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Max={value}"]) + def y_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -225,13 +223,11 @@ def y_axis_range(self) -> float: "Value should be greater than 0." """ val = self._get_property("Y-axis Range") - return val # type: ignore + return val # type: ignore @y_axis_range.setter - def y_axis_range(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Range={value}"]) + def y_axis_range(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) @property def max_major_ticks(self) -> int: @@ -240,13 +236,11 @@ def max_major_ticks(self) -> int: "Value should be between 1 and 30." """ val = self._get_property("Max Major Ticks") - return val # type: ignore + return val # type: ignore @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks={value}"]) @property def max_minor_ticks(self) -> int: @@ -255,13 +249,11 @@ def max_minor_ticks(self) -> int: "Value should be between 0 and 100." """ val = self._get_property("Max Minor Ticks") - return val # type: ignore + return val # type: ignore @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks={value}"]) @property def max_major_ticks(self) -> int: @@ -270,13 +262,11 @@ def max_major_ticks(self) -> int: "Value should be between 1 and 30." """ val = self._get_property("Max Major Ticks") - return val # type: ignore + return val # type: ignore @max_major_ticks.setter def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks={value}"]) @property def max_minor_ticks(self) -> int: @@ -285,13 +275,11 @@ def max_minor_ticks(self) -> int: "Value should be between 0 and 100." """ val = self._get_property("Max Minor Ticks") - return val # type: ignore + return val # type: ignore @max_minor_ticks.setter def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks={value}"]) @property def axis_label_font(self): @@ -300,13 +288,11 @@ def axis_label_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Axis Label Font") - return val # type: ignore + return val # type: ignore @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -315,13 +301,11 @@ def axis_tick_label_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Axis Tick Label Font") - return val # type: ignore + return val # type: ignore @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -335,16 +319,16 @@ class MajorGridLineStyleOption(Enum): def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style "Select line style of major-tick grid lines." - " """ + " """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] + ) @property def major_grid_color(self): @@ -353,13 +337,11 @@ def major_grid_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Major Grid Color") - return val # type: ignore + return val # type: ignore @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -373,16 +355,16 @@ class MinorGridLineStyleOption(Enum): def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style "Select line style of minor-tick grid lines." - " """ + " """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] + ) @property def minor_grid_color(self): @@ -391,13 +373,11 @@ def minor_grid_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Minor Grid Color") - return val # type: ignore + return val # type: ignore @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -406,13 +386,11 @@ def background_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -424,16 +402,16 @@ class BBPowerforPlotsUnitOption(Enum): def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit "Units to use for plotting broadband power densities." - " """ + " """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] - return val # type: ignore + return val # type: ignore @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power for Plots Unit={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] + ) @property def bb_power_bandwidth(self) -> float: @@ -443,14 +421,12 @@ def bb_power_bandwidth(self) -> float: """ val = self._get_property("BB Power Bandwidth") val = self._convert_from_internal_units(float(val), "") - return val # type: ignore + return val # type: ignore @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value : float|str): + def bb_power_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -459,11 +435,8 @@ def log_scale(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Log Scale") - return val # type: ignore + return val # type: ignore @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Log Scale={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py index 3d22fe7b6f7..670b5d66bef 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class RfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -17,13 +42,11 @@ def enable_passive_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Passive Noise") - return val # type: ignore + return val # type: ignore @enable_passive_noise.setter def enable_passive_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Passive Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Passive Noise={value}"]) @property def enforce_thermal_noise_floor(self) -> bool: @@ -32,11 +55,10 @@ def enforce_thermal_noise_floor(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enforce Thermal Noise Floor") - return val # type: ignore + return val # type: ignore @enforce_thermal_noise_floor.setter def enforce_thermal_noise_floor(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enforce Thermal Noise Floor={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Enforce Thermal Noise Floor={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py index 531d06f7764..19c5df9bcde 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -26,7 +52,7 @@ def file(self) -> str: "Value should be a full file path." """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -35,16 +61,16 @@ def source_file(self) -> str: "Value should be a full file path." """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class MeasurementModeOption(Enum): AUDIO_SINAD = "Audio SINAD" @@ -55,16 +81,14 @@ class MeasurementModeOption(Enum): def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode "Defines the mode for the receiver measurement." - " """ + " """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] - return val # type: ignore + return val # type: ignore @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Mode={value.value}"]) @property def sinad_threshold(self) -> float: @@ -73,13 +97,11 @@ def sinad_threshold(self) -> float: "Value should be between 5 and 20." """ val = self._get_property("SINAD Threshold") - return val # type: ignore + return val # type: ignore @sinad_threshold.setter - def sinad_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SINAD Threshold={value}"]) + def sinad_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SINAD Threshold={value}"]) @property def gps_cnr_threshold(self) -> float: @@ -88,13 +110,11 @@ def gps_cnr_threshold(self) -> float: "Value should be between 15 and 30." """ val = self._get_property("GPS CNR Threshold") - return val # type: ignore + return val # type: ignore @gps_cnr_threshold.setter - def gps_cnr_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"GPS CNR Threshold={value}"]) + def gps_cnr_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GPS CNR Threshold={value}"]) @property def ber_threshold(self) -> float: @@ -103,13 +123,11 @@ def ber_threshold(self) -> float: "Value should be between -12 and -1." """ val = self._get_property("BER Threshold") - return val # type: ignore + return val # type: ignore @ber_threshold.setter - def ber_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BER Threshold={value}"]) + def ber_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BER Threshold={value}"]) @property def default_intended_power(self) -> bool: @@ -118,13 +136,11 @@ def default_intended_power(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Default Intended Power") - return val # type: ignore + return val # type: ignore @default_intended_power.setter def default_intended_power(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Default Intended Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Default Intended Power={value}"]) @property def intended_signal_power(self) -> float: @@ -133,13 +149,11 @@ def intended_signal_power(self) -> float: "Value should be between -140 and -50." """ val = self._get_property("Intended Signal Power") - return val # type: ignore + return val # type: ignore @intended_signal_power.setter - def intended_signal_power(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Intended Signal Power={value}"]) + def intended_signal_power(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Intended Signal Power={value}"]) @property def freq_deviation(self) -> float: @@ -149,14 +163,12 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation.setter - def freq_deviation(self, value : float|str): + def freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) @property def modulation_depth(self) -> float: @@ -165,13 +177,11 @@ def modulation_depth(self) -> float: "Value should be between 10 and 100." """ val = self._get_property("Modulation Depth") - return val # type: ignore + return val # type: ignore @modulation_depth.setter - def modulation_depth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation Depth={value}"]) + def modulation_depth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Depth={value}"]) @property def measure_selectivity(self) -> bool: @@ -180,13 +190,11 @@ def measure_selectivity(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Measure Selectivity") - return val # type: ignore + return val # type: ignore @measure_selectivity.setter def measure_selectivity(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Selectivity={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Selectivity={value}"]) @property def measure_mixer_products(self) -> bool: @@ -195,13 +203,11 @@ def measure_mixer_products(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Measure Mixer Products") - return val # type: ignore + return val # type: ignore @measure_mixer_products.setter def measure_mixer_products(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Mixer Products={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Mixer Products={value}"]) @property def max_rf_order(self) -> int: @@ -210,13 +216,11 @@ def max_rf_order(self) -> int: "Value should be greater than 1." """ val = self._get_property("Max RF Order") - return val # type: ignore + return val # type: ignore @max_rf_order.setter def max_rf_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max RF Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max RF Order={value}"]) @property def max_lo_order(self) -> int: @@ -225,13 +229,11 @@ def max_lo_order(self) -> int: "Value should be greater than 1." """ val = self._get_property("Max LO Order") - return val # type: ignore + return val # type: ignore @max_lo_order.setter def max_lo_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max LO Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max LO Order={value}"]) @property def include_if(self) -> bool: @@ -240,13 +242,11 @@ def include_if(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include IF") - return val # type: ignore + return val # type: ignore @include_if.setter def include_if(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include IF={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include IF={value}"]) @property def measure_saturation(self) -> bool: @@ -255,13 +255,11 @@ def measure_saturation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Measure Saturation") - return val # type: ignore + return val # type: ignore @measure_saturation.setter def measure_saturation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Saturation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Saturation={value}"]) @property def use_ams_limits(self) -> bool: @@ -270,13 +268,11 @@ def use_ams_limits(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -286,14 +282,12 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -303,14 +297,12 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def samples(self) -> int: @@ -319,13 +311,11 @@ def samples(self) -> int: "Value should be between 2 and 100." """ val = self._get_property("Samples") - return val # type: ignore + return val # type: ignore @samples.setter def samples(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Samples={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Samples={value}"]) @property def exclude_mixer_products_below_noise(self) -> bool: @@ -334,20 +324,19 @@ def exclude_mixer_products_below_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Exclude Mixer Products Below Noise") - return val # type: ignore + return val # type: ignore @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Exclude Mixer Products Below Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Exclude Mixer Products Below Noise={value}"] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py index acf29af48e8..97d625a899e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,7 +39,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -22,7 +48,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -37,16 +63,16 @@ class MixerProductTaperOption(Enum): def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper "Taper for setting amplitude of mixer products." - " """ + " """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] - return val # type: ignore + return val # type: ignore @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Taper={value.value}"] + ) @property def mixer_product_susceptibility(self) -> float: @@ -55,13 +81,13 @@ def mixer_product_susceptibility(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Mixer Product Susceptibility") - return val # type: ignore + return val # type: ignore @mixer_product_susceptibility.setter - def mixer_product_susceptibility(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Susceptibility={value}"]) + def mixer_product_susceptibility(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Susceptibility={value}"] + ) @property def spurious_rejection(self) -> float: @@ -70,13 +96,11 @@ def spurious_rejection(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Spurious Rejection") - return val # type: ignore + return val # type: ignore @spurious_rejection.setter - def spurious_rejection(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spurious Rejection={value}"]) + def spurious_rejection(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spurious Rejection={value}"]) @property def minimum_tuning_frequency(self) -> float: @@ -86,14 +110,12 @@ def minimum_tuning_frequency(self) -> float: """ val = self._get_property("Minimum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value : float|str): + def minimum_tuning_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minimum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Tuning Frequency={value}"]) @property def maximum_tuning_frequency(self) -> float: @@ -103,14 +125,12 @@ def maximum_tuning_frequency(self) -> float: """ val = self._get_property("Maximum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value : float|str): + def maximum_tuning_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum Tuning Frequency={value}"]) @property def mixer_product_slope(self) -> float: @@ -119,13 +139,11 @@ def mixer_product_slope(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Mixer Product Slope") - return val # type: ignore + return val # type: ignore @mixer_product_slope.setter - def mixer_product_slope(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Slope={value}"]) + def mixer_product_slope(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Slope={value}"]) @property def mixer_product_intercept(self) -> float: @@ -134,13 +152,11 @@ def mixer_product_intercept(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Mixer Product Intercept") - return val # type: ignore + return val # type: ignore @mixer_product_intercept.setter - def mixer_product_intercept(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Intercept={value}"]) + def mixer_product_intercept(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Intercept={value}"]) @property def bandwidth_80_db(self) -> float: @@ -150,14 +166,12 @@ def bandwidth_80_db(self) -> float: """ val = self._get_property("Bandwidth 80 dB") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_80_db.setter - def bandwidth_80_db(self, value : float|str): + def bandwidth_80_db(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 80 dB={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 80 dB={value}"]) @property def image_rejection(self) -> float: @@ -166,13 +180,11 @@ def image_rejection(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Image Rejection") - return val # type: ignore + return val # type: ignore @image_rejection.setter - def image_rejection(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Image Rejection={value}"]) + def image_rejection(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Image Rejection={value}"]) @property def maximum_rf_harmonic_order(self) -> int: @@ -181,13 +193,13 @@ def maximum_rf_harmonic_order(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Maximum RF Harmonic Order") - return val # type: ignore + return val # type: ignore @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum RF Harmonic Order={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Maximum RF Harmonic Order={value}"] + ) @property def maximum_lo_harmonic_order(self) -> int: @@ -196,13 +208,13 @@ def maximum_lo_harmonic_order(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Maximum LO Harmonic Order") - return val # type: ignore + return val # type: ignore @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum LO Harmonic Order={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Maximum LO Harmonic Order={value}"] + ) class MixingModeOption(Enum): LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" @@ -213,16 +225,14 @@ class MixingModeOption(Enum): def mixing_mode(self) -> MixingModeOption: """Mixing Mode "Specifies whether the IF frequency is > or < RF channel frequency." - " """ + " """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] - return val # type: ignore + return val # type: ignore @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixing Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixing Mode={value.value}"]) @property def first_if_frequency(self): @@ -231,29 +241,25 @@ def first_if_frequency(self): "Value should be a mathematical expression." """ val = self._get_property("First IF Frequency") - return val # type: ignore + return val # type: ignore @first_if_frequency.setter def first_if_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First IF Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First IF Frequency={value}"]) @property def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." - " """ + " """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @rf_transition_frequency.setter - def rf_transition_frequency(self, value : float|str): + def rf_transition_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"RF Transition Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"RF Transition Frequency={value}"]) class UseHighLOOption(Enum): ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" @@ -263,16 +269,14 @@ class UseHighLOOption(Enum): def use_high_lo(self) -> UseHighLOOption: """Use High LO "Use High LO above/below the transition frequency." - " """ + " """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] - return val # type: ignore + return val # type: ignore @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use High LO={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use High LO={value.value}"]) class MixerProductTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -282,14 +286,13 @@ class MixerProductTableUnitsOption(Enum): def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units "Specifies the units for the Mixer Products." - " """ + " """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Table Units={value.value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py index b46a4d251de..5bfe49eba0b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class RxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -21,9 +46,8 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py index bfc213cc0ea..12eb292f64e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class RxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -12,7 +37,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -21,7 +46,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -34,11 +59,8 @@ def use_arithmetic_mean(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Arithmetic Mean") - return val # type: ignore + return val # type: ignore @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Arithmetic Mean={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Arithmetic Mean={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py index 1d4b4639214..0f6b4919ddf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,7 +39,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -21,13 +47,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -39,7 +65,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -53,14 +79,11 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spur Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py index 1897062b46d..aab6ff507d2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -14,7 +40,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -30,31 +56,27 @@ class SensitivityUnitsOption(Enum): def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units "Units to use for the Rx Sensitivity." - " """ + " """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] - return val # type: ignore + return val # type: ignore @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sensitivity Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sensitivity Units={value.value}"]) @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr "Received signal power level at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ val = self._get_property("Min. Receive Signal Pwr ") - return val # type: ignore + return val # type: ignore @min_receive_signal_pwr_.setter - def min_receive_signal_pwr_(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min. Receive Signal Pwr ={value}"]) + def min_receive_signal_pwr_(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min. Receive Signal Pwr ={value}"]) @property def snr_at_rx_signal_pwr(self) -> float: @@ -63,13 +85,11 @@ def snr_at_rx_signal_pwr(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("SNR at Rx Signal Pwr") - return val # type: ignore + return val # type: ignore @snr_at_rx_signal_pwr.setter - def snr_at_rx_signal_pwr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SNR at Rx Signal Pwr={value}"]) + def snr_at_rx_signal_pwr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR at Rx Signal Pwr={value}"]) @property def processing_gain(self) -> float: @@ -78,13 +98,11 @@ def processing_gain(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Processing Gain") - return val # type: ignore + return val # type: ignore @processing_gain.setter - def processing_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Processing Gain={value}"]) + def processing_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Processing Gain={value}"]) @property def apply_pg_to_narrowband_only(self) -> bool: @@ -93,13 +111,13 @@ def apply_pg_to_narrowband_only(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Apply PG to Narrowband Only") - return val # type: ignore + return val # type: ignore @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Apply PG to Narrowband Only={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Apply PG to Narrowband Only={value}"] + ) @property def saturation_level(self) -> float: @@ -109,14 +127,12 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @saturation_level.setter - def saturation_level(self, value : float|str): + def saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) @property def rx_noise_figure(self) -> float: @@ -125,45 +141,41 @@ def rx_noise_figure(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rx Noise Figure") - return val # type: ignore + return val # type: ignore @rx_noise_figure.setter - def rx_noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rx Noise Figure={value}"]) + def rx_noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rx Noise Figure={value}"]) @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." "Value should be between -1000 and 1000." """ val = self._get_property("Receiver Sensitivity ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @receiver_sensitivity_.setter - def receiver_sensitivity_(self, value : float|str): + def receiver_sensitivity_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Receiver Sensitivity ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver Sensitivity ={value}"]) @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity "SNR or SINAD at the specified sensitivity level." "Value should be between -1000 and 1000." """ val = self._get_property("SNR/SINAD at Sensitivity ") - return val # type: ignore + return val # type: ignore @snrsinad_at_sensitivity_.setter - def snrsinad_at_sensitivity_(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SNR/SINAD at Sensitivity ={value}"]) + def snrsinad_at_sensitivity_(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"SNR/SINAD at Sensitivity ={value}"] + ) @property def perform_rx_intermod_analysis(self) -> bool: @@ -172,13 +184,13 @@ def perform_rx_intermod_analysis(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Perform Rx Intermod Analysis") - return val # type: ignore + return val # type: ignore @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Rx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Rx Intermod Analysis={value}"] + ) @property def amplifier_saturation_level(self) -> float: @@ -188,31 +200,29 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." "Value should be between -1000 and 1000." """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -222,14 +232,12 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def max_intermod_order(self) -> int: @@ -238,11 +246,8 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py index ee98f186a5d..18891f190be 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,11 +39,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Min: + "Min: " Value should be greater than 1." - "Max: + "Max: " Value should be greater than 1." """ return self._get_table_data() @@ -35,16 +61,14 @@ class SamplingTypeOption(Enum): def sampling_type(self) -> SamplingTypeOption: """Sampling Type "Sampling to apply to this configuration." - " """ + " """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] - return val # type: ignore + return val # type: ignore @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sampling Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sampling Type={value.value}"]) @property def specify_percentage(self) -> bool: @@ -53,13 +77,11 @@ def specify_percentage(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Specify Percentage") - return val # type: ignore + return val # type: ignore @specify_percentage.setter def specify_percentage(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Specify Percentage={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Specify Percentage={value}"]) @property def percentage_of_channels(self) -> float: @@ -68,13 +90,11 @@ def percentage_of_channels(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("Percentage of Channels") - return val # type: ignore + return val # type: ignore @percentage_of_channels.setter - def percentage_of_channels(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Percentage of Channels={value}"]) + def percentage_of_channels(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percentage of Channels={value}"]) @property def max__channelsrangeband(self) -> int: @@ -83,13 +103,13 @@ def max__channelsrangeband(self) -> int: "Value should be between 1 and 100000." """ val = self._get_property("Max # Channels/Range/Band") - return val # type: ignore + return val # type: ignore @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max # Channels/Range/Band={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Max # Channels/Range/Band={value}"] + ) @property def seed(self) -> int: @@ -98,35 +118,32 @@ def seed(self) -> int: "Value should be greater than 0." """ val = self._get_property("Seed") - return val # type: ignore + return val # type: ignore @seed.setter def seed(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Seed={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Seed={value}"]) @property def total_tx_channels(self) -> int: """Total Tx Channels "Total number of transmit channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Tx Channels") - return val # type: ignore + return val # type: ignore @property def total_rx_channels(self) -> int: """Total Rx Channels "Total number of receive channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Rx Channels") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py index a7c6c04c2d0..ef89330569e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -34,13 +60,13 @@ def show_relative_coordinates(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -49,13 +75,11 @@ def position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -64,13 +88,11 @@ def relative_position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -80,16 +102,14 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -98,13 +118,11 @@ def orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -113,13 +131,11 @@ def relative_orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def show_axes(self) -> bool: @@ -128,13 +144,11 @@ def show_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def box_color(self): @@ -143,25 +157,20 @@ def box_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Box Color") - return val # type: ignore + return val # type: ignore @box_color.setter def box_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Box Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Box Color={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py index 7a33597db8f..996539a97ce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SelectivityTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -27,15 +53,13 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -44,13 +68,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -59,27 +81,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -93,16 +111,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -111,13 +127,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -126,13 +140,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -155,16 +167,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -173,13 +183,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -188,13 +196,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -203,13 +209,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -218,11 +222,8 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py index 651b8d6af4c..3b94504dacd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class SolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -17,13 +42,11 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -32,13 +55,11 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -47,25 +68,20 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py index 4d75c7c87c7..ae0abe54b62 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class SolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -17,11 +42,8 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py index 28f7cfb0c41..34cfe291204 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SpurTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -27,38 +53,34 @@ def delete(self): def channel_frequency(self): """Channel Frequency "Select band channel frequency to display." - " """ + " """ val = self._get_property("Channel Frequency") - return val # type: ignore + return val # type: ignore @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -67,13 +89,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -82,27 +102,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -116,16 +132,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -134,13 +148,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -149,13 +161,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -178,16 +188,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -196,13 +204,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -211,13 +217,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -226,13 +230,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -241,11 +243,8 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py index 7c6fec8dca2..7b5d0d5a7bc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TRSwitchTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -30,13 +56,11 @@ def input_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -45,27 +69,23 @@ def output_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -74,13 +94,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -89,27 +107,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -123,16 +137,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -141,13 +153,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -156,13 +166,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -185,16 +193,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -203,13 +209,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -218,13 +222,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -233,13 +235,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -248,11 +248,8 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index ae16d5e9d45..1a02b22cfe9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -25,13 +51,11 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -40,27 +64,23 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TxPortOption(Enum): PORT_1 = "Port 1" @@ -70,16 +90,14 @@ class TxPortOption(Enum): def tx_port(self) -> TxPortOption: """Tx Port "Specifies which port on the TR Switch is part of the Tx path.." - " """ + " """ val = self._get_property("Tx Port") val = self.TxPortOption[val] - return val # type: ignore + return val # type: ignore @tx_port.setter def tx_port(self, value: TxPortOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Port={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Port={value.value}"]) class CommonPortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -89,16 +107,16 @@ class CommonPortLocationOption(Enum): def common_port_location(self) -> CommonPortLocationOption: """Common Port Location "Defines the orientation of the tr switch.." - " """ + " """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] - return val # type: ignore + return val # type: ignore @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Common Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Common Port Location={value.value}"] + ) @property def insertion_loss(self) -> float: @@ -107,13 +125,11 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_isolation(self) -> bool: @@ -122,13 +138,11 @@ def finite_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -137,13 +151,11 @@ def isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @isolation.setter - def isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Isolation={value}"]) + def isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -152,13 +164,11 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -167,13 +177,11 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -183,14 +191,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -200,14 +206,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -217,14 +221,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -234,12 +236,9 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index 0e21f1e8294..4d0d69bfbbf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Terminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -25,13 +51,11 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -40,27 +64,23 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -70,16 +90,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class PortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -89,16 +107,14 @@ class PortLocationOption(Enum): def port_location(self) -> PortLocationOption: """Port Location "Defines the orientation of the terminator.." - " """ + " """ val = self._get_property("Port Location") val = self.PortLocationOption[val] - return val # type: ignore + return val # type: ignore @port_location.setter def port_location(self, value: PortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port Location={value.value}"]) @property def vswr(self) -> float: @@ -107,19 +123,16 @@ def vswr(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @vswr.setter - def vswr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"VSWR={value}"]) + def vswr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py index c6d0eab1279..7ef9553f761 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TestNoiseTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -30,13 +56,11 @@ def input_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -45,27 +69,23 @@ def output_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -74,13 +94,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -89,27 +107,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -123,16 +137,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -141,13 +153,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -156,13 +166,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -185,16 +193,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -203,13 +209,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -218,13 +222,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -233,13 +235,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -248,13 +248,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -264,14 +262,12 @@ def frequency_1(self) -> float: """ val = self._get_property("Frequency 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_1.setter - def frequency_1(self, value : float|str): + def frequency_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -281,14 +277,12 @@ def amplitude_1(self) -> float: """ val = self._get_property("Amplitude 1") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_1.setter - def amplitude_1(self, value : float|str): + def amplitude_1(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -298,14 +292,12 @@ def bandwidth_1(self) -> float: """ val = self._get_property("Bandwidth 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_1.setter - def bandwidth_1(self, value : float|str): + def bandwidth_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -315,14 +307,12 @@ def frequency_2(self) -> float: """ val = self._get_property("Frequency 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_2.setter - def frequency_2(self, value : float|str): + def frequency_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -332,14 +322,12 @@ def amplitude_2(self) -> float: """ val = self._get_property("Amplitude 2") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_2.setter - def amplitude_2(self, value : float|str): + def amplitude_2(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -349,14 +337,12 @@ def bandwidth_2(self) -> float: """ val = self._get_property("Bandwidth 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_2.setter - def bandwidth_2(self, value : float|str): + def bandwidth_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -365,11 +351,8 @@ def noise_level(self) -> float: "Value should be between -200 and 0." """ val = self._get_property("Noise Level") - return val # type: ignore + return val # type: ignore @noise_level.setter - def noise_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Level={value}"]) - + def noise_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py index 95fa62b6506..e8225cd97be 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py @@ -1,7 +1,31 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class TopLevelSimulation(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py index c147c41419a..d8d62294243 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class TouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -29,13 +54,11 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -44,13 +67,11 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -59,27 +80,23 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def filename(self) -> str: @@ -88,21 +105,19 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File "Coupling data generated by Savant and exported as a matched file." - " """ + " """ val = self._get_property("Savant Matched Coupling File") - return val # type: ignore + return val # type: ignore @property def enable_em_isolation(self) -> bool: @@ -111,40 +126,33 @@ def enable_em_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable EM Isolation") - return val # type: ignore + return val # type: ignore @enable_em_isolation.setter def enable_em_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable EM Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable EM Isolation={value}"]) @property def port_antenna_assignment(self): """Port-Antenna Assignment "Maps each port in the coupling file to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Port-Antenna Assignment") - return val # type: ignore + return val # type: ignore @port_antenna_assignment.setter def port_antenna_assignment(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port-Antenna Assignment={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port-Antenna Assignment={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py index b855ee14d02..dbfa0a790d8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TunableTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -30,13 +56,11 @@ def input_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -45,43 +69,37 @@ def output_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def frequency(self) -> float: """Frequency "Tunable filter center frequency." - " """ + " """ val = self._get_property("Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency.setter - def frequency(self, value : float|str): + def frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -90,13 +108,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -105,27 +121,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -139,16 +151,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -157,13 +167,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -172,13 +180,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -201,16 +207,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -219,13 +223,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -234,13 +236,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -249,13 +249,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -264,11 +262,8 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py index b73940afc2f..b7f3e4da8a2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -30,41 +56,35 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -73,13 +93,11 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -88,27 +106,23 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def ground_reflection_coeff(self) -> float: @@ -117,13 +131,11 @@ def ground_reflection_coeff(self) -> float: "Value should be between -100 and 100." """ val = self._get_property("Ground Reflection Coeff.") - return val # type: ignore + return val # type: ignore @ground_reflection_coeff.setter - def ground_reflection_coeff(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ground Reflection Coeff.={value}"]) + def ground_reflection_coeff(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ground Reflection Coeff.={value}"]) @property def pointspeak(self) -> int: @@ -132,13 +144,11 @@ def pointspeak(self) -> int: "Value should be between 3 and 100." """ val = self._get_property("Points/Peak") - return val # type: ignore + return val # type: ignore @pointspeak.setter def pointspeak(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Points/Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Points/Peak={value}"]) @property def custom_fading_margin(self) -> float: @@ -147,13 +157,11 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -162,13 +170,11 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -177,13 +183,11 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -195,16 +199,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -213,13 +215,11 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -228,13 +228,11 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -243,13 +241,11 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -258,13 +254,11 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -273,13 +267,11 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -288,13 +280,11 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -303,13 +293,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -318,13 +308,11 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -333,13 +321,11 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -348,11 +334,10 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py index 88d6579f824..7f3c54904c9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TwoToneTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -30,13 +56,11 @@ def input_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -45,27 +69,23 @@ def output_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -74,13 +94,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -89,27 +107,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -123,16 +137,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -141,13 +153,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -156,13 +166,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -185,16 +193,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -203,13 +209,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -218,13 +222,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -233,13 +235,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -248,13 +248,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -264,14 +262,12 @@ def frequency_1(self) -> float: """ val = self._get_property("Frequency 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_1.setter - def frequency_1(self, value : float|str): + def frequency_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -281,14 +277,12 @@ def amplitude_1(self) -> float: """ val = self._get_property("Amplitude 1") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_1.setter - def amplitude_1(self, value : float|str): + def amplitude_1(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -298,14 +292,12 @@ def bandwidth_1(self) -> float: """ val = self._get_property("Bandwidth 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_1.setter - def bandwidth_1(self, value : float|str): + def bandwidth_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -315,14 +307,12 @@ def frequency_2(self) -> float: """ val = self._get_property("Frequency 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_2.setter - def frequency_2(self, value : float|str): + def frequency_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -332,14 +322,12 @@ def amplitude_2(self) -> float: """ val = self._get_property("Amplitude 2") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_2.setter - def amplitude_2(self, value : float|str): + def amplitude_2(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -349,14 +337,12 @@ def bandwidth_2(self) -> float: """ val = self._get_property("Bandwidth 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_2.setter - def bandwidth_2(self, value : float|str): + def bandwidth_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -365,11 +351,8 @@ def noise_level(self) -> float: "Value should be between -200 and 0." """ val = self._get_property("Noise Level") - return val # type: ignore + return val # type: ignore @noise_level.setter - def noise_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Level={value}"]) - + def noise_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py index 874765e998a..d5ab8ee566f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,7 +39,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -23,9 +49,9 @@ def delete(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): " Value should be between -200 and 150." """ return self._get_table_data() @@ -37,7 +63,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -53,16 +79,14 @@ class NoiseBehaviorOption(Enum): def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior "Specifies the behavior of the parametric noise profile." - " """ + " """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] - return val # type: ignore + return val # type: ignore @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Behavior={value.value}"]) @property def use_log_linear_interpolation(self) -> bool: @@ -71,11 +95,10 @@ def use_log_linear_interpolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Log-Linear Interpolation") - return val # type: ignore + return val # type: ignore @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Log-Linear Interpolation={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py index 4009457dd32..def0c396784 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,7 +39,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -22,7 +48,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -36,14 +62,13 @@ class HarmonicTableUnitsOption(Enum): def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units "Specifies the units for the Harmonics." - " """ + " """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py index ea6a449bbad..8449a2c157d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class TxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -25,7 +50,7 @@ def file(self) -> str: "Value should be a full file path." """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -34,16 +59,16 @@ def source_file(self) -> str: "Value should be a full file path." """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -52,13 +77,11 @@ def use_ams_limits(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -68,14 +91,12 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -85,14 +106,12 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def exclude_harmonics_below_noise(self) -> bool: @@ -101,20 +120,19 @@ def exclude_harmonics_below_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Exclude Harmonics Below Noise") - return val # type: ignore + return val # type: ignore @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Exclude Harmonics Below Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py index 1b6501716ae..f48cd5414ae 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,7 +39,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -22,7 +48,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -36,30 +62,27 @@ class NarrowbandBehaviorOption(Enum): def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." - " """ + " """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] - return val # type: ignore + return val # type: ignore @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Narrowband Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"] + ) @property def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - " """ + " """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @measurement_frequency.setter - def measurement_frequency(self, value : float|str): + def measurement_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Frequency={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Frequency={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py index 510758e7c7d..9b2b444aee9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py @@ -1,5 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from ..EmitNode import EmitNode + class TxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,7 +38,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -23,17 +48,15 @@ def enabled(self, value: bool): def output_voltage_peak(self) -> float: """Output Voltage Peak "Output High Voltage Level: maximum voltage of the digital signal." - " """ + " """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") - return val # type: ignore + return val # type: ignore @output_voltage_peak.setter - def output_voltage_peak(self, value : float|str): + def output_voltage_peak(self, value: float | str): value = self._convert_to_internal_units(value, "Voltage") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Voltage Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Voltage Peak={value}"]) @property def include_phase_noise(self) -> bool: @@ -42,13 +65,11 @@ def include_phase_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -57,13 +78,11 @@ def tx_broadband_noise(self) -> float: "Value should be less than 1000." """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @tx_broadband_noise.setter - def tx_broadband_noise(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -72,13 +91,13 @@ def perform_tx_intermod_analysis(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Tx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] + ) @property def internal_amp_gain(self) -> float: @@ -87,13 +106,11 @@ def internal_amp_gain(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @internal_amp_gain.setter - def internal_amp_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -102,13 +119,11 @@ def noise_figure(self) -> float: "Value should be between 0 and 50." """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -118,31 +133,29 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -152,14 +165,12 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -168,13 +179,11 @@ def reverse_isolation(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -183,11 +192,8 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py index 908f9041fc4..7afaa7c1488 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -14,7 +40,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -28,16 +54,14 @@ class SpectrumTypeOption(Enum): def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type "Specifies EMI Margins to calculate." - " """ + " """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] - return val # type: ignore + return val # type: ignore @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spectrum Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spectrum Type={value.value}"]) class TxPowerOption(Enum): PEAK_POWER = "Peak Power" @@ -47,16 +71,14 @@ class TxPowerOption(Enum): def tx_power(self) -> TxPowerOption: """Tx Power "Method used to specify the power." - " """ + " """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] - return val # type: ignore + return val # type: ignore @tx_power.setter def tx_power(self, value: TxPowerOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Power={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Power={value.value}"]) @property def peak_power(self) -> float: @@ -66,14 +88,12 @@ def peak_power(self) -> float: """ val = self._get_property("Peak Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @peak_power.setter - def peak_power(self, value : float|str): + def peak_power(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Peak Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Power={value}"]) @property def average_power(self) -> float: @@ -83,14 +103,12 @@ def average_power(self) -> float: """ val = self._get_property("Average Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @average_power.setter - def average_power(self, value : float|str): + def average_power(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Average Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Average Power={value}"]) @property def include_phase_noise(self) -> bool: @@ -99,13 +117,11 @@ def include_phase_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -114,13 +130,11 @@ def tx_broadband_noise(self) -> float: "Value should be less than 1000." """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @tx_broadband_noise.setter - def tx_broadband_noise(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) class HarmonicTaperOption(Enum): CONSTANT = "Constant" @@ -132,16 +146,14 @@ class HarmonicTaperOption(Enum): def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper "Taper type used to set amplitude of harmonics." - " """ + " """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] - return val # type: ignore + return val # type: ignore @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Taper={value.value}"]) @property def harmonic_amplitude(self) -> float: @@ -150,13 +162,11 @@ def harmonic_amplitude(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Harmonic Amplitude") - return val # type: ignore + return val # type: ignore @harmonic_amplitude.setter - def harmonic_amplitude(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Amplitude={value}"]) + def harmonic_amplitude(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Amplitude={value}"]) @property def harmonic_slope(self) -> float: @@ -165,13 +175,11 @@ def harmonic_slope(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Harmonic Slope") - return val # type: ignore + return val # type: ignore @harmonic_slope.setter - def harmonic_slope(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Slope={value}"]) + def harmonic_slope(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Slope={value}"]) @property def harmonic_intercept(self) -> float: @@ -180,13 +188,11 @@ def harmonic_intercept(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Harmonic Intercept") - return val # type: ignore + return val # type: ignore @harmonic_intercept.setter - def harmonic_intercept(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Intercept={value}"]) + def harmonic_intercept(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Intercept={value}"]) @property def enable_harmonic_bw_expansion(self) -> bool: @@ -195,13 +201,13 @@ def enable_harmonic_bw_expansion(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Harmonic BW Expansion") - return val # type: ignore + return val # type: ignore @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Harmonic BW Expansion={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Enable Harmonic BW Expansion={value}"] + ) @property def number_of_harmonics(self) -> int: @@ -210,13 +216,11 @@ def number_of_harmonics(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Number of Harmonics") - return val # type: ignore + return val # type: ignore @number_of_harmonics.setter def number_of_harmonics(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Harmonics={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Harmonics={value}"]) @property def second_harmonic_level(self) -> float: @@ -225,13 +229,11 @@ def second_harmonic_level(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Second Harmonic Level") - return val # type: ignore + return val # type: ignore @second_harmonic_level.setter - def second_harmonic_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Second Harmonic Level={value}"]) + def second_harmonic_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Second Harmonic Level={value}"]) @property def third_harmonic_level(self) -> float: @@ -240,13 +242,11 @@ def third_harmonic_level(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Third Harmonic Level") - return val # type: ignore + return val # type: ignore @third_harmonic_level.setter - def third_harmonic_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Third Harmonic Level={value}"]) + def third_harmonic_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Third Harmonic Level={value}"]) @property def other_harmonic_levels(self) -> float: @@ -255,13 +255,11 @@ def other_harmonic_levels(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Other Harmonic Levels") - return val # type: ignore + return val # type: ignore @other_harmonic_levels.setter - def other_harmonic_levels(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Other Harmonic Levels={value}"]) + def other_harmonic_levels(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Other Harmonic Levels={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -270,13 +268,13 @@ def perform_tx_intermod_analysis(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Tx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] + ) @property def internal_amp_gain(self) -> float: @@ -285,13 +283,11 @@ def internal_amp_gain(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @internal_amp_gain.setter - def internal_amp_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -300,13 +296,11 @@ def noise_figure(self) -> float: "Value should be between 0 and 50." """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -316,31 +310,29 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -350,14 +342,12 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -366,13 +356,11 @@ def reverse_isolation(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -381,11 +369,8 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py index 90e9a40ded7..dba9a4b2f98 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -13,7 +39,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -21,13 +47,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -39,7 +65,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -53,14 +79,11 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spur Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py index 342e1435a0b..8ae85bcbda1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class WalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -30,41 +56,35 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -73,13 +93,11 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -88,27 +106,23 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class PathLossTypeOption(Enum): LOS_URBAN_CANYON = "LOS (Urban Canyon)" @@ -118,16 +132,14 @@ class PathLossTypeOption(Enum): def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type "Specify LOS vs NLOS for the Walfisch-Ikegami model." - " """ + " """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] - return val # type: ignore + return val # type: ignore @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Path Loss Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Type={value.value}"]) class EnvironmentOption(Enum): DENSE_METRO = "Dense Metro" @@ -137,16 +149,14 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Walfisch model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def roof_height(self) -> float: @@ -156,14 +166,12 @@ def roof_height(self) -> float: """ val = self._get_property("Roof Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @roof_height.setter - def roof_height(self, value : float|str): + def roof_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Roof Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Roof Height={value}"]) @property def distance_between_buildings(self) -> float: @@ -173,14 +181,14 @@ def distance_between_buildings(self) -> float: """ val = self._get_property("Distance Between Buildings") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @distance_between_buildings.setter - def distance_between_buildings(self, value : float|str): + def distance_between_buildings(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Distance Between Buildings={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Distance Between Buildings={value}"] + ) @property def street_width(self) -> float: @@ -190,14 +198,12 @@ def street_width(self) -> float: """ val = self._get_property("Street Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @street_width.setter - def street_width(self, value : float|str): + def street_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Street Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Street Width={value}"]) @property def incidence_angle(self) -> float: @@ -206,13 +212,11 @@ def incidence_angle(self) -> float: "Value should be between 0 and 90." """ val = self._get_property("Incidence Angle") - return val # type: ignore + return val # type: ignore @incidence_angle.setter - def incidence_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Incidence Angle={value}"]) + def incidence_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Incidence Angle={value}"]) @property def custom_fading_margin(self) -> float: @@ -221,13 +225,11 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -236,13 +238,11 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -251,13 +251,11 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -269,16 +267,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -287,13 +283,11 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -302,13 +296,11 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -317,13 +309,11 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -332,13 +322,11 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -347,13 +335,11 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -362,13 +348,11 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -377,13 +361,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -392,13 +376,11 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -407,13 +389,11 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -422,11 +402,10 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py index 741370d351c..84c7da63623 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py @@ -1,6 +1,32 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Waveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -14,7 +40,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -24,15 +50,13 @@ def enabled(self, value: bool): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" @@ -45,16 +69,14 @@ class WaveformOption(Enum): def waveform(self) -> WaveformOption: """Waveform "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Waveform") val = self.WaveformOption[val] - return val # type: ignore + return val # type: ignore @waveform.setter def waveform(self, value: WaveformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Waveform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveform={value.value}"]) @property def start_frequency(self) -> float: @@ -64,14 +86,12 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -81,14 +101,12 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -98,14 +116,12 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_spacing.setter - def channel_spacing(self, value : float|str): + def channel_spacing(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) @property def clock_duty_cycle(self) -> float: @@ -114,13 +130,11 @@ def clock_duty_cycle(self) -> float: "Value should be between 0.001 and 1." """ val = self._get_property("Clock Duty Cycle") - return val # type: ignore + return val # type: ignore @clock_duty_cycle.setter - def clock_duty_cycle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Clock Duty Cycle={value}"]) + def clock_duty_cycle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Duty Cycle={value}"]) @property def clock_risefall_time(self) -> float: @@ -130,14 +144,12 @@ def clock_risefall_time(self) -> float: """ val = self._get_property("Clock Rise/Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @clock_risefall_time.setter - def clock_risefall_time(self, value : float|str): + def clock_risefall_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Clock Rise/Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Rise/Fall Time={value}"]) class SpreadingTypeOption(Enum): LOW_SPREAD = "Low Spread" @@ -148,16 +160,14 @@ class SpreadingTypeOption(Enum): def spreading_type(self) -> SpreadingTypeOption: """Spreading Type "Type of spreading employed by the Spread Spectrum Clock." - " """ + " """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] - return val # type: ignore + return val # type: ignore @spreading_type.setter def spreading_type(self, value: SpreadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spreading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spreading Type={value.value}"]) @property def spread_percentage(self) -> float: @@ -166,13 +176,11 @@ def spread_percentage(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Spread Percentage") - return val # type: ignore + return val # type: ignore @spread_percentage.setter - def spread_percentage(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spread Percentage={value}"]) + def spread_percentage(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spread Percentage={value}"]) @property def imported_spectrum(self) -> str: @@ -180,21 +188,19 @@ def imported_spectrum(self) -> str: "Value should be a full file path." """ val = self._get_property("Imported Spectrum") - return val # type: ignore + return val # type: ignore @imported_spectrum.setter def imported_spectrum(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Imported Spectrum={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Imported Spectrum={value}"]) @property def raw_data_format(self) -> str: """Raw Data Format "Format of the imported raw data." - " """ + " """ val = self._get_property("Raw Data Format") - return val # type: ignore + return val # type: ignore @property def system_impedance(self) -> float: @@ -204,14 +210,12 @@ def system_impedance(self) -> float: """ val = self._get_property("System Impedance") val = self._convert_from_internal_units(float(val), "Resistance") - return val # type: ignore + return val # type: ignore @system_impedance.setter - def system_impedance(self, value : float|str): + def system_impedance(self, value: float | str): value = self._convert_to_internal_units(value, "Resistance") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"System Impedance={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"System Impedance={value}"]) @property def advanced_extraction_params(self) -> bool: @@ -220,13 +224,13 @@ def advanced_extraction_params(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Advanced Extraction Params") - return val # type: ignore + return val # type: ignore @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Advanced Extraction Params={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Advanced Extraction Params={value}"] + ) @property def nb_window_size(self) -> float: @@ -235,13 +239,11 @@ def nb_window_size(self) -> float: "Value should be greater than 3." """ val = self._get_property("NB Window Size") - return val # type: ignore + return val # type: ignore @nb_window_size.setter - def nb_window_size(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NB Window Size={value}"]) + def nb_window_size(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Window Size={value}"]) @property def bb_smoothing_factor(self) -> float: @@ -250,13 +252,11 @@ def bb_smoothing_factor(self) -> float: "Value should be greater than 1." """ val = self._get_property("BB Smoothing Factor") - return val # type: ignore + return val # type: ignore @bb_smoothing_factor.setter - def bb_smoothing_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Smoothing Factor={value}"]) + def bb_smoothing_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Smoothing Factor={value}"]) @property def nb_detector_threshold(self) -> float: @@ -265,13 +265,11 @@ def nb_detector_threshold(self) -> float: "Value should be between 2 and 10." """ val = self._get_property("NB Detector Threshold") - return val # type: ignore + return val # type: ignore @nb_detector_threshold.setter - def nb_detector_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NB Detector Threshold={value}"]) + def nb_detector_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Detector Threshold={value}"]) class AlgorithmOption(Enum): FFT = "FFT" @@ -281,16 +279,14 @@ class AlgorithmOption(Enum): def algorithm(self) -> AlgorithmOption: """Algorithm "Algorithm used to transform the imported time domain spectrum." - " """ + " """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] - return val # type: ignore + return val # type: ignore @algorithm.setter def algorithm(self, value: AlgorithmOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Algorithm={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Algorithm={value.value}"]) @property def start_time(self) -> float: @@ -300,30 +296,26 @@ def start_time(self) -> float: """ val = self._get_property("Start Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @start_time.setter - def start_time(self, value : float|str): + def start_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Time={value}"]) @property def stop_time(self) -> float: """Stop Time "Final time of the imported time domain spectrum." - " """ + " """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @stop_time.setter - def stop_time(self, value : float|str): + def stop_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Time={value}"]) @property def max_frequency(self) -> float: @@ -333,14 +325,12 @@ def max_frequency(self) -> float: """ val = self._get_property("Max Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_frequency.setter - def max_frequency(self, value : float|str): + def max_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Frequency={value}"]) class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" @@ -357,16 +347,14 @@ class WindowTypeOption(Enum): def window_type(self) -> WindowTypeOption: """Window Type "Windowing scheme used for importing time domain spectrum." - " """ + " """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] - return val # type: ignore + return val # type: ignore @window_type.setter def window_type(self, value: WindowTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Window Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Window Type={value.value}"]) @property def kaiser_parameter(self) -> float: @@ -375,13 +363,11 @@ def kaiser_parameter(self) -> float: "Value should be greater than 0." """ val = self._get_property("Kaiser Parameter") - return val # type: ignore + return val # type: ignore @kaiser_parameter.setter - def kaiser_parameter(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Kaiser Parameter={value}"]) + def kaiser_parameter(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Kaiser Parameter={value}"]) @property def adjust_coherent_gain(self) -> bool: @@ -390,13 +376,11 @@ def adjust_coherent_gain(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adjust Coherent Gain") - return val # type: ignore + return val # type: ignore @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adjust Coherent Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adjust Coherent Gain={value}"]) @property def data_rate(self) -> float: @@ -406,14 +390,12 @@ def data_rate(self) -> float: """ val = self._get_property("Data Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @data_rate.setter - def data_rate(self, value : float|str): + def data_rate(self, value: float | str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Rate={value}"]) @property def num_of_bits(self) -> int: @@ -422,13 +404,11 @@ def num_of_bits(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Num of Bits") - return val # type: ignore + return val # type: ignore @num_of_bits.setter def num_of_bits(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Num of Bits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Num of Bits={value}"]) @property def use_envelope(self) -> bool: @@ -437,13 +417,11 @@ def use_envelope(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Envelope") - return val # type: ignore + return val # type: ignore @use_envelope.setter def use_envelope(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Envelope={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Envelope={value}"]) @property def min_ptsnull(self) -> int: @@ -452,13 +430,11 @@ def min_ptsnull(self) -> int: "Value should be between 2 and 50." """ val = self._get_property("Min Pts/Null") - return val # type: ignore + return val # type: ignore @min_ptsnull.setter def min_ptsnull(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pts/Null={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pts/Null={value}"]) @property def delay_skew(self) -> float: @@ -468,12 +444,9 @@ def delay_skew(self) -> float: """ val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @delay_skew.setter - def delay_skew(self, value : float|str): + def delay_skew(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Delay Skew={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Delay Skew={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index bd6f8b1de0e..7f7a748aedf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,3 +1,27 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from .Amplifier import Amplifier from .AntennaNode import AntennaNode from .AntennaPassband import AntennaPassband @@ -33,38 +57,6 @@ from .ProfileTraceNode import ProfileTraceNode from .PropagationLossCouplingNode import PropagationLossCouplingNode from .RadioNode import RadioNode -from .ResultPlotNode import ResultPlotNode -from .RfSystemGroup import RfSystemGroup -from .RxMeasNode import RxMeasNode -from .RxMixerProductNode import RxMixerProductNode -from .RxSaturationNode import RxSaturationNode -from .RxSelectivityNode import RxSelectivityNode -from .RxSpurNode import RxSpurNode -from .RxSusceptibilityProfNode import RxSusceptibilityProfNode -from .SamplingNode import SamplingNode -from .SceneGroupNode import SceneGroupNode -from .SelectivityTraceNode import SelectivityTraceNode -from .SolutionCouplingNode import SolutionCouplingNode -from .SolutionsNode import SolutionsNode -from .SpurTraceNode import SpurTraceNode -from .TR_Switch import TR_Switch -from .TRSwitchTraceNode import TRSwitchTraceNode -from .Terminator import Terminator -from .TestNoiseTraceNode import TestNoiseTraceNode -from .TopLevelSimulation import TopLevelSimulation -from .TouchstoneCouplingNode import TouchstoneCouplingNode -from .TunableTraceNode import TunableTraceNode -from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode -from .TwoToneTraceNode import TwoToneTraceNode -from .TxBbEmissionNode import TxBbEmissionNode -from .TxHarmonicNode import TxHarmonicNode -from .TxMeasNode import TxMeasNode -from .TxNbEmissionNode import TxNbEmissionNode -from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode -from .TxSpectralProfNode import TxSpectralProfNode -from .TxSpurNode import TxSpurNode -from .WalfischCouplingNode import WalfischCouplingNode -from .Waveform import Waveform from .ReadOnlyAmplifier import ReadOnlyAmplifier from .ReadOnlyAntennaNode import ReadOnlyAntennaNode from .ReadOnlyAntennaPassband import ReadOnlyAntennaPassband @@ -113,121 +105,153 @@ from .ReadOnlyTxSpurNode import ReadOnlyTxSpurNode from .ReadOnlyWalfischCouplingNode import ReadOnlyWalfischCouplingNode from .ReadOnlyWaveform import ReadOnlyWaveform +from .ResultPlotNode import ResultPlotNode +from .RfSystemGroup import RfSystemGroup +from .RxMeasNode import RxMeasNode +from .RxMixerProductNode import RxMixerProductNode +from .RxSaturationNode import RxSaturationNode +from .RxSelectivityNode import RxSelectivityNode +from .RxSpurNode import RxSpurNode +from .RxSusceptibilityProfNode import RxSusceptibilityProfNode +from .SamplingNode import SamplingNode +from .SceneGroupNode import SceneGroupNode +from .SelectivityTraceNode import SelectivityTraceNode +from .SolutionCouplingNode import SolutionCouplingNode +from .SolutionsNode import SolutionsNode +from .SpurTraceNode import SpurTraceNode +from .TRSwitchTraceNode import TRSwitchTraceNode +from .TR_Switch import TR_Switch +from .Terminator import Terminator +from .TestNoiseTraceNode import TestNoiseTraceNode +from .TopLevelSimulation import TopLevelSimulation +from .TouchstoneCouplingNode import TouchstoneCouplingNode +from .TunableTraceNode import TunableTraceNode +from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode +from .TwoToneTraceNode import TwoToneTraceNode +from .TxBbEmissionNode import TxBbEmissionNode +from .TxHarmonicNode import TxHarmonicNode +from .TxMeasNode import TxMeasNode +from .TxNbEmissionNode import TxNbEmissionNode +from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode +from .TxSpectralProfNode import TxSpectralProfNode +from .TxSpurNode import TxSpurNode +from .WalfischCouplingNode import WalfischCouplingNode +from .Waveform import Waveform __all__ = [ - 'Amplifier', - 'AntennaNode', - 'AntennaPassband', - 'Band', - 'BandFolder', - 'BandTraceNode', - 'CADNode', - 'Cable', - 'CategoriesViewNode', - 'Circulator', - 'CouplingLinkNode', - 'CouplingTraceNode', - 'CouplingsNode', - 'CustomCouplingNode', - 'EmiPlotMarkerNode', - 'EmitSceneNode', - 'ErcegCouplingNode', - 'Filter', - 'FiveGChannelModel', - 'HataCouplingNode', - 'IndoorPropagationCouplingNode', - 'Isolator', - 'LogDistanceCouplingNode', - 'MPlexBandTraceNode', - 'Multiplexer', - 'MultiplexerBand', - 'OutboardTraceNode', - 'ParametricCouplingTraceNode', - 'PlotMarkerNode', - 'PlotNode', - 'PowerDivider', - 'PowerTraceNode', - 'ProfileTraceNode', - 'PropagationLossCouplingNode', - 'RadioNode', - 'ResultPlotNode', - 'RfSystemGroup', - 'RxMeasNode', - 'RxMixerProductNode', - 'RxSaturationNode', - 'RxSelectivityNode', - 'RxSpurNode', - 'RxSusceptibilityProfNode', - 'SamplingNode', - 'SceneGroupNode', - 'SelectivityTraceNode', - 'SolutionCouplingNode', - 'SolutionsNode', - 'SpurTraceNode', - 'TR_Switch', - 'TRSwitchTraceNode', - 'Terminator', - 'TestNoiseTraceNode', - 'TopLevelSimulation', - 'TouchstoneCouplingNode', - 'TunableTraceNode', - 'TwoRayPathLossCouplingNode', - 'TwoToneTraceNode', - 'TxBbEmissionNode', - 'TxHarmonicNode', - 'TxMeasNode', - 'TxNbEmissionNode', - 'TxSpectralProfEmitterNode', - 'TxSpectralProfNode', - 'TxSpurNode', - 'WalfischCouplingNode', - 'Waveform', - 'ReadOnlyAmplifier', - 'ReadOnlyAntennaNode', - 'ReadOnlyAntennaPassband', - 'ReadOnlyBand', - 'ReadOnlyBandFolder', - 'ReadOnlyCADNode', - 'ReadOnlyCable', - 'ReadOnlyCirculator', - 'ReadOnlyCouplingLinkNode', - 'ReadOnlyCouplingsNode', - 'ReadOnlyCustomCouplingNode', - 'ReadOnlyEmitSceneNode', - 'ReadOnlyErcegCouplingNode', - 'ReadOnlyFilter', - 'ReadOnlyFiveGChannelModel', - 'ReadOnlyHataCouplingNode', - 'ReadOnlyIndoorPropagationCouplingNode', - 'ReadOnlyIsolator', - 'ReadOnlyLogDistanceCouplingNode', - 'ReadOnlyMultiplexer', - 'ReadOnlyMultiplexerBand', - 'ReadOnlyPowerDivider', - 'ReadOnlyPropagationLossCouplingNode', - 'ReadOnlyRadioNode', - 'ReadOnlyRfSystemGroup', - 'ReadOnlyRxMeasNode', - 'ReadOnlyRxMixerProductNode', - 'ReadOnlyRxSaturationNode', - 'ReadOnlyRxSelectivityNode', - 'ReadOnlyRxSpurNode', - 'ReadOnlyRxSusceptibilityProfNode', - 'ReadOnlySamplingNode', - 'ReadOnlySceneGroupNode', - 'ReadOnlySolutionCouplingNode', - 'ReadOnlySolutionsNode', - 'ReadOnlyTR_Switch', - 'ReadOnlyTerminator', - 'ReadOnlyTouchstoneCouplingNode', - 'ReadOnlyTwoRayPathLossCouplingNode', - 'ReadOnlyTxBbEmissionNode', - 'ReadOnlyTxHarmonicNode', - 'ReadOnlyTxMeasNode', - 'ReadOnlyTxNbEmissionNode', - 'ReadOnlyTxSpectralProfEmitterNode', - 'ReadOnlyTxSpectralProfNode', - 'ReadOnlyTxSpurNode', - 'ReadOnlyWalfischCouplingNode', - 'ReadOnlyWaveform', + "Amplifier", + "AntennaNode", + "AntennaPassband", + "Band", + "BandFolder", + "BandTraceNode", + "CADNode", + "Cable", + "CategoriesViewNode", + "Circulator", + "CouplingLinkNode", + "CouplingTraceNode", + "CouplingsNode", + "CustomCouplingNode", + "EmiPlotMarkerNode", + "EmitSceneNode", + "ErcegCouplingNode", + "Filter", + "FiveGChannelModel", + "HataCouplingNode", + "IndoorPropagationCouplingNode", + "Isolator", + "LogDistanceCouplingNode", + "MPlexBandTraceNode", + "Multiplexer", + "MultiplexerBand", + "OutboardTraceNode", + "ParametricCouplingTraceNode", + "PlotMarkerNode", + "PlotNode", + "PowerDivider", + "PowerTraceNode", + "ProfileTraceNode", + "PropagationLossCouplingNode", + "RadioNode", + "ResultPlotNode", + "RfSystemGroup", + "RxMeasNode", + "RxMixerProductNode", + "RxSaturationNode", + "RxSelectivityNode", + "RxSpurNode", + "RxSusceptibilityProfNode", + "SamplingNode", + "SceneGroupNode", + "SelectivityTraceNode", + "SolutionCouplingNode", + "SolutionsNode", + "SpurTraceNode", + "TR_Switch", + "TRSwitchTraceNode", + "Terminator", + "TestNoiseTraceNode", + "TopLevelSimulation", + "TouchstoneCouplingNode", + "TunableTraceNode", + "TwoRayPathLossCouplingNode", + "TwoToneTraceNode", + "TxBbEmissionNode", + "TxHarmonicNode", + "TxMeasNode", + "TxNbEmissionNode", + "TxSpectralProfEmitterNode", + "TxSpectralProfNode", + "TxSpurNode", + "WalfischCouplingNode", + "Waveform", + "ReadOnlyAmplifier", + "ReadOnlyAntennaNode", + "ReadOnlyAntennaPassband", + "ReadOnlyBand", + "ReadOnlyBandFolder", + "ReadOnlyCADNode", + "ReadOnlyCable", + "ReadOnlyCirculator", + "ReadOnlyCouplingLinkNode", + "ReadOnlyCouplingsNode", + "ReadOnlyCustomCouplingNode", + "ReadOnlyEmitSceneNode", + "ReadOnlyErcegCouplingNode", + "ReadOnlyFilter", + "ReadOnlyFiveGChannelModel", + "ReadOnlyHataCouplingNode", + "ReadOnlyIndoorPropagationCouplingNode", + "ReadOnlyIsolator", + "ReadOnlyLogDistanceCouplingNode", + "ReadOnlyMultiplexer", + "ReadOnlyMultiplexerBand", + "ReadOnlyPowerDivider", + "ReadOnlyPropagationLossCouplingNode", + "ReadOnlyRadioNode", + "ReadOnlyRfSystemGroup", + "ReadOnlyRxMeasNode", + "ReadOnlyRxMixerProductNode", + "ReadOnlyRxSaturationNode", + "ReadOnlyRxSelectivityNode", + "ReadOnlyRxSpurNode", + "ReadOnlyRxSusceptibilityProfNode", + "ReadOnlySamplingNode", + "ReadOnlySceneGroupNode", + "ReadOnlySolutionCouplingNode", + "ReadOnlySolutionsNode", + "ReadOnlyTR_Switch", + "ReadOnlyTerminator", + "ReadOnlyTouchstoneCouplingNode", + "ReadOnlyTwoRayPathLossCouplingNode", + "ReadOnlyTxBbEmissionNode", + "ReadOnlyTxHarmonicNode", + "ReadOnlyTxMeasNode", + "ReadOnlyTxNbEmissionNode", + "ReadOnlyTxSpectralProfEmitterNode", + "ReadOnlyTxSpectralProfNode", + "ReadOnlyTxSpurNode", + "ReadOnlyWalfischCouplingNode", + "ReadOnlyWaveform", ] From 3a1485e96a3562a1411b759c278492344a4f4768 Mon Sep 17 00:00:00 2001 From: jsalant Date: Wed, 23 Apr 2025 16:20:20 -0400 Subject: [PATCH 41/86] fix method names fix a couple more dup method names add pyaedt copyright to auto-generated code --- .../emit_core/nodes/generated/Amplifier.py | 124 +++-- .../emit_core/nodes/generated/AntennaNode.py | 446 +++++++++++------- .../nodes/generated/AntennaPassband.py | 73 +-- .../core/emit_core/nodes/generated/Band.py | 300 +++++++----- .../emit_core/nodes/generated/BandFolder.py | 15 +- .../nodes/generated/BandTraceNode.py | 116 +++-- .../core/emit_core/nodes/generated/CADNode.py | 290 +++++++----- .../core/emit_core/nodes/generated/Cable.py | 90 ++-- .../nodes/generated/CategoriesViewNode.py | 15 +- .../emit_core/nodes/generated/Circulator.py | 126 +++-- .../nodes/generated/CouplingLinkNode.py | 29 +- .../nodes/generated/CouplingTraceNode.py | 160 ++++--- .../nodes/generated/CouplingsNode.py | 37 +- .../nodes/generated/CustomCouplingNode.py | 65 +-- .../nodes/generated/EmiPlotMarkerNode.py | 168 ++++--- .../nodes/generated/EmitSceneNode.py | 44 +- .../nodes/generated/ErcegCouplingNode.py | 178 ++++--- .../core/emit_core/nodes/generated/Filter.py | 206 ++++---- .../nodes/generated/FiveGChannelModel.py | 198 +++++--- .../nodes/generated/HataCouplingNode.py | 178 ++++--- .../IndoorPropagationCouplingNode.py | 192 +++++--- .../emit_core/nodes/generated/Isolator.py | 126 +++-- .../generated/LogDistanceCouplingNode.py | 186 +++++--- .../nodes/generated/MPlexBandTraceNode.py | 104 ++-- .../emit_core/nodes/generated/Multiplexer.py | 72 +-- .../nodes/generated/MultiplexerBand.py | 114 +++-- .../nodes/generated/OutboardTraceNode.py | 108 +++-- .../generated/ParametricCouplingTraceNode.py | 112 +++-- .../nodes/generated/PlotMarkerNode.py | 178 ++++--- .../emit_core/nodes/generated/PlotNode.py | 266 ++++++----- .../emit_core/nodes/generated/PowerDivider.py | 128 +++-- .../nodes/generated/PowerTraceNode.py | 104 ++-- .../nodes/generated/ProfileTraceNode.py | 96 ++-- .../generated/PropagationLossCouplingNode.py | 170 ++++--- .../emit_core/nodes/generated/RadioNode.py | 31 +- .../nodes/generated/ReadOnlyAmplifier.py | 48 +- .../nodes/generated/ReadOnlyAntennaNode.py | 190 ++++---- .../generated/ReadOnlyAntennaPassband.py | 31 +- .../emit_core/nodes/generated/ReadOnlyBand.py | 112 +++-- .../nodes/generated/ReadOnlyBandFolder.py | 15 +- .../nodes/generated/ReadOnlyCADNode.py | 110 +++-- .../nodes/generated/ReadOnlyCable.py | 42 +- .../nodes/generated/ReadOnlyCirculator.py | 54 +-- .../generated/ReadOnlyCouplingLinkNode.py | 21 +- .../nodes/generated/ReadOnlyCouplingsNode.py | 23 +- .../generated/ReadOnlyCustomCouplingNode.py | 39 +- .../nodes/generated/ReadOnlyEmitSceneNode.py | 28 +- .../generated/ReadOnlyErcegCouplingNode.py | 68 ++- .../nodes/generated/ReadOnlyFilter.py | 80 ++-- .../generated/ReadOnlyFiveGChannelModel.py | 76 ++- .../generated/ReadOnlyHataCouplingNode.py | 68 ++- .../ReadOnlyIndoorPropagationCouplingNode.py | 78 ++- .../nodes/generated/ReadOnlyIsolator.py | 54 +-- .../ReadOnlyLogDistanceCouplingNode.py | 70 ++- .../nodes/generated/ReadOnlyMultiplexer.py | 42 +- .../generated/ReadOnlyMultiplexerBand.py | 46 +- .../nodes/generated/ReadOnlyPowerDivider.py | 54 +-- .../ReadOnlyPropagationLossCouplingNode.py | 64 ++- .../nodes/generated/ReadOnlyRadioNode.py | 27 +- .../nodes/generated/ReadOnlyRfSystemGroup.py | 19 +- .../nodes/generated/ReadOnlyRxMeasNode.py | 64 ++- .../generated/ReadOnlyRxMixerProductNode.py | 58 ++- .../generated/ReadOnlyRxSaturationNode.py | 15 +- .../generated/ReadOnlyRxSelectivityNode.py | 17 +- .../nodes/generated/ReadOnlyRxSpurNode.py | 28 +- .../ReadOnlyRxSusceptibilityProfNode.py | 54 +-- .../nodes/generated/ReadOnlySamplingNode.py | 46 +- .../nodes/generated/ReadOnlySceneGroupNode.py | 38 +- .../generated/ReadOnlySolutionCouplingNode.py | 25 +- .../nodes/generated/ReadOnlySolutionsNode.py | 17 +- .../nodes/generated/ReadOnlyTR_Switch.py | 50 +- .../nodes/generated/ReadOnlyTerminator.py | 38 +- .../ReadOnlyTouchstoneCouplingNode.py | 41 +- .../ReadOnlyTwoRayPathLossCouplingNode.py | 68 ++- .../generated/ReadOnlyTxBbEmissionNode.py | 26 +- .../nodes/generated/ReadOnlyTxHarmonicNode.py | 20 +- .../nodes/generated/ReadOnlyTxMeasNode.py | 31 +- .../generated/ReadOnlyTxNbEmissionNode.py | 24 +- .../ReadOnlyTxSpectralProfEmitterNode.py | 41 +- .../generated/ReadOnlyTxSpectralProfNode.py | 70 ++- .../nodes/generated/ReadOnlyTxSpurNode.py | 28 +- .../generated/ReadOnlyWalfischCouplingNode.py | 80 ++-- .../nodes/generated/ReadOnlyWaveform.py | 86 ++-- .../nodes/generated/ResultPlotNode.py | 272 ++++++----- .../nodes/generated/RfSystemGroup.py | 29 +- .../emit_core/nodes/generated/RxMeasNode.py | 160 ++++--- .../nodes/generated/RxMixerProductNode.py | 154 +++--- .../nodes/generated/RxSaturationNode.py | 19 +- .../nodes/generated/RxSelectivityNode.py | 25 +- .../emit_core/nodes/generated/RxSpurNode.py | 36 +- .../generated/RxSusceptibilityProfNode.py | 140 +++--- .../emit_core/nodes/generated/SamplingNode.py | 70 +-- .../nodes/generated/SceneGroupNode.py | 76 +-- .../nodes/generated/SelectivityTraceNode.py | 96 ++-- .../nodes/generated/SolutionCouplingNode.py | 41 +- .../nodes/generated/SolutionsNode.py | 21 +- .../nodes/generated/SpurTraceNode.py | 108 +++-- .../nodes/generated/TRSwitchTraceNode.py | 108 +++-- .../emit_core/nodes/generated/TR_Switch.py | 124 +++-- .../emit_core/nodes/generated/Terminator.py | 66 +-- .../nodes/generated/TestNoiseTraceNode.py | 164 ++++--- .../nodes/generated/TopLevelSimulation.py | 15 +- .../nodes/generated/TouchstoneCouplingNode.py | 73 +-- .../nodes/generated/TunableTraceNode.py | 118 +++-- .../generated/TwoRayPathLossCouplingNode.py | 184 +++++--- .../nodes/generated/TwoToneTraceNode.py | 164 ++++--- .../nodes/generated/TxBbEmissionNode.py | 40 +- .../nodes/generated/TxHarmonicNode.py | 30 +- .../emit_core/nodes/generated/TxMeasNode.py | 55 ++- .../nodes/generated/TxNbEmissionNode.py | 40 +- .../generated/TxSpectralProfEmitterNode.py | 107 +++-- .../nodes/generated/TxSpectralProfNode.py | 200 ++++---- .../emit_core/nodes/generated/TxSpurNode.py | 36 +- .../nodes/generated/WalfischCouplingNode.py | 220 +++++---- .../emit_core/nodes/generated/Waveform.py | 230 +++++---- .../emit_core/nodes/generated/__init__.py | 318 ++++++------- 116 files changed, 6129 insertions(+), 4679 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index adcce524af1..5c6748d00fa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Amplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -51,11 +48,13 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -64,23 +63,27 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class AmplifierTypeOption(Enum): TRANSMIT_AMPLIFIER = "Transmit Amplifier" @@ -90,14 +93,16 @@ class AmplifierTypeOption(Enum): def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type "Configures the amplifier as a Tx or Rx amplifier." - " """ + " """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] - return val # type: ignore + return val # type: ignore @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Type={value.value}"]) @property def gain(self) -> float: @@ -106,11 +111,13 @@ def gain(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Gain") - return val # type: ignore + return val # type: ignore @gain.setter - def gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Gain={value}"]) + def gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Gain={value}"]) @property def center_frequency(self) -> float: @@ -120,12 +127,14 @@ def center_frequency(self) -> float: """ val = self._get_property("Center Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @center_frequency.setter - def center_frequency(self, value: float | str): + def center_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Center Frequency={value}"]) @property def bandwidth(self) -> float: @@ -135,12 +144,14 @@ def bandwidth(self) -> float: """ val = self._get_property("Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth.setter - def bandwidth(self, value: float | str): + def bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth={value}"]) @property def noise_figure(self) -> float: @@ -149,11 +160,13 @@ def noise_figure(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def saturation_level(self) -> float: @@ -163,12 +176,14 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @saturation_level.setter - def saturation_level(self, value: float | str): + def saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Saturation Level={value}"]) @property def p1_db_point_ref_input(self) -> float: @@ -178,12 +193,14 @@ def p1_db_point_ref_input(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value: float | str): + def p1_db_point_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input={value}"]) @property def ip3_ref_input(self) -> float: @@ -193,12 +210,14 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def shape_factor(self) -> float: @@ -207,11 +226,13 @@ def shape_factor(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @shape_factor.setter - def shape_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) + def shape_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Shape Factor={value}"]) @property def reverse_isolation(self) -> float: @@ -220,11 +241,13 @@ def reverse_isolation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -233,8 +256,11 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py index 57e6dd99f3c..9a3ba79056d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class AntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -57,13 +54,15 @@ def delete(self): def tags(self) -> str: """Tags "Space delimited list of tags for coupling selections." - " """ + " """ val = self._get_property("Tags") - return val # type: ignore + return val # type: ignore @tags.setter def tags(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tags={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tags={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -72,13 +71,13 @@ def show_relative_coordinates(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): @@ -87,11 +86,13 @@ def position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): @@ -100,11 +101,13 @@ def relative_position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -114,14 +117,16 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -130,11 +135,13 @@ def orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): @@ -143,11 +150,13 @@ def relative_orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def position_defined(self) -> bool: @@ -156,11 +165,13 @@ def position_defined(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Position Defined") - return val # type: ignore + return val # type: ignore @position_defined.setter def position_defined(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Defined={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position Defined={value}"]) @property def antenna_temperature(self) -> float: @@ -169,23 +180,27 @@ def antenna_temperature(self) -> float: "Value should be between 0 and 100000." """ val = self._get_property("Antenna Temperature") - return val # type: ignore + return val # type: ignore @antenna_temperature.setter - def antenna_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna Temperature={value}"]) + def antenna_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna Temperature={value}"]) @property def type(self): """Type "Defines the type of antenna." - " """ + " """ val = self._get_property("Type") - return val # type: ignore + return val # type: ignore @type.setter def type(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value}"]) @property def antenna_file(self) -> str: @@ -193,11 +208,13 @@ def antenna_file(self) -> str: "Value should be a full file path." """ val = self._get_property("Antenna File") - return val # type: ignore + return val # type: ignore @antenna_file.setter def antenna_file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna File={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna File={value}"]) @property def project_name(self) -> str: @@ -206,11 +223,13 @@ def project_name(self) -> str: "Value should be a full file path." """ val = self._get_property("Project Name") - return val # type: ignore + return val # type: ignore @project_name.setter def project_name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Project Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Project Name={value}"]) @property def peak_gain(self) -> float: @@ -219,11 +238,13 @@ def peak_gain(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Peak Gain") - return val # type: ignore + return val # type: ignore @peak_gain.setter - def peak_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Gain={value}"]) + def peak_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Peak Gain={value}"]) class BoresightOption(Enum): XAXIS = "+X Axis" @@ -234,14 +255,16 @@ class BoresightOption(Enum): def boresight(self) -> BoresightOption: """Boresight "Select peak beam direction in local coordinates." - " """ + " """ val = self._get_property("Boresight") val = self.BoresightOption[val] - return val # type: ignore + return val # type: ignore @boresight.setter def boresight(self, value: BoresightOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Boresight={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Boresight={value.value}"]) @property def vertical_beamwidth(self) -> float: @@ -250,11 +273,13 @@ def vertical_beamwidth(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("Vertical Beamwidth") - return val # type: ignore + return val # type: ignore @vertical_beamwidth.setter - def vertical_beamwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Beamwidth={value}"]) + def vertical_beamwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Beamwidth={value}"]) @property def horizontal_beamwidth(self) -> float: @@ -263,11 +288,13 @@ def horizontal_beamwidth(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("Horizontal Beamwidth") - return val # type: ignore + return val # type: ignore @horizontal_beamwidth.setter - def horizontal_beamwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Beamwidth={value}"]) + def horizontal_beamwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Beamwidth={value}"]) @property def extra_sidelobe(self) -> bool: @@ -276,11 +303,13 @@ def extra_sidelobe(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Extra Sidelobe") - return val # type: ignore + return val # type: ignore @extra_sidelobe.setter def extra_sidelobe(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Extra Sidelobe={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Extra Sidelobe={value}"]) @property def first_sidelobe_level(self) -> float: @@ -289,11 +318,13 @@ def first_sidelobe_level(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("First Sidelobe Level") - return val # type: ignore + return val # type: ignore @first_sidelobe_level.setter - def first_sidelobe_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Level={value}"]) + def first_sidelobe_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Level={value}"]) @property def first_sidelobe_vert_bw(self) -> float: @@ -302,11 +333,13 @@ def first_sidelobe_vert_bw(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("First Sidelobe Vert. BW") - return val # type: ignore + return val # type: ignore @first_sidelobe_vert_bw.setter - def first_sidelobe_vert_bw(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Vert. BW={value}"]) + def first_sidelobe_vert_bw(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Vert. BW={value}"]) @property def first_sidelobe_hor_bw(self) -> float: @@ -315,11 +348,13 @@ def first_sidelobe_hor_bw(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("First Sidelobe Hor. BW") - return val # type: ignore + return val # type: ignore @first_sidelobe_hor_bw.setter - def first_sidelobe_hor_bw(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Hor. BW={value}"]) + def first_sidelobe_hor_bw(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Hor. BW={value}"]) @property def outerbacklobe_level(self) -> float: @@ -328,11 +363,13 @@ def outerbacklobe_level(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Outer/Backlobe Level") - return val # type: ignore + return val # type: ignore @outerbacklobe_level.setter - def outerbacklobe_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Outer/Backlobe Level={value}"]) + def outerbacklobe_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Outer/Backlobe Level={value}"]) @property def resonant_frequency(self) -> float: @@ -342,12 +379,14 @@ def resonant_frequency(self) -> float: """ val = self._get_property("Resonant Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @resonant_frequency.setter - def resonant_frequency(self, value: float | str): + def resonant_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resonant Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Resonant Frequency={value}"]) @property def slot_length(self) -> float: @@ -357,12 +396,14 @@ def slot_length(self) -> float: """ val = self._get_property("Slot Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @slot_length.setter - def slot_length(self, value: float | str): + def slot_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Slot Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Slot Length={value}"]) @property def mouth_width(self) -> float: @@ -372,12 +413,14 @@ def mouth_width(self) -> float: """ val = self._get_property("Mouth Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_width.setter - def mouth_width(self, value: float | str): + def mouth_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Width={value}"]) @property def mouth_height(self) -> float: @@ -387,12 +430,14 @@ def mouth_height(self) -> float: """ val = self._get_property("Mouth Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_height.setter - def mouth_height(self, value: float | str): + def mouth_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Height={value}"]) @property def waveguide_width(self) -> float: @@ -402,12 +447,14 @@ def waveguide_width(self) -> float: """ val = self._get_property("Waveguide Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @waveguide_width.setter - def waveguide_width(self, value: float | str): + def waveguide_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveguide Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Waveguide Width={value}"]) @property def width_flare_half_angle(self) -> float: @@ -416,11 +463,13 @@ def width_flare_half_angle(self) -> float: "Value should be between 1 and 89.9." """ val = self._get_property("Width Flare Half-angle") - return val # type: ignore + return val # type: ignore @width_flare_half_angle.setter - def width_flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width Flare Half-angle={value}"]) + def width_flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Width Flare Half-angle={value}"]) @property def height_flare_half_angle(self) -> float: @@ -429,11 +478,13 @@ def height_flare_half_angle(self) -> float: "Value should be between 1 and 89.9." """ val = self._get_property("Height Flare Half-angle") - return val # type: ignore + return val # type: ignore @height_flare_half_angle.setter - def height_flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height Flare Half-angle={value}"]) + def height_flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Height Flare Half-angle={value}"]) @property def mouth_diameter(self) -> float: @@ -443,12 +494,14 @@ def mouth_diameter(self) -> float: """ val = self._get_property("Mouth Diameter") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_diameter.setter - def mouth_diameter(self, value: float | str): + def mouth_diameter(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Diameter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Diameter={value}"]) @property def flare_half_angle(self) -> float: @@ -457,11 +510,13 @@ def flare_half_angle(self) -> float: "Value should be between 1 and 89.9." """ val = self._get_property("Flare Half-angle") - return val # type: ignore + return val # type: ignore @flare_half_angle.setter - def flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flare Half-angle={value}"]) + def flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Flare Half-angle={value}"]) @property def vswr(self) -> float: @@ -470,11 +525,13 @@ def vswr(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @vswr.setter - def vswr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) + def vswr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"VSWR={value}"]) class AntennaPolarizationOption(Enum): VERTICAL = "Vertical" @@ -486,16 +543,16 @@ class AntennaPolarizationOption(Enum): def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] - return val # type: ignore + return val # type: ignore @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Antenna Polarization={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna Polarization={value.value}"]) class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" @@ -505,14 +562,16 @@ class CrossDipoleModeOption(Enum): def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode "Choose the Cross Dipole type." - " """ + " """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] - return val # type: ignore + return val # type: ignore @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Cross Dipole Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Cross Dipole Mode={value.value}"]) class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" @@ -522,16 +581,16 @@ class CrossDipolePolarizationOption(Enum): def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] - return val # type: ignore + return val # type: ignore @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Cross Dipole Polarization={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Cross Dipole Polarization={value.value}"]) @property def override_height(self) -> bool: @@ -540,11 +599,13 @@ def override_height(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Override Height") - return val # type: ignore + return val # type: ignore @override_height.setter def override_height(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Override Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Override Height={value}"]) @property def offset_height(self) -> float: @@ -554,12 +615,14 @@ def offset_height(self) -> float: """ val = self._get_property("Offset Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @offset_height.setter - def offset_height(self, value: float | str): + def offset_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Offset Height={value}"]) @property def auto_height_offset(self) -> bool: @@ -568,11 +631,13 @@ def auto_height_offset(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Auto Height Offset") - return val # type: ignore + return val # type: ignore @auto_height_offset.setter def auto_height_offset(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Auto Height Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Auto Height Offset={value}"]) @property def conform__adjust_antenna(self) -> bool: @@ -581,11 +646,13 @@ def conform__adjust_antenna(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Conform / Adjust Antenna") - return val # type: ignore + return val # type: ignore @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform / Adjust Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform / Adjust Antenna={value}"]) @property def element_offset(self): @@ -594,11 +661,13 @@ def element_offset(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Element Offset") - return val # type: ignore + return val # type: ignore @element_offset.setter def element_offset(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Element Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Element Offset={value}"]) class ConformtoPlatformOption(Enum): NONE = "None" @@ -609,16 +678,16 @@ class ConformtoPlatformOption(Enum): def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform "Select method of automated conforming applied after Element Offset." - " """ + " """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] - return val # type: ignore + return val # type: ignore @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Conform to Platform={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform to Platform={value.value}"]) class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" @@ -629,14 +698,16 @@ class ReferencePlaneOption(Enum): def reference_plane(self) -> ReferencePlaneOption: """Reference Plane "Select reference plane for determining original element heights." - " """ + " """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] - return val # type: ignore + return val # type: ignore @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reference Plane={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reference Plane={value.value}"]) @property def conform_element_orientation(self) -> bool: @@ -645,13 +716,13 @@ def conform_element_orientation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Conform Element Orientation") - return val # type: ignore + return val # type: ignore @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Conform Element Orientation={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform Element Orientation={value}"]) @property def show_axes(self) -> bool: @@ -660,11 +731,13 @@ def show_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def show_icon(self) -> bool: @@ -673,11 +746,13 @@ def show_icon(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Icon") - return val # type: ignore + return val # type: ignore @show_icon.setter def show_icon(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Icon={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Icon={value}"]) @property def size(self) -> float: @@ -686,11 +761,13 @@ def size(self) -> float: "Value should be between 0.001 and 1." """ val = self._get_property("Size") - return val # type: ignore + return val # type: ignore @size.setter - def size(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Size={value}"]) + def size(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Size={value}"]) @property def color(self): @@ -699,27 +776,29 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def el_sample_interval(self) -> float: """El Sample Interval "Space between elevation-angle samples of pattern." - " """ + " """ val = self._get_property("El Sample Interval") - return val # type: ignore + return val # type: ignore @property def az_sample_interval(self) -> float: """Az Sample Interval "Space between azimuth-angle samples of pattern." - " """ + " """ val = self._get_property("Az Sample Interval") - return val # type: ignore + return val # type: ignore @property def has_frequency_domain(self) -> bool: @@ -728,74 +807,74 @@ def has_frequency_domain(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Has Frequency Domain") - return val # type: ignore + return val # type: ignore @property def frequency_domain(self): """Frequency Domain "Frequency sample(s) defining antenna." - " """ + " """ val = self._get_property("Frequency Domain") - return val # type: ignore + return val # type: ignore @property def number_of_electric_sources(self) -> int: """Number of Electric Sources "Number of freestanding electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources "Number of freestanding magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources "Number of imaged, half-space radiating electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources "Number of imaged, half-space radiating magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def waveguide_height(self) -> float: """Waveguide Height "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." - " """ + " """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." - " """ + " """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." - " """ + " """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class SWEModeTruncationOption(Enum): DYNAMIC = "Dynamic" @@ -806,16 +885,16 @@ class SWEModeTruncationOption(Enum): def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation "Select the method for stability-enhancing truncation of spherical wave expansion terms." - " """ + " """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] - return val # type: ignore + return val # type: ignore @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"SWE Mode Truncation={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SWE Mode Truncation={value.value}"]) @property def max_n_index(self) -> int: @@ -824,23 +903,27 @@ def max_n_index(self) -> int: "Value should be greater than 1." """ val = self._get_property("Max N Index") - return val # type: ignore + return val # type: ignore @max_n_index.setter def max_n_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max N Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max N Index={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) @property def show_composite_passband(self) -> bool: @@ -849,11 +932,13 @@ def show_composite_passband(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Composite Passband") - return val # type: ignore + return val # type: ignore @show_composite_passband.setter def show_composite_passband(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Composite Passband={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Composite Passband={value}"]) @property def use_phase_center(self) -> bool: @@ -862,19 +947,21 @@ def use_phase_center(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Phase Center") - return val # type: ignore + return val # type: ignore @use_phase_center.setter def use_phase_center(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Phase Center={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Phase Center={value}"]) @property def coordinate_systems(self) -> str: """Coordinate Systems "Specifies the coordinate system for the phase center of this antenna." - " """ + " """ val = self._get_property("Coordinate Systems") - return val # type: ignore + return val # type: ignore @property def phasecenterposition(self): @@ -883,7 +970,7 @@ def phasecenterposition(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("PhaseCenterPosition") - return val # type: ignore + return val # type: ignore @property def phasecenterorientation(self): @@ -892,4 +979,5 @@ def phasecenterorientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("PhaseCenterOrientation") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py index 53ec055465e..08a40e0ba8e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class AntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,7 +48,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -63,11 +61,13 @@ def passband_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Passband Loss") - return val # type: ignore + return val # type: ignore @passband_loss.setter - def passband_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Passband Loss={value}"]) + def passband_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Passband Loss={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -76,11 +76,13 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out of Band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out of Band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out of Band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -90,12 +92,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -105,12 +109,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -120,12 +126,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -135,21 +143,26 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index e2e80df9244..2b26726460e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Band(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +37,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -50,13 +47,15 @@ def enabled(self, value: bool): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port={value}"]) @property def use_dd_1494_mode(self) -> bool: @@ -65,11 +64,13 @@ def use_dd_1494_mode(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use DD-1494 Mode") - return val # type: ignore + return val # type: ignore @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use DD-1494 Mode={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use DD-1494 Mode={value}"]) @property def use_emission_designator(self) -> bool: @@ -78,40 +79,44 @@ def use_emission_designator(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Emission Designator") - return val # type: ignore + return val # type: ignore @use_emission_designator.setter def use_emission_designator(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Emission Designator={value}"]) @property def emission_designator(self) -> str: """Emission Designator "Enter the Emission Designator to define the bandwidth and modulation." - " """ + " """ val = self._get_property("Emission Designator") - return val # type: ignore + return val # type: ignore @emission_designator.setter def emission_designator(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Emission Designator={value}"]) @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." - " """ + " """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def emit_modulation_type(self) -> str: """EMIT Modulation Type "Modulation based off the emission designator." - " """ + " """ val = self._get_property("EMIT Modulation Type") - return val # type: ignore + return val # type: ignore @property def override_emission_designator_bw(self) -> bool: @@ -120,13 +125,13 @@ def override_emission_designator_bw(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Override Emission Designator BW") - return val # type: ignore + return val # type: ignore @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Override Emission Designator BW={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Override Emission Designator BW={value}"]) @property def channel_bandwidth(self) -> float: @@ -136,12 +141,14 @@ def channel_bandwidth(self) -> float: """ val = self._get_property("Channel Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_bandwidth.setter - def channel_bandwidth(self, value: float | str): + def channel_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Bandwidth={value}"]) class ModulationOption(Enum): GENERIC = "Generic" @@ -160,14 +167,16 @@ class ModulationOption(Enum): def modulation(self) -> ModulationOption: """Modulation "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Modulation") val = self.ModulationOption[val] - return val # type: ignore + return val # type: ignore @modulation.setter def modulation(self, value: ModulationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation={value.value}"]) @property def max_modulating_freq(self) -> float: @@ -177,12 +186,14 @@ def max_modulating_freq(self) -> float: """ val = self._get_property("Max Modulating Freq.") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_modulating_freq.setter - def max_modulating_freq(self, value: float | str): + def max_modulating_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Modulating Freq.={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Modulating Freq.={value}"]) @property def modulation_index(self) -> float: @@ -191,11 +202,13 @@ def modulation_index(self) -> float: "Value should be between 0.01 and 1." """ val = self._get_property("Modulation Index") - return val # type: ignore + return val # type: ignore @modulation_index.setter - def modulation_index(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Index={value}"]) + def modulation_index(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation Index={value}"]) @property def freq_deviation(self) -> float: @@ -205,12 +218,14 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation.setter - def freq_deviation(self, value: float | str): + def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation={value}"]) @property def bit_rate(self) -> float: @@ -220,12 +235,14 @@ def bit_rate(self) -> float: """ val = self._get_property("Bit Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @bit_rate.setter - def bit_rate(self, value: float | str): + def bit_rate(self, value : float|str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bit Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bit Rate={value}"]) @property def sidelobes(self) -> int: @@ -234,26 +251,30 @@ def sidelobes(self) -> int: "Value should be greater than 0." """ val = self._get_property("Sidelobes") - return val # type: ignore + return val # type: ignore @sidelobes.setter def sidelobes(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sidelobes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sidelobes={value}"]) @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ val = self._get_property("Freq. Deviation ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation_.setter - def freq_deviation_(self, value: float | str): + def freq_deviation_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation ={value}"]) class PSKTypeOption(Enum): BPSK = "BPSK" @@ -267,14 +288,16 @@ class PSKTypeOption(Enum): def psk_type(self) -> PSKTypeOption: """PSK Type "PSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] - return val # type: ignore + return val # type: ignore @psk_type.setter def psk_type(self, value: PSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"PSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"PSK Type={value.value}"]) class FSKTypeOption(Enum): FSK_2 = "FSK-2" @@ -285,14 +308,16 @@ class FSKTypeOption(Enum): def fsk_type(self) -> FSKTypeOption: """FSK Type "FSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] - return val # type: ignore + return val # type: ignore @fsk_type.setter def fsk_type(self, value: FSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FSK Type={value.value}"]) class QAMTypeOption(Enum): QAM_4 = "QAM-4" @@ -305,14 +330,16 @@ class QAMTypeOption(Enum): def qam_type(self) -> QAMTypeOption: """QAM Type "QAM modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] - return val # type: ignore + return val # type: ignore @qam_type.setter def qam_type(self, value: QAMTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"QAM Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"QAM Type={value.value}"]) class APSKTypeOption(Enum): APSK_4 = "APSK-4" @@ -325,14 +352,16 @@ class APSKTypeOption(Enum): def apsk_type(self) -> APSKTypeOption: """APSK Type "APSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] - return val # type: ignore + return val # type: ignore @apsk_type.setter def apsk_type(self, value: APSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"APSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"APSK Type={value.value}"]) @property def start_frequency(self) -> float: @@ -342,12 +371,14 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -357,12 +388,14 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -372,12 +405,14 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_spacing.setter - def channel_spacing(self, value: float | str): + def channel_spacing(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Spacing={value}"]) @property def tx_offset(self) -> float: @@ -387,12 +422,14 @@ def tx_offset(self) -> float: """ val = self._get_property("Tx Offset") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @tx_offset.setter - def tx_offset(self, value: float | str): + def tx_offset(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Offset={value}"]) class RadarTypeOption(Enum): CW = "CW" @@ -405,14 +442,16 @@ class RadarTypeOption(Enum): def radar_type(self) -> RadarTypeOption: """Radar Type "Radar type: helps determine spectral profile." - " """ + " """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] - return val # type: ignore + return val # type: ignore @radar_type.setter def radar_type(self, value: RadarTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radar Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Radar Type={value.value}"]) @property def hopping_radar(self) -> bool: @@ -421,11 +460,13 @@ def hopping_radar(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Hopping Radar") - return val # type: ignore + return val # type: ignore @hopping_radar.setter def hopping_radar(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hopping Radar={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hopping Radar={value}"]) @property def post_october_2020_procurement(self) -> bool: @@ -434,13 +475,13 @@ def post_october_2020_procurement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Post October 2020 Procurement") - return val # type: ignore + return val # type: ignore @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Post October 2020 Procurement={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Post October 2020 Procurement={value}"]) @property def hop_range_min_freq(self) -> float: @@ -450,12 +491,14 @@ def hop_range_min_freq(self) -> float: """ val = self._get_property("Hop Range Min Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @hop_range_min_freq.setter - def hop_range_min_freq(self, value: float | str): + def hop_range_min_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Min Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hop Range Min Freq={value}"]) @property def hop_range_max_freq(self) -> float: @@ -465,12 +508,14 @@ def hop_range_max_freq(self) -> float: """ val = self._get_property("Hop Range Max Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @hop_range_max_freq.setter - def hop_range_max_freq(self, value: float | str): + def hop_range_max_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Max Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hop Range Max Freq={value}"]) @property def pulse_duration(self) -> float: @@ -480,12 +525,14 @@ def pulse_duration(self) -> float: """ val = self._get_property("Pulse Duration") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_duration.setter - def pulse_duration(self, value: float | str): + def pulse_duration(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Duration={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Duration={value}"]) @property def pulse_rise_time(self) -> float: @@ -495,12 +542,14 @@ def pulse_rise_time(self) -> float: """ val = self._get_property("Pulse Rise Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_rise_time.setter - def pulse_rise_time(self, value: float | str): + def pulse_rise_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Rise Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Rise Time={value}"]) @property def pulse_fall_time(self) -> float: @@ -510,12 +559,14 @@ def pulse_fall_time(self) -> float: """ val = self._get_property("Pulse Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_fall_time.setter - def pulse_fall_time(self, value: float | str): + def pulse_fall_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Fall Time={value}"]) @property def pulse_repetition_rate(self) -> float: @@ -524,11 +575,13 @@ def pulse_repetition_rate(self) -> float: "Value should be greater than 1." """ val = self._get_property("Pulse Repetition Rate") - return val # type: ignore + return val # type: ignore @pulse_repetition_rate.setter - def pulse_repetition_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Repetition Rate={value}"]) + def pulse_repetition_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Repetition Rate={value}"]) @property def number_of_chips(self) -> float: @@ -537,11 +590,13 @@ def number_of_chips(self) -> float: "Value should be greater than 1." """ val = self._get_property("Number of Chips") - return val # type: ignore + return val # type: ignore @number_of_chips.setter - def number_of_chips(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Chips={value}"]) + def number_of_chips(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Chips={value}"]) @property def pulse_compression_ratio(self) -> float: @@ -550,11 +605,13 @@ def pulse_compression_ratio(self) -> float: "Value should be greater than 1." """ val = self._get_property("Pulse Compression Ratio") - return val # type: ignore + return val # type: ignore @pulse_compression_ratio.setter - def pulse_compression_ratio(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Compression Ratio={value}"]) + def pulse_compression_ratio(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Compression Ratio={value}"]) @property def fm_chirp_period(self) -> float: @@ -564,12 +621,14 @@ def fm_chirp_period(self) -> float: """ val = self._get_property("FM Chirp Period") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @fm_chirp_period.setter - def fm_chirp_period(self, value: float | str): + def fm_chirp_period(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Chirp Period={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Chirp Period={value}"]) @property def fm_freq_deviation(self) -> float: @@ -579,12 +638,14 @@ def fm_freq_deviation(self) -> float: """ val = self._get_property("FM Freq Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @fm_freq_deviation.setter - def fm_freq_deviation(self, value: float | str): + def fm_freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Freq Deviation={value}"]) @property def fm_freq_dev_bandwidth(self) -> float: @@ -594,9 +655,12 @@ def fm_freq_dev_bandwidth(self) -> float: """ val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value: float | str): + def fm_freq_dev_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Dev Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Freq Dev Bandwidth={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py index e173c1d3913..65242e7c8a1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class BandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,3 +48,4 @@ def duplicate(self, new_name): def delete(self): """Delete this node""" self._delete() + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py index 05eeafc2527..02dda36abc2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class BandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,13 +50,15 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) class TxorRxOption(Enum): TX = "Tx" @@ -69,35 +68,39 @@ class TxorRxOption(Enum): def tx_or_rx(self) -> TxorRxOption: """Tx or Rx "Specifies whether the trace is a Tx or Rx channel." - " """ + " """ val = self._get_property("Tx or Rx") val = self.TxorRxOption[val] - return val # type: ignore + return val # type: ignore @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx or Rx={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx or Rx={value.value}"]) @property def channel_frequency(self): """Channel Frequency "Select band channel frequency to display." - " """ + " """ val = self._get_property("Channel Frequency") - return val # type: ignore + return val # type: ignore @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def visible(self) -> bool: @@ -106,11 +109,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -119,23 +124,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -149,14 +158,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -165,11 +176,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -178,11 +191,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -205,14 +220,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -221,11 +238,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -234,11 +253,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -247,11 +268,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -260,8 +283,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py index 7f6c9e24351..d026d15e3ba 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class CADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,7 +53,7 @@ def file(self) -> str: "Value should be a full file path." """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore class ModelTypeOption(Enum): PLATE = "Plate" @@ -78,14 +75,16 @@ class ModelTypeOption(Enum): def model_type(self) -> ModelTypeOption: """Model Type "Select type of parametric model to create." - " """ + " """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] - return val # type: ignore + return val # type: ignore @model_type.setter def model_type(self, value: ModelTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Model Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Model Type={value.value}"]) @property def length(self) -> float: @@ -95,12 +94,14 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @length.setter - def length(self, value: float | str): + def length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Length={value}"]) @property def width(self) -> float: @@ -110,12 +111,14 @@ def width(self) -> float: """ val = self._get_property("Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @width.setter - def width(self, value: float | str): + def width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Width={value}"]) @property def height(self) -> float: @@ -125,12 +128,14 @@ def height(self) -> float: """ val = self._get_property("Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @height.setter - def height(self, value: float | str): + def height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Height={value}"]) @property def angle(self) -> float: @@ -139,11 +144,13 @@ def angle(self) -> float: "Value should be between 0 and 360." """ val = self._get_property("Angle") - return val # type: ignore + return val # type: ignore @angle.setter - def angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Angle={value}"]) + def angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Angle={value}"]) @property def top_side(self) -> float: @@ -153,12 +160,14 @@ def top_side(self) -> float: """ val = self._get_property("Top Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @top_side.setter - def top_side(self, value: float | str): + def top_side(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Top Side={value}"]) @property def top_radius(self) -> float: @@ -168,12 +177,14 @@ def top_radius(self) -> float: """ val = self._get_property("Top Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @top_radius.setter - def top_radius(self, value: float | str): + def top_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Top Radius={value}"]) @property def side(self) -> float: @@ -183,12 +194,14 @@ def side(self) -> float: """ val = self._get_property("Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @side.setter - def side(self, value: float | str): + def side(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Side={value}"]) @property def radius(self) -> float: @@ -198,12 +211,14 @@ def radius(self) -> float: """ val = self._get_property("Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @radius.setter - def radius(self, value: float | str): + def radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Radius={value}"]) @property def base_radius(self) -> float: @@ -213,12 +228,14 @@ def base_radius(self) -> float: """ val = self._get_property("Base Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @base_radius.setter - def base_radius(self, value: float | str): + def base_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Radius={value}"]) @property def center_radius(self) -> float: @@ -228,12 +245,14 @@ def center_radius(self) -> float: """ val = self._get_property("Center Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @center_radius.setter - def center_radius(self, value: float | str): + def center_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Center Radius={value}"]) @property def x_axis_ellipsoid_radius(self) -> float: @@ -243,12 +262,14 @@ def x_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("X Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value: float | str): + def x_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X Axis Ellipsoid Radius={value}"]) @property def y_axis_ellipsoid_radius(self) -> float: @@ -258,12 +279,14 @@ def y_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Y Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value: float | str): + def y_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y Axis Ellipsoid Radius={value}"]) @property def z_axis_ellipsoid_radius(self) -> float: @@ -273,12 +296,14 @@ def z_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Z Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value: float | str): + def z_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Z Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Z Axis Ellipsoid Radius={value}"]) @property def focal_length(self) -> float: @@ -288,26 +313,30 @@ def focal_length(self) -> float: """ val = self._get_property("Focal Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @focal_length.setter - def focal_length(self, value: float | str): + def focal_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Focal Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Focal Length={value}"]) @property def offset(self) -> float: """Offset "Offset of parabolic reflector." - " """ + " """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @offset.setter - def offset(self, value: float | str): + def offset(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Offset={value}"]) @property def x_direction_taper(self) -> float: @@ -316,11 +345,13 @@ def x_direction_taper(self) -> float: "Value should be greater than 0." """ val = self._get_property("X Direction Taper") - return val # type: ignore + return val # type: ignore @x_direction_taper.setter - def x_direction_taper(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Direction Taper={value}"]) + def x_direction_taper(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X Direction Taper={value}"]) @property def y_direction_taper(self) -> float: @@ -329,11 +360,13 @@ def y_direction_taper(self) -> float: "Value should be greater than 0." """ val = self._get_property("Y Direction Taper") - return val # type: ignore + return val # type: ignore @y_direction_taper.setter - def y_direction_taper(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Direction Taper={value}"]) + def y_direction_taper(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y Direction Taper={value}"]) @property def prism_direction(self): @@ -342,11 +375,13 @@ def prism_direction(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Prism Direction") - return val # type: ignore + return val # type: ignore @prism_direction.setter def prism_direction(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Prism Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Prism Direction={value}"]) @property def closed_top(self) -> bool: @@ -355,11 +390,13 @@ def closed_top(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Closed Top") - return val # type: ignore + return val # type: ignore @closed_top.setter def closed_top(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Top={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Closed Top={value}"]) @property def closed_base(self) -> bool: @@ -368,11 +405,13 @@ def closed_base(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Closed Base") - return val # type: ignore + return val # type: ignore @closed_base.setter def closed_base(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Base={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Closed Base={value}"]) @property def mesh_density(self) -> int: @@ -381,11 +420,13 @@ def mesh_density(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Mesh Density") - return val # type: ignore + return val # type: ignore @mesh_density.setter def mesh_density(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Density={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mesh Density={value}"]) @property def use_symmetric_mesh(self) -> bool: @@ -394,11 +435,13 @@ def use_symmetric_mesh(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Symmetric Mesh") - return val # type: ignore + return val # type: ignore @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Symmetric Mesh={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Symmetric Mesh={value}"]) class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -408,14 +451,16 @@ class MeshOptionOption(Enum): def mesh_option(self) -> MeshOptionOption: """Mesh Option "Select from different meshing options." - " """ + " """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] - return val # type: ignore + return val # type: ignore @mesh_option.setter def mesh_option(self, value: MeshOptionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Option={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mesh Option={value.value}"]) @property def coating_index(self) -> int: @@ -424,11 +469,13 @@ def coating_index(self) -> int: "Value should be between 0 and 100000." """ val = self._get_property("Coating Index") - return val # type: ignore + return val # type: ignore @coating_index.setter def coating_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Coating Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Coating Index={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -437,13 +484,13 @@ def show_relative_coordinates(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): @@ -452,11 +499,13 @@ def position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): @@ -465,11 +514,13 @@ def relative_position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -479,14 +530,16 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -495,11 +548,13 @@ def orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): @@ -508,11 +563,13 @@ def relative_orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def visible(self) -> bool: @@ -521,11 +578,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -537,14 +596,16 @@ class RenderModeOption(Enum): def render_mode(self) -> RenderModeOption: """Render Mode "Select drawing style for surfaces." - " """ + " """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] - return val # type: ignore + return val # type: ignore @render_mode.setter def render_mode(self, value: RenderModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Render Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Render Mode={value.value}"]) @property def show_axes(self) -> bool: @@ -553,11 +614,13 @@ def show_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def min(self): @@ -566,7 +629,7 @@ def min(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Min") - return val # type: ignore + return val # type: ignore @property def max(self): @@ -575,15 +638,15 @@ def max(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Max") - return val # type: ignore + return val # type: ignore @property def number_of_surfaces(self) -> int: """Number of Surfaces "Number of surfaces in the model." - " """ + " """ val = self._get_property("Number of Surfaces") - return val # type: ignore + return val # type: ignore @property def color(self): @@ -592,20 +655,25 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index 722c57f550e..b73627f525c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Cable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -51,11 +48,13 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -64,23 +63,27 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -91,14 +94,16 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def length(self) -> float: @@ -108,12 +113,14 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @length.setter - def length(self, value: float | str): + def length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Length={value}"]) @property def loss_per_length(self) -> float: @@ -122,11 +129,13 @@ def loss_per_length(self) -> float: "Value should be between 0 and 20." """ val = self._get_property("Loss Per Length") - return val # type: ignore + return val # type: ignore @loss_per_length.setter - def loss_per_length(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Loss Per Length={value}"]) + def loss_per_length(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Loss Per Length={value}"]) @property def measurement_length(self) -> float: @@ -136,12 +145,14 @@ def measurement_length(self) -> float: """ val = self._get_property("Measurement Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @measurement_length.setter - def measurement_length(self, value: float | str): + def measurement_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Length={value}"]) @property def resistive_loss_constant(self) -> float: @@ -150,11 +161,13 @@ def resistive_loss_constant(self) -> float: "Value should be between 0 and 2." """ val = self._get_property("Resistive Loss Constant") - return val # type: ignore + return val # type: ignore @resistive_loss_constant.setter - def resistive_loss_constant(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resistive Loss Constant={value}"]) + def resistive_loss_constant(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Resistive Loss Constant={value}"]) @property def dielectric_loss_constant(self) -> float: @@ -163,16 +176,19 @@ def dielectric_loss_constant(self) -> float: "Value should be between 0 and 1." """ val = self._get_property("Dielectric Loss Constant") - return val # type: ignore + return val # type: ignore @dielectric_loss_constant.setter - def dielectric_loss_constant(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Dielectric Loss Constant={value}"]) + def dielectric_loss_constant(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Dielectric Loss Constant={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py index 7d77e3d1184..30d3308da3a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py @@ -1,31 +1,30 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class CategoriesViewNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index cb1aa73a4ad..d12b98db419 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Circulator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -51,11 +48,13 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -64,23 +63,27 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -90,14 +93,16 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -107,14 +112,16 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the circulator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -123,11 +130,13 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -136,11 +145,13 @@ def finite_reverse_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -149,11 +160,13 @@ def reverse_isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -162,11 +175,13 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -175,11 +190,13 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -189,12 +206,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -204,12 +223,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -219,12 +240,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -234,17 +257,20 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py index 57a22b214b6..24ca7545abd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class CouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,21 +40,26 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def ports(self): """Ports "Maps each port in the link to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ports={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py index d79a96c6d73..75b43040b1b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class CouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,36 +49,42 @@ def delete(self): @property def transmitter(self) -> EmitNode: """Transmitter - " """ + " """ val = self._get_property("Transmitter") - return val # type: ignore + return val # type: ignore @transmitter.setter def transmitter(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Transmitter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Transmitter={value}"]) @property def receiver(self) -> EmitNode: """Receiver - " """ + " """ val = self._get_property("Receiver") - return val # type: ignore + return val # type: ignore @receiver.setter def receiver(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Receiver={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -90,11 +93,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -103,23 +108,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -133,14 +142,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -149,11 +160,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -162,11 +175,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -189,14 +204,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -205,11 +222,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -218,11 +237,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -231,11 +252,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -244,11 +267,13 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def highlight_regions(self) -> bool: @@ -257,11 +282,13 @@ def highlight_regions(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Highlight Regions") - return val # type: ignore + return val # type: ignore @highlight_regions.setter def highlight_regions(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highlight Regions={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Highlight Regions={value}"]) @property def show_region_labels(self) -> bool: @@ -270,11 +297,13 @@ def show_region_labels(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Region Labels") - return val # type: ignore + return val # type: ignore @show_region_labels.setter def show_region_labels(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Region Labels={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Region Labels={value}"]) @property def font(self): @@ -283,11 +312,13 @@ def font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): @@ -296,11 +327,13 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): @@ -309,11 +342,13 @@ def background_color(self): "Color should be in RGBA form: #AARRGGBB." """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: @@ -322,11 +357,13 @@ def border(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Border") - return val # type: ignore + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: @@ -335,11 +372,13 @@ def border_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): @@ -348,8 +387,11 @@ def border_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py index ee4f848f03f..bf286bdbda4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class CouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -32,7 +30,7 @@ def __init__(self, oDesign, result_id, node_id): def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" - return self._import(file_name, "TouchstoneCoupling") + return self._import(file_name,"TouchstoneCoupling") def add_custom_coupling(self): """Add a new node to define custom coupling between antennas""" @@ -77,11 +75,13 @@ def minimum_allowed_coupling(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Minimum Allowed Coupling") - return val # type: ignore + return val # type: ignore @minimum_allowed_coupling.setter - def minimum_allowed_coupling(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Allowed Coupling={value}"]) + def minimum_allowed_coupling(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minimum Allowed Coupling={value}"]) @property def global_default_coupling(self) -> float: @@ -90,16 +90,19 @@ def global_default_coupling(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Global Default Coupling") - return val # type: ignore + return val # type: ignore @global_default_coupling.setter - def global_default_coupling(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Global Default Coupling={value}"]) + def global_default_coupling(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Global Default Coupling={value}"]) @property def antenna_tags(self) -> str: """Antenna Tags "All tags currently used by all antennas in the project." - " """ + " """ val = self._get_property("Antenna Tags") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py index da3d9facb87..c15679cc0ec 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class CustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +35,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def rename(self, new_name): """Rename this node""" @@ -53,11 +51,11 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Value (dB): + "Value (dB): " Value should be between -1000 and 0." """ return self._get_table_data() @@ -73,35 +71,41 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -110,11 +114,13 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -123,20 +129,25 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py index 53aa4ace767..1924dba4672 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class EmiPlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,39 +53,43 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def attached(self): """Attached "Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False)." - " """ + " """ val = self._get_property("Attached") - return val # type: ignore + return val # type: ignore @attached.setter def attached(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Attached={value}"]) @property def position_x(self) -> float: """Position X "Position of the marker on the X-axis (frequency axis).." - " """ + " """ val = self._get_property("Position X") - return val # type: ignore + return val # type: ignore @property def position_y(self) -> float: """Position Y "Position of the marker on the Y-axis (result axis).." - " """ + " """ val = self._get_property("Position Y") - return val # type: ignore + return val # type: ignore @property def floating_label(self) -> bool: @@ -97,11 +98,13 @@ def floating_label(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Floating Label") - return val # type: ignore + return val # type: ignore @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -110,11 +113,13 @@ def position_from_left(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Position from Left") - return val # type: ignore + return val # type: ignore @position_from_left.setter - def position_from_left(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) + def position_from_left(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -123,23 +128,27 @@ def position_from_top(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Position from Top") - return val # type: ignore + return val # type: ignore @position_from_top.setter - def position_from_top(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) + def position_from_top(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Top={value}"]) @property def text(self) -> str: """Text "Set the text of the label." - " """ + " """ val = self._get_property("Text") - return val # type: ignore + return val # type: ignore @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -150,16 +159,16 @@ class HorizontalPositionOption(Enum): def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position "Specify horizontal position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] - return val # type: ignore + return val # type: ignore @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Horizontal Position={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Position={value.value}"]) class VerticalPositionOption(Enum): TOP = "Top" @@ -170,14 +179,16 @@ class VerticalPositionOption(Enum): def vertical_position(self) -> VerticalPositionOption: """Vertical Position "Specify vertical position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] - return val # type: ignore + return val # type: ignore @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -188,14 +199,16 @@ class TextAlignmentOption(Enum): def text_alignment(self) -> TextAlignmentOption: """Text Alignment "Specify justification applied to multi-line text." - " """ + " """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] - return val # type: ignore + return val # type: ignore @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text Alignment={value.value}"]) @property def font(self): @@ -204,11 +217,13 @@ def font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): @@ -217,11 +232,13 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): @@ -230,11 +247,13 @@ def background_color(self): "Color should be in RGBA form: #AARRGGBB." """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: @@ -243,11 +262,13 @@ def border(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Border") - return val # type: ignore + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: @@ -256,11 +277,13 @@ def border_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): @@ -269,11 +292,13 @@ def border_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -297,14 +322,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Specify symbol displayed next to the label." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -313,11 +340,13 @@ def arrow_direction(self) -> int: "Value should be between -360 and 360." """ val = self._get_property("Arrow Direction") - return val # type: ignore + return val # type: ignore @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -326,11 +355,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -339,11 +370,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -352,11 +385,13 @@ def line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -365,8 +400,11 @@ def filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Filled") - return val # type: ignore + return val # type: ignore @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py index d65786db548..bbca182ed09 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class EmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,13 +37,15 @@ def add_group(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class GroundPlaneNormalOption(Enum): X_AXIS = "X Axis" @@ -57,27 +56,30 @@ class GroundPlaneNormalOption(Enum): def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal "Specifies the axis of the normal to the ground plane." - " """ + " """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] - return val # type: ignore + return val # type: ignore @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ground Plane Normal={value.value}"]) @property def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." - " """ + " """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @gp_position_along_normal.setter - def gp_position_along_normal(self, value: float | str): + def gp_position_along_normal(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GP Position Along Normal={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"GP Position Along Normal={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py index 02b96d79fc5..52050671170 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,35 +53,41 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -93,11 +96,13 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -106,23 +111,27 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class TerrainCategoryOption(Enum): TYPE_A = "Type A" @@ -133,14 +142,16 @@ class TerrainCategoryOption(Enum): def terrain_category(self) -> TerrainCategoryOption: """Terrain Category "Specify the terrain category type for the Erceg model." - " """ + " """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] - return val # type: ignore + return val # type: ignore @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Terrain Category={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Terrain Category={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -149,11 +160,13 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -162,11 +175,13 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -175,11 +190,13 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -191,14 +208,16 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -207,11 +226,13 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -220,11 +241,13 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -233,11 +256,13 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -246,11 +271,13 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -259,11 +286,13 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -272,11 +301,13 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -285,13 +316,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -300,11 +331,13 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -313,11 +346,13 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -326,10 +361,11 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index 46027623d0c..e97764d26f2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Filter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -51,11 +48,13 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -64,23 +63,27 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -95,14 +98,16 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def insertion_loss(self) -> float: @@ -111,11 +116,13 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -124,11 +131,13 @@ def stop_band_attenuation(self) -> float: "Value should be less than 200." """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @stop_band_attenuation.setter - def stop_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -138,12 +147,14 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_pass_band.setter - def max_pass_band(self, value: float | str): + def max_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -153,12 +164,14 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_stop_band.setter - def min_stop_band(self, value: float | str): + def min_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -168,12 +181,14 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_stop_band.setter - def max_stop_band(self, value: float | str): + def max_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -183,12 +198,14 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_pass_band.setter - def min_pass_band(self, value: float | str): + def min_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -198,12 +215,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -213,12 +232,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -228,12 +249,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -243,102 +266,116 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Lower Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff_.setter - def lower_cutoff_(self, value: float | str): + def lower_cutoff_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff ={value}"]) @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Lower Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band_.setter - def lower_stop_band_(self, value: float | str): + def lower_stop_band_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band ={value}"]) @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Higher Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band_.setter - def higher_stop_band_(self, value: float | str): + def higher_stop_band_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band ={value}"]) @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Higher Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff_.setter - def higher_cutoff_(self, value: float | str): + def higher_cutoff_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff ={value}"]) @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency "Lowest tuned frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Lowest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lowest_tuned_frequency_.setter - def lowest_tuned_frequency_(self, value: float | str): + def lowest_tuned_frequency_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lowest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lowest Tuned Frequency ={value}"]) @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency "Highest tuned frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Highest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @highest_tuned_frequency_.setter - def highest_tuned_frequency_(self, value: float | str): + def highest_tuned_frequency_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Highest Tuned Frequency ={value}"]) @property def percent_bandwidth(self) -> float: @@ -347,11 +384,13 @@ def percent_bandwidth(self) -> float: "Value should be between 0.001 and 100." """ val = self._get_property("Percent Bandwidth") - return val # type: ignore + return val # type: ignore @percent_bandwidth.setter - def percent_bandwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percent Bandwidth={value}"]) + def percent_bandwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Percent Bandwidth={value}"]) @property def shape_factor(self) -> float: @@ -360,16 +399,19 @@ def shape_factor(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @shape_factor.setter - def shape_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) + def shape_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Shape Factor={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py index ab929af5801..ff31d1fdbfb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class FiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,35 +53,41 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -93,11 +96,13 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -106,23 +111,27 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): URBAN_MICROCELL = "Urban Microcell" @@ -133,14 +142,16 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment for the 5G channel model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def los(self) -> bool: @@ -149,11 +160,13 @@ def los(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("LOS") - return val # type: ignore + return val # type: ignore @los.setter def los(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"LOS={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"LOS={value}"]) @property def include_bpl(self) -> bool: @@ -162,11 +175,13 @@ def include_bpl(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include BPL") - return val # type: ignore + return val # type: ignore @include_bpl.setter def include_bpl(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include BPL={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include BPL={value}"]) class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -176,14 +191,16 @@ class NYUBPLModelOption(Enum): def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model "Specify the NYU Building Penetration Loss model." - " """ + " """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] - return val # type: ignore + return val # type: ignore @nyu_bpl_model.setter def nyu_bpl_model(self, value: NYUBPLModelOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NYU BPL Model={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NYU BPL Model={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -192,11 +209,13 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -205,11 +224,13 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -218,11 +239,13 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -234,14 +257,16 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -250,11 +275,13 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -263,11 +290,13 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -276,11 +305,13 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -289,11 +320,13 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -302,11 +335,13 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -315,11 +350,13 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -328,13 +365,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -343,11 +380,13 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -356,11 +395,13 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -369,10 +410,11 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py index 723af28959d..52f4f653371 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class HataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,35 +53,41 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -93,11 +96,13 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -106,23 +111,27 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): LARGE_CITY = "Large City" @@ -134,14 +143,16 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Hata model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -150,11 +161,13 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -163,11 +176,13 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -176,11 +191,13 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -192,14 +209,16 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -208,11 +227,13 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -221,11 +242,13 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -234,11 +257,13 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -247,11 +272,13 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -260,11 +287,13 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -273,11 +302,13 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -286,13 +317,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -301,11 +332,13 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -314,11 +347,13 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -327,10 +362,11 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py index b117a8bc328..9aef514d294 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class IndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -51,13 +48,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Power Loss Coefficient: + "Power Loss Coefficient: " Value should be between 0 and 100." - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): " Value should be between 0 and 1000." """ return self._get_table_data() @@ -73,35 +70,41 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -110,11 +113,13 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -123,23 +128,27 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class BuildingTypeOption(Enum): RESIDENTIAL_APARTMENT = "Residential Apartment" @@ -152,14 +161,16 @@ class BuildingTypeOption(Enum): def building_type(self) -> BuildingTypeOption: """Building Type "Specify the building type for the Indoor Propagation model." - " """ + " """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] - return val # type: ignore + return val # type: ignore @building_type.setter def building_type(self, value: BuildingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Building Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Building Type={value.value}"]) @property def number_of_floors(self) -> int: @@ -168,11 +179,13 @@ def number_of_floors(self) -> int: "Value should be between 1 and 3." """ val = self._get_property("Number of Floors") - return val # type: ignore + return val # type: ignore @number_of_floors.setter def number_of_floors(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Floors={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Floors={value}"]) @property def custom_fading_margin(self) -> float: @@ -181,11 +194,13 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -194,11 +209,13 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -207,11 +224,13 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -223,14 +242,16 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -239,11 +260,13 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -252,11 +275,13 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -265,11 +290,13 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -278,11 +305,13 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -291,11 +320,13 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -304,11 +335,13 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -317,13 +350,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -332,11 +365,13 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -345,11 +380,13 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -358,10 +395,11 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index 6ded95e3e39..e9c6b5f075f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Isolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -51,11 +48,13 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -64,23 +63,27 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -90,14 +93,16 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -107,14 +112,16 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the isolator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -123,11 +130,13 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -136,11 +145,13 @@ def finite_reverse_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -149,11 +160,13 @@ def reverse_isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -162,11 +175,13 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -175,11 +190,13 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -189,12 +206,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -204,12 +223,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -219,12 +240,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -234,17 +257,20 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py index 7cda0255a91..155963d447c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class LogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,35 +53,41 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -93,11 +96,13 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -106,23 +111,27 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): FREE_SPACE = "Free Space" @@ -137,14 +146,16 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Log Distance model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def path_loss_exponent(self) -> float: @@ -153,11 +164,13 @@ def path_loss_exponent(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Path Loss Exponent") - return val # type: ignore + return val # type: ignore @path_loss_exponent.setter - def path_loss_exponent(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Exponent={value}"]) + def path_loss_exponent(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Path Loss Exponent={value}"]) @property def custom_fading_margin(self) -> float: @@ -166,11 +179,13 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -179,11 +194,13 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -192,11 +209,13 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -208,14 +227,16 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -224,11 +245,13 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -237,11 +260,13 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -250,11 +275,13 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -263,11 +290,13 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -276,11 +305,13 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -289,11 +320,13 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -302,13 +335,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -317,11 +350,13 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -330,11 +365,13 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -343,10 +380,11 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py index 70cec510d14..00ef73e1230 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class MPlexBandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -55,26 +52,30 @@ class PowerDirectionOption(Enum): @property def power_direction(self) -> PowerDirectionOption: """Power Direction - " """ + " """ val = self._get_property("Power Direction") val = self.PowerDirectionOption[val] - return val # type: ignore + return val # type: ignore @power_direction.setter def power_direction(self, value: PowerDirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Power Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Power Direction={value.value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -83,11 +84,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -96,23 +99,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -126,14 +133,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -142,11 +151,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -155,11 +166,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -182,14 +195,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -198,11 +213,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -211,11 +228,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -224,11 +243,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -237,8 +258,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index bb2ab262e5a..c658119455b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Multiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -55,11 +52,13 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,23 +67,27 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_PASS_BAND = "By Pass Band" @@ -94,14 +97,16 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -111,14 +116,16 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the multiplexer.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def flip_ports_vertically(self) -> bool: @@ -127,29 +134,34 @@ def flip_ports_vertically(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Flip Ports Vertically") - return val # type: ignore + return val # type: ignore @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flip Ports Vertically={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Flip Ports Vertically={value}"]) @property def ports(self): """Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ + " """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ports={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py index 4ef2d5f6b7f..1128e8a6a33 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class MultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -59,14 +56,16 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def filename(self) -> str: @@ -75,11 +74,13 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def insertion_loss(self) -> float: @@ -88,11 +89,13 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -101,11 +104,13 @@ def stop_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @stop_band_attenuation.setter - def stop_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -115,12 +120,14 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_pass_band.setter - def max_pass_band(self, value: float | str): + def max_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -130,12 +137,14 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_stop_band.setter - def min_stop_band(self, value: float | str): + def min_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -145,12 +154,14 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_stop_band.setter - def max_stop_band(self, value: float | str): + def max_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -160,12 +171,14 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_pass_band.setter - def min_pass_band(self, value: float | str): + def min_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -175,12 +188,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -190,12 +205,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -205,12 +222,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -220,17 +239,20 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py index 463bdc1d67e..a453a9a91fd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class OutboardTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,11 +53,13 @@ def input_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -69,23 +68,27 @@ def output_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -94,11 +97,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -107,23 +112,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -137,14 +146,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -153,11 +164,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -166,11 +179,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -193,14 +208,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -209,11 +226,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -222,11 +241,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -235,11 +256,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -248,8 +271,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py index 394562831e0..bc1d2446fbc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ParametricCouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,36 +49,42 @@ def delete(self): @property def antenna_a(self) -> EmitNode: """Antenna A - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -90,11 +93,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -103,23 +108,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -133,14 +142,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -149,11 +160,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -162,11 +175,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -189,14 +204,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -205,11 +222,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -218,11 +237,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -231,11 +252,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -244,8 +267,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py index 0538755e75b..efb4451ac13 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,11 +53,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def attached(self) -> bool: @@ -69,35 +68,41 @@ def attached(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Attached") - return val # type: ignore + return val # type: ignore @attached.setter def attached(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Attached={value}"]) @property def position_x(self) -> float: """Position X "Position of the marker on the X-axis (frequency axis).." - " """ + " """ val = self._get_property("Position X") - return val # type: ignore + return val # type: ignore @position_x.setter - def position_x(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position X={value}"]) + def position_x(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position X={value}"]) @property def position_y(self) -> float: """Position Y "Position of the marker on the Y-axis (result axis).." - " """ + " """ val = self._get_property("Position Y") - return val # type: ignore + return val # type: ignore @position_y.setter - def position_y(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Y={value}"]) + def position_y(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position Y={value}"]) @property def floating_label(self) -> bool: @@ -106,11 +111,13 @@ def floating_label(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Floating Label") - return val # type: ignore + return val # type: ignore @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -119,11 +126,13 @@ def position_from_left(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Position from Left") - return val # type: ignore + return val # type: ignore @position_from_left.setter - def position_from_left(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) + def position_from_left(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -132,23 +141,27 @@ def position_from_top(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Position from Top") - return val # type: ignore + return val # type: ignore @position_from_top.setter - def position_from_top(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) + def position_from_top(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Top={value}"]) @property def text(self) -> str: """Text "Set the text of the label." - " """ + " """ val = self._get_property("Text") - return val # type: ignore + return val # type: ignore @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -159,16 +172,16 @@ class HorizontalPositionOption(Enum): def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position "Specify horizontal position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] - return val # type: ignore + return val # type: ignore @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Horizontal Position={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Position={value.value}"]) class VerticalPositionOption(Enum): TOP = "Top" @@ -179,14 +192,16 @@ class VerticalPositionOption(Enum): def vertical_position(self) -> VerticalPositionOption: """Vertical Position "Specify vertical position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] - return val # type: ignore + return val # type: ignore @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -197,14 +212,16 @@ class TextAlignmentOption(Enum): def text_alignment(self) -> TextAlignmentOption: """Text Alignment "Specify justification applied to multi-line text." - " """ + " """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] - return val # type: ignore + return val # type: ignore @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text Alignment={value.value}"]) @property def font(self): @@ -213,11 +230,13 @@ def font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): @@ -226,11 +245,13 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): @@ -239,11 +260,13 @@ def background_color(self): "Color should be in RGBA form: #AARRGGBB." """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: @@ -252,11 +275,13 @@ def border(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Border") - return val # type: ignore + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: @@ -265,11 +290,13 @@ def border_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): @@ -278,11 +305,13 @@ def border_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -306,14 +335,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Specify symbol displayed next to the label." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -322,11 +353,13 @@ def arrow_direction(self) -> int: "Value should be between -360 and 360." """ val = self._get_property("Arrow Direction") - return val # type: ignore + return val # type: ignore @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -335,11 +368,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -348,11 +383,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -361,11 +398,13 @@ def line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -374,8 +413,11 @@ def filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Filled") - return val # type: ignore + return val # type: ignore @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py index 283c7c0bec7..c79237d1c7c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,13 +53,15 @@ def delete(self): def title(self) -> str: """Title "Enter title at the top of the plot, room will be made for it." - " """ + " """ val = self._get_property("Title") - return val # type: ignore + return val # type: ignore @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title={value}"]) @property def title_font(self): @@ -71,11 +70,13 @@ def title_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Title Font") - return val # type: ignore + return val # type: ignore @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -84,11 +85,13 @@ def show_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Legend") - return val # type: ignore + return val # type: ignore @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Legend={value}"]) @property def legend_font(self): @@ -97,11 +100,13 @@ def legend_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Legend Font") - return val # type: ignore + return val # type: ignore @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Legend Font={value}"]) @property def display_cad_overlay(self) -> bool: @@ -110,11 +115,13 @@ def display_cad_overlay(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Display CAD Overlay") - return val # type: ignore + return val # type: ignore @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -123,23 +130,27 @@ def opacity(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Opacity") - return val # type: ignore + return val # type: ignore @opacity.setter - def opacity(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) + def opacity(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset "Adjust vertical position of CAD model overlay." - " """ + " """ val = self._get_property("Vertical Offset") - return val # type: ignore + return val # type: ignore @vertical_offset.setter - def vertical_offset(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) + def vertical_offset(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -148,11 +159,13 @@ def range_axis_rotation(self) -> float: "Value should be between -180 and 180." """ val = self._get_property("Range Axis Rotation") - return val # type: ignore + return val # type: ignore @range_axis_rotation.setter - def range_axis_rotation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -161,59 +174,69 @@ def lock_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Lock Axes") - return val # type: ignore + return val # type: ignore @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min "Set lower extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Min") - return val # type: ignore + return val # type: ignore @x_axis_min.setter - def x_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) + def x_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max "Set upper extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Max") - return val # type: ignore + return val # type: ignore @x_axis_max.setter - def x_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) + def x_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min "Set lower extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Min") - return val # type: ignore + return val # type: ignore @y_axis_min.setter - def y_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) + def y_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max "Set upper extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Max") - return val # type: ignore + return val # type: ignore @y_axis_max.setter - def y_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) + def y_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -222,63 +245,73 @@ def y_axis_range(self) -> float: "Value should be greater than 0." """ val = self._get_property("Y-axis Range") - return val # type: ignore + return val # type: ignore @y_axis_range.setter - def y_axis_range(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) + def y_axis_range(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Range={value}"]) @property - def max_major_ticks(self) -> int: - """Max Major Ticks + def max_major_ticks_x(self) -> int: + """Max Major Ticks X "Set maximum number of major tick-mark intervals along horizontal axis." "Value should be between 1 and 30." """ - val = self._get_property("Max Major Ticks") - return val # type: ignore + val = self._get_property("Max Major Ticks X") + return val # type: ignore - @max_major_ticks.setter - def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks={value}"]) + @max_major_ticks_x.setter + def max_major_ticks_x(self, value: int): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks X={value}"]) @property - def max_minor_ticks(self) -> int: - """Max Minor Ticks + def max_minor_ticks_x(self) -> int: + """Max Minor Ticks X "Set maximum number of minor tick-mark intervals between major ticks along horizontal axis." "Value should be between 0 and 100." """ - val = self._get_property("Max Minor Ticks") - return val # type: ignore + val = self._get_property("Max Minor Ticks X") + return val # type: ignore - @max_minor_ticks.setter - def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks={value}"]) + @max_minor_ticks_x.setter + def max_minor_ticks_x(self, value: int): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks X={value}"]) @property - def max_major_ticks(self) -> int: - """Max Major Ticks + def max_major_ticks_y(self) -> int: + """Max Major Ticks Y "Set maximum number of major tick-mark intervals along vertical axis." "Value should be between 1 and 30." """ - val = self._get_property("Max Major Ticks") - return val # type: ignore + val = self._get_property("Max Major Ticks Y") + return val # type: ignore - @max_major_ticks.setter - def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks={value}"]) + @max_major_ticks_y.setter + def max_major_ticks_y(self, value: int): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks Y={value}"]) @property - def max_minor_ticks(self) -> int: - """Max Minor Ticks + def max_minor_ticks_y(self) -> int: + """Max Minor Ticks Y "Set maximum number of minor tick-mark intervals between major ticks along vertical axis." "Value should be between 0 and 100." """ - val = self._get_property("Max Minor Ticks") - return val # type: ignore + val = self._get_property("Max Minor Ticks Y") + return val # type: ignore - @max_minor_ticks.setter - def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks={value}"]) + @max_minor_ticks_y.setter + def max_minor_ticks_y(self, value: int): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -287,11 +320,13 @@ def axis_label_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Axis Label Font") - return val # type: ignore + return val # type: ignore @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -300,11 +335,13 @@ def axis_tick_label_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Axis Tick Label Font") - return val # type: ignore + return val # type: ignore @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -318,16 +355,16 @@ class MajorGridLineStyleOption(Enum): def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style "Select line style of major-tick grid lines." - " """ + " """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Line Style={value.value}"]) @property def major_grid_color(self): @@ -336,11 +373,13 @@ def major_grid_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Major Grid Color") - return val # type: ignore + return val # type: ignore @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -354,16 +393,16 @@ class MinorGridLineStyleOption(Enum): def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style "Select line style of minor-tick grid lines." - " """ + " """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Line Style={value.value}"]) @property def minor_grid_color(self): @@ -372,11 +411,13 @@ def minor_grid_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Minor Grid Color") - return val # type: ignore + return val # type: ignore @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -385,11 +426,13 @@ def background_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -401,16 +444,16 @@ class BBPowerforPlotsUnitOption(Enum): def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit "Units to use for plotting broadband power densities." - " """ + " """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] - return val # type: ignore + return val # type: ignore @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power for Plots Unit={value.value}"]) @property def bb_power_bandwidth(self) -> float: @@ -420,12 +463,14 @@ def bb_power_bandwidth(self) -> float: """ val = self._get_property("BB Power Bandwidth") val = self._convert_from_internal_units(float(val), "") - return val # type: ignore + return val # type: ignore @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value: float | str): + def bb_power_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -434,8 +479,11 @@ def log_scale(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Log Scale") - return val # type: ignore + return val # type: ignore @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Log Scale={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py index 2bae5c55802..42e38d66fba 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -51,11 +48,13 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -64,23 +63,27 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -91,14 +94,16 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class OrientationOption(Enum): DIVIDER = "Divider" @@ -108,14 +113,16 @@ class OrientationOption(Enum): def orientation(self) -> OrientationOption: """Orientation "Defines the orientation of the Power Divider.." - " """ + " """ val = self._get_property("Orientation") val = self.OrientationOption[val] - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value: OrientationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value.value}"]) @property def insertion_loss_above_ideal(self) -> float: @@ -124,13 +131,13 @@ def insertion_loss_above_ideal(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss Above Ideal") - return val # type: ignore + return val # type: ignore @insertion_loss_above_ideal.setter - def insertion_loss_above_ideal(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Insertion Loss Above Ideal={value}"] - ) + def insertion_loss_above_ideal(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss Above Ideal={value}"]) @property def finite_isolation(self) -> bool: @@ -139,11 +146,13 @@ def finite_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -152,11 +161,13 @@ def isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @isolation.setter - def isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) + def isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -165,11 +176,13 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -178,11 +191,13 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -192,12 +207,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -207,12 +224,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -222,12 +241,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -237,17 +258,20 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py index 75053721862..d7fc805b1ed 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PowerTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -57,26 +54,30 @@ class DirectionOption(Enum): def direction(self) -> DirectionOption: """Direction "Direction of power flow (towards or away from the transmitter) to plot." - " """ + " """ val = self._get_property("Direction") val = self.DirectionOption[val] - return val # type: ignore + return val # type: ignore @direction.setter def direction(self, value: DirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Direction={value.value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -85,11 +86,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -98,23 +101,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -128,14 +135,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -144,11 +153,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -157,11 +168,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -184,14 +197,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -200,11 +215,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -213,11 +230,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -226,11 +245,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -239,8 +260,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py index f197901d4b7..9b657eed74a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ProfileTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,13 +50,15 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -68,11 +67,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -81,23 +82,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -111,14 +116,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -127,11 +134,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -140,11 +149,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -167,14 +178,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -183,11 +196,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -196,11 +211,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -209,11 +226,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -222,8 +241,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py index 33c0d9696e0..bfbca72b70f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,35 +53,41 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -93,11 +96,13 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -106,23 +111,27 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def custom_fading_margin(self) -> float: @@ -131,11 +140,13 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -144,11 +155,13 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -157,11 +170,13 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -173,14 +188,16 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -189,11 +206,13 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -202,11 +221,13 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -215,11 +236,13 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -228,11 +251,13 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -241,11 +266,13 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -254,11 +281,13 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -267,13 +296,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -282,11 +311,13 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -295,11 +326,13 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -308,10 +341,11 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py index ca48e860816..cf8bf5b787a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class RadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,11 +51,11 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Name: - " "Type: - " """ + "Name: + " "Type: + " """ return self._get_table_data() @table_data.setter @@ -68,10 +66,13 @@ def table_data(self, value): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py index ff35477fc79..e8ee1ef23c6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyAmplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -39,7 +36,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -48,15 +45,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class AmplifierTypeOption(Enum): TRANSMIT_AMPLIFIER = "Transmit Amplifier" @@ -66,10 +63,10 @@ class AmplifierTypeOption(Enum): def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type "Configures the amplifier as a Tx or Rx amplifier." - " """ + " """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] - return val # type: ignore + return val # type: ignore @property def gain(self) -> float: @@ -78,7 +75,7 @@ def gain(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Gain") - return val # type: ignore + return val # type: ignore @property def center_frequency(self) -> float: @@ -88,7 +85,7 @@ def center_frequency(self) -> float: """ val = self._get_property("Center Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def bandwidth(self) -> float: @@ -98,7 +95,7 @@ def bandwidth(self) -> float: """ val = self._get_property("Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: @@ -107,7 +104,7 @@ def noise_figure(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def saturation_level(self) -> float: @@ -117,7 +114,7 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input(self) -> float: @@ -127,7 +124,7 @@ def p1_db_point_ref_input(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -137,7 +134,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def shape_factor(self) -> float: @@ -146,7 +143,7 @@ def shape_factor(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -155,7 +152,7 @@ def reverse_isolation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -164,4 +161,5 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py index fd36c686cac..8c422a0a67f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyAntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,9 +38,9 @@ def parent(self): def tags(self) -> str: """Tags "Space delimited list of tags for coupling selections." - " """ + " """ val = self._get_property("Tags") - return val # type: ignore + return val # type: ignore @property def show_relative_coordinates(self) -> bool: @@ -52,7 +49,7 @@ def show_relative_coordinates(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @property def position(self): @@ -61,7 +58,7 @@ def position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): @@ -70,7 +67,7 @@ def relative_position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -80,10 +77,10 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @property def orientation(self): @@ -92,7 +89,7 @@ def orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): @@ -101,7 +98,7 @@ def relative_orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def position_defined(self) -> bool: @@ -110,7 +107,7 @@ def position_defined(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Position Defined") - return val # type: ignore + return val # type: ignore @property def antenna_temperature(self) -> float: @@ -119,15 +116,15 @@ def antenna_temperature(self) -> float: "Value should be between 0 and 100000." """ val = self._get_property("Antenna Temperature") - return val # type: ignore + return val # type: ignore @property def type(self): """Type "Defines the type of antenna." - " """ + " """ val = self._get_property("Type") - return val # type: ignore + return val # type: ignore @property def antenna_file(self) -> str: @@ -135,7 +132,7 @@ def antenna_file(self) -> str: "Value should be a full file path." """ val = self._get_property("Antenna File") - return val # type: ignore + return val # type: ignore @property def project_name(self) -> str: @@ -144,7 +141,7 @@ def project_name(self) -> str: "Value should be a full file path." """ val = self._get_property("Project Name") - return val # type: ignore + return val # type: ignore @property def peak_gain(self) -> float: @@ -153,7 +150,7 @@ def peak_gain(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Peak Gain") - return val # type: ignore + return val # type: ignore class BoresightOption(Enum): XAXIS = "+X Axis" @@ -164,10 +161,10 @@ class BoresightOption(Enum): def boresight(self) -> BoresightOption: """Boresight "Select peak beam direction in local coordinates." - " """ + " """ val = self._get_property("Boresight") val = self.BoresightOption[val] - return val # type: ignore + return val # type: ignore @property def vertical_beamwidth(self) -> float: @@ -176,7 +173,7 @@ def vertical_beamwidth(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("Vertical Beamwidth") - return val # type: ignore + return val # type: ignore @property def horizontal_beamwidth(self) -> float: @@ -185,7 +182,7 @@ def horizontal_beamwidth(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("Horizontal Beamwidth") - return val # type: ignore + return val # type: ignore @property def extra_sidelobe(self) -> bool: @@ -194,7 +191,7 @@ def extra_sidelobe(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Extra Sidelobe") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_level(self) -> float: @@ -203,7 +200,7 @@ def first_sidelobe_level(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("First Sidelobe Level") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_vert_bw(self) -> float: @@ -212,7 +209,7 @@ def first_sidelobe_vert_bw(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("First Sidelobe Vert. BW") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_hor_bw(self) -> float: @@ -221,7 +218,7 @@ def first_sidelobe_hor_bw(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("First Sidelobe Hor. BW") - return val # type: ignore + return val # type: ignore @property def outerbacklobe_level(self) -> float: @@ -230,7 +227,7 @@ def outerbacklobe_level(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Outer/Backlobe Level") - return val # type: ignore + return val # type: ignore @property def resonant_frequency(self) -> float: @@ -240,7 +237,7 @@ def resonant_frequency(self) -> float: """ val = self._get_property("Resonant Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def slot_length(self) -> float: @@ -250,7 +247,7 @@ def slot_length(self) -> float: """ val = self._get_property("Slot Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def mouth_width(self) -> float: @@ -260,7 +257,7 @@ def mouth_width(self) -> float: """ val = self._get_property("Mouth Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def mouth_height(self) -> float: @@ -270,7 +267,7 @@ def mouth_height(self) -> float: """ val = self._get_property("Mouth Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_width(self) -> float: @@ -280,7 +277,7 @@ def waveguide_width(self) -> float: """ val = self._get_property("Waveguide Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def width_flare_half_angle(self) -> float: @@ -289,7 +286,7 @@ def width_flare_half_angle(self) -> float: "Value should be between 1 and 89.9." """ val = self._get_property("Width Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def height_flare_half_angle(self) -> float: @@ -298,7 +295,7 @@ def height_flare_half_angle(self) -> float: "Value should be between 1 and 89.9." """ val = self._get_property("Height Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def mouth_diameter(self) -> float: @@ -308,7 +305,7 @@ def mouth_diameter(self) -> float: """ val = self._get_property("Mouth Diameter") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def flare_half_angle(self) -> float: @@ -317,7 +314,7 @@ def flare_half_angle(self) -> float: "Value should be between 1 and 89.9." """ val = self._get_property("Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def vswr(self) -> float: @@ -326,7 +323,7 @@ def vswr(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore class AntennaPolarizationOption(Enum): VERTICAL = "Vertical" @@ -338,10 +335,10 @@ class AntennaPolarizationOption(Enum): def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] - return val # type: ignore + return val # type: ignore class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" @@ -351,10 +348,10 @@ class CrossDipoleModeOption(Enum): def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode "Choose the Cross Dipole type." - " """ + " """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] - return val # type: ignore + return val # type: ignore class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" @@ -364,10 +361,10 @@ class CrossDipolePolarizationOption(Enum): def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] - return val # type: ignore + return val # type: ignore @property def override_height(self) -> bool: @@ -376,7 +373,7 @@ def override_height(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Override Height") - return val # type: ignore + return val # type: ignore @property def offset_height(self) -> float: @@ -386,7 +383,7 @@ def offset_height(self) -> float: """ val = self._get_property("Offset Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def auto_height_offset(self) -> bool: @@ -395,7 +392,7 @@ def auto_height_offset(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Auto Height Offset") - return val # type: ignore + return val # type: ignore @property def conform__adjust_antenna(self) -> bool: @@ -404,7 +401,7 @@ def conform__adjust_antenna(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Conform / Adjust Antenna") - return val # type: ignore + return val # type: ignore @property def element_offset(self): @@ -413,7 +410,7 @@ def element_offset(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Element Offset") - return val # type: ignore + return val # type: ignore class ConformtoPlatformOption(Enum): NONE = "None" @@ -424,10 +421,10 @@ class ConformtoPlatformOption(Enum): def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform "Select method of automated conforming applied after Element Offset." - " """ + " """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] - return val # type: ignore + return val # type: ignore class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" @@ -438,10 +435,10 @@ class ReferencePlaneOption(Enum): def reference_plane(self) -> ReferencePlaneOption: """Reference Plane "Select reference plane for determining original element heights." - " """ + " """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] - return val # type: ignore + return val # type: ignore @property def conform_element_orientation(self) -> bool: @@ -450,7 +447,7 @@ def conform_element_orientation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Conform Element Orientation") - return val # type: ignore + return val # type: ignore @property def show_axes(self) -> bool: @@ -459,7 +456,7 @@ def show_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @property def show_icon(self) -> bool: @@ -468,7 +465,7 @@ def show_icon(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Icon") - return val # type: ignore + return val # type: ignore @property def size(self) -> float: @@ -477,7 +474,7 @@ def size(self) -> float: "Value should be between 0.001 and 1." """ val = self._get_property("Size") - return val # type: ignore + return val # type: ignore @property def color(self): @@ -486,23 +483,23 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @property def el_sample_interval(self) -> float: """El Sample Interval "Space between elevation-angle samples of pattern." - " """ + " """ val = self._get_property("El Sample Interval") - return val # type: ignore + return val # type: ignore @property def az_sample_interval(self) -> float: """Az Sample Interval "Space between azimuth-angle samples of pattern." - " """ + " """ val = self._get_property("Az Sample Interval") - return val # type: ignore + return val # type: ignore @property def has_frequency_domain(self) -> bool: @@ -511,74 +508,74 @@ def has_frequency_domain(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Has Frequency Domain") - return val # type: ignore + return val # type: ignore @property def frequency_domain(self): """Frequency Domain "Frequency sample(s) defining antenna." - " """ + " """ val = self._get_property("Frequency Domain") - return val # type: ignore + return val # type: ignore @property def number_of_electric_sources(self) -> int: """Number of Electric Sources "Number of freestanding electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources "Number of freestanding magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources "Number of imaged, half-space radiating electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources "Number of imaged, half-space radiating magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def waveguide_height(self) -> float: """Waveguide Height "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." - " """ + " """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." - " """ + " """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." - " """ + " """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class SWEModeTruncationOption(Enum): DYNAMIC = "Dynamic" @@ -589,10 +586,10 @@ class SWEModeTruncationOption(Enum): def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation "Select the method for stability-enhancing truncation of spherical wave expansion terms." - " """ + " """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] - return val # type: ignore + return val # type: ignore @property def max_n_index(self) -> int: @@ -601,15 +598,15 @@ def max_n_index(self) -> int: "Value should be greater than 1." """ val = self._get_property("Max N Index") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @property def show_composite_passband(self) -> bool: @@ -618,7 +615,7 @@ def show_composite_passband(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Composite Passband") - return val # type: ignore + return val # type: ignore @property def use_phase_center(self) -> bool: @@ -627,15 +624,15 @@ def use_phase_center(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Phase Center") - return val # type: ignore + return val # type: ignore @property def coordinate_systems(self) -> str: """Coordinate Systems "Specifies the coordinate system for the phase center of this antenna." - " """ + " """ val = self._get_property("Coordinate Systems") - return val # type: ignore + return val # type: ignore @property def phasecenterposition(self): @@ -644,7 +641,7 @@ def phasecenterposition(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("PhaseCenterPosition") - return val # type: ignore + return val # type: ignore @property def phasecenterorientation(self): @@ -653,4 +650,5 @@ def phasecenterorientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("PhaseCenterOrientation") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py index 67b97900535..31e7882a5a7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyAntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,7 +40,7 @@ def passband_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Passband Loss") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -51,7 +49,7 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out of Band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -61,7 +59,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -71,7 +69,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -81,7 +79,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -91,12 +89,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py index 23defb3b667..780bc87cad1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,9 +38,9 @@ def parent(self): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @property def use_dd_1494_mode(self) -> bool: @@ -52,7 +49,7 @@ def use_dd_1494_mode(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use DD-1494 Mode") - return val # type: ignore + return val # type: ignore @property def use_emission_designator(self) -> bool: @@ -61,32 +58,32 @@ def use_emission_designator(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Emission Designator") - return val # type: ignore + return val # type: ignore @property def emission_designator(self) -> str: """Emission Designator "Enter the Emission Designator to define the bandwidth and modulation." - " """ + " """ val = self._get_property("Emission Designator") - return val # type: ignore + return val # type: ignore @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." - " """ + " """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def emit_modulation_type(self) -> str: """EMIT Modulation Type "Modulation based off the emission designator." - " """ + " """ val = self._get_property("EMIT Modulation Type") - return val # type: ignore + return val # type: ignore @property def override_emission_designator_bw(self) -> bool: @@ -95,7 +92,7 @@ def override_emission_designator_bw(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Override Emission Designator BW") - return val # type: ignore + return val # type: ignore @property def channel_bandwidth(self) -> float: @@ -105,7 +102,7 @@ def channel_bandwidth(self) -> float: """ val = self._get_property("Channel Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class ModulationOption(Enum): GENERIC = "Generic" @@ -124,10 +121,10 @@ class ModulationOption(Enum): def modulation(self) -> ModulationOption: """Modulation "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Modulation") val = self.ModulationOption[val] - return val # type: ignore + return val # type: ignore @property def max_modulating_freq(self) -> float: @@ -137,7 +134,7 @@ def max_modulating_freq(self) -> float: """ val = self._get_property("Max Modulating Freq.") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def modulation_index(self) -> float: @@ -146,7 +143,7 @@ def modulation_index(self) -> float: "Value should be between 0.01 and 1." """ val = self._get_property("Modulation Index") - return val # type: ignore + return val # type: ignore @property def freq_deviation(self) -> float: @@ -156,7 +153,7 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def bit_rate(self) -> float: @@ -166,7 +163,7 @@ def bit_rate(self) -> float: """ val = self._get_property("Bit Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @property def sidelobes(self) -> int: @@ -175,17 +172,17 @@ def sidelobes(self) -> int: "Value should be greater than 0." """ val = self._get_property("Sidelobes") - return val # type: ignore + return val # type: ignore @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ val = self._get_property("Freq. Deviation ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class PSKTypeOption(Enum): BPSK = "BPSK" @@ -199,10 +196,10 @@ class PSKTypeOption(Enum): def psk_type(self) -> PSKTypeOption: """PSK Type "PSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] - return val # type: ignore + return val # type: ignore class FSKTypeOption(Enum): FSK_2 = "FSK-2" @@ -213,10 +210,10 @@ class FSKTypeOption(Enum): def fsk_type(self) -> FSKTypeOption: """FSK Type "FSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] - return val # type: ignore + return val # type: ignore class QAMTypeOption(Enum): QAM_4 = "QAM-4" @@ -229,10 +226,10 @@ class QAMTypeOption(Enum): def qam_type(self) -> QAMTypeOption: """QAM Type "QAM modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] - return val # type: ignore + return val # type: ignore class APSKTypeOption(Enum): APSK_4 = "APSK-4" @@ -245,10 +242,10 @@ class APSKTypeOption(Enum): def apsk_type(self) -> APSKTypeOption: """APSK Type "APSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -258,7 +255,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -268,7 +265,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def channel_spacing(self) -> float: @@ -278,7 +275,7 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def tx_offset(self) -> float: @@ -288,7 +285,7 @@ def tx_offset(self) -> float: """ val = self._get_property("Tx Offset") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class RadarTypeOption(Enum): CW = "CW" @@ -301,10 +298,10 @@ class RadarTypeOption(Enum): def radar_type(self) -> RadarTypeOption: """Radar Type "Radar type: helps determine spectral profile." - " """ + " """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] - return val # type: ignore + return val # type: ignore @property def hopping_radar(self) -> bool: @@ -313,7 +310,7 @@ def hopping_radar(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Hopping Radar") - return val # type: ignore + return val # type: ignore @property def post_october_2020_procurement(self) -> bool: @@ -322,7 +319,7 @@ def post_october_2020_procurement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Post October 2020 Procurement") - return val # type: ignore + return val # type: ignore @property def hop_range_min_freq(self) -> float: @@ -332,7 +329,7 @@ def hop_range_min_freq(self) -> float: """ val = self._get_property("Hop Range Min Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def hop_range_max_freq(self) -> float: @@ -342,7 +339,7 @@ def hop_range_max_freq(self) -> float: """ val = self._get_property("Hop Range Max Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def pulse_duration(self) -> float: @@ -352,7 +349,7 @@ def pulse_duration(self) -> float: """ val = self._get_property("Pulse Duration") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_rise_time(self) -> float: @@ -362,7 +359,7 @@ def pulse_rise_time(self) -> float: """ val = self._get_property("Pulse Rise Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_fall_time(self) -> float: @@ -372,7 +369,7 @@ def pulse_fall_time(self) -> float: """ val = self._get_property("Pulse Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_repetition_rate(self) -> float: @@ -381,7 +378,7 @@ def pulse_repetition_rate(self) -> float: "Value should be greater than 1." """ val = self._get_property("Pulse Repetition Rate") - return val # type: ignore + return val # type: ignore @property def number_of_chips(self) -> float: @@ -390,7 +387,7 @@ def number_of_chips(self) -> float: "Value should be greater than 1." """ val = self._get_property("Number of Chips") - return val # type: ignore + return val # type: ignore @property def pulse_compression_ratio(self) -> float: @@ -399,7 +396,7 @@ def pulse_compression_ratio(self) -> float: "Value should be greater than 1." """ val = self._get_property("Pulse Compression Ratio") - return val # type: ignore + return val # type: ignore @property def fm_chirp_period(self) -> float: @@ -409,7 +406,7 @@ def fm_chirp_period(self) -> float: """ val = self._get_property("FM Chirp Period") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def fm_freq_deviation(self) -> float: @@ -419,7 +416,7 @@ def fm_freq_deviation(self) -> float: """ val = self._get_property("FM Freq Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def fm_freq_dev_bandwidth(self) -> float: @@ -429,4 +426,5 @@ def fm_freq_dev_bandwidth(self) -> float: """ val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py index e504f8967e0..487a1d52c7c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyBandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -34,3 +32,4 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py index 6b15ef1d0e8..6b96bcfde68 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyCADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,7 +41,7 @@ def file(self) -> str: "Value should be a full file path." """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore class ModelTypeOption(Enum): PLATE = "Plate" @@ -66,10 +63,10 @@ class ModelTypeOption(Enum): def model_type(self) -> ModelTypeOption: """Model Type "Select type of parametric model to create." - " """ + " """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] - return val # type: ignore + return val # type: ignore @property def length(self) -> float: @@ -79,7 +76,7 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def width(self) -> float: @@ -89,7 +86,7 @@ def width(self) -> float: """ val = self._get_property("Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def height(self) -> float: @@ -99,7 +96,7 @@ def height(self) -> float: """ val = self._get_property("Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def angle(self) -> float: @@ -108,7 +105,7 @@ def angle(self) -> float: "Value should be between 0 and 360." """ val = self._get_property("Angle") - return val # type: ignore + return val # type: ignore @property def top_side(self) -> float: @@ -118,7 +115,7 @@ def top_side(self) -> float: """ val = self._get_property("Top Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def top_radius(self) -> float: @@ -128,7 +125,7 @@ def top_radius(self) -> float: """ val = self._get_property("Top Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def side(self) -> float: @@ -138,7 +135,7 @@ def side(self) -> float: """ val = self._get_property("Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def radius(self) -> float: @@ -148,7 +145,7 @@ def radius(self) -> float: """ val = self._get_property("Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def base_radius(self) -> float: @@ -158,7 +155,7 @@ def base_radius(self) -> float: """ val = self._get_property("Base Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def center_radius(self) -> float: @@ -168,7 +165,7 @@ def center_radius(self) -> float: """ val = self._get_property("Center Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def x_axis_ellipsoid_radius(self) -> float: @@ -178,7 +175,7 @@ def x_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("X Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def y_axis_ellipsoid_radius(self) -> float: @@ -188,7 +185,7 @@ def y_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Y Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def z_axis_ellipsoid_radius(self) -> float: @@ -198,7 +195,7 @@ def z_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Z Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def focal_length(self) -> float: @@ -208,16 +205,16 @@ def focal_length(self) -> float: """ val = self._get_property("Focal Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def offset(self) -> float: """Offset "Offset of parabolic reflector." - " """ + " """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def x_direction_taper(self) -> float: @@ -226,7 +223,7 @@ def x_direction_taper(self) -> float: "Value should be greater than 0." """ val = self._get_property("X Direction Taper") - return val # type: ignore + return val # type: ignore @property def y_direction_taper(self) -> float: @@ -235,7 +232,7 @@ def y_direction_taper(self) -> float: "Value should be greater than 0." """ val = self._get_property("Y Direction Taper") - return val # type: ignore + return val # type: ignore @property def prism_direction(self): @@ -244,7 +241,7 @@ def prism_direction(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Prism Direction") - return val # type: ignore + return val # type: ignore @property def closed_top(self) -> bool: @@ -253,7 +250,7 @@ def closed_top(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Closed Top") - return val # type: ignore + return val # type: ignore @property def closed_base(self) -> bool: @@ -262,7 +259,7 @@ def closed_base(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Closed Base") - return val # type: ignore + return val # type: ignore @property def mesh_density(self) -> int: @@ -271,7 +268,7 @@ def mesh_density(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Mesh Density") - return val # type: ignore + return val # type: ignore @property def use_symmetric_mesh(self) -> bool: @@ -280,7 +277,7 @@ def use_symmetric_mesh(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Symmetric Mesh") - return val # type: ignore + return val # type: ignore class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -290,10 +287,10 @@ class MeshOptionOption(Enum): def mesh_option(self) -> MeshOptionOption: """Mesh Option "Select from different meshing options." - " """ + " """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] - return val # type: ignore + return val # type: ignore @property def coating_index(self) -> int: @@ -302,7 +299,7 @@ def coating_index(self) -> int: "Value should be between 0 and 100000." """ val = self._get_property("Coating Index") - return val # type: ignore + return val # type: ignore @property def show_relative_coordinates(self) -> bool: @@ -311,7 +308,7 @@ def show_relative_coordinates(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @property def position(self): @@ -320,7 +317,7 @@ def position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): @@ -329,7 +326,7 @@ def relative_position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -339,10 +336,10 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @property def orientation(self): @@ -351,7 +348,7 @@ def orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): @@ -360,7 +357,7 @@ def relative_orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def visible(self) -> bool: @@ -369,7 +366,7 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -381,10 +378,10 @@ class RenderModeOption(Enum): def render_mode(self) -> RenderModeOption: """Render Mode "Select drawing style for surfaces." - " """ + " """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] - return val # type: ignore + return val # type: ignore @property def show_axes(self) -> bool: @@ -393,7 +390,7 @@ def show_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @property def min(self): @@ -402,7 +399,7 @@ def min(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Min") - return val # type: ignore + return val # type: ignore @property def max(self): @@ -411,15 +408,15 @@ def max(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Max") - return val # type: ignore + return val # type: ignore @property def number_of_surfaces(self) -> int: """Number of Surfaces "Number of surfaces in the model." - " """ + " """ val = self._get_property("Number of Surfaces") - return val # type: ignore + return val # type: ignore @property def color(self): @@ -428,12 +425,13 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py index 1969c0848f1..17cbe6366dd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyCable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -39,7 +36,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -48,15 +45,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -67,10 +64,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @property def length(self) -> float: @@ -80,7 +77,7 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def loss_per_length(self) -> float: @@ -89,7 +86,7 @@ def loss_per_length(self) -> float: "Value should be between 0 and 20." """ val = self._get_property("Loss Per Length") - return val # type: ignore + return val # type: ignore @property def measurement_length(self) -> float: @@ -99,7 +96,7 @@ def measurement_length(self) -> float: """ val = self._get_property("Measurement Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def resistive_loss_constant(self) -> float: @@ -108,7 +105,7 @@ def resistive_loss_constant(self) -> float: "Value should be between 0 and 2." """ val = self._get_property("Resistive Loss Constant") - return val # type: ignore + return val # type: ignore @property def dielectric_loss_constant(self) -> float: @@ -117,12 +114,13 @@ def dielectric_loss_constant(self) -> float: "Value should be between 0 and 1." """ val = self._get_property("Dielectric Loss Constant") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py index 6943479d600..b7d9a660aac 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyCirculator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -39,7 +36,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -48,15 +45,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -66,10 +63,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -79,10 +76,10 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the circulator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -91,7 +88,7 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_reverse_isolation(self) -> bool: @@ -100,7 +97,7 @@ def finite_reverse_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -109,7 +106,7 @@ def reverse_isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -118,7 +115,7 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -127,7 +124,7 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -137,7 +134,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -147,7 +144,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -157,7 +154,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -167,12 +164,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py index 03fbcc99af8..551d2318f2d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,13 +40,14 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def ports(self): """Ports "Maps each port in the link to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py index ff945ad77f8..f70613bcd14 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyCouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +35,7 @@ def minimum_allowed_coupling(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Minimum Allowed Coupling") - return val # type: ignore + return val # type: ignore @property def global_default_coupling(self) -> float: @@ -46,12 +44,13 @@ def global_default_coupling(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Global Default Coupling") - return val # type: ignore + return val # type: ignore @property def antenna_tags(self) -> str: """Antenna Tags "All tags currently used by all antennas in the project." - " """ + " """ val = self._get_property("Antenna Tags") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py index f4efec09751..92447fe9d09 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,11 +35,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Value (dB): + "Value (dB): " Value should be between -1000 and 0." """ return self._get_table_data() @@ -53,23 +51,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -78,7 +76,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -87,12 +85,13 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py index e1056069af4..7f4f4624f62 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,9 +33,9 @@ def __init__(self, oDesign, result_id, node_id): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class GroundPlaneNormalOption(Enum): X_AXIS = "X Axis" @@ -49,16 +46,17 @@ class GroundPlaneNormalOption(Enum): def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal "Specifies the axis of the normal to the ground plane." - " """ + " """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] - return val # type: ignore + return val # type: ignore @property def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." - " """ + " """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py index 0b3da28667e..a927bab4d59 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,23 +41,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -69,7 +66,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -78,15 +75,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class TerrainCategoryOption(Enum): TYPE_A = "Type A" @@ -97,10 +94,10 @@ class TerrainCategoryOption(Enum): def terrain_category(self) -> TerrainCategoryOption: """Terrain Category "Specify the terrain category type for the Erceg model." - " """ + " """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -109,7 +106,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -118,7 +115,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -127,7 +124,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -139,10 +136,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -151,7 +148,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -160,7 +157,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -169,7 +166,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -178,7 +175,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -187,7 +184,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -196,7 +193,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -205,7 +202,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -214,7 +211,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -223,7 +220,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -232,4 +229,5 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py index 10a1c44b0f6..39a5a05b12a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyFilter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -39,7 +36,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -48,15 +45,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -71,10 +68,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -83,7 +80,7 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def stop_band_attenuation(self) -> float: @@ -92,7 +89,7 @@ def stop_band_attenuation(self) -> float: "Value should be less than 200." """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @property def max_pass_band(self) -> float: @@ -102,7 +99,7 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_stop_band(self) -> float: @@ -112,7 +109,7 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def max_stop_band(self) -> float: @@ -122,7 +119,7 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_pass_band(self) -> float: @@ -132,7 +129,7 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -142,7 +139,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -152,7 +149,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -162,7 +159,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -172,67 +169,67 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Lower Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Lower Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Higher Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Higher Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency "Lowest tuned frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Lowest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency "Highest tuned frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Highest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def percent_bandwidth(self) -> float: @@ -241,7 +238,7 @@ def percent_bandwidth(self) -> float: "Value should be between 0.001 and 100." """ val = self._get_property("Percent Bandwidth") - return val # type: ignore + return val # type: ignore @property def shape_factor(self) -> float: @@ -250,12 +247,13 @@ def shape_factor(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py index 73cf07a6ab6..f3125610d48 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,23 +41,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -69,7 +66,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -78,15 +75,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): URBAN_MICROCELL = "Urban Microcell" @@ -97,10 +94,10 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment for the 5G channel model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def los(self) -> bool: @@ -109,7 +106,7 @@ def los(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("LOS") - return val # type: ignore + return val # type: ignore @property def include_bpl(self) -> bool: @@ -118,7 +115,7 @@ def include_bpl(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include BPL") - return val # type: ignore + return val # type: ignore class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -128,10 +125,10 @@ class NYUBPLModelOption(Enum): def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model "Specify the NYU Building Penetration Loss model." - " """ + " """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -140,7 +137,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -149,7 +146,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -158,7 +155,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -170,10 +167,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -182,7 +179,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -191,7 +188,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -200,7 +197,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -209,7 +206,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -218,7 +215,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -227,7 +224,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -236,7 +233,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -245,7 +242,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -254,7 +251,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -263,4 +260,5 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py index fc1e7ff1496..1cfa014a8dd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,23 +41,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -69,7 +66,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -78,15 +75,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): LARGE_CITY = "Large City" @@ -98,10 +95,10 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Hata model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -110,7 +107,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -119,7 +116,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -128,7 +125,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -140,10 +137,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -152,7 +149,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -161,7 +158,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -170,7 +167,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -179,7 +176,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -188,7 +185,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -197,7 +194,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -206,7 +203,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -215,7 +212,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -224,7 +221,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -233,4 +230,5 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py index bef763f7aad..90e86cf4cc0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,13 +36,13 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Power Loss Coefficient: + "Power Loss Coefficient: " Value should be between 0 and 100." - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): " Value should be between 0 and 1000." """ return self._get_table_data() @@ -57,23 +54,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -82,7 +79,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -91,15 +88,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class BuildingTypeOption(Enum): RESIDENTIAL_APARTMENT = "Residential Apartment" @@ -112,10 +109,10 @@ class BuildingTypeOption(Enum): def building_type(self) -> BuildingTypeOption: """Building Type "Specify the building type for the Indoor Propagation model." - " """ + " """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def number_of_floors(self) -> int: @@ -124,7 +121,7 @@ def number_of_floors(self) -> int: "Value should be between 1 and 3." """ val = self._get_property("Number of Floors") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -133,7 +130,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -142,7 +139,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -151,7 +148,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -163,10 +160,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -175,7 +172,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -184,7 +181,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -193,7 +190,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -202,7 +199,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -211,7 +208,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -220,7 +217,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -229,7 +226,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -238,7 +235,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -247,7 +244,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -256,4 +253,5 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py index f2c62339534..1adef98a9fe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyIsolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -39,7 +36,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -48,15 +45,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -66,10 +63,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -79,10 +76,10 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the isolator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -91,7 +88,7 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_reverse_isolation(self) -> bool: @@ -100,7 +97,7 @@ def finite_reverse_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -109,7 +106,7 @@ def reverse_isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -118,7 +115,7 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -127,7 +124,7 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -137,7 +134,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -147,7 +144,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -157,7 +154,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -167,12 +164,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py index 95d6ca9f848..80a5e4ba87b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,23 +41,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -69,7 +66,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -78,15 +75,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): FREE_SPACE = "Free Space" @@ -101,10 +98,10 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Log Distance model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def path_loss_exponent(self) -> float: @@ -113,7 +110,7 @@ def path_loss_exponent(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Path Loss Exponent") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -122,7 +119,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -131,7 +128,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -140,7 +137,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -152,10 +149,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -164,7 +161,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -173,7 +170,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -182,7 +179,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -191,7 +188,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -200,7 +197,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -209,7 +206,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -218,7 +215,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -227,7 +224,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -236,7 +233,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -245,4 +242,5 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py index db6ba80d356..d0b23aa3f65 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyMultiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -39,7 +36,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -48,15 +45,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_PASS_BAND = "By Pass Band" @@ -66,10 +63,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -79,10 +76,10 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the multiplexer.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @property def flip_ports_vertically(self) -> bool: @@ -91,21 +88,22 @@ def flip_ports_vertically(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Flip Ports Vertically") - return val # type: ignore + return val # type: ignore @property def ports(self): """Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ + " """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py index a4385132573..ccdfe442fd8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -47,10 +44,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @property def filename(self) -> str: @@ -59,7 +56,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -68,7 +65,7 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def stop_band_attenuation(self) -> float: @@ -77,7 +74,7 @@ def stop_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @property def max_pass_band(self) -> float: @@ -87,7 +84,7 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_stop_band(self) -> float: @@ -97,7 +94,7 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def max_stop_band(self) -> float: @@ -107,7 +104,7 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_pass_band(self) -> float: @@ -117,7 +114,7 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -127,7 +124,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -137,7 +134,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -147,7 +144,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -157,12 +154,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py index 8fc107f89f4..ddb09ebaf19 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyPowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -39,7 +36,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -48,15 +45,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -67,10 +64,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class OrientationOption(Enum): DIVIDER = "Divider" @@ -80,10 +77,10 @@ class OrientationOption(Enum): def orientation(self) -> OrientationOption: """Orientation "Defines the orientation of the Power Divider.." - " """ + " """ val = self._get_property("Orientation") val = self.OrientationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss_above_ideal(self) -> float: @@ -92,7 +89,7 @@ def insertion_loss_above_ideal(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss Above Ideal") - return val # type: ignore + return val # type: ignore @property def finite_isolation(self) -> bool: @@ -101,7 +98,7 @@ def finite_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @property def isolation(self) -> float: @@ -110,7 +107,7 @@ def isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -119,7 +116,7 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -128,7 +125,7 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -138,7 +135,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -148,7 +145,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -158,7 +155,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -168,12 +165,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py index 13cf5c19f43..d08da23fe00 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,23 +41,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -69,7 +66,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -78,15 +75,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -95,7 +92,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -104,7 +101,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -113,7 +110,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -125,10 +122,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -137,7 +134,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -146,7 +143,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -155,7 +152,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -164,7 +161,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -173,7 +170,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -182,7 +179,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -191,7 +188,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -200,7 +197,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -209,7 +206,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -218,4 +215,5 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py index 3f234537979..6a340d58f23 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyRadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,17 +35,18 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Name: - " "Type: - " """ + "Name: + " "Type: + " """ return self._get_table_data() @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py index cace4f652ba..e47f04c7a96 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyRfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,7 +40,7 @@ def enable_passive_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Passive Noise") - return val # type: ignore + return val # type: ignore @property def enforce_thermal_noise_floor(self) -> bool: @@ -51,4 +49,5 @@ def enforce_thermal_noise_floor(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enforce Thermal Noise Floor") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py index a63a0a43d62..deed1a2b5e7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyRxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,7 +41,7 @@ def file(self) -> str: "Value should be a full file path." """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -53,16 +50,16 @@ def source_file(self) -> str: "Value should be a full file path." """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class MeasurementModeOption(Enum): AUDIO_SINAD = "Audio SINAD" @@ -73,10 +70,10 @@ class MeasurementModeOption(Enum): def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode "Defines the mode for the receiver measurement." - " """ + " """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] - return val # type: ignore + return val # type: ignore @property def sinad_threshold(self) -> float: @@ -85,7 +82,7 @@ def sinad_threshold(self) -> float: "Value should be between 5 and 20." """ val = self._get_property("SINAD Threshold") - return val # type: ignore + return val # type: ignore @property def gps_cnr_threshold(self) -> float: @@ -94,7 +91,7 @@ def gps_cnr_threshold(self) -> float: "Value should be between 15 and 30." """ val = self._get_property("GPS CNR Threshold") - return val # type: ignore + return val # type: ignore @property def ber_threshold(self) -> float: @@ -103,7 +100,7 @@ def ber_threshold(self) -> float: "Value should be between -12 and -1." """ val = self._get_property("BER Threshold") - return val # type: ignore + return val # type: ignore @property def default_intended_power(self) -> bool: @@ -112,7 +109,7 @@ def default_intended_power(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Default Intended Power") - return val # type: ignore + return val # type: ignore @property def intended_signal_power(self) -> float: @@ -121,7 +118,7 @@ def intended_signal_power(self) -> float: "Value should be between -140 and -50." """ val = self._get_property("Intended Signal Power") - return val # type: ignore + return val # type: ignore @property def freq_deviation(self) -> float: @@ -131,7 +128,7 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def modulation_depth(self) -> float: @@ -140,7 +137,7 @@ def modulation_depth(self) -> float: "Value should be between 10 and 100." """ val = self._get_property("Modulation Depth") - return val # type: ignore + return val # type: ignore @property def measure_selectivity(self) -> bool: @@ -149,7 +146,7 @@ def measure_selectivity(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Measure Selectivity") - return val # type: ignore + return val # type: ignore @property def measure_mixer_products(self) -> bool: @@ -158,7 +155,7 @@ def measure_mixer_products(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Measure Mixer Products") - return val # type: ignore + return val # type: ignore @property def max_rf_order(self) -> int: @@ -167,7 +164,7 @@ def max_rf_order(self) -> int: "Value should be greater than 1." """ val = self._get_property("Max RF Order") - return val # type: ignore + return val # type: ignore @property def max_lo_order(self) -> int: @@ -176,7 +173,7 @@ def max_lo_order(self) -> int: "Value should be greater than 1." """ val = self._get_property("Max LO Order") - return val # type: ignore + return val # type: ignore @property def include_if(self) -> bool: @@ -185,7 +182,7 @@ def include_if(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include IF") - return val # type: ignore + return val # type: ignore @property def measure_saturation(self) -> bool: @@ -194,7 +191,7 @@ def measure_saturation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Measure Saturation") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -203,7 +200,7 @@ def use_ams_limits(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -213,7 +210,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -223,7 +220,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def samples(self) -> int: @@ -232,7 +229,7 @@ def samples(self) -> int: "Value should be between 2 and 100." """ val = self._get_property("Samples") - return val # type: ignore + return val # type: ignore @property def exclude_mixer_products_below_noise(self) -> bool: @@ -241,4 +238,5 @@ def exclude_mixer_products_below_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Exclude Mixer Products Below Noise") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py index c389e7d96cb..8d76fdee89e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -46,10 +43,10 @@ class MixerProductTaperOption(Enum): def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper "Taper for setting amplitude of mixer products." - " """ + " """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] - return val # type: ignore + return val # type: ignore @property def mixer_product_susceptibility(self) -> float: @@ -58,7 +55,7 @@ def mixer_product_susceptibility(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Mixer Product Susceptibility") - return val # type: ignore + return val # type: ignore @property def spurious_rejection(self) -> float: @@ -67,7 +64,7 @@ def spurious_rejection(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Spurious Rejection") - return val # type: ignore + return val # type: ignore @property def minimum_tuning_frequency(self) -> float: @@ -77,7 +74,7 @@ def minimum_tuning_frequency(self) -> float: """ val = self._get_property("Minimum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def maximum_tuning_frequency(self) -> float: @@ -87,7 +84,7 @@ def maximum_tuning_frequency(self) -> float: """ val = self._get_property("Maximum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def mixer_product_slope(self) -> float: @@ -96,7 +93,7 @@ def mixer_product_slope(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Mixer Product Slope") - return val # type: ignore + return val # type: ignore @property def mixer_product_intercept(self) -> float: @@ -105,7 +102,7 @@ def mixer_product_intercept(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Mixer Product Intercept") - return val # type: ignore + return val # type: ignore @property def bandwidth_80_db(self) -> float: @@ -115,7 +112,7 @@ def bandwidth_80_db(self) -> float: """ val = self._get_property("Bandwidth 80 dB") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def image_rejection(self) -> float: @@ -124,7 +121,7 @@ def image_rejection(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Image Rejection") - return val # type: ignore + return val # type: ignore @property def maximum_rf_harmonic_order(self) -> int: @@ -133,7 +130,7 @@ def maximum_rf_harmonic_order(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Maximum RF Harmonic Order") - return val # type: ignore + return val # type: ignore @property def maximum_lo_harmonic_order(self) -> int: @@ -142,7 +139,7 @@ def maximum_lo_harmonic_order(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Maximum LO Harmonic Order") - return val # type: ignore + return val # type: ignore class MixingModeOption(Enum): LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" @@ -153,10 +150,10 @@ class MixingModeOption(Enum): def mixing_mode(self) -> MixingModeOption: """Mixing Mode "Specifies whether the IF frequency is > or < RF channel frequency." - " """ + " """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] - return val # type: ignore + return val # type: ignore @property def first_if_frequency(self): @@ -165,16 +162,16 @@ def first_if_frequency(self): "Value should be a mathematical expression." """ val = self._get_property("First IF Frequency") - return val # type: ignore + return val # type: ignore @property def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." - " """ + " """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class UseHighLOOption(Enum): ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" @@ -184,10 +181,10 @@ class UseHighLOOption(Enum): def use_high_lo(self) -> UseHighLOOption: """Use High LO "Use High LO above/below the transition frequency." - " """ + " """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] - return val # type: ignore + return val # type: ignore class MixerProductTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -197,7 +194,8 @@ class MixerProductTableUnitsOption(Enum): def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units "Specifies the units for the Mixer Products." - " """ + " """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py index 74e76d2d9ac..82324948947 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -34,3 +32,4 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py index fcbf5e3d399..45fcd329ce0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,4 +40,5 @@ def use_arithmetic_mean(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Arithmetic Mean") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py index 616cd70244e..8c786d4d3bb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyRxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,13 +36,13 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -58,7 +55,8 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py index 0903902e7e5..6eb7a272cfd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -47,19 +44,19 @@ class SensitivityUnitsOption(Enum): def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units "Units to use for the Rx Sensitivity." - " """ + " """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] - return val # type: ignore + return val # type: ignore @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr "Received signal power level at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ val = self._get_property("Min. Receive Signal Pwr ") - return val # type: ignore + return val # type: ignore @property def snr_at_rx_signal_pwr(self) -> float: @@ -68,7 +65,7 @@ def snr_at_rx_signal_pwr(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("SNR at Rx Signal Pwr") - return val # type: ignore + return val # type: ignore @property def processing_gain(self) -> float: @@ -77,7 +74,7 @@ def processing_gain(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Processing Gain") - return val # type: ignore + return val # type: ignore @property def apply_pg_to_narrowband_only(self) -> bool: @@ -86,7 +83,7 @@ def apply_pg_to_narrowband_only(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Apply PG to Narrowband Only") - return val # type: ignore + return val # type: ignore @property def saturation_level(self) -> float: @@ -96,7 +93,7 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def rx_noise_figure(self) -> float: @@ -105,26 +102,26 @@ def rx_noise_figure(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rx Noise Figure") - return val # type: ignore + return val # type: ignore @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." "Value should be between -1000 and 1000." """ val = self._get_property("Receiver Sensitivity ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity "SNR or SINAD at the specified sensitivity level." "Value should be between -1000 and 1000." """ val = self._get_property("SNR/SINAD at Sensitivity ") - return val # type: ignore + return val # type: ignore @property def perform_rx_intermod_analysis(self) -> bool: @@ -133,7 +130,7 @@ def perform_rx_intermod_analysis(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Perform Rx Intermod Analysis") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -143,17 +140,17 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." "Value should be between -1000 and 1000." """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -163,7 +160,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -172,4 +169,5 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py index 9f6a097ba6a..d8504a76ba2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlySamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,11 +36,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Min: + "Min: " Value should be greater than 1." - "Max: + "Max: " Value should be greater than 1." """ return self._get_table_data() @@ -57,10 +54,10 @@ class SamplingTypeOption(Enum): def sampling_type(self) -> SamplingTypeOption: """Sampling Type "Sampling to apply to this configuration." - " """ + " """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def specify_percentage(self) -> bool: @@ -69,7 +66,7 @@ def specify_percentage(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Specify Percentage") - return val # type: ignore + return val # type: ignore @property def percentage_of_channels(self) -> float: @@ -78,7 +75,7 @@ def percentage_of_channels(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("Percentage of Channels") - return val # type: ignore + return val # type: ignore @property def max__channelsrangeband(self) -> int: @@ -87,7 +84,7 @@ def max__channelsrangeband(self) -> int: "Value should be between 1 and 100000." """ val = self._get_property("Max # Channels/Range/Band") - return val # type: ignore + return val # type: ignore @property def seed(self) -> int: @@ -96,28 +93,29 @@ def seed(self) -> int: "Value should be greater than 0." """ val = self._get_property("Seed") - return val # type: ignore + return val # type: ignore @property def total_tx_channels(self) -> int: """Total Tx Channels "Total number of transmit channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Tx Channels") - return val # type: ignore + return val # type: ignore @property def total_rx_channels(self) -> int: """Total Rx Channels "Total number of receive channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Rx Channels") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py index 77a71638b75..7fb643b9087 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlySceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,7 +41,7 @@ def show_relative_coordinates(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @property def position(self): @@ -53,7 +50,7 @@ def position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): @@ -62,7 +59,7 @@ def relative_position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -72,10 +69,10 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @property def orientation(self): @@ -84,7 +81,7 @@ def orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): @@ -93,7 +90,7 @@ def relative_orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def show_axes(self) -> bool: @@ -102,7 +99,7 @@ def show_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @property def box_color(self): @@ -111,12 +108,13 @@ def box_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Box Color") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py index 666982895bc..b6517bf0122 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,7 +40,7 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -51,7 +49,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -60,12 +58,13 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py index 7b1953fdfbb..71bc55a674b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlySolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,4 +40,5 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py index 066de229404..6e72cb5f7d5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -39,7 +36,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -48,15 +45,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TxPortOption(Enum): PORT_1 = "Port 1" @@ -66,10 +63,10 @@ class TxPortOption(Enum): def tx_port(self) -> TxPortOption: """Tx Port "Specifies which port on the TR Switch is part of the Tx path.." - " """ + " """ val = self._get_property("Tx Port") val = self.TxPortOption[val] - return val # type: ignore + return val # type: ignore class CommonPortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -79,10 +76,10 @@ class CommonPortLocationOption(Enum): def common_port_location(self) -> CommonPortLocationOption: """Common Port Location "Defines the orientation of the tr switch.." - " """ + " """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -91,7 +88,7 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_isolation(self) -> bool: @@ -100,7 +97,7 @@ def finite_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @property def isolation(self) -> float: @@ -109,7 +106,7 @@ def isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -118,7 +115,7 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -127,7 +124,7 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -137,7 +134,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -147,7 +144,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -157,7 +154,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -167,4 +164,5 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py index d804e293f89..8d14dd92fe9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTerminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -39,7 +36,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -48,15 +45,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -66,10 +63,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class PortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -79,10 +76,10 @@ class PortLocationOption(Enum): def port_location(self) -> PortLocationOption: """Port Location "Defines the orientation of the terminator.." - " """ + " """ val = self._get_property("Port Location") val = self.PortLocationOption[val] - return val # type: ignore + return val # type: ignore @property def vswr(self) -> float: @@ -91,12 +88,13 @@ def vswr(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py index 0930c56bee5..7b46eda7585 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,7 +40,7 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -51,7 +49,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -60,15 +58,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def filename(self) -> str: @@ -77,15 +75,15 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File "Coupling data generated by Savant and exported as a matched file." - " """ + " """ val = self._get_property("Savant Matched Coupling File") - return val # type: ignore + return val # type: ignore @property def enable_em_isolation(self) -> bool: @@ -94,21 +92,22 @@ def enable_em_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable EM Isolation") - return val # type: ignore + return val # type: ignore @property def port_antenna_assignment(self): """Port-Antenna Assignment "Maps each port in the coupling file to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Port-Antenna Assignment") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py index 12c7ffb580a..707c39c8e6e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,23 +41,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -69,7 +66,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -78,15 +75,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def ground_reflection_coeff(self) -> float: @@ -95,7 +92,7 @@ def ground_reflection_coeff(self) -> float: "Value should be between -100 and 100." """ val = self._get_property("Ground Reflection Coeff.") - return val # type: ignore + return val # type: ignore @property def pointspeak(self) -> int: @@ -104,7 +101,7 @@ def pointspeak(self) -> int: "Value should be between 3 and 100." """ val = self._get_property("Points/Peak") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -113,7 +110,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -122,7 +119,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -131,7 +128,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -143,10 +140,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -155,7 +152,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -164,7 +161,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -173,7 +170,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -182,7 +179,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -191,7 +188,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -200,7 +197,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -209,7 +206,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -218,7 +215,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -227,7 +224,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -236,4 +233,5 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py index cd951e77c4f..c44193f7059 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,9 +38,9 @@ def parent(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): " Value should be between -200 and 150." """ return self._get_table_data() @@ -58,10 +55,10 @@ class NoiseBehaviorOption(Enum): def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior "Specifies the behavior of the parametric noise profile." - " """ + " """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] - return val # type: ignore + return val # type: ignore @property def use_log_linear_interpolation(self) -> bool: @@ -70,4 +67,5 @@ def use_log_linear_interpolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Log-Linear Interpolation") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py index c757fb046c2..8a82092a19b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -45,7 +42,8 @@ class HarmonicTableUnitsOption(Enum): def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units "Specifies the units for the Harmonics." - " """ + " """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py index 7f344fcdc63..810e1d74c28 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyTxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,7 +40,7 @@ def file(self) -> str: "Value should be a full file path." """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -51,16 +49,16 @@ def source_file(self) -> str: "Value should be a full file path." """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -69,7 +67,7 @@ def use_ams_limits(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -79,7 +77,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -89,7 +87,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def exclude_harmonics_below_noise(self) -> bool: @@ -98,4 +96,5 @@ def exclude_harmonics_below_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Exclude Harmonics Below Noise") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py index 16ac8b25bc1..319fac709be 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -45,16 +42,17 @@ class NarrowbandBehaviorOption(Enum): def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." - " """ + " """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] - return val # type: ignore + return val # type: ignore @property def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - " """ + " """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py index 3f6e4c700c2..264951f942a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyTxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,10 +37,10 @@ def parent(self): def output_voltage_peak(self) -> float: """Output Voltage Peak "Output High Voltage Level: maximum voltage of the digital signal." - " """ + " """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") - return val # type: ignore + return val # type: ignore @property def include_phase_noise(self) -> bool: @@ -51,7 +49,7 @@ def include_phase_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @property def tx_broadband_noise(self) -> float: @@ -60,7 +58,7 @@ def tx_broadband_noise(self) -> float: "Value should be less than 1000." """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @property def perform_tx_intermod_analysis(self) -> bool: @@ -69,7 +67,7 @@ def perform_tx_intermod_analysis(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @property def internal_amp_gain(self) -> float: @@ -78,7 +76,7 @@ def internal_amp_gain(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: @@ -87,7 +85,7 @@ def noise_figure(self) -> float: "Value should be between 0 and 50." """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -97,17 +95,17 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -117,7 +115,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -126,7 +124,7 @@ def reverse_isolation(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -135,4 +133,5 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py index 6221c610c7b..111a45c83a0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -45,10 +42,10 @@ class SpectrumTypeOption(Enum): def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type "Specifies EMI Margins to calculate." - " """ + " """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] - return val # type: ignore + return val # type: ignore class TxPowerOption(Enum): PEAK_POWER = "Peak Power" @@ -58,10 +55,10 @@ class TxPowerOption(Enum): def tx_power(self) -> TxPowerOption: """Tx Power "Method used to specify the power." - " """ + " """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] - return val # type: ignore + return val # type: ignore @property def peak_power(self) -> float: @@ -71,7 +68,7 @@ def peak_power(self) -> float: """ val = self._get_property("Peak Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def average_power(self) -> float: @@ -81,7 +78,7 @@ def average_power(self) -> float: """ val = self._get_property("Average Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def include_phase_noise(self) -> bool: @@ -90,7 +87,7 @@ def include_phase_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @property def tx_broadband_noise(self) -> float: @@ -99,7 +96,7 @@ def tx_broadband_noise(self) -> float: "Value should be less than 1000." """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore class HarmonicTaperOption(Enum): CONSTANT = "Constant" @@ -111,10 +108,10 @@ class HarmonicTaperOption(Enum): def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper "Taper type used to set amplitude of harmonics." - " """ + " """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] - return val # type: ignore + return val # type: ignore @property def harmonic_amplitude(self) -> float: @@ -123,7 +120,7 @@ def harmonic_amplitude(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Harmonic Amplitude") - return val # type: ignore + return val # type: ignore @property def harmonic_slope(self) -> float: @@ -132,7 +129,7 @@ def harmonic_slope(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Harmonic Slope") - return val # type: ignore + return val # type: ignore @property def harmonic_intercept(self) -> float: @@ -141,7 +138,7 @@ def harmonic_intercept(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Harmonic Intercept") - return val # type: ignore + return val # type: ignore @property def enable_harmonic_bw_expansion(self) -> bool: @@ -150,7 +147,7 @@ def enable_harmonic_bw_expansion(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Harmonic BW Expansion") - return val # type: ignore + return val # type: ignore @property def number_of_harmonics(self) -> int: @@ -159,7 +156,7 @@ def number_of_harmonics(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Number of Harmonics") - return val # type: ignore + return val # type: ignore @property def second_harmonic_level(self) -> float: @@ -168,7 +165,7 @@ def second_harmonic_level(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Second Harmonic Level") - return val # type: ignore + return val # type: ignore @property def third_harmonic_level(self) -> float: @@ -177,7 +174,7 @@ def third_harmonic_level(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Third Harmonic Level") - return val # type: ignore + return val # type: ignore @property def other_harmonic_levels(self) -> float: @@ -186,7 +183,7 @@ def other_harmonic_levels(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Other Harmonic Levels") - return val # type: ignore + return val # type: ignore @property def perform_tx_intermod_analysis(self) -> bool: @@ -195,7 +192,7 @@ def perform_tx_intermod_analysis(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @property def internal_amp_gain(self) -> float: @@ -204,7 +201,7 @@ def internal_amp_gain(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: @@ -213,7 +210,7 @@ def noise_figure(self) -> float: "Value should be between 0 and 50." """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -223,17 +220,17 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -243,7 +240,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -252,7 +249,7 @@ def reverse_isolation(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -261,4 +258,5 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py index 33dddc27772..efaf5bf4208 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,13 +36,13 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -58,7 +55,8 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py index 27db9f4a0a7..4346c0b59b0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,23 +41,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -69,7 +66,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -78,15 +75,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class PathLossTypeOption(Enum): LOS_URBAN_CANYON = "LOS (Urban Canyon)" @@ -96,10 +93,10 @@ class PathLossTypeOption(Enum): def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type "Specify LOS vs NLOS for the Walfisch-Ikegami model." - " """ + " """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): DENSE_METRO = "Dense Metro" @@ -109,10 +106,10 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Walfisch model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def roof_height(self) -> float: @@ -122,7 +119,7 @@ def roof_height(self) -> float: """ val = self._get_property("Roof Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def distance_between_buildings(self) -> float: @@ -132,7 +129,7 @@ def distance_between_buildings(self) -> float: """ val = self._get_property("Distance Between Buildings") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def street_width(self) -> float: @@ -142,7 +139,7 @@ def street_width(self) -> float: """ val = self._get_property("Street Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def incidence_angle(self) -> float: @@ -151,7 +148,7 @@ def incidence_angle(self) -> float: "Value should be between 0 and 90." """ val = self._get_property("Incidence Angle") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -160,7 +157,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -169,7 +166,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -178,7 +175,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -190,10 +187,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -202,7 +199,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -211,7 +208,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -220,7 +217,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -229,7 +226,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -238,7 +235,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -247,7 +244,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -256,7 +253,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -265,7 +262,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -274,7 +271,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -283,4 +280,5 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py index 82974ecdfc0..4556a44d1f2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyWaveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,9 +38,9 @@ def parent(self): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" @@ -56,10 +53,10 @@ class WaveformOption(Enum): def waveform(self) -> WaveformOption: """Waveform "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Waveform") val = self.WaveformOption[val] - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -69,7 +66,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -79,7 +76,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def channel_spacing(self) -> float: @@ -89,7 +86,7 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def clock_duty_cycle(self) -> float: @@ -98,7 +95,7 @@ def clock_duty_cycle(self) -> float: "Value should be between 0.001 and 1." """ val = self._get_property("Clock Duty Cycle") - return val # type: ignore + return val # type: ignore @property def clock_risefall_time(self) -> float: @@ -108,7 +105,7 @@ def clock_risefall_time(self) -> float: """ val = self._get_property("Clock Rise/Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore class SpreadingTypeOption(Enum): LOW_SPREAD = "Low Spread" @@ -119,10 +116,10 @@ class SpreadingTypeOption(Enum): def spreading_type(self) -> SpreadingTypeOption: """Spreading Type "Type of spreading employed by the Spread Spectrum Clock." - " """ + " """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def spread_percentage(self) -> float: @@ -131,7 +128,7 @@ def spread_percentage(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Spread Percentage") - return val # type: ignore + return val # type: ignore @property def imported_spectrum(self) -> str: @@ -139,15 +136,15 @@ def imported_spectrum(self) -> str: "Value should be a full file path." """ val = self._get_property("Imported Spectrum") - return val # type: ignore + return val # type: ignore @property def raw_data_format(self) -> str: """Raw Data Format "Format of the imported raw data." - " """ + " """ val = self._get_property("Raw Data Format") - return val # type: ignore + return val # type: ignore @property def system_impedance(self) -> float: @@ -157,7 +154,7 @@ def system_impedance(self) -> float: """ val = self._get_property("System Impedance") val = self._convert_from_internal_units(float(val), "Resistance") - return val # type: ignore + return val # type: ignore @property def advanced_extraction_params(self) -> bool: @@ -166,7 +163,7 @@ def advanced_extraction_params(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Advanced Extraction Params") - return val # type: ignore + return val # type: ignore @property def nb_window_size(self) -> float: @@ -175,7 +172,7 @@ def nb_window_size(self) -> float: "Value should be greater than 3." """ val = self._get_property("NB Window Size") - return val # type: ignore + return val # type: ignore @property def bb_smoothing_factor(self) -> float: @@ -184,7 +181,7 @@ def bb_smoothing_factor(self) -> float: "Value should be greater than 1." """ val = self._get_property("BB Smoothing Factor") - return val # type: ignore + return val # type: ignore @property def nb_detector_threshold(self) -> float: @@ -193,7 +190,7 @@ def nb_detector_threshold(self) -> float: "Value should be between 2 and 10." """ val = self._get_property("NB Detector Threshold") - return val # type: ignore + return val # type: ignore class AlgorithmOption(Enum): FFT = "FFT" @@ -203,10 +200,10 @@ class AlgorithmOption(Enum): def algorithm(self) -> AlgorithmOption: """Algorithm "Algorithm used to transform the imported time domain spectrum." - " """ + " """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] - return val # type: ignore + return val # type: ignore @property def start_time(self) -> float: @@ -216,16 +213,16 @@ def start_time(self) -> float: """ val = self._get_property("Start Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def stop_time(self) -> float: """Stop Time "Final time of the imported time domain spectrum." - " """ + " """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def max_frequency(self) -> float: @@ -235,7 +232,7 @@ def max_frequency(self) -> float: """ val = self._get_property("Max Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" @@ -252,10 +249,10 @@ class WindowTypeOption(Enum): def window_type(self) -> WindowTypeOption: """Window Type "Windowing scheme used for importing time domain spectrum." - " """ + " """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] - return val # type: ignore + return val # type: ignore @property def kaiser_parameter(self) -> float: @@ -264,7 +261,7 @@ def kaiser_parameter(self) -> float: "Value should be greater than 0." """ val = self._get_property("Kaiser Parameter") - return val # type: ignore + return val # type: ignore @property def adjust_coherent_gain(self) -> bool: @@ -273,7 +270,7 @@ def adjust_coherent_gain(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adjust Coherent Gain") - return val # type: ignore + return val # type: ignore @property def data_rate(self) -> float: @@ -283,7 +280,7 @@ def data_rate(self) -> float: """ val = self._get_property("Data Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @property def num_of_bits(self) -> int: @@ -292,7 +289,7 @@ def num_of_bits(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Num of Bits") - return val # type: ignore + return val # type: ignore @property def use_envelope(self) -> bool: @@ -301,7 +298,7 @@ def use_envelope(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Envelope") - return val # type: ignore + return val # type: ignore @property def min_ptsnull(self) -> int: @@ -310,7 +307,7 @@ def min_ptsnull(self) -> int: "Value should be between 2 and 50." """ val = self._get_property("Min Pts/Null") - return val # type: ignore + return val # type: ignore @property def delay_skew(self) -> float: @@ -320,4 +317,5 @@ def delay_skew(self) -> float: """ val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py index c1662c3f0da..7cd8036e777 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ResultPlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,13 +41,15 @@ def export_model(self, file_name): def title(self) -> str: """Title "Enter title at the top of the plot, room will be made for it." - " """ + " """ val = self._get_property("Title") - return val # type: ignore + return val # type: ignore @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title={value}"]) @property def title_font(self): @@ -59,11 +58,13 @@ def title_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Title Font") - return val # type: ignore + return val # type: ignore @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -72,11 +73,13 @@ def show_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Legend") - return val # type: ignore + return val # type: ignore @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Legend={value}"]) @property def legend_font(self): @@ -85,11 +88,13 @@ def legend_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Legend Font") - return val # type: ignore + return val # type: ignore @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Legend Font={value}"]) @property def show_emi_thresholds(self) -> bool: @@ -98,11 +103,13 @@ def show_emi_thresholds(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show EMI Thresholds") - return val # type: ignore + return val # type: ignore @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show EMI Thresholds={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show EMI Thresholds={value}"]) @property def display_cad_overlay(self) -> bool: @@ -111,11 +118,13 @@ def display_cad_overlay(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Display CAD Overlay") - return val # type: ignore + return val # type: ignore @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -124,23 +133,27 @@ def opacity(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Opacity") - return val # type: ignore + return val # type: ignore @opacity.setter - def opacity(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) + def opacity(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset "Adjust vertical position of CAD model overlay." - " """ + " """ val = self._get_property("Vertical Offset") - return val # type: ignore + return val # type: ignore @vertical_offset.setter - def vertical_offset(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) + def vertical_offset(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -149,11 +162,13 @@ def range_axis_rotation(self) -> float: "Value should be between -180 and 180." """ val = self._get_property("Range Axis Rotation") - return val # type: ignore + return val # type: ignore @range_axis_rotation.setter - def range_axis_rotation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -162,59 +177,69 @@ def lock_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Lock Axes") - return val # type: ignore + return val # type: ignore @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min "Set lower extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Min") - return val # type: ignore + return val # type: ignore @x_axis_min.setter - def x_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) + def x_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max "Set upper extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Max") - return val # type: ignore + return val # type: ignore @x_axis_max.setter - def x_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) + def x_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min "Set lower extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Min") - return val # type: ignore + return val # type: ignore @y_axis_min.setter - def y_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) + def y_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max "Set upper extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Max") - return val # type: ignore + return val # type: ignore @y_axis_max.setter - def y_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) + def y_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -223,63 +248,73 @@ def y_axis_range(self) -> float: "Value should be greater than 0." """ val = self._get_property("Y-axis Range") - return val # type: ignore + return val # type: ignore @y_axis_range.setter - def y_axis_range(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) + def y_axis_range(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Range={value}"]) @property - def max_major_ticks(self) -> int: - """Max Major Ticks + def max_major_ticks_x(self) -> int: + """Max Major Ticks X "Set maximum number of major tick-mark intervals along horizontal axis." "Value should be between 1 and 30." """ - val = self._get_property("Max Major Ticks") - return val # type: ignore + val = self._get_property("Max Major Ticks X") + return val # type: ignore - @max_major_ticks.setter - def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks={value}"]) + @max_major_ticks_x.setter + def max_major_ticks_x(self, value: int): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks X={value}"]) @property - def max_minor_ticks(self) -> int: - """Max Minor Ticks + def max_minor_ticks_x(self) -> int: + """Max Minor Ticks X "Set maximum number of minor tick-mark intervals between major ticks along horizontal axis." "Value should be between 0 and 100." """ - val = self._get_property("Max Minor Ticks") - return val # type: ignore + val = self._get_property("Max Minor Ticks X") + return val # type: ignore - @max_minor_ticks.setter - def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks={value}"]) + @max_minor_ticks_x.setter + def max_minor_ticks_x(self, value: int): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks X={value}"]) @property - def max_major_ticks(self) -> int: - """Max Major Ticks + def max_major_ticks_y(self) -> int: + """Max Major Ticks Y "Set maximum number of major tick-mark intervals along vertical axis." "Value should be between 1 and 30." """ - val = self._get_property("Max Major Ticks") - return val # type: ignore + val = self._get_property("Max Major Ticks Y") + return val # type: ignore - @max_major_ticks.setter - def max_major_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks={value}"]) + @max_major_ticks_y.setter + def max_major_ticks_y(self, value: int): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks Y={value}"]) @property - def max_minor_ticks(self) -> int: - """Max Minor Ticks + def max_minor_ticks_y(self) -> int: + """Max Minor Ticks Y "Set maximum number of minor tick-mark intervals between major ticks along vertical axis." "Value should be between 0 and 100." """ - val = self._get_property("Max Minor Ticks") - return val # type: ignore + val = self._get_property("Max Minor Ticks Y") + return val # type: ignore - @max_minor_ticks.setter - def max_minor_ticks(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks={value}"]) + @max_minor_ticks_y.setter + def max_minor_ticks_y(self, value: int): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -288,11 +323,13 @@ def axis_label_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Axis Label Font") - return val # type: ignore + return val # type: ignore @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -301,11 +338,13 @@ def axis_tick_label_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Axis Tick Label Font") - return val # type: ignore + return val # type: ignore @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -319,16 +358,16 @@ class MajorGridLineStyleOption(Enum): def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style "Select line style of major-tick grid lines." - " """ + " """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Line Style={value.value}"]) @property def major_grid_color(self): @@ -337,11 +376,13 @@ def major_grid_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Major Grid Color") - return val # type: ignore + return val # type: ignore @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -355,16 +396,16 @@ class MinorGridLineStyleOption(Enum): def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style "Select line style of minor-tick grid lines." - " """ + " """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Line Style={value.value}"]) @property def minor_grid_color(self): @@ -373,11 +414,13 @@ def minor_grid_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Minor Grid Color") - return val # type: ignore + return val # type: ignore @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -386,11 +429,13 @@ def background_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -402,16 +447,16 @@ class BBPowerforPlotsUnitOption(Enum): def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit "Units to use for plotting broadband power densities." - " """ + " """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] - return val # type: ignore + return val # type: ignore @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power for Plots Unit={value.value}"]) @property def bb_power_bandwidth(self) -> float: @@ -421,12 +466,14 @@ def bb_power_bandwidth(self) -> float: """ val = self._get_property("BB Power Bandwidth") val = self._convert_from_internal_units(float(val), "") - return val # type: ignore + return val # type: ignore @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value: float | str): + def bb_power_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -435,8 +482,11 @@ def log_scale(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Log Scale") - return val # type: ignore + return val # type: ignore @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Log Scale={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py index 670b5d66bef..a5663fe7a7e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class RfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,11 +40,13 @@ def enable_passive_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Passive Noise") - return val # type: ignore + return val # type: ignore @enable_passive_noise.setter def enable_passive_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Passive Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Passive Noise={value}"]) @property def enforce_thermal_noise_floor(self) -> bool: @@ -55,10 +55,11 @@ def enforce_thermal_noise_floor(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enforce Thermal Noise Floor") - return val # type: ignore + return val # type: ignore @enforce_thermal_noise_floor.setter def enforce_thermal_noise_floor(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Enforce Thermal Noise Floor={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enforce Thermal Noise Floor={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py index 19c5df9bcde..10c3e814d9d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class RxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,7 +49,7 @@ def file(self) -> str: "Value should be a full file path." """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -61,16 +58,16 @@ def source_file(self) -> str: "Value should be a full file path." """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class MeasurementModeOption(Enum): AUDIO_SINAD = "Audio SINAD" @@ -81,14 +78,16 @@ class MeasurementModeOption(Enum): def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode "Defines the mode for the receiver measurement." - " """ + " """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] - return val # type: ignore + return val # type: ignore @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Mode={value.value}"]) @property def sinad_threshold(self) -> float: @@ -97,11 +96,13 @@ def sinad_threshold(self) -> float: "Value should be between 5 and 20." """ val = self._get_property("SINAD Threshold") - return val # type: ignore + return val # type: ignore @sinad_threshold.setter - def sinad_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SINAD Threshold={value}"]) + def sinad_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SINAD Threshold={value}"]) @property def gps_cnr_threshold(self) -> float: @@ -110,11 +111,13 @@ def gps_cnr_threshold(self) -> float: "Value should be between 15 and 30." """ val = self._get_property("GPS CNR Threshold") - return val # type: ignore + return val # type: ignore @gps_cnr_threshold.setter - def gps_cnr_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GPS CNR Threshold={value}"]) + def gps_cnr_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"GPS CNR Threshold={value}"]) @property def ber_threshold(self) -> float: @@ -123,11 +126,13 @@ def ber_threshold(self) -> float: "Value should be between -12 and -1." """ val = self._get_property("BER Threshold") - return val # type: ignore + return val # type: ignore @ber_threshold.setter - def ber_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BER Threshold={value}"]) + def ber_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BER Threshold={value}"]) @property def default_intended_power(self) -> bool: @@ -136,11 +141,13 @@ def default_intended_power(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Default Intended Power") - return val # type: ignore + return val # type: ignore @default_intended_power.setter def default_intended_power(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Default Intended Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Default Intended Power={value}"]) @property def intended_signal_power(self) -> float: @@ -149,11 +156,13 @@ def intended_signal_power(self) -> float: "Value should be between -140 and -50." """ val = self._get_property("Intended Signal Power") - return val # type: ignore + return val # type: ignore @intended_signal_power.setter - def intended_signal_power(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Intended Signal Power={value}"]) + def intended_signal_power(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Intended Signal Power={value}"]) @property def freq_deviation(self) -> float: @@ -163,12 +172,14 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation.setter - def freq_deviation(self, value: float | str): + def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation={value}"]) @property def modulation_depth(self) -> float: @@ -177,11 +188,13 @@ def modulation_depth(self) -> float: "Value should be between 10 and 100." """ val = self._get_property("Modulation Depth") - return val # type: ignore + return val # type: ignore @modulation_depth.setter - def modulation_depth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Depth={value}"]) + def modulation_depth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation Depth={value}"]) @property def measure_selectivity(self) -> bool: @@ -190,11 +203,13 @@ def measure_selectivity(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Measure Selectivity") - return val # type: ignore + return val # type: ignore @measure_selectivity.setter def measure_selectivity(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Selectivity={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Selectivity={value}"]) @property def measure_mixer_products(self) -> bool: @@ -203,11 +218,13 @@ def measure_mixer_products(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Measure Mixer Products") - return val # type: ignore + return val # type: ignore @measure_mixer_products.setter def measure_mixer_products(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Mixer Products={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Mixer Products={value}"]) @property def max_rf_order(self) -> int: @@ -216,11 +233,13 @@ def max_rf_order(self) -> int: "Value should be greater than 1." """ val = self._get_property("Max RF Order") - return val # type: ignore + return val # type: ignore @max_rf_order.setter def max_rf_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max RF Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max RF Order={value}"]) @property def max_lo_order(self) -> int: @@ -229,11 +248,13 @@ def max_lo_order(self) -> int: "Value should be greater than 1." """ val = self._get_property("Max LO Order") - return val # type: ignore + return val # type: ignore @max_lo_order.setter def max_lo_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max LO Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max LO Order={value}"]) @property def include_if(self) -> bool: @@ -242,11 +263,13 @@ def include_if(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include IF") - return val # type: ignore + return val # type: ignore @include_if.setter def include_if(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include IF={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include IF={value}"]) @property def measure_saturation(self) -> bool: @@ -255,11 +278,13 @@ def measure_saturation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Measure Saturation") - return val # type: ignore + return val # type: ignore @measure_saturation.setter def measure_saturation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Saturation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Saturation={value}"]) @property def use_ams_limits(self) -> bool: @@ -268,11 +293,13 @@ def use_ams_limits(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -282,12 +309,14 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -297,12 +326,14 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def samples(self) -> int: @@ -311,11 +342,13 @@ def samples(self) -> int: "Value should be between 2 and 100." """ val = self._get_property("Samples") - return val # type: ignore + return val # type: ignore @samples.setter def samples(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Samples={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Samples={value}"]) @property def exclude_mixer_products_below_noise(self) -> bool: @@ -324,19 +357,20 @@ def exclude_mixer_products_below_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Exclude Mixer Products Below Noise") - return val # type: ignore + return val # type: ignore @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Exclude Mixer Products Below Noise={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Exclude Mixer Products Below Noise={value}"]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py index 97d625a899e..424cea0c269 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class RxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -48,7 +45,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -63,16 +60,16 @@ class MixerProductTaperOption(Enum): def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper "Taper for setting amplitude of mixer products." - " """ + " """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] - return val # type: ignore + return val # type: ignore @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Taper={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Taper={value.value}"]) @property def mixer_product_susceptibility(self) -> float: @@ -81,13 +78,13 @@ def mixer_product_susceptibility(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Mixer Product Susceptibility") - return val # type: ignore + return val # type: ignore @mixer_product_susceptibility.setter - def mixer_product_susceptibility(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Susceptibility={value}"] - ) + def mixer_product_susceptibility(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Susceptibility={value}"]) @property def spurious_rejection(self) -> float: @@ -96,11 +93,13 @@ def spurious_rejection(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Spurious Rejection") - return val # type: ignore + return val # type: ignore @spurious_rejection.setter - def spurious_rejection(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spurious Rejection={value}"]) + def spurious_rejection(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spurious Rejection={value}"]) @property def minimum_tuning_frequency(self) -> float: @@ -110,12 +109,14 @@ def minimum_tuning_frequency(self) -> float: """ val = self._get_property("Minimum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value: float | str): + def minimum_tuning_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minimum Tuning Frequency={value}"]) @property def maximum_tuning_frequency(self) -> float: @@ -125,12 +126,14 @@ def maximum_tuning_frequency(self) -> float: """ val = self._get_property("Maximum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value: float | str): + def maximum_tuning_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum Tuning Frequency={value}"]) @property def mixer_product_slope(self) -> float: @@ -139,11 +142,13 @@ def mixer_product_slope(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Mixer Product Slope") - return val # type: ignore + return val # type: ignore @mixer_product_slope.setter - def mixer_product_slope(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Slope={value}"]) + def mixer_product_slope(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Slope={value}"]) @property def mixer_product_intercept(self) -> float: @@ -152,11 +157,13 @@ def mixer_product_intercept(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Mixer Product Intercept") - return val # type: ignore + return val # type: ignore @mixer_product_intercept.setter - def mixer_product_intercept(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Intercept={value}"]) + def mixer_product_intercept(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Intercept={value}"]) @property def bandwidth_80_db(self) -> float: @@ -166,12 +173,14 @@ def bandwidth_80_db(self) -> float: """ val = self._get_property("Bandwidth 80 dB") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_80_db.setter - def bandwidth_80_db(self, value: float | str): + def bandwidth_80_db(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 80 dB={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 80 dB={value}"]) @property def image_rejection(self) -> float: @@ -180,11 +189,13 @@ def image_rejection(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Image Rejection") - return val # type: ignore + return val # type: ignore @image_rejection.setter - def image_rejection(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Image Rejection={value}"]) + def image_rejection(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Image Rejection={value}"]) @property def maximum_rf_harmonic_order(self) -> int: @@ -193,13 +204,13 @@ def maximum_rf_harmonic_order(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Maximum RF Harmonic Order") - return val # type: ignore + return val # type: ignore @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Maximum RF Harmonic Order={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum RF Harmonic Order={value}"]) @property def maximum_lo_harmonic_order(self) -> int: @@ -208,13 +219,13 @@ def maximum_lo_harmonic_order(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Maximum LO Harmonic Order") - return val # type: ignore + return val # type: ignore @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Maximum LO Harmonic Order={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum LO Harmonic Order={value}"]) class MixingModeOption(Enum): LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" @@ -225,14 +236,16 @@ class MixingModeOption(Enum): def mixing_mode(self) -> MixingModeOption: """Mixing Mode "Specifies whether the IF frequency is > or < RF channel frequency." - " """ + " """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] - return val # type: ignore + return val # type: ignore @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixing Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixing Mode={value.value}"]) @property def first_if_frequency(self): @@ -241,25 +254,29 @@ def first_if_frequency(self): "Value should be a mathematical expression." """ val = self._get_property("First IF Frequency") - return val # type: ignore + return val # type: ignore @first_if_frequency.setter def first_if_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First IF Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First IF Frequency={value}"]) @property def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." - " """ + " """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @rf_transition_frequency.setter - def rf_transition_frequency(self, value: float | str): + def rf_transition_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"RF Transition Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"RF Transition Frequency={value}"]) class UseHighLOOption(Enum): ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" @@ -269,14 +286,16 @@ class UseHighLOOption(Enum): def use_high_lo(self) -> UseHighLOOption: """Use High LO "Use High LO above/below the transition frequency." - " """ + " """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] - return val # type: ignore + return val # type: ignore @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use High LO={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use High LO={value.value}"]) class MixerProductTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -286,13 +305,14 @@ class MixerProductTableUnitsOption(Enum): def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units "Specifies the units for the Mixer Products." - " """ + " """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Table Units={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py index 5bfe49eba0b..d425bb22dc3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class RxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +35,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -46,8 +44,9 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py index 12eb292f64e..d53dce3d741 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class RxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +35,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -46,7 +44,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -59,8 +57,11 @@ def use_arithmetic_mean(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Arithmetic Mean") - return val # type: ignore + return val # type: ignore @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Arithmetic Mean={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Arithmetic Mean={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py index 0f6b4919ddf..18592d02c5c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class RxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -47,13 +44,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -65,7 +62,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -79,11 +76,14 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spur Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py index aab6ff507d2..4ff98f482e3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class RxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +37,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -56,27 +53,31 @@ class SensitivityUnitsOption(Enum): def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units "Units to use for the Rx Sensitivity." - " """ + " """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] - return val # type: ignore + return val # type: ignore @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sensitivity Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sensitivity Units={value.value}"]) @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr "Received signal power level at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ val = self._get_property("Min. Receive Signal Pwr ") - return val # type: ignore + return val # type: ignore @min_receive_signal_pwr_.setter - def min_receive_signal_pwr_(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min. Receive Signal Pwr ={value}"]) + def min_receive_signal_pwr_(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min. Receive Signal Pwr ={value}"]) @property def snr_at_rx_signal_pwr(self) -> float: @@ -85,11 +86,13 @@ def snr_at_rx_signal_pwr(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("SNR at Rx Signal Pwr") - return val # type: ignore + return val # type: ignore @snr_at_rx_signal_pwr.setter - def snr_at_rx_signal_pwr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR at Rx Signal Pwr={value}"]) + def snr_at_rx_signal_pwr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SNR at Rx Signal Pwr={value}"]) @property def processing_gain(self) -> float: @@ -98,11 +101,13 @@ def processing_gain(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Processing Gain") - return val # type: ignore + return val # type: ignore @processing_gain.setter - def processing_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Processing Gain={value}"]) + def processing_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Processing Gain={value}"]) @property def apply_pg_to_narrowband_only(self) -> bool: @@ -111,13 +116,13 @@ def apply_pg_to_narrowband_only(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Apply PG to Narrowband Only") - return val # type: ignore + return val # type: ignore @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Apply PG to Narrowband Only={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Apply PG to Narrowband Only={value}"]) @property def saturation_level(self) -> float: @@ -127,12 +132,14 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @saturation_level.setter - def saturation_level(self, value: float | str): + def saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Saturation Level={value}"]) @property def rx_noise_figure(self) -> float: @@ -141,41 +148,45 @@ def rx_noise_figure(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rx Noise Figure") - return val # type: ignore + return val # type: ignore @rx_noise_figure.setter - def rx_noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rx Noise Figure={value}"]) + def rx_noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rx Noise Figure={value}"]) @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." "Value should be between -1000 and 1000." """ val = self._get_property("Receiver Sensitivity ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @receiver_sensitivity_.setter - def receiver_sensitivity_(self, value: float | str): + def receiver_sensitivity_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver Sensitivity ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Receiver Sensitivity ={value}"]) @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity "SNR or SINAD at the specified sensitivity level." "Value should be between -1000 and 1000." """ val = self._get_property("SNR/SINAD at Sensitivity ") - return val # type: ignore + return val # type: ignore @snrsinad_at_sensitivity_.setter - def snrsinad_at_sensitivity_(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"SNR/SINAD at Sensitivity ={value}"] - ) + def snrsinad_at_sensitivity_(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SNR/SINAD at Sensitivity ={value}"]) @property def perform_rx_intermod_analysis(self) -> bool: @@ -184,13 +195,13 @@ def perform_rx_intermod_analysis(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Perform Rx Intermod Analysis") - return val # type: ignore + return val # type: ignore @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Rx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Rx Intermod Analysis={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -200,29 +211,31 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." "Value should be between -1000 and 1000." """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -232,12 +245,14 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def max_intermod_order(self) -> int: @@ -246,8 +261,11 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py index 18891f190be..ecd516fe8ad 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class SamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,11 +36,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Min: + "Min: " Value should be greater than 1." - "Max: + "Max: " Value should be greater than 1." """ return self._get_table_data() @@ -61,14 +58,16 @@ class SamplingTypeOption(Enum): def sampling_type(self) -> SamplingTypeOption: """Sampling Type "Sampling to apply to this configuration." - " """ + " """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] - return val # type: ignore + return val # type: ignore @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sampling Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sampling Type={value.value}"]) @property def specify_percentage(self) -> bool: @@ -77,11 +76,13 @@ def specify_percentage(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Specify Percentage") - return val # type: ignore + return val # type: ignore @specify_percentage.setter def specify_percentage(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Specify Percentage={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Specify Percentage={value}"]) @property def percentage_of_channels(self) -> float: @@ -90,11 +91,13 @@ def percentage_of_channels(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("Percentage of Channels") - return val # type: ignore + return val # type: ignore @percentage_of_channels.setter - def percentage_of_channels(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percentage of Channels={value}"]) + def percentage_of_channels(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Percentage of Channels={value}"]) @property def max__channelsrangeband(self) -> int: @@ -103,13 +106,13 @@ def max__channelsrangeband(self) -> int: "Value should be between 1 and 100000." """ val = self._get_property("Max # Channels/Range/Band") - return val # type: ignore + return val # type: ignore @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Max # Channels/Range/Band={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max # Channels/Range/Band={value}"]) @property def seed(self) -> int: @@ -118,32 +121,35 @@ def seed(self) -> int: "Value should be greater than 0." """ val = self._get_property("Seed") - return val # type: ignore + return val # type: ignore @seed.setter def seed(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Seed={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Seed={value}"]) @property def total_tx_channels(self) -> int: """Total Tx Channels "Total number of transmit channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Tx Channels") - return val # type: ignore + return val # type: ignore @property def total_rx_channels(self) -> int: """Total Rx Channels "Total number of receive channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Rx Channels") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py index ef89330569e..b001fd3a206 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class SceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -60,13 +57,13 @@ def show_relative_coordinates(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): @@ -75,11 +72,13 @@ def position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): @@ -88,11 +87,13 @@ def relative_position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -102,14 +103,16 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -118,11 +121,13 @@ def orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): @@ -131,11 +136,13 @@ def relative_orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def show_axes(self) -> bool: @@ -144,11 +151,13 @@ def show_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def box_color(self): @@ -157,20 +166,25 @@ def box_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Box Color") - return val # type: ignore + return val # type: ignore @box_color.setter def box_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Box Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Box Color={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py index 996539a97ce..f6680bbdf6c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class SelectivityTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,13 +50,15 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -68,11 +67,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -81,23 +82,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -111,14 +116,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -127,11 +134,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -140,11 +149,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -167,14 +178,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -183,11 +196,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -196,11 +211,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -209,11 +226,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -222,8 +241,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py index 3b94504dacd..6c59dd1d602 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class SolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,11 +40,13 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -55,11 +55,13 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -68,20 +70,25 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py index ae0abe54b62..0580292e2bd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class SolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,8 +40,11 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py index 34cfe291204..ee48a4f403a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class SpurTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,34 +50,38 @@ def delete(self): def channel_frequency(self): """Channel Frequency "Select band channel frequency to display." - " """ + " """ val = self._get_property("Channel Frequency") - return val # type: ignore + return val # type: ignore @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -89,11 +90,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -102,23 +105,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -132,14 +139,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -148,11 +157,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -161,11 +172,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -188,14 +201,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -204,11 +219,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -217,11 +234,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -230,11 +249,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -243,8 +264,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py index 7b5d0d5a7bc..b440e67e100 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TRSwitchTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,11 +53,13 @@ def input_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -69,23 +68,27 @@ def output_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -94,11 +97,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -107,23 +112,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -137,14 +146,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -153,11 +164,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -166,11 +179,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -193,14 +208,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -209,11 +226,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -222,11 +241,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -235,11 +256,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -248,8 +271,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index 1a02b22cfe9..69d6cc58779 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -51,11 +48,13 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -64,23 +63,27 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TxPortOption(Enum): PORT_1 = "Port 1" @@ -90,14 +93,16 @@ class TxPortOption(Enum): def tx_port(self) -> TxPortOption: """Tx Port "Specifies which port on the TR Switch is part of the Tx path.." - " """ + " """ val = self._get_property("Tx Port") val = self.TxPortOption[val] - return val # type: ignore + return val # type: ignore @tx_port.setter def tx_port(self, value: TxPortOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Port={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Port={value.value}"]) class CommonPortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -107,16 +112,16 @@ class CommonPortLocationOption(Enum): def common_port_location(self) -> CommonPortLocationOption: """Common Port Location "Defines the orientation of the tr switch.." - " """ + " """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] - return val # type: ignore + return val # type: ignore @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Common Port Location={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Common Port Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -125,11 +130,13 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_isolation(self) -> bool: @@ -138,11 +145,13 @@ def finite_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -151,11 +160,13 @@ def isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @isolation.setter - def isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) + def isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -164,11 +175,13 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -177,11 +190,13 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -191,12 +206,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -206,12 +223,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -221,12 +240,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -236,9 +257,12 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index 4d0d69bfbbf..05f791208ff 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Terminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -51,11 +48,13 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -64,23 +63,27 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -90,14 +93,16 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class PortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -107,14 +112,16 @@ class PortLocationOption(Enum): def port_location(self) -> PortLocationOption: """Port Location "Defines the orientation of the terminator.." - " """ + " """ val = self._get_property("Port Location") val = self.PortLocationOption[val] - return val # type: ignore + return val # type: ignore @port_location.setter def port_location(self, value: PortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port Location={value.value}"]) @property def vswr(self) -> float: @@ -123,16 +130,19 @@ def vswr(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @vswr.setter - def vswr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) + def vswr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"VSWR={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py index 7ef9553f761..a149251b494 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TestNoiseTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,11 +53,13 @@ def input_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -69,23 +68,27 @@ def output_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -94,11 +97,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -107,23 +112,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -137,14 +146,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -153,11 +164,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -166,11 +179,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -193,14 +208,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -209,11 +226,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -222,11 +241,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -235,11 +256,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -248,11 +271,13 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -262,12 +287,14 @@ def frequency_1(self) -> float: """ val = self._get_property("Frequency 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_1.setter - def frequency_1(self, value: float | str): + def frequency_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -277,12 +304,14 @@ def amplitude_1(self) -> float: """ val = self._get_property("Amplitude 1") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_1.setter - def amplitude_1(self, value: float | str): + def amplitude_1(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -292,12 +321,14 @@ def bandwidth_1(self) -> float: """ val = self._get_property("Bandwidth 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_1.setter - def bandwidth_1(self, value: float | str): + def bandwidth_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -307,12 +338,14 @@ def frequency_2(self) -> float: """ val = self._get_property("Frequency 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_2.setter - def frequency_2(self, value: float | str): + def frequency_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -322,12 +355,14 @@ def amplitude_2(self) -> float: """ val = self._get_property("Amplitude 2") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_2.setter - def amplitude_2(self, value: float | str): + def amplitude_2(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -337,12 +372,14 @@ def bandwidth_2(self) -> float: """ val = self._get_property("Bandwidth 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_2.setter - def bandwidth_2(self, value: float | str): + def bandwidth_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -351,8 +388,11 @@ def noise_level(self) -> float: "Value should be between -200 and 0." """ val = self._get_property("Noise Level") - return val # type: ignore + return val # type: ignore @noise_level.setter - def noise_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) + def noise_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Level={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py index e8225cd97be..cce333ffcc5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py @@ -1,31 +1,30 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class TopLevelSimulation(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py index d8d62294243..caee5fb20af 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class TouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,11 +52,13 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -67,11 +67,13 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -80,23 +82,27 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def filename(self) -> str: @@ -105,19 +111,21 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File "Coupling data generated by Savant and exported as a matched file." - " """ + " """ val = self._get_property("Savant Matched Coupling File") - return val # type: ignore + return val # type: ignore @property def enable_em_isolation(self) -> bool: @@ -126,33 +134,40 @@ def enable_em_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable EM Isolation") - return val # type: ignore + return val # type: ignore @enable_em_isolation.setter def enable_em_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable EM Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable EM Isolation={value}"]) @property def port_antenna_assignment(self): """Port-Antenna Assignment "Maps each port in the coupling file to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Port-Antenna Assignment") - return val # type: ignore + return val # type: ignore @port_antenna_assignment.setter def port_antenna_assignment(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port-Antenna Assignment={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port-Antenna Assignment={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py index dbfa0a790d8..428c756fdad 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TunableTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,11 +53,13 @@ def input_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -69,37 +68,43 @@ def output_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def frequency(self) -> float: """Frequency "Tunable filter center frequency." - " """ + " """ val = self._get_property("Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency.setter - def frequency(self, value: float | str): + def frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -108,11 +113,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -121,23 +128,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -151,14 +162,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -167,11 +180,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -180,11 +195,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -207,14 +224,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -223,11 +242,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -236,11 +257,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -249,11 +272,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -262,8 +287,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py index b7f3e4da8a2..27176dc6910 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,35 +53,41 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -93,11 +96,13 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -106,23 +111,27 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def ground_reflection_coeff(self) -> float: @@ -131,11 +140,13 @@ def ground_reflection_coeff(self) -> float: "Value should be between -100 and 100." """ val = self._get_property("Ground Reflection Coeff.") - return val # type: ignore + return val # type: ignore @ground_reflection_coeff.setter - def ground_reflection_coeff(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ground Reflection Coeff.={value}"]) + def ground_reflection_coeff(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ground Reflection Coeff.={value}"]) @property def pointspeak(self) -> int: @@ -144,11 +155,13 @@ def pointspeak(self) -> int: "Value should be between 3 and 100." """ val = self._get_property("Points/Peak") - return val # type: ignore + return val # type: ignore @pointspeak.setter def pointspeak(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Points/Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Points/Peak={value}"]) @property def custom_fading_margin(self) -> float: @@ -157,11 +170,13 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -170,11 +185,13 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -183,11 +200,13 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -199,14 +218,16 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -215,11 +236,13 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -228,11 +251,13 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -241,11 +266,13 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -254,11 +281,13 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -267,11 +296,13 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -280,11 +311,13 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -293,13 +326,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -308,11 +341,13 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -321,11 +356,13 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -334,10 +371,11 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py index 7f3c54904c9..ad296b7b7fe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TwoToneTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,11 +53,13 @@ def input_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -69,23 +68,27 @@ def output_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -94,11 +97,13 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -107,23 +112,27 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -137,14 +146,16 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -153,11 +164,13 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -166,11 +179,13 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -193,14 +208,16 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -209,11 +226,13 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -222,11 +241,13 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -235,11 +256,13 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -248,11 +271,13 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -262,12 +287,14 @@ def frequency_1(self) -> float: """ val = self._get_property("Frequency 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_1.setter - def frequency_1(self, value: float | str): + def frequency_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -277,12 +304,14 @@ def amplitude_1(self) -> float: """ val = self._get_property("Amplitude 1") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_1.setter - def amplitude_1(self, value: float | str): + def amplitude_1(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -292,12 +321,14 @@ def bandwidth_1(self) -> float: """ val = self._get_property("Bandwidth 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_1.setter - def bandwidth_1(self, value: float | str): + def bandwidth_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -307,12 +338,14 @@ def frequency_2(self) -> float: """ val = self._get_property("Frequency 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_2.setter - def frequency_2(self, value: float | str): + def frequency_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -322,12 +355,14 @@ def amplitude_2(self) -> float: """ val = self._get_property("Amplitude 2") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_2.setter - def amplitude_2(self, value: float | str): + def amplitude_2(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -337,12 +372,14 @@ def bandwidth_2(self) -> float: """ val = self._get_property("Bandwidth 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_2.setter - def bandwidth_2(self, value: float | str): + def bandwidth_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -351,8 +388,11 @@ def noise_level(self) -> float: "Value should be between -200 and 0." """ val = self._get_property("Noise Level") - return val # type: ignore + return val # type: ignore @noise_level.setter - def noise_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) + def noise_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Level={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py index d5ab8ee566f..2af07fd5b67 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -49,9 +46,9 @@ def delete(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): " Value should be between -200 and 150." """ return self._get_table_data() @@ -63,7 +60,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -79,14 +76,16 @@ class NoiseBehaviorOption(Enum): def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior "Specifies the behavior of the parametric noise profile." - " """ + " """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] - return val # type: ignore + return val # type: ignore @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Behavior={value.value}"]) @property def use_log_linear_interpolation(self) -> bool: @@ -95,10 +94,11 @@ def use_log_linear_interpolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Log-Linear Interpolation") - return val # type: ignore + return val # type: ignore @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Log-Linear Interpolation={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py index def0c396784..24721df5e03 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -48,7 +45,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -62,13 +59,14 @@ class HarmonicTableUnitsOption(Enum): def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units "Specifies the units for the Harmonics." - " """ + " """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py index 8449a2c157d..c4662f4d63f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class TxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,7 +48,7 @@ def file(self) -> str: "Value should be a full file path." """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -59,16 +57,16 @@ def source_file(self) -> str: "Value should be a full file path." """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -77,11 +75,13 @@ def use_ams_limits(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -91,12 +91,14 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -106,12 +108,14 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def exclude_harmonics_below_noise(self) -> bool: @@ -120,19 +124,20 @@ def exclude_harmonics_below_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Exclude Harmonics Below Noise") - return val # type: ignore + return val # type: ignore @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Exclude Harmonics Below Noise={value}"]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py index f48cd5414ae..0aeca2ef743 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -48,7 +45,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -62,27 +59,30 @@ class NarrowbandBehaviorOption(Enum): def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." - " """ + " """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] - return val # type: ignore + return val # type: ignore @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Narrowband Behavior={value.value}"]) @property def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - " """ + " """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @measurement_frequency.setter - def measurement_frequency(self, value: float | str): + def measurement_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Frequency={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py index 9b2b444aee9..c7d5d56ed26 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py @@ -1,30 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class TxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,7 +36,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -48,15 +46,17 @@ def enabled(self, value: bool): def output_voltage_peak(self) -> float: """Output Voltage Peak "Output High Voltage Level: maximum voltage of the digital signal." - " """ + " """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") - return val # type: ignore + return val # type: ignore @output_voltage_peak.setter - def output_voltage_peak(self, value: float | str): + def output_voltage_peak(self, value : float|str): value = self._convert_to_internal_units(value, "Voltage") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Voltage Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Voltage Peak={value}"]) @property def include_phase_noise(self) -> bool: @@ -65,11 +65,13 @@ def include_phase_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -78,11 +80,13 @@ def tx_broadband_noise(self) -> float: "Value should be less than 1000." """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @tx_broadband_noise.setter - def tx_broadband_noise(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Broadband Noise={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -91,13 +95,13 @@ def perform_tx_intermod_analysis(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Tx Intermod Analysis={value}"]) @property def internal_amp_gain(self) -> float: @@ -106,11 +110,13 @@ def internal_amp_gain(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @internal_amp_gain.setter - def internal_amp_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -119,11 +125,13 @@ def noise_figure(self) -> float: "Value should be between 0 and 50." """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -133,29 +141,31 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -165,12 +175,14 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -179,11 +191,13 @@ def reverse_isolation(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -192,8 +206,11 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py index 7afaa7c1488..6a09f26cf24 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +37,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -54,14 +51,16 @@ class SpectrumTypeOption(Enum): def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type "Specifies EMI Margins to calculate." - " """ + " """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] - return val # type: ignore + return val # type: ignore @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spectrum Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spectrum Type={value.value}"]) class TxPowerOption(Enum): PEAK_POWER = "Peak Power" @@ -71,14 +70,16 @@ class TxPowerOption(Enum): def tx_power(self) -> TxPowerOption: """Tx Power "Method used to specify the power." - " """ + " """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] - return val # type: ignore + return val # type: ignore @tx_power.setter def tx_power(self, value: TxPowerOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Power={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Power={value.value}"]) @property def peak_power(self) -> float: @@ -88,12 +89,14 @@ def peak_power(self) -> float: """ val = self._get_property("Peak Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @peak_power.setter - def peak_power(self, value: float | str): + def peak_power(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Peak Power={value}"]) @property def average_power(self) -> float: @@ -103,12 +106,14 @@ def average_power(self) -> float: """ val = self._get_property("Average Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @average_power.setter - def average_power(self, value: float | str): + def average_power(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Average Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Average Power={value}"]) @property def include_phase_noise(self) -> bool: @@ -117,11 +122,13 @@ def include_phase_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -130,11 +137,13 @@ def tx_broadband_noise(self) -> float: "Value should be less than 1000." """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @tx_broadband_noise.setter - def tx_broadband_noise(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Broadband Noise={value}"]) class HarmonicTaperOption(Enum): CONSTANT = "Constant" @@ -146,14 +155,16 @@ class HarmonicTaperOption(Enum): def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper "Taper type used to set amplitude of harmonics." - " """ + " """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] - return val # type: ignore + return val # type: ignore @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Taper={value.value}"]) @property def harmonic_amplitude(self) -> float: @@ -162,11 +173,13 @@ def harmonic_amplitude(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Harmonic Amplitude") - return val # type: ignore + return val # type: ignore @harmonic_amplitude.setter - def harmonic_amplitude(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Amplitude={value}"]) + def harmonic_amplitude(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Amplitude={value}"]) @property def harmonic_slope(self) -> float: @@ -175,11 +188,13 @@ def harmonic_slope(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Harmonic Slope") - return val # type: ignore + return val # type: ignore @harmonic_slope.setter - def harmonic_slope(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Slope={value}"]) + def harmonic_slope(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Slope={value}"]) @property def harmonic_intercept(self) -> float: @@ -188,11 +203,13 @@ def harmonic_intercept(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Harmonic Intercept") - return val # type: ignore + return val # type: ignore @harmonic_intercept.setter - def harmonic_intercept(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Intercept={value}"]) + def harmonic_intercept(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Intercept={value}"]) @property def enable_harmonic_bw_expansion(self) -> bool: @@ -201,13 +218,13 @@ def enable_harmonic_bw_expansion(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Harmonic BW Expansion") - return val # type: ignore + return val # type: ignore @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Enable Harmonic BW Expansion={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Harmonic BW Expansion={value}"]) @property def number_of_harmonics(self) -> int: @@ -216,11 +233,13 @@ def number_of_harmonics(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Number of Harmonics") - return val # type: ignore + return val # type: ignore @number_of_harmonics.setter def number_of_harmonics(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Harmonics={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Harmonics={value}"]) @property def second_harmonic_level(self) -> float: @@ -229,11 +248,13 @@ def second_harmonic_level(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Second Harmonic Level") - return val # type: ignore + return val # type: ignore @second_harmonic_level.setter - def second_harmonic_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Second Harmonic Level={value}"]) + def second_harmonic_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Second Harmonic Level={value}"]) @property def third_harmonic_level(self) -> float: @@ -242,11 +263,13 @@ def third_harmonic_level(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Third Harmonic Level") - return val # type: ignore + return val # type: ignore @third_harmonic_level.setter - def third_harmonic_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Third Harmonic Level={value}"]) + def third_harmonic_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Third Harmonic Level={value}"]) @property def other_harmonic_levels(self) -> float: @@ -255,11 +278,13 @@ def other_harmonic_levels(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Other Harmonic Levels") - return val # type: ignore + return val # type: ignore @other_harmonic_levels.setter - def other_harmonic_levels(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Other Harmonic Levels={value}"]) + def other_harmonic_levels(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Other Harmonic Levels={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -268,13 +293,13 @@ def perform_tx_intermod_analysis(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Tx Intermod Analysis={value}"]) @property def internal_amp_gain(self) -> float: @@ -283,11 +308,13 @@ def internal_amp_gain(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @internal_amp_gain.setter - def internal_amp_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -296,11 +323,13 @@ def noise_figure(self) -> float: "Value should be between 0 and 50." """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -310,29 +339,31 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -342,12 +373,14 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -356,11 +389,13 @@ def reverse_isolation(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -369,8 +404,11 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py index dba9a4b2f98..0d51535a381 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -47,13 +44,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -65,7 +62,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -79,11 +76,14 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spur Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py index 8ae85bcbda1..a88a38a1afb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class WalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,35 +53,41 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -93,11 +96,13 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -106,23 +111,27 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class PathLossTypeOption(Enum): LOS_URBAN_CANYON = "LOS (Urban Canyon)" @@ -132,14 +141,16 @@ class PathLossTypeOption(Enum): def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type "Specify LOS vs NLOS for the Walfisch-Ikegami model." - " """ + " """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] - return val # type: ignore + return val # type: ignore @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Path Loss Type={value.value}"]) class EnvironmentOption(Enum): DENSE_METRO = "Dense Metro" @@ -149,14 +160,16 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Walfisch model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def roof_height(self) -> float: @@ -166,12 +179,14 @@ def roof_height(self) -> float: """ val = self._get_property("Roof Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @roof_height.setter - def roof_height(self, value: float | str): + def roof_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Roof Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Roof Height={value}"]) @property def distance_between_buildings(self) -> float: @@ -181,14 +196,14 @@ def distance_between_buildings(self) -> float: """ val = self._get_property("Distance Between Buildings") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @distance_between_buildings.setter - def distance_between_buildings(self, value: float | str): + def distance_between_buildings(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Distance Between Buildings={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Distance Between Buildings={value}"]) @property def street_width(self) -> float: @@ -198,12 +213,14 @@ def street_width(self) -> float: """ val = self._get_property("Street Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @street_width.setter - def street_width(self, value: float | str): + def street_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Street Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Street Width={value}"]) @property def incidence_angle(self) -> float: @@ -212,11 +229,13 @@ def incidence_angle(self) -> float: "Value should be between 0 and 90." """ val = self._get_property("Incidence Angle") - return val # type: ignore + return val # type: ignore @incidence_angle.setter - def incidence_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Incidence Angle={value}"]) + def incidence_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Incidence Angle={value}"]) @property def custom_fading_margin(self) -> float: @@ -225,11 +244,13 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -238,11 +259,13 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -251,11 +274,13 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -267,14 +292,16 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -283,11 +310,13 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -296,11 +325,13 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -309,11 +340,13 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -322,11 +355,13 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -335,11 +370,13 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -348,11 +385,13 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -361,13 +400,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -376,11 +415,13 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -389,11 +430,13 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -402,10 +445,11 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py index 84c7da63623..5ea07603f8e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py @@ -1,32 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Waveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +37,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -50,13 +47,15 @@ def enabled(self, value: bool): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port={value}"]) class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" @@ -69,14 +68,16 @@ class WaveformOption(Enum): def waveform(self) -> WaveformOption: """Waveform "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Waveform") val = self.WaveformOption[val] - return val # type: ignore + return val # type: ignore @waveform.setter def waveform(self, value: WaveformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Waveform={value.value}"]) @property def start_frequency(self) -> float: @@ -86,12 +87,14 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -101,12 +104,14 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -116,12 +121,14 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_spacing.setter - def channel_spacing(self, value: float | str): + def channel_spacing(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Spacing={value}"]) @property def clock_duty_cycle(self) -> float: @@ -130,11 +137,13 @@ def clock_duty_cycle(self) -> float: "Value should be between 0.001 and 1." """ val = self._get_property("Clock Duty Cycle") - return val # type: ignore + return val # type: ignore @clock_duty_cycle.setter - def clock_duty_cycle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Duty Cycle={value}"]) + def clock_duty_cycle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Clock Duty Cycle={value}"]) @property def clock_risefall_time(self) -> float: @@ -144,12 +153,14 @@ def clock_risefall_time(self) -> float: """ val = self._get_property("Clock Rise/Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @clock_risefall_time.setter - def clock_risefall_time(self, value: float | str): + def clock_risefall_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Rise/Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Clock Rise/Fall Time={value}"]) class SpreadingTypeOption(Enum): LOW_SPREAD = "Low Spread" @@ -160,14 +171,16 @@ class SpreadingTypeOption(Enum): def spreading_type(self) -> SpreadingTypeOption: """Spreading Type "Type of spreading employed by the Spread Spectrum Clock." - " """ + " """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] - return val # type: ignore + return val # type: ignore @spreading_type.setter def spreading_type(self, value: SpreadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spreading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spreading Type={value.value}"]) @property def spread_percentage(self) -> float: @@ -176,11 +189,13 @@ def spread_percentage(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Spread Percentage") - return val # type: ignore + return val # type: ignore @spread_percentage.setter - def spread_percentage(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spread Percentage={value}"]) + def spread_percentage(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spread Percentage={value}"]) @property def imported_spectrum(self) -> str: @@ -188,19 +203,21 @@ def imported_spectrum(self) -> str: "Value should be a full file path." """ val = self._get_property("Imported Spectrum") - return val # type: ignore + return val # type: ignore @imported_spectrum.setter def imported_spectrum(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Imported Spectrum={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Imported Spectrum={value}"]) @property def raw_data_format(self) -> str: """Raw Data Format "Format of the imported raw data." - " """ + " """ val = self._get_property("Raw Data Format") - return val # type: ignore + return val # type: ignore @property def system_impedance(self) -> float: @@ -210,12 +227,14 @@ def system_impedance(self) -> float: """ val = self._get_property("System Impedance") val = self._convert_from_internal_units(float(val), "Resistance") - return val # type: ignore + return val # type: ignore @system_impedance.setter - def system_impedance(self, value: float | str): + def system_impedance(self, value : float|str): value = self._convert_to_internal_units(value, "Resistance") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"System Impedance={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"System Impedance={value}"]) @property def advanced_extraction_params(self) -> bool: @@ -224,13 +243,13 @@ def advanced_extraction_params(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Advanced Extraction Params") - return val # type: ignore + return val # type: ignore @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Advanced Extraction Params={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Advanced Extraction Params={value}"]) @property def nb_window_size(self) -> float: @@ -239,11 +258,13 @@ def nb_window_size(self) -> float: "Value should be greater than 3." """ val = self._get_property("NB Window Size") - return val # type: ignore + return val # type: ignore @nb_window_size.setter - def nb_window_size(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Window Size={value}"]) + def nb_window_size(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NB Window Size={value}"]) @property def bb_smoothing_factor(self) -> float: @@ -252,11 +273,13 @@ def bb_smoothing_factor(self) -> float: "Value should be greater than 1." """ val = self._get_property("BB Smoothing Factor") - return val # type: ignore + return val # type: ignore @bb_smoothing_factor.setter - def bb_smoothing_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Smoothing Factor={value}"]) + def bb_smoothing_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Smoothing Factor={value}"]) @property def nb_detector_threshold(self) -> float: @@ -265,11 +288,13 @@ def nb_detector_threshold(self) -> float: "Value should be between 2 and 10." """ val = self._get_property("NB Detector Threshold") - return val # type: ignore + return val # type: ignore @nb_detector_threshold.setter - def nb_detector_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Detector Threshold={value}"]) + def nb_detector_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NB Detector Threshold={value}"]) class AlgorithmOption(Enum): FFT = "FFT" @@ -279,14 +304,16 @@ class AlgorithmOption(Enum): def algorithm(self) -> AlgorithmOption: """Algorithm "Algorithm used to transform the imported time domain spectrum." - " """ + " """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] - return val # type: ignore + return val # type: ignore @algorithm.setter def algorithm(self, value: AlgorithmOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Algorithm={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Algorithm={value.value}"]) @property def start_time(self) -> float: @@ -296,26 +323,30 @@ def start_time(self) -> float: """ val = self._get_property("Start Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @start_time.setter - def start_time(self, value: float | str): + def start_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Time={value}"]) @property def stop_time(self) -> float: """Stop Time "Final time of the imported time domain spectrum." - " """ + " """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @stop_time.setter - def stop_time(self, value: float | str): + def stop_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Time={value}"]) @property def max_frequency(self) -> float: @@ -325,12 +356,14 @@ def max_frequency(self) -> float: """ val = self._get_property("Max Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_frequency.setter - def max_frequency(self, value: float | str): + def max_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Frequency={value}"]) class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" @@ -347,14 +380,16 @@ class WindowTypeOption(Enum): def window_type(self) -> WindowTypeOption: """Window Type "Windowing scheme used for importing time domain spectrum." - " """ + " """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] - return val # type: ignore + return val # type: ignore @window_type.setter def window_type(self, value: WindowTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Window Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Window Type={value.value}"]) @property def kaiser_parameter(self) -> float: @@ -363,11 +398,13 @@ def kaiser_parameter(self) -> float: "Value should be greater than 0." """ val = self._get_property("Kaiser Parameter") - return val # type: ignore + return val # type: ignore @kaiser_parameter.setter - def kaiser_parameter(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Kaiser Parameter={value}"]) + def kaiser_parameter(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Kaiser Parameter={value}"]) @property def adjust_coherent_gain(self) -> bool: @@ -376,11 +413,13 @@ def adjust_coherent_gain(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adjust Coherent Gain") - return val # type: ignore + return val # type: ignore @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adjust Coherent Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adjust Coherent Gain={value}"]) @property def data_rate(self) -> float: @@ -390,12 +429,14 @@ def data_rate(self) -> float: """ val = self._get_property("Data Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @data_rate.setter - def data_rate(self, value: float | str): + def data_rate(self, value : float|str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Rate={value}"]) @property def num_of_bits(self) -> int: @@ -404,11 +445,13 @@ def num_of_bits(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Num of Bits") - return val # type: ignore + return val # type: ignore @num_of_bits.setter def num_of_bits(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Num of Bits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Num of Bits={value}"]) @property def use_envelope(self) -> bool: @@ -417,11 +460,13 @@ def use_envelope(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Envelope") - return val # type: ignore + return val # type: ignore @use_envelope.setter def use_envelope(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Envelope={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Envelope={value}"]) @property def min_ptsnull(self) -> int: @@ -430,11 +475,13 @@ def min_ptsnull(self) -> int: "Value should be between 2 and 50." """ val = self._get_property("Min Pts/Null") - return val # type: ignore + return val # type: ignore @min_ptsnull.setter def min_ptsnull(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pts/Null={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pts/Null={value}"]) @property def delay_skew(self) -> float: @@ -444,9 +491,12 @@ def delay_skew(self) -> float: """ val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @delay_skew.setter - def delay_skew(self, value: float | str): + def delay_skew(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Delay Skew={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Delay Skew={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index 7f7a748aedf..bd6f8b1de0e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,27 +1,3 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from .Amplifier import Amplifier from .AntennaNode import AntennaNode from .AntennaPassband import AntennaPassband @@ -57,6 +33,38 @@ from .ProfileTraceNode import ProfileTraceNode from .PropagationLossCouplingNode import PropagationLossCouplingNode from .RadioNode import RadioNode +from .ResultPlotNode import ResultPlotNode +from .RfSystemGroup import RfSystemGroup +from .RxMeasNode import RxMeasNode +from .RxMixerProductNode import RxMixerProductNode +from .RxSaturationNode import RxSaturationNode +from .RxSelectivityNode import RxSelectivityNode +from .RxSpurNode import RxSpurNode +from .RxSusceptibilityProfNode import RxSusceptibilityProfNode +from .SamplingNode import SamplingNode +from .SceneGroupNode import SceneGroupNode +from .SelectivityTraceNode import SelectivityTraceNode +from .SolutionCouplingNode import SolutionCouplingNode +from .SolutionsNode import SolutionsNode +from .SpurTraceNode import SpurTraceNode +from .TR_Switch import TR_Switch +from .TRSwitchTraceNode import TRSwitchTraceNode +from .Terminator import Terminator +from .TestNoiseTraceNode import TestNoiseTraceNode +from .TopLevelSimulation import TopLevelSimulation +from .TouchstoneCouplingNode import TouchstoneCouplingNode +from .TunableTraceNode import TunableTraceNode +from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode +from .TwoToneTraceNode import TwoToneTraceNode +from .TxBbEmissionNode import TxBbEmissionNode +from .TxHarmonicNode import TxHarmonicNode +from .TxMeasNode import TxMeasNode +from .TxNbEmissionNode import TxNbEmissionNode +from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode +from .TxSpectralProfNode import TxSpectralProfNode +from .TxSpurNode import TxSpurNode +from .WalfischCouplingNode import WalfischCouplingNode +from .Waveform import Waveform from .ReadOnlyAmplifier import ReadOnlyAmplifier from .ReadOnlyAntennaNode import ReadOnlyAntennaNode from .ReadOnlyAntennaPassband import ReadOnlyAntennaPassband @@ -105,153 +113,121 @@ from .ReadOnlyTxSpurNode import ReadOnlyTxSpurNode from .ReadOnlyWalfischCouplingNode import ReadOnlyWalfischCouplingNode from .ReadOnlyWaveform import ReadOnlyWaveform -from .ResultPlotNode import ResultPlotNode -from .RfSystemGroup import RfSystemGroup -from .RxMeasNode import RxMeasNode -from .RxMixerProductNode import RxMixerProductNode -from .RxSaturationNode import RxSaturationNode -from .RxSelectivityNode import RxSelectivityNode -from .RxSpurNode import RxSpurNode -from .RxSusceptibilityProfNode import RxSusceptibilityProfNode -from .SamplingNode import SamplingNode -from .SceneGroupNode import SceneGroupNode -from .SelectivityTraceNode import SelectivityTraceNode -from .SolutionCouplingNode import SolutionCouplingNode -from .SolutionsNode import SolutionsNode -from .SpurTraceNode import SpurTraceNode -from .TRSwitchTraceNode import TRSwitchTraceNode -from .TR_Switch import TR_Switch -from .Terminator import Terminator -from .TestNoiseTraceNode import TestNoiseTraceNode -from .TopLevelSimulation import TopLevelSimulation -from .TouchstoneCouplingNode import TouchstoneCouplingNode -from .TunableTraceNode import TunableTraceNode -from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode -from .TwoToneTraceNode import TwoToneTraceNode -from .TxBbEmissionNode import TxBbEmissionNode -from .TxHarmonicNode import TxHarmonicNode -from .TxMeasNode import TxMeasNode -from .TxNbEmissionNode import TxNbEmissionNode -from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode -from .TxSpectralProfNode import TxSpectralProfNode -from .TxSpurNode import TxSpurNode -from .WalfischCouplingNode import WalfischCouplingNode -from .Waveform import Waveform __all__ = [ - "Amplifier", - "AntennaNode", - "AntennaPassband", - "Band", - "BandFolder", - "BandTraceNode", - "CADNode", - "Cable", - "CategoriesViewNode", - "Circulator", - "CouplingLinkNode", - "CouplingTraceNode", - "CouplingsNode", - "CustomCouplingNode", - "EmiPlotMarkerNode", - "EmitSceneNode", - "ErcegCouplingNode", - "Filter", - "FiveGChannelModel", - "HataCouplingNode", - "IndoorPropagationCouplingNode", - "Isolator", - "LogDistanceCouplingNode", - "MPlexBandTraceNode", - "Multiplexer", - "MultiplexerBand", - "OutboardTraceNode", - "ParametricCouplingTraceNode", - "PlotMarkerNode", - "PlotNode", - "PowerDivider", - "PowerTraceNode", - "ProfileTraceNode", - "PropagationLossCouplingNode", - "RadioNode", - "ResultPlotNode", - "RfSystemGroup", - "RxMeasNode", - "RxMixerProductNode", - "RxSaturationNode", - "RxSelectivityNode", - "RxSpurNode", - "RxSusceptibilityProfNode", - "SamplingNode", - "SceneGroupNode", - "SelectivityTraceNode", - "SolutionCouplingNode", - "SolutionsNode", - "SpurTraceNode", - "TR_Switch", - "TRSwitchTraceNode", - "Terminator", - "TestNoiseTraceNode", - "TopLevelSimulation", - "TouchstoneCouplingNode", - "TunableTraceNode", - "TwoRayPathLossCouplingNode", - "TwoToneTraceNode", - "TxBbEmissionNode", - "TxHarmonicNode", - "TxMeasNode", - "TxNbEmissionNode", - "TxSpectralProfEmitterNode", - "TxSpectralProfNode", - "TxSpurNode", - "WalfischCouplingNode", - "Waveform", - "ReadOnlyAmplifier", - "ReadOnlyAntennaNode", - "ReadOnlyAntennaPassband", - "ReadOnlyBand", - "ReadOnlyBandFolder", - "ReadOnlyCADNode", - "ReadOnlyCable", - "ReadOnlyCirculator", - "ReadOnlyCouplingLinkNode", - "ReadOnlyCouplingsNode", - "ReadOnlyCustomCouplingNode", - "ReadOnlyEmitSceneNode", - "ReadOnlyErcegCouplingNode", - "ReadOnlyFilter", - "ReadOnlyFiveGChannelModel", - "ReadOnlyHataCouplingNode", - "ReadOnlyIndoorPropagationCouplingNode", - "ReadOnlyIsolator", - "ReadOnlyLogDistanceCouplingNode", - "ReadOnlyMultiplexer", - "ReadOnlyMultiplexerBand", - "ReadOnlyPowerDivider", - "ReadOnlyPropagationLossCouplingNode", - "ReadOnlyRadioNode", - "ReadOnlyRfSystemGroup", - "ReadOnlyRxMeasNode", - "ReadOnlyRxMixerProductNode", - "ReadOnlyRxSaturationNode", - "ReadOnlyRxSelectivityNode", - "ReadOnlyRxSpurNode", - "ReadOnlyRxSusceptibilityProfNode", - "ReadOnlySamplingNode", - "ReadOnlySceneGroupNode", - "ReadOnlySolutionCouplingNode", - "ReadOnlySolutionsNode", - "ReadOnlyTR_Switch", - "ReadOnlyTerminator", - "ReadOnlyTouchstoneCouplingNode", - "ReadOnlyTwoRayPathLossCouplingNode", - "ReadOnlyTxBbEmissionNode", - "ReadOnlyTxHarmonicNode", - "ReadOnlyTxMeasNode", - "ReadOnlyTxNbEmissionNode", - "ReadOnlyTxSpectralProfEmitterNode", - "ReadOnlyTxSpectralProfNode", - "ReadOnlyTxSpurNode", - "ReadOnlyWalfischCouplingNode", - "ReadOnlyWaveform", + 'Amplifier', + 'AntennaNode', + 'AntennaPassband', + 'Band', + 'BandFolder', + 'BandTraceNode', + 'CADNode', + 'Cable', + 'CategoriesViewNode', + 'Circulator', + 'CouplingLinkNode', + 'CouplingTraceNode', + 'CouplingsNode', + 'CustomCouplingNode', + 'EmiPlotMarkerNode', + 'EmitSceneNode', + 'ErcegCouplingNode', + 'Filter', + 'FiveGChannelModel', + 'HataCouplingNode', + 'IndoorPropagationCouplingNode', + 'Isolator', + 'LogDistanceCouplingNode', + 'MPlexBandTraceNode', + 'Multiplexer', + 'MultiplexerBand', + 'OutboardTraceNode', + 'ParametricCouplingTraceNode', + 'PlotMarkerNode', + 'PlotNode', + 'PowerDivider', + 'PowerTraceNode', + 'ProfileTraceNode', + 'PropagationLossCouplingNode', + 'RadioNode', + 'ResultPlotNode', + 'RfSystemGroup', + 'RxMeasNode', + 'RxMixerProductNode', + 'RxSaturationNode', + 'RxSelectivityNode', + 'RxSpurNode', + 'RxSusceptibilityProfNode', + 'SamplingNode', + 'SceneGroupNode', + 'SelectivityTraceNode', + 'SolutionCouplingNode', + 'SolutionsNode', + 'SpurTraceNode', + 'TR_Switch', + 'TRSwitchTraceNode', + 'Terminator', + 'TestNoiseTraceNode', + 'TopLevelSimulation', + 'TouchstoneCouplingNode', + 'TunableTraceNode', + 'TwoRayPathLossCouplingNode', + 'TwoToneTraceNode', + 'TxBbEmissionNode', + 'TxHarmonicNode', + 'TxMeasNode', + 'TxNbEmissionNode', + 'TxSpectralProfEmitterNode', + 'TxSpectralProfNode', + 'TxSpurNode', + 'WalfischCouplingNode', + 'Waveform', + 'ReadOnlyAmplifier', + 'ReadOnlyAntennaNode', + 'ReadOnlyAntennaPassband', + 'ReadOnlyBand', + 'ReadOnlyBandFolder', + 'ReadOnlyCADNode', + 'ReadOnlyCable', + 'ReadOnlyCirculator', + 'ReadOnlyCouplingLinkNode', + 'ReadOnlyCouplingsNode', + 'ReadOnlyCustomCouplingNode', + 'ReadOnlyEmitSceneNode', + 'ReadOnlyErcegCouplingNode', + 'ReadOnlyFilter', + 'ReadOnlyFiveGChannelModel', + 'ReadOnlyHataCouplingNode', + 'ReadOnlyIndoorPropagationCouplingNode', + 'ReadOnlyIsolator', + 'ReadOnlyLogDistanceCouplingNode', + 'ReadOnlyMultiplexer', + 'ReadOnlyMultiplexerBand', + 'ReadOnlyPowerDivider', + 'ReadOnlyPropagationLossCouplingNode', + 'ReadOnlyRadioNode', + 'ReadOnlyRfSystemGroup', + 'ReadOnlyRxMeasNode', + 'ReadOnlyRxMixerProductNode', + 'ReadOnlyRxSaturationNode', + 'ReadOnlyRxSelectivityNode', + 'ReadOnlyRxSpurNode', + 'ReadOnlyRxSusceptibilityProfNode', + 'ReadOnlySamplingNode', + 'ReadOnlySceneGroupNode', + 'ReadOnlySolutionCouplingNode', + 'ReadOnlySolutionsNode', + 'ReadOnlyTR_Switch', + 'ReadOnlyTerminator', + 'ReadOnlyTouchstoneCouplingNode', + 'ReadOnlyTwoRayPathLossCouplingNode', + 'ReadOnlyTxBbEmissionNode', + 'ReadOnlyTxHarmonicNode', + 'ReadOnlyTxMeasNode', + 'ReadOnlyTxNbEmissionNode', + 'ReadOnlyTxSpectralProfEmitterNode', + 'ReadOnlyTxSpectralProfNode', + 'ReadOnlyTxSpurNode', + 'ReadOnlyWalfischCouplingNode', + 'ReadOnlyWaveform', ] From b4d064c9843316f5ab7b42df376d891e86c26e02 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 23 Apr 2025 20:23:04 +0000 Subject: [PATCH 42/86] CHORE: Auto fixes from pre-commit hooks --- .../emit_core/nodes/generated/Amplifier.py | 125 ++--- .../emit_core/nodes/generated/AntennaNode.py | 447 +++++++----------- .../nodes/generated/AntennaPassband.py | 74 ++- .../core/emit_core/nodes/generated/Band.py | 301 +++++------- .../emit_core/nodes/generated/BandFolder.py | 16 +- .../nodes/generated/BandTraceNode.py | 117 ++--- .../core/emit_core/nodes/generated/CADNode.py | 291 +++++------- .../core/emit_core/nodes/generated/Cable.py | 91 ++-- .../nodes/generated/CategoriesViewNode.py | 16 +- .../emit_core/nodes/generated/Circulator.py | 127 ++--- .../nodes/generated/CouplingLinkNode.py | 30 +- .../nodes/generated/CouplingTraceNode.py | 161 +++---- .../nodes/generated/CouplingsNode.py | 38 +- .../nodes/generated/CustomCouplingNode.py | 66 ++- .../nodes/generated/EmiPlotMarkerNode.py | 169 +++---- .../nodes/generated/EmitSceneNode.py | 45 +- .../nodes/generated/ErcegCouplingNode.py | 179 +++---- .../core/emit_core/nodes/generated/Filter.py | 207 ++++---- .../nodes/generated/FiveGChannelModel.py | 199 ++++---- .../nodes/generated/HataCouplingNode.py | 179 +++---- .../IndoorPropagationCouplingNode.py | 193 +++----- .../emit_core/nodes/generated/Isolator.py | 127 ++--- .../generated/LogDistanceCouplingNode.py | 187 +++----- .../nodes/generated/MPlexBandTraceNode.py | 105 ++-- .../emit_core/nodes/generated/Multiplexer.py | 73 ++- .../nodes/generated/MultiplexerBand.py | 115 ++--- .../nodes/generated/OutboardTraceNode.py | 109 ++--- .../generated/ParametricCouplingTraceNode.py | 113 ++--- .../nodes/generated/PlotMarkerNode.py | 179 +++---- .../emit_core/nodes/generated/PlotNode.py | 227 ++++----- .../emit_core/nodes/generated/PowerDivider.py | 129 +++-- .../nodes/generated/PowerTraceNode.py | 105 ++-- .../nodes/generated/ProfileTraceNode.py | 97 ++-- .../generated/PropagationLossCouplingNode.py | 171 +++---- .../emit_core/nodes/generated/RadioNode.py | 32 +- .../nodes/generated/ReadOnlyAmplifier.py | 49 +- .../nodes/generated/ReadOnlyAntennaNode.py | 191 ++++---- .../generated/ReadOnlyAntennaPassband.py | 32 +- .../emit_core/nodes/generated/ReadOnlyBand.py | 113 ++--- .../nodes/generated/ReadOnlyBandFolder.py | 16 +- .../nodes/generated/ReadOnlyCADNode.py | 111 ++--- .../nodes/generated/ReadOnlyCable.py | 43 +- .../nodes/generated/ReadOnlyCirculator.py | 55 ++- .../generated/ReadOnlyCouplingLinkNode.py | 22 +- .../nodes/generated/ReadOnlyCouplingsNode.py | 24 +- .../generated/ReadOnlyCustomCouplingNode.py | 40 +- .../nodes/generated/ReadOnlyEmitSceneNode.py | 29 +- .../generated/ReadOnlyErcegCouplingNode.py | 69 +-- .../nodes/generated/ReadOnlyFilter.py | 81 ++-- .../generated/ReadOnlyFiveGChannelModel.py | 77 +-- .../generated/ReadOnlyHataCouplingNode.py | 69 +-- .../ReadOnlyIndoorPropagationCouplingNode.py | 79 ++-- .../nodes/generated/ReadOnlyIsolator.py | 55 ++- .../ReadOnlyLogDistanceCouplingNode.py | 71 +-- .../nodes/generated/ReadOnlyMultiplexer.py | 43 +- .../generated/ReadOnlyMultiplexerBand.py | 47 +- .../nodes/generated/ReadOnlyPowerDivider.py | 55 ++- .../ReadOnlyPropagationLossCouplingNode.py | 65 +-- .../nodes/generated/ReadOnlyRadioNode.py | 28 +- .../nodes/generated/ReadOnlyRfSystemGroup.py | 20 +- .../nodes/generated/ReadOnlyRxMeasNode.py | 65 +-- .../generated/ReadOnlyRxMixerProductNode.py | 59 +-- .../generated/ReadOnlyRxSaturationNode.py | 16 +- .../generated/ReadOnlyRxSelectivityNode.py | 18 +- .../nodes/generated/ReadOnlyRxSpurNode.py | 29 +- .../ReadOnlyRxSusceptibilityProfNode.py | 55 ++- .../nodes/generated/ReadOnlySamplingNode.py | 47 +- .../nodes/generated/ReadOnlySceneGroupNode.py | 39 +- .../generated/ReadOnlySolutionCouplingNode.py | 26 +- .../nodes/generated/ReadOnlySolutionsNode.py | 18 +- .../nodes/generated/ReadOnlyTR_Switch.py | 51 +- .../nodes/generated/ReadOnlyTerminator.py | 39 +- .../ReadOnlyTouchstoneCouplingNode.py | 42 +- .../ReadOnlyTwoRayPathLossCouplingNode.py | 69 +-- .../generated/ReadOnlyTxBbEmissionNode.py | 27 +- .../nodes/generated/ReadOnlyTxHarmonicNode.py | 21 +- .../nodes/generated/ReadOnlyTxMeasNode.py | 32 +- .../generated/ReadOnlyTxNbEmissionNode.py | 25 +- .../ReadOnlyTxSpectralProfEmitterNode.py | 42 +- .../generated/ReadOnlyTxSpectralProfNode.py | 71 +-- .../nodes/generated/ReadOnlyTxSpurNode.py | 29 +- .../generated/ReadOnlyWalfischCouplingNode.py | 81 ++-- .../nodes/generated/ReadOnlyWaveform.py | 87 ++-- .../nodes/generated/ResultPlotNode.py | 233 ++++----- .../nodes/generated/RfSystemGroup.py | 30 +- .../emit_core/nodes/generated/RxMeasNode.py | 161 +++---- .../nodes/generated/RxMixerProductNode.py | 155 +++--- .../nodes/generated/RxSaturationNode.py | 20 +- .../nodes/generated/RxSelectivityNode.py | 26 +- .../emit_core/nodes/generated/RxSpurNode.py | 37 +- .../generated/RxSusceptibilityProfNode.py | 141 +++--- .../emit_core/nodes/generated/SamplingNode.py | 71 ++- .../nodes/generated/SceneGroupNode.py | 77 ++- .../nodes/generated/SelectivityTraceNode.py | 97 ++-- .../nodes/generated/SolutionCouplingNode.py | 42 +- .../nodes/generated/SolutionsNode.py | 22 +- .../nodes/generated/SpurTraceNode.py | 109 ++--- .../nodes/generated/TRSwitchTraceNode.py | 109 ++--- .../emit_core/nodes/generated/TR_Switch.py | 125 ++--- .../emit_core/nodes/generated/Terminator.py | 67 ++- .../nodes/generated/TestNoiseTraceNode.py | 165 +++---- .../nodes/generated/TopLevelSimulation.py | 16 +- .../nodes/generated/TouchstoneCouplingNode.py | 74 ++- .../nodes/generated/TunableTraceNode.py | 119 ++--- .../generated/TwoRayPathLossCouplingNode.py | 185 +++----- .../nodes/generated/TwoToneTraceNode.py | 165 +++---- .../nodes/generated/TxBbEmissionNode.py | 41 +- .../nodes/generated/TxHarmonicNode.py | 31 +- .../emit_core/nodes/generated/TxMeasNode.py | 56 +-- .../nodes/generated/TxNbEmissionNode.py | 41 +- .../generated/TxSpectralProfEmitterNode.py | 108 ++--- .../nodes/generated/TxSpectralProfNode.py | 201 ++++---- .../emit_core/nodes/generated/TxSpurNode.py | 37 +- .../nodes/generated/WalfischCouplingNode.py | 221 ++++----- .../emit_core/nodes/generated/Waveform.py | 231 ++++----- .../emit_core/nodes/generated/__init__.py | 318 +++++++------ 116 files changed, 4754 insertions(+), 6089 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index 5c6748d00fa..aea5f11422c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Amplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -48,13 +52,11 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -63,27 +65,23 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class AmplifierTypeOption(Enum): TRANSMIT_AMPLIFIER = "Transmit Amplifier" @@ -93,16 +91,14 @@ class AmplifierTypeOption(Enum): def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type "Configures the amplifier as a Tx or Rx amplifier." - " """ + " """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] - return val # type: ignore + return val # type: ignore @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Type={value.value}"]) @property def gain(self) -> float: @@ -111,13 +107,11 @@ def gain(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Gain") - return val # type: ignore + return val # type: ignore @gain.setter - def gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Gain={value}"]) + def gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Gain={value}"]) @property def center_frequency(self) -> float: @@ -127,14 +121,12 @@ def center_frequency(self) -> float: """ val = self._get_property("Center Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @center_frequency.setter - def center_frequency(self, value : float|str): + def center_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Center Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Frequency={value}"]) @property def bandwidth(self) -> float: @@ -144,14 +136,12 @@ def bandwidth(self) -> float: """ val = self._get_property("Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth.setter - def bandwidth(self, value : float|str): + def bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth={value}"]) @property def noise_figure(self) -> float: @@ -160,13 +150,11 @@ def noise_figure(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def saturation_level(self) -> float: @@ -176,14 +164,12 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @saturation_level.setter - def saturation_level(self, value : float|str): + def saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) @property def p1_db_point_ref_input(self) -> float: @@ -193,14 +179,12 @@ def p1_db_point_ref_input(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value : float|str): + def p1_db_point_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input={value}"]) @property def ip3_ref_input(self) -> float: @@ -210,14 +194,12 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def shape_factor(self) -> float: @@ -226,13 +208,11 @@ def shape_factor(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @shape_factor.setter - def shape_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Shape Factor={value}"]) + def shape_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) @property def reverse_isolation(self) -> float: @@ -241,13 +221,11 @@ def reverse_isolation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -256,11 +234,8 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py index 9a3ba79056d..eef0c1768b8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class AntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,15 +58,13 @@ def delete(self): def tags(self) -> str: """Tags "Space delimited list of tags for coupling selections." - " """ + " """ val = self._get_property("Tags") - return val # type: ignore + return val # type: ignore @tags.setter def tags(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tags={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tags={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -71,13 +73,13 @@ def show_relative_coordinates(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -86,13 +88,11 @@ def position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -101,13 +101,11 @@ def relative_position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -117,16 +115,14 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -135,13 +131,11 @@ def orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -150,13 +144,11 @@ def relative_orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def position_defined(self) -> bool: @@ -165,13 +157,11 @@ def position_defined(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Position Defined") - return val # type: ignore + return val # type: ignore @position_defined.setter def position_defined(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position Defined={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Defined={value}"]) @property def antenna_temperature(self) -> float: @@ -180,27 +170,23 @@ def antenna_temperature(self) -> float: "Value should be between 0 and 100000." """ val = self._get_property("Antenna Temperature") - return val # type: ignore + return val # type: ignore @antenna_temperature.setter - def antenna_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna Temperature={value}"]) + def antenna_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna Temperature={value}"]) @property def type(self): """Type "Defines the type of antenna." - " """ + " """ val = self._get_property("Type") - return val # type: ignore + return val # type: ignore @type.setter def type(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value}"]) @property def antenna_file(self) -> str: @@ -208,13 +194,11 @@ def antenna_file(self) -> str: "Value should be a full file path." """ val = self._get_property("Antenna File") - return val # type: ignore + return val # type: ignore @antenna_file.setter def antenna_file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna File={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna File={value}"]) @property def project_name(self) -> str: @@ -223,13 +207,11 @@ def project_name(self) -> str: "Value should be a full file path." """ val = self._get_property("Project Name") - return val # type: ignore + return val # type: ignore @project_name.setter def project_name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Project Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Project Name={value}"]) @property def peak_gain(self) -> float: @@ -238,13 +220,11 @@ def peak_gain(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Peak Gain") - return val # type: ignore + return val # type: ignore @peak_gain.setter - def peak_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Peak Gain={value}"]) + def peak_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Gain={value}"]) class BoresightOption(Enum): XAXIS = "+X Axis" @@ -255,16 +235,14 @@ class BoresightOption(Enum): def boresight(self) -> BoresightOption: """Boresight "Select peak beam direction in local coordinates." - " """ + " """ val = self._get_property("Boresight") val = self.BoresightOption[val] - return val # type: ignore + return val # type: ignore @boresight.setter def boresight(self, value: BoresightOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Boresight={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Boresight={value.value}"]) @property def vertical_beamwidth(self) -> float: @@ -273,13 +251,11 @@ def vertical_beamwidth(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("Vertical Beamwidth") - return val # type: ignore + return val # type: ignore @vertical_beamwidth.setter - def vertical_beamwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Beamwidth={value}"]) + def vertical_beamwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Beamwidth={value}"]) @property def horizontal_beamwidth(self) -> float: @@ -288,13 +264,11 @@ def horizontal_beamwidth(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("Horizontal Beamwidth") - return val # type: ignore + return val # type: ignore @horizontal_beamwidth.setter - def horizontal_beamwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Beamwidth={value}"]) + def horizontal_beamwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Beamwidth={value}"]) @property def extra_sidelobe(self) -> bool: @@ -303,13 +277,11 @@ def extra_sidelobe(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Extra Sidelobe") - return val # type: ignore + return val # type: ignore @extra_sidelobe.setter def extra_sidelobe(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Extra Sidelobe={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Extra Sidelobe={value}"]) @property def first_sidelobe_level(self) -> float: @@ -318,13 +290,11 @@ def first_sidelobe_level(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("First Sidelobe Level") - return val # type: ignore + return val # type: ignore @first_sidelobe_level.setter - def first_sidelobe_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Level={value}"]) + def first_sidelobe_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Level={value}"]) @property def first_sidelobe_vert_bw(self) -> float: @@ -333,13 +303,11 @@ def first_sidelobe_vert_bw(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("First Sidelobe Vert. BW") - return val # type: ignore + return val # type: ignore @first_sidelobe_vert_bw.setter - def first_sidelobe_vert_bw(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Vert. BW={value}"]) + def first_sidelobe_vert_bw(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Vert. BW={value}"]) @property def first_sidelobe_hor_bw(self) -> float: @@ -348,13 +316,11 @@ def first_sidelobe_hor_bw(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("First Sidelobe Hor. BW") - return val # type: ignore + return val # type: ignore @first_sidelobe_hor_bw.setter - def first_sidelobe_hor_bw(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Hor. BW={value}"]) + def first_sidelobe_hor_bw(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Hor. BW={value}"]) @property def outerbacklobe_level(self) -> float: @@ -363,13 +329,11 @@ def outerbacklobe_level(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Outer/Backlobe Level") - return val # type: ignore + return val # type: ignore @outerbacklobe_level.setter - def outerbacklobe_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Outer/Backlobe Level={value}"]) + def outerbacklobe_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Outer/Backlobe Level={value}"]) @property def resonant_frequency(self) -> float: @@ -379,14 +343,12 @@ def resonant_frequency(self) -> float: """ val = self._get_property("Resonant Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @resonant_frequency.setter - def resonant_frequency(self, value : float|str): + def resonant_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Resonant Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resonant Frequency={value}"]) @property def slot_length(self) -> float: @@ -396,14 +358,12 @@ def slot_length(self) -> float: """ val = self._get_property("Slot Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @slot_length.setter - def slot_length(self, value : float|str): + def slot_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Slot Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Slot Length={value}"]) @property def mouth_width(self) -> float: @@ -413,14 +373,12 @@ def mouth_width(self) -> float: """ val = self._get_property("Mouth Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_width.setter - def mouth_width(self, value : float|str): + def mouth_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Width={value}"]) @property def mouth_height(self) -> float: @@ -430,14 +388,12 @@ def mouth_height(self) -> float: """ val = self._get_property("Mouth Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_height.setter - def mouth_height(self, value : float|str): + def mouth_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Height={value}"]) @property def waveguide_width(self) -> float: @@ -447,14 +403,12 @@ def waveguide_width(self) -> float: """ val = self._get_property("Waveguide Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @waveguide_width.setter - def waveguide_width(self, value : float|str): + def waveguide_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Waveguide Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveguide Width={value}"]) @property def width_flare_half_angle(self) -> float: @@ -463,13 +417,11 @@ def width_flare_half_angle(self) -> float: "Value should be between 1 and 89.9." """ val = self._get_property("Width Flare Half-angle") - return val # type: ignore + return val # type: ignore @width_flare_half_angle.setter - def width_flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Width Flare Half-angle={value}"]) + def width_flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width Flare Half-angle={value}"]) @property def height_flare_half_angle(self) -> float: @@ -478,13 +430,11 @@ def height_flare_half_angle(self) -> float: "Value should be between 1 and 89.9." """ val = self._get_property("Height Flare Half-angle") - return val # type: ignore + return val # type: ignore @height_flare_half_angle.setter - def height_flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Height Flare Half-angle={value}"]) + def height_flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height Flare Half-angle={value}"]) @property def mouth_diameter(self) -> float: @@ -494,14 +444,12 @@ def mouth_diameter(self) -> float: """ val = self._get_property("Mouth Diameter") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_diameter.setter - def mouth_diameter(self, value : float|str): + def mouth_diameter(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Diameter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Diameter={value}"]) @property def flare_half_angle(self) -> float: @@ -510,13 +458,11 @@ def flare_half_angle(self) -> float: "Value should be between 1 and 89.9." """ val = self._get_property("Flare Half-angle") - return val # type: ignore + return val # type: ignore @flare_half_angle.setter - def flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Flare Half-angle={value}"]) + def flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flare Half-angle={value}"]) @property def vswr(self) -> float: @@ -525,13 +471,11 @@ def vswr(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @vswr.setter - def vswr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"VSWR={value}"]) + def vswr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) class AntennaPolarizationOption(Enum): VERTICAL = "Vertical" @@ -543,16 +487,16 @@ class AntennaPolarizationOption(Enum): def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] - return val # type: ignore + return val # type: ignore @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna Polarization={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Antenna Polarization={value.value}"] + ) class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" @@ -562,16 +506,14 @@ class CrossDipoleModeOption(Enum): def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode "Choose the Cross Dipole type." - " """ + " """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] - return val # type: ignore + return val # type: ignore @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Cross Dipole Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Cross Dipole Mode={value.value}"]) class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" @@ -581,16 +523,16 @@ class CrossDipolePolarizationOption(Enum): def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] - return val # type: ignore + return val # type: ignore @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Cross Dipole Polarization={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Cross Dipole Polarization={value.value}"] + ) @property def override_height(self) -> bool: @@ -599,13 +541,11 @@ def override_height(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Override Height") - return val # type: ignore + return val # type: ignore @override_height.setter def override_height(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Override Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Override Height={value}"]) @property def offset_height(self) -> float: @@ -615,14 +555,12 @@ def offset_height(self) -> float: """ val = self._get_property("Offset Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @offset_height.setter - def offset_height(self, value : float|str): + def offset_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Offset Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset Height={value}"]) @property def auto_height_offset(self) -> bool: @@ -631,13 +569,11 @@ def auto_height_offset(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Auto Height Offset") - return val # type: ignore + return val # type: ignore @auto_height_offset.setter def auto_height_offset(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Auto Height Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Auto Height Offset={value}"]) @property def conform__adjust_antenna(self) -> bool: @@ -646,13 +582,11 @@ def conform__adjust_antenna(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Conform / Adjust Antenna") - return val # type: ignore + return val # type: ignore @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform / Adjust Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform / Adjust Antenna={value}"]) @property def element_offset(self): @@ -661,13 +595,11 @@ def element_offset(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Element Offset") - return val # type: ignore + return val # type: ignore @element_offset.setter def element_offset(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Element Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Element Offset={value}"]) class ConformtoPlatformOption(Enum): NONE = "None" @@ -678,16 +610,16 @@ class ConformtoPlatformOption(Enum): def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform "Select method of automated conforming applied after Element Offset." - " """ + " """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] - return val # type: ignore + return val # type: ignore @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform to Platform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Conform to Platform={value.value}"] + ) class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" @@ -698,16 +630,14 @@ class ReferencePlaneOption(Enum): def reference_plane(self) -> ReferencePlaneOption: """Reference Plane "Select reference plane for determining original element heights." - " """ + " """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] - return val # type: ignore + return val # type: ignore @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reference Plane={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reference Plane={value.value}"]) @property def conform_element_orientation(self) -> bool: @@ -716,13 +646,13 @@ def conform_element_orientation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Conform Element Orientation") - return val # type: ignore + return val # type: ignore @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform Element Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Conform Element Orientation={value}"] + ) @property def show_axes(self) -> bool: @@ -731,13 +661,11 @@ def show_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def show_icon(self) -> bool: @@ -746,13 +674,11 @@ def show_icon(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Icon") - return val # type: ignore + return val # type: ignore @show_icon.setter def show_icon(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Icon={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Icon={value}"]) @property def size(self) -> float: @@ -761,13 +687,11 @@ def size(self) -> float: "Value should be between 0.001 and 1." """ val = self._get_property("Size") - return val # type: ignore + return val # type: ignore @size.setter - def size(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Size={value}"]) + def size(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Size={value}"]) @property def color(self): @@ -776,29 +700,27 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def el_sample_interval(self) -> float: """El Sample Interval "Space between elevation-angle samples of pattern." - " """ + " """ val = self._get_property("El Sample Interval") - return val # type: ignore + return val # type: ignore @property def az_sample_interval(self) -> float: """Az Sample Interval "Space between azimuth-angle samples of pattern." - " """ + " """ val = self._get_property("Az Sample Interval") - return val # type: ignore + return val # type: ignore @property def has_frequency_domain(self) -> bool: @@ -807,74 +729,74 @@ def has_frequency_domain(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Has Frequency Domain") - return val # type: ignore + return val # type: ignore @property def frequency_domain(self): """Frequency Domain "Frequency sample(s) defining antenna." - " """ + " """ val = self._get_property("Frequency Domain") - return val # type: ignore + return val # type: ignore @property def number_of_electric_sources(self) -> int: """Number of Electric Sources "Number of freestanding electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources "Number of freestanding magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources "Number of imaged, half-space radiating electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources "Number of imaged, half-space radiating magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def waveguide_height(self) -> float: """Waveguide Height "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." - " """ + " """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." - " """ + " """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." - " """ + " """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class SWEModeTruncationOption(Enum): DYNAMIC = "Dynamic" @@ -885,16 +807,16 @@ class SWEModeTruncationOption(Enum): def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation "Select the method for stability-enhancing truncation of spherical wave expansion terms." - " """ + " """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] - return val # type: ignore + return val # type: ignore @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SWE Mode Truncation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"SWE Mode Truncation={value.value}"] + ) @property def max_n_index(self) -> int: @@ -903,27 +825,23 @@ def max_n_index(self) -> int: "Value should be greater than 1." """ val = self._get_property("Max N Index") - return val # type: ignore + return val # type: ignore @max_n_index.setter def max_n_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max N Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max N Index={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) @property def show_composite_passband(self) -> bool: @@ -932,13 +850,11 @@ def show_composite_passband(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Composite Passband") - return val # type: ignore + return val # type: ignore @show_composite_passband.setter def show_composite_passband(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Composite Passband={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Composite Passband={value}"]) @property def use_phase_center(self) -> bool: @@ -947,21 +863,19 @@ def use_phase_center(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Phase Center") - return val # type: ignore + return val # type: ignore @use_phase_center.setter def use_phase_center(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Phase Center={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Phase Center={value}"]) @property def coordinate_systems(self) -> str: """Coordinate Systems "Specifies the coordinate system for the phase center of this antenna." - " """ + " """ val = self._get_property("Coordinate Systems") - return val # type: ignore + return val # type: ignore @property def phasecenterposition(self): @@ -970,7 +884,7 @@ def phasecenterposition(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("PhaseCenterPosition") - return val # type: ignore + return val # type: ignore @property def phasecenterorientation(self): @@ -979,5 +893,4 @@ def phasecenterorientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("PhaseCenterOrientation") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py index 08a40e0ba8e..64e74a7a302 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class AntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,7 +51,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -61,13 +64,11 @@ def passband_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Passband Loss") - return val # type: ignore + return val # type: ignore @passband_loss.setter - def passband_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Passband Loss={value}"]) + def passband_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Passband Loss={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -76,13 +77,11 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out of Band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out of Band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out of Band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -92,14 +91,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -109,14 +106,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -126,14 +121,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -143,26 +136,21 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index 2b26726460e..6920140c0a2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Band(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -47,15 +51,13 @@ def enabled(self, value: bool): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) @property def use_dd_1494_mode(self) -> bool: @@ -64,13 +66,11 @@ def use_dd_1494_mode(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use DD-1494 Mode") - return val # type: ignore + return val # type: ignore @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use DD-1494 Mode={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use DD-1494 Mode={value}"]) @property def use_emission_designator(self) -> bool: @@ -79,44 +79,40 @@ def use_emission_designator(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Emission Designator") - return val # type: ignore + return val # type: ignore @use_emission_designator.setter def use_emission_designator(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Emission Designator={value}"]) @property def emission_designator(self) -> str: """Emission Designator "Enter the Emission Designator to define the bandwidth and modulation." - " """ + " """ val = self._get_property("Emission Designator") - return val # type: ignore + return val # type: ignore @emission_designator.setter def emission_designator(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Emission Designator={value}"]) @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." - " """ + " """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def emit_modulation_type(self) -> str: """EMIT Modulation Type "Modulation based off the emission designator." - " """ + " """ val = self._get_property("EMIT Modulation Type") - return val # type: ignore + return val # type: ignore @property def override_emission_designator_bw(self) -> bool: @@ -125,13 +121,13 @@ def override_emission_designator_bw(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Override Emission Designator BW") - return val # type: ignore + return val # type: ignore @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Override Emission Designator BW={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Override Emission Designator BW={value}"] + ) @property def channel_bandwidth(self) -> float: @@ -141,14 +137,12 @@ def channel_bandwidth(self) -> float: """ val = self._get_property("Channel Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_bandwidth.setter - def channel_bandwidth(self, value : float|str): + def channel_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Bandwidth={value}"]) class ModulationOption(Enum): GENERIC = "Generic" @@ -167,16 +161,14 @@ class ModulationOption(Enum): def modulation(self) -> ModulationOption: """Modulation "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Modulation") val = self.ModulationOption[val] - return val # type: ignore + return val # type: ignore @modulation.setter def modulation(self, value: ModulationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation={value.value}"]) @property def max_modulating_freq(self) -> float: @@ -186,14 +178,12 @@ def max_modulating_freq(self) -> float: """ val = self._get_property("Max Modulating Freq.") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_modulating_freq.setter - def max_modulating_freq(self, value : float|str): + def max_modulating_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Modulating Freq.={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Modulating Freq.={value}"]) @property def modulation_index(self) -> float: @@ -202,13 +192,11 @@ def modulation_index(self) -> float: "Value should be between 0.01 and 1." """ val = self._get_property("Modulation Index") - return val # type: ignore + return val # type: ignore @modulation_index.setter - def modulation_index(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation Index={value}"]) + def modulation_index(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Index={value}"]) @property def freq_deviation(self) -> float: @@ -218,14 +206,12 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation.setter - def freq_deviation(self, value : float|str): + def freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) @property def bit_rate(self) -> float: @@ -235,14 +221,12 @@ def bit_rate(self) -> float: """ val = self._get_property("Bit Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @bit_rate.setter - def bit_rate(self, value : float|str): + def bit_rate(self, value: float | str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bit Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bit Rate={value}"]) @property def sidelobes(self) -> int: @@ -251,30 +235,26 @@ def sidelobes(self) -> int: "Value should be greater than 0." """ val = self._get_property("Sidelobes") - return val # type: ignore + return val # type: ignore @sidelobes.setter def sidelobes(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sidelobes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sidelobes={value}"]) @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ val = self._get_property("Freq. Deviation ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation_.setter - def freq_deviation_(self, value : float|str): + def freq_deviation_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation ={value}"]) class PSKTypeOption(Enum): BPSK = "BPSK" @@ -288,16 +268,14 @@ class PSKTypeOption(Enum): def psk_type(self) -> PSKTypeOption: """PSK Type "PSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] - return val # type: ignore + return val # type: ignore @psk_type.setter def psk_type(self, value: PSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"PSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"PSK Type={value.value}"]) class FSKTypeOption(Enum): FSK_2 = "FSK-2" @@ -308,16 +286,14 @@ class FSKTypeOption(Enum): def fsk_type(self) -> FSKTypeOption: """FSK Type "FSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] - return val # type: ignore + return val # type: ignore @fsk_type.setter def fsk_type(self, value: FSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FSK Type={value.value}"]) class QAMTypeOption(Enum): QAM_4 = "QAM-4" @@ -330,16 +306,14 @@ class QAMTypeOption(Enum): def qam_type(self) -> QAMTypeOption: """QAM Type "QAM modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] - return val # type: ignore + return val # type: ignore @qam_type.setter def qam_type(self, value: QAMTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"QAM Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"QAM Type={value.value}"]) class APSKTypeOption(Enum): APSK_4 = "APSK-4" @@ -352,16 +326,14 @@ class APSKTypeOption(Enum): def apsk_type(self) -> APSKTypeOption: """APSK Type "APSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] - return val # type: ignore + return val # type: ignore @apsk_type.setter def apsk_type(self, value: APSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"APSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"APSK Type={value.value}"]) @property def start_frequency(self) -> float: @@ -371,14 +343,12 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -388,14 +358,12 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -405,14 +373,12 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_spacing.setter - def channel_spacing(self, value : float|str): + def channel_spacing(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) @property def tx_offset(self) -> float: @@ -422,14 +388,12 @@ def tx_offset(self) -> float: """ val = self._get_property("Tx Offset") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @tx_offset.setter - def tx_offset(self, value : float|str): + def tx_offset(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Offset={value}"]) class RadarTypeOption(Enum): CW = "CW" @@ -442,16 +406,14 @@ class RadarTypeOption(Enum): def radar_type(self) -> RadarTypeOption: """Radar Type "Radar type: helps determine spectral profile." - " """ + " """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] - return val # type: ignore + return val # type: ignore @radar_type.setter def radar_type(self, value: RadarTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Radar Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radar Type={value.value}"]) @property def hopping_radar(self) -> bool: @@ -460,13 +422,11 @@ def hopping_radar(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Hopping Radar") - return val # type: ignore + return val # type: ignore @hopping_radar.setter def hopping_radar(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hopping Radar={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hopping Radar={value}"]) @property def post_october_2020_procurement(self) -> bool: @@ -475,13 +435,13 @@ def post_october_2020_procurement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Post October 2020 Procurement") - return val # type: ignore + return val # type: ignore @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Post October 2020 Procurement={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Post October 2020 Procurement={value}"] + ) @property def hop_range_min_freq(self) -> float: @@ -491,14 +451,12 @@ def hop_range_min_freq(self) -> float: """ val = self._get_property("Hop Range Min Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @hop_range_min_freq.setter - def hop_range_min_freq(self, value : float|str): + def hop_range_min_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hop Range Min Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Min Freq={value}"]) @property def hop_range_max_freq(self) -> float: @@ -508,14 +466,12 @@ def hop_range_max_freq(self) -> float: """ val = self._get_property("Hop Range Max Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @hop_range_max_freq.setter - def hop_range_max_freq(self, value : float|str): + def hop_range_max_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hop Range Max Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Max Freq={value}"]) @property def pulse_duration(self) -> float: @@ -525,14 +481,12 @@ def pulse_duration(self) -> float: """ val = self._get_property("Pulse Duration") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_duration.setter - def pulse_duration(self, value : float|str): + def pulse_duration(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Duration={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Duration={value}"]) @property def pulse_rise_time(self) -> float: @@ -542,14 +496,12 @@ def pulse_rise_time(self) -> float: """ val = self._get_property("Pulse Rise Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_rise_time.setter - def pulse_rise_time(self, value : float|str): + def pulse_rise_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Rise Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Rise Time={value}"]) @property def pulse_fall_time(self) -> float: @@ -559,14 +511,12 @@ def pulse_fall_time(self) -> float: """ val = self._get_property("Pulse Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_fall_time.setter - def pulse_fall_time(self, value : float|str): + def pulse_fall_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Fall Time={value}"]) @property def pulse_repetition_rate(self) -> float: @@ -575,13 +525,11 @@ def pulse_repetition_rate(self) -> float: "Value should be greater than 1." """ val = self._get_property("Pulse Repetition Rate") - return val # type: ignore + return val # type: ignore @pulse_repetition_rate.setter - def pulse_repetition_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Repetition Rate={value}"]) + def pulse_repetition_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Repetition Rate={value}"]) @property def number_of_chips(self) -> float: @@ -590,13 +538,11 @@ def number_of_chips(self) -> float: "Value should be greater than 1." """ val = self._get_property("Number of Chips") - return val # type: ignore + return val # type: ignore @number_of_chips.setter - def number_of_chips(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Chips={value}"]) + def number_of_chips(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Chips={value}"]) @property def pulse_compression_ratio(self) -> float: @@ -605,13 +551,11 @@ def pulse_compression_ratio(self) -> float: "Value should be greater than 1." """ val = self._get_property("Pulse Compression Ratio") - return val # type: ignore + return val # type: ignore @pulse_compression_ratio.setter - def pulse_compression_ratio(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Compression Ratio={value}"]) + def pulse_compression_ratio(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Compression Ratio={value}"]) @property def fm_chirp_period(self) -> float: @@ -621,14 +565,12 @@ def fm_chirp_period(self) -> float: """ val = self._get_property("FM Chirp Period") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @fm_chirp_period.setter - def fm_chirp_period(self, value : float|str): + def fm_chirp_period(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Chirp Period={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Chirp Period={value}"]) @property def fm_freq_deviation(self) -> float: @@ -638,14 +580,12 @@ def fm_freq_deviation(self) -> float: """ val = self._get_property("FM Freq Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @fm_freq_deviation.setter - def fm_freq_deviation(self, value : float|str): + def fm_freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Freq Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Deviation={value}"]) @property def fm_freq_dev_bandwidth(self) -> float: @@ -655,12 +595,9 @@ def fm_freq_dev_bandwidth(self) -> float: """ val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value : float|str): + def fm_freq_dev_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Freq Dev Bandwidth={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Dev Bandwidth={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py index 65242e7c8a1..4f0f26c1b0b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class BandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,4 +51,3 @@ def duplicate(self, new_name): def delete(self): """Delete this node""" self._delete() - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py index 02dda36abc2..9c4e3bc9d56 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class BandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,15 +54,13 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) class TxorRxOption(Enum): TX = "Tx" @@ -68,39 +70,35 @@ class TxorRxOption(Enum): def tx_or_rx(self) -> TxorRxOption: """Tx or Rx "Specifies whether the trace is a Tx or Rx channel." - " """ + " """ val = self._get_property("Tx or Rx") val = self.TxorRxOption[val] - return val # type: ignore + return val # type: ignore @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx or Rx={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx or Rx={value.value}"]) @property def channel_frequency(self): """Channel Frequency "Select band channel frequency to display." - " """ + " """ val = self._get_property("Channel Frequency") - return val # type: ignore + return val # type: ignore @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def visible(self) -> bool: @@ -109,13 +107,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -124,27 +120,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -158,16 +150,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -176,13 +166,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -191,13 +179,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -220,16 +206,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -238,13 +222,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -253,13 +235,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -268,13 +248,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -283,11 +261,8 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py index d026d15e3ba..99b433074ed 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class CADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,7 +57,7 @@ def file(self) -> str: "Value should be a full file path." """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore class ModelTypeOption(Enum): PLATE = "Plate" @@ -75,16 +79,14 @@ class ModelTypeOption(Enum): def model_type(self) -> ModelTypeOption: """Model Type "Select type of parametric model to create." - " """ + " """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] - return val # type: ignore + return val # type: ignore @model_type.setter def model_type(self, value: ModelTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Model Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Model Type={value.value}"]) @property def length(self) -> float: @@ -94,14 +96,12 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @length.setter - def length(self, value : float|str): + def length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) @property def width(self) -> float: @@ -111,14 +111,12 @@ def width(self) -> float: """ val = self._get_property("Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @width.setter - def width(self, value : float|str): + def width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width={value}"]) @property def height(self) -> float: @@ -128,14 +126,12 @@ def height(self) -> float: """ val = self._get_property("Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @height.setter - def height(self, value : float|str): + def height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height={value}"]) @property def angle(self) -> float: @@ -144,13 +140,11 @@ def angle(self) -> float: "Value should be between 0 and 360." """ val = self._get_property("Angle") - return val # type: ignore + return val # type: ignore @angle.setter - def angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Angle={value}"]) + def angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Angle={value}"]) @property def top_side(self) -> float: @@ -160,14 +154,12 @@ def top_side(self) -> float: """ val = self._get_property("Top Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @top_side.setter - def top_side(self, value : float|str): + def top_side(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Top Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Side={value}"]) @property def top_radius(self) -> float: @@ -177,14 +169,12 @@ def top_radius(self) -> float: """ val = self._get_property("Top Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @top_radius.setter - def top_radius(self, value : float|str): + def top_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Top Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Radius={value}"]) @property def side(self) -> float: @@ -194,14 +184,12 @@ def side(self) -> float: """ val = self._get_property("Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @side.setter - def side(self, value : float|str): + def side(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Side={value}"]) @property def radius(self) -> float: @@ -211,14 +199,12 @@ def radius(self) -> float: """ val = self._get_property("Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @radius.setter - def radius(self, value : float|str): + def radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radius={value}"]) @property def base_radius(self) -> float: @@ -228,14 +214,12 @@ def base_radius(self) -> float: """ val = self._get_property("Base Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @base_radius.setter - def base_radius(self, value : float|str): + def base_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Radius={value}"]) @property def center_radius(self) -> float: @@ -245,14 +229,12 @@ def center_radius(self) -> float: """ val = self._get_property("Center Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @center_radius.setter - def center_radius(self, value : float|str): + def center_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Center Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Radius={value}"]) @property def x_axis_ellipsoid_radius(self) -> float: @@ -262,14 +244,12 @@ def x_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("X Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value : float|str): + def x_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Axis Ellipsoid Radius={value}"]) @property def y_axis_ellipsoid_radius(self) -> float: @@ -279,14 +259,12 @@ def y_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Y Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value : float|str): + def y_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Axis Ellipsoid Radius={value}"]) @property def z_axis_ellipsoid_radius(self) -> float: @@ -296,14 +274,12 @@ def z_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Z Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value : float|str): + def z_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Z Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Z Axis Ellipsoid Radius={value}"]) @property def focal_length(self) -> float: @@ -313,30 +289,26 @@ def focal_length(self) -> float: """ val = self._get_property("Focal Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @focal_length.setter - def focal_length(self, value : float|str): + def focal_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Focal Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Focal Length={value}"]) @property def offset(self) -> float: """Offset "Offset of parabolic reflector." - " """ + " """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @offset.setter - def offset(self, value : float|str): + def offset(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset={value}"]) @property def x_direction_taper(self) -> float: @@ -345,13 +317,11 @@ def x_direction_taper(self) -> float: "Value should be greater than 0." """ val = self._get_property("X Direction Taper") - return val # type: ignore + return val # type: ignore @x_direction_taper.setter - def x_direction_taper(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X Direction Taper={value}"]) + def x_direction_taper(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Direction Taper={value}"]) @property def y_direction_taper(self) -> float: @@ -360,13 +330,11 @@ def y_direction_taper(self) -> float: "Value should be greater than 0." """ val = self._get_property("Y Direction Taper") - return val # type: ignore + return val # type: ignore @y_direction_taper.setter - def y_direction_taper(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y Direction Taper={value}"]) + def y_direction_taper(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Direction Taper={value}"]) @property def prism_direction(self): @@ -375,13 +343,11 @@ def prism_direction(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Prism Direction") - return val # type: ignore + return val # type: ignore @prism_direction.setter def prism_direction(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Prism Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Prism Direction={value}"]) @property def closed_top(self) -> bool: @@ -390,13 +356,11 @@ def closed_top(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Closed Top") - return val # type: ignore + return val # type: ignore @closed_top.setter def closed_top(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Closed Top={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Top={value}"]) @property def closed_base(self) -> bool: @@ -405,13 +369,11 @@ def closed_base(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Closed Base") - return val # type: ignore + return val # type: ignore @closed_base.setter def closed_base(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Closed Base={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Base={value}"]) @property def mesh_density(self) -> int: @@ -420,13 +382,11 @@ def mesh_density(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Mesh Density") - return val # type: ignore + return val # type: ignore @mesh_density.setter def mesh_density(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mesh Density={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Density={value}"]) @property def use_symmetric_mesh(self) -> bool: @@ -435,13 +395,11 @@ def use_symmetric_mesh(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Symmetric Mesh") - return val # type: ignore + return val # type: ignore @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Symmetric Mesh={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Symmetric Mesh={value}"]) class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -451,16 +409,14 @@ class MeshOptionOption(Enum): def mesh_option(self) -> MeshOptionOption: """Mesh Option "Select from different meshing options." - " """ + " """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] - return val # type: ignore + return val # type: ignore @mesh_option.setter def mesh_option(self, value: MeshOptionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mesh Option={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Option={value.value}"]) @property def coating_index(self) -> int: @@ -469,13 +425,11 @@ def coating_index(self) -> int: "Value should be between 0 and 100000." """ val = self._get_property("Coating Index") - return val # type: ignore + return val # type: ignore @coating_index.setter def coating_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Coating Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Coating Index={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -484,13 +438,13 @@ def show_relative_coordinates(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -499,13 +453,11 @@ def position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -514,13 +466,11 @@ def relative_position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -530,16 +480,14 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -548,13 +496,11 @@ def orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -563,13 +509,11 @@ def relative_orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def visible(self) -> bool: @@ -578,13 +522,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -596,16 +538,14 @@ class RenderModeOption(Enum): def render_mode(self) -> RenderModeOption: """Render Mode "Select drawing style for surfaces." - " """ + " """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] - return val # type: ignore + return val # type: ignore @render_mode.setter def render_mode(self, value: RenderModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Render Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Render Mode={value.value}"]) @property def show_axes(self) -> bool: @@ -614,13 +554,11 @@ def show_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def min(self): @@ -629,7 +567,7 @@ def min(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Min") - return val # type: ignore + return val # type: ignore @property def max(self): @@ -638,15 +576,15 @@ def max(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Max") - return val # type: ignore + return val # type: ignore @property def number_of_surfaces(self) -> int: """Number of Surfaces "Number of surfaces in the model." - " """ + " """ val = self._get_property("Number of Surfaces") - return val # type: ignore + return val # type: ignore @property def color(self): @@ -655,25 +593,20 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index b73627f525c..8af1d5e6f24 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Cable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -48,13 +52,11 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -63,27 +65,23 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -94,16 +92,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def length(self) -> float: @@ -113,14 +109,12 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @length.setter - def length(self, value : float|str): + def length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) @property def loss_per_length(self) -> float: @@ -129,13 +123,11 @@ def loss_per_length(self) -> float: "Value should be between 0 and 20." """ val = self._get_property("Loss Per Length") - return val # type: ignore + return val # type: ignore @loss_per_length.setter - def loss_per_length(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Loss Per Length={value}"]) + def loss_per_length(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Loss Per Length={value}"]) @property def measurement_length(self) -> float: @@ -145,14 +137,12 @@ def measurement_length(self) -> float: """ val = self._get_property("Measurement Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @measurement_length.setter - def measurement_length(self, value : float|str): + def measurement_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Length={value}"]) @property def resistive_loss_constant(self) -> float: @@ -161,13 +151,11 @@ def resistive_loss_constant(self) -> float: "Value should be between 0 and 2." """ val = self._get_property("Resistive Loss Constant") - return val # type: ignore + return val # type: ignore @resistive_loss_constant.setter - def resistive_loss_constant(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Resistive Loss Constant={value}"]) + def resistive_loss_constant(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resistive Loss Constant={value}"]) @property def dielectric_loss_constant(self) -> float: @@ -176,19 +164,16 @@ def dielectric_loss_constant(self) -> float: "Value should be between 0 and 1." """ val = self._get_property("Dielectric Loss Constant") - return val # type: ignore + return val # type: ignore @dielectric_loss_constant.setter - def dielectric_loss_constant(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Dielectric Loss Constant={value}"]) + def dielectric_loss_constant(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Dielectric Loss Constant={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py index 30d3308da3a..e6ebf15eefe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py @@ -1,30 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class CategoriesViewNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index d12b98db419..02f46d38986 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Circulator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -48,13 +52,11 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -63,27 +65,23 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -93,16 +91,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -112,16 +108,14 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the circulator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -130,13 +124,11 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -145,13 +137,11 @@ def finite_reverse_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -160,13 +150,11 @@ def reverse_isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -175,13 +163,11 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -190,13 +176,11 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -206,14 +190,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -223,14 +205,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -240,14 +220,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -257,20 +235,17 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py index 24ca7545abd..d3e63dddf25 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class CouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,26 +43,21 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def ports(self): """Ports "Maps each port in the link to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ports={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py index 75b43040b1b..fd42aa00a7b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class CouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -49,42 +53,36 @@ def delete(self): @property def transmitter(self) -> EmitNode: """Transmitter - " """ + " """ val = self._get_property("Transmitter") - return val # type: ignore + return val # type: ignore @transmitter.setter def transmitter(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Transmitter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Transmitter={value}"]) @property def receiver(self) -> EmitNode: """Receiver - " """ + " """ val = self._get_property("Receiver") - return val # type: ignore + return val # type: ignore @receiver.setter def receiver(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Receiver={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -93,13 +91,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -108,27 +104,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -142,16 +134,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -160,13 +150,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -175,13 +163,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -204,16 +190,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -222,13 +206,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -237,13 +219,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -252,13 +232,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -267,13 +245,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def highlight_regions(self) -> bool: @@ -282,13 +258,11 @@ def highlight_regions(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Highlight Regions") - return val # type: ignore + return val # type: ignore @highlight_regions.setter def highlight_regions(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Highlight Regions={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highlight Regions={value}"]) @property def show_region_labels(self) -> bool: @@ -297,13 +271,11 @@ def show_region_labels(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Region Labels") - return val # type: ignore + return val # type: ignore @show_region_labels.setter def show_region_labels(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Region Labels={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Region Labels={value}"]) @property def font(self): @@ -312,13 +284,11 @@ def font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -327,13 +297,11 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -342,13 +310,11 @@ def background_color(self): "Color should be in RGBA form: #AARRGGBB." """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -357,13 +323,11 @@ def border(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Border") - return val # type: ignore + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -372,13 +336,11 @@ def border_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -387,11 +349,8 @@ def border_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py index bf286bdbda4..1d24f4d8317 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class CouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -30,7 +33,7 @@ def __init__(self, oDesign, result_id, node_id): def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" - return self._import(file_name,"TouchstoneCoupling") + return self._import(file_name, "TouchstoneCoupling") def add_custom_coupling(self): """Add a new node to define custom coupling between antennas""" @@ -75,13 +78,11 @@ def minimum_allowed_coupling(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Minimum Allowed Coupling") - return val # type: ignore + return val # type: ignore @minimum_allowed_coupling.setter - def minimum_allowed_coupling(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minimum Allowed Coupling={value}"]) + def minimum_allowed_coupling(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Allowed Coupling={value}"]) @property def global_default_coupling(self) -> float: @@ -90,19 +91,16 @@ def global_default_coupling(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Global Default Coupling") - return val # type: ignore + return val # type: ignore @global_default_coupling.setter - def global_default_coupling(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Global Default Coupling={value}"]) + def global_default_coupling(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Global Default Coupling={value}"]) @property def antenna_tags(self) -> str: """Antenna Tags "All tags currently used by all antennas in the project." - " """ + " """ val = self._get_property("Antenna Tags") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py index c15679cc0ec..e24bb022f04 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class CustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def rename(self, new_name): """Rename this node""" @@ -51,11 +54,11 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Value (dB): + "Value (dB): " Value should be between -1000 and 0." """ return self._get_table_data() @@ -71,41 +74,35 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -114,13 +111,11 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -129,25 +124,20 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py index 1924dba4672..2860886dbaf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class EmiPlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,43 +57,39 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def attached(self): """Attached "Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False)." - " """ + " """ val = self._get_property("Attached") - return val # type: ignore + return val # type: ignore @attached.setter def attached(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) @property def position_x(self) -> float: """Position X "Position of the marker on the X-axis (frequency axis).." - " """ + " """ val = self._get_property("Position X") - return val # type: ignore + return val # type: ignore @property def position_y(self) -> float: """Position Y "Position of the marker on the Y-axis (result axis).." - " """ + " """ val = self._get_property("Position Y") - return val # type: ignore + return val # type: ignore @property def floating_label(self) -> bool: @@ -98,13 +98,11 @@ def floating_label(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Floating Label") - return val # type: ignore + return val # type: ignore @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -113,13 +111,11 @@ def position_from_left(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Position from Left") - return val # type: ignore + return val # type: ignore @position_from_left.setter - def position_from_left(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Left={value}"]) + def position_from_left(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -128,27 +124,23 @@ def position_from_top(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Position from Top") - return val # type: ignore + return val # type: ignore @position_from_top.setter - def position_from_top(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Top={value}"]) + def position_from_top(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) @property def text(self) -> str: """Text "Set the text of the label." - " """ + " """ val = self._get_property("Text") - return val # type: ignore + return val # type: ignore @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -159,16 +151,16 @@ class HorizontalPositionOption(Enum): def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position "Specify horizontal position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] - return val # type: ignore + return val # type: ignore @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Horizontal Position={value.value}"] + ) class VerticalPositionOption(Enum): TOP = "Top" @@ -179,16 +171,14 @@ class VerticalPositionOption(Enum): def vertical_position(self) -> VerticalPositionOption: """Vertical Position "Specify vertical position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] - return val # type: ignore + return val # type: ignore @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -199,16 +189,14 @@ class TextAlignmentOption(Enum): def text_alignment(self) -> TextAlignmentOption: """Text Alignment "Specify justification applied to multi-line text." - " """ + " """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] - return val # type: ignore + return val # type: ignore @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) @property def font(self): @@ -217,13 +205,11 @@ def font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -232,13 +218,11 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -247,13 +231,11 @@ def background_color(self): "Color should be in RGBA form: #AARRGGBB." """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -262,13 +244,11 @@ def border(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Border") - return val # type: ignore + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -277,13 +257,11 @@ def border_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -292,13 +270,11 @@ def border_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -322,16 +298,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Specify symbol displayed next to the label." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -340,13 +314,11 @@ def arrow_direction(self) -> int: "Value should be between -360 and 360." """ val = self._get_property("Arrow Direction") - return val # type: ignore + return val # type: ignore @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -355,13 +327,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -370,13 +340,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -385,13 +353,11 @@ def line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -400,11 +366,8 @@ def filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Filled") - return val # type: ignore + return val # type: ignore @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py index bbca182ed09..d6aded63eee 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class EmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,15 +41,13 @@ def add_group(self): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class GroundPlaneNormalOption(Enum): X_AXIS = "X Axis" @@ -56,30 +58,27 @@ class GroundPlaneNormalOption(Enum): def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal "Specifies the axis of the normal to the ground plane." - " """ + " """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] - return val # type: ignore + return val # type: ignore @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ground Plane Normal={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"] + ) @property def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." - " """ + " """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @gp_position_along_normal.setter - def gp_position_along_normal(self, value : float|str): + def gp_position_along_normal(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"GP Position Along Normal={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GP Position Along Normal={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py index 52050671170..20ee537d31d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,41 +57,35 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -96,13 +94,11 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -111,27 +107,23 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class TerrainCategoryOption(Enum): TYPE_A = "Type A" @@ -142,16 +134,14 @@ class TerrainCategoryOption(Enum): def terrain_category(self) -> TerrainCategoryOption: """Terrain Category "Specify the terrain category type for the Erceg model." - " """ + " """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] - return val # type: ignore + return val # type: ignore @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Terrain Category={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Terrain Category={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -160,13 +150,11 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -175,13 +163,11 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -190,13 +176,11 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -208,16 +192,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -226,13 +208,11 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -241,13 +221,11 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -256,13 +234,11 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -271,13 +247,11 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -286,13 +260,11 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -301,13 +273,11 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -316,13 +286,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -331,13 +301,11 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -346,13 +314,11 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -361,11 +327,10 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index e97764d26f2..16d3a30819b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Filter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -48,13 +52,11 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -63,27 +65,23 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -98,16 +96,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def insertion_loss(self) -> float: @@ -116,13 +112,11 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -131,13 +125,11 @@ def stop_band_attenuation(self) -> float: "Value should be less than 200." """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @stop_band_attenuation.setter - def stop_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -147,14 +139,12 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_pass_band.setter - def max_pass_band(self, value : float|str): + def max_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -164,14 +154,12 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_stop_band.setter - def min_stop_band(self, value : float|str): + def min_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -181,14 +169,12 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_stop_band.setter - def max_stop_band(self, value : float|str): + def max_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -198,14 +184,12 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_pass_band.setter - def min_pass_band(self, value : float|str): + def min_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -215,14 +199,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -232,14 +214,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -249,14 +229,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -266,116 +244,102 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Lower Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff_.setter - def lower_cutoff_(self, value : float|str): + def lower_cutoff_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff ={value}"]) @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Lower Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band_.setter - def lower_stop_band_(self, value : float|str): + def lower_stop_band_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band ={value}"]) @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Higher Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band_.setter - def higher_stop_band_(self, value : float|str): + def higher_stop_band_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band ={value}"]) @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Higher Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff_.setter - def higher_cutoff_(self, value : float|str): + def higher_cutoff_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff ={value}"]) @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency "Lowest tuned frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Lowest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lowest_tuned_frequency_.setter - def lowest_tuned_frequency_(self, value : float|str): + def lowest_tuned_frequency_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lowest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lowest Tuned Frequency ={value}"]) @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency "Highest tuned frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Highest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @highest_tuned_frequency_.setter - def highest_tuned_frequency_(self, value : float|str): + def highest_tuned_frequency_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Highest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highest Tuned Frequency ={value}"]) @property def percent_bandwidth(self) -> float: @@ -384,13 +348,11 @@ def percent_bandwidth(self) -> float: "Value should be between 0.001 and 100." """ val = self._get_property("Percent Bandwidth") - return val # type: ignore + return val # type: ignore @percent_bandwidth.setter - def percent_bandwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Percent Bandwidth={value}"]) + def percent_bandwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percent Bandwidth={value}"]) @property def shape_factor(self) -> float: @@ -399,19 +361,16 @@ def shape_factor(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @shape_factor.setter - def shape_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Shape Factor={value}"]) + def shape_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py index ff31d1fdbfb..9d44be0393e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class FiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,41 +57,35 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -96,13 +94,11 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -111,27 +107,23 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): URBAN_MICROCELL = "Urban Microcell" @@ -142,16 +134,14 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment for the 5G channel model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def los(self) -> bool: @@ -160,13 +150,11 @@ def los(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("LOS") - return val # type: ignore + return val # type: ignore @los.setter def los(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"LOS={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"LOS={value}"]) @property def include_bpl(self) -> bool: @@ -175,13 +163,11 @@ def include_bpl(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include BPL") - return val # type: ignore + return val # type: ignore @include_bpl.setter def include_bpl(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include BPL={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include BPL={value}"]) class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -191,16 +177,14 @@ class NYUBPLModelOption(Enum): def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model "Specify the NYU Building Penetration Loss model." - " """ + " """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] - return val # type: ignore + return val # type: ignore @nyu_bpl_model.setter def nyu_bpl_model(self, value: NYUBPLModelOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NYU BPL Model={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NYU BPL Model={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -209,13 +193,11 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -224,13 +206,11 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -239,13 +219,11 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -257,16 +235,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -275,13 +251,11 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -290,13 +264,11 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -305,13 +277,11 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -320,13 +290,11 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -335,13 +303,11 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -350,13 +316,11 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -365,13 +329,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -380,13 +344,11 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -395,13 +357,11 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -410,11 +370,10 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py index 52f4f653371..cee1ff01608 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class HataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,41 +57,35 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -96,13 +94,11 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -111,27 +107,23 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): LARGE_CITY = "Large City" @@ -143,16 +135,14 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Hata model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -161,13 +151,11 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -176,13 +164,11 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -191,13 +177,11 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -209,16 +193,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -227,13 +209,11 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -242,13 +222,11 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -257,13 +235,11 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -272,13 +248,11 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -287,13 +261,11 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -302,13 +274,11 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -317,13 +287,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -332,13 +302,11 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -347,13 +315,11 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -362,11 +328,10 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py index 9aef514d294..87f866cc66b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class IndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,13 +52,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Power Loss Coefficient: + "Power Loss Coefficient: " Value should be between 0 and 100." - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): " Value should be between 0 and 1000." """ return self._get_table_data() @@ -70,41 +74,35 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -113,13 +111,11 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -128,27 +124,23 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class BuildingTypeOption(Enum): RESIDENTIAL_APARTMENT = "Residential Apartment" @@ -161,16 +153,14 @@ class BuildingTypeOption(Enum): def building_type(self) -> BuildingTypeOption: """Building Type "Specify the building type for the Indoor Propagation model." - " """ + " """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] - return val # type: ignore + return val # type: ignore @building_type.setter def building_type(self, value: BuildingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Building Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Building Type={value.value}"]) @property def number_of_floors(self) -> int: @@ -179,13 +169,11 @@ def number_of_floors(self) -> int: "Value should be between 1 and 3." """ val = self._get_property("Number of Floors") - return val # type: ignore + return val # type: ignore @number_of_floors.setter def number_of_floors(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Floors={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Floors={value}"]) @property def custom_fading_margin(self) -> float: @@ -194,13 +182,11 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -209,13 +195,11 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -224,13 +208,11 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -242,16 +224,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -260,13 +240,11 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -275,13 +253,11 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -290,13 +266,11 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -305,13 +279,11 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -320,13 +292,11 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -335,13 +305,11 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -350,13 +318,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -365,13 +333,11 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -380,13 +346,11 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -395,11 +359,10 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index e9c6b5f075f..29a88a736da 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Isolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -48,13 +52,11 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -63,27 +65,23 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -93,16 +91,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -112,16 +108,14 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the isolator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -130,13 +124,11 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -145,13 +137,11 @@ def finite_reverse_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -160,13 +150,11 @@ def reverse_isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -175,13 +163,11 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -190,13 +176,11 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -206,14 +190,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -223,14 +205,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -240,14 +220,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -257,20 +235,17 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py index 155963d447c..b949363ed10 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class LogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,41 +57,35 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -96,13 +94,11 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -111,27 +107,23 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): FREE_SPACE = "Free Space" @@ -146,16 +138,14 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Log Distance model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def path_loss_exponent(self) -> float: @@ -164,13 +154,11 @@ def path_loss_exponent(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Path Loss Exponent") - return val # type: ignore + return val # type: ignore @path_loss_exponent.setter - def path_loss_exponent(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Path Loss Exponent={value}"]) + def path_loss_exponent(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Exponent={value}"]) @property def custom_fading_margin(self) -> float: @@ -179,13 +167,11 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -194,13 +180,11 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -209,13 +193,11 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -227,16 +209,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -245,13 +225,11 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -260,13 +238,11 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -275,13 +251,11 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -290,13 +264,11 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -305,13 +277,11 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -320,13 +290,11 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -335,13 +303,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -350,13 +318,11 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -365,13 +331,11 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -380,11 +344,10 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py index 00ef73e1230..1f0c10556ab 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class MPlexBandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,30 +56,26 @@ class PowerDirectionOption(Enum): @property def power_direction(self) -> PowerDirectionOption: """Power Direction - " """ + " """ val = self._get_property("Power Direction") val = self.PowerDirectionOption[val] - return val # type: ignore + return val # type: ignore @power_direction.setter def power_direction(self, value: PowerDirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Power Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Power Direction={value.value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -84,13 +84,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -99,27 +97,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -133,16 +127,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -151,13 +143,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -166,13 +156,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -195,16 +183,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -213,13 +199,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -228,13 +212,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -243,13 +225,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -258,11 +238,8 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index c658119455b..fcafe8a1abb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Multiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -52,13 +56,11 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,27 +69,23 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_PASS_BAND = "By Pass Band" @@ -97,16 +95,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -116,16 +112,14 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the multiplexer.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def flip_ports_vertically(self) -> bool: @@ -134,34 +128,29 @@ def flip_ports_vertically(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Flip Ports Vertically") - return val # type: ignore + return val # type: ignore @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Flip Ports Vertically={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flip Ports Vertically={value}"]) @property def ports(self): """Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ + " """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py index 1128e8a6a33..d5b1eb2ebb2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class MultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,16 +60,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def filename(self) -> str: @@ -74,13 +76,11 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def insertion_loss(self) -> float: @@ -89,13 +89,11 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -104,13 +102,11 @@ def stop_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @stop_band_attenuation.setter - def stop_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -120,14 +116,12 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_pass_band.setter - def max_pass_band(self, value : float|str): + def max_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -137,14 +131,12 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_stop_band.setter - def min_stop_band(self, value : float|str): + def min_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -154,14 +146,12 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_stop_band.setter - def max_stop_band(self, value : float|str): + def max_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -171,14 +161,12 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_pass_band.setter - def min_pass_band(self, value : float|str): + def min_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -188,14 +176,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -205,14 +191,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -222,14 +206,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -239,20 +221,17 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py index a453a9a91fd..82e1d973bc1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class OutboardTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,13 +57,11 @@ def input_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -68,27 +70,23 @@ def output_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -97,13 +95,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -112,27 +108,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -146,16 +138,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -164,13 +154,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -179,13 +167,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -208,16 +194,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -226,13 +210,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -241,13 +223,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -256,13 +236,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -271,11 +249,8 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py index bc1d2446fbc..3b1bb654ec7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ParametricCouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -49,42 +53,36 @@ def delete(self): @property def antenna_a(self) -> EmitNode: """Antenna A - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -93,13 +91,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -108,27 +104,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -142,16 +134,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -160,13 +150,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -175,13 +163,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -204,16 +190,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -222,13 +206,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -237,13 +219,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -252,13 +232,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -267,11 +245,8 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py index efb4451ac13..dff54df277c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,13 +57,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def attached(self) -> bool: @@ -68,41 +70,35 @@ def attached(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Attached") - return val # type: ignore + return val # type: ignore @attached.setter def attached(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) @property def position_x(self) -> float: """Position X "Position of the marker on the X-axis (frequency axis).." - " """ + " """ val = self._get_property("Position X") - return val # type: ignore + return val # type: ignore @position_x.setter - def position_x(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position X={value}"]) + def position_x(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position X={value}"]) @property def position_y(self) -> float: """Position Y "Position of the marker on the Y-axis (result axis).." - " """ + " """ val = self._get_property("Position Y") - return val # type: ignore + return val # type: ignore @position_y.setter - def position_y(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position Y={value}"]) + def position_y(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Y={value}"]) @property def floating_label(self) -> bool: @@ -111,13 +107,11 @@ def floating_label(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Floating Label") - return val # type: ignore + return val # type: ignore @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -126,13 +120,11 @@ def position_from_left(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Position from Left") - return val # type: ignore + return val # type: ignore @position_from_left.setter - def position_from_left(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Left={value}"]) + def position_from_left(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -141,27 +133,23 @@ def position_from_top(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Position from Top") - return val # type: ignore + return val # type: ignore @position_from_top.setter - def position_from_top(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Top={value}"]) + def position_from_top(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) @property def text(self) -> str: """Text "Set the text of the label." - " """ + " """ val = self._get_property("Text") - return val # type: ignore + return val # type: ignore @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -172,16 +160,16 @@ class HorizontalPositionOption(Enum): def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position "Specify horizontal position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] - return val # type: ignore + return val # type: ignore @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Horizontal Position={value.value}"] + ) class VerticalPositionOption(Enum): TOP = "Top" @@ -192,16 +180,14 @@ class VerticalPositionOption(Enum): def vertical_position(self) -> VerticalPositionOption: """Vertical Position "Specify vertical position of the label as compared to the symbol." - " """ + " """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] - return val # type: ignore + return val # type: ignore @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -212,16 +198,14 @@ class TextAlignmentOption(Enum): def text_alignment(self) -> TextAlignmentOption: """Text Alignment "Specify justification applied to multi-line text." - " """ + " """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] - return val # type: ignore + return val # type: ignore @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) @property def font(self): @@ -230,13 +214,11 @@ def font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -245,13 +227,11 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -260,13 +240,11 @@ def background_color(self): "Color should be in RGBA form: #AARRGGBB." """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -275,13 +253,11 @@ def border(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Border") - return val # type: ignore + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -290,13 +266,11 @@ def border_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -305,13 +279,11 @@ def border_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -335,16 +307,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Specify symbol displayed next to the label." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -353,13 +323,11 @@ def arrow_direction(self) -> int: "Value should be between -360 and 360." """ val = self._get_property("Arrow Direction") - return val # type: ignore + return val # type: ignore @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -368,13 +336,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -383,13 +349,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -398,13 +362,11 @@ def line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -413,11 +375,8 @@ def filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Filled") - return val # type: ignore + return val # type: ignore @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py index c79237d1c7c..06bdf80bd3a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,15 +57,13 @@ def delete(self): def title(self) -> str: """Title "Enter title at the top of the plot, room will be made for it." - " """ + " """ val = self._get_property("Title") - return val # type: ignore + return val # type: ignore @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) @property def title_font(self): @@ -70,13 +72,11 @@ def title_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Title Font") - return val # type: ignore + return val # type: ignore @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -85,13 +85,11 @@ def show_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Legend") - return val # type: ignore + return val # type: ignore @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) @property def legend_font(self): @@ -100,13 +98,11 @@ def legend_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Legend Font") - return val # type: ignore + return val # type: ignore @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) @property def display_cad_overlay(self) -> bool: @@ -115,13 +111,11 @@ def display_cad_overlay(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Display CAD Overlay") - return val # type: ignore + return val # type: ignore @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -130,27 +124,23 @@ def opacity(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Opacity") - return val # type: ignore + return val # type: ignore @opacity.setter - def opacity(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Opacity={value}"]) + def opacity(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset "Adjust vertical position of CAD model overlay." - " """ + " """ val = self._get_property("Vertical Offset") - return val # type: ignore + return val # type: ignore @vertical_offset.setter - def vertical_offset(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Offset={value}"]) + def vertical_offset(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -159,13 +149,11 @@ def range_axis_rotation(self) -> float: "Value should be between -180 and 180." """ val = self._get_property("Range Axis Rotation") - return val # type: ignore + return val # type: ignore @range_axis_rotation.setter - def range_axis_rotation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -174,69 +162,59 @@ def lock_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Lock Axes") - return val # type: ignore + return val # type: ignore @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min "Set lower extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Min") - return val # type: ignore + return val # type: ignore @x_axis_min.setter - def x_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Min={value}"]) + def x_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max "Set upper extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Max") - return val # type: ignore + return val # type: ignore @x_axis_max.setter - def x_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Max={value}"]) + def x_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min "Set lower extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Min") - return val # type: ignore + return val # type: ignore @y_axis_min.setter - def y_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Min={value}"]) + def y_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max "Set upper extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Max") - return val # type: ignore + return val # type: ignore @y_axis_max.setter - def y_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Max={value}"]) + def y_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -245,13 +223,11 @@ def y_axis_range(self) -> float: "Value should be greater than 0." """ val = self._get_property("Y-axis Range") - return val # type: ignore + return val # type: ignore @y_axis_range.setter - def y_axis_range(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Range={value}"]) + def y_axis_range(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -260,13 +236,11 @@ def max_major_ticks_x(self) -> int: "Value should be between 1 and 30." """ val = self._get_property("Max Major Ticks X") - return val # type: ignore + return val # type: ignore @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -275,13 +249,11 @@ def max_minor_ticks_x(self) -> int: "Value should be between 0 and 100." """ val = self._get_property("Max Minor Ticks X") - return val # type: ignore + return val # type: ignore @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -290,13 +262,11 @@ def max_major_ticks_y(self) -> int: "Value should be between 1 and 30." """ val = self._get_property("Max Major Ticks Y") - return val # type: ignore + return val # type: ignore @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -305,13 +275,11 @@ def max_minor_ticks_y(self) -> int: "Value should be between 0 and 100." """ val = self._get_property("Max Minor Ticks Y") - return val # type: ignore + return val # type: ignore @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -320,13 +288,11 @@ def axis_label_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Axis Label Font") - return val # type: ignore + return val # type: ignore @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -335,13 +301,11 @@ def axis_tick_label_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Axis Tick Label Font") - return val # type: ignore + return val # type: ignore @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -355,16 +319,16 @@ class MajorGridLineStyleOption(Enum): def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style "Select line style of major-tick grid lines." - " """ + " """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] + ) @property def major_grid_color(self): @@ -373,13 +337,11 @@ def major_grid_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Major Grid Color") - return val # type: ignore + return val # type: ignore @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -393,16 +355,16 @@ class MinorGridLineStyleOption(Enum): def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style "Select line style of minor-tick grid lines." - " """ + " """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] + ) @property def minor_grid_color(self): @@ -411,13 +373,11 @@ def minor_grid_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Minor Grid Color") - return val # type: ignore + return val # type: ignore @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -426,13 +386,11 @@ def background_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -444,16 +402,16 @@ class BBPowerforPlotsUnitOption(Enum): def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit "Units to use for plotting broadband power densities." - " """ + " """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] - return val # type: ignore + return val # type: ignore @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power for Plots Unit={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] + ) @property def bb_power_bandwidth(self) -> float: @@ -463,14 +421,12 @@ def bb_power_bandwidth(self) -> float: """ val = self._get_property("BB Power Bandwidth") val = self._convert_from_internal_units(float(val), "") - return val # type: ignore + return val # type: ignore @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value : float|str): + def bb_power_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -479,11 +435,8 @@ def log_scale(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Log Scale") - return val # type: ignore + return val # type: ignore @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Log Scale={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py index 42e38d66fba..7d0d9f2891e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -48,13 +52,11 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -63,27 +65,23 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -94,16 +92,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class OrientationOption(Enum): DIVIDER = "Divider" @@ -113,16 +109,14 @@ class OrientationOption(Enum): def orientation(self) -> OrientationOption: """Orientation "Defines the orientation of the Power Divider.." - " """ + " """ val = self._get_property("Orientation") val = self.OrientationOption[val] - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value: OrientationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value.value}"]) @property def insertion_loss_above_ideal(self) -> float: @@ -131,13 +125,13 @@ def insertion_loss_above_ideal(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss Above Ideal") - return val # type: ignore + return val # type: ignore @insertion_loss_above_ideal.setter - def insertion_loss_above_ideal(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss Above Ideal={value}"]) + def insertion_loss_above_ideal(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Insertion Loss Above Ideal={value}"] + ) @property def finite_isolation(self) -> bool: @@ -146,13 +140,11 @@ def finite_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -161,13 +153,11 @@ def isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @isolation.setter - def isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Isolation={value}"]) + def isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -176,13 +166,11 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -191,13 +179,11 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -207,14 +193,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -224,14 +208,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -241,14 +223,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -258,20 +238,17 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py index d7fc805b1ed..8a714f28ff1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PowerTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,30 +58,26 @@ class DirectionOption(Enum): def direction(self) -> DirectionOption: """Direction "Direction of power flow (towards or away from the transmitter) to plot." - " """ + " """ val = self._get_property("Direction") val = self.DirectionOption[val] - return val # type: ignore + return val # type: ignore @direction.setter def direction(self, value: DirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Direction={value.value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -86,13 +86,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -101,27 +99,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -135,16 +129,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -153,13 +145,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -168,13 +158,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -197,16 +185,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -215,13 +201,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -230,13 +214,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -245,13 +227,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -260,11 +240,8 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py index 9b657eed74a..be6b2e511c1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ProfileTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,15 +54,13 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -67,13 +69,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -82,27 +82,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -116,16 +112,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -134,13 +128,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -149,13 +141,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -178,16 +168,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -196,13 +184,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -211,13 +197,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -226,13 +210,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -241,11 +223,8 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py index bfbca72b70f..7a564c099ce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,41 +57,35 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -96,13 +94,11 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -111,27 +107,23 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def custom_fading_margin(self) -> float: @@ -140,13 +132,11 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -155,13 +145,11 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -170,13 +158,11 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -188,16 +174,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -206,13 +190,11 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -221,13 +203,11 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -236,13 +216,11 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -251,13 +229,11 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -266,13 +242,11 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -281,13 +255,11 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -296,13 +268,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -311,13 +283,11 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -326,13 +296,11 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -341,11 +309,10 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py index cf8bf5b787a..04e90c60325 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class RadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -51,11 +54,11 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Name: - " "Type: - " """ + "Name: + " "Type: + " """ return self._get_table_data() @table_data.setter @@ -66,13 +69,10 @@ def table_data(self, value): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py index e8ee1ef23c6..b0ec8ddd714 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyAmplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -36,7 +40,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -45,15 +49,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class AmplifierTypeOption(Enum): TRANSMIT_AMPLIFIER = "Transmit Amplifier" @@ -63,10 +67,10 @@ class AmplifierTypeOption(Enum): def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type "Configures the amplifier as a Tx or Rx amplifier." - " """ + " """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] - return val # type: ignore + return val # type: ignore @property def gain(self) -> float: @@ -75,7 +79,7 @@ def gain(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Gain") - return val # type: ignore + return val # type: ignore @property def center_frequency(self) -> float: @@ -85,7 +89,7 @@ def center_frequency(self) -> float: """ val = self._get_property("Center Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def bandwidth(self) -> float: @@ -95,7 +99,7 @@ def bandwidth(self) -> float: """ val = self._get_property("Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: @@ -104,7 +108,7 @@ def noise_figure(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def saturation_level(self) -> float: @@ -114,7 +118,7 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input(self) -> float: @@ -124,7 +128,7 @@ def p1_db_point_ref_input(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -134,7 +138,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def shape_factor(self) -> float: @@ -143,7 +147,7 @@ def shape_factor(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -152,7 +156,7 @@ def reverse_isolation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -161,5 +165,4 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py index 8c422a0a67f..424bd800fde 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyAntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,9 +42,9 @@ def parent(self): def tags(self) -> str: """Tags "Space delimited list of tags for coupling selections." - " """ + " """ val = self._get_property("Tags") - return val # type: ignore + return val # type: ignore @property def show_relative_coordinates(self) -> bool: @@ -49,7 +53,7 @@ def show_relative_coordinates(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @property def position(self): @@ -58,7 +62,7 @@ def position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): @@ -67,7 +71,7 @@ def relative_position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -77,10 +81,10 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @property def orientation(self): @@ -89,7 +93,7 @@ def orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): @@ -98,7 +102,7 @@ def relative_orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def position_defined(self) -> bool: @@ -107,7 +111,7 @@ def position_defined(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Position Defined") - return val # type: ignore + return val # type: ignore @property def antenna_temperature(self) -> float: @@ -116,15 +120,15 @@ def antenna_temperature(self) -> float: "Value should be between 0 and 100000." """ val = self._get_property("Antenna Temperature") - return val # type: ignore + return val # type: ignore @property def type(self): """Type "Defines the type of antenna." - " """ + " """ val = self._get_property("Type") - return val # type: ignore + return val # type: ignore @property def antenna_file(self) -> str: @@ -132,7 +136,7 @@ def antenna_file(self) -> str: "Value should be a full file path." """ val = self._get_property("Antenna File") - return val # type: ignore + return val # type: ignore @property def project_name(self) -> str: @@ -141,7 +145,7 @@ def project_name(self) -> str: "Value should be a full file path." """ val = self._get_property("Project Name") - return val # type: ignore + return val # type: ignore @property def peak_gain(self) -> float: @@ -150,7 +154,7 @@ def peak_gain(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Peak Gain") - return val # type: ignore + return val # type: ignore class BoresightOption(Enum): XAXIS = "+X Axis" @@ -161,10 +165,10 @@ class BoresightOption(Enum): def boresight(self) -> BoresightOption: """Boresight "Select peak beam direction in local coordinates." - " """ + " """ val = self._get_property("Boresight") val = self.BoresightOption[val] - return val # type: ignore + return val # type: ignore @property def vertical_beamwidth(self) -> float: @@ -173,7 +177,7 @@ def vertical_beamwidth(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("Vertical Beamwidth") - return val # type: ignore + return val # type: ignore @property def horizontal_beamwidth(self) -> float: @@ -182,7 +186,7 @@ def horizontal_beamwidth(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("Horizontal Beamwidth") - return val # type: ignore + return val # type: ignore @property def extra_sidelobe(self) -> bool: @@ -191,7 +195,7 @@ def extra_sidelobe(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Extra Sidelobe") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_level(self) -> float: @@ -200,7 +204,7 @@ def first_sidelobe_level(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("First Sidelobe Level") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_vert_bw(self) -> float: @@ -209,7 +213,7 @@ def first_sidelobe_vert_bw(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("First Sidelobe Vert. BW") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_hor_bw(self) -> float: @@ -218,7 +222,7 @@ def first_sidelobe_hor_bw(self) -> float: "Value should be between 0.1 and 360." """ val = self._get_property("First Sidelobe Hor. BW") - return val # type: ignore + return val # type: ignore @property def outerbacklobe_level(self) -> float: @@ -227,7 +231,7 @@ def outerbacklobe_level(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Outer/Backlobe Level") - return val # type: ignore + return val # type: ignore @property def resonant_frequency(self) -> float: @@ -237,7 +241,7 @@ def resonant_frequency(self) -> float: """ val = self._get_property("Resonant Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def slot_length(self) -> float: @@ -247,7 +251,7 @@ def slot_length(self) -> float: """ val = self._get_property("Slot Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def mouth_width(self) -> float: @@ -257,7 +261,7 @@ def mouth_width(self) -> float: """ val = self._get_property("Mouth Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def mouth_height(self) -> float: @@ -267,7 +271,7 @@ def mouth_height(self) -> float: """ val = self._get_property("Mouth Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_width(self) -> float: @@ -277,7 +281,7 @@ def waveguide_width(self) -> float: """ val = self._get_property("Waveguide Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def width_flare_half_angle(self) -> float: @@ -286,7 +290,7 @@ def width_flare_half_angle(self) -> float: "Value should be between 1 and 89.9." """ val = self._get_property("Width Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def height_flare_half_angle(self) -> float: @@ -295,7 +299,7 @@ def height_flare_half_angle(self) -> float: "Value should be between 1 and 89.9." """ val = self._get_property("Height Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def mouth_diameter(self) -> float: @@ -305,7 +309,7 @@ def mouth_diameter(self) -> float: """ val = self._get_property("Mouth Diameter") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def flare_half_angle(self) -> float: @@ -314,7 +318,7 @@ def flare_half_angle(self) -> float: "Value should be between 1 and 89.9." """ val = self._get_property("Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def vswr(self) -> float: @@ -323,7 +327,7 @@ def vswr(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore class AntennaPolarizationOption(Enum): VERTICAL = "Vertical" @@ -335,10 +339,10 @@ class AntennaPolarizationOption(Enum): def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] - return val # type: ignore + return val # type: ignore class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" @@ -348,10 +352,10 @@ class CrossDipoleModeOption(Enum): def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode "Choose the Cross Dipole type." - " """ + " """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] - return val # type: ignore + return val # type: ignore class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" @@ -361,10 +365,10 @@ class CrossDipolePolarizationOption(Enum): def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization "Choose local-coordinates polarization along boresight." - " """ + " """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] - return val # type: ignore + return val # type: ignore @property def override_height(self) -> bool: @@ -373,7 +377,7 @@ def override_height(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Override Height") - return val # type: ignore + return val # type: ignore @property def offset_height(self) -> float: @@ -383,7 +387,7 @@ def offset_height(self) -> float: """ val = self._get_property("Offset Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def auto_height_offset(self) -> bool: @@ -392,7 +396,7 @@ def auto_height_offset(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Auto Height Offset") - return val # type: ignore + return val # type: ignore @property def conform__adjust_antenna(self) -> bool: @@ -401,7 +405,7 @@ def conform__adjust_antenna(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Conform / Adjust Antenna") - return val # type: ignore + return val # type: ignore @property def element_offset(self): @@ -410,7 +414,7 @@ def element_offset(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Element Offset") - return val # type: ignore + return val # type: ignore class ConformtoPlatformOption(Enum): NONE = "None" @@ -421,10 +425,10 @@ class ConformtoPlatformOption(Enum): def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform "Select method of automated conforming applied after Element Offset." - " """ + " """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] - return val # type: ignore + return val # type: ignore class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" @@ -435,10 +439,10 @@ class ReferencePlaneOption(Enum): def reference_plane(self) -> ReferencePlaneOption: """Reference Plane "Select reference plane for determining original element heights." - " """ + " """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] - return val # type: ignore + return val # type: ignore @property def conform_element_orientation(self) -> bool: @@ -447,7 +451,7 @@ def conform_element_orientation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Conform Element Orientation") - return val # type: ignore + return val # type: ignore @property def show_axes(self) -> bool: @@ -456,7 +460,7 @@ def show_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @property def show_icon(self) -> bool: @@ -465,7 +469,7 @@ def show_icon(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Icon") - return val # type: ignore + return val # type: ignore @property def size(self) -> float: @@ -474,7 +478,7 @@ def size(self) -> float: "Value should be between 0.001 and 1." """ val = self._get_property("Size") - return val # type: ignore + return val # type: ignore @property def color(self): @@ -483,23 +487,23 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @property def el_sample_interval(self) -> float: """El Sample Interval "Space between elevation-angle samples of pattern." - " """ + " """ val = self._get_property("El Sample Interval") - return val # type: ignore + return val # type: ignore @property def az_sample_interval(self) -> float: """Az Sample Interval "Space between azimuth-angle samples of pattern." - " """ + " """ val = self._get_property("Az Sample Interval") - return val # type: ignore + return val # type: ignore @property def has_frequency_domain(self) -> bool: @@ -508,74 +512,74 @@ def has_frequency_domain(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Has Frequency Domain") - return val # type: ignore + return val # type: ignore @property def frequency_domain(self): """Frequency Domain "Frequency sample(s) defining antenna." - " """ + " """ val = self._get_property("Frequency Domain") - return val # type: ignore + return val # type: ignore @property def number_of_electric_sources(self) -> int: """Number of Electric Sources "Number of freestanding electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources "Number of freestanding magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources "Number of imaged, half-space radiating electric current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources "Number of imaged, half-space radiating magnetic current sources defining antenna." - " """ + " """ val = self._get_property("Number of Imaged Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def waveguide_height(self) -> float: """Waveguide Height "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." - " """ + " """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency "Implied lowest operating frequency of pyramidal horn antenna." - " """ + " """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency "Implied lowest operating frequency of conical horn antenna." - " """ + " """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class SWEModeTruncationOption(Enum): DYNAMIC = "Dynamic" @@ -586,10 +590,10 @@ class SWEModeTruncationOption(Enum): def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation "Select the method for stability-enhancing truncation of spherical wave expansion terms." - " """ + " """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] - return val # type: ignore + return val # type: ignore @property def max_n_index(self) -> int: @@ -598,15 +602,15 @@ def max_n_index(self) -> int: "Value should be greater than 1." """ val = self._get_property("Max N Index") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @property def show_composite_passband(self) -> bool: @@ -615,7 +619,7 @@ def show_composite_passband(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Composite Passband") - return val # type: ignore + return val # type: ignore @property def use_phase_center(self) -> bool: @@ -624,15 +628,15 @@ def use_phase_center(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Phase Center") - return val # type: ignore + return val # type: ignore @property def coordinate_systems(self) -> str: """Coordinate Systems "Specifies the coordinate system for the phase center of this antenna." - " """ + " """ val = self._get_property("Coordinate Systems") - return val # type: ignore + return val # type: ignore @property def phasecenterposition(self): @@ -641,7 +645,7 @@ def phasecenterposition(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("PhaseCenterPosition") - return val # type: ignore + return val # type: ignore @property def phasecenterorientation(self): @@ -650,5 +654,4 @@ def phasecenterorientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("PhaseCenterOrientation") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py index 31e7882a5a7..0baff9b34cb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyAntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +43,7 @@ def passband_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Passband Loss") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -49,7 +52,7 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out of Band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -59,7 +62,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -69,7 +72,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -79,7 +82,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -89,13 +92,12 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py index 780bc87cad1..93abd18712d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,9 +42,9 @@ def parent(self): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @property def use_dd_1494_mode(self) -> bool: @@ -49,7 +53,7 @@ def use_dd_1494_mode(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use DD-1494 Mode") - return val # type: ignore + return val # type: ignore @property def use_emission_designator(self) -> bool: @@ -58,32 +62,32 @@ def use_emission_designator(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Emission Designator") - return val # type: ignore + return val # type: ignore @property def emission_designator(self) -> str: """Emission Designator "Enter the Emission Designator to define the bandwidth and modulation." - " """ + " """ val = self._get_property("Emission Designator") - return val # type: ignore + return val # type: ignore @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW "Channel Bandwidth based off the emission designator." - " """ + " """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def emit_modulation_type(self) -> str: """EMIT Modulation Type "Modulation based off the emission designator." - " """ + " """ val = self._get_property("EMIT Modulation Type") - return val # type: ignore + return val # type: ignore @property def override_emission_designator_bw(self) -> bool: @@ -92,7 +96,7 @@ def override_emission_designator_bw(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Override Emission Designator BW") - return val # type: ignore + return val # type: ignore @property def channel_bandwidth(self) -> float: @@ -102,7 +106,7 @@ def channel_bandwidth(self) -> float: """ val = self._get_property("Channel Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class ModulationOption(Enum): GENERIC = "Generic" @@ -121,10 +125,10 @@ class ModulationOption(Enum): def modulation(self) -> ModulationOption: """Modulation "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Modulation") val = self.ModulationOption[val] - return val # type: ignore + return val # type: ignore @property def max_modulating_freq(self) -> float: @@ -134,7 +138,7 @@ def max_modulating_freq(self) -> float: """ val = self._get_property("Max Modulating Freq.") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def modulation_index(self) -> float: @@ -143,7 +147,7 @@ def modulation_index(self) -> float: "Value should be between 0.01 and 1." """ val = self._get_property("Modulation Index") - return val # type: ignore + return val # type: ignore @property def freq_deviation(self) -> float: @@ -153,7 +157,7 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def bit_rate(self) -> float: @@ -163,7 +167,7 @@ def bit_rate(self) -> float: """ val = self._get_property("Bit Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @property def sidelobes(self) -> int: @@ -172,17 +176,17 @@ def sidelobes(self) -> int: "Value should be greater than 0." """ val = self._get_property("Sidelobes") - return val # type: ignore + return val # type: ignore @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation "FSK frequency deviation: helps determine spectral profile." "Value should be greater than 1." """ val = self._get_property("Freq. Deviation ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class PSKTypeOption(Enum): BPSK = "BPSK" @@ -196,10 +200,10 @@ class PSKTypeOption(Enum): def psk_type(self) -> PSKTypeOption: """PSK Type "PSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] - return val # type: ignore + return val # type: ignore class FSKTypeOption(Enum): FSK_2 = "FSK-2" @@ -210,10 +214,10 @@ class FSKTypeOption(Enum): def fsk_type(self) -> FSKTypeOption: """FSK Type "FSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] - return val # type: ignore + return val # type: ignore class QAMTypeOption(Enum): QAM_4 = "QAM-4" @@ -226,10 +230,10 @@ class QAMTypeOption(Enum): def qam_type(self) -> QAMTypeOption: """QAM Type "QAM modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] - return val # type: ignore + return val # type: ignore class APSKTypeOption(Enum): APSK_4 = "APSK-4" @@ -242,10 +246,10 @@ class APSKTypeOption(Enum): def apsk_type(self) -> APSKTypeOption: """APSK Type "APSK modulation order: helps determine spectral profile." - " """ + " """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -255,7 +259,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -265,7 +269,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def channel_spacing(self) -> float: @@ -275,7 +279,7 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def tx_offset(self) -> float: @@ -285,7 +289,7 @@ def tx_offset(self) -> float: """ val = self._get_property("Tx Offset") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class RadarTypeOption(Enum): CW = "CW" @@ -298,10 +302,10 @@ class RadarTypeOption(Enum): def radar_type(self) -> RadarTypeOption: """Radar Type "Radar type: helps determine spectral profile." - " """ + " """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] - return val # type: ignore + return val # type: ignore @property def hopping_radar(self) -> bool: @@ -310,7 +314,7 @@ def hopping_radar(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Hopping Radar") - return val # type: ignore + return val # type: ignore @property def post_october_2020_procurement(self) -> bool: @@ -319,7 +323,7 @@ def post_october_2020_procurement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Post October 2020 Procurement") - return val # type: ignore + return val # type: ignore @property def hop_range_min_freq(self) -> float: @@ -329,7 +333,7 @@ def hop_range_min_freq(self) -> float: """ val = self._get_property("Hop Range Min Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def hop_range_max_freq(self) -> float: @@ -339,7 +343,7 @@ def hop_range_max_freq(self) -> float: """ val = self._get_property("Hop Range Max Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def pulse_duration(self) -> float: @@ -349,7 +353,7 @@ def pulse_duration(self) -> float: """ val = self._get_property("Pulse Duration") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_rise_time(self) -> float: @@ -359,7 +363,7 @@ def pulse_rise_time(self) -> float: """ val = self._get_property("Pulse Rise Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_fall_time(self) -> float: @@ -369,7 +373,7 @@ def pulse_fall_time(self) -> float: """ val = self._get_property("Pulse Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_repetition_rate(self) -> float: @@ -378,7 +382,7 @@ def pulse_repetition_rate(self) -> float: "Value should be greater than 1." """ val = self._get_property("Pulse Repetition Rate") - return val # type: ignore + return val # type: ignore @property def number_of_chips(self) -> float: @@ -387,7 +391,7 @@ def number_of_chips(self) -> float: "Value should be greater than 1." """ val = self._get_property("Number of Chips") - return val # type: ignore + return val # type: ignore @property def pulse_compression_ratio(self) -> float: @@ -396,7 +400,7 @@ def pulse_compression_ratio(self) -> float: "Value should be greater than 1." """ val = self._get_property("Pulse Compression Ratio") - return val # type: ignore + return val # type: ignore @property def fm_chirp_period(self) -> float: @@ -406,7 +410,7 @@ def fm_chirp_period(self) -> float: """ val = self._get_property("FM Chirp Period") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def fm_freq_deviation(self) -> float: @@ -416,7 +420,7 @@ def fm_freq_deviation(self) -> float: """ val = self._get_property("FM Freq Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def fm_freq_dev_bandwidth(self) -> float: @@ -426,5 +430,4 @@ def fm_freq_dev_bandwidth(self) -> float: """ val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py index 487a1d52c7c..3e419d44688 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyBandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -32,4 +35,3 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py index 6b96bcfde68..feefb6123f9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyCADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +45,7 @@ def file(self) -> str: "Value should be a full file path." """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore class ModelTypeOption(Enum): PLATE = "Plate" @@ -63,10 +67,10 @@ class ModelTypeOption(Enum): def model_type(self) -> ModelTypeOption: """Model Type "Select type of parametric model to create." - " """ + " """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] - return val # type: ignore + return val # type: ignore @property def length(self) -> float: @@ -76,7 +80,7 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def width(self) -> float: @@ -86,7 +90,7 @@ def width(self) -> float: """ val = self._get_property("Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def height(self) -> float: @@ -96,7 +100,7 @@ def height(self) -> float: """ val = self._get_property("Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def angle(self) -> float: @@ -105,7 +109,7 @@ def angle(self) -> float: "Value should be between 0 and 360." """ val = self._get_property("Angle") - return val # type: ignore + return val # type: ignore @property def top_side(self) -> float: @@ -115,7 +119,7 @@ def top_side(self) -> float: """ val = self._get_property("Top Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def top_radius(self) -> float: @@ -125,7 +129,7 @@ def top_radius(self) -> float: """ val = self._get_property("Top Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def side(self) -> float: @@ -135,7 +139,7 @@ def side(self) -> float: """ val = self._get_property("Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def radius(self) -> float: @@ -145,7 +149,7 @@ def radius(self) -> float: """ val = self._get_property("Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def base_radius(self) -> float: @@ -155,7 +159,7 @@ def base_radius(self) -> float: """ val = self._get_property("Base Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def center_radius(self) -> float: @@ -165,7 +169,7 @@ def center_radius(self) -> float: """ val = self._get_property("Center Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def x_axis_ellipsoid_radius(self) -> float: @@ -175,7 +179,7 @@ def x_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("X Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def y_axis_ellipsoid_radius(self) -> float: @@ -185,7 +189,7 @@ def y_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Y Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def z_axis_ellipsoid_radius(self) -> float: @@ -195,7 +199,7 @@ def z_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Z Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def focal_length(self) -> float: @@ -205,16 +209,16 @@ def focal_length(self) -> float: """ val = self._get_property("Focal Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def offset(self) -> float: """Offset "Offset of parabolic reflector." - " """ + " """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def x_direction_taper(self) -> float: @@ -223,7 +227,7 @@ def x_direction_taper(self) -> float: "Value should be greater than 0." """ val = self._get_property("X Direction Taper") - return val # type: ignore + return val # type: ignore @property def y_direction_taper(self) -> float: @@ -232,7 +236,7 @@ def y_direction_taper(self) -> float: "Value should be greater than 0." """ val = self._get_property("Y Direction Taper") - return val # type: ignore + return val # type: ignore @property def prism_direction(self): @@ -241,7 +245,7 @@ def prism_direction(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Prism Direction") - return val # type: ignore + return val # type: ignore @property def closed_top(self) -> bool: @@ -250,7 +254,7 @@ def closed_top(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Closed Top") - return val # type: ignore + return val # type: ignore @property def closed_base(self) -> bool: @@ -259,7 +263,7 @@ def closed_base(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Closed Base") - return val # type: ignore + return val # type: ignore @property def mesh_density(self) -> int: @@ -268,7 +272,7 @@ def mesh_density(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Mesh Density") - return val # type: ignore + return val # type: ignore @property def use_symmetric_mesh(self) -> bool: @@ -277,7 +281,7 @@ def use_symmetric_mesh(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Symmetric Mesh") - return val # type: ignore + return val # type: ignore class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -287,10 +291,10 @@ class MeshOptionOption(Enum): def mesh_option(self) -> MeshOptionOption: """Mesh Option "Select from different meshing options." - " """ + " """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] - return val # type: ignore + return val # type: ignore @property def coating_index(self) -> int: @@ -299,7 +303,7 @@ def coating_index(self) -> int: "Value should be between 0 and 100000." """ val = self._get_property("Coating Index") - return val # type: ignore + return val # type: ignore @property def show_relative_coordinates(self) -> bool: @@ -308,7 +312,7 @@ def show_relative_coordinates(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @property def position(self): @@ -317,7 +321,7 @@ def position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): @@ -326,7 +330,7 @@ def relative_position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -336,10 +340,10 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @property def orientation(self): @@ -348,7 +352,7 @@ def orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): @@ -357,7 +361,7 @@ def relative_orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def visible(self) -> bool: @@ -366,7 +370,7 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -378,10 +382,10 @@ class RenderModeOption(Enum): def render_mode(self) -> RenderModeOption: """Render Mode "Select drawing style for surfaces." - " """ + " """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] - return val # type: ignore + return val # type: ignore @property def show_axes(self) -> bool: @@ -390,7 +394,7 @@ def show_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @property def min(self): @@ -399,7 +403,7 @@ def min(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Min") - return val # type: ignore + return val # type: ignore @property def max(self): @@ -408,15 +412,15 @@ def max(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Max") - return val # type: ignore + return val # type: ignore @property def number_of_surfaces(self) -> int: """Number of Surfaces "Number of surfaces in the model." - " """ + " """ val = self._get_property("Number of Surfaces") - return val # type: ignore + return val # type: ignore @property def color(self): @@ -425,13 +429,12 @@ def color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py index 17cbe6366dd..26323c1934c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyCable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -36,7 +40,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -45,15 +49,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -64,10 +68,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @property def length(self) -> float: @@ -77,7 +81,7 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def loss_per_length(self) -> float: @@ -86,7 +90,7 @@ def loss_per_length(self) -> float: "Value should be between 0 and 20." """ val = self._get_property("Loss Per Length") - return val # type: ignore + return val # type: ignore @property def measurement_length(self) -> float: @@ -96,7 +100,7 @@ def measurement_length(self) -> float: """ val = self._get_property("Measurement Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def resistive_loss_constant(self) -> float: @@ -105,7 +109,7 @@ def resistive_loss_constant(self) -> float: "Value should be between 0 and 2." """ val = self._get_property("Resistive Loss Constant") - return val # type: ignore + return val # type: ignore @property def dielectric_loss_constant(self) -> float: @@ -114,13 +118,12 @@ def dielectric_loss_constant(self) -> float: "Value should be between 0 and 1." """ val = self._get_property("Dielectric Loss Constant") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py index b7d9a660aac..b68acab9a07 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyCirculator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -36,7 +40,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -45,15 +49,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -63,10 +67,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -76,10 +80,10 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the circulator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -88,7 +92,7 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_reverse_isolation(self) -> bool: @@ -97,7 +101,7 @@ def finite_reverse_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -106,7 +110,7 @@ def reverse_isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -115,7 +119,7 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -124,7 +128,7 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -134,7 +138,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -144,7 +148,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -154,7 +158,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -164,13 +168,12 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py index 551d2318f2d..13b7bd94ada 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,14 +43,13 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def ports(self): """Ports "Maps each port in the link to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Ports") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py index f70613bcd14..4937c28efee 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyCouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def minimum_allowed_coupling(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Minimum Allowed Coupling") - return val # type: ignore + return val # type: ignore @property def global_default_coupling(self) -> float: @@ -44,13 +47,12 @@ def global_default_coupling(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Global Default Coupling") - return val # type: ignore + return val # type: ignore @property def antenna_tags(self) -> str: """Antenna Tags "All tags currently used by all antennas in the project." - " """ + " """ val = self._get_property("Antenna Tags") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py index 92447fe9d09..3c50ca3acab 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,11 +38,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Value (dB): + "Value (dB): " Value should be between -1000 and 0." """ return self._get_table_data() @@ -51,23 +54,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -76,7 +79,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -85,13 +88,12 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py index 7f4f4624f62..318fb26cd02 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -33,9 +37,9 @@ def __init__(self, oDesign, result_id, node_id): def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class GroundPlaneNormalOption(Enum): X_AXIS = "X Axis" @@ -46,17 +50,16 @@ class GroundPlaneNormalOption(Enum): def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal "Specifies the axis of the normal to the ground plane." - " """ + " """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] - return val # type: ignore + return val # type: ignore @property def gp_position_along_normal(self) -> float: """GP Position Along Normal "Offset of ground plane in direction normal to the ground planes orientation." - " """ + " """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py index a927bab4d59..d1965900895 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,23 +45,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -66,7 +70,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -75,15 +79,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class TerrainCategoryOption(Enum): TYPE_A = "Type A" @@ -94,10 +98,10 @@ class TerrainCategoryOption(Enum): def terrain_category(self) -> TerrainCategoryOption: """Terrain Category "Specify the terrain category type for the Erceg model." - " """ + " """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -106,7 +110,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -115,7 +119,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -124,7 +128,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -136,10 +140,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -148,7 +152,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -157,7 +161,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -166,7 +170,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -175,7 +179,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -184,7 +188,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -193,7 +197,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -202,7 +206,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -211,7 +215,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -220,7 +224,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -229,5 +233,4 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py index 39a5a05b12a..b5d93697234 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyFilter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -36,7 +40,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -45,15 +49,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -68,10 +72,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -80,7 +84,7 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def stop_band_attenuation(self) -> float: @@ -89,7 +93,7 @@ def stop_band_attenuation(self) -> float: "Value should be less than 200." """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @property def max_pass_band(self) -> float: @@ -99,7 +103,7 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_stop_band(self) -> float: @@ -109,7 +113,7 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def max_stop_band(self) -> float: @@ -119,7 +123,7 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_pass_band(self) -> float: @@ -129,7 +133,7 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -139,7 +143,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -149,7 +153,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -159,7 +163,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -169,67 +173,67 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff "Lower cutoff frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Lower Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band "Lower stop band frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Lower Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band "Higher stop band frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Higher Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff "Higher cutoff frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Higher Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency "Lowest tuned frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Lowest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency "Highest tuned frequency." "Value should be between 1 and 1e+11." """ val = self._get_property("Highest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def percent_bandwidth(self) -> float: @@ -238,7 +242,7 @@ def percent_bandwidth(self) -> float: "Value should be between 0.001 and 100." """ val = self._get_property("Percent Bandwidth") - return val # type: ignore + return val # type: ignore @property def shape_factor(self) -> float: @@ -247,13 +251,12 @@ def shape_factor(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py index f3125610d48..0530b4b07b8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,23 +45,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -66,7 +70,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -75,15 +79,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): URBAN_MICROCELL = "Urban Microcell" @@ -94,10 +98,10 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment for the 5G channel model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def los(self) -> bool: @@ -106,7 +110,7 @@ def los(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("LOS") - return val # type: ignore + return val # type: ignore @property def include_bpl(self) -> bool: @@ -115,7 +119,7 @@ def include_bpl(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include BPL") - return val # type: ignore + return val # type: ignore class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -125,10 +129,10 @@ class NYUBPLModelOption(Enum): def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model "Specify the NYU Building Penetration Loss model." - " """ + " """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -137,7 +141,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -146,7 +150,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -155,7 +159,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -167,10 +171,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -179,7 +183,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -188,7 +192,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -197,7 +201,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -206,7 +210,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -215,7 +219,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -224,7 +228,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -233,7 +237,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -242,7 +246,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -251,7 +255,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -260,5 +264,4 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py index 1cfa014a8dd..756a13801d0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,23 +45,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -66,7 +70,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -75,15 +79,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): LARGE_CITY = "Large City" @@ -95,10 +99,10 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Hata model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -107,7 +111,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -116,7 +120,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -125,7 +129,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -137,10 +141,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -149,7 +153,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -158,7 +162,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -167,7 +171,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -176,7 +180,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -185,7 +189,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -194,7 +198,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -203,7 +207,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -212,7 +216,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -221,7 +225,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -230,5 +234,4 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py index 90e86cf4cc0..1a745f78dca 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,13 +40,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency: + "Frequency: " Value should be between 1 and 1e+11." - "Power Loss Coefficient: + "Power Loss Coefficient: " Value should be between 0 and 100." - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): " Value should be between 0 and 1000." """ return self._get_table_data() @@ -54,23 +58,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -79,7 +83,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -88,15 +92,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class BuildingTypeOption(Enum): RESIDENTIAL_APARTMENT = "Residential Apartment" @@ -109,10 +113,10 @@ class BuildingTypeOption(Enum): def building_type(self) -> BuildingTypeOption: """Building Type "Specify the building type for the Indoor Propagation model." - " """ + " """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def number_of_floors(self) -> int: @@ -121,7 +125,7 @@ def number_of_floors(self) -> int: "Value should be between 1 and 3." """ val = self._get_property("Number of Floors") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -130,7 +134,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -139,7 +143,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -148,7 +152,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -160,10 +164,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -172,7 +176,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -181,7 +185,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -190,7 +194,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -199,7 +203,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -208,7 +212,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -217,7 +221,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -226,7 +230,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -235,7 +239,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -244,7 +248,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -253,5 +257,4 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py index 1adef98a9fe..16aeac2ddf2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyIsolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -36,7 +40,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -45,15 +49,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -63,10 +67,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -76,10 +80,10 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the isolator.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -88,7 +92,7 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_reverse_isolation(self) -> bool: @@ -97,7 +101,7 @@ def finite_reverse_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -106,7 +110,7 @@ def reverse_isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -115,7 +119,7 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -124,7 +128,7 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -134,7 +138,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -144,7 +148,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -154,7 +158,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -164,13 +168,12 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py index 80a5e4ba87b..38880939808 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,23 +45,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -66,7 +70,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -75,15 +79,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): FREE_SPACE = "Free Space" @@ -98,10 +102,10 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Log Distance model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def path_loss_exponent(self) -> float: @@ -110,7 +114,7 @@ def path_loss_exponent(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Path Loss Exponent") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -119,7 +123,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -128,7 +132,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -137,7 +141,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -149,10 +153,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -161,7 +165,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -170,7 +174,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -179,7 +183,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -188,7 +192,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -197,7 +201,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -206,7 +210,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -215,7 +219,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -224,7 +228,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -233,7 +237,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -242,5 +246,4 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py index d0b23aa3f65..875a19d76c8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyMultiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -36,7 +40,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -45,15 +49,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_PASS_BAND = "By Pass Band" @@ -63,10 +67,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -76,10 +80,10 @@ class Port1LocationOption(Enum): def port_1_location(self) -> Port1LocationOption: """Port 1 Location "Defines the orientation of the multiplexer.." - " """ + " """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @property def flip_ports_vertically(self) -> bool: @@ -88,22 +92,21 @@ def flip_ports_vertically(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Flip Ports Vertically") - return val # type: ignore + return val # type: ignore @property def ports(self): """Ports "Assigns the child port nodes to the multiplexers ports." "A list of values." - " """ + " """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py index ccdfe442fd8..2a402eb98b4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,10 +48,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @property def filename(self) -> str: @@ -56,7 +60,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -65,7 +69,7 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def stop_band_attenuation(self) -> float: @@ -74,7 +78,7 @@ def stop_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @property def max_pass_band(self) -> float: @@ -84,7 +88,7 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_stop_band(self) -> float: @@ -94,7 +98,7 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def max_stop_band(self) -> float: @@ -104,7 +108,7 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_pass_band(self) -> float: @@ -114,7 +118,7 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -124,7 +128,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -134,7 +138,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -144,7 +148,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -154,13 +158,12 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py index ddb09ebaf19..0f98ee40ad1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyPowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -36,7 +40,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -45,15 +49,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -64,10 +68,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class OrientationOption(Enum): DIVIDER = "Divider" @@ -77,10 +81,10 @@ class OrientationOption(Enum): def orientation(self) -> OrientationOption: """Orientation "Defines the orientation of the Power Divider.." - " """ + " """ val = self._get_property("Orientation") val = self.OrientationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss_above_ideal(self) -> float: @@ -89,7 +93,7 @@ def insertion_loss_above_ideal(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss Above Ideal") - return val # type: ignore + return val # type: ignore @property def finite_isolation(self) -> bool: @@ -98,7 +102,7 @@ def finite_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @property def isolation(self) -> float: @@ -107,7 +111,7 @@ def isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -116,7 +120,7 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -125,7 +129,7 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -135,7 +139,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -145,7 +149,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -155,7 +159,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -165,13 +169,12 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py index d08da23fe00..aa8a2fe68c5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,23 +45,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -66,7 +70,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -75,15 +79,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -92,7 +96,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -101,7 +105,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -110,7 +114,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -122,10 +126,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -134,7 +138,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -143,7 +147,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -152,7 +156,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -161,7 +165,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -170,7 +174,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -179,7 +183,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -188,7 +192,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -197,7 +201,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -206,7 +210,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -215,5 +219,4 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py index 6a340d58f23..bea38042f41 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,18 +38,17 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Name: - " "Type: - " """ + "Name: + " "Type: + " """ return self._get_table_data() @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py index e47f04c7a96..8ef1072b4d3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +43,7 @@ def enable_passive_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Passive Noise") - return val # type: ignore + return val # type: ignore @property def enforce_thermal_noise_floor(self) -> bool: @@ -49,5 +52,4 @@ def enforce_thermal_noise_floor(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enforce Thermal Noise Floor") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py index deed1a2b5e7..e4089061f36 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +45,7 @@ def file(self) -> str: "Value should be a full file path." """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -50,16 +54,16 @@ def source_file(self) -> str: "Value should be a full file path." """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class MeasurementModeOption(Enum): AUDIO_SINAD = "Audio SINAD" @@ -70,10 +74,10 @@ class MeasurementModeOption(Enum): def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode "Defines the mode for the receiver measurement." - " """ + " """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] - return val # type: ignore + return val # type: ignore @property def sinad_threshold(self) -> float: @@ -82,7 +86,7 @@ def sinad_threshold(self) -> float: "Value should be between 5 and 20." """ val = self._get_property("SINAD Threshold") - return val # type: ignore + return val # type: ignore @property def gps_cnr_threshold(self) -> float: @@ -91,7 +95,7 @@ def gps_cnr_threshold(self) -> float: "Value should be between 15 and 30." """ val = self._get_property("GPS CNR Threshold") - return val # type: ignore + return val # type: ignore @property def ber_threshold(self) -> float: @@ -100,7 +104,7 @@ def ber_threshold(self) -> float: "Value should be between -12 and -1." """ val = self._get_property("BER Threshold") - return val # type: ignore + return val # type: ignore @property def default_intended_power(self) -> bool: @@ -109,7 +113,7 @@ def default_intended_power(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Default Intended Power") - return val # type: ignore + return val # type: ignore @property def intended_signal_power(self) -> float: @@ -118,7 +122,7 @@ def intended_signal_power(self) -> float: "Value should be between -140 and -50." """ val = self._get_property("Intended Signal Power") - return val # type: ignore + return val # type: ignore @property def freq_deviation(self) -> float: @@ -128,7 +132,7 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def modulation_depth(self) -> float: @@ -137,7 +141,7 @@ def modulation_depth(self) -> float: "Value should be between 10 and 100." """ val = self._get_property("Modulation Depth") - return val # type: ignore + return val # type: ignore @property def measure_selectivity(self) -> bool: @@ -146,7 +150,7 @@ def measure_selectivity(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Measure Selectivity") - return val # type: ignore + return val # type: ignore @property def measure_mixer_products(self) -> bool: @@ -155,7 +159,7 @@ def measure_mixer_products(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Measure Mixer Products") - return val # type: ignore + return val # type: ignore @property def max_rf_order(self) -> int: @@ -164,7 +168,7 @@ def max_rf_order(self) -> int: "Value should be greater than 1." """ val = self._get_property("Max RF Order") - return val # type: ignore + return val # type: ignore @property def max_lo_order(self) -> int: @@ -173,7 +177,7 @@ def max_lo_order(self) -> int: "Value should be greater than 1." """ val = self._get_property("Max LO Order") - return val # type: ignore + return val # type: ignore @property def include_if(self) -> bool: @@ -182,7 +186,7 @@ def include_if(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include IF") - return val # type: ignore + return val # type: ignore @property def measure_saturation(self) -> bool: @@ -191,7 +195,7 @@ def measure_saturation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Measure Saturation") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -200,7 +204,7 @@ def use_ams_limits(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -210,7 +214,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -220,7 +224,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def samples(self) -> int: @@ -229,7 +233,7 @@ def samples(self) -> int: "Value should be between 2 and 100." """ val = self._get_property("Samples") - return val # type: ignore + return val # type: ignore @property def exclude_mixer_products_below_noise(self) -> bool: @@ -238,5 +242,4 @@ def exclude_mixer_products_below_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Exclude Mixer Products Below Noise") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py index 8d76fdee89e..7d430b47f34 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -43,10 +47,10 @@ class MixerProductTaperOption(Enum): def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper "Taper for setting amplitude of mixer products." - " """ + " """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] - return val # type: ignore + return val # type: ignore @property def mixer_product_susceptibility(self) -> float: @@ -55,7 +59,7 @@ def mixer_product_susceptibility(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Mixer Product Susceptibility") - return val # type: ignore + return val # type: ignore @property def spurious_rejection(self) -> float: @@ -64,7 +68,7 @@ def spurious_rejection(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Spurious Rejection") - return val # type: ignore + return val # type: ignore @property def minimum_tuning_frequency(self) -> float: @@ -74,7 +78,7 @@ def minimum_tuning_frequency(self) -> float: """ val = self._get_property("Minimum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def maximum_tuning_frequency(self) -> float: @@ -84,7 +88,7 @@ def maximum_tuning_frequency(self) -> float: """ val = self._get_property("Maximum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def mixer_product_slope(self) -> float: @@ -93,7 +97,7 @@ def mixer_product_slope(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Mixer Product Slope") - return val # type: ignore + return val # type: ignore @property def mixer_product_intercept(self) -> float: @@ -102,7 +106,7 @@ def mixer_product_intercept(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Mixer Product Intercept") - return val # type: ignore + return val # type: ignore @property def bandwidth_80_db(self) -> float: @@ -112,7 +116,7 @@ def bandwidth_80_db(self) -> float: """ val = self._get_property("Bandwidth 80 dB") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def image_rejection(self) -> float: @@ -121,7 +125,7 @@ def image_rejection(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Image Rejection") - return val # type: ignore + return val # type: ignore @property def maximum_rf_harmonic_order(self) -> int: @@ -130,7 +134,7 @@ def maximum_rf_harmonic_order(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Maximum RF Harmonic Order") - return val # type: ignore + return val # type: ignore @property def maximum_lo_harmonic_order(self) -> int: @@ -139,7 +143,7 @@ def maximum_lo_harmonic_order(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Maximum LO Harmonic Order") - return val # type: ignore + return val # type: ignore class MixingModeOption(Enum): LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" @@ -150,10 +154,10 @@ class MixingModeOption(Enum): def mixing_mode(self) -> MixingModeOption: """Mixing Mode "Specifies whether the IF frequency is > or < RF channel frequency." - " """ + " """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] - return val # type: ignore + return val # type: ignore @property def first_if_frequency(self): @@ -162,16 +166,16 @@ def first_if_frequency(self): "Value should be a mathematical expression." """ val = self._get_property("First IF Frequency") - return val # type: ignore + return val # type: ignore @property def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." - " """ + " """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class UseHighLOOption(Enum): ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" @@ -181,10 +185,10 @@ class UseHighLOOption(Enum): def use_high_lo(self) -> UseHighLOOption: """Use High LO "Use High LO above/below the transition frequency." - " """ + " """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] - return val # type: ignore + return val # type: ignore class MixerProductTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -194,8 +198,7 @@ class MixerProductTableUnitsOption(Enum): def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units "Specifies the units for the Mixer Products." - " """ + " """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py index 82324948947..ab6a6613919 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -32,4 +35,3 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py index 45fcd329ce0..390e072de87 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,5 +43,4 @@ def use_arithmetic_mean(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Arithmetic Mean") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py index 8c786d4d3bb..664a5d34e8a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,13 +40,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -55,8 +59,7 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py index 6eb7a272cfd..92edf5a4b44 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,19 +48,19 @@ class SensitivityUnitsOption(Enum): def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units "Units to use for the Rx Sensitivity." - " """ + " """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] - return val # type: ignore + return val # type: ignore @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr "Received signal power level at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ val = self._get_property("Min. Receive Signal Pwr ") - return val # type: ignore + return val # type: ignore @property def snr_at_rx_signal_pwr(self) -> float: @@ -65,7 +69,7 @@ def snr_at_rx_signal_pwr(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("SNR at Rx Signal Pwr") - return val # type: ignore + return val # type: ignore @property def processing_gain(self) -> float: @@ -74,7 +78,7 @@ def processing_gain(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Processing Gain") - return val # type: ignore + return val # type: ignore @property def apply_pg_to_narrowband_only(self) -> bool: @@ -83,7 +87,7 @@ def apply_pg_to_narrowband_only(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Apply PG to Narrowband Only") - return val # type: ignore + return val # type: ignore @property def saturation_level(self) -> float: @@ -93,7 +97,7 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def rx_noise_figure(self) -> float: @@ -102,26 +106,26 @@ def rx_noise_figure(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rx Noise Figure") - return val # type: ignore + return val # type: ignore @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." "Value should be between -1000 and 1000." """ val = self._get_property("Receiver Sensitivity ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity "SNR or SINAD at the specified sensitivity level." "Value should be between -1000 and 1000." """ val = self._get_property("SNR/SINAD at Sensitivity ") - return val # type: ignore + return val # type: ignore @property def perform_rx_intermod_analysis(self) -> bool: @@ -130,7 +134,7 @@ def perform_rx_intermod_analysis(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Perform Rx Intermod Analysis") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -140,17 +144,17 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." "Value should be between -1000 and 1000." """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -160,7 +164,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -169,5 +173,4 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py index d8504a76ba2..5fe4908b84e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlySamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,11 +40,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Min: + "Min: " Value should be greater than 1." - "Max: + "Max: " Value should be greater than 1." """ return self._get_table_data() @@ -54,10 +58,10 @@ class SamplingTypeOption(Enum): def sampling_type(self) -> SamplingTypeOption: """Sampling Type "Sampling to apply to this configuration." - " """ + " """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def specify_percentage(self) -> bool: @@ -66,7 +70,7 @@ def specify_percentage(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Specify Percentage") - return val # type: ignore + return val # type: ignore @property def percentage_of_channels(self) -> float: @@ -75,7 +79,7 @@ def percentage_of_channels(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("Percentage of Channels") - return val # type: ignore + return val # type: ignore @property def max__channelsrangeband(self) -> int: @@ -84,7 +88,7 @@ def max__channelsrangeband(self) -> int: "Value should be between 1 and 100000." """ val = self._get_property("Max # Channels/Range/Band") - return val # type: ignore + return val # type: ignore @property def seed(self) -> int: @@ -93,29 +97,28 @@ def seed(self) -> int: "Value should be greater than 0." """ val = self._get_property("Seed") - return val # type: ignore + return val # type: ignore @property def total_tx_channels(self) -> int: """Total Tx Channels "Total number of transmit channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Tx Channels") - return val # type: ignore + return val # type: ignore @property def total_rx_channels(self) -> int: """Total Rx Channels "Total number of receive channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Rx Channels") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py index 7fb643b9087..f8d95885fdb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlySceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +45,7 @@ def show_relative_coordinates(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @property def position(self): @@ -50,7 +54,7 @@ def position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): @@ -59,7 +63,7 @@ def relative_position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -69,10 +73,10 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @property def orientation(self): @@ -81,7 +85,7 @@ def orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): @@ -90,7 +94,7 @@ def relative_orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def show_axes(self) -> bool: @@ -99,7 +103,7 @@ def show_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @property def box_color(self): @@ -108,13 +112,12 @@ def box_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Box Color") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py index b6517bf0122..8ca840a4303 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +43,7 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -49,7 +52,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -58,13 +61,12 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py index 71bc55a674b..670ac558bda 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlySolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,5 +43,4 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py index 6e72cb5f7d5..6f3ab51bd45 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -36,7 +40,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -45,15 +49,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TxPortOption(Enum): PORT_1 = "Port 1" @@ -63,10 +67,10 @@ class TxPortOption(Enum): def tx_port(self) -> TxPortOption: """Tx Port "Specifies which port on the TR Switch is part of the Tx path.." - " """ + " """ val = self._get_property("Tx Port") val = self.TxPortOption[val] - return val # type: ignore + return val # type: ignore class CommonPortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -76,10 +80,10 @@ class CommonPortLocationOption(Enum): def common_port_location(self) -> CommonPortLocationOption: """Common Port Location "Defines the orientation of the tr switch.." - " """ + " """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -88,7 +92,7 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_isolation(self) -> bool: @@ -97,7 +101,7 @@ def finite_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @property def isolation(self) -> float: @@ -106,7 +110,7 @@ def isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -115,7 +119,7 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -124,7 +128,7 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -134,7 +138,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -144,7 +148,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -154,7 +158,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -164,5 +168,4 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py index 8d14dd92fe9..ee86f8436a6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTerminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -36,7 +40,7 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -45,15 +49,15 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -63,10 +67,10 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class PortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -76,10 +80,10 @@ class PortLocationOption(Enum): def port_location(self) -> PortLocationOption: """Port Location "Defines the orientation of the terminator.." - " """ + " """ val = self._get_property("Port Location") val = self.PortLocationOption[val] - return val # type: ignore + return val # type: ignore @property def vswr(self) -> float: @@ -88,13 +92,12 @@ def vswr(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py index 7b46eda7585..25c6b44c463 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +43,7 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -49,7 +52,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -58,15 +61,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def filename(self) -> str: @@ -75,15 +78,15 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File "Coupling data generated by Savant and exported as a matched file." - " """ + " """ val = self._get_property("Savant Matched Coupling File") - return val # type: ignore + return val # type: ignore @property def enable_em_isolation(self) -> bool: @@ -92,22 +95,21 @@ def enable_em_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable EM Isolation") - return val # type: ignore + return val # type: ignore @property def port_antenna_assignment(self): """Port-Antenna Assignment "Maps each port in the coupling file to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Port-Antenna Assignment") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py index 707c39c8e6e..fb0fbd6687f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,23 +45,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -66,7 +70,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -75,15 +79,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def ground_reflection_coeff(self) -> float: @@ -92,7 +96,7 @@ def ground_reflection_coeff(self) -> float: "Value should be between -100 and 100." """ val = self._get_property("Ground Reflection Coeff.") - return val # type: ignore + return val # type: ignore @property def pointspeak(self) -> int: @@ -101,7 +105,7 @@ def pointspeak(self) -> int: "Value should be between 3 and 100." """ val = self._get_property("Points/Peak") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -110,7 +114,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -119,7 +123,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -128,7 +132,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -140,10 +144,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -152,7 +156,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -161,7 +165,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -170,7 +174,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -179,7 +183,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -188,7 +192,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -197,7 +201,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -206,7 +210,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -215,7 +219,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -224,7 +228,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -233,5 +237,4 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py index c44193f7059..8c81896533e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,9 +42,9 @@ def parent(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): " Value should be between -200 and 150." """ return self._get_table_data() @@ -55,10 +59,10 @@ class NoiseBehaviorOption(Enum): def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior "Specifies the behavior of the parametric noise profile." - " """ + " """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] - return val # type: ignore + return val # type: ignore @property def use_log_linear_interpolation(self) -> bool: @@ -67,5 +71,4 @@ def use_log_linear_interpolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Log-Linear Interpolation") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py index 8a82092a19b..c36bc5b547f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,8 +46,7 @@ class HarmonicTableUnitsOption(Enum): def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units "Specifies the units for the Harmonics." - " """ + " """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py index 810e1d74c28..a130a377d2a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyTxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +43,7 @@ def file(self) -> str: "Value should be a full file path." """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -49,16 +52,16 @@ def source_file(self) -> str: "Value should be a full file path." """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -67,7 +70,7 @@ def use_ams_limits(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -77,7 +80,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -87,7 +90,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def exclude_harmonics_below_noise(self) -> bool: @@ -96,5 +99,4 @@ def exclude_harmonics_below_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Exclude Harmonics Below Noise") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py index 319fac709be..a69d45b531a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,17 +46,16 @@ class NarrowbandBehaviorOption(Enum): def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." - " """ + " """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] - return val # type: ignore + return val # type: ignore @property def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - " """ + " """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py index 264951f942a..04e760a806b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyTxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,10 +40,10 @@ def parent(self): def output_voltage_peak(self) -> float: """Output Voltage Peak "Output High Voltage Level: maximum voltage of the digital signal." - " """ + " """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") - return val # type: ignore + return val # type: ignore @property def include_phase_noise(self) -> bool: @@ -49,7 +52,7 @@ def include_phase_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @property def tx_broadband_noise(self) -> float: @@ -58,7 +61,7 @@ def tx_broadband_noise(self) -> float: "Value should be less than 1000." """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @property def perform_tx_intermod_analysis(self) -> bool: @@ -67,7 +70,7 @@ def perform_tx_intermod_analysis(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @property def internal_amp_gain(self) -> float: @@ -76,7 +79,7 @@ def internal_amp_gain(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: @@ -85,7 +88,7 @@ def noise_figure(self) -> float: "Value should be between 0 and 50." """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -95,17 +98,17 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -115,7 +118,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -124,7 +127,7 @@ def reverse_isolation(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -133,5 +136,4 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py index 111a45c83a0..5c2c1213a47 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,10 +46,10 @@ class SpectrumTypeOption(Enum): def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type "Specifies EMI Margins to calculate." - " """ + " """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] - return val # type: ignore + return val # type: ignore class TxPowerOption(Enum): PEAK_POWER = "Peak Power" @@ -55,10 +59,10 @@ class TxPowerOption(Enum): def tx_power(self) -> TxPowerOption: """Tx Power "Method used to specify the power." - " """ + " """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] - return val # type: ignore + return val # type: ignore @property def peak_power(self) -> float: @@ -68,7 +72,7 @@ def peak_power(self) -> float: """ val = self._get_property("Peak Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def average_power(self) -> float: @@ -78,7 +82,7 @@ def average_power(self) -> float: """ val = self._get_property("Average Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def include_phase_noise(self) -> bool: @@ -87,7 +91,7 @@ def include_phase_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @property def tx_broadband_noise(self) -> float: @@ -96,7 +100,7 @@ def tx_broadband_noise(self) -> float: "Value should be less than 1000." """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore class HarmonicTaperOption(Enum): CONSTANT = "Constant" @@ -108,10 +112,10 @@ class HarmonicTaperOption(Enum): def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper "Taper type used to set amplitude of harmonics." - " """ + " """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] - return val # type: ignore + return val # type: ignore @property def harmonic_amplitude(self) -> float: @@ -120,7 +124,7 @@ def harmonic_amplitude(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Harmonic Amplitude") - return val # type: ignore + return val # type: ignore @property def harmonic_slope(self) -> float: @@ -129,7 +133,7 @@ def harmonic_slope(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Harmonic Slope") - return val # type: ignore + return val # type: ignore @property def harmonic_intercept(self) -> float: @@ -138,7 +142,7 @@ def harmonic_intercept(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Harmonic Intercept") - return val # type: ignore + return val # type: ignore @property def enable_harmonic_bw_expansion(self) -> bool: @@ -147,7 +151,7 @@ def enable_harmonic_bw_expansion(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Harmonic BW Expansion") - return val # type: ignore + return val # type: ignore @property def number_of_harmonics(self) -> int: @@ -156,7 +160,7 @@ def number_of_harmonics(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Number of Harmonics") - return val # type: ignore + return val # type: ignore @property def second_harmonic_level(self) -> float: @@ -165,7 +169,7 @@ def second_harmonic_level(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Second Harmonic Level") - return val # type: ignore + return val # type: ignore @property def third_harmonic_level(self) -> float: @@ -174,7 +178,7 @@ def third_harmonic_level(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Third Harmonic Level") - return val # type: ignore + return val # type: ignore @property def other_harmonic_levels(self) -> float: @@ -183,7 +187,7 @@ def other_harmonic_levels(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Other Harmonic Levels") - return val # type: ignore + return val # type: ignore @property def perform_tx_intermod_analysis(self) -> bool: @@ -192,7 +196,7 @@ def perform_tx_intermod_analysis(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @property def internal_amp_gain(self) -> float: @@ -201,7 +205,7 @@ def internal_amp_gain(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: @@ -210,7 +214,7 @@ def noise_figure(self) -> float: "Value should be between 0 and 50." """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -220,17 +224,17 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -240,7 +244,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -249,7 +253,7 @@ def reverse_isolation(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -258,5 +262,4 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py index efaf5bf4208..276a4d25079 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,13 +40,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -55,8 +59,7 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py index 4346c0b59b0..c84fe696856 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,23 +45,23 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -66,7 +70,7 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -75,15 +79,15 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class PathLossTypeOption(Enum): LOS_URBAN_CANYON = "LOS (Urban Canyon)" @@ -93,10 +97,10 @@ class PathLossTypeOption(Enum): def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type "Specify LOS vs NLOS for the Walfisch-Ikegami model." - " """ + " """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): DENSE_METRO = "Dense Metro" @@ -106,10 +110,10 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Walfisch model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def roof_height(self) -> float: @@ -119,7 +123,7 @@ def roof_height(self) -> float: """ val = self._get_property("Roof Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def distance_between_buildings(self) -> float: @@ -129,7 +133,7 @@ def distance_between_buildings(self) -> float: """ val = self._get_property("Distance Between Buildings") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def street_width(self) -> float: @@ -139,7 +143,7 @@ def street_width(self) -> float: """ val = self._get_property("Street Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def incidence_angle(self) -> float: @@ -148,7 +152,7 @@ def incidence_angle(self) -> float: "Value should be between 0 and 90." """ val = self._get_property("Incidence Angle") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -157,7 +161,7 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -166,7 +170,7 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -175,7 +179,7 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -187,10 +191,10 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -199,7 +203,7 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -208,7 +212,7 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -217,7 +221,7 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -226,7 +230,7 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -235,7 +239,7 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -244,7 +248,7 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -253,7 +257,7 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -262,7 +266,7 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -271,7 +275,7 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -280,5 +284,4 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py index 4556a44d1f2..24d7d1d6a76 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyWaveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,9 +42,9 @@ def parent(self): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" @@ -53,10 +57,10 @@ class WaveformOption(Enum): def waveform(self) -> WaveformOption: """Waveform "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Waveform") val = self.WaveformOption[val] - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -66,7 +70,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -76,7 +80,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def channel_spacing(self) -> float: @@ -86,7 +90,7 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def clock_duty_cycle(self) -> float: @@ -95,7 +99,7 @@ def clock_duty_cycle(self) -> float: "Value should be between 0.001 and 1." """ val = self._get_property("Clock Duty Cycle") - return val # type: ignore + return val # type: ignore @property def clock_risefall_time(self) -> float: @@ -105,7 +109,7 @@ def clock_risefall_time(self) -> float: """ val = self._get_property("Clock Rise/Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore class SpreadingTypeOption(Enum): LOW_SPREAD = "Low Spread" @@ -116,10 +120,10 @@ class SpreadingTypeOption(Enum): def spreading_type(self) -> SpreadingTypeOption: """Spreading Type "Type of spreading employed by the Spread Spectrum Clock." - " """ + " """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def spread_percentage(self) -> float: @@ -128,7 +132,7 @@ def spread_percentage(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Spread Percentage") - return val # type: ignore + return val # type: ignore @property def imported_spectrum(self) -> str: @@ -136,15 +140,15 @@ def imported_spectrum(self) -> str: "Value should be a full file path." """ val = self._get_property("Imported Spectrum") - return val # type: ignore + return val # type: ignore @property def raw_data_format(self) -> str: """Raw Data Format "Format of the imported raw data." - " """ + " """ val = self._get_property("Raw Data Format") - return val # type: ignore + return val # type: ignore @property def system_impedance(self) -> float: @@ -154,7 +158,7 @@ def system_impedance(self) -> float: """ val = self._get_property("System Impedance") val = self._convert_from_internal_units(float(val), "Resistance") - return val # type: ignore + return val # type: ignore @property def advanced_extraction_params(self) -> bool: @@ -163,7 +167,7 @@ def advanced_extraction_params(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Advanced Extraction Params") - return val # type: ignore + return val # type: ignore @property def nb_window_size(self) -> float: @@ -172,7 +176,7 @@ def nb_window_size(self) -> float: "Value should be greater than 3." """ val = self._get_property("NB Window Size") - return val # type: ignore + return val # type: ignore @property def bb_smoothing_factor(self) -> float: @@ -181,7 +185,7 @@ def bb_smoothing_factor(self) -> float: "Value should be greater than 1." """ val = self._get_property("BB Smoothing Factor") - return val # type: ignore + return val # type: ignore @property def nb_detector_threshold(self) -> float: @@ -190,7 +194,7 @@ def nb_detector_threshold(self) -> float: "Value should be between 2 and 10." """ val = self._get_property("NB Detector Threshold") - return val # type: ignore + return val # type: ignore class AlgorithmOption(Enum): FFT = "FFT" @@ -200,10 +204,10 @@ class AlgorithmOption(Enum): def algorithm(self) -> AlgorithmOption: """Algorithm "Algorithm used to transform the imported time domain spectrum." - " """ + " """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] - return val # type: ignore + return val # type: ignore @property def start_time(self) -> float: @@ -213,16 +217,16 @@ def start_time(self) -> float: """ val = self._get_property("Start Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def stop_time(self) -> float: """Stop Time "Final time of the imported time domain spectrum." - " """ + " """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def max_frequency(self) -> float: @@ -232,7 +236,7 @@ def max_frequency(self) -> float: """ val = self._get_property("Max Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" @@ -249,10 +253,10 @@ class WindowTypeOption(Enum): def window_type(self) -> WindowTypeOption: """Window Type "Windowing scheme used for importing time domain spectrum." - " """ + " """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] - return val # type: ignore + return val # type: ignore @property def kaiser_parameter(self) -> float: @@ -261,7 +265,7 @@ def kaiser_parameter(self) -> float: "Value should be greater than 0." """ val = self._get_property("Kaiser Parameter") - return val # type: ignore + return val # type: ignore @property def adjust_coherent_gain(self) -> bool: @@ -270,7 +274,7 @@ def adjust_coherent_gain(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adjust Coherent Gain") - return val # type: ignore + return val # type: ignore @property def data_rate(self) -> float: @@ -280,7 +284,7 @@ def data_rate(self) -> float: """ val = self._get_property("Data Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @property def num_of_bits(self) -> int: @@ -289,7 +293,7 @@ def num_of_bits(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Num of Bits") - return val # type: ignore + return val # type: ignore @property def use_envelope(self) -> bool: @@ -298,7 +302,7 @@ def use_envelope(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Envelope") - return val # type: ignore + return val # type: ignore @property def min_ptsnull(self) -> int: @@ -307,7 +311,7 @@ def min_ptsnull(self) -> int: "Value should be between 2 and 50." """ val = self._get_property("Min Pts/Null") - return val # type: ignore + return val # type: ignore @property def delay_skew(self) -> float: @@ -317,5 +321,4 @@ def delay_skew(self) -> float: """ val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py index 7cd8036e777..7dc4b0ca46d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ResultPlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,15 +45,13 @@ def export_model(self, file_name): def title(self) -> str: """Title "Enter title at the top of the plot, room will be made for it." - " """ + " """ val = self._get_property("Title") - return val # type: ignore + return val # type: ignore @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) @property def title_font(self): @@ -58,13 +60,11 @@ def title_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Title Font") - return val # type: ignore + return val # type: ignore @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -73,13 +73,11 @@ def show_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Legend") - return val # type: ignore + return val # type: ignore @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) @property def legend_font(self): @@ -88,13 +86,11 @@ def legend_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Legend Font") - return val # type: ignore + return val # type: ignore @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) @property def show_emi_thresholds(self) -> bool: @@ -103,13 +99,11 @@ def show_emi_thresholds(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show EMI Thresholds") - return val # type: ignore + return val # type: ignore @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show EMI Thresholds={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show EMI Thresholds={value}"]) @property def display_cad_overlay(self) -> bool: @@ -118,13 +112,11 @@ def display_cad_overlay(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Display CAD Overlay") - return val # type: ignore + return val # type: ignore @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -133,27 +125,23 @@ def opacity(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Opacity") - return val # type: ignore + return val # type: ignore @opacity.setter - def opacity(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Opacity={value}"]) + def opacity(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset "Adjust vertical position of CAD model overlay." - " """ + " """ val = self._get_property("Vertical Offset") - return val # type: ignore + return val # type: ignore @vertical_offset.setter - def vertical_offset(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Offset={value}"]) + def vertical_offset(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -162,13 +150,11 @@ def range_axis_rotation(self) -> float: "Value should be between -180 and 180." """ val = self._get_property("Range Axis Rotation") - return val # type: ignore + return val # type: ignore @range_axis_rotation.setter - def range_axis_rotation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -177,69 +163,59 @@ def lock_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Lock Axes") - return val # type: ignore + return val # type: ignore @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min "Set lower extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Min") - return val # type: ignore + return val # type: ignore @x_axis_min.setter - def x_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Min={value}"]) + def x_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max "Set upper extent of horizontal axis." - " """ + " """ val = self._get_property("X-axis Max") - return val # type: ignore + return val # type: ignore @x_axis_max.setter - def x_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Max={value}"]) + def x_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min "Set lower extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Min") - return val # type: ignore + return val # type: ignore @y_axis_min.setter - def y_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Min={value}"]) + def y_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max "Set upper extent of vertical axis." - " """ + " """ val = self._get_property("Y-axis Max") - return val # type: ignore + return val # type: ignore @y_axis_max.setter - def y_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Max={value}"]) + def y_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -248,13 +224,11 @@ def y_axis_range(self) -> float: "Value should be greater than 0." """ val = self._get_property("Y-axis Range") - return val # type: ignore + return val # type: ignore @y_axis_range.setter - def y_axis_range(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Range={value}"]) + def y_axis_range(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -263,13 +237,11 @@ def max_major_ticks_x(self) -> int: "Value should be between 1 and 30." """ val = self._get_property("Max Major Ticks X") - return val # type: ignore + return val # type: ignore @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -278,13 +250,11 @@ def max_minor_ticks_x(self) -> int: "Value should be between 0 and 100." """ val = self._get_property("Max Minor Ticks X") - return val # type: ignore + return val # type: ignore @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -293,13 +263,11 @@ def max_major_ticks_y(self) -> int: "Value should be between 1 and 30." """ val = self._get_property("Max Major Ticks Y") - return val # type: ignore + return val # type: ignore @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -308,13 +276,11 @@ def max_minor_ticks_y(self) -> int: "Value should be between 0 and 100." """ val = self._get_property("Max Minor Ticks Y") - return val # type: ignore + return val # type: ignore @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -323,13 +289,11 @@ def axis_label_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Axis Label Font") - return val # type: ignore + return val # type: ignore @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -338,13 +302,11 @@ def axis_tick_label_font(self): "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." """ val = self._get_property("Axis Tick Label Font") - return val # type: ignore + return val # type: ignore @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -358,16 +320,16 @@ class MajorGridLineStyleOption(Enum): def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style "Select line style of major-tick grid lines." - " """ + " """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] + ) @property def major_grid_color(self): @@ -376,13 +338,11 @@ def major_grid_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Major Grid Color") - return val # type: ignore + return val # type: ignore @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -396,16 +356,16 @@ class MinorGridLineStyleOption(Enum): def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style "Select line style of minor-tick grid lines." - " """ + " """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] + ) @property def minor_grid_color(self): @@ -414,13 +374,11 @@ def minor_grid_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Minor Grid Color") - return val # type: ignore + return val # type: ignore @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -429,13 +387,11 @@ def background_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -447,16 +403,16 @@ class BBPowerforPlotsUnitOption(Enum): def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit "Units to use for plotting broadband power densities." - " """ + " """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] - return val # type: ignore + return val # type: ignore @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power for Plots Unit={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] + ) @property def bb_power_bandwidth(self) -> float: @@ -466,14 +422,12 @@ def bb_power_bandwidth(self) -> float: """ val = self._get_property("BB Power Bandwidth") val = self._convert_from_internal_units(float(val), "") - return val # type: ignore + return val # type: ignore @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value : float|str): + def bb_power_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -482,11 +436,8 @@ def log_scale(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Log Scale") - return val # type: ignore + return val # type: ignore @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Log Scale={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py index a5663fe7a7e..60a282493c1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class RfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,13 +43,11 @@ def enable_passive_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Passive Noise") - return val # type: ignore + return val # type: ignore @enable_passive_noise.setter def enable_passive_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Passive Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Passive Noise={value}"]) @property def enforce_thermal_noise_floor(self) -> bool: @@ -55,11 +56,10 @@ def enforce_thermal_noise_floor(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enforce Thermal Noise Floor") - return val # type: ignore + return val # type: ignore @enforce_thermal_noise_floor.setter def enforce_thermal_noise_floor(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enforce Thermal Noise Floor={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Enforce Thermal Noise Floor={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py index 10c3e814d9d..e7365d9b2de 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -49,7 +53,7 @@ def file(self) -> str: "Value should be a full file path." """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -58,16 +62,16 @@ def source_file(self) -> str: "Value should be a full file path." """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def receive_frequency(self) -> float: """Receive Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class MeasurementModeOption(Enum): AUDIO_SINAD = "Audio SINAD" @@ -78,16 +82,14 @@ class MeasurementModeOption(Enum): def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode "Defines the mode for the receiver measurement." - " """ + " """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] - return val # type: ignore + return val # type: ignore @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Mode={value.value}"]) @property def sinad_threshold(self) -> float: @@ -96,13 +98,11 @@ def sinad_threshold(self) -> float: "Value should be between 5 and 20." """ val = self._get_property("SINAD Threshold") - return val # type: ignore + return val # type: ignore @sinad_threshold.setter - def sinad_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SINAD Threshold={value}"]) + def sinad_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SINAD Threshold={value}"]) @property def gps_cnr_threshold(self) -> float: @@ -111,13 +111,11 @@ def gps_cnr_threshold(self) -> float: "Value should be between 15 and 30." """ val = self._get_property("GPS CNR Threshold") - return val # type: ignore + return val # type: ignore @gps_cnr_threshold.setter - def gps_cnr_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"GPS CNR Threshold={value}"]) + def gps_cnr_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GPS CNR Threshold={value}"]) @property def ber_threshold(self) -> float: @@ -126,13 +124,11 @@ def ber_threshold(self) -> float: "Value should be between -12 and -1." """ val = self._get_property("BER Threshold") - return val # type: ignore + return val # type: ignore @ber_threshold.setter - def ber_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BER Threshold={value}"]) + def ber_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BER Threshold={value}"]) @property def default_intended_power(self) -> bool: @@ -141,13 +137,11 @@ def default_intended_power(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Default Intended Power") - return val # type: ignore + return val # type: ignore @default_intended_power.setter def default_intended_power(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Default Intended Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Default Intended Power={value}"]) @property def intended_signal_power(self) -> float: @@ -156,13 +150,11 @@ def intended_signal_power(self) -> float: "Value should be between -140 and -50." """ val = self._get_property("Intended Signal Power") - return val # type: ignore + return val # type: ignore @intended_signal_power.setter - def intended_signal_power(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Intended Signal Power={value}"]) + def intended_signal_power(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Intended Signal Power={value}"]) @property def freq_deviation(self) -> float: @@ -172,14 +164,12 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation.setter - def freq_deviation(self, value : float|str): + def freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) @property def modulation_depth(self) -> float: @@ -188,13 +178,11 @@ def modulation_depth(self) -> float: "Value should be between 10 and 100." """ val = self._get_property("Modulation Depth") - return val # type: ignore + return val # type: ignore @modulation_depth.setter - def modulation_depth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation Depth={value}"]) + def modulation_depth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Depth={value}"]) @property def measure_selectivity(self) -> bool: @@ -203,13 +191,11 @@ def measure_selectivity(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Measure Selectivity") - return val # type: ignore + return val # type: ignore @measure_selectivity.setter def measure_selectivity(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Selectivity={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Selectivity={value}"]) @property def measure_mixer_products(self) -> bool: @@ -218,13 +204,11 @@ def measure_mixer_products(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Measure Mixer Products") - return val # type: ignore + return val # type: ignore @measure_mixer_products.setter def measure_mixer_products(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Mixer Products={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Mixer Products={value}"]) @property def max_rf_order(self) -> int: @@ -233,13 +217,11 @@ def max_rf_order(self) -> int: "Value should be greater than 1." """ val = self._get_property("Max RF Order") - return val # type: ignore + return val # type: ignore @max_rf_order.setter def max_rf_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max RF Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max RF Order={value}"]) @property def max_lo_order(self) -> int: @@ -248,13 +230,11 @@ def max_lo_order(self) -> int: "Value should be greater than 1." """ val = self._get_property("Max LO Order") - return val # type: ignore + return val # type: ignore @max_lo_order.setter def max_lo_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max LO Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max LO Order={value}"]) @property def include_if(self) -> bool: @@ -263,13 +243,11 @@ def include_if(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include IF") - return val # type: ignore + return val # type: ignore @include_if.setter def include_if(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include IF={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include IF={value}"]) @property def measure_saturation(self) -> bool: @@ -278,13 +256,11 @@ def measure_saturation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Measure Saturation") - return val # type: ignore + return val # type: ignore @measure_saturation.setter def measure_saturation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Saturation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Saturation={value}"]) @property def use_ams_limits(self) -> bool: @@ -293,13 +269,11 @@ def use_ams_limits(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -309,14 +283,12 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -326,14 +298,12 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def samples(self) -> int: @@ -342,13 +312,11 @@ def samples(self) -> int: "Value should be between 2 and 100." """ val = self._get_property("Samples") - return val # type: ignore + return val # type: ignore @samples.setter def samples(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Samples={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Samples={value}"]) @property def exclude_mixer_products_below_noise(self) -> bool: @@ -357,20 +325,19 @@ def exclude_mixer_products_below_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Exclude Mixer Products Below Noise") - return val # type: ignore + return val # type: ignore @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Exclude Mixer Products Below Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Exclude Mixer Products Below Noise={value}"] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py index 424cea0c269..b484c584e95 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -45,7 +49,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -60,16 +64,16 @@ class MixerProductTaperOption(Enum): def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper "Taper for setting amplitude of mixer products." - " """ + " """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] - return val # type: ignore + return val # type: ignore @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Taper={value.value}"] + ) @property def mixer_product_susceptibility(self) -> float: @@ -78,13 +82,13 @@ def mixer_product_susceptibility(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Mixer Product Susceptibility") - return val # type: ignore + return val # type: ignore @mixer_product_susceptibility.setter - def mixer_product_susceptibility(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Susceptibility={value}"]) + def mixer_product_susceptibility(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Susceptibility={value}"] + ) @property def spurious_rejection(self) -> float: @@ -93,13 +97,11 @@ def spurious_rejection(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Spurious Rejection") - return val # type: ignore + return val # type: ignore @spurious_rejection.setter - def spurious_rejection(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spurious Rejection={value}"]) + def spurious_rejection(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spurious Rejection={value}"]) @property def minimum_tuning_frequency(self) -> float: @@ -109,14 +111,12 @@ def minimum_tuning_frequency(self) -> float: """ val = self._get_property("Minimum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value : float|str): + def minimum_tuning_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minimum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Tuning Frequency={value}"]) @property def maximum_tuning_frequency(self) -> float: @@ -126,14 +126,12 @@ def maximum_tuning_frequency(self) -> float: """ val = self._get_property("Maximum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value : float|str): + def maximum_tuning_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum Tuning Frequency={value}"]) @property def mixer_product_slope(self) -> float: @@ -142,13 +140,11 @@ def mixer_product_slope(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Mixer Product Slope") - return val # type: ignore + return val # type: ignore @mixer_product_slope.setter - def mixer_product_slope(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Slope={value}"]) + def mixer_product_slope(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Slope={value}"]) @property def mixer_product_intercept(self) -> float: @@ -157,13 +153,11 @@ def mixer_product_intercept(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Mixer Product Intercept") - return val # type: ignore + return val # type: ignore @mixer_product_intercept.setter - def mixer_product_intercept(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Intercept={value}"]) + def mixer_product_intercept(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Intercept={value}"]) @property def bandwidth_80_db(self) -> float: @@ -173,14 +167,12 @@ def bandwidth_80_db(self) -> float: """ val = self._get_property("Bandwidth 80 dB") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_80_db.setter - def bandwidth_80_db(self, value : float|str): + def bandwidth_80_db(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 80 dB={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 80 dB={value}"]) @property def image_rejection(self) -> float: @@ -189,13 +181,11 @@ def image_rejection(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Image Rejection") - return val # type: ignore + return val # type: ignore @image_rejection.setter - def image_rejection(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Image Rejection={value}"]) + def image_rejection(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Image Rejection={value}"]) @property def maximum_rf_harmonic_order(self) -> int: @@ -204,13 +194,13 @@ def maximum_rf_harmonic_order(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Maximum RF Harmonic Order") - return val # type: ignore + return val # type: ignore @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum RF Harmonic Order={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Maximum RF Harmonic Order={value}"] + ) @property def maximum_lo_harmonic_order(self) -> int: @@ -219,13 +209,13 @@ def maximum_lo_harmonic_order(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Maximum LO Harmonic Order") - return val # type: ignore + return val # type: ignore @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum LO Harmonic Order={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Maximum LO Harmonic Order={value}"] + ) class MixingModeOption(Enum): LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" @@ -236,16 +226,14 @@ class MixingModeOption(Enum): def mixing_mode(self) -> MixingModeOption: """Mixing Mode "Specifies whether the IF frequency is > or < RF channel frequency." - " """ + " """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] - return val # type: ignore + return val # type: ignore @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixing Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixing Mode={value.value}"]) @property def first_if_frequency(self): @@ -254,29 +242,25 @@ def first_if_frequency(self): "Value should be a mathematical expression." """ val = self._get_property("First IF Frequency") - return val # type: ignore + return val # type: ignore @first_if_frequency.setter def first_if_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First IF Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First IF Frequency={value}"]) @property def rf_transition_frequency(self) -> float: """RF Transition Frequency "RF Frequency Transition point." - " """ + " """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @rf_transition_frequency.setter - def rf_transition_frequency(self, value : float|str): + def rf_transition_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"RF Transition Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"RF Transition Frequency={value}"]) class UseHighLOOption(Enum): ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" @@ -286,16 +270,14 @@ class UseHighLOOption(Enum): def use_high_lo(self) -> UseHighLOOption: """Use High LO "Use High LO above/below the transition frequency." - " """ + " """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] - return val # type: ignore + return val # type: ignore @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use High LO={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use High LO={value.value}"]) class MixerProductTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -305,14 +287,13 @@ class MixerProductTableUnitsOption(Enum): def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units "Specifies the units for the Mixer Products." - " """ + " """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Table Units={value.value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py index d425bb22dc3..517ac9e5fa1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class RxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,9 +47,8 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py index d53dce3d741..28433a6089f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class RxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,7 +47,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -57,11 +60,8 @@ def use_arithmetic_mean(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Arithmetic Mean") - return val # type: ignore + return val # type: ignore @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Arithmetic Mean={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Arithmetic Mean={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py index 18592d02c5c..5b21e986a74 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,13 +48,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -62,7 +66,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -76,14 +80,11 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spur Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py index 4ff98f482e3..f3dd7328923 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -53,31 +57,27 @@ class SensitivityUnitsOption(Enum): def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units "Units to use for the Rx Sensitivity." - " """ + " """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] - return val # type: ignore + return val # type: ignore @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sensitivity Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sensitivity Units={value.value}"]) @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr "Received signal power level at the Rx's antenna terminal." "Value should be between -1000 and 1000." """ val = self._get_property("Min. Receive Signal Pwr ") - return val # type: ignore + return val # type: ignore @min_receive_signal_pwr_.setter - def min_receive_signal_pwr_(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min. Receive Signal Pwr ={value}"]) + def min_receive_signal_pwr_(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min. Receive Signal Pwr ={value}"]) @property def snr_at_rx_signal_pwr(self) -> float: @@ -86,13 +86,11 @@ def snr_at_rx_signal_pwr(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("SNR at Rx Signal Pwr") - return val # type: ignore + return val # type: ignore @snr_at_rx_signal_pwr.setter - def snr_at_rx_signal_pwr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SNR at Rx Signal Pwr={value}"]) + def snr_at_rx_signal_pwr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR at Rx Signal Pwr={value}"]) @property def processing_gain(self) -> float: @@ -101,13 +99,11 @@ def processing_gain(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Processing Gain") - return val # type: ignore + return val # type: ignore @processing_gain.setter - def processing_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Processing Gain={value}"]) + def processing_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Processing Gain={value}"]) @property def apply_pg_to_narrowband_only(self) -> bool: @@ -116,13 +112,13 @@ def apply_pg_to_narrowband_only(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Apply PG to Narrowband Only") - return val # type: ignore + return val # type: ignore @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Apply PG to Narrowband Only={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Apply PG to Narrowband Only={value}"] + ) @property def saturation_level(self) -> float: @@ -132,14 +128,12 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @saturation_level.setter - def saturation_level(self, value : float|str): + def saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) @property def rx_noise_figure(self) -> float: @@ -148,45 +142,41 @@ def rx_noise_figure(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rx Noise Figure") - return val # type: ignore + return val # type: ignore @rx_noise_figure.setter - def rx_noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rx Noise Figure={value}"]) + def rx_noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rx Noise Figure={value}"]) @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity "Rx minimum sensitivity level (dBm)." "Value should be between -1000 and 1000." """ val = self._get_property("Receiver Sensitivity ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @receiver_sensitivity_.setter - def receiver_sensitivity_(self, value : float|str): + def receiver_sensitivity_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Receiver Sensitivity ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver Sensitivity ={value}"]) @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity "SNR or SINAD at the specified sensitivity level." "Value should be between -1000 and 1000." """ val = self._get_property("SNR/SINAD at Sensitivity ") - return val # type: ignore + return val # type: ignore @snrsinad_at_sensitivity_.setter - def snrsinad_at_sensitivity_(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SNR/SINAD at Sensitivity ={value}"]) + def snrsinad_at_sensitivity_(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"SNR/SINAD at Sensitivity ={value}"] + ) @property def perform_rx_intermod_analysis(self) -> bool: @@ -195,13 +185,13 @@ def perform_rx_intermod_analysis(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Perform Rx Intermod Analysis") - return val # type: ignore + return val # type: ignore @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Rx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Rx Intermod Analysis={value}"] + ) @property def amplifier_saturation_level(self) -> float: @@ -211,31 +201,29 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." "Value should be between -1000 and 1000." """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -245,14 +233,12 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def max_intermod_order(self) -> int: @@ -261,11 +247,8 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py index ecd516fe8ad..71f04d9ed7a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,11 +40,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Min: + "Min: " Value should be greater than 1." - "Max: + "Max: " Value should be greater than 1." """ return self._get_table_data() @@ -58,16 +62,14 @@ class SamplingTypeOption(Enum): def sampling_type(self) -> SamplingTypeOption: """Sampling Type "Sampling to apply to this configuration." - " """ + " """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] - return val # type: ignore + return val # type: ignore @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sampling Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sampling Type={value.value}"]) @property def specify_percentage(self) -> bool: @@ -76,13 +78,11 @@ def specify_percentage(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Specify Percentage") - return val # type: ignore + return val # type: ignore @specify_percentage.setter def specify_percentage(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Specify Percentage={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Specify Percentage={value}"]) @property def percentage_of_channels(self) -> float: @@ -91,13 +91,11 @@ def percentage_of_channels(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("Percentage of Channels") - return val # type: ignore + return val # type: ignore @percentage_of_channels.setter - def percentage_of_channels(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Percentage of Channels={value}"]) + def percentage_of_channels(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percentage of Channels={value}"]) @property def max__channelsrangeband(self) -> int: @@ -106,13 +104,13 @@ def max__channelsrangeband(self) -> int: "Value should be between 1 and 100000." """ val = self._get_property("Max # Channels/Range/Band") - return val # type: ignore + return val # type: ignore @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max # Channels/Range/Band={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Max # Channels/Range/Band={value}"] + ) @property def seed(self) -> int: @@ -121,35 +119,32 @@ def seed(self) -> int: "Value should be greater than 0." """ val = self._get_property("Seed") - return val # type: ignore + return val # type: ignore @seed.setter def seed(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Seed={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Seed={value}"]) @property def total_tx_channels(self) -> int: """Total Tx Channels "Total number of transmit channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Tx Channels") - return val # type: ignore + return val # type: ignore @property def total_rx_channels(self) -> int: """Total Rx Channels "Total number of receive channels this configuration is capable of operating on." - " """ + " """ val = self._get_property("Total Rx Channels") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py index b001fd3a206..42bf74d4440 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -57,13 +61,13 @@ def show_relative_coordinates(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -72,13 +76,11 @@ def position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -87,13 +89,11 @@ def relative_position(self): "Value should be x/y/z, delimited by spaces." """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -103,16 +103,14 @@ class OrientationModeOption(Enum): def orientation_mode(self) -> OrientationModeOption: """Orientation Mode "Select the convention (order of rotations) for configuring orientation." - " """ + " """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -121,13 +119,11 @@ def orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -136,13 +132,11 @@ def relative_orientation(self): "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def show_axes(self) -> bool: @@ -151,13 +145,11 @@ def show_axes(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def box_color(self): @@ -166,25 +158,20 @@ def box_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Box Color") - return val # type: ignore + return val # type: ignore @box_color.setter def box_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Box Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Box Color={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py index f6680bbdf6c..bd9e97d6aec 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SelectivityTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,15 +54,13 @@ def delete(self): def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -67,13 +69,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -82,27 +82,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -116,16 +112,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -134,13 +128,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -149,13 +141,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -178,16 +168,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -196,13 +184,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -211,13 +197,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -226,13 +210,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -241,11 +223,8 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py index 6c59dd1d602..4088dc55b6f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class SolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,13 +43,11 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -55,13 +56,11 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -70,25 +69,20 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py index 0580292e2bd..24fe2daf820 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class SolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,11 +43,8 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py index ee48a4f403a..099de50c2cf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SpurTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,38 +54,34 @@ def delete(self): def channel_frequency(self): """Channel Frequency "Select band channel frequency to display." - " """ + " """ val = self._get_property("Channel Frequency") - return val # type: ignore + return val # type: ignore @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: """Transmit Frequency "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -90,13 +90,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -105,27 +103,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -139,16 +133,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -157,13 +149,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -172,13 +162,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -201,16 +189,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -219,13 +205,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -234,13 +218,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -249,13 +231,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -264,11 +244,8 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py index b440e67e100..a07d94e9712 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TRSwitchTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,13 +57,11 @@ def input_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -68,27 +70,23 @@ def output_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -97,13 +95,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -112,27 +108,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -146,16 +138,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -164,13 +154,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -179,13 +167,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -208,16 +194,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -226,13 +210,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -241,13 +223,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -256,13 +236,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -271,11 +249,8 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index 69d6cc58779..6c0527f0188 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -48,13 +52,11 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -63,27 +65,23 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TxPortOption(Enum): PORT_1 = "Port 1" @@ -93,16 +91,14 @@ class TxPortOption(Enum): def tx_port(self) -> TxPortOption: """Tx Port "Specifies which port on the TR Switch is part of the Tx path.." - " """ + " """ val = self._get_property("Tx Port") val = self.TxPortOption[val] - return val # type: ignore + return val # type: ignore @tx_port.setter def tx_port(self, value: TxPortOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Port={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Port={value.value}"]) class CommonPortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -112,16 +108,16 @@ class CommonPortLocationOption(Enum): def common_port_location(self) -> CommonPortLocationOption: """Common Port Location "Defines the orientation of the tr switch.." - " """ + " """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] - return val # type: ignore + return val # type: ignore @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Common Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Common Port Location={value.value}"] + ) @property def insertion_loss(self) -> float: @@ -130,13 +126,11 @@ def insertion_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_isolation(self) -> bool: @@ -145,13 +139,11 @@ def finite_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -160,13 +152,11 @@ def isolation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @isolation.setter - def isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Isolation={value}"]) + def isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -175,13 +165,11 @@ def finite_bandwidth(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -190,13 +178,11 @@ def out_of_band_attenuation(self) -> float: "Value should be between 0 and 200." """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -206,14 +192,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -223,14 +207,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -240,14 +222,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -257,12 +237,9 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index 05f791208ff..2f11ba594ee 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Terminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -48,13 +52,11 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -63,27 +65,23 @@ def noise_temperature(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -93,16 +91,14 @@ class TypeOption(Enum): def type(self) -> TypeOption: """Type "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + " """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class PortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -112,16 +108,14 @@ class PortLocationOption(Enum): def port_location(self) -> PortLocationOption: """Port Location "Defines the orientation of the terminator.." - " """ + " """ val = self._get_property("Port Location") val = self.PortLocationOption[val] - return val # type: ignore + return val # type: ignore @port_location.setter def port_location(self, value: PortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port Location={value.value}"]) @property def vswr(self) -> float: @@ -130,19 +124,16 @@ def vswr(self) -> float: "Value should be between 1 and 100." """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @vswr.setter - def vswr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"VSWR={value}"]) + def vswr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) @property def warnings(self) -> str: """Warnings "Warning(s) for this node." - " """ + " """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py index a149251b494..fb053168609 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TestNoiseTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,13 +57,11 @@ def input_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -68,27 +70,23 @@ def output_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -97,13 +95,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -112,27 +108,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -146,16 +138,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -164,13 +154,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -179,13 +167,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -208,16 +194,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -226,13 +210,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -241,13 +223,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -256,13 +236,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -271,13 +249,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -287,14 +263,12 @@ def frequency_1(self) -> float: """ val = self._get_property("Frequency 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_1.setter - def frequency_1(self, value : float|str): + def frequency_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -304,14 +278,12 @@ def amplitude_1(self) -> float: """ val = self._get_property("Amplitude 1") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_1.setter - def amplitude_1(self, value : float|str): + def amplitude_1(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -321,14 +293,12 @@ def bandwidth_1(self) -> float: """ val = self._get_property("Bandwidth 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_1.setter - def bandwidth_1(self, value : float|str): + def bandwidth_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -338,14 +308,12 @@ def frequency_2(self) -> float: """ val = self._get_property("Frequency 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_2.setter - def frequency_2(self, value : float|str): + def frequency_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -355,14 +323,12 @@ def amplitude_2(self) -> float: """ val = self._get_property("Amplitude 2") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_2.setter - def amplitude_2(self, value : float|str): + def amplitude_2(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -372,14 +338,12 @@ def bandwidth_2(self) -> float: """ val = self._get_property("Bandwidth 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_2.setter - def bandwidth_2(self, value : float|str): + def bandwidth_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -388,11 +352,8 @@ def noise_level(self) -> float: "Value should be between -200 and 0." """ val = self._get_property("Noise Level") - return val # type: ignore + return val # type: ignore @noise_level.setter - def noise_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Level={value}"]) - + def noise_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py index cce333ffcc5..930244277ac 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py @@ -1,30 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class TopLevelSimulation(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py index caee5fb20af..bf3afece9e5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class TouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,13 +55,11 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -67,13 +68,11 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -82,27 +81,23 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def filename(self) -> str: @@ -111,21 +106,19 @@ def filename(self) -> str: "Value should be a full file path." """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File "Coupling data generated by Savant and exported as a matched file." - " """ + " """ val = self._get_property("Savant Matched Coupling File") - return val # type: ignore + return val # type: ignore @property def enable_em_isolation(self) -> bool: @@ -134,40 +127,33 @@ def enable_em_isolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable EM Isolation") - return val # type: ignore + return val # type: ignore @enable_em_isolation.setter def enable_em_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable EM Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable EM Isolation={value}"]) @property def port_antenna_assignment(self): """Port-Antenna Assignment "Maps each port in the coupling file to an antenna in the project." "A list of values." - " """ + " """ val = self._get_property("Port-Antenna Assignment") - return val # type: ignore + return val # type: ignore @port_antenna_assignment.setter def port_antenna_assignment(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port-Antenna Assignment={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port-Antenna Assignment={value}"]) @property def notes(self) -> str: """Notes "Expand to view/edit notes stored with the project." - " """ + " """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py index 428c756fdad..f9498afbff6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TunableTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,13 +57,11 @@ def input_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -68,43 +70,37 @@ def output_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def frequency(self) -> float: """Frequency "Tunable filter center frequency." - " """ + " """ val = self._get_property("Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency.setter - def frequency(self, value : float|str): + def frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -113,13 +109,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -128,27 +122,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -162,16 +152,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -180,13 +168,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -195,13 +181,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -224,16 +208,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -242,13 +224,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -257,13 +237,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -272,13 +250,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -287,11 +263,8 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py index 27176dc6910..dc37a99002a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,41 +57,35 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -96,13 +94,11 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -111,27 +107,23 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def ground_reflection_coeff(self) -> float: @@ -140,13 +132,11 @@ def ground_reflection_coeff(self) -> float: "Value should be between -100 and 100." """ val = self._get_property("Ground Reflection Coeff.") - return val # type: ignore + return val # type: ignore @ground_reflection_coeff.setter - def ground_reflection_coeff(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ground Reflection Coeff.={value}"]) + def ground_reflection_coeff(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ground Reflection Coeff.={value}"]) @property def pointspeak(self) -> int: @@ -155,13 +145,11 @@ def pointspeak(self) -> int: "Value should be between 3 and 100." """ val = self._get_property("Points/Peak") - return val # type: ignore + return val # type: ignore @pointspeak.setter def pointspeak(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Points/Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Points/Peak={value}"]) @property def custom_fading_margin(self) -> float: @@ -170,13 +158,11 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -185,13 +171,11 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -200,13 +184,11 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -218,16 +200,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -236,13 +216,11 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -251,13 +229,11 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -266,13 +242,11 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -281,13 +255,11 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -296,13 +268,11 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -311,13 +281,11 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -326,13 +294,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -341,13 +309,11 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -356,13 +322,11 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -371,11 +335,10 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py index ad296b7b7fe..030300b69ef 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TwoToneTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,13 +57,11 @@ def input_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -68,27 +70,23 @@ def output_port(self) -> int: "Value should be greater than 1." """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): """Data Source "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + " """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -97,13 +95,11 @@ def visible(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -112,27 +108,23 @@ def custom_legend(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name "Enter name of plot trace as it will appear in legend." - " """ + " """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -146,16 +138,14 @@ class StyleOption(Enum): def style(self) -> StyleOption: """Style "Specify line style of plot trace." - " """ + " """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -164,13 +154,11 @@ def line_width(self) -> int: "Value should be between 1 and 100." """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -179,13 +167,11 @@ def line_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -208,16 +194,14 @@ class SymbolOption(Enum): def symbol(self) -> SymbolOption: """Symbol "Select symbol to mark points along plot trace." - " """ + " """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -226,13 +210,11 @@ def symbol_size(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -241,13 +223,11 @@ def symbol_color(self): "Color should be in RGB form: #RRGGBB." """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -256,13 +236,11 @@ def symbol_line_width(self) -> int: "Value should be between 1 and 20." """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -271,13 +249,11 @@ def symbol_filled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -287,14 +263,12 @@ def frequency_1(self) -> float: """ val = self._get_property("Frequency 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_1.setter - def frequency_1(self, value : float|str): + def frequency_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -304,14 +278,12 @@ def amplitude_1(self) -> float: """ val = self._get_property("Amplitude 1") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_1.setter - def amplitude_1(self, value : float|str): + def amplitude_1(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -321,14 +293,12 @@ def bandwidth_1(self) -> float: """ val = self._get_property("Bandwidth 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_1.setter - def bandwidth_1(self, value : float|str): + def bandwidth_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -338,14 +308,12 @@ def frequency_2(self) -> float: """ val = self._get_property("Frequency 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_2.setter - def frequency_2(self, value : float|str): + def frequency_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -355,14 +323,12 @@ def amplitude_2(self) -> float: """ val = self._get_property("Amplitude 2") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_2.setter - def amplitude_2(self, value : float|str): + def amplitude_2(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -372,14 +338,12 @@ def bandwidth_2(self) -> float: """ val = self._get_property("Bandwidth 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_2.setter - def bandwidth_2(self, value : float|str): + def bandwidth_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -388,11 +352,8 @@ def noise_level(self) -> float: "Value should be between -200 and 0." """ val = self._get_property("Noise Level") - return val # type: ignore + return val # type: ignore @noise_level.setter - def noise_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Level={value}"]) - + def noise_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py index 2af07fd5b67..d43b2a5e283 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -46,9 +50,9 @@ def delete(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): " Value should be between -200 and 150." """ return self._get_table_data() @@ -60,7 +64,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -76,16 +80,14 @@ class NoiseBehaviorOption(Enum): def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior "Specifies the behavior of the parametric noise profile." - " """ + " """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] - return val # type: ignore + return val # type: ignore @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Behavior={value.value}"]) @property def use_log_linear_interpolation(self) -> bool: @@ -94,11 +96,10 @@ def use_log_linear_interpolation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Log-Linear Interpolation") - return val # type: ignore + return val # type: ignore @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Log-Linear Interpolation={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py index 24721df5e03..3c6db045c44 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -45,7 +49,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -59,14 +63,13 @@ class HarmonicTableUnitsOption(Enum): def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units "Specifies the units for the Harmonics." - " """ + " """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py index c4662f4d63f..545bcd7a73d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class TxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,7 +51,7 @@ def file(self) -> str: "Value should be a full file path." """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -57,16 +60,16 @@ def source_file(self) -> str: "Value should be a full file path." """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def transmit_frequency(self) -> float: """Transmit Frequency "Channel associated with the measurement file." - " """ + " """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -75,13 +78,11 @@ def use_ams_limits(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -91,14 +92,12 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -108,14 +107,12 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def exclude_harmonics_below_noise(self) -> bool: @@ -124,20 +121,19 @@ def exclude_harmonics_below_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Exclude Harmonics Below Noise") - return val # type: ignore + return val # type: ignore @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Exclude Harmonics Below Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py index 0aeca2ef743..7d208c64fb3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -45,7 +49,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -59,30 +63,27 @@ class NarrowbandBehaviorOption(Enum): def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior "Specifies the behavior of the parametric narrowband emissions mask." - " """ + " """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] - return val # type: ignore + return val # type: ignore @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Narrowband Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"] + ) @property def measurement_frequency(self) -> float: """Measurement Frequency "Measurement frequency for the absolute freq/amp pairs.." - " """ + " """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @measurement_frequency.setter - def measurement_frequency(self, value : float|str): + def measurement_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Frequency={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Frequency={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py index c7d5d56ed26..70090c256f7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class TxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,7 +39,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -46,17 +49,15 @@ def enabled(self, value: bool): def output_voltage_peak(self) -> float: """Output Voltage Peak "Output High Voltage Level: maximum voltage of the digital signal." - " """ + " """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") - return val # type: ignore + return val # type: ignore @output_voltage_peak.setter - def output_voltage_peak(self, value : float|str): + def output_voltage_peak(self, value: float | str): value = self._convert_to_internal_units(value, "Voltage") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Voltage Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Voltage Peak={value}"]) @property def include_phase_noise(self) -> bool: @@ -65,13 +66,11 @@ def include_phase_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -80,13 +79,11 @@ def tx_broadband_noise(self) -> float: "Value should be less than 1000." """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @tx_broadband_noise.setter - def tx_broadband_noise(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -95,13 +92,13 @@ def perform_tx_intermod_analysis(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Tx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] + ) @property def internal_amp_gain(self) -> float: @@ -110,13 +107,11 @@ def internal_amp_gain(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @internal_amp_gain.setter - def internal_amp_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -125,13 +120,11 @@ def noise_figure(self) -> float: "Value should be between 0 and 50." """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -141,31 +134,29 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -175,14 +166,12 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -191,13 +180,11 @@ def reverse_isolation(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -206,11 +193,8 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py index 6a09f26cf24..fd5bdbce8e0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -51,16 +55,14 @@ class SpectrumTypeOption(Enum): def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type "Specifies EMI Margins to calculate." - " """ + " """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] - return val # type: ignore + return val # type: ignore @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spectrum Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spectrum Type={value.value}"]) class TxPowerOption(Enum): PEAK_POWER = "Peak Power" @@ -70,16 +72,14 @@ class TxPowerOption(Enum): def tx_power(self) -> TxPowerOption: """Tx Power "Method used to specify the power." - " """ + " """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] - return val # type: ignore + return val # type: ignore @tx_power.setter def tx_power(self, value: TxPowerOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Power={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Power={value.value}"]) @property def peak_power(self) -> float: @@ -89,14 +89,12 @@ def peak_power(self) -> float: """ val = self._get_property("Peak Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @peak_power.setter - def peak_power(self, value : float|str): + def peak_power(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Peak Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Power={value}"]) @property def average_power(self) -> float: @@ -106,14 +104,12 @@ def average_power(self) -> float: """ val = self._get_property("Average Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @average_power.setter - def average_power(self, value : float|str): + def average_power(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Average Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Average Power={value}"]) @property def include_phase_noise(self) -> bool: @@ -122,13 +118,11 @@ def include_phase_noise(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -137,13 +131,11 @@ def tx_broadband_noise(self) -> float: "Value should be less than 1000." """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @tx_broadband_noise.setter - def tx_broadband_noise(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) class HarmonicTaperOption(Enum): CONSTANT = "Constant" @@ -155,16 +147,14 @@ class HarmonicTaperOption(Enum): def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper "Taper type used to set amplitude of harmonics." - " """ + " """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] - return val # type: ignore + return val # type: ignore @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Taper={value.value}"]) @property def harmonic_amplitude(self) -> float: @@ -173,13 +163,11 @@ def harmonic_amplitude(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Harmonic Amplitude") - return val # type: ignore + return val # type: ignore @harmonic_amplitude.setter - def harmonic_amplitude(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Amplitude={value}"]) + def harmonic_amplitude(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Amplitude={value}"]) @property def harmonic_slope(self) -> float: @@ -188,13 +176,11 @@ def harmonic_slope(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Harmonic Slope") - return val # type: ignore + return val # type: ignore @harmonic_slope.setter - def harmonic_slope(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Slope={value}"]) + def harmonic_slope(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Slope={value}"]) @property def harmonic_intercept(self) -> float: @@ -203,13 +189,11 @@ def harmonic_intercept(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Harmonic Intercept") - return val # type: ignore + return val # type: ignore @harmonic_intercept.setter - def harmonic_intercept(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Intercept={value}"]) + def harmonic_intercept(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Intercept={value}"]) @property def enable_harmonic_bw_expansion(self) -> bool: @@ -218,13 +202,13 @@ def enable_harmonic_bw_expansion(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Harmonic BW Expansion") - return val # type: ignore + return val # type: ignore @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Harmonic BW Expansion={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Enable Harmonic BW Expansion={value}"] + ) @property def number_of_harmonics(self) -> int: @@ -233,13 +217,11 @@ def number_of_harmonics(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Number of Harmonics") - return val # type: ignore + return val # type: ignore @number_of_harmonics.setter def number_of_harmonics(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Harmonics={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Harmonics={value}"]) @property def second_harmonic_level(self) -> float: @@ -248,13 +230,11 @@ def second_harmonic_level(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Second Harmonic Level") - return val # type: ignore + return val # type: ignore @second_harmonic_level.setter - def second_harmonic_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Second Harmonic Level={value}"]) + def second_harmonic_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Second Harmonic Level={value}"]) @property def third_harmonic_level(self) -> float: @@ -263,13 +243,11 @@ def third_harmonic_level(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Third Harmonic Level") - return val # type: ignore + return val # type: ignore @third_harmonic_level.setter - def third_harmonic_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Third Harmonic Level={value}"]) + def third_harmonic_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Third Harmonic Level={value}"]) @property def other_harmonic_levels(self) -> float: @@ -278,13 +256,11 @@ def other_harmonic_levels(self) -> float: "Value should be between -1000 and 0." """ val = self._get_property("Other Harmonic Levels") - return val # type: ignore + return val # type: ignore @other_harmonic_levels.setter - def other_harmonic_levels(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Other Harmonic Levels={value}"]) + def other_harmonic_levels(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Other Harmonic Levels={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -293,13 +269,13 @@ def perform_tx_intermod_analysis(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Tx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] + ) @property def internal_amp_gain(self) -> float: @@ -308,13 +284,11 @@ def internal_amp_gain(self) -> float: "Value should be between -1000 and 1000." """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @internal_amp_gain.setter - def internal_amp_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -323,13 +297,11 @@ def noise_figure(self) -> float: "Value should be between 0 and 50." """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -339,31 +311,29 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." "Value should be between -200 and 200." """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -373,14 +343,12 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -389,13 +357,11 @@ def reverse_isolation(self) -> float: "Value should be between -200 and 200." """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -404,11 +370,8 @@ def max_intermod_order(self) -> int: "Value should be between 3 and 20." """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py index 0d51535a381..85bd834841d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,13 +48,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): " Value should be a mathematical expression." - "Bandwidth: + "Bandwidth: " Value should be greater than 1." - "Power: + "Power: " Value should be between -200 and 150." """ return self._get_table_data() @@ -62,7 +66,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -76,14 +80,11 @@ class SpurTableUnitsOption(Enum): def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units "Specifies the units for the Spurs." - " """ + " """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spur Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py index a88a38a1afb..b08ede31135 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class WalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,41 +57,35 @@ def enabled(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna "First antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna "Second antenna of the pair to apply the coupling values to." - " """ + " """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -96,13 +94,11 @@ def enable_refinement(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -111,27 +107,23 @@ def adaptive_sampling(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain "Points to use when refining the frequency domain.." - " """ + " """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class PathLossTypeOption(Enum): LOS_URBAN_CANYON = "LOS (Urban Canyon)" @@ -141,16 +133,14 @@ class PathLossTypeOption(Enum): def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type "Specify LOS vs NLOS for the Walfisch-Ikegami model." - " """ + " """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] - return val # type: ignore + return val # type: ignore @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Path Loss Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Type={value.value}"]) class EnvironmentOption(Enum): DENSE_METRO = "Dense Metro" @@ -160,16 +150,14 @@ class EnvironmentOption(Enum): def environment(self) -> EnvironmentOption: """Environment "Specify the environment type for the Walfisch model." - " """ + " """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def roof_height(self) -> float: @@ -179,14 +167,12 @@ def roof_height(self) -> float: """ val = self._get_property("Roof Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @roof_height.setter - def roof_height(self, value : float|str): + def roof_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Roof Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Roof Height={value}"]) @property def distance_between_buildings(self) -> float: @@ -196,14 +182,14 @@ def distance_between_buildings(self) -> float: """ val = self._get_property("Distance Between Buildings") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @distance_between_buildings.setter - def distance_between_buildings(self, value : float|str): + def distance_between_buildings(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Distance Between Buildings={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Distance Between Buildings={value}"] + ) @property def street_width(self) -> float: @@ -213,14 +199,12 @@ def street_width(self) -> float: """ val = self._get_property("Street Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @street_width.setter - def street_width(self, value : float|str): + def street_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Street Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Street Width={value}"]) @property def incidence_angle(self) -> float: @@ -229,13 +213,11 @@ def incidence_angle(self) -> float: "Value should be between 0 and 90." """ val = self._get_property("Incidence Angle") - return val # type: ignore + return val # type: ignore @incidence_angle.setter - def incidence_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Incidence Angle={value}"]) + def incidence_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Incidence Angle={value}"]) @property def custom_fading_margin(self) -> float: @@ -244,13 +226,11 @@ def custom_fading_margin(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -259,13 +239,11 @@ def polarization_mismatch(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -274,13 +252,11 @@ def pointing_error_loss(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -292,16 +268,14 @@ class FadingTypeOption(Enum): def fading_type(self) -> FadingTypeOption: """Fading Type "Specify the type of fading to include." - " """ + " """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -310,13 +284,11 @@ def fading_availability(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -325,13 +297,11 @@ def std_deviation(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -340,13 +310,11 @@ def include_rain_attenuation(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -355,13 +323,11 @@ def rain_availability(self) -> float: "Value should be between 99 and 99.999." """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -370,13 +336,11 @@ def rain_rate(self) -> float: "Value should be between 0 and 1000." """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -385,13 +349,11 @@ def polarization_tilt_angle(self) -> float: "Value should be between 0 and 180." """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -400,13 +362,13 @@ def include_atmospheric_absorption(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -415,13 +377,11 @@ def temperature(self) -> float: "Value should be between -273 and 100." """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -430,13 +390,11 @@ def total_air_pressure(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -445,11 +403,10 @@ def water_vapor_concentration(self) -> float: "Value should be between 0 and 2000." """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py index 5ea07603f8e..1089548403d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Waveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -47,15 +51,13 @@ def enabled(self, value: bool): def port(self): """Port "Radio Port associated with this Band." - " """ + " """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" @@ -68,16 +70,14 @@ class WaveformOption(Enum): def waveform(self) -> WaveformOption: """Waveform "Modulation used for the transmitted/received signal." - " """ + " """ val = self._get_property("Waveform") val = self.WaveformOption[val] - return val # type: ignore + return val # type: ignore @waveform.setter def waveform(self, value: WaveformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Waveform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveform={value.value}"]) @property def start_frequency(self) -> float: @@ -87,14 +87,12 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -104,14 +102,12 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -121,14 +117,12 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_spacing.setter - def channel_spacing(self, value : float|str): + def channel_spacing(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) @property def clock_duty_cycle(self) -> float: @@ -137,13 +131,11 @@ def clock_duty_cycle(self) -> float: "Value should be between 0.001 and 1." """ val = self._get_property("Clock Duty Cycle") - return val # type: ignore + return val # type: ignore @clock_duty_cycle.setter - def clock_duty_cycle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Clock Duty Cycle={value}"]) + def clock_duty_cycle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Duty Cycle={value}"]) @property def clock_risefall_time(self) -> float: @@ -153,14 +145,12 @@ def clock_risefall_time(self) -> float: """ val = self._get_property("Clock Rise/Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @clock_risefall_time.setter - def clock_risefall_time(self, value : float|str): + def clock_risefall_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Clock Rise/Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Rise/Fall Time={value}"]) class SpreadingTypeOption(Enum): LOW_SPREAD = "Low Spread" @@ -171,16 +161,14 @@ class SpreadingTypeOption(Enum): def spreading_type(self) -> SpreadingTypeOption: """Spreading Type "Type of spreading employed by the Spread Spectrum Clock." - " """ + " """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] - return val # type: ignore + return val # type: ignore @spreading_type.setter def spreading_type(self, value: SpreadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spreading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spreading Type={value.value}"]) @property def spread_percentage(self) -> float: @@ -189,13 +177,11 @@ def spread_percentage(self) -> float: "Value should be between 0 and 100." """ val = self._get_property("Spread Percentage") - return val # type: ignore + return val # type: ignore @spread_percentage.setter - def spread_percentage(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spread Percentage={value}"]) + def spread_percentage(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spread Percentage={value}"]) @property def imported_spectrum(self) -> str: @@ -203,21 +189,19 @@ def imported_spectrum(self) -> str: "Value should be a full file path." """ val = self._get_property("Imported Spectrum") - return val # type: ignore + return val # type: ignore @imported_spectrum.setter def imported_spectrum(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Imported Spectrum={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Imported Spectrum={value}"]) @property def raw_data_format(self) -> str: """Raw Data Format "Format of the imported raw data." - " """ + " """ val = self._get_property("Raw Data Format") - return val # type: ignore + return val # type: ignore @property def system_impedance(self) -> float: @@ -227,14 +211,12 @@ def system_impedance(self) -> float: """ val = self._get_property("System Impedance") val = self._convert_from_internal_units(float(val), "Resistance") - return val # type: ignore + return val # type: ignore @system_impedance.setter - def system_impedance(self, value : float|str): + def system_impedance(self, value: float | str): value = self._convert_to_internal_units(value, "Resistance") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"System Impedance={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"System Impedance={value}"]) @property def advanced_extraction_params(self) -> bool: @@ -243,13 +225,13 @@ def advanced_extraction_params(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Advanced Extraction Params") - return val # type: ignore + return val # type: ignore @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Advanced Extraction Params={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Advanced Extraction Params={value}"] + ) @property def nb_window_size(self) -> float: @@ -258,13 +240,11 @@ def nb_window_size(self) -> float: "Value should be greater than 3." """ val = self._get_property("NB Window Size") - return val # type: ignore + return val # type: ignore @nb_window_size.setter - def nb_window_size(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NB Window Size={value}"]) + def nb_window_size(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Window Size={value}"]) @property def bb_smoothing_factor(self) -> float: @@ -273,13 +253,11 @@ def bb_smoothing_factor(self) -> float: "Value should be greater than 1." """ val = self._get_property("BB Smoothing Factor") - return val # type: ignore + return val # type: ignore @bb_smoothing_factor.setter - def bb_smoothing_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Smoothing Factor={value}"]) + def bb_smoothing_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Smoothing Factor={value}"]) @property def nb_detector_threshold(self) -> float: @@ -288,13 +266,11 @@ def nb_detector_threshold(self) -> float: "Value should be between 2 and 10." """ val = self._get_property("NB Detector Threshold") - return val # type: ignore + return val # type: ignore @nb_detector_threshold.setter - def nb_detector_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NB Detector Threshold={value}"]) + def nb_detector_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Detector Threshold={value}"]) class AlgorithmOption(Enum): FFT = "FFT" @@ -304,16 +280,14 @@ class AlgorithmOption(Enum): def algorithm(self) -> AlgorithmOption: """Algorithm "Algorithm used to transform the imported time domain spectrum." - " """ + " """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] - return val # type: ignore + return val # type: ignore @algorithm.setter def algorithm(self, value: AlgorithmOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Algorithm={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Algorithm={value.value}"]) @property def start_time(self) -> float: @@ -323,30 +297,26 @@ def start_time(self) -> float: """ val = self._get_property("Start Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @start_time.setter - def start_time(self, value : float|str): + def start_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Time={value}"]) @property def stop_time(self) -> float: """Stop Time "Final time of the imported time domain spectrum." - " """ + " """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @stop_time.setter - def stop_time(self, value : float|str): + def stop_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Time={value}"]) @property def max_frequency(self) -> float: @@ -356,14 +326,12 @@ def max_frequency(self) -> float: """ val = self._get_property("Max Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_frequency.setter - def max_frequency(self, value : float|str): + def max_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Frequency={value}"]) class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" @@ -380,16 +348,14 @@ class WindowTypeOption(Enum): def window_type(self) -> WindowTypeOption: """Window Type "Windowing scheme used for importing time domain spectrum." - " """ + " """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] - return val # type: ignore + return val # type: ignore @window_type.setter def window_type(self, value: WindowTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Window Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Window Type={value.value}"]) @property def kaiser_parameter(self) -> float: @@ -398,13 +364,11 @@ def kaiser_parameter(self) -> float: "Value should be greater than 0." """ val = self._get_property("Kaiser Parameter") - return val # type: ignore + return val # type: ignore @kaiser_parameter.setter - def kaiser_parameter(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Kaiser Parameter={value}"]) + def kaiser_parameter(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Kaiser Parameter={value}"]) @property def adjust_coherent_gain(self) -> bool: @@ -413,13 +377,11 @@ def adjust_coherent_gain(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Adjust Coherent Gain") - return val # type: ignore + return val # type: ignore @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adjust Coherent Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adjust Coherent Gain={value}"]) @property def data_rate(self) -> float: @@ -429,14 +391,12 @@ def data_rate(self) -> float: """ val = self._get_property("Data Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @data_rate.setter - def data_rate(self, value : float|str): + def data_rate(self, value: float | str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Rate={value}"]) @property def num_of_bits(self) -> int: @@ -445,13 +405,11 @@ def num_of_bits(self) -> int: "Value should be between 1 and 1000." """ val = self._get_property("Num of Bits") - return val # type: ignore + return val # type: ignore @num_of_bits.setter def num_of_bits(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Num of Bits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Num of Bits={value}"]) @property def use_envelope(self) -> bool: @@ -460,13 +418,11 @@ def use_envelope(self) -> bool: "Value should be 'true' or 'false'." """ val = self._get_property("Use Envelope") - return val # type: ignore + return val # type: ignore @use_envelope.setter def use_envelope(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Envelope={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Envelope={value}"]) @property def min_ptsnull(self) -> int: @@ -475,13 +431,11 @@ def min_ptsnull(self) -> int: "Value should be between 2 and 50." """ val = self._get_property("Min Pts/Null") - return val # type: ignore + return val # type: ignore @min_ptsnull.setter def min_ptsnull(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pts/Null={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pts/Null={value}"]) @property def delay_skew(self) -> float: @@ -491,12 +445,9 @@ def delay_skew(self) -> float: """ val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @delay_skew.setter - def delay_skew(self, value : float|str): + def delay_skew(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Delay Skew={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Delay Skew={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index bd6f8b1de0e..7f7a748aedf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,3 +1,27 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from .Amplifier import Amplifier from .AntennaNode import AntennaNode from .AntennaPassband import AntennaPassband @@ -33,38 +57,6 @@ from .ProfileTraceNode import ProfileTraceNode from .PropagationLossCouplingNode import PropagationLossCouplingNode from .RadioNode import RadioNode -from .ResultPlotNode import ResultPlotNode -from .RfSystemGroup import RfSystemGroup -from .RxMeasNode import RxMeasNode -from .RxMixerProductNode import RxMixerProductNode -from .RxSaturationNode import RxSaturationNode -from .RxSelectivityNode import RxSelectivityNode -from .RxSpurNode import RxSpurNode -from .RxSusceptibilityProfNode import RxSusceptibilityProfNode -from .SamplingNode import SamplingNode -from .SceneGroupNode import SceneGroupNode -from .SelectivityTraceNode import SelectivityTraceNode -from .SolutionCouplingNode import SolutionCouplingNode -from .SolutionsNode import SolutionsNode -from .SpurTraceNode import SpurTraceNode -from .TR_Switch import TR_Switch -from .TRSwitchTraceNode import TRSwitchTraceNode -from .Terminator import Terminator -from .TestNoiseTraceNode import TestNoiseTraceNode -from .TopLevelSimulation import TopLevelSimulation -from .TouchstoneCouplingNode import TouchstoneCouplingNode -from .TunableTraceNode import TunableTraceNode -from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode -from .TwoToneTraceNode import TwoToneTraceNode -from .TxBbEmissionNode import TxBbEmissionNode -from .TxHarmonicNode import TxHarmonicNode -from .TxMeasNode import TxMeasNode -from .TxNbEmissionNode import TxNbEmissionNode -from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode -from .TxSpectralProfNode import TxSpectralProfNode -from .TxSpurNode import TxSpurNode -from .WalfischCouplingNode import WalfischCouplingNode -from .Waveform import Waveform from .ReadOnlyAmplifier import ReadOnlyAmplifier from .ReadOnlyAntennaNode import ReadOnlyAntennaNode from .ReadOnlyAntennaPassband import ReadOnlyAntennaPassband @@ -113,121 +105,153 @@ from .ReadOnlyTxSpurNode import ReadOnlyTxSpurNode from .ReadOnlyWalfischCouplingNode import ReadOnlyWalfischCouplingNode from .ReadOnlyWaveform import ReadOnlyWaveform +from .ResultPlotNode import ResultPlotNode +from .RfSystemGroup import RfSystemGroup +from .RxMeasNode import RxMeasNode +from .RxMixerProductNode import RxMixerProductNode +from .RxSaturationNode import RxSaturationNode +from .RxSelectivityNode import RxSelectivityNode +from .RxSpurNode import RxSpurNode +from .RxSusceptibilityProfNode import RxSusceptibilityProfNode +from .SamplingNode import SamplingNode +from .SceneGroupNode import SceneGroupNode +from .SelectivityTraceNode import SelectivityTraceNode +from .SolutionCouplingNode import SolutionCouplingNode +from .SolutionsNode import SolutionsNode +from .SpurTraceNode import SpurTraceNode +from .TRSwitchTraceNode import TRSwitchTraceNode +from .TR_Switch import TR_Switch +from .Terminator import Terminator +from .TestNoiseTraceNode import TestNoiseTraceNode +from .TopLevelSimulation import TopLevelSimulation +from .TouchstoneCouplingNode import TouchstoneCouplingNode +from .TunableTraceNode import TunableTraceNode +from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode +from .TwoToneTraceNode import TwoToneTraceNode +from .TxBbEmissionNode import TxBbEmissionNode +from .TxHarmonicNode import TxHarmonicNode +from .TxMeasNode import TxMeasNode +from .TxNbEmissionNode import TxNbEmissionNode +from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode +from .TxSpectralProfNode import TxSpectralProfNode +from .TxSpurNode import TxSpurNode +from .WalfischCouplingNode import WalfischCouplingNode +from .Waveform import Waveform __all__ = [ - 'Amplifier', - 'AntennaNode', - 'AntennaPassband', - 'Band', - 'BandFolder', - 'BandTraceNode', - 'CADNode', - 'Cable', - 'CategoriesViewNode', - 'Circulator', - 'CouplingLinkNode', - 'CouplingTraceNode', - 'CouplingsNode', - 'CustomCouplingNode', - 'EmiPlotMarkerNode', - 'EmitSceneNode', - 'ErcegCouplingNode', - 'Filter', - 'FiveGChannelModel', - 'HataCouplingNode', - 'IndoorPropagationCouplingNode', - 'Isolator', - 'LogDistanceCouplingNode', - 'MPlexBandTraceNode', - 'Multiplexer', - 'MultiplexerBand', - 'OutboardTraceNode', - 'ParametricCouplingTraceNode', - 'PlotMarkerNode', - 'PlotNode', - 'PowerDivider', - 'PowerTraceNode', - 'ProfileTraceNode', - 'PropagationLossCouplingNode', - 'RadioNode', - 'ResultPlotNode', - 'RfSystemGroup', - 'RxMeasNode', - 'RxMixerProductNode', - 'RxSaturationNode', - 'RxSelectivityNode', - 'RxSpurNode', - 'RxSusceptibilityProfNode', - 'SamplingNode', - 'SceneGroupNode', - 'SelectivityTraceNode', - 'SolutionCouplingNode', - 'SolutionsNode', - 'SpurTraceNode', - 'TR_Switch', - 'TRSwitchTraceNode', - 'Terminator', - 'TestNoiseTraceNode', - 'TopLevelSimulation', - 'TouchstoneCouplingNode', - 'TunableTraceNode', - 'TwoRayPathLossCouplingNode', - 'TwoToneTraceNode', - 'TxBbEmissionNode', - 'TxHarmonicNode', - 'TxMeasNode', - 'TxNbEmissionNode', - 'TxSpectralProfEmitterNode', - 'TxSpectralProfNode', - 'TxSpurNode', - 'WalfischCouplingNode', - 'Waveform', - 'ReadOnlyAmplifier', - 'ReadOnlyAntennaNode', - 'ReadOnlyAntennaPassband', - 'ReadOnlyBand', - 'ReadOnlyBandFolder', - 'ReadOnlyCADNode', - 'ReadOnlyCable', - 'ReadOnlyCirculator', - 'ReadOnlyCouplingLinkNode', - 'ReadOnlyCouplingsNode', - 'ReadOnlyCustomCouplingNode', - 'ReadOnlyEmitSceneNode', - 'ReadOnlyErcegCouplingNode', - 'ReadOnlyFilter', - 'ReadOnlyFiveGChannelModel', - 'ReadOnlyHataCouplingNode', - 'ReadOnlyIndoorPropagationCouplingNode', - 'ReadOnlyIsolator', - 'ReadOnlyLogDistanceCouplingNode', - 'ReadOnlyMultiplexer', - 'ReadOnlyMultiplexerBand', - 'ReadOnlyPowerDivider', - 'ReadOnlyPropagationLossCouplingNode', - 'ReadOnlyRadioNode', - 'ReadOnlyRfSystemGroup', - 'ReadOnlyRxMeasNode', - 'ReadOnlyRxMixerProductNode', - 'ReadOnlyRxSaturationNode', - 'ReadOnlyRxSelectivityNode', - 'ReadOnlyRxSpurNode', - 'ReadOnlyRxSusceptibilityProfNode', - 'ReadOnlySamplingNode', - 'ReadOnlySceneGroupNode', - 'ReadOnlySolutionCouplingNode', - 'ReadOnlySolutionsNode', - 'ReadOnlyTR_Switch', - 'ReadOnlyTerminator', - 'ReadOnlyTouchstoneCouplingNode', - 'ReadOnlyTwoRayPathLossCouplingNode', - 'ReadOnlyTxBbEmissionNode', - 'ReadOnlyTxHarmonicNode', - 'ReadOnlyTxMeasNode', - 'ReadOnlyTxNbEmissionNode', - 'ReadOnlyTxSpectralProfEmitterNode', - 'ReadOnlyTxSpectralProfNode', - 'ReadOnlyTxSpurNode', - 'ReadOnlyWalfischCouplingNode', - 'ReadOnlyWaveform', + "Amplifier", + "AntennaNode", + "AntennaPassband", + "Band", + "BandFolder", + "BandTraceNode", + "CADNode", + "Cable", + "CategoriesViewNode", + "Circulator", + "CouplingLinkNode", + "CouplingTraceNode", + "CouplingsNode", + "CustomCouplingNode", + "EmiPlotMarkerNode", + "EmitSceneNode", + "ErcegCouplingNode", + "Filter", + "FiveGChannelModel", + "HataCouplingNode", + "IndoorPropagationCouplingNode", + "Isolator", + "LogDistanceCouplingNode", + "MPlexBandTraceNode", + "Multiplexer", + "MultiplexerBand", + "OutboardTraceNode", + "ParametricCouplingTraceNode", + "PlotMarkerNode", + "PlotNode", + "PowerDivider", + "PowerTraceNode", + "ProfileTraceNode", + "PropagationLossCouplingNode", + "RadioNode", + "ResultPlotNode", + "RfSystemGroup", + "RxMeasNode", + "RxMixerProductNode", + "RxSaturationNode", + "RxSelectivityNode", + "RxSpurNode", + "RxSusceptibilityProfNode", + "SamplingNode", + "SceneGroupNode", + "SelectivityTraceNode", + "SolutionCouplingNode", + "SolutionsNode", + "SpurTraceNode", + "TR_Switch", + "TRSwitchTraceNode", + "Terminator", + "TestNoiseTraceNode", + "TopLevelSimulation", + "TouchstoneCouplingNode", + "TunableTraceNode", + "TwoRayPathLossCouplingNode", + "TwoToneTraceNode", + "TxBbEmissionNode", + "TxHarmonicNode", + "TxMeasNode", + "TxNbEmissionNode", + "TxSpectralProfEmitterNode", + "TxSpectralProfNode", + "TxSpurNode", + "WalfischCouplingNode", + "Waveform", + "ReadOnlyAmplifier", + "ReadOnlyAntennaNode", + "ReadOnlyAntennaPassband", + "ReadOnlyBand", + "ReadOnlyBandFolder", + "ReadOnlyCADNode", + "ReadOnlyCable", + "ReadOnlyCirculator", + "ReadOnlyCouplingLinkNode", + "ReadOnlyCouplingsNode", + "ReadOnlyCustomCouplingNode", + "ReadOnlyEmitSceneNode", + "ReadOnlyErcegCouplingNode", + "ReadOnlyFilter", + "ReadOnlyFiveGChannelModel", + "ReadOnlyHataCouplingNode", + "ReadOnlyIndoorPropagationCouplingNode", + "ReadOnlyIsolator", + "ReadOnlyLogDistanceCouplingNode", + "ReadOnlyMultiplexer", + "ReadOnlyMultiplexerBand", + "ReadOnlyPowerDivider", + "ReadOnlyPropagationLossCouplingNode", + "ReadOnlyRadioNode", + "ReadOnlyRfSystemGroup", + "ReadOnlyRxMeasNode", + "ReadOnlyRxMixerProductNode", + "ReadOnlyRxSaturationNode", + "ReadOnlyRxSelectivityNode", + "ReadOnlyRxSpurNode", + "ReadOnlyRxSusceptibilityProfNode", + "ReadOnlySamplingNode", + "ReadOnlySceneGroupNode", + "ReadOnlySolutionCouplingNode", + "ReadOnlySolutionsNode", + "ReadOnlyTR_Switch", + "ReadOnlyTerminator", + "ReadOnlyTouchstoneCouplingNode", + "ReadOnlyTwoRayPathLossCouplingNode", + "ReadOnlyTxBbEmissionNode", + "ReadOnlyTxHarmonicNode", + "ReadOnlyTxMeasNode", + "ReadOnlyTxNbEmissionNode", + "ReadOnlyTxSpectralProfEmitterNode", + "ReadOnlyTxSpectralProfNode", + "ReadOnlyTxSpurNode", + "ReadOnlyWalfischCouplingNode", + "ReadOnlyWaveform", ] From a552d445dab57f31fe613e08099ae9ece34c3902 Mon Sep 17 00:00:00 2001 From: jsalant Date: Wed, 23 Apr 2025 17:07:10 -0400 Subject: [PATCH 43/86] revert min version check --- .../aedt/core/emit_core/results/revision.py | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index db3f7aeea17..cd65cdb94ab 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -827,7 +827,7 @@ def get_license_session(self): engine = self.emit_project._emit_api.get_engine() return engine.license_session() - def error_if_below_aedt_version(self, version: int): + def error_if_below_aedt_version(self, version : int): def decorator(func): def wrapper(self, *args, **kwargs): if self.aedt_version > version: @@ -841,7 +841,7 @@ def wrapper(self, *args, **kwargs): return decorator @pyaedt_function_handler - @min_aedt_version("2025.1") + @error_if_below_aedt_version(251) # type: ignore def _get_all_component_names(self) -> list[str]: """Gets all component names from this revision. @@ -858,7 +858,7 @@ def _get_all_component_names(self) -> list[str]: return component_names @pyaedt_function_handler - @min_aedt_version("2025.1") + @error_if_below_aedt_version(251) # type: ignore def _get_all_top_level_node_ids(self) -> list[int]: """Gets all top level node ids from this revision. @@ -902,7 +902,7 @@ def _get_all_top_level_node_ids(self) -> list[int]: return top_level_node_ids @pyaedt_function_handler - @min_aedt_version("2025.1") + @error_if_below_aedt_version(251) def get_all_top_level_nodes(self) -> list[EmitNode]: """Gets all top level nodes from this revision. @@ -920,7 +920,7 @@ def get_all_top_level_nodes(self) -> list[EmitNode]: return top_level_nodes @pyaedt_function_handler - @min_aedt_version("2025.1") + @error_if_below_aedt_version(251) def get_all_component_nodes(self) -> list[EmitNode]: """Gets all component nodes from this revision. @@ -939,7 +939,7 @@ def get_all_component_nodes(self) -> list[EmitNode]: return component_nodes @pyaedt_function_handler - @min_aedt_version("2025.1") + @error_if_below_aedt_version(251) def _get_all_node_ids(self) -> list[int]: """Gets all node ids from this revision. @@ -977,7 +977,7 @@ def _get_all_node_ids(self) -> list[int]: return node_ids @pyaedt_function_handler - @min_aedt_version("2025.1") + @error_if_below_aedt_version(251) def _get_node(self, node_id: int) -> EmitNode: """Gets a node for this revision with the given id. @@ -1010,7 +1010,7 @@ def _get_node(self, node_id: int) -> EmitNode: return node @pyaedt_function_handler - @min_aedt_version("2025.1") + @error_if_below_aedt_version(251) def get_all_nodes(self) -> list[EmitNode]: """Gets all nodes for this revision. @@ -1029,7 +1029,7 @@ def get_all_nodes(self) -> list[EmitNode]: # Methods to get specific top level nodes @pyaedt_function_handler - @min_aedt_version("2025.1") + @error_if_below_aedt_version(251) def get_scene_node(self) -> EmitSceneNode: """Gets the Scene node for this revision. @@ -1047,7 +1047,7 @@ def get_scene_node(self) -> EmitSceneNode: return scene_node @pyaedt_function_handler - @min_aedt_version("2025.1") + @error_if_below_aedt_version(251) def get_coupling_data_node(self) -> CouplingsNode: """Gets the Coupling Data node for this revision. @@ -1065,7 +1065,7 @@ def get_coupling_data_node(self) -> CouplingsNode: return coupling_data_node @pyaedt_function_handler - @min_aedt_version("2025.1") + @error_if_below_aedt_version(251) def get_simulation_node(self) -> EmitNode: """Gets the Simulation node for this revision. @@ -1083,7 +1083,7 @@ def get_simulation_node(self) -> EmitNode: return simulation_node @pyaedt_function_handler - @min_aedt_version("2025.1") + @error_if_below_aedt_version(251) def get_preferences_node(self) -> EmitNode: """Gets the Preferences node for this revision. @@ -1101,7 +1101,7 @@ def get_preferences_node(self) -> EmitNode: return preferences_node @pyaedt_function_handler - @min_aedt_version("2025.1") + @error_if_below_aedt_version(251) def get_rf_systems_node(self) -> EmitNode: """Gets the RF Systems node for this revision. @@ -1119,7 +1119,7 @@ def get_rf_systems_node(self) -> EmitNode: return rf_systems_node @pyaedt_function_handler - @min_aedt_version("2025.1") + @error_if_below_aedt_version(251) def get_result_plot_node(self) -> ResultPlotNode: """Gets the Result Plot node for this revision. @@ -1137,7 +1137,7 @@ def get_result_plot_node(self) -> ResultPlotNode: return result_plot_node @pyaedt_function_handler - @min_aedt_version("2025.1") + @error_if_below_aedt_version(251) def get_result_categorization_node(self) -> EmitNode: """Gets the Result Categorization node for this revision. @@ -1157,7 +1157,7 @@ def get_result_categorization_node(self) -> EmitNode: return result_categorization_node @pyaedt_function_handler - @min_aedt_version("2025.1") + @error_if_below_aedt_version(251) def get_project_tree_node(self) -> EmitNode: """Gets the Project Tree node for this revision. @@ -1175,7 +1175,7 @@ def get_project_tree_node(self) -> EmitNode: return project_tree_node @pyaedt_function_handler - @min_aedt_version("2025.1") + @error_if_below_aedt_version(251) def get_properties_node(self) -> EmitNode: """Gets the Properties node for this revision. @@ -1193,7 +1193,7 @@ def get_properties_node(self) -> EmitNode: return properties_node @pyaedt_function_handler - @min_aedt_version("2025.1") + @error_if_below_aedt_version(251) def get_antenna_coupling_matrix_node(self) -> EmitNode: """Gets the Antenna Coupling Matrix node for this revision. @@ -1213,7 +1213,7 @@ def get_antenna_coupling_matrix_node(self) -> EmitNode: return antenna_coupling_matrix_node @pyaedt_function_handler - @min_aedt_version("2025.1") + @error_if_below_aedt_version(251) def get_scenario_matrix_node(self) -> EmitNode: """Gets the Scenario Matrix node for this revision. @@ -1231,7 +1231,7 @@ def get_scenario_matrix_node(self) -> EmitNode: return scenario_matrix_node @pyaedt_function_handler - @min_aedt_version("2025.1") + @error_if_below_aedt_version(251) def get_scenario_details_node(self) -> EmitNode: """Gets the Scenario Details node for this revision. @@ -1249,7 +1249,7 @@ def get_scenario_details_node(self) -> EmitNode: return scenario_details_node @pyaedt_function_handler - @min_aedt_version("2025.1") + @error_if_below_aedt_version(251) def get_interaction_diagram_node(self) -> EmitNode: """Gets the Interaction Diagram node for this revision. @@ -1269,7 +1269,7 @@ def get_interaction_diagram_node(self) -> EmitNode: return interaction_diagram_node @pyaedt_function_handler - @min_aedt_version("2025.1") + @error_if_below_aedt_version(251) def _get_disconnected_radios(self) -> list[str]: """Gets a list of disconnected radios for this revision. From 7e0158b878e7c1042406e8df887d845ceeb4a253 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 23 Apr 2025 21:08:54 +0000 Subject: [PATCH 44/86] CHORE: Auto fixes from pre-commit hooks --- src/ansys/aedt/core/emit_core/results/revision.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index cd65cdb94ab..98333ecbbc4 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -827,7 +827,7 @@ def get_license_session(self): engine = self.emit_project._emit_api.get_engine() return engine.license_session() - def error_if_below_aedt_version(self, version : int): + def error_if_below_aedt_version(self, version: int): def decorator(func): def wrapper(self, *args, **kwargs): if self.aedt_version > version: @@ -841,7 +841,7 @@ def wrapper(self, *args, **kwargs): return decorator @pyaedt_function_handler - @error_if_below_aedt_version(251) # type: ignore + @error_if_below_aedt_version(251) # type: ignore def _get_all_component_names(self) -> list[str]: """Gets all component names from this revision. @@ -858,7 +858,7 @@ def _get_all_component_names(self) -> list[str]: return component_names @pyaedt_function_handler - @error_if_below_aedt_version(251) # type: ignore + @error_if_below_aedt_version(251) # type: ignore def _get_all_top_level_node_ids(self) -> list[int]: """Gets all top level node ids from this revision. From 358dbc858f76f43a1c03c6209bd824ae51a9374f Mon Sep 17 00:00:00 2001 From: jsalant Date: Wed, 23 Apr 2025 18:09:33 -0400 Subject: [PATCH 45/86] move decorator out of class --- .../aedt/core/emit_core/results/revision.py | 36 ++++++++++++------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index 98333ecbbc4..260bf4728f4 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -37,6 +37,18 @@ from ansys.aedt.core.generic.general_methods import pyaedt_function_handler from ansys.aedt.core.internal.checks import min_aedt_version +def error_if_below_aedt_version(version : int): + def decorator(func): + def wrapper(self, *args, **kwargs): + if self.aedt_version > version: + result = func(self, *args, **kwargs) + return result + else: + raise RuntimeError(f"This function is only supported in AEDT version {version} and later.") + + return wrapper + + return decorator class Revision: """ @@ -827,21 +839,21 @@ def get_license_session(self): engine = self.emit_project._emit_api.get_engine() return engine.license_session() - def error_if_below_aedt_version(self, version: int): - def decorator(func): - def wrapper(self, *args, **kwargs): - if self.aedt_version > version: - result = func(self, *args, **kwargs) - return result - else: - raise RuntimeError(f"This function is only supported in AEDT version {version} and later.") + # def error_if_below_aedt_version(self, version : int): + # def decorator(func): + # def wrapper(self, *args, **kwargs): + # if self.aedt_version > version: + # result = func(self, *args, **kwargs) + # return result + # else: + # raise RuntimeError(f"This function is only supported in AEDT version {version} and later.") - return wrapper + # return wrapper - return decorator + # return decorator @pyaedt_function_handler - @error_if_below_aedt_version(251) # type: ignore + @error_if_below_aedt_version(251) def _get_all_component_names(self) -> list[str]: """Gets all component names from this revision. @@ -858,7 +870,7 @@ def _get_all_component_names(self) -> list[str]: return component_names @pyaedt_function_handler - @error_if_below_aedt_version(251) # type: ignore + @error_if_below_aedt_version(251) def _get_all_top_level_node_ids(self) -> list[int]: """Gets all top level node ids from this revision. From b967b2f79d3dc1e33334ea58fe975bce1440a765 Mon Sep 17 00:00:00 2001 From: jsalant Date: Wed, 23 Apr 2025 18:11:21 -0400 Subject: [PATCH 46/86] remove unused import --- src/ansys/aedt/core/emit_core/results/revision.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index 260bf4728f4..3782866230b 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -35,7 +35,6 @@ from ansys.aedt.core.emit_core.nodes.generated import EmitSceneNode from ansys.aedt.core.emit_core.nodes.generated import ResultPlotNode from ansys.aedt.core.generic.general_methods import pyaedt_function_handler -from ansys.aedt.core.internal.checks import min_aedt_version def error_if_below_aedt_version(version : int): def decorator(func): @@ -111,7 +110,7 @@ def __init__(self, parent_results, emit_obj, name=None): """Path to the EMIT result folder for the revision.""" else: kept_result_names = emit_obj.odesign.GetKeptResultNames() - if not (name in kept_result_names): + if not name in kept_result_names: raise ValueError(f'Revision "{name}" does not exist in the project.') self.results_index = self._emit_com.GetKeptResultIndex(name) From fa4f58ba1cdc478155f339f696f334da132a4296 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 23 Apr 2025 22:13:05 +0000 Subject: [PATCH 47/86] CHORE: Auto fixes from pre-commit hooks --- src/ansys/aedt/core/emit_core/results/revision.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index 3782866230b..55214dcf22a 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -36,7 +36,8 @@ from ansys.aedt.core.emit_core.nodes.generated import ResultPlotNode from ansys.aedt.core.generic.general_methods import pyaedt_function_handler -def error_if_below_aedt_version(version : int): + +def error_if_below_aedt_version(version: int): def decorator(func): def wrapper(self, *args, **kwargs): if self.aedt_version > version: @@ -49,6 +50,7 @@ def wrapper(self, *args, **kwargs): return decorator + class Revision: """ Provides the ``Revision`` object. From 6d1ed2d50ba96707ceb7b9a8b01445a0a41f3587 Mon Sep 17 00:00:00 2001 From: jsalant Date: Thu, 24 Apr 2025 08:39:04 -0400 Subject: [PATCH 48/86] fix some units code wrap the docstrings --- .../emit_core/nodes/generated/Amplifier.py | 191 +++-- .../emit_core/nodes/generated/AntennaNode.py | 740 +++++++++++------- .../nodes/generated/AntennaPassband.py | 107 +-- .../core/emit_core/nodes/generated/Band.py | 469 ++++++----- .../emit_core/nodes/generated/BandFolder.py | 16 +- .../nodes/generated/BandTraceNode.py | 181 +++-- .../core/emit_core/nodes/generated/CADNode.py | 482 +++++++----- .../core/emit_core/nodes/generated/Cable.py | 136 ++-- .../nodes/generated/CategoriesViewNode.py | 16 +- .../emit_core/nodes/generated/Circulator.py | 197 +++-- .../nodes/generated/CouplingLinkNode.py | 38 +- .../nodes/generated/CouplingTraceNode.py | 255 +++--- .../nodes/generated/CouplingsNode.py | 52 +- .../nodes/generated/CustomCouplingNode.py | 94 ++- .../nodes/generated/EmiPlotMarkerNode.py | 273 ++++--- .../nodes/generated/EmitSceneNode.py | 55 +- .../nodes/generated/ErcegCouplingNode.py | 281 ++++--- .../core/emit_core/nodes/generated/Filter.py | 317 +++++--- .../nodes/generated/FiveGChannelModel.py | 314 +++++--- .../nodes/generated/HataCouplingNode.py | 281 ++++--- .../IndoorPropagationCouplingNode.py | 306 +++++--- .../emit_core/nodes/generated/Isolator.py | 197 +++-- .../generated/LogDistanceCouplingNode.py | 294 ++++--- .../nodes/generated/MPlexBandTraceNode.py | 159 ++-- .../emit_core/nodes/generated/Multiplexer.py | 105 ++- .../nodes/generated/MultiplexerBand.py | 178 +++-- .../nodes/generated/OutboardTraceNode.py | 173 ++-- .../generated/ParametricCouplingTraceNode.py | 167 ++-- .../nodes/generated/PlotMarkerNode.py | 285 ++++--- .../emit_core/nodes/generated/PlotNode.py | 353 +++++---- .../emit_core/nodes/generated/PowerDivider.py | 200 +++-- .../nodes/generated/PowerTraceNode.py | 162 ++-- .../nodes/generated/ProfileTraceNode.py | 151 ++-- .../generated/PropagationLossCouplingNode.py | 270 ++++--- .../emit_core/nodes/generated/RadioNode.py | 35 +- .../nodes/generated/ReadOnlyAmplifier.py | 115 +-- .../nodes/generated/ReadOnlyAntennaNode.py | 484 +++++++----- .../generated/ReadOnlyAntennaPassband.py | 65 +- .../emit_core/nodes/generated/ReadOnlyBand.py | 281 ++++--- .../nodes/generated/ReadOnlyBandFolder.py | 16 +- .../nodes/generated/ReadOnlyCADNode.py | 302 ++++--- .../nodes/generated/ReadOnlyCable.py | 88 ++- .../nodes/generated/ReadOnlyCirculator.py | 125 +-- .../generated/ReadOnlyCouplingLinkNode.py | 30 +- .../nodes/generated/ReadOnlyCouplingsNode.py | 38 +- .../generated/ReadOnlyCustomCouplingNode.py | 68 +- .../nodes/generated/ReadOnlyEmitSceneNode.py | 39 +- .../generated/ReadOnlyErcegCouplingNode.py | 171 ++-- .../nodes/generated/ReadOnlyFilter.py | 191 +++-- .../generated/ReadOnlyFiveGChannelModel.py | 192 +++-- .../generated/ReadOnlyHataCouplingNode.py | 171 ++-- .../ReadOnlyIndoorPropagationCouplingNode.py | 192 +++-- .../nodes/generated/ReadOnlyIsolator.py | 125 +-- .../ReadOnlyLogDistanceCouplingNode.py | 178 +++-- .../nodes/generated/ReadOnlyMultiplexer.py | 75 +- .../generated/ReadOnlyMultiplexerBand.py | 110 +-- .../nodes/generated/ReadOnlyPowerDivider.py | 126 +-- .../ReadOnlyPropagationLossCouplingNode.py | 164 ++-- .../nodes/generated/ReadOnlyRadioNode.py | 31 +- .../nodes/generated/ReadOnlyRfSystemGroup.py | 33 +- .../nodes/generated/ReadOnlyRxMeasNode.py | 171 ++-- .../generated/ReadOnlyRxMixerProductNode.py | 131 ++-- .../generated/ReadOnlyRxSaturationNode.py | 16 +- .../generated/ReadOnlyRxSelectivityNode.py | 24 +- .../nodes/generated/ReadOnlyRxSpurNode.py | 38 +- .../ReadOnlyRxSusceptibilityProfNode.py | 125 +-- .../nodes/generated/ReadOnlySamplingNode.py | 86 +- .../nodes/generated/ReadOnlySceneGroupNode.py | 81 +- .../generated/ReadOnlySolutionCouplingNode.py | 45 +- .../nodes/generated/ReadOnlySolutionsNode.py | 24 +- .../nodes/generated/ReadOnlyTR_Switch.py | 117 +-- .../nodes/generated/ReadOnlyTerminator.py | 69 +- .../ReadOnlyTouchstoneCouplingNode.py | 79 +- .../ReadOnlyTwoRayPathLossCouplingNode.py | 178 +++-- .../generated/ReadOnlyTxBbEmissionNode.py | 40 +- .../nodes/generated/ReadOnlyTxHarmonicNode.py | 24 +- .../nodes/generated/ReadOnlyTxMeasNode.py | 65 +- .../generated/ReadOnlyTxNbEmissionNode.py | 31 +- .../ReadOnlyTxSpectralProfEmitterNode.py | 96 ++- .../generated/ReadOnlyTxSpectralProfNode.py | 182 +++-- .../nodes/generated/ReadOnlyTxSpurNode.py | 38 +- .../generated/ReadOnlyWalfischCouplingNode.py | 206 ++--- .../nodes/generated/ReadOnlyWaveform.py | 211 ++--- .../nodes/generated/ResultPlotNode.py | 364 +++++---- .../nodes/generated/RfSystemGroup.py | 43 +- .../emit_core/nodes/generated/RxMeasNode.py | 267 ++++--- .../nodes/generated/RxMixerProductNode.py | 227 +++--- .../nodes/generated/RxSaturationNode.py | 20 +- .../nodes/generated/RxSelectivityNode.py | 32 +- .../emit_core/nodes/generated/RxSpurNode.py | 46 +- .../generated/RxSusceptibilityProfNode.py | 211 ++--- .../emit_core/nodes/generated/SamplingNode.py | 110 +-- .../nodes/generated/SceneGroupNode.py | 119 +-- .../nodes/generated/SelectivityTraceNode.py | 151 ++-- .../nodes/generated/SolutionCouplingNode.py | 61 +- .../nodes/generated/SolutionsNode.py | 28 +- .../nodes/generated/SpurTraceNode.py | 170 ++-- .../nodes/generated/TRSwitchTraceNode.py | 173 ++-- .../emit_core/nodes/generated/TR_Switch.py | 191 +++-- .../emit_core/nodes/generated/Terminator.py | 97 ++- .../nodes/generated/TestNoiseTraceNode.py | 264 ++++--- .../nodes/generated/TopLevelSimulation.py | 16 +- .../nodes/generated/TouchstoneCouplingNode.py | 111 +-- .../nodes/generated/TunableTraceNode.py | 186 +++-- .../generated/TwoRayPathLossCouplingNode.py | 294 ++++--- .../nodes/generated/TwoToneTraceNode.py | 264 ++++--- .../nodes/generated/TxBbEmissionNode.py | 54 +- .../nodes/generated/TxHarmonicNode.py | 34 +- .../emit_core/nodes/generated/TxMeasNode.py | 89 ++- .../nodes/generated/TxNbEmissionNode.py | 47 +- .../generated/TxSpectralProfEmitterNode.py | 162 ++-- .../nodes/generated/TxSpectralProfNode.py | 312 +++++--- .../emit_core/nodes/generated/TxSpurNode.py | 46 +- .../nodes/generated/WalfischCouplingNode.py | 346 ++++---- .../emit_core/nodes/generated/Waveform.py | 355 +++++---- .../emit_core/nodes/generated/__init__.py | 318 ++++---- .../core/modeler/circuits/primitives_emit.py | 75 +- 117 files changed, 10723 insertions(+), 7577 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index aea5f11422c..e537142aa73 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Amplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -48,40 +44,49 @@ def delete(self): @property def filename(self) -> str: """Filename - "Name of file defining the outboard component." - "Value should be a full file path." + Name of file defining the outboard component + + Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." + System Noise temperature (K) of the component + + Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class AmplifierTypeOption(Enum): TRANSMIT_AMPLIFIER = "Transmit Amplifier" @@ -90,152 +95,186 @@ class AmplifierTypeOption(Enum): @property def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type - "Configures the amplifier as a Tx or Rx amplifier." - " """ + Configures the amplifier as a Tx or Rx amplifier + + """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] - return val # type: ignore + return val # type: ignore @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Type={value.value}"]) @property def gain(self) -> float: """Gain - "Amplifier in-band gain." - "Value should be between 0 and 100." + Amplifier in-band gain + + Value should be between 0 and 100. """ val = self._get_property("Gain") - return val # type: ignore + return val # type: ignore @gain.setter - def gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Gain={value}"]) + def gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Gain={value}"]) @property def center_frequency(self) -> float: """Center Frequency - "Center frequency of amplifiers operational bandwidth." - "Value should be between 1 and 1e+11." + Center frequency of amplifiers operational bandwidth + + Value should be between 1 and 1e+11. """ val = self._get_property("Center Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @center_frequency.setter - def center_frequency(self, value: float | str): + def center_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Center Frequency={value}"]) @property def bandwidth(self) -> float: """Bandwidth - "Frequency region where the gain applies." - "Value should be between 1 and 1e+11." + Frequency region where the gain applies + + Value should be between 1 and 1e+11. """ val = self._get_property("Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth.setter - def bandwidth(self, value: float | str): + def bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth={value}"]) @property def noise_figure(self) -> float: """Noise Figure - "Amplifier noise figure." - "Value should be between 0 and 100." + Amplifier noise figure + + Value should be between 0 and 100. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def saturation_level(self) -> float: """Saturation Level - "Saturation level." - "Value should be between -200 and 200." + Saturation level + + Value should be between -200 and 200. """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @saturation_level.setter - def saturation_level(self, value: float | str): + def saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Saturation Level={value}"]) @property def p1_db_point_ref_input(self) -> float: """P1-dB Point, Ref. Input - "Incoming signals > this value saturate the amplifier." - "Value should be between -200 and 200." + Incoming signals > this value saturate the amplifier + + Value should be between -200 and 200. """ val = self._get_property("P1-dB Point, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value: float | str): + def p1_db_point_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input={value}"]) @property def ip3_ref_input(self) -> float: """IP3, Ref. Input - "3rd order intercept point." - "Value should be between -200 and 200." + 3rd order intercept point + + Value should be between -200 and 200. """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def shape_factor(self) -> float: """Shape Factor - "Ratio defining the selectivity of the amplifier." - "Value should be between 1 and 100." + Ratio defining the selectivity of the amplifier + + Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @shape_factor.setter - def shape_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) + def shape_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Shape Factor={value}"]) @property def reverse_isolation(self) -> float: """Reverse Isolation - "Amplifier reverse isolation." - "Value should be between 0 and 200." + Amplifier reverse isolation + + Value should be between 0 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: """Max Intermod Order - "Maximum order of intermods to compute." - "Value should be between 3 and 20." + Maximum order of intermods to compute + + Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py index eef0c1768b8..2e892da9e0b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class AntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -57,55 +53,66 @@ def delete(self): @property def tags(self) -> str: """Tags - "Space delimited list of tags for coupling selections." - " """ + Space delimited list of tags for coupling selections + + """ val = self._get_property("Tags") - return val # type: ignore + return val # type: ignore @tags.setter def tags(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tags={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tags={value}"]) @property def show_relative_coordinates(self) -> bool: """Show Relative Coordinates - "Show antenna position and orientation in parent-node coords (False) or relative to placement coords (True)." - "Value should be 'true' or 'false'." + Show antenna position and orientation in parent-node coords (False) or + relative to placement coords (True) + + Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): """Position - "Set position of the antenna in parent-node coordinates." - "Value should be x/y/z, delimited by spaces." + Set position of the antenna in parent-node coordinates + + Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): """Relative Position - "Set position of the antenna relative to placement coordinates." - "Value should be x/y/z, delimited by spaces." + Set position of the antenna relative to placement coordinates + + Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -114,117 +121,143 @@ class OrientationModeOption(Enum): @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode - "Select the convention (order of rotations) for configuring orientation." - " """ + Select the convention (order of rotations) for configuring orientation + + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): """Orientation - "Set orientation of the antenna relative to parent-node coordinates." - "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + Set orientation of the antenna relative to parent-node coordinates + + Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): """Relative Orientation - "Set orientation of the antenna relative to placement coordinates." - "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + Set orientation of the antenna relative to placement coordinates + + Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def position_defined(self) -> bool: """Position Defined - "Toggles on/off the ability to define a position for the antenna." - "Value should be 'true' or 'false'." + Toggles on/off the ability to define a position for the antenna + + Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return val # type: ignore + return val # type: ignore @position_defined.setter def position_defined(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Defined={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position Defined={value}"]) @property def antenna_temperature(self) -> float: """Antenna Temperature - "Antenna noise temperature." - "Value should be between 0 and 100000." + Antenna noise temperature + + Value should be between 0 and 100000. """ val = self._get_property("Antenna Temperature") - return val # type: ignore + return val # type: ignore @antenna_temperature.setter - def antenna_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna Temperature={value}"]) + def antenna_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna Temperature={value}"]) @property def type(self): """Type - "Defines the type of antenna." - " """ + Defines the type of antenna + + """ val = self._get_property("Type") - return val # type: ignore + return val # type: ignore @type.setter def type(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value}"]) @property def antenna_file(self) -> str: """Antenna File - "Value should be a full file path." + Value should be a full file path. """ val = self._get_property("Antenna File") - return val # type: ignore + return val # type: ignore @antenna_file.setter def antenna_file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna File={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna File={value}"]) @property def project_name(self) -> str: """Project Name - "Name of imported HFSS Antenna project." - "Value should be a full file path." + Name of imported HFSS Antenna project + + Value should be a full file path. """ val = self._get_property("Project Name") - return val # type: ignore + return val # type: ignore @project_name.setter def project_name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Project Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Project Name={value}"]) @property def peak_gain(self) -> float: """Peak Gain - "Set peak gain of antenna (dBi)." - "Value should be between -200 and 200." + Set peak gain of antenna (dBi) + + Value should be between -200 and 200. """ val = self._get_property("Peak Gain") - return val # type: ignore + return val # type: ignore @peak_gain.setter - def peak_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Gain={value}"]) + def peak_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Peak Gain={value}"]) class BoresightOption(Enum): XAXIS = "+X Axis" @@ -234,248 +267,309 @@ class BoresightOption(Enum): @property def boresight(self) -> BoresightOption: """Boresight - "Select peak beam direction in local coordinates." - " """ + Select peak beam direction in local coordinates + + """ val = self._get_property("Boresight") val = self.BoresightOption[val] - return val # type: ignore + return val # type: ignore @boresight.setter def boresight(self, value: BoresightOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Boresight={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Boresight={value.value}"]) @property def vertical_beamwidth(self) -> float: """Vertical Beamwidth - "Set half-power beamwidth in local-coordinates elevation plane." - "Value should be between 0.1 and 360." + Set half-power beamwidth in local-coordinates elevation plane + + Value should be between 0.1 and 360. """ val = self._get_property("Vertical Beamwidth") - return val # type: ignore + return val # type: ignore @vertical_beamwidth.setter - def vertical_beamwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Beamwidth={value}"]) + def vertical_beamwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Beamwidth={value}"]) @property def horizontal_beamwidth(self) -> float: """Horizontal Beamwidth - "Set half-power beamwidth in local-coordinates azimuth plane." - "Value should be between 0.1 and 360." + Set half-power beamwidth in local-coordinates azimuth plane + + Value should be between 0.1 and 360. """ val = self._get_property("Horizontal Beamwidth") - return val # type: ignore + return val # type: ignore @horizontal_beamwidth.setter - def horizontal_beamwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Beamwidth={value}"]) + def horizontal_beamwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Beamwidth={value}"]) @property def extra_sidelobe(self) -> bool: """Extra Sidelobe - "Toggle (on/off) option to define two sidelobe levels." - "Value should be 'true' or 'false'." + Toggle (on/off) option to define two sidelobe levels + + Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return val # type: ignore + return val # type: ignore @extra_sidelobe.setter def extra_sidelobe(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Extra Sidelobe={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Extra Sidelobe={value}"]) @property def first_sidelobe_level(self) -> float: """First Sidelobe Level - "Set reduction in the gain of Directive Beam antenna for first sidelobe level." - "Value should be between 0 and 200." + Set reduction in the gain of Directive Beam antenna for first sidelobe + level + + Value should be between 0 and 200. """ val = self._get_property("First Sidelobe Level") - return val # type: ignore + return val # type: ignore @first_sidelobe_level.setter - def first_sidelobe_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Level={value}"]) + def first_sidelobe_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Level={value}"]) @property def first_sidelobe_vert_bw(self) -> float: """First Sidelobe Vert. BW - "Set beamwidth of first sidelobe beam in theta direction." - "Value should be between 0.1 and 360." + Set beamwidth of first sidelobe beam in theta direction + + Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Vert. BW") - return val # type: ignore + return val # type: ignore @first_sidelobe_vert_bw.setter - def first_sidelobe_vert_bw(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Vert. BW={value}"]) + def first_sidelobe_vert_bw(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Vert. BW={value}"]) @property def first_sidelobe_hor_bw(self) -> float: """First Sidelobe Hor. BW - "Set beamwidth of first sidelobe beam in phi direction." - "Value should be between 0.1 and 360." + Set beamwidth of first sidelobe beam in phi direction + + Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Hor. BW") - return val # type: ignore + return val # type: ignore @first_sidelobe_hor_bw.setter - def first_sidelobe_hor_bw(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Hor. BW={value}"]) + def first_sidelobe_hor_bw(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Hor. BW={value}"]) @property def outerbacklobe_level(self) -> float: """Outer/Backlobe Level - "Set reduction in gain of Directive Beam antenna for outer/backlobe level." - "Value should be between 0 and 200." + Set reduction in gain of Directive Beam antenna for outer/backlobe level + + Value should be between 0 and 200. """ val = self._get_property("Outer/Backlobe Level") - return val # type: ignore + return val # type: ignore @outerbacklobe_level.setter - def outerbacklobe_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Outer/Backlobe Level={value}"]) + def outerbacklobe_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Outer/Backlobe Level={value}"]) @property def resonant_frequency(self) -> float: """Resonant Frequency - "Set first resonant frequency of wire dipole, monopole, or parametric antenna." - "Value should be between 1 and 1e+13." + Set first resonant frequency of wire dipole, monopole, or parametric + antenna + + Value should be between 1 and 1e+13. """ val = self._get_property("Resonant Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @resonant_frequency.setter - def resonant_frequency(self, value: float | str): + def resonant_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resonant Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Resonant Frequency={value}"]) @property def slot_length(self) -> float: """Slot Length - "Set slot length of parametric slot." - "Value should be greater than 1e-06." + Set slot length of parametric slot + + Value should be greater than 1e-06. """ val = self._get_property("Slot Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @slot_length.setter - def slot_length(self, value: float | str): + def slot_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Slot Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Slot Length={value}"]) @property def mouth_width(self) -> float: """Mouth Width - "Set mouth width (along local y-axis) of the horn antenna." - "Value should be between 1e-06 and 100." + Set mouth width (along local y-axis) of the horn antenna + + Value should be between 1e-06 and 100. """ val = self._get_property("Mouth Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_width.setter - def mouth_width(self, value: float | str): + def mouth_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Width={value}"]) @property def mouth_height(self) -> float: """Mouth Height - "Set mouth height (along local x-axis) of the horn antenna." - "Value should be between 1e-06 and 100." + Set mouth height (along local x-axis) of the horn antenna + + Value should be between 1e-06 and 100. """ val = self._get_property("Mouth Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_height.setter - def mouth_height(self, value: float | str): + def mouth_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Height={value}"]) @property def waveguide_width(self) -> float: """Waveguide Width - "Set waveguide width (along local y-axis) where flared horn walls meet the feed, determines cut-off frequency." - "Value should be between 1e-06 and 100." + Set waveguide width (along local y-axis) where flared horn walls meet + the feed, determines cut-off frequency + + Value should be between 1e-06 and 100. """ val = self._get_property("Waveguide Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @waveguide_width.setter - def waveguide_width(self, value: float | str): + def waveguide_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveguide Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Waveguide Width={value}"]) @property def width_flare_half_angle(self) -> float: """Width Flare Half-angle - "Set half-angle (degrees) of flared horn walls measured in local yz-plane from boresight (z) axis to either wall." - "Value should be between 1 and 89.9." + Set half-angle (degrees) of flared horn walls measured in local yz-plane + from boresight (z) axis to either wall + + Value should be between 1 and 89.9. """ val = self._get_property("Width Flare Half-angle") - return val # type: ignore + return val # type: ignore @width_flare_half_angle.setter - def width_flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width Flare Half-angle={value}"]) + def width_flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Width Flare Half-angle={value}"]) @property def height_flare_half_angle(self) -> float: """Height Flare Half-angle - "Set half-angle (degrees) of flared horn walls measured in local xz-plane from boresight (z) axis to either wall." - "Value should be between 1 and 89.9." + Set half-angle (degrees) of flared horn walls measured in local xz-plane + from boresight (z) axis to either wall + + Value should be between 1 and 89.9. """ val = self._get_property("Height Flare Half-angle") - return val # type: ignore + return val # type: ignore @height_flare_half_angle.setter - def height_flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height Flare Half-angle={value}"]) + def height_flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Height Flare Half-angle={value}"]) @property def mouth_diameter(self) -> float: """Mouth Diameter - "Set aperture (mouth) diameter of horn antenna." - "Value should be between 1e-06 and 100." + Set aperture (mouth) diameter of horn antenna + + Value should be between 1e-06 and 100. """ val = self._get_property("Mouth Diameter") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_diameter.setter - def mouth_diameter(self, value: float | str): + def mouth_diameter(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Diameter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Diameter={value}"]) @property def flare_half_angle(self) -> float: """Flare Half-angle - "Set half-angle (degrees) of conical horn wall measured from boresight (z)." - "Value should be between 1 and 89.9." + Set half-angle (degrees) of conical horn wall measured from boresight + (z) + + Value should be between 1 and 89.9. """ val = self._get_property("Flare Half-angle") - return val # type: ignore + return val # type: ignore @flare_half_angle.setter - def flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flare Half-angle={value}"]) + def flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Flare Half-angle={value}"]) @property def vswr(self) -> float: """VSWR - "The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch between the antenna and the RF System (or outboard component)." - "Value should be between 1 and 100." + The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch + between the antenna and the RF System (or outboard component) + + Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @vswr.setter - def vswr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) + def vswr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"VSWR={value}"]) class AntennaPolarizationOption(Enum): VERTICAL = "Vertical" @@ -486,17 +580,18 @@ class AntennaPolarizationOption(Enum): @property def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization - "Choose local-coordinates polarization along boresight." - " """ + Choose local-coordinates polarization along boresight + + """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] - return val # type: ignore + return val # type: ignore @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Antenna Polarization={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna Polarization={value.value}"]) class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" @@ -505,15 +600,18 @@ class CrossDipoleModeOption(Enum): @property def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode - "Choose the Cross Dipole type." - " """ + Choose the Cross Dipole type + + """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] - return val # type: ignore + return val # type: ignore @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Cross Dipole Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Cross Dipole Mode={value.value}"]) class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" @@ -522,84 +620,102 @@ class CrossDipolePolarizationOption(Enum): @property def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization - "Choose local-coordinates polarization along boresight." - " """ + Choose local-coordinates polarization along boresight + + """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] - return val # type: ignore + return val # type: ignore @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Cross Dipole Polarization={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Cross Dipole Polarization={value.value}"]) @property def override_height(self) -> bool: """Override Height - "Ignores the default placement of quarter design wavelength over the ground plane." - "Value should be 'true' or 'false'." + Ignores the default placement of quarter design wavelength over the + ground plane + + Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return val # type: ignore + return val # type: ignore @override_height.setter def override_height(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Override Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Override Height={value}"]) @property def offset_height(self) -> float: """Offset Height - "Sets the offset height for the current sources above the ground plane." - "Value should be greater than 0." + Sets the offset height for the current sources above the ground plane + + Value should be greater than 0. """ val = self._get_property("Offset Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @offset_height.setter - def offset_height(self, value: float | str): + def offset_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Offset Height={value}"]) @property def auto_height_offset(self) -> bool: """Auto Height Offset - "Switch on to automatically place slot current at sub-wavelength offset height above ground plane." - "Value should be 'true' or 'false'." + Switch on to automatically place slot current at sub-wavelength offset + height above ground plane + + Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return val # type: ignore + return val # type: ignore @auto_height_offset.setter def auto_height_offset(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Auto Height Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Auto Height Offset={value}"]) @property def conform__adjust_antenna(self) -> bool: """Conform / Adjust Antenna - "Toggle (on/off) conformal adjustment for array antenna elements." - "Value should be 'true' or 'false'." + Toggle (on/off) conformal adjustment for array antenna elements + + Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return val # type: ignore + return val # type: ignore @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform / Adjust Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform / Adjust Antenna={value}"]) @property def element_offset(self): """Element Offset - "Set vector for shifting element positions in antenna local coordinates." - "Value should be x/y/z, delimited by spaces." + Set vector for shifting element positions in antenna local coordinates + + Value should be x/y/z, delimited by spaces. """ val = self._get_property("Element Offset") - return val # type: ignore + return val # type: ignore @element_offset.setter def element_offset(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Element Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Element Offset={value}"]) class ConformtoPlatformOption(Enum): NONE = "None" @@ -609,17 +725,18 @@ class ConformtoPlatformOption(Enum): @property def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform - "Select method of automated conforming applied after Element Offset." - " """ + Select method of automated conforming applied after Element Offset + + """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] - return val # type: ignore + return val # type: ignore @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Conform to Platform={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform to Platform={value.value}"]) class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" @@ -629,174 +746,205 @@ class ReferencePlaneOption(Enum): @property def reference_plane(self) -> ReferencePlaneOption: """Reference Plane - "Select reference plane for determining original element heights." - " """ + Select reference plane for determining original element heights + + """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] - return val # type: ignore + return val # type: ignore @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reference Plane={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reference Plane={value.value}"]) @property def conform_element_orientation(self) -> bool: """Conform Element Orientation - "Toggle (on/off) re-orientation of elements to conform to curved placement surface." - "Value should be 'true' or 'false'." + Toggle (on/off) re-orientation of elements to conform to curved + placement surface + + Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return val # type: ignore + return val # type: ignore @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Conform Element Orientation={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform Element Orientation={value}"]) @property def show_axes(self) -> bool: """Show Axes - "Toggle (on/off) display of antenna coordinate axes in 3-D window." - "Value should be 'true' or 'false'." + Toggle (on/off) display of antenna coordinate axes in 3-D window + + Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def show_icon(self) -> bool: """Show Icon - "Toggle (on/off) display of antenna marker (cone) in 3-D window." - "Value should be 'true' or 'false'." + Toggle (on/off) display of antenna marker (cone) in 3-D window + + Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return val # type: ignore + return val # type: ignore @show_icon.setter def show_icon(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Icon={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Icon={value}"]) @property def size(self) -> float: """Size - "Adjust relative size of antenna marker (cone) in 3-D window." - "Value should be between 0.001 and 1." + Adjust relative size of antenna marker (cone) in 3-D window + + Value should be between 0.001 and 1. """ val = self._get_property("Size") - return val # type: ignore + return val # type: ignore @size.setter - def size(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Size={value}"]) + def size(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Size={value}"]) @property def color(self): """Color - "Set color of antenna marker (cone) in 3-D window." - "Color should be in RGB form: #RRGGBB." + Set color of antenna marker (cone) in 3-D window + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def el_sample_interval(self) -> float: """El Sample Interval - "Space between elevation-angle samples of pattern." - " """ + Space between elevation-angle samples of pattern + + """ val = self._get_property("El Sample Interval") - return val # type: ignore + return val # type: ignore @property def az_sample_interval(self) -> float: """Az Sample Interval - "Space between azimuth-angle samples of pattern." - " """ + Space between azimuth-angle samples of pattern + + """ val = self._get_property("Az Sample Interval") - return val # type: ignore + return val # type: ignore @property def has_frequency_domain(self) -> bool: """Has Frequency Domain - "False if antenna can be used at any frequency." - "Value should be 'true' or 'false'." + False if antenna can be used at any frequency + + Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return val # type: ignore + return val # type: ignore @property def frequency_domain(self): """Frequency Domain - "Frequency sample(s) defining antenna." - " """ + Frequency sample(s) defining antenna + + """ val = self._get_property("Frequency Domain") - return val # type: ignore + return val # type: ignore @property def number_of_electric_sources(self) -> int: """Number of Electric Sources - "Number of freestanding electric current sources defining antenna." - " """ + Number of freestanding electric current sources defining antenna + + """ val = self._get_property("Number of Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources - "Number of freestanding magnetic current sources defining antenna." - " """ + Number of freestanding magnetic current sources defining antenna + + """ val = self._get_property("Number of Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources - "Number of imaged, half-space radiating electric current sources defining antenna." - " """ + Number of imaged, half-space radiating electric current sources defining + antenna + + """ val = self._get_property("Number of Imaged Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources - "Number of imaged, half-space radiating magnetic current sources defining antenna." - " """ + Number of imaged, half-space radiating magnetic current sources defining + antenna + + """ val = self._get_property("Number of Imaged Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def waveguide_height(self) -> float: """Waveguide Height - "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." - " """ + Implied waveguide height (along local x-axis) where the flared horn + walls meet the feed + + """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency - "Implied lowest operating frequency of pyramidal horn antenna." - " """ + Implied lowest operating frequency of pyramidal horn antenna + + """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency - "Implied lowest operating frequency of conical horn antenna." - " """ + Implied lowest operating frequency of conical horn antenna + + """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class SWEModeTruncationOption(Enum): DYNAMIC = "Dynamic" @@ -806,91 +954,109 @@ class SWEModeTruncationOption(Enum): @property def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation - "Select the method for stability-enhancing truncation of spherical wave expansion terms." - " """ + Select the method for stability-enhancing truncation of spherical wave + expansion terms + + """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] - return val # type: ignore + return val # type: ignore @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"SWE Mode Truncation={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SWE Mode Truncation={value.value}"]) @property def max_n_index(self) -> int: """Max N Index - "Set maximum allowed index N for spherical wave expansion terms." - "Value should be greater than 1." + Set maximum allowed index N for spherical wave expansion terms + + Value should be greater than 1. """ val = self._get_property("Max N Index") - return val # type: ignore + return val # type: ignore @max_n_index.setter def max_n_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max N Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max N Index={value}"]) @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) @property def show_composite_passband(self) -> bool: """Show Composite Passband - "Show plot instead of 3D window." - "Value should be 'true' or 'false'." + Show plot instead of 3D window + + Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return val # type: ignore + return val # type: ignore @show_composite_passband.setter def show_composite_passband(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Composite Passband={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Composite Passband={value}"]) @property def use_phase_center(self) -> bool: """Use Phase Center - "Use the phase center defined in the HFSS design." - "Value should be 'true' or 'false'." + Use the phase center defined in the HFSS design + + Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return val # type: ignore + return val # type: ignore @use_phase_center.setter def use_phase_center(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Phase Center={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Phase Center={value}"]) @property def coordinate_systems(self) -> str: """Coordinate Systems - "Specifies the coordinate system for the phase center of this antenna." - " """ + Specifies the coordinate system for the phase center of this antenna + + """ val = self._get_property("Coordinate Systems") - return val # type: ignore + return val # type: ignore @property def phasecenterposition(self): """PhaseCenterPosition - "Set position of the antennas linked coordinate system.." - "Value should be x/y/z, delimited by spaces." + Set position of the antennas linked coordinate system. + + Value should be x/y/z, delimited by spaces. """ val = self._get_property("PhaseCenterPosition") - return val # type: ignore + return val # type: ignore @property def phasecenterorientation(self): """PhaseCenterOrientation - "Set orientation of the antennas linked coordinate system.." - "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + Set orientation of the antennas linked coordinate system. + + Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("PhaseCenterOrientation") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py index 64e74a7a302..4778cb346c0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class AntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -51,7 +48,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -60,97 +57,119 @@ def enabled(self, value: bool): @property def passband_loss(self) -> float: """Passband Loss - "Passband loss." - "Value should be between 0 and 100." + Passband loss + + Value should be between 0 and 100. """ val = self._get_property("Passband Loss") - return val # type: ignore + return val # type: ignore @passband_loss.setter - def passband_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Passband Loss={value}"]) + def passband_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Passband Loss={value}"]) @property def out_of_band_attenuation(self) -> float: """Out of Band Attenuation - "Out of band antenna loss." - "Value should be between 0 and 200." + Out of band antenna loss + + Value should be between 0 and 200. """ val = self._get_property("Out of Band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out of Band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out of Band Attenuation={value}"]) @property def lower_stop_band(self) -> float: """Lower Stop Band - "Lower stop band frequency." - "Value should be between 1 and 1e+11." + Lower stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: """Lower Cutoff - "Lower cutoff frequency." - "Value should be between 1 and 1e+11." + Lower cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: """Higher Cutoff - "Higher cutoff frequency." - "Value should be between 1 and 1e+11." + Higher cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: """Higher Stop Band - "Higher stop band frequency." - "Value should be between 1 and 1e+11." + Higher stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index 6920140c0a2..36b2b8f4a7a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Band(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +37,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -50,99 +46,118 @@ def enabled(self, value: bool): @property def port(self): """Port - "Radio Port associated with this Band." - " """ + Radio Port associated with this Band + + """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port={value}"]) @property def use_dd_1494_mode(self) -> bool: """Use DD-1494 Mode - "Uses DD-1494 parameters to define the Tx/Rx spectrum." - "Value should be 'true' or 'false'." + Uses DD-1494 parameters to define the Tx/Rx spectrum + + Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return val # type: ignore + return val # type: ignore @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use DD-1494 Mode={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use DD-1494 Mode={value}"]) @property def use_emission_designator(self) -> bool: """Use Emission Designator - "Uses the Emission Designator to define the bandwidth and modulation." - "Value should be 'true' or 'false'." + Uses the Emission Designator to define the bandwidth and modulation + + Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return val # type: ignore + return val # type: ignore @use_emission_designator.setter def use_emission_designator(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Emission Designator={value}"]) @property def emission_designator(self) -> str: """Emission Designator - "Enter the Emission Designator to define the bandwidth and modulation." - " """ + Enter the Emission Designator to define the bandwidth and modulation + + """ val = self._get_property("Emission Designator") - return val # type: ignore + return val # type: ignore @emission_designator.setter def emission_designator(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Emission Designator={value}"]) @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW - "Channel Bandwidth based off the emission designator." - " """ + Channel Bandwidth based off the emission designator + + """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def emit_modulation_type(self) -> str: """EMIT Modulation Type - "Modulation based off the emission designator." - " """ + Modulation based off the emission designator + + """ val = self._get_property("EMIT Modulation Type") - return val # type: ignore + return val # type: ignore @property def override_emission_designator_bw(self) -> bool: """Override Emission Designator BW - "Enables the 3 dB channel bandwidth to equal a value < emission designator bandwidth." - "Value should be 'true' or 'false'." + Enables the 3 dB channel bandwidth to equal a value < emission + designator bandwidth + + Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return val # type: ignore + return val # type: ignore @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Override Emission Designator BW={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Override Emission Designator BW={value}"]) @property def channel_bandwidth(self) -> float: """Channel Bandwidth - "Channel Bandwidth." - "Value should be greater than 1." + Channel Bandwidth + + Value should be greater than 1. """ val = self._get_property("Channel Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_bandwidth.setter - def channel_bandwidth(self, value: float | str): + def channel_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Bandwidth={value}"]) class ModulationOption(Enum): GENERIC = "Generic" @@ -160,101 +175,122 @@ class ModulationOption(Enum): @property def modulation(self) -> ModulationOption: """Modulation - "Modulation used for the transmitted/received signal." - " """ + Modulation used for the transmitted/received signal + + """ val = self._get_property("Modulation") val = self.ModulationOption[val] - return val # type: ignore + return val # type: ignore @modulation.setter def modulation(self, value: ModulationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation={value.value}"]) @property def max_modulating_freq(self) -> float: """Max Modulating Freq. - "Maximum modulating frequency: helps determine spectral profile." - "Value should be greater than 1." + Maximum modulating frequency: helps determine spectral profile + + Value should be greater than 1. """ val = self._get_property("Max Modulating Freq.") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_modulating_freq.setter - def max_modulating_freq(self, value: float | str): + def max_modulating_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Modulating Freq.={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Modulating Freq.={value}"]) @property def modulation_index(self) -> float: """Modulation Index - "AM modulation index: helps determine spectral profile." - "Value should be between 0.01 and 1." + AM modulation index: helps determine spectral profile + + Value should be between 0.01 and 1. """ val = self._get_property("Modulation Index") - return val # type: ignore + return val # type: ignore @modulation_index.setter - def modulation_index(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Index={value}"]) + def modulation_index(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation Index={value}"]) @property def freq_deviation(self) -> float: """Freq. Deviation - "Frequency deviation: helps determine spectral profile." - "Value should be greater than 1." + Frequency deviation: helps determine spectral profile + + Value should be greater than 1. """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation.setter - def freq_deviation(self, value: float | str): + def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation={value}"]) @property def bit_rate(self) -> float: """Bit Rate - "Maximum bit rate: helps determine width of spectral profile." - "Value should be greater than 1." + Maximum bit rate: helps determine width of spectral profile + + Value should be greater than 1. """ val = self._get_property("Bit Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @bit_rate.setter - def bit_rate(self, value: float | str): + def bit_rate(self, value : float|str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bit Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bit Rate={value}"]) @property def sidelobes(self) -> int: """Sidelobes - "Number of sidelobes in spectral profile." - "Value should be greater than 0." + Number of sidelobes in spectral profile + + Value should be greater than 0. """ val = self._get_property("Sidelobes") - return val # type: ignore + return val # type: ignore @sidelobes.setter def sidelobes(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sidelobes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sidelobes={value}"]) @property def freq_deviation_(self) -> float: - """Freq. Deviation - "FSK frequency deviation: helps determine spectral profile." - "Value should be greater than 1." + """Freq. Deviation + FSK frequency deviation: helps determine spectral profile + + Value should be greater than 1. """ val = self._get_property("Freq. Deviation ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation_.setter - def freq_deviation_(self, value: float | str): + def freq_deviation_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation ={value}"]) class PSKTypeOption(Enum): BPSK = "BPSK" @@ -267,15 +303,18 @@ class PSKTypeOption(Enum): @property def psk_type(self) -> PSKTypeOption: """PSK Type - "PSK modulation order: helps determine spectral profile." - " """ + PSK modulation order: helps determine spectral profile + + """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] - return val # type: ignore + return val # type: ignore @psk_type.setter def psk_type(self, value: PSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"PSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"PSK Type={value.value}"]) class FSKTypeOption(Enum): FSK_2 = "FSK-2" @@ -285,15 +324,18 @@ class FSKTypeOption(Enum): @property def fsk_type(self) -> FSKTypeOption: """FSK Type - "FSK modulation order: helps determine spectral profile." - " """ + FSK modulation order: helps determine spectral profile + + """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] - return val # type: ignore + return val # type: ignore @fsk_type.setter def fsk_type(self, value: FSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FSK Type={value.value}"]) class QAMTypeOption(Enum): QAM_4 = "QAM-4" @@ -305,15 +347,18 @@ class QAMTypeOption(Enum): @property def qam_type(self) -> QAMTypeOption: """QAM Type - "QAM modulation order: helps determine spectral profile." - " """ + QAM modulation order: helps determine spectral profile + + """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] - return val # type: ignore + return val # type: ignore @qam_type.setter def qam_type(self, value: QAMTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"QAM Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"QAM Type={value.value}"]) class APSKTypeOption(Enum): APSK_4 = "APSK-4" @@ -325,75 +370,90 @@ class APSKTypeOption(Enum): @property def apsk_type(self) -> APSKTypeOption: """APSK Type - "APSK modulation order: helps determine spectral profile." - " """ + APSK modulation order: helps determine spectral profile + + """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] - return val # type: ignore + return val # type: ignore @apsk_type.setter def apsk_type(self, value: APSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"APSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"APSK Type={value.value}"]) @property def start_frequency(self) -> float: """Start Frequency - "First frequency for this band." - "Value should be between 1 and 1e+11." + First frequency for this band + + Value should be between 1 and 1e+11. """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: """Stop Frequency - "Last frequency for this band." - "Value should be between 1 and 1e+11." + Last frequency for this band + + Value should be between 1 and 1e+11. """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: """Channel Spacing - "Spacing between channels within this band." - "Value should be between 1 and 1e+11." + Spacing between channels within this band + + Value should be between 1 and 1e+11. """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_spacing.setter - def channel_spacing(self, value: float | str): + def channel_spacing(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Spacing={value}"]) @property def tx_offset(self) -> float: """Tx Offset - "Frequency offset between Tx and Rx channels." - "Value should be less than 1e+11." + Frequency offset between Tx and Rx channels + + Value should be less than 1e+11. """ val = self._get_property("Tx Offset") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @tx_offset.setter - def tx_offset(self, value: float | str): + def tx_offset(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Offset={value}"]) class RadarTypeOption(Enum): CW = "CW" @@ -405,199 +465,242 @@ class RadarTypeOption(Enum): @property def radar_type(self) -> RadarTypeOption: """Radar Type - "Radar type: helps determine spectral profile." - " """ + Radar type: helps determine spectral profile + + """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] - return val # type: ignore + return val # type: ignore @radar_type.setter def radar_type(self, value: RadarTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radar Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Radar Type={value.value}"]) @property def hopping_radar(self) -> bool: """Hopping Radar - "True for hopping radars; false otherwise." - "Value should be 'true' or 'false'." + True for hopping radars; false otherwise + + Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return val # type: ignore + return val # type: ignore @hopping_radar.setter def hopping_radar(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hopping Radar={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hopping Radar={value}"]) @property def post_october_2020_procurement(self) -> bool: """Post October 2020 Procurement - "Procurement date: helps determine spectral profile, particularly the roll-off." - "Value should be 'true' or 'false'." + Procurement date: helps determine spectral profile, particularly the + roll-off + + Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return val # type: ignore + return val # type: ignore @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Post October 2020 Procurement={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Post October 2020 Procurement={value}"]) @property def hop_range_min_freq(self) -> float: """Hop Range Min Freq - "Sets the minimum frequency of the hopping range." - "Value should be between 1 and 1e+11." + Sets the minimum frequency of the hopping range + + Value should be between 1 and 1e+11. """ val = self._get_property("Hop Range Min Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @hop_range_min_freq.setter - def hop_range_min_freq(self, value: float | str): + def hop_range_min_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Min Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hop Range Min Freq={value}"]) @property def hop_range_max_freq(self) -> float: """Hop Range Max Freq - "Sets the maximum frequency of the hopping range." - "Value should be between 1 and 1e+11." + Sets the maximum frequency of the hopping range + + Value should be between 1 and 1e+11. """ val = self._get_property("Hop Range Max Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @hop_range_max_freq.setter - def hop_range_max_freq(self, value: float | str): + def hop_range_max_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Max Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hop Range Max Freq={value}"]) @property def pulse_duration(self) -> float: """Pulse Duration - "Pulse duration." - "Value should be greater than 0." + Pulse duration + + Value should be greater than 0. """ val = self._get_property("Pulse Duration") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_duration.setter - def pulse_duration(self, value: float | str): + def pulse_duration(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Duration={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Duration={value}"]) @property def pulse_rise_time(self) -> float: """Pulse Rise Time - "Pulse rise time." - "Value should be greater than 0." + Pulse rise time + + Value should be greater than 0. """ val = self._get_property("Pulse Rise Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_rise_time.setter - def pulse_rise_time(self, value: float | str): + def pulse_rise_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Rise Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Rise Time={value}"]) @property def pulse_fall_time(self) -> float: """Pulse Fall Time - "Pulse fall time." - "Value should be greater than 0." + Pulse fall time + + Value should be greater than 0. """ val = self._get_property("Pulse Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_fall_time.setter - def pulse_fall_time(self, value: float | str): + def pulse_fall_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Fall Time={value}"]) @property def pulse_repetition_rate(self) -> float: """Pulse Repetition Rate - "Pulse repetition rate [pulses/sec]." - "Value should be greater than 1." + Pulse repetition rate [pulses/sec] + + Value should be greater than 1. """ val = self._get_property("Pulse Repetition Rate") - return val # type: ignore + return val # type: ignore @pulse_repetition_rate.setter - def pulse_repetition_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Repetition Rate={value}"]) + def pulse_repetition_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Repetition Rate={value}"]) @property def number_of_chips(self) -> float: """Number of Chips - "Total number of chips (subpulses) contained in the pulse." - "Value should be greater than 1." + Total number of chips (subpulses) contained in the pulse + + Value should be greater than 1. """ val = self._get_property("Number of Chips") - return val # type: ignore + return val # type: ignore @number_of_chips.setter - def number_of_chips(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Chips={value}"]) + def number_of_chips(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Chips={value}"]) @property def pulse_compression_ratio(self) -> float: """Pulse Compression Ratio - "Pulse compression ratio." - "Value should be greater than 1." + Pulse compression ratio + + Value should be greater than 1. """ val = self._get_property("Pulse Compression Ratio") - return val # type: ignore + return val # type: ignore @pulse_compression_ratio.setter - def pulse_compression_ratio(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Compression Ratio={value}"]) + def pulse_compression_ratio(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Compression Ratio={value}"]) @property def fm_chirp_period(self) -> float: """FM Chirp Period - "FM Chirp period for the FM/CW radar." - "Value should be greater than 0." + FM Chirp period for the FM/CW radar + + Value should be greater than 0. """ val = self._get_property("FM Chirp Period") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @fm_chirp_period.setter - def fm_chirp_period(self, value: float | str): + def fm_chirp_period(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Chirp Period={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Chirp Period={value}"]) @property def fm_freq_deviation(self) -> float: """FM Freq Deviation - "Total frequency deviation for the carrier frequency for the FM/CW radar." - "Value should be between 1 and 1e+11." + Total frequency deviation for the carrier frequency for the FM/CW radar + + Value should be between 1 and 1e+11. """ val = self._get_property("FM Freq Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @fm_freq_deviation.setter - def fm_freq_deviation(self, value: float | str): + def fm_freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Freq Deviation={value}"]) @property def fm_freq_dev_bandwidth(self) -> float: """FM Freq Dev Bandwidth - "Bandwidth of freq deviation for FM modulated pulsed waveform (total freq shift during pulse duration)." - "Value should be between 1 and 1e+11." + Bandwidth of freq deviation for FM modulated pulsed waveform (total freq + shift during pulse duration) + + Value should be between 1 and 1e+11. """ val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value: float | str): + def fm_freq_dev_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Dev Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Freq Dev Bandwidth={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py index 4f0f26c1b0b..65242e7c8a1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class BandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -51,3 +48,4 @@ def duplicate(self, new_name): def delete(self): """Delete this node""" self._delete() + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py index 9c4e3bc9d56..b3e47e747c4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class BandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,14 +49,18 @@ def delete(self): @property def data_source(self): """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + Identifies tree node serving as data source for plot trace, click link + to find it + + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) class TxorRxOption(Enum): TX = "Tx" @@ -69,74 +69,91 @@ class TxorRxOption(Enum): @property def tx_or_rx(self) -> TxorRxOption: """Tx or Rx - "Specifies whether the trace is a Tx or Rx channel." - " """ + Specifies whether the trace is a Tx or Rx channel + + """ val = self._get_property("Tx or Rx") val = self.TxorRxOption[val] - return val # type: ignore + return val # type: ignore @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx or Rx={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx or Rx={value.value}"]) @property def channel_frequency(self): """Channel Frequency - "Select band channel frequency to display." - " """ + Select band channel frequency to display + + """ val = self._get_property("Channel Frequency") - return val # type: ignore + return val # type: ignore @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: """Transmit Frequency - "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - " """ + The actual transmit frequency (i.e., the Channel Frequency plus the Tx + Offset) + + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def visible(self) -> bool: """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." + Toggle (on/off) display of this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." + Enable/disable custom legend entry for this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name - "Enter name of plot trace as it will appear in legend." - " """ + Enter name of plot trace as it will appear in legend + + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -149,41 +166,50 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: """Style - "Specify line style of plot trace." - " """ + Specify line style of plot trace + + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." + Specify line width of plot trace + + Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." + Specify line color of plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -205,64 +231,81 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: """Symbol - "Select symbol to mark points along plot trace." - " """ + Select symbol to mark points along plot trace + + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." + Set size (in points) of symbols marking points along plot trace + + Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." + Specify color of symbols marking points along plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." + Set the width of the line used to draw the symbol + + Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." + If true, the interior of the symbol is filled - has no effect for some + symbol types + + Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py index 99b433074ed..c82ff5b9b5c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class CADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,11 +49,12 @@ def delete(self): @property def file(self) -> str: """File - "Name of the imported CAD file." - "Value should be a full file path." + Name of the imported CAD file + + Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore class ModelTypeOption(Enum): PLATE = "Plate" @@ -78,328 +75,401 @@ class ModelTypeOption(Enum): @property def model_type(self) -> ModelTypeOption: """Model Type - "Select type of parametric model to create." - " """ + Select type of parametric model to create + + """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] - return val # type: ignore + return val # type: ignore @model_type.setter def model_type(self, value: ModelTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Model Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Model Type={value.value}"]) @property def length(self) -> float: """Length - "Length of the model." - "Value should be greater than 1e-06." + Length of the model + + Value should be greater than 1e-06. """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @length.setter - def length(self, value: float | str): + def length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Length={value}"]) @property def width(self) -> float: """Width - "Width of the model." - "Value should be greater than 1e-06." + Width of the model + + Value should be greater than 1e-06. """ val = self._get_property("Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @width.setter - def width(self, value: float | str): + def width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Width={value}"]) @property def height(self) -> float: """Height - "Height of the model." - "Value should be greater than 1e-06." + Height of the model + + Value should be greater than 1e-06. """ val = self._get_property("Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @height.setter - def height(self, value: float | str): + def height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Height={value}"]) @property def angle(self) -> float: """Angle - "Angle (deg) between the plates." - "Value should be between 0 and 360." + Angle (deg) between the plates + + Value should be between 0 and 360. """ val = self._get_property("Angle") - return val # type: ignore + return val # type: ignore @angle.setter - def angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Angle={value}"]) + def angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Angle={value}"]) @property def top_side(self) -> float: """Top Side - "Side of the top of a equilateral triangular cylinder model." - "Value should be greater than 0." + Side of the top of a equilateral triangular cylinder model + + Value should be greater than 0. """ val = self._get_property("Top Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @top_side.setter - def top_side(self, value: float | str): + def top_side(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Top Side={value}"]) @property def top_radius(self) -> float: """Top Radius - "Radius of the top of a tapered cylinder model." - "Value should be greater than 0." + Radius of the top of a tapered cylinder model + + Value should be greater than 0. """ val = self._get_property("Top Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @top_radius.setter - def top_radius(self, value: float | str): + def top_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Top Radius={value}"]) @property def side(self) -> float: """Side - "Side of the equilateral triangular cylinder." - "Value should be greater than 1e-06." + Side of the equilateral triangular cylinder + + Value should be greater than 1e-06. """ val = self._get_property("Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @side.setter - def side(self, value: float | str): + def side(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Side={value}"]) @property def radius(self) -> float: """Radius - "Radius of the sphere or cylinder." - "Value should be greater than 1e-06." + Radius of the sphere or cylinder + + Value should be greater than 1e-06. """ val = self._get_property("Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @radius.setter - def radius(self, value: float | str): + def radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Radius={value}"]) @property def base_radius(self) -> float: """Base Radius - "Radius of the base of a tophat model." - "Value should be greater than 1e-06." + Radius of the base of a tophat model + + Value should be greater than 1e-06. """ val = self._get_property("Base Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @base_radius.setter - def base_radius(self, value: float | str): + def base_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Radius={value}"]) @property def center_radius(self) -> float: """Center Radius - "Radius of the raised portion of a tophat model." - "Value should be greater than 1e-06." + Radius of the raised portion of a tophat model + + Value should be greater than 1e-06. """ val = self._get_property("Center Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @center_radius.setter - def center_radius(self, value: float | str): + def center_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Center Radius={value}"]) @property def x_axis_ellipsoid_radius(self) -> float: """X Axis Ellipsoid Radius - "Ellipsoid semi-principal radius for the X axis." - "Value should be greater than 1e-06." + Ellipsoid semi-principal radius for the X axis + + Value should be greater than 1e-06. """ val = self._get_property("X Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value: float | str): + def x_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X Axis Ellipsoid Radius={value}"]) @property def y_axis_ellipsoid_radius(self) -> float: """Y Axis Ellipsoid Radius - "Ellipsoid semi-principal radius for the Y axis." - "Value should be greater than 1e-06." + Ellipsoid semi-principal radius for the Y axis + + Value should be greater than 1e-06. """ val = self._get_property("Y Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value: float | str): + def y_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y Axis Ellipsoid Radius={value}"]) @property def z_axis_ellipsoid_radius(self) -> float: """Z Axis Ellipsoid Radius - "Ellipsoid semi-principal radius for the Z axis." - "Value should be greater than 1e-06." + Ellipsoid semi-principal radius for the Z axis + + Value should be greater than 1e-06. """ val = self._get_property("Z Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value: float | str): + def z_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Z Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Z Axis Ellipsoid Radius={value}"]) @property def focal_length(self) -> float: """Focal Length - "Focal length of a parabolic reflector (f = 1/4a where y=ax^2)." - "Value should be greater than 1e-06." + Focal length of a parabolic reflector (f = 1/4a where y=ax^2) + + Value should be greater than 1e-06. """ val = self._get_property("Focal Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @focal_length.setter - def focal_length(self, value: float | str): + def focal_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Focal Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Focal Length={value}"]) @property def offset(self) -> float: """Offset - "Offset of parabolic reflector." - " """ + Offset of parabolic reflector + + """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @offset.setter - def offset(self, value: float | str): + def offset(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Offset={value}"]) @property def x_direction_taper(self) -> float: """X Direction Taper - "Amount (%) that the prism tapers in the X dimension from one end to the other." - "Value should be greater than 0." + Amount (%) that the prism tapers in the X dimension from one end to the + other + + Value should be greater than 0. """ val = self._get_property("X Direction Taper") - return val # type: ignore + return val # type: ignore @x_direction_taper.setter - def x_direction_taper(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Direction Taper={value}"]) + def x_direction_taper(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X Direction Taper={value}"]) @property def y_direction_taper(self) -> float: """Y Direction Taper - "Amount (%) that the prism tapers in the Y dimension from one end to the other." - "Value should be greater than 0." + Amount (%) that the prism tapers in the Y dimension from one end to the + other + + Value should be greater than 0. """ val = self._get_property("Y Direction Taper") - return val # type: ignore + return val # type: ignore @y_direction_taper.setter - def y_direction_taper(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Direction Taper={value}"]) + def y_direction_taper(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y Direction Taper={value}"]) @property def prism_direction(self): """Prism Direction - "Direction vector between the center of the base and center of the top." - "Value should be x/y/z, delimited by spaces." + Direction vector between the center of the base and center of the top + + Value should be x/y/z, delimited by spaces. """ val = self._get_property("Prism Direction") - return val # type: ignore + return val # type: ignore @prism_direction.setter def prism_direction(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Prism Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Prism Direction={value}"]) @property def closed_top(self) -> bool: """Closed Top - "Control whether the top of the model is closed." - "Value should be 'true' or 'false'." + Control whether the top of the model is closed + + Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return val # type: ignore + return val # type: ignore @closed_top.setter def closed_top(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Top={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Closed Top={value}"]) @property def closed_base(self) -> bool: """Closed Base - "Control whether the base of the model is closed." - "Value should be 'true' or 'false'." + Control whether the base of the model is closed + + Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return val # type: ignore + return val # type: ignore @closed_base.setter def closed_base(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Base={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Closed Base={value}"]) @property def mesh_density(self) -> int: """Mesh Density - "Unitless mesh density parameter where higher value improves mesh smoothness." - "Value should be between 1 and 100." + Unitless mesh density parameter where higher value improves mesh + smoothness + + Value should be between 1 and 100. """ val = self._get_property("Mesh Density") - return val # type: ignore + return val # type: ignore @mesh_density.setter def mesh_density(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Density={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mesh Density={value}"]) @property def use_symmetric_mesh(self) -> bool: """Use Symmetric Mesh - "Convert quads to a symmetric triangle mesh by adding a center point (4 triangles per quad instead of 2)." - "Value should be 'true' or 'false'." + Convert quads to a symmetric triangle mesh by adding a center point (4 + triangles per quad instead of 2) + + Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return val # type: ignore + return val # type: ignore @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Symmetric Mesh={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Symmetric Mesh={value}"]) class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -408,69 +478,83 @@ class MeshOptionOption(Enum): @property def mesh_option(self) -> MeshOptionOption: """Mesh Option - "Select from different meshing options." - " """ + Select from different meshing options + + """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] - return val # type: ignore + return val # type: ignore @mesh_option.setter def mesh_option(self, value: MeshOptionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Option={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mesh Option={value.value}"]) @property def coating_index(self) -> int: """Coating Index - "Coating index for the parametric model primitive." - "Value should be between 0 and 100000." + Coating index for the parametric model primitive + + Value should be between 0 and 100000. """ val = self._get_property("Coating Index") - return val # type: ignore + return val # type: ignore @coating_index.setter def coating_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Coating Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Coating Index={value}"]) @property def show_relative_coordinates(self) -> bool: """Show Relative Coordinates - "Show CAD model node position and orientation in parent-node coords (False) or relative to placement coords (True)." - "Value should be 'true' or 'false'." + Show CAD model node position and orientation in parent-node coords + (False) or relative to placement coords (True) + + Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): """Position - "Set position of the CAD node in parent-node coordinates." - "Value should be x/y/z, delimited by spaces." + Set position of the CAD node in parent-node coordinates + + Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): """Relative Position - "Set position of the CAD model node relative to placement coordinates." - "Value should be x/y/z, delimited by spaces." + Set position of the CAD model node relative to placement coordinates + + Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -479,54 +563,66 @@ class OrientationModeOption(Enum): @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode - "Select the convention (order of rotations) for configuring orientation." - " """ + Select the convention (order of rotations) for configuring orientation + + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): """Orientation - "Set orientation of the CAD node in parent-node coordinates." - "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + Set orientation of the CAD node in parent-node coordinates + + Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): """Relative Orientation - "Set orientation of the CAD model node relative to placement coordinates." - "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + Set orientation of the CAD model node relative to placement coordinates + + Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def visible(self) -> bool: """Visible - "Toggle (on/off) display of CAD model in 3-D window." - "Value should be 'true' or 'false'." + Toggle (on/off) display of CAD model in 3-D window + + Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -537,76 +633,92 @@ class RenderModeOption(Enum): @property def render_mode(self) -> RenderModeOption: """Render Mode - "Select drawing style for surfaces." - " """ + Select drawing style for surfaces + + """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] - return val # type: ignore + return val # type: ignore @render_mode.setter def render_mode(self, value: RenderModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Render Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Render Mode={value.value}"]) @property def show_axes(self) -> bool: """Show Axes - "Toggle (on/off) display of CAD model coordinate axes in 3-D window." - "Value should be 'true' or 'false'." + Toggle (on/off) display of CAD model coordinate axes in 3-D window + + Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def min(self): """Min - "Minimum x,y,z extents of CAD model in local coordinates." - "Value should be x/y/z, delimited by spaces." + Minimum x,y,z extents of CAD model in local coordinates + + Value should be x/y/z, delimited by spaces. """ val = self._get_property("Min") - return val # type: ignore + return val # type: ignore @property def max(self): """Max - "Maximum x,y,z extents of CAD model in local coordinates." - "Value should be x/y/z, delimited by spaces." + Maximum x,y,z extents of CAD model in local coordinates + + Value should be x/y/z, delimited by spaces. """ val = self._get_property("Max") - return val # type: ignore + return val # type: ignore @property def number_of_surfaces(self) -> int: """Number of Surfaces - "Number of surfaces in the model." - " """ + Number of surfaces in the model + + """ val = self._get_property("Number of Surfaces") - return val # type: ignore + return val # type: ignore @property def color(self): """Color - "Defines the CAD nodes color." - "Color should be in RGB form: #RRGGBB." + Defines the CAD nodes color + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index 8af1d5e6f24..ef5027294bf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Cable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -48,40 +44,49 @@ def delete(self): @property def filename(self) -> str: """Filename - "Name of file defining the outboard component." - "Value should be a full file path." + Name of file defining the outboard component + + Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." + System Noise temperature (K) of the component + + Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -91,89 +96,110 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: """Type - "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." - " """ + Type of cable to use. Options include: By File (measured or simulated), + Constant Loss, or Coaxial Cable + + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def length(self) -> float: """Length - "Length of cable." - "Value should be between 0 and 500." + Length of cable + + Value should be between 0 and 500. """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @length.setter - def length(self, value: float | str): + def length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Length={value}"]) @property def loss_per_length(self) -> float: """Loss Per Length - "Cable loss per unit length (dB/meter)." - "Value should be between 0 and 20." + Cable loss per unit length (dB/meter) + + Value should be between 0 and 20. """ val = self._get_property("Loss Per Length") - return val # type: ignore + return val # type: ignore @loss_per_length.setter - def loss_per_length(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Loss Per Length={value}"]) + def loss_per_length(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Loss Per Length={value}"]) @property def measurement_length(self) -> float: """Measurement Length - "Length of the cable used for the measurements." - "Value should be between 0 and 500." + Length of the cable used for the measurements + + Value should be between 0 and 500. """ val = self._get_property("Measurement Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @measurement_length.setter - def measurement_length(self, value: float | str): + def measurement_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Length={value}"]) @property def resistive_loss_constant(self) -> float: """Resistive Loss Constant - "Coaxial cable resistive loss constant." - "Value should be between 0 and 2." + Coaxial cable resistive loss constant + + Value should be between 0 and 2. """ val = self._get_property("Resistive Loss Constant") - return val # type: ignore + return val # type: ignore @resistive_loss_constant.setter - def resistive_loss_constant(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resistive Loss Constant={value}"]) + def resistive_loss_constant(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Resistive Loss Constant={value}"]) @property def dielectric_loss_constant(self) -> float: """Dielectric Loss Constant - "Coaxial cable dielectric loss constant." - "Value should be between 0 and 1." + Coaxial cable dielectric loss constant + + Value should be between 0 and 1. """ val = self._get_property("Dielectric Loss Constant") - return val # type: ignore + return val # type: ignore @dielectric_loss_constant.setter - def dielectric_loss_constant(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Dielectric Loss Constant={value}"]) + def dielectric_loss_constant(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Dielectric Loss Constant={value}"]) @property def warnings(self) -> str: """Warnings - "Warning(s) for this node." - " """ + Warning(s) for this node + + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py index e6ebf15eefe..30d3308da3a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py @@ -1,32 +1,30 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class CategoriesViewNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index 02f46d38986..47641ec2e51 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Circulator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -48,40 +44,49 @@ def delete(self): @property def filename(self) -> str: """Filename - "Name of file defining the Isolator/Circulator." - "Value should be a full file path." + Name of file defining the Isolator/Circulator + + Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." + System Noise temperature (K) of the component + + Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -90,15 +95,19 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: """Type - "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + Type of circulator model to use. Options include: By File (measured or + simulated) or Parametric + + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -107,145 +116,179 @@ class Port1LocationOption(Enum): @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location - "Defines the orientation of the circulator.." - " """ + Defines the orientation of the circulator. + + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: """Insertion Loss - "Circulator in-band loss in forward direction.." - "Value should be between 0 and 100." + Circulator in-band loss in forward direction. + + Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: """Finite Reverse Isolation - "Use a finite reverse isolation. If disabled, the circulator model is ideal (infinite reverse isolation).." - "Value should be 'true' or 'false'." + Use a finite reverse isolation. If disabled, the circulator model is + ideal (infinite reverse isolation). + + Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: """Reverse Isolation - "Circulator reverse isolation (i.e., loss in the reverse direction).." - "Value should be between 0 and 100." + Circulator reverse isolation (i.e., loss in the reverse direction). + + Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: """Finite Bandwidth - "Use a finite bandwidth. If disabled, the circulator model is ideal (infinite bandwidth).." - "Value should be 'true' or 'false'." + Use a finite bandwidth. If disabled, the circulator model is ideal + (infinite bandwidth). + + Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: """Out-of-band Attenuation - "Out-of-band loss (attenuation)." - "Value should be between 0 and 200." + Out-of-band loss (attenuation) + + Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: """Lower Stop Band - "Lower stop band frequency." - "Value should be between 1 and 1e+11." + Lower stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: """Lower Cutoff - "Lower cutoff frequency." - "Value should be between 1 and 1e+11." + Lower cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: """Higher Cutoff - "Higher cutoff frequency." - "Value should be between 1 and 1e+11." + Higher cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: """Higher Stop Band - "Higher stop band frequency." - "Value should be between 1 and 1e+11." + Higher stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings - "Warning(s) for this node." - " """ + Warning(s) for this node + + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py index d3e63dddf25..2206a3a19ae 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class CouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,25 +36,32 @@ def parent(self): @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling link." - "Value should be 'true' or 'false'." + Enable/Disable coupling link + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def ports(self): """Ports - "Maps each port in the link to an antenna in the project." + Maps each port in the link to an antenna in the project + "A list of values." - " """ + """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ports={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py index fd42aa00a7b..280324ad586 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class CouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,74 +49,91 @@ def delete(self): @property def transmitter(self) -> EmitNode: """Transmitter - " """ + """ val = self._get_property("Transmitter") - return val # type: ignore + return val # type: ignore @transmitter.setter def transmitter(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Transmitter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Transmitter={value}"]) @property def receiver(self) -> EmitNode: """Receiver - " """ + """ val = self._get_property("Receiver") - return val # type: ignore + return val # type: ignore @receiver.setter def receiver(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Receiver={value}"]) @property def data_source(self): """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + Identifies tree node serving as data source for plot trace, click link + to find it + + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." + Toggle (on/off) display of this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." + Enable/disable custom legend entry for this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name - "Enter name of plot trace as it will appear in legend." - " """ + Enter name of plot trace as it will appear in legend + + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -133,41 +146,50 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: """Style - "Specify line style of plot trace." - " """ + Specify line style of plot trace + + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." + Specify line width of plot trace + + Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." + Specify line color of plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -189,168 +211,209 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: """Symbol - "Select symbol to mark points along plot trace." - " """ + Select symbol to mark points along plot trace + + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." + Set size (in points) of symbols marking points along plot trace + + Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." + Specify color of symbols marking points along plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." + Set the width of the line used to draw the symbol + + Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." + If true, the interior of the symbol is filled - has no effect for some + symbol types + + Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def highlight_regions(self) -> bool: """Highlight Regions - "If true, regions of the trace are highlighted." - "Value should be 'true' or 'false'." + If true, regions of the trace are highlighted + + Value should be 'true' or 'false'. """ val = self._get_property("Highlight Regions") - return val # type: ignore + return val # type: ignore @highlight_regions.setter def highlight_regions(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highlight Regions={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Highlight Regions={value}"]) @property def show_region_labels(self) -> bool: """Show Region Labels - "If true, regions of the trace are labelled." - "Value should be 'true' or 'false'." + If true, regions of the trace are labelled + + Value should be 'true' or 'false'. """ val = self._get_property("Show Region Labels") - return val # type: ignore + return val # type: ignore @show_region_labels.setter def show_region_labels(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Region Labels={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Region Labels={value}"]) @property def font(self): """Font - "Specify font used for the label." - "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + Specify font used for the label + + Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): """Color - "Specify color of the label text." - "Color should be in RGB form: #RRGGBB." + Specify color of the label text + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): """Background Color - "Set color of the label text background." - "Color should be in RGBA form: #AARRGGBB." + Set color of the label text background + + Color should be in RGBA form: #AARRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: """Border - "Display a border around the label text." - "Value should be 'true' or 'false'." + Display a border around the label text + + Value should be 'true' or 'false'. """ val = self._get_property("Border") - return val # type: ignore + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: """Border Width - "Set the width of the border around the label text." - "Value should be between 1 and 20." + Set the width of the border around the label text + + Value should be between 1 and 20. """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): """Border Color - "Set color of the border around the label text." - "Color should be in RGB form: #RRGGBB." + Set color of the border around the label text + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py index 1d24f4d8317..905f354f567 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class CouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -33,7 +30,7 @@ def __init__(self, oDesign, result_id, node_id): def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" - return self._import(file_name, "TouchstoneCoupling") + return self._import(file_name,"TouchstoneCoupling") def add_custom_coupling(self): """Add a new node to define custom coupling between antennas""" @@ -74,33 +71,42 @@ def add_5g_channel_model_coupling(self): @property def minimum_allowed_coupling(self) -> float: """Minimum Allowed Coupling - "Global minimum allowed coupling value. All computed coupling within this project will be >= this value." - "Value should be between -1000 and 1000." + Global minimum allowed coupling value. All computed coupling within this + project will be >= this value + + Value should be between -1000 and 1000. """ val = self._get_property("Minimum Allowed Coupling") - return val # type: ignore + return val # type: ignore @minimum_allowed_coupling.setter - def minimum_allowed_coupling(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Allowed Coupling={value}"]) + def minimum_allowed_coupling(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minimum Allowed Coupling={value}"]) @property def global_default_coupling(self) -> float: """Global Default Coupling - "Default antenna-to-antenna coupling loss value." - "Value should be between -1000 and 0." + Default antenna-to-antenna coupling loss value + + Value should be between -1000 and 0. """ val = self._get_property("Global Default Coupling") - return val # type: ignore + return val # type: ignore @global_default_coupling.setter - def global_default_coupling(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Global Default Coupling={value}"]) + def global_default_coupling(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Global Default Coupling={value}"]) @property def antenna_tags(self) -> str: """Antenna Tags - "All tags currently used by all antennas in the project." - " """ + All tags currently used by all antennas in the project + + """ val = self._get_property("Antenna Tags") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py index e24bb022f04..0435bc42945 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class CustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,7 +35,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def rename(self, new_name): """Rename this node""" @@ -54,12 +51,12 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Frequency: - " Value should be between 1 and 1e+11." - "Value (dB): - " Value should be between -1000 and 0." + "Frequency: + Value should be between 1 and 1e+11. + "Value (dB): + Value should be between -1000 and 0. """ return self._get_table_data() @@ -70,74 +67,93 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." + Enable/Disable coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A - "First antenna of the pair to apply the coupling values to." - " """ + First antenna of the pair to apply the coupling values to + + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B - "Second antenna of the pair to apply the coupling values to." - " """ + Second antenna of the pair to apply the coupling values to + + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." + Enables/disables refined sampling of the frequency domain. + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." + Enables/disables adaptive refinement the frequency domain sampling. + + Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain - "Points to use when refining the frequency domain.." - " """ + Points to use when refining the frequency domain. + + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py index 2860886dbaf..f9cec702a9c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class EmiPlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,94 +49,118 @@ def delete(self): @property def visible(self) -> bool: """Visible - "Toggle (on/off) this marker." - "Value should be 'true' or 'false'." + Toggle (on/off) this marker + + Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def attached(self): """Attached - "Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False)." - " """ + Attach marker to a fixed X-Y point on the plot (True), or to a fixed + point on the plot window (False) + + """ val = self._get_property("Attached") - return val # type: ignore + return val # type: ignore @attached.setter def attached(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Attached={value}"]) @property def position_x(self) -> float: """Position X - "Position of the marker on the X-axis (frequency axis).." - " """ + Position of the marker on the X-axis (frequency axis). + + """ val = self._get_property("Position X") - return val # type: ignore + return val # type: ignore @property def position_y(self) -> float: """Position Y - "Position of the marker on the Y-axis (result axis).." - " """ + Position of the marker on the Y-axis (result axis). + + """ val = self._get_property("Position Y") - return val # type: ignore + return val # type: ignore @property def floating_label(self) -> bool: """Floating Label - "Allow marker label to be positioned at a fixed point on the plot window (the marker symbol remains fixed to the specified X-Y point)." - "Value should be 'true' or 'false'." + Allow marker label to be positioned at a fixed point on the plot window + (the marker symbol remains fixed to the specified X-Y point) + + Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return val # type: ignore + return val # type: ignore @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Floating Label={value}"]) @property def position_from_left(self) -> float: """Position from Left - "Set position of label from left to right as a percentage of the width of the plot window." - "Value should be between 0 and 100." + Set position of label from left to right as a percentage of the width of + the plot window + + Value should be between 0 and 100. """ val = self._get_property("Position from Left") - return val # type: ignore + return val # type: ignore @position_from_left.setter - def position_from_left(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) + def position_from_left(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Left={value}"]) @property def position_from_top(self) -> float: """Position from Top - "Set position of label from top to bottom as a percentage of the height of the plot window." - "Value should be between 0 and 100." + Set position of label from top to bottom as a percentage of the height + of the plot window + + Value should be between 0 and 100. """ val = self._get_property("Position from Top") - return val # type: ignore + return val # type: ignore @position_from_top.setter - def position_from_top(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) + def position_from_top(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Top={value}"]) @property def text(self) -> str: """Text - "Set the text of the label." - " """ + Set the text of the label + + """ val = self._get_property("Text") - return val # type: ignore + return val # type: ignore @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -150,17 +170,18 @@ class HorizontalPositionOption(Enum): @property def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position - "Specify horizontal position of the label as compared to the symbol." - " """ + Specify horizontal position of the label as compared to the symbol + + """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] - return val # type: ignore + return val # type: ignore @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Horizontal Position={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Position={value.value}"]) class VerticalPositionOption(Enum): TOP = "Top" @@ -170,15 +191,18 @@ class VerticalPositionOption(Enum): @property def vertical_position(self) -> VerticalPositionOption: """Vertical Position - "Specify vertical position of the label as compared to the symbol." - " """ + Specify vertical position of the label as compared to the symbol + + """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] - return val # type: ignore + return val # type: ignore @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -188,93 +212,114 @@ class TextAlignmentOption(Enum): @property def text_alignment(self) -> TextAlignmentOption: """Text Alignment - "Specify justification applied to multi-line text." - " """ + Specify justification applied to multi-line text + + """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] - return val # type: ignore + return val # type: ignore @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text Alignment={value.value}"]) @property def font(self): """Font - "Specify font used for the label." - "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + Specify font used for the label + + Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): """Color - "Specify color of the label text." - "Color should be in RGB form: #RRGGBB." + Specify color of the label text + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): """Background Color - "Set color of the label text background." - "Color should be in RGBA form: #AARRGGBB." + Set color of the label text background + + Color should be in RGBA form: #AARRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: """Border - "Display a border around the label text." - "Value should be 'true' or 'false'." + Display a border around the label text + + Value should be 'true' or 'false'. """ val = self._get_property("Border") - return val # type: ignore + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: """Border Width - "Set the width of the border around the label text." - "Value should be between 1 and 20." + Set the width of the border around the label text + + Value should be between 1 and 20. """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): """Border Color - "Set color of the border around the label text." - "Color should be in RGB form: #RRGGBB." + Set color of the border around the label text + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -297,77 +342,97 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: """Symbol - "Specify symbol displayed next to the label." - " """ + Specify symbol displayed next to the label + + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: """Arrow Direction - "Set direction of the arrow; zero degrees is up." - "Value should be between -360 and 360." + Set direction of the arrow; zero degrees is up + + Value should be between -360 and 360. """ val = self._get_property("Arrow Direction") - return val # type: ignore + return val # type: ignore @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: """Symbol Size - "Set size of the symbol used for this marker." - "Value should be between 1 and 1000." + Set size of the symbol used for this marker + + Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): """Symbol Color - "Set color of the symbol used for this marker." - "Color should be in RGB form: #RRGGBB." + Set color of the symbol used for this marker + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def line_width(self) -> int: """Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." + Set the width of the line used to draw the symbol + + Value should be between 1 and 20. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def filled(self) -> bool: """Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." + If true, the interior of the symbol is filled - has no effect for some + symbol types + + Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return val # type: ignore + return val # type: ignore @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py index d6aded63eee..0466a13e30b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class EmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,14 +36,17 @@ def add_group(self): @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class GroundPlaneNormalOption(Enum): X_AXIS = "X Axis" @@ -57,28 +56,34 @@ class GroundPlaneNormalOption(Enum): @property def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal - "Specifies the axis of the normal to the ground plane." - " """ + Specifies the axis of the normal to the ground plane + + """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] - return val # type: ignore + return val # type: ignore @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ground Plane Normal={value.value}"]) @property def gp_position_along_normal(self) -> float: """GP Position Along Normal - "Offset of ground plane in direction normal to the ground planes orientation." - " """ + Offset of ground plane in direction normal to the ground planes + orientation + + """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @gp_position_along_normal.setter - def gp_position_along_normal(self, value: float | str): + def gp_position_along_normal(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GP Position Along Normal={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"GP Position Along Normal={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py index 20ee537d31d..476b63e9bec 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,77 +49,95 @@ def delete(self): @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." + Enable/Disable coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna - "First antenna of the pair to apply the coupling values to." - " """ + First antenna of the pair to apply the coupling values to + + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna - "Second antenna of the pair to apply the coupling values to." - " """ + Second antenna of the pair to apply the coupling values to + + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." + Enables/disables refined sampling of the frequency domain. + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." + Enables/disables adaptive refinement the frequency domain sampling. + + Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain - "Points to use when refining the frequency domain.." - " """ + Points to use when refining the frequency domain. + + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class TerrainCategoryOption(Enum): TYPE_A = "Type A" @@ -133,54 +147,69 @@ class TerrainCategoryOption(Enum): @property def terrain_category(self) -> TerrainCategoryOption: """Terrain Category - "Specify the terrain category type for the Erceg model." - " """ + Specify the terrain category type for the Erceg model + + """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] - return val # type: ignore + return val # type: ignore @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Terrain Category={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Terrain Category={value.value}"]) @property def custom_fading_margin(self) -> float: """Custom Fading Margin - "Sets a custom fading margin to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a custom fading margin to be applied to all coupling defined by + this node + + Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: """Polarization Mismatch - "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for polarization mismatch to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: """Pointing Error Loss - "Sets a margin for pointing error loss to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for pointing error loss to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -191,146 +220,180 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: """Fading Type - "Specify the type of fading to include." - " """ + Specify the type of fading to include + + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: """Fading Availability - "The probability that the propagation loss in dB is below its median value plus the margin." - "Value should be between 0 and 100." + The probability that the propagation loss in dB is below its median + value plus the margin + + Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: """Std Deviation - "Standard deviation modeling the random amount of shadowing loss." - "Value should be between 0 and 100." + Standard deviation modeling the random amount of shadowing loss + + Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation - "Adds a margin for rain attenuation to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for rain attenuation to the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: """Rain Availability - "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." - "Value should be between 99 and 99.999." + Percentage of time attenuation due to range is < computed margin (range + from 99-99.999%) + + Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: """Rain Rate - "Rain rate (mm/hr) exceeded for 0.01% of the time." - "Value should be between 0 and 1000." + Rain rate (mm/hr) exceeded for 0.01% of the time + + Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle - "Polarization tilt angle of the transmitted signal relative to the horizontal." - "Value should be between 0 and 180." + Polarization tilt angle of the transmitted signal relative to the + horizontal + + Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption - "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for atmospheric absorption due to oxygen/water vapor to + the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: """Temperature - "Air temperature in degrees Celsius." - "Value should be between -273 and 100." + Air temperature in degrees Celsius + + Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: """Total Air Pressure - "Total air pressure." - "Value should be between 0 and 2000." + Total air pressure + + Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration - "Water vapor concentration." - "Value should be between 0 and 2000." + Water vapor concentration + + Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index 16d3a30819b..ec64aeda315 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Filter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -48,40 +44,49 @@ def delete(self): @property def filename(self) -> str: """Filename - "Name of file defining the outboard component." - "Value should be a full file path." + Name of file defining the outboard component + + Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." + System Noise temperature (K) of the component + + Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -95,282 +100,342 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: """Type - "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + Type of filter to define. The filter can be defined by file (measured or + simulated data) or using one of EMIT's parametric models + + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def insertion_loss(self) -> float: """Insertion Loss - "Filter pass band loss." - "Value should be between 0 and 100." + Filter pass band loss + + Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: """Stop band Attenuation - "Filter stop band loss (attenuation)." - "Value should be less than 200." + Filter stop band loss (attenuation) + + Value should be less than 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @stop_band_attenuation.setter - def stop_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: """Max Pass Band - "Maximum pass band frequency." - "Value should be between 1 and 1e+11." + Maximum pass band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_pass_band.setter - def max_pass_band(self, value: float | str): + def max_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: """Min Stop Band - "Minimum stop band frequency." - "Value should be between 1 and 1e+11." + Minimum stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_stop_band.setter - def min_stop_band(self, value: float | str): + def min_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: """Max Stop Band - "Maximum stop band frequency." - "Value should be between 1 and 1e+11." + Maximum stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_stop_band.setter - def max_stop_band(self, value: float | str): + def max_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: """Min Pass Band - "Minimum pass band frequency." - "Value should be between 1 and 1e+11." + Minimum pass band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_pass_band.setter - def min_pass_band(self, value: float | str): + def min_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: """Lower Stop Band - "Lower stop band frequency." - "Value should be between 1 and 1e+11." + Lower stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: """Lower Cutoff - "Lower cutoff frequency." - "Value should be between 1 and 1e+11." + Lower cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: """Higher Cutoff - "Higher cutoff frequency." - "Value should be between 1 and 1e+11." + Higher cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: """Higher Stop Band - "Higher stop band frequency." - "Value should be between 1 and 1e+11." + Higher stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def lower_cutoff_(self) -> float: - """Lower Cutoff - "Lower cutoff frequency." - "Value should be between 1 and 1e+11." + """Lower Cutoff + Lower cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff_.setter - def lower_cutoff_(self, value: float | str): + def lower_cutoff_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff ={value}"]) @property def lower_stop_band_(self) -> float: - """Lower Stop Band - "Lower stop band frequency." - "Value should be between 1 and 1e+11." + """Lower Stop Band + Lower stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band_.setter - def lower_stop_band_(self, value: float | str): + def lower_stop_band_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band ={value}"]) @property def higher_stop_band_(self) -> float: - """Higher Stop Band - "Higher stop band frequency." - "Value should be between 1 and 1e+11." + """Higher Stop Band + Higher stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band_.setter - def higher_stop_band_(self, value: float | str): + def higher_stop_band_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band ={value}"]) @property def higher_cutoff_(self) -> float: - """Higher Cutoff - "Higher cutoff frequency." - "Value should be between 1 and 1e+11." + """Higher Cutoff + Higher cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff_.setter - def higher_cutoff_(self, value: float | str): + def higher_cutoff_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff ={value}"]) @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency - "Lowest tuned frequency." - "Value should be between 1 and 1e+11." + """Lowest Tuned Frequency + Lowest tuned frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lowest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lowest_tuned_frequency_.setter - def lowest_tuned_frequency_(self, value: float | str): + def lowest_tuned_frequency_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lowest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lowest Tuned Frequency ={value}"]) @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency - "Highest tuned frequency." - "Value should be between 1 and 1e+11." + """Highest Tuned Frequency + Highest tuned frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Highest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @highest_tuned_frequency_.setter - def highest_tuned_frequency_(self, value: float | str): + def highest_tuned_frequency_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Highest Tuned Frequency ={value}"]) @property def percent_bandwidth(self) -> float: """Percent Bandwidth - "Tunable filter 3-dB bandwidth." - "Value should be between 0.001 and 100." + Tunable filter 3-dB bandwidth + + Value should be between 0.001 and 100. """ val = self._get_property("Percent Bandwidth") - return val # type: ignore + return val # type: ignore @percent_bandwidth.setter - def percent_bandwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percent Bandwidth={value}"]) + def percent_bandwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Percent Bandwidth={value}"]) @property def shape_factor(self) -> float: """Shape Factor - "Ratio defining the filter rolloff." - "Value should be between 1 and 100." + Ratio defining the filter rolloff + + Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @shape_factor.setter - def shape_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) + def shape_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Shape Factor={value}"]) @property def warnings(self) -> str: """Warnings - "Warning(s) for this node." - " """ + Warning(s) for this node + + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py index 9d44be0393e..92d1fd3719e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class FiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,77 +49,95 @@ def delete(self): @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." + Enable/Disable coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna - "First antenna of the pair to apply the coupling values to." - " """ + First antenna of the pair to apply the coupling values to + + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna - "Second antenna of the pair to apply the coupling values to." - " """ + Second antenna of the pair to apply the coupling values to + + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." + Enables/disables refined sampling of the frequency domain. + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." + Enables/disables adaptive refinement the frequency domain sampling. + + Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain - "Points to use when refining the frequency domain.." - " """ + Points to use when refining the frequency domain. + + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): URBAN_MICROCELL = "Urban Microcell" @@ -133,41 +147,50 @@ class EnvironmentOption(Enum): @property def environment(self) -> EnvironmentOption: """Environment - "Specify the environment for the 5G channel model." - " """ + Specify the environment for the 5G channel model + + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def los(self) -> bool: """LOS - "True if the operating environment is line-of-sight." - "Value should be 'true' or 'false'." + True if the operating environment is line-of-sight + + Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return val # type: ignore + return val # type: ignore @los.setter def los(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"LOS={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"LOS={value}"]) @property def include_bpl(self) -> bool: """Include BPL - "Includes building penetration loss if true." - "Value should be 'true' or 'false'." + Includes building penetration loss if true + + Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return val # type: ignore + return val # type: ignore @include_bpl.setter def include_bpl(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include BPL={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include BPL={value}"]) class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -176,54 +199,69 @@ class NYUBPLModelOption(Enum): @property def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model - "Specify the NYU Building Penetration Loss model." - " """ + Specify the NYU Building Penetration Loss model + + """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] - return val # type: ignore + return val # type: ignore @nyu_bpl_model.setter def nyu_bpl_model(self, value: NYUBPLModelOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NYU BPL Model={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NYU BPL Model={value.value}"]) @property def custom_fading_margin(self) -> float: """Custom Fading Margin - "Sets a custom fading margin to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a custom fading margin to be applied to all coupling defined by + this node + + Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: """Polarization Mismatch - "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for polarization mismatch to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: """Pointing Error Loss - "Sets a margin for pointing error loss to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for pointing error loss to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -234,146 +272,180 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: """Fading Type - "Specify the type of fading to include." - " """ + Specify the type of fading to include + + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: """Fading Availability - "The probability that the propagation loss in dB is below its median value plus the margin." - "Value should be between 0 and 100." + The probability that the propagation loss in dB is below its median + value plus the margin + + Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: """Std Deviation - "Standard deviation modeling the random amount of shadowing loss." - "Value should be between 0 and 100." + Standard deviation modeling the random amount of shadowing loss + + Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation - "Adds a margin for rain attenuation to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for rain attenuation to the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: """Rain Availability - "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." - "Value should be between 99 and 99.999." + Percentage of time attenuation due to range is < computed margin (range + from 99-99.999%) + + Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: """Rain Rate - "Rain rate (mm/hr) exceeded for 0.01% of the time." - "Value should be between 0 and 1000." + Rain rate (mm/hr) exceeded for 0.01% of the time + + Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle - "Polarization tilt angle of the transmitted signal relative to the horizontal." - "Value should be between 0 and 180." + Polarization tilt angle of the transmitted signal relative to the + horizontal + + Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption - "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for atmospheric absorption due to oxygen/water vapor to + the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: """Temperature - "Air temperature in degrees Celsius." - "Value should be between -273 and 100." + Air temperature in degrees Celsius + + Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: """Total Air Pressure - "Total air pressure." - "Value should be between 0 and 2000." + Total air pressure + + Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration - "Water vapor concentration." - "Value should be between 0 and 2000." + Water vapor concentration + + Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py index cee1ff01608..3eea644c2ae 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class HataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,77 +49,95 @@ def delete(self): @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." + Enable/Disable coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna - "First antenna of the pair to apply the coupling values to." - " """ + First antenna of the pair to apply the coupling values to + + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna - "Second antenna of the pair to apply the coupling values to." - " """ + Second antenna of the pair to apply the coupling values to + + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." + Enables/disables refined sampling of the frequency domain. + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." + Enables/disables adaptive refinement the frequency domain sampling. + + Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain - "Points to use when refining the frequency domain.." - " """ + Points to use when refining the frequency domain. + + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): LARGE_CITY = "Large City" @@ -134,54 +148,69 @@ class EnvironmentOption(Enum): @property def environment(self) -> EnvironmentOption: """Environment - "Specify the environment type for the Hata model." - " """ + Specify the environment type for the Hata model + + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def custom_fading_margin(self) -> float: """Custom Fading Margin - "Sets a custom fading margin to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a custom fading margin to be applied to all coupling defined by + this node + + Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: """Polarization Mismatch - "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for polarization mismatch to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: """Pointing Error Loss - "Sets a margin for pointing error loss to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for pointing error loss to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -192,146 +221,180 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: """Fading Type - "Specify the type of fading to include." - " """ + Specify the type of fading to include + + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: """Fading Availability - "The probability that the propagation loss in dB is below its median value plus the margin." - "Value should be between 0 and 100." + The probability that the propagation loss in dB is below its median + value plus the margin + + Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: """Std Deviation - "Standard deviation modeling the random amount of shadowing loss." - "Value should be between 0 and 100." + Standard deviation modeling the random amount of shadowing loss + + Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation - "Adds a margin for rain attenuation to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for rain attenuation to the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: """Rain Availability - "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." - "Value should be between 99 and 99.999." + Percentage of time attenuation due to range is < computed margin (range + from 99-99.999%) + + Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: """Rain Rate - "Rain rate (mm/hr) exceeded for 0.01% of the time." - "Value should be between 0 and 1000." + Rain rate (mm/hr) exceeded for 0.01% of the time + + Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle - "Polarization tilt angle of the transmitted signal relative to the horizontal." - "Value should be between 0 and 180." + Polarization tilt angle of the transmitted signal relative to the + horizontal + + Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption - "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for atmospheric absorption due to oxygen/water vapor to + the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: """Temperature - "Air temperature in degrees Celsius." - "Value should be between -273 and 100." + Air temperature in degrees Celsius + + Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: """Total Air Pressure - "Total air pressure." - "Value should be between 0 and 2000." + Total air pressure + + Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration - "Water vapor concentration." - "Value should be between 0 and 2000." + Water vapor concentration + + Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py index 87f866cc66b..323c3e54814 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class IndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,14 +48,14 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency: - " Value should be between 1 and 1e+11." - "Power Loss Coefficient: - " Value should be between 0 and 100." - "Floor Penetration Loss (dB): - " Value should be between 0 and 1000." + "Frequency: + Value should be between 1 and 1e+11. + "Power Loss Coefficient: + Value should be between 0 and 100. + "Floor Penetration Loss (dB): + Value should be between 0 and 1000. """ return self._get_table_data() @@ -70,77 +66,95 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." + Enable/Disable coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A - "First antenna of the pair to apply the coupling values to." - " """ + First antenna of the pair to apply the coupling values to + + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B - "Second antenna of the pair to apply the coupling values to." - " """ + Second antenna of the pair to apply the coupling values to + + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." + Enables/disables refined sampling of the frequency domain. + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." + Enables/disables adaptive refinement the frequency domain sampling. + + Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain - "Points to use when refining the frequency domain.." - " """ + Points to use when refining the frequency domain. + + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class BuildingTypeOption(Enum): RESIDENTIAL_APARTMENT = "Residential Apartment" @@ -152,67 +166,85 @@ class BuildingTypeOption(Enum): @property def building_type(self) -> BuildingTypeOption: """Building Type - "Specify the building type for the Indoor Propagation model." - " """ + Specify the building type for the Indoor Propagation model + + """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] - return val # type: ignore + return val # type: ignore @building_type.setter def building_type(self, value: BuildingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Building Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Building Type={value.value}"]) @property def number_of_floors(self) -> int: """Number of Floors - "The number of floors separating the antennas.." - "Value should be between 1 and 3." + The number of floors separating the antennas. + + Value should be between 1 and 3. """ val = self._get_property("Number of Floors") - return val # type: ignore + return val # type: ignore @number_of_floors.setter def number_of_floors(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Floors={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Floors={value}"]) @property def custom_fading_margin(self) -> float: """Custom Fading Margin - "Sets a custom fading margin to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a custom fading margin to be applied to all coupling defined by + this node + + Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: """Polarization Mismatch - "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for polarization mismatch to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: """Pointing Error Loss - "Sets a margin for pointing error loss to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for pointing error loss to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -223,146 +255,180 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: """Fading Type - "Specify the type of fading to include." - " """ + Specify the type of fading to include + + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: """Fading Availability - "The probability that the propagation loss in dB is below its median value plus the margin." - "Value should be between 0 and 100." + The probability that the propagation loss in dB is below its median + value plus the margin + + Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: """Std Deviation - "Standard deviation modeling the random amount of shadowing loss." - "Value should be between 0 and 100." + Standard deviation modeling the random amount of shadowing loss + + Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation - "Adds a margin for rain attenuation to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for rain attenuation to the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: """Rain Availability - "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." - "Value should be between 99 and 99.999." + Percentage of time attenuation due to range is < computed margin (range + from 99-99.999%) + + Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: """Rain Rate - "Rain rate (mm/hr) exceeded for 0.01% of the time." - "Value should be between 0 and 1000." + Rain rate (mm/hr) exceeded for 0.01% of the time + + Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle - "Polarization tilt angle of the transmitted signal relative to the horizontal." - "Value should be between 0 and 180." + Polarization tilt angle of the transmitted signal relative to the + horizontal + + Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption - "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for atmospheric absorption due to oxygen/water vapor to + the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: """Temperature - "Air temperature in degrees Celsius." - "Value should be between -273 and 100." + Air temperature in degrees Celsius + + Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: """Total Air Pressure - "Total air pressure." - "Value should be between 0 and 2000." + Total air pressure + + Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration - "Water vapor concentration." - "Value should be between 0 and 2000." + Water vapor concentration + + Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index 29a88a736da..ec701443b2f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Isolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -48,40 +44,49 @@ def delete(self): @property def filename(self) -> str: """Filename - "Name of file defining the outboard component." - "Value should be a full file path." + Name of file defining the outboard component + + Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." + System Noise temperature (K) of the component + + Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -90,15 +95,19 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: """Type - "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + Type of isolator model to use. Options include: By File (measured or + simulated) or Parametric + + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -107,145 +116,179 @@ class Port1LocationOption(Enum): @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location - "Defines the orientation of the isolator.." - " """ + Defines the orientation of the isolator. + + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: """Insertion Loss - "Isolator in-band loss in forward direction.." - "Value should be between 0 and 100." + Isolator in-band loss in forward direction. + + Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: """Finite Reverse Isolation - "Use a finite reverse isolation. If disabled, the isolator model is ideal (infinite reverse isolation).." - "Value should be 'true' or 'false'." + Use a finite reverse isolation. If disabled, the isolator model is + ideal (infinite reverse isolation). + + Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: """Reverse Isolation - "Isolator reverse isolation (i.e., loss in the reverse direction).." - "Value should be between 0 and 100." + Isolator reverse isolation (i.e., loss in the reverse direction). + + Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: """Finite Bandwidth - "Use a finite bandwidth. If disabled, the isolator model is ideal (infinite bandwidth).." - "Value should be 'true' or 'false'." + Use a finite bandwidth. If disabled, the isolator model is ideal + (infinite bandwidth). + + Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: """Out-of-band Attenuation - "Out-of-band loss (attenuation)." - "Value should be between 0 and 200." + Out-of-band loss (attenuation) + + Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: """Lower Stop Band - "Lower stop band frequency." - "Value should be between 1 and 1e+11." + Lower stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: """Lower Cutoff - "Lower cutoff frequency." - "Value should be between 1 and 1e+11." + Lower cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: """Higher Cutoff - "Higher cutoff frequency." - "Value should be between 1 and 1e+11." + Higher cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: """Higher Stop Band - "Higher stop band frequency." - "Value should be between 1 and 1e+11." + Higher stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings - "Warning(s) for this node." - " """ + Warning(s) for this node + + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py index b949363ed10..02a661d8987 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class LogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,77 +49,95 @@ def delete(self): @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." + Enable/Disable coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A - "First antenna of the pair to apply the coupling values to." - " """ + First antenna of the pair to apply the coupling values to + + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B - "Second antenna of the pair to apply the coupling values to." - " """ + Second antenna of the pair to apply the coupling values to + + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." + Enables/disables refined sampling of the frequency domain. + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." + Enables/disables adaptive refinement the frequency domain sampling. + + Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain - "Points to use when refining the frequency domain.." - " """ + Points to use when refining the frequency domain. + + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): FREE_SPACE = "Free Space" @@ -137,67 +151,85 @@ class EnvironmentOption(Enum): @property def environment(self) -> EnvironmentOption: """Environment - "Specify the environment type for the Log Distance model." - " """ + Specify the environment type for the Log Distance model + + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def path_loss_exponent(self) -> float: """Path Loss Exponent - "Path Loss Exponent." - "Value should be between 0 and 100." + Path Loss Exponent + + Value should be between 0 and 100. """ val = self._get_property("Path Loss Exponent") - return val # type: ignore + return val # type: ignore @path_loss_exponent.setter - def path_loss_exponent(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Exponent={value}"]) + def path_loss_exponent(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Path Loss Exponent={value}"]) @property def custom_fading_margin(self) -> float: """Custom Fading Margin - "Sets a custom fading margin to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a custom fading margin to be applied to all coupling defined by + this node + + Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: """Polarization Mismatch - "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for polarization mismatch to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: """Pointing Error Loss - "Sets a margin for pointing error loss to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for pointing error loss to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -208,146 +240,180 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: """Fading Type - "Specify the type of fading to include." - " """ + Specify the type of fading to include + + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: """Fading Availability - "The probability that the propagation loss in dB is below its median value plus the margin." - "Value should be between 0 and 100." + The probability that the propagation loss in dB is below its median + value plus the margin + + Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: """Std Deviation - "Standard deviation modeling the random amount of shadowing loss." - "Value should be between 0 and 100." + Standard deviation modeling the random amount of shadowing loss + + Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation - "Adds a margin for rain attenuation to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for rain attenuation to the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: """Rain Availability - "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." - "Value should be between 99 and 99.999." + Percentage of time attenuation due to range is < computed margin (range + from 99-99.999%) + + Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: """Rain Rate - "Rain rate (mm/hr) exceeded for 0.01% of the time." - "Value should be between 0 and 1000." + Rain rate (mm/hr) exceeded for 0.01% of the time + + Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle - "Polarization tilt angle of the transmitted signal relative to the horizontal." - "Value should be between 0 and 180." + Polarization tilt angle of the transmitted signal relative to the + horizontal + + Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption - "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for atmospheric absorption due to oxygen/water vapor to + the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: """Temperature - "Air temperature in degrees Celsius." - "Value should be between -273 and 100." + Air temperature in degrees Celsius + + Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: """Total Air Pressure - "Total air pressure." - "Value should be between 0 and 2000." + Total air pressure + + Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration - "Water vapor concentration." - "Value should be between 0 and 2000." + Water vapor concentration + + Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py index 1f0c10556ab..5f0a48b8a75 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class MPlexBandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,64 +52,79 @@ class PowerDirectionOption(Enum): @property def power_direction(self) -> PowerDirectionOption: """Power Direction - " """ + """ val = self._get_property("Power Direction") val = self.PowerDirectionOption[val] - return val # type: ignore + return val # type: ignore @power_direction.setter def power_direction(self, value: PowerDirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Power Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Power Direction={value.value}"]) @property def data_source(self): """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + Identifies tree node serving as data source for plot trace, click link + to find it + + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." + Toggle (on/off) display of this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." + Enable/disable custom legend entry for this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name - "Enter name of plot trace as it will appear in legend." - " """ + Enter name of plot trace as it will appear in legend + + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -126,41 +137,50 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: """Style - "Specify line style of plot trace." - " """ + Specify line style of plot trace + + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." + Specify line width of plot trace + + Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." + Specify line color of plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -182,64 +202,81 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: """Symbol - "Select symbol to mark points along plot trace." - " """ + Select symbol to mark points along plot trace + + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." + Set size (in points) of symbols marking points along plot trace + + Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." + Specify color of symbols marking points along plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." + Set the width of the line used to draw the symbol + + Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." + If true, the interior of the symbol is filled - has no effect for some + symbol types + + Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index fcafe8a1abb..7be9885707f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Multiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -52,40 +48,49 @@ def delete(self): @property def filename(self) -> str: """Filename - "Name of file defining the multiplexer." - "Value should be a full file path." + Name of file defining the multiplexer + + Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." + System Noise temperature (K) of the component + + Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_PASS_BAND = "By Pass Band" @@ -94,15 +99,20 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: """Type - "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." - " """ + Type of multiplexer model. Options include: By File (one measured or + simulated file for the device) or By Pass Band (parametric or + file-based definition for each pass band) + + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -111,46 +121,57 @@ class Port1LocationOption(Enum): @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location - "Defines the orientation of the multiplexer.." - " """ + Defines the orientation of the multiplexer. + + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def flip_ports_vertically(self) -> bool: """Flip Ports Vertically - "Reverses the port order on the multi-port side of the multiplexer.." - "Value should be 'true' or 'false'." + Reverses the port order on the multi-port side of the multiplexer. + + Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return val # type: ignore + return val # type: ignore @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flip Ports Vertically={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Flip Ports Vertically={value}"]) @property def ports(self): """Ports - "Assigns the child port nodes to the multiplexers ports." + Assigns the child port nodes to the multiplexers ports + "A list of values." - " """ + """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ports={value}"]) @property def warnings(self) -> str: """Warnings - "Warning(s) for this node." - " """ + Warning(s) for this node + + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py index d5b1eb2ebb2..c45a09d00cf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class MultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -59,179 +55,219 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: """Type - "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + Type of multiplexer pass band to define. The pass band can be defined by + file (measured or simulated data) or using one of EMIT's parametric + models + + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def filename(self) -> str: """Filename - "Name of file defining the multiplexer band." - "Value should be a full file path." + Name of file defining the multiplexer band + + Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def insertion_loss(self) -> float: """Insertion Loss - "Multiplexer pass band insertion loss." - "Value should be between 0 and 100." + Multiplexer pass band insertion loss + + Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: """Stop band Attenuation - "Stop-band loss (attenuation)." - "Value should be between 0 and 200." + Stop-band loss (attenuation) + + Value should be between 0 and 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @stop_band_attenuation.setter - def stop_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: """Max Pass Band - "Maximum pass band frequency." - "Value should be between 1 and 1e+11." + Maximum pass band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_pass_band.setter - def max_pass_band(self, value: float | str): + def max_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: """Min Stop Band - "Minimum stop band frequency." - "Value should be between 1 and 1e+11." + Minimum stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_stop_band.setter - def min_stop_band(self, value: float | str): + def min_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: """Max Stop Band - "Maximum stop band frequency." - "Value should be between 1 and 1e+11." + Maximum stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_stop_band.setter - def max_stop_band(self, value: float | str): + def max_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: """Min Pass Band - "Minimum pass band frequency." - "Value should be between 1 and 1e+11." + Minimum pass band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_pass_band.setter - def min_pass_band(self, value: float | str): + def min_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: """Lower Stop Band - "Lower stop band frequency." - "Value should be between 1 and 1e+11." + Lower stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: """Lower Cutoff - "Lower cutoff frequency." - "Value should be between 1 and 1e+11." + Lower cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: """Higher Cutoff - "Higher cutoff frequency." - "Value should be between 1 and 1e+11." + Higher cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: """Higher Stop Band - "Higher stop band frequency." - "Value should be between 1 and 1e+11." + Higher stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings - "Warning(s) for this node." - " """ + Warning(s) for this node + + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py index 82e1d973bc1..989bd76b78a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class OutboardTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,78 +49,97 @@ def delete(self): @property def input_port(self) -> int: """Input Port - "Specifies input port for the plotted outboard component." - "Value should be greater than 1." + Specifies input port for the plotted outboard component + + Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: """Output Port - "Specifies output port for the plotted outboard component." - "Value should be greater than 1." + Specifies output port for the plotted outboard component + + Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + Identifies tree node serving as data source for plot trace, click link + to find it + + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." + Toggle (on/off) display of this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." + Enable/disable custom legend entry for this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name - "Enter name of plot trace as it will appear in legend." - " """ + Enter name of plot trace as it will appear in legend + + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -137,41 +152,50 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: """Style - "Specify line style of plot trace." - " """ + Specify line style of plot trace + + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." + Specify line width of plot trace + + Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." + Specify line color of plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -193,64 +217,81 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: """Symbol - "Select symbol to mark points along plot trace." - " """ + Select symbol to mark points along plot trace + + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." + Set size (in points) of symbols marking points along plot trace + + Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." + Specify color of symbols marking points along plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." + Set the width of the line used to draw the symbol + + Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." + If true, the interior of the symbol is filled - has no effect for some + symbol types + + Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py index 3b1bb654ec7..c733ba207d0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ParametricCouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,74 +49,91 @@ def delete(self): @property def antenna_a(self) -> EmitNode: """Antenna A - " """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B - " """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def data_source(self): """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + Identifies tree node serving as data source for plot trace, click link + to find it + + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." + Toggle (on/off) display of this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." + Enable/disable custom legend entry for this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name - "Enter name of plot trace as it will appear in legend." - " """ + Enter name of plot trace as it will appear in legend + + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -133,41 +146,50 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: """Style - "Specify line style of plot trace." - " """ + Specify line style of plot trace + + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." + Specify line width of plot trace + + Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." + Specify line color of plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -189,64 +211,81 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: """Symbol - "Select symbol to mark points along plot trace." - " """ + Select symbol to mark points along plot trace + + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." + Set size (in points) of symbols marking points along plot trace + + Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." + Specify color of symbols marking points along plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." + Set the width of the line used to draw the symbol + + Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." + If true, the interior of the symbol is filled - has no effect for some + symbol types + + Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py index dff54df277c..662ea1343bc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,103 +49,131 @@ def delete(self): @property def visible(self) -> bool: """Visible - "Toggle (on/off) this marker." - "Value should be 'true' or 'false'." + Toggle (on/off) this marker + + Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def attached(self) -> bool: """Attached - "Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False)." - "Value should be 'true' or 'false'." + Attach marker to a fixed X-Y point on the plot (True), or to a fixed + point on the plot window (False) + + Value should be 'true' or 'false'. """ val = self._get_property("Attached") - return val # type: ignore + return val # type: ignore @attached.setter def attached(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Attached={value}"]) @property def position_x(self) -> float: """Position X - "Position of the marker on the X-axis (frequency axis).." - " """ + Position of the marker on the X-axis (frequency axis). + + """ val = self._get_property("Position X") - return val # type: ignore + return val # type: ignore @position_x.setter - def position_x(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position X={value}"]) + def position_x(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position X={value}"]) @property def position_y(self) -> float: """Position Y - "Position of the marker on the Y-axis (result axis).." - " """ + Position of the marker on the Y-axis (result axis). + + """ val = self._get_property("Position Y") - return val # type: ignore + return val # type: ignore @position_y.setter - def position_y(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Y={value}"]) + def position_y(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position Y={value}"]) @property def floating_label(self) -> bool: """Floating Label - "Allow marker label to be positioned at a fixed point on the plot window (the marker symbol remains fixed to the specified X-Y point)." - "Value should be 'true' or 'false'." + Allow marker label to be positioned at a fixed point on the plot window + (the marker symbol remains fixed to the specified X-Y point) + + Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return val # type: ignore + return val # type: ignore @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Floating Label={value}"]) @property def position_from_left(self) -> float: """Position from Left - "Set position of label from left to right as a percentage of the width of the plot window." - "Value should be between 0 and 100." + Set position of label from left to right as a percentage of the width of + the plot window + + Value should be between 0 and 100. """ val = self._get_property("Position from Left") - return val # type: ignore + return val # type: ignore @position_from_left.setter - def position_from_left(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) + def position_from_left(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Left={value}"]) @property def position_from_top(self) -> float: """Position from Top - "Set position of label from top to bottom as a percentage of the height of the plot window." - "Value should be between 0 and 100." + Set position of label from top to bottom as a percentage of the height + of the plot window + + Value should be between 0 and 100. """ val = self._get_property("Position from Top") - return val # type: ignore + return val # type: ignore @position_from_top.setter - def position_from_top(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) + def position_from_top(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Top={value}"]) @property def text(self) -> str: """Text - "Set the text of the label." - " """ + Set the text of the label + + """ val = self._get_property("Text") - return val # type: ignore + return val # type: ignore @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -159,17 +183,18 @@ class HorizontalPositionOption(Enum): @property def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position - "Specify horizontal position of the label as compared to the symbol." - " """ + Specify horizontal position of the label as compared to the symbol + + """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] - return val # type: ignore + return val # type: ignore @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Horizontal Position={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Position={value.value}"]) class VerticalPositionOption(Enum): TOP = "Top" @@ -179,15 +204,18 @@ class VerticalPositionOption(Enum): @property def vertical_position(self) -> VerticalPositionOption: """Vertical Position - "Specify vertical position of the label as compared to the symbol." - " """ + Specify vertical position of the label as compared to the symbol + + """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] - return val # type: ignore + return val # type: ignore @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -197,93 +225,114 @@ class TextAlignmentOption(Enum): @property def text_alignment(self) -> TextAlignmentOption: """Text Alignment - "Specify justification applied to multi-line text." - " """ + Specify justification applied to multi-line text + + """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] - return val # type: ignore + return val # type: ignore @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text Alignment={value.value}"]) @property def font(self): """Font - "Specify font used for the label." - "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + Specify font used for the label + + Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): """Color - "Specify color of the label text." - "Color should be in RGB form: #RRGGBB." + Specify color of the label text + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): """Background Color - "Set color of the label text background." - "Color should be in RGBA form: #AARRGGBB." + Set color of the label text background + + Color should be in RGBA form: #AARRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: """Border - "Display a border around the label text." - "Value should be 'true' or 'false'." + Display a border around the label text + + Value should be 'true' or 'false'. """ val = self._get_property("Border") - return val # type: ignore + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: """Border Width - "Set the width of the border around the label text." - "Value should be between 1 and 20." + Set the width of the border around the label text + + Value should be between 1 and 20. """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): """Border Color - "Set color of the border around the label text." - "Color should be in RGB form: #RRGGBB." + Set color of the border around the label text + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -306,77 +355,97 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: """Symbol - "Specify symbol displayed next to the label." - " """ + Specify symbol displayed next to the label + + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: """Arrow Direction - "Set direction of the arrow; zero degrees is up." - "Value should be between -360 and 360." + Set direction of the arrow; zero degrees is up + + Value should be between -360 and 360. """ val = self._get_property("Arrow Direction") - return val # type: ignore + return val # type: ignore @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: """Symbol Size - "Set size of the symbol used for this marker." - "Value should be between 1 and 1000." + Set size of the symbol used for this marker + + Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): """Symbol Color - "Set color of the symbol used for this marker." - "Color should be in RGB form: #RRGGBB." + Set color of the symbol used for this marker + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def line_width(self) -> int: """Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." + Set the width of the line used to draw the symbol + + Value should be between 1 and 20. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def filled(self) -> bool: """Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." + If true, the interior of the symbol is filled - has no effect for some + symbol types + + Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return val # type: ignore + return val # type: ignore @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py index 06bdf80bd3a..ee41cffb84b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,256 +52,320 @@ def delete(self): @property def title(self) -> str: """Title - "Enter title at the top of the plot, room will be made for it." - " """ + Enter title at the top of the plot, room will be made for it + + """ val = self._get_property("Title") - return val # type: ignore + return val # type: ignore @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title={value}"]) @property def title_font(self): """Title Font - "Configure title font family, typeface, and size." - "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + Configure title font family, typeface, and size + + Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Title Font") - return val # type: ignore + return val # type: ignore @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title Font={value}"]) @property def show_legend(self) -> bool: """Show Legend - "Toggle (on/off) display of plot legend." - "Value should be 'true' or 'false'." + Toggle (on/off) display of plot legend + + Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return val # type: ignore + return val # type: ignore @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Legend={value}"]) @property def legend_font(self): """Legend Font - "Configure legend font family, typeface, and size." - "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + Configure legend font family, typeface, and size + + Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Legend Font") - return val # type: ignore + return val # type: ignore @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Legend Font={value}"]) @property def display_cad_overlay(self) -> bool: """Display CAD Overlay - "Toggle on/off overlay of CAD model in plot." - "Value should be 'true' or 'false'." + Toggle on/off overlay of CAD model in plot + + Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return val # type: ignore + return val # type: ignore @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: """Opacity - "Adjust opacity of CAD model overlay: 0 Transparent - 1 Opaque." - "Value should be between 0 and 100." + Adjust opacity of CAD model overlay: 0 Transparent - 1 Opaque + + Value should be between 0 and 100. """ val = self._get_property("Opacity") - return val # type: ignore + return val # type: ignore @opacity.setter - def opacity(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) + def opacity(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset - "Adjust vertical position of CAD model overlay." - " """ + Adjust vertical position of CAD model overlay + + """ val = self._get_property("Vertical Offset") - return val # type: ignore + return val # type: ignore @vertical_offset.setter - def vertical_offset(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) + def vertical_offset(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: """Range Axis Rotation - "Adjust view angle for CAD model overlay by rotating it about plot horizontal axis." - "Value should be between -180 and 180." + Adjust view angle for CAD model overlay by rotating it about plot + horizontal axis + + Value should be between -180 and 180. """ val = self._get_property("Range Axis Rotation") - return val # type: ignore + return val # type: ignore @range_axis_rotation.setter - def range_axis_rotation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: """Lock Axes - "Allow or prevent changing of axes when displayed plot traces are updated." - "Value should be 'true' or 'false'." + Allow or prevent changing of axes when displayed plot traces are updated + + Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return val # type: ignore + return val # type: ignore @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min - "Set lower extent of horizontal axis." - " """ + Set lower extent of horizontal axis + + """ val = self._get_property("X-axis Min") - return val # type: ignore + return val # type: ignore @x_axis_min.setter - def x_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) + def x_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max - "Set upper extent of horizontal axis." - " """ + Set upper extent of horizontal axis + + """ val = self._get_property("X-axis Max") - return val # type: ignore + return val # type: ignore @x_axis_max.setter - def x_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) + def x_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min - "Set lower extent of vertical axis." - " """ + Set lower extent of vertical axis + + """ val = self._get_property("Y-axis Min") - return val # type: ignore + return val # type: ignore @y_axis_min.setter - def y_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) + def y_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max - "Set upper extent of vertical axis." - " """ + Set upper extent of vertical axis + + """ val = self._get_property("Y-axis Max") - return val # type: ignore + return val # type: ignore @y_axis_max.setter - def y_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) + def y_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: """Y-axis Range - "Adjust dB span of vertical axis, makes corresponding adjustment in Y-axis Min." - "Value should be greater than 0." + Adjust dB span of vertical axis, makes corresponding adjustment in + Y-axis Min + + Value should be greater than 0. """ val = self._get_property("Y-axis Range") - return val # type: ignore + return val # type: ignore @y_axis_range.setter - def y_axis_range(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) + def y_axis_range(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: """Max Major Ticks X - "Set maximum number of major tick-mark intervals along horizontal axis." - "Value should be between 1 and 30." + Set maximum number of major tick-mark intervals along horizontal axis + + Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks X") - return val # type: ignore + return val # type: ignore @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: """Max Minor Ticks X - "Set maximum number of minor tick-mark intervals between major ticks along horizontal axis." - "Value should be between 0 and 100." + Set maximum number of minor tick-mark intervals between major ticks + along horizontal axis + + Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks X") - return val # type: ignore + return val # type: ignore @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: """Max Major Ticks Y - "Set maximum number of major tick-mark intervals along vertical axis." - "Value should be between 1 and 30." + Set maximum number of major tick-mark intervals along vertical axis + + Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks Y") - return val # type: ignore + return val # type: ignore @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: """Max Minor Ticks Y - "Set maximum number of minor tick-mark intervals between major ticks along vertical axis." - "Value should be between 0 and 100." + Set maximum number of minor tick-mark intervals between major ticks + along vertical axis + + Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks Y") - return val # type: ignore + return val # type: ignore @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): """Axis Label Font - "Configure axis text labels font family, typeface, and size." - "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + Configure axis text labels font family, typeface, and size + + Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Label Font") - return val # type: ignore + return val # type: ignore @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): """Axis Tick Label Font - "Configure axis tick numeric labels font family, typeface, and size." - "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + Configure axis tick numeric labels font family, typeface, and size + + Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Tick Label Font") - return val # type: ignore + return val # type: ignore @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -318,30 +378,34 @@ class MajorGridLineStyleOption(Enum): @property def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style - "Select line style of major-tick grid lines." - " """ + Select line style of major-tick grid lines + + """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Line Style={value.value}"]) @property def major_grid_color(self): """Major Grid Color - "Set color of major-tick grid lines." - "Color should be in RGB form: #RRGGBB." + Set color of major-tick grid lines + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Major Grid Color") - return val # type: ignore + return val # type: ignore @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -354,43 +418,50 @@ class MinorGridLineStyleOption(Enum): @property def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style - "Select line style of minor-tick grid lines." - " """ + Select line style of minor-tick grid lines + + """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Line Style={value.value}"]) @property def minor_grid_color(self): """Minor Grid Color - "Set color of minor-tick grid lines." - "Color should be in RGB form: #RRGGBB." + Set color of minor-tick grid lines + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Minor Grid Color") - return val # type: ignore + return val # type: ignore @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Color={value}"]) @property def background_color(self): """Background Color - "Set background color of entire plot." - "Color should be in RGB form: #RRGGBB." + Set background color of entire plot + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -401,42 +472,50 @@ class BBPowerforPlotsUnitOption(Enum): @property def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit - "Units to use for plotting broadband power densities." - " """ + Units to use for plotting broadband power densities + + """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] - return val # type: ignore + return val # type: ignore @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power for Plots Unit={value.value}"]) @property def bb_power_bandwidth(self) -> float: """BB Power Bandwidth - "Resolution bandwidth for broadband power." - "Value should be between 1 and 1e+11." + Resolution bandwidth for broadband power + + Value should be between 1 and 1e+11. """ val = self._get_property("BB Power Bandwidth") val = self._convert_from_internal_units(float(val), "") - return val # type: ignore + return val # type: ignore @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value: float | str): + def bb_power_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: """Log Scale - "Toggles on/off using a log scale for the X-Axis." - "Value should be 'true' or 'false'." + Toggles on/off using a log scale for the X-Axis + + Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return val # type: ignore + return val # type: ignore @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Log Scale={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py index 7d0d9f2891e..5e89b302835 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -48,40 +44,49 @@ def delete(self): @property def filename(self) -> str: """Filename - "Name of file defining the Power Divider." - "Value should be a full file path." + Name of file defining the Power Divider + + Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." + System Noise temperature (K) of the component + + Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -91,15 +96,19 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: """Type - "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." - " """ + Type of Power Divider model to use. Options include: By File (measured + or simulated), 3 dB (parametric), and Resistive (parametric) + + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class OrientationOption(Enum): DIVIDER = "Divider" @@ -108,147 +117,180 @@ class OrientationOption(Enum): @property def orientation(self) -> OrientationOption: """Orientation - "Defines the orientation of the Power Divider.." - " """ + Defines the orientation of the Power Divider. + + """ val = self._get_property("Orientation") val = self.OrientationOption[val] - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value: OrientationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value.value}"]) @property def insertion_loss_above_ideal(self) -> float: """Insertion Loss Above Ideal - "Additional loss beyond the ideal insertion loss. The ideal insertion loss is 3 dB for the 3 dB Divider and 6 dB for the Resistive Divider.." - "Value should be between 0 and 100." + Additional loss beyond the ideal insertion loss. The ideal insertion + loss is 3 dB for the 3 dB Divider and 6 dB for the Resistive Divider. + + Value should be between 0 and 100. """ val = self._get_property("Insertion Loss Above Ideal") - return val # type: ignore + return val # type: ignore @insertion_loss_above_ideal.setter - def insertion_loss_above_ideal(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Insertion Loss Above Ideal={value}"] - ) + def insertion_loss_above_ideal(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss Above Ideal={value}"]) @property def finite_isolation(self) -> bool: """Finite Isolation - "Use a finite isolation between output ports. If disabled, the Power Divider isolation is ideal (infinite isolation between output ports).." - "Value should be 'true' or 'false'." + Use a finite isolation between output ports. If disabled, the Power + Divider isolation is ideal (infinite isolation between output ports). + + Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Isolation={value}"]) @property def isolation(self) -> float: """Isolation - "Power Divider isolation between output ports.." - "Value should be between 0 and 100." + Power Divider isolation between output ports. + + Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @isolation.setter - def isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) + def isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: """Finite Bandwidth - "Use a finite bandwidth. If disabled, the Power Divider model is ideal (infinite bandwidth).." - "Value should be 'true' or 'false'." + Use a finite bandwidth. If disabled, the Power Divider model is ideal + (infinite bandwidth). + + Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: """Out-of-band Attenuation - "Out-of-band loss (attenuation)." - "Value should be between 0 and 200." + Out-of-band loss (attenuation) + + Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: """Lower Stop Band - "Lower stop band frequency." - "Value should be between 1 and 1e+11." + Lower stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: """Lower Cutoff - "Lower cutoff frequency." - "Value should be between 1 and 1e+11." + Lower cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: """Higher Cutoff - "Higher cutoff frequency." - "Value should be between 1 and 1e+11." + Higher cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: """Higher Stop Band - "Higher stop band frequency." - "Value should be between 1 and 1e+11." + Higher stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings - "Warning(s) for this node." - " """ + Warning(s) for this node + + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py index 8a714f28ff1..2e096a58719 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PowerTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -57,65 +53,81 @@ class DirectionOption(Enum): @property def direction(self) -> DirectionOption: """Direction - "Direction of power flow (towards or away from the transmitter) to plot." - " """ + Direction of power flow (towards or away from the transmitter) to plot + + """ val = self._get_property("Direction") val = self.DirectionOption[val] - return val # type: ignore + return val # type: ignore @direction.setter def direction(self, value: DirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Direction={value.value}"]) @property def data_source(self): """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + Identifies tree node serving as data source for plot trace, click link + to find it + + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." + Toggle (on/off) display of this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." + Enable/disable custom legend entry for this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name - "Enter name of plot trace as it will appear in legend." - " """ + Enter name of plot trace as it will appear in legend + + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -128,41 +140,50 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: """Style - "Specify line style of plot trace." - " """ + Specify line style of plot trace + + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." + Specify line width of plot trace + + Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." + Specify line color of plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -184,64 +205,81 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: """Symbol - "Select symbol to mark points along plot trace." - " """ + Select symbol to mark points along plot trace + + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." + Set size (in points) of symbols marking points along plot trace + + Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." + Specify color of symbols marking points along plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." + Set the width of the line used to draw the symbol + + Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." + If true, the interior of the symbol is filled - has no effect for some + symbol types + + Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py index be6b2e511c1..2028c4cb0a8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ProfileTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,52 +49,65 @@ def delete(self): @property def data_source(self): """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + Identifies tree node serving as data source for plot trace, click link + to find it + + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." + Toggle (on/off) display of this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." + Enable/disable custom legend entry for this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name - "Enter name of plot trace as it will appear in legend." - " """ + Enter name of plot trace as it will appear in legend + + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -111,41 +120,50 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: """Style - "Specify line style of plot trace." - " """ + Specify line style of plot trace + + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." + Specify line width of plot trace + + Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." + Specify line color of plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -167,64 +185,81 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: """Symbol - "Select symbol to mark points along plot trace." - " """ + Select symbol to mark points along plot trace + + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." + Set size (in points) of symbols marking points along plot trace + + Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." + Specify color of symbols marking points along plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." + Set the width of the line used to draw the symbol + + Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." + If true, the interior of the symbol is filled - has no effect for some + symbol types + + Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py index 7a564c099ce..7f5b6f08927 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,116 +49,146 @@ def delete(self): @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." + Enable/Disable coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A - "First antenna of the pair to apply the coupling values to." - " """ + First antenna of the pair to apply the coupling values to + + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B - "Second antenna of the pair to apply the coupling values to." - " """ + Second antenna of the pair to apply the coupling values to + + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." + Enables/disables refined sampling of the frequency domain. + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." + Enables/disables adaptive refinement the frequency domain sampling. + + Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain - "Points to use when refining the frequency domain.." - " """ + Points to use when refining the frequency domain. + + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def custom_fading_margin(self) -> float: """Custom Fading Margin - "Sets a custom fading margin to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a custom fading margin to be applied to all coupling defined by + this node + + Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: """Polarization Mismatch - "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for polarization mismatch to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: """Pointing Error Loss - "Sets a margin for pointing error loss to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for pointing error loss to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -173,146 +199,180 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: """Fading Type - "Specify the type of fading to include." - " """ + Specify the type of fading to include + + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: """Fading Availability - "The probability that the propagation loss in dB is below its median value plus the margin." - "Value should be between 0 and 100." + The probability that the propagation loss in dB is below its median + value plus the margin + + Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: """Std Deviation - "Standard deviation modeling the random amount of shadowing loss." - "Value should be between 0 and 100." + Standard deviation modeling the random amount of shadowing loss + + Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation - "Adds a margin for rain attenuation to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for rain attenuation to the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: """Rain Availability - "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." - "Value should be between 99 and 99.999." + Percentage of time attenuation due to range is < computed margin (range + from 99-99.999%) + + Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: """Rain Rate - "Rain rate (mm/hr) exceeded for 0.01% of the time." - "Value should be between 0 and 1000." + Rain rate (mm/hr) exceeded for 0.01% of the time + + Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle - "Polarization tilt angle of the transmitted signal relative to the horizontal." - "Value should be between 0 and 180." + Polarization tilt angle of the transmitted signal relative to the + horizontal + + Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption - "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for atmospheric absorption due to oxygen/water vapor to + the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: """Temperature - "Air temperature in degrees Celsius." - "Value should be between -273 and 100." + Air temperature in degrees Celsius + + Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: """Total Air Pressure - "Total air pressure." - "Value should be between 0 and 2000." + Total air pressure + + Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration - "Water vapor concentration." - "Value should be between 0 and 2000." + Water vapor concentration + + Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py index 04e90c60325..1d7ea43ad4c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class RadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,11 +51,11 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Name: - " "Type: - " """ + "Name: + "Type: + """ return self._get_table_data() @table_data.setter @@ -68,11 +65,15 @@ def table_data(self, value): @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py index b0ec8ddd714..8e667f2538c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyAmplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -36,28 +32,31 @@ def __init__(self, oDesign, result_id, node_id): @property def filename(self) -> str: """Filename - "Name of file defining the outboard component." - "Value should be a full file path." + Name of file defining the outboard component + + Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." + System Noise temperature (K) of the component + + Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class AmplifierTypeOption(Enum): TRANSMIT_AMPLIFIER = "Transmit Amplifier" @@ -66,103 +65,115 @@ class AmplifierTypeOption(Enum): @property def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type - "Configures the amplifier as a Tx or Rx amplifier." - " """ + Configures the amplifier as a Tx or Rx amplifier + + """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] - return val # type: ignore + return val # type: ignore @property def gain(self) -> float: """Gain - "Amplifier in-band gain." - "Value should be between 0 and 100." + Amplifier in-band gain + + Value should be between 0 and 100. """ val = self._get_property("Gain") - return val # type: ignore + return val # type: ignore @property def center_frequency(self) -> float: """Center Frequency - "Center frequency of amplifiers operational bandwidth." - "Value should be between 1 and 1e+11." + Center frequency of amplifiers operational bandwidth + + Value should be between 1 and 1e+11. """ val = self._get_property("Center Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def bandwidth(self) -> float: """Bandwidth - "Frequency region where the gain applies." - "Value should be between 1 and 1e+11." + Frequency region where the gain applies + + Value should be between 1 and 1e+11. """ val = self._get_property("Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: """Noise Figure - "Amplifier noise figure." - "Value should be between 0 and 100." + Amplifier noise figure + + Value should be between 0 and 100. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def saturation_level(self) -> float: """Saturation Level - "Saturation level." - "Value should be between -200 and 200." + Saturation level + + Value should be between -200 and 200. """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input(self) -> float: """P1-dB Point, Ref. Input - "Incoming signals > this value saturate the amplifier." - "Value should be between -200 and 200." + Incoming signals > this value saturate the amplifier + + Value should be between -200 and 200. """ val = self._get_property("P1-dB Point, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: """IP3, Ref. Input - "3rd order intercept point." - "Value should be between -200 and 200." + 3rd order intercept point + + Value should be between -200 and 200. """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def shape_factor(self) -> float: """Shape Factor - "Ratio defining the selectivity of the amplifier." - "Value should be between 1 and 100." + Ratio defining the selectivity of the amplifier + + Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: """Reverse Isolation - "Amplifier reverse isolation." - "Value should be between 0 and 200." + Amplifier reverse isolation + + Value should be between 0 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: """Max Intermod Order - "Maximum order of intermods to compute." - "Value should be between 3 and 20." + Maximum order of intermods to compute + + Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py index 424bd800fde..cc5f59f1d9f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyAntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,37 +37,42 @@ def parent(self): @property def tags(self) -> str: """Tags - "Space delimited list of tags for coupling selections." - " """ + Space delimited list of tags for coupling selections + + """ val = self._get_property("Tags") - return val # type: ignore + return val # type: ignore @property def show_relative_coordinates(self) -> bool: """Show Relative Coordinates - "Show antenna position and orientation in parent-node coords (False) or relative to placement coords (True)." - "Value should be 'true' or 'false'." + Show antenna position and orientation in parent-node coords (False) or + relative to placement coords (True) + + Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @property def position(self): """Position - "Set position of the antenna in parent-node coordinates." - "Value should be x/y/z, delimited by spaces." + Set position of the antenna in parent-node coordinates + + Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): """Relative Position - "Set position of the antenna relative to placement coordinates." - "Value should be x/y/z, delimited by spaces." + Set position of the antenna relative to placement coordinates + + Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -80,81 +81,89 @@ class OrientationModeOption(Enum): @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode - "Select the convention (order of rotations) for configuring orientation." - " """ + Select the convention (order of rotations) for configuring orientation + + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @property def orientation(self): """Orientation - "Set orientation of the antenna relative to parent-node coordinates." - "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + Set orientation of the antenna relative to parent-node coordinates + + Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): """Relative Orientation - "Set orientation of the antenna relative to placement coordinates." - "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + Set orientation of the antenna relative to placement coordinates + + Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def position_defined(self) -> bool: """Position Defined - "Toggles on/off the ability to define a position for the antenna." - "Value should be 'true' or 'false'." + Toggles on/off the ability to define a position for the antenna + + Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return val # type: ignore + return val # type: ignore @property def antenna_temperature(self) -> float: """Antenna Temperature - "Antenna noise temperature." - "Value should be between 0 and 100000." + Antenna noise temperature + + Value should be between 0 and 100000. """ val = self._get_property("Antenna Temperature") - return val # type: ignore + return val # type: ignore @property def type(self): """Type - "Defines the type of antenna." - " """ + Defines the type of antenna + + """ val = self._get_property("Type") - return val # type: ignore + return val # type: ignore @property def antenna_file(self) -> str: """Antenna File - "Value should be a full file path." + Value should be a full file path. """ val = self._get_property("Antenna File") - return val # type: ignore + return val # type: ignore @property def project_name(self) -> str: """Project Name - "Name of imported HFSS Antenna project." - "Value should be a full file path." + Name of imported HFSS Antenna project + + Value should be a full file path. """ val = self._get_property("Project Name") - return val # type: ignore + return val # type: ignore @property def peak_gain(self) -> float: """Peak Gain - "Set peak gain of antenna (dBi)." - "Value should be between -200 and 200." + Set peak gain of antenna (dBi) + + Value should be between -200 and 200. """ val = self._get_property("Peak Gain") - return val # type: ignore + return val # type: ignore class BoresightOption(Enum): XAXIS = "+X Axis" @@ -164,170 +173,195 @@ class BoresightOption(Enum): @property def boresight(self) -> BoresightOption: """Boresight - "Select peak beam direction in local coordinates." - " """ + Select peak beam direction in local coordinates + + """ val = self._get_property("Boresight") val = self.BoresightOption[val] - return val # type: ignore + return val # type: ignore @property def vertical_beamwidth(self) -> float: """Vertical Beamwidth - "Set half-power beamwidth in local-coordinates elevation plane." - "Value should be between 0.1 and 360." + Set half-power beamwidth in local-coordinates elevation plane + + Value should be between 0.1 and 360. """ val = self._get_property("Vertical Beamwidth") - return val # type: ignore + return val # type: ignore @property def horizontal_beamwidth(self) -> float: """Horizontal Beamwidth - "Set half-power beamwidth in local-coordinates azimuth plane." - "Value should be between 0.1 and 360." + Set half-power beamwidth in local-coordinates azimuth plane + + Value should be between 0.1 and 360. """ val = self._get_property("Horizontal Beamwidth") - return val # type: ignore + return val # type: ignore @property def extra_sidelobe(self) -> bool: """Extra Sidelobe - "Toggle (on/off) option to define two sidelobe levels." - "Value should be 'true' or 'false'." + Toggle (on/off) option to define two sidelobe levels + + Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_level(self) -> float: """First Sidelobe Level - "Set reduction in the gain of Directive Beam antenna for first sidelobe level." - "Value should be between 0 and 200." + Set reduction in the gain of Directive Beam antenna for first sidelobe + level + + Value should be between 0 and 200. """ val = self._get_property("First Sidelobe Level") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_vert_bw(self) -> float: """First Sidelobe Vert. BW - "Set beamwidth of first sidelobe beam in theta direction." - "Value should be between 0.1 and 360." + Set beamwidth of first sidelobe beam in theta direction + + Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Vert. BW") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_hor_bw(self) -> float: """First Sidelobe Hor. BW - "Set beamwidth of first sidelobe beam in phi direction." - "Value should be between 0.1 and 360." + Set beamwidth of first sidelobe beam in phi direction + + Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Hor. BW") - return val # type: ignore + return val # type: ignore @property def outerbacklobe_level(self) -> float: """Outer/Backlobe Level - "Set reduction in gain of Directive Beam antenna for outer/backlobe level." - "Value should be between 0 and 200." + Set reduction in gain of Directive Beam antenna for outer/backlobe level + + Value should be between 0 and 200. """ val = self._get_property("Outer/Backlobe Level") - return val # type: ignore + return val # type: ignore @property def resonant_frequency(self) -> float: """Resonant Frequency - "Set first resonant frequency of wire dipole, monopole, or parametric antenna." - "Value should be between 1 and 1e+13." + Set first resonant frequency of wire dipole, monopole, or parametric + antenna + + Value should be between 1 and 1e+13. """ val = self._get_property("Resonant Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def slot_length(self) -> float: """Slot Length - "Set slot length of parametric slot." - "Value should be greater than 1e-06." + Set slot length of parametric slot + + Value should be greater than 1e-06. """ val = self._get_property("Slot Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def mouth_width(self) -> float: """Mouth Width - "Set mouth width (along local y-axis) of the horn antenna." - "Value should be between 1e-06 and 100." + Set mouth width (along local y-axis) of the horn antenna + + Value should be between 1e-06 and 100. """ val = self._get_property("Mouth Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def mouth_height(self) -> float: """Mouth Height - "Set mouth height (along local x-axis) of the horn antenna." - "Value should be between 1e-06 and 100." + Set mouth height (along local x-axis) of the horn antenna + + Value should be between 1e-06 and 100. """ val = self._get_property("Mouth Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_width(self) -> float: """Waveguide Width - "Set waveguide width (along local y-axis) where flared horn walls meet the feed, determines cut-off frequency." - "Value should be between 1e-06 and 100." + Set waveguide width (along local y-axis) where flared horn walls meet + the feed, determines cut-off frequency + + Value should be between 1e-06 and 100. """ val = self._get_property("Waveguide Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def width_flare_half_angle(self) -> float: """Width Flare Half-angle - "Set half-angle (degrees) of flared horn walls measured in local yz-plane from boresight (z) axis to either wall." - "Value should be between 1 and 89.9." + Set half-angle (degrees) of flared horn walls measured in local yz-plane + from boresight (z) axis to either wall + + Value should be between 1 and 89.9. """ val = self._get_property("Width Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def height_flare_half_angle(self) -> float: """Height Flare Half-angle - "Set half-angle (degrees) of flared horn walls measured in local xz-plane from boresight (z) axis to either wall." - "Value should be between 1 and 89.9." + Set half-angle (degrees) of flared horn walls measured in local xz-plane + from boresight (z) axis to either wall + + Value should be between 1 and 89.9. """ val = self._get_property("Height Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def mouth_diameter(self) -> float: """Mouth Diameter - "Set aperture (mouth) diameter of horn antenna." - "Value should be between 1e-06 and 100." + Set aperture (mouth) diameter of horn antenna + + Value should be between 1e-06 and 100. """ val = self._get_property("Mouth Diameter") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def flare_half_angle(self) -> float: """Flare Half-angle - "Set half-angle (degrees) of conical horn wall measured from boresight (z)." - "Value should be between 1 and 89.9." + Set half-angle (degrees) of conical horn wall measured from boresight + (z) + + Value should be between 1 and 89.9. """ val = self._get_property("Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def vswr(self) -> float: """VSWR - "The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch between the antenna and the RF System (or outboard component)." - "Value should be between 1 and 100." + The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch + between the antenna and the RF System (or outboard component) + + Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore class AntennaPolarizationOption(Enum): VERTICAL = "Vertical" @@ -338,11 +372,12 @@ class AntennaPolarizationOption(Enum): @property def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization - "Choose local-coordinates polarization along boresight." - " """ + Choose local-coordinates polarization along boresight + + """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] - return val # type: ignore + return val # type: ignore class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" @@ -351,11 +386,12 @@ class CrossDipoleModeOption(Enum): @property def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode - "Choose the Cross Dipole type." - " """ + Choose the Cross Dipole type + + """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] - return val # type: ignore + return val # type: ignore class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" @@ -364,57 +400,65 @@ class CrossDipolePolarizationOption(Enum): @property def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization - "Choose local-coordinates polarization along boresight." - " """ + Choose local-coordinates polarization along boresight + + """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] - return val # type: ignore + return val # type: ignore @property def override_height(self) -> bool: """Override Height - "Ignores the default placement of quarter design wavelength over the ground plane." - "Value should be 'true' or 'false'." + Ignores the default placement of quarter design wavelength over the + ground plane + + Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return val # type: ignore + return val # type: ignore @property def offset_height(self) -> float: """Offset Height - "Sets the offset height for the current sources above the ground plane." - "Value should be greater than 0." + Sets the offset height for the current sources above the ground plane + + Value should be greater than 0. """ val = self._get_property("Offset Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def auto_height_offset(self) -> bool: """Auto Height Offset - "Switch on to automatically place slot current at sub-wavelength offset height above ground plane." - "Value should be 'true' or 'false'." + Switch on to automatically place slot current at sub-wavelength offset + height above ground plane + + Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return val # type: ignore + return val # type: ignore @property def conform__adjust_antenna(self) -> bool: """Conform / Adjust Antenna - "Toggle (on/off) conformal adjustment for array antenna elements." - "Value should be 'true' or 'false'." + Toggle (on/off) conformal adjustment for array antenna elements + + Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return val # type: ignore + return val # type: ignore @property def element_offset(self): """Element Offset - "Set vector for shifting element positions in antenna local coordinates." - "Value should be x/y/z, delimited by spaces." + Set vector for shifting element positions in antenna local coordinates + + Value should be x/y/z, delimited by spaces. """ val = self._get_property("Element Offset") - return val # type: ignore + return val # type: ignore class ConformtoPlatformOption(Enum): NONE = "None" @@ -424,11 +468,12 @@ class ConformtoPlatformOption(Enum): @property def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform - "Select method of automated conforming applied after Element Offset." - " """ + Select method of automated conforming applied after Element Offset + + """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] - return val # type: ignore + return val # type: ignore class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" @@ -438,148 +483,169 @@ class ReferencePlaneOption(Enum): @property def reference_plane(self) -> ReferencePlaneOption: """Reference Plane - "Select reference plane for determining original element heights." - " """ + Select reference plane for determining original element heights + + """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] - return val # type: ignore + return val # type: ignore @property def conform_element_orientation(self) -> bool: """Conform Element Orientation - "Toggle (on/off) re-orientation of elements to conform to curved placement surface." - "Value should be 'true' or 'false'." + Toggle (on/off) re-orientation of elements to conform to curved + placement surface + + Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return val # type: ignore + return val # type: ignore @property def show_axes(self) -> bool: """Show Axes - "Toggle (on/off) display of antenna coordinate axes in 3-D window." - "Value should be 'true' or 'false'." + Toggle (on/off) display of antenna coordinate axes in 3-D window + + Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @property def show_icon(self) -> bool: """Show Icon - "Toggle (on/off) display of antenna marker (cone) in 3-D window." - "Value should be 'true' or 'false'." + Toggle (on/off) display of antenna marker (cone) in 3-D window + + Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return val # type: ignore + return val # type: ignore @property def size(self) -> float: """Size - "Adjust relative size of antenna marker (cone) in 3-D window." - "Value should be between 0.001 and 1." + Adjust relative size of antenna marker (cone) in 3-D window + + Value should be between 0.001 and 1. """ val = self._get_property("Size") - return val # type: ignore + return val # type: ignore @property def color(self): """Color - "Set color of antenna marker (cone) in 3-D window." - "Color should be in RGB form: #RRGGBB." + Set color of antenna marker (cone) in 3-D window + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @property def el_sample_interval(self) -> float: """El Sample Interval - "Space between elevation-angle samples of pattern." - " """ + Space between elevation-angle samples of pattern + + """ val = self._get_property("El Sample Interval") - return val # type: ignore + return val # type: ignore @property def az_sample_interval(self) -> float: """Az Sample Interval - "Space between azimuth-angle samples of pattern." - " """ + Space between azimuth-angle samples of pattern + + """ val = self._get_property("Az Sample Interval") - return val # type: ignore + return val # type: ignore @property def has_frequency_domain(self) -> bool: """Has Frequency Domain - "False if antenna can be used at any frequency." - "Value should be 'true' or 'false'." + False if antenna can be used at any frequency + + Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return val # type: ignore + return val # type: ignore @property def frequency_domain(self): """Frequency Domain - "Frequency sample(s) defining antenna." - " """ + Frequency sample(s) defining antenna + + """ val = self._get_property("Frequency Domain") - return val # type: ignore + return val # type: ignore @property def number_of_electric_sources(self) -> int: """Number of Electric Sources - "Number of freestanding electric current sources defining antenna." - " """ + Number of freestanding electric current sources defining antenna + + """ val = self._get_property("Number of Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources - "Number of freestanding magnetic current sources defining antenna." - " """ + Number of freestanding magnetic current sources defining antenna + + """ val = self._get_property("Number of Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_electric_sources(self) -> int: """Number of Imaged Electric Sources - "Number of imaged, half-space radiating electric current sources defining antenna." - " """ + Number of imaged, half-space radiating electric current sources defining + antenna + + """ val = self._get_property("Number of Imaged Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_magnetic_sources(self) -> int: """Number of Imaged Magnetic Sources - "Number of imaged, half-space radiating magnetic current sources defining antenna." - " """ + Number of imaged, half-space radiating magnetic current sources defining + antenna + + """ val = self._get_property("Number of Imaged Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def waveguide_height(self) -> float: """Waveguide Height - "Implied waveguide height (along local x-axis) where the flared horn walls meet the feed." - " """ + Implied waveguide height (along local x-axis) where the flared horn + walls meet the feed + + """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency - "Implied lowest operating frequency of pyramidal horn antenna." - " """ + Implied lowest operating frequency of pyramidal horn antenna + + """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency - "Implied lowest operating frequency of conical horn antenna." - " """ + Implied lowest operating frequency of conical horn antenna + + """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class SWEModeTruncationOption(Enum): DYNAMIC = "Dynamic" @@ -589,69 +655,79 @@ class SWEModeTruncationOption(Enum): @property def swe_mode_truncation(self) -> SWEModeTruncationOption: """SWE Mode Truncation - "Select the method for stability-enhancing truncation of spherical wave expansion terms." - " """ + Select the method for stability-enhancing truncation of spherical wave + expansion terms + + """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] - return val # type: ignore + return val # type: ignore @property def max_n_index(self) -> int: """Max N Index - "Set maximum allowed index N for spherical wave expansion terms." - "Value should be greater than 1." + Set maximum allowed index N for spherical wave expansion terms + + Value should be greater than 1. """ val = self._get_property("Max N Index") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @property def show_composite_passband(self) -> bool: """Show Composite Passband - "Show plot instead of 3D window." - "Value should be 'true' or 'false'." + Show plot instead of 3D window + + Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return val # type: ignore + return val # type: ignore @property def use_phase_center(self) -> bool: """Use Phase Center - "Use the phase center defined in the HFSS design." - "Value should be 'true' or 'false'." + Use the phase center defined in the HFSS design + + Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return val # type: ignore + return val # type: ignore @property def coordinate_systems(self) -> str: """Coordinate Systems - "Specifies the coordinate system for the phase center of this antenna." - " """ + Specifies the coordinate system for the phase center of this antenna + + """ val = self._get_property("Coordinate Systems") - return val # type: ignore + return val # type: ignore @property def phasecenterposition(self): """PhaseCenterPosition - "Set position of the antennas linked coordinate system.." - "Value should be x/y/z, delimited by spaces." + Set position of the antennas linked coordinate system. + + Value should be x/y/z, delimited by spaces. """ val = self._get_property("PhaseCenterPosition") - return val # type: ignore + return val # type: ignore @property def phasecenterorientation(self): """PhaseCenterOrientation - "Set orientation of the antennas linked coordinate system.." - "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + Set orientation of the antennas linked coordinate system. + + Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("PhaseCenterOrientation") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py index 0baff9b34cb..ce5eb6aa1cf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyAntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,65 +36,73 @@ def parent(self): @property def passband_loss(self) -> float: """Passband Loss - "Passband loss." - "Value should be between 0 and 100." + Passband loss + + Value should be between 0 and 100. """ val = self._get_property("Passband Loss") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: """Out of Band Attenuation - "Out of band antenna loss." - "Value should be between 0 and 200." + Out of band antenna loss + + Value should be between 0 and 200. """ val = self._get_property("Out of Band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: """Lower Stop Band - "Lower stop band frequency." - "Value should be between 1 and 1e+11." + Lower stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: """Lower Cutoff - "Lower cutoff frequency." - "Value should be between 1 and 1e+11." + Lower cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: """Higher Cutoff - "Higher cutoff frequency." - "Value should be between 1 and 1e+11." + Higher cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: """Higher Stop Band - "Higher stop band frequency." - "Value should be between 1 and 1e+11." + Higher stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py index 93abd18712d..94814f2ab89 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,72 +37,81 @@ def parent(self): @property def port(self): """Port - "Radio Port associated with this Band." - " """ + Radio Port associated with this Band + + """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @property def use_dd_1494_mode(self) -> bool: """Use DD-1494 Mode - "Uses DD-1494 parameters to define the Tx/Rx spectrum." - "Value should be 'true' or 'false'." + Uses DD-1494 parameters to define the Tx/Rx spectrum + + Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return val # type: ignore + return val # type: ignore @property def use_emission_designator(self) -> bool: """Use Emission Designator - "Uses the Emission Designator to define the bandwidth and modulation." - "Value should be 'true' or 'false'." + Uses the Emission Designator to define the bandwidth and modulation + + Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return val # type: ignore + return val # type: ignore @property def emission_designator(self) -> str: """Emission Designator - "Enter the Emission Designator to define the bandwidth and modulation." - " """ + Enter the Emission Designator to define the bandwidth and modulation + + """ val = self._get_property("Emission Designator") - return val # type: ignore + return val # type: ignore @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW - "Channel Bandwidth based off the emission designator." - " """ + Channel Bandwidth based off the emission designator + + """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def emit_modulation_type(self) -> str: """EMIT Modulation Type - "Modulation based off the emission designator." - " """ + Modulation based off the emission designator + + """ val = self._get_property("EMIT Modulation Type") - return val # type: ignore + return val # type: ignore @property def override_emission_designator_bw(self) -> bool: """Override Emission Designator BW - "Enables the 3 dB channel bandwidth to equal a value < emission designator bandwidth." - "Value should be 'true' or 'false'." + Enables the 3 dB channel bandwidth to equal a value < emission + designator bandwidth + + Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return val # type: ignore + return val # type: ignore @property def channel_bandwidth(self) -> float: """Channel Bandwidth - "Channel Bandwidth." - "Value should be greater than 1." + Channel Bandwidth + + Value should be greater than 1. """ val = self._get_property("Channel Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class ModulationOption(Enum): GENERIC = "Generic" @@ -124,69 +129,76 @@ class ModulationOption(Enum): @property def modulation(self) -> ModulationOption: """Modulation - "Modulation used for the transmitted/received signal." - " """ + Modulation used for the transmitted/received signal + + """ val = self._get_property("Modulation") val = self.ModulationOption[val] - return val # type: ignore + return val # type: ignore @property def max_modulating_freq(self) -> float: """Max Modulating Freq. - "Maximum modulating frequency: helps determine spectral profile." - "Value should be greater than 1." + Maximum modulating frequency: helps determine spectral profile + + Value should be greater than 1. """ val = self._get_property("Max Modulating Freq.") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def modulation_index(self) -> float: """Modulation Index - "AM modulation index: helps determine spectral profile." - "Value should be between 0.01 and 1." + AM modulation index: helps determine spectral profile + + Value should be between 0.01 and 1. """ val = self._get_property("Modulation Index") - return val # type: ignore + return val # type: ignore @property def freq_deviation(self) -> float: """Freq. Deviation - "Frequency deviation: helps determine spectral profile." - "Value should be greater than 1." + Frequency deviation: helps determine spectral profile + + Value should be greater than 1. """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def bit_rate(self) -> float: """Bit Rate - "Maximum bit rate: helps determine width of spectral profile." - "Value should be greater than 1." + Maximum bit rate: helps determine width of spectral profile + + Value should be greater than 1. """ val = self._get_property("Bit Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @property def sidelobes(self) -> int: """Sidelobes - "Number of sidelobes in spectral profile." - "Value should be greater than 0." + Number of sidelobes in spectral profile + + Value should be greater than 0. """ val = self._get_property("Sidelobes") - return val # type: ignore + return val # type: ignore @property def freq_deviation_(self) -> float: - """Freq. Deviation - "FSK frequency deviation: helps determine spectral profile." - "Value should be greater than 1." + """Freq. Deviation + FSK frequency deviation: helps determine spectral profile + + Value should be greater than 1. """ val = self._get_property("Freq. Deviation ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class PSKTypeOption(Enum): BPSK = "BPSK" @@ -199,11 +211,12 @@ class PSKTypeOption(Enum): @property def psk_type(self) -> PSKTypeOption: """PSK Type - "PSK modulation order: helps determine spectral profile." - " """ + PSK modulation order: helps determine spectral profile + + """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] - return val # type: ignore + return val # type: ignore class FSKTypeOption(Enum): FSK_2 = "FSK-2" @@ -213,11 +226,12 @@ class FSKTypeOption(Enum): @property def fsk_type(self) -> FSKTypeOption: """FSK Type - "FSK modulation order: helps determine spectral profile." - " """ + FSK modulation order: helps determine spectral profile + + """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] - return val # type: ignore + return val # type: ignore class QAMTypeOption(Enum): QAM_4 = "QAM-4" @@ -229,11 +243,12 @@ class QAMTypeOption(Enum): @property def qam_type(self) -> QAMTypeOption: """QAM Type - "QAM modulation order: helps determine spectral profile." - " """ + QAM modulation order: helps determine spectral profile + + """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] - return val # type: ignore + return val # type: ignore class APSKTypeOption(Enum): APSK_4 = "APSK-4" @@ -245,51 +260,56 @@ class APSKTypeOption(Enum): @property def apsk_type(self) -> APSKTypeOption: """APSK Type - "APSK modulation order: helps determine spectral profile." - " """ + APSK modulation order: helps determine spectral profile + + """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: """Start Frequency - "First frequency for this band." - "Value should be between 1 and 1e+11." + First frequency for this band + + Value should be between 1 and 1e+11. """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: """Stop Frequency - "Last frequency for this band." - "Value should be between 1 and 1e+11." + Last frequency for this band + + Value should be between 1 and 1e+11. """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def channel_spacing(self) -> float: """Channel Spacing - "Spacing between channels within this band." - "Value should be between 1 and 1e+11." + Spacing between channels within this band + + Value should be between 1 and 1e+11. """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def tx_offset(self) -> float: """Tx Offset - "Frequency offset between Tx and Rx channels." - "Value should be less than 1e+11." + Frequency offset between Tx and Rx channels + + Value should be less than 1e+11. """ val = self._get_property("Tx Offset") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class RadarTypeOption(Enum): CW = "CW" @@ -301,133 +321,150 @@ class RadarTypeOption(Enum): @property def radar_type(self) -> RadarTypeOption: """Radar Type - "Radar type: helps determine spectral profile." - " """ + Radar type: helps determine spectral profile + + """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] - return val # type: ignore + return val # type: ignore @property def hopping_radar(self) -> bool: """Hopping Radar - "True for hopping radars; false otherwise." - "Value should be 'true' or 'false'." + True for hopping radars; false otherwise + + Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return val # type: ignore + return val # type: ignore @property def post_october_2020_procurement(self) -> bool: """Post October 2020 Procurement - "Procurement date: helps determine spectral profile, particularly the roll-off." - "Value should be 'true' or 'false'." + Procurement date: helps determine spectral profile, particularly the + roll-off + + Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return val # type: ignore + return val # type: ignore @property def hop_range_min_freq(self) -> float: """Hop Range Min Freq - "Sets the minimum frequency of the hopping range." - "Value should be between 1 and 1e+11." + Sets the minimum frequency of the hopping range + + Value should be between 1 and 1e+11. """ val = self._get_property("Hop Range Min Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def hop_range_max_freq(self) -> float: """Hop Range Max Freq - "Sets the maximum frequency of the hopping range." - "Value should be between 1 and 1e+11." + Sets the maximum frequency of the hopping range + + Value should be between 1 and 1e+11. """ val = self._get_property("Hop Range Max Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def pulse_duration(self) -> float: """Pulse Duration - "Pulse duration." - "Value should be greater than 0." + Pulse duration + + Value should be greater than 0. """ val = self._get_property("Pulse Duration") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_rise_time(self) -> float: """Pulse Rise Time - "Pulse rise time." - "Value should be greater than 0." + Pulse rise time + + Value should be greater than 0. """ val = self._get_property("Pulse Rise Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_fall_time(self) -> float: """Pulse Fall Time - "Pulse fall time." - "Value should be greater than 0." + Pulse fall time + + Value should be greater than 0. """ val = self._get_property("Pulse Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_repetition_rate(self) -> float: """Pulse Repetition Rate - "Pulse repetition rate [pulses/sec]." - "Value should be greater than 1." + Pulse repetition rate [pulses/sec] + + Value should be greater than 1. """ val = self._get_property("Pulse Repetition Rate") - return val # type: ignore + return val # type: ignore @property def number_of_chips(self) -> float: """Number of Chips - "Total number of chips (subpulses) contained in the pulse." - "Value should be greater than 1." + Total number of chips (subpulses) contained in the pulse + + Value should be greater than 1. """ val = self._get_property("Number of Chips") - return val # type: ignore + return val # type: ignore @property def pulse_compression_ratio(self) -> float: """Pulse Compression Ratio - "Pulse compression ratio." - "Value should be greater than 1." + Pulse compression ratio + + Value should be greater than 1. """ val = self._get_property("Pulse Compression Ratio") - return val # type: ignore + return val # type: ignore @property def fm_chirp_period(self) -> float: """FM Chirp Period - "FM Chirp period for the FM/CW radar." - "Value should be greater than 0." + FM Chirp period for the FM/CW radar + + Value should be greater than 0. """ val = self._get_property("FM Chirp Period") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def fm_freq_deviation(self) -> float: """FM Freq Deviation - "Total frequency deviation for the carrier frequency for the FM/CW radar." - "Value should be between 1 and 1e+11." + Total frequency deviation for the carrier frequency for the FM/CW radar + + Value should be between 1 and 1e+11. """ val = self._get_property("FM Freq Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def fm_freq_dev_bandwidth(self) -> float: """FM Freq Dev Bandwidth - "Bandwidth of freq deviation for FM modulated pulsed waveform (total freq shift during pulse duration)." - "Value should be between 1 and 1e+11." + Bandwidth of freq deviation for FM modulated pulsed waveform (total freq + shift during pulse duration) + + Value should be between 1 and 1e+11. """ val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py index 3e419d44688..487a1d52c7c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyBandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,3 +32,4 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py index feefb6123f9..0a5b2a029cd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyCADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,11 +37,12 @@ def parent(self): @property def file(self) -> str: """File - "Name of the imported CAD file." - "Value should be a full file path." + Name of the imported CAD file + + Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore class ModelTypeOption(Enum): PLATE = "Plate" @@ -66,222 +63,249 @@ class ModelTypeOption(Enum): @property def model_type(self) -> ModelTypeOption: """Model Type - "Select type of parametric model to create." - " """ + Select type of parametric model to create + + """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] - return val # type: ignore + return val # type: ignore @property def length(self) -> float: """Length - "Length of the model." - "Value should be greater than 1e-06." + Length of the model + + Value should be greater than 1e-06. """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def width(self) -> float: """Width - "Width of the model." - "Value should be greater than 1e-06." + Width of the model + + Value should be greater than 1e-06. """ val = self._get_property("Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def height(self) -> float: """Height - "Height of the model." - "Value should be greater than 1e-06." + Height of the model + + Value should be greater than 1e-06. """ val = self._get_property("Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def angle(self) -> float: """Angle - "Angle (deg) between the plates." - "Value should be between 0 and 360." + Angle (deg) between the plates + + Value should be between 0 and 360. """ val = self._get_property("Angle") - return val # type: ignore + return val # type: ignore @property def top_side(self) -> float: """Top Side - "Side of the top of a equilateral triangular cylinder model." - "Value should be greater than 0." + Side of the top of a equilateral triangular cylinder model + + Value should be greater than 0. """ val = self._get_property("Top Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def top_radius(self) -> float: """Top Radius - "Radius of the top of a tapered cylinder model." - "Value should be greater than 0." + Radius of the top of a tapered cylinder model + + Value should be greater than 0. """ val = self._get_property("Top Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def side(self) -> float: """Side - "Side of the equilateral triangular cylinder." - "Value should be greater than 1e-06." + Side of the equilateral triangular cylinder + + Value should be greater than 1e-06. """ val = self._get_property("Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def radius(self) -> float: """Radius - "Radius of the sphere or cylinder." - "Value should be greater than 1e-06." + Radius of the sphere or cylinder + + Value should be greater than 1e-06. """ val = self._get_property("Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def base_radius(self) -> float: """Base Radius - "Radius of the base of a tophat model." - "Value should be greater than 1e-06." + Radius of the base of a tophat model + + Value should be greater than 1e-06. """ val = self._get_property("Base Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def center_radius(self) -> float: """Center Radius - "Radius of the raised portion of a tophat model." - "Value should be greater than 1e-06." + Radius of the raised portion of a tophat model + + Value should be greater than 1e-06. """ val = self._get_property("Center Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def x_axis_ellipsoid_radius(self) -> float: """X Axis Ellipsoid Radius - "Ellipsoid semi-principal radius for the X axis." - "Value should be greater than 1e-06." + Ellipsoid semi-principal radius for the X axis + + Value should be greater than 1e-06. """ val = self._get_property("X Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def y_axis_ellipsoid_radius(self) -> float: """Y Axis Ellipsoid Radius - "Ellipsoid semi-principal radius for the Y axis." - "Value should be greater than 1e-06." + Ellipsoid semi-principal radius for the Y axis + + Value should be greater than 1e-06. """ val = self._get_property("Y Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def z_axis_ellipsoid_radius(self) -> float: """Z Axis Ellipsoid Radius - "Ellipsoid semi-principal radius for the Z axis." - "Value should be greater than 1e-06." + Ellipsoid semi-principal radius for the Z axis + + Value should be greater than 1e-06. """ val = self._get_property("Z Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def focal_length(self) -> float: """Focal Length - "Focal length of a parabolic reflector (f = 1/4a where y=ax^2)." - "Value should be greater than 1e-06." + Focal length of a parabolic reflector (f = 1/4a where y=ax^2) + + Value should be greater than 1e-06. """ val = self._get_property("Focal Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def offset(self) -> float: """Offset - "Offset of parabolic reflector." - " """ + Offset of parabolic reflector + + """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def x_direction_taper(self) -> float: """X Direction Taper - "Amount (%) that the prism tapers in the X dimension from one end to the other." - "Value should be greater than 0." + Amount (%) that the prism tapers in the X dimension from one end to the + other + + Value should be greater than 0. """ val = self._get_property("X Direction Taper") - return val # type: ignore + return val # type: ignore @property def y_direction_taper(self) -> float: """Y Direction Taper - "Amount (%) that the prism tapers in the Y dimension from one end to the other." - "Value should be greater than 0." + Amount (%) that the prism tapers in the Y dimension from one end to the + other + + Value should be greater than 0. """ val = self._get_property("Y Direction Taper") - return val # type: ignore + return val # type: ignore @property def prism_direction(self): """Prism Direction - "Direction vector between the center of the base and center of the top." - "Value should be x/y/z, delimited by spaces." + Direction vector between the center of the base and center of the top + + Value should be x/y/z, delimited by spaces. """ val = self._get_property("Prism Direction") - return val # type: ignore + return val # type: ignore @property def closed_top(self) -> bool: """Closed Top - "Control whether the top of the model is closed." - "Value should be 'true' or 'false'." + Control whether the top of the model is closed + + Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return val # type: ignore + return val # type: ignore @property def closed_base(self) -> bool: """Closed Base - "Control whether the base of the model is closed." - "Value should be 'true' or 'false'." + Control whether the base of the model is closed + + Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return val # type: ignore + return val # type: ignore @property def mesh_density(self) -> int: """Mesh Density - "Unitless mesh density parameter where higher value improves mesh smoothness." - "Value should be between 1 and 100." + Unitless mesh density parameter where higher value improves mesh + smoothness + + Value should be between 1 and 100. """ val = self._get_property("Mesh Density") - return val # type: ignore + return val # type: ignore @property def use_symmetric_mesh(self) -> bool: """Use Symmetric Mesh - "Convert quads to a symmetric triangle mesh by adding a center point (4 triangles per quad instead of 2)." - "Value should be 'true' or 'false'." + Convert quads to a symmetric triangle mesh by adding a center point (4 + triangles per quad instead of 2) + + Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return val # type: ignore + return val # type: ignore class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -290,47 +314,53 @@ class MeshOptionOption(Enum): @property def mesh_option(self) -> MeshOptionOption: """Mesh Option - "Select from different meshing options." - " """ + Select from different meshing options + + """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] - return val # type: ignore + return val # type: ignore @property def coating_index(self) -> int: """Coating Index - "Coating index for the parametric model primitive." - "Value should be between 0 and 100000." + Coating index for the parametric model primitive + + Value should be between 0 and 100000. """ val = self._get_property("Coating Index") - return val # type: ignore + return val # type: ignore @property def show_relative_coordinates(self) -> bool: """Show Relative Coordinates - "Show CAD model node position and orientation in parent-node coords (False) or relative to placement coords (True)." - "Value should be 'true' or 'false'." + Show CAD model node position and orientation in parent-node coords + (False) or relative to placement coords (True) + + Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @property def position(self): """Position - "Set position of the CAD node in parent-node coordinates." - "Value should be x/y/z, delimited by spaces." + Set position of the CAD node in parent-node coordinates + + Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): """Relative Position - "Set position of the CAD model node relative to placement coordinates." - "Value should be x/y/z, delimited by spaces." + Set position of the CAD model node relative to placement coordinates + + Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -339,38 +369,42 @@ class OrientationModeOption(Enum): @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode - "Select the convention (order of rotations) for configuring orientation." - " """ + Select the convention (order of rotations) for configuring orientation + + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @property def orientation(self): """Orientation - "Set orientation of the CAD node in parent-node coordinates." - "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + Set orientation of the CAD node in parent-node coordinates + + Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): """Relative Orientation - "Set orientation of the CAD model node relative to placement coordinates." - "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + Set orientation of the CAD model node relative to placement coordinates + + Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def visible(self) -> bool: """Visible - "Toggle (on/off) display of CAD model in 3-D window." - "Value should be 'true' or 'false'." + Toggle (on/off) display of CAD model in 3-D window + + Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -381,60 +415,68 @@ class RenderModeOption(Enum): @property def render_mode(self) -> RenderModeOption: """Render Mode - "Select drawing style for surfaces." - " """ + Select drawing style for surfaces + + """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] - return val # type: ignore + return val # type: ignore @property def show_axes(self) -> bool: """Show Axes - "Toggle (on/off) display of CAD model coordinate axes in 3-D window." - "Value should be 'true' or 'false'." + Toggle (on/off) display of CAD model coordinate axes in 3-D window + + Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @property def min(self): """Min - "Minimum x,y,z extents of CAD model in local coordinates." - "Value should be x/y/z, delimited by spaces." + Minimum x,y,z extents of CAD model in local coordinates + + Value should be x/y/z, delimited by spaces. """ val = self._get_property("Min") - return val # type: ignore + return val # type: ignore @property def max(self): """Max - "Maximum x,y,z extents of CAD model in local coordinates." - "Value should be x/y/z, delimited by spaces." + Maximum x,y,z extents of CAD model in local coordinates + + Value should be x/y/z, delimited by spaces. """ val = self._get_property("Max") - return val # type: ignore + return val # type: ignore @property def number_of_surfaces(self) -> int: """Number of Surfaces - "Number of surfaces in the model." - " """ + Number of surfaces in the model + + """ val = self._get_property("Number of Surfaces") - return val # type: ignore + return val # type: ignore @property def color(self): """Color - "Defines the CAD nodes color." - "Color should be in RGB form: #RRGGBB." + Defines the CAD nodes color + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py index 26323c1934c..68b01528bbd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyCable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -36,28 +32,31 @@ def __init__(self, oDesign, result_id, node_id): @property def filename(self) -> str: """Filename - "Name of file defining the outboard component." - "Value should be a full file path." + Name of file defining the outboard component + + Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." + System Noise temperature (K) of the component + + Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -67,63 +66,72 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: """Type - "Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable." - " """ + Type of cable to use. Options include: By File (measured or simulated), + Constant Loss, or Coaxial Cable + + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @property def length(self) -> float: """Length - "Length of cable." - "Value should be between 0 and 500." + Length of cable + + Value should be between 0 and 500. """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def loss_per_length(self) -> float: """Loss Per Length - "Cable loss per unit length (dB/meter)." - "Value should be between 0 and 20." + Cable loss per unit length (dB/meter) + + Value should be between 0 and 20. """ val = self._get_property("Loss Per Length") - return val # type: ignore + return val # type: ignore @property def measurement_length(self) -> float: """Measurement Length - "Length of the cable used for the measurements." - "Value should be between 0 and 500." + Length of the cable used for the measurements + + Value should be between 0 and 500. """ val = self._get_property("Measurement Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def resistive_loss_constant(self) -> float: """Resistive Loss Constant - "Coaxial cable resistive loss constant." - "Value should be between 0 and 2." + Coaxial cable resistive loss constant + + Value should be between 0 and 2. """ val = self._get_property("Resistive Loss Constant") - return val # type: ignore + return val # type: ignore @property def dielectric_loss_constant(self) -> float: """Dielectric Loss Constant - "Coaxial cable dielectric loss constant." - "Value should be between 0 and 1." + Coaxial cable dielectric loss constant + + Value should be between 0 and 1. """ val = self._get_property("Dielectric Loss Constant") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings - "Warning(s) for this node." - " """ + Warning(s) for this node + + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py index b68acab9a07..8c3b7e785df 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyCirculator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -36,28 +32,31 @@ def __init__(self, oDesign, result_id, node_id): @property def filename(self) -> str: """Filename - "Name of file defining the Isolator/Circulator." - "Value should be a full file path." + Name of file defining the Isolator/Circulator + + Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." + System Noise temperature (K) of the component + + Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -66,11 +65,13 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: """Type - "Type of circulator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + Type of circulator model to use. Options include: By File (measured or + simulated) or Parametric + + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -79,101 +80,115 @@ class Port1LocationOption(Enum): @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location - "Defines the orientation of the circulator.." - " """ + Defines the orientation of the circulator. + + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: """Insertion Loss - "Circulator in-band loss in forward direction.." - "Value should be between 0 and 100." + Circulator in-band loss in forward direction. + + Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_reverse_isolation(self) -> bool: """Finite Reverse Isolation - "Use a finite reverse isolation. If disabled, the circulator model is ideal (infinite reverse isolation).." - "Value should be 'true' or 'false'." + Use a finite reverse isolation. If disabled, the circulator model is + ideal (infinite reverse isolation). + + Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: """Reverse Isolation - "Circulator reverse isolation (i.e., loss in the reverse direction).." - "Value should be between 0 and 100." + Circulator reverse isolation (i.e., loss in the reverse direction). + + Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: """Finite Bandwidth - "Use a finite bandwidth. If disabled, the circulator model is ideal (infinite bandwidth).." - "Value should be 'true' or 'false'." + Use a finite bandwidth. If disabled, the circulator model is ideal + (infinite bandwidth). + + Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: """Out-of-band Attenuation - "Out-of-band loss (attenuation)." - "Value should be between 0 and 200." + Out-of-band loss (attenuation) + + Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: """Lower Stop Band - "Lower stop band frequency." - "Value should be between 1 and 1e+11." + Lower stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: """Lower Cutoff - "Lower cutoff frequency." - "Value should be between 1 and 1e+11." + Lower cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: """Higher Cutoff - "Higher cutoff frequency." - "Value should be between 1 and 1e+11." + Higher cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: """Higher Stop Band - "Higher stop band frequency." - "Value should be between 1 and 1e+11." + Higher stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings - "Warning(s) for this node." - " """ + Warning(s) for this node + + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py index 13b7bd94ada..c029cab2b66 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,17 +36,20 @@ def parent(self): @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling link." - "Value should be 'true' or 'false'." + Enable/Disable coupling link + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def ports(self): """Ports - "Maps each port in the link to an antenna in the project." + Maps each port in the link to an antenna in the project + "A list of values." - " """ + """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py index 4937c28efee..bcadca8a91f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyCouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -34,25 +31,30 @@ def __init__(self, oDesign, result_id, node_id): @property def minimum_allowed_coupling(self) -> float: """Minimum Allowed Coupling - "Global minimum allowed coupling value. All computed coupling within this project will be >= this value." - "Value should be between -1000 and 1000." + Global minimum allowed coupling value. All computed coupling within this + project will be >= this value + + Value should be between -1000 and 1000. """ val = self._get_property("Minimum Allowed Coupling") - return val # type: ignore + return val # type: ignore @property def global_default_coupling(self) -> float: """Global Default Coupling - "Default antenna-to-antenna coupling loss value." - "Value should be between -1000 and 0." + Default antenna-to-antenna coupling loss value + + Value should be between -1000 and 0. """ val = self._get_property("Global Default Coupling") - return val # type: ignore + return val # type: ignore @property def antenna_tags(self) -> str: """Antenna Tags - "All tags currently used by all antennas in the project." - " """ + All tags currently used by all antennas in the project + + """ val = self._get_property("Antenna Tags") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py index 3c50ca3acab..1ac7f775844 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,62 +35,69 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Frequency: - " Value should be between 1 and 1e+11." - "Value (dB): - " Value should be between -1000 and 0." + "Frequency: + Value should be between 1 and 1e+11. + "Value (dB): + Value should be between -1000 and 0. """ return self._get_table_data() @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." + Enable/Disable coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A - "First antenna of the pair to apply the coupling values to." - " """ + First antenna of the pair to apply the coupling values to + + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B - "Second antenna of the pair to apply the coupling values to." - " """ + Second antenna of the pair to apply the coupling values to + + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." + Enables/disables refined sampling of the frequency domain. + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." + Enables/disables adaptive refinement the frequency domain sampling. + + Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain - "Points to use when refining the frequency domain.." - " """ + Points to use when refining the frequency domain. + + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py index 318fb26cd02..b6cf5a0efdc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,10 +32,11 @@ def __init__(self, oDesign, result_id, node_id): @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class GroundPlaneNormalOption(Enum): X_AXIS = "X Axis" @@ -49,17 +46,21 @@ class GroundPlaneNormalOption(Enum): @property def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal - "Specifies the axis of the normal to the ground plane." - " """ + Specifies the axis of the normal to the ground plane + + """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] - return val # type: ignore + return val # type: ignore @property def gp_position_along_normal(self) -> float: """GP Position Along Normal - "Offset of ground plane in direction normal to the ground planes orientation." - " """ + Offset of ground plane in direction normal to the ground planes + orientation + + """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py index d1965900895..14869dd829d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,53 +37,59 @@ def parent(self): @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." + Enable/Disable coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna - "First antenna of the pair to apply the coupling values to." - " """ + First antenna of the pair to apply the coupling values to + + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna - "Second antenna of the pair to apply the coupling values to." - " """ + Second antenna of the pair to apply the coupling values to + + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." + Enables/disables refined sampling of the frequency domain. + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." + Enables/disables adaptive refinement the frequency domain sampling. + + Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain - "Points to use when refining the frequency domain.." - " """ + Points to use when refining the frequency domain. + + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class TerrainCategoryOption(Enum): TYPE_A = "Type A" @@ -97,38 +99,45 @@ class TerrainCategoryOption(Enum): @property def terrain_category(self) -> TerrainCategoryOption: """Terrain Category - "Specify the terrain category type for the Erceg model." - " """ + Specify the terrain category type for the Erceg model + + """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: """Custom Fading Margin - "Sets a custom fading margin to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a custom fading margin to be applied to all coupling defined by + this node + + Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: """Polarization Mismatch - "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for polarization mismatch to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: """Pointing Error Loss - "Sets a margin for pointing error loss to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for pointing error loss to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -139,98 +148,114 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: """Fading Type - "Specify the type of fading to include." - " """ + Specify the type of fading to include + + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: """Fading Availability - "The probability that the propagation loss in dB is below its median value plus the margin." - "Value should be between 0 and 100." + The probability that the propagation loss in dB is below its median + value plus the margin + + Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: """Std Deviation - "Standard deviation modeling the random amount of shadowing loss." - "Value should be between 0 and 100." + Standard deviation modeling the random amount of shadowing loss + + Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation - "Adds a margin for rain attenuation to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for rain attenuation to the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: """Rain Availability - "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." - "Value should be between 99 and 99.999." + Percentage of time attenuation due to range is < computed margin (range + from 99-99.999%) + + Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: """Rain Rate - "Rain rate (mm/hr) exceeded for 0.01% of the time." - "Value should be between 0 and 1000." + Rain rate (mm/hr) exceeded for 0.01% of the time + + Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle - "Polarization tilt angle of the transmitted signal relative to the horizontal." - "Value should be between 0 and 180." + Polarization tilt angle of the transmitted signal relative to the + horizontal + + Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption - "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for atmospheric absorption due to oxygen/water vapor to + the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: """Temperature - "Air temperature in degrees Celsius." - "Value should be between -273 and 100." + Air temperature in degrees Celsius + + Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: """Total Air Pressure - "Total air pressure." - "Value should be between 0 and 2000." + Total air pressure + + Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration - "Water vapor concentration." - "Value should be between 0 and 2000." + Water vapor concentration + + Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py index b5d93697234..60051e9735a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyFilter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -36,28 +32,31 @@ def __init__(self, oDesign, result_id, node_id): @property def filename(self) -> str: """Filename - "Name of file defining the outboard component." - "Value should be a full file path." + Name of file defining the outboard component + + Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." + System Noise temperature (K) of the component + + Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -71,192 +70,214 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: """Type - "Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + Type of filter to define. The filter can be defined by file (measured or + simulated data) or using one of EMIT's parametric models + + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: """Insertion Loss - "Filter pass band loss." - "Value should be between 0 and 100." + Filter pass band loss + + Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def stop_band_attenuation(self) -> float: """Stop band Attenuation - "Filter stop band loss (attenuation)." - "Value should be less than 200." + Filter stop band loss (attenuation) + + Value should be less than 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @property def max_pass_band(self) -> float: """Max Pass Band - "Maximum pass band frequency." - "Value should be between 1 and 1e+11." + Maximum pass band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_stop_band(self) -> float: """Min Stop Band - "Minimum stop band frequency." - "Value should be between 1 and 1e+11." + Minimum stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def max_stop_band(self) -> float: """Max Stop Band - "Maximum stop band frequency." - "Value should be between 1 and 1e+11." + Maximum stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_pass_band(self) -> float: """Min Pass Band - "Minimum pass band frequency." - "Value should be between 1 and 1e+11." + Minimum pass band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: """Lower Stop Band - "Lower stop band frequency." - "Value should be between 1 and 1e+11." + Lower stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: """Lower Cutoff - "Lower cutoff frequency." - "Value should be between 1 and 1e+11." + Lower cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: """Higher Cutoff - "Higher cutoff frequency." - "Value should be between 1 and 1e+11." + Higher cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: """Higher Stop Band - "Higher stop band frequency." - "Value should be between 1 and 1e+11." + Higher stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff_(self) -> float: - """Lower Cutoff - "Lower cutoff frequency." - "Value should be between 1 and 1e+11." + """Lower Cutoff + Lower cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band_(self) -> float: - """Lower Stop Band - "Lower stop band frequency." - "Value should be between 1 and 1e+11." + """Lower Stop Band + Lower stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band_(self) -> float: - """Higher Stop Band - "Higher stop band frequency." - "Value should be between 1 and 1e+11." + """Higher Stop Band + Higher stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff_(self) -> float: - """Higher Cutoff - "Higher cutoff frequency." - "Value should be between 1 and 1e+11." + """Higher Cutoff + Higher cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency - "Lowest tuned frequency." - "Value should be between 1 and 1e+11." + """Lowest Tuned Frequency + Lowest tuned frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lowest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency - "Highest tuned frequency." - "Value should be between 1 and 1e+11." + """Highest Tuned Frequency + Highest tuned frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Highest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def percent_bandwidth(self) -> float: """Percent Bandwidth - "Tunable filter 3-dB bandwidth." - "Value should be between 0.001 and 100." + Tunable filter 3-dB bandwidth + + Value should be between 0.001 and 100. """ val = self._get_property("Percent Bandwidth") - return val # type: ignore + return val # type: ignore @property def shape_factor(self) -> float: """Shape Factor - "Ratio defining the filter rolloff." - "Value should be between 1 and 100." + Ratio defining the filter rolloff + + Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings - "Warning(s) for this node." - " """ + Warning(s) for this node + + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py index 0530b4b07b8..7fce3e2870c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,53 +37,59 @@ def parent(self): @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." + Enable/Disable coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna - "First antenna of the pair to apply the coupling values to." - " """ + First antenna of the pair to apply the coupling values to + + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna - "Second antenna of the pair to apply the coupling values to." - " """ + Second antenna of the pair to apply the coupling values to + + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." + Enables/disables refined sampling of the frequency domain. + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." + Enables/disables adaptive refinement the frequency domain sampling. + + Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain - "Points to use when refining the frequency domain.." - " """ + Points to use when refining the frequency domain. + + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): URBAN_MICROCELL = "Urban Microcell" @@ -97,29 +99,32 @@ class EnvironmentOption(Enum): @property def environment(self) -> EnvironmentOption: """Environment - "Specify the environment for the 5G channel model." - " """ + Specify the environment for the 5G channel model + + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def los(self) -> bool: """LOS - "True if the operating environment is line-of-sight." - "Value should be 'true' or 'false'." + True if the operating environment is line-of-sight + + Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return val # type: ignore + return val # type: ignore @property def include_bpl(self) -> bool: """Include BPL - "Includes building penetration loss if true." - "Value should be 'true' or 'false'." + Includes building penetration loss if true + + Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return val # type: ignore + return val # type: ignore class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -128,38 +133,45 @@ class NYUBPLModelOption(Enum): @property def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model - "Specify the NYU Building Penetration Loss model." - " """ + Specify the NYU Building Penetration Loss model + + """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: """Custom Fading Margin - "Sets a custom fading margin to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a custom fading margin to be applied to all coupling defined by + this node + + Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: """Polarization Mismatch - "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for polarization mismatch to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: """Pointing Error Loss - "Sets a margin for pointing error loss to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for pointing error loss to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -170,98 +182,114 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: """Fading Type - "Specify the type of fading to include." - " """ + Specify the type of fading to include + + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: """Fading Availability - "The probability that the propagation loss in dB is below its median value plus the margin." - "Value should be between 0 and 100." + The probability that the propagation loss in dB is below its median + value plus the margin + + Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: """Std Deviation - "Standard deviation modeling the random amount of shadowing loss." - "Value should be between 0 and 100." + Standard deviation modeling the random amount of shadowing loss + + Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation - "Adds a margin for rain attenuation to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for rain attenuation to the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: """Rain Availability - "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." - "Value should be between 99 and 99.999." + Percentage of time attenuation due to range is < computed margin (range + from 99-99.999%) + + Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: """Rain Rate - "Rain rate (mm/hr) exceeded for 0.01% of the time." - "Value should be between 0 and 1000." + Rain rate (mm/hr) exceeded for 0.01% of the time + + Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle - "Polarization tilt angle of the transmitted signal relative to the horizontal." - "Value should be between 0 and 180." + Polarization tilt angle of the transmitted signal relative to the + horizontal + + Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption - "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for atmospheric absorption due to oxygen/water vapor to + the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: """Temperature - "Air temperature in degrees Celsius." - "Value should be between -273 and 100." + Air temperature in degrees Celsius + + Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: """Total Air Pressure - "Total air pressure." - "Value should be between 0 and 2000." + Total air pressure + + Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration - "Water vapor concentration." - "Value should be between 0 and 2000." + Water vapor concentration + + Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py index 756a13801d0..b6e18dbde04 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,53 +37,59 @@ def parent(self): @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." + Enable/Disable coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna - "First antenna of the pair to apply the coupling values to." - " """ + First antenna of the pair to apply the coupling values to + + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna - "Second antenna of the pair to apply the coupling values to." - " """ + Second antenna of the pair to apply the coupling values to + + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." + Enables/disables refined sampling of the frequency domain. + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." + Enables/disables adaptive refinement the frequency domain sampling. + + Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain - "Points to use when refining the frequency domain.." - " """ + Points to use when refining the frequency domain. + + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): LARGE_CITY = "Large City" @@ -98,38 +100,45 @@ class EnvironmentOption(Enum): @property def environment(self) -> EnvironmentOption: """Environment - "Specify the environment type for the Hata model." - " """ + Specify the environment type for the Hata model + + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: """Custom Fading Margin - "Sets a custom fading margin to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a custom fading margin to be applied to all coupling defined by + this node + + Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: """Polarization Mismatch - "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for polarization mismatch to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: """Pointing Error Loss - "Sets a margin for pointing error loss to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for pointing error loss to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -140,98 +149,114 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: """Fading Type - "Specify the type of fading to include." - " """ + Specify the type of fading to include + + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: """Fading Availability - "The probability that the propagation loss in dB is below its median value plus the margin." - "Value should be between 0 and 100." + The probability that the propagation loss in dB is below its median + value plus the margin + + Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: """Std Deviation - "Standard deviation modeling the random amount of shadowing loss." - "Value should be between 0 and 100." + Standard deviation modeling the random amount of shadowing loss + + Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation - "Adds a margin for rain attenuation to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for rain attenuation to the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: """Rain Availability - "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." - "Value should be between 99 and 99.999." + Percentage of time attenuation due to range is < computed margin (range + from 99-99.999%) + + Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: """Rain Rate - "Rain rate (mm/hr) exceeded for 0.01% of the time." - "Value should be between 0 and 1000." + Rain rate (mm/hr) exceeded for 0.01% of the time + + Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle - "Polarization tilt angle of the transmitted signal relative to the horizontal." - "Value should be between 0 and 180." + Polarization tilt angle of the transmitted signal relative to the + horizontal + + Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption - "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for atmospheric absorption due to oxygen/water vapor to + the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: """Temperature - "Air temperature in degrees Celsius." - "Value should be between -273 and 100." + Air temperature in degrees Celsius + + Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: """Total Air Pressure - "Total air pressure." - "Value should be between 0 and 2000." + Total air pressure + + Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration - "Water vapor concentration." - "Value should be between 0 and 2000." + Water vapor concentration + + Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py index 1a745f78dca..1fa4eb2f659 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,67 +36,73 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency: - " Value should be between 1 and 1e+11." - "Power Loss Coefficient: - " Value should be between 0 and 100." - "Floor Penetration Loss (dB): - " Value should be between 0 and 1000." + "Frequency: + Value should be between 1 and 1e+11. + "Power Loss Coefficient: + Value should be between 0 and 100. + "Floor Penetration Loss (dB): + Value should be between 0 and 1000. """ return self._get_table_data() @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." + Enable/Disable coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A - "First antenna of the pair to apply the coupling values to." - " """ + First antenna of the pair to apply the coupling values to + + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B - "Second antenna of the pair to apply the coupling values to." - " """ + Second antenna of the pair to apply the coupling values to + + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." + Enables/disables refined sampling of the frequency domain. + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." + Enables/disables adaptive refinement the frequency domain sampling. + + Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain - "Points to use when refining the frequency domain.." - " """ + Points to use when refining the frequency domain. + + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class BuildingTypeOption(Enum): RESIDENTIAL_APARTMENT = "Residential Apartment" @@ -112,47 +114,55 @@ class BuildingTypeOption(Enum): @property def building_type(self) -> BuildingTypeOption: """Building Type - "Specify the building type for the Indoor Propagation model." - " """ + Specify the building type for the Indoor Propagation model + + """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def number_of_floors(self) -> int: """Number of Floors - "The number of floors separating the antennas.." - "Value should be between 1 and 3." + The number of floors separating the antennas. + + Value should be between 1 and 3. """ val = self._get_property("Number of Floors") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: """Custom Fading Margin - "Sets a custom fading margin to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a custom fading margin to be applied to all coupling defined by + this node + + Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: """Polarization Mismatch - "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for polarization mismatch to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: """Pointing Error Loss - "Sets a margin for pointing error loss to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for pointing error loss to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -163,98 +173,114 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: """Fading Type - "Specify the type of fading to include." - " """ + Specify the type of fading to include + + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: """Fading Availability - "The probability that the propagation loss in dB is below its median value plus the margin." - "Value should be between 0 and 100." + The probability that the propagation loss in dB is below its median + value plus the margin + + Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: """Std Deviation - "Standard deviation modeling the random amount of shadowing loss." - "Value should be between 0 and 100." + Standard deviation modeling the random amount of shadowing loss + + Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation - "Adds a margin for rain attenuation to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for rain attenuation to the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: """Rain Availability - "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." - "Value should be between 99 and 99.999." + Percentage of time attenuation due to range is < computed margin (range + from 99-99.999%) + + Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: """Rain Rate - "Rain rate (mm/hr) exceeded for 0.01% of the time." - "Value should be between 0 and 1000." + Rain rate (mm/hr) exceeded for 0.01% of the time + + Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle - "Polarization tilt angle of the transmitted signal relative to the horizontal." - "Value should be between 0 and 180." + Polarization tilt angle of the transmitted signal relative to the + horizontal + + Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption - "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for atmospheric absorption due to oxygen/water vapor to + the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: """Temperature - "Air temperature in degrees Celsius." - "Value should be between -273 and 100." + Air temperature in degrees Celsius + + Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: """Total Air Pressure - "Total air pressure." - "Value should be between 0 and 2000." + Total air pressure + + Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration - "Water vapor concentration." - "Value should be between 0 and 2000." + Water vapor concentration + + Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py index 16aeac2ddf2..4c983ef315b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyIsolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -36,28 +32,31 @@ def __init__(self, oDesign, result_id, node_id): @property def filename(self) -> str: """Filename - "Name of file defining the outboard component." - "Value should be a full file path." + Name of file defining the outboard component + + Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." + System Noise temperature (K) of the component + + Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -66,11 +65,13 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: """Type - "Type of isolator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + Type of isolator model to use. Options include: By File (measured or + simulated) or Parametric + + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -79,101 +80,115 @@ class Port1LocationOption(Enum): @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location - "Defines the orientation of the isolator.." - " """ + Defines the orientation of the isolator. + + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: """Insertion Loss - "Isolator in-band loss in forward direction.." - "Value should be between 0 and 100." + Isolator in-band loss in forward direction. + + Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_reverse_isolation(self) -> bool: """Finite Reverse Isolation - "Use a finite reverse isolation. If disabled, the isolator model is ideal (infinite reverse isolation).." - "Value should be 'true' or 'false'." + Use a finite reverse isolation. If disabled, the isolator model is + ideal (infinite reverse isolation). + + Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: """Reverse Isolation - "Isolator reverse isolation (i.e., loss in the reverse direction).." - "Value should be between 0 and 100." + Isolator reverse isolation (i.e., loss in the reverse direction). + + Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: """Finite Bandwidth - "Use a finite bandwidth. If disabled, the isolator model is ideal (infinite bandwidth).." - "Value should be 'true' or 'false'." + Use a finite bandwidth. If disabled, the isolator model is ideal + (infinite bandwidth). + + Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: """Out-of-band Attenuation - "Out-of-band loss (attenuation)." - "Value should be between 0 and 200." + Out-of-band loss (attenuation) + + Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: """Lower Stop Band - "Lower stop band frequency." - "Value should be between 1 and 1e+11." + Lower stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: """Lower Cutoff - "Lower cutoff frequency." - "Value should be between 1 and 1e+11." + Lower cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: """Higher Cutoff - "Higher cutoff frequency." - "Value should be between 1 and 1e+11." + Higher cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: """Higher Stop Band - "Higher stop band frequency." - "Value should be between 1 and 1e+11." + Higher stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings - "Warning(s) for this node." - " """ + Warning(s) for this node + + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py index 38880939808..85edfbc8aee 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,53 +37,59 @@ def parent(self): @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." + Enable/Disable coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A - "First antenna of the pair to apply the coupling values to." - " """ + First antenna of the pair to apply the coupling values to + + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B - "Second antenna of the pair to apply the coupling values to." - " """ + Second antenna of the pair to apply the coupling values to + + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." + Enables/disables refined sampling of the frequency domain. + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." + Enables/disables adaptive refinement the frequency domain sampling. + + Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain - "Points to use when refining the frequency domain.." - " """ + Points to use when refining the frequency domain. + + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): FREE_SPACE = "Free Space" @@ -101,47 +103,55 @@ class EnvironmentOption(Enum): @property def environment(self) -> EnvironmentOption: """Environment - "Specify the environment type for the Log Distance model." - " """ + Specify the environment type for the Log Distance model + + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def path_loss_exponent(self) -> float: """Path Loss Exponent - "Path Loss Exponent." - "Value should be between 0 and 100." + Path Loss Exponent + + Value should be between 0 and 100. """ val = self._get_property("Path Loss Exponent") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: """Custom Fading Margin - "Sets a custom fading margin to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a custom fading margin to be applied to all coupling defined by + this node + + Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: """Polarization Mismatch - "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for polarization mismatch to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: """Pointing Error Loss - "Sets a margin for pointing error loss to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for pointing error loss to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -152,98 +162,114 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: """Fading Type - "Specify the type of fading to include." - " """ + Specify the type of fading to include + + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: """Fading Availability - "The probability that the propagation loss in dB is below its median value plus the margin." - "Value should be between 0 and 100." + The probability that the propagation loss in dB is below its median + value plus the margin + + Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: """Std Deviation - "Standard deviation modeling the random amount of shadowing loss." - "Value should be between 0 and 100." + Standard deviation modeling the random amount of shadowing loss + + Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation - "Adds a margin for rain attenuation to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for rain attenuation to the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: """Rain Availability - "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." - "Value should be between 99 and 99.999." + Percentage of time attenuation due to range is < computed margin (range + from 99-99.999%) + + Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: """Rain Rate - "Rain rate (mm/hr) exceeded for 0.01% of the time." - "Value should be between 0 and 1000." + Rain rate (mm/hr) exceeded for 0.01% of the time + + Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle - "Polarization tilt angle of the transmitted signal relative to the horizontal." - "Value should be between 0 and 180." + Polarization tilt angle of the transmitted signal relative to the + horizontal + + Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption - "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for atmospheric absorption due to oxygen/water vapor to + the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: """Temperature - "Air temperature in degrees Celsius." - "Value should be between -273 and 100." + Air temperature in degrees Celsius + + Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: """Total Air Pressure - "Total air pressure." - "Value should be between 0 and 2000." + Total air pressure + + Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration - "Water vapor concentration." - "Value should be between 0 and 2000." + Water vapor concentration + + Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py index 875a19d76c8..a208505e530 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyMultiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -36,28 +32,31 @@ def __init__(self, oDesign, result_id, node_id): @property def filename(self) -> str: """Filename - "Name of file defining the multiplexer." - "Value should be a full file path." + Name of file defining the multiplexer + + Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." + System Noise temperature (K) of the component + + Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_PASS_BAND = "By Pass Band" @@ -66,11 +65,14 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: """Type - "Type of multiplexer model. Options include: By File (one measured or simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band)." - " """ + Type of multiplexer model. Options include: By File (one measured or + simulated file for the device) or By Pass Band (parametric or + file-based definition for each pass band) + + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -79,34 +81,39 @@ class Port1LocationOption(Enum): @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location - "Defines the orientation of the multiplexer.." - " """ + Defines the orientation of the multiplexer. + + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @property def flip_ports_vertically(self) -> bool: """Flip Ports Vertically - "Reverses the port order on the multi-port side of the multiplexer.." - "Value should be 'true' or 'false'." + Reverses the port order on the multi-port side of the multiplexer. + + Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return val # type: ignore + return val # type: ignore @property def ports(self): """Ports - "Assigns the child port nodes to the multiplexers ports." + Assigns the child port nodes to the multiplexers ports + "A list of values." - " """ + """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings - "Warning(s) for this node." - " """ + Warning(s) for this node + + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py index 2a402eb98b4..2b20afb8430 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -47,123 +43,139 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: """Type - "Type of multiplexer pass band to define. The pass band can be defined by file (measured or simulated data) or using one of EMIT's parametric models." - " """ + Type of multiplexer pass band to define. The pass band can be defined by + file (measured or simulated data) or using one of EMIT's parametric + models + + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @property def filename(self) -> str: """Filename - "Name of file defining the multiplexer band." - "Value should be a full file path." + Name of file defining the multiplexer band + + Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: """Insertion Loss - "Multiplexer pass band insertion loss." - "Value should be between 0 and 100." + Multiplexer pass band insertion loss + + Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def stop_band_attenuation(self) -> float: """Stop band Attenuation - "Stop-band loss (attenuation)." - "Value should be between 0 and 200." + Stop-band loss (attenuation) + + Value should be between 0 and 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @property def max_pass_band(self) -> float: """Max Pass Band - "Maximum pass band frequency." - "Value should be between 1 and 1e+11." + Maximum pass band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_stop_band(self) -> float: """Min Stop Band - "Minimum stop band frequency." - "Value should be between 1 and 1e+11." + Minimum stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def max_stop_band(self) -> float: """Max Stop Band - "Maximum stop band frequency." - "Value should be between 1 and 1e+11." + Maximum stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_pass_band(self) -> float: """Min Pass Band - "Minimum pass band frequency." - "Value should be between 1 and 1e+11." + Minimum pass band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: """Lower Stop Band - "Lower stop band frequency." - "Value should be between 1 and 1e+11." + Lower stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: """Lower Cutoff - "Lower cutoff frequency." - "Value should be between 1 and 1e+11." + Lower cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: """Higher Cutoff - "Higher cutoff frequency." - "Value should be between 1 and 1e+11." + Higher cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: """Higher Stop Band - "Higher stop band frequency." - "Value should be between 1 and 1e+11." + Higher stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings - "Warning(s) for this node." - " """ + Warning(s) for this node + + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py index 0f98ee40ad1..2cff7d2e740 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyPowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -36,28 +32,31 @@ def __init__(self, oDesign, result_id, node_id): @property def filename(self) -> str: """Filename - "Name of file defining the Power Divider." - "Value should be a full file path." + Name of file defining the Power Divider + + Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." + System Noise temperature (K) of the component + + Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -67,11 +66,13 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: """Type - "Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric)." - " """ + Type of Power Divider model to use. Options include: By File (measured + or simulated), 3 dB (parametric), and Resistive (parametric) + + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class OrientationOption(Enum): DIVIDER = "Divider" @@ -80,101 +81,116 @@ class OrientationOption(Enum): @property def orientation(self) -> OrientationOption: """Orientation - "Defines the orientation of the Power Divider.." - " """ + Defines the orientation of the Power Divider. + + """ val = self._get_property("Orientation") val = self.OrientationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss_above_ideal(self) -> float: """Insertion Loss Above Ideal - "Additional loss beyond the ideal insertion loss. The ideal insertion loss is 3 dB for the 3 dB Divider and 6 dB for the Resistive Divider.." - "Value should be between 0 and 100." + Additional loss beyond the ideal insertion loss. The ideal insertion + loss is 3 dB for the 3 dB Divider and 6 dB for the Resistive Divider. + + Value should be between 0 and 100. """ val = self._get_property("Insertion Loss Above Ideal") - return val # type: ignore + return val # type: ignore @property def finite_isolation(self) -> bool: """Finite Isolation - "Use a finite isolation between output ports. If disabled, the Power Divider isolation is ideal (infinite isolation between output ports).." - "Value should be 'true' or 'false'." + Use a finite isolation between output ports. If disabled, the Power + Divider isolation is ideal (infinite isolation between output ports). + + Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @property def isolation(self) -> float: """Isolation - "Power Divider isolation between output ports.." - "Value should be between 0 and 100." + Power Divider isolation between output ports. + + Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: """Finite Bandwidth - "Use a finite bandwidth. If disabled, the Power Divider model is ideal (infinite bandwidth).." - "Value should be 'true' or 'false'." + Use a finite bandwidth. If disabled, the Power Divider model is ideal + (infinite bandwidth). + + Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: """Out-of-band Attenuation - "Out-of-band loss (attenuation)." - "Value should be between 0 and 200." + Out-of-band loss (attenuation) + + Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: """Lower Stop Band - "Lower stop band frequency." - "Value should be between 1 and 1e+11." + Lower stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: """Lower Cutoff - "Lower cutoff frequency." - "Value should be between 1 and 1e+11." + Lower cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: """Higher Cutoff - "Higher cutoff frequency." - "Value should be between 1 and 1e+11." + Higher cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: """Higher Stop Band - "Higher stop band frequency." - "Value should be between 1 and 1e+11." + Higher stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings - "Warning(s) for this node." - " """ + Warning(s) for this node + + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py index aa8a2fe68c5..c3fb677e815 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,80 +37,92 @@ def parent(self): @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." + Enable/Disable coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A - "First antenna of the pair to apply the coupling values to." - " """ + First antenna of the pair to apply the coupling values to + + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B - "Second antenna of the pair to apply the coupling values to." - " """ + Second antenna of the pair to apply the coupling values to + + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." + Enables/disables refined sampling of the frequency domain. + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." + Enables/disables adaptive refinement the frequency domain sampling. + + Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain - "Points to use when refining the frequency domain.." - " """ + Points to use when refining the frequency domain. + + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: """Custom Fading Margin - "Sets a custom fading margin to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a custom fading margin to be applied to all coupling defined by + this node + + Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: """Polarization Mismatch - "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for polarization mismatch to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: """Pointing Error Loss - "Sets a margin for pointing error loss to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for pointing error loss to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -125,98 +133,114 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: """Fading Type - "Specify the type of fading to include." - " """ + Specify the type of fading to include + + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: """Fading Availability - "The probability that the propagation loss in dB is below its median value plus the margin." - "Value should be between 0 and 100." + The probability that the propagation loss in dB is below its median + value plus the margin + + Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: """Std Deviation - "Standard deviation modeling the random amount of shadowing loss." - "Value should be between 0 and 100." + Standard deviation modeling the random amount of shadowing loss + + Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation - "Adds a margin for rain attenuation to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for rain attenuation to the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: """Rain Availability - "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." - "Value should be between 99 and 99.999." + Percentage of time attenuation due to range is < computed margin (range + from 99-99.999%) + + Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: """Rain Rate - "Rain rate (mm/hr) exceeded for 0.01% of the time." - "Value should be between 0 and 1000." + Rain rate (mm/hr) exceeded for 0.01% of the time + + Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle - "Polarization tilt angle of the transmitted signal relative to the horizontal." - "Value should be between 0 and 180." + Polarization tilt angle of the transmitted signal relative to the + horizontal + + Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption - "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for atmospheric absorption due to oxygen/water vapor to + the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: """Temperature - "Air temperature in degrees Celsius." - "Value should be between -273 and 100." + Air temperature in degrees Celsius + + Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: """Total Air Pressure - "Total air pressure." - "Value should be between 0 and 2000." + Total air pressure + + Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration - "Water vapor concentration." - "Value should be between 0 and 2000." + Water vapor concentration + + Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py index bea38042f41..b2ae26c0433 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyRadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,17 +35,19 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Name: - " "Type: - " """ + "Name: + "Type: + """ return self._get_table_data() @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py index 8ef1072b4d3..ca2069d37de 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyRfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,17 +36,23 @@ def parent(self): @property def enable_passive_noise(self) -> bool: """Enable Passive Noise - "If true, the noise contributions of antennas and passive components are included in cosite simulation. Note: Antenna and passive component noise is always included in link analysis simulation.." - "Value should be 'true' or 'false'." + If true, the noise contributions of antennas and passive components are + included in cosite simulation. Note: Antenna and passive component + noise is always included in link analysis simulation. + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Passive Noise") - return val # type: ignore + return val # type: ignore @property def enforce_thermal_noise_floor(self) -> bool: """Enforce Thermal Noise Floor - "If true, all broadband noise is limited by the thermal noise floor (-174 dBm/Hz)." - "Value should be 'true' or 'false'." + If true, all broadband noise is limited by the thermal noise floor (-174 + dBm/Hz) + + Value should be 'true' or 'false'. """ val = self._get_property("Enforce Thermal Noise Floor") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py index e4089061f36..1b6c7487d2e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyRxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,29 +37,32 @@ def parent(self): @property def file(self) -> str: """File - "Name of the measurement source." - "Value should be a full file path." + Name of the measurement source + + Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: """Source File - "Name of the measurement source." - "Value should be a full file path." + Name of the measurement source + + Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def receive_frequency(self) -> float: """Receive Frequency - "Channel associated with the measurement file." - " """ + Channel associated with the measurement file + + """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class MeasurementModeOption(Enum): AUDIO_SINAD = "Audio SINAD" @@ -73,173 +72,193 @@ class MeasurementModeOption(Enum): @property def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode - "Defines the mode for the receiver measurement." - " """ + Defines the mode for the receiver measurement + + """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] - return val # type: ignore + return val # type: ignore @property def sinad_threshold(self) -> float: """SINAD Threshold - "SINAD Threshold used for the receiver measurements." - "Value should be between 5 and 20." + SINAD Threshold used for the receiver measurements + + Value should be between 5 and 20. """ val = self._get_property("SINAD Threshold") - return val # type: ignore + return val # type: ignore @property def gps_cnr_threshold(self) -> float: """GPS CNR Threshold - "GPS CNR Threshold used for the receiver measurements." - "Value should be between 15 and 30." + GPS CNR Threshold used for the receiver measurements + + Value should be between 15 and 30. """ val = self._get_property("GPS CNR Threshold") - return val # type: ignore + return val # type: ignore @property def ber_threshold(self) -> float: """BER Threshold - "BER Threshold used for the receiver measurements." - "Value should be between -12 and -1." + BER Threshold used for the receiver measurements + + Value should be between -12 and -1. """ val = self._get_property("BER Threshold") - return val # type: ignore + return val # type: ignore @property def default_intended_power(self) -> bool: """Default Intended Power - "Specify the intended signal." - "Value should be 'true' or 'false'." + Specify the intended signal + + Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return val # type: ignore + return val # type: ignore @property def intended_signal_power(self) -> float: """Intended Signal Power - "Specify the power level of the intended signal." - "Value should be between -140 and -50." + Specify the power level of the intended signal + + Value should be between -140 and -50. """ val = self._get_property("Intended Signal Power") - return val # type: ignore + return val # type: ignore @property def freq_deviation(self) -> float: """Freq. Deviation - "Specify the frequency deviation of the intended signal." - "Value should be between 1000 and 200000." + Specify the frequency deviation of the intended signal + + Value should be between 1000 and 200000. """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def modulation_depth(self) -> float: """Modulation Depth - "Specify the modulation depth of the intended signal." - "Value should be between 10 and 100." + Specify the modulation depth of the intended signal + + Value should be between 10 and 100. """ val = self._get_property("Modulation Depth") - return val # type: ignore + return val # type: ignore @property def measure_selectivity(self) -> bool: """Measure Selectivity - "Enable/disable the measurement of the receiver's selectivity." - "Value should be 'true' or 'false'." + Enable/disable the measurement of the receiver's selectivity + + Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return val # type: ignore + return val # type: ignore @property def measure_mixer_products(self) -> bool: """Measure Mixer Products - "Enable/disable the measurement of the receiver's mixer products." - "Value should be 'true' or 'false'." + Enable/disable the measurement of the receiver's mixer products + + Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return val # type: ignore + return val # type: ignore @property def max_rf_order(self) -> int: """Max RF Order - "Max RF Order of the mixer products to measure." - "Value should be greater than 1." + Max RF Order of the mixer products to measure + + Value should be greater than 1. """ val = self._get_property("Max RF Order") - return val # type: ignore + return val # type: ignore @property def max_lo_order(self) -> int: """Max LO Order - "Max LO Order of the mixer products to measure." - "Value should be greater than 1." + Max LO Order of the mixer products to measure + + Value should be greater than 1. """ val = self._get_property("Max LO Order") - return val # type: ignore + return val # type: ignore @property def include_if(self) -> bool: """Include IF - "Enable/disable the measurement of the IF channel." - "Value should be 'true' or 'false'." + Enable/disable the measurement of the IF channel + + Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return val # type: ignore + return val # type: ignore @property def measure_saturation(self) -> bool: """Measure Saturation - "Enable/disable measurement of the receiver's saturation level." - "Value should be 'true' or 'false'." + Enable/disable measurement of the receiver's saturation level + + Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: """Use AMS Limits - "Allow AMS to determine the limits for measuring saturation." - "Value should be 'true' or 'false'." + Allow AMS to determine the limits for measuring saturation + + Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: """Start Frequency - "Starting frequency for the measurement sweep." - "Value should be greater than 1e+06." + Starting frequency for the measurement sweep + + Value should be greater than 1e+06. """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: """Stop Frequency - "Stopping frequency for the measurement sweep." - "Value should be less than 6e+09." + Stopping frequency for the measurement sweep + + Value should be less than 6e+09. """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def samples(self) -> int: """Samples - "Number of measurement samples for each frequency." - "Value should be between 2 and 100." + Number of measurement samples for each frequency + + Value should be between 2 and 100. """ val = self._get_property("Samples") - return val # type: ignore + return val # type: ignore @property def exclude_mixer_products_below_noise(self) -> bool: """Exclude Mixer Products Below Noise - "Include/Exclude Mixer Products below the noise." - "Value should be 'true' or 'false'." + Include/Exclude Mixer Products below the noise + + Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py index 7d430b47f34..91760a0a914 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -46,104 +42,117 @@ class MixerProductTaperOption(Enum): @property def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper - "Taper for setting amplitude of mixer products." - " """ + Taper for setting amplitude of mixer products + + """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] - return val # type: ignore + return val # type: ignore @property def mixer_product_susceptibility(self) -> float: """Mixer Product Susceptibility - "Mixer product amplitudes (relative to the in-band susceptibility)." - "Value should be between -200 and 200." + Mixer product amplitudes (relative to the in-band susceptibility) + + Value should be between -200 and 200. """ val = self._get_property("Mixer Product Susceptibility") - return val # type: ignore + return val # type: ignore @property def spurious_rejection(self) -> float: """Spurious Rejection - "Mixer product amplitudes (relative to the in-band susceptibility)." - "Value should be between -200 and 200." + Mixer product amplitudes (relative to the in-band susceptibility) + + Value should be between -200 and 200. """ val = self._get_property("Spurious Rejection") - return val # type: ignore + return val # type: ignore @property def minimum_tuning_frequency(self) -> float: """Minimum Tuning Frequency - "Minimum tuning frequency of Rx's local oscillator." - "Value should be between 1 and 1e+11." + Minimum tuning frequency of Rx's local oscillator + + Value should be between 1 and 1e+11. """ val = self._get_property("Minimum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def maximum_tuning_frequency(self) -> float: """Maximum Tuning Frequency - "Maximum tuning frequency of Rx's local oscillator." - "Value should be between 1 and 1e+11." + Maximum tuning frequency of Rx's local oscillator + + Value should be between 1 and 1e+11. """ val = self._get_property("Maximum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def mixer_product_slope(self) -> float: """Mixer Product Slope - "Rate of decrease for amplitude of Rx's local oscillator harmonics (dB/decade)." - "Value should be between 0 and 100." + Rate of decrease for amplitude of Rx's local oscillator harmonics + (dB/decade) + + Value should be between 0 and 100. """ val = self._get_property("Mixer Product Slope") - return val # type: ignore + return val # type: ignore @property def mixer_product_intercept(self) -> float: """Mixer Product Intercept - "Mixer product intercept (dBc)." - "Value should be between 0 and 100." + Mixer product intercept (dBc) + + Value should be between 0 and 100. """ val = self._get_property("Mixer Product Intercept") - return val # type: ignore + return val # type: ignore @property def bandwidth_80_db(self) -> float: """Bandwidth 80 dB - "Bandwidth where Rx's susceptibility envelope is 80 dB above in-band susceptibility level." - "Value should be greater than 1." + Bandwidth where Rx's susceptibility envelope is 80 dB above in-band + susceptibility level + + Value should be greater than 1. """ val = self._get_property("Bandwidth 80 dB") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def image_rejection(self) -> float: """Image Rejection - "Image frequency amplitude (relative to the in-band susceptibility)." - "Value should be between -200 and 200." + Image frequency amplitude (relative to the in-band susceptibility) + + Value should be between -200 and 200. """ val = self._get_property("Image Rejection") - return val # type: ignore + return val # type: ignore @property def maximum_rf_harmonic_order(self) -> int: """Maximum RF Harmonic Order - "Maximum order of RF frequency." - "Value should be between 1 and 100." + Maximum order of RF frequency + + Value should be between 1 and 100. """ val = self._get_property("Maximum RF Harmonic Order") - return val # type: ignore + return val # type: ignore @property def maximum_lo_harmonic_order(self) -> int: """Maximum LO Harmonic Order - "Maximum order of the LO frequency." - "Value should be between 1 and 100." + Maximum order of the LO frequency + + Value should be between 1 and 100. """ val = self._get_property("Maximum LO Harmonic Order") - return val # type: ignore + return val # type: ignore class MixingModeOption(Enum): LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" @@ -153,29 +162,32 @@ class MixingModeOption(Enum): @property def mixing_mode(self) -> MixingModeOption: """Mixing Mode - "Specifies whether the IF frequency is > or < RF channel frequency." - " """ + Specifies whether the IF frequency is > or < RF channel frequency + + """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] - return val # type: ignore + return val # type: ignore @property def first_if_frequency(self): """First IF Frequency - "Intermediate frequency for Rx's 1st conversion stage." - "Value should be a mathematical expression." + Intermediate frequency for Rx's 1st conversion stage + + Value should be a mathematical expression. """ val = self._get_property("First IF Frequency") - return val # type: ignore + return val # type: ignore @property def rf_transition_frequency(self) -> float: """RF Transition Frequency - "RF Frequency Transition point." - " """ + RF Frequency Transition point + + """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class UseHighLOOption(Enum): ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" @@ -184,11 +196,12 @@ class UseHighLOOption(Enum): @property def use_high_lo(self) -> UseHighLOOption: """Use High LO - "Use High LO above/below the transition frequency." - " """ + Use High LO above/below the transition frequency + + """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] - return val # type: ignore + return val # type: ignore class MixerProductTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -197,8 +210,10 @@ class MixerProductTableUnitsOption(Enum): @property def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units - "Specifies the units for the Mixer Products." - " """ + Specifies the units for the Mixer Products + + """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py index ab6a6613919..82324948947 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,3 +32,4 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py index 390e072de87..f2370826986 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,8 +36,11 @@ def parent(self): @property def use_arithmetic_mean(self) -> bool: """Use Arithmetic Mean - "Uses arithmetic mean to center bandwidths about the tuned channel frequency." - "Value should be 'true' or 'false'." + Uses arithmetic mean to center bandwidths about the tuned channel + frequency + + Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py index 664a5d34e8a..6613aa9125f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyRxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,14 +36,14 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): - " Value should be a mathematical expression." - "Bandwidth: - " Value should be greater than 1." - "Power: - " Value should be between -200 and 150." + "Frequency (MHz): + Value should be a mathematical expression. + "Bandwidth: + Value should be greater than 1. + "Power: + Value should be between -200 and 150. """ return self._get_table_data() @@ -58,8 +54,10 @@ class SpurTableUnitsOption(Enum): @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units - "Specifies the units for the Spurs." - " """ + Specifies the units for the Spurs + + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py index 92edf5a4b44..844f5931853 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -47,130 +43,147 @@ class SensitivityUnitsOption(Enum): @property def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units - "Units to use for the Rx Sensitivity." - " """ + Units to use for the Rx Sensitivity + + """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] - return val # type: ignore + return val # type: ignore @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr - "Received signal power level at the Rx's antenna terminal." - "Value should be between -1000 and 1000." + """Min. Receive Signal Pwr + Received signal power level at the Rx's antenna terminal + + Value should be between -1000 and 1000. """ val = self._get_property("Min. Receive Signal Pwr ") - return val # type: ignore + return val # type: ignore @property def snr_at_rx_signal_pwr(self) -> float: """SNR at Rx Signal Pwr - "Signal-to-Noise Ratio (dB) at specified received signal power at the Rx's antenna terminal." - "Value should be between -1000 and 1000." + Signal-to-Noise Ratio (dB) at specified received signal power at the + Rx's antenna terminal + + Value should be between -1000 and 1000. """ val = self._get_property("SNR at Rx Signal Pwr") - return val # type: ignore + return val # type: ignore @property def processing_gain(self) -> float: """Processing Gain - "Rx processing gain (dB) of (optional) despreader." - "Value should be between -1000 and 1000." + Rx processing gain (dB) of (optional) despreader + + Value should be between -1000 and 1000. """ val = self._get_property("Processing Gain") - return val # type: ignore + return val # type: ignore @property def apply_pg_to_narrowband_only(self) -> bool: """Apply PG to Narrowband Only - "Processing gain captures the despreading effect and applies to NB signals only (not BB noise) when enabled." - "Value should be 'true' or 'false'." + Processing gain captures the despreading effect and applies to NB + signals only (not BB noise) when enabled + + Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return val # type: ignore + return val # type: ignore @property def saturation_level(self) -> float: """Saturation Level - "Rx input saturation level." - "Value should be between -1000 and 1000." + Rx input saturation level + + Value should be between -1000 and 1000. """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def rx_noise_figure(self) -> float: """Rx Noise Figure - "Rx noise figure (dB)." - "Value should be between 0 and 1000." + Rx noise figure (dB) + + Value should be between 0 and 1000. """ val = self._get_property("Rx Noise Figure") - return val # type: ignore + return val # type: ignore @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity - "Rx minimum sensitivity level (dBm)." - "Value should be between -1000 and 1000." + """Receiver Sensitivity + Rx minimum sensitivity level (dBm) + + Value should be between -1000 and 1000. """ val = self._get_property("Receiver Sensitivity ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity - "SNR or SINAD at the specified sensitivity level." - "Value should be between -1000 and 1000." + """SNR/SINAD at Sensitivity + SNR or SINAD at the specified sensitivity level + + Value should be between -1000 and 1000. """ val = self._get_property("SNR/SINAD at Sensitivity ") - return val # type: ignore + return val # type: ignore @property def perform_rx_intermod_analysis(self) -> bool: """Perform Rx Intermod Analysis - "Performs a non-linear intermod analysis for the Rx." - "Value should be 'true' or 'false'." + Performs a non-linear intermod analysis for the Rx + + Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: """Amplifier Saturation Level - "Internal Rx Amplifier's Saturation Level." - "Value should be between -200 and 200." + Internal Rx Amplifier's Saturation Level + + Value should be between -200 and 200. """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input - "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." - "Value should be between -1000 and 1000." + """P1-dB Point, Ref. Input + Rx's 1 dB Compression Point - total power > P1dB saturates the receiver + + Value should be between -1000 and 1000. """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: """IP3, Ref. Input - "Internal Rx Amplifier's 3rd order intercept point." - "Value should be between -1000 and 1000." + Internal Rx Amplifier's 3rd order intercept point + + Value should be between -1000 and 1000. """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: """Max Intermod Order - "Internal Rx Amplifier's maximum intermod order to compute." - "Value should be between 3 and 20." + Internal Rx Amplifier's maximum intermod order to compute + + Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py index 5fe4908b84e..80dd13ec8b0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlySamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,12 +36,12 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Min: - " Value should be greater than 1." - "Max: - " Value should be greater than 1." + "Min: + Value should be greater than 1. + "Max: + Value should be greater than 1. """ return self._get_table_data() @@ -57,68 +53,80 @@ class SamplingTypeOption(Enum): @property def sampling_type(self) -> SamplingTypeOption: """Sampling Type - "Sampling to apply to this configuration." - " """ + Sampling to apply to this configuration + + """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def specify_percentage(self) -> bool: """Specify Percentage - "Specify the number of channels to simulate via a percentage of the total available band channels." - "Value should be 'true' or 'false'." + Specify the number of channels to simulate via a percentage of the total + available band channels + + Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return val # type: ignore + return val # type: ignore @property def percentage_of_channels(self) -> float: """Percentage of Channels - "Percentage of the Band Channels to simulate." - "Value should be between 1 and 100." + Percentage of the Band Channels to simulate + + Value should be between 1 and 100. """ val = self._get_property("Percentage of Channels") - return val # type: ignore + return val # type: ignore @property def max__channelsrangeband(self) -> int: """Max # Channels/Range/Band - "Maximum number of Band Channels to simulate." - "Value should be between 1 and 100000." + Maximum number of Band Channels to simulate + + Value should be between 1 and 100000. """ val = self._get_property("Max # Channels/Range/Band") - return val # type: ignore + return val # type: ignore @property def seed(self) -> int: """Seed - "Seed for random channel generator." - "Value should be greater than 0." + Seed for random channel generator + + Value should be greater than 0. """ val = self._get_property("Seed") - return val # type: ignore + return val # type: ignore @property def total_tx_channels(self) -> int: """Total Tx Channels - "Total number of transmit channels this configuration is capable of operating on." - " """ + Total number of transmit channels this configuration is capable of + operating on + + """ val = self._get_property("Total Tx Channels") - return val # type: ignore + return val # type: ignore @property def total_rx_channels(self) -> int: """Total Rx Channels - "Total number of receive channels this configuration is capable of operating on." - " """ + Total number of receive channels this configuration is capable of + operating on + + """ val = self._get_property("Total Rx Channels") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings - "Warning(s) for this node." - " """ + Warning(s) for this node + + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py index f8d95885fdb..8c83f3d7523 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlySceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,29 +37,33 @@ def parent(self): @property def show_relative_coordinates(self) -> bool: """Show Relative Coordinates - "Show Scene Group position and orientation in parent-node coords (False) or relative to placement coords (True)." - "Value should be 'true' or 'false'." + Show Scene Group position and orientation in parent-node coords (False) + or relative to placement coords (True) + + Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @property def position(self): """Position - "Set position of the Scene Group in parent-node coordinates." - "Value should be x/y/z, delimited by spaces." + Set position of the Scene Group in parent-node coordinates + + Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): """Relative Position - "Set position of the Scene Group relative to placement coordinates." - "Value should be x/y/z, delimited by spaces." + Set position of the Scene Group relative to placement coordinates + + Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -72,52 +72,59 @@ class OrientationModeOption(Enum): @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode - "Select the convention (order of rotations) for configuring orientation." - " """ + Select the convention (order of rotations) for configuring orientation + + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @property def orientation(self): """Orientation - "Set orientation of the Scene Group relative to parent-node coordinates." - "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + Set orientation of the Scene Group relative to parent-node coordinates + + Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): """Relative Orientation - "Set orientation of the Scene Group relative to placement coordinates." - "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + Set orientation of the Scene Group relative to placement coordinates + + Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def show_axes(self) -> bool: """Show Axes - "Toggle (on/off) display of Scene Group coordinate axes in 3-D window." - "Value should be 'true' or 'false'." + Toggle (on/off) display of Scene Group coordinate axes in 3-D window + + Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @property def box_color(self): """Box Color - "Set color of the bounding box of the Scene Group." - "Color should be in RGB form: #RRGGBB." + Set color of the bounding box of the Scene Group + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Box Color") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py index 8ca840a4303..ccb9043c10a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,34 +36,40 @@ def parent(self): @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling (A sweep disabled in HFSS/Layout cannot be enabled in EMIT)." - "Value should be 'true' or 'false'." + Enable/Disable coupling (A sweep disabled in HFSS/Layout cannot be + enabled in EMIT) + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." + Enables/disables refined sampling of the frequency domain. + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." + Enables/disables adaptive refinement the frequency domain sampling. + + Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain - "Points to use when refining the frequency domain.." - " """ + Points to use when refining the frequency domain. + + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py index 670ac558bda..f0162cbac27 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlySolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,8 +36,11 @@ def parent(self): @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling (A setup disabled in HFSS/Layout cannot be enabled in EMIT)." - "Value should be 'true' or 'false'." + Enable/Disable coupling (A setup disabled in HFSS/Layout cannot be + enabled in EMIT) + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py index 6f3ab51bd45..d8c06a05afc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -36,28 +32,31 @@ def __init__(self, oDesign, result_id, node_id): @property def filename(self) -> str: """Filename - "Name of file defining the outboard component." - "Value should be a full file path." + Name of file defining the outboard component + + Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." + System Noise temperature (K) of the component + + Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TxPortOption(Enum): PORT_1 = "Port 1" @@ -66,11 +65,12 @@ class TxPortOption(Enum): @property def tx_port(self) -> TxPortOption: """Tx Port - "Specifies which port on the TR Switch is part of the Tx path.." - " """ + Specifies which port on the TR Switch is part of the Tx path. + + """ val = self._get_property("Tx Port") val = self.TxPortOption[val] - return val # type: ignore + return val # type: ignore class CommonPortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -79,93 +79,106 @@ class CommonPortLocationOption(Enum): @property def common_port_location(self) -> CommonPortLocationOption: """Common Port Location - "Defines the orientation of the tr switch.." - " """ + Defines the orientation of the tr switch. + + """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: """Insertion Loss - "TR Switch in-band loss in forward direction.." - "Value should be between 0 and 100." + TR Switch in-band loss in forward direction. + + Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_isolation(self) -> bool: """Finite Isolation - "Use a finite isolation. If disabled, the tr switch model is ideal (infinite isolation).." - "Value should be 'true' or 'false'." + Use a finite isolation. If disabled, the tr switch model is ideal + (infinite isolation). + + Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @property def isolation(self) -> float: """Isolation - "TR Switch reverse isolation (i.e., loss between the Tx/Rx ports).." - "Value should be between 0 and 100." + TR Switch reverse isolation (i.e., loss between the Tx/Rx ports). + + Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: """Finite Bandwidth - "Use a finite bandwidth. If disabled, the tr switch model is ideal (infinite bandwidth).." - "Value should be 'true' or 'false'." + Use a finite bandwidth. If disabled, the tr switch model is ideal + (infinite bandwidth). + + Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: """Out-of-band Attenuation - "Out-of-band loss (attenuation)." - "Value should be between 0 and 200." + Out-of-band loss (attenuation) + + Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: """Lower Stop Band - "Lower stop band frequency." - "Value should be between 1 and 1e+11." + Lower stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: """Lower Cutoff - "Lower cutoff frequency." - "Value should be between 1 and 1e+11." + Lower cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: """Higher Cutoff - "Higher cutoff frequency." - "Value should be between 1 and 1e+11." + Higher cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: """Higher Stop Band - "Higher stop band frequency." - "Value should be between 1 and 1e+11." + Higher stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py index ee86f8436a6..2488ab99838 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTerminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -36,28 +32,31 @@ def __init__(self, oDesign, result_id, node_id): @property def filename(self) -> str: """Filename - "Name of file defining the Terminator." - "Value should be a full file path." + Name of file defining the Terminator + + Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." + System Noise temperature (K) of the component + + Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -66,11 +65,13 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: """Type - "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + Type of terminator model to use. Options include: By File (measured or + simulated) or Parametric + + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class PortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -79,25 +80,31 @@ class PortLocationOption(Enum): @property def port_location(self) -> PortLocationOption: """Port Location - "Defines the orientation of the terminator.." - " """ + Defines the orientation of the terminator. + + """ val = self._get_property("Port Location") val = self.PortLocationOption[val] - return val # type: ignore + return val # type: ignore @property def vswr(self) -> float: """VSWR - "The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch between the terminator and the connected component (RF System, Antenna, etc)." - "Value should be between 1 and 100." + The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch + between the terminator and the connected component (RF System, Antenna, + etc) + + Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings - "Warning(s) for this node." - " """ + Warning(s) for this node + + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py index 25c6b44c463..40ce5119d27 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,77 +36,87 @@ def parent(self): @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." + Enable/Disable coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." + Enables/disables refined sampling of the frequency domain. + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." + Enables/disables adaptive refinement the frequency domain sampling. + + Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain - "Points to use when refining the frequency domain.." - " """ + Points to use when refining the frequency domain. + + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def filename(self) -> str: """Filename - "Name of file with coupling data.." - "Value should be a full file path." + Name of file with coupling data. + + Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File - "Coupling data generated by Savant and exported as a matched file." - " """ + Coupling data generated by Savant and exported as a matched file + + """ val = self._get_property("Savant Matched Coupling File") - return val # type: ignore + return val # type: ignore @property def enable_em_isolation(self) -> bool: """Enable EM Isolation - "Enables/disables EM isolation." - "Value should be 'true' or 'false'." + Enables/disables EM isolation + + Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return val # type: ignore + return val # type: ignore @property def port_antenna_assignment(self): """Port-Antenna Assignment - "Maps each port in the coupling file to an antenna in the project." + Maps each port in the coupling file to an antenna in the project + "A list of values." - " """ + """ val = self._get_property("Port-Antenna Assignment") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py index fb0fbd6687f..f9e38f02e4a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,98 +37,112 @@ def parent(self): @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." + Enable/Disable coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A - "First antenna of the pair to apply the coupling values to." - " """ + First antenna of the pair to apply the coupling values to + + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B - "Second antenna of the pair to apply the coupling values to." - " """ + Second antenna of the pair to apply the coupling values to + + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." + Enables/disables refined sampling of the frequency domain. + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." + Enables/disables adaptive refinement the frequency domain sampling. + + Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain - "Points to use when refining the frequency domain.." - " """ + Points to use when refining the frequency domain. + + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def ground_reflection_coeff(self) -> float: """Ground Reflection Coeff. - "The ground reflection coefficient." - "Value should be between -100 and 100." + The ground reflection coefficient + + Value should be between -100 and 100. """ val = self._get_property("Ground Reflection Coeff.") - return val # type: ignore + return val # type: ignore @property def pointspeak(self) -> int: """Points/Peak - "Number of points used to model each peak in frequency vs loss curve." - "Value should be between 3 and 100." + Number of points used to model each peak in frequency vs loss curve + + Value should be between 3 and 100. """ val = self._get_property("Points/Peak") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: """Custom Fading Margin - "Sets a custom fading margin to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a custom fading margin to be applied to all coupling defined by + this node + + Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: """Polarization Mismatch - "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for polarization mismatch to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: """Pointing Error Loss - "Sets a margin for pointing error loss to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for pointing error loss to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -143,98 +153,114 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: """Fading Type - "Specify the type of fading to include." - " """ + Specify the type of fading to include + + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: """Fading Availability - "The probability that the propagation loss in dB is below its median value plus the margin." - "Value should be between 0 and 100." + The probability that the propagation loss in dB is below its median + value plus the margin + + Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: """Std Deviation - "Standard deviation modeling the random amount of shadowing loss." - "Value should be between 0 and 100." + Standard deviation modeling the random amount of shadowing loss + + Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation - "Adds a margin for rain attenuation to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for rain attenuation to the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: """Rain Availability - "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." - "Value should be between 99 and 99.999." + Percentage of time attenuation due to range is < computed margin (range + from 99-99.999%) + + Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: """Rain Rate - "Rain rate (mm/hr) exceeded for 0.01% of the time." - "Value should be between 0 and 1000." + Rain rate (mm/hr) exceeded for 0.01% of the time + + Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle - "Polarization tilt angle of the transmitted signal relative to the horizontal." - "Value should be between 0 and 180." + Polarization tilt angle of the transmitted signal relative to the + horizontal + + Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption - "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for atmospheric absorption due to oxygen/water vapor to + the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: """Temperature - "Air temperature in degrees Celsius." - "Value should be between -273 and 100." + Air temperature in degrees Celsius + + Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: """Total Air Pressure - "Total air pressure." - "Value should be between 0 and 2000." + Total air pressure + + Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration - "Water vapor concentration." - "Value should be between 0 and 2000." + Water vapor concentration + + Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py index 8c81896533e..e8c77ca5b2f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,10 +38,10 @@ def parent(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): - " Value should be a mathematical expression." - "Amplitude (dBm/Hz): - " Value should be between -200 and 150." + "Frequency (MHz): + Value should be a mathematical expression. + "Amplitude (dBm/Hz): + Value should be between -200 and 150. """ return self._get_table_data() @@ -58,17 +54,21 @@ class NoiseBehaviorOption(Enum): @property def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior - "Specifies the behavior of the parametric noise profile." - " """ + Specifies the behavior of the parametric noise profile + + """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] - return val # type: ignore + return val # type: ignore @property def use_log_linear_interpolation(self) -> bool: """Use Log-Linear Interpolation - "If true, linear interpolation in the log domain is used. If false, linear interpolation in the linear domain is used.." - "Value should be 'true' or 'false'." + If true, linear interpolation in the log domain is used. If false, + linear interpolation in the linear domain is used. + + Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py index c36bc5b547f..ac3c0668b0e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -45,8 +41,10 @@ class HarmonicTableUnitsOption(Enum): @property def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units - "Specifies the units for the Harmonics." - " """ + Specifies the units for the Harmonics + + """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py index a130a377d2a..8614bf2c4c5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyTxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,64 +36,72 @@ def parent(self): @property def file(self) -> str: """File - "Name of the measurement source." - "Value should be a full file path." + Name of the measurement source + + Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: """Source File - "Name of the measurement source." - "Value should be a full file path." + Name of the measurement source + + Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def transmit_frequency(self) -> float: """Transmit Frequency - "Channel associated with the measurement file." - " """ + Channel associated with the measurement file + + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: """Use AMS Limits - "Allow AMS to define the frequency limits for the measurements." - "Value should be 'true' or 'false'." + Allow AMS to define the frequency limits for the measurements + + Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: """Start Frequency - "Starting frequency for the measurement sweep." - "Value should be greater than 1e+06." + Starting frequency for the measurement sweep + + Value should be greater than 1e+06. """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: """Stop Frequency - "Stopping frequency for the measurement sweep." - "Value should be less than 6e+09." + Stopping frequency for the measurement sweep + + Value should be less than 6e+09. """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def exclude_harmonics_below_noise(self) -> bool: """Exclude Harmonics Below Noise - "Include/Exclude Harmonics below the noise." - "Value should be 'true' or 'false'." + Include/Exclude Harmonics below the noise + + Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py index a69d45b531a..618c420bd0c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -45,17 +41,20 @@ class NarrowbandBehaviorOption(Enum): @property def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior - "Specifies the behavior of the parametric narrowband emissions mask." - " """ + Specifies the behavior of the parametric narrowband emissions mask + + """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] - return val # type: ignore + return val # type: ignore @property def measurement_frequency(self) -> float: """Measurement Frequency - "Measurement frequency for the absolute freq/amp pairs.." - " """ + Measurement frequency for the absolute freq/amp pairs. + + """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py index 04e760a806b..da2c3b9bd01 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyTxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,101 +36,114 @@ def parent(self): @property def output_voltage_peak(self) -> float: """Output Voltage Peak - "Output High Voltage Level: maximum voltage of the digital signal." - " """ + Output High Voltage Level: maximum voltage of the digital signal + + """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") - return val # type: ignore + return val # type: ignore @property def include_phase_noise(self) -> bool: """Include Phase Noise - "Include oscillator phase noise in Tx spectral profile." - "Value should be 'true' or 'false'." + Include oscillator phase noise in Tx spectral profile + + Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @property def tx_broadband_noise(self) -> float: """Tx Broadband Noise - "Transmitters broadband noise level." - "Value should be less than 1000." + Transmitters broadband noise level + + Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @property def perform_tx_intermod_analysis(self) -> bool: """Perform Tx Intermod Analysis - "Performs a non-linear intermod analysis for the Tx." - "Value should be 'true' or 'false'." + Performs a non-linear intermod analysis for the Tx + + Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @property def internal_amp_gain(self) -> float: """Internal Amp Gain - "Internal Tx Amplifier's Gain." - "Value should be between -1000 and 1000." + Internal Tx Amplifier's Gain + + Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: """Noise Figure - "Internal Tx Amplifier's noise figure." - "Value should be between 0 and 50." + Internal Tx Amplifier's noise figure + + Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: """Amplifier Saturation Level - "Internal Tx Amplifier's Saturation Level." - "Value should be between -200 and 200." + Internal Tx Amplifier's Saturation Level + + Value should be between -200 and 200. """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input - "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." - "Value should be between -200 and 200." + """P1-dB Point, Ref. Input + Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB + saturates the internal Tx amplifier + + Value should be between -200 and 200. """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: """IP3, Ref. Input - "Internal Tx Amplifier's 3rd order intercept point." - "Value should be between -200 and 200." + Internal Tx Amplifier's 3rd order intercept point + + Value should be between -200 and 200. """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: """Reverse Isolation - "Internal Tx Amplifier's Reverse Isolation." - "Value should be between -200 and 200." + Internal Tx Amplifier's Reverse Isolation + + Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: """Max Intermod Order - "Internal Tx Amplifier's maximum intermod order to compute." - "Value should be between 3 and 20." + Internal Tx Amplifier's maximum intermod order to compute + + Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py index 5c2c1213a47..e44943a4dd8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -45,11 +41,12 @@ class SpectrumTypeOption(Enum): @property def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type - "Specifies EMI Margins to calculate." - " """ + Specifies EMI Margins to calculate + + """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] - return val # type: ignore + return val # type: ignore class TxPowerOption(Enum): PEAK_POWER = "Peak Power" @@ -58,49 +55,54 @@ class TxPowerOption(Enum): @property def tx_power(self) -> TxPowerOption: """Tx Power - "Method used to specify the power." - " """ + Method used to specify the power + + """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] - return val # type: ignore + return val # type: ignore @property def peak_power(self) -> float: """Peak Power - "Tx's carrier frequency peak power." - "Value should be between -1000 and 1000." + Tx's carrier frequency peak power + + Value should be between -1000 and 1000. """ val = self._get_property("Peak Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def average_power(self) -> float: """Average Power - "Tx's fundamental level specified by average power." - "Value should be between -1000 and 1000." + Tx's fundamental level specified by average power + + Value should be between -1000 and 1000. """ val = self._get_property("Average Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def include_phase_noise(self) -> bool: """Include Phase Noise - "Include oscillator phase noise in Tx spectral profile." - "Value should be 'true' or 'false'." + Include oscillator phase noise in Tx spectral profile + + Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @property def tx_broadband_noise(self) -> float: """Tx Broadband Noise - "Transmitters broadband noise level." - "Value should be less than 1000." + Transmitters broadband noise level + + Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore class HarmonicTaperOption(Enum): CONSTANT = "Constant" @@ -111,155 +113,175 @@ class HarmonicTaperOption(Enum): @property def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper - "Taper type used to set amplitude of harmonics." - " """ + Taper type used to set amplitude of harmonics + + """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] - return val # type: ignore + return val # type: ignore @property def harmonic_amplitude(self) -> float: """Harmonic Amplitude - "Amplitude (relative to the carrier power) of harmonics." - "Value should be between -1000 and 0." + Amplitude (relative to the carrier power) of harmonics + + Value should be between -1000 and 0. """ val = self._get_property("Harmonic Amplitude") - return val # type: ignore + return val # type: ignore @property def harmonic_slope(self) -> float: """Harmonic Slope - "Rate of decrease for harmonics' amplitudes (dB/decade)." - "Value should be between -1000 and 0." + Rate of decrease for harmonics' amplitudes (dB/decade) + + Value should be between -1000 and 0. """ val = self._get_property("Harmonic Slope") - return val # type: ignore + return val # type: ignore @property def harmonic_intercept(self) -> float: """Harmonic Intercept - "Amplitude intercept at the fundamental (dBc)." - "Value should be between -1000 and 0." + Amplitude intercept at the fundamental (dBc) + + Value should be between -1000 and 0. """ val = self._get_property("Harmonic Intercept") - return val # type: ignore + return val # type: ignore @property def enable_harmonic_bw_expansion(self) -> bool: """Enable Harmonic BW Expansion - "If (True), bandwidth of harmonics increases proportional to the harmonic number." - "Value should be 'true' or 'false'." + If (True), bandwidth of harmonics increases proportional to the harmonic + number + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return val # type: ignore + return val # type: ignore @property def number_of_harmonics(self) -> int: """Number of Harmonics - "Maximum number of harmonics modeled." - "Value should be between 1 and 1000." + Maximum number of harmonics modeled + + Value should be between 1 and 1000. """ val = self._get_property("Number of Harmonics") - return val # type: ignore + return val # type: ignore @property def second_harmonic_level(self) -> float: """Second Harmonic Level - "Amplitude (relative to the carrier power) of the 2nd harmonic." - "Value should be between -1000 and 0." + Amplitude (relative to the carrier power) of the 2nd harmonic + + Value should be between -1000 and 0. """ val = self._get_property("Second Harmonic Level") - return val # type: ignore + return val # type: ignore @property def third_harmonic_level(self) -> float: """Third Harmonic Level - "Amplitude (relative to the carrier power) of the 3rd harmonic." - "Value should be between -1000 and 0." + Amplitude (relative to the carrier power) of the 3rd harmonic + + Value should be between -1000 and 0. """ val = self._get_property("Third Harmonic Level") - return val # type: ignore + return val # type: ignore @property def other_harmonic_levels(self) -> float: """Other Harmonic Levels - "Amplitude (relative to the carrier power) of the higher order harmonics." - "Value should be between -1000 and 0." + Amplitude (relative to the carrier power) of the higher order harmonics + + Value should be between -1000 and 0. """ val = self._get_property("Other Harmonic Levels") - return val # type: ignore + return val # type: ignore @property def perform_tx_intermod_analysis(self) -> bool: """Perform Tx Intermod Analysis - "Performs a non-linear intermod analysis for the Tx." - "Value should be 'true' or 'false'." + Performs a non-linear intermod analysis for the Tx + + Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @property def internal_amp_gain(self) -> float: """Internal Amp Gain - "Internal Tx Amplifier's Gain." - "Value should be between -1000 and 1000." + Internal Tx Amplifier's Gain + + Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: """Noise Figure - "Internal Tx Amplifier's noise figure." - "Value should be between 0 and 50." + Internal Tx Amplifier's noise figure + + Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: """Amplifier Saturation Level - "Internal Tx Amplifier's Saturation Level." - "Value should be between -200 and 200." + Internal Tx Amplifier's Saturation Level + + Value should be between -200 and 200. """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input - "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." - "Value should be between -200 and 200." + """P1-dB Point, Ref. Input + Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB + saturates the internal Tx amplifier + + Value should be between -200 and 200. """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: """IP3, Ref. Input - "Internal Tx Amplifier's 3rd order intercept point." - "Value should be between -200 and 200." + Internal Tx Amplifier's 3rd order intercept point + + Value should be between -200 and 200. """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: """Reverse Isolation - "Internal Tx Amplifier's Reverse Isolation." - "Value should be between -200 and 200." + Internal Tx Amplifier's Reverse Isolation + + Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: """Max Intermod Order - "Internal Tx Amplifier's maximum intermod order to compute." - "Value should be between 3 and 20." + Internal Tx Amplifier's maximum intermod order to compute + + Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py index 276a4d25079..01a14c6f2f9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,14 +36,14 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): - " Value should be a mathematical expression." - "Bandwidth: - " Value should be greater than 1." - "Power: - " Value should be between -200 and 150." + "Frequency (MHz): + Value should be a mathematical expression. + "Bandwidth: + Value should be greater than 1. + "Power: + Value should be between -200 and 150. """ return self._get_table_data() @@ -58,8 +54,10 @@ class SpurTableUnitsOption(Enum): @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units - "Specifies the units for the Spurs." - " """ + Specifies the units for the Spurs + + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py index c84fe696856..a5e4de31cf9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,53 +37,59 @@ def parent(self): @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." + Enable/Disable coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna - "First antenna of the pair to apply the coupling values to." - " """ + First antenna of the pair to apply the coupling values to + + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna - "Second antenna of the pair to apply the coupling values to." - " """ + Second antenna of the pair to apply the coupling values to + + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." + Enables/disables refined sampling of the frequency domain. + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." + Enables/disables adaptive refinement the frequency domain sampling. + + Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain - "Points to use when refining the frequency domain.." - " """ + Points to use when refining the frequency domain. + + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class PathLossTypeOption(Enum): LOS_URBAN_CANYON = "LOS (Urban Canyon)" @@ -96,11 +98,12 @@ class PathLossTypeOption(Enum): @property def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type - "Specify LOS vs NLOS for the Walfisch-Ikegami model." - " """ + Specify LOS vs NLOS for the Walfisch-Ikegami model + + """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): DENSE_METRO = "Dense Metro" @@ -109,77 +112,88 @@ class EnvironmentOption(Enum): @property def environment(self) -> EnvironmentOption: """Environment - "Specify the environment type for the Walfisch model." - " """ + Specify the environment type for the Walfisch model + + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def roof_height(self) -> float: """Roof Height - "The height of the building where the antenna is located.." - "Value should be between 0 and 100." + The height of the building where the antenna is located. + + Value should be between 0 and 100. """ val = self._get_property("Roof Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def distance_between_buildings(self) -> float: """Distance Between Buildings - "The distance between two buildings.." - "Value should be between 0 and 100." + The distance between two buildings. + + Value should be between 0 and 100. """ val = self._get_property("Distance Between Buildings") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def street_width(self) -> float: """Street Width - "Width of the street.." - "Value should be between 0 and 100." + Width of the street. + + Value should be between 0 and 100. """ val = self._get_property("Street Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def incidence_angle(self) -> float: """Incidence Angle - "Angle between the street orientation and direction of incidence.." - "Value should be between 0 and 90." + Angle between the street orientation and direction of incidence. + + Value should be between 0 and 90. """ val = self._get_property("Incidence Angle") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: """Custom Fading Margin - "Sets a custom fading margin to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a custom fading margin to be applied to all coupling defined by + this node + + Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: """Polarization Mismatch - "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for polarization mismatch to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: """Pointing Error Loss - "Sets a margin for pointing error loss to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for pointing error loss to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -190,98 +204,114 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: """Fading Type - "Specify the type of fading to include." - " """ + Specify the type of fading to include + + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: """Fading Availability - "The probability that the propagation loss in dB is below its median value plus the margin." - "Value should be between 0 and 100." + The probability that the propagation loss in dB is below its median + value plus the margin + + Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: """Std Deviation - "Standard deviation modeling the random amount of shadowing loss." - "Value should be between 0 and 100." + Standard deviation modeling the random amount of shadowing loss + + Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation - "Adds a margin for rain attenuation to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for rain attenuation to the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: """Rain Availability - "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." - "Value should be between 99 and 99.999." + Percentage of time attenuation due to range is < computed margin (range + from 99-99.999%) + + Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: """Rain Rate - "Rain rate (mm/hr) exceeded for 0.01% of the time." - "Value should be between 0 and 1000." + Rain rate (mm/hr) exceeded for 0.01% of the time + + Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle - "Polarization tilt angle of the transmitted signal relative to the horizontal." - "Value should be between 0 and 180." + Polarization tilt angle of the transmitted signal relative to the + horizontal + + Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption - "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for atmospheric absorption due to oxygen/water vapor to + the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: """Temperature - "Air temperature in degrees Celsius." - "Value should be between -273 and 100." + Air temperature in degrees Celsius + + Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: """Total Air Pressure - "Total air pressure." - "Value should be between 0 and 2000." + Total air pressure + + Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration - "Water vapor concentration." - "Value should be between 0 and 2000." + Water vapor concentration + + Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py index 24d7d1d6a76..a57eb95b267 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyWaveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,10 +37,11 @@ def parent(self): @property def port(self): """Port - "Radio Port associated with this Band." - " """ + Radio Port associated with this Band + + """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" @@ -56,60 +53,66 @@ class WaveformOption(Enum): @property def waveform(self) -> WaveformOption: """Waveform - "Modulation used for the transmitted/received signal." - " """ + Modulation used for the transmitted/received signal + + """ val = self._get_property("Waveform") val = self.WaveformOption[val] - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: """Start Frequency - "First frequency for this band." - "Value should be between 1 and 1e+11." + First frequency for this band + + Value should be between 1 and 1e+11. """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: """Stop Frequency - "Last frequency for this band." - "Value should be between 1 and 1e+11." + Last frequency for this band + + Value should be between 1 and 1e+11. """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def channel_spacing(self) -> float: """Channel Spacing - "Spacing between channels within this band." - "Value should be between 1 and 1e+11." + Spacing between channels within this band + + Value should be between 1 and 1e+11. """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def clock_duty_cycle(self) -> float: """Clock Duty Cycle - "Clock signals duty cycle." - "Value should be between 0.001 and 1." + Clock signals duty cycle + + Value should be between 0.001 and 1. """ val = self._get_property("Clock Duty Cycle") - return val # type: ignore + return val # type: ignore @property def clock_risefall_time(self) -> float: """Clock Rise/Fall Time - "Clock signals rise/fall time." - "Value should be greater than 0." + Clock signals rise/fall time + + Value should be greater than 0. """ val = self._get_property("Clock Rise/Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore class SpreadingTypeOption(Enum): LOW_SPREAD = "Low Spread" @@ -119,82 +122,91 @@ class SpreadingTypeOption(Enum): @property def spreading_type(self) -> SpreadingTypeOption: """Spreading Type - "Type of spreading employed by the Spread Spectrum Clock." - " """ + Type of spreading employed by the Spread Spectrum Clock + + """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def spread_percentage(self) -> float: """Spread Percentage - "Peak-to-peak spread percentage." - "Value should be between 0 and 100." + Peak-to-peak spread percentage + + Value should be between 0 and 100. """ val = self._get_property("Spread Percentage") - return val # type: ignore + return val # type: ignore @property def imported_spectrum(self) -> str: """Imported Spectrum - "Value should be a full file path." + Value should be a full file path. """ val = self._get_property("Imported Spectrum") - return val # type: ignore + return val # type: ignore @property def raw_data_format(self) -> str: """Raw Data Format - "Format of the imported raw data." - " """ + Format of the imported raw data + + """ val = self._get_property("Raw Data Format") - return val # type: ignore + return val # type: ignore @property def system_impedance(self) -> float: """System Impedance - "System impedance for the imported data." - "Value should be between 0 and 1e+06." + System impedance for the imported data + + Value should be between 0 and 1e+06. """ val = self._get_property("System Impedance") val = self._convert_from_internal_units(float(val), "Resistance") - return val # type: ignore + return val # type: ignore @property def advanced_extraction_params(self) -> bool: """Advanced Extraction Params - "Show/hide advanced extraction params." - "Value should be 'true' or 'false'." + Show/hide advanced extraction params + + Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return val # type: ignore + return val # type: ignore @property def nb_window_size(self) -> float: """NB Window Size - "Window size for computing the moving average during narrowband signal detection." - "Value should be greater than 3." + Window size for computing the moving average during narrowband signal + detection + + Value should be greater than 3. """ val = self._get_property("NB Window Size") - return val # type: ignore + return val # type: ignore @property def bb_smoothing_factor(self) -> float: """BB Smoothing Factor - "Reduces the number of frequency points used for the broadband noise." - "Value should be greater than 1." + Reduces the number of frequency points used for the broadband noise + + Value should be greater than 1. """ val = self._get_property("BB Smoothing Factor") - return val # type: ignore + return val # type: ignore @property def nb_detector_threshold(self) -> float: """NB Detector Threshold - "Narrowband Detector threshold standard deviation." - "Value should be between 2 and 10." + Narrowband Detector threshold standard deviation + + Value should be between 2 and 10. """ val = self._get_property("NB Detector Threshold") - return val # type: ignore + return val # type: ignore class AlgorithmOption(Enum): FFT = "FFT" @@ -203,40 +215,44 @@ class AlgorithmOption(Enum): @property def algorithm(self) -> AlgorithmOption: """Algorithm - "Algorithm used to transform the imported time domain spectrum." - " """ + Algorithm used to transform the imported time domain spectrum + + """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] - return val # type: ignore + return val # type: ignore @property def start_time(self) -> float: """Start Time - "Initial time of the imported spectrum." - "Value should be greater than 0." + Initial time of the imported spectrum + + Value should be greater than 0. """ val = self._get_property("Start Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def stop_time(self) -> float: """Stop Time - "Final time of the imported time domain spectrum." - " """ + Final time of the imported time domain spectrum + + """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def max_frequency(self) -> float: """Max Frequency - "Frequency cutoff of the imported time domain spectrum." - "Value should be between 1 and 1e+11." + Frequency cutoff of the imported time domain spectrum + + Value should be between 1 and 1e+11. """ val = self._get_property("Max Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" @@ -252,73 +268,82 @@ class WindowTypeOption(Enum): @property def window_type(self) -> WindowTypeOption: """Window Type - "Windowing scheme used for importing time domain spectrum." - " """ + Windowing scheme used for importing time domain spectrum + + """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] - return val # type: ignore + return val # type: ignore @property def kaiser_parameter(self) -> float: """Kaiser Parameter - "Shape factor applied to the transform." - "Value should be greater than 0." + Shape factor applied to the transform + + Value should be greater than 0. """ val = self._get_property("Kaiser Parameter") - return val # type: ignore + return val # type: ignore @property def adjust_coherent_gain(self) -> bool: """Adjust Coherent Gain - "Shape factor applied to the transform." - "Value should be 'true' or 'false'." + Shape factor applied to the transform + + Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return val # type: ignore + return val # type: ignore @property def data_rate(self) -> float: """Data Rate - "Maximum data rate: helps determine shape of spectral profile." - "Value should be greater than 1." + Maximum data rate: helps determine shape of spectral profile + + Value should be greater than 1. """ val = self._get_property("Data Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @property def num_of_bits(self) -> int: """Num of Bits - "Length of the Pseudo Random Binary Sequence." - "Value should be between 1 and 1000." + Length of the Pseudo Random Binary Sequence + + Value should be between 1 and 1000. """ val = self._get_property("Num of Bits") - return val # type: ignore + return val # type: ignore @property def use_envelope(self) -> bool: """Use Envelope - "Model the waveform as a worst case envelope.." - "Value should be 'true' or 'false'." + Model the waveform as a worst case envelope. + + Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return val # type: ignore + return val # type: ignore @property def min_ptsnull(self) -> int: """Min Pts/Null - "Minimum number of points to use between each null frequency." - "Value should be between 2 and 50." + Minimum number of points to use between each null frequency + + Value should be between 2 and 50. """ val = self._get_property("Min Pts/Null") - return val # type: ignore + return val # type: ignore @property def delay_skew(self) -> float: """Delay Skew - "Delay Skew of the differential signal pairs." - "Value should be greater than 0." + Delay Skew of the differential signal pairs + + Value should be greater than 0. """ val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py index 7dc4b0ca46d..83286e93af4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ResultPlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,269 +40,336 @@ def export_model(self, file_name): @property def title(self) -> str: """Title - "Enter title at the top of the plot, room will be made for it." - " """ + Enter title at the top of the plot, room will be made for it + + """ val = self._get_property("Title") - return val # type: ignore + return val # type: ignore @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title={value}"]) @property def title_font(self): """Title Font - "Configure title font family, typeface, and size." - "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + Configure title font family, typeface, and size + + Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Title Font") - return val # type: ignore + return val # type: ignore @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title Font={value}"]) @property def show_legend(self) -> bool: """Show Legend - "Toggle (on/off) display of plot legend." - "Value should be 'true' or 'false'." + Toggle (on/off) display of plot legend + + Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return val # type: ignore + return val # type: ignore @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Legend={value}"]) @property def legend_font(self): """Legend Font - "Configure legend font family, typeface, and size." - "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + Configure legend font family, typeface, and size + + Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Legend Font") - return val # type: ignore + return val # type: ignore @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Legend Font={value}"]) @property def show_emi_thresholds(self) -> bool: """Show EMI Thresholds - "Toggles on/off visibility of the EMI Thresholds." - "Value should be 'true' or 'false'." + Toggles on/off visibility of the EMI Thresholds + + Value should be 'true' or 'false'. """ val = self._get_property("Show EMI Thresholds") - return val # type: ignore + return val # type: ignore @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show EMI Thresholds={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show EMI Thresholds={value}"]) @property def display_cad_overlay(self) -> bool: """Display CAD Overlay - "Toggle on/off overlay of CAD model in plot." - "Value should be 'true' or 'false'." + Toggle on/off overlay of CAD model in plot + + Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return val # type: ignore + return val # type: ignore @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: """Opacity - "Adjust opacity of CAD model overlay: 0 Transparent - 1 Opaque." - "Value should be between 0 and 100." + Adjust opacity of CAD model overlay: 0 Transparent - 1 Opaque + + Value should be between 0 and 100. """ val = self._get_property("Opacity") - return val # type: ignore + return val # type: ignore @opacity.setter - def opacity(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) + def opacity(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset - "Adjust vertical position of CAD model overlay." - " """ + Adjust vertical position of CAD model overlay + + """ val = self._get_property("Vertical Offset") - return val # type: ignore + return val # type: ignore @vertical_offset.setter - def vertical_offset(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) + def vertical_offset(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: """Range Axis Rotation - "Adjust view angle for CAD model overlay by rotating it about plot horizontal axis." - "Value should be between -180 and 180." + Adjust view angle for CAD model overlay by rotating it about plot + horizontal axis + + Value should be between -180 and 180. """ val = self._get_property("Range Axis Rotation") - return val # type: ignore + return val # type: ignore @range_axis_rotation.setter - def range_axis_rotation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: """Lock Axes - "Allow or prevent changing of axes when displayed plot traces are updated." - "Value should be 'true' or 'false'." + Allow or prevent changing of axes when displayed plot traces are updated + + Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return val # type: ignore + return val # type: ignore @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min - "Set lower extent of horizontal axis." - " """ + Set lower extent of horizontal axis + + """ val = self._get_property("X-axis Min") - return val # type: ignore + return val # type: ignore @x_axis_min.setter - def x_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) + def x_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max - "Set upper extent of horizontal axis." - " """ + Set upper extent of horizontal axis + + """ val = self._get_property("X-axis Max") - return val # type: ignore + return val # type: ignore @x_axis_max.setter - def x_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) + def x_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min - "Set lower extent of vertical axis." - " """ + Set lower extent of vertical axis + + """ val = self._get_property("Y-axis Min") - return val # type: ignore + return val # type: ignore @y_axis_min.setter - def y_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) + def y_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max - "Set upper extent of vertical axis." - " """ + Set upper extent of vertical axis + + """ val = self._get_property("Y-axis Max") - return val # type: ignore + return val # type: ignore @y_axis_max.setter - def y_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) + def y_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: """Y-axis Range - "Adjust dB span of vertical axis, makes corresponding adjustment in Y-axis Min." - "Value should be greater than 0." + Adjust dB span of vertical axis, makes corresponding adjustment in + Y-axis Min + + Value should be greater than 0. """ val = self._get_property("Y-axis Range") - return val # type: ignore + return val # type: ignore @y_axis_range.setter - def y_axis_range(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) + def y_axis_range(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: """Max Major Ticks X - "Set maximum number of major tick-mark intervals along horizontal axis." - "Value should be between 1 and 30." + Set maximum number of major tick-mark intervals along horizontal axis + + Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks X") - return val # type: ignore + return val # type: ignore @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: """Max Minor Ticks X - "Set maximum number of minor tick-mark intervals between major ticks along horizontal axis." - "Value should be between 0 and 100." + Set maximum number of minor tick-mark intervals between major ticks + along horizontal axis + + Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks X") - return val # type: ignore + return val # type: ignore @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: """Max Major Ticks Y - "Set maximum number of major tick-mark intervals along vertical axis." - "Value should be between 1 and 30." + Set maximum number of major tick-mark intervals along vertical axis + + Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks Y") - return val # type: ignore + return val # type: ignore @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: """Max Minor Ticks Y - "Set maximum number of minor tick-mark intervals between major ticks along vertical axis." - "Value should be between 0 and 100." + Set maximum number of minor tick-mark intervals between major ticks + along vertical axis + + Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks Y") - return val # type: ignore + return val # type: ignore @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): """Axis Label Font - "Configure axis text labels font family, typeface, and size." - "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + Configure axis text labels font family, typeface, and size + + Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Label Font") - return val # type: ignore + return val # type: ignore @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): """Axis Tick Label Font - "Configure axis tick numeric labels font family, typeface, and size." - "Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'." + Configure axis tick numeric labels font family, typeface, and size + + Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Tick Label Font") - return val # type: ignore + return val # type: ignore @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -319,30 +382,34 @@ class MajorGridLineStyleOption(Enum): @property def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style - "Select line style of major-tick grid lines." - " """ + Select line style of major-tick grid lines + + """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Line Style={value.value}"]) @property def major_grid_color(self): """Major Grid Color - "Set color of major-tick grid lines." - "Color should be in RGB form: #RRGGBB." + Set color of major-tick grid lines + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Major Grid Color") - return val # type: ignore + return val # type: ignore @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -355,43 +422,50 @@ class MinorGridLineStyleOption(Enum): @property def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style - "Select line style of minor-tick grid lines." - " """ + Select line style of minor-tick grid lines + + """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Line Style={value.value}"]) @property def minor_grid_color(self): """Minor Grid Color - "Set color of minor-tick grid lines." - "Color should be in RGB form: #RRGGBB." + Set color of minor-tick grid lines + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Minor Grid Color") - return val # type: ignore + return val # type: ignore @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Color={value}"]) @property def background_color(self): """Background Color - "Set background color of entire plot." - "Color should be in RGB form: #RRGGBB." + Set background color of entire plot + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -402,42 +476,50 @@ class BBPowerforPlotsUnitOption(Enum): @property def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit - "Units to use for plotting broadband power densities." - " """ + Units to use for plotting broadband power densities + + """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] - return val # type: ignore + return val # type: ignore @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power for Plots Unit={value.value}"]) @property def bb_power_bandwidth(self) -> float: """BB Power Bandwidth - "Resolution bandwidth for broadband power." - "Value should be between 1 and 1e+11." + Resolution bandwidth for broadband power + + Value should be between 1 and 1e+11. """ val = self._get_property("BB Power Bandwidth") val = self._convert_from_internal_units(float(val), "") - return val # type: ignore + return val # type: ignore @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value: float | str): + def bb_power_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: """Log Scale - "Toggles on/off using a log scale for the X-Axis." - "Value should be 'true' or 'false'." + Toggles on/off using a log scale for the X-Axis + + Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return val # type: ignore + return val # type: ignore @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Log Scale={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py index 60a282493c1..53d5e33e1b7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class RfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,27 +36,35 @@ def parent(self): @property def enable_passive_noise(self) -> bool: """Enable Passive Noise - "If true, the noise contributions of antennas and passive components are included in cosite simulation. Note: Antenna and passive component noise is always included in link analysis simulation.." - "Value should be 'true' or 'false'." + If true, the noise contributions of antennas and passive components are + included in cosite simulation. Note: Antenna and passive component + noise is always included in link analysis simulation. + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Passive Noise") - return val # type: ignore + return val # type: ignore @enable_passive_noise.setter def enable_passive_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Passive Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Passive Noise={value}"]) @property def enforce_thermal_noise_floor(self) -> bool: """Enforce Thermal Noise Floor - "If true, all broadband noise is limited by the thermal noise floor (-174 dBm/Hz)." - "Value should be 'true' or 'false'." + If true, all broadband noise is limited by the thermal noise floor (-174 + dBm/Hz) + + Value should be 'true' or 'false'. """ val = self._get_property("Enforce Thermal Noise Floor") - return val # type: ignore + return val # type: ignore @enforce_thermal_noise_floor.setter def enforce_thermal_noise_floor(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Enforce Thermal Noise Floor={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enforce Thermal Noise Floor={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py index e7365d9b2de..4923f8e9298 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class RxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -49,29 +45,32 @@ def delete(self): @property def file(self) -> str: """File - "Name of the measurement source." - "Value should be a full file path." + Name of the measurement source + + Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: """Source File - "Name of the measurement source." - "Value should be a full file path." + Name of the measurement source + + Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def receive_frequency(self) -> float: """Receive Frequency - "Channel associated with the measurement file." - " """ + Channel associated with the measurement file + + """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class MeasurementModeOption(Enum): AUDIO_SINAD = "Audio SINAD" @@ -81,263 +80,319 @@ class MeasurementModeOption(Enum): @property def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode - "Defines the mode for the receiver measurement." - " """ + Defines the mode for the receiver measurement + + """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] - return val # type: ignore + return val # type: ignore @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Mode={value.value}"]) @property def sinad_threshold(self) -> float: """SINAD Threshold - "SINAD Threshold used for the receiver measurements." - "Value should be between 5 and 20." + SINAD Threshold used for the receiver measurements + + Value should be between 5 and 20. """ val = self._get_property("SINAD Threshold") - return val # type: ignore + return val # type: ignore @sinad_threshold.setter - def sinad_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SINAD Threshold={value}"]) + def sinad_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SINAD Threshold={value}"]) @property def gps_cnr_threshold(self) -> float: """GPS CNR Threshold - "GPS CNR Threshold used for the receiver measurements." - "Value should be between 15 and 30." + GPS CNR Threshold used for the receiver measurements + + Value should be between 15 and 30. """ val = self._get_property("GPS CNR Threshold") - return val # type: ignore + return val # type: ignore @gps_cnr_threshold.setter - def gps_cnr_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GPS CNR Threshold={value}"]) + def gps_cnr_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"GPS CNR Threshold={value}"]) @property def ber_threshold(self) -> float: """BER Threshold - "BER Threshold used for the receiver measurements." - "Value should be between -12 and -1." + BER Threshold used for the receiver measurements + + Value should be between -12 and -1. """ val = self._get_property("BER Threshold") - return val # type: ignore + return val # type: ignore @ber_threshold.setter - def ber_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BER Threshold={value}"]) + def ber_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BER Threshold={value}"]) @property def default_intended_power(self) -> bool: """Default Intended Power - "Specify the intended signal." - "Value should be 'true' or 'false'." + Specify the intended signal + + Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return val # type: ignore + return val # type: ignore @default_intended_power.setter def default_intended_power(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Default Intended Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Default Intended Power={value}"]) @property def intended_signal_power(self) -> float: """Intended Signal Power - "Specify the power level of the intended signal." - "Value should be between -140 and -50." + Specify the power level of the intended signal + + Value should be between -140 and -50. """ val = self._get_property("Intended Signal Power") - return val # type: ignore + return val # type: ignore @intended_signal_power.setter - def intended_signal_power(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Intended Signal Power={value}"]) + def intended_signal_power(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Intended Signal Power={value}"]) @property def freq_deviation(self) -> float: """Freq. Deviation - "Specify the frequency deviation of the intended signal." - "Value should be between 1000 and 200000." + Specify the frequency deviation of the intended signal + + Value should be between 1000 and 200000. """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation.setter - def freq_deviation(self, value: float | str): + def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation={value}"]) @property def modulation_depth(self) -> float: """Modulation Depth - "Specify the modulation depth of the intended signal." - "Value should be between 10 and 100." + Specify the modulation depth of the intended signal + + Value should be between 10 and 100. """ val = self._get_property("Modulation Depth") - return val # type: ignore + return val # type: ignore @modulation_depth.setter - def modulation_depth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Depth={value}"]) + def modulation_depth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation Depth={value}"]) @property def measure_selectivity(self) -> bool: """Measure Selectivity - "Enable/disable the measurement of the receiver's selectivity." - "Value should be 'true' or 'false'." + Enable/disable the measurement of the receiver's selectivity + + Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return val # type: ignore + return val # type: ignore @measure_selectivity.setter def measure_selectivity(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Selectivity={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Selectivity={value}"]) @property def measure_mixer_products(self) -> bool: """Measure Mixer Products - "Enable/disable the measurement of the receiver's mixer products." - "Value should be 'true' or 'false'." + Enable/disable the measurement of the receiver's mixer products + + Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return val # type: ignore + return val # type: ignore @measure_mixer_products.setter def measure_mixer_products(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Mixer Products={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Mixer Products={value}"]) @property def max_rf_order(self) -> int: """Max RF Order - "Max RF Order of the mixer products to measure." - "Value should be greater than 1." + Max RF Order of the mixer products to measure + + Value should be greater than 1. """ val = self._get_property("Max RF Order") - return val # type: ignore + return val # type: ignore @max_rf_order.setter def max_rf_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max RF Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max RF Order={value}"]) @property def max_lo_order(self) -> int: """Max LO Order - "Max LO Order of the mixer products to measure." - "Value should be greater than 1." + Max LO Order of the mixer products to measure + + Value should be greater than 1. """ val = self._get_property("Max LO Order") - return val # type: ignore + return val # type: ignore @max_lo_order.setter def max_lo_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max LO Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max LO Order={value}"]) @property def include_if(self) -> bool: """Include IF - "Enable/disable the measurement of the IF channel." - "Value should be 'true' or 'false'." + Enable/disable the measurement of the IF channel + + Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return val # type: ignore + return val # type: ignore @include_if.setter def include_if(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include IF={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include IF={value}"]) @property def measure_saturation(self) -> bool: """Measure Saturation - "Enable/disable measurement of the receiver's saturation level." - "Value should be 'true' or 'false'." + Enable/disable measurement of the receiver's saturation level + + Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return val # type: ignore + return val # type: ignore @measure_saturation.setter def measure_saturation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Saturation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Saturation={value}"]) @property def use_ams_limits(self) -> bool: """Use AMS Limits - "Allow AMS to determine the limits for measuring saturation." - "Value should be 'true' or 'false'." + Allow AMS to determine the limits for measuring saturation + + Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: """Start Frequency - "Starting frequency for the measurement sweep." - "Value should be greater than 1e+06." + Starting frequency for the measurement sweep + + Value should be greater than 1e+06. """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: """Stop Frequency - "Stopping frequency for the measurement sweep." - "Value should be less than 6e+09." + Stopping frequency for the measurement sweep + + Value should be less than 6e+09. """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def samples(self) -> int: """Samples - "Number of measurement samples for each frequency." - "Value should be between 2 and 100." + Number of measurement samples for each frequency + + Value should be between 2 and 100. """ val = self._get_property("Samples") - return val # type: ignore + return val # type: ignore @samples.setter def samples(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Samples={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Samples={value}"]) @property def exclude_mixer_products_below_noise(self) -> bool: """Exclude Mixer Products Below Noise - "Include/Exclude Mixer Products below the noise." - "Value should be 'true' or 'false'." + Include/Exclude Mixer Products below the noise + + Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return val # type: ignore + return val # type: ignore @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Exclude Mixer Products Below Noise={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Exclude Mixer Products Below Noise={value}"]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py index b484c584e95..ccd0c19addb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class RxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -49,7 +45,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -63,159 +59,186 @@ class MixerProductTaperOption(Enum): @property def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper - "Taper for setting amplitude of mixer products." - " """ + Taper for setting amplitude of mixer products + + """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] - return val # type: ignore + return val # type: ignore @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Taper={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Taper={value.value}"]) @property def mixer_product_susceptibility(self) -> float: """Mixer Product Susceptibility - "Mixer product amplitudes (relative to the in-band susceptibility)." - "Value should be between -200 and 200." + Mixer product amplitudes (relative to the in-band susceptibility) + + Value should be between -200 and 200. """ val = self._get_property("Mixer Product Susceptibility") - return val # type: ignore + return val # type: ignore @mixer_product_susceptibility.setter - def mixer_product_susceptibility(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Susceptibility={value}"] - ) + def mixer_product_susceptibility(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Susceptibility={value}"]) @property def spurious_rejection(self) -> float: """Spurious Rejection - "Mixer product amplitudes (relative to the in-band susceptibility)." - "Value should be between -200 and 200." + Mixer product amplitudes (relative to the in-band susceptibility) + + Value should be between -200 and 200. """ val = self._get_property("Spurious Rejection") - return val # type: ignore + return val # type: ignore @spurious_rejection.setter - def spurious_rejection(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spurious Rejection={value}"]) + def spurious_rejection(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spurious Rejection={value}"]) @property def minimum_tuning_frequency(self) -> float: """Minimum Tuning Frequency - "Minimum tuning frequency of Rx's local oscillator." - "Value should be between 1 and 1e+11." + Minimum tuning frequency of Rx's local oscillator + + Value should be between 1 and 1e+11. """ val = self._get_property("Minimum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value: float | str): + def minimum_tuning_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minimum Tuning Frequency={value}"]) @property def maximum_tuning_frequency(self) -> float: """Maximum Tuning Frequency - "Maximum tuning frequency of Rx's local oscillator." - "Value should be between 1 and 1e+11." + Maximum tuning frequency of Rx's local oscillator + + Value should be between 1 and 1e+11. """ val = self._get_property("Maximum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value: float | str): + def maximum_tuning_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum Tuning Frequency={value}"]) @property def mixer_product_slope(self) -> float: """Mixer Product Slope - "Rate of decrease for amplitude of Rx's local oscillator harmonics (dB/decade)." - "Value should be between 0 and 100." + Rate of decrease for amplitude of Rx's local oscillator harmonics + (dB/decade) + + Value should be between 0 and 100. """ val = self._get_property("Mixer Product Slope") - return val # type: ignore + return val # type: ignore @mixer_product_slope.setter - def mixer_product_slope(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Slope={value}"]) + def mixer_product_slope(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Slope={value}"]) @property def mixer_product_intercept(self) -> float: """Mixer Product Intercept - "Mixer product intercept (dBc)." - "Value should be between 0 and 100." + Mixer product intercept (dBc) + + Value should be between 0 and 100. """ val = self._get_property("Mixer Product Intercept") - return val # type: ignore + return val # type: ignore @mixer_product_intercept.setter - def mixer_product_intercept(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Intercept={value}"]) + def mixer_product_intercept(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Intercept={value}"]) @property def bandwidth_80_db(self) -> float: """Bandwidth 80 dB - "Bandwidth where Rx's susceptibility envelope is 80 dB above in-band susceptibility level." - "Value should be greater than 1." + Bandwidth where Rx's susceptibility envelope is 80 dB above in-band + susceptibility level + + Value should be greater than 1. """ val = self._get_property("Bandwidth 80 dB") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_80_db.setter - def bandwidth_80_db(self, value: float | str): + def bandwidth_80_db(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 80 dB={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 80 dB={value}"]) @property def image_rejection(self) -> float: """Image Rejection - "Image frequency amplitude (relative to the in-band susceptibility)." - "Value should be between -200 and 200." + Image frequency amplitude (relative to the in-band susceptibility) + + Value should be between -200 and 200. """ val = self._get_property("Image Rejection") - return val # type: ignore + return val # type: ignore @image_rejection.setter - def image_rejection(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Image Rejection={value}"]) + def image_rejection(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Image Rejection={value}"]) @property def maximum_rf_harmonic_order(self) -> int: """Maximum RF Harmonic Order - "Maximum order of RF frequency." - "Value should be between 1 and 100." + Maximum order of RF frequency + + Value should be between 1 and 100. """ val = self._get_property("Maximum RF Harmonic Order") - return val # type: ignore + return val # type: ignore @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Maximum RF Harmonic Order={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum RF Harmonic Order={value}"]) @property def maximum_lo_harmonic_order(self) -> int: """Maximum LO Harmonic Order - "Maximum order of the LO frequency." - "Value should be between 1 and 100." + Maximum order of the LO frequency + + Value should be between 1 and 100. """ val = self._get_property("Maximum LO Harmonic Order") - return val # type: ignore + return val # type: ignore @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Maximum LO Harmonic Order={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum LO Harmonic Order={value}"]) class MixingModeOption(Enum): LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" @@ -225,42 +248,51 @@ class MixingModeOption(Enum): @property def mixing_mode(self) -> MixingModeOption: """Mixing Mode - "Specifies whether the IF frequency is > or < RF channel frequency." - " """ + Specifies whether the IF frequency is > or < RF channel frequency + + """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] - return val # type: ignore + return val # type: ignore @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixing Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixing Mode={value.value}"]) @property def first_if_frequency(self): """First IF Frequency - "Intermediate frequency for Rx's 1st conversion stage." - "Value should be a mathematical expression." + Intermediate frequency for Rx's 1st conversion stage + + Value should be a mathematical expression. """ val = self._get_property("First IF Frequency") - return val # type: ignore + return val # type: ignore @first_if_frequency.setter def first_if_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First IF Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First IF Frequency={value}"]) @property def rf_transition_frequency(self) -> float: """RF Transition Frequency - "RF Frequency Transition point." - " """ + RF Frequency Transition point + + """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @rf_transition_frequency.setter - def rf_transition_frequency(self, value: float | str): + def rf_transition_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"RF Transition Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"RF Transition Frequency={value}"]) class UseHighLOOption(Enum): ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" @@ -269,15 +301,18 @@ class UseHighLOOption(Enum): @property def use_high_lo(self) -> UseHighLOOption: """Use High LO - "Use High LO above/below the transition frequency." - " """ + Use High LO above/below the transition frequency + + """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] - return val # type: ignore + return val # type: ignore @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use High LO={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use High LO={value.value}"]) class MixerProductTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -286,14 +321,16 @@ class MixerProductTableUnitsOption(Enum): @property def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units - "Specifies the units for the Mixer Products." - " """ + Specifies the units for the Mixer Products + + """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Table Units={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py index 517ac9e5fa1..d425bb22dc3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class RxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,7 +35,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -47,8 +44,9 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py index 28433a6089f..8545b2a6b4a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class RxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,7 +35,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -47,7 +44,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -56,12 +53,17 @@ def enabled(self, value: bool): @property def use_arithmetic_mean(self) -> bool: """Use Arithmetic Mean - "Uses arithmetic mean to center bandwidths about the tuned channel frequency." - "Value should be 'true' or 'false'." + Uses arithmetic mean to center bandwidths about the tuned channel + frequency + + Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return val # type: ignore + return val # type: ignore @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Arithmetic Mean={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Arithmetic Mean={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py index 5b21e986a74..94486ab6575 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class RxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -48,14 +44,14 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): - " Value should be a mathematical expression." - "Bandwidth: - " Value should be greater than 1." - "Power: - " Value should be between -200 and 150." + "Frequency (MHz): + Value should be a mathematical expression. + "Bandwidth: + Value should be greater than 1. + "Power: + Value should be between -200 and 150. """ return self._get_table_data() @@ -66,7 +62,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -79,12 +75,16 @@ class SpurTableUnitsOption(Enum): @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units - "Specifies the units for the Spurs." - " """ + Specifies the units for the Spurs + + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spur Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py index f3dd7328923..62b89d9f15a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class RxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +37,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -56,199 +52,236 @@ class SensitivityUnitsOption(Enum): @property def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units - "Units to use for the Rx Sensitivity." - " """ + Units to use for the Rx Sensitivity + + """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] - return val # type: ignore + return val # type: ignore @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sensitivity Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sensitivity Units={value.value}"]) @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr - "Received signal power level at the Rx's antenna terminal." - "Value should be between -1000 and 1000." + """Min. Receive Signal Pwr + Received signal power level at the Rx's antenna terminal + + Value should be between -1000 and 1000. """ val = self._get_property("Min. Receive Signal Pwr ") - return val # type: ignore + return val # type: ignore @min_receive_signal_pwr_.setter - def min_receive_signal_pwr_(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min. Receive Signal Pwr ={value}"]) + def min_receive_signal_pwr_(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min. Receive Signal Pwr ={value}"]) @property def snr_at_rx_signal_pwr(self) -> float: """SNR at Rx Signal Pwr - "Signal-to-Noise Ratio (dB) at specified received signal power at the Rx's antenna terminal." - "Value should be between -1000 and 1000." + Signal-to-Noise Ratio (dB) at specified received signal power at the + Rx's antenna terminal + + Value should be between -1000 and 1000. """ val = self._get_property("SNR at Rx Signal Pwr") - return val # type: ignore + return val # type: ignore @snr_at_rx_signal_pwr.setter - def snr_at_rx_signal_pwr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR at Rx Signal Pwr={value}"]) + def snr_at_rx_signal_pwr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SNR at Rx Signal Pwr={value}"]) @property def processing_gain(self) -> float: """Processing Gain - "Rx processing gain (dB) of (optional) despreader." - "Value should be between -1000 and 1000." + Rx processing gain (dB) of (optional) despreader + + Value should be between -1000 and 1000. """ val = self._get_property("Processing Gain") - return val # type: ignore + return val # type: ignore @processing_gain.setter - def processing_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Processing Gain={value}"]) + def processing_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Processing Gain={value}"]) @property def apply_pg_to_narrowband_only(self) -> bool: """Apply PG to Narrowband Only - "Processing gain captures the despreading effect and applies to NB signals only (not BB noise) when enabled." - "Value should be 'true' or 'false'." + Processing gain captures the despreading effect and applies to NB + signals only (not BB noise) when enabled + + Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return val # type: ignore + return val # type: ignore @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Apply PG to Narrowband Only={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Apply PG to Narrowband Only={value}"]) @property def saturation_level(self) -> float: """Saturation Level - "Rx input saturation level." - "Value should be between -1000 and 1000." + Rx input saturation level + + Value should be between -1000 and 1000. """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @saturation_level.setter - def saturation_level(self, value: float | str): + def saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Saturation Level={value}"]) @property def rx_noise_figure(self) -> float: """Rx Noise Figure - "Rx noise figure (dB)." - "Value should be between 0 and 1000." + Rx noise figure (dB) + + Value should be between 0 and 1000. """ val = self._get_property("Rx Noise Figure") - return val # type: ignore + return val # type: ignore @rx_noise_figure.setter - def rx_noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rx Noise Figure={value}"]) + def rx_noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rx Noise Figure={value}"]) @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity - "Rx minimum sensitivity level (dBm)." - "Value should be between -1000 and 1000." + """Receiver Sensitivity + Rx minimum sensitivity level (dBm) + + Value should be between -1000 and 1000. """ val = self._get_property("Receiver Sensitivity ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @receiver_sensitivity_.setter - def receiver_sensitivity_(self, value: float | str): + def receiver_sensitivity_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver Sensitivity ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Receiver Sensitivity ={value}"]) @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity - "SNR or SINAD at the specified sensitivity level." - "Value should be between -1000 and 1000." + """SNR/SINAD at Sensitivity + SNR or SINAD at the specified sensitivity level + + Value should be between -1000 and 1000. """ val = self._get_property("SNR/SINAD at Sensitivity ") - return val # type: ignore + return val # type: ignore @snrsinad_at_sensitivity_.setter - def snrsinad_at_sensitivity_(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"SNR/SINAD at Sensitivity ={value}"] - ) + def snrsinad_at_sensitivity_(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SNR/SINAD at Sensitivity ={value}"]) @property def perform_rx_intermod_analysis(self) -> bool: """Perform Rx Intermod Analysis - "Performs a non-linear intermod analysis for the Rx." - "Value should be 'true' or 'false'." + Performs a non-linear intermod analysis for the Rx + + Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return val # type: ignore + return val # type: ignore @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Rx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Rx Intermod Analysis={value}"]) @property def amplifier_saturation_level(self) -> float: """Amplifier Saturation Level - "Internal Rx Amplifier's Saturation Level." - "Value should be between -200 and 200." + Internal Rx Amplifier's Saturation Level + + Value should be between -200 and 200. """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input - "Rx's 1 dB Compression Point - total power > P1dB saturates the receiver." - "Value should be between -1000 and 1000." + """P1-dB Point, Ref. Input + Rx's 1 dB Compression Point - total power > P1dB saturates the receiver + + Value should be between -1000 and 1000. """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: """IP3, Ref. Input - "Internal Rx Amplifier's 3rd order intercept point." - "Value should be between -1000 and 1000." + Internal Rx Amplifier's 3rd order intercept point + + Value should be between -1000 and 1000. """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def max_intermod_order(self) -> int: """Max Intermod Order - "Internal Rx Amplifier's maximum intermod order to compute." - "Value should be between 3 and 20." + Internal Rx Amplifier's maximum intermod order to compute + + Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py index 71f04d9ed7a..571402801e3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class SamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,12 +36,12 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Min: - " Value should be greater than 1." - "Max: - " Value should be greater than 1." + "Min: + Value should be greater than 1. + "Max: + Value should be greater than 1. """ return self._get_table_data() @@ -61,90 +57,110 @@ class SamplingTypeOption(Enum): @property def sampling_type(self) -> SamplingTypeOption: """Sampling Type - "Sampling to apply to this configuration." - " """ + Sampling to apply to this configuration + + """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] - return val # type: ignore + return val # type: ignore @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sampling Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sampling Type={value.value}"]) @property def specify_percentage(self) -> bool: """Specify Percentage - "Specify the number of channels to simulate via a percentage of the total available band channels." - "Value should be 'true' or 'false'." + Specify the number of channels to simulate via a percentage of the total + available band channels + + Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return val # type: ignore + return val # type: ignore @specify_percentage.setter def specify_percentage(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Specify Percentage={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Specify Percentage={value}"]) @property def percentage_of_channels(self) -> float: """Percentage of Channels - "Percentage of the Band Channels to simulate." - "Value should be between 1 and 100." + Percentage of the Band Channels to simulate + + Value should be between 1 and 100. """ val = self._get_property("Percentage of Channels") - return val # type: ignore + return val # type: ignore @percentage_of_channels.setter - def percentage_of_channels(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percentage of Channels={value}"]) + def percentage_of_channels(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Percentage of Channels={value}"]) @property def max__channelsrangeband(self) -> int: """Max # Channels/Range/Band - "Maximum number of Band Channels to simulate." - "Value should be between 1 and 100000." + Maximum number of Band Channels to simulate + + Value should be between 1 and 100000. """ val = self._get_property("Max # Channels/Range/Band") - return val # type: ignore + return val # type: ignore @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Max # Channels/Range/Band={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max # Channels/Range/Band={value}"]) @property def seed(self) -> int: """Seed - "Seed for random channel generator." - "Value should be greater than 0." + Seed for random channel generator + + Value should be greater than 0. """ val = self._get_property("Seed") - return val # type: ignore + return val # type: ignore @seed.setter def seed(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Seed={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Seed={value}"]) @property def total_tx_channels(self) -> int: """Total Tx Channels - "Total number of transmit channels this configuration is capable of operating on." - " """ + Total number of transmit channels this configuration is capable of + operating on + + """ val = self._get_property("Total Tx Channels") - return val # type: ignore + return val # type: ignore @property def total_rx_channels(self) -> int: """Total Rx Channels - "Total number of receive channels this configuration is capable of operating on." - " """ + Total number of receive channels this configuration is capable of + operating on + + """ val = self._get_property("Total Rx Channels") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings - "Warning(s) for this node." - " """ + Warning(s) for this node + + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py index 42bf74d4440..bb32664351d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class SceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -57,43 +53,51 @@ def delete(self): @property def show_relative_coordinates(self) -> bool: """Show Relative Coordinates - "Show Scene Group position and orientation in parent-node coords (False) or relative to placement coords (True)." - "Value should be 'true' or 'false'." + Show Scene Group position and orientation in parent-node coords (False) + or relative to placement coords (True) + + Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): """Position - "Set position of the Scene Group in parent-node coordinates." - "Value should be x/y/z, delimited by spaces." + Set position of the Scene Group in parent-node coordinates + + Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): """Relative Position - "Set position of the Scene Group relative to placement coordinates." - "Value should be x/y/z, delimited by spaces." + Set position of the Scene Group relative to placement coordinates + + Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -102,76 +106,95 @@ class OrientationModeOption(Enum): @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode - "Select the convention (order of rotations) for configuring orientation." - " """ + Select the convention (order of rotations) for configuring orientation + + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): """Orientation - "Set orientation of the Scene Group relative to parent-node coordinates." - "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + Set orientation of the Scene Group relative to parent-node coordinates + + Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): """Relative Orientation - "Set orientation of the Scene Group relative to placement coordinates." - "Value format is determined by 'Orientation Mode', in degrees and delimited by spaces." + Set orientation of the Scene Group relative to placement coordinates + + Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def show_axes(self) -> bool: """Show Axes - "Toggle (on/off) display of Scene Group coordinate axes in 3-D window." - "Value should be 'true' or 'false'." + Toggle (on/off) display of Scene Group coordinate axes in 3-D window + + Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def box_color(self): """Box Color - "Set color of the bounding box of the Scene Group." - "Color should be in RGB form: #RRGGBB." + Set color of the bounding box of the Scene Group + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Box Color") - return val # type: ignore + return val # type: ignore @box_color.setter def box_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Box Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Box Color={value}"]) @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py index bd9e97d6aec..f3ae18ed88b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class SelectivityTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,52 +49,65 @@ def delete(self): @property def data_source(self): """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + Identifies tree node serving as data source for plot trace, click link + to find it + + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." + Toggle (on/off) display of this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." + Enable/disable custom legend entry for this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name - "Enter name of plot trace as it will appear in legend." - " """ + Enter name of plot trace as it will appear in legend + + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -111,41 +120,50 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: """Style - "Specify line style of plot trace." - " """ + Specify line style of plot trace + + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." + Specify line width of plot trace + + Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." + Specify line color of plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -167,64 +185,81 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: """Symbol - "Select symbol to mark points along plot trace." - " """ + Select symbol to mark points along plot trace + + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." + Set size (in points) of symbols marking points along plot trace + + Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." + Specify color of symbols marking points along plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." + Set the width of the line used to draw the symbol + + Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." + If true, the interior of the symbol is filled - has no effect for some + symbol types + + Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py index 4088dc55b6f..9969d3ab69b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class SolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,50 +36,64 @@ def parent(self): @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling (A sweep disabled in HFSS/Layout cannot be enabled in EMIT)." - "Value should be 'true' or 'false'." + Enable/Disable coupling (A sweep disabled in HFSS/Layout cannot be + enabled in EMIT) + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." + Enables/disables refined sampling of the frequency domain. + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." + Enables/disables adaptive refinement the frequency domain sampling. + + Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain - "Points to use when refining the frequency domain.." - " """ + Points to use when refining the frequency domain. + + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py index 24fe2daf820..b73617918b3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class SolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,12 +36,17 @@ def parent(self): @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling (A setup disabled in HFSS/Layout cannot be enabled in EMIT)." - "Value should be 'true' or 'false'." + Enable/Disable coupling (A setup disabled in HFSS/Layout cannot be + enabled in EMIT) + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py index 099de50c2cf..5478db804f2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class SpurTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,73 +49,91 @@ def delete(self): @property def channel_frequency(self): """Channel Frequency - "Select band channel frequency to display." - " """ + Select band channel frequency to display + + """ val = self._get_property("Channel Frequency") - return val # type: ignore + return val # type: ignore @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: """Transmit Frequency - "The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset)." - " """ + The actual transmit frequency (i.e., the Channel Frequency plus the Tx + Offset) + + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def data_source(self): """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + Identifies tree node serving as data source for plot trace, click link + to find it + + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." + Toggle (on/off) display of this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." + Enable/disable custom legend entry for this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name - "Enter name of plot trace as it will appear in legend." - " """ + Enter name of plot trace as it will appear in legend + + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -132,41 +146,50 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: """Style - "Specify line style of plot trace." - " """ + Specify line style of plot trace + + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." + Specify line width of plot trace + + Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." + Specify line color of plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -188,64 +211,81 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: """Symbol - "Select symbol to mark points along plot trace." - " """ + Select symbol to mark points along plot trace + + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." + Set size (in points) of symbols marking points along plot trace + + Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." + Specify color of symbols marking points along plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." + Set the width of the line used to draw the symbol + + Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." + If true, the interior of the symbol is filled - has no effect for some + symbol types + + Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py index a07d94e9712..60baf307e01 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TRSwitchTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,78 +49,97 @@ def delete(self): @property def input_port(self) -> int: """Input Port - "Specifies input port for the plotted outboard component." - "Value should be greater than 1." + Specifies input port for the plotted outboard component + + Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: """Output Port - "Specifies output port for the plotted outboard component." - "Value should be greater than 1." + Specifies output port for the plotted outboard component + + Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + Identifies tree node serving as data source for plot trace, click link + to find it + + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." + Toggle (on/off) display of this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." + Enable/disable custom legend entry for this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name - "Enter name of plot trace as it will appear in legend." - " """ + Enter name of plot trace as it will appear in legend + + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -137,41 +152,50 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: """Style - "Specify line style of plot trace." - " """ + Specify line style of plot trace + + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." + Specify line width of plot trace + + Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." + Specify line color of plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -193,64 +217,81 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: """Symbol - "Select symbol to mark points along plot trace." - " """ + Select symbol to mark points along plot trace + + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." + Set size (in points) of symbols marking points along plot trace + + Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." + Specify color of symbols marking points along plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." + Set the width of the line used to draw the symbol + + Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." + If true, the interior of the symbol is filled - has no effect for some + symbol types + + Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index 6c0527f0188..cb42ee237e0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -48,40 +44,49 @@ def delete(self): @property def filename(self) -> str: """Filename - "Name of file defining the outboard component." - "Value should be a full file path." + Name of file defining the outboard component + + Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." + System Noise temperature (K) of the component + + Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TxPortOption(Enum): PORT_1 = "Port 1" @@ -90,15 +95,18 @@ class TxPortOption(Enum): @property def tx_port(self) -> TxPortOption: """Tx Port - "Specifies which port on the TR Switch is part of the Tx path.." - " """ + Specifies which port on the TR Switch is part of the Tx path. + + """ val = self._get_property("Tx Port") val = self.TxPortOption[val] - return val # type: ignore + return val # type: ignore @tx_port.setter def tx_port(self, value: TxPortOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Port={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Port={value.value}"]) class CommonPortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -107,139 +115,170 @@ class CommonPortLocationOption(Enum): @property def common_port_location(self) -> CommonPortLocationOption: """Common Port Location - "Defines the orientation of the tr switch.." - " """ + Defines the orientation of the tr switch. + + """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] - return val # type: ignore + return val # type: ignore @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Common Port Location={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Common Port Location={value.value}"]) @property def insertion_loss(self) -> float: """Insertion Loss - "TR Switch in-band loss in forward direction.." - "Value should be between 0 and 100." + TR Switch in-band loss in forward direction. + + Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_isolation(self) -> bool: """Finite Isolation - "Use a finite isolation. If disabled, the tr switch model is ideal (infinite isolation).." - "Value should be 'true' or 'false'." + Use a finite isolation. If disabled, the tr switch model is ideal + (infinite isolation). + + Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Isolation={value}"]) @property def isolation(self) -> float: """Isolation - "TR Switch reverse isolation (i.e., loss between the Tx/Rx ports).." - "Value should be between 0 and 100." + TR Switch reverse isolation (i.e., loss between the Tx/Rx ports). + + Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @isolation.setter - def isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) + def isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: """Finite Bandwidth - "Use a finite bandwidth. If disabled, the tr switch model is ideal (infinite bandwidth).." - "Value should be 'true' or 'false'." + Use a finite bandwidth. If disabled, the tr switch model is ideal + (infinite bandwidth). + + Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: """Out-of-band Attenuation - "Out-of-band loss (attenuation)." - "Value should be between 0 and 200." + Out-of-band loss (attenuation) + + Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: """Lower Stop Band - "Lower stop band frequency." - "Value should be between 1 and 1e+11." + Lower stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: """Lower Cutoff - "Lower cutoff frequency." - "Value should be between 1 and 1e+11." + Lower cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: """Higher Cutoff - "Higher cutoff frequency." - "Value should be between 1 and 1e+11." + Higher cutoff frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: """Higher Stop Band - "Higher stop band frequency." - "Value should be between 1 and 1e+11." + Higher stop band frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index 2f11ba594ee..d080e45bf1c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Terminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -48,40 +44,49 @@ def delete(self): @property def filename(self) -> str: """Filename - "Name of file defining the Terminator." - "Value should be a full file path." + Name of file defining the Terminator + + Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: """Noise Temperature - "System Noise temperature (K) of the component." - "Value should be between 0 and 1000." + System Noise temperature (K) of the component + + Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -90,15 +95,19 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: """Type - "Type of terminator model to use. Options include: By File (measured or simulated) or Parametric." - " """ + Type of terminator model to use. Options include: By File (measured or + simulated) or Parametric + + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class PortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -107,33 +116,43 @@ class PortLocationOption(Enum): @property def port_location(self) -> PortLocationOption: """Port Location - "Defines the orientation of the terminator.." - " """ + Defines the orientation of the terminator. + + """ val = self._get_property("Port Location") val = self.PortLocationOption[val] - return val # type: ignore + return val # type: ignore @port_location.setter def port_location(self, value: PortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port Location={value.value}"]) @property def vswr(self) -> float: """VSWR - "The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch between the terminator and the connected component (RF System, Antenna, etc)." - "Value should be between 1 and 100." + The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch + between the terminator and the connected component (RF System, Antenna, + etc) + + Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @vswr.setter - def vswr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) + def vswr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"VSWR={value}"]) @property def warnings(self) -> str: """Warnings - "Warning(s) for this node." - " """ + Warning(s) for this node + + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py index fb053168609..b20ada4d41d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TestNoiseTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,78 +49,97 @@ def delete(self): @property def input_port(self) -> int: """Input Port - "Specifies input port for the plotted outboard component." - "Value should be greater than 1." + Specifies input port for the plotted outboard component + + Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: """Output Port - "Specifies output port for the plotted outboard component." - "Value should be greater than 1." + Specifies output port for the plotted outboard component + + Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + Identifies tree node serving as data source for plot trace, click link + to find it + + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." + Toggle (on/off) display of this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." + Enable/disable custom legend entry for this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name - "Enter name of plot trace as it will appear in legend." - " """ + Enter name of plot trace as it will appear in legend + + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -137,41 +152,50 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: """Style - "Specify line style of plot trace." - " """ + Specify line style of plot trace + + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." + Specify line width of plot trace + + Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." + Specify line color of plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -193,167 +217,205 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: """Symbol - "Select symbol to mark points along plot trace." - " """ + Select symbol to mark points along plot trace + + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." + Set size (in points) of symbols marking points along plot trace + + Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." + Specify color of symbols marking points along plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." + Set the width of the line used to draw the symbol + + Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." + If true, the interior of the symbol is filled - has no effect for some + symbol types + + Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: """Frequency 1 - "1st test tone frequency." - "Value should be between 1 and 1e+11." + 1st test tone frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Frequency 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_1.setter - def frequency_1(self, value: float | str): + def frequency_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: """Amplitude 1 - "1st test tone amplitude." - "Value should be between -100 and 200." + 1st test tone amplitude + + Value should be between -100 and 200. """ val = self._get_property("Amplitude 1") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_1.setter - def amplitude_1(self, value: float | str): + def amplitude_1(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: """Bandwidth 1 - "1st test tone bandwidth." - "Value should be greater than 1." + 1st test tone bandwidth + + Value should be greater than 1. """ val = self._get_property("Bandwidth 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_1.setter - def bandwidth_1(self, value: float | str): + def bandwidth_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: """Frequency 2 - "2nd test tone frequency." - "Value should be between 1 and 1e+11." + 2nd test tone frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Frequency 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_2.setter - def frequency_2(self, value: float | str): + def frequency_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: """Amplitude 2 - "2nd test tone amplitude." - "Value should be between -100 and 200." + 2nd test tone amplitude + + Value should be between -100 and 200. """ val = self._get_property("Amplitude 2") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_2.setter - def amplitude_2(self, value: float | str): + def amplitude_2(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: """Bandwidth 2 - "2nd test tone bandwidth." - "Value should be greater than 1." + 2nd test tone bandwidth + + Value should be greater than 1. """ val = self._get_property("Bandwidth 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_2.setter - def bandwidth_2(self, value: float | str): + def bandwidth_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: """Noise Level - "Broadband noise level." - "Value should be between -200 and 0." + Broadband noise level + + Value should be between -200 and 0. """ val = self._get_property("Noise Level") - return val # type: ignore + return val # type: ignore @noise_level.setter - def noise_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) + def noise_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Level={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py index 930244277ac..cce333ffcc5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py @@ -1,32 +1,30 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class TopLevelSimulation(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py index bf3afece9e5..948ae1a9029 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class TouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -51,109 +48,135 @@ def delete(self): @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." + Enable/Disable coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." + Enables/disables refined sampling of the frequency domain. + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." + Enables/disables adaptive refinement the frequency domain sampling. + + Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain - "Points to use when refining the frequency domain.." - " """ + Points to use when refining the frequency domain. + + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def filename(self) -> str: """Filename - "Name of file with coupling data.." - "Value should be a full file path." + Name of file with coupling data. + + Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File - "Coupling data generated by Savant and exported as a matched file." - " """ + Coupling data generated by Savant and exported as a matched file + + """ val = self._get_property("Savant Matched Coupling File") - return val # type: ignore + return val # type: ignore @property def enable_em_isolation(self) -> bool: """Enable EM Isolation - "Enables/disables EM isolation." - "Value should be 'true' or 'false'." + Enables/disables EM isolation + + Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return val # type: ignore + return val # type: ignore @enable_em_isolation.setter def enable_em_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable EM Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable EM Isolation={value}"]) @property def port_antenna_assignment(self): """Port-Antenna Assignment - "Maps each port in the coupling file to an antenna in the project." + Maps each port in the coupling file to an antenna in the project + "A list of values." - " """ + """ val = self._get_property("Port-Antenna Assignment") - return val # type: ignore + return val # type: ignore @port_antenna_assignment.setter def port_antenna_assignment(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port-Antenna Assignment={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port-Antenna Assignment={value}"]) @property def notes(self) -> str: """Notes - "Expand to view/edit notes stored with the project." - " """ + Expand to view/edit notes stored with the project + + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py index f9498afbff6..3d0cca672f2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TunableTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,92 +49,114 @@ def delete(self): @property def input_port(self) -> int: """Input Port - "Specifies input port for the plotted outboard component." - "Value should be greater than 1." + Specifies input port for the plotted outboard component + + Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: """Output Port - "Specifies output port for the plotted outboard component." - "Value should be greater than 1." + Specifies output port for the plotted outboard component + + Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def frequency(self) -> float: """Frequency - "Tunable filter center frequency." - " """ + Tunable filter center frequency + + """ val = self._get_property("Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency.setter - def frequency(self, value: float | str): + def frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency={value}"]) @property def data_source(self): """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + Identifies tree node serving as data source for plot trace, click link + to find it + + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." + Toggle (on/off) display of this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." + Enable/disable custom legend entry for this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name - "Enter name of plot trace as it will appear in legend." - " """ + Enter name of plot trace as it will appear in legend + + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -151,41 +169,50 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: """Style - "Specify line style of plot trace." - " """ + Specify line style of plot trace + + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." + Specify line width of plot trace + + Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." + Specify line color of plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -207,64 +234,81 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: """Symbol - "Select symbol to mark points along plot trace." - " """ + Select symbol to mark points along plot trace + + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." + Set size (in points) of symbols marking points along plot trace + + Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." + Specify color of symbols marking points along plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." + Set the width of the line used to draw the symbol + + Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." + If true, the interior of the symbol is filled - has no effect for some + symbol types + + Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py index dc37a99002a..fb6ab6bf680 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,142 +49,178 @@ def delete(self): @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." + Enable/Disable coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A - "First antenna of the pair to apply the coupling values to." - " """ + First antenna of the pair to apply the coupling values to + + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B - "Second antenna of the pair to apply the coupling values to." - " """ + Second antenna of the pair to apply the coupling values to + + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." + Enables/disables refined sampling of the frequency domain. + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." + Enables/disables adaptive refinement the frequency domain sampling. + + Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain - "Points to use when refining the frequency domain.." - " """ + Points to use when refining the frequency domain. + + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def ground_reflection_coeff(self) -> float: """Ground Reflection Coeff. - "The ground reflection coefficient." - "Value should be between -100 and 100." + The ground reflection coefficient + + Value should be between -100 and 100. """ val = self._get_property("Ground Reflection Coeff.") - return val # type: ignore + return val # type: ignore @ground_reflection_coeff.setter - def ground_reflection_coeff(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ground Reflection Coeff.={value}"]) + def ground_reflection_coeff(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ground Reflection Coeff.={value}"]) @property def pointspeak(self) -> int: """Points/Peak - "Number of points used to model each peak in frequency vs loss curve." - "Value should be between 3 and 100." + Number of points used to model each peak in frequency vs loss curve + + Value should be between 3 and 100. """ val = self._get_property("Points/Peak") - return val # type: ignore + return val # type: ignore @pointspeak.setter def pointspeak(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Points/Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Points/Peak={value}"]) @property def custom_fading_margin(self) -> float: """Custom Fading Margin - "Sets a custom fading margin to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a custom fading margin to be applied to all coupling defined by + this node + + Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: """Polarization Mismatch - "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for polarization mismatch to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: """Pointing Error Loss - "Sets a margin for pointing error loss to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for pointing error loss to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -199,146 +231,180 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: """Fading Type - "Specify the type of fading to include." - " """ + Specify the type of fading to include + + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: """Fading Availability - "The probability that the propagation loss in dB is below its median value plus the margin." - "Value should be between 0 and 100." + The probability that the propagation loss in dB is below its median + value plus the margin + + Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: """Std Deviation - "Standard deviation modeling the random amount of shadowing loss." - "Value should be between 0 and 100." + Standard deviation modeling the random amount of shadowing loss + + Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation - "Adds a margin for rain attenuation to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for rain attenuation to the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: """Rain Availability - "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." - "Value should be between 99 and 99.999." + Percentage of time attenuation due to range is < computed margin (range + from 99-99.999%) + + Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: """Rain Rate - "Rain rate (mm/hr) exceeded for 0.01% of the time." - "Value should be between 0 and 1000." + Rain rate (mm/hr) exceeded for 0.01% of the time + + Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle - "Polarization tilt angle of the transmitted signal relative to the horizontal." - "Value should be between 0 and 180." + Polarization tilt angle of the transmitted signal relative to the + horizontal + + Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption - "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for atmospheric absorption due to oxygen/water vapor to + the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: """Temperature - "Air temperature in degrees Celsius." - "Value should be between -273 and 100." + Air temperature in degrees Celsius + + Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: """Total Air Pressure - "Total air pressure." - "Value should be between 0 and 2000." + Total air pressure + + Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration - "Water vapor concentration." - "Value should be between 0 and 2000." + Water vapor concentration + + Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py index 030300b69ef..43ded05d87f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TwoToneTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,78 +49,97 @@ def delete(self): @property def input_port(self) -> int: """Input Port - "Specifies input port for the plotted outboard component." - "Value should be greater than 1." + Specifies input port for the plotted outboard component + + Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: """Output Port - "Specifies output port for the plotted outboard component." - "Value should be greater than 1." + Specifies output port for the plotted outboard component + + Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): """Data Source - "Identifies tree node serving as data source for plot trace, click link to find it." - " """ + Identifies tree node serving as data source for plot trace, click link + to find it + + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: """Visible - "Toggle (on/off) display of this plot trace." - "Value should be 'true' or 'false'." + Toggle (on/off) display of this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: """Custom Legend - "Enable/disable custom legend entry for this plot trace." - "Value should be 'true' or 'false'." + Enable/disable custom legend entry for this plot trace + + Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name - "Enter name of plot trace as it will appear in legend." - " """ + Enter name of plot trace as it will appear in legend + + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -137,41 +152,50 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: """Style - "Specify line style of plot trace." - " """ + Specify line style of plot trace + + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: """Line Width - "Specify line width of plot trace." - "Value should be between 1 and 100." + Specify line width of plot trace + + Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): """Line Color - "Specify line color of plot trace." - "Color should be in RGB form: #RRGGBB." + Specify line color of plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -193,167 +217,205 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: """Symbol - "Select symbol to mark points along plot trace." - " """ + Select symbol to mark points along plot trace + + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: """Symbol Size - "Set size (in points) of symbols marking points along plot trace." - "Value should be between 1 and 1000." + Set size (in points) of symbols marking points along plot trace + + Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): """Symbol Color - "Specify color of symbols marking points along plot trace." - "Color should be in RGB form: #RRGGBB." + Specify color of symbols marking points along plot trace + + Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: """Symbol Line Width - "Set the width of the line used to draw the symbol." - "Value should be between 1 and 20." + Set the width of the line used to draw the symbol + + Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: """Symbol Filled - "If true, the interior of the symbol is filled - has no effect for some symbol types." - "Value should be 'true' or 'false'." + If true, the interior of the symbol is filled - has no effect for some + symbol types + + Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: """Frequency 1 - "1st test tone frequency." - "Value should be between 1 and 1e+11." + 1st test tone frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Frequency 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_1.setter - def frequency_1(self, value: float | str): + def frequency_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: """Amplitude 1 - "1st test tone amplitude." - "Value should be between -100 and 200." + 1st test tone amplitude + + Value should be between -100 and 200. """ val = self._get_property("Amplitude 1") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_1.setter - def amplitude_1(self, value: float | str): + def amplitude_1(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: """Bandwidth 1 - "1st test tone bandwidth." - "Value should be greater than 1." + 1st test tone bandwidth + + Value should be greater than 1. """ val = self._get_property("Bandwidth 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_1.setter - def bandwidth_1(self, value: float | str): + def bandwidth_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: """Frequency 2 - "2nd test tone frequency." - "Value should be between 1 and 1e+11." + 2nd test tone frequency + + Value should be between 1 and 1e+11. """ val = self._get_property("Frequency 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_2.setter - def frequency_2(self, value: float | str): + def frequency_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: """Amplitude 2 - "2nd test tone amplitude." - "Value should be between -100 and 200." + 2nd test tone amplitude + + Value should be between -100 and 200. """ val = self._get_property("Amplitude 2") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_2.setter - def amplitude_2(self, value: float | str): + def amplitude_2(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: """Bandwidth 2 - "2nd test tone bandwidth." - "Value should be greater than 1." + 2nd test tone bandwidth + + Value should be greater than 1. """ val = self._get_property("Bandwidth 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_2.setter - def bandwidth_2(self, value: float | str): + def bandwidth_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: """Noise Level - "Broadband noise level." - "Value should be between -200 and 0." + Broadband noise level + + Value should be between -200 and 0. """ val = self._get_property("Noise Level") - return val # type: ignore + return val # type: ignore @noise_level.setter - def noise_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) + def noise_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Level={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py index d43b2a5e283..cce533748e1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -50,10 +46,10 @@ def delete(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): - " Value should be a mathematical expression." - "Amplitude (dBm/Hz): - " Value should be between -200 and 150." + "Frequency (MHz): + Value should be a mathematical expression. + "Amplitude (dBm/Hz): + Value should be between -200 and 150. """ return self._get_table_data() @@ -64,7 +60,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -79,27 +75,33 @@ class NoiseBehaviorOption(Enum): @property def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior - "Specifies the behavior of the parametric noise profile." - " """ + Specifies the behavior of the parametric noise profile + + """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] - return val # type: ignore + return val # type: ignore @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Behavior={value.value}"]) @property def use_log_linear_interpolation(self) -> bool: """Use Log-Linear Interpolation - "If true, linear interpolation in the log domain is used. If false, linear interpolation in the linear domain is used.." - "Value should be 'true' or 'false'." + If true, linear interpolation in the log domain is used. If false, + linear interpolation in the linear domain is used. + + Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return val # type: ignore + return val # type: ignore @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Log-Linear Interpolation={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py index 3c6db045c44..4c325199c27 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -49,7 +45,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -62,14 +58,16 @@ class HarmonicTableUnitsOption(Enum): @property def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units - "Specifies the units for the Harmonics." - " """ + Specifies the units for the Harmonics + + """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py index 545bcd7a73d..87d21270e74 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class TxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -47,93 +44,107 @@ def delete(self): @property def file(self) -> str: """File - "Name of the measurement source." - "Value should be a full file path." + Name of the measurement source + + Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: """Source File - "Name of the measurement source." - "Value should be a full file path." + Name of the measurement source + + Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def transmit_frequency(self) -> float: """Transmit Frequency - "Channel associated with the measurement file." - " """ + Channel associated with the measurement file + + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: """Use AMS Limits - "Allow AMS to define the frequency limits for the measurements." - "Value should be 'true' or 'false'." + Allow AMS to define the frequency limits for the measurements + + Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: """Start Frequency - "Starting frequency for the measurement sweep." - "Value should be greater than 1e+06." + Starting frequency for the measurement sweep + + Value should be greater than 1e+06. """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: """Stop Frequency - "Stopping frequency for the measurement sweep." - "Value should be less than 6e+09." + Stopping frequency for the measurement sweep + + Value should be less than 6e+09. """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def exclude_harmonics_below_noise(self) -> bool: """Exclude Harmonics Below Noise - "Include/Exclude Harmonics below the noise." - "Value should be 'true' or 'false'." + Include/Exclude Harmonics below the noise + + Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return val # type: ignore + return val # type: ignore @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Exclude Harmonics Below Noise={value}"]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py index 7d208c64fb3..7a916e69a81 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -49,7 +45,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -62,28 +58,33 @@ class NarrowbandBehaviorOption(Enum): @property def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior - "Specifies the behavior of the parametric narrowband emissions mask." - " """ + Specifies the behavior of the parametric narrowband emissions mask + + """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] - return val # type: ignore + return val # type: ignore @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Narrowband Behavior={value.value}"]) @property def measurement_frequency(self) -> float: """Measurement Frequency - "Measurement frequency for the absolute freq/amp pairs.." - " """ + Measurement frequency for the absolute freq/amp pairs. + + """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @measurement_frequency.setter - def measurement_frequency(self, value: float | str): + def measurement_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Frequency={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py index 70090c256f7..8fb1fd06cee 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class TxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +36,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -48,153 +45,184 @@ def enabled(self, value: bool): @property def output_voltage_peak(self) -> float: """Output Voltage Peak - "Output High Voltage Level: maximum voltage of the digital signal." - " """ + Output High Voltage Level: maximum voltage of the digital signal + + """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") - return val # type: ignore + return val # type: ignore @output_voltage_peak.setter - def output_voltage_peak(self, value: float | str): + def output_voltage_peak(self, value : float|str): value = self._convert_to_internal_units(value, "Voltage") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Voltage Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Voltage Peak={value}"]) @property def include_phase_noise(self) -> bool: """Include Phase Noise - "Include oscillator phase noise in Tx spectral profile." - "Value should be 'true' or 'false'." + Include oscillator phase noise in Tx spectral profile + + Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: """Tx Broadband Noise - "Transmitters broadband noise level." - "Value should be less than 1000." + Transmitters broadband noise level + + Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @tx_broadband_noise.setter - def tx_broadband_noise(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Broadband Noise={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: """Perform Tx Intermod Analysis - "Performs a non-linear intermod analysis for the Tx." - "Value should be 'true' or 'false'." + Performs a non-linear intermod analysis for the Tx + + Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Tx Intermod Analysis={value}"]) @property def internal_amp_gain(self) -> float: """Internal Amp Gain - "Internal Tx Amplifier's Gain." - "Value should be between -1000 and 1000." + Internal Tx Amplifier's Gain + + Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @internal_amp_gain.setter - def internal_amp_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: """Noise Figure - "Internal Tx Amplifier's noise figure." - "Value should be between 0 and 50." + Internal Tx Amplifier's noise figure + + Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: """Amplifier Saturation Level - "Internal Tx Amplifier's Saturation Level." - "Value should be between -200 and 200." + Internal Tx Amplifier's Saturation Level + + Value should be between -200 and 200. """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input - "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." - "Value should be between -200 and 200." + """P1-dB Point, Ref. Input + Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB + saturates the internal Tx amplifier + + Value should be between -200 and 200. """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: """IP3, Ref. Input - "Internal Tx Amplifier's 3rd order intercept point." - "Value should be between -200 and 200." + Internal Tx Amplifier's 3rd order intercept point + + Value should be between -200 and 200. """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: """Reverse Isolation - "Internal Tx Amplifier's Reverse Isolation." - "Value should be between -200 and 200." + Internal Tx Amplifier's Reverse Isolation + + Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: """Max Intermod Order - "Internal Tx Amplifier's maximum intermod order to compute." - "Value should be between 3 and 20." + Internal Tx Amplifier's maximum intermod order to compute + + Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py index fd5bdbce8e0..7aff4d62591 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +37,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -54,15 +50,18 @@ class SpectrumTypeOption(Enum): @property def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type - "Specifies EMI Margins to calculate." - " """ + Specifies EMI Margins to calculate + + """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] - return val # type: ignore + return val # type: ignore @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spectrum Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spectrum Type={value.value}"]) class TxPowerOption(Enum): PEAK_POWER = "Peak Power" @@ -71,71 +70,86 @@ class TxPowerOption(Enum): @property def tx_power(self) -> TxPowerOption: """Tx Power - "Method used to specify the power." - " """ + Method used to specify the power + + """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] - return val # type: ignore + return val # type: ignore @tx_power.setter def tx_power(self, value: TxPowerOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Power={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Power={value.value}"]) @property def peak_power(self) -> float: """Peak Power - "Tx's carrier frequency peak power." - "Value should be between -1000 and 1000." + Tx's carrier frequency peak power + + Value should be between -1000 and 1000. """ val = self._get_property("Peak Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @peak_power.setter - def peak_power(self, value: float | str): + def peak_power(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Peak Power={value}"]) @property def average_power(self) -> float: """Average Power - "Tx's fundamental level specified by average power." - "Value should be between -1000 and 1000." + Tx's fundamental level specified by average power + + Value should be between -1000 and 1000. """ val = self._get_property("Average Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @average_power.setter - def average_power(self, value: float | str): + def average_power(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Average Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Average Power={value}"]) @property def include_phase_noise(self) -> bool: """Include Phase Noise - "Include oscillator phase noise in Tx spectral profile." - "Value should be 'true' or 'false'." + Include oscillator phase noise in Tx spectral profile + + Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: """Tx Broadband Noise - "Transmitters broadband noise level." - "Value should be less than 1000." + Transmitters broadband noise level + + Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @tx_broadband_noise.setter - def tx_broadband_noise(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Broadband Noise={value}"]) class HarmonicTaperOption(Enum): CONSTANT = "Constant" @@ -146,232 +160,280 @@ class HarmonicTaperOption(Enum): @property def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper - "Taper type used to set amplitude of harmonics." - " """ + Taper type used to set amplitude of harmonics + + """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] - return val # type: ignore + return val # type: ignore @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Taper={value.value}"]) @property def harmonic_amplitude(self) -> float: """Harmonic Amplitude - "Amplitude (relative to the carrier power) of harmonics." - "Value should be between -1000 and 0." + Amplitude (relative to the carrier power) of harmonics + + Value should be between -1000 and 0. """ val = self._get_property("Harmonic Amplitude") - return val # type: ignore + return val # type: ignore @harmonic_amplitude.setter - def harmonic_amplitude(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Amplitude={value}"]) + def harmonic_amplitude(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Amplitude={value}"]) @property def harmonic_slope(self) -> float: """Harmonic Slope - "Rate of decrease for harmonics' amplitudes (dB/decade)." - "Value should be between -1000 and 0." + Rate of decrease for harmonics' amplitudes (dB/decade) + + Value should be between -1000 and 0. """ val = self._get_property("Harmonic Slope") - return val # type: ignore + return val # type: ignore @harmonic_slope.setter - def harmonic_slope(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Slope={value}"]) + def harmonic_slope(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Slope={value}"]) @property def harmonic_intercept(self) -> float: """Harmonic Intercept - "Amplitude intercept at the fundamental (dBc)." - "Value should be between -1000 and 0." + Amplitude intercept at the fundamental (dBc) + + Value should be between -1000 and 0. """ val = self._get_property("Harmonic Intercept") - return val # type: ignore + return val # type: ignore @harmonic_intercept.setter - def harmonic_intercept(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Intercept={value}"]) + def harmonic_intercept(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Intercept={value}"]) @property def enable_harmonic_bw_expansion(self) -> bool: """Enable Harmonic BW Expansion - "If (True), bandwidth of harmonics increases proportional to the harmonic number." - "Value should be 'true' or 'false'." + If (True), bandwidth of harmonics increases proportional to the harmonic + number + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return val # type: ignore + return val # type: ignore @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Enable Harmonic BW Expansion={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Harmonic BW Expansion={value}"]) @property def number_of_harmonics(self) -> int: """Number of Harmonics - "Maximum number of harmonics modeled." - "Value should be between 1 and 1000." + Maximum number of harmonics modeled + + Value should be between 1 and 1000. """ val = self._get_property("Number of Harmonics") - return val # type: ignore + return val # type: ignore @number_of_harmonics.setter def number_of_harmonics(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Harmonics={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Harmonics={value}"]) @property def second_harmonic_level(self) -> float: """Second Harmonic Level - "Amplitude (relative to the carrier power) of the 2nd harmonic." - "Value should be between -1000 and 0." + Amplitude (relative to the carrier power) of the 2nd harmonic + + Value should be between -1000 and 0. """ val = self._get_property("Second Harmonic Level") - return val # type: ignore + return val # type: ignore @second_harmonic_level.setter - def second_harmonic_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Second Harmonic Level={value}"]) + def second_harmonic_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Second Harmonic Level={value}"]) @property def third_harmonic_level(self) -> float: """Third Harmonic Level - "Amplitude (relative to the carrier power) of the 3rd harmonic." - "Value should be between -1000 and 0." + Amplitude (relative to the carrier power) of the 3rd harmonic + + Value should be between -1000 and 0. """ val = self._get_property("Third Harmonic Level") - return val # type: ignore + return val # type: ignore @third_harmonic_level.setter - def third_harmonic_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Third Harmonic Level={value}"]) + def third_harmonic_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Third Harmonic Level={value}"]) @property def other_harmonic_levels(self) -> float: """Other Harmonic Levels - "Amplitude (relative to the carrier power) of the higher order harmonics." - "Value should be between -1000 and 0." + Amplitude (relative to the carrier power) of the higher order harmonics + + Value should be between -1000 and 0. """ val = self._get_property("Other Harmonic Levels") - return val # type: ignore + return val # type: ignore @other_harmonic_levels.setter - def other_harmonic_levels(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Other Harmonic Levels={value}"]) + def other_harmonic_levels(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Other Harmonic Levels={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: """Perform Tx Intermod Analysis - "Performs a non-linear intermod analysis for the Tx." - "Value should be 'true' or 'false'." + Performs a non-linear intermod analysis for the Tx + + Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Tx Intermod Analysis={value}"]) @property def internal_amp_gain(self) -> float: """Internal Amp Gain - "Internal Tx Amplifier's Gain." - "Value should be between -1000 and 1000." + Internal Tx Amplifier's Gain + + Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @internal_amp_gain.setter - def internal_amp_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: """Noise Figure - "Internal Tx Amplifier's noise figure." - "Value should be between 0 and 50." + Internal Tx Amplifier's noise figure + + Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: """Amplifier Saturation Level - "Internal Tx Amplifier's Saturation Level." - "Value should be between -200 and 200." + Internal Tx Amplifier's Saturation Level + + Value should be between -200 and 200. """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input - "Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier." - "Value should be between -200 and 200." + """P1-dB Point, Ref. Input + Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB + saturates the internal Tx amplifier + + Value should be between -200 and 200. """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: """IP3, Ref. Input - "Internal Tx Amplifier's 3rd order intercept point." - "Value should be between -200 and 200." + Internal Tx Amplifier's 3rd order intercept point + + Value should be between -200 and 200. """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: """Reverse Isolation - "Internal Tx Amplifier's Reverse Isolation." - "Value should be between -200 and 200." + Internal Tx Amplifier's Reverse Isolation + + Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: """Max Intermod Order - "Internal Tx Amplifier's maximum intermod order to compute." - "Value should be between 3 and 20." + Internal Tx Amplifier's maximum intermod order to compute + + Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py index 85bd834841d..4e63aedf86e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -48,14 +44,14 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): - " Value should be a mathematical expression." - "Bandwidth: - " Value should be greater than 1." - "Power: - " Value should be between -200 and 150." + "Frequency (MHz): + Value should be a mathematical expression. + "Bandwidth: + Value should be greater than 1. + "Power: + Value should be between -200 and 150. """ return self._get_table_data() @@ -66,7 +62,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -79,12 +75,16 @@ class SpurTableUnitsOption(Enum): @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units - "Specifies the units for the Spurs." - " """ + Specifies the units for the Spurs + + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spur Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py index b08ede31135..5b3e3ec6adc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class WalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,77 +49,95 @@ def delete(self): @property def enabled(self) -> bool: """Enabled - "Enable/Disable coupling." - "Value should be 'true' or 'false'." + Enable/Disable coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna - "First antenna of the pair to apply the coupling values to." - " """ + First antenna of the pair to apply the coupling values to + + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna - "Second antenna of the pair to apply the coupling values to." - " """ + Second antenna of the pair to apply the coupling values to + + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: """Enable Refinement - "Enables/disables refined sampling of the frequency domain.." - "Value should be 'true' or 'false'." + Enables/disables refined sampling of the frequency domain. + + Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: """Adaptive Sampling - "Enables/disables adaptive refinement the frequency domain sampling.." - "Value should be 'true' or 'false'." + Enables/disables adaptive refinement the frequency domain sampling. + + Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain - "Points to use when refining the frequency domain.." - " """ + Points to use when refining the frequency domain. + + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class PathLossTypeOption(Enum): LOS_URBAN_CANYON = "LOS (Urban Canyon)" @@ -132,15 +146,18 @@ class PathLossTypeOption(Enum): @property def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type - "Specify LOS vs NLOS for the Walfisch-Ikegami model." - " """ + Specify LOS vs NLOS for the Walfisch-Ikegami model + + """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] - return val # type: ignore + return val # type: ignore @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Path Loss Type={value.value}"]) class EnvironmentOption(Enum): DENSE_METRO = "Dense Metro" @@ -149,114 +166,139 @@ class EnvironmentOption(Enum): @property def environment(self) -> EnvironmentOption: """Environment - "Specify the environment type for the Walfisch model." - " """ + Specify the environment type for the Walfisch model + + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def roof_height(self) -> float: """Roof Height - "The height of the building where the antenna is located.." - "Value should be between 0 and 100." + The height of the building where the antenna is located. + + Value should be between 0 and 100. """ val = self._get_property("Roof Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @roof_height.setter - def roof_height(self, value: float | str): + def roof_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Roof Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Roof Height={value}"]) @property def distance_between_buildings(self) -> float: """Distance Between Buildings - "The distance between two buildings.." - "Value should be between 0 and 100." + The distance between two buildings. + + Value should be between 0 and 100. """ val = self._get_property("Distance Between Buildings") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @distance_between_buildings.setter - def distance_between_buildings(self, value: float | str): + def distance_between_buildings(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Distance Between Buildings={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Distance Between Buildings={value}"]) @property def street_width(self) -> float: """Street Width - "Width of the street.." - "Value should be between 0 and 100." + Width of the street. + + Value should be between 0 and 100. """ val = self._get_property("Street Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @street_width.setter - def street_width(self, value: float | str): + def street_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Street Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Street Width={value}"]) @property def incidence_angle(self) -> float: """Incidence Angle - "Angle between the street orientation and direction of incidence.." - "Value should be between 0 and 90." + Angle between the street orientation and direction of incidence. + + Value should be between 0 and 90. """ val = self._get_property("Incidence Angle") - return val # type: ignore + return val # type: ignore @incidence_angle.setter - def incidence_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Incidence Angle={value}"]) + def incidence_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Incidence Angle={value}"]) @property def custom_fading_margin(self) -> float: """Custom Fading Margin - "Sets a custom fading margin to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a custom fading margin to be applied to all coupling defined by + this node + + Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: """Polarization Mismatch - "Sets a margin for polarization mismatch to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for polarization mismatch to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: """Pointing Error Loss - "Sets a margin for pointing error loss to be applied to all coupling defined by this node." - "Value should be between 0 and 100." + Sets a margin for pointing error loss to be applied to all coupling + defined by this node + + Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -267,146 +309,180 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: """Fading Type - "Specify the type of fading to include." - " """ + Specify the type of fading to include + + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: """Fading Availability - "The probability that the propagation loss in dB is below its median value plus the margin." - "Value should be between 0 and 100." + The probability that the propagation loss in dB is below its median + value plus the margin + + Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: """Std Deviation - "Standard deviation modeling the random amount of shadowing loss." - "Value should be between 0 and 100." + Standard deviation modeling the random amount of shadowing loss + + Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: """Include Rain Attenuation - "Adds a margin for rain attenuation to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for rain attenuation to the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: """Rain Availability - "Percentage of time attenuation due to range is < computed margin (range from 99-99.999%)." - "Value should be between 99 and 99.999." + Percentage of time attenuation due to range is < computed margin (range + from 99-99.999%) + + Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: """Rain Rate - "Rain rate (mm/hr) exceeded for 0.01% of the time." - "Value should be between 0 and 1000." + Rain rate (mm/hr) exceeded for 0.01% of the time + + Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: """Polarization Tilt Angle - "Polarization tilt angle of the transmitted signal relative to the horizontal." - "Value should be between 0 and 180." + Polarization tilt angle of the transmitted signal relative to the + horizontal + + Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: """Include Atmospheric Absorption - "Adds a margin for atmospheric absorption due to oxygen/water vapor to the computed coupling." - "Value should be 'true' or 'false'." + Adds a margin for atmospheric absorption due to oxygen/water vapor to + the computed coupling + + Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: """Temperature - "Air temperature in degrees Celsius." - "Value should be between -273 and 100." + Air temperature in degrees Celsius + + Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: """Total Air Pressure - "Total air pressure." - "Value should be between 0 and 2000." + Total air pressure + + Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: """Water Vapor Concentration - "Water vapor concentration." - "Value should be between 0 and 2000." + Water vapor concentration + + Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py index 1089548403d..9ed82715618 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Waveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +37,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -50,14 +46,17 @@ def enabled(self, value: bool): @property def port(self): """Port - "Radio Port associated with this Band." - " """ + Radio Port associated with this Band + + """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port={value}"]) class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" @@ -69,88 +68,106 @@ class WaveformOption(Enum): @property def waveform(self) -> WaveformOption: """Waveform - "Modulation used for the transmitted/received signal." - " """ + Modulation used for the transmitted/received signal + + """ val = self._get_property("Waveform") val = self.WaveformOption[val] - return val # type: ignore + return val # type: ignore @waveform.setter def waveform(self, value: WaveformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Waveform={value.value}"]) @property def start_frequency(self) -> float: """Start Frequency - "First frequency for this band." - "Value should be between 1 and 1e+11." + First frequency for this band + + Value should be between 1 and 1e+11. """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: """Stop Frequency - "Last frequency for this band." - "Value should be between 1 and 1e+11." + Last frequency for this band + + Value should be between 1 and 1e+11. """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: """Channel Spacing - "Spacing between channels within this band." - "Value should be between 1 and 1e+11." + Spacing between channels within this band + + Value should be between 1 and 1e+11. """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_spacing.setter - def channel_spacing(self, value: float | str): + def channel_spacing(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Spacing={value}"]) @property def clock_duty_cycle(self) -> float: """Clock Duty Cycle - "Clock signals duty cycle." - "Value should be between 0.001 and 1." + Clock signals duty cycle + + Value should be between 0.001 and 1. """ val = self._get_property("Clock Duty Cycle") - return val # type: ignore + return val # type: ignore @clock_duty_cycle.setter - def clock_duty_cycle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Duty Cycle={value}"]) + def clock_duty_cycle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Clock Duty Cycle={value}"]) @property def clock_risefall_time(self) -> float: """Clock Rise/Fall Time - "Clock signals rise/fall time." - "Value should be greater than 0." + Clock signals rise/fall time + + Value should be greater than 0. """ val = self._get_property("Clock Rise/Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @clock_risefall_time.setter - def clock_risefall_time(self, value: float | str): + def clock_risefall_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Rise/Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Clock Rise/Fall Time={value}"]) class SpreadingTypeOption(Enum): LOW_SPREAD = "Low Spread" @@ -160,117 +177,140 @@ class SpreadingTypeOption(Enum): @property def spreading_type(self) -> SpreadingTypeOption: """Spreading Type - "Type of spreading employed by the Spread Spectrum Clock." - " """ + Type of spreading employed by the Spread Spectrum Clock + + """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] - return val # type: ignore + return val # type: ignore @spreading_type.setter def spreading_type(self, value: SpreadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spreading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spreading Type={value.value}"]) @property def spread_percentage(self) -> float: """Spread Percentage - "Peak-to-peak spread percentage." - "Value should be between 0 and 100." + Peak-to-peak spread percentage + + Value should be between 0 and 100. """ val = self._get_property("Spread Percentage") - return val # type: ignore + return val # type: ignore @spread_percentage.setter - def spread_percentage(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spread Percentage={value}"]) + def spread_percentage(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spread Percentage={value}"]) @property def imported_spectrum(self) -> str: """Imported Spectrum - "Value should be a full file path." + Value should be a full file path. """ val = self._get_property("Imported Spectrum") - return val # type: ignore + return val # type: ignore @imported_spectrum.setter def imported_spectrum(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Imported Spectrum={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Imported Spectrum={value}"]) @property def raw_data_format(self) -> str: """Raw Data Format - "Format of the imported raw data." - " """ + Format of the imported raw data + + """ val = self._get_property("Raw Data Format") - return val # type: ignore + return val # type: ignore @property def system_impedance(self) -> float: """System Impedance - "System impedance for the imported data." - "Value should be between 0 and 1e+06." + System impedance for the imported data + + Value should be between 0 and 1e+06. """ val = self._get_property("System Impedance") val = self._convert_from_internal_units(float(val), "Resistance") - return val # type: ignore + return val # type: ignore @system_impedance.setter - def system_impedance(self, value: float | str): + def system_impedance(self, value : float|str): value = self._convert_to_internal_units(value, "Resistance") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"System Impedance={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"System Impedance={value}"]) @property def advanced_extraction_params(self) -> bool: """Advanced Extraction Params - "Show/hide advanced extraction params." - "Value should be 'true' or 'false'." + Show/hide advanced extraction params + + Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return val # type: ignore + return val # type: ignore @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Advanced Extraction Params={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Advanced Extraction Params={value}"]) @property def nb_window_size(self) -> float: """NB Window Size - "Window size for computing the moving average during narrowband signal detection." - "Value should be greater than 3." + Window size for computing the moving average during narrowband signal + detection + + Value should be greater than 3. """ val = self._get_property("NB Window Size") - return val # type: ignore + return val # type: ignore @nb_window_size.setter - def nb_window_size(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Window Size={value}"]) + def nb_window_size(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NB Window Size={value}"]) @property def bb_smoothing_factor(self) -> float: """BB Smoothing Factor - "Reduces the number of frequency points used for the broadband noise." - "Value should be greater than 1." + Reduces the number of frequency points used for the broadband noise + + Value should be greater than 1. """ val = self._get_property("BB Smoothing Factor") - return val # type: ignore + return val # type: ignore @bb_smoothing_factor.setter - def bb_smoothing_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Smoothing Factor={value}"]) + def bb_smoothing_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Smoothing Factor={value}"]) @property def nb_detector_threshold(self) -> float: """NB Detector Threshold - "Narrowband Detector threshold standard deviation." - "Value should be between 2 and 10." + Narrowband Detector threshold standard deviation + + Value should be between 2 and 10. """ val = self._get_property("NB Detector Threshold") - return val # type: ignore + return val # type: ignore @nb_detector_threshold.setter - def nb_detector_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Detector Threshold={value}"]) + def nb_detector_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NB Detector Threshold={value}"]) class AlgorithmOption(Enum): FFT = "FFT" @@ -279,59 +319,71 @@ class AlgorithmOption(Enum): @property def algorithm(self) -> AlgorithmOption: """Algorithm - "Algorithm used to transform the imported time domain spectrum." - " """ + Algorithm used to transform the imported time domain spectrum + + """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] - return val # type: ignore + return val # type: ignore @algorithm.setter def algorithm(self, value: AlgorithmOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Algorithm={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Algorithm={value.value}"]) @property def start_time(self) -> float: """Start Time - "Initial time of the imported spectrum." - "Value should be greater than 0." + Initial time of the imported spectrum + + Value should be greater than 0. """ val = self._get_property("Start Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @start_time.setter - def start_time(self, value: float | str): + def start_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Time={value}"]) @property def stop_time(self) -> float: """Stop Time - "Final time of the imported time domain spectrum." - " """ + Final time of the imported time domain spectrum + + """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @stop_time.setter - def stop_time(self, value: float | str): + def stop_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Time={value}"]) @property def max_frequency(self) -> float: """Max Frequency - "Frequency cutoff of the imported time domain spectrum." - "Value should be between 1 and 1e+11." + Frequency cutoff of the imported time domain spectrum + + Value should be between 1 and 1e+11. """ val = self._get_property("Max Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_frequency.setter - def max_frequency(self, value: float | str): + def max_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Frequency={value}"]) class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" @@ -347,107 +399,132 @@ class WindowTypeOption(Enum): @property def window_type(self) -> WindowTypeOption: """Window Type - "Windowing scheme used for importing time domain spectrum." - " """ + Windowing scheme used for importing time domain spectrum + + """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] - return val # type: ignore + return val # type: ignore @window_type.setter def window_type(self, value: WindowTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Window Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Window Type={value.value}"]) @property def kaiser_parameter(self) -> float: """Kaiser Parameter - "Shape factor applied to the transform." - "Value should be greater than 0." + Shape factor applied to the transform + + Value should be greater than 0. """ val = self._get_property("Kaiser Parameter") - return val # type: ignore + return val # type: ignore @kaiser_parameter.setter - def kaiser_parameter(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Kaiser Parameter={value}"]) + def kaiser_parameter(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Kaiser Parameter={value}"]) @property def adjust_coherent_gain(self) -> bool: """Adjust Coherent Gain - "Shape factor applied to the transform." - "Value should be 'true' or 'false'." + Shape factor applied to the transform + + Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return val # type: ignore + return val # type: ignore @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adjust Coherent Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adjust Coherent Gain={value}"]) @property def data_rate(self) -> float: """Data Rate - "Maximum data rate: helps determine shape of spectral profile." - "Value should be greater than 1." + Maximum data rate: helps determine shape of spectral profile + + Value should be greater than 1. """ val = self._get_property("Data Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @data_rate.setter - def data_rate(self, value: float | str): + def data_rate(self, value : float|str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Rate={value}"]) @property def num_of_bits(self) -> int: """Num of Bits - "Length of the Pseudo Random Binary Sequence." - "Value should be between 1 and 1000." + Length of the Pseudo Random Binary Sequence + + Value should be between 1 and 1000. """ val = self._get_property("Num of Bits") - return val # type: ignore + return val # type: ignore @num_of_bits.setter def num_of_bits(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Num of Bits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Num of Bits={value}"]) @property def use_envelope(self) -> bool: """Use Envelope - "Model the waveform as a worst case envelope.." - "Value should be 'true' or 'false'." + Model the waveform as a worst case envelope. + + Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return val # type: ignore + return val # type: ignore @use_envelope.setter def use_envelope(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Envelope={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Envelope={value}"]) @property def min_ptsnull(self) -> int: """Min Pts/Null - "Minimum number of points to use between each null frequency." - "Value should be between 2 and 50." + Minimum number of points to use between each null frequency + + Value should be between 2 and 50. """ val = self._get_property("Min Pts/Null") - return val # type: ignore + return val # type: ignore @min_ptsnull.setter def min_ptsnull(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pts/Null={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pts/Null={value}"]) @property def delay_skew(self) -> float: """Delay Skew - "Delay Skew of the differential signal pairs." - "Value should be greater than 0." + Delay Skew of the differential signal pairs + + Value should be greater than 0. """ val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @delay_skew.setter - def delay_skew(self, value: float | str): + def delay_skew(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Delay Skew={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Delay Skew={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index 7f7a748aedf..bd6f8b1de0e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,27 +1,3 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from .Amplifier import Amplifier from .AntennaNode import AntennaNode from .AntennaPassband import AntennaPassband @@ -57,6 +33,38 @@ from .ProfileTraceNode import ProfileTraceNode from .PropagationLossCouplingNode import PropagationLossCouplingNode from .RadioNode import RadioNode +from .ResultPlotNode import ResultPlotNode +from .RfSystemGroup import RfSystemGroup +from .RxMeasNode import RxMeasNode +from .RxMixerProductNode import RxMixerProductNode +from .RxSaturationNode import RxSaturationNode +from .RxSelectivityNode import RxSelectivityNode +from .RxSpurNode import RxSpurNode +from .RxSusceptibilityProfNode import RxSusceptibilityProfNode +from .SamplingNode import SamplingNode +from .SceneGroupNode import SceneGroupNode +from .SelectivityTraceNode import SelectivityTraceNode +from .SolutionCouplingNode import SolutionCouplingNode +from .SolutionsNode import SolutionsNode +from .SpurTraceNode import SpurTraceNode +from .TR_Switch import TR_Switch +from .TRSwitchTraceNode import TRSwitchTraceNode +from .Terminator import Terminator +from .TestNoiseTraceNode import TestNoiseTraceNode +from .TopLevelSimulation import TopLevelSimulation +from .TouchstoneCouplingNode import TouchstoneCouplingNode +from .TunableTraceNode import TunableTraceNode +from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode +from .TwoToneTraceNode import TwoToneTraceNode +from .TxBbEmissionNode import TxBbEmissionNode +from .TxHarmonicNode import TxHarmonicNode +from .TxMeasNode import TxMeasNode +from .TxNbEmissionNode import TxNbEmissionNode +from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode +from .TxSpectralProfNode import TxSpectralProfNode +from .TxSpurNode import TxSpurNode +from .WalfischCouplingNode import WalfischCouplingNode +from .Waveform import Waveform from .ReadOnlyAmplifier import ReadOnlyAmplifier from .ReadOnlyAntennaNode import ReadOnlyAntennaNode from .ReadOnlyAntennaPassband import ReadOnlyAntennaPassband @@ -105,153 +113,121 @@ from .ReadOnlyTxSpurNode import ReadOnlyTxSpurNode from .ReadOnlyWalfischCouplingNode import ReadOnlyWalfischCouplingNode from .ReadOnlyWaveform import ReadOnlyWaveform -from .ResultPlotNode import ResultPlotNode -from .RfSystemGroup import RfSystemGroup -from .RxMeasNode import RxMeasNode -from .RxMixerProductNode import RxMixerProductNode -from .RxSaturationNode import RxSaturationNode -from .RxSelectivityNode import RxSelectivityNode -from .RxSpurNode import RxSpurNode -from .RxSusceptibilityProfNode import RxSusceptibilityProfNode -from .SamplingNode import SamplingNode -from .SceneGroupNode import SceneGroupNode -from .SelectivityTraceNode import SelectivityTraceNode -from .SolutionCouplingNode import SolutionCouplingNode -from .SolutionsNode import SolutionsNode -from .SpurTraceNode import SpurTraceNode -from .TRSwitchTraceNode import TRSwitchTraceNode -from .TR_Switch import TR_Switch -from .Terminator import Terminator -from .TestNoiseTraceNode import TestNoiseTraceNode -from .TopLevelSimulation import TopLevelSimulation -from .TouchstoneCouplingNode import TouchstoneCouplingNode -from .TunableTraceNode import TunableTraceNode -from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode -from .TwoToneTraceNode import TwoToneTraceNode -from .TxBbEmissionNode import TxBbEmissionNode -from .TxHarmonicNode import TxHarmonicNode -from .TxMeasNode import TxMeasNode -from .TxNbEmissionNode import TxNbEmissionNode -from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode -from .TxSpectralProfNode import TxSpectralProfNode -from .TxSpurNode import TxSpurNode -from .WalfischCouplingNode import WalfischCouplingNode -from .Waveform import Waveform __all__ = [ - "Amplifier", - "AntennaNode", - "AntennaPassband", - "Band", - "BandFolder", - "BandTraceNode", - "CADNode", - "Cable", - "CategoriesViewNode", - "Circulator", - "CouplingLinkNode", - "CouplingTraceNode", - "CouplingsNode", - "CustomCouplingNode", - "EmiPlotMarkerNode", - "EmitSceneNode", - "ErcegCouplingNode", - "Filter", - "FiveGChannelModel", - "HataCouplingNode", - "IndoorPropagationCouplingNode", - "Isolator", - "LogDistanceCouplingNode", - "MPlexBandTraceNode", - "Multiplexer", - "MultiplexerBand", - "OutboardTraceNode", - "ParametricCouplingTraceNode", - "PlotMarkerNode", - "PlotNode", - "PowerDivider", - "PowerTraceNode", - "ProfileTraceNode", - "PropagationLossCouplingNode", - "RadioNode", - "ResultPlotNode", - "RfSystemGroup", - "RxMeasNode", - "RxMixerProductNode", - "RxSaturationNode", - "RxSelectivityNode", - "RxSpurNode", - "RxSusceptibilityProfNode", - "SamplingNode", - "SceneGroupNode", - "SelectivityTraceNode", - "SolutionCouplingNode", - "SolutionsNode", - "SpurTraceNode", - "TR_Switch", - "TRSwitchTraceNode", - "Terminator", - "TestNoiseTraceNode", - "TopLevelSimulation", - "TouchstoneCouplingNode", - "TunableTraceNode", - "TwoRayPathLossCouplingNode", - "TwoToneTraceNode", - "TxBbEmissionNode", - "TxHarmonicNode", - "TxMeasNode", - "TxNbEmissionNode", - "TxSpectralProfEmitterNode", - "TxSpectralProfNode", - "TxSpurNode", - "WalfischCouplingNode", - "Waveform", - "ReadOnlyAmplifier", - "ReadOnlyAntennaNode", - "ReadOnlyAntennaPassband", - "ReadOnlyBand", - "ReadOnlyBandFolder", - "ReadOnlyCADNode", - "ReadOnlyCable", - "ReadOnlyCirculator", - "ReadOnlyCouplingLinkNode", - "ReadOnlyCouplingsNode", - "ReadOnlyCustomCouplingNode", - "ReadOnlyEmitSceneNode", - "ReadOnlyErcegCouplingNode", - "ReadOnlyFilter", - "ReadOnlyFiveGChannelModel", - "ReadOnlyHataCouplingNode", - "ReadOnlyIndoorPropagationCouplingNode", - "ReadOnlyIsolator", - "ReadOnlyLogDistanceCouplingNode", - "ReadOnlyMultiplexer", - "ReadOnlyMultiplexerBand", - "ReadOnlyPowerDivider", - "ReadOnlyPropagationLossCouplingNode", - "ReadOnlyRadioNode", - "ReadOnlyRfSystemGroup", - "ReadOnlyRxMeasNode", - "ReadOnlyRxMixerProductNode", - "ReadOnlyRxSaturationNode", - "ReadOnlyRxSelectivityNode", - "ReadOnlyRxSpurNode", - "ReadOnlyRxSusceptibilityProfNode", - "ReadOnlySamplingNode", - "ReadOnlySceneGroupNode", - "ReadOnlySolutionCouplingNode", - "ReadOnlySolutionsNode", - "ReadOnlyTR_Switch", - "ReadOnlyTerminator", - "ReadOnlyTouchstoneCouplingNode", - "ReadOnlyTwoRayPathLossCouplingNode", - "ReadOnlyTxBbEmissionNode", - "ReadOnlyTxHarmonicNode", - "ReadOnlyTxMeasNode", - "ReadOnlyTxNbEmissionNode", - "ReadOnlyTxSpectralProfEmitterNode", - "ReadOnlyTxSpectralProfNode", - "ReadOnlyTxSpurNode", - "ReadOnlyWalfischCouplingNode", - "ReadOnlyWaveform", + 'Amplifier', + 'AntennaNode', + 'AntennaPassband', + 'Band', + 'BandFolder', + 'BandTraceNode', + 'CADNode', + 'Cable', + 'CategoriesViewNode', + 'Circulator', + 'CouplingLinkNode', + 'CouplingTraceNode', + 'CouplingsNode', + 'CustomCouplingNode', + 'EmiPlotMarkerNode', + 'EmitSceneNode', + 'ErcegCouplingNode', + 'Filter', + 'FiveGChannelModel', + 'HataCouplingNode', + 'IndoorPropagationCouplingNode', + 'Isolator', + 'LogDistanceCouplingNode', + 'MPlexBandTraceNode', + 'Multiplexer', + 'MultiplexerBand', + 'OutboardTraceNode', + 'ParametricCouplingTraceNode', + 'PlotMarkerNode', + 'PlotNode', + 'PowerDivider', + 'PowerTraceNode', + 'ProfileTraceNode', + 'PropagationLossCouplingNode', + 'RadioNode', + 'ResultPlotNode', + 'RfSystemGroup', + 'RxMeasNode', + 'RxMixerProductNode', + 'RxSaturationNode', + 'RxSelectivityNode', + 'RxSpurNode', + 'RxSusceptibilityProfNode', + 'SamplingNode', + 'SceneGroupNode', + 'SelectivityTraceNode', + 'SolutionCouplingNode', + 'SolutionsNode', + 'SpurTraceNode', + 'TR_Switch', + 'TRSwitchTraceNode', + 'Terminator', + 'TestNoiseTraceNode', + 'TopLevelSimulation', + 'TouchstoneCouplingNode', + 'TunableTraceNode', + 'TwoRayPathLossCouplingNode', + 'TwoToneTraceNode', + 'TxBbEmissionNode', + 'TxHarmonicNode', + 'TxMeasNode', + 'TxNbEmissionNode', + 'TxSpectralProfEmitterNode', + 'TxSpectralProfNode', + 'TxSpurNode', + 'WalfischCouplingNode', + 'Waveform', + 'ReadOnlyAmplifier', + 'ReadOnlyAntennaNode', + 'ReadOnlyAntennaPassband', + 'ReadOnlyBand', + 'ReadOnlyBandFolder', + 'ReadOnlyCADNode', + 'ReadOnlyCable', + 'ReadOnlyCirculator', + 'ReadOnlyCouplingLinkNode', + 'ReadOnlyCouplingsNode', + 'ReadOnlyCustomCouplingNode', + 'ReadOnlyEmitSceneNode', + 'ReadOnlyErcegCouplingNode', + 'ReadOnlyFilter', + 'ReadOnlyFiveGChannelModel', + 'ReadOnlyHataCouplingNode', + 'ReadOnlyIndoorPropagationCouplingNode', + 'ReadOnlyIsolator', + 'ReadOnlyLogDistanceCouplingNode', + 'ReadOnlyMultiplexer', + 'ReadOnlyMultiplexerBand', + 'ReadOnlyPowerDivider', + 'ReadOnlyPropagationLossCouplingNode', + 'ReadOnlyRadioNode', + 'ReadOnlyRfSystemGroup', + 'ReadOnlyRxMeasNode', + 'ReadOnlyRxMixerProductNode', + 'ReadOnlyRxSaturationNode', + 'ReadOnlyRxSelectivityNode', + 'ReadOnlyRxSpurNode', + 'ReadOnlyRxSusceptibilityProfNode', + 'ReadOnlySamplingNode', + 'ReadOnlySceneGroupNode', + 'ReadOnlySolutionCouplingNode', + 'ReadOnlySolutionsNode', + 'ReadOnlyTR_Switch', + 'ReadOnlyTerminator', + 'ReadOnlyTouchstoneCouplingNode', + 'ReadOnlyTwoRayPathLossCouplingNode', + 'ReadOnlyTxBbEmissionNode', + 'ReadOnlyTxHarmonicNode', + 'ReadOnlyTxMeasNode', + 'ReadOnlyTxNbEmissionNode', + 'ReadOnlyTxSpectralProfEmitterNode', + 'ReadOnlyTxSpectralProfNode', + 'ReadOnlyTxSpurNode', + 'ReadOnlyWalfischCouplingNode', + 'ReadOnlyWaveform', ] diff --git a/src/ansys/aedt/core/modeler/circuits/primitives_emit.py b/src/ansys/aedt/core/modeler/circuits/primitives_emit.py index 3424bb73e7f..c4e16a18016 100644 --- a/src/ansys/aedt/core/modeler/circuits/primitives_emit.py +++ b/src/ansys/aedt/core/modeler/circuits/primitives_emit.py @@ -704,7 +704,7 @@ def get_position(self, units=""): # Check the units specified are a valid EMIT length if not units or units not in emit_consts.EMIT_VALID_UNITS["Length"]: - units = self.units["Length"] + units = "meter" position = ( consts.unit_converter(float(parts[0]), "Length", "meter", units), consts.unit_converter(float(parts[1]), "Length", "meter", units), @@ -776,14 +776,14 @@ def band_start_frequency(self, band_node, units=""): ---------- band_node : Instance of the band node. units : str, optional - If ``None`` specified, global units are used. + If ``None`` specified, SI units (Hz) are used. Returns ------- Float Start frequency of the band node.""" if not units or units not in emit_consts.EMIT_VALID_UNITS["Frequency"]: - units = self.units["Frequency"] + units = "Hz" return consts.unit_converter(float(band_node.props["StartFrequency"]), "Freq", "Hz", units) def band_stop_frequency(self, band_node, units=""): @@ -793,14 +793,14 @@ def band_stop_frequency(self, band_node, units=""): ---------- band_node : Instance of the band node. units : str, optional - If ``None`` specified, global units are used. + If ``None`` specified, SI units (Hz) are used. Returns ------- Float Stop frequency of the band node.""" if not units or units not in emit_consts.EMIT_VALID_UNITS["Frequency"]: - units = self.units["Frequency"] + units = "Hz" return consts.unit_converter(float(band_node.props["StopFrequency"]), "Freq", "Hz", units) def set_band_start_frequency(self, band_node, band_start_freq, units=""): @@ -893,54 +893,6 @@ def set_band_stop_frequency(self, band_node, band_stop_freq, units=""): prop_list = {"StopFrequency": freq_string} band_node._set_prop_value(prop_list) - # def duplicate_band(self, band_node_to_duplicate): - # """ - # [Incomplete 10/19/2023] - # Parameters - # ---------- - # band_node_to_duplicate - # - # Returns - # ------- - # - # """ - # # append number to the name of the band to duplicate. - # print('Duplicating...') - # - # - # # return band node - # def convert_channels_to_multi_bands(self, band_node): - # """ - # [Incomplete 10/19/2023] - # Parameters - # ---------- - # band_node - # - # Returns - # ------- - # - # """ - # # get the channels. Say returns 10 channels in the band_node - # # Name = r.bands()[0].children[0].props['Name'] - # # band_node.props['Name'] - # # Start = r.bands()[0].props['StartFrequency'] - # band_start_frequency = float(band_node.props['StartFrequency']) - # # Stop = r.bands()[0].props['StopFrequency'] - # band_stop_frequency = float(band_node.props['StopFrequency']) - # # Spacing = r.bands()[0].props['ChannelSpacing'] - # channel_spacing = float(band_node.props['ChannelSpacing']) - # # for each channel - # # 1) create a band (duplicate original one) - # # 2) set band start and stop frequencies - # for channel in list(range(int(band_start_frequency), int(band_stop_frequency), int(channel_spacing))): - # baby_band_start = channel - # baby_band_stop = channel+channel_spacing - # baby_band_node = self.duplicate_band(band_node) # return band name or some handle to it - # self.set_band_start_frequency(baby_band_node, baby_band_start) - # self.set_band_stop_frequency(baby_band_node, baby_band_stop) - # # set start and stop freq for that band name - # # to be - def band_channel_bandwidth(self, band_node, units=""): """Get the channel bandwidth of the band node. @@ -948,14 +900,14 @@ def band_channel_bandwidth(self, band_node, units=""): ---------- band_node : Instance of the band node. units : str, optional - If ``None`` specified, global units are used. + If ``None`` specified, SI units (Hz) are used. Returns ------- Float Channel bandwidth of the band node.""" if not units or units not in emit_consts.EMIT_VALID_UNITS["Frequency"]: - units = self.units["Frequency"] + units = "Hz" return consts.unit_converter(float(band_node.props["ChannelBandwidth"]), "Freq", "Hz", units) def band_tx_power(self, band_node, units=""): @@ -965,14 +917,15 @@ def band_tx_power(self, band_node, units=""): ---------- band_node : Instance of the band node. units : str - Units to use for the tx power. + Units to use for the tx power. If none specified, + SI units (W) are used Returns ------- Float Transmit power of the band node.""" if not units or units not in emit_consts.EMIT_VALID_UNITS["Power"]: - units = self.units["Power"] + units = "W" for child in band_node.children: if child.props["Type"] == "TxSpectralProfNode": return consts.unit_converter(float(child.props["FundamentalAmplitude"]), "Power", "dBm", units) @@ -1101,7 +1054,7 @@ def set_band_power_level(self, power, units=""): power : float Peak amplitude of the fundamental [dBm]. units : str, optional - Units of the input power. If None specified, global units are used. + Units of the input power. If None specified, SI units (W) are used. Return ------ @@ -1111,7 +1064,7 @@ def set_band_power_level(self, power, units=""): raise TypeError(f"{self.node_name} must be a band.") # Need to store power in dBm if not units or units not in emit_consts.EMIT_VALID_UNITS["Power"]: - units = self.parent_component.units["Power"] + units = "W" power_string = f'{consts.unit_converter(power, "Power", units, "dBm")}' prop_list = {"FundamentalAmplitude": power_string} for child in self.children: @@ -1126,7 +1079,7 @@ def get_band_power_level(self, units=""): Parameters ---------- units : str, optional - Units to use for the power. If None specified, global units are used. + Units to use for the power. If None specified, SI units (W) are used. Return ------ @@ -1137,7 +1090,7 @@ def get_band_power_level(self, units=""): raise TypeError(f"{self.node_name} must be a band.") # Power is stored in dBm, convert to desired units if not units or units not in emit_consts.EMIT_VALID_UNITS["Power"]: - units = self.parent_component.units["Power"] + units = "W" for child in self.children: if child.props["Type"] == "TxSpectralProfNode": power = child.props["FundamentalAmplitude"] From 7dd77507d8e47fc577180d891ddfad552c93b493 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 24 Apr 2025 12:44:39 +0000 Subject: [PATCH 49/86] CHORE: Auto fixes from pre-commit hooks --- .../emit_core/nodes/generated/Amplifier.py | 125 ++--- .../emit_core/nodes/generated/AntennaNode.py | 447 +++++++----------- .../nodes/generated/AntennaPassband.py | 74 ++- .../core/emit_core/nodes/generated/Band.py | 301 +++++------- .../emit_core/nodes/generated/BandFolder.py | 16 +- .../nodes/generated/BandTraceNode.py | 117 ++--- .../core/emit_core/nodes/generated/CADNode.py | 291 +++++------- .../core/emit_core/nodes/generated/Cable.py | 91 ++-- .../nodes/generated/CategoriesViewNode.py | 16 +- .../emit_core/nodes/generated/Circulator.py | 127 ++--- .../nodes/generated/CouplingLinkNode.py | 30 +- .../nodes/generated/CouplingTraceNode.py | 163 +++---- .../nodes/generated/CouplingsNode.py | 38 +- .../nodes/generated/CustomCouplingNode.py | 66 ++- .../nodes/generated/EmiPlotMarkerNode.py | 169 +++---- .../nodes/generated/EmitSceneNode.py | 45 +- .../nodes/generated/ErcegCouplingNode.py | 179 +++---- .../core/emit_core/nodes/generated/Filter.py | 207 ++++---- .../nodes/generated/FiveGChannelModel.py | 199 ++++---- .../nodes/generated/HataCouplingNode.py | 179 +++---- .../IndoorPropagationCouplingNode.py | 193 +++----- .../emit_core/nodes/generated/Isolator.py | 127 ++--- .../generated/LogDistanceCouplingNode.py | 187 +++----- .../nodes/generated/MPlexBandTraceNode.py | 106 ++--- .../emit_core/nodes/generated/Multiplexer.py | 73 ++- .../nodes/generated/MultiplexerBand.py | 115 ++--- .../nodes/generated/OutboardTraceNode.py | 109 ++--- .../generated/ParametricCouplingTraceNode.py | 115 ++--- .../nodes/generated/PlotMarkerNode.py | 179 +++---- .../emit_core/nodes/generated/PlotNode.py | 227 ++++----- .../emit_core/nodes/generated/PowerDivider.py | 129 +++-- .../nodes/generated/PowerTraceNode.py | 105 ++-- .../nodes/generated/ProfileTraceNode.py | 97 ++-- .../generated/PropagationLossCouplingNode.py | 171 +++---- .../emit_core/nodes/generated/RadioNode.py | 32 +- .../nodes/generated/ReadOnlyAmplifier.py | 49 +- .../nodes/generated/ReadOnlyAntennaNode.py | 191 ++++---- .../generated/ReadOnlyAntennaPassband.py | 32 +- .../emit_core/nodes/generated/ReadOnlyBand.py | 113 ++--- .../nodes/generated/ReadOnlyBandFolder.py | 16 +- .../nodes/generated/ReadOnlyCADNode.py | 111 ++--- .../nodes/generated/ReadOnlyCable.py | 43 +- .../nodes/generated/ReadOnlyCirculator.py | 55 ++- .../generated/ReadOnlyCouplingLinkNode.py | 22 +- .../nodes/generated/ReadOnlyCouplingsNode.py | 24 +- .../generated/ReadOnlyCustomCouplingNode.py | 40 +- .../nodes/generated/ReadOnlyEmitSceneNode.py | 29 +- .../generated/ReadOnlyErcegCouplingNode.py | 69 +-- .../nodes/generated/ReadOnlyFilter.py | 81 ++-- .../generated/ReadOnlyFiveGChannelModel.py | 77 +-- .../generated/ReadOnlyHataCouplingNode.py | 69 +-- .../ReadOnlyIndoorPropagationCouplingNode.py | 79 ++-- .../nodes/generated/ReadOnlyIsolator.py | 55 ++- .../ReadOnlyLogDistanceCouplingNode.py | 71 +-- .../nodes/generated/ReadOnlyMultiplexer.py | 43 +- .../generated/ReadOnlyMultiplexerBand.py | 47 +- .../nodes/generated/ReadOnlyPowerDivider.py | 55 ++- .../ReadOnlyPropagationLossCouplingNode.py | 65 +-- .../nodes/generated/ReadOnlyRadioNode.py | 28 +- .../nodes/generated/ReadOnlyRfSystemGroup.py | 20 +- .../nodes/generated/ReadOnlyRxMeasNode.py | 65 +-- .../generated/ReadOnlyRxMixerProductNode.py | 59 +-- .../generated/ReadOnlyRxSaturationNode.py | 16 +- .../generated/ReadOnlyRxSelectivityNode.py | 18 +- .../nodes/generated/ReadOnlyRxSpurNode.py | 29 +- .../ReadOnlyRxSusceptibilityProfNode.py | 55 ++- .../nodes/generated/ReadOnlySamplingNode.py | 47 +- .../nodes/generated/ReadOnlySceneGroupNode.py | 39 +- .../generated/ReadOnlySolutionCouplingNode.py | 26 +- .../nodes/generated/ReadOnlySolutionsNode.py | 18 +- .../nodes/generated/ReadOnlyTR_Switch.py | 51 +- .../nodes/generated/ReadOnlyTerminator.py | 39 +- .../ReadOnlyTouchstoneCouplingNode.py | 42 +- .../ReadOnlyTwoRayPathLossCouplingNode.py | 69 +-- .../generated/ReadOnlyTxBbEmissionNode.py | 27 +- .../nodes/generated/ReadOnlyTxHarmonicNode.py | 21 +- .../nodes/generated/ReadOnlyTxMeasNode.py | 32 +- .../generated/ReadOnlyTxNbEmissionNode.py | 25 +- .../ReadOnlyTxSpectralProfEmitterNode.py | 42 +- .../generated/ReadOnlyTxSpectralProfNode.py | 71 +-- .../nodes/generated/ReadOnlyTxSpurNode.py | 29 +- .../generated/ReadOnlyWalfischCouplingNode.py | 81 ++-- .../nodes/generated/ReadOnlyWaveform.py | 87 ++-- .../nodes/generated/ResultPlotNode.py | 233 ++++----- .../nodes/generated/RfSystemGroup.py | 30 +- .../emit_core/nodes/generated/RxMeasNode.py | 161 +++---- .../nodes/generated/RxMixerProductNode.py | 155 +++--- .../nodes/generated/RxSaturationNode.py | 20 +- .../nodes/generated/RxSelectivityNode.py | 26 +- .../emit_core/nodes/generated/RxSpurNode.py | 37 +- .../generated/RxSusceptibilityProfNode.py | 141 +++--- .../emit_core/nodes/generated/SamplingNode.py | 71 ++- .../nodes/generated/SceneGroupNode.py | 77 ++- .../nodes/generated/SelectivityTraceNode.py | 97 ++-- .../nodes/generated/SolutionCouplingNode.py | 42 +- .../nodes/generated/SolutionsNode.py | 22 +- .../nodes/generated/SpurTraceNode.py | 109 ++--- .../nodes/generated/TRSwitchTraceNode.py | 109 ++--- .../emit_core/nodes/generated/TR_Switch.py | 125 ++--- .../emit_core/nodes/generated/Terminator.py | 67 ++- .../nodes/generated/TestNoiseTraceNode.py | 165 +++---- .../nodes/generated/TopLevelSimulation.py | 16 +- .../nodes/generated/TouchstoneCouplingNode.py | 74 ++- .../nodes/generated/TunableTraceNode.py | 119 ++--- .../generated/TwoRayPathLossCouplingNode.py | 185 +++----- .../nodes/generated/TwoToneTraceNode.py | 165 +++---- .../nodes/generated/TxBbEmissionNode.py | 41 +- .../nodes/generated/TxHarmonicNode.py | 31 +- .../emit_core/nodes/generated/TxMeasNode.py | 56 +-- .../nodes/generated/TxNbEmissionNode.py | 41 +- .../generated/TxSpectralProfEmitterNode.py | 108 ++--- .../nodes/generated/TxSpectralProfNode.py | 201 ++++---- .../emit_core/nodes/generated/TxSpurNode.py | 37 +- .../nodes/generated/WalfischCouplingNode.py | 221 ++++----- .../emit_core/nodes/generated/Waveform.py | 231 ++++----- .../emit_core/nodes/generated/__init__.py | 318 +++++++------ .../core/modeler/circuits/primitives_emit.py | 2 +- 117 files changed, 4755 insertions(+), 6095 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index e537142aa73..e82439ab269 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Amplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -49,13 +53,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,28 +67,24 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class AmplifierTypeOption(Enum): TRANSMIT_AMPLIFIER = "Transmit Amplifier" @@ -97,16 +95,14 @@ def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type Configures the amplifier as a Tx or Rx amplifier - """ + """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] - return val # type: ignore + return val # type: ignore @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Type={value.value}"]) @property def gain(self) -> float: @@ -116,13 +112,11 @@ def gain(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Gain") - return val # type: ignore + return val # type: ignore @gain.setter - def gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Gain={value}"]) + def gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Gain={value}"]) @property def center_frequency(self) -> float: @@ -133,14 +127,12 @@ def center_frequency(self) -> float: """ val = self._get_property("Center Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @center_frequency.setter - def center_frequency(self, value : float|str): + def center_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Center Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Frequency={value}"]) @property def bandwidth(self) -> float: @@ -151,14 +143,12 @@ def bandwidth(self) -> float: """ val = self._get_property("Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth.setter - def bandwidth(self, value : float|str): + def bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth={value}"]) @property def noise_figure(self) -> float: @@ -168,13 +158,11 @@ def noise_figure(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def saturation_level(self) -> float: @@ -185,14 +173,12 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @saturation_level.setter - def saturation_level(self, value : float|str): + def saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) @property def p1_db_point_ref_input(self) -> float: @@ -203,14 +189,12 @@ def p1_db_point_ref_input(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value : float|str): + def p1_db_point_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input={value}"]) @property def ip3_ref_input(self) -> float: @@ -221,14 +205,12 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def shape_factor(self) -> float: @@ -238,13 +220,11 @@ def shape_factor(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @shape_factor.setter - def shape_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Shape Factor={value}"]) + def shape_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) @property def reverse_isolation(self) -> float: @@ -254,13 +234,11 @@ def reverse_isolation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -270,11 +248,8 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py index 2e892da9e0b..2c661ce1ab1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class AntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -55,15 +59,13 @@ def tags(self) -> str: """Tags Space delimited list of tags for coupling selections - """ + """ val = self._get_property("Tags") - return val # type: ignore + return val # type: ignore @tags.setter def tags(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tags={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tags={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -74,13 +76,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -90,13 +92,11 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -106,13 +106,11 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -123,16 +121,14 @@ def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -142,13 +138,11 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -158,13 +152,11 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def position_defined(self) -> bool: @@ -174,13 +166,11 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return val # type: ignore + return val # type: ignore @position_defined.setter def position_defined(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position Defined={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Defined={value}"]) @property def antenna_temperature(self) -> float: @@ -190,28 +180,24 @@ def antenna_temperature(self) -> float: Value should be between 0 and 100000. """ val = self._get_property("Antenna Temperature") - return val # type: ignore + return val # type: ignore @antenna_temperature.setter - def antenna_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna Temperature={value}"]) + def antenna_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna Temperature={value}"]) @property def type(self): """Type Defines the type of antenna - """ + """ val = self._get_property("Type") - return val # type: ignore + return val # type: ignore @type.setter def type(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value}"]) @property def antenna_file(self) -> str: @@ -219,13 +205,11 @@ def antenna_file(self) -> str: Value should be a full file path. """ val = self._get_property("Antenna File") - return val # type: ignore + return val # type: ignore @antenna_file.setter def antenna_file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna File={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna File={value}"]) @property def project_name(self) -> str: @@ -235,13 +219,11 @@ def project_name(self) -> str: Value should be a full file path. """ val = self._get_property("Project Name") - return val # type: ignore + return val # type: ignore @project_name.setter def project_name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Project Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Project Name={value}"]) @property def peak_gain(self) -> float: @@ -251,13 +233,11 @@ def peak_gain(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Peak Gain") - return val # type: ignore + return val # type: ignore @peak_gain.setter - def peak_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Peak Gain={value}"]) + def peak_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Gain={value}"]) class BoresightOption(Enum): XAXIS = "+X Axis" @@ -269,16 +249,14 @@ def boresight(self) -> BoresightOption: """Boresight Select peak beam direction in local coordinates - """ + """ val = self._get_property("Boresight") val = self.BoresightOption[val] - return val # type: ignore + return val # type: ignore @boresight.setter def boresight(self, value: BoresightOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Boresight={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Boresight={value.value}"]) @property def vertical_beamwidth(self) -> float: @@ -288,13 +266,11 @@ def vertical_beamwidth(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("Vertical Beamwidth") - return val # type: ignore + return val # type: ignore @vertical_beamwidth.setter - def vertical_beamwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Beamwidth={value}"]) + def vertical_beamwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Beamwidth={value}"]) @property def horizontal_beamwidth(self) -> float: @@ -304,13 +280,11 @@ def horizontal_beamwidth(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("Horizontal Beamwidth") - return val # type: ignore + return val # type: ignore @horizontal_beamwidth.setter - def horizontal_beamwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Beamwidth={value}"]) + def horizontal_beamwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Beamwidth={value}"]) @property def extra_sidelobe(self) -> bool: @@ -320,13 +294,11 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return val # type: ignore + return val # type: ignore @extra_sidelobe.setter def extra_sidelobe(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Extra Sidelobe={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Extra Sidelobe={value}"]) @property def first_sidelobe_level(self) -> float: @@ -337,13 +309,11 @@ def first_sidelobe_level(self) -> float: Value should be between 0 and 200. """ val = self._get_property("First Sidelobe Level") - return val # type: ignore + return val # type: ignore @first_sidelobe_level.setter - def first_sidelobe_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Level={value}"]) + def first_sidelobe_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Level={value}"]) @property def first_sidelobe_vert_bw(self) -> float: @@ -353,13 +323,11 @@ def first_sidelobe_vert_bw(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Vert. BW") - return val # type: ignore + return val # type: ignore @first_sidelobe_vert_bw.setter - def first_sidelobe_vert_bw(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Vert. BW={value}"]) + def first_sidelobe_vert_bw(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Vert. BW={value}"]) @property def first_sidelobe_hor_bw(self) -> float: @@ -369,13 +337,11 @@ def first_sidelobe_hor_bw(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Hor. BW") - return val # type: ignore + return val # type: ignore @first_sidelobe_hor_bw.setter - def first_sidelobe_hor_bw(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Hor. BW={value}"]) + def first_sidelobe_hor_bw(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Hor. BW={value}"]) @property def outerbacklobe_level(self) -> float: @@ -385,13 +351,11 @@ def outerbacklobe_level(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Outer/Backlobe Level") - return val # type: ignore + return val # type: ignore @outerbacklobe_level.setter - def outerbacklobe_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Outer/Backlobe Level={value}"]) + def outerbacklobe_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Outer/Backlobe Level={value}"]) @property def resonant_frequency(self) -> float: @@ -403,14 +367,12 @@ def resonant_frequency(self) -> float: """ val = self._get_property("Resonant Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @resonant_frequency.setter - def resonant_frequency(self, value : float|str): + def resonant_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Resonant Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resonant Frequency={value}"]) @property def slot_length(self) -> float: @@ -421,14 +383,12 @@ def slot_length(self) -> float: """ val = self._get_property("Slot Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @slot_length.setter - def slot_length(self, value : float|str): + def slot_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Slot Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Slot Length={value}"]) @property def mouth_width(self) -> float: @@ -439,14 +399,12 @@ def mouth_width(self) -> float: """ val = self._get_property("Mouth Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_width.setter - def mouth_width(self, value : float|str): + def mouth_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Width={value}"]) @property def mouth_height(self) -> float: @@ -457,14 +415,12 @@ def mouth_height(self) -> float: """ val = self._get_property("Mouth Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_height.setter - def mouth_height(self, value : float|str): + def mouth_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Height={value}"]) @property def waveguide_width(self) -> float: @@ -476,14 +432,12 @@ def waveguide_width(self) -> float: """ val = self._get_property("Waveguide Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @waveguide_width.setter - def waveguide_width(self, value : float|str): + def waveguide_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Waveguide Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveguide Width={value}"]) @property def width_flare_half_angle(self) -> float: @@ -494,13 +448,11 @@ def width_flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Width Flare Half-angle") - return val # type: ignore + return val # type: ignore @width_flare_half_angle.setter - def width_flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Width Flare Half-angle={value}"]) + def width_flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width Flare Half-angle={value}"]) @property def height_flare_half_angle(self) -> float: @@ -511,13 +463,11 @@ def height_flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Height Flare Half-angle") - return val # type: ignore + return val # type: ignore @height_flare_half_angle.setter - def height_flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Height Flare Half-angle={value}"]) + def height_flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height Flare Half-angle={value}"]) @property def mouth_diameter(self) -> float: @@ -528,14 +478,12 @@ def mouth_diameter(self) -> float: """ val = self._get_property("Mouth Diameter") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_diameter.setter - def mouth_diameter(self, value : float|str): + def mouth_diameter(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Diameter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Diameter={value}"]) @property def flare_half_angle(self) -> float: @@ -546,13 +494,11 @@ def flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Flare Half-angle") - return val # type: ignore + return val # type: ignore @flare_half_angle.setter - def flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Flare Half-angle={value}"]) + def flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flare Half-angle={value}"]) @property def vswr(self) -> float: @@ -563,13 +509,11 @@ def vswr(self) -> float: Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @vswr.setter - def vswr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"VSWR={value}"]) + def vswr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) class AntennaPolarizationOption(Enum): VERTICAL = "Vertical" @@ -582,16 +526,16 @@ def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] - return val # type: ignore + return val # type: ignore @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna Polarization={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Antenna Polarization={value.value}"] + ) class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" @@ -602,16 +546,14 @@ def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode Choose the Cross Dipole type - """ + """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] - return val # type: ignore + return val # type: ignore @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Cross Dipole Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Cross Dipole Mode={value.value}"]) class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" @@ -622,16 +564,16 @@ def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] - return val # type: ignore + return val # type: ignore @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Cross Dipole Polarization={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Cross Dipole Polarization={value.value}"] + ) @property def override_height(self) -> bool: @@ -642,13 +584,11 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return val # type: ignore + return val # type: ignore @override_height.setter def override_height(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Override Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Override Height={value}"]) @property def offset_height(self) -> float: @@ -659,14 +599,12 @@ def offset_height(self) -> float: """ val = self._get_property("Offset Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @offset_height.setter - def offset_height(self, value : float|str): + def offset_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Offset Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset Height={value}"]) @property def auto_height_offset(self) -> bool: @@ -677,13 +615,11 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return val # type: ignore + return val # type: ignore @auto_height_offset.setter def auto_height_offset(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Auto Height Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Auto Height Offset={value}"]) @property def conform__adjust_antenna(self) -> bool: @@ -693,13 +629,11 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return val # type: ignore + return val # type: ignore @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform / Adjust Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform / Adjust Antenna={value}"]) @property def element_offset(self): @@ -709,13 +643,11 @@ def element_offset(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Element Offset") - return val # type: ignore + return val # type: ignore @element_offset.setter def element_offset(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Element Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Element Offset={value}"]) class ConformtoPlatformOption(Enum): NONE = "None" @@ -727,16 +659,16 @@ def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform Select method of automated conforming applied after Element Offset - """ + """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] - return val # type: ignore + return val # type: ignore @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform to Platform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Conform to Platform={value.value}"] + ) class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" @@ -748,16 +680,14 @@ def reference_plane(self) -> ReferencePlaneOption: """Reference Plane Select reference plane for determining original element heights - """ + """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] - return val # type: ignore + return val # type: ignore @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reference Plane={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reference Plane={value.value}"]) @property def conform_element_orientation(self) -> bool: @@ -768,13 +698,13 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return val # type: ignore + return val # type: ignore @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform Element Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Conform Element Orientation={value}"] + ) @property def show_axes(self) -> bool: @@ -784,13 +714,11 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def show_icon(self) -> bool: @@ -800,13 +728,11 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return val # type: ignore + return val # type: ignore @show_icon.setter def show_icon(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Icon={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Icon={value}"]) @property def size(self) -> float: @@ -816,13 +742,11 @@ def size(self) -> float: Value should be between 0.001 and 1. """ val = self._get_property("Size") - return val # type: ignore + return val # type: ignore @size.setter - def size(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Size={value}"]) + def size(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Size={value}"]) @property def color(self): @@ -832,31 +756,29 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def el_sample_interval(self) -> float: """El Sample Interval Space between elevation-angle samples of pattern - """ + """ val = self._get_property("El Sample Interval") - return val # type: ignore + return val # type: ignore @property def az_sample_interval(self) -> float: """Az Sample Interval Space between azimuth-angle samples of pattern - """ + """ val = self._get_property("Az Sample Interval") - return val # type: ignore + return val # type: ignore @property def has_frequency_domain(self) -> bool: @@ -866,34 +788,34 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return val # type: ignore + return val # type: ignore @property def frequency_domain(self): """Frequency Domain Frequency sample(s) defining antenna - """ + """ val = self._get_property("Frequency Domain") - return val # type: ignore + return val # type: ignore @property def number_of_electric_sources(self) -> int: """Number of Electric Sources Number of freestanding electric current sources defining antenna - """ + """ val = self._get_property("Number of Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources Number of freestanding magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_electric_sources(self) -> int: @@ -901,9 +823,9 @@ def number_of_imaged_electric_sources(self) -> int: Number of imaged, half-space radiating electric current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_magnetic_sources(self) -> int: @@ -911,9 +833,9 @@ def number_of_imaged_magnetic_sources(self) -> int: Number of imaged, half-space radiating magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def waveguide_height(self) -> float: @@ -921,30 +843,30 @@ def waveguide_height(self) -> float: Implied waveguide height (along local x-axis) where the flared horn walls meet the feed - """ + """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency Implied lowest operating frequency of pyramidal horn antenna - """ + """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency Implied lowest operating frequency of conical horn antenna - """ + """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class SWEModeTruncationOption(Enum): DYNAMIC = "Dynamic" @@ -957,16 +879,16 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: Select the method for stability-enhancing truncation of spherical wave expansion terms - """ + """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] - return val # type: ignore + return val # type: ignore @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SWE Mode Truncation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"SWE Mode Truncation={value.value}"] + ) @property def max_n_index(self) -> int: @@ -976,28 +898,24 @@ def max_n_index(self) -> int: Value should be greater than 1. """ val = self._get_property("Max N Index") - return val # type: ignore + return val # type: ignore @max_n_index.setter def max_n_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max N Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max N Index={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) @property def show_composite_passband(self) -> bool: @@ -1007,13 +925,11 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return val # type: ignore + return val # type: ignore @show_composite_passband.setter def show_composite_passband(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Composite Passband={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Composite Passband={value}"]) @property def use_phase_center(self) -> bool: @@ -1023,22 +939,20 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return val # type: ignore + return val # type: ignore @use_phase_center.setter def use_phase_center(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Phase Center={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Phase Center={value}"]) @property def coordinate_systems(self) -> str: """Coordinate Systems Specifies the coordinate system for the phase center of this antenna - """ + """ val = self._get_property("Coordinate Systems") - return val # type: ignore + return val # type: ignore @property def phasecenterposition(self): @@ -1048,7 +962,7 @@ def phasecenterposition(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("PhaseCenterPosition") - return val # type: ignore + return val # type: ignore @property def phasecenterorientation(self): @@ -1058,5 +972,4 @@ def phasecenterorientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("PhaseCenterOrientation") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py index 4778cb346c0..0bf1460ea82 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class AntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,7 +51,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -62,13 +65,11 @@ def passband_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Passband Loss") - return val # type: ignore + return val # type: ignore @passband_loss.setter - def passband_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Passband Loss={value}"]) + def passband_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Passband Loss={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -78,13 +79,11 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out of Band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out of Band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out of Band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -95,14 +94,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -113,14 +110,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -131,14 +126,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -149,27 +142,22 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index 36b2b8f4a7a..e86cf9d60d8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Band(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -48,15 +52,13 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) @property def use_dd_1494_mode(self) -> bool: @@ -66,13 +68,11 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return val # type: ignore + return val # type: ignore @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use DD-1494 Mode={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use DD-1494 Mode={value}"]) @property def use_emission_designator(self) -> bool: @@ -82,47 +82,43 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return val # type: ignore + return val # type: ignore @use_emission_designator.setter def use_emission_designator(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Emission Designator={value}"]) @property def emission_designator(self) -> str: """Emission Designator Enter the Emission Designator to define the bandwidth and modulation - """ + """ val = self._get_property("Emission Designator") - return val # type: ignore + return val # type: ignore @emission_designator.setter def emission_designator(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Emission Designator={value}"]) @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW Channel Bandwidth based off the emission designator - """ + """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def emit_modulation_type(self) -> str: """EMIT Modulation Type Modulation based off the emission designator - """ + """ val = self._get_property("EMIT Modulation Type") - return val # type: ignore + return val # type: ignore @property def override_emission_designator_bw(self) -> bool: @@ -133,13 +129,13 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return val # type: ignore + return val # type: ignore @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Override Emission Designator BW={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Override Emission Designator BW={value}"] + ) @property def channel_bandwidth(self) -> float: @@ -150,14 +146,12 @@ def channel_bandwidth(self) -> float: """ val = self._get_property("Channel Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_bandwidth.setter - def channel_bandwidth(self, value : float|str): + def channel_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Bandwidth={value}"]) class ModulationOption(Enum): GENERIC = "Generic" @@ -177,16 +171,14 @@ def modulation(self) -> ModulationOption: """Modulation Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Modulation") val = self.ModulationOption[val] - return val # type: ignore + return val # type: ignore @modulation.setter def modulation(self, value: ModulationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation={value.value}"]) @property def max_modulating_freq(self) -> float: @@ -197,14 +189,12 @@ def max_modulating_freq(self) -> float: """ val = self._get_property("Max Modulating Freq.") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_modulating_freq.setter - def max_modulating_freq(self, value : float|str): + def max_modulating_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Modulating Freq.={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Modulating Freq.={value}"]) @property def modulation_index(self) -> float: @@ -214,13 +204,11 @@ def modulation_index(self) -> float: Value should be between 0.01 and 1. """ val = self._get_property("Modulation Index") - return val # type: ignore + return val # type: ignore @modulation_index.setter - def modulation_index(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation Index={value}"]) + def modulation_index(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Index={value}"]) @property def freq_deviation(self) -> float: @@ -231,14 +219,12 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation.setter - def freq_deviation(self, value : float|str): + def freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) @property def bit_rate(self) -> float: @@ -249,14 +235,12 @@ def bit_rate(self) -> float: """ val = self._get_property("Bit Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @bit_rate.setter - def bit_rate(self, value : float|str): + def bit_rate(self, value: float | str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bit Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bit Rate={value}"]) @property def sidelobes(self) -> int: @@ -266,31 +250,27 @@ def sidelobes(self) -> int: Value should be greater than 0. """ val = self._get_property("Sidelobes") - return val # type: ignore + return val # type: ignore @sidelobes.setter def sidelobes(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sidelobes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sidelobes={value}"]) @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation FSK frequency deviation: helps determine spectral profile Value should be greater than 1. """ val = self._get_property("Freq. Deviation ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation_.setter - def freq_deviation_(self, value : float|str): + def freq_deviation_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation ={value}"]) class PSKTypeOption(Enum): BPSK = "BPSK" @@ -305,16 +285,14 @@ def psk_type(self) -> PSKTypeOption: """PSK Type PSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] - return val # type: ignore + return val # type: ignore @psk_type.setter def psk_type(self, value: PSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"PSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"PSK Type={value.value}"]) class FSKTypeOption(Enum): FSK_2 = "FSK-2" @@ -326,16 +304,14 @@ def fsk_type(self) -> FSKTypeOption: """FSK Type FSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] - return val # type: ignore + return val # type: ignore @fsk_type.setter def fsk_type(self, value: FSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FSK Type={value.value}"]) class QAMTypeOption(Enum): QAM_4 = "QAM-4" @@ -349,16 +325,14 @@ def qam_type(self) -> QAMTypeOption: """QAM Type QAM modulation order: helps determine spectral profile - """ + """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] - return val # type: ignore + return val # type: ignore @qam_type.setter def qam_type(self, value: QAMTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"QAM Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"QAM Type={value.value}"]) class APSKTypeOption(Enum): APSK_4 = "APSK-4" @@ -372,16 +346,14 @@ def apsk_type(self) -> APSKTypeOption: """APSK Type APSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] - return val # type: ignore + return val # type: ignore @apsk_type.setter def apsk_type(self, value: APSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"APSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"APSK Type={value.value}"]) @property def start_frequency(self) -> float: @@ -392,14 +364,12 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -410,14 +380,12 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -428,14 +396,12 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_spacing.setter - def channel_spacing(self, value : float|str): + def channel_spacing(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) @property def tx_offset(self) -> float: @@ -446,14 +412,12 @@ def tx_offset(self) -> float: """ val = self._get_property("Tx Offset") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @tx_offset.setter - def tx_offset(self, value : float|str): + def tx_offset(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Offset={value}"]) class RadarTypeOption(Enum): CW = "CW" @@ -467,16 +431,14 @@ def radar_type(self) -> RadarTypeOption: """Radar Type Radar type: helps determine spectral profile - """ + """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] - return val # type: ignore + return val # type: ignore @radar_type.setter def radar_type(self, value: RadarTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Radar Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radar Type={value.value}"]) @property def hopping_radar(self) -> bool: @@ -486,13 +448,11 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return val # type: ignore + return val # type: ignore @hopping_radar.setter def hopping_radar(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hopping Radar={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hopping Radar={value}"]) @property def post_october_2020_procurement(self) -> bool: @@ -503,13 +463,13 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return val # type: ignore + return val # type: ignore @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Post October 2020 Procurement={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Post October 2020 Procurement={value}"] + ) @property def hop_range_min_freq(self) -> float: @@ -520,14 +480,12 @@ def hop_range_min_freq(self) -> float: """ val = self._get_property("Hop Range Min Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @hop_range_min_freq.setter - def hop_range_min_freq(self, value : float|str): + def hop_range_min_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hop Range Min Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Min Freq={value}"]) @property def hop_range_max_freq(self) -> float: @@ -538,14 +496,12 @@ def hop_range_max_freq(self) -> float: """ val = self._get_property("Hop Range Max Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @hop_range_max_freq.setter - def hop_range_max_freq(self, value : float|str): + def hop_range_max_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hop Range Max Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Max Freq={value}"]) @property def pulse_duration(self) -> float: @@ -556,14 +512,12 @@ def pulse_duration(self) -> float: """ val = self._get_property("Pulse Duration") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_duration.setter - def pulse_duration(self, value : float|str): + def pulse_duration(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Duration={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Duration={value}"]) @property def pulse_rise_time(self) -> float: @@ -574,14 +528,12 @@ def pulse_rise_time(self) -> float: """ val = self._get_property("Pulse Rise Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_rise_time.setter - def pulse_rise_time(self, value : float|str): + def pulse_rise_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Rise Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Rise Time={value}"]) @property def pulse_fall_time(self) -> float: @@ -592,14 +544,12 @@ def pulse_fall_time(self) -> float: """ val = self._get_property("Pulse Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_fall_time.setter - def pulse_fall_time(self, value : float|str): + def pulse_fall_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Fall Time={value}"]) @property def pulse_repetition_rate(self) -> float: @@ -609,13 +559,11 @@ def pulse_repetition_rate(self) -> float: Value should be greater than 1. """ val = self._get_property("Pulse Repetition Rate") - return val # type: ignore + return val # type: ignore @pulse_repetition_rate.setter - def pulse_repetition_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Repetition Rate={value}"]) + def pulse_repetition_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Repetition Rate={value}"]) @property def number_of_chips(self) -> float: @@ -625,13 +573,11 @@ def number_of_chips(self) -> float: Value should be greater than 1. """ val = self._get_property("Number of Chips") - return val # type: ignore + return val # type: ignore @number_of_chips.setter - def number_of_chips(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Chips={value}"]) + def number_of_chips(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Chips={value}"]) @property def pulse_compression_ratio(self) -> float: @@ -641,13 +587,11 @@ def pulse_compression_ratio(self) -> float: Value should be greater than 1. """ val = self._get_property("Pulse Compression Ratio") - return val # type: ignore + return val # type: ignore @pulse_compression_ratio.setter - def pulse_compression_ratio(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Compression Ratio={value}"]) + def pulse_compression_ratio(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Compression Ratio={value}"]) @property def fm_chirp_period(self) -> float: @@ -658,14 +602,12 @@ def fm_chirp_period(self) -> float: """ val = self._get_property("FM Chirp Period") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @fm_chirp_period.setter - def fm_chirp_period(self, value : float|str): + def fm_chirp_period(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Chirp Period={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Chirp Period={value}"]) @property def fm_freq_deviation(self) -> float: @@ -676,14 +618,12 @@ def fm_freq_deviation(self) -> float: """ val = self._get_property("FM Freq Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @fm_freq_deviation.setter - def fm_freq_deviation(self, value : float|str): + def fm_freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Freq Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Deviation={value}"]) @property def fm_freq_dev_bandwidth(self) -> float: @@ -695,12 +635,9 @@ def fm_freq_dev_bandwidth(self) -> float: """ val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value : float|str): + def fm_freq_dev_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Freq Dev Bandwidth={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Dev Bandwidth={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py index 65242e7c8a1..4f0f26c1b0b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class BandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,4 +51,3 @@ def duplicate(self, new_name): def delete(self): """Delete this node""" self._delete() - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py index b3e47e747c4..1ed597b9045 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class BandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,15 +56,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) class TxorRxOption(Enum): TX = "Tx" @@ -71,31 +73,27 @@ def tx_or_rx(self) -> TxorRxOption: """Tx or Rx Specifies whether the trace is a Tx or Rx channel - """ + """ val = self._get_property("Tx or Rx") val = self.TxorRxOption[val] - return val # type: ignore + return val # type: ignore @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx or Rx={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx or Rx={value.value}"]) @property def channel_frequency(self): """Channel Frequency Select band channel frequency to display - """ + """ val = self._get_property("Channel Frequency") - return val # type: ignore + return val # type: ignore @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: @@ -103,10 +101,10 @@ def transmit_frequency(self) -> float: The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset) - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def visible(self) -> bool: @@ -116,13 +114,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -132,28 +128,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -168,16 +160,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -187,13 +177,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -203,13 +191,11 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -233,16 +219,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -252,13 +236,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -268,13 +250,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -284,13 +264,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -301,11 +279,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py index c82ff5b9b5c..91894049ece 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class CADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,7 +58,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore class ModelTypeOption(Enum): PLATE = "Plate" @@ -77,16 +81,14 @@ def model_type(self) -> ModelTypeOption: """Model Type Select type of parametric model to create - """ + """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] - return val # type: ignore + return val # type: ignore @model_type.setter def model_type(self, value: ModelTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Model Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Model Type={value.value}"]) @property def length(self) -> float: @@ -97,14 +99,12 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @length.setter - def length(self, value : float|str): + def length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) @property def width(self) -> float: @@ -115,14 +115,12 @@ def width(self) -> float: """ val = self._get_property("Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @width.setter - def width(self, value : float|str): + def width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width={value}"]) @property def height(self) -> float: @@ -133,14 +131,12 @@ def height(self) -> float: """ val = self._get_property("Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @height.setter - def height(self, value : float|str): + def height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height={value}"]) @property def angle(self) -> float: @@ -150,13 +146,11 @@ def angle(self) -> float: Value should be between 0 and 360. """ val = self._get_property("Angle") - return val # type: ignore + return val # type: ignore @angle.setter - def angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Angle={value}"]) + def angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Angle={value}"]) @property def top_side(self) -> float: @@ -167,14 +161,12 @@ def top_side(self) -> float: """ val = self._get_property("Top Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @top_side.setter - def top_side(self, value : float|str): + def top_side(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Top Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Side={value}"]) @property def top_radius(self) -> float: @@ -185,14 +177,12 @@ def top_radius(self) -> float: """ val = self._get_property("Top Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @top_radius.setter - def top_radius(self, value : float|str): + def top_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Top Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Radius={value}"]) @property def side(self) -> float: @@ -203,14 +193,12 @@ def side(self) -> float: """ val = self._get_property("Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @side.setter - def side(self, value : float|str): + def side(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Side={value}"]) @property def radius(self) -> float: @@ -221,14 +209,12 @@ def radius(self) -> float: """ val = self._get_property("Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @radius.setter - def radius(self, value : float|str): + def radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radius={value}"]) @property def base_radius(self) -> float: @@ -239,14 +225,12 @@ def base_radius(self) -> float: """ val = self._get_property("Base Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @base_radius.setter - def base_radius(self, value : float|str): + def base_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Radius={value}"]) @property def center_radius(self) -> float: @@ -257,14 +241,12 @@ def center_radius(self) -> float: """ val = self._get_property("Center Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @center_radius.setter - def center_radius(self, value : float|str): + def center_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Center Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Radius={value}"]) @property def x_axis_ellipsoid_radius(self) -> float: @@ -275,14 +257,12 @@ def x_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("X Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value : float|str): + def x_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Axis Ellipsoid Radius={value}"]) @property def y_axis_ellipsoid_radius(self) -> float: @@ -293,14 +273,12 @@ def y_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Y Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value : float|str): + def y_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Axis Ellipsoid Radius={value}"]) @property def z_axis_ellipsoid_radius(self) -> float: @@ -311,14 +289,12 @@ def z_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Z Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value : float|str): + def z_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Z Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Z Axis Ellipsoid Radius={value}"]) @property def focal_length(self) -> float: @@ -329,31 +305,27 @@ def focal_length(self) -> float: """ val = self._get_property("Focal Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @focal_length.setter - def focal_length(self, value : float|str): + def focal_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Focal Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Focal Length={value}"]) @property def offset(self) -> float: """Offset Offset of parabolic reflector - """ + """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @offset.setter - def offset(self, value : float|str): + def offset(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset={value}"]) @property def x_direction_taper(self) -> float: @@ -364,13 +336,11 @@ def x_direction_taper(self) -> float: Value should be greater than 0. """ val = self._get_property("X Direction Taper") - return val # type: ignore + return val # type: ignore @x_direction_taper.setter - def x_direction_taper(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X Direction Taper={value}"]) + def x_direction_taper(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Direction Taper={value}"]) @property def y_direction_taper(self) -> float: @@ -381,13 +351,11 @@ def y_direction_taper(self) -> float: Value should be greater than 0. """ val = self._get_property("Y Direction Taper") - return val # type: ignore + return val # type: ignore @y_direction_taper.setter - def y_direction_taper(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y Direction Taper={value}"]) + def y_direction_taper(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Direction Taper={value}"]) @property def prism_direction(self): @@ -397,13 +365,11 @@ def prism_direction(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Prism Direction") - return val # type: ignore + return val # type: ignore @prism_direction.setter def prism_direction(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Prism Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Prism Direction={value}"]) @property def closed_top(self) -> bool: @@ -413,13 +379,11 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return val # type: ignore + return val # type: ignore @closed_top.setter def closed_top(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Closed Top={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Top={value}"]) @property def closed_base(self) -> bool: @@ -429,13 +393,11 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return val # type: ignore + return val # type: ignore @closed_base.setter def closed_base(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Closed Base={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Base={value}"]) @property def mesh_density(self) -> int: @@ -446,13 +408,11 @@ def mesh_density(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Mesh Density") - return val # type: ignore + return val # type: ignore @mesh_density.setter def mesh_density(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mesh Density={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Density={value}"]) @property def use_symmetric_mesh(self) -> bool: @@ -463,13 +423,11 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return val # type: ignore + return val # type: ignore @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Symmetric Mesh={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Symmetric Mesh={value}"]) class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -480,16 +438,14 @@ def mesh_option(self) -> MeshOptionOption: """Mesh Option Select from different meshing options - """ + """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] - return val # type: ignore + return val # type: ignore @mesh_option.setter def mesh_option(self, value: MeshOptionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mesh Option={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Option={value.value}"]) @property def coating_index(self) -> int: @@ -499,13 +455,11 @@ def coating_index(self) -> int: Value should be between 0 and 100000. """ val = self._get_property("Coating Index") - return val # type: ignore + return val # type: ignore @coating_index.setter def coating_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Coating Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Coating Index={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -516,13 +470,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -532,13 +486,11 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -548,13 +500,11 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -565,16 +515,14 @@ def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -584,13 +532,11 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -600,13 +546,11 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def visible(self) -> bool: @@ -616,13 +560,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -635,16 +577,14 @@ def render_mode(self) -> RenderModeOption: """Render Mode Select drawing style for surfaces - """ + """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] - return val # type: ignore + return val # type: ignore @render_mode.setter def render_mode(self, value: RenderModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Render Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Render Mode={value.value}"]) @property def show_axes(self) -> bool: @@ -654,13 +594,11 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def min(self): @@ -670,7 +608,7 @@ def min(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Min") - return val # type: ignore + return val # type: ignore @property def max(self): @@ -680,16 +618,16 @@ def max(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Max") - return val # type: ignore + return val # type: ignore @property def number_of_surfaces(self) -> int: """Number of Surfaces Number of surfaces in the model - """ + """ val = self._get_property("Number of Surfaces") - return val # type: ignore + return val # type: ignore @property def color(self): @@ -699,26 +637,21 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index ef5027294bf..017a4b20261 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Cable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -49,13 +53,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,28 +67,24 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -99,16 +97,14 @@ def type(self) -> TypeOption: Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def length(self) -> float: @@ -119,14 +115,12 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @length.setter - def length(self, value : float|str): + def length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) @property def loss_per_length(self) -> float: @@ -136,13 +130,11 @@ def loss_per_length(self) -> float: Value should be between 0 and 20. """ val = self._get_property("Loss Per Length") - return val # type: ignore + return val # type: ignore @loss_per_length.setter - def loss_per_length(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Loss Per Length={value}"]) + def loss_per_length(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Loss Per Length={value}"]) @property def measurement_length(self) -> float: @@ -153,14 +145,12 @@ def measurement_length(self) -> float: """ val = self._get_property("Measurement Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @measurement_length.setter - def measurement_length(self, value : float|str): + def measurement_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Length={value}"]) @property def resistive_loss_constant(self) -> float: @@ -170,13 +160,11 @@ def resistive_loss_constant(self) -> float: Value should be between 0 and 2. """ val = self._get_property("Resistive Loss Constant") - return val # type: ignore + return val # type: ignore @resistive_loss_constant.setter - def resistive_loss_constant(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Resistive Loss Constant={value}"]) + def resistive_loss_constant(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resistive Loss Constant={value}"]) @property def dielectric_loss_constant(self) -> float: @@ -186,20 +174,17 @@ def dielectric_loss_constant(self) -> float: Value should be between 0 and 1. """ val = self._get_property("Dielectric Loss Constant") - return val # type: ignore + return val # type: ignore @dielectric_loss_constant.setter - def dielectric_loss_constant(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Dielectric Loss Constant={value}"]) + def dielectric_loss_constant(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Dielectric Loss Constant={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py index 30d3308da3a..e6ebf15eefe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py @@ -1,30 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class CategoriesViewNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index 47641ec2e51..4d9f9e94ee4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Circulator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -49,13 +53,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,28 +67,24 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -98,16 +96,14 @@ def type(self) -> TypeOption: Type of circulator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -118,16 +114,14 @@ def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the circulator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -137,13 +131,11 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -154,13 +146,11 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -170,13 +160,11 @@ def reverse_isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -187,13 +175,11 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -203,13 +189,11 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -220,14 +204,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -238,14 +220,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -256,14 +236,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -274,21 +252,18 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py index 2206a3a19ae..f55a0825ac5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class CouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,13 +44,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def ports(self): @@ -55,13 +56,10 @@ def ports(self): Maps each port in the link to an antenna in the project "A list of values." - """ + """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ports={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py index 280324ad586..957e66d5cc1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class CouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,29 +52,23 @@ def delete(self): @property def transmitter(self) -> EmitNode: - """Transmitter - """ + """Transmitter""" val = self._get_property("Transmitter") - return val # type: ignore + return val # type: ignore @transmitter.setter def transmitter(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Transmitter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Transmitter={value}"]) @property def receiver(self) -> EmitNode: - """Receiver - """ + """Receiver""" val = self._get_property("Receiver") - return val # type: ignore + return val # type: ignore @receiver.setter def receiver(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Receiver={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver={value}"]) @property def data_source(self): @@ -78,15 +76,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,13 +92,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -112,28 +106,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -148,16 +138,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -167,13 +155,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -183,13 +169,11 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -213,16 +197,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -232,13 +214,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -248,13 +228,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -264,13 +242,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -281,13 +257,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def highlight_regions(self) -> bool: @@ -297,13 +271,11 @@ def highlight_regions(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Highlight Regions") - return val # type: ignore + return val # type: ignore @highlight_regions.setter def highlight_regions(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Highlight Regions={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highlight Regions={value}"]) @property def show_region_labels(self) -> bool: @@ -313,13 +285,11 @@ def show_region_labels(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Region Labels") - return val # type: ignore + return val # type: ignore @show_region_labels.setter def show_region_labels(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Region Labels={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Region Labels={value}"]) @property def font(self): @@ -329,13 +299,11 @@ def font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -345,13 +313,11 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -361,13 +327,11 @@ def background_color(self): Color should be in RGBA form: #AARRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -377,13 +341,11 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return val # type: ignore + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -393,13 +355,11 @@ def border_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -409,11 +369,8 @@ def border_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py index 905f354f567..088945373d9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class CouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -30,7 +33,7 @@ def __init__(self, oDesign, result_id, node_id): def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" - return self._import(file_name,"TouchstoneCoupling") + return self._import(file_name, "TouchstoneCoupling") def add_custom_coupling(self): """Add a new node to define custom coupling between antennas""" @@ -77,13 +80,11 @@ def minimum_allowed_coupling(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Minimum Allowed Coupling") - return val # type: ignore + return val # type: ignore @minimum_allowed_coupling.setter - def minimum_allowed_coupling(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minimum Allowed Coupling={value}"]) + def minimum_allowed_coupling(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Allowed Coupling={value}"]) @property def global_default_coupling(self) -> float: @@ -93,20 +94,17 @@ def global_default_coupling(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Global Default Coupling") - return val # type: ignore + return val # type: ignore @global_default_coupling.setter - def global_default_coupling(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Global Default Coupling={value}"]) + def global_default_coupling(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Global Default Coupling={value}"]) @property def antenna_tags(self) -> str: """Antenna Tags All tags currently used by all antennas in the project - """ + """ val = self._get_property("Antenna Tags") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py index 0435bc42945..9292bf109fc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class CustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def rename(self, new_name): """Rename this node""" @@ -51,11 +54,11 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Value (dB): + "Value (dB): Value should be between -1000 and 0. """ return self._get_table_data() @@ -72,43 +75,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -118,13 +115,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -134,26 +129,21 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py index f9cec702a9c..8dbfdc73e1b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class EmiPlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def attached(self): @@ -68,33 +70,31 @@ def attached(self): Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False) - """ + """ val = self._get_property("Attached") - return val # type: ignore + return val # type: ignore @attached.setter def attached(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) @property def position_x(self) -> float: """Position X Position of the marker on the X-axis (frequency axis). - """ + """ val = self._get_property("Position X") - return val # type: ignore + return val # type: ignore @property def position_y(self) -> float: """Position Y Position of the marker on the Y-axis (result axis). - """ + """ val = self._get_property("Position Y") - return val # type: ignore + return val # type: ignore @property def floating_label(self) -> bool: @@ -105,13 +105,11 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return val # type: ignore + return val # type: ignore @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -122,13 +120,11 @@ def position_from_left(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Position from Left") - return val # type: ignore + return val # type: ignore @position_from_left.setter - def position_from_left(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Left={value}"]) + def position_from_left(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -139,28 +135,24 @@ def position_from_top(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Position from Top") - return val # type: ignore + return val # type: ignore @position_from_top.setter - def position_from_top(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Top={value}"]) + def position_from_top(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) @property def text(self) -> str: """Text Set the text of the label - """ + """ val = self._get_property("Text") - return val # type: ignore + return val # type: ignore @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -172,16 +164,16 @@ def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position Specify horizontal position of the label as compared to the symbol - """ + """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] - return val # type: ignore + return val # type: ignore @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Horizontal Position={value.value}"] + ) class VerticalPositionOption(Enum): TOP = "Top" @@ -193,16 +185,14 @@ def vertical_position(self) -> VerticalPositionOption: """Vertical Position Specify vertical position of the label as compared to the symbol - """ + """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] - return val # type: ignore + return val # type: ignore @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -214,16 +204,14 @@ def text_alignment(self) -> TextAlignmentOption: """Text Alignment Specify justification applied to multi-line text - """ + """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] - return val # type: ignore + return val # type: ignore @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) @property def font(self): @@ -233,13 +221,11 @@ def font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -249,13 +235,11 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -265,13 +249,11 @@ def background_color(self): Color should be in RGBA form: #AARRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -281,13 +263,11 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return val # type: ignore + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -297,13 +277,11 @@ def border_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -313,13 +291,11 @@ def border_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -344,16 +320,14 @@ def symbol(self) -> SymbolOption: """Symbol Specify symbol displayed next to the label - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -363,13 +337,11 @@ def arrow_direction(self) -> int: Value should be between -360 and 360. """ val = self._get_property("Arrow Direction") - return val # type: ignore + return val # type: ignore @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -379,13 +351,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -395,13 +365,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -411,13 +379,11 @@ def line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -428,11 +394,8 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return val # type: ignore + return val # type: ignore @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py index 0466a13e30b..861bd337027 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class EmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,15 +42,13 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class GroundPlaneNormalOption(Enum): X_AXIS = "X Axis" @@ -58,16 +60,16 @@ def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal Specifies the axis of the normal to the ground plane - """ + """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] - return val # type: ignore + return val # type: ignore @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ground Plane Normal={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"] + ) @property def gp_position_along_normal(self) -> float: @@ -75,15 +77,12 @@ def gp_position_along_normal(self) -> float: Offset of ground plane in direction normal to the ground planes orientation - """ + """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @gp_position_along_normal.setter - def gp_position_along_normal(self, value : float|str): + def gp_position_along_normal(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"GP Position Along Normal={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GP Position Along Normal={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py index 476b63e9bec..e6c1831baa3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class TerrainCategoryOption(Enum): TYPE_A = "Type A" @@ -149,16 +141,14 @@ def terrain_category(self) -> TerrainCategoryOption: """Terrain Category Specify the terrain category type for the Erceg model - """ + """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] - return val # type: ignore + return val # type: ignore @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Terrain Category={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Terrain Category={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -169,13 +159,11 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -186,13 +174,11 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -203,13 +189,11 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -222,16 +206,14 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -242,13 +224,11 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -258,13 +238,11 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -274,13 +252,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -291,13 +267,11 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -307,13 +281,11 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -324,13 +296,11 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -341,13 +311,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -357,13 +327,11 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -373,13 +341,11 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -389,11 +355,10 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index ec64aeda315..aac854c785c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Filter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -49,13 +53,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,28 +67,24 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -103,16 +101,14 @@ def type(self) -> TypeOption: Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def insertion_loss(self) -> float: @@ -122,13 +118,11 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -138,13 +132,11 @@ def stop_band_attenuation(self) -> float: Value should be less than 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @stop_band_attenuation.setter - def stop_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -155,14 +147,12 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_pass_band.setter - def max_pass_band(self, value : float|str): + def max_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -173,14 +163,12 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_stop_band.setter - def min_stop_band(self, value : float|str): + def min_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -191,14 +179,12 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_stop_band.setter - def max_stop_band(self, value : float|str): + def max_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -209,14 +195,12 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_pass_band.setter - def min_pass_band(self, value : float|str): + def min_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -227,14 +211,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -245,14 +227,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -263,14 +243,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -281,122 +259,108 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff Lower cutoff frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff_.setter - def lower_cutoff_(self, value : float|str): + def lower_cutoff_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff ={value}"]) @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band Lower stop band frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band_.setter - def lower_stop_band_(self, value : float|str): + def lower_stop_band_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band ={value}"]) @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band Higher stop band frequency Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band_.setter - def higher_stop_band_(self, value : float|str): + def higher_stop_band_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band ={value}"]) @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff Higher cutoff frequency Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff_.setter - def higher_cutoff_(self, value : float|str): + def higher_cutoff_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff ={value}"]) @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency Lowest tuned frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lowest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lowest_tuned_frequency_.setter - def lowest_tuned_frequency_(self, value : float|str): + def lowest_tuned_frequency_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lowest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lowest Tuned Frequency ={value}"]) @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency Highest tuned frequency Value should be between 1 and 1e+11. """ val = self._get_property("Highest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @highest_tuned_frequency_.setter - def highest_tuned_frequency_(self, value : float|str): + def highest_tuned_frequency_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Highest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highest Tuned Frequency ={value}"]) @property def percent_bandwidth(self) -> float: @@ -406,13 +370,11 @@ def percent_bandwidth(self) -> float: Value should be between 0.001 and 100. """ val = self._get_property("Percent Bandwidth") - return val # type: ignore + return val # type: ignore @percent_bandwidth.setter - def percent_bandwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Percent Bandwidth={value}"]) + def percent_bandwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percent Bandwidth={value}"]) @property def shape_factor(self) -> float: @@ -422,20 +384,17 @@ def shape_factor(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @shape_factor.setter - def shape_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Shape Factor={value}"]) + def shape_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py index 92d1fd3719e..f26aca9f49f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class FiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): URBAN_MICROCELL = "Urban Microcell" @@ -149,16 +141,14 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment for the 5G channel model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def los(self) -> bool: @@ -168,13 +158,11 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return val # type: ignore + return val # type: ignore @los.setter def los(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"LOS={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"LOS={value}"]) @property def include_bpl(self) -> bool: @@ -184,13 +172,11 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return val # type: ignore + return val # type: ignore @include_bpl.setter def include_bpl(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include BPL={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include BPL={value}"]) class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -201,16 +187,14 @@ def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model Specify the NYU Building Penetration Loss model - """ + """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] - return val # type: ignore + return val # type: ignore @nyu_bpl_model.setter def nyu_bpl_model(self, value: NYUBPLModelOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NYU BPL Model={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NYU BPL Model={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -221,13 +205,11 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -238,13 +220,11 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -255,13 +235,11 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -274,16 +252,14 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -294,13 +270,11 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -310,13 +284,11 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -326,13 +298,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -343,13 +313,11 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -359,13 +327,11 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -376,13 +342,11 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -393,13 +357,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -409,13 +373,11 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -425,13 +387,11 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -441,11 +401,10 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py index 3eea644c2ae..1b3445369da 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class HataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): LARGE_CITY = "Large City" @@ -150,16 +142,14 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Hata model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -170,13 +160,11 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -187,13 +175,11 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -204,13 +190,11 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -223,16 +207,14 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -243,13 +225,11 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -259,13 +239,11 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -275,13 +253,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -292,13 +268,11 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -308,13 +282,11 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -325,13 +297,11 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -342,13 +312,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -358,13 +328,11 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -374,13 +342,11 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -390,11 +356,10 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py index 323c3e54814..d6f8681e865 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class IndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,13 +52,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Power Loss Coefficient: + "Power Loss Coefficient: Value should be between 0 and 100. - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): Value should be between 0 and 1000. """ return self._get_table_data() @@ -71,43 +75,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -117,13 +115,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -133,28 +129,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class BuildingTypeOption(Enum): RESIDENTIAL_APARTMENT = "Residential Apartment" @@ -168,16 +160,14 @@ def building_type(self) -> BuildingTypeOption: """Building Type Specify the building type for the Indoor Propagation model - """ + """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] - return val # type: ignore + return val # type: ignore @building_type.setter def building_type(self, value: BuildingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Building Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Building Type={value.value}"]) @property def number_of_floors(self) -> int: @@ -187,13 +177,11 @@ def number_of_floors(self) -> int: Value should be between 1 and 3. """ val = self._get_property("Number of Floors") - return val # type: ignore + return val # type: ignore @number_of_floors.setter def number_of_floors(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Floors={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Floors={value}"]) @property def custom_fading_margin(self) -> float: @@ -204,13 +192,11 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -221,13 +207,11 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -238,13 +222,11 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -257,16 +239,14 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -277,13 +257,11 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -293,13 +271,11 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -309,13 +285,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -326,13 +300,11 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -342,13 +314,11 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -359,13 +329,11 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -376,13 +344,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -392,13 +360,11 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -408,13 +374,11 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -424,11 +388,10 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index ec701443b2f..43eb51aba0f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Isolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -49,13 +53,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,28 +67,24 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -98,16 +96,14 @@ def type(self) -> TypeOption: Type of isolator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -118,16 +114,14 @@ def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the isolator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -137,13 +131,11 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -154,13 +146,11 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -170,13 +160,11 @@ def reverse_isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -187,13 +175,11 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -203,13 +189,11 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -220,14 +204,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -238,14 +220,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -256,14 +236,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -274,21 +252,18 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py index 02a661d8987..ecc86a2a817 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class LogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): FREE_SPACE = "Free Space" @@ -153,16 +145,14 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Log Distance model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def path_loss_exponent(self) -> float: @@ -172,13 +162,11 @@ def path_loss_exponent(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Path Loss Exponent") - return val # type: ignore + return val # type: ignore @path_loss_exponent.setter - def path_loss_exponent(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Path Loss Exponent={value}"]) + def path_loss_exponent(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Exponent={value}"]) @property def custom_fading_margin(self) -> float: @@ -189,13 +177,11 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -206,13 +192,11 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -223,13 +207,11 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -242,16 +224,14 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -262,13 +242,11 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -278,13 +256,11 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -294,13 +270,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -311,13 +285,11 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -327,13 +299,11 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -344,13 +314,11 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -361,13 +329,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -377,13 +345,11 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -393,13 +359,11 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -409,11 +373,10 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py index 5f0a48b8a75..d6e7164f6b4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class MPlexBandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -51,17 +55,14 @@ class PowerDirectionOption(Enum): @property def power_direction(self) -> PowerDirectionOption: - """Power Direction - """ + """Power Direction""" val = self._get_property("Power Direction") val = self.PowerDirectionOption[val] - return val # type: ignore + return val # type: ignore @power_direction.setter def power_direction(self, value: PowerDirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Power Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Power Direction={value.value}"]) @property def data_source(self): @@ -69,15 +70,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -87,13 +86,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -103,28 +100,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -139,16 +132,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -158,13 +149,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -174,13 +163,11 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -204,16 +191,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -223,13 +208,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -239,13 +222,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -255,13 +236,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -272,11 +251,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index 7be9885707f..375d109034d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Multiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -53,13 +57,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -69,28 +71,24 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_PASS_BAND = "By Pass Band" @@ -103,16 +101,14 @@ def type(self) -> TypeOption: simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band) - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -123,16 +119,14 @@ def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the multiplexer. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def flip_ports_vertically(self) -> bool: @@ -142,13 +136,11 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return val # type: ignore + return val # type: ignore @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Flip Ports Vertically={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flip Ports Vertically={value}"]) @property def ports(self): @@ -156,22 +148,19 @@ def ports(self): Assigns the child port nodes to the multiplexers ports "A list of values." - """ + """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py index c45a09d00cf..ddffe11a3a4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class MultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -59,16 +63,14 @@ def type(self) -> TypeOption: file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def filename(self) -> str: @@ -78,13 +80,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def insertion_loss(self) -> float: @@ -94,13 +94,11 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -110,13 +108,11 @@ def stop_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @stop_band_attenuation.setter - def stop_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -127,14 +123,12 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_pass_band.setter - def max_pass_band(self, value : float|str): + def max_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -145,14 +139,12 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_stop_band.setter - def min_stop_band(self, value : float|str): + def min_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -163,14 +155,12 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_stop_band.setter - def max_stop_band(self, value : float|str): + def max_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -181,14 +171,12 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_pass_band.setter - def min_pass_band(self, value : float|str): + def min_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -199,14 +187,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -217,14 +203,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -235,14 +219,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -253,21 +235,18 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py index 989bd76b78a..5e216c0e797 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class OutboardTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -70,13 +72,11 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -84,15 +84,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -102,13 +100,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -118,28 +114,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -154,16 +146,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -173,13 +163,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -189,13 +177,11 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -219,16 +205,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -238,13 +222,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -254,13 +236,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -270,13 +250,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -287,11 +265,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py index c733ba207d0..8e2aa1f23f9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ParametricCouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,29 +52,23 @@ def delete(self): @property def antenna_a(self) -> EmitNode: - """Antenna A - """ + """Antenna A""" val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: - """Antenna B - """ + """Antenna B""" val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def data_source(self): @@ -78,15 +76,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,13 +92,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -112,28 +106,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -148,16 +138,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -167,13 +155,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -183,13 +169,11 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -213,16 +197,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -232,13 +214,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -248,13 +228,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -264,13 +242,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -281,11 +257,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py index 662ea1343bc..9051ff8fd69 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def attached(self) -> bool: @@ -71,43 +73,37 @@ def attached(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Attached") - return val # type: ignore + return val # type: ignore @attached.setter def attached(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) @property def position_x(self) -> float: """Position X Position of the marker on the X-axis (frequency axis). - """ + """ val = self._get_property("Position X") - return val # type: ignore + return val # type: ignore @position_x.setter - def position_x(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position X={value}"]) + def position_x(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position X={value}"]) @property def position_y(self) -> float: """Position Y Position of the marker on the Y-axis (result axis). - """ + """ val = self._get_property("Position Y") - return val # type: ignore + return val # type: ignore @position_y.setter - def position_y(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position Y={value}"]) + def position_y(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Y={value}"]) @property def floating_label(self) -> bool: @@ -118,13 +114,11 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return val # type: ignore + return val # type: ignore @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -135,13 +129,11 @@ def position_from_left(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Position from Left") - return val # type: ignore + return val # type: ignore @position_from_left.setter - def position_from_left(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Left={value}"]) + def position_from_left(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -152,28 +144,24 @@ def position_from_top(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Position from Top") - return val # type: ignore + return val # type: ignore @position_from_top.setter - def position_from_top(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Top={value}"]) + def position_from_top(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) @property def text(self) -> str: """Text Set the text of the label - """ + """ val = self._get_property("Text") - return val # type: ignore + return val # type: ignore @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -185,16 +173,16 @@ def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position Specify horizontal position of the label as compared to the symbol - """ + """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] - return val # type: ignore + return val # type: ignore @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Horizontal Position={value.value}"] + ) class VerticalPositionOption(Enum): TOP = "Top" @@ -206,16 +194,14 @@ def vertical_position(self) -> VerticalPositionOption: """Vertical Position Specify vertical position of the label as compared to the symbol - """ + """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] - return val # type: ignore + return val # type: ignore @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -227,16 +213,14 @@ def text_alignment(self) -> TextAlignmentOption: """Text Alignment Specify justification applied to multi-line text - """ + """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] - return val # type: ignore + return val # type: ignore @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) @property def font(self): @@ -246,13 +230,11 @@ def font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -262,13 +244,11 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -278,13 +258,11 @@ def background_color(self): Color should be in RGBA form: #AARRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -294,13 +272,11 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return val # type: ignore + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -310,13 +286,11 @@ def border_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -326,13 +300,11 @@ def border_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -357,16 +329,14 @@ def symbol(self) -> SymbolOption: """Symbol Specify symbol displayed next to the label - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -376,13 +346,11 @@ def arrow_direction(self) -> int: Value should be between -360 and 360. """ val = self._get_property("Arrow Direction") - return val # type: ignore + return val # type: ignore @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -392,13 +360,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -408,13 +374,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -424,13 +388,11 @@ def line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -441,11 +403,8 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return val # type: ignore + return val # type: ignore @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py index ee41cffb84b..4c6cc7f9e77 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,15 +58,13 @@ def title(self) -> str: """Title Enter title at the top of the plot, room will be made for it - """ + """ val = self._get_property("Title") - return val # type: ignore + return val # type: ignore @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) @property def title_font(self): @@ -72,13 +74,11 @@ def title_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Title Font") - return val # type: ignore + return val # type: ignore @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -88,13 +88,11 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return val # type: ignore + return val # type: ignore @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) @property def legend_font(self): @@ -104,13 +102,11 @@ def legend_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Legend Font") - return val # type: ignore + return val # type: ignore @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) @property def display_cad_overlay(self) -> bool: @@ -120,13 +116,11 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return val # type: ignore + return val # type: ignore @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -136,28 +130,24 @@ def opacity(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Opacity") - return val # type: ignore + return val # type: ignore @opacity.setter - def opacity(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Opacity={value}"]) + def opacity(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset Adjust vertical position of CAD model overlay - """ + """ val = self._get_property("Vertical Offset") - return val # type: ignore + return val # type: ignore @vertical_offset.setter - def vertical_offset(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Offset={value}"]) + def vertical_offset(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -168,13 +158,11 @@ def range_axis_rotation(self) -> float: Value should be between -180 and 180. """ val = self._get_property("Range Axis Rotation") - return val # type: ignore + return val # type: ignore @range_axis_rotation.setter - def range_axis_rotation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -184,73 +172,63 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return val # type: ignore + return val # type: ignore @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min Set lower extent of horizontal axis - """ + """ val = self._get_property("X-axis Min") - return val # type: ignore + return val # type: ignore @x_axis_min.setter - def x_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Min={value}"]) + def x_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max Set upper extent of horizontal axis - """ + """ val = self._get_property("X-axis Max") - return val # type: ignore + return val # type: ignore @x_axis_max.setter - def x_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Max={value}"]) + def x_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min Set lower extent of vertical axis - """ + """ val = self._get_property("Y-axis Min") - return val # type: ignore + return val # type: ignore @y_axis_min.setter - def y_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Min={value}"]) + def y_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max Set upper extent of vertical axis - """ + """ val = self._get_property("Y-axis Max") - return val # type: ignore + return val # type: ignore @y_axis_max.setter - def y_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Max={value}"]) + def y_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -261,13 +239,11 @@ def y_axis_range(self) -> float: Value should be greater than 0. """ val = self._get_property("Y-axis Range") - return val # type: ignore + return val # type: ignore @y_axis_range.setter - def y_axis_range(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Range={value}"]) + def y_axis_range(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -277,13 +253,11 @@ def max_major_ticks_x(self) -> int: Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks X") - return val # type: ignore + return val # type: ignore @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -294,13 +268,11 @@ def max_minor_ticks_x(self) -> int: Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks X") - return val # type: ignore + return val # type: ignore @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -310,13 +282,11 @@ def max_major_ticks_y(self) -> int: Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks Y") - return val # type: ignore + return val # type: ignore @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -327,13 +297,11 @@ def max_minor_ticks_y(self) -> int: Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks Y") - return val # type: ignore + return val # type: ignore @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -343,13 +311,11 @@ def axis_label_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Label Font") - return val # type: ignore + return val # type: ignore @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -359,13 +325,11 @@ def axis_tick_label_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Tick Label Font") - return val # type: ignore + return val # type: ignore @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -380,16 +344,16 @@ def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style Select line style of major-tick grid lines - """ + """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] + ) @property def major_grid_color(self): @@ -399,13 +363,11 @@ def major_grid_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Major Grid Color") - return val # type: ignore + return val # type: ignore @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -420,16 +382,16 @@ def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style Select line style of minor-tick grid lines - """ + """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] + ) @property def minor_grid_color(self): @@ -439,13 +401,11 @@ def minor_grid_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Minor Grid Color") - return val # type: ignore + return val # type: ignore @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -455,13 +415,11 @@ def background_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -474,16 +432,16 @@ def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit Units to use for plotting broadband power densities - """ + """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] - return val # type: ignore + return val # type: ignore @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power for Plots Unit={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] + ) @property def bb_power_bandwidth(self) -> float: @@ -494,14 +452,12 @@ def bb_power_bandwidth(self) -> float: """ val = self._get_property("BB Power Bandwidth") val = self._convert_from_internal_units(float(val), "") - return val # type: ignore + return val # type: ignore @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value : float|str): + def bb_power_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -511,11 +467,8 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return val # type: ignore + return val # type: ignore @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Log Scale={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py index 5e89b302835..af75503fcbf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -49,13 +53,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,28 +67,24 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -99,16 +97,14 @@ def type(self) -> TypeOption: Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric) - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class OrientationOption(Enum): DIVIDER = "Divider" @@ -119,16 +115,14 @@ def orientation(self) -> OrientationOption: """Orientation Defines the orientation of the Power Divider. - """ + """ val = self._get_property("Orientation") val = self.OrientationOption[val] - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value: OrientationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value.value}"]) @property def insertion_loss_above_ideal(self) -> float: @@ -139,13 +133,13 @@ def insertion_loss_above_ideal(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss Above Ideal") - return val # type: ignore + return val # type: ignore @insertion_loss_above_ideal.setter - def insertion_loss_above_ideal(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss Above Ideal={value}"]) + def insertion_loss_above_ideal(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Insertion Loss Above Ideal={value}"] + ) @property def finite_isolation(self) -> bool: @@ -156,13 +150,11 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -172,13 +164,11 @@ def isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @isolation.setter - def isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Isolation={value}"]) + def isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -189,13 +179,11 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -205,13 +193,11 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -222,14 +208,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -240,14 +224,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -258,14 +240,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -276,21 +256,18 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py index 2e096a58719..17eac92aebc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PowerTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -55,16 +59,14 @@ def direction(self) -> DirectionOption: """Direction Direction of power flow (towards or away from the transmitter) to plot - """ + """ val = self._get_property("Direction") val = self.DirectionOption[val] - return val # type: ignore + return val # type: ignore @direction.setter def direction(self, value: DirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Direction={value.value}"]) @property def data_source(self): @@ -72,15 +74,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -90,13 +90,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -106,28 +104,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -142,16 +136,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -161,13 +153,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -177,13 +167,11 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -207,16 +195,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -226,13 +212,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -242,13 +226,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -258,13 +240,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -275,11 +255,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py index 2028c4cb0a8..1dab01449ef 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ProfileTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,15 +56,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -70,13 +72,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -86,28 +86,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -122,16 +118,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -141,13 +135,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -157,13 +149,11 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -187,16 +177,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -206,13 +194,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -222,13 +208,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -238,13 +222,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -255,11 +237,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py index 7f5b6f08927..86571946adf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def custom_fading_margin(self) -> float: @@ -148,13 +140,11 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -165,13 +155,11 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -182,13 +170,11 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -201,16 +187,14 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -221,13 +205,11 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -237,13 +219,11 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -253,13 +233,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -270,13 +248,11 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -286,13 +262,11 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -303,13 +277,11 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -320,13 +292,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -336,13 +308,11 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -352,13 +322,11 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -368,11 +336,10 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py index 1d7ea43ad4c..9effc1bd6c6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class RadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -51,11 +54,11 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Name: - "Type: - """ + "Name: + "Type: + """ return self._get_table_data() @table_data.setter @@ -67,13 +70,10 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py index 8e667f2538c..5d7bd436849 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyAmplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,16 +51,16 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class AmplifierTypeOption(Enum): TRANSMIT_AMPLIFIER = "Transmit Amplifier" @@ -67,10 +71,10 @@ def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type Configures the amplifier as a Tx or Rx amplifier - """ + """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] - return val # type: ignore + return val # type: ignore @property def gain(self) -> float: @@ -80,7 +84,7 @@ def gain(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Gain") - return val # type: ignore + return val # type: ignore @property def center_frequency(self) -> float: @@ -91,7 +95,7 @@ def center_frequency(self) -> float: """ val = self._get_property("Center Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def bandwidth(self) -> float: @@ -102,7 +106,7 @@ def bandwidth(self) -> float: """ val = self._get_property("Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: @@ -112,7 +116,7 @@ def noise_figure(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def saturation_level(self) -> float: @@ -123,7 +127,7 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input(self) -> float: @@ -134,7 +138,7 @@ def p1_db_point_ref_input(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -145,7 +149,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def shape_factor(self) -> float: @@ -155,7 +159,7 @@ def shape_factor(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -165,7 +169,7 @@ def reverse_isolation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -175,5 +179,4 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py index cc5f59f1d9f..09e15ca1567 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyAntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,9 +43,9 @@ def tags(self) -> str: """Tags Space delimited list of tags for coupling selections - """ + """ val = self._get_property("Tags") - return val # type: ignore + return val # type: ignore @property def show_relative_coordinates(self) -> bool: @@ -52,7 +56,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @property def position(self): @@ -62,7 +66,7 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): @@ -72,7 +76,7 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -83,10 +87,10 @@ def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @property def orientation(self): @@ -96,7 +100,7 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): @@ -106,7 +110,7 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def position_defined(self) -> bool: @@ -116,7 +120,7 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return val # type: ignore + return val # type: ignore @property def antenna_temperature(self) -> float: @@ -126,16 +130,16 @@ def antenna_temperature(self) -> float: Value should be between 0 and 100000. """ val = self._get_property("Antenna Temperature") - return val # type: ignore + return val # type: ignore @property def type(self): """Type Defines the type of antenna - """ + """ val = self._get_property("Type") - return val # type: ignore + return val # type: ignore @property def antenna_file(self) -> str: @@ -143,7 +147,7 @@ def antenna_file(self) -> str: Value should be a full file path. """ val = self._get_property("Antenna File") - return val # type: ignore + return val # type: ignore @property def project_name(self) -> str: @@ -153,7 +157,7 @@ def project_name(self) -> str: Value should be a full file path. """ val = self._get_property("Project Name") - return val # type: ignore + return val # type: ignore @property def peak_gain(self) -> float: @@ -163,7 +167,7 @@ def peak_gain(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Peak Gain") - return val # type: ignore + return val # type: ignore class BoresightOption(Enum): XAXIS = "+X Axis" @@ -175,10 +179,10 @@ def boresight(self) -> BoresightOption: """Boresight Select peak beam direction in local coordinates - """ + """ val = self._get_property("Boresight") val = self.BoresightOption[val] - return val # type: ignore + return val # type: ignore @property def vertical_beamwidth(self) -> float: @@ -188,7 +192,7 @@ def vertical_beamwidth(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("Vertical Beamwidth") - return val # type: ignore + return val # type: ignore @property def horizontal_beamwidth(self) -> float: @@ -198,7 +202,7 @@ def horizontal_beamwidth(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("Horizontal Beamwidth") - return val # type: ignore + return val # type: ignore @property def extra_sidelobe(self) -> bool: @@ -208,7 +212,7 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_level(self) -> float: @@ -219,7 +223,7 @@ def first_sidelobe_level(self) -> float: Value should be between 0 and 200. """ val = self._get_property("First Sidelobe Level") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_vert_bw(self) -> float: @@ -229,7 +233,7 @@ def first_sidelobe_vert_bw(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Vert. BW") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_hor_bw(self) -> float: @@ -239,7 +243,7 @@ def first_sidelobe_hor_bw(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Hor. BW") - return val # type: ignore + return val # type: ignore @property def outerbacklobe_level(self) -> float: @@ -249,7 +253,7 @@ def outerbacklobe_level(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Outer/Backlobe Level") - return val # type: ignore + return val # type: ignore @property def resonant_frequency(self) -> float: @@ -261,7 +265,7 @@ def resonant_frequency(self) -> float: """ val = self._get_property("Resonant Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def slot_length(self) -> float: @@ -272,7 +276,7 @@ def slot_length(self) -> float: """ val = self._get_property("Slot Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def mouth_width(self) -> float: @@ -283,7 +287,7 @@ def mouth_width(self) -> float: """ val = self._get_property("Mouth Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def mouth_height(self) -> float: @@ -294,7 +298,7 @@ def mouth_height(self) -> float: """ val = self._get_property("Mouth Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_width(self) -> float: @@ -306,7 +310,7 @@ def waveguide_width(self) -> float: """ val = self._get_property("Waveguide Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def width_flare_half_angle(self) -> float: @@ -317,7 +321,7 @@ def width_flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Width Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def height_flare_half_angle(self) -> float: @@ -328,7 +332,7 @@ def height_flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Height Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def mouth_diameter(self) -> float: @@ -339,7 +343,7 @@ def mouth_diameter(self) -> float: """ val = self._get_property("Mouth Diameter") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def flare_half_angle(self) -> float: @@ -350,7 +354,7 @@ def flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def vswr(self) -> float: @@ -361,7 +365,7 @@ def vswr(self) -> float: Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore class AntennaPolarizationOption(Enum): VERTICAL = "Vertical" @@ -374,10 +378,10 @@ def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] - return val # type: ignore + return val # type: ignore class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" @@ -388,10 +392,10 @@ def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode Choose the Cross Dipole type - """ + """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] - return val # type: ignore + return val # type: ignore class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" @@ -402,10 +406,10 @@ def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] - return val # type: ignore + return val # type: ignore @property def override_height(self) -> bool: @@ -416,7 +420,7 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return val # type: ignore + return val # type: ignore @property def offset_height(self) -> float: @@ -427,7 +431,7 @@ def offset_height(self) -> float: """ val = self._get_property("Offset Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def auto_height_offset(self) -> bool: @@ -438,7 +442,7 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return val # type: ignore + return val # type: ignore @property def conform__adjust_antenna(self) -> bool: @@ -448,7 +452,7 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return val # type: ignore + return val # type: ignore @property def element_offset(self): @@ -458,7 +462,7 @@ def element_offset(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Element Offset") - return val # type: ignore + return val # type: ignore class ConformtoPlatformOption(Enum): NONE = "None" @@ -470,10 +474,10 @@ def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform Select method of automated conforming applied after Element Offset - """ + """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] - return val # type: ignore + return val # type: ignore class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" @@ -485,10 +489,10 @@ def reference_plane(self) -> ReferencePlaneOption: """Reference Plane Select reference plane for determining original element heights - """ + """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] - return val # type: ignore + return val # type: ignore @property def conform_element_orientation(self) -> bool: @@ -499,7 +503,7 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return val # type: ignore + return val # type: ignore @property def show_axes(self) -> bool: @@ -509,7 +513,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @property def show_icon(self) -> bool: @@ -519,7 +523,7 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return val # type: ignore + return val # type: ignore @property def size(self) -> float: @@ -529,7 +533,7 @@ def size(self) -> float: Value should be between 0.001 and 1. """ val = self._get_property("Size") - return val # type: ignore + return val # type: ignore @property def color(self): @@ -539,25 +543,25 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @property def el_sample_interval(self) -> float: """El Sample Interval Space between elevation-angle samples of pattern - """ + """ val = self._get_property("El Sample Interval") - return val # type: ignore + return val # type: ignore @property def az_sample_interval(self) -> float: """Az Sample Interval Space between azimuth-angle samples of pattern - """ + """ val = self._get_property("Az Sample Interval") - return val # type: ignore + return val # type: ignore @property def has_frequency_domain(self) -> bool: @@ -567,34 +571,34 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return val # type: ignore + return val # type: ignore @property def frequency_domain(self): """Frequency Domain Frequency sample(s) defining antenna - """ + """ val = self._get_property("Frequency Domain") - return val # type: ignore + return val # type: ignore @property def number_of_electric_sources(self) -> int: """Number of Electric Sources Number of freestanding electric current sources defining antenna - """ + """ val = self._get_property("Number of Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources Number of freestanding magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_electric_sources(self) -> int: @@ -602,9 +606,9 @@ def number_of_imaged_electric_sources(self) -> int: Number of imaged, half-space radiating electric current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_magnetic_sources(self) -> int: @@ -612,9 +616,9 @@ def number_of_imaged_magnetic_sources(self) -> int: Number of imaged, half-space radiating magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def waveguide_height(self) -> float: @@ -622,30 +626,30 @@ def waveguide_height(self) -> float: Implied waveguide height (along local x-axis) where the flared horn walls meet the feed - """ + """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency Implied lowest operating frequency of pyramidal horn antenna - """ + """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency Implied lowest operating frequency of conical horn antenna - """ + """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class SWEModeTruncationOption(Enum): DYNAMIC = "Dynamic" @@ -658,10 +662,10 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: Select the method for stability-enhancing truncation of spherical wave expansion terms - """ + """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] - return val # type: ignore + return val # type: ignore @property def max_n_index(self) -> int: @@ -671,16 +675,16 @@ def max_n_index(self) -> int: Value should be greater than 1. """ val = self._get_property("Max N Index") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @property def show_composite_passband(self) -> bool: @@ -690,7 +694,7 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return val # type: ignore + return val # type: ignore @property def use_phase_center(self) -> bool: @@ -700,16 +704,16 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return val # type: ignore + return val # type: ignore @property def coordinate_systems(self) -> str: """Coordinate Systems Specifies the coordinate system for the phase center of this antenna - """ + """ val = self._get_property("Coordinate Systems") - return val # type: ignore + return val # type: ignore @property def phasecenterposition(self): @@ -719,7 +723,7 @@ def phasecenterposition(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("PhaseCenterPosition") - return val # type: ignore + return val # type: ignore @property def phasecenterorientation(self): @@ -729,5 +733,4 @@ def phasecenterorientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("PhaseCenterOrientation") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py index ce5eb6aa1cf..952b1cd8cea 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyAntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +44,7 @@ def passband_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Passband Loss") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -51,7 +54,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out of Band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -62,7 +65,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -73,7 +76,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -84,7 +87,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -95,14 +98,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py index 94814f2ab89..abaa9cc12e4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,9 +43,9 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @property def use_dd_1494_mode(self) -> bool: @@ -51,7 +55,7 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return val # type: ignore + return val # type: ignore @property def use_emission_designator(self) -> bool: @@ -61,35 +65,35 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return val # type: ignore + return val # type: ignore @property def emission_designator(self) -> str: """Emission Designator Enter the Emission Designator to define the bandwidth and modulation - """ + """ val = self._get_property("Emission Designator") - return val # type: ignore + return val # type: ignore @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW Channel Bandwidth based off the emission designator - """ + """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def emit_modulation_type(self) -> str: """EMIT Modulation Type Modulation based off the emission designator - """ + """ val = self._get_property("EMIT Modulation Type") - return val # type: ignore + return val # type: ignore @property def override_emission_designator_bw(self) -> bool: @@ -100,7 +104,7 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return val # type: ignore + return val # type: ignore @property def channel_bandwidth(self) -> float: @@ -111,7 +115,7 @@ def channel_bandwidth(self) -> float: """ val = self._get_property("Channel Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class ModulationOption(Enum): GENERIC = "Generic" @@ -131,10 +135,10 @@ def modulation(self) -> ModulationOption: """Modulation Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Modulation") val = self.ModulationOption[val] - return val # type: ignore + return val # type: ignore @property def max_modulating_freq(self) -> float: @@ -145,7 +149,7 @@ def max_modulating_freq(self) -> float: """ val = self._get_property("Max Modulating Freq.") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def modulation_index(self) -> float: @@ -155,7 +159,7 @@ def modulation_index(self) -> float: Value should be between 0.01 and 1. """ val = self._get_property("Modulation Index") - return val # type: ignore + return val # type: ignore @property def freq_deviation(self) -> float: @@ -166,7 +170,7 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def bit_rate(self) -> float: @@ -177,7 +181,7 @@ def bit_rate(self) -> float: """ val = self._get_property("Bit Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @property def sidelobes(self) -> int: @@ -187,18 +191,18 @@ def sidelobes(self) -> int: Value should be greater than 0. """ val = self._get_property("Sidelobes") - return val # type: ignore + return val # type: ignore @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation FSK frequency deviation: helps determine spectral profile Value should be greater than 1. """ val = self._get_property("Freq. Deviation ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class PSKTypeOption(Enum): BPSK = "BPSK" @@ -213,10 +217,10 @@ def psk_type(self) -> PSKTypeOption: """PSK Type PSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] - return val # type: ignore + return val # type: ignore class FSKTypeOption(Enum): FSK_2 = "FSK-2" @@ -228,10 +232,10 @@ def fsk_type(self) -> FSKTypeOption: """FSK Type FSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] - return val # type: ignore + return val # type: ignore class QAMTypeOption(Enum): QAM_4 = "QAM-4" @@ -245,10 +249,10 @@ def qam_type(self) -> QAMTypeOption: """QAM Type QAM modulation order: helps determine spectral profile - """ + """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] - return val # type: ignore + return val # type: ignore class APSKTypeOption(Enum): APSK_4 = "APSK-4" @@ -262,10 +266,10 @@ def apsk_type(self) -> APSKTypeOption: """APSK Type APSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -276,7 +280,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -287,7 +291,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def channel_spacing(self) -> float: @@ -298,7 +302,7 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def tx_offset(self) -> float: @@ -309,7 +313,7 @@ def tx_offset(self) -> float: """ val = self._get_property("Tx Offset") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class RadarTypeOption(Enum): CW = "CW" @@ -323,10 +327,10 @@ def radar_type(self) -> RadarTypeOption: """Radar Type Radar type: helps determine spectral profile - """ + """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] - return val # type: ignore + return val # type: ignore @property def hopping_radar(self) -> bool: @@ -336,7 +340,7 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return val # type: ignore + return val # type: ignore @property def post_october_2020_procurement(self) -> bool: @@ -347,7 +351,7 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return val # type: ignore + return val # type: ignore @property def hop_range_min_freq(self) -> float: @@ -358,7 +362,7 @@ def hop_range_min_freq(self) -> float: """ val = self._get_property("Hop Range Min Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def hop_range_max_freq(self) -> float: @@ -369,7 +373,7 @@ def hop_range_max_freq(self) -> float: """ val = self._get_property("Hop Range Max Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def pulse_duration(self) -> float: @@ -380,7 +384,7 @@ def pulse_duration(self) -> float: """ val = self._get_property("Pulse Duration") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_rise_time(self) -> float: @@ -391,7 +395,7 @@ def pulse_rise_time(self) -> float: """ val = self._get_property("Pulse Rise Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_fall_time(self) -> float: @@ -402,7 +406,7 @@ def pulse_fall_time(self) -> float: """ val = self._get_property("Pulse Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_repetition_rate(self) -> float: @@ -412,7 +416,7 @@ def pulse_repetition_rate(self) -> float: Value should be greater than 1. """ val = self._get_property("Pulse Repetition Rate") - return val # type: ignore + return val # type: ignore @property def number_of_chips(self) -> float: @@ -422,7 +426,7 @@ def number_of_chips(self) -> float: Value should be greater than 1. """ val = self._get_property("Number of Chips") - return val # type: ignore + return val # type: ignore @property def pulse_compression_ratio(self) -> float: @@ -432,7 +436,7 @@ def pulse_compression_ratio(self) -> float: Value should be greater than 1. """ val = self._get_property("Pulse Compression Ratio") - return val # type: ignore + return val # type: ignore @property def fm_chirp_period(self) -> float: @@ -443,7 +447,7 @@ def fm_chirp_period(self) -> float: """ val = self._get_property("FM Chirp Period") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def fm_freq_deviation(self) -> float: @@ -454,7 +458,7 @@ def fm_freq_deviation(self) -> float: """ val = self._get_property("FM Freq Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def fm_freq_dev_bandwidth(self) -> float: @@ -466,5 +470,4 @@ def fm_freq_dev_bandwidth(self) -> float: """ val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py index 487a1d52c7c..3e419d44688 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyBandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -32,4 +35,3 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py index 0a5b2a029cd..5617c837877 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyCADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,7 +46,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore class ModelTypeOption(Enum): PLATE = "Plate" @@ -65,10 +69,10 @@ def model_type(self) -> ModelTypeOption: """Model Type Select type of parametric model to create - """ + """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] - return val # type: ignore + return val # type: ignore @property def length(self) -> float: @@ -79,7 +83,7 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def width(self) -> float: @@ -90,7 +94,7 @@ def width(self) -> float: """ val = self._get_property("Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def height(self) -> float: @@ -101,7 +105,7 @@ def height(self) -> float: """ val = self._get_property("Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def angle(self) -> float: @@ -111,7 +115,7 @@ def angle(self) -> float: Value should be between 0 and 360. """ val = self._get_property("Angle") - return val # type: ignore + return val # type: ignore @property def top_side(self) -> float: @@ -122,7 +126,7 @@ def top_side(self) -> float: """ val = self._get_property("Top Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def top_radius(self) -> float: @@ -133,7 +137,7 @@ def top_radius(self) -> float: """ val = self._get_property("Top Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def side(self) -> float: @@ -144,7 +148,7 @@ def side(self) -> float: """ val = self._get_property("Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def radius(self) -> float: @@ -155,7 +159,7 @@ def radius(self) -> float: """ val = self._get_property("Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def base_radius(self) -> float: @@ -166,7 +170,7 @@ def base_radius(self) -> float: """ val = self._get_property("Base Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def center_radius(self) -> float: @@ -177,7 +181,7 @@ def center_radius(self) -> float: """ val = self._get_property("Center Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def x_axis_ellipsoid_radius(self) -> float: @@ -188,7 +192,7 @@ def x_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("X Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def y_axis_ellipsoid_radius(self) -> float: @@ -199,7 +203,7 @@ def y_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Y Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def z_axis_ellipsoid_radius(self) -> float: @@ -210,7 +214,7 @@ def z_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Z Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def focal_length(self) -> float: @@ -221,17 +225,17 @@ def focal_length(self) -> float: """ val = self._get_property("Focal Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def offset(self) -> float: """Offset Offset of parabolic reflector - """ + """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def x_direction_taper(self) -> float: @@ -242,7 +246,7 @@ def x_direction_taper(self) -> float: Value should be greater than 0. """ val = self._get_property("X Direction Taper") - return val # type: ignore + return val # type: ignore @property def y_direction_taper(self) -> float: @@ -253,7 +257,7 @@ def y_direction_taper(self) -> float: Value should be greater than 0. """ val = self._get_property("Y Direction Taper") - return val # type: ignore + return val # type: ignore @property def prism_direction(self): @@ -263,7 +267,7 @@ def prism_direction(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Prism Direction") - return val # type: ignore + return val # type: ignore @property def closed_top(self) -> bool: @@ -273,7 +277,7 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return val # type: ignore + return val # type: ignore @property def closed_base(self) -> bool: @@ -283,7 +287,7 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return val # type: ignore + return val # type: ignore @property def mesh_density(self) -> int: @@ -294,7 +298,7 @@ def mesh_density(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Mesh Density") - return val # type: ignore + return val # type: ignore @property def use_symmetric_mesh(self) -> bool: @@ -305,7 +309,7 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return val # type: ignore + return val # type: ignore class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -316,10 +320,10 @@ def mesh_option(self) -> MeshOptionOption: """Mesh Option Select from different meshing options - """ + """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] - return val # type: ignore + return val # type: ignore @property def coating_index(self) -> int: @@ -329,7 +333,7 @@ def coating_index(self) -> int: Value should be between 0 and 100000. """ val = self._get_property("Coating Index") - return val # type: ignore + return val # type: ignore @property def show_relative_coordinates(self) -> bool: @@ -340,7 +344,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @property def position(self): @@ -350,7 +354,7 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): @@ -360,7 +364,7 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -371,10 +375,10 @@ def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @property def orientation(self): @@ -384,7 +388,7 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): @@ -394,7 +398,7 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def visible(self) -> bool: @@ -404,7 +408,7 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -417,10 +421,10 @@ def render_mode(self) -> RenderModeOption: """Render Mode Select drawing style for surfaces - """ + """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] - return val # type: ignore + return val # type: ignore @property def show_axes(self) -> bool: @@ -430,7 +434,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @property def min(self): @@ -440,7 +444,7 @@ def min(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Min") - return val # type: ignore + return val # type: ignore @property def max(self): @@ -450,16 +454,16 @@ def max(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Max") - return val # type: ignore + return val # type: ignore @property def number_of_surfaces(self) -> int: """Number of Surfaces Number of surfaces in the model - """ + """ val = self._get_property("Number of Surfaces") - return val # type: ignore + return val # type: ignore @property def color(self): @@ -469,14 +473,13 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py index 68b01528bbd..cee13692b0a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyCable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,16 +51,16 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -69,10 +73,10 @@ def type(self) -> TypeOption: Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @property def length(self) -> float: @@ -83,7 +87,7 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def loss_per_length(self) -> float: @@ -93,7 +97,7 @@ def loss_per_length(self) -> float: Value should be between 0 and 20. """ val = self._get_property("Loss Per Length") - return val # type: ignore + return val # type: ignore @property def measurement_length(self) -> float: @@ -104,7 +108,7 @@ def measurement_length(self) -> float: """ val = self._get_property("Measurement Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def resistive_loss_constant(self) -> float: @@ -114,7 +118,7 @@ def resistive_loss_constant(self) -> float: Value should be between 0 and 2. """ val = self._get_property("Resistive Loss Constant") - return val # type: ignore + return val # type: ignore @property def dielectric_loss_constant(self) -> float: @@ -124,14 +128,13 @@ def dielectric_loss_constant(self) -> float: Value should be between 0 and 1. """ val = self._get_property("Dielectric Loss Constant") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py index 8c3b7e785df..da7a2b801a6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyCirculator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,16 +51,16 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -68,10 +72,10 @@ def type(self) -> TypeOption: Type of circulator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -82,10 +86,10 @@ def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the circulator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -95,7 +99,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_reverse_isolation(self) -> bool: @@ -106,7 +110,7 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -116,7 +120,7 @@ def reverse_isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -127,7 +131,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -137,7 +141,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -148,7 +152,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -159,7 +163,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -170,7 +174,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -181,14 +185,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py index c029cab2b66..939ed3d313f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +44,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def ports(self): @@ -49,7 +52,6 @@ def ports(self): Maps each port in the link to an antenna in the project "A list of values." - """ + """ val = self._get_property("Ports") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py index bcadca8a91f..17ac942f5ac 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyCouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +40,7 @@ def minimum_allowed_coupling(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Minimum Allowed Coupling") - return val # type: ignore + return val # type: ignore @property def global_default_coupling(self) -> float: @@ -47,14 +50,13 @@ def global_default_coupling(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Global Default Coupling") - return val # type: ignore + return val # type: ignore @property def antenna_tags(self) -> str: """Antenna Tags All tags currently used by all antennas in the project - """ + """ val = self._get_property("Antenna Tags") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py index 1ac7f775844..f30ff32cabd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,11 +38,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Value (dB): + "Value (dB): Value should be between -1000 and 0. """ return self._get_table_data() @@ -52,25 +55,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -80,7 +83,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -90,14 +93,13 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py index b6cf5a0efdc..5c25eceb03c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -34,9 +38,9 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class GroundPlaneNormalOption(Enum): X_AXIS = "X Axis" @@ -48,10 +52,10 @@ def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal Specifies the axis of the normal to the ground plane - """ + """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] - return val # type: ignore + return val # type: ignore @property def gp_position_along_normal(self) -> float: @@ -59,8 +63,7 @@ def gp_position_along_normal(self) -> float: Offset of ground plane in direction normal to the ground planes orientation - """ + """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py index 14869dd829d..38015658e36 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,25 +46,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -80,16 +84,16 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class TerrainCategoryOption(Enum): TYPE_A = "Type A" @@ -101,10 +105,10 @@ def terrain_category(self) -> TerrainCategoryOption: """Terrain Category Specify the terrain category type for the Erceg model - """ + """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -115,7 +119,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -126,7 +130,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -137,7 +141,7 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -150,10 +154,10 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -164,7 +168,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -174,7 +178,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -184,7 +188,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -195,7 +199,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -205,7 +209,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -216,7 +220,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -227,7 +231,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -237,7 +241,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -247,7 +251,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -257,5 +261,4 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py index 60051e9735a..8f680218be6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyFilter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,16 +51,16 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -73,10 +77,10 @@ def type(self) -> TypeOption: Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -86,7 +90,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def stop_band_attenuation(self) -> float: @@ -96,7 +100,7 @@ def stop_band_attenuation(self) -> float: Value should be less than 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @property def max_pass_band(self) -> float: @@ -107,7 +111,7 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_stop_band(self) -> float: @@ -118,7 +122,7 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def max_stop_band(self) -> float: @@ -129,7 +133,7 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_pass_band(self) -> float: @@ -140,7 +144,7 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -151,7 +155,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -162,7 +166,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -173,7 +177,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -184,73 +188,73 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff Lower cutoff frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band Lower stop band frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band Higher stop band frequency Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff Higher cutoff frequency Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency Lowest tuned frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lowest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency Highest tuned frequency Value should be between 1 and 1e+11. """ val = self._get_property("Highest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def percent_bandwidth(self) -> float: @@ -260,7 +264,7 @@ def percent_bandwidth(self) -> float: Value should be between 0.001 and 100. """ val = self._get_property("Percent Bandwidth") - return val # type: ignore + return val # type: ignore @property def shape_factor(self) -> float: @@ -270,14 +274,13 @@ def shape_factor(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py index 7fce3e2870c..897e90ef93f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,25 +46,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -80,16 +84,16 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): URBAN_MICROCELL = "Urban Microcell" @@ -101,10 +105,10 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment for the 5G channel model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def los(self) -> bool: @@ -114,7 +118,7 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return val # type: ignore + return val # type: ignore @property def include_bpl(self) -> bool: @@ -124,7 +128,7 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return val # type: ignore + return val # type: ignore class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -135,10 +139,10 @@ def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model Specify the NYU Building Penetration Loss model - """ + """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -149,7 +153,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -160,7 +164,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -171,7 +175,7 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -184,10 +188,10 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -198,7 +202,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -208,7 +212,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -218,7 +222,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -229,7 +233,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -239,7 +243,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -250,7 +254,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -261,7 +265,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -271,7 +275,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -281,7 +285,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -291,5 +295,4 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py index b6e18dbde04..5890d0083ad 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,25 +46,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -80,16 +84,16 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): LARGE_CITY = "Large City" @@ -102,10 +106,10 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Hata model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -116,7 +120,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -127,7 +131,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -138,7 +142,7 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -151,10 +155,10 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -165,7 +169,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -175,7 +179,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -185,7 +189,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -196,7 +200,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -206,7 +210,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -217,7 +221,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -228,7 +232,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -238,7 +242,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -248,7 +252,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -258,5 +262,4 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py index 1fa4eb2f659..15e30c95dc5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,13 +40,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Power Loss Coefficient: + "Power Loss Coefficient: Value should be between 0 and 100. - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): Value should be between 0 and 1000. """ return self._get_table_data() @@ -55,25 +59,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -83,7 +87,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -93,16 +97,16 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class BuildingTypeOption(Enum): RESIDENTIAL_APARTMENT = "Residential Apartment" @@ -116,10 +120,10 @@ def building_type(self) -> BuildingTypeOption: """Building Type Specify the building type for the Indoor Propagation model - """ + """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def number_of_floors(self) -> int: @@ -129,7 +133,7 @@ def number_of_floors(self) -> int: Value should be between 1 and 3. """ val = self._get_property("Number of Floors") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -140,7 +144,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -151,7 +155,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -162,7 +166,7 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -175,10 +179,10 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -189,7 +193,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -199,7 +203,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -209,7 +213,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -220,7 +224,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -230,7 +234,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -241,7 +245,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -252,7 +256,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -262,7 +266,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -272,7 +276,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -282,5 +286,4 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py index 4c983ef315b..93fc1dcd2a2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyIsolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,16 +51,16 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -68,10 +72,10 @@ def type(self) -> TypeOption: Type of isolator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -82,10 +86,10 @@ def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the isolator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -95,7 +99,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_reverse_isolation(self) -> bool: @@ -106,7 +110,7 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -116,7 +120,7 @@ def reverse_isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -127,7 +131,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -137,7 +141,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -148,7 +152,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -159,7 +163,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -170,7 +174,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -181,14 +185,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py index 85edfbc8aee..54e73cb2a62 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,25 +46,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -80,16 +84,16 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): FREE_SPACE = "Free Space" @@ -105,10 +109,10 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Log Distance model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def path_loss_exponent(self) -> float: @@ -118,7 +122,7 @@ def path_loss_exponent(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Path Loss Exponent") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -129,7 +133,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -140,7 +144,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -151,7 +155,7 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -164,10 +168,10 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -178,7 +182,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -188,7 +192,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -198,7 +202,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -209,7 +213,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -219,7 +223,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -230,7 +234,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -241,7 +245,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -251,7 +255,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -261,7 +265,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -271,5 +275,4 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py index a208505e530..e659cfe8fa5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyMultiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,16 +51,16 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_PASS_BAND = "By Pass Band" @@ -69,10 +73,10 @@ def type(self) -> TypeOption: simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band) - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -83,10 +87,10 @@ def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the multiplexer. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @property def flip_ports_vertically(self) -> bool: @@ -96,7 +100,7 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return val # type: ignore + return val # type: ignore @property def ports(self): @@ -104,16 +108,15 @@ def ports(self): Assigns the child port nodes to the multiplexers ports "A list of values." - """ + """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py index 2b20afb8430..dfb228dc918 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -47,10 +51,10 @@ def type(self) -> TypeOption: file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @property def filename(self) -> str: @@ -60,7 +64,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -70,7 +74,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def stop_band_attenuation(self) -> float: @@ -80,7 +84,7 @@ def stop_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @property def max_pass_band(self) -> float: @@ -91,7 +95,7 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_stop_band(self) -> float: @@ -102,7 +106,7 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def max_stop_band(self) -> float: @@ -113,7 +117,7 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_pass_band(self) -> float: @@ -124,7 +128,7 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -135,7 +139,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -146,7 +150,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -157,7 +161,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -168,14 +172,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py index 2cff7d2e740..dfdeed59aa7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyPowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,16 +51,16 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -69,10 +73,10 @@ def type(self) -> TypeOption: Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric) - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class OrientationOption(Enum): DIVIDER = "Divider" @@ -83,10 +87,10 @@ def orientation(self) -> OrientationOption: """Orientation Defines the orientation of the Power Divider. - """ + """ val = self._get_property("Orientation") val = self.OrientationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss_above_ideal(self) -> float: @@ -97,7 +101,7 @@ def insertion_loss_above_ideal(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss Above Ideal") - return val # type: ignore + return val # type: ignore @property def finite_isolation(self) -> bool: @@ -108,7 +112,7 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @property def isolation(self) -> float: @@ -118,7 +122,7 @@ def isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -129,7 +133,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -139,7 +143,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -150,7 +154,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -161,7 +165,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -172,7 +176,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -183,14 +187,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py index c3fb677e815..76e33bc985d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,25 +46,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -80,16 +84,16 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -100,7 +104,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -111,7 +115,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -122,7 +126,7 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -135,10 +139,10 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -149,7 +153,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -159,7 +163,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -169,7 +173,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -180,7 +184,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -190,7 +194,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -201,7 +205,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -212,7 +216,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -222,7 +226,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -232,7 +236,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -242,5 +246,4 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py index b2ae26c0433..b1680c73f46 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,11 +38,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Name: - "Type: - """ + "Name: + "Type: + """ return self._get_table_data() @property @@ -47,7 +50,6 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py index ca2069d37de..2ca57818744 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -43,7 +46,7 @@ def enable_passive_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Passive Noise") - return val # type: ignore + return val # type: ignore @property def enforce_thermal_noise_floor(self) -> bool: @@ -54,5 +57,4 @@ def enforce_thermal_noise_floor(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enforce Thermal Noise Floor") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py index 1b6c7487d2e..7c064453864 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,7 +46,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -52,17 +56,17 @@ def source_file(self) -> str: Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def receive_frequency(self) -> float: """Receive Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class MeasurementModeOption(Enum): AUDIO_SINAD = "Audio SINAD" @@ -74,10 +78,10 @@ def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode Defines the mode for the receiver measurement - """ + """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] - return val # type: ignore + return val # type: ignore @property def sinad_threshold(self) -> float: @@ -87,7 +91,7 @@ def sinad_threshold(self) -> float: Value should be between 5 and 20. """ val = self._get_property("SINAD Threshold") - return val # type: ignore + return val # type: ignore @property def gps_cnr_threshold(self) -> float: @@ -97,7 +101,7 @@ def gps_cnr_threshold(self) -> float: Value should be between 15 and 30. """ val = self._get_property("GPS CNR Threshold") - return val # type: ignore + return val # type: ignore @property def ber_threshold(self) -> float: @@ -107,7 +111,7 @@ def ber_threshold(self) -> float: Value should be between -12 and -1. """ val = self._get_property("BER Threshold") - return val # type: ignore + return val # type: ignore @property def default_intended_power(self) -> bool: @@ -117,7 +121,7 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return val # type: ignore + return val # type: ignore @property def intended_signal_power(self) -> float: @@ -127,7 +131,7 @@ def intended_signal_power(self) -> float: Value should be between -140 and -50. """ val = self._get_property("Intended Signal Power") - return val # type: ignore + return val # type: ignore @property def freq_deviation(self) -> float: @@ -138,7 +142,7 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def modulation_depth(self) -> float: @@ -148,7 +152,7 @@ def modulation_depth(self) -> float: Value should be between 10 and 100. """ val = self._get_property("Modulation Depth") - return val # type: ignore + return val # type: ignore @property def measure_selectivity(self) -> bool: @@ -158,7 +162,7 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return val # type: ignore + return val # type: ignore @property def measure_mixer_products(self) -> bool: @@ -168,7 +172,7 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return val # type: ignore + return val # type: ignore @property def max_rf_order(self) -> int: @@ -178,7 +182,7 @@ def max_rf_order(self) -> int: Value should be greater than 1. """ val = self._get_property("Max RF Order") - return val # type: ignore + return val # type: ignore @property def max_lo_order(self) -> int: @@ -188,7 +192,7 @@ def max_lo_order(self) -> int: Value should be greater than 1. """ val = self._get_property("Max LO Order") - return val # type: ignore + return val # type: ignore @property def include_if(self) -> bool: @@ -198,7 +202,7 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return val # type: ignore + return val # type: ignore @property def measure_saturation(self) -> bool: @@ -208,7 +212,7 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -218,7 +222,7 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -229,7 +233,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -240,7 +244,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def samples(self) -> int: @@ -250,7 +254,7 @@ def samples(self) -> int: Value should be between 2 and 100. """ val = self._get_property("Samples") - return val # type: ignore + return val # type: ignore @property def exclude_mixer_products_below_noise(self) -> bool: @@ -260,5 +264,4 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py index 91760a0a914..ee82c42f0b4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,10 +48,10 @@ def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper Taper for setting amplitude of mixer products - """ + """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] - return val # type: ignore + return val # type: ignore @property def mixer_product_susceptibility(self) -> float: @@ -57,7 +61,7 @@ def mixer_product_susceptibility(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Mixer Product Susceptibility") - return val # type: ignore + return val # type: ignore @property def spurious_rejection(self) -> float: @@ -67,7 +71,7 @@ def spurious_rejection(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Spurious Rejection") - return val # type: ignore + return val # type: ignore @property def minimum_tuning_frequency(self) -> float: @@ -78,7 +82,7 @@ def minimum_tuning_frequency(self) -> float: """ val = self._get_property("Minimum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def maximum_tuning_frequency(self) -> float: @@ -89,7 +93,7 @@ def maximum_tuning_frequency(self) -> float: """ val = self._get_property("Maximum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def mixer_product_slope(self) -> float: @@ -100,7 +104,7 @@ def mixer_product_slope(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Mixer Product Slope") - return val # type: ignore + return val # type: ignore @property def mixer_product_intercept(self) -> float: @@ -110,7 +114,7 @@ def mixer_product_intercept(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Mixer Product Intercept") - return val # type: ignore + return val # type: ignore @property def bandwidth_80_db(self) -> float: @@ -122,7 +126,7 @@ def bandwidth_80_db(self) -> float: """ val = self._get_property("Bandwidth 80 dB") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def image_rejection(self) -> float: @@ -132,7 +136,7 @@ def image_rejection(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Image Rejection") - return val # type: ignore + return val # type: ignore @property def maximum_rf_harmonic_order(self) -> int: @@ -142,7 +146,7 @@ def maximum_rf_harmonic_order(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Maximum RF Harmonic Order") - return val # type: ignore + return val # type: ignore @property def maximum_lo_harmonic_order(self) -> int: @@ -152,7 +156,7 @@ def maximum_lo_harmonic_order(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Maximum LO Harmonic Order") - return val # type: ignore + return val # type: ignore class MixingModeOption(Enum): LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" @@ -164,10 +168,10 @@ def mixing_mode(self) -> MixingModeOption: """Mixing Mode Specifies whether the IF frequency is > or < RF channel frequency - """ + """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] - return val # type: ignore + return val # type: ignore @property def first_if_frequency(self): @@ -177,17 +181,17 @@ def first_if_frequency(self): Value should be a mathematical expression. """ val = self._get_property("First IF Frequency") - return val # type: ignore + return val # type: ignore @property def rf_transition_frequency(self) -> float: """RF Transition Frequency RF Frequency Transition point - """ + """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class UseHighLOOption(Enum): ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" @@ -198,10 +202,10 @@ def use_high_lo(self) -> UseHighLOOption: """Use High LO Use High LO above/below the transition frequency - """ + """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] - return val # type: ignore + return val # type: ignore class MixerProductTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -212,8 +216,7 @@ def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units Specifies the units for the Mixer Products - """ + """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py index 82324948947..ab6a6613919 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -32,4 +35,3 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py index f2370826986..c11f8015104 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,5 +45,4 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py index 6613aa9125f..b96fc2dcaf8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,13 +40,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -56,8 +60,7 @@ def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py index 844f5931853..4eac4c17966 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -45,20 +49,20 @@ def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units Units to use for the Rx Sensitivity - """ + """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] - return val # type: ignore + return val # type: ignore @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr Received signal power level at the Rx's antenna terminal Value should be between -1000 and 1000. """ val = self._get_property("Min. Receive Signal Pwr ") - return val # type: ignore + return val # type: ignore @property def snr_at_rx_signal_pwr(self) -> float: @@ -69,7 +73,7 @@ def snr_at_rx_signal_pwr(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("SNR at Rx Signal Pwr") - return val # type: ignore + return val # type: ignore @property def processing_gain(self) -> float: @@ -79,7 +83,7 @@ def processing_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Processing Gain") - return val # type: ignore + return val # type: ignore @property def apply_pg_to_narrowband_only(self) -> bool: @@ -90,7 +94,7 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return val # type: ignore + return val # type: ignore @property def saturation_level(self) -> float: @@ -101,7 +105,7 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def rx_noise_figure(self) -> float: @@ -111,28 +115,28 @@ def rx_noise_figure(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rx Noise Figure") - return val # type: ignore + return val # type: ignore @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity Rx minimum sensitivity level (dBm) Value should be between -1000 and 1000. """ val = self._get_property("Receiver Sensitivity ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity SNR or SINAD at the specified sensitivity level Value should be between -1000 and 1000. """ val = self._get_property("SNR/SINAD at Sensitivity ") - return val # type: ignore + return val # type: ignore @property def perform_rx_intermod_analysis(self) -> bool: @@ -142,7 +146,7 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -153,18 +157,18 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Rx's 1 dB Compression Point - total power > P1dB saturates the receiver Value should be between -1000 and 1000. """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -175,7 +179,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -185,5 +189,4 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py index 80dd13ec8b0..c873ef6c625 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlySamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,11 +40,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Min: + "Min: Value should be greater than 1. - "Max: + "Max: Value should be greater than 1. """ return self._get_table_data() @@ -55,10 +59,10 @@ def sampling_type(self) -> SamplingTypeOption: """Sampling Type Sampling to apply to this configuration - """ + """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def specify_percentage(self) -> bool: @@ -69,7 +73,7 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return val # type: ignore + return val # type: ignore @property def percentage_of_channels(self) -> float: @@ -79,7 +83,7 @@ def percentage_of_channels(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Percentage of Channels") - return val # type: ignore + return val # type: ignore @property def max__channelsrangeband(self) -> int: @@ -89,7 +93,7 @@ def max__channelsrangeband(self) -> int: Value should be between 1 and 100000. """ val = self._get_property("Max # Channels/Range/Band") - return val # type: ignore + return val # type: ignore @property def seed(self) -> int: @@ -99,7 +103,7 @@ def seed(self) -> int: Value should be greater than 0. """ val = self._get_property("Seed") - return val # type: ignore + return val # type: ignore @property def total_tx_channels(self) -> int: @@ -107,9 +111,9 @@ def total_tx_channels(self) -> int: Total number of transmit channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Tx Channels") - return val # type: ignore + return val # type: ignore @property def total_rx_channels(self) -> int: @@ -117,16 +121,15 @@ def total_rx_channels(self) -> int: Total number of receive channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Rx Channels") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py index 8c83f3d7523..193d4be3bfc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlySceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -43,7 +47,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @property def position(self): @@ -53,7 +57,7 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): @@ -63,7 +67,7 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -74,10 +78,10 @@ def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @property def orientation(self): @@ -87,7 +91,7 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): @@ -97,7 +101,7 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def show_axes(self) -> bool: @@ -107,7 +111,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @property def box_color(self): @@ -117,14 +121,13 @@ def box_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Box Color") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py index ccb9043c10a..69761e3dac5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,7 +45,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -52,7 +55,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -62,14 +65,13 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py index f0162cbac27..3ac2ce7fd8f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlySolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,5 +45,4 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py index d8c06a05afc..d309d41cc95 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,16 +51,16 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TxPortOption(Enum): PORT_1 = "Port 1" @@ -67,10 +71,10 @@ def tx_port(self) -> TxPortOption: """Tx Port Specifies which port on the TR Switch is part of the Tx path. - """ + """ val = self._get_property("Tx Port") val = self.TxPortOption[val] - return val # type: ignore + return val # type: ignore class CommonPortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -81,10 +85,10 @@ def common_port_location(self) -> CommonPortLocationOption: """Common Port Location Defines the orientation of the tr switch. - """ + """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -94,7 +98,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_isolation(self) -> bool: @@ -105,7 +109,7 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @property def isolation(self) -> float: @@ -115,7 +119,7 @@ def isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -126,7 +130,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -136,7 +140,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -147,7 +151,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -158,7 +162,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -169,7 +173,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -180,5 +184,4 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py index 2488ab99838..ab17aed6831 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTerminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,16 +51,16 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): BY_FILE = "By File" @@ -68,10 +72,10 @@ def type(self) -> TypeOption: Type of terminator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class PortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -82,10 +86,10 @@ def port_location(self) -> PortLocationOption: """Port Location Defines the orientation of the terminator. - """ + """ val = self._get_property("Port Location") val = self.PortLocationOption[val] - return val # type: ignore + return val # type: ignore @property def vswr(self) -> float: @@ -97,14 +101,13 @@ def vswr(self) -> float: Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py index 40ce5119d27..bbb8270e2aa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +44,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -51,7 +54,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -61,16 +64,16 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def filename(self) -> str: @@ -80,16 +83,16 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File Coupling data generated by Savant and exported as a matched file - """ + """ val = self._get_property("Savant Matched Coupling File") - return val # type: ignore + return val # type: ignore @property def enable_em_isolation(self) -> bool: @@ -99,7 +102,7 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return val # type: ignore + return val # type: ignore @property def port_antenna_assignment(self): @@ -107,16 +110,15 @@ def port_antenna_assignment(self): Maps each port in the coupling file to an antenna in the project "A list of values." - """ + """ val = self._get_property("Port-Antenna Assignment") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py index f9e38f02e4a..21850da600c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,25 +46,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -80,16 +84,16 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def ground_reflection_coeff(self) -> float: @@ -99,7 +103,7 @@ def ground_reflection_coeff(self) -> float: Value should be between -100 and 100. """ val = self._get_property("Ground Reflection Coeff.") - return val # type: ignore + return val # type: ignore @property def pointspeak(self) -> int: @@ -109,7 +113,7 @@ def pointspeak(self) -> int: Value should be between 3 and 100. """ val = self._get_property("Points/Peak") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -120,7 +124,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -131,7 +135,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -142,7 +146,7 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -155,10 +159,10 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -169,7 +173,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -179,7 +183,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -189,7 +193,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -200,7 +204,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -210,7 +214,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -221,7 +225,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -232,7 +236,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -242,7 +246,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -252,7 +256,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -262,5 +266,4 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py index e8c77ca5b2f..431082062af 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,9 +42,9 @@ def parent(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): Value should be between -200 and 150. """ return self._get_table_data() @@ -56,10 +60,10 @@ def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior Specifies the behavior of the parametric noise profile - """ + """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] - return val # type: ignore + return val # type: ignore @property def use_log_linear_interpolation(self) -> bool: @@ -70,5 +74,4 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py index ac3c0668b0e..56bc60f961f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -43,8 +47,7 @@ def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units Specifies the units for the Harmonics - """ + """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py index 8614bf2c4c5..1b8dda0f8d3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyTxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +44,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -51,17 +54,17 @@ def source_file(self) -> str: Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def transmit_frequency(self) -> float: """Transmit Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -71,7 +74,7 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -82,7 +85,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -93,7 +96,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def exclude_harmonics_below_noise(self) -> bool: @@ -103,5 +106,4 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py index 618c420bd0c..79800f243e9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -43,18 +47,17 @@ def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior Specifies the behavior of the parametric narrowband emissions mask - """ + """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] - return val # type: ignore + return val # type: ignore @property def measurement_frequency(self) -> float: """Measurement Frequency Measurement frequency for the absolute freq/amp pairs. - """ + """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py index da2c3b9bd01..717c67aaf89 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyTxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,10 +41,10 @@ def output_voltage_peak(self) -> float: """Output Voltage Peak Output High Voltage Level: maximum voltage of the digital signal - """ + """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") - return val # type: ignore + return val # type: ignore @property def include_phase_noise(self) -> bool: @@ -51,7 +54,7 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @property def tx_broadband_noise(self) -> float: @@ -61,7 +64,7 @@ def tx_broadband_noise(self) -> float: Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @property def perform_tx_intermod_analysis(self) -> bool: @@ -71,7 +74,7 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @property def internal_amp_gain(self) -> float: @@ -81,7 +84,7 @@ def internal_amp_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: @@ -91,7 +94,7 @@ def noise_figure(self) -> float: Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -102,11 +105,11 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -114,7 +117,7 @@ def p1_db_point_ref_input_(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -125,7 +128,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -135,7 +138,7 @@ def reverse_isolation(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -145,5 +148,4 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py index e44943a4dd8..b2797980b1f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -43,10 +47,10 @@ def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type Specifies EMI Margins to calculate - """ + """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] - return val # type: ignore + return val # type: ignore class TxPowerOption(Enum): PEAK_POWER = "Peak Power" @@ -57,10 +61,10 @@ def tx_power(self) -> TxPowerOption: """Tx Power Method used to specify the power - """ + """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] - return val # type: ignore + return val # type: ignore @property def peak_power(self) -> float: @@ -71,7 +75,7 @@ def peak_power(self) -> float: """ val = self._get_property("Peak Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def average_power(self) -> float: @@ -82,7 +86,7 @@ def average_power(self) -> float: """ val = self._get_property("Average Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def include_phase_noise(self) -> bool: @@ -92,7 +96,7 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @property def tx_broadband_noise(self) -> float: @@ -102,7 +106,7 @@ def tx_broadband_noise(self) -> float: Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore class HarmonicTaperOption(Enum): CONSTANT = "Constant" @@ -115,10 +119,10 @@ def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper Taper type used to set amplitude of harmonics - """ + """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] - return val # type: ignore + return val # type: ignore @property def harmonic_amplitude(self) -> float: @@ -128,7 +132,7 @@ def harmonic_amplitude(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Amplitude") - return val # type: ignore + return val # type: ignore @property def harmonic_slope(self) -> float: @@ -138,7 +142,7 @@ def harmonic_slope(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Slope") - return val # type: ignore + return val # type: ignore @property def harmonic_intercept(self) -> float: @@ -148,7 +152,7 @@ def harmonic_intercept(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Intercept") - return val # type: ignore + return val # type: ignore @property def enable_harmonic_bw_expansion(self) -> bool: @@ -159,7 +163,7 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return val # type: ignore + return val # type: ignore @property def number_of_harmonics(self) -> int: @@ -169,7 +173,7 @@ def number_of_harmonics(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Number of Harmonics") - return val # type: ignore + return val # type: ignore @property def second_harmonic_level(self) -> float: @@ -179,7 +183,7 @@ def second_harmonic_level(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Second Harmonic Level") - return val # type: ignore + return val # type: ignore @property def third_harmonic_level(self) -> float: @@ -189,7 +193,7 @@ def third_harmonic_level(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Third Harmonic Level") - return val # type: ignore + return val # type: ignore @property def other_harmonic_levels(self) -> float: @@ -199,7 +203,7 @@ def other_harmonic_levels(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Other Harmonic Levels") - return val # type: ignore + return val # type: ignore @property def perform_tx_intermod_analysis(self) -> bool: @@ -209,7 +213,7 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @property def internal_amp_gain(self) -> float: @@ -219,7 +223,7 @@ def internal_amp_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: @@ -229,7 +233,7 @@ def noise_figure(self) -> float: Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -240,11 +244,11 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -252,7 +256,7 @@ def p1_db_point_ref_input_(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -263,7 +267,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -273,7 +277,7 @@ def reverse_isolation(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -283,5 +287,4 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py index 01a14c6f2f9..36f3d509176 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,13 +40,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -56,8 +60,7 @@ def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py index a5e4de31cf9..c2895d3e6f7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,25 +46,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -80,16 +84,16 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class PathLossTypeOption(Enum): LOS_URBAN_CANYON = "LOS (Urban Canyon)" @@ -100,10 +104,10 @@ def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type Specify LOS vs NLOS for the Walfisch-Ikegami model - """ + """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): DENSE_METRO = "Dense Metro" @@ -114,10 +118,10 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Walfisch model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def roof_height(self) -> float: @@ -128,7 +132,7 @@ def roof_height(self) -> float: """ val = self._get_property("Roof Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def distance_between_buildings(self) -> float: @@ -139,7 +143,7 @@ def distance_between_buildings(self) -> float: """ val = self._get_property("Distance Between Buildings") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def street_width(self) -> float: @@ -150,7 +154,7 @@ def street_width(self) -> float: """ val = self._get_property("Street Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def incidence_angle(self) -> float: @@ -160,7 +164,7 @@ def incidence_angle(self) -> float: Value should be between 0 and 90. """ val = self._get_property("Incidence Angle") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -171,7 +175,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -182,7 +186,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -193,7 +197,7 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): NONE = "None" @@ -206,10 +210,10 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -220,7 +224,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -230,7 +234,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -240,7 +244,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -251,7 +255,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -261,7 +265,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -272,7 +276,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -283,7 +287,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -293,7 +297,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -303,7 +307,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -313,5 +317,4 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py index a57eb95b267..dd351178519 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyWaveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,9 +43,9 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" @@ -55,10 +59,10 @@ def waveform(self) -> WaveformOption: """Waveform Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Waveform") val = self.WaveformOption[val] - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -69,7 +73,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -80,7 +84,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def channel_spacing(self) -> float: @@ -91,7 +95,7 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def clock_duty_cycle(self) -> float: @@ -101,7 +105,7 @@ def clock_duty_cycle(self) -> float: Value should be between 0.001 and 1. """ val = self._get_property("Clock Duty Cycle") - return val # type: ignore + return val # type: ignore @property def clock_risefall_time(self) -> float: @@ -112,7 +116,7 @@ def clock_risefall_time(self) -> float: """ val = self._get_property("Clock Rise/Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore class SpreadingTypeOption(Enum): LOW_SPREAD = "Low Spread" @@ -124,10 +128,10 @@ def spreading_type(self) -> SpreadingTypeOption: """Spreading Type Type of spreading employed by the Spread Spectrum Clock - """ + """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def spread_percentage(self) -> float: @@ -137,7 +141,7 @@ def spread_percentage(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Spread Percentage") - return val # type: ignore + return val # type: ignore @property def imported_spectrum(self) -> str: @@ -145,16 +149,16 @@ def imported_spectrum(self) -> str: Value should be a full file path. """ val = self._get_property("Imported Spectrum") - return val # type: ignore + return val # type: ignore @property def raw_data_format(self) -> str: """Raw Data Format Format of the imported raw data - """ + """ val = self._get_property("Raw Data Format") - return val # type: ignore + return val # type: ignore @property def system_impedance(self) -> float: @@ -165,7 +169,7 @@ def system_impedance(self) -> float: """ val = self._get_property("System Impedance") val = self._convert_from_internal_units(float(val), "Resistance") - return val # type: ignore + return val # type: ignore @property def advanced_extraction_params(self) -> bool: @@ -175,7 +179,7 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return val # type: ignore + return val # type: ignore @property def nb_window_size(self) -> float: @@ -186,7 +190,7 @@ def nb_window_size(self) -> float: Value should be greater than 3. """ val = self._get_property("NB Window Size") - return val # type: ignore + return val # type: ignore @property def bb_smoothing_factor(self) -> float: @@ -196,7 +200,7 @@ def bb_smoothing_factor(self) -> float: Value should be greater than 1. """ val = self._get_property("BB Smoothing Factor") - return val # type: ignore + return val # type: ignore @property def nb_detector_threshold(self) -> float: @@ -206,7 +210,7 @@ def nb_detector_threshold(self) -> float: Value should be between 2 and 10. """ val = self._get_property("NB Detector Threshold") - return val # type: ignore + return val # type: ignore class AlgorithmOption(Enum): FFT = "FFT" @@ -217,10 +221,10 @@ def algorithm(self) -> AlgorithmOption: """Algorithm Algorithm used to transform the imported time domain spectrum - """ + """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] - return val # type: ignore + return val # type: ignore @property def start_time(self) -> float: @@ -231,17 +235,17 @@ def start_time(self) -> float: """ val = self._get_property("Start Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def stop_time(self) -> float: """Stop Time Final time of the imported time domain spectrum - """ + """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def max_frequency(self) -> float: @@ -252,7 +256,7 @@ def max_frequency(self) -> float: """ val = self._get_property("Max Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" @@ -270,10 +274,10 @@ def window_type(self) -> WindowTypeOption: """Window Type Windowing scheme used for importing time domain spectrum - """ + """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] - return val # type: ignore + return val # type: ignore @property def kaiser_parameter(self) -> float: @@ -283,7 +287,7 @@ def kaiser_parameter(self) -> float: Value should be greater than 0. """ val = self._get_property("Kaiser Parameter") - return val # type: ignore + return val # type: ignore @property def adjust_coherent_gain(self) -> bool: @@ -293,7 +297,7 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return val # type: ignore + return val # type: ignore @property def data_rate(self) -> float: @@ -304,7 +308,7 @@ def data_rate(self) -> float: """ val = self._get_property("Data Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @property def num_of_bits(self) -> int: @@ -314,7 +318,7 @@ def num_of_bits(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Num of Bits") - return val # type: ignore + return val # type: ignore @property def use_envelope(self) -> bool: @@ -324,7 +328,7 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return val # type: ignore + return val # type: ignore @property def min_ptsnull(self) -> int: @@ -334,7 +338,7 @@ def min_ptsnull(self) -> int: Value should be between 2 and 50. """ val = self._get_property("Min Pts/Null") - return val # type: ignore + return val # type: ignore @property def delay_skew(self) -> float: @@ -345,5 +349,4 @@ def delay_skew(self) -> float: """ val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py index 83286e93af4..d1bdae04e39 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ResultPlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,15 +46,13 @@ def title(self) -> str: """Title Enter title at the top of the plot, room will be made for it - """ + """ val = self._get_property("Title") - return val # type: ignore + return val # type: ignore @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) @property def title_font(self): @@ -60,13 +62,11 @@ def title_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Title Font") - return val # type: ignore + return val # type: ignore @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -76,13 +76,11 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return val # type: ignore + return val # type: ignore @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) @property def legend_font(self): @@ -92,13 +90,11 @@ def legend_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Legend Font") - return val # type: ignore + return val # type: ignore @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) @property def show_emi_thresholds(self) -> bool: @@ -108,13 +104,11 @@ def show_emi_thresholds(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show EMI Thresholds") - return val # type: ignore + return val # type: ignore @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show EMI Thresholds={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show EMI Thresholds={value}"]) @property def display_cad_overlay(self) -> bool: @@ -124,13 +118,11 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return val # type: ignore + return val # type: ignore @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -140,28 +132,24 @@ def opacity(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Opacity") - return val # type: ignore + return val # type: ignore @opacity.setter - def opacity(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Opacity={value}"]) + def opacity(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset Adjust vertical position of CAD model overlay - """ + """ val = self._get_property("Vertical Offset") - return val # type: ignore + return val # type: ignore @vertical_offset.setter - def vertical_offset(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Offset={value}"]) + def vertical_offset(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -172,13 +160,11 @@ def range_axis_rotation(self) -> float: Value should be between -180 and 180. """ val = self._get_property("Range Axis Rotation") - return val # type: ignore + return val # type: ignore @range_axis_rotation.setter - def range_axis_rotation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -188,73 +174,63 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return val # type: ignore + return val # type: ignore @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min Set lower extent of horizontal axis - """ + """ val = self._get_property("X-axis Min") - return val # type: ignore + return val # type: ignore @x_axis_min.setter - def x_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Min={value}"]) + def x_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max Set upper extent of horizontal axis - """ + """ val = self._get_property("X-axis Max") - return val # type: ignore + return val # type: ignore @x_axis_max.setter - def x_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Max={value}"]) + def x_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min Set lower extent of vertical axis - """ + """ val = self._get_property("Y-axis Min") - return val # type: ignore + return val # type: ignore @y_axis_min.setter - def y_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Min={value}"]) + def y_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max Set upper extent of vertical axis - """ + """ val = self._get_property("Y-axis Max") - return val # type: ignore + return val # type: ignore @y_axis_max.setter - def y_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Max={value}"]) + def y_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -265,13 +241,11 @@ def y_axis_range(self) -> float: Value should be greater than 0. """ val = self._get_property("Y-axis Range") - return val # type: ignore + return val # type: ignore @y_axis_range.setter - def y_axis_range(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Range={value}"]) + def y_axis_range(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -281,13 +255,11 @@ def max_major_ticks_x(self) -> int: Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks X") - return val # type: ignore + return val # type: ignore @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -298,13 +270,11 @@ def max_minor_ticks_x(self) -> int: Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks X") - return val # type: ignore + return val # type: ignore @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -314,13 +284,11 @@ def max_major_ticks_y(self) -> int: Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks Y") - return val # type: ignore + return val # type: ignore @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -331,13 +299,11 @@ def max_minor_ticks_y(self) -> int: Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks Y") - return val # type: ignore + return val # type: ignore @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -347,13 +313,11 @@ def axis_label_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Label Font") - return val # type: ignore + return val # type: ignore @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -363,13 +327,11 @@ def axis_tick_label_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Tick Label Font") - return val # type: ignore + return val # type: ignore @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -384,16 +346,16 @@ def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style Select line style of major-tick grid lines - """ + """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] + ) @property def major_grid_color(self): @@ -403,13 +365,11 @@ def major_grid_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Major Grid Color") - return val # type: ignore + return val # type: ignore @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -424,16 +384,16 @@ def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style Select line style of minor-tick grid lines - """ + """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] + ) @property def minor_grid_color(self): @@ -443,13 +403,11 @@ def minor_grid_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Minor Grid Color") - return val # type: ignore + return val # type: ignore @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -459,13 +417,11 @@ def background_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -478,16 +434,16 @@ def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit Units to use for plotting broadband power densities - """ + """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] - return val # type: ignore + return val # type: ignore @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power for Plots Unit={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] + ) @property def bb_power_bandwidth(self) -> float: @@ -498,14 +454,12 @@ def bb_power_bandwidth(self) -> float: """ val = self._get_property("BB Power Bandwidth") val = self._convert_from_internal_units(float(val), "") - return val # type: ignore + return val # type: ignore @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value : float|str): + def bb_power_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -515,11 +469,8 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return val # type: ignore + return val # type: ignore @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Log Scale={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py index 53d5e33e1b7..127a9a75166 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class RfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -43,13 +46,11 @@ def enable_passive_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Passive Noise") - return val # type: ignore + return val # type: ignore @enable_passive_noise.setter def enable_passive_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Passive Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Passive Noise={value}"]) @property def enforce_thermal_noise_floor(self) -> bool: @@ -60,11 +61,10 @@ def enforce_thermal_noise_floor(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enforce Thermal Noise Floor") - return val # type: ignore + return val # type: ignore @enforce_thermal_noise_floor.setter def enforce_thermal_noise_floor(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enforce Thermal Noise Floor={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Enforce Thermal Noise Floor={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py index 4923f8e9298..13071d63e34 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,7 +54,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -60,17 +64,17 @@ def source_file(self) -> str: Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def receive_frequency(self) -> float: """Receive Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class MeasurementModeOption(Enum): AUDIO_SINAD = "Audio SINAD" @@ -82,16 +86,14 @@ def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode Defines the mode for the receiver measurement - """ + """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] - return val # type: ignore + return val # type: ignore @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Mode={value.value}"]) @property def sinad_threshold(self) -> float: @@ -101,13 +103,11 @@ def sinad_threshold(self) -> float: Value should be between 5 and 20. """ val = self._get_property("SINAD Threshold") - return val # type: ignore + return val # type: ignore @sinad_threshold.setter - def sinad_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SINAD Threshold={value}"]) + def sinad_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SINAD Threshold={value}"]) @property def gps_cnr_threshold(self) -> float: @@ -117,13 +117,11 @@ def gps_cnr_threshold(self) -> float: Value should be between 15 and 30. """ val = self._get_property("GPS CNR Threshold") - return val # type: ignore + return val # type: ignore @gps_cnr_threshold.setter - def gps_cnr_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"GPS CNR Threshold={value}"]) + def gps_cnr_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GPS CNR Threshold={value}"]) @property def ber_threshold(self) -> float: @@ -133,13 +131,11 @@ def ber_threshold(self) -> float: Value should be between -12 and -1. """ val = self._get_property("BER Threshold") - return val # type: ignore + return val # type: ignore @ber_threshold.setter - def ber_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BER Threshold={value}"]) + def ber_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BER Threshold={value}"]) @property def default_intended_power(self) -> bool: @@ -149,13 +145,11 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return val # type: ignore + return val # type: ignore @default_intended_power.setter def default_intended_power(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Default Intended Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Default Intended Power={value}"]) @property def intended_signal_power(self) -> float: @@ -165,13 +159,11 @@ def intended_signal_power(self) -> float: Value should be between -140 and -50. """ val = self._get_property("Intended Signal Power") - return val # type: ignore + return val # type: ignore @intended_signal_power.setter - def intended_signal_power(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Intended Signal Power={value}"]) + def intended_signal_power(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Intended Signal Power={value}"]) @property def freq_deviation(self) -> float: @@ -182,14 +174,12 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation.setter - def freq_deviation(self, value : float|str): + def freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) @property def modulation_depth(self) -> float: @@ -199,13 +189,11 @@ def modulation_depth(self) -> float: Value should be between 10 and 100. """ val = self._get_property("Modulation Depth") - return val # type: ignore + return val # type: ignore @modulation_depth.setter - def modulation_depth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation Depth={value}"]) + def modulation_depth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Depth={value}"]) @property def measure_selectivity(self) -> bool: @@ -215,13 +203,11 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return val # type: ignore + return val # type: ignore @measure_selectivity.setter def measure_selectivity(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Selectivity={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Selectivity={value}"]) @property def measure_mixer_products(self) -> bool: @@ -231,13 +217,11 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return val # type: ignore + return val # type: ignore @measure_mixer_products.setter def measure_mixer_products(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Mixer Products={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Mixer Products={value}"]) @property def max_rf_order(self) -> int: @@ -247,13 +231,11 @@ def max_rf_order(self) -> int: Value should be greater than 1. """ val = self._get_property("Max RF Order") - return val # type: ignore + return val # type: ignore @max_rf_order.setter def max_rf_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max RF Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max RF Order={value}"]) @property def max_lo_order(self) -> int: @@ -263,13 +245,11 @@ def max_lo_order(self) -> int: Value should be greater than 1. """ val = self._get_property("Max LO Order") - return val # type: ignore + return val # type: ignore @max_lo_order.setter def max_lo_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max LO Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max LO Order={value}"]) @property def include_if(self) -> bool: @@ -279,13 +259,11 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return val # type: ignore + return val # type: ignore @include_if.setter def include_if(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include IF={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include IF={value}"]) @property def measure_saturation(self) -> bool: @@ -295,13 +273,11 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return val # type: ignore + return val # type: ignore @measure_saturation.setter def measure_saturation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Saturation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Saturation={value}"]) @property def use_ams_limits(self) -> bool: @@ -311,13 +287,11 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -328,14 +302,12 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -346,14 +318,12 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def samples(self) -> int: @@ -363,13 +333,11 @@ def samples(self) -> int: Value should be between 2 and 100. """ val = self._get_property("Samples") - return val # type: ignore + return val # type: ignore @samples.setter def samples(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Samples={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Samples={value}"]) @property def exclude_mixer_products_below_noise(self) -> bool: @@ -379,20 +347,19 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return val # type: ignore + return val # type: ignore @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Exclude Mixer Products Below Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Exclude Mixer Products Below Noise={value}"] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py index ccd0c19addb..339dd63285c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -45,7 +49,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -61,16 +65,16 @@ def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper Taper for setting amplitude of mixer products - """ + """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] - return val # type: ignore + return val # type: ignore @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Taper={value.value}"] + ) @property def mixer_product_susceptibility(self) -> float: @@ -80,13 +84,13 @@ def mixer_product_susceptibility(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Mixer Product Susceptibility") - return val # type: ignore + return val # type: ignore @mixer_product_susceptibility.setter - def mixer_product_susceptibility(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Susceptibility={value}"]) + def mixer_product_susceptibility(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Susceptibility={value}"] + ) @property def spurious_rejection(self) -> float: @@ -96,13 +100,11 @@ def spurious_rejection(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Spurious Rejection") - return val # type: ignore + return val # type: ignore @spurious_rejection.setter - def spurious_rejection(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spurious Rejection={value}"]) + def spurious_rejection(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spurious Rejection={value}"]) @property def minimum_tuning_frequency(self) -> float: @@ -113,14 +115,12 @@ def minimum_tuning_frequency(self) -> float: """ val = self._get_property("Minimum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value : float|str): + def minimum_tuning_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minimum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Tuning Frequency={value}"]) @property def maximum_tuning_frequency(self) -> float: @@ -131,14 +131,12 @@ def maximum_tuning_frequency(self) -> float: """ val = self._get_property("Maximum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value : float|str): + def maximum_tuning_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum Tuning Frequency={value}"]) @property def mixer_product_slope(self) -> float: @@ -149,13 +147,11 @@ def mixer_product_slope(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Mixer Product Slope") - return val # type: ignore + return val # type: ignore @mixer_product_slope.setter - def mixer_product_slope(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Slope={value}"]) + def mixer_product_slope(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Slope={value}"]) @property def mixer_product_intercept(self) -> float: @@ -165,13 +161,11 @@ def mixer_product_intercept(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Mixer Product Intercept") - return val # type: ignore + return val # type: ignore @mixer_product_intercept.setter - def mixer_product_intercept(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Intercept={value}"]) + def mixer_product_intercept(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Intercept={value}"]) @property def bandwidth_80_db(self) -> float: @@ -183,14 +177,12 @@ def bandwidth_80_db(self) -> float: """ val = self._get_property("Bandwidth 80 dB") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_80_db.setter - def bandwidth_80_db(self, value : float|str): + def bandwidth_80_db(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 80 dB={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 80 dB={value}"]) @property def image_rejection(self) -> float: @@ -200,13 +192,11 @@ def image_rejection(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Image Rejection") - return val # type: ignore + return val # type: ignore @image_rejection.setter - def image_rejection(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Image Rejection={value}"]) + def image_rejection(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Image Rejection={value}"]) @property def maximum_rf_harmonic_order(self) -> int: @@ -216,13 +206,13 @@ def maximum_rf_harmonic_order(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Maximum RF Harmonic Order") - return val # type: ignore + return val # type: ignore @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum RF Harmonic Order={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Maximum RF Harmonic Order={value}"] + ) @property def maximum_lo_harmonic_order(self) -> int: @@ -232,13 +222,13 @@ def maximum_lo_harmonic_order(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Maximum LO Harmonic Order") - return val # type: ignore + return val # type: ignore @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum LO Harmonic Order={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Maximum LO Harmonic Order={value}"] + ) class MixingModeOption(Enum): LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" @@ -250,16 +240,14 @@ def mixing_mode(self) -> MixingModeOption: """Mixing Mode Specifies whether the IF frequency is > or < RF channel frequency - """ + """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] - return val # type: ignore + return val # type: ignore @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixing Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixing Mode={value.value}"]) @property def first_if_frequency(self): @@ -269,30 +257,26 @@ def first_if_frequency(self): Value should be a mathematical expression. """ val = self._get_property("First IF Frequency") - return val # type: ignore + return val # type: ignore @first_if_frequency.setter def first_if_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First IF Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First IF Frequency={value}"]) @property def rf_transition_frequency(self) -> float: """RF Transition Frequency RF Frequency Transition point - """ + """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @rf_transition_frequency.setter - def rf_transition_frequency(self, value : float|str): + def rf_transition_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"RF Transition Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"RF Transition Frequency={value}"]) class UseHighLOOption(Enum): ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" @@ -303,16 +287,14 @@ def use_high_lo(self) -> UseHighLOOption: """Use High LO Use High LO above/below the transition frequency - """ + """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] - return val # type: ignore + return val # type: ignore @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use High LO={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use High LO={value.value}"]) class MixerProductTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -323,14 +305,13 @@ def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units Specifies the units for the Mixer Products - """ + """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Table Units={value.value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py index d425bb22dc3..517ac9e5fa1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class RxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,9 +47,8 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py index 8545b2a6b4a..b15d9e67755 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class RxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,7 +47,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -59,11 +62,8 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return val # type: ignore + return val # type: ignore @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Arithmetic Mean={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Arithmetic Mean={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py index 94486ab6575..5381e9e5140 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,13 +48,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -62,7 +66,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -77,14 +81,11 @@ def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spur Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py index 62b89d9f15a..c28ae1e38aa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -54,32 +58,28 @@ def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units Units to use for the Rx Sensitivity - """ + """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] - return val # type: ignore + return val # type: ignore @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sensitivity Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sensitivity Units={value.value}"]) @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr Received signal power level at the Rx's antenna terminal Value should be between -1000 and 1000. """ val = self._get_property("Min. Receive Signal Pwr ") - return val # type: ignore + return val # type: ignore @min_receive_signal_pwr_.setter - def min_receive_signal_pwr_(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min. Receive Signal Pwr ={value}"]) + def min_receive_signal_pwr_(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min. Receive Signal Pwr ={value}"]) @property def snr_at_rx_signal_pwr(self) -> float: @@ -90,13 +90,11 @@ def snr_at_rx_signal_pwr(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("SNR at Rx Signal Pwr") - return val # type: ignore + return val # type: ignore @snr_at_rx_signal_pwr.setter - def snr_at_rx_signal_pwr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SNR at Rx Signal Pwr={value}"]) + def snr_at_rx_signal_pwr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR at Rx Signal Pwr={value}"]) @property def processing_gain(self) -> float: @@ -106,13 +104,11 @@ def processing_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Processing Gain") - return val # type: ignore + return val # type: ignore @processing_gain.setter - def processing_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Processing Gain={value}"]) + def processing_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Processing Gain={value}"]) @property def apply_pg_to_narrowband_only(self) -> bool: @@ -123,13 +119,13 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return val # type: ignore + return val # type: ignore @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Apply PG to Narrowband Only={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Apply PG to Narrowband Only={value}"] + ) @property def saturation_level(self) -> float: @@ -140,14 +136,12 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @saturation_level.setter - def saturation_level(self, value : float|str): + def saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) @property def rx_noise_figure(self) -> float: @@ -157,47 +151,43 @@ def rx_noise_figure(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rx Noise Figure") - return val # type: ignore + return val # type: ignore @rx_noise_figure.setter - def rx_noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rx Noise Figure={value}"]) + def rx_noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rx Noise Figure={value}"]) @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity Rx minimum sensitivity level (dBm) Value should be between -1000 and 1000. """ val = self._get_property("Receiver Sensitivity ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @receiver_sensitivity_.setter - def receiver_sensitivity_(self, value : float|str): + def receiver_sensitivity_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Receiver Sensitivity ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver Sensitivity ={value}"]) @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity SNR or SINAD at the specified sensitivity level Value should be between -1000 and 1000. """ val = self._get_property("SNR/SINAD at Sensitivity ") - return val # type: ignore + return val # type: ignore @snrsinad_at_sensitivity_.setter - def snrsinad_at_sensitivity_(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SNR/SINAD at Sensitivity ={value}"]) + def snrsinad_at_sensitivity_(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"SNR/SINAD at Sensitivity ={value}"] + ) @property def perform_rx_intermod_analysis(self) -> bool: @@ -207,13 +197,13 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return val # type: ignore + return val # type: ignore @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Rx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Rx Intermod Analysis={value}"] + ) @property def amplifier_saturation_level(self) -> float: @@ -224,32 +214,30 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Rx's 1 dB Compression Point - total power > P1dB saturates the receiver Value should be between -1000 and 1000. """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -260,14 +248,12 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def max_intermod_order(self) -> int: @@ -277,11 +263,8 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py index 571402801e3..47d8f0342dd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,11 +40,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Min: + "Min: Value should be greater than 1. - "Max: + "Max: Value should be greater than 1. """ return self._get_table_data() @@ -59,16 +63,14 @@ def sampling_type(self) -> SamplingTypeOption: """Sampling Type Sampling to apply to this configuration - """ + """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] - return val # type: ignore + return val # type: ignore @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sampling Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sampling Type={value.value}"]) @property def specify_percentage(self) -> bool: @@ -79,13 +81,11 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return val # type: ignore + return val # type: ignore @specify_percentage.setter def specify_percentage(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Specify Percentage={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Specify Percentage={value}"]) @property def percentage_of_channels(self) -> float: @@ -95,13 +95,11 @@ def percentage_of_channels(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Percentage of Channels") - return val # type: ignore + return val # type: ignore @percentage_of_channels.setter - def percentage_of_channels(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Percentage of Channels={value}"]) + def percentage_of_channels(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percentage of Channels={value}"]) @property def max__channelsrangeband(self) -> int: @@ -111,13 +109,13 @@ def max__channelsrangeband(self) -> int: Value should be between 1 and 100000. """ val = self._get_property("Max # Channels/Range/Band") - return val # type: ignore + return val # type: ignore @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max # Channels/Range/Band={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Max # Channels/Range/Band={value}"] + ) @property def seed(self) -> int: @@ -127,13 +125,11 @@ def seed(self) -> int: Value should be greater than 0. """ val = self._get_property("Seed") - return val # type: ignore + return val # type: ignore @seed.setter def seed(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Seed={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Seed={value}"]) @property def total_tx_channels(self) -> int: @@ -141,9 +137,9 @@ def total_tx_channels(self) -> int: Total number of transmit channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Tx Channels") - return val # type: ignore + return val # type: ignore @property def total_rx_channels(self) -> int: @@ -151,16 +147,15 @@ def total_rx_channels(self) -> int: Total number of receive channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Rx Channels") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py index bb32664351d..0692149e4be 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -59,13 +63,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -75,13 +79,11 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -91,13 +93,11 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -108,16 +108,14 @@ def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -127,13 +125,11 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -143,13 +139,11 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def show_axes(self) -> bool: @@ -159,13 +153,11 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def box_color(self): @@ -175,26 +167,21 @@ def box_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Box Color") - return val # type: ignore + return val # type: ignore @box_color.setter def box_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Box Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Box Color={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py index f3ae18ed88b..e523f065c1a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SelectivityTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,15 +56,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -70,13 +72,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -86,28 +86,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -122,16 +118,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -141,13 +135,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -157,13 +149,11 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -187,16 +177,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -206,13 +194,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -222,13 +208,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -238,13 +222,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -255,11 +237,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py index 9969d3ab69b..4d58635f57b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class SolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,13 +45,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -58,13 +59,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -74,26 +73,21 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py index b73617918b3..db51fb270a8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class SolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,11 +45,8 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py index 5478db804f2..e1371a85646 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SpurTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -51,15 +55,13 @@ def channel_frequency(self): """Channel Frequency Select band channel frequency to display - """ + """ val = self._get_property("Channel Frequency") - return val # type: ignore + return val # type: ignore @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: @@ -67,10 +69,10 @@ def transmit_frequency(self) -> float: The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset) - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def data_source(self): @@ -78,15 +80,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,13 +96,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -112,28 +110,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -148,16 +142,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -167,13 +159,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -183,13 +173,11 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -213,16 +201,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -232,13 +218,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -248,13 +232,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -264,13 +246,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -281,11 +261,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py index 60baf307e01..caccceba099 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TRSwitchTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -70,13 +72,11 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -84,15 +84,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -102,13 +100,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -118,28 +114,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -154,16 +146,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -173,13 +163,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -189,13 +177,11 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -219,16 +205,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -238,13 +222,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -254,13 +236,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -270,13 +250,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -287,11 +265,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index cb42ee237e0..87fbf168f72 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -49,13 +53,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,28 +67,24 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TxPortOption(Enum): PORT_1 = "Port 1" @@ -97,16 +95,14 @@ def tx_port(self) -> TxPortOption: """Tx Port Specifies which port on the TR Switch is part of the Tx path. - """ + """ val = self._get_property("Tx Port") val = self.TxPortOption[val] - return val # type: ignore + return val # type: ignore @tx_port.setter def tx_port(self, value: TxPortOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Port={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Port={value.value}"]) class CommonPortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -117,16 +113,16 @@ def common_port_location(self) -> CommonPortLocationOption: """Common Port Location Defines the orientation of the tr switch. - """ + """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] - return val # type: ignore + return val # type: ignore @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Common Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Common Port Location={value.value}"] + ) @property def insertion_loss(self) -> float: @@ -136,13 +132,11 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_isolation(self) -> bool: @@ -153,13 +147,11 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -169,13 +161,11 @@ def isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @isolation.setter - def isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Isolation={value}"]) + def isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -186,13 +176,11 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -202,13 +190,11 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -219,14 +205,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -237,14 +221,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -255,14 +237,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -273,12 +253,9 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index d080e45bf1c..9624047f60c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Terminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -49,13 +53,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,28 +67,24 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -98,16 +96,14 @@ def type(self) -> TypeOption: Type of terminator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class PortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -118,16 +114,14 @@ def port_location(self) -> PortLocationOption: """Port Location Defines the orientation of the terminator. - """ + """ val = self._get_property("Port Location") val = self.PortLocationOption[val] - return val # type: ignore + return val # type: ignore @port_location.setter def port_location(self, value: PortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port Location={value.value}"]) @property def vswr(self) -> float: @@ -139,20 +133,17 @@ def vswr(self) -> float: Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @vswr.setter - def vswr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"VSWR={value}"]) + def vswr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py index b20ada4d41d..181be61f55f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TestNoiseTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -70,13 +72,11 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -84,15 +84,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -102,13 +100,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -118,28 +114,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -154,16 +146,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -173,13 +163,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -189,13 +177,11 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -219,16 +205,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -238,13 +222,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -254,13 +236,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -270,13 +250,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -287,13 +265,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -304,14 +280,12 @@ def frequency_1(self) -> float: """ val = self._get_property("Frequency 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_1.setter - def frequency_1(self, value : float|str): + def frequency_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -322,14 +296,12 @@ def amplitude_1(self) -> float: """ val = self._get_property("Amplitude 1") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_1.setter - def amplitude_1(self, value : float|str): + def amplitude_1(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -340,14 +312,12 @@ def bandwidth_1(self) -> float: """ val = self._get_property("Bandwidth 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_1.setter - def bandwidth_1(self, value : float|str): + def bandwidth_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -358,14 +328,12 @@ def frequency_2(self) -> float: """ val = self._get_property("Frequency 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_2.setter - def frequency_2(self, value : float|str): + def frequency_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -376,14 +344,12 @@ def amplitude_2(self) -> float: """ val = self._get_property("Amplitude 2") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_2.setter - def amplitude_2(self, value : float|str): + def amplitude_2(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -394,14 +360,12 @@ def bandwidth_2(self) -> float: """ val = self._get_property("Bandwidth 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_2.setter - def bandwidth_2(self, value : float|str): + def bandwidth_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -411,11 +375,8 @@ def noise_level(self) -> float: Value should be between -200 and 0. """ val = self._get_property("Noise Level") - return val # type: ignore + return val # type: ignore @noise_level.setter - def noise_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Level={value}"]) - + def noise_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py index cce333ffcc5..930244277ac 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py @@ -1,30 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class TopLevelSimulation(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py index 948ae1a9029..b6a0b67e7b9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class TouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,13 +56,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -69,13 +70,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -85,28 +84,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def filename(self) -> str: @@ -116,22 +111,20 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File Coupling data generated by Savant and exported as a matched file - """ + """ val = self._get_property("Savant Matched Coupling File") - return val # type: ignore + return val # type: ignore @property def enable_em_isolation(self) -> bool: @@ -141,13 +134,11 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return val # type: ignore + return val # type: ignore @enable_em_isolation.setter def enable_em_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable EM Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable EM Isolation={value}"]) @property def port_antenna_assignment(self): @@ -155,28 +146,23 @@ def port_antenna_assignment(self): Maps each port in the coupling file to an antenna in the project "A list of values." - """ + """ val = self._get_property("Port-Antenna Assignment") - return val # type: ignore + return val # type: ignore @port_antenna_assignment.setter def port_antenna_assignment(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port-Antenna Assignment={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port-Antenna Assignment={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py index 3d0cca672f2..ebbf6a7bbc8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TunableTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -70,30 +72,26 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def frequency(self) -> float: """Frequency Tunable filter center frequency - """ + """ val = self._get_property("Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency.setter - def frequency(self, value : float|str): + def frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency={value}"]) @property def data_source(self): @@ -101,15 +99,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -119,13 +115,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -135,28 +129,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -171,16 +161,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -190,13 +178,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -206,13 +192,11 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -236,16 +220,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -255,13 +237,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -271,13 +251,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -287,13 +265,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -304,11 +280,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py index fb6ab6bf680..e058b7dab85 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def ground_reflection_coeff(self) -> float: @@ -147,13 +139,11 @@ def ground_reflection_coeff(self) -> float: Value should be between -100 and 100. """ val = self._get_property("Ground Reflection Coeff.") - return val # type: ignore + return val # type: ignore @ground_reflection_coeff.setter - def ground_reflection_coeff(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ground Reflection Coeff.={value}"]) + def ground_reflection_coeff(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ground Reflection Coeff.={value}"]) @property def pointspeak(self) -> int: @@ -163,13 +153,11 @@ def pointspeak(self) -> int: Value should be between 3 and 100. """ val = self._get_property("Points/Peak") - return val # type: ignore + return val # type: ignore @pointspeak.setter def pointspeak(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Points/Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Points/Peak={value}"]) @property def custom_fading_margin(self) -> float: @@ -180,13 +168,11 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -197,13 +183,11 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -214,13 +198,11 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -233,16 +215,14 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -253,13 +233,11 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -269,13 +247,11 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -285,13 +261,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -302,13 +276,11 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -318,13 +290,11 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -335,13 +305,11 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -352,13 +320,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -368,13 +336,11 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -384,13 +350,11 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -400,11 +364,10 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py index 43ded05d87f..6d976b57b1e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TwoToneTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -70,13 +72,11 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -84,15 +84,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -102,13 +100,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -118,28 +114,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -154,16 +146,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -173,13 +163,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -189,13 +177,11 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -219,16 +205,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -238,13 +222,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -254,13 +236,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -270,13 +250,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -287,13 +265,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -304,14 +280,12 @@ def frequency_1(self) -> float: """ val = self._get_property("Frequency 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_1.setter - def frequency_1(self, value : float|str): + def frequency_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -322,14 +296,12 @@ def amplitude_1(self) -> float: """ val = self._get_property("Amplitude 1") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_1.setter - def amplitude_1(self, value : float|str): + def amplitude_1(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -340,14 +312,12 @@ def bandwidth_1(self) -> float: """ val = self._get_property("Bandwidth 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_1.setter - def bandwidth_1(self, value : float|str): + def bandwidth_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -358,14 +328,12 @@ def frequency_2(self) -> float: """ val = self._get_property("Frequency 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_2.setter - def frequency_2(self, value : float|str): + def frequency_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -376,14 +344,12 @@ def amplitude_2(self) -> float: """ val = self._get_property("Amplitude 2") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_2.setter - def amplitude_2(self, value : float|str): + def amplitude_2(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -394,14 +360,12 @@ def bandwidth_2(self) -> float: """ val = self._get_property("Bandwidth 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_2.setter - def bandwidth_2(self, value : float|str): + def bandwidth_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -411,11 +375,8 @@ def noise_level(self) -> float: Value should be between -200 and 0. """ val = self._get_property("Noise Level") - return val # type: ignore + return val # type: ignore @noise_level.setter - def noise_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Level={value}"]) - + def noise_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py index cce533748e1..5ab561d20af 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -46,9 +50,9 @@ def delete(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): Value should be between -200 and 150. """ return self._get_table_data() @@ -60,7 +64,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -77,16 +81,14 @@ def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior Specifies the behavior of the parametric noise profile - """ + """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] - return val # type: ignore + return val # type: ignore @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Behavior={value.value}"]) @property def use_log_linear_interpolation(self) -> bool: @@ -97,11 +99,10 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return val # type: ignore + return val # type: ignore @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Log-Linear Interpolation={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py index 4c325199c27..baac5cc5fd7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -45,7 +49,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -60,14 +64,13 @@ def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units Specifies the units for the Harmonics - """ + """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py index 87d21270e74..f39b0d6516c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class TxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -49,7 +52,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -59,17 +62,17 @@ def source_file(self) -> str: Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def transmit_frequency(self) -> float: """Transmit Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -79,13 +82,11 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -96,14 +97,12 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -114,14 +113,12 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def exclude_harmonics_below_noise(self) -> bool: @@ -131,20 +128,19 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return val # type: ignore + return val # type: ignore @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Exclude Harmonics Below Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py index 7a916e69a81..d665c3fe728 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -45,7 +49,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -60,31 +64,28 @@ def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior Specifies the behavior of the parametric narrowband emissions mask - """ + """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] - return val # type: ignore + return val # type: ignore @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Narrowband Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"] + ) @property def measurement_frequency(self) -> float: """Measurement Frequency Measurement frequency for the absolute freq/amp pairs. - """ + """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @measurement_frequency.setter - def measurement_frequency(self, value : float|str): + def measurement_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Frequency={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Frequency={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py index 8fb1fd06cee..8017d994134 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class TxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,7 +39,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -47,17 +50,15 @@ def output_voltage_peak(self) -> float: """Output Voltage Peak Output High Voltage Level: maximum voltage of the digital signal - """ + """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") - return val # type: ignore + return val # type: ignore @output_voltage_peak.setter - def output_voltage_peak(self, value : float|str): + def output_voltage_peak(self, value: float | str): value = self._convert_to_internal_units(value, "Voltage") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Voltage Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Voltage Peak={value}"]) @property def include_phase_noise(self) -> bool: @@ -67,13 +68,11 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -83,13 +82,11 @@ def tx_broadband_noise(self) -> float: Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @tx_broadband_noise.setter - def tx_broadband_noise(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -99,13 +96,13 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Tx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] + ) @property def internal_amp_gain(self) -> float: @@ -115,13 +112,11 @@ def internal_amp_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @internal_amp_gain.setter - def internal_amp_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -131,13 +126,11 @@ def noise_figure(self) -> float: Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -148,18 +141,18 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -167,14 +160,12 @@ def p1_db_point_ref_input_(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -185,14 +176,12 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -202,13 +191,11 @@ def reverse_isolation(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -218,11 +205,8 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py index 7aff4d62591..242eb387fc2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -52,16 +56,14 @@ def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type Specifies EMI Margins to calculate - """ + """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] - return val # type: ignore + return val # type: ignore @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spectrum Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spectrum Type={value.value}"]) class TxPowerOption(Enum): PEAK_POWER = "Peak Power" @@ -72,16 +74,14 @@ def tx_power(self) -> TxPowerOption: """Tx Power Method used to specify the power - """ + """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] - return val # type: ignore + return val # type: ignore @tx_power.setter def tx_power(self, value: TxPowerOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Power={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Power={value.value}"]) @property def peak_power(self) -> float: @@ -92,14 +92,12 @@ def peak_power(self) -> float: """ val = self._get_property("Peak Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @peak_power.setter - def peak_power(self, value : float|str): + def peak_power(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Peak Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Power={value}"]) @property def average_power(self) -> float: @@ -110,14 +108,12 @@ def average_power(self) -> float: """ val = self._get_property("Average Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @average_power.setter - def average_power(self, value : float|str): + def average_power(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Average Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Average Power={value}"]) @property def include_phase_noise(self) -> bool: @@ -127,13 +123,11 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -143,13 +137,11 @@ def tx_broadband_noise(self) -> float: Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @tx_broadband_noise.setter - def tx_broadband_noise(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) class HarmonicTaperOption(Enum): CONSTANT = "Constant" @@ -162,16 +154,14 @@ def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper Taper type used to set amplitude of harmonics - """ + """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] - return val # type: ignore + return val # type: ignore @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Taper={value.value}"]) @property def harmonic_amplitude(self) -> float: @@ -181,13 +171,11 @@ def harmonic_amplitude(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Amplitude") - return val # type: ignore + return val # type: ignore @harmonic_amplitude.setter - def harmonic_amplitude(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Amplitude={value}"]) + def harmonic_amplitude(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Amplitude={value}"]) @property def harmonic_slope(self) -> float: @@ -197,13 +185,11 @@ def harmonic_slope(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Slope") - return val # type: ignore + return val # type: ignore @harmonic_slope.setter - def harmonic_slope(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Slope={value}"]) + def harmonic_slope(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Slope={value}"]) @property def harmonic_intercept(self) -> float: @@ -213,13 +199,11 @@ def harmonic_intercept(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Intercept") - return val # type: ignore + return val # type: ignore @harmonic_intercept.setter - def harmonic_intercept(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Intercept={value}"]) + def harmonic_intercept(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Intercept={value}"]) @property def enable_harmonic_bw_expansion(self) -> bool: @@ -230,13 +214,13 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return val # type: ignore + return val # type: ignore @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Harmonic BW Expansion={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Enable Harmonic BW Expansion={value}"] + ) @property def number_of_harmonics(self) -> int: @@ -246,13 +230,11 @@ def number_of_harmonics(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Number of Harmonics") - return val # type: ignore + return val # type: ignore @number_of_harmonics.setter def number_of_harmonics(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Harmonics={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Harmonics={value}"]) @property def second_harmonic_level(self) -> float: @@ -262,13 +244,11 @@ def second_harmonic_level(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Second Harmonic Level") - return val # type: ignore + return val # type: ignore @second_harmonic_level.setter - def second_harmonic_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Second Harmonic Level={value}"]) + def second_harmonic_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Second Harmonic Level={value}"]) @property def third_harmonic_level(self) -> float: @@ -278,13 +258,11 @@ def third_harmonic_level(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Third Harmonic Level") - return val # type: ignore + return val # type: ignore @third_harmonic_level.setter - def third_harmonic_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Third Harmonic Level={value}"]) + def third_harmonic_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Third Harmonic Level={value}"]) @property def other_harmonic_levels(self) -> float: @@ -294,13 +272,11 @@ def other_harmonic_levels(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Other Harmonic Levels") - return val # type: ignore + return val # type: ignore @other_harmonic_levels.setter - def other_harmonic_levels(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Other Harmonic Levels={value}"]) + def other_harmonic_levels(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Other Harmonic Levels={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -310,13 +286,13 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Tx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] + ) @property def internal_amp_gain(self) -> float: @@ -326,13 +302,11 @@ def internal_amp_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @internal_amp_gain.setter - def internal_amp_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -342,13 +316,11 @@ def noise_figure(self) -> float: Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -359,18 +331,18 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -378,14 +350,12 @@ def p1_db_point_ref_input_(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -396,14 +366,12 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -413,13 +381,11 @@ def reverse_isolation(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -429,11 +395,8 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py index 4e63aedf86e..fffdf13e2ef 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,13 +48,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -62,7 +66,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -77,14 +81,11 @@ def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spur Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py index 5b3e3ec6adc..b4e13110f1c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class WalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class PathLossTypeOption(Enum): LOS_URBAN_CANYON = "LOS (Urban Canyon)" @@ -148,16 +140,14 @@ def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type Specify LOS vs NLOS for the Walfisch-Ikegami model - """ + """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] - return val # type: ignore + return val # type: ignore @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Path Loss Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Type={value.value}"]) class EnvironmentOption(Enum): DENSE_METRO = "Dense Metro" @@ -168,16 +158,14 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Walfisch model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def roof_height(self) -> float: @@ -188,14 +176,12 @@ def roof_height(self) -> float: """ val = self._get_property("Roof Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @roof_height.setter - def roof_height(self, value : float|str): + def roof_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Roof Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Roof Height={value}"]) @property def distance_between_buildings(self) -> float: @@ -206,14 +192,14 @@ def distance_between_buildings(self) -> float: """ val = self._get_property("Distance Between Buildings") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @distance_between_buildings.setter - def distance_between_buildings(self, value : float|str): + def distance_between_buildings(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Distance Between Buildings={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Distance Between Buildings={value}"] + ) @property def street_width(self) -> float: @@ -224,14 +210,12 @@ def street_width(self) -> float: """ val = self._get_property("Street Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @street_width.setter - def street_width(self, value : float|str): + def street_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Street Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Street Width={value}"]) @property def incidence_angle(self) -> float: @@ -241,13 +225,11 @@ def incidence_angle(self) -> float: Value should be between 0 and 90. """ val = self._get_property("Incidence Angle") - return val # type: ignore + return val # type: ignore @incidence_angle.setter - def incidence_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Incidence Angle={value}"]) + def incidence_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Incidence Angle={value}"]) @property def custom_fading_margin(self) -> float: @@ -258,13 +240,11 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -275,13 +255,11 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -292,13 +270,11 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -311,16 +287,14 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -331,13 +305,11 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -347,13 +319,11 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -363,13 +333,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -380,13 +348,11 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -396,13 +362,11 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -413,13 +377,11 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -430,13 +392,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -446,13 +408,11 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -462,13 +422,11 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -478,11 +436,10 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py index 9ed82715618..df42b7cbddd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Waveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -48,15 +52,13 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" @@ -70,16 +72,14 @@ def waveform(self) -> WaveformOption: """Waveform Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Waveform") val = self.WaveformOption[val] - return val # type: ignore + return val # type: ignore @waveform.setter def waveform(self, value: WaveformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Waveform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveform={value.value}"]) @property def start_frequency(self) -> float: @@ -90,14 +90,12 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -108,14 +106,12 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -126,14 +122,12 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_spacing.setter - def channel_spacing(self, value : float|str): + def channel_spacing(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) @property def clock_duty_cycle(self) -> float: @@ -143,13 +137,11 @@ def clock_duty_cycle(self) -> float: Value should be between 0.001 and 1. """ val = self._get_property("Clock Duty Cycle") - return val # type: ignore + return val # type: ignore @clock_duty_cycle.setter - def clock_duty_cycle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Clock Duty Cycle={value}"]) + def clock_duty_cycle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Duty Cycle={value}"]) @property def clock_risefall_time(self) -> float: @@ -160,14 +152,12 @@ def clock_risefall_time(self) -> float: """ val = self._get_property("Clock Rise/Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @clock_risefall_time.setter - def clock_risefall_time(self, value : float|str): + def clock_risefall_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Clock Rise/Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Rise/Fall Time={value}"]) class SpreadingTypeOption(Enum): LOW_SPREAD = "Low Spread" @@ -179,16 +169,14 @@ def spreading_type(self) -> SpreadingTypeOption: """Spreading Type Type of spreading employed by the Spread Spectrum Clock - """ + """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] - return val # type: ignore + return val # type: ignore @spreading_type.setter def spreading_type(self, value: SpreadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spreading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spreading Type={value.value}"]) @property def spread_percentage(self) -> float: @@ -198,13 +186,11 @@ def spread_percentage(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Spread Percentage") - return val # type: ignore + return val # type: ignore @spread_percentage.setter - def spread_percentage(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spread Percentage={value}"]) + def spread_percentage(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spread Percentage={value}"]) @property def imported_spectrum(self) -> str: @@ -212,22 +198,20 @@ def imported_spectrum(self) -> str: Value should be a full file path. """ val = self._get_property("Imported Spectrum") - return val # type: ignore + return val # type: ignore @imported_spectrum.setter def imported_spectrum(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Imported Spectrum={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Imported Spectrum={value}"]) @property def raw_data_format(self) -> str: """Raw Data Format Format of the imported raw data - """ + """ val = self._get_property("Raw Data Format") - return val # type: ignore + return val # type: ignore @property def system_impedance(self) -> float: @@ -238,14 +222,12 @@ def system_impedance(self) -> float: """ val = self._get_property("System Impedance") val = self._convert_from_internal_units(float(val), "Resistance") - return val # type: ignore + return val # type: ignore @system_impedance.setter - def system_impedance(self, value : float|str): + def system_impedance(self, value: float | str): value = self._convert_to_internal_units(value, "Resistance") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"System Impedance={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"System Impedance={value}"]) @property def advanced_extraction_params(self) -> bool: @@ -255,13 +237,13 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return val # type: ignore + return val # type: ignore @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Advanced Extraction Params={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Advanced Extraction Params={value}"] + ) @property def nb_window_size(self) -> float: @@ -272,13 +254,11 @@ def nb_window_size(self) -> float: Value should be greater than 3. """ val = self._get_property("NB Window Size") - return val # type: ignore + return val # type: ignore @nb_window_size.setter - def nb_window_size(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NB Window Size={value}"]) + def nb_window_size(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Window Size={value}"]) @property def bb_smoothing_factor(self) -> float: @@ -288,13 +268,11 @@ def bb_smoothing_factor(self) -> float: Value should be greater than 1. """ val = self._get_property("BB Smoothing Factor") - return val # type: ignore + return val # type: ignore @bb_smoothing_factor.setter - def bb_smoothing_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Smoothing Factor={value}"]) + def bb_smoothing_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Smoothing Factor={value}"]) @property def nb_detector_threshold(self) -> float: @@ -304,13 +282,11 @@ def nb_detector_threshold(self) -> float: Value should be between 2 and 10. """ val = self._get_property("NB Detector Threshold") - return val # type: ignore + return val # type: ignore @nb_detector_threshold.setter - def nb_detector_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NB Detector Threshold={value}"]) + def nb_detector_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Detector Threshold={value}"]) class AlgorithmOption(Enum): FFT = "FFT" @@ -321,16 +297,14 @@ def algorithm(self) -> AlgorithmOption: """Algorithm Algorithm used to transform the imported time domain spectrum - """ + """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] - return val # type: ignore + return val # type: ignore @algorithm.setter def algorithm(self, value: AlgorithmOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Algorithm={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Algorithm={value.value}"]) @property def start_time(self) -> float: @@ -341,31 +315,27 @@ def start_time(self) -> float: """ val = self._get_property("Start Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @start_time.setter - def start_time(self, value : float|str): + def start_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Time={value}"]) @property def stop_time(self) -> float: """Stop Time Final time of the imported time domain spectrum - """ + """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @stop_time.setter - def stop_time(self, value : float|str): + def stop_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Time={value}"]) @property def max_frequency(self) -> float: @@ -376,14 +346,12 @@ def max_frequency(self) -> float: """ val = self._get_property("Max Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_frequency.setter - def max_frequency(self, value : float|str): + def max_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Frequency={value}"]) class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" @@ -401,16 +369,14 @@ def window_type(self) -> WindowTypeOption: """Window Type Windowing scheme used for importing time domain spectrum - """ + """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] - return val # type: ignore + return val # type: ignore @window_type.setter def window_type(self, value: WindowTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Window Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Window Type={value.value}"]) @property def kaiser_parameter(self) -> float: @@ -420,13 +386,11 @@ def kaiser_parameter(self) -> float: Value should be greater than 0. """ val = self._get_property("Kaiser Parameter") - return val # type: ignore + return val # type: ignore @kaiser_parameter.setter - def kaiser_parameter(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Kaiser Parameter={value}"]) + def kaiser_parameter(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Kaiser Parameter={value}"]) @property def adjust_coherent_gain(self) -> bool: @@ -436,13 +400,11 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return val # type: ignore + return val # type: ignore @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adjust Coherent Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adjust Coherent Gain={value}"]) @property def data_rate(self) -> float: @@ -453,14 +415,12 @@ def data_rate(self) -> float: """ val = self._get_property("Data Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @data_rate.setter - def data_rate(self, value : float|str): + def data_rate(self, value: float | str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Rate={value}"]) @property def num_of_bits(self) -> int: @@ -470,13 +430,11 @@ def num_of_bits(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Num of Bits") - return val # type: ignore + return val # type: ignore @num_of_bits.setter def num_of_bits(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Num of Bits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Num of Bits={value}"]) @property def use_envelope(self) -> bool: @@ -486,13 +444,11 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return val # type: ignore + return val # type: ignore @use_envelope.setter def use_envelope(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Envelope={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Envelope={value}"]) @property def min_ptsnull(self) -> int: @@ -502,13 +458,11 @@ def min_ptsnull(self) -> int: Value should be between 2 and 50. """ val = self._get_property("Min Pts/Null") - return val # type: ignore + return val # type: ignore @min_ptsnull.setter def min_ptsnull(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pts/Null={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pts/Null={value}"]) @property def delay_skew(self) -> float: @@ -519,12 +473,9 @@ def delay_skew(self) -> float: """ val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @delay_skew.setter - def delay_skew(self, value : float|str): + def delay_skew(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Delay Skew={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Delay Skew={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index bd6f8b1de0e..7f7a748aedf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,3 +1,27 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from .Amplifier import Amplifier from .AntennaNode import AntennaNode from .AntennaPassband import AntennaPassband @@ -33,38 +57,6 @@ from .ProfileTraceNode import ProfileTraceNode from .PropagationLossCouplingNode import PropagationLossCouplingNode from .RadioNode import RadioNode -from .ResultPlotNode import ResultPlotNode -from .RfSystemGroup import RfSystemGroup -from .RxMeasNode import RxMeasNode -from .RxMixerProductNode import RxMixerProductNode -from .RxSaturationNode import RxSaturationNode -from .RxSelectivityNode import RxSelectivityNode -from .RxSpurNode import RxSpurNode -from .RxSusceptibilityProfNode import RxSusceptibilityProfNode -from .SamplingNode import SamplingNode -from .SceneGroupNode import SceneGroupNode -from .SelectivityTraceNode import SelectivityTraceNode -from .SolutionCouplingNode import SolutionCouplingNode -from .SolutionsNode import SolutionsNode -from .SpurTraceNode import SpurTraceNode -from .TR_Switch import TR_Switch -from .TRSwitchTraceNode import TRSwitchTraceNode -from .Terminator import Terminator -from .TestNoiseTraceNode import TestNoiseTraceNode -from .TopLevelSimulation import TopLevelSimulation -from .TouchstoneCouplingNode import TouchstoneCouplingNode -from .TunableTraceNode import TunableTraceNode -from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode -from .TwoToneTraceNode import TwoToneTraceNode -from .TxBbEmissionNode import TxBbEmissionNode -from .TxHarmonicNode import TxHarmonicNode -from .TxMeasNode import TxMeasNode -from .TxNbEmissionNode import TxNbEmissionNode -from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode -from .TxSpectralProfNode import TxSpectralProfNode -from .TxSpurNode import TxSpurNode -from .WalfischCouplingNode import WalfischCouplingNode -from .Waveform import Waveform from .ReadOnlyAmplifier import ReadOnlyAmplifier from .ReadOnlyAntennaNode import ReadOnlyAntennaNode from .ReadOnlyAntennaPassband import ReadOnlyAntennaPassband @@ -113,121 +105,153 @@ from .ReadOnlyTxSpurNode import ReadOnlyTxSpurNode from .ReadOnlyWalfischCouplingNode import ReadOnlyWalfischCouplingNode from .ReadOnlyWaveform import ReadOnlyWaveform +from .ResultPlotNode import ResultPlotNode +from .RfSystemGroup import RfSystemGroup +from .RxMeasNode import RxMeasNode +from .RxMixerProductNode import RxMixerProductNode +from .RxSaturationNode import RxSaturationNode +from .RxSelectivityNode import RxSelectivityNode +from .RxSpurNode import RxSpurNode +from .RxSusceptibilityProfNode import RxSusceptibilityProfNode +from .SamplingNode import SamplingNode +from .SceneGroupNode import SceneGroupNode +from .SelectivityTraceNode import SelectivityTraceNode +from .SolutionCouplingNode import SolutionCouplingNode +from .SolutionsNode import SolutionsNode +from .SpurTraceNode import SpurTraceNode +from .TRSwitchTraceNode import TRSwitchTraceNode +from .TR_Switch import TR_Switch +from .Terminator import Terminator +from .TestNoiseTraceNode import TestNoiseTraceNode +from .TopLevelSimulation import TopLevelSimulation +from .TouchstoneCouplingNode import TouchstoneCouplingNode +from .TunableTraceNode import TunableTraceNode +from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode +from .TwoToneTraceNode import TwoToneTraceNode +from .TxBbEmissionNode import TxBbEmissionNode +from .TxHarmonicNode import TxHarmonicNode +from .TxMeasNode import TxMeasNode +from .TxNbEmissionNode import TxNbEmissionNode +from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode +from .TxSpectralProfNode import TxSpectralProfNode +from .TxSpurNode import TxSpurNode +from .WalfischCouplingNode import WalfischCouplingNode +from .Waveform import Waveform __all__ = [ - 'Amplifier', - 'AntennaNode', - 'AntennaPassband', - 'Band', - 'BandFolder', - 'BandTraceNode', - 'CADNode', - 'Cable', - 'CategoriesViewNode', - 'Circulator', - 'CouplingLinkNode', - 'CouplingTraceNode', - 'CouplingsNode', - 'CustomCouplingNode', - 'EmiPlotMarkerNode', - 'EmitSceneNode', - 'ErcegCouplingNode', - 'Filter', - 'FiveGChannelModel', - 'HataCouplingNode', - 'IndoorPropagationCouplingNode', - 'Isolator', - 'LogDistanceCouplingNode', - 'MPlexBandTraceNode', - 'Multiplexer', - 'MultiplexerBand', - 'OutboardTraceNode', - 'ParametricCouplingTraceNode', - 'PlotMarkerNode', - 'PlotNode', - 'PowerDivider', - 'PowerTraceNode', - 'ProfileTraceNode', - 'PropagationLossCouplingNode', - 'RadioNode', - 'ResultPlotNode', - 'RfSystemGroup', - 'RxMeasNode', - 'RxMixerProductNode', - 'RxSaturationNode', - 'RxSelectivityNode', - 'RxSpurNode', - 'RxSusceptibilityProfNode', - 'SamplingNode', - 'SceneGroupNode', - 'SelectivityTraceNode', - 'SolutionCouplingNode', - 'SolutionsNode', - 'SpurTraceNode', - 'TR_Switch', - 'TRSwitchTraceNode', - 'Terminator', - 'TestNoiseTraceNode', - 'TopLevelSimulation', - 'TouchstoneCouplingNode', - 'TunableTraceNode', - 'TwoRayPathLossCouplingNode', - 'TwoToneTraceNode', - 'TxBbEmissionNode', - 'TxHarmonicNode', - 'TxMeasNode', - 'TxNbEmissionNode', - 'TxSpectralProfEmitterNode', - 'TxSpectralProfNode', - 'TxSpurNode', - 'WalfischCouplingNode', - 'Waveform', - 'ReadOnlyAmplifier', - 'ReadOnlyAntennaNode', - 'ReadOnlyAntennaPassband', - 'ReadOnlyBand', - 'ReadOnlyBandFolder', - 'ReadOnlyCADNode', - 'ReadOnlyCable', - 'ReadOnlyCirculator', - 'ReadOnlyCouplingLinkNode', - 'ReadOnlyCouplingsNode', - 'ReadOnlyCustomCouplingNode', - 'ReadOnlyEmitSceneNode', - 'ReadOnlyErcegCouplingNode', - 'ReadOnlyFilter', - 'ReadOnlyFiveGChannelModel', - 'ReadOnlyHataCouplingNode', - 'ReadOnlyIndoorPropagationCouplingNode', - 'ReadOnlyIsolator', - 'ReadOnlyLogDistanceCouplingNode', - 'ReadOnlyMultiplexer', - 'ReadOnlyMultiplexerBand', - 'ReadOnlyPowerDivider', - 'ReadOnlyPropagationLossCouplingNode', - 'ReadOnlyRadioNode', - 'ReadOnlyRfSystemGroup', - 'ReadOnlyRxMeasNode', - 'ReadOnlyRxMixerProductNode', - 'ReadOnlyRxSaturationNode', - 'ReadOnlyRxSelectivityNode', - 'ReadOnlyRxSpurNode', - 'ReadOnlyRxSusceptibilityProfNode', - 'ReadOnlySamplingNode', - 'ReadOnlySceneGroupNode', - 'ReadOnlySolutionCouplingNode', - 'ReadOnlySolutionsNode', - 'ReadOnlyTR_Switch', - 'ReadOnlyTerminator', - 'ReadOnlyTouchstoneCouplingNode', - 'ReadOnlyTwoRayPathLossCouplingNode', - 'ReadOnlyTxBbEmissionNode', - 'ReadOnlyTxHarmonicNode', - 'ReadOnlyTxMeasNode', - 'ReadOnlyTxNbEmissionNode', - 'ReadOnlyTxSpectralProfEmitterNode', - 'ReadOnlyTxSpectralProfNode', - 'ReadOnlyTxSpurNode', - 'ReadOnlyWalfischCouplingNode', - 'ReadOnlyWaveform', + "Amplifier", + "AntennaNode", + "AntennaPassband", + "Band", + "BandFolder", + "BandTraceNode", + "CADNode", + "Cable", + "CategoriesViewNode", + "Circulator", + "CouplingLinkNode", + "CouplingTraceNode", + "CouplingsNode", + "CustomCouplingNode", + "EmiPlotMarkerNode", + "EmitSceneNode", + "ErcegCouplingNode", + "Filter", + "FiveGChannelModel", + "HataCouplingNode", + "IndoorPropagationCouplingNode", + "Isolator", + "LogDistanceCouplingNode", + "MPlexBandTraceNode", + "Multiplexer", + "MultiplexerBand", + "OutboardTraceNode", + "ParametricCouplingTraceNode", + "PlotMarkerNode", + "PlotNode", + "PowerDivider", + "PowerTraceNode", + "ProfileTraceNode", + "PropagationLossCouplingNode", + "RadioNode", + "ResultPlotNode", + "RfSystemGroup", + "RxMeasNode", + "RxMixerProductNode", + "RxSaturationNode", + "RxSelectivityNode", + "RxSpurNode", + "RxSusceptibilityProfNode", + "SamplingNode", + "SceneGroupNode", + "SelectivityTraceNode", + "SolutionCouplingNode", + "SolutionsNode", + "SpurTraceNode", + "TR_Switch", + "TRSwitchTraceNode", + "Terminator", + "TestNoiseTraceNode", + "TopLevelSimulation", + "TouchstoneCouplingNode", + "TunableTraceNode", + "TwoRayPathLossCouplingNode", + "TwoToneTraceNode", + "TxBbEmissionNode", + "TxHarmonicNode", + "TxMeasNode", + "TxNbEmissionNode", + "TxSpectralProfEmitterNode", + "TxSpectralProfNode", + "TxSpurNode", + "WalfischCouplingNode", + "Waveform", + "ReadOnlyAmplifier", + "ReadOnlyAntennaNode", + "ReadOnlyAntennaPassband", + "ReadOnlyBand", + "ReadOnlyBandFolder", + "ReadOnlyCADNode", + "ReadOnlyCable", + "ReadOnlyCirculator", + "ReadOnlyCouplingLinkNode", + "ReadOnlyCouplingsNode", + "ReadOnlyCustomCouplingNode", + "ReadOnlyEmitSceneNode", + "ReadOnlyErcegCouplingNode", + "ReadOnlyFilter", + "ReadOnlyFiveGChannelModel", + "ReadOnlyHataCouplingNode", + "ReadOnlyIndoorPropagationCouplingNode", + "ReadOnlyIsolator", + "ReadOnlyLogDistanceCouplingNode", + "ReadOnlyMultiplexer", + "ReadOnlyMultiplexerBand", + "ReadOnlyPowerDivider", + "ReadOnlyPropagationLossCouplingNode", + "ReadOnlyRadioNode", + "ReadOnlyRfSystemGroup", + "ReadOnlyRxMeasNode", + "ReadOnlyRxMixerProductNode", + "ReadOnlyRxSaturationNode", + "ReadOnlyRxSelectivityNode", + "ReadOnlyRxSpurNode", + "ReadOnlyRxSusceptibilityProfNode", + "ReadOnlySamplingNode", + "ReadOnlySceneGroupNode", + "ReadOnlySolutionCouplingNode", + "ReadOnlySolutionsNode", + "ReadOnlyTR_Switch", + "ReadOnlyTerminator", + "ReadOnlyTouchstoneCouplingNode", + "ReadOnlyTwoRayPathLossCouplingNode", + "ReadOnlyTxBbEmissionNode", + "ReadOnlyTxHarmonicNode", + "ReadOnlyTxMeasNode", + "ReadOnlyTxNbEmissionNode", + "ReadOnlyTxSpectralProfEmitterNode", + "ReadOnlyTxSpectralProfNode", + "ReadOnlyTxSpurNode", + "ReadOnlyWalfischCouplingNode", + "ReadOnlyWaveform", ] diff --git a/src/ansys/aedt/core/modeler/circuits/primitives_emit.py b/src/ansys/aedt/core/modeler/circuits/primitives_emit.py index c4e16a18016..ab034f98d43 100644 --- a/src/ansys/aedt/core/modeler/circuits/primitives_emit.py +++ b/src/ansys/aedt/core/modeler/circuits/primitives_emit.py @@ -917,7 +917,7 @@ def band_tx_power(self, band_node, units=""): ---------- band_node : Instance of the band node. units : str - Units to use for the tx power. If none specified, + Units to use for the tx power. If none specified, SI units (W) are used Returns From a829dc82a4027be6ceb873c0573f5085afb771ba Mon Sep 17 00:00:00 2001 From: jsalant Date: Thu, 24 Apr 2025 08:50:25 -0400 Subject: [PATCH 50/86] skip lint skip eslint for enums so codacy doesn't flag the string vals as security risk --- .../emit_core/nodes/generated/Amplifier.py | 129 +++-- .../emit_core/nodes/generated/AntennaNode.py | 491 +++++++++++------- .../nodes/generated/AntennaPassband.py | 74 +-- .../core/emit_core/nodes/generated/Band.py | 371 +++++++------ .../emit_core/nodes/generated/BandFolder.py | 16 +- .../nodes/generated/BandTraceNode.py | 163 +++--- .../core/emit_core/nodes/generated/CADNode.py | 335 +++++++----- .../core/emit_core/nodes/generated/Cable.py | 97 ++-- .../nodes/generated/CategoriesViewNode.py | 16 +- .../emit_core/nodes/generated/Circulator.py | 135 +++-- .../nodes/generated/CouplingLinkNode.py | 30 +- .../nodes/generated/CouplingTraceNode.py | 205 +++++--- .../nodes/generated/CouplingsNode.py | 38 +- .../nodes/generated/CustomCouplingNode.py | 66 ++- .../nodes/generated/EmiPlotMarkerNode.py | 219 ++++---- .../nodes/generated/EmitSceneNode.py | 51 +- .../nodes/generated/ErcegCouplingNode.py | 193 ++++--- .../core/emit_core/nodes/generated/Filter.py | 221 ++++---- .../nodes/generated/FiveGChannelModel.py | 217 ++++---- .../nodes/generated/HataCouplingNode.py | 195 ++++--- .../IndoorPropagationCouplingNode.py | 211 ++++---- .../emit_core/nodes/generated/Isolator.py | 135 +++-- .../generated/LogDistanceCouplingNode.py | 209 +++++--- .../nodes/generated/MPlexBandTraceNode.py | 150 +++--- .../emit_core/nodes/generated/Multiplexer.py | 81 +-- .../nodes/generated/MultiplexerBand.py | 123 +++-- .../nodes/generated/OutboardTraceNode.py | 151 +++--- .../generated/ParametricCouplingTraceNode.py | 157 +++--- .../nodes/generated/PlotMarkerNode.py | 229 ++++---- .../emit_core/nodes/generated/PlotNode.py | 259 +++++---- .../emit_core/nodes/generated/PowerDivider.py | 139 ++--- .../nodes/generated/PowerTraceNode.py | 151 +++--- .../nodes/generated/ProfileTraceNode.py | 139 ++--- .../generated/PropagationLossCouplingNode.py | 179 ++++--- .../emit_core/nodes/generated/RadioNode.py | 32 +- .../nodes/generated/ReadOnlyAmplifier.py | 53 +- .../nodes/generated/ReadOnlyAntennaNode.py | 235 +++++---- .../generated/ReadOnlyAntennaPassband.py | 32 +- .../emit_core/nodes/generated/ReadOnlyBand.py | 183 ++++--- .../nodes/generated/ReadOnlyBandFolder.py | 16 +- .../nodes/generated/ReadOnlyCADNode.py | 155 +++--- .../nodes/generated/ReadOnlyCable.py | 49 +- .../nodes/generated/ReadOnlyCirculator.py | 63 ++- .../generated/ReadOnlyCouplingLinkNode.py | 22 +- .../nodes/generated/ReadOnlyCouplingsNode.py | 24 +- .../generated/ReadOnlyCustomCouplingNode.py | 40 +- .../nodes/generated/ReadOnlyEmitSceneNode.py | 35 +- .../generated/ReadOnlyErcegCouplingNode.py | 83 ++- .../nodes/generated/ReadOnlyFilter.py | 95 ++-- .../generated/ReadOnlyFiveGChannelModel.py | 95 ++-- .../generated/ReadOnlyHataCouplingNode.py | 85 ++- .../ReadOnlyIndoorPropagationCouplingNode.py | 97 ++-- .../nodes/generated/ReadOnlyIsolator.py | 63 ++- .../ReadOnlyLogDistanceCouplingNode.py | 93 ++-- .../nodes/generated/ReadOnlyMultiplexer.py | 51 +- .../generated/ReadOnlyMultiplexerBand.py | 55 +- .../nodes/generated/ReadOnlyPowerDivider.py | 65 ++- .../ReadOnlyPropagationLossCouplingNode.py | 73 ++- .../nodes/generated/ReadOnlyRadioNode.py | 28 +- .../nodes/generated/ReadOnlyRfSystemGroup.py | 20 +- .../nodes/generated/ReadOnlyRxMeasNode.py | 71 ++- .../generated/ReadOnlyRxMixerProductNode.py | 79 ++- .../generated/ReadOnlyRxSaturationNode.py | 16 +- .../generated/ReadOnlyRxSelectivityNode.py | 18 +- .../nodes/generated/ReadOnlyRxSpurNode.py | 33 +- .../ReadOnlyRxSusceptibilityProfNode.py | 63 ++- .../nodes/generated/ReadOnlySamplingNode.py | 53 +- .../nodes/generated/ReadOnlySceneGroupNode.py | 43 +- .../generated/ReadOnlySolutionCouplingNode.py | 26 +- .../nodes/generated/ReadOnlySolutionsNode.py | 18 +- .../nodes/generated/ReadOnlyTR_Switch.py | 59 +-- .../nodes/generated/ReadOnlyTerminator.py | 47 +- .../ReadOnlyTouchstoneCouplingNode.py | 42 +- .../ReadOnlyTwoRayPathLossCouplingNode.py | 77 ++- .../generated/ReadOnlyTxBbEmissionNode.py | 35 +- .../nodes/generated/ReadOnlyTxHarmonicNode.py | 25 +- .../nodes/generated/ReadOnlyTxMeasNode.py | 32 +- .../generated/ReadOnlyTxNbEmissionNode.py | 29 +- .../ReadOnlyTxSpectralProfEmitterNode.py | 42 +- .../generated/ReadOnlyTxSpectralProfNode.py | 87 ++-- .../nodes/generated/ReadOnlyTxSpurNode.py | 33 +- .../generated/ReadOnlyWalfischCouplingNode.py | 97 ++-- .../nodes/generated/ReadOnlyWaveform.py | 125 +++-- .../nodes/generated/ResultPlotNode.py | 265 ++++++---- .../nodes/generated/RfSystemGroup.py | 30 +- .../emit_core/nodes/generated/RxMeasNode.py | 167 +++--- .../nodes/generated/RxMixerProductNode.py | 175 ++++--- .../nodes/generated/RxSaturationNode.py | 20 +- .../nodes/generated/RxSelectivityNode.py | 26 +- .../emit_core/nodes/generated/RxSpurNode.py | 41 +- .../generated/RxSusceptibilityProfNode.py | 149 +++--- .../emit_core/nodes/generated/SamplingNode.py | 77 +-- .../nodes/generated/SceneGroupNode.py | 81 +-- .../nodes/generated/SelectivityTraceNode.py | 139 ++--- .../nodes/generated/SolutionCouplingNode.py | 42 +- .../nodes/generated/SolutionsNode.py | 22 +- .../nodes/generated/SpurTraceNode.py | 151 +++--- .../nodes/generated/TRSwitchTraceNode.py | 151 +++--- .../emit_core/nodes/generated/TR_Switch.py | 133 +++-- .../emit_core/nodes/generated/Terminator.py | 75 +-- .../nodes/generated/TestNoiseTraceNode.py | 207 +++++--- .../nodes/generated/TopLevelSimulation.py | 16 +- .../nodes/generated/TouchstoneCouplingNode.py | 74 +-- .../nodes/generated/TunableTraceNode.py | 161 +++--- .../generated/TwoRayPathLossCouplingNode.py | 193 ++++--- .../nodes/generated/TwoToneTraceNode.py | 207 +++++--- .../nodes/generated/TxBbEmissionNode.py | 49 +- .../nodes/generated/TxHarmonicNode.py | 35 +- .../emit_core/nodes/generated/TxMeasNode.py | 56 +- .../nodes/generated/TxNbEmissionNode.py | 45 +- .../generated/TxSpectralProfEmitterNode.py | 108 ++-- .../nodes/generated/TxSpectralProfNode.py | 217 ++++---- .../emit_core/nodes/generated/TxSpurNode.py | 41 +- .../nodes/generated/WalfischCouplingNode.py | 237 +++++---- .../emit_core/nodes/generated/Waveform.py | 269 ++++++---- .../emit_core/nodes/generated/__init__.py | 318 ++++++------ 116 files changed, 6942 insertions(+), 5602 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index e82439ab269..9ea6df1d8be 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Amplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -53,11 +49,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,42 +65,48 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class AmplifierTypeOption(Enum): - TRANSMIT_AMPLIFIER = "Transmit Amplifier" - RECEIVE_AMPLIFIER = "Receive Amplifier" + TRANSMIT_AMPLIFIER = "Transmit Amplifier" # eslint-disable-line no-eval + RECEIVE_AMPLIFIER = "Receive Amplifier" # eslint-disable-line no-eval @property def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type Configures the amplifier as a Tx or Rx amplifier - """ + """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] - return val # type: ignore + return val # type: ignore @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Type={value.value}"]) @property def gain(self) -> float: @@ -112,11 +116,13 @@ def gain(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Gain") - return val # type: ignore + return val # type: ignore @gain.setter - def gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Gain={value}"]) + def gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Gain={value}"]) @property def center_frequency(self) -> float: @@ -127,12 +133,14 @@ def center_frequency(self) -> float: """ val = self._get_property("Center Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @center_frequency.setter - def center_frequency(self, value: float | str): + def center_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Center Frequency={value}"]) @property def bandwidth(self) -> float: @@ -143,12 +151,14 @@ def bandwidth(self) -> float: """ val = self._get_property("Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth.setter - def bandwidth(self, value: float | str): + def bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth={value}"]) @property def noise_figure(self) -> float: @@ -158,11 +168,13 @@ def noise_figure(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def saturation_level(self) -> float: @@ -173,12 +185,14 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @saturation_level.setter - def saturation_level(self, value: float | str): + def saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Saturation Level={value}"]) @property def p1_db_point_ref_input(self) -> float: @@ -189,12 +203,14 @@ def p1_db_point_ref_input(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value: float | str): + def p1_db_point_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input={value}"]) @property def ip3_ref_input(self) -> float: @@ -205,12 +221,14 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def shape_factor(self) -> float: @@ -220,11 +238,13 @@ def shape_factor(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @shape_factor.setter - def shape_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) + def shape_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Shape Factor={value}"]) @property def reverse_isolation(self) -> float: @@ -234,11 +254,13 @@ def reverse_isolation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -248,8 +270,11 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py index 2c661ce1ab1..84a33b1ca9e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class AntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -59,13 +55,15 @@ def tags(self) -> str: """Tags Space delimited list of tags for coupling selections - """ + """ val = self._get_property("Tags") - return val # type: ignore + return val # type: ignore @tags.setter def tags(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tags={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tags={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -76,13 +74,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): @@ -92,11 +90,13 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): @@ -106,29 +106,33 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" - AZ_EL_TWIST = "Az-El-Twist" + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -138,11 +142,13 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): @@ -152,11 +158,13 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def position_defined(self) -> bool: @@ -166,11 +174,13 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return val # type: ignore + return val # type: ignore @position_defined.setter def position_defined(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Defined={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position Defined={value}"]) @property def antenna_temperature(self) -> float: @@ -180,24 +190,28 @@ def antenna_temperature(self) -> float: Value should be between 0 and 100000. """ val = self._get_property("Antenna Temperature") - return val # type: ignore + return val # type: ignore @antenna_temperature.setter - def antenna_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna Temperature={value}"]) + def antenna_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna Temperature={value}"]) @property def type(self): """Type Defines the type of antenna - """ + """ val = self._get_property("Type") - return val # type: ignore + return val # type: ignore @type.setter def type(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value}"]) @property def antenna_file(self) -> str: @@ -205,11 +219,13 @@ def antenna_file(self) -> str: Value should be a full file path. """ val = self._get_property("Antenna File") - return val # type: ignore + return val # type: ignore @antenna_file.setter def antenna_file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna File={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna File={value}"]) @property def project_name(self) -> str: @@ -219,11 +235,13 @@ def project_name(self) -> str: Value should be a full file path. """ val = self._get_property("Project Name") - return val # type: ignore + return val # type: ignore @project_name.setter def project_name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Project Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Project Name={value}"]) @property def peak_gain(self) -> float: @@ -233,30 +251,34 @@ def peak_gain(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Peak Gain") - return val # type: ignore + return val # type: ignore @peak_gain.setter - def peak_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Gain={value}"]) + def peak_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Peak Gain={value}"]) class BoresightOption(Enum): - XAXIS = "+X Axis" - YAXIS = "+Y Axis" - ZAXIS = "+Z Axis" + XAXIS = "+X Axis" # eslint-disable-line no-eval + YAXIS = "+Y Axis" # eslint-disable-line no-eval + ZAXIS = "+Z Axis" # eslint-disable-line no-eval @property def boresight(self) -> BoresightOption: """Boresight Select peak beam direction in local coordinates - """ + """ val = self._get_property("Boresight") val = self.BoresightOption[val] - return val # type: ignore + return val # type: ignore @boresight.setter def boresight(self, value: BoresightOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Boresight={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Boresight={value.value}"]) @property def vertical_beamwidth(self) -> float: @@ -266,11 +288,13 @@ def vertical_beamwidth(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("Vertical Beamwidth") - return val # type: ignore + return val # type: ignore @vertical_beamwidth.setter - def vertical_beamwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Beamwidth={value}"]) + def vertical_beamwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Beamwidth={value}"]) @property def horizontal_beamwidth(self) -> float: @@ -280,11 +304,13 @@ def horizontal_beamwidth(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("Horizontal Beamwidth") - return val # type: ignore + return val # type: ignore @horizontal_beamwidth.setter - def horizontal_beamwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Beamwidth={value}"]) + def horizontal_beamwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Beamwidth={value}"]) @property def extra_sidelobe(self) -> bool: @@ -294,11 +320,13 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return val # type: ignore + return val # type: ignore @extra_sidelobe.setter def extra_sidelobe(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Extra Sidelobe={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Extra Sidelobe={value}"]) @property def first_sidelobe_level(self) -> float: @@ -309,11 +337,13 @@ def first_sidelobe_level(self) -> float: Value should be between 0 and 200. """ val = self._get_property("First Sidelobe Level") - return val # type: ignore + return val # type: ignore @first_sidelobe_level.setter - def first_sidelobe_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Level={value}"]) + def first_sidelobe_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Level={value}"]) @property def first_sidelobe_vert_bw(self) -> float: @@ -323,11 +353,13 @@ def first_sidelobe_vert_bw(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Vert. BW") - return val # type: ignore + return val # type: ignore @first_sidelobe_vert_bw.setter - def first_sidelobe_vert_bw(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Vert. BW={value}"]) + def first_sidelobe_vert_bw(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Vert. BW={value}"]) @property def first_sidelobe_hor_bw(self) -> float: @@ -337,11 +369,13 @@ def first_sidelobe_hor_bw(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Hor. BW") - return val # type: ignore + return val # type: ignore @first_sidelobe_hor_bw.setter - def first_sidelobe_hor_bw(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Hor. BW={value}"]) + def first_sidelobe_hor_bw(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Hor. BW={value}"]) @property def outerbacklobe_level(self) -> float: @@ -351,11 +385,13 @@ def outerbacklobe_level(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Outer/Backlobe Level") - return val # type: ignore + return val # type: ignore @outerbacklobe_level.setter - def outerbacklobe_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Outer/Backlobe Level={value}"]) + def outerbacklobe_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Outer/Backlobe Level={value}"]) @property def resonant_frequency(self) -> float: @@ -367,12 +403,14 @@ def resonant_frequency(self) -> float: """ val = self._get_property("Resonant Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @resonant_frequency.setter - def resonant_frequency(self, value: float | str): + def resonant_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resonant Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Resonant Frequency={value}"]) @property def slot_length(self) -> float: @@ -383,12 +421,14 @@ def slot_length(self) -> float: """ val = self._get_property("Slot Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @slot_length.setter - def slot_length(self, value: float | str): + def slot_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Slot Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Slot Length={value}"]) @property def mouth_width(self) -> float: @@ -399,12 +439,14 @@ def mouth_width(self) -> float: """ val = self._get_property("Mouth Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_width.setter - def mouth_width(self, value: float | str): + def mouth_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Width={value}"]) @property def mouth_height(self) -> float: @@ -415,12 +457,14 @@ def mouth_height(self) -> float: """ val = self._get_property("Mouth Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_height.setter - def mouth_height(self, value: float | str): + def mouth_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Height={value}"]) @property def waveguide_width(self) -> float: @@ -432,12 +476,14 @@ def waveguide_width(self) -> float: """ val = self._get_property("Waveguide Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @waveguide_width.setter - def waveguide_width(self, value: float | str): + def waveguide_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveguide Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Waveguide Width={value}"]) @property def width_flare_half_angle(self) -> float: @@ -448,11 +494,13 @@ def width_flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Width Flare Half-angle") - return val # type: ignore + return val # type: ignore @width_flare_half_angle.setter - def width_flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width Flare Half-angle={value}"]) + def width_flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Width Flare Half-angle={value}"]) @property def height_flare_half_angle(self) -> float: @@ -463,11 +511,13 @@ def height_flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Height Flare Half-angle") - return val # type: ignore + return val # type: ignore @height_flare_half_angle.setter - def height_flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height Flare Half-angle={value}"]) + def height_flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Height Flare Half-angle={value}"]) @property def mouth_diameter(self) -> float: @@ -478,12 +528,14 @@ def mouth_diameter(self) -> float: """ val = self._get_property("Mouth Diameter") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_diameter.setter - def mouth_diameter(self, value: float | str): + def mouth_diameter(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Diameter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Diameter={value}"]) @property def flare_half_angle(self) -> float: @@ -494,11 +546,13 @@ def flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Flare Half-angle") - return val # type: ignore + return val # type: ignore @flare_half_angle.setter - def flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flare Half-angle={value}"]) + def flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Flare Half-angle={value}"]) @property def vswr(self) -> float: @@ -509,71 +563,75 @@ def vswr(self) -> float: Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @vswr.setter - def vswr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) + def vswr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"VSWR={value}"]) class AntennaPolarizationOption(Enum): - VERTICAL = "Vertical" - HORIZONTAL = "Horizontal" - RHCP = "RHCP" - LHCP = "LHCP" + VERTICAL = "Vertical" # eslint-disable-line no-eval + HORIZONTAL = "Horizontal" # eslint-disable-line no-eval + RHCP = "RHCP" # eslint-disable-line no-eval + LHCP = "LHCP" # eslint-disable-line no-eval @property def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] - return val # type: ignore + return val # type: ignore @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Antenna Polarization={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna Polarization={value.value}"]) class CrossDipoleModeOption(Enum): - FREESTANDING = "Freestanding" - OVER_GROUND_PLANE = "Over Ground Plane" + FREESTANDING = "Freestanding" # eslint-disable-line no-eval + OVER_GROUND_PLANE = "Over Ground Plane" # eslint-disable-line no-eval @property def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode Choose the Cross Dipole type - """ + """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] - return val # type: ignore + return val # type: ignore @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Cross Dipole Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Cross Dipole Mode={value.value}"]) class CrossDipolePolarizationOption(Enum): - RHCP = "RHCP" - LHCP = "LHCP" + RHCP = "RHCP" # eslint-disable-line no-eval + LHCP = "LHCP" # eslint-disable-line no-eval @property def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] - return val # type: ignore + return val # type: ignore @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Cross Dipole Polarization={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Cross Dipole Polarization={value.value}"]) @property def override_height(self) -> bool: @@ -584,11 +642,13 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return val # type: ignore + return val # type: ignore @override_height.setter def override_height(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Override Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Override Height={value}"]) @property def offset_height(self) -> float: @@ -599,12 +659,14 @@ def offset_height(self) -> float: """ val = self._get_property("Offset Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @offset_height.setter - def offset_height(self, value: float | str): + def offset_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Offset Height={value}"]) @property def auto_height_offset(self) -> bool: @@ -615,11 +677,13 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return val # type: ignore + return val # type: ignore @auto_height_offset.setter def auto_height_offset(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Auto Height Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Auto Height Offset={value}"]) @property def conform__adjust_antenna(self) -> bool: @@ -629,11 +693,13 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return val # type: ignore + return val # type: ignore @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform / Adjust Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform / Adjust Antenna={value}"]) @property def element_offset(self): @@ -643,51 +709,55 @@ def element_offset(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Element Offset") - return val # type: ignore + return val # type: ignore @element_offset.setter def element_offset(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Element Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Element Offset={value}"]) class ConformtoPlatformOption(Enum): - NONE = "None" - ALONG_NORMAL = "Along Normal" - PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" + NONE = "None" # eslint-disable-line no-eval + ALONG_NORMAL = "Along Normal" # eslint-disable-line no-eval + PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" # eslint-disable-line no-eval @property def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform Select method of automated conforming applied after Element Offset - """ + """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] - return val # type: ignore + return val # type: ignore @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Conform to Platform={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform to Platform={value.value}"]) class ReferencePlaneOption(Enum): - XY_PLANE = "XY Plane" - YZ_PLANE = "YZ Plane" - ZX_PLANE = "ZX Plane" + XY_PLANE = "XY Plane" # eslint-disable-line no-eval + YZ_PLANE = "YZ Plane" # eslint-disable-line no-eval + ZX_PLANE = "ZX Plane" # eslint-disable-line no-eval @property def reference_plane(self) -> ReferencePlaneOption: """Reference Plane Select reference plane for determining original element heights - """ + """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] - return val # type: ignore + return val # type: ignore @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reference Plane={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reference Plane={value.value}"]) @property def conform_element_orientation(self) -> bool: @@ -698,13 +768,13 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return val # type: ignore + return val # type: ignore @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Conform Element Orientation={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform Element Orientation={value}"]) @property def show_axes(self) -> bool: @@ -714,11 +784,13 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def show_icon(self) -> bool: @@ -728,11 +800,13 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return val # type: ignore + return val # type: ignore @show_icon.setter def show_icon(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Icon={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Icon={value}"]) @property def size(self) -> float: @@ -742,11 +816,13 @@ def size(self) -> float: Value should be between 0.001 and 1. """ val = self._get_property("Size") - return val # type: ignore + return val # type: ignore @size.setter - def size(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Size={value}"]) + def size(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Size={value}"]) @property def color(self): @@ -756,29 +832,31 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def el_sample_interval(self) -> float: """El Sample Interval Space between elevation-angle samples of pattern - """ + """ val = self._get_property("El Sample Interval") - return val # type: ignore + return val # type: ignore @property def az_sample_interval(self) -> float: """Az Sample Interval Space between azimuth-angle samples of pattern - """ + """ val = self._get_property("Az Sample Interval") - return val # type: ignore + return val # type: ignore @property def has_frequency_domain(self) -> bool: @@ -788,34 +866,34 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return val # type: ignore + return val # type: ignore @property def frequency_domain(self): """Frequency Domain Frequency sample(s) defining antenna - """ + """ val = self._get_property("Frequency Domain") - return val # type: ignore + return val # type: ignore @property def number_of_electric_sources(self) -> int: """Number of Electric Sources Number of freestanding electric current sources defining antenna - """ + """ val = self._get_property("Number of Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources Number of freestanding magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_electric_sources(self) -> int: @@ -823,9 +901,9 @@ def number_of_imaged_electric_sources(self) -> int: Number of imaged, half-space radiating electric current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_magnetic_sources(self) -> int: @@ -833,9 +911,9 @@ def number_of_imaged_magnetic_sources(self) -> int: Number of imaged, half-space radiating magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def waveguide_height(self) -> float: @@ -843,35 +921,35 @@ def waveguide_height(self) -> float: Implied waveguide height (along local x-axis) where the flared horn walls meet the feed - """ + """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency Implied lowest operating frequency of pyramidal horn antenna - """ + """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency Implied lowest operating frequency of conical horn antenna - """ + """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class SWEModeTruncationOption(Enum): - DYNAMIC = "Dynamic" - FIXED_CUSTOM = "Fixed (Custom)" - NONE = "None" + DYNAMIC = "Dynamic" # eslint-disable-line no-eval + FIXED_CUSTOM = "Fixed (Custom)" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def swe_mode_truncation(self) -> SWEModeTruncationOption: @@ -879,16 +957,16 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: Select the method for stability-enhancing truncation of spherical wave expansion terms - """ + """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] - return val # type: ignore + return val # type: ignore @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"SWE Mode Truncation={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SWE Mode Truncation={value.value}"]) @property def max_n_index(self) -> int: @@ -898,24 +976,28 @@ def max_n_index(self) -> int: Value should be greater than 1. """ val = self._get_property("Max N Index") - return val # type: ignore + return val # type: ignore @max_n_index.setter def max_n_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max N Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max N Index={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) @property def show_composite_passband(self) -> bool: @@ -925,11 +1007,13 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return val # type: ignore + return val # type: ignore @show_composite_passband.setter def show_composite_passband(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Composite Passband={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Composite Passband={value}"]) @property def use_phase_center(self) -> bool: @@ -939,20 +1023,22 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return val # type: ignore + return val # type: ignore @use_phase_center.setter def use_phase_center(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Phase Center={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Phase Center={value}"]) @property def coordinate_systems(self) -> str: """Coordinate Systems Specifies the coordinate system for the phase center of this antenna - """ + """ val = self._get_property("Coordinate Systems") - return val # type: ignore + return val # type: ignore @property def phasecenterposition(self): @@ -962,7 +1048,7 @@ def phasecenterposition(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("PhaseCenterPosition") - return val # type: ignore + return val # type: ignore @property def phasecenterorientation(self): @@ -972,4 +1058,5 @@ def phasecenterorientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("PhaseCenterOrientation") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py index 0bf1460ea82..4778cb346c0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class AntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -51,7 +48,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -65,11 +62,13 @@ def passband_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Passband Loss") - return val # type: ignore + return val # type: ignore @passband_loss.setter - def passband_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Passband Loss={value}"]) + def passband_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Passband Loss={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -79,11 +78,13 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out of Band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out of Band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out of Band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -94,12 +95,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -110,12 +113,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -126,12 +131,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -142,22 +149,27 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index e86cf9d60d8..ea788832adf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Band(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +37,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -52,13 +48,15 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port={value}"]) @property def use_dd_1494_mode(self) -> bool: @@ -68,11 +66,13 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return val # type: ignore + return val # type: ignore @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use DD-1494 Mode={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use DD-1494 Mode={value}"]) @property def use_emission_designator(self) -> bool: @@ -82,43 +82,47 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return val # type: ignore + return val # type: ignore @use_emission_designator.setter def use_emission_designator(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Emission Designator={value}"]) @property def emission_designator(self) -> str: """Emission Designator Enter the Emission Designator to define the bandwidth and modulation - """ + """ val = self._get_property("Emission Designator") - return val # type: ignore + return val # type: ignore @emission_designator.setter def emission_designator(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Emission Designator={value}"]) @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW Channel Bandwidth based off the emission designator - """ + """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def emit_modulation_type(self) -> str: """EMIT Modulation Type Modulation based off the emission designator - """ + """ val = self._get_property("EMIT Modulation Type") - return val # type: ignore + return val # type: ignore @property def override_emission_designator_bw(self) -> bool: @@ -129,13 +133,13 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return val # type: ignore + return val # type: ignore @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Override Emission Designator BW={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Override Emission Designator BW={value}"]) @property def channel_bandwidth(self) -> float: @@ -146,39 +150,43 @@ def channel_bandwidth(self) -> float: """ val = self._get_property("Channel Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_bandwidth.setter - def channel_bandwidth(self, value: float | str): + def channel_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Bandwidth={value}"]) class ModulationOption(Enum): - GENERIC = "Generic" - AM = "AM" - LSB = "LSB" - USB = "USB" - FM = "FM" - FSK = "FSK" - MSK = "MSK" - PSK = "PSK" - QAM = "QAM" - APSK = "APSK" - RADAR = "Radar" + GENERIC = "Generic" # eslint-disable-line no-eval + AM = "AM" # eslint-disable-line no-eval + LSB = "LSB" # eslint-disable-line no-eval + USB = "USB" # eslint-disable-line no-eval + FM = "FM" # eslint-disable-line no-eval + FSK = "FSK" # eslint-disable-line no-eval + MSK = "MSK" # eslint-disable-line no-eval + PSK = "PSK" # eslint-disable-line no-eval + QAM = "QAM" # eslint-disable-line no-eval + APSK = "APSK" # eslint-disable-line no-eval + RADAR = "Radar" # eslint-disable-line no-eval @property def modulation(self) -> ModulationOption: """Modulation Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Modulation") val = self.ModulationOption[val] - return val # type: ignore + return val # type: ignore @modulation.setter def modulation(self, value: ModulationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation={value.value}"]) @property def max_modulating_freq(self) -> float: @@ -189,12 +197,14 @@ def max_modulating_freq(self) -> float: """ val = self._get_property("Max Modulating Freq.") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_modulating_freq.setter - def max_modulating_freq(self, value: float | str): + def max_modulating_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Modulating Freq.={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Modulating Freq.={value}"]) @property def modulation_index(self) -> float: @@ -204,11 +214,13 @@ def modulation_index(self) -> float: Value should be between 0.01 and 1. """ val = self._get_property("Modulation Index") - return val # type: ignore + return val # type: ignore @modulation_index.setter - def modulation_index(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Index={value}"]) + def modulation_index(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation Index={value}"]) @property def freq_deviation(self) -> float: @@ -219,12 +231,14 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation.setter - def freq_deviation(self, value: float | str): + def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation={value}"]) @property def bit_rate(self) -> float: @@ -235,12 +249,14 @@ def bit_rate(self) -> float: """ val = self._get_property("Bit Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @bit_rate.setter - def bit_rate(self, value: float | str): + def bit_rate(self, value : float|str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bit Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bit Rate={value}"]) @property def sidelobes(self) -> int: @@ -250,110 +266,122 @@ def sidelobes(self) -> int: Value should be greater than 0. """ val = self._get_property("Sidelobes") - return val # type: ignore + return val # type: ignore @sidelobes.setter def sidelobes(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sidelobes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sidelobes={value}"]) @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation FSK frequency deviation: helps determine spectral profile Value should be greater than 1. """ val = self._get_property("Freq. Deviation ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation_.setter - def freq_deviation_(self, value: float | str): + def freq_deviation_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation ={value}"]) class PSKTypeOption(Enum): - BPSK = "BPSK" - QPSK = "QPSK" - PSK_8 = "PSK-8" - PSK_16 = "PSK-16" - PSK_32 = "PSK-32" - PSK_64 = "PSK-64" + BPSK = "BPSK" # eslint-disable-line no-eval + QPSK = "QPSK" # eslint-disable-line no-eval + PSK_8 = "PSK-8" # eslint-disable-line no-eval + PSK_16 = "PSK-16" # eslint-disable-line no-eval + PSK_32 = "PSK-32" # eslint-disable-line no-eval + PSK_64 = "PSK-64" # eslint-disable-line no-eval @property def psk_type(self) -> PSKTypeOption: """PSK Type PSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] - return val # type: ignore + return val # type: ignore @psk_type.setter def psk_type(self, value: PSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"PSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"PSK Type={value.value}"]) class FSKTypeOption(Enum): - FSK_2 = "FSK-2" - FSK_4 = "FSK-4" - FSK_8 = "FSK-8" + FSK_2 = "FSK-2" # eslint-disable-line no-eval + FSK_4 = "FSK-4" # eslint-disable-line no-eval + FSK_8 = "FSK-8" # eslint-disable-line no-eval @property def fsk_type(self) -> FSKTypeOption: """FSK Type FSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] - return val # type: ignore + return val # type: ignore @fsk_type.setter def fsk_type(self, value: FSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FSK Type={value.value}"]) class QAMTypeOption(Enum): - QAM_4 = "QAM-4" - QAM_16 = "QAM-16" - QAM_64 = "QAM-64" - QAM_256 = "QAM-256" - QAM_1024 = "QAM-1024" + QAM_4 = "QAM-4" # eslint-disable-line no-eval + QAM_16 = "QAM-16" # eslint-disable-line no-eval + QAM_64 = "QAM-64" # eslint-disable-line no-eval + QAM_256 = "QAM-256" # eslint-disable-line no-eval + QAM_1024 = "QAM-1024" # eslint-disable-line no-eval @property def qam_type(self) -> QAMTypeOption: """QAM Type QAM modulation order: helps determine spectral profile - """ + """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] - return val # type: ignore + return val # type: ignore @qam_type.setter def qam_type(self, value: QAMTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"QAM Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"QAM Type={value.value}"]) class APSKTypeOption(Enum): - APSK_4 = "APSK-4" - APSK_16 = "APSK-16" - APSK_64 = "APSK-64" - APSK_256 = "APSK-256" - APSK_1024 = "APSK-1024" + APSK_4 = "APSK-4" # eslint-disable-line no-eval + APSK_16 = "APSK-16" # eslint-disable-line no-eval + APSK_64 = "APSK-64" # eslint-disable-line no-eval + APSK_256 = "APSK-256" # eslint-disable-line no-eval + APSK_1024 = "APSK-1024" # eslint-disable-line no-eval @property def apsk_type(self) -> APSKTypeOption: """APSK Type APSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] - return val # type: ignore + return val # type: ignore @apsk_type.setter def apsk_type(self, value: APSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"APSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"APSK Type={value.value}"]) @property def start_frequency(self) -> float: @@ -364,12 +392,14 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -380,12 +410,14 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -396,12 +428,14 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_spacing.setter - def channel_spacing(self, value: float | str): + def channel_spacing(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Spacing={value}"]) @property def tx_offset(self) -> float: @@ -412,33 +446,37 @@ def tx_offset(self) -> float: """ val = self._get_property("Tx Offset") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @tx_offset.setter - def tx_offset(self, value: float | str): + def tx_offset(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Offset={value}"]) class RadarTypeOption(Enum): - CW = "CW" - FM_CW = "FM-CW" - FM_PULSE = "FM Pulse" - NON_FM_PULSE = "Non-FM Pulse" - PHASE_CODED = "Phase Coded" + CW = "CW" # eslint-disable-line no-eval + FM_CW = "FM-CW" # eslint-disable-line no-eval + FM_PULSE = "FM Pulse" # eslint-disable-line no-eval + NON_FM_PULSE = "Non-FM Pulse" # eslint-disable-line no-eval + PHASE_CODED = "Phase Coded" # eslint-disable-line no-eval @property def radar_type(self) -> RadarTypeOption: """Radar Type Radar type: helps determine spectral profile - """ + """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] - return val # type: ignore + return val # type: ignore @radar_type.setter def radar_type(self, value: RadarTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radar Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Radar Type={value.value}"]) @property def hopping_radar(self) -> bool: @@ -448,11 +486,13 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return val # type: ignore + return val # type: ignore @hopping_radar.setter def hopping_radar(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hopping Radar={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hopping Radar={value}"]) @property def post_october_2020_procurement(self) -> bool: @@ -463,13 +503,13 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return val # type: ignore + return val # type: ignore @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Post October 2020 Procurement={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Post October 2020 Procurement={value}"]) @property def hop_range_min_freq(self) -> float: @@ -480,12 +520,14 @@ def hop_range_min_freq(self) -> float: """ val = self._get_property("Hop Range Min Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @hop_range_min_freq.setter - def hop_range_min_freq(self, value: float | str): + def hop_range_min_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Min Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hop Range Min Freq={value}"]) @property def hop_range_max_freq(self) -> float: @@ -496,12 +538,14 @@ def hop_range_max_freq(self) -> float: """ val = self._get_property("Hop Range Max Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @hop_range_max_freq.setter - def hop_range_max_freq(self, value: float | str): + def hop_range_max_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Max Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hop Range Max Freq={value}"]) @property def pulse_duration(self) -> float: @@ -512,12 +556,14 @@ def pulse_duration(self) -> float: """ val = self._get_property("Pulse Duration") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_duration.setter - def pulse_duration(self, value: float | str): + def pulse_duration(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Duration={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Duration={value}"]) @property def pulse_rise_time(self) -> float: @@ -528,12 +574,14 @@ def pulse_rise_time(self) -> float: """ val = self._get_property("Pulse Rise Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_rise_time.setter - def pulse_rise_time(self, value: float | str): + def pulse_rise_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Rise Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Rise Time={value}"]) @property def pulse_fall_time(self) -> float: @@ -544,12 +592,14 @@ def pulse_fall_time(self) -> float: """ val = self._get_property("Pulse Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_fall_time.setter - def pulse_fall_time(self, value: float | str): + def pulse_fall_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Fall Time={value}"]) @property def pulse_repetition_rate(self) -> float: @@ -559,11 +609,13 @@ def pulse_repetition_rate(self) -> float: Value should be greater than 1. """ val = self._get_property("Pulse Repetition Rate") - return val # type: ignore + return val # type: ignore @pulse_repetition_rate.setter - def pulse_repetition_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Repetition Rate={value}"]) + def pulse_repetition_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Repetition Rate={value}"]) @property def number_of_chips(self) -> float: @@ -573,11 +625,13 @@ def number_of_chips(self) -> float: Value should be greater than 1. """ val = self._get_property("Number of Chips") - return val # type: ignore + return val # type: ignore @number_of_chips.setter - def number_of_chips(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Chips={value}"]) + def number_of_chips(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Chips={value}"]) @property def pulse_compression_ratio(self) -> float: @@ -587,11 +641,13 @@ def pulse_compression_ratio(self) -> float: Value should be greater than 1. """ val = self._get_property("Pulse Compression Ratio") - return val # type: ignore + return val # type: ignore @pulse_compression_ratio.setter - def pulse_compression_ratio(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Compression Ratio={value}"]) + def pulse_compression_ratio(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Compression Ratio={value}"]) @property def fm_chirp_period(self) -> float: @@ -602,12 +658,14 @@ def fm_chirp_period(self) -> float: """ val = self._get_property("FM Chirp Period") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @fm_chirp_period.setter - def fm_chirp_period(self, value: float | str): + def fm_chirp_period(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Chirp Period={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Chirp Period={value}"]) @property def fm_freq_deviation(self) -> float: @@ -618,12 +676,14 @@ def fm_freq_deviation(self) -> float: """ val = self._get_property("FM Freq Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @fm_freq_deviation.setter - def fm_freq_deviation(self, value: float | str): + def fm_freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Freq Deviation={value}"]) @property def fm_freq_dev_bandwidth(self) -> float: @@ -635,9 +695,12 @@ def fm_freq_dev_bandwidth(self) -> float: """ val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value: float | str): + def fm_freq_dev_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Dev Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Freq Dev Bandwidth={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py index 4f0f26c1b0b..65242e7c8a1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class BandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -51,3 +48,4 @@ def duplicate(self, new_name): def delete(self): """Delete this node""" self._delete() + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py index 1ed597b9045..dcca6fad6dc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class BandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,44 +52,50 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) class TxorRxOption(Enum): - TX = "Tx" - RX = "Rx" + TX = "Tx" # eslint-disable-line no-eval + RX = "Rx" # eslint-disable-line no-eval @property def tx_or_rx(self) -> TxorRxOption: """Tx or Rx Specifies whether the trace is a Tx or Rx channel - """ + """ val = self._get_property("Tx or Rx") val = self.TxorRxOption[val] - return val # type: ignore + return val # type: ignore @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx or Rx={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx or Rx={value.value}"]) @property def channel_frequency(self): """Channel Frequency Select band channel frequency to display - """ + """ val = self._get_property("Channel Frequency") - return val # type: ignore + return val # type: ignore @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: @@ -101,10 +103,10 @@ def transmit_frequency(self) -> float: The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset) - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def visible(self) -> bool: @@ -114,11 +116,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -128,46 +132,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -177,11 +187,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -191,42 +203,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -236,11 +252,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -250,11 +268,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -264,11 +284,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -279,8 +301,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py index 91894049ece..e6acada25f8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class CADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,37 +54,39 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore class ModelTypeOption(Enum): - PLATE = "Plate" - BOX = "Box" - DIHEDRAL = "Dihedral" - TRIHEDRAL = "Trihedral" - CYLINDER = "Cylinder" - TAPERED_CYLINDER = "Tapered Cylinder" - CONE = "Cone" - SPHERE = "Sphere" - ELLIPSOID = "Ellipsoid" - CIRCULAR_PLATE = "Circular Plate" - PARABOLA = "Parabola" - PRISM = "Prism" - TAPERED_PRISM = "Tapered Prism" - TOPHAT = "Tophat" + PLATE = "Plate" # eslint-disable-line no-eval + BOX = "Box" # eslint-disable-line no-eval + DIHEDRAL = "Dihedral" # eslint-disable-line no-eval + TRIHEDRAL = "Trihedral" # eslint-disable-line no-eval + CYLINDER = "Cylinder" # eslint-disable-line no-eval + TAPERED_CYLINDER = "Tapered Cylinder" # eslint-disable-line no-eval + CONE = "Cone" # eslint-disable-line no-eval + SPHERE = "Sphere" # eslint-disable-line no-eval + ELLIPSOID = "Ellipsoid" # eslint-disable-line no-eval + CIRCULAR_PLATE = "Circular Plate" # eslint-disable-line no-eval + PARABOLA = "Parabola" # eslint-disable-line no-eval + PRISM = "Prism" # eslint-disable-line no-eval + TAPERED_PRISM = "Tapered Prism" # eslint-disable-line no-eval + TOPHAT = "Tophat" # eslint-disable-line no-eval @property def model_type(self) -> ModelTypeOption: """Model Type Select type of parametric model to create - """ + """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] - return val # type: ignore + return val # type: ignore @model_type.setter def model_type(self, value: ModelTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Model Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Model Type={value.value}"]) @property def length(self) -> float: @@ -99,12 +97,14 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @length.setter - def length(self, value: float | str): + def length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Length={value}"]) @property def width(self) -> float: @@ -115,12 +115,14 @@ def width(self) -> float: """ val = self._get_property("Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @width.setter - def width(self, value: float | str): + def width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Width={value}"]) @property def height(self) -> float: @@ -131,12 +133,14 @@ def height(self) -> float: """ val = self._get_property("Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @height.setter - def height(self, value: float | str): + def height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Height={value}"]) @property def angle(self) -> float: @@ -146,11 +150,13 @@ def angle(self) -> float: Value should be between 0 and 360. """ val = self._get_property("Angle") - return val # type: ignore + return val # type: ignore @angle.setter - def angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Angle={value}"]) + def angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Angle={value}"]) @property def top_side(self) -> float: @@ -161,12 +167,14 @@ def top_side(self) -> float: """ val = self._get_property("Top Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @top_side.setter - def top_side(self, value: float | str): + def top_side(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Top Side={value}"]) @property def top_radius(self) -> float: @@ -177,12 +185,14 @@ def top_radius(self) -> float: """ val = self._get_property("Top Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @top_radius.setter - def top_radius(self, value: float | str): + def top_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Top Radius={value}"]) @property def side(self) -> float: @@ -193,12 +203,14 @@ def side(self) -> float: """ val = self._get_property("Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @side.setter - def side(self, value: float | str): + def side(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Side={value}"]) @property def radius(self) -> float: @@ -209,12 +221,14 @@ def radius(self) -> float: """ val = self._get_property("Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @radius.setter - def radius(self, value: float | str): + def radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Radius={value}"]) @property def base_radius(self) -> float: @@ -225,12 +239,14 @@ def base_radius(self) -> float: """ val = self._get_property("Base Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @base_radius.setter - def base_radius(self, value: float | str): + def base_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Radius={value}"]) @property def center_radius(self) -> float: @@ -241,12 +257,14 @@ def center_radius(self) -> float: """ val = self._get_property("Center Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @center_radius.setter - def center_radius(self, value: float | str): + def center_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Center Radius={value}"]) @property def x_axis_ellipsoid_radius(self) -> float: @@ -257,12 +275,14 @@ def x_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("X Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value: float | str): + def x_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X Axis Ellipsoid Radius={value}"]) @property def y_axis_ellipsoid_radius(self) -> float: @@ -273,12 +293,14 @@ def y_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Y Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value: float | str): + def y_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y Axis Ellipsoid Radius={value}"]) @property def z_axis_ellipsoid_radius(self) -> float: @@ -289,12 +311,14 @@ def z_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Z Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value: float | str): + def z_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Z Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Z Axis Ellipsoid Radius={value}"]) @property def focal_length(self) -> float: @@ -305,27 +329,31 @@ def focal_length(self) -> float: """ val = self._get_property("Focal Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @focal_length.setter - def focal_length(self, value: float | str): + def focal_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Focal Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Focal Length={value}"]) @property def offset(self) -> float: """Offset Offset of parabolic reflector - """ + """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @offset.setter - def offset(self, value: float | str): + def offset(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Offset={value}"]) @property def x_direction_taper(self) -> float: @@ -336,11 +364,13 @@ def x_direction_taper(self) -> float: Value should be greater than 0. """ val = self._get_property("X Direction Taper") - return val # type: ignore + return val # type: ignore @x_direction_taper.setter - def x_direction_taper(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Direction Taper={value}"]) + def x_direction_taper(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X Direction Taper={value}"]) @property def y_direction_taper(self) -> float: @@ -351,11 +381,13 @@ def y_direction_taper(self) -> float: Value should be greater than 0. """ val = self._get_property("Y Direction Taper") - return val # type: ignore + return val # type: ignore @y_direction_taper.setter - def y_direction_taper(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Direction Taper={value}"]) + def y_direction_taper(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y Direction Taper={value}"]) @property def prism_direction(self): @@ -365,11 +397,13 @@ def prism_direction(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Prism Direction") - return val # type: ignore + return val # type: ignore @prism_direction.setter def prism_direction(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Prism Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Prism Direction={value}"]) @property def closed_top(self) -> bool: @@ -379,11 +413,13 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return val # type: ignore + return val # type: ignore @closed_top.setter def closed_top(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Top={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Closed Top={value}"]) @property def closed_base(self) -> bool: @@ -393,11 +429,13 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return val # type: ignore + return val # type: ignore @closed_base.setter def closed_base(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Base={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Closed Base={value}"]) @property def mesh_density(self) -> int: @@ -408,11 +446,13 @@ def mesh_density(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Mesh Density") - return val # type: ignore + return val # type: ignore @mesh_density.setter def mesh_density(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Density={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mesh Density={value}"]) @property def use_symmetric_mesh(self) -> bool: @@ -423,29 +463,33 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return val # type: ignore + return val # type: ignore @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Symmetric Mesh={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Symmetric Mesh={value}"]) class MeshOptionOption(Enum): - IMPROVED = "Improved" - LEGACY = "Legacy" + IMPROVED = "Improved" # eslint-disable-line no-eval + LEGACY = "Legacy" # eslint-disable-line no-eval @property def mesh_option(self) -> MeshOptionOption: """Mesh Option Select from different meshing options - """ + """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] - return val # type: ignore + return val # type: ignore @mesh_option.setter def mesh_option(self, value: MeshOptionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Option={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mesh Option={value.value}"]) @property def coating_index(self) -> int: @@ -455,11 +499,13 @@ def coating_index(self) -> int: Value should be between 0 and 100000. """ val = self._get_property("Coating Index") - return val # type: ignore + return val # type: ignore @coating_index.setter def coating_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Coating Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Coating Index={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -470,13 +516,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): @@ -486,11 +532,13 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): @@ -500,29 +548,33 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" - AZ_EL_TWIST = "Az-El-Twist" + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -532,11 +584,13 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): @@ -546,11 +600,13 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def visible(self) -> bool: @@ -560,31 +616,35 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) class RenderModeOption(Enum): - FLAT_SHADED = "Flat-Shaded" - WIRE_FRAME = "Wire-Frame" - HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" - OUTLINE = "Outline" + FLAT_SHADED = "Flat-Shaded" # eslint-disable-line no-eval + WIRE_FRAME = "Wire-Frame" # eslint-disable-line no-eval + HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" # eslint-disable-line no-eval + OUTLINE = "Outline" # eslint-disable-line no-eval @property def render_mode(self) -> RenderModeOption: """Render Mode Select drawing style for surfaces - """ + """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] - return val # type: ignore + return val # type: ignore @render_mode.setter def render_mode(self, value: RenderModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Render Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Render Mode={value.value}"]) @property def show_axes(self) -> bool: @@ -594,11 +654,13 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def min(self): @@ -608,7 +670,7 @@ def min(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Min") - return val # type: ignore + return val # type: ignore @property def max(self): @@ -618,16 +680,16 @@ def max(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Max") - return val # type: ignore + return val # type: ignore @property def number_of_surfaces(self) -> int: """Number of Surfaces Number of surfaces in the model - """ + """ val = self._get_property("Number of Surfaces") - return val # type: ignore + return val # type: ignore @property def color(self): @@ -637,21 +699,26 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index 017a4b20261..8cf691e505a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Cable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -53,11 +49,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,29 +65,33 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" - CONSTANT_LOSS = "Constant Loss" - COAXIAL_CABLE = "Coaxial Cable" + BY_FILE = "By File" # eslint-disable-line no-eval + CONSTANT_LOSS = "Constant Loss" # eslint-disable-line no-eval + COAXIAL_CABLE = "Coaxial Cable" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -97,14 +99,16 @@ def type(self) -> TypeOption: Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def length(self) -> float: @@ -115,12 +119,14 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @length.setter - def length(self, value: float | str): + def length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Length={value}"]) @property def loss_per_length(self) -> float: @@ -130,11 +136,13 @@ def loss_per_length(self) -> float: Value should be between 0 and 20. """ val = self._get_property("Loss Per Length") - return val # type: ignore + return val # type: ignore @loss_per_length.setter - def loss_per_length(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Loss Per Length={value}"]) + def loss_per_length(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Loss Per Length={value}"]) @property def measurement_length(self) -> float: @@ -145,12 +153,14 @@ def measurement_length(self) -> float: """ val = self._get_property("Measurement Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @measurement_length.setter - def measurement_length(self, value: float | str): + def measurement_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Length={value}"]) @property def resistive_loss_constant(self) -> float: @@ -160,11 +170,13 @@ def resistive_loss_constant(self) -> float: Value should be between 0 and 2. """ val = self._get_property("Resistive Loss Constant") - return val # type: ignore + return val # type: ignore @resistive_loss_constant.setter - def resistive_loss_constant(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resistive Loss Constant={value}"]) + def resistive_loss_constant(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Resistive Loss Constant={value}"]) @property def dielectric_loss_constant(self) -> float: @@ -174,17 +186,20 @@ def dielectric_loss_constant(self) -> float: Value should be between 0 and 1. """ val = self._get_property("Dielectric Loss Constant") - return val # type: ignore + return val # type: ignore @dielectric_loss_constant.setter - def dielectric_loss_constant(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Dielectric Loss Constant={value}"]) + def dielectric_loss_constant(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Dielectric Loss Constant={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py index e6ebf15eefe..30d3308da3a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py @@ -1,32 +1,30 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class CategoriesViewNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index 4d9f9e94ee4..eb6d0913eb1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Circulator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -53,11 +49,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,28 +65,32 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" - PARAMETRIC = "Parametric" + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -96,32 +98,36 @@ def type(self) -> TypeOption: Type of circulator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" - ANTENNA_SIDE = "Antenna Side" + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the circulator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -131,11 +137,13 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -146,11 +154,13 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -160,11 +170,13 @@ def reverse_isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -175,11 +187,13 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -189,11 +203,13 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -204,12 +220,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -220,12 +238,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -236,12 +256,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -252,18 +274,21 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py index f55a0825ac5..2206a3a19ae 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class CouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,11 +41,13 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def ports(self): @@ -56,10 +55,13 @@ def ports(self): Maps each port in the link to an antenna in the project "A list of values." - """ + """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ports={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py index 957e66d5cc1..67664548b6e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class CouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,23 +48,29 @@ def delete(self): @property def transmitter(self) -> EmitNode: - """Transmitter""" + """Transmitter + """ val = self._get_property("Transmitter") - return val # type: ignore + return val # type: ignore @transmitter.setter def transmitter(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Transmitter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Transmitter={value}"]) @property def receiver(self) -> EmitNode: - """Receiver""" + """Receiver + """ val = self._get_property("Receiver") - return val # type: ignore + return val # type: ignore @receiver.setter def receiver(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Receiver={value}"]) @property def data_source(self): @@ -76,13 +78,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -92,11 +96,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -106,46 +112,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -155,11 +167,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -169,42 +183,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -214,11 +232,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -228,11 +248,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -242,11 +264,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -257,11 +281,13 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def highlight_regions(self) -> bool: @@ -271,11 +297,13 @@ def highlight_regions(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Highlight Regions") - return val # type: ignore + return val # type: ignore @highlight_regions.setter def highlight_regions(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highlight Regions={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Highlight Regions={value}"]) @property def show_region_labels(self) -> bool: @@ -285,11 +313,13 @@ def show_region_labels(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Region Labels") - return val # type: ignore + return val # type: ignore @show_region_labels.setter def show_region_labels(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Region Labels={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Region Labels={value}"]) @property def font(self): @@ -299,11 +329,13 @@ def font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): @@ -313,11 +345,13 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): @@ -327,11 +361,13 @@ def background_color(self): Color should be in RGBA form: #AARRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: @@ -341,11 +377,13 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return val # type: ignore + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: @@ -355,11 +393,13 @@ def border_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): @@ -369,8 +409,11 @@ def border_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py index 088945373d9..905f354f567 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class CouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -33,7 +30,7 @@ def __init__(self, oDesign, result_id, node_id): def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" - return self._import(file_name, "TouchstoneCoupling") + return self._import(file_name,"TouchstoneCoupling") def add_custom_coupling(self): """Add a new node to define custom coupling between antennas""" @@ -80,11 +77,13 @@ def minimum_allowed_coupling(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Minimum Allowed Coupling") - return val # type: ignore + return val # type: ignore @minimum_allowed_coupling.setter - def minimum_allowed_coupling(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Allowed Coupling={value}"]) + def minimum_allowed_coupling(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minimum Allowed Coupling={value}"]) @property def global_default_coupling(self) -> float: @@ -94,17 +93,20 @@ def global_default_coupling(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Global Default Coupling") - return val # type: ignore + return val # type: ignore @global_default_coupling.setter - def global_default_coupling(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Global Default Coupling={value}"]) + def global_default_coupling(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Global Default Coupling={value}"]) @property def antenna_tags(self) -> str: """Antenna Tags All tags currently used by all antennas in the project - """ + """ val = self._get_property("Antenna Tags") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py index 9292bf109fc..0435bc42945 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class CustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,7 +35,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def rename(self, new_name): """Rename this node""" @@ -54,11 +51,11 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Value (dB): + "Value (dB): Value should be between -1000 and 0. """ return self._get_table_data() @@ -75,37 +72,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -115,11 +118,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -129,21 +134,26 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py index 8dbfdc73e1b..51f65b55203 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class EmiPlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,11 +54,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def attached(self): @@ -70,31 +68,33 @@ def attached(self): Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False) - """ + """ val = self._get_property("Attached") - return val # type: ignore + return val # type: ignore @attached.setter def attached(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Attached={value}"]) @property def position_x(self) -> float: """Position X Position of the marker on the X-axis (frequency axis). - """ + """ val = self._get_property("Position X") - return val # type: ignore + return val # type: ignore @property def position_y(self) -> float: """Position Y Position of the marker on the Y-axis (result axis). - """ + """ val = self._get_property("Position Y") - return val # type: ignore + return val # type: ignore @property def floating_label(self) -> bool: @@ -105,11 +105,13 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return val # type: ignore + return val # type: ignore @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -120,11 +122,13 @@ def position_from_left(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Position from Left") - return val # type: ignore + return val # type: ignore @position_from_left.setter - def position_from_left(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) + def position_from_left(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -135,83 +139,91 @@ def position_from_top(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Position from Top") - return val # type: ignore + return val # type: ignore @position_from_top.setter - def position_from_top(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) + def position_from_top(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Top={value}"]) @property def text(self) -> str: """Text Set the text of the label - """ + """ val = self._get_property("Text") - return val # type: ignore + return val # type: ignore @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text={value}"]) class HorizontalPositionOption(Enum): - LEFT = "Left" - RIGHT = "Right" - CENTER = "Center" + LEFT = "Left" # eslint-disable-line no-eval + RIGHT = "Right" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position Specify horizontal position of the label as compared to the symbol - """ + """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] - return val # type: ignore + return val # type: ignore @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Horizontal Position={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Position={value.value}"]) class VerticalPositionOption(Enum): - TOP = "Top" - BOTTOM = "Bottom" - CENTER = "Center" + TOP = "Top" # eslint-disable-line no-eval + BOTTOM = "Bottom" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def vertical_position(self) -> VerticalPositionOption: """Vertical Position Specify vertical position of the label as compared to the symbol - """ + """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] - return val # type: ignore + return val # type: ignore @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): - LEFT = "Left" - RIGHT = "Right" - CENTER = "Center" + LEFT = "Left" # eslint-disable-line no-eval + RIGHT = "Right" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def text_alignment(self) -> TextAlignmentOption: """Text Alignment Specify justification applied to multi-line text - """ + """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] - return val # type: ignore + return val # type: ignore @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text Alignment={value.value}"]) @property def font(self): @@ -221,11 +233,13 @@ def font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): @@ -235,11 +249,13 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): @@ -249,11 +265,13 @@ def background_color(self): Color should be in RGBA form: #AARRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: @@ -263,11 +281,13 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return val # type: ignore + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: @@ -277,11 +297,13 @@ def border_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): @@ -291,43 +313,47 @@ def border_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" - ARROW = "Arrow" + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval + ARROW = "Arrow" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Specify symbol displayed next to the label - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -337,11 +363,13 @@ def arrow_direction(self) -> int: Value should be between -360 and 360. """ val = self._get_property("Arrow Direction") - return val # type: ignore + return val # type: ignore @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -351,11 +379,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -365,11 +395,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -379,11 +411,13 @@ def line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -394,8 +428,11 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return val # type: ignore + return val # type: ignore @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py index 861bd337027..0dad090442d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class EmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,34 +38,36 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class GroundPlaneNormalOption(Enum): - X_AXIS = "X Axis" - Y_AXIS = "Y Axis" - Z_AXIS = "Z Axis" + X_AXIS = "X Axis" # eslint-disable-line no-eval + Y_AXIS = "Y Axis" # eslint-disable-line no-eval + Z_AXIS = "Z Axis" # eslint-disable-line no-eval @property def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal Specifies the axis of the normal to the ground plane - """ + """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] - return val # type: ignore + return val # type: ignore @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ground Plane Normal={value.value}"]) @property def gp_position_along_normal(self) -> float: @@ -77,12 +75,15 @@ def gp_position_along_normal(self) -> float: Offset of ground plane in direction normal to the ground planes orientation - """ + """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @gp_position_along_normal.setter - def gp_position_along_normal(self, value: float | str): + def gp_position_along_normal(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GP Position Along Normal={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"GP Position Along Normal={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py index e6c1831baa3..3bf974dfdc4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,37 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,43 +116,49 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class TerrainCategoryOption(Enum): - TYPE_A = "Type A" - TYPE_B = "Type B" - TYPE_C = "Type C" + TYPE_A = "Type A" # eslint-disable-line no-eval + TYPE_B = "Type B" # eslint-disable-line no-eval + TYPE_C = "Type C" # eslint-disable-line no-eval @property def terrain_category(self) -> TerrainCategoryOption: """Terrain Category Specify the terrain category type for the Erceg model - """ + """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] - return val # type: ignore + return val # type: ignore @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Terrain Category={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Terrain Category={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -159,11 +169,13 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -174,11 +186,13 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -189,31 +203,35 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" - FAST_FADING_ONLY = "Fast Fading Only" - SHADOWING_ONLY = "Shadowing Only" - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -224,11 +242,13 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -238,11 +258,13 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -252,11 +274,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -267,11 +291,13 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -281,11 +307,13 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -296,11 +324,13 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -311,13 +341,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -327,11 +357,13 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -341,11 +373,13 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -355,10 +389,11 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index aac854c785c..9d62b1f2d08 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Filter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -53,11 +49,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,33 +65,37 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" - LOW_PASS = "Low Pass" - HIGH_PASS = "High Pass" - BAND_PASS = "Band Pass" - BAND_STOP = "Band Stop" - TUNABLE_BANDPASS = "Tunable Bandpass" - TUNABLE_BANDSTOP = "Tunable Bandstop" + BY_FILE = "By File" # eslint-disable-line no-eval + LOW_PASS = "Low Pass" # eslint-disable-line no-eval + HIGH_PASS = "High Pass" # eslint-disable-line no-eval + BAND_PASS = "Band Pass" # eslint-disable-line no-eval + BAND_STOP = "Band Stop" # eslint-disable-line no-eval + TUNABLE_BANDPASS = "Tunable Bandpass" # eslint-disable-line no-eval + TUNABLE_BANDSTOP = "Tunable Bandstop" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -101,14 +103,16 @@ def type(self) -> TypeOption: Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def insertion_loss(self) -> float: @@ -118,11 +122,13 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -132,11 +138,13 @@ def stop_band_attenuation(self) -> float: Value should be less than 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @stop_band_attenuation.setter - def stop_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -147,12 +155,14 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_pass_band.setter - def max_pass_band(self, value: float | str): + def max_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -163,12 +173,14 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_stop_band.setter - def min_stop_band(self, value: float | str): + def min_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -179,12 +191,14 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_stop_band.setter - def max_stop_band(self, value: float | str): + def max_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -195,12 +209,14 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_pass_band.setter - def min_pass_band(self, value: float | str): + def min_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -211,12 +227,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -227,12 +245,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -243,12 +263,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -259,108 +281,122 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff Lower cutoff frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff_.setter - def lower_cutoff_(self, value: float | str): + def lower_cutoff_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff ={value}"]) @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band Lower stop band frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band_.setter - def lower_stop_band_(self, value: float | str): + def lower_stop_band_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band ={value}"]) @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band Higher stop band frequency Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band_.setter - def higher_stop_band_(self, value: float | str): + def higher_stop_band_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band ={value}"]) @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff Higher cutoff frequency Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff_.setter - def higher_cutoff_(self, value: float | str): + def higher_cutoff_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff ={value}"]) @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency Lowest tuned frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lowest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lowest_tuned_frequency_.setter - def lowest_tuned_frequency_(self, value: float | str): + def lowest_tuned_frequency_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lowest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lowest Tuned Frequency ={value}"]) @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency Highest tuned frequency Value should be between 1 and 1e+11. """ val = self._get_property("Highest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @highest_tuned_frequency_.setter - def highest_tuned_frequency_(self, value: float | str): + def highest_tuned_frequency_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Highest Tuned Frequency ={value}"]) @property def percent_bandwidth(self) -> float: @@ -370,11 +406,13 @@ def percent_bandwidth(self) -> float: Value should be between 0.001 and 100. """ val = self._get_property("Percent Bandwidth") - return val # type: ignore + return val # type: ignore @percent_bandwidth.setter - def percent_bandwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percent Bandwidth={value}"]) + def percent_bandwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Percent Bandwidth={value}"]) @property def shape_factor(self) -> float: @@ -384,17 +422,20 @@ def shape_factor(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @shape_factor.setter - def shape_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) + def shape_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Shape Factor={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py index f26aca9f49f..c3961d9ada1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class FiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,37 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,43 +116,49 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): - URBAN_MICROCELL = "Urban Microcell" - URBAN_MACROCELL = "Urban Macrocell" - RURAL_MACROCELL = "Rural Macrocell" + URBAN_MICROCELL = "Urban Microcell" # eslint-disable-line no-eval + URBAN_MACROCELL = "Urban Macrocell" # eslint-disable-line no-eval + RURAL_MACROCELL = "Rural Macrocell" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment for the 5G channel model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def los(self) -> bool: @@ -158,11 +168,13 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return val # type: ignore + return val # type: ignore @los.setter def los(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"LOS={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"LOS={value}"]) @property def include_bpl(self) -> bool: @@ -172,29 +184,33 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return val # type: ignore + return val # type: ignore @include_bpl.setter def include_bpl(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include BPL={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include BPL={value}"]) class NYUBPLModelOption(Enum): - LOW_LOSS_MODEL = "Low-loss model" - HIGH_LOSS_MODEL = "High-loss model" + LOW_LOSS_MODEL = "Low-loss model" # eslint-disable-line no-eval + HIGH_LOSS_MODEL = "High-loss model" # eslint-disable-line no-eval @property def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model Specify the NYU Building Penetration Loss model - """ + """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] - return val # type: ignore + return val # type: ignore @nyu_bpl_model.setter def nyu_bpl_model(self, value: NYUBPLModelOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NYU BPL Model={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NYU BPL Model={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -205,11 +221,13 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -220,11 +238,13 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -235,31 +255,35 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" - FAST_FADING_ONLY = "Fast Fading Only" - SHADOWING_ONLY = "Shadowing Only" - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -270,11 +294,13 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -284,11 +310,13 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -298,11 +326,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -313,11 +343,13 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -327,11 +359,13 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -342,11 +376,13 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -357,13 +393,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -373,11 +409,13 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -387,11 +425,13 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -401,10 +441,11 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py index 1b3445369da..b7477eaa227 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class HataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,37 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,44 +116,50 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): - LARGE_CITY = "Large City" - SMALLMEDIUM_CITY = "Small/Medium City" - SUBURBAN = "Suburban" - RURAL = "Rural" + LARGE_CITY = "Large City" # eslint-disable-line no-eval + SMALLMEDIUM_CITY = "Small/Medium City" # eslint-disable-line no-eval + SUBURBAN = "Suburban" # eslint-disable-line no-eval + RURAL = "Rural" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Hata model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -160,11 +170,13 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -175,11 +187,13 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -190,31 +204,35 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" - FAST_FADING_ONLY = "Fast Fading Only" - SHADOWING_ONLY = "Shadowing Only" - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -225,11 +243,13 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -239,11 +259,13 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -253,11 +275,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -268,11 +292,13 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -282,11 +308,13 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -297,11 +325,13 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -312,13 +342,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -328,11 +358,13 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -342,11 +374,13 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -356,10 +390,11 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py index d6f8681e865..c814528151b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class IndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,13 +48,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Power Loss Coefficient: + "Power Loss Coefficient: Value should be between 0 and 100. - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): Value should be between 0 and 1000. """ return self._get_table_data() @@ -75,37 +71,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -115,11 +117,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -129,45 +133,51 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class BuildingTypeOption(Enum): - RESIDENTIAL_APARTMENT = "Residential Apartment" - RESIDENTIAL_HOUSE = "Residential House" - OFFICE_BUILDING = "Office Building" - COMMERCIAL_BUILDING = "Commercial Building" - CUSTOM_BUILDING = "Custom Building" + RESIDENTIAL_APARTMENT = "Residential Apartment" # eslint-disable-line no-eval + RESIDENTIAL_HOUSE = "Residential House" # eslint-disable-line no-eval + OFFICE_BUILDING = "Office Building" # eslint-disable-line no-eval + COMMERCIAL_BUILDING = "Commercial Building" # eslint-disable-line no-eval + CUSTOM_BUILDING = "Custom Building" # eslint-disable-line no-eval @property def building_type(self) -> BuildingTypeOption: """Building Type Specify the building type for the Indoor Propagation model - """ + """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] - return val # type: ignore + return val # type: ignore @building_type.setter def building_type(self, value: BuildingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Building Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Building Type={value.value}"]) @property def number_of_floors(self) -> int: @@ -177,11 +187,13 @@ def number_of_floors(self) -> int: Value should be between 1 and 3. """ val = self._get_property("Number of Floors") - return val # type: ignore + return val # type: ignore @number_of_floors.setter def number_of_floors(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Floors={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Floors={value}"]) @property def custom_fading_margin(self) -> float: @@ -192,11 +204,13 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -207,11 +221,13 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -222,31 +238,35 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" - FAST_FADING_ONLY = "Fast Fading Only" - SHADOWING_ONLY = "Shadowing Only" - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -257,11 +277,13 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -271,11 +293,13 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -285,11 +309,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -300,11 +326,13 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -314,11 +342,13 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -329,11 +359,13 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -344,13 +376,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -360,11 +392,13 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -374,11 +408,13 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -388,10 +424,11 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index 43eb51aba0f..f05c9803bda 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Isolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -53,11 +49,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,28 +65,32 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" - PARAMETRIC = "Parametric" + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -96,32 +98,36 @@ def type(self) -> TypeOption: Type of isolator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" - ANTENNA_SIDE = "Antenna Side" + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the isolator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -131,11 +137,13 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -146,11 +154,13 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -160,11 +170,13 @@ def reverse_isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -175,11 +187,13 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -189,11 +203,13 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -204,12 +220,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -220,12 +238,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -236,12 +256,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -252,18 +274,21 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py index ecc86a2a817..7856f8150fe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class LogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,37 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,47 +116,53 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): - FREE_SPACE = "Free Space" - URBAN = "Urban" - SHADOWED_URBAN = "Shadowed Urban" - BUILDING_LINE_OF_SIGHT = "Building Line of Sight" - BUILDING_OBSTRUCTED = "Building Obstructed" - FACTORY_OBSTRUCTED = "Factory Obstructed" - CUSTOM = "Custom" + FREE_SPACE = "Free Space" # eslint-disable-line no-eval + URBAN = "Urban" # eslint-disable-line no-eval + SHADOWED_URBAN = "Shadowed Urban" # eslint-disable-line no-eval + BUILDING_LINE_OF_SIGHT = "Building Line of Sight" # eslint-disable-line no-eval + BUILDING_OBSTRUCTED = "Building Obstructed" # eslint-disable-line no-eval + FACTORY_OBSTRUCTED = "Factory Obstructed" # eslint-disable-line no-eval + CUSTOM = "Custom" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Log Distance model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def path_loss_exponent(self) -> float: @@ -162,11 +172,13 @@ def path_loss_exponent(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Path Loss Exponent") - return val # type: ignore + return val # type: ignore @path_loss_exponent.setter - def path_loss_exponent(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Exponent={value}"]) + def path_loss_exponent(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Path Loss Exponent={value}"]) @property def custom_fading_margin(self) -> float: @@ -177,11 +189,13 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -192,11 +206,13 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -207,31 +223,35 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" - FAST_FADING_ONLY = "Fast Fading Only" - SHADOWING_ONLY = "Shadowing Only" - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -242,11 +262,13 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -256,11 +278,13 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -270,11 +294,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -285,11 +311,13 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -299,11 +327,13 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -314,11 +344,13 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -329,13 +361,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -345,11 +377,13 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -359,11 +393,13 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -373,10 +409,11 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py index d6e7164f6b4..69ab7a4bc34 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class MPlexBandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -51,18 +47,21 @@ def delete(self): self._delete() class PowerDirectionOption(Enum): - INTO_COMMON_PORTOUT_OF_COMMON_PORT = "Into Common Port|Out of Common Port" + INTO_COMMON_PORTOUT_OF_COMMON_PORT = "Into Common Port|Out of Common Port" # eslint-disable-line no-eval @property def power_direction(self) -> PowerDirectionOption: - """Power Direction""" + """Power Direction + """ val = self._get_property("Power Direction") val = self.PowerDirectionOption[val] - return val # type: ignore + return val # type: ignore @power_direction.setter def power_direction(self, value: PowerDirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Power Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Power Direction={value.value}"]) @property def data_source(self): @@ -70,13 +69,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -86,11 +87,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -100,46 +103,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -149,11 +158,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -163,42 +174,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -208,11 +223,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -222,11 +239,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -236,11 +255,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -251,8 +272,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index 375d109034d..8dc52bc3cc5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Multiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -57,11 +53,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -71,28 +69,32 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_PASS_BAND = "By Pass Band" - BY_FILE = "By File" + BY_PASS_BAND = "By Pass Band" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -101,32 +103,36 @@ def type(self) -> TypeOption: simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band) - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" - ANTENNA_SIDE = "Antenna Side" + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the multiplexer. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def flip_ports_vertically(self) -> bool: @@ -136,11 +142,13 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return val # type: ignore + return val # type: ignore @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flip Ports Vertically={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Flip Ports Vertically={value}"]) @property def ports(self): @@ -148,19 +156,22 @@ def ports(self): Assigns the child port nodes to the multiplexers ports "A list of values." - """ + """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ports={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py index ddffe11a3a4..cbc98d49bbd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class MultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -51,10 +47,10 @@ def delete(self): self._delete() class TypeOption(Enum): - BY_FILE = "By File" - LOW_PASS = "Low Pass" - HIGH_PASS = "High Pass" - BAND_PASS = "Band Pass" + BY_FILE = "By File" # eslint-disable-line no-eval + LOW_PASS = "Low Pass" # eslint-disable-line no-eval + HIGH_PASS = "High Pass" # eslint-disable-line no-eval + BAND_PASS = "Band Pass" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -63,14 +59,16 @@ def type(self) -> TypeOption: file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def filename(self) -> str: @@ -80,11 +78,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def insertion_loss(self) -> float: @@ -94,11 +94,13 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -108,11 +110,13 @@ def stop_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @stop_band_attenuation.setter - def stop_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -123,12 +127,14 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_pass_band.setter - def max_pass_band(self, value: float | str): + def max_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -139,12 +145,14 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_stop_band.setter - def min_stop_band(self, value: float | str): + def min_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -155,12 +163,14 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_stop_band.setter - def max_stop_band(self, value: float | str): + def max_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -171,12 +181,14 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_pass_band.setter - def min_pass_band(self, value: float | str): + def min_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -187,12 +199,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -203,12 +217,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -219,12 +235,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -235,18 +253,21 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py index 5e216c0e797..32dc511c153 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class OutboardTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,11 +54,13 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -72,11 +70,13 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): @@ -84,13 +84,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -100,11 +102,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -114,46 +118,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -163,11 +173,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -177,42 +189,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -222,11 +238,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -236,11 +254,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -250,11 +270,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -265,8 +287,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py index 8e2aa1f23f9..53dc4821f4e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ParametricCouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,23 +48,29 @@ def delete(self): @property def antenna_a(self) -> EmitNode: - """Antenna A""" + """Antenna A + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: - """Antenna B""" + """Antenna B + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def data_source(self): @@ -76,13 +78,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -92,11 +96,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -106,46 +112,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -155,11 +167,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -169,42 +183,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -214,11 +232,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -228,11 +248,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -242,11 +264,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -257,8 +281,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py index 9051ff8fd69..943d0394944 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,11 +54,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def attached(self) -> bool: @@ -73,37 +71,43 @@ def attached(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Attached") - return val # type: ignore + return val # type: ignore @attached.setter def attached(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Attached={value}"]) @property def position_x(self) -> float: """Position X Position of the marker on the X-axis (frequency axis). - """ + """ val = self._get_property("Position X") - return val # type: ignore + return val # type: ignore @position_x.setter - def position_x(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position X={value}"]) + def position_x(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position X={value}"]) @property def position_y(self) -> float: """Position Y Position of the marker on the Y-axis (result axis). - """ + """ val = self._get_property("Position Y") - return val # type: ignore + return val # type: ignore @position_y.setter - def position_y(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Y={value}"]) + def position_y(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position Y={value}"]) @property def floating_label(self) -> bool: @@ -114,11 +118,13 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return val # type: ignore + return val # type: ignore @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -129,11 +135,13 @@ def position_from_left(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Position from Left") - return val # type: ignore + return val # type: ignore @position_from_left.setter - def position_from_left(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) + def position_from_left(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -144,83 +152,91 @@ def position_from_top(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Position from Top") - return val # type: ignore + return val # type: ignore @position_from_top.setter - def position_from_top(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) + def position_from_top(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Top={value}"]) @property def text(self) -> str: """Text Set the text of the label - """ + """ val = self._get_property("Text") - return val # type: ignore + return val # type: ignore @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text={value}"]) class HorizontalPositionOption(Enum): - LEFT = "Left" - RIGHT = "Right" - CENTER = "Center" + LEFT = "Left" # eslint-disable-line no-eval + RIGHT = "Right" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position Specify horizontal position of the label as compared to the symbol - """ + """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] - return val # type: ignore + return val # type: ignore @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Horizontal Position={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Position={value.value}"]) class VerticalPositionOption(Enum): - TOP = "Top" - BOTTOM = "Bottom" - CENTER = "Center" + TOP = "Top" # eslint-disable-line no-eval + BOTTOM = "Bottom" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def vertical_position(self) -> VerticalPositionOption: """Vertical Position Specify vertical position of the label as compared to the symbol - """ + """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] - return val # type: ignore + return val # type: ignore @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): - LEFT = "Left" - RIGHT = "Right" - CENTER = "Center" + LEFT = "Left" # eslint-disable-line no-eval + RIGHT = "Right" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def text_alignment(self) -> TextAlignmentOption: """Text Alignment Specify justification applied to multi-line text - """ + """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] - return val # type: ignore + return val # type: ignore @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text Alignment={value.value}"]) @property def font(self): @@ -230,11 +246,13 @@ def font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): @@ -244,11 +262,13 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): @@ -258,11 +278,13 @@ def background_color(self): Color should be in RGBA form: #AARRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: @@ -272,11 +294,13 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return val # type: ignore + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: @@ -286,11 +310,13 @@ def border_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): @@ -300,43 +326,47 @@ def border_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" - ARROW = "Arrow" + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval + ARROW = "Arrow" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Specify symbol displayed next to the label - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -346,11 +376,13 @@ def arrow_direction(self) -> int: Value should be between -360 and 360. """ val = self._get_property("Arrow Direction") - return val # type: ignore + return val # type: ignore @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -360,11 +392,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -374,11 +408,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -388,11 +424,13 @@ def line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -403,8 +441,11 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return val # type: ignore + return val # type: ignore @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py index 4c6cc7f9e77..0eb03550fcd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,13 +54,15 @@ def title(self) -> str: """Title Enter title at the top of the plot, room will be made for it - """ + """ val = self._get_property("Title") - return val # type: ignore + return val # type: ignore @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title={value}"]) @property def title_font(self): @@ -74,11 +72,13 @@ def title_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Title Font") - return val # type: ignore + return val # type: ignore @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -88,11 +88,13 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return val # type: ignore + return val # type: ignore @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Legend={value}"]) @property def legend_font(self): @@ -102,11 +104,13 @@ def legend_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Legend Font") - return val # type: ignore + return val # type: ignore @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Legend Font={value}"]) @property def display_cad_overlay(self) -> bool: @@ -116,11 +120,13 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return val # type: ignore + return val # type: ignore @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -130,24 +136,28 @@ def opacity(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Opacity") - return val # type: ignore + return val # type: ignore @opacity.setter - def opacity(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) + def opacity(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset Adjust vertical position of CAD model overlay - """ + """ val = self._get_property("Vertical Offset") - return val # type: ignore + return val # type: ignore @vertical_offset.setter - def vertical_offset(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) + def vertical_offset(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -158,11 +168,13 @@ def range_axis_rotation(self) -> float: Value should be between -180 and 180. """ val = self._get_property("Range Axis Rotation") - return val # type: ignore + return val # type: ignore @range_axis_rotation.setter - def range_axis_rotation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -172,63 +184,73 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return val # type: ignore + return val # type: ignore @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min Set lower extent of horizontal axis - """ + """ val = self._get_property("X-axis Min") - return val # type: ignore + return val # type: ignore @x_axis_min.setter - def x_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) + def x_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max Set upper extent of horizontal axis - """ + """ val = self._get_property("X-axis Max") - return val # type: ignore + return val # type: ignore @x_axis_max.setter - def x_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) + def x_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min Set lower extent of vertical axis - """ + """ val = self._get_property("Y-axis Min") - return val # type: ignore + return val # type: ignore @y_axis_min.setter - def y_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) + def y_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max Set upper extent of vertical axis - """ + """ val = self._get_property("Y-axis Max") - return val # type: ignore + return val # type: ignore @y_axis_max.setter - def y_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) + def y_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -239,11 +261,13 @@ def y_axis_range(self) -> float: Value should be greater than 0. """ val = self._get_property("Y-axis Range") - return val # type: ignore + return val # type: ignore @y_axis_range.setter - def y_axis_range(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) + def y_axis_range(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -253,11 +277,13 @@ def max_major_ticks_x(self) -> int: Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks X") - return val # type: ignore + return val # type: ignore @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -268,11 +294,13 @@ def max_minor_ticks_x(self) -> int: Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks X") - return val # type: ignore + return val # type: ignore @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -282,11 +310,13 @@ def max_major_ticks_y(self) -> int: Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks Y") - return val # type: ignore + return val # type: ignore @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -297,11 +327,13 @@ def max_minor_ticks_y(self) -> int: Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks Y") - return val # type: ignore + return val # type: ignore @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -311,11 +343,13 @@ def axis_label_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Label Font") - return val # type: ignore + return val # type: ignore @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -325,35 +359,37 @@ def axis_tick_label_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Tick Label Font") - return val # type: ignore + return val # type: ignore @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style Select line style of major-tick grid lines - """ + """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Line Style={value.value}"]) @property def major_grid_color(self): @@ -363,35 +399,37 @@ def major_grid_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Major Grid Color") - return val # type: ignore + return val # type: ignore @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style Select line style of minor-tick grid lines - """ + """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Line Style={value.value}"]) @property def minor_grid_color(self): @@ -401,11 +439,13 @@ def minor_grid_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Minor Grid Color") - return val # type: ignore + return val # type: ignore @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -415,33 +455,35 @@ def background_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): - HERTZ = "hertz" - KILOHERTZ = "kilohertz" - MEGAHERTZ = "megahertz" - GIGAHERTZ = "gigahertz" + HERTZ = "hertz" # eslint-disable-line no-eval + KILOHERTZ = "kilohertz" # eslint-disable-line no-eval + MEGAHERTZ = "megahertz" # eslint-disable-line no-eval + GIGAHERTZ = "gigahertz" # eslint-disable-line no-eval @property def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit Units to use for plotting broadband power densities - """ + """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] - return val # type: ignore + return val # type: ignore @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power for Plots Unit={value.value}"]) @property def bb_power_bandwidth(self) -> float: @@ -452,12 +494,14 @@ def bb_power_bandwidth(self) -> float: """ val = self._get_property("BB Power Bandwidth") val = self._convert_from_internal_units(float(val), "") - return val # type: ignore + return val # type: ignore @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value: float | str): + def bb_power_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -467,8 +511,11 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return val # type: ignore + return val # type: ignore @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Log Scale={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py index af75503fcbf..4409b8f925c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -53,11 +49,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,29 +65,33 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" - P3_DB = "P3 dB" - RESISTIVE = "Resistive" + BY_FILE = "By File" # eslint-disable-line no-eval + P3_DB = "P3 dB" # eslint-disable-line no-eval + RESISTIVE = "Resistive" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -97,32 +99,36 @@ def type(self) -> TypeOption: Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric) - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class OrientationOption(Enum): - DIVIDER = "Divider" - COMBINER = "Combiner" + DIVIDER = "Divider" # eslint-disable-line no-eval + COMBINER = "Combiner" # eslint-disable-line no-eval @property def orientation(self) -> OrientationOption: """Orientation Defines the orientation of the Power Divider. - """ + """ val = self._get_property("Orientation") val = self.OrientationOption[val] - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value: OrientationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value.value}"]) @property def insertion_loss_above_ideal(self) -> float: @@ -133,13 +139,13 @@ def insertion_loss_above_ideal(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss Above Ideal") - return val # type: ignore + return val # type: ignore @insertion_loss_above_ideal.setter - def insertion_loss_above_ideal(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Insertion Loss Above Ideal={value}"] - ) + def insertion_loss_above_ideal(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss Above Ideal={value}"]) @property def finite_isolation(self) -> bool: @@ -150,11 +156,13 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -164,11 +172,13 @@ def isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @isolation.setter - def isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) + def isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -179,11 +189,13 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -193,11 +205,13 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -208,12 +222,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -224,12 +240,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -240,12 +258,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -256,18 +276,21 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py index 17eac92aebc..f6bfa8692f9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PowerTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -51,22 +47,24 @@ def delete(self): self._delete() class DirectionOption(Enum): - AWAY_FROM_TX = "Away From Tx" - TOWARD_TX = "Toward Tx" + AWAY_FROM_TX = "Away From Tx" # eslint-disable-line no-eval + TOWARD_TX = "Toward Tx" # eslint-disable-line no-eval @property def direction(self) -> DirectionOption: """Direction Direction of power flow (towards or away from the transmitter) to plot - """ + """ val = self._get_property("Direction") val = self.DirectionOption[val] - return val # type: ignore + return val # type: ignore @direction.setter def direction(self, value: DirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Direction={value.value}"]) @property def data_source(self): @@ -74,13 +72,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -90,11 +90,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -104,46 +106,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -153,11 +161,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -167,42 +177,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -212,11 +226,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -226,11 +242,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -240,11 +258,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -255,8 +275,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py index 1dab01449ef..ef5cec66030 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ProfileTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,13 +52,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -72,11 +70,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -86,46 +86,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -135,11 +141,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -149,42 +157,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -194,11 +206,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -208,11 +222,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -222,11 +238,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -237,8 +255,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py index 86571946adf..d98eae83d30 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,37 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,24 +116,28 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def custom_fading_margin(self) -> float: @@ -140,11 +148,13 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -155,11 +165,13 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -170,31 +182,35 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" - FAST_FADING_ONLY = "Fast Fading Only" - SHADOWING_ONLY = "Shadowing Only" - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -205,11 +221,13 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -219,11 +237,13 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -233,11 +253,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -248,11 +270,13 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -262,11 +286,13 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -277,11 +303,13 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -292,13 +320,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -308,11 +336,13 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -322,11 +352,13 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -336,10 +368,11 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py index 9effc1bd6c6..1d7ea43ad4c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class RadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,11 +51,11 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Name: - "Type: - """ + "Name: + "Type: + """ return self._get_table_data() @table_data.setter @@ -70,10 +67,13 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py index 5d7bd436849..d7f1f7254ba 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyAmplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -51,30 +47,30 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class AmplifierTypeOption(Enum): - TRANSMIT_AMPLIFIER = "Transmit Amplifier" - RECEIVE_AMPLIFIER = "Receive Amplifier" + TRANSMIT_AMPLIFIER = "Transmit Amplifier" # eslint-disable-line no-eval + RECEIVE_AMPLIFIER = "Receive Amplifier" # eslint-disable-line no-eval @property def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type Configures the amplifier as a Tx or Rx amplifier - """ + """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] - return val # type: ignore + return val # type: ignore @property def gain(self) -> float: @@ -84,7 +80,7 @@ def gain(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Gain") - return val # type: ignore + return val # type: ignore @property def center_frequency(self) -> float: @@ -95,7 +91,7 @@ def center_frequency(self) -> float: """ val = self._get_property("Center Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def bandwidth(self) -> float: @@ -106,7 +102,7 @@ def bandwidth(self) -> float: """ val = self._get_property("Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: @@ -116,7 +112,7 @@ def noise_figure(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def saturation_level(self) -> float: @@ -127,7 +123,7 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input(self) -> float: @@ -138,7 +134,7 @@ def p1_db_point_ref_input(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -149,7 +145,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def shape_factor(self) -> float: @@ -159,7 +155,7 @@ def shape_factor(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -169,7 +165,7 @@ def reverse_isolation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -179,4 +175,5 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py index 09e15ca1567..28ec2dda8bd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyAntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -43,9 +39,9 @@ def tags(self) -> str: """Tags Space delimited list of tags for coupling selections - """ + """ val = self._get_property("Tags") - return val # type: ignore + return val # type: ignore @property def show_relative_coordinates(self) -> bool: @@ -56,7 +52,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @property def position(self): @@ -66,7 +62,7 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): @@ -76,21 +72,21 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" - AZ_EL_TWIST = "Az-El-Twist" + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @property def orientation(self): @@ -100,7 +96,7 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): @@ -110,7 +106,7 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def position_defined(self) -> bool: @@ -120,7 +116,7 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return val # type: ignore + return val # type: ignore @property def antenna_temperature(self) -> float: @@ -130,16 +126,16 @@ def antenna_temperature(self) -> float: Value should be between 0 and 100000. """ val = self._get_property("Antenna Temperature") - return val # type: ignore + return val # type: ignore @property def type(self): """Type Defines the type of antenna - """ + """ val = self._get_property("Type") - return val # type: ignore + return val # type: ignore @property def antenna_file(self) -> str: @@ -147,7 +143,7 @@ def antenna_file(self) -> str: Value should be a full file path. """ val = self._get_property("Antenna File") - return val # type: ignore + return val # type: ignore @property def project_name(self) -> str: @@ -157,7 +153,7 @@ def project_name(self) -> str: Value should be a full file path. """ val = self._get_property("Project Name") - return val # type: ignore + return val # type: ignore @property def peak_gain(self) -> float: @@ -167,22 +163,22 @@ def peak_gain(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Peak Gain") - return val # type: ignore + return val # type: ignore class BoresightOption(Enum): - XAXIS = "+X Axis" - YAXIS = "+Y Axis" - ZAXIS = "+Z Axis" + XAXIS = "+X Axis" # eslint-disable-line no-eval + YAXIS = "+Y Axis" # eslint-disable-line no-eval + ZAXIS = "+Z Axis" # eslint-disable-line no-eval @property def boresight(self) -> BoresightOption: """Boresight Select peak beam direction in local coordinates - """ + """ val = self._get_property("Boresight") val = self.BoresightOption[val] - return val # type: ignore + return val # type: ignore @property def vertical_beamwidth(self) -> float: @@ -192,7 +188,7 @@ def vertical_beamwidth(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("Vertical Beamwidth") - return val # type: ignore + return val # type: ignore @property def horizontal_beamwidth(self) -> float: @@ -202,7 +198,7 @@ def horizontal_beamwidth(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("Horizontal Beamwidth") - return val # type: ignore + return val # type: ignore @property def extra_sidelobe(self) -> bool: @@ -212,7 +208,7 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_level(self) -> float: @@ -223,7 +219,7 @@ def first_sidelobe_level(self) -> float: Value should be between 0 and 200. """ val = self._get_property("First Sidelobe Level") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_vert_bw(self) -> float: @@ -233,7 +229,7 @@ def first_sidelobe_vert_bw(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Vert. BW") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_hor_bw(self) -> float: @@ -243,7 +239,7 @@ def first_sidelobe_hor_bw(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Hor. BW") - return val # type: ignore + return val # type: ignore @property def outerbacklobe_level(self) -> float: @@ -253,7 +249,7 @@ def outerbacklobe_level(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Outer/Backlobe Level") - return val # type: ignore + return val # type: ignore @property def resonant_frequency(self) -> float: @@ -265,7 +261,7 @@ def resonant_frequency(self) -> float: """ val = self._get_property("Resonant Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def slot_length(self) -> float: @@ -276,7 +272,7 @@ def slot_length(self) -> float: """ val = self._get_property("Slot Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def mouth_width(self) -> float: @@ -287,7 +283,7 @@ def mouth_width(self) -> float: """ val = self._get_property("Mouth Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def mouth_height(self) -> float: @@ -298,7 +294,7 @@ def mouth_height(self) -> float: """ val = self._get_property("Mouth Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_width(self) -> float: @@ -310,7 +306,7 @@ def waveguide_width(self) -> float: """ val = self._get_property("Waveguide Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def width_flare_half_angle(self) -> float: @@ -321,7 +317,7 @@ def width_flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Width Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def height_flare_half_angle(self) -> float: @@ -332,7 +328,7 @@ def height_flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Height Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def mouth_diameter(self) -> float: @@ -343,7 +339,7 @@ def mouth_diameter(self) -> float: """ val = self._get_property("Mouth Diameter") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def flare_half_angle(self) -> float: @@ -354,7 +350,7 @@ def flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def vswr(self) -> float: @@ -365,51 +361,51 @@ def vswr(self) -> float: Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore class AntennaPolarizationOption(Enum): - VERTICAL = "Vertical" - HORIZONTAL = "Horizontal" - RHCP = "RHCP" - LHCP = "LHCP" + VERTICAL = "Vertical" # eslint-disable-line no-eval + HORIZONTAL = "Horizontal" # eslint-disable-line no-eval + RHCP = "RHCP" # eslint-disable-line no-eval + LHCP = "LHCP" # eslint-disable-line no-eval @property def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] - return val # type: ignore + return val # type: ignore class CrossDipoleModeOption(Enum): - FREESTANDING = "Freestanding" - OVER_GROUND_PLANE = "Over Ground Plane" + FREESTANDING = "Freestanding" # eslint-disable-line no-eval + OVER_GROUND_PLANE = "Over Ground Plane" # eslint-disable-line no-eval @property def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode Choose the Cross Dipole type - """ + """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] - return val # type: ignore + return val # type: ignore class CrossDipolePolarizationOption(Enum): - RHCP = "RHCP" - LHCP = "LHCP" + RHCP = "RHCP" # eslint-disable-line no-eval + LHCP = "LHCP" # eslint-disable-line no-eval @property def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] - return val # type: ignore + return val # type: ignore @property def override_height(self) -> bool: @@ -420,7 +416,7 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return val # type: ignore + return val # type: ignore @property def offset_height(self) -> float: @@ -431,7 +427,7 @@ def offset_height(self) -> float: """ val = self._get_property("Offset Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def auto_height_offset(self) -> bool: @@ -442,7 +438,7 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return val # type: ignore + return val # type: ignore @property def conform__adjust_antenna(self) -> bool: @@ -452,7 +448,7 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return val # type: ignore + return val # type: ignore @property def element_offset(self): @@ -462,37 +458,37 @@ def element_offset(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Element Offset") - return val # type: ignore + return val # type: ignore class ConformtoPlatformOption(Enum): - NONE = "None" - ALONG_NORMAL = "Along Normal" - PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" + NONE = "None" # eslint-disable-line no-eval + ALONG_NORMAL = "Along Normal" # eslint-disable-line no-eval + PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" # eslint-disable-line no-eval @property def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform Select method of automated conforming applied after Element Offset - """ + """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] - return val # type: ignore + return val # type: ignore class ReferencePlaneOption(Enum): - XY_PLANE = "XY Plane" - YZ_PLANE = "YZ Plane" - ZX_PLANE = "ZX Plane" + XY_PLANE = "XY Plane" # eslint-disable-line no-eval + YZ_PLANE = "YZ Plane" # eslint-disable-line no-eval + ZX_PLANE = "ZX Plane" # eslint-disable-line no-eval @property def reference_plane(self) -> ReferencePlaneOption: """Reference Plane Select reference plane for determining original element heights - """ + """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] - return val # type: ignore + return val # type: ignore @property def conform_element_orientation(self) -> bool: @@ -503,7 +499,7 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return val # type: ignore + return val # type: ignore @property def show_axes(self) -> bool: @@ -513,7 +509,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @property def show_icon(self) -> bool: @@ -523,7 +519,7 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return val # type: ignore + return val # type: ignore @property def size(self) -> float: @@ -533,7 +529,7 @@ def size(self) -> float: Value should be between 0.001 and 1. """ val = self._get_property("Size") - return val # type: ignore + return val # type: ignore @property def color(self): @@ -543,25 +539,25 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @property def el_sample_interval(self) -> float: """El Sample Interval Space between elevation-angle samples of pattern - """ + """ val = self._get_property("El Sample Interval") - return val # type: ignore + return val # type: ignore @property def az_sample_interval(self) -> float: """Az Sample Interval Space between azimuth-angle samples of pattern - """ + """ val = self._get_property("Az Sample Interval") - return val # type: ignore + return val # type: ignore @property def has_frequency_domain(self) -> bool: @@ -571,34 +567,34 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return val # type: ignore + return val # type: ignore @property def frequency_domain(self): """Frequency Domain Frequency sample(s) defining antenna - """ + """ val = self._get_property("Frequency Domain") - return val # type: ignore + return val # type: ignore @property def number_of_electric_sources(self) -> int: """Number of Electric Sources Number of freestanding electric current sources defining antenna - """ + """ val = self._get_property("Number of Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources Number of freestanding magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_electric_sources(self) -> int: @@ -606,9 +602,9 @@ def number_of_imaged_electric_sources(self) -> int: Number of imaged, half-space radiating electric current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_magnetic_sources(self) -> int: @@ -616,9 +612,9 @@ def number_of_imaged_magnetic_sources(self) -> int: Number of imaged, half-space radiating magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def waveguide_height(self) -> float: @@ -626,35 +622,35 @@ def waveguide_height(self) -> float: Implied waveguide height (along local x-axis) where the flared horn walls meet the feed - """ + """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency Implied lowest operating frequency of pyramidal horn antenna - """ + """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency Implied lowest operating frequency of conical horn antenna - """ + """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class SWEModeTruncationOption(Enum): - DYNAMIC = "Dynamic" - FIXED_CUSTOM = "Fixed (Custom)" - NONE = "None" + DYNAMIC = "Dynamic" # eslint-disable-line no-eval + FIXED_CUSTOM = "Fixed (Custom)" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def swe_mode_truncation(self) -> SWEModeTruncationOption: @@ -662,10 +658,10 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: Select the method for stability-enhancing truncation of spherical wave expansion terms - """ + """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] - return val # type: ignore + return val # type: ignore @property def max_n_index(self) -> int: @@ -675,16 +671,16 @@ def max_n_index(self) -> int: Value should be greater than 1. """ val = self._get_property("Max N Index") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @property def show_composite_passband(self) -> bool: @@ -694,7 +690,7 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return val # type: ignore + return val # type: ignore @property def use_phase_center(self) -> bool: @@ -704,16 +700,16 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return val # type: ignore + return val # type: ignore @property def coordinate_systems(self) -> str: """Coordinate Systems Specifies the coordinate system for the phase center of this antenna - """ + """ val = self._get_property("Coordinate Systems") - return val # type: ignore + return val # type: ignore @property def phasecenterposition(self): @@ -723,7 +719,7 @@ def phasecenterposition(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("PhaseCenterPosition") - return val # type: ignore + return val # type: ignore @property def phasecenterorientation(self): @@ -733,4 +729,5 @@ def phasecenterorientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("PhaseCenterOrientation") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py index 952b1cd8cea..ce5eb6aa1cf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyAntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,7 +41,7 @@ def passband_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Passband Loss") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -54,7 +51,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out of Band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -65,7 +62,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -76,7 +73,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -87,7 +84,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -98,13 +95,14 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py index abaa9cc12e4..2bec6523bef 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -43,9 +39,9 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @property def use_dd_1494_mode(self) -> bool: @@ -55,7 +51,7 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return val # type: ignore + return val # type: ignore @property def use_emission_designator(self) -> bool: @@ -65,35 +61,35 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return val # type: ignore + return val # type: ignore @property def emission_designator(self) -> str: """Emission Designator Enter the Emission Designator to define the bandwidth and modulation - """ + """ val = self._get_property("Emission Designator") - return val # type: ignore + return val # type: ignore @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW Channel Bandwidth based off the emission designator - """ + """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def emit_modulation_type(self) -> str: """EMIT Modulation Type Modulation based off the emission designator - """ + """ val = self._get_property("EMIT Modulation Type") - return val # type: ignore + return val # type: ignore @property def override_emission_designator_bw(self) -> bool: @@ -104,7 +100,7 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return val # type: ignore + return val # type: ignore @property def channel_bandwidth(self) -> float: @@ -115,30 +111,30 @@ def channel_bandwidth(self) -> float: """ val = self._get_property("Channel Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class ModulationOption(Enum): - GENERIC = "Generic" - AM = "AM" - LSB = "LSB" - USB = "USB" - FM = "FM" - FSK = "FSK" - MSK = "MSK" - PSK = "PSK" - QAM = "QAM" - APSK = "APSK" - RADAR = "Radar" + GENERIC = "Generic" # eslint-disable-line no-eval + AM = "AM" # eslint-disable-line no-eval + LSB = "LSB" # eslint-disable-line no-eval + USB = "USB" # eslint-disable-line no-eval + FM = "FM" # eslint-disable-line no-eval + FSK = "FSK" # eslint-disable-line no-eval + MSK = "MSK" # eslint-disable-line no-eval + PSK = "PSK" # eslint-disable-line no-eval + QAM = "QAM" # eslint-disable-line no-eval + APSK = "APSK" # eslint-disable-line no-eval + RADAR = "Radar" # eslint-disable-line no-eval @property def modulation(self) -> ModulationOption: """Modulation Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Modulation") val = self.ModulationOption[val] - return val # type: ignore + return val # type: ignore @property def max_modulating_freq(self) -> float: @@ -149,7 +145,7 @@ def max_modulating_freq(self) -> float: """ val = self._get_property("Max Modulating Freq.") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def modulation_index(self) -> float: @@ -159,7 +155,7 @@ def modulation_index(self) -> float: Value should be between 0.01 and 1. """ val = self._get_property("Modulation Index") - return val # type: ignore + return val # type: ignore @property def freq_deviation(self) -> float: @@ -170,7 +166,7 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def bit_rate(self) -> float: @@ -181,7 +177,7 @@ def bit_rate(self) -> float: """ val = self._get_property("Bit Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @property def sidelobes(self) -> int: @@ -191,85 +187,85 @@ def sidelobes(self) -> int: Value should be greater than 0. """ val = self._get_property("Sidelobes") - return val # type: ignore + return val # type: ignore @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation FSK frequency deviation: helps determine spectral profile Value should be greater than 1. """ val = self._get_property("Freq. Deviation ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class PSKTypeOption(Enum): - BPSK = "BPSK" - QPSK = "QPSK" - PSK_8 = "PSK-8" - PSK_16 = "PSK-16" - PSK_32 = "PSK-32" - PSK_64 = "PSK-64" + BPSK = "BPSK" # eslint-disable-line no-eval + QPSK = "QPSK" # eslint-disable-line no-eval + PSK_8 = "PSK-8" # eslint-disable-line no-eval + PSK_16 = "PSK-16" # eslint-disable-line no-eval + PSK_32 = "PSK-32" # eslint-disable-line no-eval + PSK_64 = "PSK-64" # eslint-disable-line no-eval @property def psk_type(self) -> PSKTypeOption: """PSK Type PSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] - return val # type: ignore + return val # type: ignore class FSKTypeOption(Enum): - FSK_2 = "FSK-2" - FSK_4 = "FSK-4" - FSK_8 = "FSK-8" + FSK_2 = "FSK-2" # eslint-disable-line no-eval + FSK_4 = "FSK-4" # eslint-disable-line no-eval + FSK_8 = "FSK-8" # eslint-disable-line no-eval @property def fsk_type(self) -> FSKTypeOption: """FSK Type FSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] - return val # type: ignore + return val # type: ignore class QAMTypeOption(Enum): - QAM_4 = "QAM-4" - QAM_16 = "QAM-16" - QAM_64 = "QAM-64" - QAM_256 = "QAM-256" - QAM_1024 = "QAM-1024" + QAM_4 = "QAM-4" # eslint-disable-line no-eval + QAM_16 = "QAM-16" # eslint-disable-line no-eval + QAM_64 = "QAM-64" # eslint-disable-line no-eval + QAM_256 = "QAM-256" # eslint-disable-line no-eval + QAM_1024 = "QAM-1024" # eslint-disable-line no-eval @property def qam_type(self) -> QAMTypeOption: """QAM Type QAM modulation order: helps determine spectral profile - """ + """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] - return val # type: ignore + return val # type: ignore class APSKTypeOption(Enum): - APSK_4 = "APSK-4" - APSK_16 = "APSK-16" - APSK_64 = "APSK-64" - APSK_256 = "APSK-256" - APSK_1024 = "APSK-1024" + APSK_4 = "APSK-4" # eslint-disable-line no-eval + APSK_16 = "APSK-16" # eslint-disable-line no-eval + APSK_64 = "APSK-64" # eslint-disable-line no-eval + APSK_256 = "APSK-256" # eslint-disable-line no-eval + APSK_1024 = "APSK-1024" # eslint-disable-line no-eval @property def apsk_type(self) -> APSKTypeOption: """APSK Type APSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -280,7 +276,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -291,7 +287,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def channel_spacing(self) -> float: @@ -302,7 +298,7 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def tx_offset(self) -> float: @@ -313,24 +309,24 @@ def tx_offset(self) -> float: """ val = self._get_property("Tx Offset") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class RadarTypeOption(Enum): - CW = "CW" - FM_CW = "FM-CW" - FM_PULSE = "FM Pulse" - NON_FM_PULSE = "Non-FM Pulse" - PHASE_CODED = "Phase Coded" + CW = "CW" # eslint-disable-line no-eval + FM_CW = "FM-CW" # eslint-disable-line no-eval + FM_PULSE = "FM Pulse" # eslint-disable-line no-eval + NON_FM_PULSE = "Non-FM Pulse" # eslint-disable-line no-eval + PHASE_CODED = "Phase Coded" # eslint-disable-line no-eval @property def radar_type(self) -> RadarTypeOption: """Radar Type Radar type: helps determine spectral profile - """ + """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] - return val # type: ignore + return val # type: ignore @property def hopping_radar(self) -> bool: @@ -340,7 +336,7 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return val # type: ignore + return val # type: ignore @property def post_october_2020_procurement(self) -> bool: @@ -351,7 +347,7 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return val # type: ignore + return val # type: ignore @property def hop_range_min_freq(self) -> float: @@ -362,7 +358,7 @@ def hop_range_min_freq(self) -> float: """ val = self._get_property("Hop Range Min Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def hop_range_max_freq(self) -> float: @@ -373,7 +369,7 @@ def hop_range_max_freq(self) -> float: """ val = self._get_property("Hop Range Max Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def pulse_duration(self) -> float: @@ -384,7 +380,7 @@ def pulse_duration(self) -> float: """ val = self._get_property("Pulse Duration") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_rise_time(self) -> float: @@ -395,7 +391,7 @@ def pulse_rise_time(self) -> float: """ val = self._get_property("Pulse Rise Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_fall_time(self) -> float: @@ -406,7 +402,7 @@ def pulse_fall_time(self) -> float: """ val = self._get_property("Pulse Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_repetition_rate(self) -> float: @@ -416,7 +412,7 @@ def pulse_repetition_rate(self) -> float: Value should be greater than 1. """ val = self._get_property("Pulse Repetition Rate") - return val # type: ignore + return val # type: ignore @property def number_of_chips(self) -> float: @@ -426,7 +422,7 @@ def number_of_chips(self) -> float: Value should be greater than 1. """ val = self._get_property("Number of Chips") - return val # type: ignore + return val # type: ignore @property def pulse_compression_ratio(self) -> float: @@ -436,7 +432,7 @@ def pulse_compression_ratio(self) -> float: Value should be greater than 1. """ val = self._get_property("Pulse Compression Ratio") - return val # type: ignore + return val # type: ignore @property def fm_chirp_period(self) -> float: @@ -447,7 +443,7 @@ def fm_chirp_period(self) -> float: """ val = self._get_property("FM Chirp Period") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def fm_freq_deviation(self) -> float: @@ -458,7 +454,7 @@ def fm_freq_deviation(self) -> float: """ val = self._get_property("FM Freq Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def fm_freq_dev_bandwidth(self) -> float: @@ -470,4 +466,5 @@ def fm_freq_dev_bandwidth(self) -> float: """ val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py index 3e419d44688..487a1d52c7c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyBandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,3 +32,4 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py index 5617c837877..d80437fa409 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyCADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -46,33 +42,33 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore class ModelTypeOption(Enum): - PLATE = "Plate" - BOX = "Box" - DIHEDRAL = "Dihedral" - TRIHEDRAL = "Trihedral" - CYLINDER = "Cylinder" - TAPERED_CYLINDER = "Tapered Cylinder" - CONE = "Cone" - SPHERE = "Sphere" - ELLIPSOID = "Ellipsoid" - CIRCULAR_PLATE = "Circular Plate" - PARABOLA = "Parabola" - PRISM = "Prism" - TAPERED_PRISM = "Tapered Prism" - TOPHAT = "Tophat" + PLATE = "Plate" # eslint-disable-line no-eval + BOX = "Box" # eslint-disable-line no-eval + DIHEDRAL = "Dihedral" # eslint-disable-line no-eval + TRIHEDRAL = "Trihedral" # eslint-disable-line no-eval + CYLINDER = "Cylinder" # eslint-disable-line no-eval + TAPERED_CYLINDER = "Tapered Cylinder" # eslint-disable-line no-eval + CONE = "Cone" # eslint-disable-line no-eval + SPHERE = "Sphere" # eslint-disable-line no-eval + ELLIPSOID = "Ellipsoid" # eslint-disable-line no-eval + CIRCULAR_PLATE = "Circular Plate" # eslint-disable-line no-eval + PARABOLA = "Parabola" # eslint-disable-line no-eval + PRISM = "Prism" # eslint-disable-line no-eval + TAPERED_PRISM = "Tapered Prism" # eslint-disable-line no-eval + TOPHAT = "Tophat" # eslint-disable-line no-eval @property def model_type(self) -> ModelTypeOption: """Model Type Select type of parametric model to create - """ + """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] - return val # type: ignore + return val # type: ignore @property def length(self) -> float: @@ -83,7 +79,7 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def width(self) -> float: @@ -94,7 +90,7 @@ def width(self) -> float: """ val = self._get_property("Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def height(self) -> float: @@ -105,7 +101,7 @@ def height(self) -> float: """ val = self._get_property("Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def angle(self) -> float: @@ -115,7 +111,7 @@ def angle(self) -> float: Value should be between 0 and 360. """ val = self._get_property("Angle") - return val # type: ignore + return val # type: ignore @property def top_side(self) -> float: @@ -126,7 +122,7 @@ def top_side(self) -> float: """ val = self._get_property("Top Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def top_radius(self) -> float: @@ -137,7 +133,7 @@ def top_radius(self) -> float: """ val = self._get_property("Top Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def side(self) -> float: @@ -148,7 +144,7 @@ def side(self) -> float: """ val = self._get_property("Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def radius(self) -> float: @@ -159,7 +155,7 @@ def radius(self) -> float: """ val = self._get_property("Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def base_radius(self) -> float: @@ -170,7 +166,7 @@ def base_radius(self) -> float: """ val = self._get_property("Base Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def center_radius(self) -> float: @@ -181,7 +177,7 @@ def center_radius(self) -> float: """ val = self._get_property("Center Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def x_axis_ellipsoid_radius(self) -> float: @@ -192,7 +188,7 @@ def x_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("X Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def y_axis_ellipsoid_radius(self) -> float: @@ -203,7 +199,7 @@ def y_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Y Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def z_axis_ellipsoid_radius(self) -> float: @@ -214,7 +210,7 @@ def z_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Z Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def focal_length(self) -> float: @@ -225,17 +221,17 @@ def focal_length(self) -> float: """ val = self._get_property("Focal Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def offset(self) -> float: """Offset Offset of parabolic reflector - """ + """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def x_direction_taper(self) -> float: @@ -246,7 +242,7 @@ def x_direction_taper(self) -> float: Value should be greater than 0. """ val = self._get_property("X Direction Taper") - return val # type: ignore + return val # type: ignore @property def y_direction_taper(self) -> float: @@ -257,7 +253,7 @@ def y_direction_taper(self) -> float: Value should be greater than 0. """ val = self._get_property("Y Direction Taper") - return val # type: ignore + return val # type: ignore @property def prism_direction(self): @@ -267,7 +263,7 @@ def prism_direction(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Prism Direction") - return val # type: ignore + return val # type: ignore @property def closed_top(self) -> bool: @@ -277,7 +273,7 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return val # type: ignore + return val # type: ignore @property def closed_base(self) -> bool: @@ -287,7 +283,7 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return val # type: ignore + return val # type: ignore @property def mesh_density(self) -> int: @@ -298,7 +294,7 @@ def mesh_density(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Mesh Density") - return val # type: ignore + return val # type: ignore @property def use_symmetric_mesh(self) -> bool: @@ -309,21 +305,21 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return val # type: ignore + return val # type: ignore class MeshOptionOption(Enum): - IMPROVED = "Improved" - LEGACY = "Legacy" + IMPROVED = "Improved" # eslint-disable-line no-eval + LEGACY = "Legacy" # eslint-disable-line no-eval @property def mesh_option(self) -> MeshOptionOption: """Mesh Option Select from different meshing options - """ + """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] - return val # type: ignore + return val # type: ignore @property def coating_index(self) -> int: @@ -333,7 +329,7 @@ def coating_index(self) -> int: Value should be between 0 and 100000. """ val = self._get_property("Coating Index") - return val # type: ignore + return val # type: ignore @property def show_relative_coordinates(self) -> bool: @@ -344,7 +340,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @property def position(self): @@ -354,7 +350,7 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): @@ -364,21 +360,21 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" - AZ_EL_TWIST = "Az-El-Twist" + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @property def orientation(self): @@ -388,7 +384,7 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): @@ -398,7 +394,7 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def visible(self) -> bool: @@ -408,23 +404,23 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore class RenderModeOption(Enum): - FLAT_SHADED = "Flat-Shaded" - WIRE_FRAME = "Wire-Frame" - HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" - OUTLINE = "Outline" + FLAT_SHADED = "Flat-Shaded" # eslint-disable-line no-eval + WIRE_FRAME = "Wire-Frame" # eslint-disable-line no-eval + HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" # eslint-disable-line no-eval + OUTLINE = "Outline" # eslint-disable-line no-eval @property def render_mode(self) -> RenderModeOption: """Render Mode Select drawing style for surfaces - """ + """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] - return val # type: ignore + return val # type: ignore @property def show_axes(self) -> bool: @@ -434,7 +430,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @property def min(self): @@ -444,7 +440,7 @@ def min(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Min") - return val # type: ignore + return val # type: ignore @property def max(self): @@ -454,16 +450,16 @@ def max(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Max") - return val # type: ignore + return val # type: ignore @property def number_of_surfaces(self) -> int: """Number of Surfaces Number of surfaces in the model - """ + """ val = self._get_property("Number of Surfaces") - return val # type: ignore + return val # type: ignore @property def color(self): @@ -473,13 +469,14 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py index cee13692b0a..5c7326fb53a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyCable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -51,21 +47,21 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" - CONSTANT_LOSS = "Constant Loss" - COAXIAL_CABLE = "Coaxial Cable" + BY_FILE = "By File" # eslint-disable-line no-eval + CONSTANT_LOSS = "Constant Loss" # eslint-disable-line no-eval + COAXIAL_CABLE = "Coaxial Cable" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -73,10 +69,10 @@ def type(self) -> TypeOption: Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @property def length(self) -> float: @@ -87,7 +83,7 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def loss_per_length(self) -> float: @@ -97,7 +93,7 @@ def loss_per_length(self) -> float: Value should be between 0 and 20. """ val = self._get_property("Loss Per Length") - return val # type: ignore + return val # type: ignore @property def measurement_length(self) -> float: @@ -108,7 +104,7 @@ def measurement_length(self) -> float: """ val = self._get_property("Measurement Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def resistive_loss_constant(self) -> float: @@ -118,7 +114,7 @@ def resistive_loss_constant(self) -> float: Value should be between 0 and 2. """ val = self._get_property("Resistive Loss Constant") - return val # type: ignore + return val # type: ignore @property def dielectric_loss_constant(self) -> float: @@ -128,13 +124,14 @@ def dielectric_loss_constant(self) -> float: Value should be between 0 and 1. """ val = self._get_property("Dielectric Loss Constant") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py index da7a2b801a6..12901519a06 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyCirculator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -51,20 +47,20 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" - PARAMETRIC = "Parametric" + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -72,24 +68,24 @@ def type(self) -> TypeOption: Type of circulator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" - ANTENNA_SIDE = "Antenna Side" + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the circulator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -99,7 +95,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_reverse_isolation(self) -> bool: @@ -110,7 +106,7 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -120,7 +116,7 @@ def reverse_isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -131,7 +127,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -141,7 +137,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -152,7 +148,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -163,7 +159,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -174,7 +170,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -185,13 +181,14 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py index 939ed3d313f..c029cab2b66 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,7 +41,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def ports(self): @@ -52,6 +49,7 @@ def ports(self): Maps each port in the link to an antenna in the project "A list of values." - """ + """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py index 17ac942f5ac..bcadca8a91f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyCouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +37,7 @@ def minimum_allowed_coupling(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Minimum Allowed Coupling") - return val # type: ignore + return val # type: ignore @property def global_default_coupling(self) -> float: @@ -50,13 +47,14 @@ def global_default_coupling(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Global Default Coupling") - return val # type: ignore + return val # type: ignore @property def antenna_tags(self) -> str: """Antenna Tags All tags currently used by all antennas in the project - """ + """ val = self._get_property("Antenna Tags") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py index f30ff32cabd..1ac7f775844 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,11 +35,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Value (dB): + "Value (dB): Value should be between -1000 and 0. """ return self._get_table_data() @@ -55,25 +52,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -83,7 +80,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -93,13 +90,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py index 5c25eceb03c..6482f81e1d1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,24 +34,24 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class GroundPlaneNormalOption(Enum): - X_AXIS = "X Axis" - Y_AXIS = "Y Axis" - Z_AXIS = "Z Axis" + X_AXIS = "X Axis" # eslint-disable-line no-eval + Y_AXIS = "Y Axis" # eslint-disable-line no-eval + Z_AXIS = "Z Axis" # eslint-disable-line no-eval @property def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal Specifies the axis of the normal to the ground plane - """ + """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] - return val # type: ignore + return val # type: ignore @property def gp_position_along_normal(self) -> float: @@ -63,7 +59,8 @@ def gp_position_along_normal(self) -> float: Offset of ground plane in direction normal to the ground planes orientation - """ + """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py index 38015658e36..2dd477caa03 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -46,25 +42,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -74,7 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -84,31 +80,31 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class TerrainCategoryOption(Enum): - TYPE_A = "Type A" - TYPE_B = "Type B" - TYPE_C = "Type C" + TYPE_A = "Type A" # eslint-disable-line no-eval + TYPE_B = "Type B" # eslint-disable-line no-eval + TYPE_C = "Type C" # eslint-disable-line no-eval @property def terrain_category(self) -> TerrainCategoryOption: """Terrain Category Specify the terrain category type for the Erceg model - """ + """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -119,7 +115,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -130,7 +126,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -141,23 +137,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" - FAST_FADING_ONLY = "Fast Fading Only" - SHADOWING_ONLY = "Shadowing Only" - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -168,7 +164,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -178,7 +174,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -188,7 +184,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -199,7 +195,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -209,7 +205,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -220,7 +216,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -231,7 +227,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -241,7 +237,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -251,7 +247,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -261,4 +257,5 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py index 8f680218be6..61594fb08bb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyFilter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -51,25 +47,25 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" - LOW_PASS = "Low Pass" - HIGH_PASS = "High Pass" - BAND_PASS = "Band Pass" - BAND_STOP = "Band Stop" - TUNABLE_BANDPASS = "Tunable Bandpass" - TUNABLE_BANDSTOP = "Tunable Bandstop" + BY_FILE = "By File" # eslint-disable-line no-eval + LOW_PASS = "Low Pass" # eslint-disable-line no-eval + HIGH_PASS = "High Pass" # eslint-disable-line no-eval + BAND_PASS = "Band Pass" # eslint-disable-line no-eval + BAND_STOP = "Band Stop" # eslint-disable-line no-eval + TUNABLE_BANDPASS = "Tunable Bandpass" # eslint-disable-line no-eval + TUNABLE_BANDSTOP = "Tunable Bandstop" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -77,10 +73,10 @@ def type(self) -> TypeOption: Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -90,7 +86,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def stop_band_attenuation(self) -> float: @@ -100,7 +96,7 @@ def stop_band_attenuation(self) -> float: Value should be less than 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @property def max_pass_band(self) -> float: @@ -111,7 +107,7 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_stop_band(self) -> float: @@ -122,7 +118,7 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def max_stop_band(self) -> float: @@ -133,7 +129,7 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_pass_band(self) -> float: @@ -144,7 +140,7 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -155,7 +151,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -166,7 +162,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -177,7 +173,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -188,73 +184,73 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff Lower cutoff frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band Lower stop band frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band Higher stop band frequency Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff Higher cutoff frequency Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency Lowest tuned frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lowest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency Highest tuned frequency Value should be between 1 and 1e+11. """ val = self._get_property("Highest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def percent_bandwidth(self) -> float: @@ -264,7 +260,7 @@ def percent_bandwidth(self) -> float: Value should be between 0.001 and 100. """ val = self._get_property("Percent Bandwidth") - return val # type: ignore + return val # type: ignore @property def shape_factor(self) -> float: @@ -274,13 +270,14 @@ def shape_factor(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py index 897e90ef93f..44e838f0732 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -46,25 +42,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -74,7 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -84,31 +80,31 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): - URBAN_MICROCELL = "Urban Microcell" - URBAN_MACROCELL = "Urban Macrocell" - RURAL_MACROCELL = "Rural Macrocell" + URBAN_MICROCELL = "Urban Microcell" # eslint-disable-line no-eval + URBAN_MACROCELL = "Urban Macrocell" # eslint-disable-line no-eval + RURAL_MACROCELL = "Rural Macrocell" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment for the 5G channel model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def los(self) -> bool: @@ -118,7 +114,7 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return val # type: ignore + return val # type: ignore @property def include_bpl(self) -> bool: @@ -128,21 +124,21 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return val # type: ignore + return val # type: ignore class NYUBPLModelOption(Enum): - LOW_LOSS_MODEL = "Low-loss model" - HIGH_LOSS_MODEL = "High-loss model" + LOW_LOSS_MODEL = "Low-loss model" # eslint-disable-line no-eval + HIGH_LOSS_MODEL = "High-loss model" # eslint-disable-line no-eval @property def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model Specify the NYU Building Penetration Loss model - """ + """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -153,7 +149,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -164,7 +160,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -175,23 +171,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" - FAST_FADING_ONLY = "Fast Fading Only" - SHADOWING_ONLY = "Shadowing Only" - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -202,7 +198,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -212,7 +208,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -222,7 +218,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -233,7 +229,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -243,7 +239,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -254,7 +250,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -265,7 +261,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -275,7 +271,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -285,7 +281,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -295,4 +291,5 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py index 5890d0083ad..19c487c28c1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -46,25 +42,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -74,7 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -84,32 +80,32 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): - LARGE_CITY = "Large City" - SMALLMEDIUM_CITY = "Small/Medium City" - SUBURBAN = "Suburban" - RURAL = "Rural" + LARGE_CITY = "Large City" # eslint-disable-line no-eval + SMALLMEDIUM_CITY = "Small/Medium City" # eslint-disable-line no-eval + SUBURBAN = "Suburban" # eslint-disable-line no-eval + RURAL = "Rural" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Hata model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -120,7 +116,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -131,7 +127,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -142,23 +138,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" - FAST_FADING_ONLY = "Fast Fading Only" - SHADOWING_ONLY = "Shadowing Only" - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -169,7 +165,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -179,7 +175,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -189,7 +185,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -200,7 +196,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -210,7 +206,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -221,7 +217,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -232,7 +228,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -242,7 +238,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -252,7 +248,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -262,4 +258,5 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py index 15e30c95dc5..fe7859dcae3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,13 +36,13 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Power Loss Coefficient: + "Power Loss Coefficient: Value should be between 0 and 100. - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): Value should be between 0 and 1000. """ return self._get_table_data() @@ -59,25 +55,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -87,7 +83,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -97,33 +93,33 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class BuildingTypeOption(Enum): - RESIDENTIAL_APARTMENT = "Residential Apartment" - RESIDENTIAL_HOUSE = "Residential House" - OFFICE_BUILDING = "Office Building" - COMMERCIAL_BUILDING = "Commercial Building" - CUSTOM_BUILDING = "Custom Building" + RESIDENTIAL_APARTMENT = "Residential Apartment" # eslint-disable-line no-eval + RESIDENTIAL_HOUSE = "Residential House" # eslint-disable-line no-eval + OFFICE_BUILDING = "Office Building" # eslint-disable-line no-eval + COMMERCIAL_BUILDING = "Commercial Building" # eslint-disable-line no-eval + CUSTOM_BUILDING = "Custom Building" # eslint-disable-line no-eval @property def building_type(self) -> BuildingTypeOption: """Building Type Specify the building type for the Indoor Propagation model - """ + """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def number_of_floors(self) -> int: @@ -133,7 +129,7 @@ def number_of_floors(self) -> int: Value should be between 1 and 3. """ val = self._get_property("Number of Floors") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -144,7 +140,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -155,7 +151,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -166,23 +162,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" - FAST_FADING_ONLY = "Fast Fading Only" - SHADOWING_ONLY = "Shadowing Only" - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -193,7 +189,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -203,7 +199,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -213,7 +209,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -224,7 +220,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -234,7 +230,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -245,7 +241,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -256,7 +252,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -266,7 +262,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -276,7 +272,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -286,4 +282,5 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py index 93fc1dcd2a2..b8841def5dc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyIsolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -51,20 +47,20 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" - PARAMETRIC = "Parametric" + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -72,24 +68,24 @@ def type(self) -> TypeOption: Type of isolator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" - ANTENNA_SIDE = "Antenna Side" + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the isolator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -99,7 +95,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_reverse_isolation(self) -> bool: @@ -110,7 +106,7 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -120,7 +116,7 @@ def reverse_isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -131,7 +127,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -141,7 +137,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -152,7 +148,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -163,7 +159,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -174,7 +170,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -185,13 +181,14 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py index 54e73cb2a62..07074c03901 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -46,25 +42,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -74,7 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -84,35 +80,35 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): - FREE_SPACE = "Free Space" - URBAN = "Urban" - SHADOWED_URBAN = "Shadowed Urban" - BUILDING_LINE_OF_SIGHT = "Building Line of Sight" - BUILDING_OBSTRUCTED = "Building Obstructed" - FACTORY_OBSTRUCTED = "Factory Obstructed" - CUSTOM = "Custom" + FREE_SPACE = "Free Space" # eslint-disable-line no-eval + URBAN = "Urban" # eslint-disable-line no-eval + SHADOWED_URBAN = "Shadowed Urban" # eslint-disable-line no-eval + BUILDING_LINE_OF_SIGHT = "Building Line of Sight" # eslint-disable-line no-eval + BUILDING_OBSTRUCTED = "Building Obstructed" # eslint-disable-line no-eval + FACTORY_OBSTRUCTED = "Factory Obstructed" # eslint-disable-line no-eval + CUSTOM = "Custom" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Log Distance model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def path_loss_exponent(self) -> float: @@ -122,7 +118,7 @@ def path_loss_exponent(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Path Loss Exponent") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -133,7 +129,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -144,7 +140,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -155,23 +151,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" - FAST_FADING_ONLY = "Fast Fading Only" - SHADOWING_ONLY = "Shadowing Only" - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -182,7 +178,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -192,7 +188,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -202,7 +198,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -213,7 +209,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -223,7 +219,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -234,7 +230,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -245,7 +241,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -255,7 +251,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -265,7 +261,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -275,4 +271,5 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py index e659cfe8fa5..5369666f822 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyMultiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -51,20 +47,20 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_PASS_BAND = "By Pass Band" - BY_FILE = "By File" + BY_PASS_BAND = "By Pass Band" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -73,24 +69,24 @@ def type(self) -> TypeOption: simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band) - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" - ANTENNA_SIDE = "Antenna Side" + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the multiplexer. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @property def flip_ports_vertically(self) -> bool: @@ -100,7 +96,7 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return val # type: ignore + return val # type: ignore @property def ports(self): @@ -108,15 +104,16 @@ def ports(self): Assigns the child port nodes to the multiplexers ports "A list of values." - """ + """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py index dfb228dc918..1145a05b67b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,10 +35,10 @@ def parent(self): return self._parent class TypeOption(Enum): - BY_FILE = "By File" - LOW_PASS = "Low Pass" - HIGH_PASS = "High Pass" - BAND_PASS = "Band Pass" + BY_FILE = "By File" # eslint-disable-line no-eval + LOW_PASS = "Low Pass" # eslint-disable-line no-eval + HIGH_PASS = "High Pass" # eslint-disable-line no-eval + BAND_PASS = "Band Pass" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -51,10 +47,10 @@ def type(self) -> TypeOption: file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @property def filename(self) -> str: @@ -64,7 +60,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -74,7 +70,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def stop_band_attenuation(self) -> float: @@ -84,7 +80,7 @@ def stop_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @property def max_pass_band(self) -> float: @@ -95,7 +91,7 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_stop_band(self) -> float: @@ -106,7 +102,7 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def max_stop_band(self) -> float: @@ -117,7 +113,7 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_pass_band(self) -> float: @@ -128,7 +124,7 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -139,7 +135,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -150,7 +146,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -161,7 +157,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -172,13 +168,14 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py index dfdeed59aa7..e40c9d81c33 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyPowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -51,21 +47,21 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" - P3_DB = "P3 dB" - RESISTIVE = "Resistive" + BY_FILE = "By File" # eslint-disable-line no-eval + P3_DB = "P3 dB" # eslint-disable-line no-eval + RESISTIVE = "Resistive" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -73,24 +69,24 @@ def type(self) -> TypeOption: Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric) - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class OrientationOption(Enum): - DIVIDER = "Divider" - COMBINER = "Combiner" + DIVIDER = "Divider" # eslint-disable-line no-eval + COMBINER = "Combiner" # eslint-disable-line no-eval @property def orientation(self) -> OrientationOption: """Orientation Defines the orientation of the Power Divider. - """ + """ val = self._get_property("Orientation") val = self.OrientationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss_above_ideal(self) -> float: @@ -101,7 +97,7 @@ def insertion_loss_above_ideal(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss Above Ideal") - return val # type: ignore + return val # type: ignore @property def finite_isolation(self) -> bool: @@ -112,7 +108,7 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @property def isolation(self) -> float: @@ -122,7 +118,7 @@ def isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -133,7 +129,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -143,7 +139,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -154,7 +150,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -165,7 +161,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -176,7 +172,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -187,13 +183,14 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py index 76e33bc985d..622bf0f5f8c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -46,25 +42,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -74,7 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -84,16 +80,16 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -104,7 +100,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -115,7 +111,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -126,23 +122,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" - FAST_FADING_ONLY = "Fast Fading Only" - SHADOWING_ONLY = "Shadowing Only" - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -153,7 +149,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -163,7 +159,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -173,7 +169,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -184,7 +180,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -194,7 +190,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -205,7 +201,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -216,7 +212,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -226,7 +222,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -236,7 +232,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -246,4 +242,5 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py index b1680c73f46..b2ae26c0433 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyRadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,11 +35,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Name: - "Type: - """ + "Name: + "Type: + """ return self._get_table_data() @property @@ -50,6 +47,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py index 2ca57818744..ca2069d37de 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyRfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -46,7 +43,7 @@ def enable_passive_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Passive Noise") - return val # type: ignore + return val # type: ignore @property def enforce_thermal_noise_floor(self) -> bool: @@ -57,4 +54,5 @@ def enforce_thermal_noise_floor(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enforce Thermal Noise Floor") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py index 7c064453864..331dc8de1bb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyRxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -46,7 +42,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -56,32 +52,32 @@ def source_file(self) -> str: Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def receive_frequency(self) -> float: """Receive Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class MeasurementModeOption(Enum): - AUDIO_SINAD = "Audio SINAD" - DIGITAL_BER = "Digital BER" - GPS_CNR = "GPS CNR" + AUDIO_SINAD = "Audio SINAD" # eslint-disable-line no-eval + DIGITAL_BER = "Digital BER" # eslint-disable-line no-eval + GPS_CNR = "GPS CNR" # eslint-disable-line no-eval @property def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode Defines the mode for the receiver measurement - """ + """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] - return val # type: ignore + return val # type: ignore @property def sinad_threshold(self) -> float: @@ -91,7 +87,7 @@ def sinad_threshold(self) -> float: Value should be between 5 and 20. """ val = self._get_property("SINAD Threshold") - return val # type: ignore + return val # type: ignore @property def gps_cnr_threshold(self) -> float: @@ -101,7 +97,7 @@ def gps_cnr_threshold(self) -> float: Value should be between 15 and 30. """ val = self._get_property("GPS CNR Threshold") - return val # type: ignore + return val # type: ignore @property def ber_threshold(self) -> float: @@ -111,7 +107,7 @@ def ber_threshold(self) -> float: Value should be between -12 and -1. """ val = self._get_property("BER Threshold") - return val # type: ignore + return val # type: ignore @property def default_intended_power(self) -> bool: @@ -121,7 +117,7 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return val # type: ignore + return val # type: ignore @property def intended_signal_power(self) -> float: @@ -131,7 +127,7 @@ def intended_signal_power(self) -> float: Value should be between -140 and -50. """ val = self._get_property("Intended Signal Power") - return val # type: ignore + return val # type: ignore @property def freq_deviation(self) -> float: @@ -142,7 +138,7 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def modulation_depth(self) -> float: @@ -152,7 +148,7 @@ def modulation_depth(self) -> float: Value should be between 10 and 100. """ val = self._get_property("Modulation Depth") - return val # type: ignore + return val # type: ignore @property def measure_selectivity(self) -> bool: @@ -162,7 +158,7 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return val # type: ignore + return val # type: ignore @property def measure_mixer_products(self) -> bool: @@ -172,7 +168,7 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return val # type: ignore + return val # type: ignore @property def max_rf_order(self) -> int: @@ -182,7 +178,7 @@ def max_rf_order(self) -> int: Value should be greater than 1. """ val = self._get_property("Max RF Order") - return val # type: ignore + return val # type: ignore @property def max_lo_order(self) -> int: @@ -192,7 +188,7 @@ def max_lo_order(self) -> int: Value should be greater than 1. """ val = self._get_property("Max LO Order") - return val # type: ignore + return val # type: ignore @property def include_if(self) -> bool: @@ -202,7 +198,7 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return val # type: ignore + return val # type: ignore @property def measure_saturation(self) -> bool: @@ -212,7 +208,7 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -222,7 +218,7 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -233,7 +229,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -244,7 +240,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def samples(self) -> int: @@ -254,7 +250,7 @@ def samples(self) -> int: Value should be between 2 and 100. """ val = self._get_property("Samples") - return val # type: ignore + return val # type: ignore @property def exclude_mixer_products_below_noise(self) -> bool: @@ -264,4 +260,5 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py index ee82c42f0b4..b679a7b54b0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,19 +35,19 @@ def parent(self): return self._parent class MixerProductTaperOption(Enum): - CONSTANT = "Constant" - MIL_STD_461G = "MIL-STD-461G" - DUFF_MODEL = "Duff Model" + CONSTANT = "Constant" # eslint-disable-line no-eval + MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval + DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval @property def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper Taper for setting amplitude of mixer products - """ + """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] - return val # type: ignore + return val # type: ignore @property def mixer_product_susceptibility(self) -> float: @@ -61,7 +57,7 @@ def mixer_product_susceptibility(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Mixer Product Susceptibility") - return val # type: ignore + return val # type: ignore @property def spurious_rejection(self) -> float: @@ -71,7 +67,7 @@ def spurious_rejection(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Spurious Rejection") - return val # type: ignore + return val # type: ignore @property def minimum_tuning_frequency(self) -> float: @@ -82,7 +78,7 @@ def minimum_tuning_frequency(self) -> float: """ val = self._get_property("Minimum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def maximum_tuning_frequency(self) -> float: @@ -93,7 +89,7 @@ def maximum_tuning_frequency(self) -> float: """ val = self._get_property("Maximum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def mixer_product_slope(self) -> float: @@ -104,7 +100,7 @@ def mixer_product_slope(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Mixer Product Slope") - return val # type: ignore + return val # type: ignore @property def mixer_product_intercept(self) -> float: @@ -114,7 +110,7 @@ def mixer_product_intercept(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Mixer Product Intercept") - return val # type: ignore + return val # type: ignore @property def bandwidth_80_db(self) -> float: @@ -126,7 +122,7 @@ def bandwidth_80_db(self) -> float: """ val = self._get_property("Bandwidth 80 dB") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def image_rejection(self) -> float: @@ -136,7 +132,7 @@ def image_rejection(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Image Rejection") - return val # type: ignore + return val # type: ignore @property def maximum_rf_harmonic_order(self) -> int: @@ -146,7 +142,7 @@ def maximum_rf_harmonic_order(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Maximum RF Harmonic Order") - return val # type: ignore + return val # type: ignore @property def maximum_lo_harmonic_order(self) -> int: @@ -156,22 +152,22 @@ def maximum_lo_harmonic_order(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Maximum LO Harmonic Order") - return val # type: ignore + return val # type: ignore class MixingModeOption(Enum): - LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" - LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" - LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" + LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" # eslint-disable-line no-eval @property def mixing_mode(self) -> MixingModeOption: """Mixing Mode Specifies whether the IF frequency is > or < RF channel frequency - """ + """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] - return val # type: ignore + return val # type: ignore @property def first_if_frequency(self): @@ -181,42 +177,43 @@ def first_if_frequency(self): Value should be a mathematical expression. """ val = self._get_property("First IF Frequency") - return val # type: ignore + return val # type: ignore @property def rf_transition_frequency(self) -> float: """RF Transition Frequency RF Frequency Transition point - """ + """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class UseHighLOOption(Enum): - ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" - BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" + ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" # eslint-disable-line no-eval + BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" # eslint-disable-line no-eval @property def use_high_lo(self) -> UseHighLOOption: """Use High LO Use High LO above/below the transition frequency - """ + """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] - return val # type: ignore + return val # type: ignore class MixerProductTableUnitsOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE = "Relative" + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units Specifies the units for the Mixer Products - """ + """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py index ab6a6613919..82324948947 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,3 +32,4 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py index c11f8015104..f2370826986 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -45,4 +42,5 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py index b96fc2dcaf8..9ab0ed986b5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyRxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,27 +36,28 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE = "Relative" + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py index 4eac4c17966..e712f39dffa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,30 +35,30 @@ def parent(self): return self._parent class SensitivityUnitsOption(Enum): - DBM = "dBm" - DBUV = "dBuV" - MILLIWATTS = "milliwatts" - MICROVOLTS = "microvolts" + DBM = "dBm" # eslint-disable-line no-eval + DBUV = "dBuV" # eslint-disable-line no-eval + MILLIWATTS = "milliwatts" # eslint-disable-line no-eval + MICROVOLTS = "microvolts" # eslint-disable-line no-eval @property def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units Units to use for the Rx Sensitivity - """ + """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] - return val # type: ignore + return val # type: ignore @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr Received signal power level at the Rx's antenna terminal Value should be between -1000 and 1000. """ val = self._get_property("Min. Receive Signal Pwr ") - return val # type: ignore + return val # type: ignore @property def snr_at_rx_signal_pwr(self) -> float: @@ -73,7 +69,7 @@ def snr_at_rx_signal_pwr(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("SNR at Rx Signal Pwr") - return val # type: ignore + return val # type: ignore @property def processing_gain(self) -> float: @@ -83,7 +79,7 @@ def processing_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Processing Gain") - return val # type: ignore + return val # type: ignore @property def apply_pg_to_narrowband_only(self) -> bool: @@ -94,7 +90,7 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return val # type: ignore + return val # type: ignore @property def saturation_level(self) -> float: @@ -105,7 +101,7 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def rx_noise_figure(self) -> float: @@ -115,28 +111,28 @@ def rx_noise_figure(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rx Noise Figure") - return val # type: ignore + return val # type: ignore @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity Rx minimum sensitivity level (dBm) Value should be between -1000 and 1000. """ val = self._get_property("Receiver Sensitivity ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity SNR or SINAD at the specified sensitivity level Value should be between -1000 and 1000. """ val = self._get_property("SNR/SINAD at Sensitivity ") - return val # type: ignore + return val # type: ignore @property def perform_rx_intermod_analysis(self) -> bool: @@ -146,7 +142,7 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -157,18 +153,18 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Rx's 1 dB Compression Point - total power > P1dB saturates the receiver Value should be between -1000 and 1000. """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -179,7 +175,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -189,4 +185,5 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py index c873ef6c625..cee08a9ef5f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlySamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,29 +36,29 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Min: + "Min: Value should be greater than 1. - "Max: + "Max: Value should be greater than 1. """ return self._get_table_data() class SamplingTypeOption(Enum): - SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" - RANDOM_SAMPLING = "Random Sampling" - UNIFORM_SAMPLING = "Uniform Sampling" + SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" # eslint-disable-line no-eval + RANDOM_SAMPLING = "Random Sampling" # eslint-disable-line no-eval + UNIFORM_SAMPLING = "Uniform Sampling" # eslint-disable-line no-eval @property def sampling_type(self) -> SamplingTypeOption: """Sampling Type Sampling to apply to this configuration - """ + """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def specify_percentage(self) -> bool: @@ -73,7 +69,7 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return val # type: ignore + return val # type: ignore @property def percentage_of_channels(self) -> float: @@ -83,7 +79,7 @@ def percentage_of_channels(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Percentage of Channels") - return val # type: ignore + return val # type: ignore @property def max__channelsrangeband(self) -> int: @@ -93,7 +89,7 @@ def max__channelsrangeband(self) -> int: Value should be between 1 and 100000. """ val = self._get_property("Max # Channels/Range/Band") - return val # type: ignore + return val # type: ignore @property def seed(self) -> int: @@ -103,7 +99,7 @@ def seed(self) -> int: Value should be greater than 0. """ val = self._get_property("Seed") - return val # type: ignore + return val # type: ignore @property def total_tx_channels(self) -> int: @@ -111,9 +107,9 @@ def total_tx_channels(self) -> int: Total number of transmit channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Tx Channels") - return val # type: ignore + return val # type: ignore @property def total_rx_channels(self) -> int: @@ -121,15 +117,16 @@ def total_rx_channels(self) -> int: Total number of receive channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Rx Channels") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py index 193d4be3bfc..4dad5238e84 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlySceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -47,7 +43,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @property def position(self): @@ -57,7 +53,7 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): @@ -67,21 +63,21 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" - AZ_EL_TWIST = "Az-El-Twist" + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @property def orientation(self): @@ -91,7 +87,7 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): @@ -101,7 +97,7 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def show_axes(self) -> bool: @@ -111,7 +107,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @property def box_color(self): @@ -121,13 +117,14 @@ def box_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Box Color") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py index 69761e3dac5..ccb9043c10a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -45,7 +42,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -55,7 +52,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -65,13 +62,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py index 3ac2ce7fd8f..f0162cbac27 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlySolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -45,4 +42,5 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py index d309d41cc95..d3308554392 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -51,44 +47,44 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TxPortOption(Enum): - PORT_1 = "Port 1" - PORT_2 = "Port 2" + PORT_1 = "Port 1" # eslint-disable-line no-eval + PORT_2 = "Port 2" # eslint-disable-line no-eval @property def tx_port(self) -> TxPortOption: """Tx Port Specifies which port on the TR Switch is part of the Tx path. - """ + """ val = self._get_property("Tx Port") val = self.TxPortOption[val] - return val # type: ignore + return val # type: ignore class CommonPortLocationOption(Enum): - RADIO_SIDE = "Radio Side" - ANTENNA_SIDE = "Antenna Side" + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def common_port_location(self) -> CommonPortLocationOption: """Common Port Location Defines the orientation of the tr switch. - """ + """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -98,7 +94,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_isolation(self) -> bool: @@ -109,7 +105,7 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @property def isolation(self) -> float: @@ -119,7 +115,7 @@ def isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -130,7 +126,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -140,7 +136,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -151,7 +147,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -162,7 +158,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -173,7 +169,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -184,4 +180,5 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py index ab17aed6831..1101613b670 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTerminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -51,20 +47,20 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" - PARAMETRIC = "Parametric" + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -72,24 +68,24 @@ def type(self) -> TypeOption: Type of terminator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class PortLocationOption(Enum): - RADIO_SIDE = "Radio Side" - ANTENNA_SIDE = "Antenna Side" + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_location(self) -> PortLocationOption: """Port Location Defines the orientation of the terminator. - """ + """ val = self._get_property("Port Location") val = self.PortLocationOption[val] - return val # type: ignore + return val # type: ignore @property def vswr(self) -> float: @@ -101,13 +97,14 @@ def vswr(self) -> float: Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py index bbb8270e2aa..40ce5119d27 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,7 +41,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -54,7 +51,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -64,16 +61,16 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def filename(self) -> str: @@ -83,16 +80,16 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File Coupling data generated by Savant and exported as a matched file - """ + """ val = self._get_property("Savant Matched Coupling File") - return val # type: ignore + return val # type: ignore @property def enable_em_isolation(self) -> bool: @@ -102,7 +99,7 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return val # type: ignore + return val # type: ignore @property def port_antenna_assignment(self): @@ -110,15 +107,16 @@ def port_antenna_assignment(self): Maps each port in the coupling file to an antenna in the project "A list of values." - """ + """ val = self._get_property("Port-Antenna Assignment") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py index 21850da600c..d8858a39c2f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -46,25 +42,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -74,7 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -84,16 +80,16 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def ground_reflection_coeff(self) -> float: @@ -103,7 +99,7 @@ def ground_reflection_coeff(self) -> float: Value should be between -100 and 100. """ val = self._get_property("Ground Reflection Coeff.") - return val # type: ignore + return val # type: ignore @property def pointspeak(self) -> int: @@ -113,7 +109,7 @@ def pointspeak(self) -> int: Value should be between 3 and 100. """ val = self._get_property("Points/Peak") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -124,7 +120,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -135,7 +131,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -146,23 +142,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" - FAST_FADING_ONLY = "Fast Fading Only" - SHADOWING_ONLY = "Shadowing Only" - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -173,7 +169,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -183,7 +179,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -193,7 +189,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -204,7 +200,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -214,7 +210,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -225,7 +221,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -236,7 +232,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -246,7 +242,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -256,7 +252,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -266,4 +262,5 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py index 431082062af..f227cfcfa33 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,28 +38,28 @@ def parent(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): Value should be between -200 and 150. """ return self._get_table_data() class NoiseBehaviorOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE_BANDWIDTH = "Relative (Bandwidth)" - RELATIVE_OFFSET = "Relative (Offset)" - EQUATION = "Equation" + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE_BANDWIDTH = "Relative (Bandwidth)" # eslint-disable-line no-eval + RELATIVE_OFFSET = "Relative (Offset)" # eslint-disable-line no-eval + EQUATION = "Equation" # eslint-disable-line no-eval @property def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior Specifies the behavior of the parametric noise profile - """ + """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] - return val # type: ignore + return val # type: ignore @property def use_log_linear_interpolation(self) -> bool: @@ -74,4 +70,5 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py index 56bc60f961f..a5fe7c6c13a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,15 +35,16 @@ def parent(self): return self._parent class HarmonicTableUnitsOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE = "Relative" + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units Specifies the units for the Harmonics - """ + """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py index 1b8dda0f8d3..8614bf2c4c5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyTxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -44,7 +41,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -54,17 +51,17 @@ def source_file(self) -> str: Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def transmit_frequency(self) -> float: """Transmit Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -74,7 +71,7 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -85,7 +82,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -96,7 +93,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def exclude_harmonics_below_noise(self) -> bool: @@ -106,4 +103,5 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py index 79800f243e9..c8b671f8c09 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,25 +35,26 @@ def parent(self): return self._parent class NarrowbandBehaviorOption(Enum): - ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" - RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" + ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" # eslint-disable-line no-eval + RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" # eslint-disable-line no-eval @property def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior Specifies the behavior of the parametric narrowband emissions mask - """ + """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] - return val # type: ignore + return val # type: ignore @property def measurement_frequency(self) -> float: """Measurement Frequency Measurement frequency for the absolute freq/amp pairs. - """ + """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py index 717c67aaf89..da2c3b9bd01 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyTxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,10 +38,10 @@ def output_voltage_peak(self) -> float: """Output Voltage Peak Output High Voltage Level: maximum voltage of the digital signal - """ + """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") - return val # type: ignore + return val # type: ignore @property def include_phase_noise(self) -> bool: @@ -54,7 +51,7 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @property def tx_broadband_noise(self) -> float: @@ -64,7 +61,7 @@ def tx_broadband_noise(self) -> float: Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @property def perform_tx_intermod_analysis(self) -> bool: @@ -74,7 +71,7 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @property def internal_amp_gain(self) -> float: @@ -84,7 +81,7 @@ def internal_amp_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: @@ -94,7 +91,7 @@ def noise_figure(self) -> float: Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -105,11 +102,11 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -117,7 +114,7 @@ def p1_db_point_ref_input_(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -128,7 +125,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -138,7 +135,7 @@ def reverse_isolation(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -148,4 +145,5 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py index b2797980b1f..ab57a7815a0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,32 +35,32 @@ def parent(self): return self._parent class SpectrumTypeOption(Enum): - NARROWBAND__BROADBAND = "Narrowband & Broadband" - BROADBAND_ONLY = "Broadband Only" + NARROWBAND__BROADBAND = "Narrowband & Broadband" # eslint-disable-line no-eval + BROADBAND_ONLY = "Broadband Only" # eslint-disable-line no-eval @property def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type Specifies EMI Margins to calculate - """ + """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] - return val # type: ignore + return val # type: ignore class TxPowerOption(Enum): - PEAK_POWER = "Peak Power" - AVERAGE_POWER = "Average Power" + PEAK_POWER = "Peak Power" # eslint-disable-line no-eval + AVERAGE_POWER = "Average Power" # eslint-disable-line no-eval @property def tx_power(self) -> TxPowerOption: """Tx Power Method used to specify the power - """ + """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] - return val # type: ignore + return val # type: ignore @property def peak_power(self) -> float: @@ -75,7 +71,7 @@ def peak_power(self) -> float: """ val = self._get_property("Peak Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def average_power(self) -> float: @@ -86,7 +82,7 @@ def average_power(self) -> float: """ val = self._get_property("Average Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def include_phase_noise(self) -> bool: @@ -96,7 +92,7 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @property def tx_broadband_noise(self) -> float: @@ -106,23 +102,23 @@ def tx_broadband_noise(self) -> float: Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore class HarmonicTaperOption(Enum): - CONSTANT = "Constant" - MIL_STD_461G = "MIL-STD-461G" - MIL_STD_461G_NAVY = "MIL-STD-461G Navy" - DUFF_MODEL = "Duff Model" + CONSTANT = "Constant" # eslint-disable-line no-eval + MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval + MIL_STD_461G_NAVY = "MIL-STD-461G Navy" # eslint-disable-line no-eval + DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval @property def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper Taper type used to set amplitude of harmonics - """ + """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] - return val # type: ignore + return val # type: ignore @property def harmonic_amplitude(self) -> float: @@ -132,7 +128,7 @@ def harmonic_amplitude(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Amplitude") - return val # type: ignore + return val # type: ignore @property def harmonic_slope(self) -> float: @@ -142,7 +138,7 @@ def harmonic_slope(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Slope") - return val # type: ignore + return val # type: ignore @property def harmonic_intercept(self) -> float: @@ -152,7 +148,7 @@ def harmonic_intercept(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Intercept") - return val # type: ignore + return val # type: ignore @property def enable_harmonic_bw_expansion(self) -> bool: @@ -163,7 +159,7 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return val # type: ignore + return val # type: ignore @property def number_of_harmonics(self) -> int: @@ -173,7 +169,7 @@ def number_of_harmonics(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Number of Harmonics") - return val # type: ignore + return val # type: ignore @property def second_harmonic_level(self) -> float: @@ -183,7 +179,7 @@ def second_harmonic_level(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Second Harmonic Level") - return val # type: ignore + return val # type: ignore @property def third_harmonic_level(self) -> float: @@ -193,7 +189,7 @@ def third_harmonic_level(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Third Harmonic Level") - return val # type: ignore + return val # type: ignore @property def other_harmonic_levels(self) -> float: @@ -203,7 +199,7 @@ def other_harmonic_levels(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Other Harmonic Levels") - return val # type: ignore + return val # type: ignore @property def perform_tx_intermod_analysis(self) -> bool: @@ -213,7 +209,7 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @property def internal_amp_gain(self) -> float: @@ -223,7 +219,7 @@ def internal_amp_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: @@ -233,7 +229,7 @@ def noise_figure(self) -> float: Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -244,11 +240,11 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -256,7 +252,7 @@ def p1_db_point_ref_input_(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -267,7 +263,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -277,7 +273,7 @@ def reverse_isolation(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -287,4 +283,5 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py index 36f3d509176..e27727f1f8b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,27 +36,28 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE = "Relative" + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py index c2895d3e6f7..89cbee6acae 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -46,25 +42,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -74,7 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -84,44 +80,44 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class PathLossTypeOption(Enum): - LOS_URBAN_CANYON = "LOS (Urban Canyon)" - NLOS = "NLOS" + LOS_URBAN_CANYON = "LOS (Urban Canyon)" # eslint-disable-line no-eval + NLOS = "NLOS" # eslint-disable-line no-eval @property def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type Specify LOS vs NLOS for the Walfisch-Ikegami model - """ + """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): - DENSE_METRO = "Dense Metro" - SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" + DENSE_METRO = "Dense Metro" # eslint-disable-line no-eval + SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Walfisch model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def roof_height(self) -> float: @@ -132,7 +128,7 @@ def roof_height(self) -> float: """ val = self._get_property("Roof Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def distance_between_buildings(self) -> float: @@ -143,7 +139,7 @@ def distance_between_buildings(self) -> float: """ val = self._get_property("Distance Between Buildings") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def street_width(self) -> float: @@ -154,7 +150,7 @@ def street_width(self) -> float: """ val = self._get_property("Street Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def incidence_angle(self) -> float: @@ -164,7 +160,7 @@ def incidence_angle(self) -> float: Value should be between 0 and 90. """ val = self._get_property("Incidence Angle") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -175,7 +171,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -186,7 +182,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -197,23 +193,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" - FAST_FADING_ONLY = "Fast Fading Only" - SHADOWING_ONLY = "Shadowing Only" - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -224,7 +220,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -234,7 +230,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -244,7 +240,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -255,7 +251,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -265,7 +261,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -276,7 +272,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -287,7 +283,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -297,7 +293,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -307,7 +303,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -317,4 +313,5 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py index dd351178519..2a2ae4586b9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyWaveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -43,26 +39,26 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore class WaveformOption(Enum): - PERIODIC_CLOCK = "Periodic Clock" - SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" - PRBS = "PRBS" - PRBS_PERIODIC = "PRBS (Periodic)" - IMPORTED = "Imported" + PERIODIC_CLOCK = "Periodic Clock" # eslint-disable-line no-eval + SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" # eslint-disable-line no-eval + PRBS = "PRBS" # eslint-disable-line no-eval + PRBS_PERIODIC = "PRBS (Periodic)" # eslint-disable-line no-eval + IMPORTED = "Imported" # eslint-disable-line no-eval @property def waveform(self) -> WaveformOption: """Waveform Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Waveform") val = self.WaveformOption[val] - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -73,7 +69,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -84,7 +80,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def channel_spacing(self) -> float: @@ -95,7 +91,7 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def clock_duty_cycle(self) -> float: @@ -105,7 +101,7 @@ def clock_duty_cycle(self) -> float: Value should be between 0.001 and 1. """ val = self._get_property("Clock Duty Cycle") - return val # type: ignore + return val # type: ignore @property def clock_risefall_time(self) -> float: @@ -116,22 +112,22 @@ def clock_risefall_time(self) -> float: """ val = self._get_property("Clock Rise/Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore class SpreadingTypeOption(Enum): - LOW_SPREAD = "Low Spread" - CENTER_SPREAD = "Center Spread" - HIGH_SPREAD = "High Spread" + LOW_SPREAD = "Low Spread" # eslint-disable-line no-eval + CENTER_SPREAD = "Center Spread" # eslint-disable-line no-eval + HIGH_SPREAD = "High Spread" # eslint-disable-line no-eval @property def spreading_type(self) -> SpreadingTypeOption: """Spreading Type Type of spreading employed by the Spread Spectrum Clock - """ + """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def spread_percentage(self) -> float: @@ -141,7 +137,7 @@ def spread_percentage(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Spread Percentage") - return val # type: ignore + return val # type: ignore @property def imported_spectrum(self) -> str: @@ -149,16 +145,16 @@ def imported_spectrum(self) -> str: Value should be a full file path. """ val = self._get_property("Imported Spectrum") - return val # type: ignore + return val # type: ignore @property def raw_data_format(self) -> str: """Raw Data Format Format of the imported raw data - """ + """ val = self._get_property("Raw Data Format") - return val # type: ignore + return val # type: ignore @property def system_impedance(self) -> float: @@ -169,7 +165,7 @@ def system_impedance(self) -> float: """ val = self._get_property("System Impedance") val = self._convert_from_internal_units(float(val), "Resistance") - return val # type: ignore + return val # type: ignore @property def advanced_extraction_params(self) -> bool: @@ -179,7 +175,7 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return val # type: ignore + return val # type: ignore @property def nb_window_size(self) -> float: @@ -190,7 +186,7 @@ def nb_window_size(self) -> float: Value should be greater than 3. """ val = self._get_property("NB Window Size") - return val # type: ignore + return val # type: ignore @property def bb_smoothing_factor(self) -> float: @@ -200,7 +196,7 @@ def bb_smoothing_factor(self) -> float: Value should be greater than 1. """ val = self._get_property("BB Smoothing Factor") - return val # type: ignore + return val # type: ignore @property def nb_detector_threshold(self) -> float: @@ -210,21 +206,21 @@ def nb_detector_threshold(self) -> float: Value should be between 2 and 10. """ val = self._get_property("NB Detector Threshold") - return val # type: ignore + return val # type: ignore class AlgorithmOption(Enum): - FFT = "FFT" - FOURIER_TRANSFORM = "Fourier Transform" + FFT = "FFT" # eslint-disable-line no-eval + FOURIER_TRANSFORM = "Fourier Transform" # eslint-disable-line no-eval @property def algorithm(self) -> AlgorithmOption: """Algorithm Algorithm used to transform the imported time domain spectrum - """ + """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] - return val # type: ignore + return val # type: ignore @property def start_time(self) -> float: @@ -235,17 +231,17 @@ def start_time(self) -> float: """ val = self._get_property("Start Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def stop_time(self) -> float: """Stop Time Final time of the imported time domain spectrum - """ + """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def max_frequency(self) -> float: @@ -256,28 +252,28 @@ def max_frequency(self) -> float: """ val = self._get_property("Max Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class WindowTypeOption(Enum): - RECTANGULAR = "Rectangular" - BARTLETT = "Bartlett" - BLACKMAN = "Blackman" - HAMMING = "Hamming" - HANNING = "Hanning" - KAISER = "Kaiser" - LANZCOS = "Lanzcos" - WELCH = "Welch" - WEBER = "Weber" + RECTANGULAR = "Rectangular" # eslint-disable-line no-eval + BARTLETT = "Bartlett" # eslint-disable-line no-eval + BLACKMAN = "Blackman" # eslint-disable-line no-eval + HAMMING = "Hamming" # eslint-disable-line no-eval + HANNING = "Hanning" # eslint-disable-line no-eval + KAISER = "Kaiser" # eslint-disable-line no-eval + LANZCOS = "Lanzcos" # eslint-disable-line no-eval + WELCH = "Welch" # eslint-disable-line no-eval + WEBER = "Weber" # eslint-disable-line no-eval @property def window_type(self) -> WindowTypeOption: """Window Type Windowing scheme used for importing time domain spectrum - """ + """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] - return val # type: ignore + return val # type: ignore @property def kaiser_parameter(self) -> float: @@ -287,7 +283,7 @@ def kaiser_parameter(self) -> float: Value should be greater than 0. """ val = self._get_property("Kaiser Parameter") - return val # type: ignore + return val # type: ignore @property def adjust_coherent_gain(self) -> bool: @@ -297,7 +293,7 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return val # type: ignore + return val # type: ignore @property def data_rate(self) -> float: @@ -308,7 +304,7 @@ def data_rate(self) -> float: """ val = self._get_property("Data Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @property def num_of_bits(self) -> int: @@ -318,7 +314,7 @@ def num_of_bits(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Num of Bits") - return val # type: ignore + return val # type: ignore @property def use_envelope(self) -> bool: @@ -328,7 +324,7 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return val # type: ignore + return val # type: ignore @property def min_ptsnull(self) -> int: @@ -338,7 +334,7 @@ def min_ptsnull(self) -> int: Value should be between 2 and 50. """ val = self._get_property("Min Pts/Null") - return val # type: ignore + return val # type: ignore @property def delay_skew(self) -> float: @@ -349,4 +345,5 @@ def delay_skew(self) -> float: """ val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py index d1bdae04e39..e05f6545490 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ResultPlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -46,13 +42,15 @@ def title(self) -> str: """Title Enter title at the top of the plot, room will be made for it - """ + """ val = self._get_property("Title") - return val # type: ignore + return val # type: ignore @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title={value}"]) @property def title_font(self): @@ -62,11 +60,13 @@ def title_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Title Font") - return val # type: ignore + return val # type: ignore @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -76,11 +76,13 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return val # type: ignore + return val # type: ignore @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Legend={value}"]) @property def legend_font(self): @@ -90,11 +92,13 @@ def legend_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Legend Font") - return val # type: ignore + return val # type: ignore @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Legend Font={value}"]) @property def show_emi_thresholds(self) -> bool: @@ -104,11 +108,13 @@ def show_emi_thresholds(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show EMI Thresholds") - return val # type: ignore + return val # type: ignore @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show EMI Thresholds={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show EMI Thresholds={value}"]) @property def display_cad_overlay(self) -> bool: @@ -118,11 +124,13 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return val # type: ignore + return val # type: ignore @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -132,24 +140,28 @@ def opacity(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Opacity") - return val # type: ignore + return val # type: ignore @opacity.setter - def opacity(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) + def opacity(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset Adjust vertical position of CAD model overlay - """ + """ val = self._get_property("Vertical Offset") - return val # type: ignore + return val # type: ignore @vertical_offset.setter - def vertical_offset(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) + def vertical_offset(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -160,11 +172,13 @@ def range_axis_rotation(self) -> float: Value should be between -180 and 180. """ val = self._get_property("Range Axis Rotation") - return val # type: ignore + return val # type: ignore @range_axis_rotation.setter - def range_axis_rotation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -174,63 +188,73 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return val # type: ignore + return val # type: ignore @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min Set lower extent of horizontal axis - """ + """ val = self._get_property("X-axis Min") - return val # type: ignore + return val # type: ignore @x_axis_min.setter - def x_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) + def x_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max Set upper extent of horizontal axis - """ + """ val = self._get_property("X-axis Max") - return val # type: ignore + return val # type: ignore @x_axis_max.setter - def x_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) + def x_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min Set lower extent of vertical axis - """ + """ val = self._get_property("Y-axis Min") - return val # type: ignore + return val # type: ignore @y_axis_min.setter - def y_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) + def y_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max Set upper extent of vertical axis - """ + """ val = self._get_property("Y-axis Max") - return val # type: ignore + return val # type: ignore @y_axis_max.setter - def y_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) + def y_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -241,11 +265,13 @@ def y_axis_range(self) -> float: Value should be greater than 0. """ val = self._get_property("Y-axis Range") - return val # type: ignore + return val # type: ignore @y_axis_range.setter - def y_axis_range(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) + def y_axis_range(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -255,11 +281,13 @@ def max_major_ticks_x(self) -> int: Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks X") - return val # type: ignore + return val # type: ignore @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -270,11 +298,13 @@ def max_minor_ticks_x(self) -> int: Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks X") - return val # type: ignore + return val # type: ignore @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -284,11 +314,13 @@ def max_major_ticks_y(self) -> int: Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks Y") - return val # type: ignore + return val # type: ignore @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -299,11 +331,13 @@ def max_minor_ticks_y(self) -> int: Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks Y") - return val # type: ignore + return val # type: ignore @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -313,11 +347,13 @@ def axis_label_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Label Font") - return val # type: ignore + return val # type: ignore @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -327,35 +363,37 @@ def axis_tick_label_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Tick Label Font") - return val # type: ignore + return val # type: ignore @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style Select line style of major-tick grid lines - """ + """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Line Style={value.value}"]) @property def major_grid_color(self): @@ -365,35 +403,37 @@ def major_grid_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Major Grid Color") - return val # type: ignore + return val # type: ignore @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style Select line style of minor-tick grid lines - """ + """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Line Style={value.value}"]) @property def minor_grid_color(self): @@ -403,11 +443,13 @@ def minor_grid_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Minor Grid Color") - return val # type: ignore + return val # type: ignore @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -417,33 +459,35 @@ def background_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): - HERTZ = "hertz" - KILOHERTZ = "kilohertz" - MEGAHERTZ = "megahertz" - GIGAHERTZ = "gigahertz" + HERTZ = "hertz" # eslint-disable-line no-eval + KILOHERTZ = "kilohertz" # eslint-disable-line no-eval + MEGAHERTZ = "megahertz" # eslint-disable-line no-eval + GIGAHERTZ = "gigahertz" # eslint-disable-line no-eval @property def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit Units to use for plotting broadband power densities - """ + """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] - return val # type: ignore + return val # type: ignore @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power for Plots Unit={value.value}"]) @property def bb_power_bandwidth(self) -> float: @@ -454,12 +498,14 @@ def bb_power_bandwidth(self) -> float: """ val = self._get_property("BB Power Bandwidth") val = self._convert_from_internal_units(float(val), "") - return val # type: ignore + return val # type: ignore @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value: float | str): + def bb_power_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -469,8 +515,11 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return val # type: ignore + return val # type: ignore @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Log Scale={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py index 127a9a75166..53d5e33e1b7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class RfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -46,11 +43,13 @@ def enable_passive_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Passive Noise") - return val # type: ignore + return val # type: ignore @enable_passive_noise.setter def enable_passive_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Passive Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Passive Noise={value}"]) @property def enforce_thermal_noise_floor(self) -> bool: @@ -61,10 +60,11 @@ def enforce_thermal_noise_floor(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enforce Thermal Noise Floor") - return val # type: ignore + return val # type: ignore @enforce_thermal_noise_floor.setter def enforce_thermal_noise_floor(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Enforce Thermal Noise Floor={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enforce Thermal Noise Floor={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py index 13071d63e34..a66376fb44c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class RxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,7 +50,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -64,36 +60,38 @@ def source_file(self) -> str: Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def receive_frequency(self) -> float: """Receive Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class MeasurementModeOption(Enum): - AUDIO_SINAD = "Audio SINAD" - DIGITAL_BER = "Digital BER" - GPS_CNR = "GPS CNR" + AUDIO_SINAD = "Audio SINAD" # eslint-disable-line no-eval + DIGITAL_BER = "Digital BER" # eslint-disable-line no-eval + GPS_CNR = "GPS CNR" # eslint-disable-line no-eval @property def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode Defines the mode for the receiver measurement - """ + """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] - return val # type: ignore + return val # type: ignore @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Mode={value.value}"]) @property def sinad_threshold(self) -> float: @@ -103,11 +101,13 @@ def sinad_threshold(self) -> float: Value should be between 5 and 20. """ val = self._get_property("SINAD Threshold") - return val # type: ignore + return val # type: ignore @sinad_threshold.setter - def sinad_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SINAD Threshold={value}"]) + def sinad_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SINAD Threshold={value}"]) @property def gps_cnr_threshold(self) -> float: @@ -117,11 +117,13 @@ def gps_cnr_threshold(self) -> float: Value should be between 15 and 30. """ val = self._get_property("GPS CNR Threshold") - return val # type: ignore + return val # type: ignore @gps_cnr_threshold.setter - def gps_cnr_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GPS CNR Threshold={value}"]) + def gps_cnr_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"GPS CNR Threshold={value}"]) @property def ber_threshold(self) -> float: @@ -131,11 +133,13 @@ def ber_threshold(self) -> float: Value should be between -12 and -1. """ val = self._get_property("BER Threshold") - return val # type: ignore + return val # type: ignore @ber_threshold.setter - def ber_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BER Threshold={value}"]) + def ber_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BER Threshold={value}"]) @property def default_intended_power(self) -> bool: @@ -145,11 +149,13 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return val # type: ignore + return val # type: ignore @default_intended_power.setter def default_intended_power(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Default Intended Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Default Intended Power={value}"]) @property def intended_signal_power(self) -> float: @@ -159,11 +165,13 @@ def intended_signal_power(self) -> float: Value should be between -140 and -50. """ val = self._get_property("Intended Signal Power") - return val # type: ignore + return val # type: ignore @intended_signal_power.setter - def intended_signal_power(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Intended Signal Power={value}"]) + def intended_signal_power(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Intended Signal Power={value}"]) @property def freq_deviation(self) -> float: @@ -174,12 +182,14 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation.setter - def freq_deviation(self, value: float | str): + def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation={value}"]) @property def modulation_depth(self) -> float: @@ -189,11 +199,13 @@ def modulation_depth(self) -> float: Value should be between 10 and 100. """ val = self._get_property("Modulation Depth") - return val # type: ignore + return val # type: ignore @modulation_depth.setter - def modulation_depth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Depth={value}"]) + def modulation_depth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation Depth={value}"]) @property def measure_selectivity(self) -> bool: @@ -203,11 +215,13 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return val # type: ignore + return val # type: ignore @measure_selectivity.setter def measure_selectivity(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Selectivity={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Selectivity={value}"]) @property def measure_mixer_products(self) -> bool: @@ -217,11 +231,13 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return val # type: ignore + return val # type: ignore @measure_mixer_products.setter def measure_mixer_products(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Mixer Products={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Mixer Products={value}"]) @property def max_rf_order(self) -> int: @@ -231,11 +247,13 @@ def max_rf_order(self) -> int: Value should be greater than 1. """ val = self._get_property("Max RF Order") - return val # type: ignore + return val # type: ignore @max_rf_order.setter def max_rf_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max RF Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max RF Order={value}"]) @property def max_lo_order(self) -> int: @@ -245,11 +263,13 @@ def max_lo_order(self) -> int: Value should be greater than 1. """ val = self._get_property("Max LO Order") - return val # type: ignore + return val # type: ignore @max_lo_order.setter def max_lo_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max LO Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max LO Order={value}"]) @property def include_if(self) -> bool: @@ -259,11 +279,13 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return val # type: ignore + return val # type: ignore @include_if.setter def include_if(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include IF={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include IF={value}"]) @property def measure_saturation(self) -> bool: @@ -273,11 +295,13 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return val # type: ignore + return val # type: ignore @measure_saturation.setter def measure_saturation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Saturation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Saturation={value}"]) @property def use_ams_limits(self) -> bool: @@ -287,11 +311,13 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -302,12 +328,14 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -318,12 +346,14 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def samples(self) -> int: @@ -333,11 +363,13 @@ def samples(self) -> int: Value should be between 2 and 100. """ val = self._get_property("Samples") - return val # type: ignore + return val # type: ignore @samples.setter def samples(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Samples={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Samples={value}"]) @property def exclude_mixer_products_below_noise(self) -> bool: @@ -347,19 +379,20 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return val # type: ignore + return val # type: ignore @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Exclude Mixer Products Below Noise={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Exclude Mixer Products Below Noise={value}"]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py index 339dd63285c..0916ee71434 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class RxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -49,32 +45,32 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class MixerProductTaperOption(Enum): - CONSTANT = "Constant" - MIL_STD_461G = "MIL-STD-461G" - DUFF_MODEL = "Duff Model" + CONSTANT = "Constant" # eslint-disable-line no-eval + MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval + DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval @property def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper Taper for setting amplitude of mixer products - """ + """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] - return val # type: ignore + return val # type: ignore @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Taper={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Taper={value.value}"]) @property def mixer_product_susceptibility(self) -> float: @@ -84,13 +80,13 @@ def mixer_product_susceptibility(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Mixer Product Susceptibility") - return val # type: ignore + return val # type: ignore @mixer_product_susceptibility.setter - def mixer_product_susceptibility(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Susceptibility={value}"] - ) + def mixer_product_susceptibility(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Susceptibility={value}"]) @property def spurious_rejection(self) -> float: @@ -100,11 +96,13 @@ def spurious_rejection(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Spurious Rejection") - return val # type: ignore + return val # type: ignore @spurious_rejection.setter - def spurious_rejection(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spurious Rejection={value}"]) + def spurious_rejection(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spurious Rejection={value}"]) @property def minimum_tuning_frequency(self) -> float: @@ -115,12 +113,14 @@ def minimum_tuning_frequency(self) -> float: """ val = self._get_property("Minimum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value: float | str): + def minimum_tuning_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minimum Tuning Frequency={value}"]) @property def maximum_tuning_frequency(self) -> float: @@ -131,12 +131,14 @@ def maximum_tuning_frequency(self) -> float: """ val = self._get_property("Maximum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value: float | str): + def maximum_tuning_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum Tuning Frequency={value}"]) @property def mixer_product_slope(self) -> float: @@ -147,11 +149,13 @@ def mixer_product_slope(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Mixer Product Slope") - return val # type: ignore + return val # type: ignore @mixer_product_slope.setter - def mixer_product_slope(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Slope={value}"]) + def mixer_product_slope(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Slope={value}"]) @property def mixer_product_intercept(self) -> float: @@ -161,11 +165,13 @@ def mixer_product_intercept(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Mixer Product Intercept") - return val # type: ignore + return val # type: ignore @mixer_product_intercept.setter - def mixer_product_intercept(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Intercept={value}"]) + def mixer_product_intercept(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Intercept={value}"]) @property def bandwidth_80_db(self) -> float: @@ -177,12 +183,14 @@ def bandwidth_80_db(self) -> float: """ val = self._get_property("Bandwidth 80 dB") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_80_db.setter - def bandwidth_80_db(self, value: float | str): + def bandwidth_80_db(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 80 dB={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 80 dB={value}"]) @property def image_rejection(self) -> float: @@ -192,11 +200,13 @@ def image_rejection(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Image Rejection") - return val # type: ignore + return val # type: ignore @image_rejection.setter - def image_rejection(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Image Rejection={value}"]) + def image_rejection(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Image Rejection={value}"]) @property def maximum_rf_harmonic_order(self) -> int: @@ -206,13 +216,13 @@ def maximum_rf_harmonic_order(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Maximum RF Harmonic Order") - return val # type: ignore + return val # type: ignore @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Maximum RF Harmonic Order={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum RF Harmonic Order={value}"]) @property def maximum_lo_harmonic_order(self) -> int: @@ -222,32 +232,34 @@ def maximum_lo_harmonic_order(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Maximum LO Harmonic Order") - return val # type: ignore + return val # type: ignore @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Maximum LO Harmonic Order={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum LO Harmonic Order={value}"]) class MixingModeOption(Enum): - LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" - LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" - LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" + LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" # eslint-disable-line no-eval @property def mixing_mode(self) -> MixingModeOption: """Mixing Mode Specifies whether the IF frequency is > or < RF channel frequency - """ + """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] - return val # type: ignore + return val # type: ignore @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixing Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixing Mode={value.value}"]) @property def first_if_frequency(self): @@ -257,61 +269,68 @@ def first_if_frequency(self): Value should be a mathematical expression. """ val = self._get_property("First IF Frequency") - return val # type: ignore + return val # type: ignore @first_if_frequency.setter def first_if_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First IF Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First IF Frequency={value}"]) @property def rf_transition_frequency(self) -> float: """RF Transition Frequency RF Frequency Transition point - """ + """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @rf_transition_frequency.setter - def rf_transition_frequency(self, value: float | str): + def rf_transition_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"RF Transition Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"RF Transition Frequency={value}"]) class UseHighLOOption(Enum): - ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" - BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" + ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" # eslint-disable-line no-eval + BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" # eslint-disable-line no-eval @property def use_high_lo(self) -> UseHighLOOption: """Use High LO Use High LO above/below the transition frequency - """ + """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] - return val # type: ignore + return val # type: ignore @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use High LO={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use High LO={value.value}"]) class MixerProductTableUnitsOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE = "Relative" + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units Specifies the units for the Mixer Products - """ + """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Table Units={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py index 517ac9e5fa1..d425bb22dc3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class RxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,7 +35,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -47,8 +44,9 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py index b15d9e67755..8545b2a6b4a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class RxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,7 +35,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -47,7 +44,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -62,8 +59,11 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return val # type: ignore + return val # type: ignore @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Arithmetic Mean={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Arithmetic Mean={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py index 5381e9e5140..8bf11693f80 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class RxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -48,13 +44,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -66,26 +62,29 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE = "Relative" + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spur Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py index c28ae1e38aa..923966d1925 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class RxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,45 +37,49 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SensitivityUnitsOption(Enum): - DBM = "dBm" - DBUV = "dBuV" - MILLIWATTS = "milliwatts" - MICROVOLTS = "microvolts" + DBM = "dBm" # eslint-disable-line no-eval + DBUV = "dBuV" # eslint-disable-line no-eval + MILLIWATTS = "milliwatts" # eslint-disable-line no-eval + MICROVOLTS = "microvolts" # eslint-disable-line no-eval @property def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units Units to use for the Rx Sensitivity - """ + """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] - return val # type: ignore + return val # type: ignore @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sensitivity Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sensitivity Units={value.value}"]) @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr Received signal power level at the Rx's antenna terminal Value should be between -1000 and 1000. """ val = self._get_property("Min. Receive Signal Pwr ") - return val # type: ignore + return val # type: ignore @min_receive_signal_pwr_.setter - def min_receive_signal_pwr_(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min. Receive Signal Pwr ={value}"]) + def min_receive_signal_pwr_(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min. Receive Signal Pwr ={value}"]) @property def snr_at_rx_signal_pwr(self) -> float: @@ -90,11 +90,13 @@ def snr_at_rx_signal_pwr(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("SNR at Rx Signal Pwr") - return val # type: ignore + return val # type: ignore @snr_at_rx_signal_pwr.setter - def snr_at_rx_signal_pwr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR at Rx Signal Pwr={value}"]) + def snr_at_rx_signal_pwr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SNR at Rx Signal Pwr={value}"]) @property def processing_gain(self) -> float: @@ -104,11 +106,13 @@ def processing_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Processing Gain") - return val # type: ignore + return val # type: ignore @processing_gain.setter - def processing_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Processing Gain={value}"]) + def processing_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Processing Gain={value}"]) @property def apply_pg_to_narrowband_only(self) -> bool: @@ -119,13 +123,13 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return val # type: ignore + return val # type: ignore @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Apply PG to Narrowband Only={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Apply PG to Narrowband Only={value}"]) @property def saturation_level(self) -> float: @@ -136,12 +140,14 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @saturation_level.setter - def saturation_level(self, value: float | str): + def saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Saturation Level={value}"]) @property def rx_noise_figure(self) -> float: @@ -151,43 +157,47 @@ def rx_noise_figure(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rx Noise Figure") - return val # type: ignore + return val # type: ignore @rx_noise_figure.setter - def rx_noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rx Noise Figure={value}"]) + def rx_noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rx Noise Figure={value}"]) @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity Rx minimum sensitivity level (dBm) Value should be between -1000 and 1000. """ val = self._get_property("Receiver Sensitivity ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @receiver_sensitivity_.setter - def receiver_sensitivity_(self, value: float | str): + def receiver_sensitivity_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver Sensitivity ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Receiver Sensitivity ={value}"]) @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity SNR or SINAD at the specified sensitivity level Value should be between -1000 and 1000. """ val = self._get_property("SNR/SINAD at Sensitivity ") - return val # type: ignore + return val # type: ignore @snrsinad_at_sensitivity_.setter - def snrsinad_at_sensitivity_(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"SNR/SINAD at Sensitivity ={value}"] - ) + def snrsinad_at_sensitivity_(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SNR/SINAD at Sensitivity ={value}"]) @property def perform_rx_intermod_analysis(self) -> bool: @@ -197,13 +207,13 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return val # type: ignore + return val # type: ignore @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Rx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Rx Intermod Analysis={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -214,30 +224,32 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Rx's 1 dB Compression Point - total power > P1dB saturates the receiver Value should be between -1000 and 1000. """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -248,12 +260,14 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def max_intermod_order(self) -> int: @@ -263,8 +277,11 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py index 47d8f0342dd..95c7e034369 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class SamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,11 +36,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Min: + "Min: Value should be greater than 1. - "Max: + "Max: Value should be greater than 1. """ return self._get_table_data() @@ -54,23 +50,25 @@ def table_data(self, value): self._set_table_data(value) class SamplingTypeOption(Enum): - SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" - RANDOM_SAMPLING = "Random Sampling" - UNIFORM_SAMPLING = "Uniform Sampling" + SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" # eslint-disable-line no-eval + RANDOM_SAMPLING = "Random Sampling" # eslint-disable-line no-eval + UNIFORM_SAMPLING = "Uniform Sampling" # eslint-disable-line no-eval @property def sampling_type(self) -> SamplingTypeOption: """Sampling Type Sampling to apply to this configuration - """ + """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] - return val # type: ignore + return val # type: ignore @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sampling Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sampling Type={value.value}"]) @property def specify_percentage(self) -> bool: @@ -81,11 +79,13 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return val # type: ignore + return val # type: ignore @specify_percentage.setter def specify_percentage(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Specify Percentage={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Specify Percentage={value}"]) @property def percentage_of_channels(self) -> float: @@ -95,11 +95,13 @@ def percentage_of_channels(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Percentage of Channels") - return val # type: ignore + return val # type: ignore @percentage_of_channels.setter - def percentage_of_channels(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percentage of Channels={value}"]) + def percentage_of_channels(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Percentage of Channels={value}"]) @property def max__channelsrangeband(self) -> int: @@ -109,13 +111,13 @@ def max__channelsrangeband(self) -> int: Value should be between 1 and 100000. """ val = self._get_property("Max # Channels/Range/Band") - return val # type: ignore + return val # type: ignore @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Max # Channels/Range/Band={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max # Channels/Range/Band={value}"]) @property def seed(self) -> int: @@ -125,11 +127,13 @@ def seed(self) -> int: Value should be greater than 0. """ val = self._get_property("Seed") - return val # type: ignore + return val # type: ignore @seed.setter def seed(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Seed={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Seed={value}"]) @property def total_tx_channels(self) -> int: @@ -137,9 +141,9 @@ def total_tx_channels(self) -> int: Total number of transmit channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Tx Channels") - return val # type: ignore + return val # type: ignore @property def total_rx_channels(self) -> int: @@ -147,15 +151,16 @@ def total_rx_channels(self) -> int: Total number of receive channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Rx Channels") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py index 0692149e4be..841ec75d699 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class SceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -63,13 +59,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): @@ -79,11 +75,13 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): @@ -93,29 +91,33 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" - AZ_EL_TWIST = "Az-El-Twist" + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -125,11 +127,13 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): @@ -139,11 +143,13 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def show_axes(self) -> bool: @@ -153,11 +159,13 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def box_color(self): @@ -167,21 +175,26 @@ def box_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Box Color") - return val # type: ignore + return val # type: ignore @box_color.setter def box_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Box Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Box Color={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py index e523f065c1a..d69b91e9586 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class SelectivityTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,13 +52,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -72,11 +70,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -86,46 +86,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -135,11 +141,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -149,42 +157,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -194,11 +206,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -208,11 +222,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -222,11 +238,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -237,8 +255,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py index 4d58635f57b..9969d3ab69b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class SolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -45,11 +42,13 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -59,11 +58,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -73,21 +74,26 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py index db51fb270a8..b73617918b3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class SolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -45,8 +42,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py index e1371a85646..3905d48f751 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class SpurTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -55,13 +51,15 @@ def channel_frequency(self): """Channel Frequency Select band channel frequency to display - """ + """ val = self._get_property("Channel Frequency") - return val # type: ignore + return val # type: ignore @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: @@ -69,10 +67,10 @@ def transmit_frequency(self) -> float: The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset) - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def data_source(self): @@ -80,13 +78,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,11 +96,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -110,46 +112,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -159,11 +167,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -173,42 +183,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -218,11 +232,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -232,11 +248,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -246,11 +264,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -261,8 +281,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py index caccceba099..791c99f4bc6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TRSwitchTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,11 +54,13 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -72,11 +70,13 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): @@ -84,13 +84,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -100,11 +102,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -114,46 +118,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -163,11 +173,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -177,42 +189,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -222,11 +238,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -236,11 +254,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -250,11 +270,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -265,8 +287,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index 87fbf168f72..68499529f6e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -53,11 +49,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,62 +65,68 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TxPortOption(Enum): - PORT_1 = "Port 1" - PORT_2 = "Port 2" + PORT_1 = "Port 1" # eslint-disable-line no-eval + PORT_2 = "Port 2" # eslint-disable-line no-eval @property def tx_port(self) -> TxPortOption: """Tx Port Specifies which port on the TR Switch is part of the Tx path. - """ + """ val = self._get_property("Tx Port") val = self.TxPortOption[val] - return val # type: ignore + return val # type: ignore @tx_port.setter def tx_port(self, value: TxPortOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Port={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Port={value.value}"]) class CommonPortLocationOption(Enum): - RADIO_SIDE = "Radio Side" - ANTENNA_SIDE = "Antenna Side" + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def common_port_location(self) -> CommonPortLocationOption: """Common Port Location Defines the orientation of the tr switch. - """ + """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] - return val # type: ignore + return val # type: ignore @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Common Port Location={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Common Port Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -132,11 +136,13 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_isolation(self) -> bool: @@ -147,11 +153,13 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -161,11 +169,13 @@ def isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @isolation.setter - def isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) + def isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -176,11 +186,13 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -190,11 +202,13 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -205,12 +219,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -221,12 +237,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -237,12 +255,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -253,9 +273,12 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index 9624047f60c..7976875f3ce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Terminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -53,11 +49,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,28 +65,32 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" - PARAMETRIC = "Parametric" + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -96,32 +98,36 @@ def type(self) -> TypeOption: Type of terminator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class PortLocationOption(Enum): - RADIO_SIDE = "Radio Side" - ANTENNA_SIDE = "Antenna Side" + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_location(self) -> PortLocationOption: """Port Location Defines the orientation of the terminator. - """ + """ val = self._get_property("Port Location") val = self.PortLocationOption[val] - return val # type: ignore + return val # type: ignore @port_location.setter def port_location(self, value: PortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port Location={value.value}"]) @property def vswr(self) -> float: @@ -133,17 +139,20 @@ def vswr(self) -> float: Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @vswr.setter - def vswr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) + def vswr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"VSWR={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py index 181be61f55f..e5d4b50ed60 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TestNoiseTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,11 +54,13 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -72,11 +70,13 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): @@ -84,13 +84,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -100,11 +102,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -114,46 +118,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -163,11 +173,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -177,42 +189,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -222,11 +238,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -236,11 +254,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -250,11 +270,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -265,11 +287,13 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -280,12 +304,14 @@ def frequency_1(self) -> float: """ val = self._get_property("Frequency 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_1.setter - def frequency_1(self, value: float | str): + def frequency_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -296,12 +322,14 @@ def amplitude_1(self) -> float: """ val = self._get_property("Amplitude 1") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_1.setter - def amplitude_1(self, value: float | str): + def amplitude_1(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -312,12 +340,14 @@ def bandwidth_1(self) -> float: """ val = self._get_property("Bandwidth 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_1.setter - def bandwidth_1(self, value: float | str): + def bandwidth_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -328,12 +358,14 @@ def frequency_2(self) -> float: """ val = self._get_property("Frequency 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_2.setter - def frequency_2(self, value: float | str): + def frequency_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -344,12 +376,14 @@ def amplitude_2(self) -> float: """ val = self._get_property("Amplitude 2") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_2.setter - def amplitude_2(self, value: float | str): + def amplitude_2(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -360,12 +394,14 @@ def bandwidth_2(self) -> float: """ val = self._get_property("Bandwidth 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_2.setter - def bandwidth_2(self, value: float | str): + def bandwidth_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -375,8 +411,11 @@ def noise_level(self) -> float: Value should be between -200 and 0. """ val = self._get_property("Noise Level") - return val # type: ignore + return val # type: ignore @noise_level.setter - def noise_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) + def noise_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Level={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py index 930244277ac..cce333ffcc5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py @@ -1,32 +1,30 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class TopLevelSimulation(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py index b6a0b67e7b9..948ae1a9029 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class TouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -56,11 +53,13 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -70,11 +69,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -84,24 +85,28 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def filename(self) -> str: @@ -111,20 +116,22 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File Coupling data generated by Savant and exported as a matched file - """ + """ val = self._get_property("Savant Matched Coupling File") - return val # type: ignore + return val # type: ignore @property def enable_em_isolation(self) -> bool: @@ -134,11 +141,13 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return val # type: ignore + return val # type: ignore @enable_em_isolation.setter def enable_em_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable EM Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable EM Isolation={value}"]) @property def port_antenna_assignment(self): @@ -146,23 +155,28 @@ def port_antenna_assignment(self): Maps each port in the coupling file to an antenna in the project "A list of values." - """ + """ val = self._get_property("Port-Antenna Assignment") - return val # type: ignore + return val # type: ignore @port_antenna_assignment.setter def port_antenna_assignment(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port-Antenna Assignment={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port-Antenna Assignment={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py index ebbf6a7bbc8..3443fb04536 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TunableTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,11 +54,13 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -72,26 +70,30 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def frequency(self) -> float: """Frequency Tunable filter center frequency - """ + """ val = self._get_property("Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency.setter - def frequency(self, value: float | str): + def frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency={value}"]) @property def data_source(self): @@ -99,13 +101,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -115,11 +119,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -129,46 +135,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -178,11 +190,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -192,42 +206,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -237,11 +255,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -251,11 +271,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -265,11 +287,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -280,8 +304,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py index e058b7dab85..8e02be17289 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,37 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,24 +116,28 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def ground_reflection_coeff(self) -> float: @@ -139,11 +147,13 @@ def ground_reflection_coeff(self) -> float: Value should be between -100 and 100. """ val = self._get_property("Ground Reflection Coeff.") - return val # type: ignore + return val # type: ignore @ground_reflection_coeff.setter - def ground_reflection_coeff(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ground Reflection Coeff.={value}"]) + def ground_reflection_coeff(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ground Reflection Coeff.={value}"]) @property def pointspeak(self) -> int: @@ -153,11 +163,13 @@ def pointspeak(self) -> int: Value should be between 3 and 100. """ val = self._get_property("Points/Peak") - return val # type: ignore + return val # type: ignore @pointspeak.setter def pointspeak(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Points/Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Points/Peak={value}"]) @property def custom_fading_margin(self) -> float: @@ -168,11 +180,13 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -183,11 +197,13 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -198,31 +214,35 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" - FAST_FADING_ONLY = "Fast Fading Only" - SHADOWING_ONLY = "Shadowing Only" - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -233,11 +253,13 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -247,11 +269,13 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -261,11 +285,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -276,11 +302,13 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -290,11 +318,13 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -305,11 +335,13 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -320,13 +352,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -336,11 +368,13 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -350,11 +384,13 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -364,10 +400,11 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py index 6d976b57b1e..4f75fba13df 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TwoToneTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,11 +54,13 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -72,11 +70,13 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): @@ -84,13 +84,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -100,11 +102,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -114,46 +118,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" - DOTTED = "Dotted" - DASHED = "Dashed" - DOT_DASH = "Dot-Dash" - DOT_DOT_DASH = "Dot-Dot-Dash" - NONE = "None" + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -163,11 +173,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -177,42 +189,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" - ELLIPSE = "Ellipse" - RECT = "Rect" - DIAMOND = "Diamond" - TRIANGLE = "Triangle" - DTRIANGLE = "DTriangle" - LTRIANGLE = "LTriangle" - RTRIANGLE = "RTriangle" - CROSS = "Cross" - XCROSS = "XCross" - HLINE = "HLine" - VLINE = "VLine" - STAR1 = "Star1" - STAR2 = "Star2" - HEXAGON = "Hexagon" + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -222,11 +238,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -236,11 +254,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -250,11 +270,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -265,11 +287,13 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -280,12 +304,14 @@ def frequency_1(self) -> float: """ val = self._get_property("Frequency 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_1.setter - def frequency_1(self, value: float | str): + def frequency_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -296,12 +322,14 @@ def amplitude_1(self) -> float: """ val = self._get_property("Amplitude 1") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_1.setter - def amplitude_1(self, value: float | str): + def amplitude_1(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -312,12 +340,14 @@ def bandwidth_1(self) -> float: """ val = self._get_property("Bandwidth 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_1.setter - def bandwidth_1(self, value: float | str): + def bandwidth_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -328,12 +358,14 @@ def frequency_2(self) -> float: """ val = self._get_property("Frequency 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_2.setter - def frequency_2(self, value: float | str): + def frequency_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -344,12 +376,14 @@ def amplitude_2(self) -> float: """ val = self._get_property("Amplitude 2") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_2.setter - def amplitude_2(self, value: float | str): + def amplitude_2(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -360,12 +394,14 @@ def bandwidth_2(self) -> float: """ val = self._get_property("Bandwidth 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_2.setter - def bandwidth_2(self, value: float | str): + def bandwidth_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -375,8 +411,11 @@ def noise_level(self) -> float: Value should be between -200 and 0. """ val = self._get_property("Noise Level") - return val # type: ignore + return val # type: ignore @noise_level.setter - def noise_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) + def noise_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Level={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py index 5ab561d20af..80d261fb2e8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -50,9 +46,9 @@ def delete(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): Value should be between -200 and 150. """ return self._get_table_data() @@ -64,31 +60,33 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class NoiseBehaviorOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE_BANDWIDTH = "Relative (Bandwidth)" - RELATIVE_OFFSET = "Relative (Offset)" - EQUATION = "Equation" + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE_BANDWIDTH = "Relative (Bandwidth)" # eslint-disable-line no-eval + RELATIVE_OFFSET = "Relative (Offset)" # eslint-disable-line no-eval + EQUATION = "Equation" # eslint-disable-line no-eval @property def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior Specifies the behavior of the parametric noise profile - """ + """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] - return val # type: ignore + return val # type: ignore @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Behavior={value.value}"]) @property def use_log_linear_interpolation(self) -> bool: @@ -99,10 +97,11 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return val # type: ignore + return val # type: ignore @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Log-Linear Interpolation={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py index baac5cc5fd7..26916e81676 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -49,28 +45,29 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class HarmonicTableUnitsOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE = "Relative" + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units Specifies the units for the Harmonics - """ + """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py index f39b0d6516c..87d21270e74 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class TxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,7 +49,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -62,17 +59,17 @@ def source_file(self) -> str: Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def transmit_frequency(self) -> float: """Transmit Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -82,11 +79,13 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -97,12 +96,14 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -113,12 +114,14 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def exclude_harmonics_below_noise(self) -> bool: @@ -128,19 +131,20 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return val # type: ignore + return val # type: ignore @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Exclude Harmonics Below Noise={value}"]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py index d665c3fe728..09bb72ae33a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -49,43 +45,46 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class NarrowbandBehaviorOption(Enum): - ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" - RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" + ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" # eslint-disable-line no-eval + RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" # eslint-disable-line no-eval @property def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior Specifies the behavior of the parametric narrowband emissions mask - """ + """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] - return val # type: ignore + return val # type: ignore @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Narrowband Behavior={value.value}"]) @property def measurement_frequency(self) -> float: """Measurement Frequency Measurement frequency for the absolute freq/amp pairs. - """ + """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @measurement_frequency.setter - def measurement_frequency(self, value: float | str): + def measurement_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Frequency={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py index 8017d994134..8fb1fd06cee 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class TxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,7 +36,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -50,15 +47,17 @@ def output_voltage_peak(self) -> float: """Output Voltage Peak Output High Voltage Level: maximum voltage of the digital signal - """ + """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") - return val # type: ignore + return val # type: ignore @output_voltage_peak.setter - def output_voltage_peak(self, value: float | str): + def output_voltage_peak(self, value : float|str): value = self._convert_to_internal_units(value, "Voltage") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Voltage Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Voltage Peak={value}"]) @property def include_phase_noise(self) -> bool: @@ -68,11 +67,13 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -82,11 +83,13 @@ def tx_broadband_noise(self) -> float: Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @tx_broadband_noise.setter - def tx_broadband_noise(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Broadband Noise={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -96,13 +99,13 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Tx Intermod Analysis={value}"]) @property def internal_amp_gain(self) -> float: @@ -112,11 +115,13 @@ def internal_amp_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @internal_amp_gain.setter - def internal_amp_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -126,11 +131,13 @@ def noise_figure(self) -> float: Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -141,18 +148,18 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -160,12 +167,14 @@ def p1_db_point_ref_input_(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -176,12 +185,14 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -191,11 +202,13 @@ def reverse_isolation(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -205,8 +218,11 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py index 242eb387fc2..35f8349b4bc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,47 +37,51 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpectrumTypeOption(Enum): - NARROWBAND__BROADBAND = "Narrowband & Broadband" - BROADBAND_ONLY = "Broadband Only" + NARROWBAND__BROADBAND = "Narrowband & Broadband" # eslint-disable-line no-eval + BROADBAND_ONLY = "Broadband Only" # eslint-disable-line no-eval @property def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type Specifies EMI Margins to calculate - """ + """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] - return val # type: ignore + return val # type: ignore @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spectrum Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spectrum Type={value.value}"]) class TxPowerOption(Enum): - PEAK_POWER = "Peak Power" - AVERAGE_POWER = "Average Power" + PEAK_POWER = "Peak Power" # eslint-disable-line no-eval + AVERAGE_POWER = "Average Power" # eslint-disable-line no-eval @property def tx_power(self) -> TxPowerOption: """Tx Power Method used to specify the power - """ + """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] - return val # type: ignore + return val # type: ignore @tx_power.setter def tx_power(self, value: TxPowerOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Power={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Power={value.value}"]) @property def peak_power(self) -> float: @@ -92,12 +92,14 @@ def peak_power(self) -> float: """ val = self._get_property("Peak Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @peak_power.setter - def peak_power(self, value: float | str): + def peak_power(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Peak Power={value}"]) @property def average_power(self) -> float: @@ -108,12 +110,14 @@ def average_power(self) -> float: """ val = self._get_property("Average Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @average_power.setter - def average_power(self, value: float | str): + def average_power(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Average Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Average Power={value}"]) @property def include_phase_noise(self) -> bool: @@ -123,11 +127,13 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -137,31 +143,35 @@ def tx_broadband_noise(self) -> float: Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @tx_broadband_noise.setter - def tx_broadband_noise(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Broadband Noise={value}"]) class HarmonicTaperOption(Enum): - CONSTANT = "Constant" - MIL_STD_461G = "MIL-STD-461G" - MIL_STD_461G_NAVY = "MIL-STD-461G Navy" - DUFF_MODEL = "Duff Model" + CONSTANT = "Constant" # eslint-disable-line no-eval + MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval + MIL_STD_461G_NAVY = "MIL-STD-461G Navy" # eslint-disable-line no-eval + DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval @property def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper Taper type used to set amplitude of harmonics - """ + """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] - return val # type: ignore + return val # type: ignore @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Taper={value.value}"]) @property def harmonic_amplitude(self) -> float: @@ -171,11 +181,13 @@ def harmonic_amplitude(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Amplitude") - return val # type: ignore + return val # type: ignore @harmonic_amplitude.setter - def harmonic_amplitude(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Amplitude={value}"]) + def harmonic_amplitude(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Amplitude={value}"]) @property def harmonic_slope(self) -> float: @@ -185,11 +197,13 @@ def harmonic_slope(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Slope") - return val # type: ignore + return val # type: ignore @harmonic_slope.setter - def harmonic_slope(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Slope={value}"]) + def harmonic_slope(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Slope={value}"]) @property def harmonic_intercept(self) -> float: @@ -199,11 +213,13 @@ def harmonic_intercept(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Intercept") - return val # type: ignore + return val # type: ignore @harmonic_intercept.setter - def harmonic_intercept(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Intercept={value}"]) + def harmonic_intercept(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Intercept={value}"]) @property def enable_harmonic_bw_expansion(self) -> bool: @@ -214,13 +230,13 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return val # type: ignore + return val # type: ignore @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Enable Harmonic BW Expansion={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Harmonic BW Expansion={value}"]) @property def number_of_harmonics(self) -> int: @@ -230,11 +246,13 @@ def number_of_harmonics(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Number of Harmonics") - return val # type: ignore + return val # type: ignore @number_of_harmonics.setter def number_of_harmonics(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Harmonics={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Harmonics={value}"]) @property def second_harmonic_level(self) -> float: @@ -244,11 +262,13 @@ def second_harmonic_level(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Second Harmonic Level") - return val # type: ignore + return val # type: ignore @second_harmonic_level.setter - def second_harmonic_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Second Harmonic Level={value}"]) + def second_harmonic_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Second Harmonic Level={value}"]) @property def third_harmonic_level(self) -> float: @@ -258,11 +278,13 @@ def third_harmonic_level(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Third Harmonic Level") - return val # type: ignore + return val # type: ignore @third_harmonic_level.setter - def third_harmonic_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Third Harmonic Level={value}"]) + def third_harmonic_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Third Harmonic Level={value}"]) @property def other_harmonic_levels(self) -> float: @@ -272,11 +294,13 @@ def other_harmonic_levels(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Other Harmonic Levels") - return val # type: ignore + return val # type: ignore @other_harmonic_levels.setter - def other_harmonic_levels(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Other Harmonic Levels={value}"]) + def other_harmonic_levels(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Other Harmonic Levels={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -286,13 +310,13 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Tx Intermod Analysis={value}"]) @property def internal_amp_gain(self) -> float: @@ -302,11 +326,13 @@ def internal_amp_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @internal_amp_gain.setter - def internal_amp_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -316,11 +342,13 @@ def noise_figure(self) -> float: Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -331,18 +359,18 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -350,12 +378,14 @@ def p1_db_point_ref_input_(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -366,12 +396,14 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -381,11 +413,13 @@ def reverse_isolation(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -395,8 +429,11 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py index fffdf13e2ef..c3605f46298 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -48,13 +44,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -66,26 +62,29 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" - RELATIVE = "Relative" + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spur Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py index b4e13110f1c..7196ed6d130 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class WalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -58,37 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,60 +116,68 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class PathLossTypeOption(Enum): - LOS_URBAN_CANYON = "LOS (Urban Canyon)" - NLOS = "NLOS" + LOS_URBAN_CANYON = "LOS (Urban Canyon)" # eslint-disable-line no-eval + NLOS = "NLOS" # eslint-disable-line no-eval @property def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type Specify LOS vs NLOS for the Walfisch-Ikegami model - """ + """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] - return val # type: ignore + return val # type: ignore @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Path Loss Type={value.value}"]) class EnvironmentOption(Enum): - DENSE_METRO = "Dense Metro" - SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" + DENSE_METRO = "Dense Metro" # eslint-disable-line no-eval + SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Walfisch model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def roof_height(self) -> float: @@ -176,12 +188,14 @@ def roof_height(self) -> float: """ val = self._get_property("Roof Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @roof_height.setter - def roof_height(self, value: float | str): + def roof_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Roof Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Roof Height={value}"]) @property def distance_between_buildings(self) -> float: @@ -192,14 +206,14 @@ def distance_between_buildings(self) -> float: """ val = self._get_property("Distance Between Buildings") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @distance_between_buildings.setter - def distance_between_buildings(self, value: float | str): + def distance_between_buildings(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Distance Between Buildings={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Distance Between Buildings={value}"]) @property def street_width(self) -> float: @@ -210,12 +224,14 @@ def street_width(self) -> float: """ val = self._get_property("Street Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @street_width.setter - def street_width(self, value: float | str): + def street_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Street Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Street Width={value}"]) @property def incidence_angle(self) -> float: @@ -225,11 +241,13 @@ def incidence_angle(self) -> float: Value should be between 0 and 90. """ val = self._get_property("Incidence Angle") - return val # type: ignore + return val # type: ignore @incidence_angle.setter - def incidence_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Incidence Angle={value}"]) + def incidence_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Incidence Angle={value}"]) @property def custom_fading_margin(self) -> float: @@ -240,11 +258,13 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -255,11 +275,13 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -270,31 +292,35 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" - FAST_FADING_ONLY = "Fast Fading Only" - SHADOWING_ONLY = "Shadowing Only" - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -305,11 +331,13 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -319,11 +347,13 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -333,11 +363,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -348,11 +380,13 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -362,11 +396,13 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -377,11 +413,13 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -392,13 +430,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -408,11 +446,13 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -422,11 +462,13 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -436,10 +478,11 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py index df42b7cbddd..f18d8d22894 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Waveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +37,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -52,34 +48,38 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port={value}"]) class WaveformOption(Enum): - PERIODIC_CLOCK = "Periodic Clock" - SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" - PRBS = "PRBS" - PRBS_PERIODIC = "PRBS (Periodic)" - IMPORTED = "Imported" + PERIODIC_CLOCK = "Periodic Clock" # eslint-disable-line no-eval + SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" # eslint-disable-line no-eval + PRBS = "PRBS" # eslint-disable-line no-eval + PRBS_PERIODIC = "PRBS (Periodic)" # eslint-disable-line no-eval + IMPORTED = "Imported" # eslint-disable-line no-eval @property def waveform(self) -> WaveformOption: """Waveform Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Waveform") val = self.WaveformOption[val] - return val # type: ignore + return val # type: ignore @waveform.setter def waveform(self, value: WaveformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Waveform={value.value}"]) @property def start_frequency(self) -> float: @@ -90,12 +90,14 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -106,12 +108,14 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -122,12 +126,14 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_spacing.setter - def channel_spacing(self, value: float | str): + def channel_spacing(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Spacing={value}"]) @property def clock_duty_cycle(self) -> float: @@ -137,11 +143,13 @@ def clock_duty_cycle(self) -> float: Value should be between 0.001 and 1. """ val = self._get_property("Clock Duty Cycle") - return val # type: ignore + return val # type: ignore @clock_duty_cycle.setter - def clock_duty_cycle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Duty Cycle={value}"]) + def clock_duty_cycle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Clock Duty Cycle={value}"]) @property def clock_risefall_time(self) -> float: @@ -152,31 +160,35 @@ def clock_risefall_time(self) -> float: """ val = self._get_property("Clock Rise/Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @clock_risefall_time.setter - def clock_risefall_time(self, value: float | str): + def clock_risefall_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Rise/Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Clock Rise/Fall Time={value}"]) class SpreadingTypeOption(Enum): - LOW_SPREAD = "Low Spread" - CENTER_SPREAD = "Center Spread" - HIGH_SPREAD = "High Spread" + LOW_SPREAD = "Low Spread" # eslint-disable-line no-eval + CENTER_SPREAD = "Center Spread" # eslint-disable-line no-eval + HIGH_SPREAD = "High Spread" # eslint-disable-line no-eval @property def spreading_type(self) -> SpreadingTypeOption: """Spreading Type Type of spreading employed by the Spread Spectrum Clock - """ + """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] - return val # type: ignore + return val # type: ignore @spreading_type.setter def spreading_type(self, value: SpreadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spreading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spreading Type={value.value}"]) @property def spread_percentage(self) -> float: @@ -186,11 +198,13 @@ def spread_percentage(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Spread Percentage") - return val # type: ignore + return val # type: ignore @spread_percentage.setter - def spread_percentage(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spread Percentage={value}"]) + def spread_percentage(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spread Percentage={value}"]) @property def imported_spectrum(self) -> str: @@ -198,20 +212,22 @@ def imported_spectrum(self) -> str: Value should be a full file path. """ val = self._get_property("Imported Spectrum") - return val # type: ignore + return val # type: ignore @imported_spectrum.setter def imported_spectrum(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Imported Spectrum={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Imported Spectrum={value}"]) @property def raw_data_format(self) -> str: """Raw Data Format Format of the imported raw data - """ + """ val = self._get_property("Raw Data Format") - return val # type: ignore + return val # type: ignore @property def system_impedance(self) -> float: @@ -222,12 +238,14 @@ def system_impedance(self) -> float: """ val = self._get_property("System Impedance") val = self._convert_from_internal_units(float(val), "Resistance") - return val # type: ignore + return val # type: ignore @system_impedance.setter - def system_impedance(self, value: float | str): + def system_impedance(self, value : float|str): value = self._convert_to_internal_units(value, "Resistance") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"System Impedance={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"System Impedance={value}"]) @property def advanced_extraction_params(self) -> bool: @@ -237,13 +255,13 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return val # type: ignore + return val # type: ignore @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Advanced Extraction Params={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Advanced Extraction Params={value}"]) @property def nb_window_size(self) -> float: @@ -254,11 +272,13 @@ def nb_window_size(self) -> float: Value should be greater than 3. """ val = self._get_property("NB Window Size") - return val # type: ignore + return val # type: ignore @nb_window_size.setter - def nb_window_size(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Window Size={value}"]) + def nb_window_size(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NB Window Size={value}"]) @property def bb_smoothing_factor(self) -> float: @@ -268,11 +288,13 @@ def bb_smoothing_factor(self) -> float: Value should be greater than 1. """ val = self._get_property("BB Smoothing Factor") - return val # type: ignore + return val # type: ignore @bb_smoothing_factor.setter - def bb_smoothing_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Smoothing Factor={value}"]) + def bb_smoothing_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Smoothing Factor={value}"]) @property def nb_detector_threshold(self) -> float: @@ -282,29 +304,33 @@ def nb_detector_threshold(self) -> float: Value should be between 2 and 10. """ val = self._get_property("NB Detector Threshold") - return val # type: ignore + return val # type: ignore @nb_detector_threshold.setter - def nb_detector_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Detector Threshold={value}"]) + def nb_detector_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NB Detector Threshold={value}"]) class AlgorithmOption(Enum): - FFT = "FFT" - FOURIER_TRANSFORM = "Fourier Transform" + FFT = "FFT" # eslint-disable-line no-eval + FOURIER_TRANSFORM = "Fourier Transform" # eslint-disable-line no-eval @property def algorithm(self) -> AlgorithmOption: """Algorithm Algorithm used to transform the imported time domain spectrum - """ + """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] - return val # type: ignore + return val # type: ignore @algorithm.setter def algorithm(self, value: AlgorithmOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Algorithm={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Algorithm={value.value}"]) @property def start_time(self) -> float: @@ -315,27 +341,31 @@ def start_time(self) -> float: """ val = self._get_property("Start Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @start_time.setter - def start_time(self, value: float | str): + def start_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Time={value}"]) @property def stop_time(self) -> float: """Stop Time Final time of the imported time domain spectrum - """ + """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @stop_time.setter - def stop_time(self, value: float | str): + def stop_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Time={value}"]) @property def max_frequency(self) -> float: @@ -346,37 +376,41 @@ def max_frequency(self) -> float: """ val = self._get_property("Max Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_frequency.setter - def max_frequency(self, value: float | str): + def max_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Frequency={value}"]) class WindowTypeOption(Enum): - RECTANGULAR = "Rectangular" - BARTLETT = "Bartlett" - BLACKMAN = "Blackman" - HAMMING = "Hamming" - HANNING = "Hanning" - KAISER = "Kaiser" - LANZCOS = "Lanzcos" - WELCH = "Welch" - WEBER = "Weber" + RECTANGULAR = "Rectangular" # eslint-disable-line no-eval + BARTLETT = "Bartlett" # eslint-disable-line no-eval + BLACKMAN = "Blackman" # eslint-disable-line no-eval + HAMMING = "Hamming" # eslint-disable-line no-eval + HANNING = "Hanning" # eslint-disable-line no-eval + KAISER = "Kaiser" # eslint-disable-line no-eval + LANZCOS = "Lanzcos" # eslint-disable-line no-eval + WELCH = "Welch" # eslint-disable-line no-eval + WEBER = "Weber" # eslint-disable-line no-eval @property def window_type(self) -> WindowTypeOption: """Window Type Windowing scheme used for importing time domain spectrum - """ + """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] - return val # type: ignore + return val # type: ignore @window_type.setter def window_type(self, value: WindowTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Window Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Window Type={value.value}"]) @property def kaiser_parameter(self) -> float: @@ -386,11 +420,13 @@ def kaiser_parameter(self) -> float: Value should be greater than 0. """ val = self._get_property("Kaiser Parameter") - return val # type: ignore + return val # type: ignore @kaiser_parameter.setter - def kaiser_parameter(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Kaiser Parameter={value}"]) + def kaiser_parameter(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Kaiser Parameter={value}"]) @property def adjust_coherent_gain(self) -> bool: @@ -400,11 +436,13 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return val # type: ignore + return val # type: ignore @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adjust Coherent Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adjust Coherent Gain={value}"]) @property def data_rate(self) -> float: @@ -415,12 +453,14 @@ def data_rate(self) -> float: """ val = self._get_property("Data Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @data_rate.setter - def data_rate(self, value: float | str): + def data_rate(self, value : float|str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Rate={value}"]) @property def num_of_bits(self) -> int: @@ -430,11 +470,13 @@ def num_of_bits(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Num of Bits") - return val # type: ignore + return val # type: ignore @num_of_bits.setter def num_of_bits(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Num of Bits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Num of Bits={value}"]) @property def use_envelope(self) -> bool: @@ -444,11 +486,13 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return val # type: ignore + return val # type: ignore @use_envelope.setter def use_envelope(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Envelope={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Envelope={value}"]) @property def min_ptsnull(self) -> int: @@ -458,11 +502,13 @@ def min_ptsnull(self) -> int: Value should be between 2 and 50. """ val = self._get_property("Min Pts/Null") - return val # type: ignore + return val # type: ignore @min_ptsnull.setter def min_ptsnull(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pts/Null={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pts/Null={value}"]) @property def delay_skew(self) -> float: @@ -473,9 +519,12 @@ def delay_skew(self) -> float: """ val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @delay_skew.setter - def delay_skew(self, value: float | str): + def delay_skew(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Delay Skew={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Delay Skew={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index 7f7a748aedf..bd6f8b1de0e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,27 +1,3 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from .Amplifier import Amplifier from .AntennaNode import AntennaNode from .AntennaPassband import AntennaPassband @@ -57,6 +33,38 @@ from .ProfileTraceNode import ProfileTraceNode from .PropagationLossCouplingNode import PropagationLossCouplingNode from .RadioNode import RadioNode +from .ResultPlotNode import ResultPlotNode +from .RfSystemGroup import RfSystemGroup +from .RxMeasNode import RxMeasNode +from .RxMixerProductNode import RxMixerProductNode +from .RxSaturationNode import RxSaturationNode +from .RxSelectivityNode import RxSelectivityNode +from .RxSpurNode import RxSpurNode +from .RxSusceptibilityProfNode import RxSusceptibilityProfNode +from .SamplingNode import SamplingNode +from .SceneGroupNode import SceneGroupNode +from .SelectivityTraceNode import SelectivityTraceNode +from .SolutionCouplingNode import SolutionCouplingNode +from .SolutionsNode import SolutionsNode +from .SpurTraceNode import SpurTraceNode +from .TR_Switch import TR_Switch +from .TRSwitchTraceNode import TRSwitchTraceNode +from .Terminator import Terminator +from .TestNoiseTraceNode import TestNoiseTraceNode +from .TopLevelSimulation import TopLevelSimulation +from .TouchstoneCouplingNode import TouchstoneCouplingNode +from .TunableTraceNode import TunableTraceNode +from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode +from .TwoToneTraceNode import TwoToneTraceNode +from .TxBbEmissionNode import TxBbEmissionNode +from .TxHarmonicNode import TxHarmonicNode +from .TxMeasNode import TxMeasNode +from .TxNbEmissionNode import TxNbEmissionNode +from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode +from .TxSpectralProfNode import TxSpectralProfNode +from .TxSpurNode import TxSpurNode +from .WalfischCouplingNode import WalfischCouplingNode +from .Waveform import Waveform from .ReadOnlyAmplifier import ReadOnlyAmplifier from .ReadOnlyAntennaNode import ReadOnlyAntennaNode from .ReadOnlyAntennaPassband import ReadOnlyAntennaPassband @@ -105,153 +113,121 @@ from .ReadOnlyTxSpurNode import ReadOnlyTxSpurNode from .ReadOnlyWalfischCouplingNode import ReadOnlyWalfischCouplingNode from .ReadOnlyWaveform import ReadOnlyWaveform -from .ResultPlotNode import ResultPlotNode -from .RfSystemGroup import RfSystemGroup -from .RxMeasNode import RxMeasNode -from .RxMixerProductNode import RxMixerProductNode -from .RxSaturationNode import RxSaturationNode -from .RxSelectivityNode import RxSelectivityNode -from .RxSpurNode import RxSpurNode -from .RxSusceptibilityProfNode import RxSusceptibilityProfNode -from .SamplingNode import SamplingNode -from .SceneGroupNode import SceneGroupNode -from .SelectivityTraceNode import SelectivityTraceNode -from .SolutionCouplingNode import SolutionCouplingNode -from .SolutionsNode import SolutionsNode -from .SpurTraceNode import SpurTraceNode -from .TRSwitchTraceNode import TRSwitchTraceNode -from .TR_Switch import TR_Switch -from .Terminator import Terminator -from .TestNoiseTraceNode import TestNoiseTraceNode -from .TopLevelSimulation import TopLevelSimulation -from .TouchstoneCouplingNode import TouchstoneCouplingNode -from .TunableTraceNode import TunableTraceNode -from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode -from .TwoToneTraceNode import TwoToneTraceNode -from .TxBbEmissionNode import TxBbEmissionNode -from .TxHarmonicNode import TxHarmonicNode -from .TxMeasNode import TxMeasNode -from .TxNbEmissionNode import TxNbEmissionNode -from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode -from .TxSpectralProfNode import TxSpectralProfNode -from .TxSpurNode import TxSpurNode -from .WalfischCouplingNode import WalfischCouplingNode -from .Waveform import Waveform __all__ = [ - "Amplifier", - "AntennaNode", - "AntennaPassband", - "Band", - "BandFolder", - "BandTraceNode", - "CADNode", - "Cable", - "CategoriesViewNode", - "Circulator", - "CouplingLinkNode", - "CouplingTraceNode", - "CouplingsNode", - "CustomCouplingNode", - "EmiPlotMarkerNode", - "EmitSceneNode", - "ErcegCouplingNode", - "Filter", - "FiveGChannelModel", - "HataCouplingNode", - "IndoorPropagationCouplingNode", - "Isolator", - "LogDistanceCouplingNode", - "MPlexBandTraceNode", - "Multiplexer", - "MultiplexerBand", - "OutboardTraceNode", - "ParametricCouplingTraceNode", - "PlotMarkerNode", - "PlotNode", - "PowerDivider", - "PowerTraceNode", - "ProfileTraceNode", - "PropagationLossCouplingNode", - "RadioNode", - "ResultPlotNode", - "RfSystemGroup", - "RxMeasNode", - "RxMixerProductNode", - "RxSaturationNode", - "RxSelectivityNode", - "RxSpurNode", - "RxSusceptibilityProfNode", - "SamplingNode", - "SceneGroupNode", - "SelectivityTraceNode", - "SolutionCouplingNode", - "SolutionsNode", - "SpurTraceNode", - "TR_Switch", - "TRSwitchTraceNode", - "Terminator", - "TestNoiseTraceNode", - "TopLevelSimulation", - "TouchstoneCouplingNode", - "TunableTraceNode", - "TwoRayPathLossCouplingNode", - "TwoToneTraceNode", - "TxBbEmissionNode", - "TxHarmonicNode", - "TxMeasNode", - "TxNbEmissionNode", - "TxSpectralProfEmitterNode", - "TxSpectralProfNode", - "TxSpurNode", - "WalfischCouplingNode", - "Waveform", - "ReadOnlyAmplifier", - "ReadOnlyAntennaNode", - "ReadOnlyAntennaPassband", - "ReadOnlyBand", - "ReadOnlyBandFolder", - "ReadOnlyCADNode", - "ReadOnlyCable", - "ReadOnlyCirculator", - "ReadOnlyCouplingLinkNode", - "ReadOnlyCouplingsNode", - "ReadOnlyCustomCouplingNode", - "ReadOnlyEmitSceneNode", - "ReadOnlyErcegCouplingNode", - "ReadOnlyFilter", - "ReadOnlyFiveGChannelModel", - "ReadOnlyHataCouplingNode", - "ReadOnlyIndoorPropagationCouplingNode", - "ReadOnlyIsolator", - "ReadOnlyLogDistanceCouplingNode", - "ReadOnlyMultiplexer", - "ReadOnlyMultiplexerBand", - "ReadOnlyPowerDivider", - "ReadOnlyPropagationLossCouplingNode", - "ReadOnlyRadioNode", - "ReadOnlyRfSystemGroup", - "ReadOnlyRxMeasNode", - "ReadOnlyRxMixerProductNode", - "ReadOnlyRxSaturationNode", - "ReadOnlyRxSelectivityNode", - "ReadOnlyRxSpurNode", - "ReadOnlyRxSusceptibilityProfNode", - "ReadOnlySamplingNode", - "ReadOnlySceneGroupNode", - "ReadOnlySolutionCouplingNode", - "ReadOnlySolutionsNode", - "ReadOnlyTR_Switch", - "ReadOnlyTerminator", - "ReadOnlyTouchstoneCouplingNode", - "ReadOnlyTwoRayPathLossCouplingNode", - "ReadOnlyTxBbEmissionNode", - "ReadOnlyTxHarmonicNode", - "ReadOnlyTxMeasNode", - "ReadOnlyTxNbEmissionNode", - "ReadOnlyTxSpectralProfEmitterNode", - "ReadOnlyTxSpectralProfNode", - "ReadOnlyTxSpurNode", - "ReadOnlyWalfischCouplingNode", - "ReadOnlyWaveform", + 'Amplifier', + 'AntennaNode', + 'AntennaPassband', + 'Band', + 'BandFolder', + 'BandTraceNode', + 'CADNode', + 'Cable', + 'CategoriesViewNode', + 'Circulator', + 'CouplingLinkNode', + 'CouplingTraceNode', + 'CouplingsNode', + 'CustomCouplingNode', + 'EmiPlotMarkerNode', + 'EmitSceneNode', + 'ErcegCouplingNode', + 'Filter', + 'FiveGChannelModel', + 'HataCouplingNode', + 'IndoorPropagationCouplingNode', + 'Isolator', + 'LogDistanceCouplingNode', + 'MPlexBandTraceNode', + 'Multiplexer', + 'MultiplexerBand', + 'OutboardTraceNode', + 'ParametricCouplingTraceNode', + 'PlotMarkerNode', + 'PlotNode', + 'PowerDivider', + 'PowerTraceNode', + 'ProfileTraceNode', + 'PropagationLossCouplingNode', + 'RadioNode', + 'ResultPlotNode', + 'RfSystemGroup', + 'RxMeasNode', + 'RxMixerProductNode', + 'RxSaturationNode', + 'RxSelectivityNode', + 'RxSpurNode', + 'RxSusceptibilityProfNode', + 'SamplingNode', + 'SceneGroupNode', + 'SelectivityTraceNode', + 'SolutionCouplingNode', + 'SolutionsNode', + 'SpurTraceNode', + 'TR_Switch', + 'TRSwitchTraceNode', + 'Terminator', + 'TestNoiseTraceNode', + 'TopLevelSimulation', + 'TouchstoneCouplingNode', + 'TunableTraceNode', + 'TwoRayPathLossCouplingNode', + 'TwoToneTraceNode', + 'TxBbEmissionNode', + 'TxHarmonicNode', + 'TxMeasNode', + 'TxNbEmissionNode', + 'TxSpectralProfEmitterNode', + 'TxSpectralProfNode', + 'TxSpurNode', + 'WalfischCouplingNode', + 'Waveform', + 'ReadOnlyAmplifier', + 'ReadOnlyAntennaNode', + 'ReadOnlyAntennaPassband', + 'ReadOnlyBand', + 'ReadOnlyBandFolder', + 'ReadOnlyCADNode', + 'ReadOnlyCable', + 'ReadOnlyCirculator', + 'ReadOnlyCouplingLinkNode', + 'ReadOnlyCouplingsNode', + 'ReadOnlyCustomCouplingNode', + 'ReadOnlyEmitSceneNode', + 'ReadOnlyErcegCouplingNode', + 'ReadOnlyFilter', + 'ReadOnlyFiveGChannelModel', + 'ReadOnlyHataCouplingNode', + 'ReadOnlyIndoorPropagationCouplingNode', + 'ReadOnlyIsolator', + 'ReadOnlyLogDistanceCouplingNode', + 'ReadOnlyMultiplexer', + 'ReadOnlyMultiplexerBand', + 'ReadOnlyPowerDivider', + 'ReadOnlyPropagationLossCouplingNode', + 'ReadOnlyRadioNode', + 'ReadOnlyRfSystemGroup', + 'ReadOnlyRxMeasNode', + 'ReadOnlyRxMixerProductNode', + 'ReadOnlyRxSaturationNode', + 'ReadOnlyRxSelectivityNode', + 'ReadOnlyRxSpurNode', + 'ReadOnlyRxSusceptibilityProfNode', + 'ReadOnlySamplingNode', + 'ReadOnlySceneGroupNode', + 'ReadOnlySolutionCouplingNode', + 'ReadOnlySolutionsNode', + 'ReadOnlyTR_Switch', + 'ReadOnlyTerminator', + 'ReadOnlyTouchstoneCouplingNode', + 'ReadOnlyTwoRayPathLossCouplingNode', + 'ReadOnlyTxBbEmissionNode', + 'ReadOnlyTxHarmonicNode', + 'ReadOnlyTxMeasNode', + 'ReadOnlyTxNbEmissionNode', + 'ReadOnlyTxSpectralProfEmitterNode', + 'ReadOnlyTxSpectralProfNode', + 'ReadOnlyTxSpurNode', + 'ReadOnlyWalfischCouplingNode', + 'ReadOnlyWaveform', ] From d146173655b5fa32cb048906baecbbb0bab508cf Mon Sep 17 00:00:00 2001 From: jsalant Date: Thu, 24 Apr 2025 08:51:56 -0400 Subject: [PATCH 51/86] replace id with node_id id is reserved value --- src/ansys/aedt/core/emit_core/nodes/EmitNode.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py index ac2fe41d6e1..b5df5ca351a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py @@ -92,12 +92,12 @@ def node_warnings(self): def allowed_child_types(self): return self._oRevisionData.GetAllowedChildTypes(self._result_id, self._node_id) - def _get_node(self, id: int): + def _get_node(self, node_id: int): """Gets a node for this node's revision with the given id. Parameters ---------- - id: int + node_id: int id of node to construct. Returns @@ -111,16 +111,16 @@ def _get_node(self, id: int): """ from . import generated - props = self._oRevisionData.GetEmitNodeProperties(self._result_id, id, True) + props = self._oRevisionData.GetEmitNodeProperties(self._result_id, node_id, True) props = self.props_to_dict(props) node_type = props["Type"] node = None try: type_class = getattr(generated, node_type) - node = type_class(self._oDesign, self._result_id, id) + node = type_class(self._oDesign, self._result_id, node_id) except AttributeError: - node = EmitNode(self._oDesign, self._result_id, id) + node = EmitNode(self._oDesign, self._result_id, node_id) return node @property From 0d71e22939b44ca9c56ff8556d2799a1a3416848 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 24 Apr 2025 12:52:29 +0000 Subject: [PATCH 52/86] CHORE: Auto fixes from pre-commit hooks --- .../emit_core/nodes/generated/Amplifier.py | 129 ++--- .../emit_core/nodes/generated/AntennaNode.py | 491 +++++++----------- .../nodes/generated/AntennaPassband.py | 74 ++- .../core/emit_core/nodes/generated/Band.py | 371 ++++++------- .../emit_core/nodes/generated/BandFolder.py | 16 +- .../nodes/generated/BandTraceNode.py | 163 +++--- .../core/emit_core/nodes/generated/CADNode.py | 335 +++++------- .../core/emit_core/nodes/generated/Cable.py | 97 ++-- .../nodes/generated/CategoriesViewNode.py | 16 +- .../emit_core/nodes/generated/Circulator.py | 135 ++--- .../nodes/generated/CouplingLinkNode.py | 30 +- .../nodes/generated/CouplingTraceNode.py | 205 +++----- .../nodes/generated/CouplingsNode.py | 38 +- .../nodes/generated/CustomCouplingNode.py | 66 +-- .../nodes/generated/EmiPlotMarkerNode.py | 219 ++++---- .../nodes/generated/EmitSceneNode.py | 51 +- .../nodes/generated/ErcegCouplingNode.py | 193 +++---- .../core/emit_core/nodes/generated/Filter.py | 221 ++++---- .../nodes/generated/FiveGChannelModel.py | 217 ++++---- .../nodes/generated/HataCouplingNode.py | 195 +++---- .../IndoorPropagationCouplingNode.py | 211 ++++---- .../emit_core/nodes/generated/Isolator.py | 135 ++--- .../generated/LogDistanceCouplingNode.py | 209 +++----- .../nodes/generated/MPlexBandTraceNode.py | 150 +++--- .../emit_core/nodes/generated/Multiplexer.py | 81 ++- .../nodes/generated/MultiplexerBand.py | 123 ++--- .../nodes/generated/OutboardTraceNode.py | 151 +++--- .../generated/ParametricCouplingTraceNode.py | 157 +++--- .../nodes/generated/PlotMarkerNode.py | 229 ++++---- .../emit_core/nodes/generated/PlotNode.py | 259 ++++----- .../emit_core/nodes/generated/PowerDivider.py | 139 +++-- .../nodes/generated/PowerTraceNode.py | 151 +++--- .../nodes/generated/ProfileTraceNode.py | 139 +++-- .../generated/PropagationLossCouplingNode.py | 179 +++---- .../emit_core/nodes/generated/RadioNode.py | 32 +- .../nodes/generated/ReadOnlyAmplifier.py | 53 +- .../nodes/generated/ReadOnlyAntennaNode.py | 235 ++++----- .../generated/ReadOnlyAntennaPassband.py | 32 +- .../emit_core/nodes/generated/ReadOnlyBand.py | 183 +++---- .../nodes/generated/ReadOnlyBandFolder.py | 16 +- .../nodes/generated/ReadOnlyCADNode.py | 155 +++--- .../nodes/generated/ReadOnlyCable.py | 49 +- .../nodes/generated/ReadOnlyCirculator.py | 63 +-- .../generated/ReadOnlyCouplingLinkNode.py | 22 +- .../nodes/generated/ReadOnlyCouplingsNode.py | 24 +- .../generated/ReadOnlyCustomCouplingNode.py | 40 +- .../nodes/generated/ReadOnlyEmitSceneNode.py | 35 +- .../generated/ReadOnlyErcegCouplingNode.py | 83 +-- .../nodes/generated/ReadOnlyFilter.py | 95 ++-- .../generated/ReadOnlyFiveGChannelModel.py | 95 ++-- .../generated/ReadOnlyHataCouplingNode.py | 85 +-- .../ReadOnlyIndoorPropagationCouplingNode.py | 97 ++-- .../nodes/generated/ReadOnlyIsolator.py | 63 +-- .../ReadOnlyLogDistanceCouplingNode.py | 93 ++-- .../nodes/generated/ReadOnlyMultiplexer.py | 51 +- .../generated/ReadOnlyMultiplexerBand.py | 55 +- .../nodes/generated/ReadOnlyPowerDivider.py | 65 +-- .../ReadOnlyPropagationLossCouplingNode.py | 73 +-- .../nodes/generated/ReadOnlyRadioNode.py | 28 +- .../nodes/generated/ReadOnlyRfSystemGroup.py | 20 +- .../nodes/generated/ReadOnlyRxMeasNode.py | 71 +-- .../generated/ReadOnlyRxMixerProductNode.py | 79 +-- .../generated/ReadOnlyRxSaturationNode.py | 16 +- .../generated/ReadOnlyRxSelectivityNode.py | 18 +- .../nodes/generated/ReadOnlyRxSpurNode.py | 33 +- .../ReadOnlyRxSusceptibilityProfNode.py | 63 +-- .../nodes/generated/ReadOnlySamplingNode.py | 53 +- .../nodes/generated/ReadOnlySceneGroupNode.py | 43 +- .../generated/ReadOnlySolutionCouplingNode.py | 26 +- .../nodes/generated/ReadOnlySolutionsNode.py | 18 +- .../nodes/generated/ReadOnlyTR_Switch.py | 59 ++- .../nodes/generated/ReadOnlyTerminator.py | 47 +- .../ReadOnlyTouchstoneCouplingNode.py | 42 +- .../ReadOnlyTwoRayPathLossCouplingNode.py | 77 +-- .../generated/ReadOnlyTxBbEmissionNode.py | 35 +- .../nodes/generated/ReadOnlyTxHarmonicNode.py | 25 +- .../nodes/generated/ReadOnlyTxMeasNode.py | 32 +- .../generated/ReadOnlyTxNbEmissionNode.py | 29 +- .../ReadOnlyTxSpectralProfEmitterNode.py | 42 +- .../generated/ReadOnlyTxSpectralProfNode.py | 87 ++-- .../nodes/generated/ReadOnlyTxSpurNode.py | 33 +- .../generated/ReadOnlyWalfischCouplingNode.py | 97 ++-- .../nodes/generated/ReadOnlyWaveform.py | 125 ++--- .../nodes/generated/ResultPlotNode.py | 265 ++++------ .../nodes/generated/RfSystemGroup.py | 30 +- .../emit_core/nodes/generated/RxMeasNode.py | 167 +++--- .../nodes/generated/RxMixerProductNode.py | 175 +++---- .../nodes/generated/RxSaturationNode.py | 20 +- .../nodes/generated/RxSelectivityNode.py | 26 +- .../emit_core/nodes/generated/RxSpurNode.py | 41 +- .../generated/RxSusceptibilityProfNode.py | 149 +++--- .../emit_core/nodes/generated/SamplingNode.py | 77 ++- .../nodes/generated/SceneGroupNode.py | 81 ++- .../nodes/generated/SelectivityTraceNode.py | 139 +++-- .../nodes/generated/SolutionCouplingNode.py | 42 +- .../nodes/generated/SolutionsNode.py | 22 +- .../nodes/generated/SpurTraceNode.py | 151 +++--- .../nodes/generated/TRSwitchTraceNode.py | 151 +++--- .../emit_core/nodes/generated/TR_Switch.py | 133 ++--- .../emit_core/nodes/generated/Terminator.py | 75 ++- .../nodes/generated/TestNoiseTraceNode.py | 207 +++----- .../nodes/generated/TopLevelSimulation.py | 16 +- .../nodes/generated/TouchstoneCouplingNode.py | 74 ++- .../nodes/generated/TunableTraceNode.py | 161 +++--- .../generated/TwoRayPathLossCouplingNode.py | 193 +++---- .../nodes/generated/TwoToneTraceNode.py | 207 +++----- .../nodes/generated/TxBbEmissionNode.py | 49 +- .../nodes/generated/TxHarmonicNode.py | 35 +- .../emit_core/nodes/generated/TxMeasNode.py | 56 +- .../nodes/generated/TxNbEmissionNode.py | 45 +- .../generated/TxSpectralProfEmitterNode.py | 108 ++-- .../nodes/generated/TxSpectralProfNode.py | 217 ++++---- .../emit_core/nodes/generated/TxSpurNode.py | 41 +- .../nodes/generated/WalfischCouplingNode.py | 237 ++++----- .../emit_core/nodes/generated/Waveform.py | 269 ++++------ .../emit_core/nodes/generated/__init__.py | 318 ++++++------ 116 files changed, 5602 insertions(+), 6942 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index 9ea6df1d8be..92a8f4f3c37 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Amplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -49,13 +53,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,48 +67,42 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class AmplifierTypeOption(Enum): - TRANSMIT_AMPLIFIER = "Transmit Amplifier" # eslint-disable-line no-eval - RECEIVE_AMPLIFIER = "Receive Amplifier" # eslint-disable-line no-eval + TRANSMIT_AMPLIFIER = "Transmit Amplifier" # eslint-disable-line no-eval + RECEIVE_AMPLIFIER = "Receive Amplifier" # eslint-disable-line no-eval @property def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type Configures the amplifier as a Tx or Rx amplifier - """ + """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] - return val # type: ignore + return val # type: ignore @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Type={value.value}"]) @property def gain(self) -> float: @@ -116,13 +112,11 @@ def gain(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Gain") - return val # type: ignore + return val # type: ignore @gain.setter - def gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Gain={value}"]) + def gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Gain={value}"]) @property def center_frequency(self) -> float: @@ -133,14 +127,12 @@ def center_frequency(self) -> float: """ val = self._get_property("Center Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @center_frequency.setter - def center_frequency(self, value : float|str): + def center_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Center Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Frequency={value}"]) @property def bandwidth(self) -> float: @@ -151,14 +143,12 @@ def bandwidth(self) -> float: """ val = self._get_property("Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth.setter - def bandwidth(self, value : float|str): + def bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth={value}"]) @property def noise_figure(self) -> float: @@ -168,13 +158,11 @@ def noise_figure(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def saturation_level(self) -> float: @@ -185,14 +173,12 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @saturation_level.setter - def saturation_level(self, value : float|str): + def saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) @property def p1_db_point_ref_input(self) -> float: @@ -203,14 +189,12 @@ def p1_db_point_ref_input(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value : float|str): + def p1_db_point_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input={value}"]) @property def ip3_ref_input(self) -> float: @@ -221,14 +205,12 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def shape_factor(self) -> float: @@ -238,13 +220,11 @@ def shape_factor(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @shape_factor.setter - def shape_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Shape Factor={value}"]) + def shape_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) @property def reverse_isolation(self) -> float: @@ -254,13 +234,11 @@ def reverse_isolation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -270,11 +248,8 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py index 84a33b1ca9e..7d2050748bf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class AntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -55,15 +59,13 @@ def tags(self) -> str: """Tags Space delimited list of tags for coupling selections - """ + """ val = self._get_property("Tags") - return val # type: ignore + return val # type: ignore @tags.setter def tags(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tags={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tags={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -74,13 +76,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -90,13 +92,11 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -106,33 +106,29 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -142,13 +138,11 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -158,13 +152,11 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def position_defined(self) -> bool: @@ -174,13 +166,11 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return val # type: ignore + return val # type: ignore @position_defined.setter def position_defined(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position Defined={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Defined={value}"]) @property def antenna_temperature(self) -> float: @@ -190,28 +180,24 @@ def antenna_temperature(self) -> float: Value should be between 0 and 100000. """ val = self._get_property("Antenna Temperature") - return val # type: ignore + return val # type: ignore @antenna_temperature.setter - def antenna_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna Temperature={value}"]) + def antenna_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna Temperature={value}"]) @property def type(self): """Type Defines the type of antenna - """ + """ val = self._get_property("Type") - return val # type: ignore + return val # type: ignore @type.setter def type(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value}"]) @property def antenna_file(self) -> str: @@ -219,13 +205,11 @@ def antenna_file(self) -> str: Value should be a full file path. """ val = self._get_property("Antenna File") - return val # type: ignore + return val # type: ignore @antenna_file.setter def antenna_file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna File={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna File={value}"]) @property def project_name(self) -> str: @@ -235,13 +219,11 @@ def project_name(self) -> str: Value should be a full file path. """ val = self._get_property("Project Name") - return val # type: ignore + return val # type: ignore @project_name.setter def project_name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Project Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Project Name={value}"]) @property def peak_gain(self) -> float: @@ -251,34 +233,30 @@ def peak_gain(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Peak Gain") - return val # type: ignore + return val # type: ignore @peak_gain.setter - def peak_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Peak Gain={value}"]) + def peak_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Gain={value}"]) class BoresightOption(Enum): - XAXIS = "+X Axis" # eslint-disable-line no-eval - YAXIS = "+Y Axis" # eslint-disable-line no-eval - ZAXIS = "+Z Axis" # eslint-disable-line no-eval + XAXIS = "+X Axis" # eslint-disable-line no-eval + YAXIS = "+Y Axis" # eslint-disable-line no-eval + ZAXIS = "+Z Axis" # eslint-disable-line no-eval @property def boresight(self) -> BoresightOption: """Boresight Select peak beam direction in local coordinates - """ + """ val = self._get_property("Boresight") val = self.BoresightOption[val] - return val # type: ignore + return val # type: ignore @boresight.setter def boresight(self, value: BoresightOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Boresight={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Boresight={value.value}"]) @property def vertical_beamwidth(self) -> float: @@ -288,13 +266,11 @@ def vertical_beamwidth(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("Vertical Beamwidth") - return val # type: ignore + return val # type: ignore @vertical_beamwidth.setter - def vertical_beamwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Beamwidth={value}"]) + def vertical_beamwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Beamwidth={value}"]) @property def horizontal_beamwidth(self) -> float: @@ -304,13 +280,11 @@ def horizontal_beamwidth(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("Horizontal Beamwidth") - return val # type: ignore + return val # type: ignore @horizontal_beamwidth.setter - def horizontal_beamwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Beamwidth={value}"]) + def horizontal_beamwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Beamwidth={value}"]) @property def extra_sidelobe(self) -> bool: @@ -320,13 +294,11 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return val # type: ignore + return val # type: ignore @extra_sidelobe.setter def extra_sidelobe(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Extra Sidelobe={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Extra Sidelobe={value}"]) @property def first_sidelobe_level(self) -> float: @@ -337,13 +309,11 @@ def first_sidelobe_level(self) -> float: Value should be between 0 and 200. """ val = self._get_property("First Sidelobe Level") - return val # type: ignore + return val # type: ignore @first_sidelobe_level.setter - def first_sidelobe_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Level={value}"]) + def first_sidelobe_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Level={value}"]) @property def first_sidelobe_vert_bw(self) -> float: @@ -353,13 +323,11 @@ def first_sidelobe_vert_bw(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Vert. BW") - return val # type: ignore + return val # type: ignore @first_sidelobe_vert_bw.setter - def first_sidelobe_vert_bw(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Vert. BW={value}"]) + def first_sidelobe_vert_bw(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Vert. BW={value}"]) @property def first_sidelobe_hor_bw(self) -> float: @@ -369,13 +337,11 @@ def first_sidelobe_hor_bw(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Hor. BW") - return val # type: ignore + return val # type: ignore @first_sidelobe_hor_bw.setter - def first_sidelobe_hor_bw(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Hor. BW={value}"]) + def first_sidelobe_hor_bw(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Hor. BW={value}"]) @property def outerbacklobe_level(self) -> float: @@ -385,13 +351,11 @@ def outerbacklobe_level(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Outer/Backlobe Level") - return val # type: ignore + return val # type: ignore @outerbacklobe_level.setter - def outerbacklobe_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Outer/Backlobe Level={value}"]) + def outerbacklobe_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Outer/Backlobe Level={value}"]) @property def resonant_frequency(self) -> float: @@ -403,14 +367,12 @@ def resonant_frequency(self) -> float: """ val = self._get_property("Resonant Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @resonant_frequency.setter - def resonant_frequency(self, value : float|str): + def resonant_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Resonant Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resonant Frequency={value}"]) @property def slot_length(self) -> float: @@ -421,14 +383,12 @@ def slot_length(self) -> float: """ val = self._get_property("Slot Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @slot_length.setter - def slot_length(self, value : float|str): + def slot_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Slot Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Slot Length={value}"]) @property def mouth_width(self) -> float: @@ -439,14 +399,12 @@ def mouth_width(self) -> float: """ val = self._get_property("Mouth Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_width.setter - def mouth_width(self, value : float|str): + def mouth_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Width={value}"]) @property def mouth_height(self) -> float: @@ -457,14 +415,12 @@ def mouth_height(self) -> float: """ val = self._get_property("Mouth Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_height.setter - def mouth_height(self, value : float|str): + def mouth_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Height={value}"]) @property def waveguide_width(self) -> float: @@ -476,14 +432,12 @@ def waveguide_width(self) -> float: """ val = self._get_property("Waveguide Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @waveguide_width.setter - def waveguide_width(self, value : float|str): + def waveguide_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Waveguide Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveguide Width={value}"]) @property def width_flare_half_angle(self) -> float: @@ -494,13 +448,11 @@ def width_flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Width Flare Half-angle") - return val # type: ignore + return val # type: ignore @width_flare_half_angle.setter - def width_flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Width Flare Half-angle={value}"]) + def width_flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width Flare Half-angle={value}"]) @property def height_flare_half_angle(self) -> float: @@ -511,13 +463,11 @@ def height_flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Height Flare Half-angle") - return val # type: ignore + return val # type: ignore @height_flare_half_angle.setter - def height_flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Height Flare Half-angle={value}"]) + def height_flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height Flare Half-angle={value}"]) @property def mouth_diameter(self) -> float: @@ -528,14 +478,12 @@ def mouth_diameter(self) -> float: """ val = self._get_property("Mouth Diameter") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_diameter.setter - def mouth_diameter(self, value : float|str): + def mouth_diameter(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Diameter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Diameter={value}"]) @property def flare_half_angle(self) -> float: @@ -546,13 +494,11 @@ def flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Flare Half-angle") - return val # type: ignore + return val # type: ignore @flare_half_angle.setter - def flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Flare Half-angle={value}"]) + def flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flare Half-angle={value}"]) @property def vswr(self) -> float: @@ -563,75 +509,71 @@ def vswr(self) -> float: Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @vswr.setter - def vswr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"VSWR={value}"]) + def vswr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) class AntennaPolarizationOption(Enum): - VERTICAL = "Vertical" # eslint-disable-line no-eval - HORIZONTAL = "Horizontal" # eslint-disable-line no-eval - RHCP = "RHCP" # eslint-disable-line no-eval - LHCP = "LHCP" # eslint-disable-line no-eval + VERTICAL = "Vertical" # eslint-disable-line no-eval + HORIZONTAL = "Horizontal" # eslint-disable-line no-eval + RHCP = "RHCP" # eslint-disable-line no-eval + LHCP = "LHCP" # eslint-disable-line no-eval @property def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] - return val # type: ignore + return val # type: ignore @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna Polarization={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Antenna Polarization={value.value}"] + ) class CrossDipoleModeOption(Enum): - FREESTANDING = "Freestanding" # eslint-disable-line no-eval - OVER_GROUND_PLANE = "Over Ground Plane" # eslint-disable-line no-eval + FREESTANDING = "Freestanding" # eslint-disable-line no-eval + OVER_GROUND_PLANE = "Over Ground Plane" # eslint-disable-line no-eval @property def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode Choose the Cross Dipole type - """ + """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] - return val # type: ignore + return val # type: ignore @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Cross Dipole Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Cross Dipole Mode={value.value}"]) class CrossDipolePolarizationOption(Enum): - RHCP = "RHCP" # eslint-disable-line no-eval - LHCP = "LHCP" # eslint-disable-line no-eval + RHCP = "RHCP" # eslint-disable-line no-eval + LHCP = "LHCP" # eslint-disable-line no-eval @property def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] - return val # type: ignore + return val # type: ignore @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Cross Dipole Polarization={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Cross Dipole Polarization={value.value}"] + ) @property def override_height(self) -> bool: @@ -642,13 +584,11 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return val # type: ignore + return val # type: ignore @override_height.setter def override_height(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Override Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Override Height={value}"]) @property def offset_height(self) -> float: @@ -659,14 +599,12 @@ def offset_height(self) -> float: """ val = self._get_property("Offset Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @offset_height.setter - def offset_height(self, value : float|str): + def offset_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Offset Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset Height={value}"]) @property def auto_height_offset(self) -> bool: @@ -677,13 +615,11 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return val # type: ignore + return val # type: ignore @auto_height_offset.setter def auto_height_offset(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Auto Height Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Auto Height Offset={value}"]) @property def conform__adjust_antenna(self) -> bool: @@ -693,13 +629,11 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return val # type: ignore + return val # type: ignore @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform / Adjust Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform / Adjust Antenna={value}"]) @property def element_offset(self): @@ -709,55 +643,51 @@ def element_offset(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Element Offset") - return val # type: ignore + return val # type: ignore @element_offset.setter def element_offset(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Element Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Element Offset={value}"]) class ConformtoPlatformOption(Enum): - NONE = "None" # eslint-disable-line no-eval - ALONG_NORMAL = "Along Normal" # eslint-disable-line no-eval - PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + ALONG_NORMAL = "Along Normal" # eslint-disable-line no-eval + PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" # eslint-disable-line no-eval @property def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform Select method of automated conforming applied after Element Offset - """ + """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] - return val # type: ignore + return val # type: ignore @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform to Platform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Conform to Platform={value.value}"] + ) class ReferencePlaneOption(Enum): - XY_PLANE = "XY Plane" # eslint-disable-line no-eval - YZ_PLANE = "YZ Plane" # eslint-disable-line no-eval - ZX_PLANE = "ZX Plane" # eslint-disable-line no-eval + XY_PLANE = "XY Plane" # eslint-disable-line no-eval + YZ_PLANE = "YZ Plane" # eslint-disable-line no-eval + ZX_PLANE = "ZX Plane" # eslint-disable-line no-eval @property def reference_plane(self) -> ReferencePlaneOption: """Reference Plane Select reference plane for determining original element heights - """ + """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] - return val # type: ignore + return val # type: ignore @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reference Plane={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reference Plane={value.value}"]) @property def conform_element_orientation(self) -> bool: @@ -768,13 +698,13 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return val # type: ignore + return val # type: ignore @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform Element Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Conform Element Orientation={value}"] + ) @property def show_axes(self) -> bool: @@ -784,13 +714,11 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def show_icon(self) -> bool: @@ -800,13 +728,11 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return val # type: ignore + return val # type: ignore @show_icon.setter def show_icon(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Icon={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Icon={value}"]) @property def size(self) -> float: @@ -816,13 +742,11 @@ def size(self) -> float: Value should be between 0.001 and 1. """ val = self._get_property("Size") - return val # type: ignore + return val # type: ignore @size.setter - def size(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Size={value}"]) + def size(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Size={value}"]) @property def color(self): @@ -832,31 +756,29 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def el_sample_interval(self) -> float: """El Sample Interval Space between elevation-angle samples of pattern - """ + """ val = self._get_property("El Sample Interval") - return val # type: ignore + return val # type: ignore @property def az_sample_interval(self) -> float: """Az Sample Interval Space between azimuth-angle samples of pattern - """ + """ val = self._get_property("Az Sample Interval") - return val # type: ignore + return val # type: ignore @property def has_frequency_domain(self) -> bool: @@ -866,34 +788,34 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return val # type: ignore + return val # type: ignore @property def frequency_domain(self): """Frequency Domain Frequency sample(s) defining antenna - """ + """ val = self._get_property("Frequency Domain") - return val # type: ignore + return val # type: ignore @property def number_of_electric_sources(self) -> int: """Number of Electric Sources Number of freestanding electric current sources defining antenna - """ + """ val = self._get_property("Number of Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources Number of freestanding magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_electric_sources(self) -> int: @@ -901,9 +823,9 @@ def number_of_imaged_electric_sources(self) -> int: Number of imaged, half-space radiating electric current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_magnetic_sources(self) -> int: @@ -911,9 +833,9 @@ def number_of_imaged_magnetic_sources(self) -> int: Number of imaged, half-space radiating magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def waveguide_height(self) -> float: @@ -921,35 +843,35 @@ def waveguide_height(self) -> float: Implied waveguide height (along local x-axis) where the flared horn walls meet the feed - """ + """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency Implied lowest operating frequency of pyramidal horn antenna - """ + """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency Implied lowest operating frequency of conical horn antenna - """ + """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class SWEModeTruncationOption(Enum): - DYNAMIC = "Dynamic" # eslint-disable-line no-eval - FIXED_CUSTOM = "Fixed (Custom)" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + DYNAMIC = "Dynamic" # eslint-disable-line no-eval + FIXED_CUSTOM = "Fixed (Custom)" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def swe_mode_truncation(self) -> SWEModeTruncationOption: @@ -957,16 +879,16 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: Select the method for stability-enhancing truncation of spherical wave expansion terms - """ + """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] - return val # type: ignore + return val # type: ignore @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SWE Mode Truncation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"SWE Mode Truncation={value.value}"] + ) @property def max_n_index(self) -> int: @@ -976,28 +898,24 @@ def max_n_index(self) -> int: Value should be greater than 1. """ val = self._get_property("Max N Index") - return val # type: ignore + return val # type: ignore @max_n_index.setter def max_n_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max N Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max N Index={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) @property def show_composite_passband(self) -> bool: @@ -1007,13 +925,11 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return val # type: ignore + return val # type: ignore @show_composite_passband.setter def show_composite_passband(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Composite Passband={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Composite Passband={value}"]) @property def use_phase_center(self) -> bool: @@ -1023,22 +939,20 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return val # type: ignore + return val # type: ignore @use_phase_center.setter def use_phase_center(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Phase Center={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Phase Center={value}"]) @property def coordinate_systems(self) -> str: """Coordinate Systems Specifies the coordinate system for the phase center of this antenna - """ + """ val = self._get_property("Coordinate Systems") - return val # type: ignore + return val # type: ignore @property def phasecenterposition(self): @@ -1048,7 +962,7 @@ def phasecenterposition(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("PhaseCenterPosition") - return val # type: ignore + return val # type: ignore @property def phasecenterorientation(self): @@ -1058,5 +972,4 @@ def phasecenterorientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("PhaseCenterOrientation") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py index 4778cb346c0..0bf1460ea82 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class AntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,7 +51,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -62,13 +65,11 @@ def passband_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Passband Loss") - return val # type: ignore + return val # type: ignore @passband_loss.setter - def passband_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Passband Loss={value}"]) + def passband_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Passband Loss={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -78,13 +79,11 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out of Band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out of Band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out of Band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -95,14 +94,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -113,14 +110,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -131,14 +126,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -149,27 +142,22 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index ea788832adf..5837972a959 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Band(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -48,15 +52,13 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) @property def use_dd_1494_mode(self) -> bool: @@ -66,13 +68,11 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return val # type: ignore + return val # type: ignore @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use DD-1494 Mode={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use DD-1494 Mode={value}"]) @property def use_emission_designator(self) -> bool: @@ -82,47 +82,43 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return val # type: ignore + return val # type: ignore @use_emission_designator.setter def use_emission_designator(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Emission Designator={value}"]) @property def emission_designator(self) -> str: """Emission Designator Enter the Emission Designator to define the bandwidth and modulation - """ + """ val = self._get_property("Emission Designator") - return val # type: ignore + return val # type: ignore @emission_designator.setter def emission_designator(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Emission Designator={value}"]) @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW Channel Bandwidth based off the emission designator - """ + """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def emit_modulation_type(self) -> str: """EMIT Modulation Type Modulation based off the emission designator - """ + """ val = self._get_property("EMIT Modulation Type") - return val # type: ignore + return val # type: ignore @property def override_emission_designator_bw(self) -> bool: @@ -133,13 +129,13 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return val # type: ignore + return val # type: ignore @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Override Emission Designator BW={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Override Emission Designator BW={value}"] + ) @property def channel_bandwidth(self) -> float: @@ -150,43 +146,39 @@ def channel_bandwidth(self) -> float: """ val = self._get_property("Channel Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_bandwidth.setter - def channel_bandwidth(self, value : float|str): + def channel_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Bandwidth={value}"]) class ModulationOption(Enum): - GENERIC = "Generic" # eslint-disable-line no-eval - AM = "AM" # eslint-disable-line no-eval - LSB = "LSB" # eslint-disable-line no-eval - USB = "USB" # eslint-disable-line no-eval - FM = "FM" # eslint-disable-line no-eval - FSK = "FSK" # eslint-disable-line no-eval - MSK = "MSK" # eslint-disable-line no-eval - PSK = "PSK" # eslint-disable-line no-eval - QAM = "QAM" # eslint-disable-line no-eval - APSK = "APSK" # eslint-disable-line no-eval - RADAR = "Radar" # eslint-disable-line no-eval + GENERIC = "Generic" # eslint-disable-line no-eval + AM = "AM" # eslint-disable-line no-eval + LSB = "LSB" # eslint-disable-line no-eval + USB = "USB" # eslint-disable-line no-eval + FM = "FM" # eslint-disable-line no-eval + FSK = "FSK" # eslint-disable-line no-eval + MSK = "MSK" # eslint-disable-line no-eval + PSK = "PSK" # eslint-disable-line no-eval + QAM = "QAM" # eslint-disable-line no-eval + APSK = "APSK" # eslint-disable-line no-eval + RADAR = "Radar" # eslint-disable-line no-eval @property def modulation(self) -> ModulationOption: """Modulation Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Modulation") val = self.ModulationOption[val] - return val # type: ignore + return val # type: ignore @modulation.setter def modulation(self, value: ModulationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation={value.value}"]) @property def max_modulating_freq(self) -> float: @@ -197,14 +189,12 @@ def max_modulating_freq(self) -> float: """ val = self._get_property("Max Modulating Freq.") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_modulating_freq.setter - def max_modulating_freq(self, value : float|str): + def max_modulating_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Modulating Freq.={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Modulating Freq.={value}"]) @property def modulation_index(self) -> float: @@ -214,13 +204,11 @@ def modulation_index(self) -> float: Value should be between 0.01 and 1. """ val = self._get_property("Modulation Index") - return val # type: ignore + return val # type: ignore @modulation_index.setter - def modulation_index(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation Index={value}"]) + def modulation_index(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Index={value}"]) @property def freq_deviation(self) -> float: @@ -231,14 +219,12 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation.setter - def freq_deviation(self, value : float|str): + def freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) @property def bit_rate(self) -> float: @@ -249,14 +235,12 @@ def bit_rate(self) -> float: """ val = self._get_property("Bit Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @bit_rate.setter - def bit_rate(self, value : float|str): + def bit_rate(self, value: float | str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bit Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bit Rate={value}"]) @property def sidelobes(self) -> int: @@ -266,122 +250,110 @@ def sidelobes(self) -> int: Value should be greater than 0. """ val = self._get_property("Sidelobes") - return val # type: ignore + return val # type: ignore @sidelobes.setter def sidelobes(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sidelobes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sidelobes={value}"]) @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation FSK frequency deviation: helps determine spectral profile Value should be greater than 1. """ val = self._get_property("Freq. Deviation ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation_.setter - def freq_deviation_(self, value : float|str): + def freq_deviation_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation ={value}"]) class PSKTypeOption(Enum): - BPSK = "BPSK" # eslint-disable-line no-eval - QPSK = "QPSK" # eslint-disable-line no-eval - PSK_8 = "PSK-8" # eslint-disable-line no-eval - PSK_16 = "PSK-16" # eslint-disable-line no-eval - PSK_32 = "PSK-32" # eslint-disable-line no-eval - PSK_64 = "PSK-64" # eslint-disable-line no-eval + BPSK = "BPSK" # eslint-disable-line no-eval + QPSK = "QPSK" # eslint-disable-line no-eval + PSK_8 = "PSK-8" # eslint-disable-line no-eval + PSK_16 = "PSK-16" # eslint-disable-line no-eval + PSK_32 = "PSK-32" # eslint-disable-line no-eval + PSK_64 = "PSK-64" # eslint-disable-line no-eval @property def psk_type(self) -> PSKTypeOption: """PSK Type PSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] - return val # type: ignore + return val # type: ignore @psk_type.setter def psk_type(self, value: PSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"PSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"PSK Type={value.value}"]) class FSKTypeOption(Enum): - FSK_2 = "FSK-2" # eslint-disable-line no-eval - FSK_4 = "FSK-4" # eslint-disable-line no-eval - FSK_8 = "FSK-8" # eslint-disable-line no-eval + FSK_2 = "FSK-2" # eslint-disable-line no-eval + FSK_4 = "FSK-4" # eslint-disable-line no-eval + FSK_8 = "FSK-8" # eslint-disable-line no-eval @property def fsk_type(self) -> FSKTypeOption: """FSK Type FSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] - return val # type: ignore + return val # type: ignore @fsk_type.setter def fsk_type(self, value: FSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FSK Type={value.value}"]) class QAMTypeOption(Enum): - QAM_4 = "QAM-4" # eslint-disable-line no-eval - QAM_16 = "QAM-16" # eslint-disable-line no-eval - QAM_64 = "QAM-64" # eslint-disable-line no-eval - QAM_256 = "QAM-256" # eslint-disable-line no-eval - QAM_1024 = "QAM-1024" # eslint-disable-line no-eval + QAM_4 = "QAM-4" # eslint-disable-line no-eval + QAM_16 = "QAM-16" # eslint-disable-line no-eval + QAM_64 = "QAM-64" # eslint-disable-line no-eval + QAM_256 = "QAM-256" # eslint-disable-line no-eval + QAM_1024 = "QAM-1024" # eslint-disable-line no-eval @property def qam_type(self) -> QAMTypeOption: """QAM Type QAM modulation order: helps determine spectral profile - """ + """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] - return val # type: ignore + return val # type: ignore @qam_type.setter def qam_type(self, value: QAMTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"QAM Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"QAM Type={value.value}"]) class APSKTypeOption(Enum): - APSK_4 = "APSK-4" # eslint-disable-line no-eval - APSK_16 = "APSK-16" # eslint-disable-line no-eval - APSK_64 = "APSK-64" # eslint-disable-line no-eval - APSK_256 = "APSK-256" # eslint-disable-line no-eval - APSK_1024 = "APSK-1024" # eslint-disable-line no-eval + APSK_4 = "APSK-4" # eslint-disable-line no-eval + APSK_16 = "APSK-16" # eslint-disable-line no-eval + APSK_64 = "APSK-64" # eslint-disable-line no-eval + APSK_256 = "APSK-256" # eslint-disable-line no-eval + APSK_1024 = "APSK-1024" # eslint-disable-line no-eval @property def apsk_type(self) -> APSKTypeOption: """APSK Type APSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] - return val # type: ignore + return val # type: ignore @apsk_type.setter def apsk_type(self, value: APSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"APSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"APSK Type={value.value}"]) @property def start_frequency(self) -> float: @@ -392,14 +364,12 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -410,14 +380,12 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -428,14 +396,12 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_spacing.setter - def channel_spacing(self, value : float|str): + def channel_spacing(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) @property def tx_offset(self) -> float: @@ -446,37 +412,33 @@ def tx_offset(self) -> float: """ val = self._get_property("Tx Offset") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @tx_offset.setter - def tx_offset(self, value : float|str): + def tx_offset(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Offset={value}"]) class RadarTypeOption(Enum): - CW = "CW" # eslint-disable-line no-eval - FM_CW = "FM-CW" # eslint-disable-line no-eval - FM_PULSE = "FM Pulse" # eslint-disable-line no-eval - NON_FM_PULSE = "Non-FM Pulse" # eslint-disable-line no-eval - PHASE_CODED = "Phase Coded" # eslint-disable-line no-eval + CW = "CW" # eslint-disable-line no-eval + FM_CW = "FM-CW" # eslint-disable-line no-eval + FM_PULSE = "FM Pulse" # eslint-disable-line no-eval + NON_FM_PULSE = "Non-FM Pulse" # eslint-disable-line no-eval + PHASE_CODED = "Phase Coded" # eslint-disable-line no-eval @property def radar_type(self) -> RadarTypeOption: """Radar Type Radar type: helps determine spectral profile - """ + """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] - return val # type: ignore + return val # type: ignore @radar_type.setter def radar_type(self, value: RadarTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Radar Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radar Type={value.value}"]) @property def hopping_radar(self) -> bool: @@ -486,13 +448,11 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return val # type: ignore + return val # type: ignore @hopping_radar.setter def hopping_radar(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hopping Radar={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hopping Radar={value}"]) @property def post_october_2020_procurement(self) -> bool: @@ -503,13 +463,13 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return val # type: ignore + return val # type: ignore @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Post October 2020 Procurement={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Post October 2020 Procurement={value}"] + ) @property def hop_range_min_freq(self) -> float: @@ -520,14 +480,12 @@ def hop_range_min_freq(self) -> float: """ val = self._get_property("Hop Range Min Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @hop_range_min_freq.setter - def hop_range_min_freq(self, value : float|str): + def hop_range_min_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hop Range Min Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Min Freq={value}"]) @property def hop_range_max_freq(self) -> float: @@ -538,14 +496,12 @@ def hop_range_max_freq(self) -> float: """ val = self._get_property("Hop Range Max Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @hop_range_max_freq.setter - def hop_range_max_freq(self, value : float|str): + def hop_range_max_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hop Range Max Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Max Freq={value}"]) @property def pulse_duration(self) -> float: @@ -556,14 +512,12 @@ def pulse_duration(self) -> float: """ val = self._get_property("Pulse Duration") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_duration.setter - def pulse_duration(self, value : float|str): + def pulse_duration(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Duration={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Duration={value}"]) @property def pulse_rise_time(self) -> float: @@ -574,14 +528,12 @@ def pulse_rise_time(self) -> float: """ val = self._get_property("Pulse Rise Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_rise_time.setter - def pulse_rise_time(self, value : float|str): + def pulse_rise_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Rise Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Rise Time={value}"]) @property def pulse_fall_time(self) -> float: @@ -592,14 +544,12 @@ def pulse_fall_time(self) -> float: """ val = self._get_property("Pulse Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_fall_time.setter - def pulse_fall_time(self, value : float|str): + def pulse_fall_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Fall Time={value}"]) @property def pulse_repetition_rate(self) -> float: @@ -609,13 +559,11 @@ def pulse_repetition_rate(self) -> float: Value should be greater than 1. """ val = self._get_property("Pulse Repetition Rate") - return val # type: ignore + return val # type: ignore @pulse_repetition_rate.setter - def pulse_repetition_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Repetition Rate={value}"]) + def pulse_repetition_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Repetition Rate={value}"]) @property def number_of_chips(self) -> float: @@ -625,13 +573,11 @@ def number_of_chips(self) -> float: Value should be greater than 1. """ val = self._get_property("Number of Chips") - return val # type: ignore + return val # type: ignore @number_of_chips.setter - def number_of_chips(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Chips={value}"]) + def number_of_chips(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Chips={value}"]) @property def pulse_compression_ratio(self) -> float: @@ -641,13 +587,11 @@ def pulse_compression_ratio(self) -> float: Value should be greater than 1. """ val = self._get_property("Pulse Compression Ratio") - return val # type: ignore + return val # type: ignore @pulse_compression_ratio.setter - def pulse_compression_ratio(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Compression Ratio={value}"]) + def pulse_compression_ratio(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Compression Ratio={value}"]) @property def fm_chirp_period(self) -> float: @@ -658,14 +602,12 @@ def fm_chirp_period(self) -> float: """ val = self._get_property("FM Chirp Period") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @fm_chirp_period.setter - def fm_chirp_period(self, value : float|str): + def fm_chirp_period(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Chirp Period={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Chirp Period={value}"]) @property def fm_freq_deviation(self) -> float: @@ -676,14 +618,12 @@ def fm_freq_deviation(self) -> float: """ val = self._get_property("FM Freq Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @fm_freq_deviation.setter - def fm_freq_deviation(self, value : float|str): + def fm_freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Freq Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Deviation={value}"]) @property def fm_freq_dev_bandwidth(self) -> float: @@ -695,12 +635,9 @@ def fm_freq_dev_bandwidth(self) -> float: """ val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value : float|str): + def fm_freq_dev_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Freq Dev Bandwidth={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Dev Bandwidth={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py index 65242e7c8a1..4f0f26c1b0b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class BandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,4 +51,3 @@ def duplicate(self, new_name): def delete(self): """Delete this node""" self._delete() - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py index dcca6fad6dc..b1a1b2a80b4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class BandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,50 +56,44 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) class TxorRxOption(Enum): - TX = "Tx" # eslint-disable-line no-eval - RX = "Rx" # eslint-disable-line no-eval + TX = "Tx" # eslint-disable-line no-eval + RX = "Rx" # eslint-disable-line no-eval @property def tx_or_rx(self) -> TxorRxOption: """Tx or Rx Specifies whether the trace is a Tx or Rx channel - """ + """ val = self._get_property("Tx or Rx") val = self.TxorRxOption[val] - return val # type: ignore + return val # type: ignore @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx or Rx={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx or Rx={value.value}"]) @property def channel_frequency(self): """Channel Frequency Select band channel frequency to display - """ + """ val = self._get_property("Channel Frequency") - return val # type: ignore + return val # type: ignore @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: @@ -103,10 +101,10 @@ def transmit_frequency(self) -> float: The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset) - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def visible(self) -> bool: @@ -116,13 +114,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -132,52 +128,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -187,13 +177,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -203,46 +191,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -252,13 +236,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -268,13 +250,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -284,13 +264,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -301,11 +279,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py index e6acada25f8..e2e53a9ca69 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class CADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,39 +58,37 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore class ModelTypeOption(Enum): - PLATE = "Plate" # eslint-disable-line no-eval - BOX = "Box" # eslint-disable-line no-eval - DIHEDRAL = "Dihedral" # eslint-disable-line no-eval - TRIHEDRAL = "Trihedral" # eslint-disable-line no-eval - CYLINDER = "Cylinder" # eslint-disable-line no-eval - TAPERED_CYLINDER = "Tapered Cylinder" # eslint-disable-line no-eval - CONE = "Cone" # eslint-disable-line no-eval - SPHERE = "Sphere" # eslint-disable-line no-eval - ELLIPSOID = "Ellipsoid" # eslint-disable-line no-eval - CIRCULAR_PLATE = "Circular Plate" # eslint-disable-line no-eval - PARABOLA = "Parabola" # eslint-disable-line no-eval - PRISM = "Prism" # eslint-disable-line no-eval - TAPERED_PRISM = "Tapered Prism" # eslint-disable-line no-eval - TOPHAT = "Tophat" # eslint-disable-line no-eval + PLATE = "Plate" # eslint-disable-line no-eval + BOX = "Box" # eslint-disable-line no-eval + DIHEDRAL = "Dihedral" # eslint-disable-line no-eval + TRIHEDRAL = "Trihedral" # eslint-disable-line no-eval + CYLINDER = "Cylinder" # eslint-disable-line no-eval + TAPERED_CYLINDER = "Tapered Cylinder" # eslint-disable-line no-eval + CONE = "Cone" # eslint-disable-line no-eval + SPHERE = "Sphere" # eslint-disable-line no-eval + ELLIPSOID = "Ellipsoid" # eslint-disable-line no-eval + CIRCULAR_PLATE = "Circular Plate" # eslint-disable-line no-eval + PARABOLA = "Parabola" # eslint-disable-line no-eval + PRISM = "Prism" # eslint-disable-line no-eval + TAPERED_PRISM = "Tapered Prism" # eslint-disable-line no-eval + TOPHAT = "Tophat" # eslint-disable-line no-eval @property def model_type(self) -> ModelTypeOption: """Model Type Select type of parametric model to create - """ + """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] - return val # type: ignore + return val # type: ignore @model_type.setter def model_type(self, value: ModelTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Model Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Model Type={value.value}"]) @property def length(self) -> float: @@ -97,14 +99,12 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @length.setter - def length(self, value : float|str): + def length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) @property def width(self) -> float: @@ -115,14 +115,12 @@ def width(self) -> float: """ val = self._get_property("Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @width.setter - def width(self, value : float|str): + def width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width={value}"]) @property def height(self) -> float: @@ -133,14 +131,12 @@ def height(self) -> float: """ val = self._get_property("Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @height.setter - def height(self, value : float|str): + def height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height={value}"]) @property def angle(self) -> float: @@ -150,13 +146,11 @@ def angle(self) -> float: Value should be between 0 and 360. """ val = self._get_property("Angle") - return val # type: ignore + return val # type: ignore @angle.setter - def angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Angle={value}"]) + def angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Angle={value}"]) @property def top_side(self) -> float: @@ -167,14 +161,12 @@ def top_side(self) -> float: """ val = self._get_property("Top Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @top_side.setter - def top_side(self, value : float|str): + def top_side(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Top Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Side={value}"]) @property def top_radius(self) -> float: @@ -185,14 +177,12 @@ def top_radius(self) -> float: """ val = self._get_property("Top Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @top_radius.setter - def top_radius(self, value : float|str): + def top_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Top Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Radius={value}"]) @property def side(self) -> float: @@ -203,14 +193,12 @@ def side(self) -> float: """ val = self._get_property("Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @side.setter - def side(self, value : float|str): + def side(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Side={value}"]) @property def radius(self) -> float: @@ -221,14 +209,12 @@ def radius(self) -> float: """ val = self._get_property("Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @radius.setter - def radius(self, value : float|str): + def radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radius={value}"]) @property def base_radius(self) -> float: @@ -239,14 +225,12 @@ def base_radius(self) -> float: """ val = self._get_property("Base Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @base_radius.setter - def base_radius(self, value : float|str): + def base_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Radius={value}"]) @property def center_radius(self) -> float: @@ -257,14 +241,12 @@ def center_radius(self) -> float: """ val = self._get_property("Center Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @center_radius.setter - def center_radius(self, value : float|str): + def center_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Center Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Radius={value}"]) @property def x_axis_ellipsoid_radius(self) -> float: @@ -275,14 +257,12 @@ def x_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("X Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value : float|str): + def x_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Axis Ellipsoid Radius={value}"]) @property def y_axis_ellipsoid_radius(self) -> float: @@ -293,14 +273,12 @@ def y_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Y Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value : float|str): + def y_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Axis Ellipsoid Radius={value}"]) @property def z_axis_ellipsoid_radius(self) -> float: @@ -311,14 +289,12 @@ def z_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Z Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value : float|str): + def z_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Z Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Z Axis Ellipsoid Radius={value}"]) @property def focal_length(self) -> float: @@ -329,31 +305,27 @@ def focal_length(self) -> float: """ val = self._get_property("Focal Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @focal_length.setter - def focal_length(self, value : float|str): + def focal_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Focal Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Focal Length={value}"]) @property def offset(self) -> float: """Offset Offset of parabolic reflector - """ + """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @offset.setter - def offset(self, value : float|str): + def offset(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset={value}"]) @property def x_direction_taper(self) -> float: @@ -364,13 +336,11 @@ def x_direction_taper(self) -> float: Value should be greater than 0. """ val = self._get_property("X Direction Taper") - return val # type: ignore + return val # type: ignore @x_direction_taper.setter - def x_direction_taper(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X Direction Taper={value}"]) + def x_direction_taper(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Direction Taper={value}"]) @property def y_direction_taper(self) -> float: @@ -381,13 +351,11 @@ def y_direction_taper(self) -> float: Value should be greater than 0. """ val = self._get_property("Y Direction Taper") - return val # type: ignore + return val # type: ignore @y_direction_taper.setter - def y_direction_taper(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y Direction Taper={value}"]) + def y_direction_taper(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Direction Taper={value}"]) @property def prism_direction(self): @@ -397,13 +365,11 @@ def prism_direction(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Prism Direction") - return val # type: ignore + return val # type: ignore @prism_direction.setter def prism_direction(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Prism Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Prism Direction={value}"]) @property def closed_top(self) -> bool: @@ -413,13 +379,11 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return val # type: ignore + return val # type: ignore @closed_top.setter def closed_top(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Closed Top={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Top={value}"]) @property def closed_base(self) -> bool: @@ -429,13 +393,11 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return val # type: ignore + return val # type: ignore @closed_base.setter def closed_base(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Closed Base={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Base={value}"]) @property def mesh_density(self) -> int: @@ -446,13 +408,11 @@ def mesh_density(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Mesh Density") - return val # type: ignore + return val # type: ignore @mesh_density.setter def mesh_density(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mesh Density={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Density={value}"]) @property def use_symmetric_mesh(self) -> bool: @@ -463,33 +423,29 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return val # type: ignore + return val # type: ignore @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Symmetric Mesh={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Symmetric Mesh={value}"]) class MeshOptionOption(Enum): - IMPROVED = "Improved" # eslint-disable-line no-eval - LEGACY = "Legacy" # eslint-disable-line no-eval + IMPROVED = "Improved" # eslint-disable-line no-eval + LEGACY = "Legacy" # eslint-disable-line no-eval @property def mesh_option(self) -> MeshOptionOption: """Mesh Option Select from different meshing options - """ + """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] - return val # type: ignore + return val # type: ignore @mesh_option.setter def mesh_option(self, value: MeshOptionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mesh Option={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Option={value.value}"]) @property def coating_index(self) -> int: @@ -499,13 +455,11 @@ def coating_index(self) -> int: Value should be between 0 and 100000. """ val = self._get_property("Coating Index") - return val # type: ignore + return val # type: ignore @coating_index.setter def coating_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Coating Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Coating Index={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -516,13 +470,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -532,13 +486,11 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -548,33 +500,29 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -584,13 +532,11 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -600,13 +546,11 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def visible(self) -> bool: @@ -616,35 +560,31 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) class RenderModeOption(Enum): - FLAT_SHADED = "Flat-Shaded" # eslint-disable-line no-eval - WIRE_FRAME = "Wire-Frame" # eslint-disable-line no-eval - HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" # eslint-disable-line no-eval - OUTLINE = "Outline" # eslint-disable-line no-eval + FLAT_SHADED = "Flat-Shaded" # eslint-disable-line no-eval + WIRE_FRAME = "Wire-Frame" # eslint-disable-line no-eval + HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" # eslint-disable-line no-eval + OUTLINE = "Outline" # eslint-disable-line no-eval @property def render_mode(self) -> RenderModeOption: """Render Mode Select drawing style for surfaces - """ + """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] - return val # type: ignore + return val # type: ignore @render_mode.setter def render_mode(self, value: RenderModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Render Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Render Mode={value.value}"]) @property def show_axes(self) -> bool: @@ -654,13 +594,11 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def min(self): @@ -670,7 +608,7 @@ def min(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Min") - return val # type: ignore + return val # type: ignore @property def max(self): @@ -680,16 +618,16 @@ def max(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Max") - return val # type: ignore + return val # type: ignore @property def number_of_surfaces(self) -> int: """Number of Surfaces Number of surfaces in the model - """ + """ val = self._get_property("Number of Surfaces") - return val # type: ignore + return val # type: ignore @property def color(self): @@ -699,26 +637,21 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index 8cf691e505a..679d4347384 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Cable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -49,13 +53,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,33 +67,29 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - CONSTANT_LOSS = "Constant Loss" # eslint-disable-line no-eval - COAXIAL_CABLE = "Coaxial Cable" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + CONSTANT_LOSS = "Constant Loss" # eslint-disable-line no-eval + COAXIAL_CABLE = "Coaxial Cable" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -99,16 +97,14 @@ def type(self) -> TypeOption: Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def length(self) -> float: @@ -119,14 +115,12 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @length.setter - def length(self, value : float|str): + def length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) @property def loss_per_length(self) -> float: @@ -136,13 +130,11 @@ def loss_per_length(self) -> float: Value should be between 0 and 20. """ val = self._get_property("Loss Per Length") - return val # type: ignore + return val # type: ignore @loss_per_length.setter - def loss_per_length(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Loss Per Length={value}"]) + def loss_per_length(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Loss Per Length={value}"]) @property def measurement_length(self) -> float: @@ -153,14 +145,12 @@ def measurement_length(self) -> float: """ val = self._get_property("Measurement Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @measurement_length.setter - def measurement_length(self, value : float|str): + def measurement_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Length={value}"]) @property def resistive_loss_constant(self) -> float: @@ -170,13 +160,11 @@ def resistive_loss_constant(self) -> float: Value should be between 0 and 2. """ val = self._get_property("Resistive Loss Constant") - return val # type: ignore + return val # type: ignore @resistive_loss_constant.setter - def resistive_loss_constant(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Resistive Loss Constant={value}"]) + def resistive_loss_constant(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resistive Loss Constant={value}"]) @property def dielectric_loss_constant(self) -> float: @@ -186,20 +174,17 @@ def dielectric_loss_constant(self) -> float: Value should be between 0 and 1. """ val = self._get_property("Dielectric Loss Constant") - return val # type: ignore + return val # type: ignore @dielectric_loss_constant.setter - def dielectric_loss_constant(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Dielectric Loss Constant={value}"]) + def dielectric_loss_constant(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Dielectric Loss Constant={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py index 30d3308da3a..e6ebf15eefe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py @@ -1,30 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class CategoriesViewNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index eb6d0913eb1..1be8ab11e6c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Circulator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -49,13 +53,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,32 +67,28 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -98,36 +96,32 @@ def type(self) -> TypeOption: Type of circulator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the circulator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -137,13 +131,11 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -154,13 +146,11 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -170,13 +160,11 @@ def reverse_isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -187,13 +175,11 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -203,13 +189,11 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -220,14 +204,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -238,14 +220,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -256,14 +236,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -274,21 +252,18 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py index 2206a3a19ae..f55a0825ac5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class CouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,13 +44,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def ports(self): @@ -55,13 +56,10 @@ def ports(self): Maps each port in the link to an antenna in the project "A list of values." - """ + """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ports={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py index 67664548b6e..5a11ac8dc61 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class CouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,29 +52,23 @@ def delete(self): @property def transmitter(self) -> EmitNode: - """Transmitter - """ + """Transmitter""" val = self._get_property("Transmitter") - return val # type: ignore + return val # type: ignore @transmitter.setter def transmitter(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Transmitter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Transmitter={value}"]) @property def receiver(self) -> EmitNode: - """Receiver - """ + """Receiver""" val = self._get_property("Receiver") - return val # type: ignore + return val # type: ignore @receiver.setter def receiver(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Receiver={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver={value}"]) @property def data_source(self): @@ -78,15 +76,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,13 +92,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -112,52 +106,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -167,13 +155,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -183,46 +169,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -232,13 +214,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -248,13 +228,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -264,13 +242,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -281,13 +257,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def highlight_regions(self) -> bool: @@ -297,13 +271,11 @@ def highlight_regions(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Highlight Regions") - return val # type: ignore + return val # type: ignore @highlight_regions.setter def highlight_regions(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Highlight Regions={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highlight Regions={value}"]) @property def show_region_labels(self) -> bool: @@ -313,13 +285,11 @@ def show_region_labels(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Region Labels") - return val # type: ignore + return val # type: ignore @show_region_labels.setter def show_region_labels(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Region Labels={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Region Labels={value}"]) @property def font(self): @@ -329,13 +299,11 @@ def font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -345,13 +313,11 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -361,13 +327,11 @@ def background_color(self): Color should be in RGBA form: #AARRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -377,13 +341,11 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return val # type: ignore + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -393,13 +355,11 @@ def border_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -409,11 +369,8 @@ def border_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py index 905f354f567..088945373d9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class CouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -30,7 +33,7 @@ def __init__(self, oDesign, result_id, node_id): def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" - return self._import(file_name,"TouchstoneCoupling") + return self._import(file_name, "TouchstoneCoupling") def add_custom_coupling(self): """Add a new node to define custom coupling between antennas""" @@ -77,13 +80,11 @@ def minimum_allowed_coupling(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Minimum Allowed Coupling") - return val # type: ignore + return val # type: ignore @minimum_allowed_coupling.setter - def minimum_allowed_coupling(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minimum Allowed Coupling={value}"]) + def minimum_allowed_coupling(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Allowed Coupling={value}"]) @property def global_default_coupling(self) -> float: @@ -93,20 +94,17 @@ def global_default_coupling(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Global Default Coupling") - return val # type: ignore + return val # type: ignore @global_default_coupling.setter - def global_default_coupling(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Global Default Coupling={value}"]) + def global_default_coupling(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Global Default Coupling={value}"]) @property def antenna_tags(self) -> str: """Antenna Tags All tags currently used by all antennas in the project - """ + """ val = self._get_property("Antenna Tags") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py index 0435bc42945..9292bf109fc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class CustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def rename(self, new_name): """Rename this node""" @@ -51,11 +54,11 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Value (dB): + "Value (dB): Value should be between -1000 and 0. """ return self._get_table_data() @@ -72,43 +75,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -118,13 +115,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -134,26 +129,21 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py index 51f65b55203..eb1dab1e3e2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class EmiPlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def attached(self): @@ -68,33 +70,31 @@ def attached(self): Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False) - """ + """ val = self._get_property("Attached") - return val # type: ignore + return val # type: ignore @attached.setter def attached(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) @property def position_x(self) -> float: """Position X Position of the marker on the X-axis (frequency axis). - """ + """ val = self._get_property("Position X") - return val # type: ignore + return val # type: ignore @property def position_y(self) -> float: """Position Y Position of the marker on the Y-axis (result axis). - """ + """ val = self._get_property("Position Y") - return val # type: ignore + return val # type: ignore @property def floating_label(self) -> bool: @@ -105,13 +105,11 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return val # type: ignore + return val # type: ignore @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -122,13 +120,11 @@ def position_from_left(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Position from Left") - return val # type: ignore + return val # type: ignore @position_from_left.setter - def position_from_left(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Left={value}"]) + def position_from_left(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -139,91 +135,83 @@ def position_from_top(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Position from Top") - return val # type: ignore + return val # type: ignore @position_from_top.setter - def position_from_top(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Top={value}"]) + def position_from_top(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) @property def text(self) -> str: """Text Set the text of the label - """ + """ val = self._get_property("Text") - return val # type: ignore + return val # type: ignore @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) class HorizontalPositionOption(Enum): - LEFT = "Left" # eslint-disable-line no-eval - RIGHT = "Right" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + LEFT = "Left" # eslint-disable-line no-eval + RIGHT = "Right" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position Specify horizontal position of the label as compared to the symbol - """ + """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] - return val # type: ignore + return val # type: ignore @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Horizontal Position={value.value}"] + ) class VerticalPositionOption(Enum): - TOP = "Top" # eslint-disable-line no-eval - BOTTOM = "Bottom" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + TOP = "Top" # eslint-disable-line no-eval + BOTTOM = "Bottom" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def vertical_position(self) -> VerticalPositionOption: """Vertical Position Specify vertical position of the label as compared to the symbol - """ + """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] - return val # type: ignore + return val # type: ignore @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): - LEFT = "Left" # eslint-disable-line no-eval - RIGHT = "Right" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + LEFT = "Left" # eslint-disable-line no-eval + RIGHT = "Right" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def text_alignment(self) -> TextAlignmentOption: """Text Alignment Specify justification applied to multi-line text - """ + """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] - return val # type: ignore + return val # type: ignore @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) @property def font(self): @@ -233,13 +221,11 @@ def font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -249,13 +235,11 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -265,13 +249,11 @@ def background_color(self): Color should be in RGBA form: #AARRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -281,13 +263,11 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return val # type: ignore + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -297,13 +277,11 @@ def border_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -313,47 +291,43 @@ def border_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval - ARROW = "Arrow" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval + ARROW = "Arrow" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Specify symbol displayed next to the label - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -363,13 +337,11 @@ def arrow_direction(self) -> int: Value should be between -360 and 360. """ val = self._get_property("Arrow Direction") - return val # type: ignore + return val # type: ignore @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -379,13 +351,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -395,13 +365,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -411,13 +379,11 @@ def line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -428,11 +394,8 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return val # type: ignore + return val # type: ignore @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py index 0dad090442d..b37227169ce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class EmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,36 +42,34 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class GroundPlaneNormalOption(Enum): - X_AXIS = "X Axis" # eslint-disable-line no-eval - Y_AXIS = "Y Axis" # eslint-disable-line no-eval - Z_AXIS = "Z Axis" # eslint-disable-line no-eval + X_AXIS = "X Axis" # eslint-disable-line no-eval + Y_AXIS = "Y Axis" # eslint-disable-line no-eval + Z_AXIS = "Z Axis" # eslint-disable-line no-eval @property def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal Specifies the axis of the normal to the ground plane - """ + """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] - return val # type: ignore + return val # type: ignore @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ground Plane Normal={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"] + ) @property def gp_position_along_normal(self) -> float: @@ -75,15 +77,12 @@ def gp_position_along_normal(self) -> float: Offset of ground plane in direction normal to the ground planes orientation - """ + """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @gp_position_along_normal.setter - def gp_position_along_normal(self, value : float|str): + def gp_position_along_normal(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"GP Position Along Normal={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GP Position Along Normal={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py index 3bf974dfdc4..20767e4e39a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,49 +112,43 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class TerrainCategoryOption(Enum): - TYPE_A = "Type A" # eslint-disable-line no-eval - TYPE_B = "Type B" # eslint-disable-line no-eval - TYPE_C = "Type C" # eslint-disable-line no-eval + TYPE_A = "Type A" # eslint-disable-line no-eval + TYPE_B = "Type B" # eslint-disable-line no-eval + TYPE_C = "Type C" # eslint-disable-line no-eval @property def terrain_category(self) -> TerrainCategoryOption: """Terrain Category Specify the terrain category type for the Erceg model - """ + """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] - return val # type: ignore + return val # type: ignore @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Terrain Category={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Terrain Category={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -169,13 +159,11 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -186,13 +174,11 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -203,35 +189,31 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -242,13 +224,11 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -258,13 +238,11 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -274,13 +252,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -291,13 +267,11 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -307,13 +281,11 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -324,13 +296,11 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -341,13 +311,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -357,13 +327,11 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -373,13 +341,11 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -389,11 +355,10 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index 9d62b1f2d08..dcc8e555e62 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Filter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -49,13 +53,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,37 +67,33 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - LOW_PASS = "Low Pass" # eslint-disable-line no-eval - HIGH_PASS = "High Pass" # eslint-disable-line no-eval - BAND_PASS = "Band Pass" # eslint-disable-line no-eval - BAND_STOP = "Band Stop" # eslint-disable-line no-eval - TUNABLE_BANDPASS = "Tunable Bandpass" # eslint-disable-line no-eval - TUNABLE_BANDSTOP = "Tunable Bandstop" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + LOW_PASS = "Low Pass" # eslint-disable-line no-eval + HIGH_PASS = "High Pass" # eslint-disable-line no-eval + BAND_PASS = "Band Pass" # eslint-disable-line no-eval + BAND_STOP = "Band Stop" # eslint-disable-line no-eval + TUNABLE_BANDPASS = "Tunable Bandpass" # eslint-disable-line no-eval + TUNABLE_BANDSTOP = "Tunable Bandstop" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -103,16 +101,14 @@ def type(self) -> TypeOption: Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def insertion_loss(self) -> float: @@ -122,13 +118,11 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -138,13 +132,11 @@ def stop_band_attenuation(self) -> float: Value should be less than 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @stop_band_attenuation.setter - def stop_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -155,14 +147,12 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_pass_band.setter - def max_pass_band(self, value : float|str): + def max_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -173,14 +163,12 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_stop_band.setter - def min_stop_band(self, value : float|str): + def min_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -191,14 +179,12 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_stop_band.setter - def max_stop_band(self, value : float|str): + def max_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -209,14 +195,12 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_pass_band.setter - def min_pass_band(self, value : float|str): + def min_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -227,14 +211,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -245,14 +227,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -263,14 +243,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -281,122 +259,108 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff Lower cutoff frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff_.setter - def lower_cutoff_(self, value : float|str): + def lower_cutoff_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff ={value}"]) @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band Lower stop band frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band_.setter - def lower_stop_band_(self, value : float|str): + def lower_stop_band_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band ={value}"]) @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band Higher stop band frequency Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band_.setter - def higher_stop_band_(self, value : float|str): + def higher_stop_band_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band ={value}"]) @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff Higher cutoff frequency Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff_.setter - def higher_cutoff_(self, value : float|str): + def higher_cutoff_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff ={value}"]) @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency Lowest tuned frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lowest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lowest_tuned_frequency_.setter - def lowest_tuned_frequency_(self, value : float|str): + def lowest_tuned_frequency_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lowest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lowest Tuned Frequency ={value}"]) @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency Highest tuned frequency Value should be between 1 and 1e+11. """ val = self._get_property("Highest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @highest_tuned_frequency_.setter - def highest_tuned_frequency_(self, value : float|str): + def highest_tuned_frequency_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Highest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highest Tuned Frequency ={value}"]) @property def percent_bandwidth(self) -> float: @@ -406,13 +370,11 @@ def percent_bandwidth(self) -> float: Value should be between 0.001 and 100. """ val = self._get_property("Percent Bandwidth") - return val # type: ignore + return val # type: ignore @percent_bandwidth.setter - def percent_bandwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Percent Bandwidth={value}"]) + def percent_bandwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percent Bandwidth={value}"]) @property def shape_factor(self) -> float: @@ -422,20 +384,17 @@ def shape_factor(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @shape_factor.setter - def shape_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Shape Factor={value}"]) + def shape_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py index c3961d9ada1..79a2d31a6af 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class FiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,49 +112,43 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): - URBAN_MICROCELL = "Urban Microcell" # eslint-disable-line no-eval - URBAN_MACROCELL = "Urban Macrocell" # eslint-disable-line no-eval - RURAL_MACROCELL = "Rural Macrocell" # eslint-disable-line no-eval + URBAN_MICROCELL = "Urban Microcell" # eslint-disable-line no-eval + URBAN_MACROCELL = "Urban Macrocell" # eslint-disable-line no-eval + RURAL_MACROCELL = "Rural Macrocell" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment for the 5G channel model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def los(self) -> bool: @@ -168,13 +158,11 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return val # type: ignore + return val # type: ignore @los.setter def los(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"LOS={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"LOS={value}"]) @property def include_bpl(self) -> bool: @@ -184,33 +172,29 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return val # type: ignore + return val # type: ignore @include_bpl.setter def include_bpl(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include BPL={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include BPL={value}"]) class NYUBPLModelOption(Enum): - LOW_LOSS_MODEL = "Low-loss model" # eslint-disable-line no-eval - HIGH_LOSS_MODEL = "High-loss model" # eslint-disable-line no-eval + LOW_LOSS_MODEL = "Low-loss model" # eslint-disable-line no-eval + HIGH_LOSS_MODEL = "High-loss model" # eslint-disable-line no-eval @property def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model Specify the NYU Building Penetration Loss model - """ + """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] - return val # type: ignore + return val # type: ignore @nyu_bpl_model.setter def nyu_bpl_model(self, value: NYUBPLModelOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NYU BPL Model={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NYU BPL Model={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -221,13 +205,11 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -238,13 +220,11 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -255,35 +235,31 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -294,13 +270,11 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -310,13 +284,11 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -326,13 +298,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -343,13 +313,11 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -359,13 +327,11 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -376,13 +342,11 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -393,13 +357,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -409,13 +373,11 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -425,13 +387,11 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -441,11 +401,10 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py index b7477eaa227..fbcdd4656de 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class HataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,50 +112,44 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): - LARGE_CITY = "Large City" # eslint-disable-line no-eval - SMALLMEDIUM_CITY = "Small/Medium City" # eslint-disable-line no-eval - SUBURBAN = "Suburban" # eslint-disable-line no-eval - RURAL = "Rural" # eslint-disable-line no-eval + LARGE_CITY = "Large City" # eslint-disable-line no-eval + SMALLMEDIUM_CITY = "Small/Medium City" # eslint-disable-line no-eval + SUBURBAN = "Suburban" # eslint-disable-line no-eval + RURAL = "Rural" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Hata model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -170,13 +160,11 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -187,13 +175,11 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -204,35 +190,31 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -243,13 +225,11 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -259,13 +239,11 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -275,13 +253,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -292,13 +268,11 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -308,13 +282,11 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -325,13 +297,11 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -342,13 +312,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -358,13 +328,11 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -374,13 +342,11 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -390,11 +356,10 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py index c814528151b..81cc2a28ea1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class IndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,13 +52,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Power Loss Coefficient: + "Power Loss Coefficient: Value should be between 0 and 100. - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): Value should be between 0 and 1000. """ return self._get_table_data() @@ -71,43 +75,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -117,13 +115,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -133,51 +129,45 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class BuildingTypeOption(Enum): - RESIDENTIAL_APARTMENT = "Residential Apartment" # eslint-disable-line no-eval - RESIDENTIAL_HOUSE = "Residential House" # eslint-disable-line no-eval - OFFICE_BUILDING = "Office Building" # eslint-disable-line no-eval - COMMERCIAL_BUILDING = "Commercial Building" # eslint-disable-line no-eval - CUSTOM_BUILDING = "Custom Building" # eslint-disable-line no-eval + RESIDENTIAL_APARTMENT = "Residential Apartment" # eslint-disable-line no-eval + RESIDENTIAL_HOUSE = "Residential House" # eslint-disable-line no-eval + OFFICE_BUILDING = "Office Building" # eslint-disable-line no-eval + COMMERCIAL_BUILDING = "Commercial Building" # eslint-disable-line no-eval + CUSTOM_BUILDING = "Custom Building" # eslint-disable-line no-eval @property def building_type(self) -> BuildingTypeOption: """Building Type Specify the building type for the Indoor Propagation model - """ + """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] - return val # type: ignore + return val # type: ignore @building_type.setter def building_type(self, value: BuildingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Building Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Building Type={value.value}"]) @property def number_of_floors(self) -> int: @@ -187,13 +177,11 @@ def number_of_floors(self) -> int: Value should be between 1 and 3. """ val = self._get_property("Number of Floors") - return val # type: ignore + return val # type: ignore @number_of_floors.setter def number_of_floors(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Floors={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Floors={value}"]) @property def custom_fading_margin(self) -> float: @@ -204,13 +192,11 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -221,13 +207,11 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -238,35 +222,31 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -277,13 +257,11 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -293,13 +271,11 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -309,13 +285,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -326,13 +300,11 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -342,13 +314,11 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -359,13 +329,11 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -376,13 +344,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -392,13 +360,11 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -408,13 +374,11 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -424,11 +388,10 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index f05c9803bda..a82cee56acf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Isolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -49,13 +53,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,32 +67,28 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -98,36 +96,32 @@ def type(self) -> TypeOption: Type of isolator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the isolator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -137,13 +131,11 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -154,13 +146,11 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -170,13 +160,11 @@ def reverse_isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -187,13 +175,11 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -203,13 +189,11 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -220,14 +204,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -238,14 +220,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -256,14 +236,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -274,21 +252,18 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py index 7856f8150fe..68af36df6da 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class LogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,53 +112,47 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): - FREE_SPACE = "Free Space" # eslint-disable-line no-eval - URBAN = "Urban" # eslint-disable-line no-eval - SHADOWED_URBAN = "Shadowed Urban" # eslint-disable-line no-eval - BUILDING_LINE_OF_SIGHT = "Building Line of Sight" # eslint-disable-line no-eval - BUILDING_OBSTRUCTED = "Building Obstructed" # eslint-disable-line no-eval - FACTORY_OBSTRUCTED = "Factory Obstructed" # eslint-disable-line no-eval - CUSTOM = "Custom" # eslint-disable-line no-eval + FREE_SPACE = "Free Space" # eslint-disable-line no-eval + URBAN = "Urban" # eslint-disable-line no-eval + SHADOWED_URBAN = "Shadowed Urban" # eslint-disable-line no-eval + BUILDING_LINE_OF_SIGHT = "Building Line of Sight" # eslint-disable-line no-eval + BUILDING_OBSTRUCTED = "Building Obstructed" # eslint-disable-line no-eval + FACTORY_OBSTRUCTED = "Factory Obstructed" # eslint-disable-line no-eval + CUSTOM = "Custom" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Log Distance model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def path_loss_exponent(self) -> float: @@ -172,13 +162,11 @@ def path_loss_exponent(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Path Loss Exponent") - return val # type: ignore + return val # type: ignore @path_loss_exponent.setter - def path_loss_exponent(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Path Loss Exponent={value}"]) + def path_loss_exponent(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Exponent={value}"]) @property def custom_fading_margin(self) -> float: @@ -189,13 +177,11 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -206,13 +192,11 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -223,35 +207,31 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -262,13 +242,11 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -278,13 +256,11 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -294,13 +270,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -311,13 +285,11 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -327,13 +299,11 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -344,13 +314,11 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -361,13 +329,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -377,13 +345,11 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -393,13 +359,11 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -409,11 +373,10 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py index 69ab7a4bc34..328b349648e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class MPlexBandTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -47,21 +51,18 @@ def delete(self): self._delete() class PowerDirectionOption(Enum): - INTO_COMMON_PORTOUT_OF_COMMON_PORT = "Into Common Port|Out of Common Port" # eslint-disable-line no-eval + INTO_COMMON_PORTOUT_OF_COMMON_PORT = "Into Common Port|Out of Common Port" # eslint-disable-line no-eval @property def power_direction(self) -> PowerDirectionOption: - """Power Direction - """ + """Power Direction""" val = self._get_property("Power Direction") val = self.PowerDirectionOption[val] - return val # type: ignore + return val # type: ignore @power_direction.setter def power_direction(self, value: PowerDirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Power Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Power Direction={value.value}"]) @property def data_source(self): @@ -69,15 +70,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -87,13 +86,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -103,52 +100,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -158,13 +149,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -174,46 +163,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -223,13 +208,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -239,13 +222,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -255,13 +236,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -272,11 +251,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index 8dc52bc3cc5..358ae80db06 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Multiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -53,13 +57,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -69,32 +71,28 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): - BY_PASS_BAND = "By Pass Band" # eslint-disable-line no-eval - BY_FILE = "By File" # eslint-disable-line no-eval + BY_PASS_BAND = "By Pass Band" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -103,36 +101,32 @@ def type(self) -> TypeOption: simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band) - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the multiplexer. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def flip_ports_vertically(self) -> bool: @@ -142,13 +136,11 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return val # type: ignore + return val # type: ignore @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Flip Ports Vertically={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flip Ports Vertically={value}"]) @property def ports(self): @@ -156,22 +148,19 @@ def ports(self): Assigns the child port nodes to the multiplexers ports "A list of values." - """ + """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py index cbc98d49bbd..a4af4c91f77 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class MultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -47,10 +51,10 @@ def delete(self): self._delete() class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - LOW_PASS = "Low Pass" # eslint-disable-line no-eval - HIGH_PASS = "High Pass" # eslint-disable-line no-eval - BAND_PASS = "Band Pass" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + LOW_PASS = "Low Pass" # eslint-disable-line no-eval + HIGH_PASS = "High Pass" # eslint-disable-line no-eval + BAND_PASS = "Band Pass" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -59,16 +63,14 @@ def type(self) -> TypeOption: file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def filename(self) -> str: @@ -78,13 +80,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def insertion_loss(self) -> float: @@ -94,13 +94,11 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -110,13 +108,11 @@ def stop_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @stop_band_attenuation.setter - def stop_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -127,14 +123,12 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_pass_band.setter - def max_pass_band(self, value : float|str): + def max_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -145,14 +139,12 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_stop_band.setter - def min_stop_band(self, value : float|str): + def min_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -163,14 +155,12 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_stop_band.setter - def max_stop_band(self, value : float|str): + def max_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -181,14 +171,12 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_pass_band.setter - def min_pass_band(self, value : float|str): + def min_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -199,14 +187,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -217,14 +203,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -235,14 +219,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -253,21 +235,18 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py index 32dc511c153..db98a78916e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class OutboardTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -70,13 +72,11 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -84,15 +84,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -102,13 +100,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -118,52 +114,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -173,13 +163,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -189,46 +177,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -238,13 +222,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -254,13 +236,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -270,13 +250,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -287,11 +265,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py index 53dc4821f4e..4f429fb68c7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ParametricCouplingTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -48,29 +52,23 @@ def delete(self): @property def antenna_a(self) -> EmitNode: - """Antenna A - """ + """Antenna A""" val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: - """Antenna B - """ + """Antenna B""" val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def data_source(self): @@ -78,15 +76,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,13 +92,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -112,52 +106,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -167,13 +155,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -183,46 +169,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -232,13 +214,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -248,13 +228,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -264,13 +242,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -281,11 +257,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py index 943d0394944..228ea6c5fc9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PlotMarkerNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def attached(self) -> bool: @@ -71,43 +73,37 @@ def attached(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Attached") - return val # type: ignore + return val # type: ignore @attached.setter def attached(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) @property def position_x(self) -> float: """Position X Position of the marker on the X-axis (frequency axis). - """ + """ val = self._get_property("Position X") - return val # type: ignore + return val # type: ignore @position_x.setter - def position_x(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position X={value}"]) + def position_x(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position X={value}"]) @property def position_y(self) -> float: """Position Y Position of the marker on the Y-axis (result axis). - """ + """ val = self._get_property("Position Y") - return val # type: ignore + return val # type: ignore @position_y.setter - def position_y(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position Y={value}"]) + def position_y(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Y={value}"]) @property def floating_label(self) -> bool: @@ -118,13 +114,11 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return val # type: ignore + return val # type: ignore @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -135,13 +129,11 @@ def position_from_left(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Position from Left") - return val # type: ignore + return val # type: ignore @position_from_left.setter - def position_from_left(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Left={value}"]) + def position_from_left(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -152,91 +144,83 @@ def position_from_top(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Position from Top") - return val # type: ignore + return val # type: ignore @position_from_top.setter - def position_from_top(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Top={value}"]) + def position_from_top(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) @property def text(self) -> str: """Text Set the text of the label - """ + """ val = self._get_property("Text") - return val # type: ignore + return val # type: ignore @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) class HorizontalPositionOption(Enum): - LEFT = "Left" # eslint-disable-line no-eval - RIGHT = "Right" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + LEFT = "Left" # eslint-disable-line no-eval + RIGHT = "Right" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position Specify horizontal position of the label as compared to the symbol - """ + """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val] - return val # type: ignore + return val # type: ignore @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Horizontal Position={value.value}"] + ) class VerticalPositionOption(Enum): - TOP = "Top" # eslint-disable-line no-eval - BOTTOM = "Bottom" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + TOP = "Top" # eslint-disable-line no-eval + BOTTOM = "Bottom" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def vertical_position(self) -> VerticalPositionOption: """Vertical Position Specify vertical position of the label as compared to the symbol - """ + """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val] - return val # type: ignore + return val # type: ignore @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): - LEFT = "Left" # eslint-disable-line no-eval - RIGHT = "Right" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + LEFT = "Left" # eslint-disable-line no-eval + RIGHT = "Right" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def text_alignment(self) -> TextAlignmentOption: """Text Alignment Specify justification applied to multi-line text - """ + """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val] - return val # type: ignore + return val # type: ignore @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) @property def font(self): @@ -246,13 +230,11 @@ def font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -262,13 +244,11 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -278,13 +258,11 @@ def background_color(self): Color should be in RGBA form: #AARRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -294,13 +272,11 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return val # type: ignore + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -310,13 +286,11 @@ def border_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -326,47 +300,43 @@ def border_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval - ARROW = "Arrow" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval + ARROW = "Arrow" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Specify symbol displayed next to the label - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -376,13 +346,11 @@ def arrow_direction(self) -> int: Value should be between -360 and 360. """ val = self._get_property("Arrow Direction") - return val # type: ignore + return val # type: ignore @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -392,13 +360,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -408,13 +374,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -424,13 +388,11 @@ def line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -441,11 +403,8 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return val # type: ignore + return val # type: ignore @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py index 0eb03550fcd..391a764475e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,15 +58,13 @@ def title(self) -> str: """Title Enter title at the top of the plot, room will be made for it - """ + """ val = self._get_property("Title") - return val # type: ignore + return val # type: ignore @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) @property def title_font(self): @@ -72,13 +74,11 @@ def title_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Title Font") - return val # type: ignore + return val # type: ignore @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -88,13 +88,11 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return val # type: ignore + return val # type: ignore @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) @property def legend_font(self): @@ -104,13 +102,11 @@ def legend_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Legend Font") - return val # type: ignore + return val # type: ignore @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) @property def display_cad_overlay(self) -> bool: @@ -120,13 +116,11 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return val # type: ignore + return val # type: ignore @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -136,28 +130,24 @@ def opacity(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Opacity") - return val # type: ignore + return val # type: ignore @opacity.setter - def opacity(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Opacity={value}"]) + def opacity(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset Adjust vertical position of CAD model overlay - """ + """ val = self._get_property("Vertical Offset") - return val # type: ignore + return val # type: ignore @vertical_offset.setter - def vertical_offset(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Offset={value}"]) + def vertical_offset(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -168,13 +158,11 @@ def range_axis_rotation(self) -> float: Value should be between -180 and 180. """ val = self._get_property("Range Axis Rotation") - return val # type: ignore + return val # type: ignore @range_axis_rotation.setter - def range_axis_rotation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -184,73 +172,63 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return val # type: ignore + return val # type: ignore @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min Set lower extent of horizontal axis - """ + """ val = self._get_property("X-axis Min") - return val # type: ignore + return val # type: ignore @x_axis_min.setter - def x_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Min={value}"]) + def x_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max Set upper extent of horizontal axis - """ + """ val = self._get_property("X-axis Max") - return val # type: ignore + return val # type: ignore @x_axis_max.setter - def x_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Max={value}"]) + def x_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min Set lower extent of vertical axis - """ + """ val = self._get_property("Y-axis Min") - return val # type: ignore + return val # type: ignore @y_axis_min.setter - def y_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Min={value}"]) + def y_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max Set upper extent of vertical axis - """ + """ val = self._get_property("Y-axis Max") - return val # type: ignore + return val # type: ignore @y_axis_max.setter - def y_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Max={value}"]) + def y_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -261,13 +239,11 @@ def y_axis_range(self) -> float: Value should be greater than 0. """ val = self._get_property("Y-axis Range") - return val # type: ignore + return val # type: ignore @y_axis_range.setter - def y_axis_range(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Range={value}"]) + def y_axis_range(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -277,13 +253,11 @@ def max_major_ticks_x(self) -> int: Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks X") - return val # type: ignore + return val # type: ignore @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -294,13 +268,11 @@ def max_minor_ticks_x(self) -> int: Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks X") - return val # type: ignore + return val # type: ignore @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -310,13 +282,11 @@ def max_major_ticks_y(self) -> int: Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks Y") - return val # type: ignore + return val # type: ignore @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -327,13 +297,11 @@ def max_minor_ticks_y(self) -> int: Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks Y") - return val # type: ignore + return val # type: ignore @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -343,13 +311,11 @@ def axis_label_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Label Font") - return val # type: ignore + return val # type: ignore @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -359,37 +325,35 @@ def axis_tick_label_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Tick Label Font") - return val # type: ignore + return val # type: ignore @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style Select line style of major-tick grid lines - """ + """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] + ) @property def major_grid_color(self): @@ -399,37 +363,35 @@ def major_grid_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Major Grid Color") - return val # type: ignore + return val # type: ignore @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style Select line style of minor-tick grid lines - """ + """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] + ) @property def minor_grid_color(self): @@ -439,13 +401,11 @@ def minor_grid_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Minor Grid Color") - return val # type: ignore + return val # type: ignore @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -455,35 +415,33 @@ def background_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): - HERTZ = "hertz" # eslint-disable-line no-eval - KILOHERTZ = "kilohertz" # eslint-disable-line no-eval - MEGAHERTZ = "megahertz" # eslint-disable-line no-eval - GIGAHERTZ = "gigahertz" # eslint-disable-line no-eval + HERTZ = "hertz" # eslint-disable-line no-eval + KILOHERTZ = "kilohertz" # eslint-disable-line no-eval + MEGAHERTZ = "megahertz" # eslint-disable-line no-eval + GIGAHERTZ = "gigahertz" # eslint-disable-line no-eval @property def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit Units to use for plotting broadband power densities - """ + """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] - return val # type: ignore + return val # type: ignore @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power for Plots Unit={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] + ) @property def bb_power_bandwidth(self) -> float: @@ -494,14 +452,12 @@ def bb_power_bandwidth(self) -> float: """ val = self._get_property("BB Power Bandwidth") val = self._convert_from_internal_units(float(val), "") - return val # type: ignore + return val # type: ignore @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value : float|str): + def bb_power_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -511,11 +467,8 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return val # type: ignore + return val # type: ignore @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Log Scale={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py index 4409b8f925c..05050f74a12 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -49,13 +53,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,33 +67,29 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - P3_DB = "P3 dB" # eslint-disable-line no-eval - RESISTIVE = "Resistive" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + P3_DB = "P3 dB" # eslint-disable-line no-eval + RESISTIVE = "Resistive" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -99,36 +97,32 @@ def type(self) -> TypeOption: Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric) - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class OrientationOption(Enum): - DIVIDER = "Divider" # eslint-disable-line no-eval - COMBINER = "Combiner" # eslint-disable-line no-eval + DIVIDER = "Divider" # eslint-disable-line no-eval + COMBINER = "Combiner" # eslint-disable-line no-eval @property def orientation(self) -> OrientationOption: """Orientation Defines the orientation of the Power Divider. - """ + """ val = self._get_property("Orientation") val = self.OrientationOption[val] - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value: OrientationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value.value}"]) @property def insertion_loss_above_ideal(self) -> float: @@ -139,13 +133,13 @@ def insertion_loss_above_ideal(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss Above Ideal") - return val # type: ignore + return val # type: ignore @insertion_loss_above_ideal.setter - def insertion_loss_above_ideal(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss Above Ideal={value}"]) + def insertion_loss_above_ideal(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Insertion Loss Above Ideal={value}"] + ) @property def finite_isolation(self) -> bool: @@ -156,13 +150,11 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -172,13 +164,11 @@ def isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @isolation.setter - def isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Isolation={value}"]) + def isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -189,13 +179,11 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -205,13 +193,11 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -222,14 +208,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -240,14 +224,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -258,14 +240,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -276,21 +256,18 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py index f6bfa8692f9..3006410f7ec 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PowerTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -47,24 +51,22 @@ def delete(self): self._delete() class DirectionOption(Enum): - AWAY_FROM_TX = "Away From Tx" # eslint-disable-line no-eval - TOWARD_TX = "Toward Tx" # eslint-disable-line no-eval + AWAY_FROM_TX = "Away From Tx" # eslint-disable-line no-eval + TOWARD_TX = "Toward Tx" # eslint-disable-line no-eval @property def direction(self) -> DirectionOption: """Direction Direction of power flow (towards or away from the transmitter) to plot - """ + """ val = self._get_property("Direction") val = self.DirectionOption[val] - return val # type: ignore + return val # type: ignore @direction.setter def direction(self, value: DirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Direction={value.value}"]) @property def data_source(self): @@ -72,15 +74,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -90,13 +90,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -106,52 +104,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -161,13 +153,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -177,46 +167,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -226,13 +212,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -242,13 +226,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -258,13 +240,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -275,11 +255,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py index ef5cec66030..70dae205a26 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ProfileTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,15 +56,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -70,13 +72,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -86,52 +86,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -141,13 +135,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -157,46 +149,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -206,13 +194,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -222,13 +208,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -238,13 +222,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -255,11 +237,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py index d98eae83d30..e387e25931f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def custom_fading_margin(self) -> float: @@ -148,13 +140,11 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -165,13 +155,11 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -182,35 +170,31 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -221,13 +205,11 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -237,13 +219,11 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -253,13 +233,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -270,13 +248,11 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -286,13 +262,11 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -303,13 +277,11 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -320,13 +292,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -336,13 +308,11 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -352,13 +322,11 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -368,11 +336,10 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py index 1d7ea43ad4c..9effc1bd6c6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class RadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -51,11 +54,11 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Name: - "Type: - """ + "Name: + "Type: + """ return self._get_table_data() @table_data.setter @@ -67,13 +70,10 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py index d7f1f7254ba..536aa528f28 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyAmplifier(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,30 +51,30 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class AmplifierTypeOption(Enum): - TRANSMIT_AMPLIFIER = "Transmit Amplifier" # eslint-disable-line no-eval - RECEIVE_AMPLIFIER = "Receive Amplifier" # eslint-disable-line no-eval + TRANSMIT_AMPLIFIER = "Transmit Amplifier" # eslint-disable-line no-eval + RECEIVE_AMPLIFIER = "Receive Amplifier" # eslint-disable-line no-eval @property def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type Configures the amplifier as a Tx or Rx amplifier - """ + """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val] - return val # type: ignore + return val # type: ignore @property def gain(self) -> float: @@ -80,7 +84,7 @@ def gain(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Gain") - return val # type: ignore + return val # type: ignore @property def center_frequency(self) -> float: @@ -91,7 +95,7 @@ def center_frequency(self) -> float: """ val = self._get_property("Center Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def bandwidth(self) -> float: @@ -102,7 +106,7 @@ def bandwidth(self) -> float: """ val = self._get_property("Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: @@ -112,7 +116,7 @@ def noise_figure(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def saturation_level(self) -> float: @@ -123,7 +127,7 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input(self) -> float: @@ -134,7 +138,7 @@ def p1_db_point_ref_input(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -145,7 +149,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def shape_factor(self) -> float: @@ -155,7 +159,7 @@ def shape_factor(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -165,7 +169,7 @@ def reverse_isolation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -175,5 +179,4 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py index 28ec2dda8bd..88bc29d076c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyAntennaNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,9 +43,9 @@ def tags(self) -> str: """Tags Space delimited list of tags for coupling selections - """ + """ val = self._get_property("Tags") - return val # type: ignore + return val # type: ignore @property def show_relative_coordinates(self) -> bool: @@ -52,7 +56,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @property def position(self): @@ -62,7 +66,7 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): @@ -72,21 +76,21 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @property def orientation(self): @@ -96,7 +100,7 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): @@ -106,7 +110,7 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def position_defined(self) -> bool: @@ -116,7 +120,7 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return val # type: ignore + return val # type: ignore @property def antenna_temperature(self) -> float: @@ -126,16 +130,16 @@ def antenna_temperature(self) -> float: Value should be between 0 and 100000. """ val = self._get_property("Antenna Temperature") - return val # type: ignore + return val # type: ignore @property def type(self): """Type Defines the type of antenna - """ + """ val = self._get_property("Type") - return val # type: ignore + return val # type: ignore @property def antenna_file(self) -> str: @@ -143,7 +147,7 @@ def antenna_file(self) -> str: Value should be a full file path. """ val = self._get_property("Antenna File") - return val # type: ignore + return val # type: ignore @property def project_name(self) -> str: @@ -153,7 +157,7 @@ def project_name(self) -> str: Value should be a full file path. """ val = self._get_property("Project Name") - return val # type: ignore + return val # type: ignore @property def peak_gain(self) -> float: @@ -163,22 +167,22 @@ def peak_gain(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Peak Gain") - return val # type: ignore + return val # type: ignore class BoresightOption(Enum): - XAXIS = "+X Axis" # eslint-disable-line no-eval - YAXIS = "+Y Axis" # eslint-disable-line no-eval - ZAXIS = "+Z Axis" # eslint-disable-line no-eval + XAXIS = "+X Axis" # eslint-disable-line no-eval + YAXIS = "+Y Axis" # eslint-disable-line no-eval + ZAXIS = "+Z Axis" # eslint-disable-line no-eval @property def boresight(self) -> BoresightOption: """Boresight Select peak beam direction in local coordinates - """ + """ val = self._get_property("Boresight") val = self.BoresightOption[val] - return val # type: ignore + return val # type: ignore @property def vertical_beamwidth(self) -> float: @@ -188,7 +192,7 @@ def vertical_beamwidth(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("Vertical Beamwidth") - return val # type: ignore + return val # type: ignore @property def horizontal_beamwidth(self) -> float: @@ -198,7 +202,7 @@ def horizontal_beamwidth(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("Horizontal Beamwidth") - return val # type: ignore + return val # type: ignore @property def extra_sidelobe(self) -> bool: @@ -208,7 +212,7 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_level(self) -> float: @@ -219,7 +223,7 @@ def first_sidelobe_level(self) -> float: Value should be between 0 and 200. """ val = self._get_property("First Sidelobe Level") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_vert_bw(self) -> float: @@ -229,7 +233,7 @@ def first_sidelobe_vert_bw(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Vert. BW") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_hor_bw(self) -> float: @@ -239,7 +243,7 @@ def first_sidelobe_hor_bw(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Hor. BW") - return val # type: ignore + return val # type: ignore @property def outerbacklobe_level(self) -> float: @@ -249,7 +253,7 @@ def outerbacklobe_level(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Outer/Backlobe Level") - return val # type: ignore + return val # type: ignore @property def resonant_frequency(self) -> float: @@ -261,7 +265,7 @@ def resonant_frequency(self) -> float: """ val = self._get_property("Resonant Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def slot_length(self) -> float: @@ -272,7 +276,7 @@ def slot_length(self) -> float: """ val = self._get_property("Slot Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def mouth_width(self) -> float: @@ -283,7 +287,7 @@ def mouth_width(self) -> float: """ val = self._get_property("Mouth Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def mouth_height(self) -> float: @@ -294,7 +298,7 @@ def mouth_height(self) -> float: """ val = self._get_property("Mouth Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_width(self) -> float: @@ -306,7 +310,7 @@ def waveguide_width(self) -> float: """ val = self._get_property("Waveguide Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def width_flare_half_angle(self) -> float: @@ -317,7 +321,7 @@ def width_flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Width Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def height_flare_half_angle(self) -> float: @@ -328,7 +332,7 @@ def height_flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Height Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def mouth_diameter(self) -> float: @@ -339,7 +343,7 @@ def mouth_diameter(self) -> float: """ val = self._get_property("Mouth Diameter") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def flare_half_angle(self) -> float: @@ -350,7 +354,7 @@ def flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def vswr(self) -> float: @@ -361,51 +365,51 @@ def vswr(self) -> float: Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore class AntennaPolarizationOption(Enum): - VERTICAL = "Vertical" # eslint-disable-line no-eval - HORIZONTAL = "Horizontal" # eslint-disable-line no-eval - RHCP = "RHCP" # eslint-disable-line no-eval - LHCP = "LHCP" # eslint-disable-line no-eval + VERTICAL = "Vertical" # eslint-disable-line no-eval + HORIZONTAL = "Horizontal" # eslint-disable-line no-eval + RHCP = "RHCP" # eslint-disable-line no-eval + LHCP = "LHCP" # eslint-disable-line no-eval @property def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val] - return val # type: ignore + return val # type: ignore class CrossDipoleModeOption(Enum): - FREESTANDING = "Freestanding" # eslint-disable-line no-eval - OVER_GROUND_PLANE = "Over Ground Plane" # eslint-disable-line no-eval + FREESTANDING = "Freestanding" # eslint-disable-line no-eval + OVER_GROUND_PLANE = "Over Ground Plane" # eslint-disable-line no-eval @property def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode Choose the Cross Dipole type - """ + """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val] - return val # type: ignore + return val # type: ignore class CrossDipolePolarizationOption(Enum): - RHCP = "RHCP" # eslint-disable-line no-eval - LHCP = "LHCP" # eslint-disable-line no-eval + RHCP = "RHCP" # eslint-disable-line no-eval + LHCP = "LHCP" # eslint-disable-line no-eval @property def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val] - return val # type: ignore + return val # type: ignore @property def override_height(self) -> bool: @@ -416,7 +420,7 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return val # type: ignore + return val # type: ignore @property def offset_height(self) -> float: @@ -427,7 +431,7 @@ def offset_height(self) -> float: """ val = self._get_property("Offset Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def auto_height_offset(self) -> bool: @@ -438,7 +442,7 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return val # type: ignore + return val # type: ignore @property def conform__adjust_antenna(self) -> bool: @@ -448,7 +452,7 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return val # type: ignore + return val # type: ignore @property def element_offset(self): @@ -458,37 +462,37 @@ def element_offset(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Element Offset") - return val # type: ignore + return val # type: ignore class ConformtoPlatformOption(Enum): - NONE = "None" # eslint-disable-line no-eval - ALONG_NORMAL = "Along Normal" # eslint-disable-line no-eval - PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + ALONG_NORMAL = "Along Normal" # eslint-disable-line no-eval + PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" # eslint-disable-line no-eval @property def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform Select method of automated conforming applied after Element Offset - """ + """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val] - return val # type: ignore + return val # type: ignore class ReferencePlaneOption(Enum): - XY_PLANE = "XY Plane" # eslint-disable-line no-eval - YZ_PLANE = "YZ Plane" # eslint-disable-line no-eval - ZX_PLANE = "ZX Plane" # eslint-disable-line no-eval + XY_PLANE = "XY Plane" # eslint-disable-line no-eval + YZ_PLANE = "YZ Plane" # eslint-disable-line no-eval + ZX_PLANE = "ZX Plane" # eslint-disable-line no-eval @property def reference_plane(self) -> ReferencePlaneOption: """Reference Plane Select reference plane for determining original element heights - """ + """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val] - return val # type: ignore + return val # type: ignore @property def conform_element_orientation(self) -> bool: @@ -499,7 +503,7 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return val # type: ignore + return val # type: ignore @property def show_axes(self) -> bool: @@ -509,7 +513,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @property def show_icon(self) -> bool: @@ -519,7 +523,7 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return val # type: ignore + return val # type: ignore @property def size(self) -> float: @@ -529,7 +533,7 @@ def size(self) -> float: Value should be between 0.001 and 1. """ val = self._get_property("Size") - return val # type: ignore + return val # type: ignore @property def color(self): @@ -539,25 +543,25 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @property def el_sample_interval(self) -> float: """El Sample Interval Space between elevation-angle samples of pattern - """ + """ val = self._get_property("El Sample Interval") - return val # type: ignore + return val # type: ignore @property def az_sample_interval(self) -> float: """Az Sample Interval Space between azimuth-angle samples of pattern - """ + """ val = self._get_property("Az Sample Interval") - return val # type: ignore + return val # type: ignore @property def has_frequency_domain(self) -> bool: @@ -567,34 +571,34 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return val # type: ignore + return val # type: ignore @property def frequency_domain(self): """Frequency Domain Frequency sample(s) defining antenna - """ + """ val = self._get_property("Frequency Domain") - return val # type: ignore + return val # type: ignore @property def number_of_electric_sources(self) -> int: """Number of Electric Sources Number of freestanding electric current sources defining antenna - """ + """ val = self._get_property("Number of Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources Number of freestanding magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_electric_sources(self) -> int: @@ -602,9 +606,9 @@ def number_of_imaged_electric_sources(self) -> int: Number of imaged, half-space radiating electric current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_magnetic_sources(self) -> int: @@ -612,9 +616,9 @@ def number_of_imaged_magnetic_sources(self) -> int: Number of imaged, half-space radiating magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def waveguide_height(self) -> float: @@ -622,35 +626,35 @@ def waveguide_height(self) -> float: Implied waveguide height (along local x-axis) where the flared horn walls meet the feed - """ + """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency Implied lowest operating frequency of pyramidal horn antenna - """ + """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency Implied lowest operating frequency of conical horn antenna - """ + """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class SWEModeTruncationOption(Enum): - DYNAMIC = "Dynamic" # eslint-disable-line no-eval - FIXED_CUSTOM = "Fixed (Custom)" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + DYNAMIC = "Dynamic" # eslint-disable-line no-eval + FIXED_CUSTOM = "Fixed (Custom)" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def swe_mode_truncation(self) -> SWEModeTruncationOption: @@ -658,10 +662,10 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: Select the method for stability-enhancing truncation of spherical wave expansion terms - """ + """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val] - return val # type: ignore + return val # type: ignore @property def max_n_index(self) -> int: @@ -671,16 +675,16 @@ def max_n_index(self) -> int: Value should be greater than 1. """ val = self._get_property("Max N Index") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @property def show_composite_passband(self) -> bool: @@ -690,7 +694,7 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return val # type: ignore + return val # type: ignore @property def use_phase_center(self) -> bool: @@ -700,16 +704,16 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return val # type: ignore + return val # type: ignore @property def coordinate_systems(self) -> str: """Coordinate Systems Specifies the coordinate system for the phase center of this antenna - """ + """ val = self._get_property("Coordinate Systems") - return val # type: ignore + return val # type: ignore @property def phasecenterposition(self): @@ -719,7 +723,7 @@ def phasecenterposition(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("PhaseCenterPosition") - return val # type: ignore + return val # type: ignore @property def phasecenterorientation(self): @@ -729,5 +733,4 @@ def phasecenterorientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("PhaseCenterOrientation") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py index ce5eb6aa1cf..952b1cd8cea 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyAntennaPassband(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +44,7 @@ def passband_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Passband Loss") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -51,7 +54,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out of Band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -62,7 +65,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -73,7 +76,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -84,7 +87,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -95,14 +98,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py index 2bec6523bef..0a4fa7f5471 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,9 +43,9 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @property def use_dd_1494_mode(self) -> bool: @@ -51,7 +55,7 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return val # type: ignore + return val # type: ignore @property def use_emission_designator(self) -> bool: @@ -61,35 +65,35 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return val # type: ignore + return val # type: ignore @property def emission_designator(self) -> str: """Emission Designator Enter the Emission Designator to define the bandwidth and modulation - """ + """ val = self._get_property("Emission Designator") - return val # type: ignore + return val # type: ignore @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW Channel Bandwidth based off the emission designator - """ + """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def emit_modulation_type(self) -> str: """EMIT Modulation Type Modulation based off the emission designator - """ + """ val = self._get_property("EMIT Modulation Type") - return val # type: ignore + return val # type: ignore @property def override_emission_designator_bw(self) -> bool: @@ -100,7 +104,7 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return val # type: ignore + return val # type: ignore @property def channel_bandwidth(self) -> float: @@ -111,30 +115,30 @@ def channel_bandwidth(self) -> float: """ val = self._get_property("Channel Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class ModulationOption(Enum): - GENERIC = "Generic" # eslint-disable-line no-eval - AM = "AM" # eslint-disable-line no-eval - LSB = "LSB" # eslint-disable-line no-eval - USB = "USB" # eslint-disable-line no-eval - FM = "FM" # eslint-disable-line no-eval - FSK = "FSK" # eslint-disable-line no-eval - MSK = "MSK" # eslint-disable-line no-eval - PSK = "PSK" # eslint-disable-line no-eval - QAM = "QAM" # eslint-disable-line no-eval - APSK = "APSK" # eslint-disable-line no-eval - RADAR = "Radar" # eslint-disable-line no-eval + GENERIC = "Generic" # eslint-disable-line no-eval + AM = "AM" # eslint-disable-line no-eval + LSB = "LSB" # eslint-disable-line no-eval + USB = "USB" # eslint-disable-line no-eval + FM = "FM" # eslint-disable-line no-eval + FSK = "FSK" # eslint-disable-line no-eval + MSK = "MSK" # eslint-disable-line no-eval + PSK = "PSK" # eslint-disable-line no-eval + QAM = "QAM" # eslint-disable-line no-eval + APSK = "APSK" # eslint-disable-line no-eval + RADAR = "Radar" # eslint-disable-line no-eval @property def modulation(self) -> ModulationOption: """Modulation Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Modulation") val = self.ModulationOption[val] - return val # type: ignore + return val # type: ignore @property def max_modulating_freq(self) -> float: @@ -145,7 +149,7 @@ def max_modulating_freq(self) -> float: """ val = self._get_property("Max Modulating Freq.") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def modulation_index(self) -> float: @@ -155,7 +159,7 @@ def modulation_index(self) -> float: Value should be between 0.01 and 1. """ val = self._get_property("Modulation Index") - return val # type: ignore + return val # type: ignore @property def freq_deviation(self) -> float: @@ -166,7 +170,7 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def bit_rate(self) -> float: @@ -177,7 +181,7 @@ def bit_rate(self) -> float: """ val = self._get_property("Bit Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @property def sidelobes(self) -> int: @@ -187,85 +191,85 @@ def sidelobes(self) -> int: Value should be greater than 0. """ val = self._get_property("Sidelobes") - return val # type: ignore + return val # type: ignore @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation FSK frequency deviation: helps determine spectral profile Value should be greater than 1. """ val = self._get_property("Freq. Deviation ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class PSKTypeOption(Enum): - BPSK = "BPSK" # eslint-disable-line no-eval - QPSK = "QPSK" # eslint-disable-line no-eval - PSK_8 = "PSK-8" # eslint-disable-line no-eval - PSK_16 = "PSK-16" # eslint-disable-line no-eval - PSK_32 = "PSK-32" # eslint-disable-line no-eval - PSK_64 = "PSK-64" # eslint-disable-line no-eval + BPSK = "BPSK" # eslint-disable-line no-eval + QPSK = "QPSK" # eslint-disable-line no-eval + PSK_8 = "PSK-8" # eslint-disable-line no-eval + PSK_16 = "PSK-16" # eslint-disable-line no-eval + PSK_32 = "PSK-32" # eslint-disable-line no-eval + PSK_64 = "PSK-64" # eslint-disable-line no-eval @property def psk_type(self) -> PSKTypeOption: """PSK Type PSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val] - return val # type: ignore + return val # type: ignore class FSKTypeOption(Enum): - FSK_2 = "FSK-2" # eslint-disable-line no-eval - FSK_4 = "FSK-4" # eslint-disable-line no-eval - FSK_8 = "FSK-8" # eslint-disable-line no-eval + FSK_2 = "FSK-2" # eslint-disable-line no-eval + FSK_4 = "FSK-4" # eslint-disable-line no-eval + FSK_8 = "FSK-8" # eslint-disable-line no-eval @property def fsk_type(self) -> FSKTypeOption: """FSK Type FSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val] - return val # type: ignore + return val # type: ignore class QAMTypeOption(Enum): - QAM_4 = "QAM-4" # eslint-disable-line no-eval - QAM_16 = "QAM-16" # eslint-disable-line no-eval - QAM_64 = "QAM-64" # eslint-disable-line no-eval - QAM_256 = "QAM-256" # eslint-disable-line no-eval - QAM_1024 = "QAM-1024" # eslint-disable-line no-eval + QAM_4 = "QAM-4" # eslint-disable-line no-eval + QAM_16 = "QAM-16" # eslint-disable-line no-eval + QAM_64 = "QAM-64" # eslint-disable-line no-eval + QAM_256 = "QAM-256" # eslint-disable-line no-eval + QAM_1024 = "QAM-1024" # eslint-disable-line no-eval @property def qam_type(self) -> QAMTypeOption: """QAM Type QAM modulation order: helps determine spectral profile - """ + """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val] - return val # type: ignore + return val # type: ignore class APSKTypeOption(Enum): - APSK_4 = "APSK-4" # eslint-disable-line no-eval - APSK_16 = "APSK-16" # eslint-disable-line no-eval - APSK_64 = "APSK-64" # eslint-disable-line no-eval - APSK_256 = "APSK-256" # eslint-disable-line no-eval - APSK_1024 = "APSK-1024" # eslint-disable-line no-eval + APSK_4 = "APSK-4" # eslint-disable-line no-eval + APSK_16 = "APSK-16" # eslint-disable-line no-eval + APSK_64 = "APSK-64" # eslint-disable-line no-eval + APSK_256 = "APSK-256" # eslint-disable-line no-eval + APSK_1024 = "APSK-1024" # eslint-disable-line no-eval @property def apsk_type(self) -> APSKTypeOption: """APSK Type APSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val] - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -276,7 +280,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -287,7 +291,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def channel_spacing(self) -> float: @@ -298,7 +302,7 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def tx_offset(self) -> float: @@ -309,24 +313,24 @@ def tx_offset(self) -> float: """ val = self._get_property("Tx Offset") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class RadarTypeOption(Enum): - CW = "CW" # eslint-disable-line no-eval - FM_CW = "FM-CW" # eslint-disable-line no-eval - FM_PULSE = "FM Pulse" # eslint-disable-line no-eval - NON_FM_PULSE = "Non-FM Pulse" # eslint-disable-line no-eval - PHASE_CODED = "Phase Coded" # eslint-disable-line no-eval + CW = "CW" # eslint-disable-line no-eval + FM_CW = "FM-CW" # eslint-disable-line no-eval + FM_PULSE = "FM Pulse" # eslint-disable-line no-eval + NON_FM_PULSE = "Non-FM Pulse" # eslint-disable-line no-eval + PHASE_CODED = "Phase Coded" # eslint-disable-line no-eval @property def radar_type(self) -> RadarTypeOption: """Radar Type Radar type: helps determine spectral profile - """ + """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val] - return val # type: ignore + return val # type: ignore @property def hopping_radar(self) -> bool: @@ -336,7 +340,7 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return val # type: ignore + return val # type: ignore @property def post_october_2020_procurement(self) -> bool: @@ -347,7 +351,7 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return val # type: ignore + return val # type: ignore @property def hop_range_min_freq(self) -> float: @@ -358,7 +362,7 @@ def hop_range_min_freq(self) -> float: """ val = self._get_property("Hop Range Min Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def hop_range_max_freq(self) -> float: @@ -369,7 +373,7 @@ def hop_range_max_freq(self) -> float: """ val = self._get_property("Hop Range Max Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def pulse_duration(self) -> float: @@ -380,7 +384,7 @@ def pulse_duration(self) -> float: """ val = self._get_property("Pulse Duration") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_rise_time(self) -> float: @@ -391,7 +395,7 @@ def pulse_rise_time(self) -> float: """ val = self._get_property("Pulse Rise Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_fall_time(self) -> float: @@ -402,7 +406,7 @@ def pulse_fall_time(self) -> float: """ val = self._get_property("Pulse Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_repetition_rate(self) -> float: @@ -412,7 +416,7 @@ def pulse_repetition_rate(self) -> float: Value should be greater than 1. """ val = self._get_property("Pulse Repetition Rate") - return val # type: ignore + return val # type: ignore @property def number_of_chips(self) -> float: @@ -422,7 +426,7 @@ def number_of_chips(self) -> float: Value should be greater than 1. """ val = self._get_property("Number of Chips") - return val # type: ignore + return val # type: ignore @property def pulse_compression_ratio(self) -> float: @@ -432,7 +436,7 @@ def pulse_compression_ratio(self) -> float: Value should be greater than 1. """ val = self._get_property("Pulse Compression Ratio") - return val # type: ignore + return val # type: ignore @property def fm_chirp_period(self) -> float: @@ -443,7 +447,7 @@ def fm_chirp_period(self) -> float: """ val = self._get_property("FM Chirp Period") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def fm_freq_deviation(self) -> float: @@ -454,7 +458,7 @@ def fm_freq_deviation(self) -> float: """ val = self._get_property("FM Freq Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def fm_freq_dev_bandwidth(self) -> float: @@ -466,5 +470,4 @@ def fm_freq_dev_bandwidth(self) -> float: """ val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py index 487a1d52c7c..3e419d44688 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyBandFolder(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -32,4 +35,3 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py index d80437fa409..9b2f89c88c9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyCADNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,33 +46,33 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore class ModelTypeOption(Enum): - PLATE = "Plate" # eslint-disable-line no-eval - BOX = "Box" # eslint-disable-line no-eval - DIHEDRAL = "Dihedral" # eslint-disable-line no-eval - TRIHEDRAL = "Trihedral" # eslint-disable-line no-eval - CYLINDER = "Cylinder" # eslint-disable-line no-eval - TAPERED_CYLINDER = "Tapered Cylinder" # eslint-disable-line no-eval - CONE = "Cone" # eslint-disable-line no-eval - SPHERE = "Sphere" # eslint-disable-line no-eval - ELLIPSOID = "Ellipsoid" # eslint-disable-line no-eval - CIRCULAR_PLATE = "Circular Plate" # eslint-disable-line no-eval - PARABOLA = "Parabola" # eslint-disable-line no-eval - PRISM = "Prism" # eslint-disable-line no-eval - TAPERED_PRISM = "Tapered Prism" # eslint-disable-line no-eval - TOPHAT = "Tophat" # eslint-disable-line no-eval + PLATE = "Plate" # eslint-disable-line no-eval + BOX = "Box" # eslint-disable-line no-eval + DIHEDRAL = "Dihedral" # eslint-disable-line no-eval + TRIHEDRAL = "Trihedral" # eslint-disable-line no-eval + CYLINDER = "Cylinder" # eslint-disable-line no-eval + TAPERED_CYLINDER = "Tapered Cylinder" # eslint-disable-line no-eval + CONE = "Cone" # eslint-disable-line no-eval + SPHERE = "Sphere" # eslint-disable-line no-eval + ELLIPSOID = "Ellipsoid" # eslint-disable-line no-eval + CIRCULAR_PLATE = "Circular Plate" # eslint-disable-line no-eval + PARABOLA = "Parabola" # eslint-disable-line no-eval + PRISM = "Prism" # eslint-disable-line no-eval + TAPERED_PRISM = "Tapered Prism" # eslint-disable-line no-eval + TOPHAT = "Tophat" # eslint-disable-line no-eval @property def model_type(self) -> ModelTypeOption: """Model Type Select type of parametric model to create - """ + """ val = self._get_property("Model Type") val = self.ModelTypeOption[val] - return val # type: ignore + return val # type: ignore @property def length(self) -> float: @@ -79,7 +83,7 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def width(self) -> float: @@ -90,7 +94,7 @@ def width(self) -> float: """ val = self._get_property("Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def height(self) -> float: @@ -101,7 +105,7 @@ def height(self) -> float: """ val = self._get_property("Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def angle(self) -> float: @@ -111,7 +115,7 @@ def angle(self) -> float: Value should be between 0 and 360. """ val = self._get_property("Angle") - return val # type: ignore + return val # type: ignore @property def top_side(self) -> float: @@ -122,7 +126,7 @@ def top_side(self) -> float: """ val = self._get_property("Top Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def top_radius(self) -> float: @@ -133,7 +137,7 @@ def top_radius(self) -> float: """ val = self._get_property("Top Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def side(self) -> float: @@ -144,7 +148,7 @@ def side(self) -> float: """ val = self._get_property("Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def radius(self) -> float: @@ -155,7 +159,7 @@ def radius(self) -> float: """ val = self._get_property("Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def base_radius(self) -> float: @@ -166,7 +170,7 @@ def base_radius(self) -> float: """ val = self._get_property("Base Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def center_radius(self) -> float: @@ -177,7 +181,7 @@ def center_radius(self) -> float: """ val = self._get_property("Center Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def x_axis_ellipsoid_radius(self) -> float: @@ -188,7 +192,7 @@ def x_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("X Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def y_axis_ellipsoid_radius(self) -> float: @@ -199,7 +203,7 @@ def y_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Y Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def z_axis_ellipsoid_radius(self) -> float: @@ -210,7 +214,7 @@ def z_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Z Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def focal_length(self) -> float: @@ -221,17 +225,17 @@ def focal_length(self) -> float: """ val = self._get_property("Focal Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def offset(self) -> float: """Offset Offset of parabolic reflector - """ + """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def x_direction_taper(self) -> float: @@ -242,7 +246,7 @@ def x_direction_taper(self) -> float: Value should be greater than 0. """ val = self._get_property("X Direction Taper") - return val # type: ignore + return val # type: ignore @property def y_direction_taper(self) -> float: @@ -253,7 +257,7 @@ def y_direction_taper(self) -> float: Value should be greater than 0. """ val = self._get_property("Y Direction Taper") - return val # type: ignore + return val # type: ignore @property def prism_direction(self): @@ -263,7 +267,7 @@ def prism_direction(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Prism Direction") - return val # type: ignore + return val # type: ignore @property def closed_top(self) -> bool: @@ -273,7 +277,7 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return val # type: ignore + return val # type: ignore @property def closed_base(self) -> bool: @@ -283,7 +287,7 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return val # type: ignore + return val # type: ignore @property def mesh_density(self) -> int: @@ -294,7 +298,7 @@ def mesh_density(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Mesh Density") - return val # type: ignore + return val # type: ignore @property def use_symmetric_mesh(self) -> bool: @@ -305,21 +309,21 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return val # type: ignore + return val # type: ignore class MeshOptionOption(Enum): - IMPROVED = "Improved" # eslint-disable-line no-eval - LEGACY = "Legacy" # eslint-disable-line no-eval + IMPROVED = "Improved" # eslint-disable-line no-eval + LEGACY = "Legacy" # eslint-disable-line no-eval @property def mesh_option(self) -> MeshOptionOption: """Mesh Option Select from different meshing options - """ + """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val] - return val # type: ignore + return val # type: ignore @property def coating_index(self) -> int: @@ -329,7 +333,7 @@ def coating_index(self) -> int: Value should be between 0 and 100000. """ val = self._get_property("Coating Index") - return val # type: ignore + return val # type: ignore @property def show_relative_coordinates(self) -> bool: @@ -340,7 +344,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @property def position(self): @@ -350,7 +354,7 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): @@ -360,21 +364,21 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @property def orientation(self): @@ -384,7 +388,7 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): @@ -394,7 +398,7 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def visible(self) -> bool: @@ -404,23 +408,23 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore class RenderModeOption(Enum): - FLAT_SHADED = "Flat-Shaded" # eslint-disable-line no-eval - WIRE_FRAME = "Wire-Frame" # eslint-disable-line no-eval - HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" # eslint-disable-line no-eval - OUTLINE = "Outline" # eslint-disable-line no-eval + FLAT_SHADED = "Flat-Shaded" # eslint-disable-line no-eval + WIRE_FRAME = "Wire-Frame" # eslint-disable-line no-eval + HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" # eslint-disable-line no-eval + OUTLINE = "Outline" # eslint-disable-line no-eval @property def render_mode(self) -> RenderModeOption: """Render Mode Select drawing style for surfaces - """ + """ val = self._get_property("Render Mode") val = self.RenderModeOption[val] - return val # type: ignore + return val # type: ignore @property def show_axes(self) -> bool: @@ -430,7 +434,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @property def min(self): @@ -440,7 +444,7 @@ def min(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Min") - return val # type: ignore + return val # type: ignore @property def max(self): @@ -450,16 +454,16 @@ def max(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Max") - return val # type: ignore + return val # type: ignore @property def number_of_surfaces(self) -> int: """Number of Surfaces Number of surfaces in the model - """ + """ val = self._get_property("Number of Surfaces") - return val # type: ignore + return val # type: ignore @property def color(self): @@ -469,14 +473,13 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py index 5c7326fb53a..dabad4560fc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyCable(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,21 +51,21 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - CONSTANT_LOSS = "Constant Loss" # eslint-disable-line no-eval - COAXIAL_CABLE = "Coaxial Cable" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + CONSTANT_LOSS = "Constant Loss" # eslint-disable-line no-eval + COAXIAL_CABLE = "Coaxial Cable" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -69,10 +73,10 @@ def type(self) -> TypeOption: Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @property def length(self) -> float: @@ -83,7 +87,7 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def loss_per_length(self) -> float: @@ -93,7 +97,7 @@ def loss_per_length(self) -> float: Value should be between 0 and 20. """ val = self._get_property("Loss Per Length") - return val # type: ignore + return val # type: ignore @property def measurement_length(self) -> float: @@ -104,7 +108,7 @@ def measurement_length(self) -> float: """ val = self._get_property("Measurement Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def resistive_loss_constant(self) -> float: @@ -114,7 +118,7 @@ def resistive_loss_constant(self) -> float: Value should be between 0 and 2. """ val = self._get_property("Resistive Loss Constant") - return val # type: ignore + return val # type: ignore @property def dielectric_loss_constant(self) -> float: @@ -124,14 +128,13 @@ def dielectric_loss_constant(self) -> float: Value should be between 0 and 1. """ val = self._get_property("Dielectric Loss Constant") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py index 12901519a06..5c4f150b9e8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyCirculator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,20 +51,20 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -68,24 +72,24 @@ def type(self) -> TypeOption: Type of circulator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the circulator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -95,7 +99,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_reverse_isolation(self) -> bool: @@ -106,7 +110,7 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -116,7 +120,7 @@ def reverse_isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -127,7 +131,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -137,7 +141,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -148,7 +152,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -159,7 +163,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -170,7 +174,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -181,14 +185,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py index c029cab2b66..939ed3d313f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +44,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def ports(self): @@ -49,7 +52,6 @@ def ports(self): Maps each port in the link to an antenna in the project "A list of values." - """ + """ val = self._get_property("Ports") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py index bcadca8a91f..17ac942f5ac 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyCouplingsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +40,7 @@ def minimum_allowed_coupling(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Minimum Allowed Coupling") - return val # type: ignore + return val # type: ignore @property def global_default_coupling(self) -> float: @@ -47,14 +50,13 @@ def global_default_coupling(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Global Default Coupling") - return val # type: ignore + return val # type: ignore @property def antenna_tags(self) -> str: """Antenna Tags All tags currently used by all antennas in the project - """ + """ val = self._get_property("Antenna Tags") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py index 1ac7f775844..f30ff32cabd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,11 +38,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Value (dB): + "Value (dB): Value should be between -1000 and 0. """ return self._get_table_data() @@ -52,25 +55,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -80,7 +83,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -90,14 +93,13 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py index 6482f81e1d1..75ba2412d31 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -34,24 +38,24 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class GroundPlaneNormalOption(Enum): - X_AXIS = "X Axis" # eslint-disable-line no-eval - Y_AXIS = "Y Axis" # eslint-disable-line no-eval - Z_AXIS = "Z Axis" # eslint-disable-line no-eval + X_AXIS = "X Axis" # eslint-disable-line no-eval + Y_AXIS = "Y Axis" # eslint-disable-line no-eval + Z_AXIS = "Z Axis" # eslint-disable-line no-eval @property def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal Specifies the axis of the normal to the ground plane - """ + """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val] - return val # type: ignore + return val # type: ignore @property def gp_position_along_normal(self) -> float: @@ -59,8 +63,7 @@ def gp_position_along_normal(self) -> float: Offset of ground plane in direction normal to the ground planes orientation - """ + """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py index 2dd477caa03..bc7a81e055c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,25 +46,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -80,31 +84,31 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class TerrainCategoryOption(Enum): - TYPE_A = "Type A" # eslint-disable-line no-eval - TYPE_B = "Type B" # eslint-disable-line no-eval - TYPE_C = "Type C" # eslint-disable-line no-eval + TYPE_A = "Type A" # eslint-disable-line no-eval + TYPE_B = "Type B" # eslint-disable-line no-eval + TYPE_C = "Type C" # eslint-disable-line no-eval @property def terrain_category(self) -> TerrainCategoryOption: """Terrain Category Specify the terrain category type for the Erceg model - """ + """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val] - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -115,7 +119,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -126,7 +130,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -137,23 +141,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -164,7 +168,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -174,7 +178,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -184,7 +188,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -195,7 +199,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -205,7 +209,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -216,7 +220,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -227,7 +231,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -237,7 +241,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -247,7 +251,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -257,5 +261,4 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py index 61594fb08bb..b5a012b09ee 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyFilter(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,25 +51,25 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - LOW_PASS = "Low Pass" # eslint-disable-line no-eval - HIGH_PASS = "High Pass" # eslint-disable-line no-eval - BAND_PASS = "Band Pass" # eslint-disable-line no-eval - BAND_STOP = "Band Stop" # eslint-disable-line no-eval - TUNABLE_BANDPASS = "Tunable Bandpass" # eslint-disable-line no-eval - TUNABLE_BANDSTOP = "Tunable Bandstop" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + LOW_PASS = "Low Pass" # eslint-disable-line no-eval + HIGH_PASS = "High Pass" # eslint-disable-line no-eval + BAND_PASS = "Band Pass" # eslint-disable-line no-eval + BAND_STOP = "Band Stop" # eslint-disable-line no-eval + TUNABLE_BANDPASS = "Tunable Bandpass" # eslint-disable-line no-eval + TUNABLE_BANDSTOP = "Tunable Bandstop" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -73,10 +77,10 @@ def type(self) -> TypeOption: Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -86,7 +90,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def stop_band_attenuation(self) -> float: @@ -96,7 +100,7 @@ def stop_band_attenuation(self) -> float: Value should be less than 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @property def max_pass_band(self) -> float: @@ -107,7 +111,7 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_stop_band(self) -> float: @@ -118,7 +122,7 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def max_stop_band(self) -> float: @@ -129,7 +133,7 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_pass_band(self) -> float: @@ -140,7 +144,7 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -151,7 +155,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -162,7 +166,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -173,7 +177,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -184,73 +188,73 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff Lower cutoff frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band Lower stop band frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band Higher stop band frequency Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff Higher cutoff frequency Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency Lowest tuned frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lowest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency Highest tuned frequency Value should be between 1 and 1e+11. """ val = self._get_property("Highest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def percent_bandwidth(self) -> float: @@ -260,7 +264,7 @@ def percent_bandwidth(self) -> float: Value should be between 0.001 and 100. """ val = self._get_property("Percent Bandwidth") - return val # type: ignore + return val # type: ignore @property def shape_factor(self) -> float: @@ -270,14 +274,13 @@ def shape_factor(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py index 44e838f0732..2363b5e2d69 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,25 +46,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -80,31 +84,31 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): - URBAN_MICROCELL = "Urban Microcell" # eslint-disable-line no-eval - URBAN_MACROCELL = "Urban Macrocell" # eslint-disable-line no-eval - RURAL_MACROCELL = "Rural Macrocell" # eslint-disable-line no-eval + URBAN_MICROCELL = "Urban Microcell" # eslint-disable-line no-eval + URBAN_MACROCELL = "Urban Macrocell" # eslint-disable-line no-eval + RURAL_MACROCELL = "Rural Macrocell" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment for the 5G channel model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def los(self) -> bool: @@ -114,7 +118,7 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return val # type: ignore + return val # type: ignore @property def include_bpl(self) -> bool: @@ -124,21 +128,21 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return val # type: ignore + return val # type: ignore class NYUBPLModelOption(Enum): - LOW_LOSS_MODEL = "Low-loss model" # eslint-disable-line no-eval - HIGH_LOSS_MODEL = "High-loss model" # eslint-disable-line no-eval + LOW_LOSS_MODEL = "Low-loss model" # eslint-disable-line no-eval + HIGH_LOSS_MODEL = "High-loss model" # eslint-disable-line no-eval @property def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model Specify the NYU Building Penetration Loss model - """ + """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val] - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -149,7 +153,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -160,7 +164,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -171,23 +175,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -198,7 +202,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -208,7 +212,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -218,7 +222,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -229,7 +233,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -239,7 +243,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -250,7 +254,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -261,7 +265,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -271,7 +275,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -281,7 +285,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -291,5 +295,4 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py index 19c487c28c1..a8b6dfdcbf2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,25 +46,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -80,32 +84,32 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): - LARGE_CITY = "Large City" # eslint-disable-line no-eval - SMALLMEDIUM_CITY = "Small/Medium City" # eslint-disable-line no-eval - SUBURBAN = "Suburban" # eslint-disable-line no-eval - RURAL = "Rural" # eslint-disable-line no-eval + LARGE_CITY = "Large City" # eslint-disable-line no-eval + SMALLMEDIUM_CITY = "Small/Medium City" # eslint-disable-line no-eval + SUBURBAN = "Suburban" # eslint-disable-line no-eval + RURAL = "Rural" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Hata model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -116,7 +120,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -127,7 +131,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -138,23 +142,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -165,7 +169,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -175,7 +179,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -185,7 +189,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -196,7 +200,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -206,7 +210,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -217,7 +221,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -228,7 +232,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -238,7 +242,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -248,7 +252,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -258,5 +262,4 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py index fe7859dcae3..80418e526e2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,13 +40,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Power Loss Coefficient: + "Power Loss Coefficient: Value should be between 0 and 100. - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): Value should be between 0 and 1000. """ return self._get_table_data() @@ -55,25 +59,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -83,7 +87,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -93,33 +97,33 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class BuildingTypeOption(Enum): - RESIDENTIAL_APARTMENT = "Residential Apartment" # eslint-disable-line no-eval - RESIDENTIAL_HOUSE = "Residential House" # eslint-disable-line no-eval - OFFICE_BUILDING = "Office Building" # eslint-disable-line no-eval - COMMERCIAL_BUILDING = "Commercial Building" # eslint-disable-line no-eval - CUSTOM_BUILDING = "Custom Building" # eslint-disable-line no-eval + RESIDENTIAL_APARTMENT = "Residential Apartment" # eslint-disable-line no-eval + RESIDENTIAL_HOUSE = "Residential House" # eslint-disable-line no-eval + OFFICE_BUILDING = "Office Building" # eslint-disable-line no-eval + COMMERCIAL_BUILDING = "Commercial Building" # eslint-disable-line no-eval + CUSTOM_BUILDING = "Custom Building" # eslint-disable-line no-eval @property def building_type(self) -> BuildingTypeOption: """Building Type Specify the building type for the Indoor Propagation model - """ + """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def number_of_floors(self) -> int: @@ -129,7 +133,7 @@ def number_of_floors(self) -> int: Value should be between 1 and 3. """ val = self._get_property("Number of Floors") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -140,7 +144,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -151,7 +155,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -162,23 +166,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -189,7 +193,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -199,7 +203,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -209,7 +213,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -220,7 +224,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -230,7 +234,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -241,7 +245,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -252,7 +256,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -262,7 +266,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -272,7 +276,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -282,5 +286,4 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py index b8841def5dc..cb19bcb1a29 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyIsolator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,20 +51,20 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -68,24 +72,24 @@ def type(self) -> TypeOption: Type of isolator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the isolator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -95,7 +99,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_reverse_isolation(self) -> bool: @@ -106,7 +110,7 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -116,7 +120,7 @@ def reverse_isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -127,7 +131,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -137,7 +141,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -148,7 +152,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -159,7 +163,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -170,7 +174,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -181,14 +185,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py index 07074c03901..94d4a57b899 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,25 +46,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -80,35 +84,35 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): - FREE_SPACE = "Free Space" # eslint-disable-line no-eval - URBAN = "Urban" # eslint-disable-line no-eval - SHADOWED_URBAN = "Shadowed Urban" # eslint-disable-line no-eval - BUILDING_LINE_OF_SIGHT = "Building Line of Sight" # eslint-disable-line no-eval - BUILDING_OBSTRUCTED = "Building Obstructed" # eslint-disable-line no-eval - FACTORY_OBSTRUCTED = "Factory Obstructed" # eslint-disable-line no-eval - CUSTOM = "Custom" # eslint-disable-line no-eval + FREE_SPACE = "Free Space" # eslint-disable-line no-eval + URBAN = "Urban" # eslint-disable-line no-eval + SHADOWED_URBAN = "Shadowed Urban" # eslint-disable-line no-eval + BUILDING_LINE_OF_SIGHT = "Building Line of Sight" # eslint-disable-line no-eval + BUILDING_OBSTRUCTED = "Building Obstructed" # eslint-disable-line no-eval + FACTORY_OBSTRUCTED = "Factory Obstructed" # eslint-disable-line no-eval + CUSTOM = "Custom" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Log Distance model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def path_loss_exponent(self) -> float: @@ -118,7 +122,7 @@ def path_loss_exponent(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Path Loss Exponent") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -129,7 +133,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -140,7 +144,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -151,23 +155,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -178,7 +182,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -188,7 +192,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -198,7 +202,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -209,7 +213,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -219,7 +223,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -230,7 +234,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -241,7 +245,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -251,7 +255,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -261,7 +265,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -271,5 +275,4 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py index 5369666f822..13669682c69 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyMultiplexer(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,20 +51,20 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_PASS_BAND = "By Pass Band" # eslint-disable-line no-eval - BY_FILE = "By File" # eslint-disable-line no-eval + BY_PASS_BAND = "By Pass Band" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -69,24 +73,24 @@ def type(self) -> TypeOption: simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band) - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the multiplexer. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val] - return val # type: ignore + return val # type: ignore @property def flip_ports_vertically(self) -> bool: @@ -96,7 +100,7 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return val # type: ignore + return val # type: ignore @property def ports(self): @@ -104,16 +108,15 @@ def ports(self): Assigns the child port nodes to the multiplexers ports "A list of values." - """ + """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py index 1145a05b67b..0942b6bca1e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,10 +39,10 @@ def parent(self): return self._parent class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - LOW_PASS = "Low Pass" # eslint-disable-line no-eval - HIGH_PASS = "High Pass" # eslint-disable-line no-eval - BAND_PASS = "Band Pass" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + LOW_PASS = "Low Pass" # eslint-disable-line no-eval + HIGH_PASS = "High Pass" # eslint-disable-line no-eval + BAND_PASS = "Band Pass" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -47,10 +51,10 @@ def type(self) -> TypeOption: file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @property def filename(self) -> str: @@ -60,7 +64,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -70,7 +74,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def stop_band_attenuation(self) -> float: @@ -80,7 +84,7 @@ def stop_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @property def max_pass_band(self) -> float: @@ -91,7 +95,7 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_stop_band(self) -> float: @@ -102,7 +106,7 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def max_stop_band(self) -> float: @@ -113,7 +117,7 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_pass_band(self) -> float: @@ -124,7 +128,7 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -135,7 +139,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -146,7 +150,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -157,7 +161,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -168,14 +172,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py index e40c9d81c33..9be7d4da84c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyPowerDivider(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,21 +51,21 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - P3_DB = "P3 dB" # eslint-disable-line no-eval - RESISTIVE = "Resistive" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + P3_DB = "P3 dB" # eslint-disable-line no-eval + RESISTIVE = "Resistive" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -69,24 +73,24 @@ def type(self) -> TypeOption: Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric) - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class OrientationOption(Enum): - DIVIDER = "Divider" # eslint-disable-line no-eval - COMBINER = "Combiner" # eslint-disable-line no-eval + DIVIDER = "Divider" # eslint-disable-line no-eval + COMBINER = "Combiner" # eslint-disable-line no-eval @property def orientation(self) -> OrientationOption: """Orientation Defines the orientation of the Power Divider. - """ + """ val = self._get_property("Orientation") val = self.OrientationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss_above_ideal(self) -> float: @@ -97,7 +101,7 @@ def insertion_loss_above_ideal(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss Above Ideal") - return val # type: ignore + return val # type: ignore @property def finite_isolation(self) -> bool: @@ -108,7 +112,7 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @property def isolation(self) -> float: @@ -118,7 +122,7 @@ def isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -129,7 +133,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -139,7 +143,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -150,7 +154,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -161,7 +165,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -172,7 +176,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -183,14 +187,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py index 622bf0f5f8c..6dc62c62cda 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,25 +46,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -80,16 +84,16 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -100,7 +104,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -111,7 +115,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -122,23 +126,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -149,7 +153,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -159,7 +163,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -169,7 +173,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -180,7 +184,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -190,7 +194,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -201,7 +205,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -212,7 +216,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -222,7 +226,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -232,7 +236,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -242,5 +246,4 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py index b2ae26c0433..b1680c73f46 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRadioNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,11 +38,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Name: - "Type: - """ + "Name: + "Type: + """ return self._get_table_data() @property @@ -47,7 +50,6 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py index ca2069d37de..2ca57818744 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -43,7 +46,7 @@ def enable_passive_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Passive Noise") - return val # type: ignore + return val # type: ignore @property def enforce_thermal_noise_floor(self) -> bool: @@ -54,5 +57,4 @@ def enforce_thermal_noise_floor(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enforce Thermal Noise Floor") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py index 331dc8de1bb..cfb9358f0a6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,7 +46,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -52,32 +56,32 @@ def source_file(self) -> str: Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def receive_frequency(self) -> float: """Receive Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class MeasurementModeOption(Enum): - AUDIO_SINAD = "Audio SINAD" # eslint-disable-line no-eval - DIGITAL_BER = "Digital BER" # eslint-disable-line no-eval - GPS_CNR = "GPS CNR" # eslint-disable-line no-eval + AUDIO_SINAD = "Audio SINAD" # eslint-disable-line no-eval + DIGITAL_BER = "Digital BER" # eslint-disable-line no-eval + GPS_CNR = "GPS CNR" # eslint-disable-line no-eval @property def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode Defines the mode for the receiver measurement - """ + """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] - return val # type: ignore + return val # type: ignore @property def sinad_threshold(self) -> float: @@ -87,7 +91,7 @@ def sinad_threshold(self) -> float: Value should be between 5 and 20. """ val = self._get_property("SINAD Threshold") - return val # type: ignore + return val # type: ignore @property def gps_cnr_threshold(self) -> float: @@ -97,7 +101,7 @@ def gps_cnr_threshold(self) -> float: Value should be between 15 and 30. """ val = self._get_property("GPS CNR Threshold") - return val # type: ignore + return val # type: ignore @property def ber_threshold(self) -> float: @@ -107,7 +111,7 @@ def ber_threshold(self) -> float: Value should be between -12 and -1. """ val = self._get_property("BER Threshold") - return val # type: ignore + return val # type: ignore @property def default_intended_power(self) -> bool: @@ -117,7 +121,7 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return val # type: ignore + return val # type: ignore @property def intended_signal_power(self) -> float: @@ -127,7 +131,7 @@ def intended_signal_power(self) -> float: Value should be between -140 and -50. """ val = self._get_property("Intended Signal Power") - return val # type: ignore + return val # type: ignore @property def freq_deviation(self) -> float: @@ -138,7 +142,7 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def modulation_depth(self) -> float: @@ -148,7 +152,7 @@ def modulation_depth(self) -> float: Value should be between 10 and 100. """ val = self._get_property("Modulation Depth") - return val # type: ignore + return val # type: ignore @property def measure_selectivity(self) -> bool: @@ -158,7 +162,7 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return val # type: ignore + return val # type: ignore @property def measure_mixer_products(self) -> bool: @@ -168,7 +172,7 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return val # type: ignore + return val # type: ignore @property def max_rf_order(self) -> int: @@ -178,7 +182,7 @@ def max_rf_order(self) -> int: Value should be greater than 1. """ val = self._get_property("Max RF Order") - return val # type: ignore + return val # type: ignore @property def max_lo_order(self) -> int: @@ -188,7 +192,7 @@ def max_lo_order(self) -> int: Value should be greater than 1. """ val = self._get_property("Max LO Order") - return val # type: ignore + return val # type: ignore @property def include_if(self) -> bool: @@ -198,7 +202,7 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return val # type: ignore + return val # type: ignore @property def measure_saturation(self) -> bool: @@ -208,7 +212,7 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -218,7 +222,7 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -229,7 +233,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -240,7 +244,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def samples(self) -> int: @@ -250,7 +254,7 @@ def samples(self) -> int: Value should be between 2 and 100. """ val = self._get_property("Samples") - return val # type: ignore + return val # type: ignore @property def exclude_mixer_products_below_noise(self) -> bool: @@ -260,5 +264,4 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py index b679a7b54b0..6d4b0ae2a7a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,19 +39,19 @@ def parent(self): return self._parent class MixerProductTaperOption(Enum): - CONSTANT = "Constant" # eslint-disable-line no-eval - MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval - DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval + CONSTANT = "Constant" # eslint-disable-line no-eval + MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval + DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval @property def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper Taper for setting amplitude of mixer products - """ + """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] - return val # type: ignore + return val # type: ignore @property def mixer_product_susceptibility(self) -> float: @@ -57,7 +61,7 @@ def mixer_product_susceptibility(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Mixer Product Susceptibility") - return val # type: ignore + return val # type: ignore @property def spurious_rejection(self) -> float: @@ -67,7 +71,7 @@ def spurious_rejection(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Spurious Rejection") - return val # type: ignore + return val # type: ignore @property def minimum_tuning_frequency(self) -> float: @@ -78,7 +82,7 @@ def minimum_tuning_frequency(self) -> float: """ val = self._get_property("Minimum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def maximum_tuning_frequency(self) -> float: @@ -89,7 +93,7 @@ def maximum_tuning_frequency(self) -> float: """ val = self._get_property("Maximum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def mixer_product_slope(self) -> float: @@ -100,7 +104,7 @@ def mixer_product_slope(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Mixer Product Slope") - return val # type: ignore + return val # type: ignore @property def mixer_product_intercept(self) -> float: @@ -110,7 +114,7 @@ def mixer_product_intercept(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Mixer Product Intercept") - return val # type: ignore + return val # type: ignore @property def bandwidth_80_db(self) -> float: @@ -122,7 +126,7 @@ def bandwidth_80_db(self) -> float: """ val = self._get_property("Bandwidth 80 dB") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def image_rejection(self) -> float: @@ -132,7 +136,7 @@ def image_rejection(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Image Rejection") - return val # type: ignore + return val # type: ignore @property def maximum_rf_harmonic_order(self) -> int: @@ -142,7 +146,7 @@ def maximum_rf_harmonic_order(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Maximum RF Harmonic Order") - return val # type: ignore + return val # type: ignore @property def maximum_lo_harmonic_order(self) -> int: @@ -152,22 +156,22 @@ def maximum_lo_harmonic_order(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Maximum LO Harmonic Order") - return val # type: ignore + return val # type: ignore class MixingModeOption(Enum): - LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" # eslint-disable-line no-eval - LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" # eslint-disable-line no-eval - LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" # eslint-disable-line no-eval @property def mixing_mode(self) -> MixingModeOption: """Mixing Mode Specifies whether the IF frequency is > or < RF channel frequency - """ + """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] - return val # type: ignore + return val # type: ignore @property def first_if_frequency(self): @@ -177,43 +181,42 @@ def first_if_frequency(self): Value should be a mathematical expression. """ val = self._get_property("First IF Frequency") - return val # type: ignore + return val # type: ignore @property def rf_transition_frequency(self) -> float: """RF Transition Frequency RF Frequency Transition point - """ + """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class UseHighLOOption(Enum): - ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" # eslint-disable-line no-eval - BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" # eslint-disable-line no-eval + ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" # eslint-disable-line no-eval + BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" # eslint-disable-line no-eval @property def use_high_lo(self) -> UseHighLOOption: """Use High LO Use High LO above/below the transition frequency - """ + """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] - return val # type: ignore + return val # type: ignore class MixerProductTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units Specifies the units for the Mixer Products - """ + """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py index 82324948947..ab6a6613919 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -32,4 +35,3 @@ def __init__(self, oDesign, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py index f2370826986..c11f8015104 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,5 +45,4 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py index 9ab0ed986b5..a7ebff6db2d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,28 +40,27 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py index e712f39dffa..cee5d24555d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,30 +39,30 @@ def parent(self): return self._parent class SensitivityUnitsOption(Enum): - DBM = "dBm" # eslint-disable-line no-eval - DBUV = "dBuV" # eslint-disable-line no-eval - MILLIWATTS = "milliwatts" # eslint-disable-line no-eval - MICROVOLTS = "microvolts" # eslint-disable-line no-eval + DBM = "dBm" # eslint-disable-line no-eval + DBUV = "dBuV" # eslint-disable-line no-eval + MILLIWATTS = "milliwatts" # eslint-disable-line no-eval + MICROVOLTS = "microvolts" # eslint-disable-line no-eval @property def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units Units to use for the Rx Sensitivity - """ + """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] - return val # type: ignore + return val # type: ignore @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr Received signal power level at the Rx's antenna terminal Value should be between -1000 and 1000. """ val = self._get_property("Min. Receive Signal Pwr ") - return val # type: ignore + return val # type: ignore @property def snr_at_rx_signal_pwr(self) -> float: @@ -69,7 +73,7 @@ def snr_at_rx_signal_pwr(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("SNR at Rx Signal Pwr") - return val # type: ignore + return val # type: ignore @property def processing_gain(self) -> float: @@ -79,7 +83,7 @@ def processing_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Processing Gain") - return val # type: ignore + return val # type: ignore @property def apply_pg_to_narrowband_only(self) -> bool: @@ -90,7 +94,7 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return val # type: ignore + return val # type: ignore @property def saturation_level(self) -> float: @@ -101,7 +105,7 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def rx_noise_figure(self) -> float: @@ -111,28 +115,28 @@ def rx_noise_figure(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rx Noise Figure") - return val # type: ignore + return val # type: ignore @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity Rx minimum sensitivity level (dBm) Value should be between -1000 and 1000. """ val = self._get_property("Receiver Sensitivity ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity SNR or SINAD at the specified sensitivity level Value should be between -1000 and 1000. """ val = self._get_property("SNR/SINAD at Sensitivity ") - return val # type: ignore + return val # type: ignore @property def perform_rx_intermod_analysis(self) -> bool: @@ -142,7 +146,7 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -153,18 +157,18 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Rx's 1 dB Compression Point - total power > P1dB saturates the receiver Value should be between -1000 and 1000. """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -175,7 +179,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -185,5 +189,4 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py index cee08a9ef5f..aabd42cc060 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlySamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,29 +40,29 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Min: + "Min: Value should be greater than 1. - "Max: + "Max: Value should be greater than 1. """ return self._get_table_data() class SamplingTypeOption(Enum): - SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" # eslint-disable-line no-eval - RANDOM_SAMPLING = "Random Sampling" # eslint-disable-line no-eval - UNIFORM_SAMPLING = "Uniform Sampling" # eslint-disable-line no-eval + SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" # eslint-disable-line no-eval + RANDOM_SAMPLING = "Random Sampling" # eslint-disable-line no-eval + UNIFORM_SAMPLING = "Uniform Sampling" # eslint-disable-line no-eval @property def sampling_type(self) -> SamplingTypeOption: """Sampling Type Sampling to apply to this configuration - """ + """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def specify_percentage(self) -> bool: @@ -69,7 +73,7 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return val # type: ignore + return val # type: ignore @property def percentage_of_channels(self) -> float: @@ -79,7 +83,7 @@ def percentage_of_channels(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Percentage of Channels") - return val # type: ignore + return val # type: ignore @property def max__channelsrangeband(self) -> int: @@ -89,7 +93,7 @@ def max__channelsrangeband(self) -> int: Value should be between 1 and 100000. """ val = self._get_property("Max # Channels/Range/Band") - return val # type: ignore + return val # type: ignore @property def seed(self) -> int: @@ -99,7 +103,7 @@ def seed(self) -> int: Value should be greater than 0. """ val = self._get_property("Seed") - return val # type: ignore + return val # type: ignore @property def total_tx_channels(self) -> int: @@ -107,9 +111,9 @@ def total_tx_channels(self) -> int: Total number of transmit channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Tx Channels") - return val # type: ignore + return val # type: ignore @property def total_rx_channels(self) -> int: @@ -117,16 +121,15 @@ def total_rx_channels(self) -> int: Total number of receive channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Rx Channels") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py index 4dad5238e84..837d9485b9b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlySceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -43,7 +47,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @property def position(self): @@ -53,7 +57,7 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): @@ -63,21 +67,21 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @property def orientation(self): @@ -87,7 +91,7 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): @@ -97,7 +101,7 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def show_axes(self) -> bool: @@ -107,7 +111,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @property def box_color(self): @@ -117,14 +121,13 @@ def box_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Box Color") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py index ccb9043c10a..69761e3dac5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,7 +45,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -52,7 +55,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -62,14 +65,13 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py index f0162cbac27..3ac2ce7fd8f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlySolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,5 +45,4 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py index d3308554392..bfbd1fb1a5c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,44 +51,44 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TxPortOption(Enum): - PORT_1 = "Port 1" # eslint-disable-line no-eval - PORT_2 = "Port 2" # eslint-disable-line no-eval + PORT_1 = "Port 1" # eslint-disable-line no-eval + PORT_2 = "Port 2" # eslint-disable-line no-eval @property def tx_port(self) -> TxPortOption: """Tx Port Specifies which port on the TR Switch is part of the Tx path. - """ + """ val = self._get_property("Tx Port") val = self.TxPortOption[val] - return val # type: ignore + return val # type: ignore class CommonPortLocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def common_port_location(self) -> CommonPortLocationOption: """Common Port Location Defines the orientation of the tr switch. - """ + """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -94,7 +98,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_isolation(self) -> bool: @@ -105,7 +109,7 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @property def isolation(self) -> float: @@ -115,7 +119,7 @@ def isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -126,7 +130,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -136,7 +140,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -147,7 +151,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -158,7 +162,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -169,7 +173,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -180,5 +184,4 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py index 1101613b670..bd1a57d3124 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTerminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,20 +51,20 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -68,24 +72,24 @@ def type(self) -> TypeOption: Type of terminator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore class PortLocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_location(self) -> PortLocationOption: """Port Location Defines the orientation of the terminator. - """ + """ val = self._get_property("Port Location") val = self.PortLocationOption[val] - return val # type: ignore + return val # type: ignore @property def vswr(self) -> float: @@ -97,14 +101,13 @@ def vswr(self) -> float: Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py index 40ce5119d27..bbb8270e2aa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +44,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -51,7 +54,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -61,16 +64,16 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def filename(self) -> str: @@ -80,16 +83,16 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File Coupling data generated by Savant and exported as a matched file - """ + """ val = self._get_property("Savant Matched Coupling File") - return val # type: ignore + return val # type: ignore @property def enable_em_isolation(self) -> bool: @@ -99,7 +102,7 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return val # type: ignore + return val # type: ignore @property def port_antenna_assignment(self): @@ -107,16 +110,15 @@ def port_antenna_assignment(self): Maps each port in the coupling file to an antenna in the project "A list of values." - """ + """ val = self._get_property("Port-Antenna Assignment") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py index d8858a39c2f..f736154b0ad 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,25 +46,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -80,16 +84,16 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def ground_reflection_coeff(self) -> float: @@ -99,7 +103,7 @@ def ground_reflection_coeff(self) -> float: Value should be between -100 and 100. """ val = self._get_property("Ground Reflection Coeff.") - return val # type: ignore + return val # type: ignore @property def pointspeak(self) -> int: @@ -109,7 +113,7 @@ def pointspeak(self) -> int: Value should be between 3 and 100. """ val = self._get_property("Points/Peak") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -120,7 +124,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -131,7 +135,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -142,23 +146,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -169,7 +173,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -179,7 +183,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -189,7 +193,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -200,7 +204,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -210,7 +214,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -221,7 +225,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -232,7 +236,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -242,7 +246,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -252,7 +256,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -262,5 +266,4 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py index f227cfcfa33..4427a96ffd8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,28 +42,28 @@ def parent(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): Value should be between -200 and 150. """ return self._get_table_data() class NoiseBehaviorOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE_BANDWIDTH = "Relative (Bandwidth)" # eslint-disable-line no-eval - RELATIVE_OFFSET = "Relative (Offset)" # eslint-disable-line no-eval - EQUATION = "Equation" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE_BANDWIDTH = "Relative (Bandwidth)" # eslint-disable-line no-eval + RELATIVE_OFFSET = "Relative (Offset)" # eslint-disable-line no-eval + EQUATION = "Equation" # eslint-disable-line no-eval @property def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior Specifies the behavior of the parametric noise profile - """ + """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] - return val # type: ignore + return val # type: ignore @property def use_log_linear_interpolation(self) -> bool: @@ -70,5 +74,4 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py index a5fe7c6c13a..d23504eef5e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,16 +39,15 @@ def parent(self): return self._parent class HarmonicTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units Specifies the units for the Harmonics - """ + """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py index 8614bf2c4c5..1b8dda0f8d3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyTxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -41,7 +44,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -51,17 +54,17 @@ def source_file(self) -> str: Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def transmit_frequency(self) -> float: """Transmit Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -71,7 +74,7 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -82,7 +85,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -93,7 +96,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def exclude_harmonics_below_noise(self) -> bool: @@ -103,5 +106,4 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py index c8b671f8c09..0319b7adc81 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,26 +39,25 @@ def parent(self): return self._parent class NarrowbandBehaviorOption(Enum): - ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" # eslint-disable-line no-eval - RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" # eslint-disable-line no-eval + ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" # eslint-disable-line no-eval + RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" # eslint-disable-line no-eval @property def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior Specifies the behavior of the parametric narrowband emissions mask - """ + """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] - return val # type: ignore + return val # type: ignore @property def measurement_frequency(self) -> float: """Measurement Frequency Measurement frequency for the absolute freq/amp pairs. - """ + """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py index da2c3b9bd01..717c67aaf89 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyTxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -38,10 +41,10 @@ def output_voltage_peak(self) -> float: """Output Voltage Peak Output High Voltage Level: maximum voltage of the digital signal - """ + """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") - return val # type: ignore + return val # type: ignore @property def include_phase_noise(self) -> bool: @@ -51,7 +54,7 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @property def tx_broadband_noise(self) -> float: @@ -61,7 +64,7 @@ def tx_broadband_noise(self) -> float: Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @property def perform_tx_intermod_analysis(self) -> bool: @@ -71,7 +74,7 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @property def internal_amp_gain(self) -> float: @@ -81,7 +84,7 @@ def internal_amp_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: @@ -91,7 +94,7 @@ def noise_figure(self) -> float: Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -102,11 +105,11 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -114,7 +117,7 @@ def p1_db_point_ref_input_(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -125,7 +128,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -135,7 +138,7 @@ def reverse_isolation(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -145,5 +148,4 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py index ab57a7815a0..3b33e67e749 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,32 +39,32 @@ def parent(self): return self._parent class SpectrumTypeOption(Enum): - NARROWBAND__BROADBAND = "Narrowband & Broadband" # eslint-disable-line no-eval - BROADBAND_ONLY = "Broadband Only" # eslint-disable-line no-eval + NARROWBAND__BROADBAND = "Narrowband & Broadband" # eslint-disable-line no-eval + BROADBAND_ONLY = "Broadband Only" # eslint-disable-line no-eval @property def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type Specifies EMI Margins to calculate - """ + """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] - return val # type: ignore + return val # type: ignore class TxPowerOption(Enum): - PEAK_POWER = "Peak Power" # eslint-disable-line no-eval - AVERAGE_POWER = "Average Power" # eslint-disable-line no-eval + PEAK_POWER = "Peak Power" # eslint-disable-line no-eval + AVERAGE_POWER = "Average Power" # eslint-disable-line no-eval @property def tx_power(self) -> TxPowerOption: """Tx Power Method used to specify the power - """ + """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] - return val # type: ignore + return val # type: ignore @property def peak_power(self) -> float: @@ -71,7 +75,7 @@ def peak_power(self) -> float: """ val = self._get_property("Peak Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def average_power(self) -> float: @@ -82,7 +86,7 @@ def average_power(self) -> float: """ val = self._get_property("Average Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def include_phase_noise(self) -> bool: @@ -92,7 +96,7 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @property def tx_broadband_noise(self) -> float: @@ -102,23 +106,23 @@ def tx_broadband_noise(self) -> float: Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore class HarmonicTaperOption(Enum): - CONSTANT = "Constant" # eslint-disable-line no-eval - MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval - MIL_STD_461G_NAVY = "MIL-STD-461G Navy" # eslint-disable-line no-eval - DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval + CONSTANT = "Constant" # eslint-disable-line no-eval + MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval + MIL_STD_461G_NAVY = "MIL-STD-461G Navy" # eslint-disable-line no-eval + DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval @property def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper Taper type used to set amplitude of harmonics - """ + """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] - return val # type: ignore + return val # type: ignore @property def harmonic_amplitude(self) -> float: @@ -128,7 +132,7 @@ def harmonic_amplitude(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Amplitude") - return val # type: ignore + return val # type: ignore @property def harmonic_slope(self) -> float: @@ -138,7 +142,7 @@ def harmonic_slope(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Slope") - return val # type: ignore + return val # type: ignore @property def harmonic_intercept(self) -> float: @@ -148,7 +152,7 @@ def harmonic_intercept(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Intercept") - return val # type: ignore + return val # type: ignore @property def enable_harmonic_bw_expansion(self) -> bool: @@ -159,7 +163,7 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return val # type: ignore + return val # type: ignore @property def number_of_harmonics(self) -> int: @@ -169,7 +173,7 @@ def number_of_harmonics(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Number of Harmonics") - return val # type: ignore + return val # type: ignore @property def second_harmonic_level(self) -> float: @@ -179,7 +183,7 @@ def second_harmonic_level(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Second Harmonic Level") - return val # type: ignore + return val # type: ignore @property def third_harmonic_level(self) -> float: @@ -189,7 +193,7 @@ def third_harmonic_level(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Third Harmonic Level") - return val # type: ignore + return val # type: ignore @property def other_harmonic_levels(self) -> float: @@ -199,7 +203,7 @@ def other_harmonic_levels(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Other Harmonic Levels") - return val # type: ignore + return val # type: ignore @property def perform_tx_intermod_analysis(self) -> bool: @@ -209,7 +213,7 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @property def internal_amp_gain(self) -> float: @@ -219,7 +223,7 @@ def internal_amp_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: @@ -229,7 +233,7 @@ def noise_figure(self) -> float: Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -240,11 +244,11 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -252,7 +256,7 @@ def p1_db_point_ref_input_(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -263,7 +267,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -273,7 +277,7 @@ def reverse_isolation(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -283,5 +287,4 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py index e27727f1f8b..bf20e4e7181 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,28 +40,27 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py index 89cbee6acae..2eb7ab5fa6d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,25 +46,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -80,44 +84,44 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class PathLossTypeOption(Enum): - LOS_URBAN_CANYON = "LOS (Urban Canyon)" # eslint-disable-line no-eval - NLOS = "NLOS" # eslint-disable-line no-eval + LOS_URBAN_CANYON = "LOS (Urban Canyon)" # eslint-disable-line no-eval + NLOS = "NLOS" # eslint-disable-line no-eval @property def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type Specify LOS vs NLOS for the Walfisch-Ikegami model - """ + """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): - DENSE_METRO = "Dense Metro" # eslint-disable-line no-eval - SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" # eslint-disable-line no-eval + DENSE_METRO = "Dense Metro" # eslint-disable-line no-eval + SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Walfisch model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @property def roof_height(self) -> float: @@ -128,7 +132,7 @@ def roof_height(self) -> float: """ val = self._get_property("Roof Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def distance_between_buildings(self) -> float: @@ -139,7 +143,7 @@ def distance_between_buildings(self) -> float: """ val = self._get_property("Distance Between Buildings") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def street_width(self) -> float: @@ -150,7 +154,7 @@ def street_width(self) -> float: """ val = self._get_property("Street Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def incidence_angle(self) -> float: @@ -160,7 +164,7 @@ def incidence_angle(self) -> float: Value should be between 0 and 90. """ val = self._get_property("Incidence Angle") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -171,7 +175,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -182,7 +186,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -193,23 +197,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -220,7 +224,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -230,7 +234,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -240,7 +244,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @property def rain_availability(self) -> float: @@ -251,7 +255,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -261,7 +265,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -272,7 +276,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -283,7 +287,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @property def temperature(self) -> float: @@ -293,7 +297,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -303,7 +307,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -313,5 +317,4 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py index 2a2ae4586b9..2c026d9fd75 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyWaveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -39,26 +43,26 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore class WaveformOption(Enum): - PERIODIC_CLOCK = "Periodic Clock" # eslint-disable-line no-eval - SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" # eslint-disable-line no-eval - PRBS = "PRBS" # eslint-disable-line no-eval - PRBS_PERIODIC = "PRBS (Periodic)" # eslint-disable-line no-eval - IMPORTED = "Imported" # eslint-disable-line no-eval + PERIODIC_CLOCK = "Periodic Clock" # eslint-disable-line no-eval + SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" # eslint-disable-line no-eval + PRBS = "PRBS" # eslint-disable-line no-eval + PRBS_PERIODIC = "PRBS (Periodic)" # eslint-disable-line no-eval + IMPORTED = "Imported" # eslint-disable-line no-eval @property def waveform(self) -> WaveformOption: """Waveform Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Waveform") val = self.WaveformOption[val] - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -69,7 +73,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -80,7 +84,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def channel_spacing(self) -> float: @@ -91,7 +95,7 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def clock_duty_cycle(self) -> float: @@ -101,7 +105,7 @@ def clock_duty_cycle(self) -> float: Value should be between 0.001 and 1. """ val = self._get_property("Clock Duty Cycle") - return val # type: ignore + return val # type: ignore @property def clock_risefall_time(self) -> float: @@ -112,22 +116,22 @@ def clock_risefall_time(self) -> float: """ val = self._get_property("Clock Rise/Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore class SpreadingTypeOption(Enum): - LOW_SPREAD = "Low Spread" # eslint-disable-line no-eval - CENTER_SPREAD = "Center Spread" # eslint-disable-line no-eval - HIGH_SPREAD = "High Spread" # eslint-disable-line no-eval + LOW_SPREAD = "Low Spread" # eslint-disable-line no-eval + CENTER_SPREAD = "Center Spread" # eslint-disable-line no-eval + HIGH_SPREAD = "High Spread" # eslint-disable-line no-eval @property def spreading_type(self) -> SpreadingTypeOption: """Spreading Type Type of spreading employed by the Spread Spectrum Clock - """ + """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] - return val # type: ignore + return val # type: ignore @property def spread_percentage(self) -> float: @@ -137,7 +141,7 @@ def spread_percentage(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Spread Percentage") - return val # type: ignore + return val # type: ignore @property def imported_spectrum(self) -> str: @@ -145,16 +149,16 @@ def imported_spectrum(self) -> str: Value should be a full file path. """ val = self._get_property("Imported Spectrum") - return val # type: ignore + return val # type: ignore @property def raw_data_format(self) -> str: """Raw Data Format Format of the imported raw data - """ + """ val = self._get_property("Raw Data Format") - return val # type: ignore + return val # type: ignore @property def system_impedance(self) -> float: @@ -165,7 +169,7 @@ def system_impedance(self) -> float: """ val = self._get_property("System Impedance") val = self._convert_from_internal_units(float(val), "Resistance") - return val # type: ignore + return val # type: ignore @property def advanced_extraction_params(self) -> bool: @@ -175,7 +179,7 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return val # type: ignore + return val # type: ignore @property def nb_window_size(self) -> float: @@ -186,7 +190,7 @@ def nb_window_size(self) -> float: Value should be greater than 3. """ val = self._get_property("NB Window Size") - return val # type: ignore + return val # type: ignore @property def bb_smoothing_factor(self) -> float: @@ -196,7 +200,7 @@ def bb_smoothing_factor(self) -> float: Value should be greater than 1. """ val = self._get_property("BB Smoothing Factor") - return val # type: ignore + return val # type: ignore @property def nb_detector_threshold(self) -> float: @@ -206,21 +210,21 @@ def nb_detector_threshold(self) -> float: Value should be between 2 and 10. """ val = self._get_property("NB Detector Threshold") - return val # type: ignore + return val # type: ignore class AlgorithmOption(Enum): - FFT = "FFT" # eslint-disable-line no-eval - FOURIER_TRANSFORM = "Fourier Transform" # eslint-disable-line no-eval + FFT = "FFT" # eslint-disable-line no-eval + FOURIER_TRANSFORM = "Fourier Transform" # eslint-disable-line no-eval @property def algorithm(self) -> AlgorithmOption: """Algorithm Algorithm used to transform the imported time domain spectrum - """ + """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] - return val # type: ignore + return val # type: ignore @property def start_time(self) -> float: @@ -231,17 +235,17 @@ def start_time(self) -> float: """ val = self._get_property("Start Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def stop_time(self) -> float: """Stop Time Final time of the imported time domain spectrum - """ + """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def max_frequency(self) -> float: @@ -252,28 +256,28 @@ def max_frequency(self) -> float: """ val = self._get_property("Max Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class WindowTypeOption(Enum): - RECTANGULAR = "Rectangular" # eslint-disable-line no-eval - BARTLETT = "Bartlett" # eslint-disable-line no-eval - BLACKMAN = "Blackman" # eslint-disable-line no-eval - HAMMING = "Hamming" # eslint-disable-line no-eval - HANNING = "Hanning" # eslint-disable-line no-eval - KAISER = "Kaiser" # eslint-disable-line no-eval - LANZCOS = "Lanzcos" # eslint-disable-line no-eval - WELCH = "Welch" # eslint-disable-line no-eval - WEBER = "Weber" # eslint-disable-line no-eval + RECTANGULAR = "Rectangular" # eslint-disable-line no-eval + BARTLETT = "Bartlett" # eslint-disable-line no-eval + BLACKMAN = "Blackman" # eslint-disable-line no-eval + HAMMING = "Hamming" # eslint-disable-line no-eval + HANNING = "Hanning" # eslint-disable-line no-eval + KAISER = "Kaiser" # eslint-disable-line no-eval + LANZCOS = "Lanzcos" # eslint-disable-line no-eval + WELCH = "Welch" # eslint-disable-line no-eval + WEBER = "Weber" # eslint-disable-line no-eval @property def window_type(self) -> WindowTypeOption: """Window Type Windowing scheme used for importing time domain spectrum - """ + """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] - return val # type: ignore + return val # type: ignore @property def kaiser_parameter(self) -> float: @@ -283,7 +287,7 @@ def kaiser_parameter(self) -> float: Value should be greater than 0. """ val = self._get_property("Kaiser Parameter") - return val # type: ignore + return val # type: ignore @property def adjust_coherent_gain(self) -> bool: @@ -293,7 +297,7 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return val # type: ignore + return val # type: ignore @property def data_rate(self) -> float: @@ -304,7 +308,7 @@ def data_rate(self) -> float: """ val = self._get_property("Data Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @property def num_of_bits(self) -> int: @@ -314,7 +318,7 @@ def num_of_bits(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Num of Bits") - return val # type: ignore + return val # type: ignore @property def use_envelope(self) -> bool: @@ -324,7 +328,7 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return val # type: ignore + return val # type: ignore @property def min_ptsnull(self) -> int: @@ -334,7 +338,7 @@ def min_ptsnull(self) -> int: Value should be between 2 and 50. """ val = self._get_property("Min Pts/Null") - return val # type: ignore + return val # type: ignore @property def delay_skew(self) -> float: @@ -345,5 +349,4 @@ def delay_skew(self) -> float: """ val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py index e05f6545490..85db4222e95 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ResultPlotNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,15 +46,13 @@ def title(self) -> str: """Title Enter title at the top of the plot, room will be made for it - """ + """ val = self._get_property("Title") - return val # type: ignore + return val # type: ignore @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) @property def title_font(self): @@ -60,13 +62,11 @@ def title_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Title Font") - return val # type: ignore + return val # type: ignore @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -76,13 +76,11 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return val # type: ignore + return val # type: ignore @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) @property def legend_font(self): @@ -92,13 +90,11 @@ def legend_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Legend Font") - return val # type: ignore + return val # type: ignore @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) @property def show_emi_thresholds(self) -> bool: @@ -108,13 +104,11 @@ def show_emi_thresholds(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show EMI Thresholds") - return val # type: ignore + return val # type: ignore @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show EMI Thresholds={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show EMI Thresholds={value}"]) @property def display_cad_overlay(self) -> bool: @@ -124,13 +118,11 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return val # type: ignore + return val # type: ignore @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -140,28 +132,24 @@ def opacity(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Opacity") - return val # type: ignore + return val # type: ignore @opacity.setter - def opacity(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Opacity={value}"]) + def opacity(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset Adjust vertical position of CAD model overlay - """ + """ val = self._get_property("Vertical Offset") - return val # type: ignore + return val # type: ignore @vertical_offset.setter - def vertical_offset(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Offset={value}"]) + def vertical_offset(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -172,13 +160,11 @@ def range_axis_rotation(self) -> float: Value should be between -180 and 180. """ val = self._get_property("Range Axis Rotation") - return val # type: ignore + return val # type: ignore @range_axis_rotation.setter - def range_axis_rotation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -188,73 +174,63 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return val # type: ignore + return val # type: ignore @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min Set lower extent of horizontal axis - """ + """ val = self._get_property("X-axis Min") - return val # type: ignore + return val # type: ignore @x_axis_min.setter - def x_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Min={value}"]) + def x_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max Set upper extent of horizontal axis - """ + """ val = self._get_property("X-axis Max") - return val # type: ignore + return val # type: ignore @x_axis_max.setter - def x_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Max={value}"]) + def x_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min Set lower extent of vertical axis - """ + """ val = self._get_property("Y-axis Min") - return val # type: ignore + return val # type: ignore @y_axis_min.setter - def y_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Min={value}"]) + def y_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max Set upper extent of vertical axis - """ + """ val = self._get_property("Y-axis Max") - return val # type: ignore + return val # type: ignore @y_axis_max.setter - def y_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Max={value}"]) + def y_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -265,13 +241,11 @@ def y_axis_range(self) -> float: Value should be greater than 0. """ val = self._get_property("Y-axis Range") - return val # type: ignore + return val # type: ignore @y_axis_range.setter - def y_axis_range(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Range={value}"]) + def y_axis_range(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -281,13 +255,11 @@ def max_major_ticks_x(self) -> int: Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks X") - return val # type: ignore + return val # type: ignore @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -298,13 +270,11 @@ def max_minor_ticks_x(self) -> int: Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks X") - return val # type: ignore + return val # type: ignore @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -314,13 +284,11 @@ def max_major_ticks_y(self) -> int: Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks Y") - return val # type: ignore + return val # type: ignore @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -331,13 +299,11 @@ def max_minor_ticks_y(self) -> int: Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks Y") - return val # type: ignore + return val # type: ignore @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -347,13 +313,11 @@ def axis_label_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Label Font") - return val # type: ignore + return val # type: ignore @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -363,37 +327,35 @@ def axis_tick_label_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Tick Label Font") - return val # type: ignore + return val # type: ignore @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style Select line style of major-tick grid lines - """ + """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] + ) @property def major_grid_color(self): @@ -403,37 +365,35 @@ def major_grid_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Major Grid Color") - return val # type: ignore + return val # type: ignore @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style Select line style of minor-tick grid lines - """ + """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val] - return val # type: ignore + return val # type: ignore @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] + ) @property def minor_grid_color(self): @@ -443,13 +403,11 @@ def minor_grid_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Minor Grid Color") - return val # type: ignore + return val # type: ignore @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -459,35 +417,33 @@ def background_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): - HERTZ = "hertz" # eslint-disable-line no-eval - KILOHERTZ = "kilohertz" # eslint-disable-line no-eval - MEGAHERTZ = "megahertz" # eslint-disable-line no-eval - GIGAHERTZ = "gigahertz" # eslint-disable-line no-eval + HERTZ = "hertz" # eslint-disable-line no-eval + KILOHERTZ = "kilohertz" # eslint-disable-line no-eval + MEGAHERTZ = "megahertz" # eslint-disable-line no-eval + GIGAHERTZ = "gigahertz" # eslint-disable-line no-eval @property def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit Units to use for plotting broadband power densities - """ + """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val] - return val # type: ignore + return val # type: ignore @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power for Plots Unit={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] + ) @property def bb_power_bandwidth(self) -> float: @@ -498,14 +454,12 @@ def bb_power_bandwidth(self) -> float: """ val = self._get_property("BB Power Bandwidth") val = self._convert_from_internal_units(float(val), "") - return val # type: ignore + return val # type: ignore @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value : float|str): + def bb_power_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -515,11 +469,8 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return val # type: ignore + return val # type: ignore @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Log Scale={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py index 53d5e33e1b7..127a9a75166 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class RfSystemGroup(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -43,13 +46,11 @@ def enable_passive_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Passive Noise") - return val # type: ignore + return val # type: ignore @enable_passive_noise.setter def enable_passive_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Passive Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Passive Noise={value}"]) @property def enforce_thermal_noise_floor(self) -> bool: @@ -60,11 +61,10 @@ def enforce_thermal_noise_floor(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enforce Thermal Noise Floor") - return val # type: ignore + return val # type: ignore @enforce_thermal_noise_floor.setter def enforce_thermal_noise_floor(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enforce Thermal Noise Floor={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Enforce Thermal Noise Floor={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py index a66376fb44c..be50a11f9a5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -50,7 +54,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -60,38 +64,36 @@ def source_file(self) -> str: Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def receive_frequency(self) -> float: """Receive Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class MeasurementModeOption(Enum): - AUDIO_SINAD = "Audio SINAD" # eslint-disable-line no-eval - DIGITAL_BER = "Digital BER" # eslint-disable-line no-eval - GPS_CNR = "GPS CNR" # eslint-disable-line no-eval + AUDIO_SINAD = "Audio SINAD" # eslint-disable-line no-eval + DIGITAL_BER = "Digital BER" # eslint-disable-line no-eval + GPS_CNR = "GPS CNR" # eslint-disable-line no-eval @property def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode Defines the mode for the receiver measurement - """ + """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val] - return val # type: ignore + return val # type: ignore @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Mode={value.value}"]) @property def sinad_threshold(self) -> float: @@ -101,13 +103,11 @@ def sinad_threshold(self) -> float: Value should be between 5 and 20. """ val = self._get_property("SINAD Threshold") - return val # type: ignore + return val # type: ignore @sinad_threshold.setter - def sinad_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SINAD Threshold={value}"]) + def sinad_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SINAD Threshold={value}"]) @property def gps_cnr_threshold(self) -> float: @@ -117,13 +117,11 @@ def gps_cnr_threshold(self) -> float: Value should be between 15 and 30. """ val = self._get_property("GPS CNR Threshold") - return val # type: ignore + return val # type: ignore @gps_cnr_threshold.setter - def gps_cnr_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"GPS CNR Threshold={value}"]) + def gps_cnr_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GPS CNR Threshold={value}"]) @property def ber_threshold(self) -> float: @@ -133,13 +131,11 @@ def ber_threshold(self) -> float: Value should be between -12 and -1. """ val = self._get_property("BER Threshold") - return val # type: ignore + return val # type: ignore @ber_threshold.setter - def ber_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BER Threshold={value}"]) + def ber_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BER Threshold={value}"]) @property def default_intended_power(self) -> bool: @@ -149,13 +145,11 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return val # type: ignore + return val # type: ignore @default_intended_power.setter def default_intended_power(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Default Intended Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Default Intended Power={value}"]) @property def intended_signal_power(self) -> float: @@ -165,13 +159,11 @@ def intended_signal_power(self) -> float: Value should be between -140 and -50. """ val = self._get_property("Intended Signal Power") - return val # type: ignore + return val # type: ignore @intended_signal_power.setter - def intended_signal_power(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Intended Signal Power={value}"]) + def intended_signal_power(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Intended Signal Power={value}"]) @property def freq_deviation(self) -> float: @@ -182,14 +174,12 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation.setter - def freq_deviation(self, value : float|str): + def freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) @property def modulation_depth(self) -> float: @@ -199,13 +189,11 @@ def modulation_depth(self) -> float: Value should be between 10 and 100. """ val = self._get_property("Modulation Depth") - return val # type: ignore + return val # type: ignore @modulation_depth.setter - def modulation_depth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation Depth={value}"]) + def modulation_depth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Depth={value}"]) @property def measure_selectivity(self) -> bool: @@ -215,13 +203,11 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return val # type: ignore + return val # type: ignore @measure_selectivity.setter def measure_selectivity(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Selectivity={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Selectivity={value}"]) @property def measure_mixer_products(self) -> bool: @@ -231,13 +217,11 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return val # type: ignore + return val # type: ignore @measure_mixer_products.setter def measure_mixer_products(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Mixer Products={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Mixer Products={value}"]) @property def max_rf_order(self) -> int: @@ -247,13 +231,11 @@ def max_rf_order(self) -> int: Value should be greater than 1. """ val = self._get_property("Max RF Order") - return val # type: ignore + return val # type: ignore @max_rf_order.setter def max_rf_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max RF Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max RF Order={value}"]) @property def max_lo_order(self) -> int: @@ -263,13 +245,11 @@ def max_lo_order(self) -> int: Value should be greater than 1. """ val = self._get_property("Max LO Order") - return val # type: ignore + return val # type: ignore @max_lo_order.setter def max_lo_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max LO Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max LO Order={value}"]) @property def include_if(self) -> bool: @@ -279,13 +259,11 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return val # type: ignore + return val # type: ignore @include_if.setter def include_if(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include IF={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include IF={value}"]) @property def measure_saturation(self) -> bool: @@ -295,13 +273,11 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return val # type: ignore + return val # type: ignore @measure_saturation.setter def measure_saturation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Saturation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Saturation={value}"]) @property def use_ams_limits(self) -> bool: @@ -311,13 +287,11 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -328,14 +302,12 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -346,14 +318,12 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def samples(self) -> int: @@ -363,13 +333,11 @@ def samples(self) -> int: Value should be between 2 and 100. """ val = self._get_property("Samples") - return val # type: ignore + return val # type: ignore @samples.setter def samples(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Samples={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Samples={value}"]) @property def exclude_mixer_products_below_noise(self) -> bool: @@ -379,20 +347,19 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return val # type: ignore + return val # type: ignore @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Exclude Mixer Products Below Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Exclude Mixer Products Below Noise={value}"] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py index 0916ee71434..f372b5a08d6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxMixerProductNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -45,32 +49,32 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class MixerProductTaperOption(Enum): - CONSTANT = "Constant" # eslint-disable-line no-eval - MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval - DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval + CONSTANT = "Constant" # eslint-disable-line no-eval + MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval + DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval @property def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper Taper for setting amplitude of mixer products - """ + """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val] - return val # type: ignore + return val # type: ignore @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Taper={value.value}"] + ) @property def mixer_product_susceptibility(self) -> float: @@ -80,13 +84,13 @@ def mixer_product_susceptibility(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Mixer Product Susceptibility") - return val # type: ignore + return val # type: ignore @mixer_product_susceptibility.setter - def mixer_product_susceptibility(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Susceptibility={value}"]) + def mixer_product_susceptibility(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Susceptibility={value}"] + ) @property def spurious_rejection(self) -> float: @@ -96,13 +100,11 @@ def spurious_rejection(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Spurious Rejection") - return val # type: ignore + return val # type: ignore @spurious_rejection.setter - def spurious_rejection(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spurious Rejection={value}"]) + def spurious_rejection(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spurious Rejection={value}"]) @property def minimum_tuning_frequency(self) -> float: @@ -113,14 +115,12 @@ def minimum_tuning_frequency(self) -> float: """ val = self._get_property("Minimum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value : float|str): + def minimum_tuning_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minimum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Tuning Frequency={value}"]) @property def maximum_tuning_frequency(self) -> float: @@ -131,14 +131,12 @@ def maximum_tuning_frequency(self) -> float: """ val = self._get_property("Maximum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value : float|str): + def maximum_tuning_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum Tuning Frequency={value}"]) @property def mixer_product_slope(self) -> float: @@ -149,13 +147,11 @@ def mixer_product_slope(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Mixer Product Slope") - return val # type: ignore + return val # type: ignore @mixer_product_slope.setter - def mixer_product_slope(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Slope={value}"]) + def mixer_product_slope(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Slope={value}"]) @property def mixer_product_intercept(self) -> float: @@ -165,13 +161,11 @@ def mixer_product_intercept(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Mixer Product Intercept") - return val # type: ignore + return val # type: ignore @mixer_product_intercept.setter - def mixer_product_intercept(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Intercept={value}"]) + def mixer_product_intercept(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Intercept={value}"]) @property def bandwidth_80_db(self) -> float: @@ -183,14 +177,12 @@ def bandwidth_80_db(self) -> float: """ val = self._get_property("Bandwidth 80 dB") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_80_db.setter - def bandwidth_80_db(self, value : float|str): + def bandwidth_80_db(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 80 dB={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 80 dB={value}"]) @property def image_rejection(self) -> float: @@ -200,13 +192,11 @@ def image_rejection(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Image Rejection") - return val # type: ignore + return val # type: ignore @image_rejection.setter - def image_rejection(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Image Rejection={value}"]) + def image_rejection(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Image Rejection={value}"]) @property def maximum_rf_harmonic_order(self) -> int: @@ -216,13 +206,13 @@ def maximum_rf_harmonic_order(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Maximum RF Harmonic Order") - return val # type: ignore + return val # type: ignore @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum RF Harmonic Order={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Maximum RF Harmonic Order={value}"] + ) @property def maximum_lo_harmonic_order(self) -> int: @@ -232,34 +222,32 @@ def maximum_lo_harmonic_order(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Maximum LO Harmonic Order") - return val # type: ignore + return val # type: ignore @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum LO Harmonic Order={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Maximum LO Harmonic Order={value}"] + ) class MixingModeOption(Enum): - LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" # eslint-disable-line no-eval - LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" # eslint-disable-line no-eval - LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" # eslint-disable-line no-eval @property def mixing_mode(self) -> MixingModeOption: """Mixing Mode Specifies whether the IF frequency is > or < RF channel frequency - """ + """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val] - return val # type: ignore + return val # type: ignore @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixing Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixing Mode={value.value}"]) @property def first_if_frequency(self): @@ -269,68 +257,61 @@ def first_if_frequency(self): Value should be a mathematical expression. """ val = self._get_property("First IF Frequency") - return val # type: ignore + return val # type: ignore @first_if_frequency.setter def first_if_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First IF Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First IF Frequency={value}"]) @property def rf_transition_frequency(self) -> float: """RF Transition Frequency RF Frequency Transition point - """ + """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @rf_transition_frequency.setter - def rf_transition_frequency(self, value : float|str): + def rf_transition_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"RF Transition Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"RF Transition Frequency={value}"]) class UseHighLOOption(Enum): - ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" # eslint-disable-line no-eval - BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" # eslint-disable-line no-eval + ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" # eslint-disable-line no-eval + BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" # eslint-disable-line no-eval @property def use_high_lo(self) -> UseHighLOOption: """Use High LO Use High LO above/below the transition frequency - """ + """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val] - return val # type: ignore + return val # type: ignore @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use High LO={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use High LO={value.value}"]) class MixerProductTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units Specifies the units for the Mixer Products - """ + """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Table Units={value.value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py index d425bb22dc3..517ac9e5fa1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class RxSaturationNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,9 +47,8 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py index 8545b2a6b4a..b15d9e67755 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class RxSelectivityNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,7 +47,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -59,11 +62,8 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return val # type: ignore + return val # type: ignore @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Arithmetic Mean={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Arithmetic Mean={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py index 8bf11693f80..3e7b0e1f447 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,13 +48,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -62,29 +66,26 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spur Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py index 923966d1925..4f1d38c9ac3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxSusceptibilityProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,49 +41,45 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SensitivityUnitsOption(Enum): - DBM = "dBm" # eslint-disable-line no-eval - DBUV = "dBuV" # eslint-disable-line no-eval - MILLIWATTS = "milliwatts" # eslint-disable-line no-eval - MICROVOLTS = "microvolts" # eslint-disable-line no-eval + DBM = "dBm" # eslint-disable-line no-eval + DBUV = "dBuV" # eslint-disable-line no-eval + MILLIWATTS = "milliwatts" # eslint-disable-line no-eval + MICROVOLTS = "microvolts" # eslint-disable-line no-eval @property def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units Units to use for the Rx Sensitivity - """ + """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val] - return val # type: ignore + return val # type: ignore @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sensitivity Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sensitivity Units={value.value}"]) @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr Received signal power level at the Rx's antenna terminal Value should be between -1000 and 1000. """ val = self._get_property("Min. Receive Signal Pwr ") - return val # type: ignore + return val # type: ignore @min_receive_signal_pwr_.setter - def min_receive_signal_pwr_(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min. Receive Signal Pwr ={value}"]) + def min_receive_signal_pwr_(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min. Receive Signal Pwr ={value}"]) @property def snr_at_rx_signal_pwr(self) -> float: @@ -90,13 +90,11 @@ def snr_at_rx_signal_pwr(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("SNR at Rx Signal Pwr") - return val # type: ignore + return val # type: ignore @snr_at_rx_signal_pwr.setter - def snr_at_rx_signal_pwr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SNR at Rx Signal Pwr={value}"]) + def snr_at_rx_signal_pwr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR at Rx Signal Pwr={value}"]) @property def processing_gain(self) -> float: @@ -106,13 +104,11 @@ def processing_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Processing Gain") - return val # type: ignore + return val # type: ignore @processing_gain.setter - def processing_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Processing Gain={value}"]) + def processing_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Processing Gain={value}"]) @property def apply_pg_to_narrowband_only(self) -> bool: @@ -123,13 +119,13 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return val # type: ignore + return val # type: ignore @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Apply PG to Narrowband Only={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Apply PG to Narrowband Only={value}"] + ) @property def saturation_level(self) -> float: @@ -140,14 +136,12 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @saturation_level.setter - def saturation_level(self, value : float|str): + def saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) @property def rx_noise_figure(self) -> float: @@ -157,47 +151,43 @@ def rx_noise_figure(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rx Noise Figure") - return val # type: ignore + return val # type: ignore @rx_noise_figure.setter - def rx_noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rx Noise Figure={value}"]) + def rx_noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rx Noise Figure={value}"]) @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity Rx minimum sensitivity level (dBm) Value should be between -1000 and 1000. """ val = self._get_property("Receiver Sensitivity ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @receiver_sensitivity_.setter - def receiver_sensitivity_(self, value : float|str): + def receiver_sensitivity_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Receiver Sensitivity ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver Sensitivity ={value}"]) @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity SNR or SINAD at the specified sensitivity level Value should be between -1000 and 1000. """ val = self._get_property("SNR/SINAD at Sensitivity ") - return val # type: ignore + return val # type: ignore @snrsinad_at_sensitivity_.setter - def snrsinad_at_sensitivity_(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SNR/SINAD at Sensitivity ={value}"]) + def snrsinad_at_sensitivity_(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"SNR/SINAD at Sensitivity ={value}"] + ) @property def perform_rx_intermod_analysis(self) -> bool: @@ -207,13 +197,13 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return val # type: ignore + return val # type: ignore @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Rx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Rx Intermod Analysis={value}"] + ) @property def amplifier_saturation_level(self) -> float: @@ -224,32 +214,30 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Rx's 1 dB Compression Point - total power > P1dB saturates the receiver Value should be between -1000 and 1000. """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -260,14 +248,12 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def max_intermod_order(self) -> int: @@ -277,11 +263,8 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py index 95c7e034369..fec8f27d86e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SamplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,11 +40,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Min: + "Min: Value should be greater than 1. - "Max: + "Max: Value should be greater than 1. """ return self._get_table_data() @@ -50,25 +54,23 @@ def table_data(self, value): self._set_table_data(value) class SamplingTypeOption(Enum): - SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" # eslint-disable-line no-eval - RANDOM_SAMPLING = "Random Sampling" # eslint-disable-line no-eval - UNIFORM_SAMPLING = "Uniform Sampling" # eslint-disable-line no-eval + SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" # eslint-disable-line no-eval + RANDOM_SAMPLING = "Random Sampling" # eslint-disable-line no-eval + UNIFORM_SAMPLING = "Uniform Sampling" # eslint-disable-line no-eval @property def sampling_type(self) -> SamplingTypeOption: """Sampling Type Sampling to apply to this configuration - """ + """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val] - return val # type: ignore + return val # type: ignore @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sampling Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sampling Type={value.value}"]) @property def specify_percentage(self) -> bool: @@ -79,13 +81,11 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return val # type: ignore + return val # type: ignore @specify_percentage.setter def specify_percentage(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Specify Percentage={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Specify Percentage={value}"]) @property def percentage_of_channels(self) -> float: @@ -95,13 +95,11 @@ def percentage_of_channels(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Percentage of Channels") - return val # type: ignore + return val # type: ignore @percentage_of_channels.setter - def percentage_of_channels(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Percentage of Channels={value}"]) + def percentage_of_channels(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percentage of Channels={value}"]) @property def max__channelsrangeband(self) -> int: @@ -111,13 +109,13 @@ def max__channelsrangeband(self) -> int: Value should be between 1 and 100000. """ val = self._get_property("Max # Channels/Range/Band") - return val # type: ignore + return val # type: ignore @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max # Channels/Range/Band={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Max # Channels/Range/Band={value}"] + ) @property def seed(self) -> int: @@ -127,13 +125,11 @@ def seed(self) -> int: Value should be greater than 0. """ val = self._get_property("Seed") - return val # type: ignore + return val # type: ignore @seed.setter def seed(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Seed={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Seed={value}"]) @property def total_tx_channels(self) -> int: @@ -141,9 +137,9 @@ def total_tx_channels(self) -> int: Total number of transmit channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Tx Channels") - return val # type: ignore + return val # type: ignore @property def total_rx_channels(self) -> int: @@ -151,16 +147,15 @@ def total_rx_channels(self) -> int: Total number of receive channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Rx Channels") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py index 841ec75d699..a8ab1c12232 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SceneGroupNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -59,13 +63,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -75,13 +79,11 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -91,33 +93,29 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val] - return val # type: ignore + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -127,13 +125,11 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -143,13 +139,11 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def show_axes(self) -> bool: @@ -159,13 +153,11 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def box_color(self): @@ -175,26 +167,21 @@ def box_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Box Color") - return val # type: ignore + return val # type: ignore @box_color.setter def box_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Box Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Box Color={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py index d69b91e9586..4abcdb758dd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SelectivityTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -52,15 +56,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -70,13 +72,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -86,52 +86,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -141,13 +135,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -157,46 +149,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -206,13 +194,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -222,13 +208,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -238,13 +222,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -255,11 +237,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py index 9969d3ab69b..4d58635f57b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class SolutionCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,13 +45,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -58,13 +59,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -74,26 +73,21 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py index b73617918b3..db51fb270a8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class SolutionsNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -42,11 +45,8 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py index 3905d48f751..967d83d1787 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SpurTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -51,15 +55,13 @@ def channel_frequency(self): """Channel Frequency Select band channel frequency to display - """ + """ val = self._get_property("Channel Frequency") - return val # type: ignore + return val # type: ignore @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: @@ -67,10 +69,10 @@ def transmit_frequency(self) -> float: The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset) - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def data_source(self): @@ -78,15 +80,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,13 +96,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -112,52 +110,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -167,13 +159,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -183,46 +173,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -232,13 +218,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -248,13 +232,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -264,13 +246,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -281,11 +261,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py index 791c99f4bc6..8f325267a03 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TRSwitchTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -70,13 +72,11 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -84,15 +84,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -102,13 +100,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -118,52 +114,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -173,13 +163,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -189,46 +177,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -238,13 +222,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -254,13 +236,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -270,13 +250,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -287,11 +265,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index 68499529f6e..44fed3f61d4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TR_Switch(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -49,13 +53,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,68 +67,62 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TxPortOption(Enum): - PORT_1 = "Port 1" # eslint-disable-line no-eval - PORT_2 = "Port 2" # eslint-disable-line no-eval + PORT_1 = "Port 1" # eslint-disable-line no-eval + PORT_2 = "Port 2" # eslint-disable-line no-eval @property def tx_port(self) -> TxPortOption: """Tx Port Specifies which port on the TR Switch is part of the Tx path. - """ + """ val = self._get_property("Tx Port") val = self.TxPortOption[val] - return val # type: ignore + return val # type: ignore @tx_port.setter def tx_port(self, value: TxPortOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Port={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Port={value.value}"]) class CommonPortLocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def common_port_location(self) -> CommonPortLocationOption: """Common Port Location Defines the orientation of the tr switch. - """ + """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val] - return val # type: ignore + return val # type: ignore @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Common Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Common Port Location={value.value}"] + ) @property def insertion_loss(self) -> float: @@ -136,13 +132,11 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_isolation(self) -> bool: @@ -153,13 +147,11 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val # type: ignore + return val # type: ignore @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -169,13 +161,11 @@ def isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @isolation.setter - def isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Isolation={value}"]) + def isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -186,13 +176,11 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -202,13 +190,11 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -219,14 +205,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -237,14 +221,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -255,14 +237,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -273,12 +253,9 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index 7976875f3ce..95965e7041f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Terminator(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = True @@ -49,13 +53,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,32 +67,28 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -98,36 +96,32 @@ def type(self) -> TypeOption: Type of terminator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class PortLocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_location(self) -> PortLocationOption: """Port Location Defines the orientation of the terminator. - """ + """ val = self._get_property("Port Location") val = self.PortLocationOption[val] - return val # type: ignore + return val # type: ignore @port_location.setter def port_location(self, value: PortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port Location={value.value}"]) @property def vswr(self) -> float: @@ -139,20 +133,17 @@ def vswr(self) -> float: Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @vswr.setter - def vswr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"VSWR={value}"]) + def vswr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py index e5d4b50ed60..e9f4b01e1be 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TestNoiseTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -70,13 +72,11 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -84,15 +84,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -102,13 +100,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -118,52 +114,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -173,13 +163,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -189,46 +177,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -238,13 +222,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -254,13 +236,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -270,13 +250,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -287,13 +265,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -304,14 +280,12 @@ def frequency_1(self) -> float: """ val = self._get_property("Frequency 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_1.setter - def frequency_1(self, value : float|str): + def frequency_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -322,14 +296,12 @@ def amplitude_1(self) -> float: """ val = self._get_property("Amplitude 1") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_1.setter - def amplitude_1(self, value : float|str): + def amplitude_1(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -340,14 +312,12 @@ def bandwidth_1(self) -> float: """ val = self._get_property("Bandwidth 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_1.setter - def bandwidth_1(self, value : float|str): + def bandwidth_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -358,14 +328,12 @@ def frequency_2(self) -> float: """ val = self._get_property("Frequency 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_2.setter - def frequency_2(self, value : float|str): + def frequency_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -376,14 +344,12 @@ def amplitude_2(self) -> float: """ val = self._get_property("Amplitude 2") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_2.setter - def amplitude_2(self, value : float|str): + def amplitude_2(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -394,14 +360,12 @@ def bandwidth_2(self) -> float: """ val = self._get_property("Bandwidth 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_2.setter - def bandwidth_2(self, value : float|str): + def bandwidth_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -411,11 +375,8 @@ def noise_level(self) -> float: Value should be between -200 and 0. """ val = self._get_property("Noise Level") - return val # type: ignore + return val # type: ignore @noise_level.setter - def noise_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Level={value}"]) - + def noise_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py index cce333ffcc5..930244277ac 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py @@ -1,30 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class TopLevelSimulation(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False EmitNode.__init__(self, oDesign, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py index 948ae1a9029..b6a0b67e7b9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class TouchstoneCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -53,13 +56,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -69,13 +70,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -85,28 +84,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def filename(self) -> str: @@ -116,22 +111,20 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File Coupling data generated by Savant and exported as a matched file - """ + """ val = self._get_property("Savant Matched Coupling File") - return val # type: ignore + return val # type: ignore @property def enable_em_isolation(self) -> bool: @@ -141,13 +134,11 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return val # type: ignore + return val # type: ignore @enable_em_isolation.setter def enable_em_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable EM Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable EM Isolation={value}"]) @property def port_antenna_assignment(self): @@ -155,28 +146,23 @@ def port_antenna_assignment(self): Maps each port in the coupling file to an antenna in the project "A list of values." - """ + """ val = self._get_property("Port-Antenna Assignment") - return val # type: ignore + return val # type: ignore @port_antenna_assignment.setter def port_antenna_assignment(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port-Antenna Assignment={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port-Antenna Assignment={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py index 3443fb04536..e3123abab19 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TunableTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -70,30 +72,26 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def frequency(self) -> float: """Frequency Tunable filter center frequency - """ + """ val = self._get_property("Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency.setter - def frequency(self, value : float|str): + def frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency={value}"]) @property def data_source(self): @@ -101,15 +99,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -119,13 +115,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -135,52 +129,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -190,13 +178,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -206,46 +192,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -255,13 +237,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -271,13 +251,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -287,13 +265,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -304,11 +280,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py index 8e02be17289..df4a42a813f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def ground_reflection_coeff(self) -> float: @@ -147,13 +139,11 @@ def ground_reflection_coeff(self) -> float: Value should be between -100 and 100. """ val = self._get_property("Ground Reflection Coeff.") - return val # type: ignore + return val # type: ignore @ground_reflection_coeff.setter - def ground_reflection_coeff(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ground Reflection Coeff.={value}"]) + def ground_reflection_coeff(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ground Reflection Coeff.={value}"]) @property def pointspeak(self) -> int: @@ -163,13 +153,11 @@ def pointspeak(self) -> int: Value should be between 3 and 100. """ val = self._get_property("Points/Peak") - return val # type: ignore + return val # type: ignore @pointspeak.setter def pointspeak(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Points/Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Points/Peak={value}"]) @property def custom_fading_margin(self) -> float: @@ -180,13 +168,11 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -197,13 +183,11 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -214,35 +198,31 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -253,13 +233,11 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -269,13 +247,11 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -285,13 +261,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -302,13 +276,11 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -318,13 +290,11 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -335,13 +305,11 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -352,13 +320,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -368,13 +336,11 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -384,13 +350,11 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -400,11 +364,10 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py index 4f75fba13df..c8e7df59e01 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TwoToneTraceNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -70,13 +72,11 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -84,15 +84,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -102,13 +100,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -118,52 +114,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -173,13 +163,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -189,46 +177,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -238,13 +222,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -254,13 +236,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -270,13 +250,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -287,13 +265,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -304,14 +280,12 @@ def frequency_1(self) -> float: """ val = self._get_property("Frequency 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_1.setter - def frequency_1(self, value : float|str): + def frequency_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -322,14 +296,12 @@ def amplitude_1(self) -> float: """ val = self._get_property("Amplitude 1") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_1.setter - def amplitude_1(self, value : float|str): + def amplitude_1(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -340,14 +312,12 @@ def bandwidth_1(self) -> float: """ val = self._get_property("Bandwidth 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_1.setter - def bandwidth_1(self, value : float|str): + def bandwidth_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -358,14 +328,12 @@ def frequency_2(self) -> float: """ val = self._get_property("Frequency 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_2.setter - def frequency_2(self, value : float|str): + def frequency_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -376,14 +344,12 @@ def amplitude_2(self) -> float: """ val = self._get_property("Amplitude 2") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_2.setter - def amplitude_2(self, value : float|str): + def amplitude_2(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -394,14 +360,12 @@ def bandwidth_2(self) -> float: """ val = self._get_property("Bandwidth 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_2.setter - def bandwidth_2(self, value : float|str): + def bandwidth_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -411,11 +375,8 @@ def noise_level(self) -> float: Value should be between -200 and 0. """ val = self._get_property("Noise Level") - return val # type: ignore + return val # type: ignore @noise_level.setter - def noise_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Level={value}"]) - + def noise_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py index 80d261fb2e8..8127489f48a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxBbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -46,9 +50,9 @@ def delete(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): Value should be between -200 and 150. """ return self._get_table_data() @@ -60,33 +64,31 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class NoiseBehaviorOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE_BANDWIDTH = "Relative (Bandwidth)" # eslint-disable-line no-eval - RELATIVE_OFFSET = "Relative (Offset)" # eslint-disable-line no-eval - EQUATION = "Equation" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE_BANDWIDTH = "Relative (Bandwidth)" # eslint-disable-line no-eval + RELATIVE_OFFSET = "Relative (Offset)" # eslint-disable-line no-eval + EQUATION = "Equation" # eslint-disable-line no-eval @property def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior Specifies the behavior of the parametric noise profile - """ + """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val] - return val # type: ignore + return val # type: ignore @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Behavior={value.value}"]) @property def use_log_linear_interpolation(self) -> bool: @@ -97,11 +99,10 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return val # type: ignore + return val # type: ignore @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Log-Linear Interpolation={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py index 26916e81676..c7259effee7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxHarmonicNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -45,29 +49,28 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class HarmonicTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units Specifies the units for the Harmonics - """ + """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py index 87d21270e74..f39b0d6516c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class TxMeasNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -49,7 +52,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -59,17 +62,17 @@ def source_file(self) -> str: Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def transmit_frequency(self) -> float: """Transmit Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -79,13 +82,11 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val # type: ignore + return val # type: ignore @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -96,14 +97,12 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -114,14 +113,12 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def exclude_harmonics_below_noise(self) -> bool: @@ -131,20 +128,19 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return val # type: ignore + return val # type: ignore @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Exclude Harmonics Below Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py index 09bb72ae33a..f503da6829f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxNbEmissionNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -45,46 +49,43 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class NarrowbandBehaviorOption(Enum): - ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" # eslint-disable-line no-eval - RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" # eslint-disable-line no-eval + ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" # eslint-disable-line no-eval + RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" # eslint-disable-line no-eval @property def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior Specifies the behavior of the parametric narrowband emissions mask - """ + """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val] - return val # type: ignore + return val # type: ignore @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Narrowband Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"] + ) @property def measurement_frequency(self) -> float: """Measurement Frequency Measurement frequency for the absolute freq/amp pairs. - """ + """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @measurement_frequency.setter - def measurement_frequency(self, value : float|str): + def measurement_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Frequency={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Frequency={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py index 8fb1fd06cee..8017d994134 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class TxSpectralProfEmitterNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,7 +39,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -47,17 +50,15 @@ def output_voltage_peak(self) -> float: """Output Voltage Peak Output High Voltage Level: maximum voltage of the digital signal - """ + """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") - return val # type: ignore + return val # type: ignore @output_voltage_peak.setter - def output_voltage_peak(self, value : float|str): + def output_voltage_peak(self, value: float | str): value = self._convert_to_internal_units(value, "Voltage") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Voltage Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Voltage Peak={value}"]) @property def include_phase_noise(self) -> bool: @@ -67,13 +68,11 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -83,13 +82,11 @@ def tx_broadband_noise(self) -> float: Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @tx_broadband_noise.setter - def tx_broadband_noise(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -99,13 +96,13 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Tx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] + ) @property def internal_amp_gain(self) -> float: @@ -115,13 +112,11 @@ def internal_amp_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @internal_amp_gain.setter - def internal_amp_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -131,13 +126,11 @@ def noise_figure(self) -> float: Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -148,18 +141,18 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -167,14 +160,12 @@ def p1_db_point_ref_input_(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -185,14 +176,12 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -202,13 +191,11 @@ def reverse_isolation(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -218,11 +205,8 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py index 35f8349b4bc..5f1bcce207e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxSpectralProfNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,51 +41,47 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpectrumTypeOption(Enum): - NARROWBAND__BROADBAND = "Narrowband & Broadband" # eslint-disable-line no-eval - BROADBAND_ONLY = "Broadband Only" # eslint-disable-line no-eval + NARROWBAND__BROADBAND = "Narrowband & Broadband" # eslint-disable-line no-eval + BROADBAND_ONLY = "Broadband Only" # eslint-disable-line no-eval @property def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type Specifies EMI Margins to calculate - """ + """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val] - return val # type: ignore + return val # type: ignore @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spectrum Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spectrum Type={value.value}"]) class TxPowerOption(Enum): - PEAK_POWER = "Peak Power" # eslint-disable-line no-eval - AVERAGE_POWER = "Average Power" # eslint-disable-line no-eval + PEAK_POWER = "Peak Power" # eslint-disable-line no-eval + AVERAGE_POWER = "Average Power" # eslint-disable-line no-eval @property def tx_power(self) -> TxPowerOption: """Tx Power Method used to specify the power - """ + """ val = self._get_property("Tx Power") val = self.TxPowerOption[val] - return val # type: ignore + return val # type: ignore @tx_power.setter def tx_power(self, value: TxPowerOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Power={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Power={value.value}"]) @property def peak_power(self) -> float: @@ -92,14 +92,12 @@ def peak_power(self) -> float: """ val = self._get_property("Peak Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @peak_power.setter - def peak_power(self, value : float|str): + def peak_power(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Peak Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Power={value}"]) @property def average_power(self) -> float: @@ -110,14 +108,12 @@ def average_power(self) -> float: """ val = self._get_property("Average Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @average_power.setter - def average_power(self, value : float|str): + def average_power(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Average Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Average Power={value}"]) @property def include_phase_noise(self) -> bool: @@ -127,13 +123,11 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val # type: ignore + return val # type: ignore @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -143,35 +137,31 @@ def tx_broadband_noise(self) -> float: Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @tx_broadband_noise.setter - def tx_broadband_noise(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) class HarmonicTaperOption(Enum): - CONSTANT = "Constant" # eslint-disable-line no-eval - MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval - MIL_STD_461G_NAVY = "MIL-STD-461G Navy" # eslint-disable-line no-eval - DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval + CONSTANT = "Constant" # eslint-disable-line no-eval + MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval + MIL_STD_461G_NAVY = "MIL-STD-461G Navy" # eslint-disable-line no-eval + DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval @property def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper Taper type used to set amplitude of harmonics - """ + """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val] - return val # type: ignore + return val # type: ignore @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Taper={value.value}"]) @property def harmonic_amplitude(self) -> float: @@ -181,13 +171,11 @@ def harmonic_amplitude(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Amplitude") - return val # type: ignore + return val # type: ignore @harmonic_amplitude.setter - def harmonic_amplitude(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Amplitude={value}"]) + def harmonic_amplitude(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Amplitude={value}"]) @property def harmonic_slope(self) -> float: @@ -197,13 +185,11 @@ def harmonic_slope(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Slope") - return val # type: ignore + return val # type: ignore @harmonic_slope.setter - def harmonic_slope(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Slope={value}"]) + def harmonic_slope(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Slope={value}"]) @property def harmonic_intercept(self) -> float: @@ -213,13 +199,11 @@ def harmonic_intercept(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Intercept") - return val # type: ignore + return val # type: ignore @harmonic_intercept.setter - def harmonic_intercept(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Intercept={value}"]) + def harmonic_intercept(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Intercept={value}"]) @property def enable_harmonic_bw_expansion(self) -> bool: @@ -230,13 +214,13 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return val # type: ignore + return val # type: ignore @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Harmonic BW Expansion={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Enable Harmonic BW Expansion={value}"] + ) @property def number_of_harmonics(self) -> int: @@ -246,13 +230,11 @@ def number_of_harmonics(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Number of Harmonics") - return val # type: ignore + return val # type: ignore @number_of_harmonics.setter def number_of_harmonics(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Harmonics={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Harmonics={value}"]) @property def second_harmonic_level(self) -> float: @@ -262,13 +244,11 @@ def second_harmonic_level(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Second Harmonic Level") - return val # type: ignore + return val # type: ignore @second_harmonic_level.setter - def second_harmonic_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Second Harmonic Level={value}"]) + def second_harmonic_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Second Harmonic Level={value}"]) @property def third_harmonic_level(self) -> float: @@ -278,13 +258,11 @@ def third_harmonic_level(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Third Harmonic Level") - return val # type: ignore + return val # type: ignore @third_harmonic_level.setter - def third_harmonic_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Third Harmonic Level={value}"]) + def third_harmonic_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Third Harmonic Level={value}"]) @property def other_harmonic_levels(self) -> float: @@ -294,13 +272,11 @@ def other_harmonic_levels(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Other Harmonic Levels") - return val # type: ignore + return val # type: ignore @other_harmonic_levels.setter - def other_harmonic_levels(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Other Harmonic Levels={value}"]) + def other_harmonic_levels(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Other Harmonic Levels={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -310,13 +286,13 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + return val # type: ignore @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Tx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] + ) @property def internal_amp_gain(self) -> float: @@ -326,13 +302,11 @@ def internal_amp_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @internal_amp_gain.setter - def internal_amp_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -342,13 +316,11 @@ def noise_figure(self) -> float: Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -359,18 +331,18 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -378,14 +350,12 @@ def p1_db_point_ref_input_(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -396,14 +366,12 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -413,13 +381,11 @@ def reverse_isolation(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -429,11 +395,8 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py index c3605f46298..c9761567ef6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxSpurNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,13 +48,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -62,29 +66,26 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val] - return val # type: ignore + return val # type: ignore @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spur Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py index 7196ed6d130..800e2f48ea4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class WalfischCouplingNode(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,68 +112,60 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class PathLossTypeOption(Enum): - LOS_URBAN_CANYON = "LOS (Urban Canyon)" # eslint-disable-line no-eval - NLOS = "NLOS" # eslint-disable-line no-eval + LOS_URBAN_CANYON = "LOS (Urban Canyon)" # eslint-disable-line no-eval + NLOS = "NLOS" # eslint-disable-line no-eval @property def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type Specify LOS vs NLOS for the Walfisch-Ikegami model - """ + """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val] - return val # type: ignore + return val # type: ignore @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Path Loss Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Type={value.value}"]) class EnvironmentOption(Enum): - DENSE_METRO = "Dense Metro" # eslint-disable-line no-eval - SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" # eslint-disable-line no-eval + DENSE_METRO = "Dense Metro" # eslint-disable-line no-eval + SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Walfisch model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def roof_height(self) -> float: @@ -188,14 +176,12 @@ def roof_height(self) -> float: """ val = self._get_property("Roof Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @roof_height.setter - def roof_height(self, value : float|str): + def roof_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Roof Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Roof Height={value}"]) @property def distance_between_buildings(self) -> float: @@ -206,14 +192,14 @@ def distance_between_buildings(self) -> float: """ val = self._get_property("Distance Between Buildings") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @distance_between_buildings.setter - def distance_between_buildings(self, value : float|str): + def distance_between_buildings(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Distance Between Buildings={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Distance Between Buildings={value}"] + ) @property def street_width(self) -> float: @@ -224,14 +210,12 @@ def street_width(self) -> float: """ val = self._get_property("Street Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @street_width.setter - def street_width(self, value : float|str): + def street_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Street Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Street Width={value}"]) @property def incidence_angle(self) -> float: @@ -241,13 +225,11 @@ def incidence_angle(self) -> float: Value should be between 0 and 90. """ val = self._get_property("Incidence Angle") - return val # type: ignore + return val # type: ignore @incidence_angle.setter - def incidence_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Incidence Angle={value}"]) + def incidence_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Incidence Angle={value}"]) @property def custom_fading_margin(self) -> float: @@ -258,13 +240,11 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -275,13 +255,11 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -292,35 +270,31 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -331,13 +305,11 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -347,13 +319,11 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -363,13 +333,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -380,13 +348,11 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -396,13 +362,11 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -413,13 +377,11 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -430,13 +392,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -446,13 +408,11 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -462,13 +422,11 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -478,11 +436,10 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py index f18d8d22894..adc1592d056 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Waveform(EmitNode): def __init__(self, oDesign, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -48,38 +52,34 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) class WaveformOption(Enum): - PERIODIC_CLOCK = "Periodic Clock" # eslint-disable-line no-eval - SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" # eslint-disable-line no-eval - PRBS = "PRBS" # eslint-disable-line no-eval - PRBS_PERIODIC = "PRBS (Periodic)" # eslint-disable-line no-eval - IMPORTED = "Imported" # eslint-disable-line no-eval + PERIODIC_CLOCK = "Periodic Clock" # eslint-disable-line no-eval + SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" # eslint-disable-line no-eval + PRBS = "PRBS" # eslint-disable-line no-eval + PRBS_PERIODIC = "PRBS (Periodic)" # eslint-disable-line no-eval + IMPORTED = "Imported" # eslint-disable-line no-eval @property def waveform(self) -> WaveformOption: """Waveform Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Waveform") val = self.WaveformOption[val] - return val # type: ignore + return val # type: ignore @waveform.setter def waveform(self, value: WaveformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Waveform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveform={value.value}"]) @property def start_frequency(self) -> float: @@ -90,14 +90,12 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -108,14 +106,12 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -126,14 +122,12 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_spacing.setter - def channel_spacing(self, value : float|str): + def channel_spacing(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) @property def clock_duty_cycle(self) -> float: @@ -143,13 +137,11 @@ def clock_duty_cycle(self) -> float: Value should be between 0.001 and 1. """ val = self._get_property("Clock Duty Cycle") - return val # type: ignore + return val # type: ignore @clock_duty_cycle.setter - def clock_duty_cycle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Clock Duty Cycle={value}"]) + def clock_duty_cycle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Duty Cycle={value}"]) @property def clock_risefall_time(self) -> float: @@ -160,35 +152,31 @@ def clock_risefall_time(self) -> float: """ val = self._get_property("Clock Rise/Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @clock_risefall_time.setter - def clock_risefall_time(self, value : float|str): + def clock_risefall_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Clock Rise/Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Rise/Fall Time={value}"]) class SpreadingTypeOption(Enum): - LOW_SPREAD = "Low Spread" # eslint-disable-line no-eval - CENTER_SPREAD = "Center Spread" # eslint-disable-line no-eval - HIGH_SPREAD = "High Spread" # eslint-disable-line no-eval + LOW_SPREAD = "Low Spread" # eslint-disable-line no-eval + CENTER_SPREAD = "Center Spread" # eslint-disable-line no-eval + HIGH_SPREAD = "High Spread" # eslint-disable-line no-eval @property def spreading_type(self) -> SpreadingTypeOption: """Spreading Type Type of spreading employed by the Spread Spectrum Clock - """ + """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val] - return val # type: ignore + return val # type: ignore @spreading_type.setter def spreading_type(self, value: SpreadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spreading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spreading Type={value.value}"]) @property def spread_percentage(self) -> float: @@ -198,13 +186,11 @@ def spread_percentage(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Spread Percentage") - return val # type: ignore + return val # type: ignore @spread_percentage.setter - def spread_percentage(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spread Percentage={value}"]) + def spread_percentage(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spread Percentage={value}"]) @property def imported_spectrum(self) -> str: @@ -212,22 +198,20 @@ def imported_spectrum(self) -> str: Value should be a full file path. """ val = self._get_property("Imported Spectrum") - return val # type: ignore + return val # type: ignore @imported_spectrum.setter def imported_spectrum(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Imported Spectrum={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Imported Spectrum={value}"]) @property def raw_data_format(self) -> str: """Raw Data Format Format of the imported raw data - """ + """ val = self._get_property("Raw Data Format") - return val # type: ignore + return val # type: ignore @property def system_impedance(self) -> float: @@ -238,14 +222,12 @@ def system_impedance(self) -> float: """ val = self._get_property("System Impedance") val = self._convert_from_internal_units(float(val), "Resistance") - return val # type: ignore + return val # type: ignore @system_impedance.setter - def system_impedance(self, value : float|str): + def system_impedance(self, value: float | str): value = self._convert_to_internal_units(value, "Resistance") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"System Impedance={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"System Impedance={value}"]) @property def advanced_extraction_params(self) -> bool: @@ -255,13 +237,13 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return val # type: ignore + return val # type: ignore @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Advanced Extraction Params={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Advanced Extraction Params={value}"] + ) @property def nb_window_size(self) -> float: @@ -272,13 +254,11 @@ def nb_window_size(self) -> float: Value should be greater than 3. """ val = self._get_property("NB Window Size") - return val # type: ignore + return val # type: ignore @nb_window_size.setter - def nb_window_size(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NB Window Size={value}"]) + def nb_window_size(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Window Size={value}"]) @property def bb_smoothing_factor(self) -> float: @@ -288,13 +268,11 @@ def bb_smoothing_factor(self) -> float: Value should be greater than 1. """ val = self._get_property("BB Smoothing Factor") - return val # type: ignore + return val # type: ignore @bb_smoothing_factor.setter - def bb_smoothing_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Smoothing Factor={value}"]) + def bb_smoothing_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Smoothing Factor={value}"]) @property def nb_detector_threshold(self) -> float: @@ -304,33 +282,29 @@ def nb_detector_threshold(self) -> float: Value should be between 2 and 10. """ val = self._get_property("NB Detector Threshold") - return val # type: ignore + return val # type: ignore @nb_detector_threshold.setter - def nb_detector_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NB Detector Threshold={value}"]) + def nb_detector_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Detector Threshold={value}"]) class AlgorithmOption(Enum): - FFT = "FFT" # eslint-disable-line no-eval - FOURIER_TRANSFORM = "Fourier Transform" # eslint-disable-line no-eval + FFT = "FFT" # eslint-disable-line no-eval + FOURIER_TRANSFORM = "Fourier Transform" # eslint-disable-line no-eval @property def algorithm(self) -> AlgorithmOption: """Algorithm Algorithm used to transform the imported time domain spectrum - """ + """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val] - return val # type: ignore + return val # type: ignore @algorithm.setter def algorithm(self, value: AlgorithmOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Algorithm={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Algorithm={value.value}"]) @property def start_time(self) -> float: @@ -341,31 +315,27 @@ def start_time(self) -> float: """ val = self._get_property("Start Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @start_time.setter - def start_time(self, value : float|str): + def start_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Time={value}"]) @property def stop_time(self) -> float: """Stop Time Final time of the imported time domain spectrum - """ + """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @stop_time.setter - def stop_time(self, value : float|str): + def stop_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Time={value}"]) @property def max_frequency(self) -> float: @@ -376,41 +346,37 @@ def max_frequency(self) -> float: """ val = self._get_property("Max Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_frequency.setter - def max_frequency(self, value : float|str): + def max_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Frequency={value}"]) class WindowTypeOption(Enum): - RECTANGULAR = "Rectangular" # eslint-disable-line no-eval - BARTLETT = "Bartlett" # eslint-disable-line no-eval - BLACKMAN = "Blackman" # eslint-disable-line no-eval - HAMMING = "Hamming" # eslint-disable-line no-eval - HANNING = "Hanning" # eslint-disable-line no-eval - KAISER = "Kaiser" # eslint-disable-line no-eval - LANZCOS = "Lanzcos" # eslint-disable-line no-eval - WELCH = "Welch" # eslint-disable-line no-eval - WEBER = "Weber" # eslint-disable-line no-eval + RECTANGULAR = "Rectangular" # eslint-disable-line no-eval + BARTLETT = "Bartlett" # eslint-disable-line no-eval + BLACKMAN = "Blackman" # eslint-disable-line no-eval + HAMMING = "Hamming" # eslint-disable-line no-eval + HANNING = "Hanning" # eslint-disable-line no-eval + KAISER = "Kaiser" # eslint-disable-line no-eval + LANZCOS = "Lanzcos" # eslint-disable-line no-eval + WELCH = "Welch" # eslint-disable-line no-eval + WEBER = "Weber" # eslint-disable-line no-eval @property def window_type(self) -> WindowTypeOption: """Window Type Windowing scheme used for importing time domain spectrum - """ + """ val = self._get_property("Window Type") val = self.WindowTypeOption[val] - return val # type: ignore + return val # type: ignore @window_type.setter def window_type(self, value: WindowTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Window Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Window Type={value.value}"]) @property def kaiser_parameter(self) -> float: @@ -420,13 +386,11 @@ def kaiser_parameter(self) -> float: Value should be greater than 0. """ val = self._get_property("Kaiser Parameter") - return val # type: ignore + return val # type: ignore @kaiser_parameter.setter - def kaiser_parameter(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Kaiser Parameter={value}"]) + def kaiser_parameter(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Kaiser Parameter={value}"]) @property def adjust_coherent_gain(self) -> bool: @@ -436,13 +400,11 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return val # type: ignore + return val # type: ignore @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adjust Coherent Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adjust Coherent Gain={value}"]) @property def data_rate(self) -> float: @@ -453,14 +415,12 @@ def data_rate(self) -> float: """ val = self._get_property("Data Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @data_rate.setter - def data_rate(self, value : float|str): + def data_rate(self, value: float | str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Rate={value}"]) @property def num_of_bits(self) -> int: @@ -470,13 +430,11 @@ def num_of_bits(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Num of Bits") - return val # type: ignore + return val # type: ignore @num_of_bits.setter def num_of_bits(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Num of Bits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Num of Bits={value}"]) @property def use_envelope(self) -> bool: @@ -486,13 +444,11 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return val # type: ignore + return val # type: ignore @use_envelope.setter def use_envelope(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Envelope={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Envelope={value}"]) @property def min_ptsnull(self) -> int: @@ -502,13 +458,11 @@ def min_ptsnull(self) -> int: Value should be between 2 and 50. """ val = self._get_property("Min Pts/Null") - return val # type: ignore + return val # type: ignore @min_ptsnull.setter def min_ptsnull(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pts/Null={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pts/Null={value}"]) @property def delay_skew(self) -> float: @@ -519,12 +473,9 @@ def delay_skew(self) -> float: """ val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @delay_skew.setter - def delay_skew(self, value : float|str): + def delay_skew(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Delay Skew={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Delay Skew={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index bd6f8b1de0e..7f7a748aedf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,3 +1,27 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from .Amplifier import Amplifier from .AntennaNode import AntennaNode from .AntennaPassband import AntennaPassband @@ -33,38 +57,6 @@ from .ProfileTraceNode import ProfileTraceNode from .PropagationLossCouplingNode import PropagationLossCouplingNode from .RadioNode import RadioNode -from .ResultPlotNode import ResultPlotNode -from .RfSystemGroup import RfSystemGroup -from .RxMeasNode import RxMeasNode -from .RxMixerProductNode import RxMixerProductNode -from .RxSaturationNode import RxSaturationNode -from .RxSelectivityNode import RxSelectivityNode -from .RxSpurNode import RxSpurNode -from .RxSusceptibilityProfNode import RxSusceptibilityProfNode -from .SamplingNode import SamplingNode -from .SceneGroupNode import SceneGroupNode -from .SelectivityTraceNode import SelectivityTraceNode -from .SolutionCouplingNode import SolutionCouplingNode -from .SolutionsNode import SolutionsNode -from .SpurTraceNode import SpurTraceNode -from .TR_Switch import TR_Switch -from .TRSwitchTraceNode import TRSwitchTraceNode -from .Terminator import Terminator -from .TestNoiseTraceNode import TestNoiseTraceNode -from .TopLevelSimulation import TopLevelSimulation -from .TouchstoneCouplingNode import TouchstoneCouplingNode -from .TunableTraceNode import TunableTraceNode -from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode -from .TwoToneTraceNode import TwoToneTraceNode -from .TxBbEmissionNode import TxBbEmissionNode -from .TxHarmonicNode import TxHarmonicNode -from .TxMeasNode import TxMeasNode -from .TxNbEmissionNode import TxNbEmissionNode -from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode -from .TxSpectralProfNode import TxSpectralProfNode -from .TxSpurNode import TxSpurNode -from .WalfischCouplingNode import WalfischCouplingNode -from .Waveform import Waveform from .ReadOnlyAmplifier import ReadOnlyAmplifier from .ReadOnlyAntennaNode import ReadOnlyAntennaNode from .ReadOnlyAntennaPassband import ReadOnlyAntennaPassband @@ -113,121 +105,153 @@ from .ReadOnlyTxSpurNode import ReadOnlyTxSpurNode from .ReadOnlyWalfischCouplingNode import ReadOnlyWalfischCouplingNode from .ReadOnlyWaveform import ReadOnlyWaveform +from .ResultPlotNode import ResultPlotNode +from .RfSystemGroup import RfSystemGroup +from .RxMeasNode import RxMeasNode +from .RxMixerProductNode import RxMixerProductNode +from .RxSaturationNode import RxSaturationNode +from .RxSelectivityNode import RxSelectivityNode +from .RxSpurNode import RxSpurNode +from .RxSusceptibilityProfNode import RxSusceptibilityProfNode +from .SamplingNode import SamplingNode +from .SceneGroupNode import SceneGroupNode +from .SelectivityTraceNode import SelectivityTraceNode +from .SolutionCouplingNode import SolutionCouplingNode +from .SolutionsNode import SolutionsNode +from .SpurTraceNode import SpurTraceNode +from .TRSwitchTraceNode import TRSwitchTraceNode +from .TR_Switch import TR_Switch +from .Terminator import Terminator +from .TestNoiseTraceNode import TestNoiseTraceNode +from .TopLevelSimulation import TopLevelSimulation +from .TouchstoneCouplingNode import TouchstoneCouplingNode +from .TunableTraceNode import TunableTraceNode +from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode +from .TwoToneTraceNode import TwoToneTraceNode +from .TxBbEmissionNode import TxBbEmissionNode +from .TxHarmonicNode import TxHarmonicNode +from .TxMeasNode import TxMeasNode +from .TxNbEmissionNode import TxNbEmissionNode +from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode +from .TxSpectralProfNode import TxSpectralProfNode +from .TxSpurNode import TxSpurNode +from .WalfischCouplingNode import WalfischCouplingNode +from .Waveform import Waveform __all__ = [ - 'Amplifier', - 'AntennaNode', - 'AntennaPassband', - 'Band', - 'BandFolder', - 'BandTraceNode', - 'CADNode', - 'Cable', - 'CategoriesViewNode', - 'Circulator', - 'CouplingLinkNode', - 'CouplingTraceNode', - 'CouplingsNode', - 'CustomCouplingNode', - 'EmiPlotMarkerNode', - 'EmitSceneNode', - 'ErcegCouplingNode', - 'Filter', - 'FiveGChannelModel', - 'HataCouplingNode', - 'IndoorPropagationCouplingNode', - 'Isolator', - 'LogDistanceCouplingNode', - 'MPlexBandTraceNode', - 'Multiplexer', - 'MultiplexerBand', - 'OutboardTraceNode', - 'ParametricCouplingTraceNode', - 'PlotMarkerNode', - 'PlotNode', - 'PowerDivider', - 'PowerTraceNode', - 'ProfileTraceNode', - 'PropagationLossCouplingNode', - 'RadioNode', - 'ResultPlotNode', - 'RfSystemGroup', - 'RxMeasNode', - 'RxMixerProductNode', - 'RxSaturationNode', - 'RxSelectivityNode', - 'RxSpurNode', - 'RxSusceptibilityProfNode', - 'SamplingNode', - 'SceneGroupNode', - 'SelectivityTraceNode', - 'SolutionCouplingNode', - 'SolutionsNode', - 'SpurTraceNode', - 'TR_Switch', - 'TRSwitchTraceNode', - 'Terminator', - 'TestNoiseTraceNode', - 'TopLevelSimulation', - 'TouchstoneCouplingNode', - 'TunableTraceNode', - 'TwoRayPathLossCouplingNode', - 'TwoToneTraceNode', - 'TxBbEmissionNode', - 'TxHarmonicNode', - 'TxMeasNode', - 'TxNbEmissionNode', - 'TxSpectralProfEmitterNode', - 'TxSpectralProfNode', - 'TxSpurNode', - 'WalfischCouplingNode', - 'Waveform', - 'ReadOnlyAmplifier', - 'ReadOnlyAntennaNode', - 'ReadOnlyAntennaPassband', - 'ReadOnlyBand', - 'ReadOnlyBandFolder', - 'ReadOnlyCADNode', - 'ReadOnlyCable', - 'ReadOnlyCirculator', - 'ReadOnlyCouplingLinkNode', - 'ReadOnlyCouplingsNode', - 'ReadOnlyCustomCouplingNode', - 'ReadOnlyEmitSceneNode', - 'ReadOnlyErcegCouplingNode', - 'ReadOnlyFilter', - 'ReadOnlyFiveGChannelModel', - 'ReadOnlyHataCouplingNode', - 'ReadOnlyIndoorPropagationCouplingNode', - 'ReadOnlyIsolator', - 'ReadOnlyLogDistanceCouplingNode', - 'ReadOnlyMultiplexer', - 'ReadOnlyMultiplexerBand', - 'ReadOnlyPowerDivider', - 'ReadOnlyPropagationLossCouplingNode', - 'ReadOnlyRadioNode', - 'ReadOnlyRfSystemGroup', - 'ReadOnlyRxMeasNode', - 'ReadOnlyRxMixerProductNode', - 'ReadOnlyRxSaturationNode', - 'ReadOnlyRxSelectivityNode', - 'ReadOnlyRxSpurNode', - 'ReadOnlyRxSusceptibilityProfNode', - 'ReadOnlySamplingNode', - 'ReadOnlySceneGroupNode', - 'ReadOnlySolutionCouplingNode', - 'ReadOnlySolutionsNode', - 'ReadOnlyTR_Switch', - 'ReadOnlyTerminator', - 'ReadOnlyTouchstoneCouplingNode', - 'ReadOnlyTwoRayPathLossCouplingNode', - 'ReadOnlyTxBbEmissionNode', - 'ReadOnlyTxHarmonicNode', - 'ReadOnlyTxMeasNode', - 'ReadOnlyTxNbEmissionNode', - 'ReadOnlyTxSpectralProfEmitterNode', - 'ReadOnlyTxSpectralProfNode', - 'ReadOnlyTxSpurNode', - 'ReadOnlyWalfischCouplingNode', - 'ReadOnlyWaveform', + "Amplifier", + "AntennaNode", + "AntennaPassband", + "Band", + "BandFolder", + "BandTraceNode", + "CADNode", + "Cable", + "CategoriesViewNode", + "Circulator", + "CouplingLinkNode", + "CouplingTraceNode", + "CouplingsNode", + "CustomCouplingNode", + "EmiPlotMarkerNode", + "EmitSceneNode", + "ErcegCouplingNode", + "Filter", + "FiveGChannelModel", + "HataCouplingNode", + "IndoorPropagationCouplingNode", + "Isolator", + "LogDistanceCouplingNode", + "MPlexBandTraceNode", + "Multiplexer", + "MultiplexerBand", + "OutboardTraceNode", + "ParametricCouplingTraceNode", + "PlotMarkerNode", + "PlotNode", + "PowerDivider", + "PowerTraceNode", + "ProfileTraceNode", + "PropagationLossCouplingNode", + "RadioNode", + "ResultPlotNode", + "RfSystemGroup", + "RxMeasNode", + "RxMixerProductNode", + "RxSaturationNode", + "RxSelectivityNode", + "RxSpurNode", + "RxSusceptibilityProfNode", + "SamplingNode", + "SceneGroupNode", + "SelectivityTraceNode", + "SolutionCouplingNode", + "SolutionsNode", + "SpurTraceNode", + "TR_Switch", + "TRSwitchTraceNode", + "Terminator", + "TestNoiseTraceNode", + "TopLevelSimulation", + "TouchstoneCouplingNode", + "TunableTraceNode", + "TwoRayPathLossCouplingNode", + "TwoToneTraceNode", + "TxBbEmissionNode", + "TxHarmonicNode", + "TxMeasNode", + "TxNbEmissionNode", + "TxSpectralProfEmitterNode", + "TxSpectralProfNode", + "TxSpurNode", + "WalfischCouplingNode", + "Waveform", + "ReadOnlyAmplifier", + "ReadOnlyAntennaNode", + "ReadOnlyAntennaPassband", + "ReadOnlyBand", + "ReadOnlyBandFolder", + "ReadOnlyCADNode", + "ReadOnlyCable", + "ReadOnlyCirculator", + "ReadOnlyCouplingLinkNode", + "ReadOnlyCouplingsNode", + "ReadOnlyCustomCouplingNode", + "ReadOnlyEmitSceneNode", + "ReadOnlyErcegCouplingNode", + "ReadOnlyFilter", + "ReadOnlyFiveGChannelModel", + "ReadOnlyHataCouplingNode", + "ReadOnlyIndoorPropagationCouplingNode", + "ReadOnlyIsolator", + "ReadOnlyLogDistanceCouplingNode", + "ReadOnlyMultiplexer", + "ReadOnlyMultiplexerBand", + "ReadOnlyPowerDivider", + "ReadOnlyPropagationLossCouplingNode", + "ReadOnlyRadioNode", + "ReadOnlyRfSystemGroup", + "ReadOnlyRxMeasNode", + "ReadOnlyRxMixerProductNode", + "ReadOnlyRxSaturationNode", + "ReadOnlyRxSelectivityNode", + "ReadOnlyRxSpurNode", + "ReadOnlyRxSusceptibilityProfNode", + "ReadOnlySamplingNode", + "ReadOnlySceneGroupNode", + "ReadOnlySolutionCouplingNode", + "ReadOnlySolutionsNode", + "ReadOnlyTR_Switch", + "ReadOnlyTerminator", + "ReadOnlyTouchstoneCouplingNode", + "ReadOnlyTwoRayPathLossCouplingNode", + "ReadOnlyTxBbEmissionNode", + "ReadOnlyTxHarmonicNode", + "ReadOnlyTxMeasNode", + "ReadOnlyTxNbEmissionNode", + "ReadOnlyTxSpectralProfEmitterNode", + "ReadOnlyTxSpectralProfNode", + "ReadOnlyTxSpurNode", + "ReadOnlyWalfischCouplingNode", + "ReadOnlyWaveform", ] From e37b2172b9bf1a1d93458576378a382b1d63507e Mon Sep 17 00:00:00 2001 From: jsalant Date: Thu, 24 Apr 2025 09:07:33 -0400 Subject: [PATCH 53/86] change solver to use 25.2 . --- src/ansys/aedt/core/emit.py | 2 -- tests/system/solvers/conftest.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ansys/aedt/core/emit.py b/src/ansys/aedt/core/emit.py index 1384fb9f550..749a05a8c96 100644 --- a/src/ansys/aedt/core/emit.py +++ b/src/ansys/aedt/core/emit.py @@ -25,8 +25,6 @@ from ansys.aedt.core import emit_core from ansys.aedt.core.application.design import Design from ansys.aedt.core.emit_core.couplings import CouplingsEmit -from ansys.aedt.core.emit_core.emit_constants import EMIT_VALID_UNITS -from ansys.aedt.core.emit_core.emit_constants import emit_unit_type_string_to_enum from ansys.aedt.core.emit_core.results.results import Results from ansys.aedt.core.generic.general_methods import pyaedt_function_handler from ansys.aedt.core.modeler.schematic import ModelerEmit diff --git a/tests/system/solvers/conftest.py b/tests/system/solvers/conftest.py index fec5b9fb073..9d09ed12f3c 100644 --- a/tests/system/solvers/conftest.py +++ b/tests/system/solvers/conftest.py @@ -77,7 +77,7 @@ sys.path.append(local_path) # Initialize default desktop configuration -default_version = "2025.1" +default_version = "2025.2" os.environ["ANSYSEM_FEATURE_SS544753_ICEPAK_VIRTUALMESHREGION_PARADIGM_ENABLE"] = "1" From a0f00d982c7a5a045b680ea75495e5ec463a8793 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Thu, 24 Apr 2025 14:37:20 +0000 Subject: [PATCH 54/86] chore: adding changelog file 6068.added.md [dependabot-skip] --- doc/changelog.d/6068.added.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/changelog.d/6068.added.md b/doc/changelog.d/6068.added.md index 352741f7a18..3cf7ced4918 100644 --- a/doc/changelog.d/6068.added.md +++ b/doc/changelog.d/6068.added.md @@ -1 +1 @@ -Support new EmitCom API for 26R1, add node classes for all EMIT node types \ No newline at end of file +Support new EmitCom API for 25R2, add node classes for all EMIT node types \ No newline at end of file From a3e5e87b8fea85725bbaf9bf070fd801cf06ef5a Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Thu, 24 Apr 2025 16:44:23 -0500 Subject: [PATCH 55/86] Support component rename in EmitNode.rename, update all generated classes to take reference to full Emit object instead of just odesign --- .../aedt/core/emit_core/nodes/EmitNode.py | 17 +- .../emit_core/nodes/generated/Amplifier.py | 139 +++-- .../emit_core/nodes/generated/AntennaNode.py | 527 +++++++++++------- .../nodes/generated/AntennaPassband.py | 82 +-- .../core/emit_core/nodes/generated/Band.py | 392 +++++++------ .../emit_core/nodes/generated/BandFolder.py | 24 +- .../nodes/generated/BandTraceNode.py | 178 +++--- .../core/emit_core/nodes/generated/CADNode.py | 357 +++++++----- .../core/emit_core/nodes/generated/Cable.py | 107 ++-- .../nodes/generated/CategoriesViewNode.py | 20 +- .../emit_core/nodes/generated/Circulator.py | 149 +++-- .../nodes/generated/CouplingLinkNode.py | 35 +- .../nodes/generated/CouplingTraceNode.py | 221 +++++--- .../nodes/generated/CouplingsNode.py | 42 +- .../nodes/generated/CustomCouplingNode.py | 77 +-- .../nodes/generated/EmiPlotMarkerNode.py | 239 ++++---- .../nodes/generated/EmitSceneNode.py | 57 +- .../nodes/generated/ErcegCouplingNode.py | 210 ++++--- .../core/emit_core/nodes/generated/Filter.py | 231 ++++---- .../nodes/generated/FiveGChannelModel.py | 238 ++++---- .../nodes/generated/HataCouplingNode.py | 212 ++++--- .../IndoorPropagationCouplingNode.py | 228 ++++---- .../emit_core/nodes/generated/Isolator.py | 149 +++-- .../generated/LogDistanceCouplingNode.py | 226 +++++--- .../nodes/generated/MPlexBandTraceNode.py | 165 +++--- .../emit_core/nodes/generated/Multiplexer.py | 94 ++-- .../nodes/generated/MultiplexerBand.py | 133 +++-- .../nodes/generated/OutboardTraceNode.py | 164 +++--- .../generated/ParametricCouplingTraceNode.py | 170 +++--- .../nodes/generated/PlotMarkerNode.py | 250 +++++---- .../emit_core/nodes/generated/PlotNode.py | 277 +++++---- .../emit_core/nodes/generated/PowerDivider.py | 153 ++--- .../nodes/generated/PowerTraceNode.py | 166 +++--- .../nodes/generated/ProfileTraceNode.py | 152 ++--- .../generated/PropagationLossCouplingNode.py | 194 ++++--- .../emit_core/nodes/generated/RadioNode.py | 40 +- .../nodes/generated/ReadOnlyAmplifier.py | 59 +- .../nodes/generated/ReadOnlyAntennaNode.py | 267 ++++----- .../generated/ReadOnlyAntennaPassband.py | 36 +- .../emit_core/nodes/generated/ReadOnlyBand.py | 204 +++---- .../nodes/generated/ReadOnlyBandFolder.py | 20 +- .../nodes/generated/ReadOnlyCADNode.py | 173 +++--- .../nodes/generated/ReadOnlyCable.py | 55 +- .../nodes/generated/ReadOnlyCirculator.py | 73 ++- .../generated/ReadOnlyCouplingLinkNode.py | 27 +- .../nodes/generated/ReadOnlyCouplingsNode.py | 28 +- .../generated/ReadOnlyCustomCouplingNode.py | 47 +- .../nodes/generated/ReadOnlyEmitSceneNode.py | 41 +- .../generated/ReadOnlyErcegCouplingNode.py | 96 ++-- .../nodes/generated/ReadOnlyFilter.py | 101 ++-- .../generated/ReadOnlyFiveGChannelModel.py | 112 ++-- .../generated/ReadOnlyHataCouplingNode.py | 98 ++-- .../ReadOnlyIndoorPropagationCouplingNode.py | 110 ++-- .../nodes/generated/ReadOnlyIsolator.py | 73 ++- .../ReadOnlyLogDistanceCouplingNode.py | 106 ++-- .../nodes/generated/ReadOnlyMultiplexer.py | 60 +- .../generated/ReadOnlyMultiplexerBand.py | 61 +- .../nodes/generated/ReadOnlyPowerDivider.py | 75 ++- .../ReadOnlyPropagationLossCouplingNode.py | 84 +-- .../nodes/generated/ReadOnlyRadioNode.py | 32 +- .../nodes/generated/ReadOnlyRfSystemGroup.py | 26 +- .../nodes/generated/ReadOnlyRxMeasNode.py | 84 +-- .../generated/ReadOnlyRxMixerProductNode.py | 91 ++- .../generated/ReadOnlyRxSaturationNode.py | 20 +- .../generated/ReadOnlyRxSelectivityNode.py | 23 +- .../nodes/generated/ReadOnlyRxSpurNode.py | 39 +- .../ReadOnlyRxSusceptibilityProfNode.py | 71 ++- .../nodes/generated/ReadOnlySamplingNode.py | 60 +- .../nodes/generated/ReadOnlySceneGroupNode.py | 51 +- .../generated/ReadOnlySolutionCouplingNode.py | 33 +- .../nodes/generated/ReadOnlySolutionsNode.py | 23 +- .../nodes/generated/ReadOnlyTR_Switch.py | 69 ++- .../nodes/generated/ReadOnlyTerminator.py | 55 +- .../ReadOnlyTouchstoneCouplingNode.py | 50 +- .../ReadOnlyTwoRayPathLossCouplingNode.py | 88 +-- .../generated/ReadOnlyTxBbEmissionNode.py | 42 +- .../nodes/generated/ReadOnlyTxHarmonicNode.py | 31 +- .../nodes/generated/ReadOnlyTxMeasNode.py | 38 +- .../generated/ReadOnlyTxNbEmissionNode.py | 35 +- .../ReadOnlyTxSpectralProfEmitterNode.py | 48 +- .../generated/ReadOnlyTxSpectralProfNode.py | 100 ++-- .../nodes/generated/ReadOnlyTxSpurNode.py | 39 +- .../generated/ReadOnlyWalfischCouplingNode.py | 112 ++-- .../nodes/generated/ReadOnlyWaveform.py | 140 ++--- .../nodes/generated/ResultPlotNode.py | 280 ++++++---- .../nodes/generated/RfSystemGroup.py | 36 +- .../emit_core/nodes/generated/RxMeasNode.py | 182 +++--- .../nodes/generated/RxMixerProductNode.py | 187 ++++--- .../nodes/generated/RxSaturationNode.py | 24 +- .../nodes/generated/RxSelectivityNode.py | 31 +- .../emit_core/nodes/generated/RxSpurNode.py | 47 +- .../generated/RxSusceptibilityProfNode.py | 157 +++--- .../emit_core/nodes/generated/SamplingNode.py | 84 +-- .../nodes/generated/SceneGroupNode.py | 93 ++-- .../nodes/generated/SelectivityTraceNode.py | 152 ++--- .../nodes/generated/SolutionCouplingNode.py | 49 +- .../nodes/generated/SolutionsNode.py | 27 +- .../nodes/generated/SpurTraceNode.py | 164 +++--- .../nodes/generated/TRSwitchTraceNode.py | 164 +++--- .../emit_core/nodes/generated/TR_Switch.py | 147 +++-- .../emit_core/nodes/generated/Terminator.py | 87 +-- .../nodes/generated/TestNoiseTraceNode.py | 220 +++++--- .../nodes/generated/TopLevelSimulation.py | 20 +- .../nodes/generated/TouchstoneCouplingNode.py | 86 +-- .../nodes/generated/TunableTraceNode.py | 174 +++--- .../generated/TwoRayPathLossCouplingNode.py | 208 ++++--- .../nodes/generated/TwoToneTraceNode.py | 220 +++++--- .../nodes/generated/TxBbEmissionNode.py | 56 +- .../nodes/generated/TxHarmonicNode.py | 41 +- .../emit_core/nodes/generated/TxMeasNode.py | 64 ++- .../nodes/generated/TxNbEmissionNode.py | 51 +- .../generated/TxSpectralProfEmitterNode.py | 114 ++-- .../nodes/generated/TxSpectralProfNode.py | 230 ++++---- .../emit_core/nodes/generated/TxSpurNode.py | 47 +- .../nodes/generated/WalfischCouplingNode.py | 256 +++++---- .../emit_core/nodes/generated/Waveform.py | 284 ++++++---- .../emit_core/nodes/generated/__init__.py | 318 +++++------ .../aedt/core/emit_core/results/revision.py | 4 +- 118 files changed, 7729 insertions(+), 6096 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py index b5df5ca351a..d44189474d0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py @@ -33,9 +33,10 @@ class EmitNode: # meant to only be used as a parent class - def __init__(self, oDesign, result_id, node_id): - self._oDesign = oDesign - self._oRevisionData = oDesign.GetModule("EmitCom") + def __init__(self, emit_obj, result_id, node_id): + self._emit_obj = emit_obj + self._oDesign = emit_obj.odesign + self._oRevisionData = self._oDesign.GetModule("EmitCom") self._result_id = result_id self._node_id = node_id self._valid = True @@ -220,7 +221,15 @@ def _delete(self): self._oRevisionData.DeleteEmitNode(self._result_id, self._node_id) def _rename(self, requested_name): - new_name = self._oRevisionData.RenameEmitNode(self._result_id, self._node_id, requested_name) + new_name = None + if self.get_is_component(): + if self._result_id > 0: + raise ValueError("This node is read-only for kept results.") + self._emit_obj.oeditor.RenameComponent(self.name, requested_name) + new_name = requested_name + else: + new_name = self._oRevisionData.RenameEmitNode(self._result_id, self._node_id, requested_name) + return new_name def _duplicate(self, new_name): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index 92a8f4f3c37..8b6064fbf70 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -1,43 +1,39 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Amplifier(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = True - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -53,11 +49,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,42 +65,48 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class AmplifierTypeOption(Enum): - TRANSMIT_AMPLIFIER = "Transmit Amplifier" # eslint-disable-line no-eval - RECEIVE_AMPLIFIER = "Receive Amplifier" # eslint-disable-line no-eval + TRANSMIT_AMPLIFIER = "Transmit Amplifier" # eslint-disable-line no-eval + RECEIVE_AMPLIFIER = "Receive Amplifier" # eslint-disable-line no-eval @property def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type Configures the amplifier as a Tx or Rx amplifier - """ + """ val = self._get_property("Amplifier Type") - val = self.AmplifierTypeOption[val] - return val # type: ignore + val = self.AmplifierTypeOption[val.upper()] + return val # type: ignore @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Type={value.value}"]) @property def gain(self) -> float: @@ -112,11 +116,13 @@ def gain(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Gain") - return val # type: ignore + return val # type: ignore @gain.setter - def gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Gain={value}"]) + def gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Gain={value}"]) @property def center_frequency(self) -> float: @@ -127,12 +133,14 @@ def center_frequency(self) -> float: """ val = self._get_property("Center Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @center_frequency.setter - def center_frequency(self, value: float | str): + def center_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Center Frequency={value}"]) @property def bandwidth(self) -> float: @@ -143,12 +151,14 @@ def bandwidth(self) -> float: """ val = self._get_property("Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth.setter - def bandwidth(self, value: float | str): + def bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth={value}"]) @property def noise_figure(self) -> float: @@ -158,11 +168,13 @@ def noise_figure(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def saturation_level(self) -> float: @@ -173,12 +185,14 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @saturation_level.setter - def saturation_level(self, value: float | str): + def saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Saturation Level={value}"]) @property def p1_db_point_ref_input(self) -> float: @@ -189,12 +203,14 @@ def p1_db_point_ref_input(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value: float | str): + def p1_db_point_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input={value}"]) @property def ip3_ref_input(self) -> float: @@ -205,12 +221,14 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def shape_factor(self) -> float: @@ -220,11 +238,13 @@ def shape_factor(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @shape_factor.setter - def shape_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) + def shape_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Shape Factor={value}"]) @property def reverse_isolation(self) -> float: @@ -234,11 +254,13 @@ def reverse_isolation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -248,8 +270,11 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py index 7d2050748bf..a1825363496 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class AntennaNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -42,11 +38,11 @@ def add_antenna_passband(self): """Add a New Passband to this Antenna""" return self._add_child_node("Antenna Passband") - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -59,13 +55,15 @@ def tags(self) -> str: """Tags Space delimited list of tags for coupling selections - """ + """ val = self._get_property("Tags") - return val # type: ignore + return val # type: ignore @tags.setter def tags(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tags={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tags={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -76,13 +74,14 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): @@ -92,11 +91,13 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): @@ -106,29 +107,33 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") - val = self.OrientationModeOption[val] - return val # type: ignore + val = self.OrientationModeOption[val.upper()] + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -138,11 +143,13 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): @@ -152,11 +159,13 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def position_defined(self) -> bool: @@ -166,11 +175,14 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @position_defined.setter def position_defined(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Defined={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position Defined={value}"]) @property def antenna_temperature(self) -> float: @@ -180,24 +192,28 @@ def antenna_temperature(self) -> float: Value should be between 0 and 100000. """ val = self._get_property("Antenna Temperature") - return val # type: ignore + return val # type: ignore @antenna_temperature.setter - def antenna_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna Temperature={value}"]) + def antenna_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna Temperature={value}"]) @property def type(self): """Type Defines the type of antenna - """ + """ val = self._get_property("Type") - return val # type: ignore + return val # type: ignore @type.setter def type(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value}"]) @property def antenna_file(self) -> str: @@ -205,11 +221,13 @@ def antenna_file(self) -> str: Value should be a full file path. """ val = self._get_property("Antenna File") - return val # type: ignore + return val # type: ignore @antenna_file.setter def antenna_file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna File={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna File={value}"]) @property def project_name(self) -> str: @@ -219,11 +237,13 @@ def project_name(self) -> str: Value should be a full file path. """ val = self._get_property("Project Name") - return val # type: ignore + return val # type: ignore @project_name.setter def project_name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Project Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Project Name={value}"]) @property def peak_gain(self) -> float: @@ -233,30 +253,34 @@ def peak_gain(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Peak Gain") - return val # type: ignore + return val # type: ignore @peak_gain.setter - def peak_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Gain={value}"]) + def peak_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Peak Gain={value}"]) class BoresightOption(Enum): - XAXIS = "+X Axis" # eslint-disable-line no-eval - YAXIS = "+Y Axis" # eslint-disable-line no-eval - ZAXIS = "+Z Axis" # eslint-disable-line no-eval + XAXIS = "+X Axis" # eslint-disable-line no-eval + YAXIS = "+Y Axis" # eslint-disable-line no-eval + ZAXIS = "+Z Axis" # eslint-disable-line no-eval @property def boresight(self) -> BoresightOption: """Boresight Select peak beam direction in local coordinates - """ + """ val = self._get_property("Boresight") - val = self.BoresightOption[val] - return val # type: ignore + val = self.BoresightOption[val.upper()] + return val # type: ignore @boresight.setter def boresight(self, value: BoresightOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Boresight={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Boresight={value.value}"]) @property def vertical_beamwidth(self) -> float: @@ -266,11 +290,13 @@ def vertical_beamwidth(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("Vertical Beamwidth") - return val # type: ignore + return val # type: ignore @vertical_beamwidth.setter - def vertical_beamwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Beamwidth={value}"]) + def vertical_beamwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Beamwidth={value}"]) @property def horizontal_beamwidth(self) -> float: @@ -280,11 +306,13 @@ def horizontal_beamwidth(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("Horizontal Beamwidth") - return val # type: ignore + return val # type: ignore @horizontal_beamwidth.setter - def horizontal_beamwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Beamwidth={value}"]) + def horizontal_beamwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Beamwidth={value}"]) @property def extra_sidelobe(self) -> bool: @@ -294,11 +322,14 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @extra_sidelobe.setter def extra_sidelobe(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Extra Sidelobe={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Extra Sidelobe={value}"]) @property def first_sidelobe_level(self) -> float: @@ -309,11 +340,13 @@ def first_sidelobe_level(self) -> float: Value should be between 0 and 200. """ val = self._get_property("First Sidelobe Level") - return val # type: ignore + return val # type: ignore @first_sidelobe_level.setter - def first_sidelobe_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Level={value}"]) + def first_sidelobe_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Level={value}"]) @property def first_sidelobe_vert_bw(self) -> float: @@ -323,11 +356,13 @@ def first_sidelobe_vert_bw(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Vert. BW") - return val # type: ignore + return val # type: ignore @first_sidelobe_vert_bw.setter - def first_sidelobe_vert_bw(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Vert. BW={value}"]) + def first_sidelobe_vert_bw(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Vert. BW={value}"]) @property def first_sidelobe_hor_bw(self) -> float: @@ -337,11 +372,13 @@ def first_sidelobe_hor_bw(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Hor. BW") - return val # type: ignore + return val # type: ignore @first_sidelobe_hor_bw.setter - def first_sidelobe_hor_bw(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Hor. BW={value}"]) + def first_sidelobe_hor_bw(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Hor. BW={value}"]) @property def outerbacklobe_level(self) -> float: @@ -351,11 +388,13 @@ def outerbacklobe_level(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Outer/Backlobe Level") - return val # type: ignore + return val # type: ignore @outerbacklobe_level.setter - def outerbacklobe_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Outer/Backlobe Level={value}"]) + def outerbacklobe_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Outer/Backlobe Level={value}"]) @property def resonant_frequency(self) -> float: @@ -367,12 +406,14 @@ def resonant_frequency(self) -> float: """ val = self._get_property("Resonant Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @resonant_frequency.setter - def resonant_frequency(self, value: float | str): + def resonant_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resonant Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Resonant Frequency={value}"]) @property def slot_length(self) -> float: @@ -383,12 +424,14 @@ def slot_length(self) -> float: """ val = self._get_property("Slot Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @slot_length.setter - def slot_length(self, value: float | str): + def slot_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Slot Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Slot Length={value}"]) @property def mouth_width(self) -> float: @@ -399,12 +442,14 @@ def mouth_width(self) -> float: """ val = self._get_property("Mouth Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_width.setter - def mouth_width(self, value: float | str): + def mouth_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Width={value}"]) @property def mouth_height(self) -> float: @@ -415,12 +460,14 @@ def mouth_height(self) -> float: """ val = self._get_property("Mouth Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_height.setter - def mouth_height(self, value: float | str): + def mouth_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Height={value}"]) @property def waveguide_width(self) -> float: @@ -432,12 +479,14 @@ def waveguide_width(self) -> float: """ val = self._get_property("Waveguide Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @waveguide_width.setter - def waveguide_width(self, value: float | str): + def waveguide_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveguide Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Waveguide Width={value}"]) @property def width_flare_half_angle(self) -> float: @@ -448,11 +497,13 @@ def width_flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Width Flare Half-angle") - return val # type: ignore + return val # type: ignore @width_flare_half_angle.setter - def width_flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width Flare Half-angle={value}"]) + def width_flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Width Flare Half-angle={value}"]) @property def height_flare_half_angle(self) -> float: @@ -463,11 +514,13 @@ def height_flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Height Flare Half-angle") - return val # type: ignore + return val # type: ignore @height_flare_half_angle.setter - def height_flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height Flare Half-angle={value}"]) + def height_flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Height Flare Half-angle={value}"]) @property def mouth_diameter(self) -> float: @@ -478,12 +531,14 @@ def mouth_diameter(self) -> float: """ val = self._get_property("Mouth Diameter") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_diameter.setter - def mouth_diameter(self, value: float | str): + def mouth_diameter(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Diameter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Diameter={value}"]) @property def flare_half_angle(self) -> float: @@ -494,11 +549,13 @@ def flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Flare Half-angle") - return val # type: ignore + return val # type: ignore @flare_half_angle.setter - def flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flare Half-angle={value}"]) + def flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Flare Half-angle={value}"]) @property def vswr(self) -> float: @@ -509,71 +566,75 @@ def vswr(self) -> float: Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @vswr.setter - def vswr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) + def vswr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"VSWR={value}"]) class AntennaPolarizationOption(Enum): - VERTICAL = "Vertical" # eslint-disable-line no-eval - HORIZONTAL = "Horizontal" # eslint-disable-line no-eval - RHCP = "RHCP" # eslint-disable-line no-eval - LHCP = "LHCP" # eslint-disable-line no-eval + VERTICAL = "Vertical" # eslint-disable-line no-eval + HORIZONTAL = "Horizontal" # eslint-disable-line no-eval + RHCP = "RHCP" # eslint-disable-line no-eval + LHCP = "LHCP" # eslint-disable-line no-eval @property def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Antenna Polarization") - val = self.AntennaPolarizationOption[val] - return val # type: ignore + val = self.AntennaPolarizationOption[val.upper()] + return val # type: ignore @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Antenna Polarization={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna Polarization={value.value}"]) class CrossDipoleModeOption(Enum): - FREESTANDING = "Freestanding" # eslint-disable-line no-eval - OVER_GROUND_PLANE = "Over Ground Plane" # eslint-disable-line no-eval + FREESTANDING = "Freestanding" # eslint-disable-line no-eval + OVER_GROUND_PLANE = "Over Ground Plane" # eslint-disable-line no-eval @property def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode Choose the Cross Dipole type - """ + """ val = self._get_property("Cross Dipole Mode") - val = self.CrossDipoleModeOption[val] - return val # type: ignore + val = self.CrossDipoleModeOption[val.upper()] + return val # type: ignore @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Cross Dipole Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Cross Dipole Mode={value.value}"]) class CrossDipolePolarizationOption(Enum): - RHCP = "RHCP" # eslint-disable-line no-eval - LHCP = "LHCP" # eslint-disable-line no-eval + RHCP = "RHCP" # eslint-disable-line no-eval + LHCP = "LHCP" # eslint-disable-line no-eval @property def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Cross Dipole Polarization") - val = self.CrossDipolePolarizationOption[val] - return val # type: ignore + val = self.CrossDipolePolarizationOption[val.upper()] + return val # type: ignore @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Cross Dipole Polarization={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Cross Dipole Polarization={value.value}"]) @property def override_height(self) -> bool: @@ -584,11 +645,14 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @override_height.setter def override_height(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Override Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Override Height={value}"]) @property def offset_height(self) -> float: @@ -599,12 +663,14 @@ def offset_height(self) -> float: """ val = self._get_property("Offset Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @offset_height.setter - def offset_height(self, value: float | str): + def offset_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Offset Height={value}"]) @property def auto_height_offset(self) -> bool: @@ -615,11 +681,14 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @auto_height_offset.setter def auto_height_offset(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Auto Height Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Auto Height Offset={value}"]) @property def conform__adjust_antenna(self) -> bool: @@ -629,11 +698,14 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform / Adjust Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform / Adjust Antenna={value}"]) @property def element_offset(self): @@ -643,51 +715,55 @@ def element_offset(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Element Offset") - return val # type: ignore + return val # type: ignore @element_offset.setter def element_offset(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Element Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Element Offset={value}"]) class ConformtoPlatformOption(Enum): - NONE = "None" # eslint-disable-line no-eval - ALONG_NORMAL = "Along Normal" # eslint-disable-line no-eval - PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + ALONG_NORMAL = "Along Normal" # eslint-disable-line no-eval + PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" # eslint-disable-line no-eval @property def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform Select method of automated conforming applied after Element Offset - """ + """ val = self._get_property("Conform to Platform") - val = self.ConformtoPlatformOption[val] - return val # type: ignore + val = self.ConformtoPlatformOption[val.upper()] + return val # type: ignore @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Conform to Platform={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform to Platform={value.value}"]) class ReferencePlaneOption(Enum): - XY_PLANE = "XY Plane" # eslint-disable-line no-eval - YZ_PLANE = "YZ Plane" # eslint-disable-line no-eval - ZX_PLANE = "ZX Plane" # eslint-disable-line no-eval + XY_PLANE = "XY Plane" # eslint-disable-line no-eval + YZ_PLANE = "YZ Plane" # eslint-disable-line no-eval + ZX_PLANE = "ZX Plane" # eslint-disable-line no-eval @property def reference_plane(self) -> ReferencePlaneOption: """Reference Plane Select reference plane for determining original element heights - """ + """ val = self._get_property("Reference Plane") - val = self.ReferencePlaneOption[val] - return val # type: ignore + val = self.ReferencePlaneOption[val.upper()] + return val # type: ignore @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reference Plane={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reference Plane={value.value}"]) @property def conform_element_orientation(self) -> bool: @@ -698,13 +774,14 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Conform Element Orientation={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform Element Orientation={value}"]) @property def show_axes(self) -> bool: @@ -714,11 +791,14 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def show_icon(self) -> bool: @@ -728,11 +808,14 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @show_icon.setter def show_icon(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Icon={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Icon={value}"]) @property def size(self) -> float: @@ -742,11 +825,13 @@ def size(self) -> float: Value should be between 0.001 and 1. """ val = self._get_property("Size") - return val # type: ignore + return val # type: ignore @size.setter - def size(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Size={value}"]) + def size(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Size={value}"]) @property def color(self): @@ -756,29 +841,31 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def el_sample_interval(self) -> float: """El Sample Interval Space between elevation-angle samples of pattern - """ + """ val = self._get_property("El Sample Interval") - return val # type: ignore + return val # type: ignore @property def az_sample_interval(self) -> float: """Az Sample Interval Space between azimuth-angle samples of pattern - """ + """ val = self._get_property("Az Sample Interval") - return val # type: ignore + return val # type: ignore @property def has_frequency_domain(self) -> bool: @@ -788,34 +875,35 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def frequency_domain(self): """Frequency Domain Frequency sample(s) defining antenna - """ + """ val = self._get_property("Frequency Domain") - return val # type: ignore + return val # type: ignore @property def number_of_electric_sources(self) -> int: """Number of Electric Sources Number of freestanding electric current sources defining antenna - """ + """ val = self._get_property("Number of Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources Number of freestanding magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_electric_sources(self) -> int: @@ -823,9 +911,9 @@ def number_of_imaged_electric_sources(self) -> int: Number of imaged, half-space radiating electric current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_magnetic_sources(self) -> int: @@ -833,9 +921,9 @@ def number_of_imaged_magnetic_sources(self) -> int: Number of imaged, half-space radiating magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def waveguide_height(self) -> float: @@ -843,35 +931,35 @@ def waveguide_height(self) -> float: Implied waveguide height (along local x-axis) where the flared horn walls meet the feed - """ + """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency Implied lowest operating frequency of pyramidal horn antenna - """ + """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency Implied lowest operating frequency of conical horn antenna - """ + """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class SWEModeTruncationOption(Enum): - DYNAMIC = "Dynamic" # eslint-disable-line no-eval - FIXED_CUSTOM = "Fixed (Custom)" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + DYNAMIC = "Dynamic" # eslint-disable-line no-eval + FIXED_CUSTOM = "Fixed (Custom)" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def swe_mode_truncation(self) -> SWEModeTruncationOption: @@ -879,16 +967,16 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: Select the method for stability-enhancing truncation of spherical wave expansion terms - """ + """ val = self._get_property("SWE Mode Truncation") - val = self.SWEModeTruncationOption[val] - return val # type: ignore + val = self.SWEModeTruncationOption[val.upper()] + return val # type: ignore @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"SWE Mode Truncation={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SWE Mode Truncation={value.value}"]) @property def max_n_index(self) -> int: @@ -898,24 +986,28 @@ def max_n_index(self) -> int: Value should be greater than 1. """ val = self._get_property("Max N Index") - return val # type: ignore + return val # type: ignore @max_n_index.setter def max_n_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max N Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max N Index={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) @property def show_composite_passband(self) -> bool: @@ -925,11 +1017,14 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @show_composite_passband.setter def show_composite_passband(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Composite Passband={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Composite Passband={value}"]) @property def use_phase_center(self) -> bool: @@ -939,20 +1034,23 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @use_phase_center.setter def use_phase_center(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Phase Center={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Phase Center={value}"]) @property def coordinate_systems(self) -> str: """Coordinate Systems Specifies the coordinate system for the phase center of this antenna - """ + """ val = self._get_property("Coordinate Systems") - return val # type: ignore + return val # type: ignore @property def phasecenterposition(self): @@ -962,7 +1060,7 @@ def phasecenterposition(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("PhaseCenterPosition") - return val # type: ignore + return val # type: ignore @property def phasecenterorientation(self): @@ -972,4 +1070,5 @@ def phasecenterorientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("PhaseCenterOrientation") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py index 0bf1460ea82..14961275ee5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py @@ -1,46 +1,43 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class AntennaPassband(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): """The parent of this emit node.""" return self._parent - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -51,7 +48,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -65,11 +62,13 @@ def passband_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Passband Loss") - return val # type: ignore + return val # type: ignore @passband_loss.setter - def passband_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Passband Loss={value}"]) + def passband_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Passband Loss={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -79,11 +78,13 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out of Band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out of Band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out of Band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -94,12 +95,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -110,12 +113,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -126,12 +131,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -142,22 +149,27 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index 5837972a959..3bf37328c1b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Band(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -41,7 +37,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -52,13 +48,15 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port={value}"]) @property def use_dd_1494_mode(self) -> bool: @@ -68,11 +66,14 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use DD-1494 Mode={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use DD-1494 Mode={value}"]) @property def use_emission_designator(self) -> bool: @@ -82,43 +83,48 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @use_emission_designator.setter def use_emission_designator(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Emission Designator={value}"]) @property def emission_designator(self) -> str: """Emission Designator Enter the Emission Designator to define the bandwidth and modulation - """ + """ val = self._get_property("Emission Designator") - return val # type: ignore + return val # type: ignore @emission_designator.setter def emission_designator(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Emission Designator={value}"]) @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW Channel Bandwidth based off the emission designator - """ + """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def emit_modulation_type(self) -> str: """EMIT Modulation Type Modulation based off the emission designator - """ + """ val = self._get_property("EMIT Modulation Type") - return val # type: ignore + return val # type: ignore @property def override_emission_designator_bw(self) -> bool: @@ -129,13 +135,14 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Override Emission Designator BW={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Override Emission Designator BW={value}"]) @property def channel_bandwidth(self) -> float: @@ -146,39 +153,43 @@ def channel_bandwidth(self) -> float: """ val = self._get_property("Channel Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_bandwidth.setter - def channel_bandwidth(self, value: float | str): + def channel_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Bandwidth={value}"]) class ModulationOption(Enum): - GENERIC = "Generic" # eslint-disable-line no-eval - AM = "AM" # eslint-disable-line no-eval - LSB = "LSB" # eslint-disable-line no-eval - USB = "USB" # eslint-disable-line no-eval - FM = "FM" # eslint-disable-line no-eval - FSK = "FSK" # eslint-disable-line no-eval - MSK = "MSK" # eslint-disable-line no-eval - PSK = "PSK" # eslint-disable-line no-eval - QAM = "QAM" # eslint-disable-line no-eval - APSK = "APSK" # eslint-disable-line no-eval - RADAR = "Radar" # eslint-disable-line no-eval + GENERIC = "Generic" # eslint-disable-line no-eval + AM = "AM" # eslint-disable-line no-eval + LSB = "LSB" # eslint-disable-line no-eval + USB = "USB" # eslint-disable-line no-eval + FM = "FM" # eslint-disable-line no-eval + FSK = "FSK" # eslint-disable-line no-eval + MSK = "MSK" # eslint-disable-line no-eval + PSK = "PSK" # eslint-disable-line no-eval + QAM = "QAM" # eslint-disable-line no-eval + APSK = "APSK" # eslint-disable-line no-eval + RADAR = "Radar" # eslint-disable-line no-eval @property def modulation(self) -> ModulationOption: """Modulation Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Modulation") - val = self.ModulationOption[val] - return val # type: ignore + val = self.ModulationOption[val.upper()] + return val # type: ignore @modulation.setter def modulation(self, value: ModulationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation={value.value}"]) @property def max_modulating_freq(self) -> float: @@ -189,12 +200,14 @@ def max_modulating_freq(self) -> float: """ val = self._get_property("Max Modulating Freq.") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_modulating_freq.setter - def max_modulating_freq(self, value: float | str): + def max_modulating_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Modulating Freq.={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Modulating Freq.={value}"]) @property def modulation_index(self) -> float: @@ -204,11 +217,13 @@ def modulation_index(self) -> float: Value should be between 0.01 and 1. """ val = self._get_property("Modulation Index") - return val # type: ignore + return val # type: ignore @modulation_index.setter - def modulation_index(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Index={value}"]) + def modulation_index(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation Index={value}"]) @property def freq_deviation(self) -> float: @@ -219,12 +234,14 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation.setter - def freq_deviation(self, value: float | str): + def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation={value}"]) @property def bit_rate(self) -> float: @@ -235,12 +252,14 @@ def bit_rate(self) -> float: """ val = self._get_property("Bit Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @bit_rate.setter - def bit_rate(self, value: float | str): + def bit_rate(self, value : float|str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bit Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bit Rate={value}"]) @property def sidelobes(self) -> int: @@ -250,110 +269,122 @@ def sidelobes(self) -> int: Value should be greater than 0. """ val = self._get_property("Sidelobes") - return val # type: ignore + return val # type: ignore @sidelobes.setter def sidelobes(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sidelobes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sidelobes={value}"]) @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation FSK frequency deviation: helps determine spectral profile Value should be greater than 1. """ val = self._get_property("Freq. Deviation ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation_.setter - def freq_deviation_(self, value: float | str): + def freq_deviation_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation ={value}"]) class PSKTypeOption(Enum): - BPSK = "BPSK" # eslint-disable-line no-eval - QPSK = "QPSK" # eslint-disable-line no-eval - PSK_8 = "PSK-8" # eslint-disable-line no-eval - PSK_16 = "PSK-16" # eslint-disable-line no-eval - PSK_32 = "PSK-32" # eslint-disable-line no-eval - PSK_64 = "PSK-64" # eslint-disable-line no-eval + BPSK = "BPSK" # eslint-disable-line no-eval + QPSK = "QPSK" # eslint-disable-line no-eval + PSK_8 = "PSK-8" # eslint-disable-line no-eval + PSK_16 = "PSK-16" # eslint-disable-line no-eval + PSK_32 = "PSK-32" # eslint-disable-line no-eval + PSK_64 = "PSK-64" # eslint-disable-line no-eval @property def psk_type(self) -> PSKTypeOption: """PSK Type PSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("PSK Type") - val = self.PSKTypeOption[val] - return val # type: ignore + val = self.PSKTypeOption[val.upper()] + return val # type: ignore @psk_type.setter def psk_type(self, value: PSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"PSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"PSK Type={value.value}"]) class FSKTypeOption(Enum): - FSK_2 = "FSK-2" # eslint-disable-line no-eval - FSK_4 = "FSK-4" # eslint-disable-line no-eval - FSK_8 = "FSK-8" # eslint-disable-line no-eval + FSK_2 = "FSK-2" # eslint-disable-line no-eval + FSK_4 = "FSK-4" # eslint-disable-line no-eval + FSK_8 = "FSK-8" # eslint-disable-line no-eval @property def fsk_type(self) -> FSKTypeOption: """FSK Type FSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("FSK Type") - val = self.FSKTypeOption[val] - return val # type: ignore + val = self.FSKTypeOption[val.upper()] + return val # type: ignore @fsk_type.setter def fsk_type(self, value: FSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FSK Type={value.value}"]) class QAMTypeOption(Enum): - QAM_4 = "QAM-4" # eslint-disable-line no-eval - QAM_16 = "QAM-16" # eslint-disable-line no-eval - QAM_64 = "QAM-64" # eslint-disable-line no-eval - QAM_256 = "QAM-256" # eslint-disable-line no-eval - QAM_1024 = "QAM-1024" # eslint-disable-line no-eval + QAM_4 = "QAM-4" # eslint-disable-line no-eval + QAM_16 = "QAM-16" # eslint-disable-line no-eval + QAM_64 = "QAM-64" # eslint-disable-line no-eval + QAM_256 = "QAM-256" # eslint-disable-line no-eval + QAM_1024 = "QAM-1024" # eslint-disable-line no-eval @property def qam_type(self) -> QAMTypeOption: """QAM Type QAM modulation order: helps determine spectral profile - """ + """ val = self._get_property("QAM Type") - val = self.QAMTypeOption[val] - return val # type: ignore + val = self.QAMTypeOption[val.upper()] + return val # type: ignore @qam_type.setter def qam_type(self, value: QAMTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"QAM Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"QAM Type={value.value}"]) class APSKTypeOption(Enum): - APSK_4 = "APSK-4" # eslint-disable-line no-eval - APSK_16 = "APSK-16" # eslint-disable-line no-eval - APSK_64 = "APSK-64" # eslint-disable-line no-eval - APSK_256 = "APSK-256" # eslint-disable-line no-eval - APSK_1024 = "APSK-1024" # eslint-disable-line no-eval + APSK_4 = "APSK-4" # eslint-disable-line no-eval + APSK_16 = "APSK-16" # eslint-disable-line no-eval + APSK_64 = "APSK-64" # eslint-disable-line no-eval + APSK_256 = "APSK-256" # eslint-disable-line no-eval + APSK_1024 = "APSK-1024" # eslint-disable-line no-eval @property def apsk_type(self) -> APSKTypeOption: """APSK Type APSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("APSK Type") - val = self.APSKTypeOption[val] - return val # type: ignore + val = self.APSKTypeOption[val.upper()] + return val # type: ignore @apsk_type.setter def apsk_type(self, value: APSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"APSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"APSK Type={value.value}"]) @property def start_frequency(self) -> float: @@ -364,12 +395,14 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -380,12 +413,14 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -396,12 +431,14 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_spacing.setter - def channel_spacing(self, value: float | str): + def channel_spacing(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Spacing={value}"]) @property def tx_offset(self) -> float: @@ -412,33 +449,37 @@ def tx_offset(self) -> float: """ val = self._get_property("Tx Offset") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @tx_offset.setter - def tx_offset(self, value: float | str): + def tx_offset(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Offset={value}"]) class RadarTypeOption(Enum): - CW = "CW" # eslint-disable-line no-eval - FM_CW = "FM-CW" # eslint-disable-line no-eval - FM_PULSE = "FM Pulse" # eslint-disable-line no-eval - NON_FM_PULSE = "Non-FM Pulse" # eslint-disable-line no-eval - PHASE_CODED = "Phase Coded" # eslint-disable-line no-eval + CW = "CW" # eslint-disable-line no-eval + FM_CW = "FM-CW" # eslint-disable-line no-eval + FM_PULSE = "FM Pulse" # eslint-disable-line no-eval + NON_FM_PULSE = "Non-FM Pulse" # eslint-disable-line no-eval + PHASE_CODED = "Phase Coded" # eslint-disable-line no-eval @property def radar_type(self) -> RadarTypeOption: """Radar Type Radar type: helps determine spectral profile - """ + """ val = self._get_property("Radar Type") - val = self.RadarTypeOption[val] - return val # type: ignore + val = self.RadarTypeOption[val.upper()] + return val # type: ignore @radar_type.setter def radar_type(self, value: RadarTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radar Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Radar Type={value.value}"]) @property def hopping_radar(self) -> bool: @@ -448,11 +489,14 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @hopping_radar.setter def hopping_radar(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hopping Radar={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hopping Radar={value}"]) @property def post_october_2020_procurement(self) -> bool: @@ -463,13 +507,14 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Post October 2020 Procurement={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Post October 2020 Procurement={value}"]) @property def hop_range_min_freq(self) -> float: @@ -480,12 +525,14 @@ def hop_range_min_freq(self) -> float: """ val = self._get_property("Hop Range Min Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @hop_range_min_freq.setter - def hop_range_min_freq(self, value: float | str): + def hop_range_min_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Min Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hop Range Min Freq={value}"]) @property def hop_range_max_freq(self) -> float: @@ -496,12 +543,14 @@ def hop_range_max_freq(self) -> float: """ val = self._get_property("Hop Range Max Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @hop_range_max_freq.setter - def hop_range_max_freq(self, value: float | str): + def hop_range_max_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Max Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hop Range Max Freq={value}"]) @property def pulse_duration(self) -> float: @@ -512,12 +561,14 @@ def pulse_duration(self) -> float: """ val = self._get_property("Pulse Duration") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_duration.setter - def pulse_duration(self, value: float | str): + def pulse_duration(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Duration={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Duration={value}"]) @property def pulse_rise_time(self) -> float: @@ -528,12 +579,14 @@ def pulse_rise_time(self) -> float: """ val = self._get_property("Pulse Rise Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_rise_time.setter - def pulse_rise_time(self, value: float | str): + def pulse_rise_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Rise Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Rise Time={value}"]) @property def pulse_fall_time(self) -> float: @@ -544,12 +597,14 @@ def pulse_fall_time(self) -> float: """ val = self._get_property("Pulse Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_fall_time.setter - def pulse_fall_time(self, value: float | str): + def pulse_fall_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Fall Time={value}"]) @property def pulse_repetition_rate(self) -> float: @@ -559,11 +614,13 @@ def pulse_repetition_rate(self) -> float: Value should be greater than 1. """ val = self._get_property("Pulse Repetition Rate") - return val # type: ignore + return val # type: ignore @pulse_repetition_rate.setter - def pulse_repetition_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Repetition Rate={value}"]) + def pulse_repetition_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Repetition Rate={value}"]) @property def number_of_chips(self) -> float: @@ -573,11 +630,13 @@ def number_of_chips(self) -> float: Value should be greater than 1. """ val = self._get_property("Number of Chips") - return val # type: ignore + return val # type: ignore @number_of_chips.setter - def number_of_chips(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Chips={value}"]) + def number_of_chips(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Chips={value}"]) @property def pulse_compression_ratio(self) -> float: @@ -587,11 +646,13 @@ def pulse_compression_ratio(self) -> float: Value should be greater than 1. """ val = self._get_property("Pulse Compression Ratio") - return val # type: ignore + return val # type: ignore @pulse_compression_ratio.setter - def pulse_compression_ratio(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Compression Ratio={value}"]) + def pulse_compression_ratio(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Compression Ratio={value}"]) @property def fm_chirp_period(self) -> float: @@ -602,12 +663,14 @@ def fm_chirp_period(self) -> float: """ val = self._get_property("FM Chirp Period") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @fm_chirp_period.setter - def fm_chirp_period(self, value: float | str): + def fm_chirp_period(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Chirp Period={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Chirp Period={value}"]) @property def fm_freq_deviation(self) -> float: @@ -618,12 +681,14 @@ def fm_freq_deviation(self) -> float: """ val = self._get_property("FM Freq Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @fm_freq_deviation.setter - def fm_freq_deviation(self, value: float | str): + def fm_freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Freq Deviation={value}"]) @property def fm_freq_dev_bandwidth(self) -> float: @@ -635,9 +700,12 @@ def fm_freq_dev_bandwidth(self) -> float: """ val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value: float | str): + def fm_freq_dev_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Dev Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Freq Dev Bandwidth={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py index 4f0f26c1b0b..41bf933f79d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py @@ -1,35 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class BandFolder(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -40,14 +37,15 @@ def add_band(self): """Create a New Band""" return self._add_child_node("Band") - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) def delete(self): """Delete this node""" self._delete() + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py index b1a1b2a80b4..133b98c6b8f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class BandTraceNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -42,7 +38,7 @@ def export_model(self, file_name): """Save this data to a file""" return self._export_model(file_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -56,44 +52,50 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) class TxorRxOption(Enum): - TX = "Tx" # eslint-disable-line no-eval - RX = "Rx" # eslint-disable-line no-eval + TX = "Tx" # eslint-disable-line no-eval + RX = "Rx" # eslint-disable-line no-eval @property def tx_or_rx(self) -> TxorRxOption: """Tx or Rx Specifies whether the trace is a Tx or Rx channel - """ + """ val = self._get_property("Tx or Rx") - val = self.TxorRxOption[val] - return val # type: ignore + val = self.TxorRxOption[val.upper()] + return val # type: ignore @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx or Rx={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx or Rx={value.value}"]) @property def channel_frequency(self): """Channel Frequency Select band channel frequency to display - """ + """ val = self._get_property("Channel Frequency") - return val # type: ignore + return val # type: ignore @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: @@ -101,10 +103,10 @@ def transmit_frequency(self) -> float: The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset) - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def visible(self) -> bool: @@ -114,11 +116,14 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -128,46 +133,53 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") - val = self.StyleOption[val] - return val # type: ignore + val = self.StyleOption[val.upper()] + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -177,11 +189,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -191,42 +205,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") - val = self.SymbolOption[val] - return val # type: ignore + val = self.SymbolOption[val.upper()] + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -236,11 +254,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -250,11 +270,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -264,11 +286,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -279,8 +303,12 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py index e2e53a9ca69..57a80c483d3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py @@ -1,48 +1,44 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class CADNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): """The parent of this emit node.""" return self._parent - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -58,37 +54,39 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore class ModelTypeOption(Enum): - PLATE = "Plate" # eslint-disable-line no-eval - BOX = "Box" # eslint-disable-line no-eval - DIHEDRAL = "Dihedral" # eslint-disable-line no-eval - TRIHEDRAL = "Trihedral" # eslint-disable-line no-eval - CYLINDER = "Cylinder" # eslint-disable-line no-eval - TAPERED_CYLINDER = "Tapered Cylinder" # eslint-disable-line no-eval - CONE = "Cone" # eslint-disable-line no-eval - SPHERE = "Sphere" # eslint-disable-line no-eval - ELLIPSOID = "Ellipsoid" # eslint-disable-line no-eval - CIRCULAR_PLATE = "Circular Plate" # eslint-disable-line no-eval - PARABOLA = "Parabola" # eslint-disable-line no-eval - PRISM = "Prism" # eslint-disable-line no-eval - TAPERED_PRISM = "Tapered Prism" # eslint-disable-line no-eval - TOPHAT = "Tophat" # eslint-disable-line no-eval + PLATE = "Plate" # eslint-disable-line no-eval + BOX = "Box" # eslint-disable-line no-eval + DIHEDRAL = "Dihedral" # eslint-disable-line no-eval + TRIHEDRAL = "Trihedral" # eslint-disable-line no-eval + CYLINDER = "Cylinder" # eslint-disable-line no-eval + TAPERED_CYLINDER = "Tapered Cylinder" # eslint-disable-line no-eval + CONE = "Cone" # eslint-disable-line no-eval + SPHERE = "Sphere" # eslint-disable-line no-eval + ELLIPSOID = "Ellipsoid" # eslint-disable-line no-eval + CIRCULAR_PLATE = "Circular Plate" # eslint-disable-line no-eval + PARABOLA = "Parabola" # eslint-disable-line no-eval + PRISM = "Prism" # eslint-disable-line no-eval + TAPERED_PRISM = "Tapered Prism" # eslint-disable-line no-eval + TOPHAT = "Tophat" # eslint-disable-line no-eval @property def model_type(self) -> ModelTypeOption: """Model Type Select type of parametric model to create - """ + """ val = self._get_property("Model Type") - val = self.ModelTypeOption[val] - return val # type: ignore + val = self.ModelTypeOption[val.upper()] + return val # type: ignore @model_type.setter def model_type(self, value: ModelTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Model Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Model Type={value.value}"]) @property def length(self) -> float: @@ -99,12 +97,14 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @length.setter - def length(self, value: float | str): + def length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Length={value}"]) @property def width(self) -> float: @@ -115,12 +115,14 @@ def width(self) -> float: """ val = self._get_property("Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @width.setter - def width(self, value: float | str): + def width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Width={value}"]) @property def height(self) -> float: @@ -131,12 +133,14 @@ def height(self) -> float: """ val = self._get_property("Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @height.setter - def height(self, value: float | str): + def height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Height={value}"]) @property def angle(self) -> float: @@ -146,11 +150,13 @@ def angle(self) -> float: Value should be between 0 and 360. """ val = self._get_property("Angle") - return val # type: ignore + return val # type: ignore @angle.setter - def angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Angle={value}"]) + def angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Angle={value}"]) @property def top_side(self) -> float: @@ -161,12 +167,14 @@ def top_side(self) -> float: """ val = self._get_property("Top Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @top_side.setter - def top_side(self, value: float | str): + def top_side(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Top Side={value}"]) @property def top_radius(self) -> float: @@ -177,12 +185,14 @@ def top_radius(self) -> float: """ val = self._get_property("Top Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @top_radius.setter - def top_radius(self, value: float | str): + def top_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Top Radius={value}"]) @property def side(self) -> float: @@ -193,12 +203,14 @@ def side(self) -> float: """ val = self._get_property("Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @side.setter - def side(self, value: float | str): + def side(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Side={value}"]) @property def radius(self) -> float: @@ -209,12 +221,14 @@ def radius(self) -> float: """ val = self._get_property("Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @radius.setter - def radius(self, value: float | str): + def radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Radius={value}"]) @property def base_radius(self) -> float: @@ -225,12 +239,14 @@ def base_radius(self) -> float: """ val = self._get_property("Base Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @base_radius.setter - def base_radius(self, value: float | str): + def base_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Radius={value}"]) @property def center_radius(self) -> float: @@ -241,12 +257,14 @@ def center_radius(self) -> float: """ val = self._get_property("Center Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @center_radius.setter - def center_radius(self, value: float | str): + def center_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Center Radius={value}"]) @property def x_axis_ellipsoid_radius(self) -> float: @@ -257,12 +275,14 @@ def x_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("X Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value: float | str): + def x_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X Axis Ellipsoid Radius={value}"]) @property def y_axis_ellipsoid_radius(self) -> float: @@ -273,12 +293,14 @@ def y_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Y Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value: float | str): + def y_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y Axis Ellipsoid Radius={value}"]) @property def z_axis_ellipsoid_radius(self) -> float: @@ -289,12 +311,14 @@ def z_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Z Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value: float | str): + def z_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Z Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Z Axis Ellipsoid Radius={value}"]) @property def focal_length(self) -> float: @@ -305,27 +329,31 @@ def focal_length(self) -> float: """ val = self._get_property("Focal Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @focal_length.setter - def focal_length(self, value: float | str): + def focal_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Focal Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Focal Length={value}"]) @property def offset(self) -> float: """Offset Offset of parabolic reflector - """ + """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @offset.setter - def offset(self, value: float | str): + def offset(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Offset={value}"]) @property def x_direction_taper(self) -> float: @@ -336,11 +364,13 @@ def x_direction_taper(self) -> float: Value should be greater than 0. """ val = self._get_property("X Direction Taper") - return val # type: ignore + return val # type: ignore @x_direction_taper.setter - def x_direction_taper(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Direction Taper={value}"]) + def x_direction_taper(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X Direction Taper={value}"]) @property def y_direction_taper(self) -> float: @@ -351,11 +381,13 @@ def y_direction_taper(self) -> float: Value should be greater than 0. """ val = self._get_property("Y Direction Taper") - return val # type: ignore + return val # type: ignore @y_direction_taper.setter - def y_direction_taper(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Direction Taper={value}"]) + def y_direction_taper(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y Direction Taper={value}"]) @property def prism_direction(self): @@ -365,11 +397,13 @@ def prism_direction(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Prism Direction") - return val # type: ignore + return val # type: ignore @prism_direction.setter def prism_direction(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Prism Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Prism Direction={value}"]) @property def closed_top(self) -> bool: @@ -379,11 +413,14 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @closed_top.setter def closed_top(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Top={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Closed Top={value}"]) @property def closed_base(self) -> bool: @@ -393,11 +430,14 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @closed_base.setter def closed_base(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Base={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Closed Base={value}"]) @property def mesh_density(self) -> int: @@ -408,11 +448,13 @@ def mesh_density(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Mesh Density") - return val # type: ignore + return val # type: ignore @mesh_density.setter def mesh_density(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Density={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mesh Density={value}"]) @property def use_symmetric_mesh(self) -> bool: @@ -423,29 +465,34 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Symmetric Mesh={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Symmetric Mesh={value}"]) class MeshOptionOption(Enum): - IMPROVED = "Improved" # eslint-disable-line no-eval - LEGACY = "Legacy" # eslint-disable-line no-eval + IMPROVED = "Improved" # eslint-disable-line no-eval + LEGACY = "Legacy" # eslint-disable-line no-eval @property def mesh_option(self) -> MeshOptionOption: """Mesh Option Select from different meshing options - """ + """ val = self._get_property("Mesh Option") - val = self.MeshOptionOption[val] - return val # type: ignore + val = self.MeshOptionOption[val.upper()] + return val # type: ignore @mesh_option.setter def mesh_option(self, value: MeshOptionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Option={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mesh Option={value.value}"]) @property def coating_index(self) -> int: @@ -455,11 +502,13 @@ def coating_index(self) -> int: Value should be between 0 and 100000. """ val = self._get_property("Coating Index") - return val # type: ignore + return val # type: ignore @coating_index.setter def coating_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Coating Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Coating Index={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -470,13 +519,14 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): @@ -486,11 +536,13 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): @@ -500,29 +552,33 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") - val = self.OrientationModeOption[val] - return val # type: ignore + val = self.OrientationModeOption[val.upper()] + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -532,11 +588,13 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): @@ -546,11 +604,13 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def visible(self) -> bool: @@ -560,31 +620,36 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) class RenderModeOption(Enum): - FLAT_SHADED = "Flat-Shaded" # eslint-disable-line no-eval - WIRE_FRAME = "Wire-Frame" # eslint-disable-line no-eval - HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" # eslint-disable-line no-eval - OUTLINE = "Outline" # eslint-disable-line no-eval + FLAT_SHADED = "Flat-Shaded" # eslint-disable-line no-eval + WIRE_FRAME = "Wire-Frame" # eslint-disable-line no-eval + HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" # eslint-disable-line no-eval + OUTLINE = "Outline" # eslint-disable-line no-eval @property def render_mode(self) -> RenderModeOption: """Render Mode Select drawing style for surfaces - """ + """ val = self._get_property("Render Mode") - val = self.RenderModeOption[val] - return val # type: ignore + val = self.RenderModeOption[val.upper()] + return val # type: ignore @render_mode.setter def render_mode(self, value: RenderModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Render Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Render Mode={value.value}"]) @property def show_axes(self) -> bool: @@ -594,11 +659,14 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def min(self): @@ -608,7 +676,7 @@ def min(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Min") - return val # type: ignore + return val # type: ignore @property def max(self): @@ -618,16 +686,16 @@ def max(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Max") - return val # type: ignore + return val # type: ignore @property def number_of_surfaces(self) -> int: """Number of Surfaces Number of surfaces in the model - """ + """ val = self._get_property("Number of Surfaces") - return val # type: ignore + return val # type: ignore @property def color(self): @@ -637,21 +705,26 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index 679d4347384..d47ff8adbd4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -1,43 +1,39 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Cable(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = True - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -53,11 +49,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,29 +65,33 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - CONSTANT_LOSS = "Constant Loss" # eslint-disable-line no-eval - COAXIAL_CABLE = "Coaxial Cable" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + CONSTANT_LOSS = "Constant Loss" # eslint-disable-line no-eval + COAXIAL_CABLE = "Coaxial Cable" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -97,14 +99,16 @@ def type(self) -> TypeOption: Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable - """ + """ val = self._get_property("Type") - val = self.TypeOption[val] - return val # type: ignore + val = self.TypeOption[val.upper()] + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def length(self) -> float: @@ -115,12 +119,14 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @length.setter - def length(self, value: float | str): + def length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Length={value}"]) @property def loss_per_length(self) -> float: @@ -130,11 +136,13 @@ def loss_per_length(self) -> float: Value should be between 0 and 20. """ val = self._get_property("Loss Per Length") - return val # type: ignore + return val # type: ignore @loss_per_length.setter - def loss_per_length(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Loss Per Length={value}"]) + def loss_per_length(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Loss Per Length={value}"]) @property def measurement_length(self) -> float: @@ -145,12 +153,14 @@ def measurement_length(self) -> float: """ val = self._get_property("Measurement Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @measurement_length.setter - def measurement_length(self, value: float | str): + def measurement_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Length={value}"]) @property def resistive_loss_constant(self) -> float: @@ -160,11 +170,13 @@ def resistive_loss_constant(self) -> float: Value should be between 0 and 2. """ val = self._get_property("Resistive Loss Constant") - return val # type: ignore + return val # type: ignore @resistive_loss_constant.setter - def resistive_loss_constant(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resistive Loss Constant={value}"]) + def resistive_loss_constant(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Resistive Loss Constant={value}"]) @property def dielectric_loss_constant(self) -> float: @@ -174,17 +186,20 @@ def dielectric_loss_constant(self) -> float: Value should be between 0 and 1. """ val = self._get_property("Dielectric Loss Constant") - return val # type: ignore + return val # type: ignore @dielectric_loss_constant.setter - def dielectric_loss_constant(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Dielectric Loss Constant={value}"]) + def dielectric_loss_constant(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Dielectric Loss Constant={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py index e6ebf15eefe..4ad3df5df5b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py @@ -1,32 +1,30 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class CategoriesViewNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index 1be8ab11e6c..ba245c89e7a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -1,43 +1,39 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Circulator(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = True - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -53,11 +49,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,28 +65,32 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -96,32 +98,36 @@ def type(self) -> TypeOption: Type of circulator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") - val = self.TypeOption[val] - return val # type: ignore + val = self.TypeOption[val.upper()] + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the circulator. - """ + """ val = self._get_property("Port 1 Location") - val = self.Port1LocationOption[val] - return val # type: ignore + val = self.Port1LocationOption[val.upper()] + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -131,11 +137,13 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -146,11 +154,14 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -160,11 +171,13 @@ def reverse_isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -175,11 +188,14 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -189,11 +205,13 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -204,12 +222,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -220,12 +240,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -236,12 +258,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -252,18 +276,21 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py index f55a0825ac5..574e56f1ad2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py @@ -1,35 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class CouplingLinkNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -44,11 +41,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def ports(self): @@ -56,10 +56,13 @@ def ports(self): Maps each port in the link to an antenna in the project "A list of values." - """ + """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ports={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py index 5a11ac8dc61..03f3e994697 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class CouplingTraceNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -42,7 +38,7 @@ def export_model(self, file_name): """Save this data to a file""" return self._export_model(file_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -52,23 +48,29 @@ def delete(self): @property def transmitter(self) -> EmitNode: - """Transmitter""" + """Transmitter + """ val = self._get_property("Transmitter") - return val # type: ignore + return val # type: ignore @transmitter.setter def transmitter(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Transmitter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Transmitter={value}"]) @property def receiver(self) -> EmitNode: - """Receiver""" + """Receiver + """ val = self._get_property("Receiver") - return val # type: ignore + return val # type: ignore @receiver.setter def receiver(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Receiver={value}"]) @property def data_source(self): @@ -76,13 +78,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -92,11 +96,14 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -106,46 +113,53 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") - val = self.StyleOption[val] - return val # type: ignore + val = self.StyleOption[val.upper()] + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -155,11 +169,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -169,42 +185,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") - val = self.SymbolOption[val] - return val # type: ignore + val = self.SymbolOption[val.upper()] + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -214,11 +234,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -228,11 +250,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -242,11 +266,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -257,11 +283,14 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def highlight_regions(self) -> bool: @@ -271,11 +300,14 @@ def highlight_regions(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Highlight Regions") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @highlight_regions.setter def highlight_regions(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highlight Regions={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Highlight Regions={value}"]) @property def show_region_labels(self) -> bool: @@ -285,11 +317,14 @@ def show_region_labels(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Region Labels") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @show_region_labels.setter def show_region_labels(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Region Labels={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Region Labels={value}"]) @property def font(self): @@ -299,11 +334,13 @@ def font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): @@ -313,11 +350,13 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): @@ -327,11 +366,13 @@ def background_color(self): Color should be in RGBA form: #AARRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: @@ -341,11 +382,14 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: @@ -355,11 +399,13 @@ def border_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): @@ -369,8 +415,11 @@ def border_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py index 088945373d9..9ba17529133 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py @@ -1,39 +1,36 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class CouplingsNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" - return self._import(file_name, "TouchstoneCoupling") + return self._import(file_name,"TouchstoneCoupling") def add_custom_coupling(self): """Add a new node to define custom coupling between antennas""" @@ -80,11 +77,13 @@ def minimum_allowed_coupling(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Minimum Allowed Coupling") - return val # type: ignore + return val # type: ignore @minimum_allowed_coupling.setter - def minimum_allowed_coupling(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Allowed Coupling={value}"]) + def minimum_allowed_coupling(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minimum Allowed Coupling={value}"]) @property def global_default_coupling(self) -> float: @@ -94,17 +93,20 @@ def global_default_coupling(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Global Default Coupling") - return val # type: ignore + return val # type: ignore @global_default_coupling.setter - def global_default_coupling(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Global Default Coupling={value}"]) + def global_default_coupling(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Global Default Coupling={value}"]) @property def antenna_tags(self) -> str: """Antenna Tags All tags currently used by all antennas in the project - """ + """ val = self._get_property("Antenna Tags") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py index 9292bf109fc..7e3632d60d0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py @@ -1,35 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class CustomCouplingNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -38,13 +35,13 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -54,11 +51,11 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Value (dB): + "Value (dB): Value should be between -1000 and 0. """ return self._get_table_data() @@ -75,37 +72,44 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -115,11 +119,14 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -129,21 +136,27 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py index eb1dab1e3e2..84c1562b1d8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py @@ -1,48 +1,44 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class EmiPlotMarkerNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): """The parent of this emit node.""" return self._parent - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -58,11 +54,14 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def attached(self): @@ -70,31 +69,33 @@ def attached(self): Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False) - """ + """ val = self._get_property("Attached") - return val # type: ignore + return val # type: ignore @attached.setter def attached(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Attached={value}"]) @property def position_x(self) -> float: """Position X Position of the marker on the X-axis (frequency axis). - """ + """ val = self._get_property("Position X") - return val # type: ignore + return val # type: ignore @property def position_y(self) -> float: """Position Y Position of the marker on the Y-axis (result axis). - """ + """ val = self._get_property("Position Y") - return val # type: ignore + return val # type: ignore @property def floating_label(self) -> bool: @@ -105,11 +106,14 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -120,11 +124,13 @@ def position_from_left(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Position from Left") - return val # type: ignore + return val # type: ignore @position_from_left.setter - def position_from_left(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) + def position_from_left(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -135,83 +141,91 @@ def position_from_top(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Position from Top") - return val # type: ignore + return val # type: ignore @position_from_top.setter - def position_from_top(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) + def position_from_top(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Top={value}"]) @property def text(self) -> str: """Text Set the text of the label - """ + """ val = self._get_property("Text") - return val # type: ignore + return val # type: ignore @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text={value}"]) class HorizontalPositionOption(Enum): - LEFT = "Left" # eslint-disable-line no-eval - RIGHT = "Right" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + LEFT = "Left" # eslint-disable-line no-eval + RIGHT = "Right" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position Specify horizontal position of the label as compared to the symbol - """ + """ val = self._get_property("Horizontal Position") - val = self.HorizontalPositionOption[val] - return val # type: ignore + val = self.HorizontalPositionOption[val.upper()] + return val # type: ignore @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Horizontal Position={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Position={value.value}"]) class VerticalPositionOption(Enum): - TOP = "Top" # eslint-disable-line no-eval - BOTTOM = "Bottom" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + TOP = "Top" # eslint-disable-line no-eval + BOTTOM = "Bottom" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def vertical_position(self) -> VerticalPositionOption: """Vertical Position Specify vertical position of the label as compared to the symbol - """ + """ val = self._get_property("Vertical Position") - val = self.VerticalPositionOption[val] - return val # type: ignore + val = self.VerticalPositionOption[val.upper()] + return val # type: ignore @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): - LEFT = "Left" # eslint-disable-line no-eval - RIGHT = "Right" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + LEFT = "Left" # eslint-disable-line no-eval + RIGHT = "Right" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def text_alignment(self) -> TextAlignmentOption: """Text Alignment Specify justification applied to multi-line text - """ + """ val = self._get_property("Text Alignment") - val = self.TextAlignmentOption[val] - return val # type: ignore + val = self.TextAlignmentOption[val.upper()] + return val # type: ignore @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text Alignment={value.value}"]) @property def font(self): @@ -221,11 +235,13 @@ def font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): @@ -235,11 +251,13 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): @@ -249,11 +267,13 @@ def background_color(self): Color should be in RGBA form: #AARRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: @@ -263,11 +283,14 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: @@ -277,11 +300,13 @@ def border_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): @@ -291,43 +316,47 @@ def border_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval - ARROW = "Arrow" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval + ARROW = "Arrow" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Specify symbol displayed next to the label - """ + """ val = self._get_property("Symbol") - val = self.SymbolOption[val] - return val # type: ignore + val = self.SymbolOption[val.upper()] + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -337,11 +366,13 @@ def arrow_direction(self) -> int: Value should be between -360 and 360. """ val = self._get_property("Arrow Direction") - return val # type: ignore + return val # type: ignore @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -351,11 +382,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -365,11 +398,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -379,11 +414,13 @@ def line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -394,8 +431,12 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py index b37227169ce..f3dbf2e0295 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class EmitSceneNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) def add_group(self): """Add a new scene group""" @@ -42,34 +38,36 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class GroundPlaneNormalOption(Enum): - X_AXIS = "X Axis" # eslint-disable-line no-eval - Y_AXIS = "Y Axis" # eslint-disable-line no-eval - Z_AXIS = "Z Axis" # eslint-disable-line no-eval + X_AXIS = "X Axis" # eslint-disable-line no-eval + Y_AXIS = "Y Axis" # eslint-disable-line no-eval + Z_AXIS = "Z Axis" # eslint-disable-line no-eval @property def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal Specifies the axis of the normal to the ground plane - """ + """ val = self._get_property("Ground Plane Normal") - val = self.GroundPlaneNormalOption[val] - return val # type: ignore + val = self.GroundPlaneNormalOption[val.upper()] + return val # type: ignore @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ground Plane Normal={value.value}"]) @property def gp_position_along_normal(self) -> float: @@ -77,12 +75,15 @@ def gp_position_along_normal(self) -> float: Offset of ground plane in direction normal to the ground planes orientation - """ + """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @gp_position_along_normal.setter - def gp_position_along_normal(self, value: float | str): + def gp_position_along_normal(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GP Position Along Normal={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"GP Position Along Normal={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py index 20767e4e39a..026235ad0d5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py @@ -1,48 +1,44 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ErcegCouplingNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): """The parent of this emit node.""" return self._parent - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -58,37 +54,44 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +101,14 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,43 +118,50 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class TerrainCategoryOption(Enum): - TYPE_A = "Type A" # eslint-disable-line no-eval - TYPE_B = "Type B" # eslint-disable-line no-eval - TYPE_C = "Type C" # eslint-disable-line no-eval + TYPE_A = "Type A" # eslint-disable-line no-eval + TYPE_B = "Type B" # eslint-disable-line no-eval + TYPE_C = "Type C" # eslint-disable-line no-eval @property def terrain_category(self) -> TerrainCategoryOption: """Terrain Category Specify the terrain category type for the Erceg model - """ + """ val = self._get_property("Terrain Category") - val = self.TerrainCategoryOption[val] - return val # type: ignore + val = self.TerrainCategoryOption[val.upper()] + return val # type: ignore @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Terrain Category={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Terrain Category={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -159,11 +172,13 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -174,11 +189,13 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -189,31 +206,35 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") - val = self.FadingTypeOption[val] - return val # type: ignore + val = self.FadingTypeOption[val.upper()] + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -224,11 +245,13 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -238,11 +261,13 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -252,11 +277,14 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -267,11 +295,13 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -281,11 +311,13 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -296,11 +328,13 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -311,13 +345,14 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -327,11 +362,13 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -341,11 +378,13 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -355,10 +394,11 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index dcc8e555e62..78ed457688b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -1,43 +1,39 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Filter(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = True - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -53,11 +49,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,33 +65,37 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - LOW_PASS = "Low Pass" # eslint-disable-line no-eval - HIGH_PASS = "High Pass" # eslint-disable-line no-eval - BAND_PASS = "Band Pass" # eslint-disable-line no-eval - BAND_STOP = "Band Stop" # eslint-disable-line no-eval - TUNABLE_BANDPASS = "Tunable Bandpass" # eslint-disable-line no-eval - TUNABLE_BANDSTOP = "Tunable Bandstop" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + LOW_PASS = "Low Pass" # eslint-disable-line no-eval + HIGH_PASS = "High Pass" # eslint-disable-line no-eval + BAND_PASS = "Band Pass" # eslint-disable-line no-eval + BAND_STOP = "Band Stop" # eslint-disable-line no-eval + TUNABLE_BANDPASS = "Tunable Bandpass" # eslint-disable-line no-eval + TUNABLE_BANDSTOP = "Tunable Bandstop" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -101,14 +103,16 @@ def type(self) -> TypeOption: Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") - val = self.TypeOption[val] - return val # type: ignore + val = self.TypeOption[val.upper()] + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def insertion_loss(self) -> float: @@ -118,11 +122,13 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -132,11 +138,13 @@ def stop_band_attenuation(self) -> float: Value should be less than 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @stop_band_attenuation.setter - def stop_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -147,12 +155,14 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_pass_band.setter - def max_pass_band(self, value: float | str): + def max_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -163,12 +173,14 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_stop_band.setter - def min_stop_band(self, value: float | str): + def min_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -179,12 +191,14 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_stop_band.setter - def max_stop_band(self, value: float | str): + def max_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -195,12 +209,14 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_pass_band.setter - def min_pass_band(self, value: float | str): + def min_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -211,12 +227,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -227,12 +245,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -243,12 +263,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -259,108 +281,122 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff Lower cutoff frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff_.setter - def lower_cutoff_(self, value: float | str): + def lower_cutoff_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff ={value}"]) @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band Lower stop band frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band_.setter - def lower_stop_band_(self, value: float | str): + def lower_stop_band_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band ={value}"]) @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band Higher stop band frequency Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band_.setter - def higher_stop_band_(self, value: float | str): + def higher_stop_band_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band ={value}"]) @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff Higher cutoff frequency Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff_.setter - def higher_cutoff_(self, value: float | str): + def higher_cutoff_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff ={value}"]) @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency Lowest tuned frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lowest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lowest_tuned_frequency_.setter - def lowest_tuned_frequency_(self, value: float | str): + def lowest_tuned_frequency_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lowest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lowest Tuned Frequency ={value}"]) @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency Highest tuned frequency Value should be between 1 and 1e+11. """ val = self._get_property("Highest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @highest_tuned_frequency_.setter - def highest_tuned_frequency_(self, value: float | str): + def highest_tuned_frequency_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Highest Tuned Frequency ={value}"]) @property def percent_bandwidth(self) -> float: @@ -370,11 +406,13 @@ def percent_bandwidth(self) -> float: Value should be between 0.001 and 100. """ val = self._get_property("Percent Bandwidth") - return val # type: ignore + return val # type: ignore @percent_bandwidth.setter - def percent_bandwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percent Bandwidth={value}"]) + def percent_bandwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Percent Bandwidth={value}"]) @property def shape_factor(self) -> float: @@ -384,17 +422,20 @@ def shape_factor(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @shape_factor.setter - def shape_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) + def shape_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Shape Factor={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py index 79a2d31a6af..77d0e243b1b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py @@ -1,48 +1,44 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class FiveGChannelModel(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): """The parent of this emit node.""" return self._parent - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -58,37 +54,44 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +101,14 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,43 +118,50 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): - URBAN_MICROCELL = "Urban Microcell" # eslint-disable-line no-eval - URBAN_MACROCELL = "Urban Macrocell" # eslint-disable-line no-eval - RURAL_MACROCELL = "Rural Macrocell" # eslint-disable-line no-eval + URBAN_MICROCELL = "Urban Microcell" # eslint-disable-line no-eval + URBAN_MACROCELL = "Urban Macrocell" # eslint-disable-line no-eval + RURAL_MACROCELL = "Rural Macrocell" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment for the 5G channel model - """ + """ val = self._get_property("Environment") - val = self.EnvironmentOption[val] - return val # type: ignore + val = self.EnvironmentOption[val.upper()] + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def los(self) -> bool: @@ -158,11 +171,14 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @los.setter def los(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"LOS={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"LOS={value}"]) @property def include_bpl(self) -> bool: @@ -172,29 +188,34 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @include_bpl.setter def include_bpl(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include BPL={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include BPL={value}"]) class NYUBPLModelOption(Enum): - LOW_LOSS_MODEL = "Low-loss model" # eslint-disable-line no-eval - HIGH_LOSS_MODEL = "High-loss model" # eslint-disable-line no-eval + LOW_LOSS_MODEL = "Low-loss model" # eslint-disable-line no-eval + HIGH_LOSS_MODEL = "High-loss model" # eslint-disable-line no-eval @property def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model Specify the NYU Building Penetration Loss model - """ + """ val = self._get_property("NYU BPL Model") - val = self.NYUBPLModelOption[val] - return val # type: ignore + val = self.NYUBPLModelOption[val.upper()] + return val # type: ignore @nyu_bpl_model.setter def nyu_bpl_model(self, value: NYUBPLModelOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NYU BPL Model={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NYU BPL Model={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -205,11 +226,13 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -220,11 +243,13 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -235,31 +260,35 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") - val = self.FadingTypeOption[val] - return val # type: ignore + val = self.FadingTypeOption[val.upper()] + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -270,11 +299,13 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -284,11 +315,13 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -298,11 +331,14 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -313,11 +349,13 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -327,11 +365,13 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -342,11 +382,13 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -357,13 +399,14 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -373,11 +416,13 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -387,11 +432,13 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -401,10 +448,11 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py index fbcdd4656de..423417c6db1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py @@ -1,48 +1,44 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class HataCouplingNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): """The parent of this emit node.""" return self._parent - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -58,37 +54,44 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +101,14 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,44 +118,51 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): - LARGE_CITY = "Large City" # eslint-disable-line no-eval - SMALLMEDIUM_CITY = "Small/Medium City" # eslint-disable-line no-eval - SUBURBAN = "Suburban" # eslint-disable-line no-eval - RURAL = "Rural" # eslint-disable-line no-eval + LARGE_CITY = "Large City" # eslint-disable-line no-eval + SMALLMEDIUM_CITY = "Small/Medium City" # eslint-disable-line no-eval + SUBURBAN = "Suburban" # eslint-disable-line no-eval + RURAL = "Rural" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Hata model - """ + """ val = self._get_property("Environment") - val = self.EnvironmentOption[val] - return val # type: ignore + val = self.EnvironmentOption[val.upper()] + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -160,11 +173,13 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -175,11 +190,13 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -190,31 +207,35 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") - val = self.FadingTypeOption[val] - return val # type: ignore + val = self.FadingTypeOption[val.upper()] + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -225,11 +246,13 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -239,11 +262,13 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -253,11 +278,14 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -268,11 +296,13 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -282,11 +312,13 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -297,11 +329,13 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -312,13 +346,14 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -328,11 +363,13 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -342,11 +379,13 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -356,10 +395,11 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py index 81cc2a28ea1..a16c31a0414 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py @@ -1,48 +1,44 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class IndoorPropagationCouplingNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): """The parent of this emit node.""" return self._parent - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -52,13 +48,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Power Loss Coefficient: + "Power Loss Coefficient: Value should be between 0 and 100. - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): Value should be between 0 and 1000. """ return self._get_table_data() @@ -75,37 +71,44 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -115,11 +118,14 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -129,45 +135,52 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class BuildingTypeOption(Enum): - RESIDENTIAL_APARTMENT = "Residential Apartment" # eslint-disable-line no-eval - RESIDENTIAL_HOUSE = "Residential House" # eslint-disable-line no-eval - OFFICE_BUILDING = "Office Building" # eslint-disable-line no-eval - COMMERCIAL_BUILDING = "Commercial Building" # eslint-disable-line no-eval - CUSTOM_BUILDING = "Custom Building" # eslint-disable-line no-eval + RESIDENTIAL_APARTMENT = "Residential Apartment" # eslint-disable-line no-eval + RESIDENTIAL_HOUSE = "Residential House" # eslint-disable-line no-eval + OFFICE_BUILDING = "Office Building" # eslint-disable-line no-eval + COMMERCIAL_BUILDING = "Commercial Building" # eslint-disable-line no-eval + CUSTOM_BUILDING = "Custom Building" # eslint-disable-line no-eval @property def building_type(self) -> BuildingTypeOption: """Building Type Specify the building type for the Indoor Propagation model - """ + """ val = self._get_property("Building Type") - val = self.BuildingTypeOption[val] - return val # type: ignore + val = self.BuildingTypeOption[val.upper()] + return val # type: ignore @building_type.setter def building_type(self, value: BuildingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Building Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Building Type={value.value}"]) @property def number_of_floors(self) -> int: @@ -177,11 +190,13 @@ def number_of_floors(self) -> int: Value should be between 1 and 3. """ val = self._get_property("Number of Floors") - return val # type: ignore + return val # type: ignore @number_of_floors.setter def number_of_floors(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Floors={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Floors={value}"]) @property def custom_fading_margin(self) -> float: @@ -192,11 +207,13 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -207,11 +224,13 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -222,31 +241,35 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") - val = self.FadingTypeOption[val] - return val # type: ignore + val = self.FadingTypeOption[val.upper()] + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -257,11 +280,13 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -271,11 +296,13 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -285,11 +312,14 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -300,11 +330,13 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -314,11 +346,13 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -329,11 +363,13 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -344,13 +380,14 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -360,11 +397,13 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -374,11 +413,13 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -388,10 +429,11 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index a82cee56acf..c87fc95b8cf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -1,43 +1,39 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Isolator(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = True - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -53,11 +49,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,28 +65,32 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -96,32 +98,36 @@ def type(self) -> TypeOption: Type of isolator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") - val = self.TypeOption[val] - return val # type: ignore + val = self.TypeOption[val.upper()] + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the isolator. - """ + """ val = self._get_property("Port 1 Location") - val = self.Port1LocationOption[val] - return val # type: ignore + val = self.Port1LocationOption[val.upper()] + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -131,11 +137,13 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -146,11 +154,14 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -160,11 +171,13 @@ def reverse_isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -175,11 +188,14 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -189,11 +205,13 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -204,12 +222,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -220,12 +240,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -236,12 +258,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -252,18 +276,21 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py index 68af36df6da..7305026079c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py @@ -1,48 +1,44 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class LogDistanceCouplingNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): """The parent of this emit node.""" return self._parent - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -58,37 +54,44 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +101,14 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,47 +118,54 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): - FREE_SPACE = "Free Space" # eslint-disable-line no-eval - URBAN = "Urban" # eslint-disable-line no-eval - SHADOWED_URBAN = "Shadowed Urban" # eslint-disable-line no-eval - BUILDING_LINE_OF_SIGHT = "Building Line of Sight" # eslint-disable-line no-eval - BUILDING_OBSTRUCTED = "Building Obstructed" # eslint-disable-line no-eval - FACTORY_OBSTRUCTED = "Factory Obstructed" # eslint-disable-line no-eval - CUSTOM = "Custom" # eslint-disable-line no-eval + FREE_SPACE = "Free Space" # eslint-disable-line no-eval + URBAN = "Urban" # eslint-disable-line no-eval + SHADOWED_URBAN = "Shadowed Urban" # eslint-disable-line no-eval + BUILDING_LINE_OF_SIGHT = "Building Line of Sight" # eslint-disable-line no-eval + BUILDING_OBSTRUCTED = "Building Obstructed" # eslint-disable-line no-eval + FACTORY_OBSTRUCTED = "Factory Obstructed" # eslint-disable-line no-eval + CUSTOM = "Custom" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Log Distance model - """ + """ val = self._get_property("Environment") - val = self.EnvironmentOption[val] - return val # type: ignore + val = self.EnvironmentOption[val.upper()] + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def path_loss_exponent(self) -> float: @@ -162,11 +175,13 @@ def path_loss_exponent(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Path Loss Exponent") - return val # type: ignore + return val # type: ignore @path_loss_exponent.setter - def path_loss_exponent(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Exponent={value}"]) + def path_loss_exponent(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Path Loss Exponent={value}"]) @property def custom_fading_margin(self) -> float: @@ -177,11 +192,13 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -192,11 +209,13 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -207,31 +226,35 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") - val = self.FadingTypeOption[val] - return val # type: ignore + val = self.FadingTypeOption[val.upper()] + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -242,11 +265,13 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -256,11 +281,13 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -270,11 +297,14 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -285,11 +315,13 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -299,11 +331,13 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -314,11 +348,13 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -329,13 +365,14 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -345,11 +382,13 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -359,11 +398,13 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -373,10 +414,11 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py index 328b349648e..9c98a84bd0f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class MPlexBandTraceNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -42,7 +38,7 @@ def export_model(self, file_name): """Save this data to a file""" return self._export_model(file_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -51,18 +47,21 @@ def delete(self): self._delete() class PowerDirectionOption(Enum): - INTO_COMMON_PORTOUT_OF_COMMON_PORT = "Into Common Port|Out of Common Port" # eslint-disable-line no-eval + INTO_COMMON_PORTOUT_OF_COMMON_PORT = "Into Common Port|Out of Common Port" # eslint-disable-line no-eval @property def power_direction(self) -> PowerDirectionOption: - """Power Direction""" + """Power Direction + """ val = self._get_property("Power Direction") - val = self.PowerDirectionOption[val] - return val # type: ignore + val = self.PowerDirectionOption[val.upper()] + return val # type: ignore @power_direction.setter def power_direction(self, value: PowerDirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Power Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Power Direction={value.value}"]) @property def data_source(self): @@ -70,13 +69,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -86,11 +87,14 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -100,46 +104,53 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") - val = self.StyleOption[val] - return val # type: ignore + val = self.StyleOption[val.upper()] + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -149,11 +160,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -163,42 +176,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") - val = self.SymbolOption[val] - return val # type: ignore + val = self.SymbolOption[val.upper()] + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -208,11 +225,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -222,11 +241,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -236,11 +257,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -251,8 +274,12 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index 358ae80db06..0090252203e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -1,47 +1,43 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Multiplexer(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = True - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) def add_multiplexer_pass_band(self): """Add a New Multiplexer Band to this Multiplexer""" return self._add_child_node("Multiplexer Pass Band") - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -57,11 +53,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -71,28 +69,32 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_PASS_BAND = "By Pass Band" # eslint-disable-line no-eval - BY_FILE = "By File" # eslint-disable-line no-eval + BY_PASS_BAND = "By Pass Band" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -101,32 +103,36 @@ def type(self) -> TypeOption: simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band) - """ + """ val = self._get_property("Type") - val = self.TypeOption[val] - return val # type: ignore + val = self.TypeOption[val.upper()] + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the multiplexer. - """ + """ val = self._get_property("Port 1 Location") - val = self.Port1LocationOption[val] - return val # type: ignore + val = self.Port1LocationOption[val.upper()] + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def flip_ports_vertically(self) -> bool: @@ -136,11 +142,14 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flip Ports Vertically={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Flip Ports Vertically={value}"]) @property def ports(self): @@ -148,19 +157,22 @@ def ports(self): Assigns the child port nodes to the multiplexers ports "A list of values." - """ + """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ports={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py index a4af4c91f77..1cfdec19589 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py @@ -1,48 +1,44 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class MultiplexerBand(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): """The parent of this emit node.""" return self._parent - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -51,10 +47,10 @@ def delete(self): self._delete() class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - LOW_PASS = "Low Pass" # eslint-disable-line no-eval - HIGH_PASS = "High Pass" # eslint-disable-line no-eval - BAND_PASS = "Band Pass" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + LOW_PASS = "Low Pass" # eslint-disable-line no-eval + HIGH_PASS = "High Pass" # eslint-disable-line no-eval + BAND_PASS = "Band Pass" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -63,14 +59,16 @@ def type(self) -> TypeOption: file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") - val = self.TypeOption[val] - return val # type: ignore + val = self.TypeOption[val.upper()] + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def filename(self) -> str: @@ -80,11 +78,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def insertion_loss(self) -> float: @@ -94,11 +94,13 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -108,11 +110,13 @@ def stop_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @stop_band_attenuation.setter - def stop_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -123,12 +127,14 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_pass_band.setter - def max_pass_band(self, value: float | str): + def max_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -139,12 +145,14 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_stop_band.setter - def min_stop_band(self, value: float | str): + def min_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -155,12 +163,14 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_stop_band.setter - def max_stop_band(self, value: float | str): + def max_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -171,12 +181,14 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_pass_band.setter - def min_pass_band(self, value: float | str): + def min_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -187,12 +199,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -203,12 +217,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -219,12 +235,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -235,18 +253,21 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py index db98a78916e..43f98bc7377 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class OutboardTraceNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -42,7 +38,7 @@ def export_model(self, file_name): """Save this data to a file""" return self._export_model(file_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -58,11 +54,13 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -72,11 +70,13 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): @@ -84,13 +84,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -100,11 +102,14 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -114,46 +119,53 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") - val = self.StyleOption[val] - return val # type: ignore + val = self.StyleOption[val.upper()] + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -163,11 +175,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -177,42 +191,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") - val = self.SymbolOption[val] - return val # type: ignore + val = self.SymbolOption[val.upper()] + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -222,11 +240,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -236,11 +256,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -250,11 +272,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -265,8 +289,12 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py index 4f429fb68c7..202761b6c07 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ParametricCouplingTraceNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -42,7 +38,7 @@ def export_model(self, file_name): """Save this data to a file""" return self._export_model(file_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -52,23 +48,29 @@ def delete(self): @property def antenna_a(self) -> EmitNode: - """Antenna A""" + """Antenna A + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: - """Antenna B""" + """Antenna B + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def data_source(self): @@ -76,13 +78,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -92,11 +96,14 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -106,46 +113,53 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") - val = self.StyleOption[val] - return val # type: ignore + val = self.StyleOption[val.upper()] + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -155,11 +169,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -169,42 +185,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") - val = self.SymbolOption[val] - return val # type: ignore + val = self.SymbolOption[val.upper()] + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -214,11 +234,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -228,11 +250,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -242,11 +266,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -257,8 +283,12 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py index 228ea6c5fc9..09370d36dff 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py @@ -1,48 +1,44 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PlotMarkerNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): """The parent of this emit node.""" return self._parent - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -58,11 +54,14 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def attached(self) -> bool: @@ -73,37 +72,44 @@ def attached(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Attached") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @attached.setter def attached(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Attached={value}"]) @property def position_x(self) -> float: """Position X Position of the marker on the X-axis (frequency axis). - """ + """ val = self._get_property("Position X") - return val # type: ignore + return val # type: ignore @position_x.setter - def position_x(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position X={value}"]) + def position_x(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position X={value}"]) @property def position_y(self) -> float: """Position Y Position of the marker on the Y-axis (result axis). - """ + """ val = self._get_property("Position Y") - return val # type: ignore + return val # type: ignore @position_y.setter - def position_y(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Y={value}"]) + def position_y(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position Y={value}"]) @property def floating_label(self) -> bool: @@ -114,11 +120,14 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -129,11 +138,13 @@ def position_from_left(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Position from Left") - return val # type: ignore + return val # type: ignore @position_from_left.setter - def position_from_left(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) + def position_from_left(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -144,83 +155,91 @@ def position_from_top(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Position from Top") - return val # type: ignore + return val # type: ignore @position_from_top.setter - def position_from_top(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) + def position_from_top(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Top={value}"]) @property def text(self) -> str: """Text Set the text of the label - """ + """ val = self._get_property("Text") - return val # type: ignore + return val # type: ignore @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text={value}"]) class HorizontalPositionOption(Enum): - LEFT = "Left" # eslint-disable-line no-eval - RIGHT = "Right" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + LEFT = "Left" # eslint-disable-line no-eval + RIGHT = "Right" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position Specify horizontal position of the label as compared to the symbol - """ + """ val = self._get_property("Horizontal Position") - val = self.HorizontalPositionOption[val] - return val # type: ignore + val = self.HorizontalPositionOption[val.upper()] + return val # type: ignore @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Horizontal Position={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Position={value.value}"]) class VerticalPositionOption(Enum): - TOP = "Top" # eslint-disable-line no-eval - BOTTOM = "Bottom" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + TOP = "Top" # eslint-disable-line no-eval + BOTTOM = "Bottom" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def vertical_position(self) -> VerticalPositionOption: """Vertical Position Specify vertical position of the label as compared to the symbol - """ + """ val = self._get_property("Vertical Position") - val = self.VerticalPositionOption[val] - return val # type: ignore + val = self.VerticalPositionOption[val.upper()] + return val # type: ignore @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): - LEFT = "Left" # eslint-disable-line no-eval - RIGHT = "Right" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + LEFT = "Left" # eslint-disable-line no-eval + RIGHT = "Right" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def text_alignment(self) -> TextAlignmentOption: """Text Alignment Specify justification applied to multi-line text - """ + """ val = self._get_property("Text Alignment") - val = self.TextAlignmentOption[val] - return val # type: ignore + val = self.TextAlignmentOption[val.upper()] + return val # type: ignore @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text Alignment={value.value}"]) @property def font(self): @@ -230,11 +249,13 @@ def font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): @@ -244,11 +265,13 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): @@ -258,11 +281,13 @@ def background_color(self): Color should be in RGBA form: #AARRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: @@ -272,11 +297,14 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: @@ -286,11 +314,13 @@ def border_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): @@ -300,43 +330,47 @@ def border_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval - ARROW = "Arrow" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval + ARROW = "Arrow" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Specify symbol displayed next to the label - """ + """ val = self._get_property("Symbol") - val = self.SymbolOption[val] - return val # type: ignore + val = self.SymbolOption[val.upper()] + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -346,11 +380,13 @@ def arrow_direction(self) -> int: Value should be between -360 and 360. """ val = self._get_property("Arrow Direction") - return val # type: ignore + return val # type: ignore @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -360,11 +396,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -374,11 +412,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -388,11 +428,13 @@ def line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -403,8 +445,12 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py index 391a764475e..24a94c0e748 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PlotNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) def add_marker(self): """Add an icon and/or label to this plot""" @@ -41,11 +37,11 @@ def export_model(self, file_name): """Save this data to a file""" return self._export_model(file_name) - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -58,13 +54,15 @@ def title(self) -> str: """Title Enter title at the top of the plot, room will be made for it - """ + """ val = self._get_property("Title") - return val # type: ignore + return val # type: ignore @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title={value}"]) @property def title_font(self): @@ -74,11 +72,13 @@ def title_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Title Font") - return val # type: ignore + return val # type: ignore @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -88,11 +88,14 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Legend={value}"]) @property def legend_font(self): @@ -102,11 +105,13 @@ def legend_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Legend Font") - return val # type: ignore + return val # type: ignore @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Legend Font={value}"]) @property def display_cad_overlay(self) -> bool: @@ -116,11 +121,14 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -130,24 +138,28 @@ def opacity(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Opacity") - return val # type: ignore + return val # type: ignore @opacity.setter - def opacity(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) + def opacity(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset Adjust vertical position of CAD model overlay - """ + """ val = self._get_property("Vertical Offset") - return val # type: ignore + return val # type: ignore @vertical_offset.setter - def vertical_offset(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) + def vertical_offset(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -158,11 +170,13 @@ def range_axis_rotation(self) -> float: Value should be between -180 and 180. """ val = self._get_property("Range Axis Rotation") - return val # type: ignore + return val # type: ignore @range_axis_rotation.setter - def range_axis_rotation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -172,63 +186,74 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min Set lower extent of horizontal axis - """ + """ val = self._get_property("X-axis Min") - return val # type: ignore + return val # type: ignore @x_axis_min.setter - def x_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) + def x_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max Set upper extent of horizontal axis - """ + """ val = self._get_property("X-axis Max") - return val # type: ignore + return val # type: ignore @x_axis_max.setter - def x_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) + def x_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min Set lower extent of vertical axis - """ + """ val = self._get_property("Y-axis Min") - return val # type: ignore + return val # type: ignore @y_axis_min.setter - def y_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) + def y_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max Set upper extent of vertical axis - """ + """ val = self._get_property("Y-axis Max") - return val # type: ignore + return val # type: ignore @y_axis_max.setter - def y_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) + def y_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -239,11 +264,13 @@ def y_axis_range(self) -> float: Value should be greater than 0. """ val = self._get_property("Y-axis Range") - return val # type: ignore + return val # type: ignore @y_axis_range.setter - def y_axis_range(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) + def y_axis_range(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -253,11 +280,13 @@ def max_major_ticks_x(self) -> int: Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks X") - return val # type: ignore + return val # type: ignore @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -268,11 +297,13 @@ def max_minor_ticks_x(self) -> int: Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks X") - return val # type: ignore + return val # type: ignore @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -282,11 +313,13 @@ def max_major_ticks_y(self) -> int: Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks Y") - return val # type: ignore + return val # type: ignore @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -297,11 +330,13 @@ def max_minor_ticks_y(self) -> int: Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks Y") - return val # type: ignore + return val # type: ignore @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -311,11 +346,13 @@ def axis_label_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Label Font") - return val # type: ignore + return val # type: ignore @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -325,35 +362,37 @@ def axis_tick_label_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Tick Label Font") - return val # type: ignore + return val # type: ignore @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style Select line style of major-tick grid lines - """ + """ val = self._get_property("Major Grid Line Style") - val = self.MajorGridLineStyleOption[val] - return val # type: ignore + val = self.MajorGridLineStyleOption[val.upper()] + return val # type: ignore @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Line Style={value.value}"]) @property def major_grid_color(self): @@ -363,35 +402,37 @@ def major_grid_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Major Grid Color") - return val # type: ignore + return val # type: ignore @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style Select line style of minor-tick grid lines - """ + """ val = self._get_property("Minor Grid Line Style") - val = self.MinorGridLineStyleOption[val] - return val # type: ignore + val = self.MinorGridLineStyleOption[val.upper()] + return val # type: ignore @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Line Style={value.value}"]) @property def minor_grid_color(self): @@ -401,11 +442,13 @@ def minor_grid_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Minor Grid Color") - return val # type: ignore + return val # type: ignore @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -415,33 +458,35 @@ def background_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): - HERTZ = "hertz" # eslint-disable-line no-eval - KILOHERTZ = "kilohertz" # eslint-disable-line no-eval - MEGAHERTZ = "megahertz" # eslint-disable-line no-eval - GIGAHERTZ = "gigahertz" # eslint-disable-line no-eval + HERTZ = "hertz" # eslint-disable-line no-eval + KILOHERTZ = "kilohertz" # eslint-disable-line no-eval + MEGAHERTZ = "megahertz" # eslint-disable-line no-eval + GIGAHERTZ = "gigahertz" # eslint-disable-line no-eval @property def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit Units to use for plotting broadband power densities - """ + """ val = self._get_property("BB Power for Plots Unit") - val = self.BBPowerforPlotsUnitOption[val] - return val # type: ignore + val = self.BBPowerforPlotsUnitOption[val.upper()] + return val # type: ignore @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power for Plots Unit={value.value}"]) @property def bb_power_bandwidth(self) -> float: @@ -452,12 +497,14 @@ def bb_power_bandwidth(self) -> float: """ val = self._get_property("BB Power Bandwidth") val = self._convert_from_internal_units(float(val), "") - return val # type: ignore + return val # type: ignore @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value: float | str): + def bb_power_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -467,8 +514,12 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Log Scale={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py index 05050f74a12..fea2e341630 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py @@ -1,43 +1,39 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PowerDivider(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = True - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -53,11 +49,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,29 +65,33 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - P3_DB = "P3 dB" # eslint-disable-line no-eval - RESISTIVE = "Resistive" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + P3_DB = "P3 dB" # eslint-disable-line no-eval + RESISTIVE = "Resistive" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -97,32 +99,36 @@ def type(self) -> TypeOption: Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric) - """ + """ val = self._get_property("Type") - val = self.TypeOption[val] - return val # type: ignore + val = self.TypeOption[val.upper()] + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class OrientationOption(Enum): - DIVIDER = "Divider" # eslint-disable-line no-eval - COMBINER = "Combiner" # eslint-disable-line no-eval + DIVIDER = "Divider" # eslint-disable-line no-eval + COMBINER = "Combiner" # eslint-disable-line no-eval @property def orientation(self) -> OrientationOption: """Orientation Defines the orientation of the Power Divider. - """ + """ val = self._get_property("Orientation") - val = self.OrientationOption[val] - return val # type: ignore + val = self.OrientationOption[val.upper()] + return val # type: ignore @orientation.setter def orientation(self, value: OrientationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value.value}"]) @property def insertion_loss_above_ideal(self) -> float: @@ -133,13 +139,13 @@ def insertion_loss_above_ideal(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss Above Ideal") - return val # type: ignore + return val # type: ignore @insertion_loss_above_ideal.setter - def insertion_loss_above_ideal(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Insertion Loss Above Ideal={value}"] - ) + def insertion_loss_above_ideal(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss Above Ideal={value}"]) @property def finite_isolation(self) -> bool: @@ -150,11 +156,14 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -164,11 +173,13 @@ def isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @isolation.setter - def isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) + def isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -179,11 +190,14 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -193,11 +207,13 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -208,12 +224,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -224,12 +242,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -240,12 +260,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -256,18 +278,21 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py index 3006410f7ec..9ec3b443bc6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PowerTraceNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -42,7 +38,7 @@ def export_model(self, file_name): """Save this data to a file""" return self._export_model(file_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -51,22 +47,24 @@ def delete(self): self._delete() class DirectionOption(Enum): - AWAY_FROM_TX = "Away From Tx" # eslint-disable-line no-eval - TOWARD_TX = "Toward Tx" # eslint-disable-line no-eval + AWAY_FROM_TX = "Away From Tx" # eslint-disable-line no-eval + TOWARD_TX = "Toward Tx" # eslint-disable-line no-eval @property def direction(self) -> DirectionOption: """Direction Direction of power flow (towards or away from the transmitter) to plot - """ + """ val = self._get_property("Direction") - val = self.DirectionOption[val] - return val # type: ignore + val = self.DirectionOption[val.upper()] + return val # type: ignore @direction.setter def direction(self, value: DirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Direction={value.value}"]) @property def data_source(self): @@ -74,13 +72,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -90,11 +90,14 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -104,46 +107,53 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") - val = self.StyleOption[val] - return val # type: ignore + val = self.StyleOption[val.upper()] + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -153,11 +163,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -167,42 +179,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") - val = self.SymbolOption[val] - return val # type: ignore + val = self.SymbolOption[val.upper()] + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -212,11 +228,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -226,11 +244,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -240,11 +260,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -255,8 +277,12 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py index 70dae205a26..445e59e2645 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ProfileTraceNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -42,7 +38,7 @@ def export_model(self, file_name): """Save this data to a file""" return self._export_model(file_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -56,13 +52,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -72,11 +70,14 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -86,46 +87,53 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") - val = self.StyleOption[val] - return val # type: ignore + val = self.StyleOption[val.upper()] + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -135,11 +143,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -149,42 +159,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") - val = self.SymbolOption[val] - return val # type: ignore + val = self.SymbolOption[val.upper()] + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -194,11 +208,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -208,11 +224,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -222,11 +240,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -237,8 +257,12 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py index e387e25931f..65f573d23eb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py @@ -1,48 +1,44 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class PropagationLossCouplingNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): """The parent of this emit node.""" return self._parent - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -58,37 +54,44 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +101,14 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,24 +118,29 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def custom_fading_margin(self) -> float: @@ -140,11 +151,13 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -155,11 +168,13 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -170,31 +185,35 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") - val = self.FadingTypeOption[val] - return val # type: ignore + val = self.FadingTypeOption[val.upper()] + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -205,11 +224,13 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -219,11 +240,13 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -233,11 +256,14 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -248,11 +274,13 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -262,11 +290,13 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -277,11 +307,13 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -292,13 +324,14 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -308,11 +341,13 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -322,11 +357,13 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -336,10 +373,11 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py index 9effc1bd6c6..60ab1e1ac44 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py @@ -1,35 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class RadioNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -40,11 +37,11 @@ def add_band(self): """Create a New Band""" return self._add_child_node("Band") - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -54,11 +51,11 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Name: - "Type: - """ + "Name: + "Type: + """ return self._get_table_data() @table_data.setter @@ -70,10 +67,13 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py index 536aa528f28..93068b7061a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyAmplifier(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = True - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def filename(self) -> str: @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -51,30 +47,30 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class AmplifierTypeOption(Enum): - TRANSMIT_AMPLIFIER = "Transmit Amplifier" # eslint-disable-line no-eval - RECEIVE_AMPLIFIER = "Receive Amplifier" # eslint-disable-line no-eval + TRANSMIT_AMPLIFIER = "Transmit Amplifier" # eslint-disable-line no-eval + RECEIVE_AMPLIFIER = "Receive Amplifier" # eslint-disable-line no-eval @property def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type Configures the amplifier as a Tx or Rx amplifier - """ + """ val = self._get_property("Amplifier Type") - val = self.AmplifierTypeOption[val] - return val # type: ignore + val = self.AmplifierTypeOption[val.upper()] + return val # type: ignore @property def gain(self) -> float: @@ -84,7 +80,7 @@ def gain(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Gain") - return val # type: ignore + return val # type: ignore @property def center_frequency(self) -> float: @@ -95,7 +91,7 @@ def center_frequency(self) -> float: """ val = self._get_property("Center Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def bandwidth(self) -> float: @@ -106,7 +102,7 @@ def bandwidth(self) -> float: """ val = self._get_property("Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: @@ -116,7 +112,7 @@ def noise_figure(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def saturation_level(self) -> float: @@ -127,7 +123,7 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input(self) -> float: @@ -138,7 +134,7 @@ def p1_db_point_ref_input(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -149,7 +145,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def shape_factor(self) -> float: @@ -159,7 +155,7 @@ def shape_factor(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -169,7 +165,7 @@ def reverse_isolation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -179,4 +175,5 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py index 88bc29d076c..4c230aacf54 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyAntennaNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -43,9 +39,9 @@ def tags(self) -> str: """Tags Space delimited list of tags for coupling selections - """ + """ val = self._get_property("Tags") - return val # type: ignore + return val # type: ignore @property def show_relative_coordinates(self) -> bool: @@ -56,7 +52,8 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def position(self): @@ -66,7 +63,7 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): @@ -76,21 +73,21 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") - val = self.OrientationModeOption[val] - return val # type: ignore + val = self.OrientationModeOption[val.upper()] + return val # type: ignore @property def orientation(self): @@ -100,7 +97,7 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): @@ -110,7 +107,7 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def position_defined(self) -> bool: @@ -120,7 +117,8 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def antenna_temperature(self) -> float: @@ -130,16 +128,16 @@ def antenna_temperature(self) -> float: Value should be between 0 and 100000. """ val = self._get_property("Antenna Temperature") - return val # type: ignore + return val # type: ignore @property def type(self): """Type Defines the type of antenna - """ + """ val = self._get_property("Type") - return val # type: ignore + return val # type: ignore @property def antenna_file(self) -> str: @@ -147,7 +145,7 @@ def antenna_file(self) -> str: Value should be a full file path. """ val = self._get_property("Antenna File") - return val # type: ignore + return val # type: ignore @property def project_name(self) -> str: @@ -157,7 +155,7 @@ def project_name(self) -> str: Value should be a full file path. """ val = self._get_property("Project Name") - return val # type: ignore + return val # type: ignore @property def peak_gain(self) -> float: @@ -167,22 +165,22 @@ def peak_gain(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Peak Gain") - return val # type: ignore + return val # type: ignore class BoresightOption(Enum): - XAXIS = "+X Axis" # eslint-disable-line no-eval - YAXIS = "+Y Axis" # eslint-disable-line no-eval - ZAXIS = "+Z Axis" # eslint-disable-line no-eval + XAXIS = "+X Axis" # eslint-disable-line no-eval + YAXIS = "+Y Axis" # eslint-disable-line no-eval + ZAXIS = "+Z Axis" # eslint-disable-line no-eval @property def boresight(self) -> BoresightOption: """Boresight Select peak beam direction in local coordinates - """ + """ val = self._get_property("Boresight") - val = self.BoresightOption[val] - return val # type: ignore + val = self.BoresightOption[val.upper()] + return val # type: ignore @property def vertical_beamwidth(self) -> float: @@ -192,7 +190,7 @@ def vertical_beamwidth(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("Vertical Beamwidth") - return val # type: ignore + return val # type: ignore @property def horizontal_beamwidth(self) -> float: @@ -202,7 +200,7 @@ def horizontal_beamwidth(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("Horizontal Beamwidth") - return val # type: ignore + return val # type: ignore @property def extra_sidelobe(self) -> bool: @@ -212,7 +210,8 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def first_sidelobe_level(self) -> float: @@ -223,7 +222,7 @@ def first_sidelobe_level(self) -> float: Value should be between 0 and 200. """ val = self._get_property("First Sidelobe Level") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_vert_bw(self) -> float: @@ -233,7 +232,7 @@ def first_sidelobe_vert_bw(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Vert. BW") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_hor_bw(self) -> float: @@ -243,7 +242,7 @@ def first_sidelobe_hor_bw(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Hor. BW") - return val # type: ignore + return val # type: ignore @property def outerbacklobe_level(self) -> float: @@ -253,7 +252,7 @@ def outerbacklobe_level(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Outer/Backlobe Level") - return val # type: ignore + return val # type: ignore @property def resonant_frequency(self) -> float: @@ -265,7 +264,7 @@ def resonant_frequency(self) -> float: """ val = self._get_property("Resonant Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def slot_length(self) -> float: @@ -276,7 +275,7 @@ def slot_length(self) -> float: """ val = self._get_property("Slot Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def mouth_width(self) -> float: @@ -287,7 +286,7 @@ def mouth_width(self) -> float: """ val = self._get_property("Mouth Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def mouth_height(self) -> float: @@ -298,7 +297,7 @@ def mouth_height(self) -> float: """ val = self._get_property("Mouth Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_width(self) -> float: @@ -310,7 +309,7 @@ def waveguide_width(self) -> float: """ val = self._get_property("Waveguide Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def width_flare_half_angle(self) -> float: @@ -321,7 +320,7 @@ def width_flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Width Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def height_flare_half_angle(self) -> float: @@ -332,7 +331,7 @@ def height_flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Height Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def mouth_diameter(self) -> float: @@ -343,7 +342,7 @@ def mouth_diameter(self) -> float: """ val = self._get_property("Mouth Diameter") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def flare_half_angle(self) -> float: @@ -354,7 +353,7 @@ def flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def vswr(self) -> float: @@ -365,51 +364,51 @@ def vswr(self) -> float: Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore class AntennaPolarizationOption(Enum): - VERTICAL = "Vertical" # eslint-disable-line no-eval - HORIZONTAL = "Horizontal" # eslint-disable-line no-eval - RHCP = "RHCP" # eslint-disable-line no-eval - LHCP = "LHCP" # eslint-disable-line no-eval + VERTICAL = "Vertical" # eslint-disable-line no-eval + HORIZONTAL = "Horizontal" # eslint-disable-line no-eval + RHCP = "RHCP" # eslint-disable-line no-eval + LHCP = "LHCP" # eslint-disable-line no-eval @property def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Antenna Polarization") - val = self.AntennaPolarizationOption[val] - return val # type: ignore + val = self.AntennaPolarizationOption[val.upper()] + return val # type: ignore class CrossDipoleModeOption(Enum): - FREESTANDING = "Freestanding" # eslint-disable-line no-eval - OVER_GROUND_PLANE = "Over Ground Plane" # eslint-disable-line no-eval + FREESTANDING = "Freestanding" # eslint-disable-line no-eval + OVER_GROUND_PLANE = "Over Ground Plane" # eslint-disable-line no-eval @property def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode Choose the Cross Dipole type - """ + """ val = self._get_property("Cross Dipole Mode") - val = self.CrossDipoleModeOption[val] - return val # type: ignore + val = self.CrossDipoleModeOption[val.upper()] + return val # type: ignore class CrossDipolePolarizationOption(Enum): - RHCP = "RHCP" # eslint-disable-line no-eval - LHCP = "LHCP" # eslint-disable-line no-eval + RHCP = "RHCP" # eslint-disable-line no-eval + LHCP = "LHCP" # eslint-disable-line no-eval @property def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Cross Dipole Polarization") - val = self.CrossDipolePolarizationOption[val] - return val # type: ignore + val = self.CrossDipolePolarizationOption[val.upper()] + return val # type: ignore @property def override_height(self) -> bool: @@ -420,7 +419,8 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def offset_height(self) -> float: @@ -431,7 +431,7 @@ def offset_height(self) -> float: """ val = self._get_property("Offset Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def auto_height_offset(self) -> bool: @@ -442,7 +442,8 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def conform__adjust_antenna(self) -> bool: @@ -452,7 +453,8 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def element_offset(self): @@ -462,37 +464,37 @@ def element_offset(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Element Offset") - return val # type: ignore + return val # type: ignore class ConformtoPlatformOption(Enum): - NONE = "None" # eslint-disable-line no-eval - ALONG_NORMAL = "Along Normal" # eslint-disable-line no-eval - PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + ALONG_NORMAL = "Along Normal" # eslint-disable-line no-eval + PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" # eslint-disable-line no-eval @property def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform Select method of automated conforming applied after Element Offset - """ + """ val = self._get_property("Conform to Platform") - val = self.ConformtoPlatformOption[val] - return val # type: ignore + val = self.ConformtoPlatformOption[val.upper()] + return val # type: ignore class ReferencePlaneOption(Enum): - XY_PLANE = "XY Plane" # eslint-disable-line no-eval - YZ_PLANE = "YZ Plane" # eslint-disable-line no-eval - ZX_PLANE = "ZX Plane" # eslint-disable-line no-eval + XY_PLANE = "XY Plane" # eslint-disable-line no-eval + YZ_PLANE = "YZ Plane" # eslint-disable-line no-eval + ZX_PLANE = "ZX Plane" # eslint-disable-line no-eval @property def reference_plane(self) -> ReferencePlaneOption: """Reference Plane Select reference plane for determining original element heights - """ + """ val = self._get_property("Reference Plane") - val = self.ReferencePlaneOption[val] - return val # type: ignore + val = self.ReferencePlaneOption[val.upper()] + return val # type: ignore @property def conform_element_orientation(self) -> bool: @@ -503,7 +505,8 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def show_axes(self) -> bool: @@ -513,7 +516,8 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def show_icon(self) -> bool: @@ -523,7 +527,8 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def size(self) -> float: @@ -533,7 +538,7 @@ def size(self) -> float: Value should be between 0.001 and 1. """ val = self._get_property("Size") - return val # type: ignore + return val # type: ignore @property def color(self): @@ -543,25 +548,25 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @property def el_sample_interval(self) -> float: """El Sample Interval Space between elevation-angle samples of pattern - """ + """ val = self._get_property("El Sample Interval") - return val # type: ignore + return val # type: ignore @property def az_sample_interval(self) -> float: """Az Sample Interval Space between azimuth-angle samples of pattern - """ + """ val = self._get_property("Az Sample Interval") - return val # type: ignore + return val # type: ignore @property def has_frequency_domain(self) -> bool: @@ -571,34 +576,35 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def frequency_domain(self): """Frequency Domain Frequency sample(s) defining antenna - """ + """ val = self._get_property("Frequency Domain") - return val # type: ignore + return val # type: ignore @property def number_of_electric_sources(self) -> int: """Number of Electric Sources Number of freestanding electric current sources defining antenna - """ + """ val = self._get_property("Number of Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources Number of freestanding magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_electric_sources(self) -> int: @@ -606,9 +612,9 @@ def number_of_imaged_electric_sources(self) -> int: Number of imaged, half-space radiating electric current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_magnetic_sources(self) -> int: @@ -616,9 +622,9 @@ def number_of_imaged_magnetic_sources(self) -> int: Number of imaged, half-space radiating magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def waveguide_height(self) -> float: @@ -626,35 +632,35 @@ def waveguide_height(self) -> float: Implied waveguide height (along local x-axis) where the flared horn walls meet the feed - """ + """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency Implied lowest operating frequency of pyramidal horn antenna - """ + """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency Implied lowest operating frequency of conical horn antenna - """ + """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class SWEModeTruncationOption(Enum): - DYNAMIC = "Dynamic" # eslint-disable-line no-eval - FIXED_CUSTOM = "Fixed (Custom)" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + DYNAMIC = "Dynamic" # eslint-disable-line no-eval + FIXED_CUSTOM = "Fixed (Custom)" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def swe_mode_truncation(self) -> SWEModeTruncationOption: @@ -662,10 +668,10 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: Select the method for stability-enhancing truncation of spherical wave expansion terms - """ + """ val = self._get_property("SWE Mode Truncation") - val = self.SWEModeTruncationOption[val] - return val # type: ignore + val = self.SWEModeTruncationOption[val.upper()] + return val # type: ignore @property def max_n_index(self) -> int: @@ -675,16 +681,16 @@ def max_n_index(self) -> int: Value should be greater than 1. """ val = self._get_property("Max N Index") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @property def show_composite_passband(self) -> bool: @@ -694,7 +700,8 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def use_phase_center(self) -> bool: @@ -704,16 +711,17 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def coordinate_systems(self) -> str: """Coordinate Systems Specifies the coordinate system for the phase center of this antenna - """ + """ val = self._get_property("Coordinate Systems") - return val # type: ignore + return val # type: ignore @property def phasecenterposition(self): @@ -723,7 +731,7 @@ def phasecenterposition(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("PhaseCenterPosition") - return val # type: ignore + return val # type: ignore @property def phasecenterorientation(self): @@ -733,4 +741,5 @@ def phasecenterorientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("PhaseCenterOrientation") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py index 952b1cd8cea..ceb4896872d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py @@ -1,35 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyAntennaPassband(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -44,7 +41,7 @@ def passband_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Passband Loss") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -54,7 +51,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out of Band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -65,7 +62,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -76,7 +73,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -87,7 +84,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -98,13 +95,14 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py index 0a4fa7f5471..5afa58d83fa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyBand(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -43,9 +39,9 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @property def use_dd_1494_mode(self) -> bool: @@ -55,7 +51,8 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def use_emission_designator(self) -> bool: @@ -65,35 +62,36 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def emission_designator(self) -> str: """Emission Designator Enter the Emission Designator to define the bandwidth and modulation - """ + """ val = self._get_property("Emission Designator") - return val # type: ignore + return val # type: ignore @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW Channel Bandwidth based off the emission designator - """ + """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def emit_modulation_type(self) -> str: """EMIT Modulation Type Modulation based off the emission designator - """ + """ val = self._get_property("EMIT Modulation Type") - return val # type: ignore + return val # type: ignore @property def override_emission_designator_bw(self) -> bool: @@ -104,7 +102,8 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def channel_bandwidth(self) -> float: @@ -115,30 +114,30 @@ def channel_bandwidth(self) -> float: """ val = self._get_property("Channel Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class ModulationOption(Enum): - GENERIC = "Generic" # eslint-disable-line no-eval - AM = "AM" # eslint-disable-line no-eval - LSB = "LSB" # eslint-disable-line no-eval - USB = "USB" # eslint-disable-line no-eval - FM = "FM" # eslint-disable-line no-eval - FSK = "FSK" # eslint-disable-line no-eval - MSK = "MSK" # eslint-disable-line no-eval - PSK = "PSK" # eslint-disable-line no-eval - QAM = "QAM" # eslint-disable-line no-eval - APSK = "APSK" # eslint-disable-line no-eval - RADAR = "Radar" # eslint-disable-line no-eval + GENERIC = "Generic" # eslint-disable-line no-eval + AM = "AM" # eslint-disable-line no-eval + LSB = "LSB" # eslint-disable-line no-eval + USB = "USB" # eslint-disable-line no-eval + FM = "FM" # eslint-disable-line no-eval + FSK = "FSK" # eslint-disable-line no-eval + MSK = "MSK" # eslint-disable-line no-eval + PSK = "PSK" # eslint-disable-line no-eval + QAM = "QAM" # eslint-disable-line no-eval + APSK = "APSK" # eslint-disable-line no-eval + RADAR = "Radar" # eslint-disable-line no-eval @property def modulation(self) -> ModulationOption: """Modulation Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Modulation") - val = self.ModulationOption[val] - return val # type: ignore + val = self.ModulationOption[val.upper()] + return val # type: ignore @property def max_modulating_freq(self) -> float: @@ -149,7 +148,7 @@ def max_modulating_freq(self) -> float: """ val = self._get_property("Max Modulating Freq.") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def modulation_index(self) -> float: @@ -159,7 +158,7 @@ def modulation_index(self) -> float: Value should be between 0.01 and 1. """ val = self._get_property("Modulation Index") - return val # type: ignore + return val # type: ignore @property def freq_deviation(self) -> float: @@ -170,7 +169,7 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def bit_rate(self) -> float: @@ -181,7 +180,7 @@ def bit_rate(self) -> float: """ val = self._get_property("Bit Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @property def sidelobes(self) -> int: @@ -191,85 +190,85 @@ def sidelobes(self) -> int: Value should be greater than 0. """ val = self._get_property("Sidelobes") - return val # type: ignore + return val # type: ignore @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation FSK frequency deviation: helps determine spectral profile Value should be greater than 1. """ val = self._get_property("Freq. Deviation ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class PSKTypeOption(Enum): - BPSK = "BPSK" # eslint-disable-line no-eval - QPSK = "QPSK" # eslint-disable-line no-eval - PSK_8 = "PSK-8" # eslint-disable-line no-eval - PSK_16 = "PSK-16" # eslint-disable-line no-eval - PSK_32 = "PSK-32" # eslint-disable-line no-eval - PSK_64 = "PSK-64" # eslint-disable-line no-eval + BPSK = "BPSK" # eslint-disable-line no-eval + QPSK = "QPSK" # eslint-disable-line no-eval + PSK_8 = "PSK-8" # eslint-disable-line no-eval + PSK_16 = "PSK-16" # eslint-disable-line no-eval + PSK_32 = "PSK-32" # eslint-disable-line no-eval + PSK_64 = "PSK-64" # eslint-disable-line no-eval @property def psk_type(self) -> PSKTypeOption: """PSK Type PSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("PSK Type") - val = self.PSKTypeOption[val] - return val # type: ignore + val = self.PSKTypeOption[val.upper()] + return val # type: ignore class FSKTypeOption(Enum): - FSK_2 = "FSK-2" # eslint-disable-line no-eval - FSK_4 = "FSK-4" # eslint-disable-line no-eval - FSK_8 = "FSK-8" # eslint-disable-line no-eval + FSK_2 = "FSK-2" # eslint-disable-line no-eval + FSK_4 = "FSK-4" # eslint-disable-line no-eval + FSK_8 = "FSK-8" # eslint-disable-line no-eval @property def fsk_type(self) -> FSKTypeOption: """FSK Type FSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("FSK Type") - val = self.FSKTypeOption[val] - return val # type: ignore + val = self.FSKTypeOption[val.upper()] + return val # type: ignore class QAMTypeOption(Enum): - QAM_4 = "QAM-4" # eslint-disable-line no-eval - QAM_16 = "QAM-16" # eslint-disable-line no-eval - QAM_64 = "QAM-64" # eslint-disable-line no-eval - QAM_256 = "QAM-256" # eslint-disable-line no-eval - QAM_1024 = "QAM-1024" # eslint-disable-line no-eval + QAM_4 = "QAM-4" # eslint-disable-line no-eval + QAM_16 = "QAM-16" # eslint-disable-line no-eval + QAM_64 = "QAM-64" # eslint-disable-line no-eval + QAM_256 = "QAM-256" # eslint-disable-line no-eval + QAM_1024 = "QAM-1024" # eslint-disable-line no-eval @property def qam_type(self) -> QAMTypeOption: """QAM Type QAM modulation order: helps determine spectral profile - """ + """ val = self._get_property("QAM Type") - val = self.QAMTypeOption[val] - return val # type: ignore + val = self.QAMTypeOption[val.upper()] + return val # type: ignore class APSKTypeOption(Enum): - APSK_4 = "APSK-4" # eslint-disable-line no-eval - APSK_16 = "APSK-16" # eslint-disable-line no-eval - APSK_64 = "APSK-64" # eslint-disable-line no-eval - APSK_256 = "APSK-256" # eslint-disable-line no-eval - APSK_1024 = "APSK-1024" # eslint-disable-line no-eval + APSK_4 = "APSK-4" # eslint-disable-line no-eval + APSK_16 = "APSK-16" # eslint-disable-line no-eval + APSK_64 = "APSK-64" # eslint-disable-line no-eval + APSK_256 = "APSK-256" # eslint-disable-line no-eval + APSK_1024 = "APSK-1024" # eslint-disable-line no-eval @property def apsk_type(self) -> APSKTypeOption: """APSK Type APSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("APSK Type") - val = self.APSKTypeOption[val] - return val # type: ignore + val = self.APSKTypeOption[val.upper()] + return val # type: ignore @property def start_frequency(self) -> float: @@ -280,7 +279,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -291,7 +290,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def channel_spacing(self) -> float: @@ -302,7 +301,7 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def tx_offset(self) -> float: @@ -313,24 +312,24 @@ def tx_offset(self) -> float: """ val = self._get_property("Tx Offset") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class RadarTypeOption(Enum): - CW = "CW" # eslint-disable-line no-eval - FM_CW = "FM-CW" # eslint-disable-line no-eval - FM_PULSE = "FM Pulse" # eslint-disable-line no-eval - NON_FM_PULSE = "Non-FM Pulse" # eslint-disable-line no-eval - PHASE_CODED = "Phase Coded" # eslint-disable-line no-eval + CW = "CW" # eslint-disable-line no-eval + FM_CW = "FM-CW" # eslint-disable-line no-eval + FM_PULSE = "FM Pulse" # eslint-disable-line no-eval + NON_FM_PULSE = "Non-FM Pulse" # eslint-disable-line no-eval + PHASE_CODED = "Phase Coded" # eslint-disable-line no-eval @property def radar_type(self) -> RadarTypeOption: """Radar Type Radar type: helps determine spectral profile - """ + """ val = self._get_property("Radar Type") - val = self.RadarTypeOption[val] - return val # type: ignore + val = self.RadarTypeOption[val.upper()] + return val # type: ignore @property def hopping_radar(self) -> bool: @@ -340,7 +339,8 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def post_october_2020_procurement(self) -> bool: @@ -351,7 +351,8 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def hop_range_min_freq(self) -> float: @@ -362,7 +363,7 @@ def hop_range_min_freq(self) -> float: """ val = self._get_property("Hop Range Min Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def hop_range_max_freq(self) -> float: @@ -373,7 +374,7 @@ def hop_range_max_freq(self) -> float: """ val = self._get_property("Hop Range Max Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def pulse_duration(self) -> float: @@ -384,7 +385,7 @@ def pulse_duration(self) -> float: """ val = self._get_property("Pulse Duration") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_rise_time(self) -> float: @@ -395,7 +396,7 @@ def pulse_rise_time(self) -> float: """ val = self._get_property("Pulse Rise Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_fall_time(self) -> float: @@ -406,7 +407,7 @@ def pulse_fall_time(self) -> float: """ val = self._get_property("Pulse Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_repetition_rate(self) -> float: @@ -416,7 +417,7 @@ def pulse_repetition_rate(self) -> float: Value should be greater than 1. """ val = self._get_property("Pulse Repetition Rate") - return val # type: ignore + return val # type: ignore @property def number_of_chips(self) -> float: @@ -426,7 +427,7 @@ def number_of_chips(self) -> float: Value should be greater than 1. """ val = self._get_property("Number of Chips") - return val # type: ignore + return val # type: ignore @property def pulse_compression_ratio(self) -> float: @@ -436,7 +437,7 @@ def pulse_compression_ratio(self) -> float: Value should be greater than 1. """ val = self._get_property("Pulse Compression Ratio") - return val # type: ignore + return val # type: ignore @property def fm_chirp_period(self) -> float: @@ -447,7 +448,7 @@ def fm_chirp_period(self) -> float: """ val = self._get_property("FM Chirp Period") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def fm_freq_deviation(self) -> float: @@ -458,7 +459,7 @@ def fm_freq_deviation(self) -> float: """ val = self._get_property("FM Freq Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def fm_freq_dev_bandwidth(self) -> float: @@ -470,4 +471,5 @@ def fm_freq_dev_bandwidth(self) -> float: """ val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py index 3e419d44688..67a177d739f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py @@ -1,37 +1,35 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyBandFolder(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): """The parent of this emit node.""" return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py index 9b2f89c88c9..252a34939dd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyCADNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -46,33 +42,33 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore class ModelTypeOption(Enum): - PLATE = "Plate" # eslint-disable-line no-eval - BOX = "Box" # eslint-disable-line no-eval - DIHEDRAL = "Dihedral" # eslint-disable-line no-eval - TRIHEDRAL = "Trihedral" # eslint-disable-line no-eval - CYLINDER = "Cylinder" # eslint-disable-line no-eval - TAPERED_CYLINDER = "Tapered Cylinder" # eslint-disable-line no-eval - CONE = "Cone" # eslint-disable-line no-eval - SPHERE = "Sphere" # eslint-disable-line no-eval - ELLIPSOID = "Ellipsoid" # eslint-disable-line no-eval - CIRCULAR_PLATE = "Circular Plate" # eslint-disable-line no-eval - PARABOLA = "Parabola" # eslint-disable-line no-eval - PRISM = "Prism" # eslint-disable-line no-eval - TAPERED_PRISM = "Tapered Prism" # eslint-disable-line no-eval - TOPHAT = "Tophat" # eslint-disable-line no-eval + PLATE = "Plate" # eslint-disable-line no-eval + BOX = "Box" # eslint-disable-line no-eval + DIHEDRAL = "Dihedral" # eslint-disable-line no-eval + TRIHEDRAL = "Trihedral" # eslint-disable-line no-eval + CYLINDER = "Cylinder" # eslint-disable-line no-eval + TAPERED_CYLINDER = "Tapered Cylinder" # eslint-disable-line no-eval + CONE = "Cone" # eslint-disable-line no-eval + SPHERE = "Sphere" # eslint-disable-line no-eval + ELLIPSOID = "Ellipsoid" # eslint-disable-line no-eval + CIRCULAR_PLATE = "Circular Plate" # eslint-disable-line no-eval + PARABOLA = "Parabola" # eslint-disable-line no-eval + PRISM = "Prism" # eslint-disable-line no-eval + TAPERED_PRISM = "Tapered Prism" # eslint-disable-line no-eval + TOPHAT = "Tophat" # eslint-disable-line no-eval @property def model_type(self) -> ModelTypeOption: """Model Type Select type of parametric model to create - """ + """ val = self._get_property("Model Type") - val = self.ModelTypeOption[val] - return val # type: ignore + val = self.ModelTypeOption[val.upper()] + return val # type: ignore @property def length(self) -> float: @@ -83,7 +79,7 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def width(self) -> float: @@ -94,7 +90,7 @@ def width(self) -> float: """ val = self._get_property("Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def height(self) -> float: @@ -105,7 +101,7 @@ def height(self) -> float: """ val = self._get_property("Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def angle(self) -> float: @@ -115,7 +111,7 @@ def angle(self) -> float: Value should be between 0 and 360. """ val = self._get_property("Angle") - return val # type: ignore + return val # type: ignore @property def top_side(self) -> float: @@ -126,7 +122,7 @@ def top_side(self) -> float: """ val = self._get_property("Top Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def top_radius(self) -> float: @@ -137,7 +133,7 @@ def top_radius(self) -> float: """ val = self._get_property("Top Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def side(self) -> float: @@ -148,7 +144,7 @@ def side(self) -> float: """ val = self._get_property("Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def radius(self) -> float: @@ -159,7 +155,7 @@ def radius(self) -> float: """ val = self._get_property("Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def base_radius(self) -> float: @@ -170,7 +166,7 @@ def base_radius(self) -> float: """ val = self._get_property("Base Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def center_radius(self) -> float: @@ -181,7 +177,7 @@ def center_radius(self) -> float: """ val = self._get_property("Center Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def x_axis_ellipsoid_radius(self) -> float: @@ -192,7 +188,7 @@ def x_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("X Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def y_axis_ellipsoid_radius(self) -> float: @@ -203,7 +199,7 @@ def y_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Y Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def z_axis_ellipsoid_radius(self) -> float: @@ -214,7 +210,7 @@ def z_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Z Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def focal_length(self) -> float: @@ -225,17 +221,17 @@ def focal_length(self) -> float: """ val = self._get_property("Focal Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def offset(self) -> float: """Offset Offset of parabolic reflector - """ + """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def x_direction_taper(self) -> float: @@ -246,7 +242,7 @@ def x_direction_taper(self) -> float: Value should be greater than 0. """ val = self._get_property("X Direction Taper") - return val # type: ignore + return val # type: ignore @property def y_direction_taper(self) -> float: @@ -257,7 +253,7 @@ def y_direction_taper(self) -> float: Value should be greater than 0. """ val = self._get_property("Y Direction Taper") - return val # type: ignore + return val # type: ignore @property def prism_direction(self): @@ -267,7 +263,7 @@ def prism_direction(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Prism Direction") - return val # type: ignore + return val # type: ignore @property def closed_top(self) -> bool: @@ -277,7 +273,8 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def closed_base(self) -> bool: @@ -287,7 +284,8 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def mesh_density(self) -> int: @@ -298,7 +296,7 @@ def mesh_density(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Mesh Density") - return val # type: ignore + return val # type: ignore @property def use_symmetric_mesh(self) -> bool: @@ -309,21 +307,22 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return val # type: ignore + val = (val == 'true') + return val # type: ignore class MeshOptionOption(Enum): - IMPROVED = "Improved" # eslint-disable-line no-eval - LEGACY = "Legacy" # eslint-disable-line no-eval + IMPROVED = "Improved" # eslint-disable-line no-eval + LEGACY = "Legacy" # eslint-disable-line no-eval @property def mesh_option(self) -> MeshOptionOption: """Mesh Option Select from different meshing options - """ + """ val = self._get_property("Mesh Option") - val = self.MeshOptionOption[val] - return val # type: ignore + val = self.MeshOptionOption[val.upper()] + return val # type: ignore @property def coating_index(self) -> int: @@ -333,7 +332,7 @@ def coating_index(self) -> int: Value should be between 0 and 100000. """ val = self._get_property("Coating Index") - return val # type: ignore + return val # type: ignore @property def show_relative_coordinates(self) -> bool: @@ -344,7 +343,8 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def position(self): @@ -354,7 +354,7 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): @@ -364,21 +364,21 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") - val = self.OrientationModeOption[val] - return val # type: ignore + val = self.OrientationModeOption[val.upper()] + return val # type: ignore @property def orientation(self): @@ -388,7 +388,7 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): @@ -398,7 +398,7 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def visible(self) -> bool: @@ -408,23 +408,24 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + val = (val == 'true') + return val # type: ignore class RenderModeOption(Enum): - FLAT_SHADED = "Flat-Shaded" # eslint-disable-line no-eval - WIRE_FRAME = "Wire-Frame" # eslint-disable-line no-eval - HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" # eslint-disable-line no-eval - OUTLINE = "Outline" # eslint-disable-line no-eval + FLAT_SHADED = "Flat-Shaded" # eslint-disable-line no-eval + WIRE_FRAME = "Wire-Frame" # eslint-disable-line no-eval + HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" # eslint-disable-line no-eval + OUTLINE = "Outline" # eslint-disable-line no-eval @property def render_mode(self) -> RenderModeOption: """Render Mode Select drawing style for surfaces - """ + """ val = self._get_property("Render Mode") - val = self.RenderModeOption[val] - return val # type: ignore + val = self.RenderModeOption[val.upper()] + return val # type: ignore @property def show_axes(self) -> bool: @@ -434,7 +435,8 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def min(self): @@ -444,7 +446,7 @@ def min(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Min") - return val # type: ignore + return val # type: ignore @property def max(self): @@ -454,16 +456,16 @@ def max(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Max") - return val # type: ignore + return val # type: ignore @property def number_of_surfaces(self) -> int: """Number of Surfaces Number of surfaces in the model - """ + """ val = self._get_property("Number of Surfaces") - return val # type: ignore + return val # type: ignore @property def color(self): @@ -473,13 +475,14 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py index dabad4560fc..d7326acab46 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyCable(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = True - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def filename(self) -> str: @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -51,21 +47,21 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - CONSTANT_LOSS = "Constant Loss" # eslint-disable-line no-eval - COAXIAL_CABLE = "Coaxial Cable" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + CONSTANT_LOSS = "Constant Loss" # eslint-disable-line no-eval + COAXIAL_CABLE = "Coaxial Cable" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -73,10 +69,10 @@ def type(self) -> TypeOption: Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable - """ + """ val = self._get_property("Type") - val = self.TypeOption[val] - return val # type: ignore + val = self.TypeOption[val.upper()] + return val # type: ignore @property def length(self) -> float: @@ -87,7 +83,7 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def loss_per_length(self) -> float: @@ -97,7 +93,7 @@ def loss_per_length(self) -> float: Value should be between 0 and 20. """ val = self._get_property("Loss Per Length") - return val # type: ignore + return val # type: ignore @property def measurement_length(self) -> float: @@ -108,7 +104,7 @@ def measurement_length(self) -> float: """ val = self._get_property("Measurement Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def resistive_loss_constant(self) -> float: @@ -118,7 +114,7 @@ def resistive_loss_constant(self) -> float: Value should be between 0 and 2. """ val = self._get_property("Resistive Loss Constant") - return val # type: ignore + return val # type: ignore @property def dielectric_loss_constant(self) -> float: @@ -128,13 +124,14 @@ def dielectric_loss_constant(self) -> float: Value should be between 0 and 1. """ val = self._get_property("Dielectric Loss Constant") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py index 5c4f150b9e8..687c281bf5b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyCirculator(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = True - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def filename(self) -> str: @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -51,20 +47,20 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -72,24 +68,24 @@ def type(self) -> TypeOption: Type of circulator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") - val = self.TypeOption[val] - return val # type: ignore + val = self.TypeOption[val.upper()] + return val # type: ignore class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the circulator. - """ + """ val = self._get_property("Port 1 Location") - val = self.Port1LocationOption[val] - return val # type: ignore + val = self.Port1LocationOption[val.upper()] + return val # type: ignore @property def insertion_loss(self) -> float: @@ -99,7 +95,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_reverse_isolation(self) -> bool: @@ -110,7 +106,8 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -120,7 +117,7 @@ def reverse_isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -131,7 +128,8 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -141,7 +139,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -152,7 +150,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -163,7 +161,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -174,7 +172,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -185,13 +183,14 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py index 939ed3d313f..dfa7683c420 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py @@ -1,35 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyCouplingLinkNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -44,7 +41,8 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def ports(self): @@ -52,6 +50,7 @@ def ports(self): Maps each port in the link to an antenna in the project "A list of values." - """ + """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py index 17ac942f5ac..89ab6479a7b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py @@ -1,35 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyCouplingsNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def minimum_allowed_coupling(self) -> float: @@ -40,7 +37,7 @@ def minimum_allowed_coupling(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Minimum Allowed Coupling") - return val # type: ignore + return val # type: ignore @property def global_default_coupling(self) -> float: @@ -50,13 +47,14 @@ def global_default_coupling(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Global Default Coupling") - return val # type: ignore + return val # type: ignore @property def antenna_tags(self) -> str: """Antenna Tags All tags currently used by all antennas in the project - """ + """ val = self._get_property("Antenna Tags") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py index f30ff32cabd..5f2844b925f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py @@ -1,35 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyCustomCouplingNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -38,11 +35,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Value (dB): + "Value (dB): Value should be between -1000 and 0. """ return self._get_table_data() @@ -55,25 +52,26 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -83,7 +81,8 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -93,13 +92,15 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py index 75ba2412d31..9ea395a770b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py @@ -1,61 +1,57 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyEmitSceneNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class GroundPlaneNormalOption(Enum): - X_AXIS = "X Axis" # eslint-disable-line no-eval - Y_AXIS = "Y Axis" # eslint-disable-line no-eval - Z_AXIS = "Z Axis" # eslint-disable-line no-eval + X_AXIS = "X Axis" # eslint-disable-line no-eval + Y_AXIS = "Y Axis" # eslint-disable-line no-eval + Z_AXIS = "Z Axis" # eslint-disable-line no-eval @property def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal Specifies the axis of the normal to the ground plane - """ + """ val = self._get_property("Ground Plane Normal") - val = self.GroundPlaneNormalOption[val] - return val # type: ignore + val = self.GroundPlaneNormalOption[val.upper()] + return val # type: ignore @property def gp_position_along_normal(self) -> float: @@ -63,7 +59,8 @@ def gp_position_along_normal(self) -> float: Offset of ground plane in direction normal to the ground planes orientation - """ + """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py index bc7a81e055c..ea3b699862e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyErcegCouplingNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -46,25 +42,26 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -74,7 +71,8 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -84,31 +82,32 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class TerrainCategoryOption(Enum): - TYPE_A = "Type A" # eslint-disable-line no-eval - TYPE_B = "Type B" # eslint-disable-line no-eval - TYPE_C = "Type C" # eslint-disable-line no-eval + TYPE_A = "Type A" # eslint-disable-line no-eval + TYPE_B = "Type B" # eslint-disable-line no-eval + TYPE_C = "Type C" # eslint-disable-line no-eval @property def terrain_category(self) -> TerrainCategoryOption: """Terrain Category Specify the terrain category type for the Erceg model - """ + """ val = self._get_property("Terrain Category") - val = self.TerrainCategoryOption[val] - return val # type: ignore + val = self.TerrainCategoryOption[val.upper()] + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -119,7 +118,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -130,7 +129,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -141,23 +140,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") - val = self.FadingTypeOption[val] - return val # type: ignore + val = self.FadingTypeOption[val.upper()] + return val # type: ignore @property def fading_availability(self) -> float: @@ -168,7 +167,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -178,7 +177,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -188,7 +187,8 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def rain_availability(self) -> float: @@ -199,7 +199,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -209,7 +209,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -220,7 +220,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -231,7 +231,8 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def temperature(self) -> float: @@ -241,7 +242,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -251,7 +252,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -261,4 +262,5 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py index b5a012b09ee..c18b9317ae1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyFilter(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = True - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def filename(self) -> str: @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -51,25 +47,25 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - LOW_PASS = "Low Pass" # eslint-disable-line no-eval - HIGH_PASS = "High Pass" # eslint-disable-line no-eval - BAND_PASS = "Band Pass" # eslint-disable-line no-eval - BAND_STOP = "Band Stop" # eslint-disable-line no-eval - TUNABLE_BANDPASS = "Tunable Bandpass" # eslint-disable-line no-eval - TUNABLE_BANDSTOP = "Tunable Bandstop" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + LOW_PASS = "Low Pass" # eslint-disable-line no-eval + HIGH_PASS = "High Pass" # eslint-disable-line no-eval + BAND_PASS = "Band Pass" # eslint-disable-line no-eval + BAND_STOP = "Band Stop" # eslint-disable-line no-eval + TUNABLE_BANDPASS = "Tunable Bandpass" # eslint-disable-line no-eval + TUNABLE_BANDSTOP = "Tunable Bandstop" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -77,10 +73,10 @@ def type(self) -> TypeOption: Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") - val = self.TypeOption[val] - return val # type: ignore + val = self.TypeOption[val.upper()] + return val # type: ignore @property def insertion_loss(self) -> float: @@ -90,7 +86,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def stop_band_attenuation(self) -> float: @@ -100,7 +96,7 @@ def stop_band_attenuation(self) -> float: Value should be less than 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @property def max_pass_band(self) -> float: @@ -111,7 +107,7 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_stop_band(self) -> float: @@ -122,7 +118,7 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def max_stop_band(self) -> float: @@ -133,7 +129,7 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_pass_band(self) -> float: @@ -144,7 +140,7 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -155,7 +151,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -166,7 +162,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -177,7 +173,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -188,73 +184,73 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff Lower cutoff frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band Lower stop band frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band Higher stop band frequency Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff Higher cutoff frequency Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency Lowest tuned frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lowest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency Highest tuned frequency Value should be between 1 and 1e+11. """ val = self._get_property("Highest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def percent_bandwidth(self) -> float: @@ -264,7 +260,7 @@ def percent_bandwidth(self) -> float: Value should be between 0.001 and 100. """ val = self._get_property("Percent Bandwidth") - return val # type: ignore + return val # type: ignore @property def shape_factor(self) -> float: @@ -274,13 +270,14 @@ def shape_factor(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py index 2363b5e2d69..9cfb282bb4e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyFiveGChannelModel(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -46,25 +42,26 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -74,7 +71,8 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -84,31 +82,32 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): - URBAN_MICROCELL = "Urban Microcell" # eslint-disable-line no-eval - URBAN_MACROCELL = "Urban Macrocell" # eslint-disable-line no-eval - RURAL_MACROCELL = "Rural Macrocell" # eslint-disable-line no-eval + URBAN_MICROCELL = "Urban Microcell" # eslint-disable-line no-eval + URBAN_MACROCELL = "Urban Macrocell" # eslint-disable-line no-eval + RURAL_MACROCELL = "Rural Macrocell" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment for the 5G channel model - """ + """ val = self._get_property("Environment") - val = self.EnvironmentOption[val] - return val # type: ignore + val = self.EnvironmentOption[val.upper()] + return val # type: ignore @property def los(self) -> bool: @@ -118,7 +117,8 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def include_bpl(self) -> bool: @@ -128,21 +128,22 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return val # type: ignore + val = (val == 'true') + return val # type: ignore class NYUBPLModelOption(Enum): - LOW_LOSS_MODEL = "Low-loss model" # eslint-disable-line no-eval - HIGH_LOSS_MODEL = "High-loss model" # eslint-disable-line no-eval + LOW_LOSS_MODEL = "Low-loss model" # eslint-disable-line no-eval + HIGH_LOSS_MODEL = "High-loss model" # eslint-disable-line no-eval @property def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model Specify the NYU Building Penetration Loss model - """ + """ val = self._get_property("NYU BPL Model") - val = self.NYUBPLModelOption[val] - return val # type: ignore + val = self.NYUBPLModelOption[val.upper()] + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -153,7 +154,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -164,7 +165,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -175,23 +176,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") - val = self.FadingTypeOption[val] - return val # type: ignore + val = self.FadingTypeOption[val.upper()] + return val # type: ignore @property def fading_availability(self) -> float: @@ -202,7 +203,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -212,7 +213,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -222,7 +223,8 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def rain_availability(self) -> float: @@ -233,7 +235,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -243,7 +245,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -254,7 +256,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -265,7 +267,8 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def temperature(self) -> float: @@ -275,7 +278,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -285,7 +288,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -295,4 +298,5 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py index a8b6dfdcbf2..eb876c5e4f9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyHataCouplingNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -46,25 +42,26 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -74,7 +71,8 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -84,32 +82,33 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): - LARGE_CITY = "Large City" # eslint-disable-line no-eval - SMALLMEDIUM_CITY = "Small/Medium City" # eslint-disable-line no-eval - SUBURBAN = "Suburban" # eslint-disable-line no-eval - RURAL = "Rural" # eslint-disable-line no-eval + LARGE_CITY = "Large City" # eslint-disable-line no-eval + SMALLMEDIUM_CITY = "Small/Medium City" # eslint-disable-line no-eval + SUBURBAN = "Suburban" # eslint-disable-line no-eval + RURAL = "Rural" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Hata model - """ + """ val = self._get_property("Environment") - val = self.EnvironmentOption[val] - return val # type: ignore + val = self.EnvironmentOption[val.upper()] + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -120,7 +119,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -131,7 +130,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -142,23 +141,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") - val = self.FadingTypeOption[val] - return val # type: ignore + val = self.FadingTypeOption[val.upper()] + return val # type: ignore @property def fading_availability(self) -> float: @@ -169,7 +168,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -179,7 +178,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -189,7 +188,8 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def rain_availability(self) -> float: @@ -200,7 +200,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -210,7 +210,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -221,7 +221,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -232,7 +232,8 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def temperature(self) -> float: @@ -242,7 +243,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -252,7 +253,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -262,4 +263,5 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py index 80418e526e2..66976d2c345 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyIndoorPropagationCouplingNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -40,13 +36,13 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Power Loss Coefficient: + "Power Loss Coefficient: Value should be between 0 and 100. - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): Value should be between 0 and 1000. """ return self._get_table_data() @@ -59,25 +55,26 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -87,7 +84,8 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -97,33 +95,34 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class BuildingTypeOption(Enum): - RESIDENTIAL_APARTMENT = "Residential Apartment" # eslint-disable-line no-eval - RESIDENTIAL_HOUSE = "Residential House" # eslint-disable-line no-eval - OFFICE_BUILDING = "Office Building" # eslint-disable-line no-eval - COMMERCIAL_BUILDING = "Commercial Building" # eslint-disable-line no-eval - CUSTOM_BUILDING = "Custom Building" # eslint-disable-line no-eval + RESIDENTIAL_APARTMENT = "Residential Apartment" # eslint-disable-line no-eval + RESIDENTIAL_HOUSE = "Residential House" # eslint-disable-line no-eval + OFFICE_BUILDING = "Office Building" # eslint-disable-line no-eval + COMMERCIAL_BUILDING = "Commercial Building" # eslint-disable-line no-eval + CUSTOM_BUILDING = "Custom Building" # eslint-disable-line no-eval @property def building_type(self) -> BuildingTypeOption: """Building Type Specify the building type for the Indoor Propagation model - """ + """ val = self._get_property("Building Type") - val = self.BuildingTypeOption[val] - return val # type: ignore + val = self.BuildingTypeOption[val.upper()] + return val # type: ignore @property def number_of_floors(self) -> int: @@ -133,7 +132,7 @@ def number_of_floors(self) -> int: Value should be between 1 and 3. """ val = self._get_property("Number of Floors") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -144,7 +143,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -155,7 +154,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -166,23 +165,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") - val = self.FadingTypeOption[val] - return val # type: ignore + val = self.FadingTypeOption[val.upper()] + return val # type: ignore @property def fading_availability(self) -> float: @@ -193,7 +192,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -203,7 +202,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -213,7 +212,8 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def rain_availability(self) -> float: @@ -224,7 +224,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -234,7 +234,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -245,7 +245,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -256,7 +256,8 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def temperature(self) -> float: @@ -266,7 +267,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -276,7 +277,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -286,4 +287,5 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py index cb19bcb1a29..003e35b207e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyIsolator(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = True - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def filename(self) -> str: @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -51,20 +47,20 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -72,24 +68,24 @@ def type(self) -> TypeOption: Type of isolator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") - val = self.TypeOption[val] - return val # type: ignore + val = self.TypeOption[val.upper()] + return val # type: ignore class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the isolator. - """ + """ val = self._get_property("Port 1 Location") - val = self.Port1LocationOption[val] - return val # type: ignore + val = self.Port1LocationOption[val.upper()] + return val # type: ignore @property def insertion_loss(self) -> float: @@ -99,7 +95,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_reverse_isolation(self) -> bool: @@ -110,7 +106,8 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -120,7 +117,7 @@ def reverse_isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -131,7 +128,8 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -141,7 +139,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -152,7 +150,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -163,7 +161,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -174,7 +172,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -185,13 +183,14 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py index 94d4a57b899..537f654296d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyLogDistanceCouplingNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -46,25 +42,26 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -74,7 +71,8 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -84,35 +82,36 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): - FREE_SPACE = "Free Space" # eslint-disable-line no-eval - URBAN = "Urban" # eslint-disable-line no-eval - SHADOWED_URBAN = "Shadowed Urban" # eslint-disable-line no-eval - BUILDING_LINE_OF_SIGHT = "Building Line of Sight" # eslint-disable-line no-eval - BUILDING_OBSTRUCTED = "Building Obstructed" # eslint-disable-line no-eval - FACTORY_OBSTRUCTED = "Factory Obstructed" # eslint-disable-line no-eval - CUSTOM = "Custom" # eslint-disable-line no-eval + FREE_SPACE = "Free Space" # eslint-disable-line no-eval + URBAN = "Urban" # eslint-disable-line no-eval + SHADOWED_URBAN = "Shadowed Urban" # eslint-disable-line no-eval + BUILDING_LINE_OF_SIGHT = "Building Line of Sight" # eslint-disable-line no-eval + BUILDING_OBSTRUCTED = "Building Obstructed" # eslint-disable-line no-eval + FACTORY_OBSTRUCTED = "Factory Obstructed" # eslint-disable-line no-eval + CUSTOM = "Custom" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Log Distance model - """ + """ val = self._get_property("Environment") - val = self.EnvironmentOption[val] - return val # type: ignore + val = self.EnvironmentOption[val.upper()] + return val # type: ignore @property def path_loss_exponent(self) -> float: @@ -122,7 +121,7 @@ def path_loss_exponent(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Path Loss Exponent") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -133,7 +132,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -144,7 +143,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -155,23 +154,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") - val = self.FadingTypeOption[val] - return val # type: ignore + val = self.FadingTypeOption[val.upper()] + return val # type: ignore @property def fading_availability(self) -> float: @@ -182,7 +181,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -192,7 +191,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -202,7 +201,8 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def rain_availability(self) -> float: @@ -213,7 +213,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -223,7 +223,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -234,7 +234,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -245,7 +245,8 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def temperature(self) -> float: @@ -255,7 +256,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -265,7 +266,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -275,4 +276,5 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py index 13669682c69..41fc81b660d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyMultiplexer(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = True - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def filename(self) -> str: @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -51,20 +47,20 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_PASS_BAND = "By Pass Band" # eslint-disable-line no-eval - BY_FILE = "By File" # eslint-disable-line no-eval + BY_PASS_BAND = "By Pass Band" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -73,24 +69,24 @@ def type(self) -> TypeOption: simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band) - """ + """ val = self._get_property("Type") - val = self.TypeOption[val] - return val # type: ignore + val = self.TypeOption[val.upper()] + return val # type: ignore class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the multiplexer. - """ + """ val = self._get_property("Port 1 Location") - val = self.Port1LocationOption[val] - return val # type: ignore + val = self.Port1LocationOption[val.upper()] + return val # type: ignore @property def flip_ports_vertically(self) -> bool: @@ -100,7 +96,8 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def ports(self): @@ -108,15 +105,16 @@ def ports(self): Assigns the child port nodes to the multiplexers ports "A list of values." - """ + """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py index 0942b6bca1e..16c5a81dc8c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyMultiplexerBand(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -39,10 +35,10 @@ def parent(self): return self._parent class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - LOW_PASS = "Low Pass" # eslint-disable-line no-eval - HIGH_PASS = "High Pass" # eslint-disable-line no-eval - BAND_PASS = "Band Pass" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + LOW_PASS = "Low Pass" # eslint-disable-line no-eval + HIGH_PASS = "High Pass" # eslint-disable-line no-eval + BAND_PASS = "Band Pass" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -51,10 +47,10 @@ def type(self) -> TypeOption: file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") - val = self.TypeOption[val] - return val # type: ignore + val = self.TypeOption[val.upper()] + return val # type: ignore @property def filename(self) -> str: @@ -64,7 +60,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -74,7 +70,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def stop_band_attenuation(self) -> float: @@ -84,7 +80,7 @@ def stop_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @property def max_pass_band(self) -> float: @@ -95,7 +91,7 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_stop_band(self) -> float: @@ -106,7 +102,7 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def max_stop_band(self) -> float: @@ -117,7 +113,7 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_pass_band(self) -> float: @@ -128,7 +124,7 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -139,7 +135,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -150,7 +146,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -161,7 +157,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -172,13 +168,14 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py index 9be7d4da84c..e351d9ec0ba 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyPowerDivider(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = True - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def filename(self) -> str: @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -51,21 +47,21 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - P3_DB = "P3 dB" # eslint-disable-line no-eval - RESISTIVE = "Resistive" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + P3_DB = "P3 dB" # eslint-disable-line no-eval + RESISTIVE = "Resistive" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -73,24 +69,24 @@ def type(self) -> TypeOption: Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric) - """ + """ val = self._get_property("Type") - val = self.TypeOption[val] - return val # type: ignore + val = self.TypeOption[val.upper()] + return val # type: ignore class OrientationOption(Enum): - DIVIDER = "Divider" # eslint-disable-line no-eval - COMBINER = "Combiner" # eslint-disable-line no-eval + DIVIDER = "Divider" # eslint-disable-line no-eval + COMBINER = "Combiner" # eslint-disable-line no-eval @property def orientation(self) -> OrientationOption: """Orientation Defines the orientation of the Power Divider. - """ + """ val = self._get_property("Orientation") - val = self.OrientationOption[val] - return val # type: ignore + val = self.OrientationOption[val.upper()] + return val # type: ignore @property def insertion_loss_above_ideal(self) -> float: @@ -101,7 +97,7 @@ def insertion_loss_above_ideal(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss Above Ideal") - return val # type: ignore + return val # type: ignore @property def finite_isolation(self) -> bool: @@ -112,7 +108,8 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def isolation(self) -> float: @@ -122,7 +119,7 @@ def isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -133,7 +130,8 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -143,7 +141,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -154,7 +152,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -165,7 +163,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -176,7 +174,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -187,13 +185,14 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py index 6dc62c62cda..b029f758c22 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyPropagationLossCouplingNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -46,25 +42,26 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -74,7 +71,8 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -84,16 +82,17 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -104,7 +103,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -115,7 +114,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -126,23 +125,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") - val = self.FadingTypeOption[val] - return val # type: ignore + val = self.FadingTypeOption[val.upper()] + return val # type: ignore @property def fading_availability(self) -> float: @@ -153,7 +152,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -163,7 +162,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -173,7 +172,8 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def rain_availability(self) -> float: @@ -184,7 +184,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -194,7 +194,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -205,7 +205,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -216,7 +216,8 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def temperature(self) -> float: @@ -226,7 +227,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -236,7 +237,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -246,4 +247,5 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py index b1680c73f46..8643d88c097 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py @@ -1,35 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyRadioNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -38,11 +35,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Name: - "Type: - """ + "Name: + "Type: + """ return self._get_table_data() @property @@ -50,6 +47,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py index 2ca57818744..95e7cad7ae9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py @@ -1,35 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyRfSystemGroup(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -46,7 +43,8 @@ def enable_passive_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Passive Noise") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def enforce_thermal_noise_floor(self) -> bool: @@ -57,4 +55,6 @@ def enforce_thermal_noise_floor(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enforce Thermal Noise Floor") - return val # type: ignore + val = (val == 'true') + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py index cfb9358f0a6..3fcf5c9d90c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyRxMeasNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -46,7 +42,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -56,32 +52,32 @@ def source_file(self) -> str: Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def receive_frequency(self) -> float: """Receive Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class MeasurementModeOption(Enum): - AUDIO_SINAD = "Audio SINAD" # eslint-disable-line no-eval - DIGITAL_BER = "Digital BER" # eslint-disable-line no-eval - GPS_CNR = "GPS CNR" # eslint-disable-line no-eval + AUDIO_SINAD = "Audio SINAD" # eslint-disable-line no-eval + DIGITAL_BER = "Digital BER" # eslint-disable-line no-eval + GPS_CNR = "GPS CNR" # eslint-disable-line no-eval @property def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode Defines the mode for the receiver measurement - """ + """ val = self._get_property("Measurement Mode") - val = self.MeasurementModeOption[val] - return val # type: ignore + val = self.MeasurementModeOption[val.upper()] + return val # type: ignore @property def sinad_threshold(self) -> float: @@ -91,7 +87,7 @@ def sinad_threshold(self) -> float: Value should be between 5 and 20. """ val = self._get_property("SINAD Threshold") - return val # type: ignore + return val # type: ignore @property def gps_cnr_threshold(self) -> float: @@ -101,7 +97,7 @@ def gps_cnr_threshold(self) -> float: Value should be between 15 and 30. """ val = self._get_property("GPS CNR Threshold") - return val # type: ignore + return val # type: ignore @property def ber_threshold(self) -> float: @@ -111,7 +107,7 @@ def ber_threshold(self) -> float: Value should be between -12 and -1. """ val = self._get_property("BER Threshold") - return val # type: ignore + return val # type: ignore @property def default_intended_power(self) -> bool: @@ -121,7 +117,8 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def intended_signal_power(self) -> float: @@ -131,7 +128,7 @@ def intended_signal_power(self) -> float: Value should be between -140 and -50. """ val = self._get_property("Intended Signal Power") - return val # type: ignore + return val # type: ignore @property def freq_deviation(self) -> float: @@ -142,7 +139,7 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def modulation_depth(self) -> float: @@ -152,7 +149,7 @@ def modulation_depth(self) -> float: Value should be between 10 and 100. """ val = self._get_property("Modulation Depth") - return val # type: ignore + return val # type: ignore @property def measure_selectivity(self) -> bool: @@ -162,7 +159,8 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def measure_mixer_products(self) -> bool: @@ -172,7 +170,8 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def max_rf_order(self) -> int: @@ -182,7 +181,7 @@ def max_rf_order(self) -> int: Value should be greater than 1. """ val = self._get_property("Max RF Order") - return val # type: ignore + return val # type: ignore @property def max_lo_order(self) -> int: @@ -192,7 +191,7 @@ def max_lo_order(self) -> int: Value should be greater than 1. """ val = self._get_property("Max LO Order") - return val # type: ignore + return val # type: ignore @property def include_if(self) -> bool: @@ -202,7 +201,8 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def measure_saturation(self) -> bool: @@ -212,7 +212,8 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -222,7 +223,8 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def start_frequency(self) -> float: @@ -233,7 +235,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -244,7 +246,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def samples(self) -> int: @@ -254,7 +256,7 @@ def samples(self) -> int: Value should be between 2 and 100. """ val = self._get_property("Samples") - return val # type: ignore + return val # type: ignore @property def exclude_mixer_products_below_noise(self) -> bool: @@ -264,4 +266,6 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return val # type: ignore + val = (val == 'true') + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py index 6d4b0ae2a7a..d8b822bf7e7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyRxMixerProductNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -39,19 +35,19 @@ def parent(self): return self._parent class MixerProductTaperOption(Enum): - CONSTANT = "Constant" # eslint-disable-line no-eval - MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval - DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval + CONSTANT = "Constant" # eslint-disable-line no-eval + MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval + DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval @property def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper Taper for setting amplitude of mixer products - """ + """ val = self._get_property("Mixer Product Taper") - val = self.MixerProductTaperOption[val] - return val # type: ignore + val = self.MixerProductTaperOption[val.upper()] + return val # type: ignore @property def mixer_product_susceptibility(self) -> float: @@ -61,7 +57,7 @@ def mixer_product_susceptibility(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Mixer Product Susceptibility") - return val # type: ignore + return val # type: ignore @property def spurious_rejection(self) -> float: @@ -71,7 +67,7 @@ def spurious_rejection(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Spurious Rejection") - return val # type: ignore + return val # type: ignore @property def minimum_tuning_frequency(self) -> float: @@ -82,7 +78,7 @@ def minimum_tuning_frequency(self) -> float: """ val = self._get_property("Minimum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def maximum_tuning_frequency(self) -> float: @@ -93,7 +89,7 @@ def maximum_tuning_frequency(self) -> float: """ val = self._get_property("Maximum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def mixer_product_slope(self) -> float: @@ -104,7 +100,7 @@ def mixer_product_slope(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Mixer Product Slope") - return val # type: ignore + return val # type: ignore @property def mixer_product_intercept(self) -> float: @@ -114,7 +110,7 @@ def mixer_product_intercept(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Mixer Product Intercept") - return val # type: ignore + return val # type: ignore @property def bandwidth_80_db(self) -> float: @@ -126,7 +122,7 @@ def bandwidth_80_db(self) -> float: """ val = self._get_property("Bandwidth 80 dB") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def image_rejection(self) -> float: @@ -136,7 +132,7 @@ def image_rejection(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Image Rejection") - return val # type: ignore + return val # type: ignore @property def maximum_rf_harmonic_order(self) -> int: @@ -146,7 +142,7 @@ def maximum_rf_harmonic_order(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Maximum RF Harmonic Order") - return val # type: ignore + return val # type: ignore @property def maximum_lo_harmonic_order(self) -> int: @@ -156,22 +152,22 @@ def maximum_lo_harmonic_order(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Maximum LO Harmonic Order") - return val # type: ignore + return val # type: ignore class MixingModeOption(Enum): - LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" # eslint-disable-line no-eval - LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" # eslint-disable-line no-eval - LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" # eslint-disable-line no-eval @property def mixing_mode(self) -> MixingModeOption: """Mixing Mode Specifies whether the IF frequency is > or < RF channel frequency - """ + """ val = self._get_property("Mixing Mode") - val = self.MixingModeOption[val] - return val # type: ignore + val = self.MixingModeOption[val.upper()] + return val # type: ignore @property def first_if_frequency(self): @@ -181,42 +177,43 @@ def first_if_frequency(self): Value should be a mathematical expression. """ val = self._get_property("First IF Frequency") - return val # type: ignore + return val # type: ignore @property def rf_transition_frequency(self) -> float: """RF Transition Frequency RF Frequency Transition point - """ + """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class UseHighLOOption(Enum): - ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" # eslint-disable-line no-eval - BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" # eslint-disable-line no-eval + ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" # eslint-disable-line no-eval + BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" # eslint-disable-line no-eval @property def use_high_lo(self) -> UseHighLOOption: """Use High LO Use High LO above/below the transition frequency - """ + """ val = self._get_property("Use High LO") - val = self.UseHighLOOption[val] - return val # type: ignore + val = self.UseHighLOOption[val.upper()] + return val # type: ignore class MixerProductTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units Specifies the units for the Mixer Products - """ + """ val = self._get_property("Mixer Product Table Units") - val = self.MixerProductTableUnitsOption[val] - return val # type: ignore + val = self.MixerProductTableUnitsOption[val.upper()] + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py index ab6a6613919..7a81fded205 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py @@ -1,37 +1,35 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyRxSaturationNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): """The parent of this emit node.""" return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py index c11f8015104..326a31399b4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py @@ -1,35 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyRxSelectivityNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -45,4 +42,6 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return val # type: ignore + val = (val == 'true') + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py index a7ebff6db2d..f0aa62bda12 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyRxSpurNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -40,27 +36,28 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") - val = self.SpurTableUnitsOption[val] - return val # type: ignore + val = self.SpurTableUnitsOption[val.upper()] + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py index cee5d24555d..947553b6fec 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyRxSusceptibilityProfNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -39,30 +35,30 @@ def parent(self): return self._parent class SensitivityUnitsOption(Enum): - DBM = "dBm" # eslint-disable-line no-eval - DBUV = "dBuV" # eslint-disable-line no-eval - MILLIWATTS = "milliwatts" # eslint-disable-line no-eval - MICROVOLTS = "microvolts" # eslint-disable-line no-eval + DBM = "dBm" # eslint-disable-line no-eval + DBUV = "dBuV" # eslint-disable-line no-eval + MILLIWATTS = "milliwatts" # eslint-disable-line no-eval + MICROVOLTS = "microvolts" # eslint-disable-line no-eval @property def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units Units to use for the Rx Sensitivity - """ + """ val = self._get_property("Sensitivity Units") - val = self.SensitivityUnitsOption[val] - return val # type: ignore + val = self.SensitivityUnitsOption[val.upper()] + return val # type: ignore @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr Received signal power level at the Rx's antenna terminal Value should be between -1000 and 1000. """ val = self._get_property("Min. Receive Signal Pwr ") - return val # type: ignore + return val # type: ignore @property def snr_at_rx_signal_pwr(self) -> float: @@ -73,7 +69,7 @@ def snr_at_rx_signal_pwr(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("SNR at Rx Signal Pwr") - return val # type: ignore + return val # type: ignore @property def processing_gain(self) -> float: @@ -83,7 +79,7 @@ def processing_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Processing Gain") - return val # type: ignore + return val # type: ignore @property def apply_pg_to_narrowband_only(self) -> bool: @@ -94,7 +90,8 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def saturation_level(self) -> float: @@ -105,7 +102,7 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def rx_noise_figure(self) -> float: @@ -115,28 +112,28 @@ def rx_noise_figure(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rx Noise Figure") - return val # type: ignore + return val # type: ignore @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity Rx minimum sensitivity level (dBm) Value should be between -1000 and 1000. """ val = self._get_property("Receiver Sensitivity ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity SNR or SINAD at the specified sensitivity level Value should be between -1000 and 1000. """ val = self._get_property("SNR/SINAD at Sensitivity ") - return val # type: ignore + return val # type: ignore @property def perform_rx_intermod_analysis(self) -> bool: @@ -146,7 +143,8 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -157,18 +155,18 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Rx's 1 dB Compression Point - total power > P1dB saturates the receiver Value should be between -1000 and 1000. """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -179,7 +177,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -189,4 +187,5 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py index aabd42cc060..27a5ad025a4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlySamplingNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -40,29 +36,29 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Min: + "Min: Value should be greater than 1. - "Max: + "Max: Value should be greater than 1. """ return self._get_table_data() class SamplingTypeOption(Enum): - SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" # eslint-disable-line no-eval - RANDOM_SAMPLING = "Random Sampling" # eslint-disable-line no-eval - UNIFORM_SAMPLING = "Uniform Sampling" # eslint-disable-line no-eval + SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" # eslint-disable-line no-eval + RANDOM_SAMPLING = "Random Sampling" # eslint-disable-line no-eval + UNIFORM_SAMPLING = "Uniform Sampling" # eslint-disable-line no-eval @property def sampling_type(self) -> SamplingTypeOption: """Sampling Type Sampling to apply to this configuration - """ + """ val = self._get_property("Sampling Type") - val = self.SamplingTypeOption[val] - return val # type: ignore + val = self.SamplingTypeOption[val.upper()] + return val # type: ignore @property def specify_percentage(self) -> bool: @@ -73,7 +69,8 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def percentage_of_channels(self) -> float: @@ -83,7 +80,7 @@ def percentage_of_channels(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Percentage of Channels") - return val # type: ignore + return val # type: ignore @property def max__channelsrangeband(self) -> int: @@ -93,7 +90,7 @@ def max__channelsrangeband(self) -> int: Value should be between 1 and 100000. """ val = self._get_property("Max # Channels/Range/Band") - return val # type: ignore + return val # type: ignore @property def seed(self) -> int: @@ -103,7 +100,7 @@ def seed(self) -> int: Value should be greater than 0. """ val = self._get_property("Seed") - return val # type: ignore + return val # type: ignore @property def total_tx_channels(self) -> int: @@ -111,9 +108,9 @@ def total_tx_channels(self) -> int: Total number of transmit channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Tx Channels") - return val # type: ignore + return val # type: ignore @property def total_rx_channels(self) -> int: @@ -121,15 +118,16 @@ def total_rx_channels(self) -> int: Total number of receive channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Rx Channels") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py index 837d9485b9b..5b393b8aaa1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlySceneGroupNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -47,7 +43,8 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def position(self): @@ -57,7 +54,7 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): @@ -67,21 +64,21 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") - val = self.OrientationModeOption[val] - return val # type: ignore + val = self.OrientationModeOption[val.upper()] + return val # type: ignore @property def orientation(self): @@ -91,7 +88,7 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): @@ -101,7 +98,7 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def show_axes(self) -> bool: @@ -111,7 +108,8 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def box_color(self): @@ -121,13 +119,14 @@ def box_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Box Color") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py index 69761e3dac5..b26d6d09de5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py @@ -1,35 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlySolutionCouplingNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -45,7 +42,8 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -55,7 +53,8 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -65,13 +64,15 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py index 3ac2ce7fd8f..c5a97246a42 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py @@ -1,35 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlySolutionsNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -45,4 +42,6 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py index bfbd1fb1a5c..c31fe110910 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTR_Switch(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = True - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def filename(self) -> str: @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -51,44 +47,44 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TxPortOption(Enum): - PORT_1 = "Port 1" # eslint-disable-line no-eval - PORT_2 = "Port 2" # eslint-disable-line no-eval + PORT_1 = "Port 1" # eslint-disable-line no-eval + PORT_2 = "Port 2" # eslint-disable-line no-eval @property def tx_port(self) -> TxPortOption: """Tx Port Specifies which port on the TR Switch is part of the Tx path. - """ + """ val = self._get_property("Tx Port") - val = self.TxPortOption[val] - return val # type: ignore + val = self.TxPortOption[val.upper()] + return val # type: ignore class CommonPortLocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def common_port_location(self) -> CommonPortLocationOption: """Common Port Location Defines the orientation of the tr switch. - """ + """ val = self._get_property("Common Port Location") - val = self.CommonPortLocationOption[val] - return val # type: ignore + val = self.CommonPortLocationOption[val.upper()] + return val # type: ignore @property def insertion_loss(self) -> float: @@ -98,7 +94,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_isolation(self) -> bool: @@ -109,7 +105,8 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def isolation(self) -> float: @@ -119,7 +116,7 @@ def isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -130,7 +127,8 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -140,7 +138,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -151,7 +149,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -162,7 +160,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -173,7 +171,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -184,4 +182,5 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py index bd1a57d3124..ab81a22825c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTerminator(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = True - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def filename(self) -> str: @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -51,20 +47,20 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -72,24 +68,24 @@ def type(self) -> TypeOption: Type of terminator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") - val = self.TypeOption[val] - return val # type: ignore + val = self.TypeOption[val.upper()] + return val # type: ignore class PortLocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_location(self) -> PortLocationOption: """Port Location Defines the orientation of the terminator. - """ + """ val = self._get_property("Port Location") - val = self.PortLocationOption[val] - return val # type: ignore + val = self.PortLocationOption[val.upper()] + return val # type: ignore @property def vswr(self) -> float: @@ -101,13 +97,14 @@ def vswr(self) -> float: Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py index bbb8270e2aa..2db9d2541db 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py @@ -1,35 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyTouchstoneCouplingNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -44,7 +41,8 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -54,7 +52,8 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -64,16 +63,17 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def filename(self) -> str: @@ -83,16 +83,16 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File Coupling data generated by Savant and exported as a matched file - """ + """ val = self._get_property("Savant Matched Coupling File") - return val # type: ignore + return val # type: ignore @property def enable_em_isolation(self) -> bool: @@ -102,7 +102,8 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def port_antenna_assignment(self): @@ -110,15 +111,16 @@ def port_antenna_assignment(self): Maps each port in the coupling file to an antenna in the project "A list of values." - """ + """ val = self._get_property("Port-Antenna Assignment") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py index f736154b0ad..fb69b0ce18d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -46,25 +42,26 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -74,7 +71,8 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -84,16 +82,17 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def ground_reflection_coeff(self) -> float: @@ -103,7 +102,7 @@ def ground_reflection_coeff(self) -> float: Value should be between -100 and 100. """ val = self._get_property("Ground Reflection Coeff.") - return val # type: ignore + return val # type: ignore @property def pointspeak(self) -> int: @@ -113,7 +112,7 @@ def pointspeak(self) -> int: Value should be between 3 and 100. """ val = self._get_property("Points/Peak") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -124,7 +123,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -135,7 +134,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -146,23 +145,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") - val = self.FadingTypeOption[val] - return val # type: ignore + val = self.FadingTypeOption[val.upper()] + return val # type: ignore @property def fading_availability(self) -> float: @@ -173,7 +172,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -183,7 +182,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -193,7 +192,8 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def rain_availability(self) -> float: @@ -204,7 +204,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -214,7 +214,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -225,7 +225,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -236,7 +236,8 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def temperature(self) -> float: @@ -246,7 +247,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -256,7 +257,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -266,4 +267,5 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py index 4427a96ffd8..4df7aad6ff9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxBbEmissionNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -42,28 +38,28 @@ def parent(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): Value should be between -200 and 150. """ return self._get_table_data() class NoiseBehaviorOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE_BANDWIDTH = "Relative (Bandwidth)" # eslint-disable-line no-eval - RELATIVE_OFFSET = "Relative (Offset)" # eslint-disable-line no-eval - EQUATION = "Equation" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE_BANDWIDTH = "Relative (Bandwidth)" # eslint-disable-line no-eval + RELATIVE_OFFSET = "Relative (Offset)" # eslint-disable-line no-eval + EQUATION = "Equation" # eslint-disable-line no-eval @property def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior Specifies the behavior of the parametric noise profile - """ + """ val = self._get_property("Noise Behavior") - val = self.NoiseBehaviorOption[val] - return val # type: ignore + val = self.NoiseBehaviorOption[val.upper()] + return val # type: ignore @property def use_log_linear_interpolation(self) -> bool: @@ -74,4 +70,6 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py index d23504eef5e..5ba0810324e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxHarmonicNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -39,15 +35,16 @@ def parent(self): return self._parent class HarmonicTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units Specifies the units for the Harmonics - """ + """ val = self._get_property("Harmonic Table Units") - val = self.HarmonicTableUnitsOption[val] - return val # type: ignore + val = self.HarmonicTableUnitsOption[val.upper()] + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py index 1b8dda0f8d3..00c54bd30a2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py @@ -1,35 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyTxMeasNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -44,7 +41,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -54,17 +51,17 @@ def source_file(self) -> str: Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def transmit_frequency(self) -> float: """Transmit Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -74,7 +71,8 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def start_frequency(self) -> float: @@ -85,7 +83,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -96,7 +94,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def exclude_harmonics_below_noise(self) -> bool: @@ -106,4 +104,6 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return val # type: ignore + val = (val == 'true') + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py index 0319b7adc81..78affcfd609 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxNbEmissionNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -39,25 +35,26 @@ def parent(self): return self._parent class NarrowbandBehaviorOption(Enum): - ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" # eslint-disable-line no-eval - RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" # eslint-disable-line no-eval + ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" # eslint-disable-line no-eval + RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" # eslint-disable-line no-eval @property def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior Specifies the behavior of the parametric narrowband emissions mask - """ + """ val = self._get_property("Narrowband Behavior") - val = self.NarrowbandBehaviorOption[val] - return val # type: ignore + val = self.NarrowbandBehaviorOption[val.upper()] + return val # type: ignore @property def measurement_frequency(self) -> float: """Measurement Frequency Measurement frequency for the absolute freq/amp pairs. - """ + """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py index 717c67aaf89..8f5cc74878d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py @@ -1,35 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class ReadOnlyTxSpectralProfEmitterNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -41,10 +38,10 @@ def output_voltage_peak(self) -> float: """Output Voltage Peak Output High Voltage Level: maximum voltage of the digital signal - """ + """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") - return val # type: ignore + return val # type: ignore @property def include_phase_noise(self) -> bool: @@ -54,7 +51,8 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def tx_broadband_noise(self) -> float: @@ -64,7 +62,7 @@ def tx_broadband_noise(self) -> float: Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @property def perform_tx_intermod_analysis(self) -> bool: @@ -74,7 +72,8 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def internal_amp_gain(self) -> float: @@ -84,7 +83,7 @@ def internal_amp_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: @@ -94,7 +93,7 @@ def noise_figure(self) -> float: Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -105,11 +104,11 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -117,7 +116,7 @@ def p1_db_point_ref_input_(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -128,7 +127,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -138,7 +137,7 @@ def reverse_isolation(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -148,4 +147,5 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py index 3b33e67e749..abceee304ce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxSpectralProfNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -39,32 +35,32 @@ def parent(self): return self._parent class SpectrumTypeOption(Enum): - NARROWBAND__BROADBAND = "Narrowband & Broadband" # eslint-disable-line no-eval - BROADBAND_ONLY = "Broadband Only" # eslint-disable-line no-eval + NARROWBAND__BROADBAND = "Narrowband & Broadband" # eslint-disable-line no-eval + BROADBAND_ONLY = "Broadband Only" # eslint-disable-line no-eval @property def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type Specifies EMI Margins to calculate - """ + """ val = self._get_property("Spectrum Type") - val = self.SpectrumTypeOption[val] - return val # type: ignore + val = self.SpectrumTypeOption[val.upper()] + return val # type: ignore class TxPowerOption(Enum): - PEAK_POWER = "Peak Power" # eslint-disable-line no-eval - AVERAGE_POWER = "Average Power" # eslint-disable-line no-eval + PEAK_POWER = "Peak Power" # eslint-disable-line no-eval + AVERAGE_POWER = "Average Power" # eslint-disable-line no-eval @property def tx_power(self) -> TxPowerOption: """Tx Power Method used to specify the power - """ + """ val = self._get_property("Tx Power") - val = self.TxPowerOption[val] - return val # type: ignore + val = self.TxPowerOption[val.upper()] + return val # type: ignore @property def peak_power(self) -> float: @@ -75,7 +71,7 @@ def peak_power(self) -> float: """ val = self._get_property("Peak Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def average_power(self) -> float: @@ -86,7 +82,7 @@ def average_power(self) -> float: """ val = self._get_property("Average Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def include_phase_noise(self) -> bool: @@ -96,7 +92,8 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def tx_broadband_noise(self) -> float: @@ -106,23 +103,23 @@ def tx_broadband_noise(self) -> float: Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore class HarmonicTaperOption(Enum): - CONSTANT = "Constant" # eslint-disable-line no-eval - MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval - MIL_STD_461G_NAVY = "MIL-STD-461G Navy" # eslint-disable-line no-eval - DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval + CONSTANT = "Constant" # eslint-disable-line no-eval + MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval + MIL_STD_461G_NAVY = "MIL-STD-461G Navy" # eslint-disable-line no-eval + DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval @property def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper Taper type used to set amplitude of harmonics - """ + """ val = self._get_property("Harmonic Taper") - val = self.HarmonicTaperOption[val] - return val # type: ignore + val = self.HarmonicTaperOption[val.upper()] + return val # type: ignore @property def harmonic_amplitude(self) -> float: @@ -132,7 +129,7 @@ def harmonic_amplitude(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Amplitude") - return val # type: ignore + return val # type: ignore @property def harmonic_slope(self) -> float: @@ -142,7 +139,7 @@ def harmonic_slope(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Slope") - return val # type: ignore + return val # type: ignore @property def harmonic_intercept(self) -> float: @@ -152,7 +149,7 @@ def harmonic_intercept(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Intercept") - return val # type: ignore + return val # type: ignore @property def enable_harmonic_bw_expansion(self) -> bool: @@ -163,7 +160,8 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def number_of_harmonics(self) -> int: @@ -173,7 +171,7 @@ def number_of_harmonics(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Number of Harmonics") - return val # type: ignore + return val # type: ignore @property def second_harmonic_level(self) -> float: @@ -183,7 +181,7 @@ def second_harmonic_level(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Second Harmonic Level") - return val # type: ignore + return val # type: ignore @property def third_harmonic_level(self) -> float: @@ -193,7 +191,7 @@ def third_harmonic_level(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Third Harmonic Level") - return val # type: ignore + return val # type: ignore @property def other_harmonic_levels(self) -> float: @@ -203,7 +201,7 @@ def other_harmonic_levels(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Other Harmonic Levels") - return val # type: ignore + return val # type: ignore @property def perform_tx_intermod_analysis(self) -> bool: @@ -213,7 +211,8 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def internal_amp_gain(self) -> float: @@ -223,7 +222,7 @@ def internal_amp_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: @@ -233,7 +232,7 @@ def noise_figure(self) -> float: Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -244,11 +243,11 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -256,7 +255,7 @@ def p1_db_point_ref_input_(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -267,7 +266,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -277,7 +276,7 @@ def reverse_isolation(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -287,4 +286,5 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py index bf20e4e7181..a5a95bfb4f3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyTxSpurNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -40,27 +36,28 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") - val = self.SpurTableUnitsOption[val] - return val # type: ignore + val = self.SpurTableUnitsOption[val.upper()] + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py index 2eb7ab5fa6d..87359efa92b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyWalfischCouplingNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -46,25 +42,26 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -74,7 +71,8 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -84,44 +82,45 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class PathLossTypeOption(Enum): - LOS_URBAN_CANYON = "LOS (Urban Canyon)" # eslint-disable-line no-eval - NLOS = "NLOS" # eslint-disable-line no-eval + LOS_URBAN_CANYON = "LOS (Urban Canyon)" # eslint-disable-line no-eval + NLOS = "NLOS" # eslint-disable-line no-eval @property def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type Specify LOS vs NLOS for the Walfisch-Ikegami model - """ + """ val = self._get_property("Path Loss Type") - val = self.PathLossTypeOption[val] - return val # type: ignore + val = self.PathLossTypeOption[val.upper()] + return val # type: ignore class EnvironmentOption(Enum): - DENSE_METRO = "Dense Metro" # eslint-disable-line no-eval - SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" # eslint-disable-line no-eval + DENSE_METRO = "Dense Metro" # eslint-disable-line no-eval + SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Walfisch model - """ + """ val = self._get_property("Environment") - val = self.EnvironmentOption[val] - return val # type: ignore + val = self.EnvironmentOption[val.upper()] + return val # type: ignore @property def roof_height(self) -> float: @@ -132,7 +131,7 @@ def roof_height(self) -> float: """ val = self._get_property("Roof Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def distance_between_buildings(self) -> float: @@ -143,7 +142,7 @@ def distance_between_buildings(self) -> float: """ val = self._get_property("Distance Between Buildings") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def street_width(self) -> float: @@ -154,7 +153,7 @@ def street_width(self) -> float: """ val = self._get_property("Street Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def incidence_angle(self) -> float: @@ -164,7 +163,7 @@ def incidence_angle(self) -> float: Value should be between 0 and 90. """ val = self._get_property("Incidence Angle") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -175,7 +174,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -186,7 +185,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -197,23 +196,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") - val = self.FadingTypeOption[val] - return val # type: ignore + val = self.FadingTypeOption[val.upper()] + return val # type: ignore @property def fading_availability(self) -> float: @@ -224,7 +223,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -234,7 +233,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -244,7 +243,8 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def rain_availability(self) -> float: @@ -255,7 +255,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -265,7 +265,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -276,7 +276,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -287,7 +287,8 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def temperature(self) -> float: @@ -297,7 +298,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -307,7 +308,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -317,4 +318,5 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py index 2c026d9fd75..f6823ff052b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ReadOnlyWaveform(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -43,26 +39,26 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore class WaveformOption(Enum): - PERIODIC_CLOCK = "Periodic Clock" # eslint-disable-line no-eval - SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" # eslint-disable-line no-eval - PRBS = "PRBS" # eslint-disable-line no-eval - PRBS_PERIODIC = "PRBS (Periodic)" # eslint-disable-line no-eval - IMPORTED = "Imported" # eslint-disable-line no-eval + PERIODIC_CLOCK = "Periodic Clock" # eslint-disable-line no-eval + SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" # eslint-disable-line no-eval + PRBS = "PRBS" # eslint-disable-line no-eval + PRBS_PERIODIC = "PRBS (Periodic)" # eslint-disable-line no-eval + IMPORTED = "Imported" # eslint-disable-line no-eval @property def waveform(self) -> WaveformOption: """Waveform Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Waveform") - val = self.WaveformOption[val] - return val # type: ignore + val = self.WaveformOption[val.upper()] + return val # type: ignore @property def start_frequency(self) -> float: @@ -73,7 +69,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -84,7 +80,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def channel_spacing(self) -> float: @@ -95,7 +91,7 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def clock_duty_cycle(self) -> float: @@ -105,7 +101,7 @@ def clock_duty_cycle(self) -> float: Value should be between 0.001 and 1. """ val = self._get_property("Clock Duty Cycle") - return val # type: ignore + return val # type: ignore @property def clock_risefall_time(self) -> float: @@ -116,22 +112,22 @@ def clock_risefall_time(self) -> float: """ val = self._get_property("Clock Rise/Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore class SpreadingTypeOption(Enum): - LOW_SPREAD = "Low Spread" # eslint-disable-line no-eval - CENTER_SPREAD = "Center Spread" # eslint-disable-line no-eval - HIGH_SPREAD = "High Spread" # eslint-disable-line no-eval + LOW_SPREAD = "Low Spread" # eslint-disable-line no-eval + CENTER_SPREAD = "Center Spread" # eslint-disable-line no-eval + HIGH_SPREAD = "High Spread" # eslint-disable-line no-eval @property def spreading_type(self) -> SpreadingTypeOption: """Spreading Type Type of spreading employed by the Spread Spectrum Clock - """ + """ val = self._get_property("Spreading Type") - val = self.SpreadingTypeOption[val] - return val # type: ignore + val = self.SpreadingTypeOption[val.upper()] + return val # type: ignore @property def spread_percentage(self) -> float: @@ -141,7 +137,7 @@ def spread_percentage(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Spread Percentage") - return val # type: ignore + return val # type: ignore @property def imported_spectrum(self) -> str: @@ -149,16 +145,16 @@ def imported_spectrum(self) -> str: Value should be a full file path. """ val = self._get_property("Imported Spectrum") - return val # type: ignore + return val # type: ignore @property def raw_data_format(self) -> str: """Raw Data Format Format of the imported raw data - """ + """ val = self._get_property("Raw Data Format") - return val # type: ignore + return val # type: ignore @property def system_impedance(self) -> float: @@ -169,7 +165,7 @@ def system_impedance(self) -> float: """ val = self._get_property("System Impedance") val = self._convert_from_internal_units(float(val), "Resistance") - return val # type: ignore + return val # type: ignore @property def advanced_extraction_params(self) -> bool: @@ -179,7 +175,8 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def nb_window_size(self) -> float: @@ -190,7 +187,7 @@ def nb_window_size(self) -> float: Value should be greater than 3. """ val = self._get_property("NB Window Size") - return val # type: ignore + return val # type: ignore @property def bb_smoothing_factor(self) -> float: @@ -200,7 +197,7 @@ def bb_smoothing_factor(self) -> float: Value should be greater than 1. """ val = self._get_property("BB Smoothing Factor") - return val # type: ignore + return val # type: ignore @property def nb_detector_threshold(self) -> float: @@ -210,21 +207,21 @@ def nb_detector_threshold(self) -> float: Value should be between 2 and 10. """ val = self._get_property("NB Detector Threshold") - return val # type: ignore + return val # type: ignore class AlgorithmOption(Enum): - FFT = "FFT" # eslint-disable-line no-eval - FOURIER_TRANSFORM = "Fourier Transform" # eslint-disable-line no-eval + FFT = "FFT" # eslint-disable-line no-eval + FOURIER_TRANSFORM = "Fourier Transform" # eslint-disable-line no-eval @property def algorithm(self) -> AlgorithmOption: """Algorithm Algorithm used to transform the imported time domain spectrum - """ + """ val = self._get_property("Algorithm") - val = self.AlgorithmOption[val] - return val # type: ignore + val = self.AlgorithmOption[val.upper()] + return val # type: ignore @property def start_time(self) -> float: @@ -235,17 +232,17 @@ def start_time(self) -> float: """ val = self._get_property("Start Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def stop_time(self) -> float: """Stop Time Final time of the imported time domain spectrum - """ + """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def max_frequency(self) -> float: @@ -256,28 +253,28 @@ def max_frequency(self) -> float: """ val = self._get_property("Max Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class WindowTypeOption(Enum): - RECTANGULAR = "Rectangular" # eslint-disable-line no-eval - BARTLETT = "Bartlett" # eslint-disable-line no-eval - BLACKMAN = "Blackman" # eslint-disable-line no-eval - HAMMING = "Hamming" # eslint-disable-line no-eval - HANNING = "Hanning" # eslint-disable-line no-eval - KAISER = "Kaiser" # eslint-disable-line no-eval - LANZCOS = "Lanzcos" # eslint-disable-line no-eval - WELCH = "Welch" # eslint-disable-line no-eval - WEBER = "Weber" # eslint-disable-line no-eval + RECTANGULAR = "Rectangular" # eslint-disable-line no-eval + BARTLETT = "Bartlett" # eslint-disable-line no-eval + BLACKMAN = "Blackman" # eslint-disable-line no-eval + HAMMING = "Hamming" # eslint-disable-line no-eval + HANNING = "Hanning" # eslint-disable-line no-eval + KAISER = "Kaiser" # eslint-disable-line no-eval + LANZCOS = "Lanzcos" # eslint-disable-line no-eval + WELCH = "Welch" # eslint-disable-line no-eval + WEBER = "Weber" # eslint-disable-line no-eval @property def window_type(self) -> WindowTypeOption: """Window Type Windowing scheme used for importing time domain spectrum - """ + """ val = self._get_property("Window Type") - val = self.WindowTypeOption[val] - return val # type: ignore + val = self.WindowTypeOption[val.upper()] + return val # type: ignore @property def kaiser_parameter(self) -> float: @@ -287,7 +284,7 @@ def kaiser_parameter(self) -> float: Value should be greater than 0. """ val = self._get_property("Kaiser Parameter") - return val # type: ignore + return val # type: ignore @property def adjust_coherent_gain(self) -> bool: @@ -297,7 +294,8 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def data_rate(self) -> float: @@ -308,7 +306,7 @@ def data_rate(self) -> float: """ val = self._get_property("Data Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @property def num_of_bits(self) -> int: @@ -318,7 +316,7 @@ def num_of_bits(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Num of Bits") - return val # type: ignore + return val # type: ignore @property def use_envelope(self) -> bool: @@ -328,7 +326,8 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @property def min_ptsnull(self) -> int: @@ -338,7 +337,7 @@ def min_ptsnull(self) -> int: Value should be between 2 and 50. """ val = self._get_property("Min Pts/Null") - return val # type: ignore + return val # type: ignore @property def delay_skew(self) -> float: @@ -349,4 +348,5 @@ def delay_skew(self) -> float: """ val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py index 85db4222e95..91d082a576b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class ResultPlotNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) def add_marker(self): """Add an icon and/or label to this plot""" @@ -46,13 +42,15 @@ def title(self) -> str: """Title Enter title at the top of the plot, room will be made for it - """ + """ val = self._get_property("Title") - return val # type: ignore + return val # type: ignore @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title={value}"]) @property def title_font(self): @@ -62,11 +60,13 @@ def title_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Title Font") - return val # type: ignore + return val # type: ignore @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -76,11 +76,14 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Legend={value}"]) @property def legend_font(self): @@ -90,11 +93,13 @@ def legend_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Legend Font") - return val # type: ignore + return val # type: ignore @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Legend Font={value}"]) @property def show_emi_thresholds(self) -> bool: @@ -104,11 +109,14 @@ def show_emi_thresholds(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show EMI Thresholds") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show EMI Thresholds={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show EMI Thresholds={value}"]) @property def display_cad_overlay(self) -> bool: @@ -118,11 +126,14 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -132,24 +143,28 @@ def opacity(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Opacity") - return val # type: ignore + return val # type: ignore @opacity.setter - def opacity(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) + def opacity(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset Adjust vertical position of CAD model overlay - """ + """ val = self._get_property("Vertical Offset") - return val # type: ignore + return val # type: ignore @vertical_offset.setter - def vertical_offset(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) + def vertical_offset(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -160,11 +175,13 @@ def range_axis_rotation(self) -> float: Value should be between -180 and 180. """ val = self._get_property("Range Axis Rotation") - return val # type: ignore + return val # type: ignore @range_axis_rotation.setter - def range_axis_rotation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -174,63 +191,74 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min Set lower extent of horizontal axis - """ + """ val = self._get_property("X-axis Min") - return val # type: ignore + return val # type: ignore @x_axis_min.setter - def x_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) + def x_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max Set upper extent of horizontal axis - """ + """ val = self._get_property("X-axis Max") - return val # type: ignore + return val # type: ignore @x_axis_max.setter - def x_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) + def x_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min Set lower extent of vertical axis - """ + """ val = self._get_property("Y-axis Min") - return val # type: ignore + return val # type: ignore @y_axis_min.setter - def y_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) + def y_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max Set upper extent of vertical axis - """ + """ val = self._get_property("Y-axis Max") - return val # type: ignore + return val # type: ignore @y_axis_max.setter - def y_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) + def y_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -241,11 +269,13 @@ def y_axis_range(self) -> float: Value should be greater than 0. """ val = self._get_property("Y-axis Range") - return val # type: ignore + return val # type: ignore @y_axis_range.setter - def y_axis_range(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) + def y_axis_range(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -255,11 +285,13 @@ def max_major_ticks_x(self) -> int: Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks X") - return val # type: ignore + return val # type: ignore @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -270,11 +302,13 @@ def max_minor_ticks_x(self) -> int: Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks X") - return val # type: ignore + return val # type: ignore @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -284,11 +318,13 @@ def max_major_ticks_y(self) -> int: Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks Y") - return val # type: ignore + return val # type: ignore @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -299,11 +335,13 @@ def max_minor_ticks_y(self) -> int: Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks Y") - return val # type: ignore + return val # type: ignore @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -313,11 +351,13 @@ def axis_label_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Label Font") - return val # type: ignore + return val # type: ignore @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -327,35 +367,37 @@ def axis_tick_label_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Tick Label Font") - return val # type: ignore + return val # type: ignore @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style Select line style of major-tick grid lines - """ + """ val = self._get_property("Major Grid Line Style") - val = self.MajorGridLineStyleOption[val] - return val # type: ignore + val = self.MajorGridLineStyleOption[val.upper()] + return val # type: ignore @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Line Style={value.value}"]) @property def major_grid_color(self): @@ -365,35 +407,37 @@ def major_grid_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Major Grid Color") - return val # type: ignore + return val # type: ignore @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style Select line style of minor-tick grid lines - """ + """ val = self._get_property("Minor Grid Line Style") - val = self.MinorGridLineStyleOption[val] - return val # type: ignore + val = self.MinorGridLineStyleOption[val.upper()] + return val # type: ignore @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Line Style={value.value}"]) @property def minor_grid_color(self): @@ -403,11 +447,13 @@ def minor_grid_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Minor Grid Color") - return val # type: ignore + return val # type: ignore @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -417,33 +463,35 @@ def background_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): - HERTZ = "hertz" # eslint-disable-line no-eval - KILOHERTZ = "kilohertz" # eslint-disable-line no-eval - MEGAHERTZ = "megahertz" # eslint-disable-line no-eval - GIGAHERTZ = "gigahertz" # eslint-disable-line no-eval + HERTZ = "hertz" # eslint-disable-line no-eval + KILOHERTZ = "kilohertz" # eslint-disable-line no-eval + MEGAHERTZ = "megahertz" # eslint-disable-line no-eval + GIGAHERTZ = "gigahertz" # eslint-disable-line no-eval @property def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit Units to use for plotting broadband power densities - """ + """ val = self._get_property("BB Power for Plots Unit") - val = self.BBPowerforPlotsUnitOption[val] - return val # type: ignore + val = self.BBPowerforPlotsUnitOption[val.upper()] + return val # type: ignore @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power for Plots Unit={value.value}"]) @property def bb_power_bandwidth(self) -> float: @@ -454,12 +502,14 @@ def bb_power_bandwidth(self) -> float: """ val = self._get_property("BB Power Bandwidth") val = self._convert_from_internal_units(float(val), "") - return val # type: ignore + return val # type: ignore @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value: float | str): + def bb_power_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -469,8 +519,12 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Log Scale={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py index 127a9a75166..ef2230ed142 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py @@ -1,35 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class RfSystemGroup(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -46,11 +43,14 @@ def enable_passive_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Passive Noise") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enable_passive_noise.setter def enable_passive_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Passive Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Passive Noise={value}"]) @property def enforce_thermal_noise_floor(self) -> bool: @@ -61,10 +61,12 @@ def enforce_thermal_noise_floor(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enforce Thermal Noise Floor") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enforce_thermal_noise_floor.setter def enforce_thermal_noise_floor(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Enforce Thermal Noise Floor={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enforce Thermal Noise Floor={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py index be50a11f9a5..41d8f88a36a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py @@ -1,44 +1,40 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class RxMeasNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): """The parent of this emit node.""" return self._parent - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) @@ -54,7 +50,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -64,36 +60,38 @@ def source_file(self) -> str: Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def receive_frequency(self) -> float: """Receive Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class MeasurementModeOption(Enum): - AUDIO_SINAD = "Audio SINAD" # eslint-disable-line no-eval - DIGITAL_BER = "Digital BER" # eslint-disable-line no-eval - GPS_CNR = "GPS CNR" # eslint-disable-line no-eval + AUDIO_SINAD = "Audio SINAD" # eslint-disable-line no-eval + DIGITAL_BER = "Digital BER" # eslint-disable-line no-eval + GPS_CNR = "GPS CNR" # eslint-disable-line no-eval @property def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode Defines the mode for the receiver measurement - """ + """ val = self._get_property("Measurement Mode") - val = self.MeasurementModeOption[val] - return val # type: ignore + val = self.MeasurementModeOption[val.upper()] + return val # type: ignore @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Mode={value.value}"]) @property def sinad_threshold(self) -> float: @@ -103,11 +101,13 @@ def sinad_threshold(self) -> float: Value should be between 5 and 20. """ val = self._get_property("SINAD Threshold") - return val # type: ignore + return val # type: ignore @sinad_threshold.setter - def sinad_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SINAD Threshold={value}"]) + def sinad_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SINAD Threshold={value}"]) @property def gps_cnr_threshold(self) -> float: @@ -117,11 +117,13 @@ def gps_cnr_threshold(self) -> float: Value should be between 15 and 30. """ val = self._get_property("GPS CNR Threshold") - return val # type: ignore + return val # type: ignore @gps_cnr_threshold.setter - def gps_cnr_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GPS CNR Threshold={value}"]) + def gps_cnr_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"GPS CNR Threshold={value}"]) @property def ber_threshold(self) -> float: @@ -131,11 +133,13 @@ def ber_threshold(self) -> float: Value should be between -12 and -1. """ val = self._get_property("BER Threshold") - return val # type: ignore + return val # type: ignore @ber_threshold.setter - def ber_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BER Threshold={value}"]) + def ber_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BER Threshold={value}"]) @property def default_intended_power(self) -> bool: @@ -145,11 +149,14 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @default_intended_power.setter def default_intended_power(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Default Intended Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Default Intended Power={value}"]) @property def intended_signal_power(self) -> float: @@ -159,11 +166,13 @@ def intended_signal_power(self) -> float: Value should be between -140 and -50. """ val = self._get_property("Intended Signal Power") - return val # type: ignore + return val # type: ignore @intended_signal_power.setter - def intended_signal_power(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Intended Signal Power={value}"]) + def intended_signal_power(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Intended Signal Power={value}"]) @property def freq_deviation(self) -> float: @@ -174,12 +183,14 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation.setter - def freq_deviation(self, value: float | str): + def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation={value}"]) @property def modulation_depth(self) -> float: @@ -189,11 +200,13 @@ def modulation_depth(self) -> float: Value should be between 10 and 100. """ val = self._get_property("Modulation Depth") - return val # type: ignore + return val # type: ignore @modulation_depth.setter - def modulation_depth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Depth={value}"]) + def modulation_depth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation Depth={value}"]) @property def measure_selectivity(self) -> bool: @@ -203,11 +216,14 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @measure_selectivity.setter def measure_selectivity(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Selectivity={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Selectivity={value}"]) @property def measure_mixer_products(self) -> bool: @@ -217,11 +233,14 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @measure_mixer_products.setter def measure_mixer_products(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Mixer Products={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Mixer Products={value}"]) @property def max_rf_order(self) -> int: @@ -231,11 +250,13 @@ def max_rf_order(self) -> int: Value should be greater than 1. """ val = self._get_property("Max RF Order") - return val # type: ignore + return val # type: ignore @max_rf_order.setter def max_rf_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max RF Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max RF Order={value}"]) @property def max_lo_order(self) -> int: @@ -245,11 +266,13 @@ def max_lo_order(self) -> int: Value should be greater than 1. """ val = self._get_property("Max LO Order") - return val # type: ignore + return val # type: ignore @max_lo_order.setter def max_lo_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max LO Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max LO Order={value}"]) @property def include_if(self) -> bool: @@ -259,11 +282,14 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @include_if.setter def include_if(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include IF={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include IF={value}"]) @property def measure_saturation(self) -> bool: @@ -273,11 +299,14 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @measure_saturation.setter def measure_saturation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Saturation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Saturation={value}"]) @property def use_ams_limits(self) -> bool: @@ -287,11 +316,14 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -302,12 +334,14 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -318,12 +352,14 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def samples(self) -> int: @@ -333,11 +369,13 @@ def samples(self) -> int: Value should be between 2 and 100. """ val = self._get_property("Samples") - return val # type: ignore + return val # type: ignore @samples.setter def samples(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Samples={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Samples={value}"]) @property def exclude_mixer_products_below_noise(self) -> bool: @@ -347,19 +385,21 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Exclude Mixer Products Below Noise={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Exclude Mixer Products Below Noise={value}"]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py index f372b5a08d6..13ba50aab9c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class RxMixerProductNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -49,32 +45,32 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class MixerProductTaperOption(Enum): - CONSTANT = "Constant" # eslint-disable-line no-eval - MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval - DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval + CONSTANT = "Constant" # eslint-disable-line no-eval + MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval + DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval @property def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper Taper for setting amplitude of mixer products - """ + """ val = self._get_property("Mixer Product Taper") - val = self.MixerProductTaperOption[val] - return val # type: ignore + val = self.MixerProductTaperOption[val.upper()] + return val # type: ignore @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Taper={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Taper={value.value}"]) @property def mixer_product_susceptibility(self) -> float: @@ -84,13 +80,13 @@ def mixer_product_susceptibility(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Mixer Product Susceptibility") - return val # type: ignore + return val # type: ignore @mixer_product_susceptibility.setter - def mixer_product_susceptibility(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Susceptibility={value}"] - ) + def mixer_product_susceptibility(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Susceptibility={value}"]) @property def spurious_rejection(self) -> float: @@ -100,11 +96,13 @@ def spurious_rejection(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Spurious Rejection") - return val # type: ignore + return val # type: ignore @spurious_rejection.setter - def spurious_rejection(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spurious Rejection={value}"]) + def spurious_rejection(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spurious Rejection={value}"]) @property def minimum_tuning_frequency(self) -> float: @@ -115,12 +113,14 @@ def minimum_tuning_frequency(self) -> float: """ val = self._get_property("Minimum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value: float | str): + def minimum_tuning_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minimum Tuning Frequency={value}"]) @property def maximum_tuning_frequency(self) -> float: @@ -131,12 +131,14 @@ def maximum_tuning_frequency(self) -> float: """ val = self._get_property("Maximum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value: float | str): + def maximum_tuning_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum Tuning Frequency={value}"]) @property def mixer_product_slope(self) -> float: @@ -147,11 +149,13 @@ def mixer_product_slope(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Mixer Product Slope") - return val # type: ignore + return val # type: ignore @mixer_product_slope.setter - def mixer_product_slope(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Slope={value}"]) + def mixer_product_slope(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Slope={value}"]) @property def mixer_product_intercept(self) -> float: @@ -161,11 +165,13 @@ def mixer_product_intercept(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Mixer Product Intercept") - return val # type: ignore + return val # type: ignore @mixer_product_intercept.setter - def mixer_product_intercept(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Intercept={value}"]) + def mixer_product_intercept(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Intercept={value}"]) @property def bandwidth_80_db(self) -> float: @@ -177,12 +183,14 @@ def bandwidth_80_db(self) -> float: """ val = self._get_property("Bandwidth 80 dB") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_80_db.setter - def bandwidth_80_db(self, value: float | str): + def bandwidth_80_db(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 80 dB={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 80 dB={value}"]) @property def image_rejection(self) -> float: @@ -192,11 +200,13 @@ def image_rejection(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Image Rejection") - return val # type: ignore + return val # type: ignore @image_rejection.setter - def image_rejection(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Image Rejection={value}"]) + def image_rejection(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Image Rejection={value}"]) @property def maximum_rf_harmonic_order(self) -> int: @@ -206,13 +216,13 @@ def maximum_rf_harmonic_order(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Maximum RF Harmonic Order") - return val # type: ignore + return val # type: ignore @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Maximum RF Harmonic Order={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum RF Harmonic Order={value}"]) @property def maximum_lo_harmonic_order(self) -> int: @@ -222,32 +232,34 @@ def maximum_lo_harmonic_order(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Maximum LO Harmonic Order") - return val # type: ignore + return val # type: ignore @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Maximum LO Harmonic Order={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum LO Harmonic Order={value}"]) class MixingModeOption(Enum): - LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" # eslint-disable-line no-eval - LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" # eslint-disable-line no-eval - LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" # eslint-disable-line no-eval @property def mixing_mode(self) -> MixingModeOption: """Mixing Mode Specifies whether the IF frequency is > or < RF channel frequency - """ + """ val = self._get_property("Mixing Mode") - val = self.MixingModeOption[val] - return val # type: ignore + val = self.MixingModeOption[val.upper()] + return val # type: ignore @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixing Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixing Mode={value.value}"]) @property def first_if_frequency(self): @@ -257,61 +269,68 @@ def first_if_frequency(self): Value should be a mathematical expression. """ val = self._get_property("First IF Frequency") - return val # type: ignore + return val # type: ignore @first_if_frequency.setter def first_if_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First IF Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First IF Frequency={value}"]) @property def rf_transition_frequency(self) -> float: """RF Transition Frequency RF Frequency Transition point - """ + """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @rf_transition_frequency.setter - def rf_transition_frequency(self, value: float | str): + def rf_transition_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"RF Transition Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"RF Transition Frequency={value}"]) class UseHighLOOption(Enum): - ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" # eslint-disable-line no-eval - BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" # eslint-disable-line no-eval + ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" # eslint-disable-line no-eval + BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" # eslint-disable-line no-eval @property def use_high_lo(self) -> UseHighLOOption: """Use High LO Use High LO above/below the transition frequency - """ + """ val = self._get_property("Use High LO") - val = self.UseHighLOOption[val] - return val # type: ignore + val = self.UseHighLOOption[val.upper()] + return val # type: ignore @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use High LO={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use High LO={value.value}"]) class MixerProductTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units Specifies the units for the Mixer Products - """ + """ val = self._get_property("Mixer Product Table Units") - val = self.MixerProductTableUnitsOption[val] - return val # type: ignore + val = self.MixerProductTableUnitsOption[val.upper()] + return val # type: ignore @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Table Units={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py index 517ac9e5fa1..4c306ba3d10 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py @@ -1,35 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class RxSaturationNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -38,7 +35,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -47,8 +44,9 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py index b15d9e67755..931f031c556 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py @@ -1,35 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class RxSelectivityNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -38,7 +35,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -47,7 +44,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -62,8 +59,12 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Arithmetic Mean={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Arithmetic Mean={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py index 3e7b0e1f447..fe7d796f3e1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class RxSpurNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -48,13 +44,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -66,26 +62,29 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") - val = self.SpurTableUnitsOption[val] - return val # type: ignore + val = self.SpurTableUnitsOption[val.upper()] + return val # type: ignore @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spur Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py index 4f1d38c9ac3..003c069afea 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class RxSusceptibilityProfNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -41,45 +37,49 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SensitivityUnitsOption(Enum): - DBM = "dBm" # eslint-disable-line no-eval - DBUV = "dBuV" # eslint-disable-line no-eval - MILLIWATTS = "milliwatts" # eslint-disable-line no-eval - MICROVOLTS = "microvolts" # eslint-disable-line no-eval + DBM = "dBm" # eslint-disable-line no-eval + DBUV = "dBuV" # eslint-disable-line no-eval + MILLIWATTS = "milliwatts" # eslint-disable-line no-eval + MICROVOLTS = "microvolts" # eslint-disable-line no-eval @property def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units Units to use for the Rx Sensitivity - """ + """ val = self._get_property("Sensitivity Units") - val = self.SensitivityUnitsOption[val] - return val # type: ignore + val = self.SensitivityUnitsOption[val.upper()] + return val # type: ignore @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sensitivity Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sensitivity Units={value.value}"]) @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr Received signal power level at the Rx's antenna terminal Value should be between -1000 and 1000. """ val = self._get_property("Min. Receive Signal Pwr ") - return val # type: ignore + return val # type: ignore @min_receive_signal_pwr_.setter - def min_receive_signal_pwr_(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min. Receive Signal Pwr ={value}"]) + def min_receive_signal_pwr_(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min. Receive Signal Pwr ={value}"]) @property def snr_at_rx_signal_pwr(self) -> float: @@ -90,11 +90,13 @@ def snr_at_rx_signal_pwr(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("SNR at Rx Signal Pwr") - return val # type: ignore + return val # type: ignore @snr_at_rx_signal_pwr.setter - def snr_at_rx_signal_pwr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR at Rx Signal Pwr={value}"]) + def snr_at_rx_signal_pwr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SNR at Rx Signal Pwr={value}"]) @property def processing_gain(self) -> float: @@ -104,11 +106,13 @@ def processing_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Processing Gain") - return val # type: ignore + return val # type: ignore @processing_gain.setter - def processing_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Processing Gain={value}"]) + def processing_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Processing Gain={value}"]) @property def apply_pg_to_narrowband_only(self) -> bool: @@ -119,13 +123,14 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Apply PG to Narrowband Only={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Apply PG to Narrowband Only={value}"]) @property def saturation_level(self) -> float: @@ -136,12 +141,14 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @saturation_level.setter - def saturation_level(self, value: float | str): + def saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Saturation Level={value}"]) @property def rx_noise_figure(self) -> float: @@ -151,43 +158,47 @@ def rx_noise_figure(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rx Noise Figure") - return val # type: ignore + return val # type: ignore @rx_noise_figure.setter - def rx_noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rx Noise Figure={value}"]) + def rx_noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rx Noise Figure={value}"]) @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity Rx minimum sensitivity level (dBm) Value should be between -1000 and 1000. """ val = self._get_property("Receiver Sensitivity ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @receiver_sensitivity_.setter - def receiver_sensitivity_(self, value: float | str): + def receiver_sensitivity_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver Sensitivity ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Receiver Sensitivity ={value}"]) @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity SNR or SINAD at the specified sensitivity level Value should be between -1000 and 1000. """ val = self._get_property("SNR/SINAD at Sensitivity ") - return val # type: ignore + return val # type: ignore @snrsinad_at_sensitivity_.setter - def snrsinad_at_sensitivity_(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"SNR/SINAD at Sensitivity ={value}"] - ) + def snrsinad_at_sensitivity_(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SNR/SINAD at Sensitivity ={value}"]) @property def perform_rx_intermod_analysis(self) -> bool: @@ -197,13 +208,14 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Rx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Rx Intermod Analysis={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -214,30 +226,32 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Rx's 1 dB Compression Point - total power > P1dB saturates the receiver Value should be between -1000 and 1000. """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -248,12 +262,14 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def max_intermod_order(self) -> int: @@ -263,8 +279,11 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py index fec8f27d86e..b8c8c9583fe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class SamplingNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -40,11 +36,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Min: + "Min: Value should be greater than 1. - "Max: + "Max: Value should be greater than 1. """ return self._get_table_data() @@ -54,23 +50,25 @@ def table_data(self, value): self._set_table_data(value) class SamplingTypeOption(Enum): - SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" # eslint-disable-line no-eval - RANDOM_SAMPLING = "Random Sampling" # eslint-disable-line no-eval - UNIFORM_SAMPLING = "Uniform Sampling" # eslint-disable-line no-eval + SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" # eslint-disable-line no-eval + RANDOM_SAMPLING = "Random Sampling" # eslint-disable-line no-eval + UNIFORM_SAMPLING = "Uniform Sampling" # eslint-disable-line no-eval @property def sampling_type(self) -> SamplingTypeOption: """Sampling Type Sampling to apply to this configuration - """ + """ val = self._get_property("Sampling Type") - val = self.SamplingTypeOption[val] - return val # type: ignore + val = self.SamplingTypeOption[val.upper()] + return val # type: ignore @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sampling Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sampling Type={value.value}"]) @property def specify_percentage(self) -> bool: @@ -81,11 +79,14 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @specify_percentage.setter def specify_percentage(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Specify Percentage={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Specify Percentage={value}"]) @property def percentage_of_channels(self) -> float: @@ -95,11 +96,13 @@ def percentage_of_channels(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Percentage of Channels") - return val # type: ignore + return val # type: ignore @percentage_of_channels.setter - def percentage_of_channels(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percentage of Channels={value}"]) + def percentage_of_channels(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Percentage of Channels={value}"]) @property def max__channelsrangeband(self) -> int: @@ -109,13 +112,13 @@ def max__channelsrangeband(self) -> int: Value should be between 1 and 100000. """ val = self._get_property("Max # Channels/Range/Band") - return val # type: ignore + return val # type: ignore @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Max # Channels/Range/Band={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max # Channels/Range/Band={value}"]) @property def seed(self) -> int: @@ -125,11 +128,13 @@ def seed(self) -> int: Value should be greater than 0. """ val = self._get_property("Seed") - return val # type: ignore + return val # type: ignore @seed.setter def seed(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Seed={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Seed={value}"]) @property def total_tx_channels(self) -> int: @@ -137,9 +142,9 @@ def total_tx_channels(self) -> int: Total number of transmit channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Tx Channels") - return val # type: ignore + return val # type: ignore @property def total_rx_channels(self) -> int: @@ -147,15 +152,16 @@ def total_rx_channels(self) -> int: Total number of receive channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Rx Channels") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py index a8ab1c12232..fc3cee34fb9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class SceneGroupNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -42,11 +38,11 @@ def add_group(self): """Add a new scene group""" return self._add_child_node("Group") - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -63,13 +59,14 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): @@ -79,11 +76,13 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): @@ -93,29 +92,33 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") - val = self.OrientationModeOption[val] - return val # type: ignore + val = self.OrientationModeOption[val.upper()] + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -125,11 +128,13 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): @@ -139,11 +144,13 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def show_axes(self) -> bool: @@ -153,11 +160,14 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def box_color(self): @@ -167,21 +177,26 @@ def box_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Box Color") - return val # type: ignore + return val # type: ignore @box_color.setter def box_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Box Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Box Color={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py index 4abcdb758dd..e6b31f21cd0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class SelectivityTraceNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -42,7 +38,7 @@ def export_model(self, file_name): """Save this data to a file""" return self._export_model(file_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -56,13 +52,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -72,11 +70,14 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -86,46 +87,53 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") - val = self.StyleOption[val] - return val # type: ignore + val = self.StyleOption[val.upper()] + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -135,11 +143,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -149,42 +159,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") - val = self.SymbolOption[val] - return val # type: ignore + val = self.SymbolOption[val.upper()] + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -194,11 +208,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -208,11 +224,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -222,11 +240,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -237,8 +257,12 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py index 4d58635f57b..4a4e8b5b0d6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py @@ -1,35 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class SolutionCouplingNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -45,11 +42,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -59,11 +59,14 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -73,21 +76,27 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py index db51fb270a8..1ecfb140c4d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py @@ -1,35 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class SolutionsNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -45,8 +42,12 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py index 967d83d1787..8fd8b127cbc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class SpurTraceNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -42,7 +38,7 @@ def export_model(self, file_name): """Save this data to a file""" return self._export_model(file_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -55,13 +51,15 @@ def channel_frequency(self): """Channel Frequency Select band channel frequency to display - """ + """ val = self._get_property("Channel Frequency") - return val # type: ignore + return val # type: ignore @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: @@ -69,10 +67,10 @@ def transmit_frequency(self) -> float: The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset) - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def data_source(self): @@ -80,13 +78,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,11 +96,14 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -110,46 +113,53 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") - val = self.StyleOption[val] - return val # type: ignore + val = self.StyleOption[val.upper()] + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -159,11 +169,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -173,42 +185,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") - val = self.SymbolOption[val] - return val # type: ignore + val = self.SymbolOption[val.upper()] + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -218,11 +234,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -232,11 +250,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -246,11 +266,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -261,8 +283,12 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py index 8f325267a03..d67a9f49877 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TRSwitchTraceNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -42,7 +38,7 @@ def export_model(self, file_name): """Save this data to a file""" return self._export_model(file_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -58,11 +54,13 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -72,11 +70,13 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): @@ -84,13 +84,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -100,11 +102,14 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -114,46 +119,53 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") - val = self.StyleOption[val] - return val # type: ignore + val = self.StyleOption[val.upper()] + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -163,11 +175,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -177,42 +191,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") - val = self.SymbolOption[val] - return val # type: ignore + val = self.SymbolOption[val.upper()] + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -222,11 +240,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -236,11 +256,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -250,11 +272,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -265,8 +289,12 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index 44fed3f61d4..01f7a66a125 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -1,43 +1,39 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TR_Switch(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = True - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -53,11 +49,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,62 +65,68 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TxPortOption(Enum): - PORT_1 = "Port 1" # eslint-disable-line no-eval - PORT_2 = "Port 2" # eslint-disable-line no-eval + PORT_1 = "Port 1" # eslint-disable-line no-eval + PORT_2 = "Port 2" # eslint-disable-line no-eval @property def tx_port(self) -> TxPortOption: """Tx Port Specifies which port on the TR Switch is part of the Tx path. - """ + """ val = self._get_property("Tx Port") - val = self.TxPortOption[val] - return val # type: ignore + val = self.TxPortOption[val.upper()] + return val # type: ignore @tx_port.setter def tx_port(self, value: TxPortOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Port={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Port={value.value}"]) class CommonPortLocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def common_port_location(self) -> CommonPortLocationOption: """Common Port Location Defines the orientation of the tr switch. - """ + """ val = self._get_property("Common Port Location") - val = self.CommonPortLocationOption[val] - return val # type: ignore + val = self.CommonPortLocationOption[val.upper()] + return val # type: ignore @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Common Port Location={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Common Port Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -132,11 +136,13 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_isolation(self) -> bool: @@ -147,11 +153,14 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -161,11 +170,13 @@ def isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @isolation.setter - def isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) + def isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -176,11 +187,14 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -190,11 +204,13 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -205,12 +221,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -221,12 +239,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -237,12 +257,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -253,9 +275,12 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index 95965e7041f..507735535e2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -1,43 +1,39 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Terminator(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = True - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -53,11 +49,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,28 +65,32 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -96,32 +98,36 @@ def type(self) -> TypeOption: Type of terminator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") - val = self.TypeOption[val] - return val # type: ignore + val = self.TypeOption[val.upper()] + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class PortLocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_location(self) -> PortLocationOption: """Port Location Defines the orientation of the terminator. - """ + """ val = self._get_property("Port Location") - val = self.PortLocationOption[val] - return val # type: ignore + val = self.PortLocationOption[val.upper()] + return val # type: ignore @port_location.setter def port_location(self, value: PortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port Location={value.value}"]) @property def vswr(self) -> float: @@ -133,17 +139,20 @@ def vswr(self) -> float: Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @vswr.setter - def vswr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) + def vswr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"VSWR={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val # type: ignore + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py index e9f4b01e1be..bfdfd07de53 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TestNoiseTraceNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -42,7 +38,7 @@ def export_model(self, file_name): """Save this data to a file""" return self._export_model(file_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -58,11 +54,13 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -72,11 +70,13 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): @@ -84,13 +84,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -100,11 +102,14 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -114,46 +119,53 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") - val = self.StyleOption[val] - return val # type: ignore + val = self.StyleOption[val.upper()] + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -163,11 +175,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -177,42 +191,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") - val = self.SymbolOption[val] - return val # type: ignore + val = self.SymbolOption[val.upper()] + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -222,11 +240,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -236,11 +256,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -250,11 +272,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -265,11 +289,14 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -280,12 +307,14 @@ def frequency_1(self) -> float: """ val = self._get_property("Frequency 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_1.setter - def frequency_1(self, value: float | str): + def frequency_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -296,12 +325,14 @@ def amplitude_1(self) -> float: """ val = self._get_property("Amplitude 1") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_1.setter - def amplitude_1(self, value: float | str): + def amplitude_1(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -312,12 +343,14 @@ def bandwidth_1(self) -> float: """ val = self._get_property("Bandwidth 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_1.setter - def bandwidth_1(self, value: float | str): + def bandwidth_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -328,12 +361,14 @@ def frequency_2(self) -> float: """ val = self._get_property("Frequency 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_2.setter - def frequency_2(self, value: float | str): + def frequency_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -344,12 +379,14 @@ def amplitude_2(self) -> float: """ val = self._get_property("Amplitude 2") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_2.setter - def amplitude_2(self, value: float | str): + def amplitude_2(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -360,12 +397,14 @@ def bandwidth_2(self) -> float: """ val = self._get_property("Bandwidth 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_2.setter - def bandwidth_2(self, value: float | str): + def bandwidth_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -375,8 +414,11 @@ def noise_level(self) -> float: Value should be between -200 and 0. """ val = self._get_property("Noise Level") - return val # type: ignore + return val # type: ignore @noise_level.setter - def noise_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) + def noise_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Level={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py index 930244277ac..69151b5f025 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py @@ -1,32 +1,30 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class TopLevelSimulation(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py index b6a0b67e7b9..a6b6e598a89 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py @@ -1,46 +1,43 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class TouchstoneCouplingNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): """The parent of this emit node.""" return self._parent - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -56,11 +53,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -70,11 +70,14 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -84,24 +87,29 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def filename(self) -> str: @@ -111,20 +119,22 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File Coupling data generated by Savant and exported as a matched file - """ + """ val = self._get_property("Savant Matched Coupling File") - return val # type: ignore + return val # type: ignore @property def enable_em_isolation(self) -> bool: @@ -134,11 +144,14 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enable_em_isolation.setter def enable_em_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable EM Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable EM Isolation={value}"]) @property def port_antenna_assignment(self): @@ -146,23 +159,28 @@ def port_antenna_assignment(self): Maps each port in the coupling file to an antenna in the project "A list of values." - """ + """ val = self._get_property("Port-Antenna Assignment") - return val # type: ignore + return val # type: ignore @port_antenna_assignment.setter def port_antenna_assignment(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port-Antenna Assignment={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port-Antenna Assignment={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py index e3123abab19..ee90d2065b7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TunableTraceNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -42,7 +38,7 @@ def export_model(self, file_name): """Save this data to a file""" return self._export_model(file_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -58,11 +54,13 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -72,26 +70,30 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def frequency(self) -> float: """Frequency Tunable filter center frequency - """ + """ val = self._get_property("Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency.setter - def frequency(self, value: float | str): + def frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency={value}"]) @property def data_source(self): @@ -99,13 +101,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -115,11 +119,14 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -129,46 +136,53 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") - val = self.StyleOption[val] - return val # type: ignore + val = self.StyleOption[val.upper()] + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -178,11 +192,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -192,42 +208,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") - val = self.SymbolOption[val] - return val # type: ignore + val = self.SymbolOption[val.upper()] + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -237,11 +257,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -251,11 +273,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -265,11 +289,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -280,8 +306,12 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py index df4a42a813f..1aa3e567a82 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py @@ -1,48 +1,44 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TwoRayPathLossCouplingNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): """The parent of this emit node.""" return self._parent - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -58,37 +54,44 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +101,14 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,24 +118,29 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def ground_reflection_coeff(self) -> float: @@ -139,11 +150,13 @@ def ground_reflection_coeff(self) -> float: Value should be between -100 and 100. """ val = self._get_property("Ground Reflection Coeff.") - return val # type: ignore + return val # type: ignore @ground_reflection_coeff.setter - def ground_reflection_coeff(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ground Reflection Coeff.={value}"]) + def ground_reflection_coeff(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ground Reflection Coeff.={value}"]) @property def pointspeak(self) -> int: @@ -153,11 +166,13 @@ def pointspeak(self) -> int: Value should be between 3 and 100. """ val = self._get_property("Points/Peak") - return val # type: ignore + return val # type: ignore @pointspeak.setter def pointspeak(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Points/Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Points/Peak={value}"]) @property def custom_fading_margin(self) -> float: @@ -168,11 +183,13 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -183,11 +200,13 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -198,31 +217,35 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") - val = self.FadingTypeOption[val] - return val # type: ignore + val = self.FadingTypeOption[val.upper()] + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -233,11 +256,13 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -247,11 +272,13 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -261,11 +288,14 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -276,11 +306,13 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -290,11 +322,13 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -305,11 +339,13 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -320,13 +356,14 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -336,11 +373,13 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -350,11 +389,13 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -364,10 +405,11 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py index c8e7df59e01..1fc83e5a214 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TwoToneTraceNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -42,7 +38,7 @@ def export_model(self, file_name): """Save this data to a file""" return self._export_model(file_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -58,11 +54,13 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -72,11 +70,13 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): @@ -84,13 +84,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -100,11 +102,14 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -114,46 +119,53 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") - val = self.StyleOption[val] - return val # type: ignore + val = self.StyleOption[val.upper()] + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -163,11 +175,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -177,42 +191,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") - val = self.SymbolOption[val] - return val # type: ignore + val = self.SymbolOption[val.upper()] + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -222,11 +240,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -236,11 +256,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -250,11 +272,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -265,11 +289,14 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -280,12 +307,14 @@ def frequency_1(self) -> float: """ val = self._get_property("Frequency 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_1.setter - def frequency_1(self, value: float | str): + def frequency_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -296,12 +325,14 @@ def amplitude_1(self) -> float: """ val = self._get_property("Amplitude 1") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_1.setter - def amplitude_1(self, value: float | str): + def amplitude_1(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -312,12 +343,14 @@ def bandwidth_1(self) -> float: """ val = self._get_property("Bandwidth 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_1.setter - def bandwidth_1(self, value: float | str): + def bandwidth_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -328,12 +361,14 @@ def frequency_2(self) -> float: """ val = self._get_property("Frequency 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_2.setter - def frequency_2(self, value: float | str): + def frequency_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -344,12 +379,14 @@ def amplitude_2(self) -> float: """ val = self._get_property("Amplitude 2") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_2.setter - def amplitude_2(self, value: float | str): + def amplitude_2(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -360,12 +397,14 @@ def bandwidth_2(self) -> float: """ val = self._get_property("Bandwidth 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_2.setter - def bandwidth_2(self, value: float | str): + def bandwidth_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -375,8 +414,11 @@ def noise_level(self) -> float: Value should be between -200 and 0. """ val = self._get_property("Noise Level") - return val # type: ignore + return val # type: ignore @noise_level.setter - def noise_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) + def noise_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Level={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py index 8127489f48a..f19d135fb42 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxBbEmissionNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -50,9 +46,9 @@ def delete(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): Value should be between -200 and 150. """ return self._get_table_data() @@ -64,31 +60,33 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class NoiseBehaviorOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE_BANDWIDTH = "Relative (Bandwidth)" # eslint-disable-line no-eval - RELATIVE_OFFSET = "Relative (Offset)" # eslint-disable-line no-eval - EQUATION = "Equation" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE_BANDWIDTH = "Relative (Bandwidth)" # eslint-disable-line no-eval + RELATIVE_OFFSET = "Relative (Offset)" # eslint-disable-line no-eval + EQUATION = "Equation" # eslint-disable-line no-eval @property def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior Specifies the behavior of the parametric noise profile - """ + """ val = self._get_property("Noise Behavior") - val = self.NoiseBehaviorOption[val] - return val # type: ignore + val = self.NoiseBehaviorOption[val.upper()] + return val # type: ignore @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Behavior={value.value}"]) @property def use_log_linear_interpolation(self) -> bool: @@ -99,10 +97,12 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Log-Linear Interpolation={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py index c7259effee7..8ebbf405e13 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxHarmonicNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -49,28 +45,29 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class HarmonicTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units Specifies the units for the Harmonics - """ + """ val = self._get_property("Harmonic Table Units") - val = self.HarmonicTableUnitsOption[val] - return val # type: ignore + val = self.HarmonicTableUnitsOption[val.upper()] + return val # type: ignore @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py index f39b0d6516c..8597fdab4e9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py @@ -1,42 +1,39 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class TxMeasNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): """The parent of this emit node.""" return self._parent - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) @@ -52,7 +49,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -62,17 +59,17 @@ def source_file(self) -> str: Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def transmit_frequency(self) -> float: """Transmit Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -82,11 +79,14 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -97,12 +97,14 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -113,12 +115,14 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def exclude_harmonics_below_noise(self) -> bool: @@ -128,19 +132,21 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Exclude Harmonics Below Noise={value}"]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py index f503da6829f..422aea16c8c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxNbEmissionNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -49,43 +45,46 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class NarrowbandBehaviorOption(Enum): - ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" # eslint-disable-line no-eval - RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" # eslint-disable-line no-eval + ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" # eslint-disable-line no-eval + RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" # eslint-disable-line no-eval @property def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior Specifies the behavior of the parametric narrowband emissions mask - """ + """ val = self._get_property("Narrowband Behavior") - val = self.NarrowbandBehaviorOption[val] - return val # type: ignore + val = self.NarrowbandBehaviorOption[val.upper()] + return val # type: ignore @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Narrowband Behavior={value.value}"]) @property def measurement_frequency(self) -> float: """Measurement Frequency Measurement frequency for the absolute freq/amp pairs. - """ + """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @measurement_frequency.setter - def measurement_frequency(self, value: float | str): + def measurement_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Frequency={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py index 8017d994134..4ebd1f458f7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py @@ -1,35 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ..EmitNode import EmitNode - class TxSpectralProfEmitterNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -39,7 +36,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -50,15 +47,17 @@ def output_voltage_peak(self) -> float: """Output Voltage Peak Output High Voltage Level: maximum voltage of the digital signal - """ + """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") - return val # type: ignore + return val # type: ignore @output_voltage_peak.setter - def output_voltage_peak(self, value: float | str): + def output_voltage_peak(self, value : float|str): value = self._convert_to_internal_units(value, "Voltage") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Voltage Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Voltage Peak={value}"]) @property def include_phase_noise(self) -> bool: @@ -68,11 +67,14 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -82,11 +84,13 @@ def tx_broadband_noise(self) -> float: Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @tx_broadband_noise.setter - def tx_broadband_noise(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Broadband Noise={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -96,13 +100,14 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Tx Intermod Analysis={value}"]) @property def internal_amp_gain(self) -> float: @@ -112,11 +117,13 @@ def internal_amp_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @internal_amp_gain.setter - def internal_amp_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -126,11 +133,13 @@ def noise_figure(self) -> float: Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -141,18 +150,18 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -160,12 +169,14 @@ def p1_db_point_ref_input_(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -176,12 +187,14 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -191,11 +204,13 @@ def reverse_isolation(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -205,8 +220,11 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py index 5f1bcce207e..7e1e7ead384 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxSpectralProfNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -41,47 +37,51 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpectrumTypeOption(Enum): - NARROWBAND__BROADBAND = "Narrowband & Broadband" # eslint-disable-line no-eval - BROADBAND_ONLY = "Broadband Only" # eslint-disable-line no-eval + NARROWBAND__BROADBAND = "Narrowband & Broadband" # eslint-disable-line no-eval + BROADBAND_ONLY = "Broadband Only" # eslint-disable-line no-eval @property def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type Specifies EMI Margins to calculate - """ + """ val = self._get_property("Spectrum Type") - val = self.SpectrumTypeOption[val] - return val # type: ignore + val = self.SpectrumTypeOption[val.upper()] + return val # type: ignore @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spectrum Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spectrum Type={value.value}"]) class TxPowerOption(Enum): - PEAK_POWER = "Peak Power" # eslint-disable-line no-eval - AVERAGE_POWER = "Average Power" # eslint-disable-line no-eval + PEAK_POWER = "Peak Power" # eslint-disable-line no-eval + AVERAGE_POWER = "Average Power" # eslint-disable-line no-eval @property def tx_power(self) -> TxPowerOption: """Tx Power Method used to specify the power - """ + """ val = self._get_property("Tx Power") - val = self.TxPowerOption[val] - return val # type: ignore + val = self.TxPowerOption[val.upper()] + return val # type: ignore @tx_power.setter def tx_power(self, value: TxPowerOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Power={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Power={value.value}"]) @property def peak_power(self) -> float: @@ -92,12 +92,14 @@ def peak_power(self) -> float: """ val = self._get_property("Peak Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @peak_power.setter - def peak_power(self, value: float | str): + def peak_power(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Peak Power={value}"]) @property def average_power(self) -> float: @@ -108,12 +110,14 @@ def average_power(self) -> float: """ val = self._get_property("Average Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @average_power.setter - def average_power(self, value: float | str): + def average_power(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Average Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Average Power={value}"]) @property def include_phase_noise(self) -> bool: @@ -123,11 +127,14 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -137,31 +144,35 @@ def tx_broadband_noise(self) -> float: Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @tx_broadband_noise.setter - def tx_broadband_noise(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Broadband Noise={value}"]) class HarmonicTaperOption(Enum): - CONSTANT = "Constant" # eslint-disable-line no-eval - MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval - MIL_STD_461G_NAVY = "MIL-STD-461G Navy" # eslint-disable-line no-eval - DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval + CONSTANT = "Constant" # eslint-disable-line no-eval + MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval + MIL_STD_461G_NAVY = "MIL-STD-461G Navy" # eslint-disable-line no-eval + DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval @property def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper Taper type used to set amplitude of harmonics - """ + """ val = self._get_property("Harmonic Taper") - val = self.HarmonicTaperOption[val] - return val # type: ignore + val = self.HarmonicTaperOption[val.upper()] + return val # type: ignore @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Taper={value.value}"]) @property def harmonic_amplitude(self) -> float: @@ -171,11 +182,13 @@ def harmonic_amplitude(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Amplitude") - return val # type: ignore + return val # type: ignore @harmonic_amplitude.setter - def harmonic_amplitude(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Amplitude={value}"]) + def harmonic_amplitude(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Amplitude={value}"]) @property def harmonic_slope(self) -> float: @@ -185,11 +198,13 @@ def harmonic_slope(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Slope") - return val # type: ignore + return val # type: ignore @harmonic_slope.setter - def harmonic_slope(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Slope={value}"]) + def harmonic_slope(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Slope={value}"]) @property def harmonic_intercept(self) -> float: @@ -199,11 +214,13 @@ def harmonic_intercept(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Intercept") - return val # type: ignore + return val # type: ignore @harmonic_intercept.setter - def harmonic_intercept(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Intercept={value}"]) + def harmonic_intercept(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Intercept={value}"]) @property def enable_harmonic_bw_expansion(self) -> bool: @@ -214,13 +231,14 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Enable Harmonic BW Expansion={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Harmonic BW Expansion={value}"]) @property def number_of_harmonics(self) -> int: @@ -230,11 +248,13 @@ def number_of_harmonics(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Number of Harmonics") - return val # type: ignore + return val # type: ignore @number_of_harmonics.setter def number_of_harmonics(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Harmonics={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Harmonics={value}"]) @property def second_harmonic_level(self) -> float: @@ -244,11 +264,13 @@ def second_harmonic_level(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Second Harmonic Level") - return val # type: ignore + return val # type: ignore @second_harmonic_level.setter - def second_harmonic_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Second Harmonic Level={value}"]) + def second_harmonic_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Second Harmonic Level={value}"]) @property def third_harmonic_level(self) -> float: @@ -258,11 +280,13 @@ def third_harmonic_level(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Third Harmonic Level") - return val # type: ignore + return val # type: ignore @third_harmonic_level.setter - def third_harmonic_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Third Harmonic Level={value}"]) + def third_harmonic_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Third Harmonic Level={value}"]) @property def other_harmonic_levels(self) -> float: @@ -272,11 +296,13 @@ def other_harmonic_levels(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Other Harmonic Levels") - return val # type: ignore + return val # type: ignore @other_harmonic_levels.setter - def other_harmonic_levels(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Other Harmonic Levels={value}"]) + def other_harmonic_levels(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Other Harmonic Levels={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -286,13 +312,14 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Tx Intermod Analysis={value}"]) @property def internal_amp_gain(self) -> float: @@ -302,11 +329,13 @@ def internal_amp_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @internal_amp_gain.setter - def internal_amp_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -316,11 +345,13 @@ def noise_figure(self) -> float: Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -331,18 +362,18 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -350,12 +381,14 @@ def p1_db_point_ref_input_(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -366,12 +399,14 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -381,11 +416,13 @@ def reverse_isolation(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -395,8 +432,11 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py index c9761567ef6..4941863931e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class TxSpurNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -48,13 +44,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -66,26 +62,29 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") - val = self.SpurTableUnitsOption[val] - return val # type: ignore + val = self.SpurTableUnitsOption[val.upper()] + return val # type: ignore @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spur Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py index 800e2f48ea4..1f2859bb219 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py @@ -1,48 +1,44 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class WalfischCouplingNode(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): """The parent of this emit node.""" return self._parent - def rename(self, new_name): + def rename(self, new_name: str): """Rename this node""" self._rename(new_name) - def duplicate(self, new_name): + def duplicate(self, new_name: str): """Duplicate this node""" return self._duplicate(new_name) @@ -58,37 +54,44 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +101,14 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,60 +118,69 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class PathLossTypeOption(Enum): - LOS_URBAN_CANYON = "LOS (Urban Canyon)" # eslint-disable-line no-eval - NLOS = "NLOS" # eslint-disable-line no-eval + LOS_URBAN_CANYON = "LOS (Urban Canyon)" # eslint-disable-line no-eval + NLOS = "NLOS" # eslint-disable-line no-eval @property def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type Specify LOS vs NLOS for the Walfisch-Ikegami model - """ + """ val = self._get_property("Path Loss Type") - val = self.PathLossTypeOption[val] - return val # type: ignore + val = self.PathLossTypeOption[val.upper()] + return val # type: ignore @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Path Loss Type={value.value}"]) class EnvironmentOption(Enum): - DENSE_METRO = "Dense Metro" # eslint-disable-line no-eval - SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" # eslint-disable-line no-eval + DENSE_METRO = "Dense Metro" # eslint-disable-line no-eval + SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Walfisch model - """ + """ val = self._get_property("Environment") - val = self.EnvironmentOption[val] - return val # type: ignore + val = self.EnvironmentOption[val.upper()] + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def roof_height(self) -> float: @@ -176,12 +191,14 @@ def roof_height(self) -> float: """ val = self._get_property("Roof Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @roof_height.setter - def roof_height(self, value: float | str): + def roof_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Roof Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Roof Height={value}"]) @property def distance_between_buildings(self) -> float: @@ -192,14 +209,14 @@ def distance_between_buildings(self) -> float: """ val = self._get_property("Distance Between Buildings") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @distance_between_buildings.setter - def distance_between_buildings(self, value: float | str): + def distance_between_buildings(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Distance Between Buildings={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Distance Between Buildings={value}"]) @property def street_width(self) -> float: @@ -210,12 +227,14 @@ def street_width(self) -> float: """ val = self._get_property("Street Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @street_width.setter - def street_width(self, value: float | str): + def street_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Street Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Street Width={value}"]) @property def incidence_angle(self) -> float: @@ -225,11 +244,13 @@ def incidence_angle(self) -> float: Value should be between 0 and 90. """ val = self._get_property("Incidence Angle") - return val # type: ignore + return val # type: ignore @incidence_angle.setter - def incidence_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Incidence Angle={value}"]) + def incidence_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Incidence Angle={value}"]) @property def custom_fading_margin(self) -> float: @@ -240,11 +261,13 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -255,11 +278,13 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -270,31 +295,35 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") - val = self.FadingTypeOption[val] - return val # type: ignore + val = self.FadingTypeOption[val.upper()] + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -305,11 +334,13 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -319,11 +350,13 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -333,11 +366,14 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -348,11 +384,13 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -362,11 +400,13 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -377,11 +417,13 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -392,13 +434,14 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -408,11 +451,13 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -422,11 +467,13 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -436,10 +483,11 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py index adc1592d056..7e6fbb0ce2c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py @@ -1,37 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ..EmitNode import EmitNode - class Waveform(EmitNode): - def __init__(self, oDesign, result_id, node_id): + def __init__(self, emit_obj, result_id, node_id): self._is_component = False - EmitNode.__init__(self, oDesign, result_id, node_id) + EmitNode.__init__(self, emit_obj, result_id, node_id) @property def parent(self): @@ -41,7 +37,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -52,34 +48,38 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port={value}"]) class WaveformOption(Enum): - PERIODIC_CLOCK = "Periodic Clock" # eslint-disable-line no-eval - SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" # eslint-disable-line no-eval - PRBS = "PRBS" # eslint-disable-line no-eval - PRBS_PERIODIC = "PRBS (Periodic)" # eslint-disable-line no-eval - IMPORTED = "Imported" # eslint-disable-line no-eval + PERIODIC_CLOCK = "Periodic Clock" # eslint-disable-line no-eval + SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" # eslint-disable-line no-eval + PRBS = "PRBS" # eslint-disable-line no-eval + PRBS_PERIODIC = "PRBS (Periodic)" # eslint-disable-line no-eval + IMPORTED = "Imported" # eslint-disable-line no-eval @property def waveform(self) -> WaveformOption: """Waveform Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Waveform") - val = self.WaveformOption[val] - return val # type: ignore + val = self.WaveformOption[val.upper()] + return val # type: ignore @waveform.setter def waveform(self, value: WaveformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Waveform={value.value}"]) @property def start_frequency(self) -> float: @@ -90,12 +90,14 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -106,12 +108,14 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -122,12 +126,14 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_spacing.setter - def channel_spacing(self, value: float | str): + def channel_spacing(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Spacing={value}"]) @property def clock_duty_cycle(self) -> float: @@ -137,11 +143,13 @@ def clock_duty_cycle(self) -> float: Value should be between 0.001 and 1. """ val = self._get_property("Clock Duty Cycle") - return val # type: ignore + return val # type: ignore @clock_duty_cycle.setter - def clock_duty_cycle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Duty Cycle={value}"]) + def clock_duty_cycle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Clock Duty Cycle={value}"]) @property def clock_risefall_time(self) -> float: @@ -152,31 +160,35 @@ def clock_risefall_time(self) -> float: """ val = self._get_property("Clock Rise/Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @clock_risefall_time.setter - def clock_risefall_time(self, value: float | str): + def clock_risefall_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Rise/Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Clock Rise/Fall Time={value}"]) class SpreadingTypeOption(Enum): - LOW_SPREAD = "Low Spread" # eslint-disable-line no-eval - CENTER_SPREAD = "Center Spread" # eslint-disable-line no-eval - HIGH_SPREAD = "High Spread" # eslint-disable-line no-eval + LOW_SPREAD = "Low Spread" # eslint-disable-line no-eval + CENTER_SPREAD = "Center Spread" # eslint-disable-line no-eval + HIGH_SPREAD = "High Spread" # eslint-disable-line no-eval @property def spreading_type(self) -> SpreadingTypeOption: """Spreading Type Type of spreading employed by the Spread Spectrum Clock - """ + """ val = self._get_property("Spreading Type") - val = self.SpreadingTypeOption[val] - return val # type: ignore + val = self.SpreadingTypeOption[val.upper()] + return val # type: ignore @spreading_type.setter def spreading_type(self, value: SpreadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spreading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spreading Type={value.value}"]) @property def spread_percentage(self) -> float: @@ -186,11 +198,13 @@ def spread_percentage(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Spread Percentage") - return val # type: ignore + return val # type: ignore @spread_percentage.setter - def spread_percentage(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spread Percentage={value}"]) + def spread_percentage(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spread Percentage={value}"]) @property def imported_spectrum(self) -> str: @@ -198,20 +212,22 @@ def imported_spectrum(self) -> str: Value should be a full file path. """ val = self._get_property("Imported Spectrum") - return val # type: ignore + return val # type: ignore @imported_spectrum.setter def imported_spectrum(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Imported Spectrum={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Imported Spectrum={value}"]) @property def raw_data_format(self) -> str: """Raw Data Format Format of the imported raw data - """ + """ val = self._get_property("Raw Data Format") - return val # type: ignore + return val # type: ignore @property def system_impedance(self) -> float: @@ -222,12 +238,14 @@ def system_impedance(self) -> float: """ val = self._get_property("System Impedance") val = self._convert_from_internal_units(float(val), "Resistance") - return val # type: ignore + return val # type: ignore @system_impedance.setter - def system_impedance(self, value: float | str): + def system_impedance(self, value : float|str): value = self._convert_to_internal_units(value, "Resistance") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"System Impedance={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"System Impedance={value}"]) @property def advanced_extraction_params(self) -> bool: @@ -237,13 +255,14 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Advanced Extraction Params={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Advanced Extraction Params={value}"]) @property def nb_window_size(self) -> float: @@ -254,11 +273,13 @@ def nb_window_size(self) -> float: Value should be greater than 3. """ val = self._get_property("NB Window Size") - return val # type: ignore + return val # type: ignore @nb_window_size.setter - def nb_window_size(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Window Size={value}"]) + def nb_window_size(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NB Window Size={value}"]) @property def bb_smoothing_factor(self) -> float: @@ -268,11 +289,13 @@ def bb_smoothing_factor(self) -> float: Value should be greater than 1. """ val = self._get_property("BB Smoothing Factor") - return val # type: ignore + return val # type: ignore @bb_smoothing_factor.setter - def bb_smoothing_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Smoothing Factor={value}"]) + def bb_smoothing_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Smoothing Factor={value}"]) @property def nb_detector_threshold(self) -> float: @@ -282,29 +305,33 @@ def nb_detector_threshold(self) -> float: Value should be between 2 and 10. """ val = self._get_property("NB Detector Threshold") - return val # type: ignore + return val # type: ignore @nb_detector_threshold.setter - def nb_detector_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Detector Threshold={value}"]) + def nb_detector_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NB Detector Threshold={value}"]) class AlgorithmOption(Enum): - FFT = "FFT" # eslint-disable-line no-eval - FOURIER_TRANSFORM = "Fourier Transform" # eslint-disable-line no-eval + FFT = "FFT" # eslint-disable-line no-eval + FOURIER_TRANSFORM = "Fourier Transform" # eslint-disable-line no-eval @property def algorithm(self) -> AlgorithmOption: """Algorithm Algorithm used to transform the imported time domain spectrum - """ + """ val = self._get_property("Algorithm") - val = self.AlgorithmOption[val] - return val # type: ignore + val = self.AlgorithmOption[val.upper()] + return val # type: ignore @algorithm.setter def algorithm(self, value: AlgorithmOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Algorithm={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Algorithm={value.value}"]) @property def start_time(self) -> float: @@ -315,27 +342,31 @@ def start_time(self) -> float: """ val = self._get_property("Start Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @start_time.setter - def start_time(self, value: float | str): + def start_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Time={value}"]) @property def stop_time(self) -> float: """Stop Time Final time of the imported time domain spectrum - """ + """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @stop_time.setter - def stop_time(self, value: float | str): + def stop_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Time={value}"]) @property def max_frequency(self) -> float: @@ -346,37 +377,41 @@ def max_frequency(self) -> float: """ val = self._get_property("Max Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_frequency.setter - def max_frequency(self, value: float | str): + def max_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Frequency={value}"]) class WindowTypeOption(Enum): - RECTANGULAR = "Rectangular" # eslint-disable-line no-eval - BARTLETT = "Bartlett" # eslint-disable-line no-eval - BLACKMAN = "Blackman" # eslint-disable-line no-eval - HAMMING = "Hamming" # eslint-disable-line no-eval - HANNING = "Hanning" # eslint-disable-line no-eval - KAISER = "Kaiser" # eslint-disable-line no-eval - LANZCOS = "Lanzcos" # eslint-disable-line no-eval - WELCH = "Welch" # eslint-disable-line no-eval - WEBER = "Weber" # eslint-disable-line no-eval + RECTANGULAR = "Rectangular" # eslint-disable-line no-eval + BARTLETT = "Bartlett" # eslint-disable-line no-eval + BLACKMAN = "Blackman" # eslint-disable-line no-eval + HAMMING = "Hamming" # eslint-disable-line no-eval + HANNING = "Hanning" # eslint-disable-line no-eval + KAISER = "Kaiser" # eslint-disable-line no-eval + LANZCOS = "Lanzcos" # eslint-disable-line no-eval + WELCH = "Welch" # eslint-disable-line no-eval + WEBER = "Weber" # eslint-disable-line no-eval @property def window_type(self) -> WindowTypeOption: """Window Type Windowing scheme used for importing time domain spectrum - """ + """ val = self._get_property("Window Type") - val = self.WindowTypeOption[val] - return val # type: ignore + val = self.WindowTypeOption[val.upper()] + return val # type: ignore @window_type.setter def window_type(self, value: WindowTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Window Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Window Type={value.value}"]) @property def kaiser_parameter(self) -> float: @@ -386,11 +421,13 @@ def kaiser_parameter(self) -> float: Value should be greater than 0. """ val = self._get_property("Kaiser Parameter") - return val # type: ignore + return val # type: ignore @kaiser_parameter.setter - def kaiser_parameter(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Kaiser Parameter={value}"]) + def kaiser_parameter(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Kaiser Parameter={value}"]) @property def adjust_coherent_gain(self) -> bool: @@ -400,11 +437,14 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adjust Coherent Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adjust Coherent Gain={value}"]) @property def data_rate(self) -> float: @@ -415,12 +455,14 @@ def data_rate(self) -> float: """ val = self._get_property("Data Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @data_rate.setter - def data_rate(self, value: float | str): + def data_rate(self, value : float|str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Rate={value}"]) @property def num_of_bits(self) -> int: @@ -430,11 +472,13 @@ def num_of_bits(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Num of Bits") - return val # type: ignore + return val # type: ignore @num_of_bits.setter def num_of_bits(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Num of Bits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Num of Bits={value}"]) @property def use_envelope(self) -> bool: @@ -444,11 +488,14 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return val # type: ignore + val = (val == 'true') + return val # type: ignore @use_envelope.setter def use_envelope(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Envelope={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Envelope={value}"]) @property def min_ptsnull(self) -> int: @@ -458,11 +505,13 @@ def min_ptsnull(self) -> int: Value should be between 2 and 50. """ val = self._get_property("Min Pts/Null") - return val # type: ignore + return val # type: ignore @min_ptsnull.setter def min_ptsnull(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pts/Null={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pts/Null={value}"]) @property def delay_skew(self) -> float: @@ -473,9 +522,12 @@ def delay_skew(self) -> float: """ val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @delay_skew.setter - def delay_skew(self, value: float | str): + def delay_skew(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Delay Skew={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Delay Skew={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index 7f7a748aedf..bd6f8b1de0e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,27 +1,3 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from .Amplifier import Amplifier from .AntennaNode import AntennaNode from .AntennaPassband import AntennaPassband @@ -57,6 +33,38 @@ from .ProfileTraceNode import ProfileTraceNode from .PropagationLossCouplingNode import PropagationLossCouplingNode from .RadioNode import RadioNode +from .ResultPlotNode import ResultPlotNode +from .RfSystemGroup import RfSystemGroup +from .RxMeasNode import RxMeasNode +from .RxMixerProductNode import RxMixerProductNode +from .RxSaturationNode import RxSaturationNode +from .RxSelectivityNode import RxSelectivityNode +from .RxSpurNode import RxSpurNode +from .RxSusceptibilityProfNode import RxSusceptibilityProfNode +from .SamplingNode import SamplingNode +from .SceneGroupNode import SceneGroupNode +from .SelectivityTraceNode import SelectivityTraceNode +from .SolutionCouplingNode import SolutionCouplingNode +from .SolutionsNode import SolutionsNode +from .SpurTraceNode import SpurTraceNode +from .TR_Switch import TR_Switch +from .TRSwitchTraceNode import TRSwitchTraceNode +from .Terminator import Terminator +from .TestNoiseTraceNode import TestNoiseTraceNode +from .TopLevelSimulation import TopLevelSimulation +from .TouchstoneCouplingNode import TouchstoneCouplingNode +from .TunableTraceNode import TunableTraceNode +from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode +from .TwoToneTraceNode import TwoToneTraceNode +from .TxBbEmissionNode import TxBbEmissionNode +from .TxHarmonicNode import TxHarmonicNode +from .TxMeasNode import TxMeasNode +from .TxNbEmissionNode import TxNbEmissionNode +from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode +from .TxSpectralProfNode import TxSpectralProfNode +from .TxSpurNode import TxSpurNode +from .WalfischCouplingNode import WalfischCouplingNode +from .Waveform import Waveform from .ReadOnlyAmplifier import ReadOnlyAmplifier from .ReadOnlyAntennaNode import ReadOnlyAntennaNode from .ReadOnlyAntennaPassband import ReadOnlyAntennaPassband @@ -105,153 +113,121 @@ from .ReadOnlyTxSpurNode import ReadOnlyTxSpurNode from .ReadOnlyWalfischCouplingNode import ReadOnlyWalfischCouplingNode from .ReadOnlyWaveform import ReadOnlyWaveform -from .ResultPlotNode import ResultPlotNode -from .RfSystemGroup import RfSystemGroup -from .RxMeasNode import RxMeasNode -from .RxMixerProductNode import RxMixerProductNode -from .RxSaturationNode import RxSaturationNode -from .RxSelectivityNode import RxSelectivityNode -from .RxSpurNode import RxSpurNode -from .RxSusceptibilityProfNode import RxSusceptibilityProfNode -from .SamplingNode import SamplingNode -from .SceneGroupNode import SceneGroupNode -from .SelectivityTraceNode import SelectivityTraceNode -from .SolutionCouplingNode import SolutionCouplingNode -from .SolutionsNode import SolutionsNode -from .SpurTraceNode import SpurTraceNode -from .TRSwitchTraceNode import TRSwitchTraceNode -from .TR_Switch import TR_Switch -from .Terminator import Terminator -from .TestNoiseTraceNode import TestNoiseTraceNode -from .TopLevelSimulation import TopLevelSimulation -from .TouchstoneCouplingNode import TouchstoneCouplingNode -from .TunableTraceNode import TunableTraceNode -from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode -from .TwoToneTraceNode import TwoToneTraceNode -from .TxBbEmissionNode import TxBbEmissionNode -from .TxHarmonicNode import TxHarmonicNode -from .TxMeasNode import TxMeasNode -from .TxNbEmissionNode import TxNbEmissionNode -from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode -from .TxSpectralProfNode import TxSpectralProfNode -from .TxSpurNode import TxSpurNode -from .WalfischCouplingNode import WalfischCouplingNode -from .Waveform import Waveform __all__ = [ - "Amplifier", - "AntennaNode", - "AntennaPassband", - "Band", - "BandFolder", - "BandTraceNode", - "CADNode", - "Cable", - "CategoriesViewNode", - "Circulator", - "CouplingLinkNode", - "CouplingTraceNode", - "CouplingsNode", - "CustomCouplingNode", - "EmiPlotMarkerNode", - "EmitSceneNode", - "ErcegCouplingNode", - "Filter", - "FiveGChannelModel", - "HataCouplingNode", - "IndoorPropagationCouplingNode", - "Isolator", - "LogDistanceCouplingNode", - "MPlexBandTraceNode", - "Multiplexer", - "MultiplexerBand", - "OutboardTraceNode", - "ParametricCouplingTraceNode", - "PlotMarkerNode", - "PlotNode", - "PowerDivider", - "PowerTraceNode", - "ProfileTraceNode", - "PropagationLossCouplingNode", - "RadioNode", - "ResultPlotNode", - "RfSystemGroup", - "RxMeasNode", - "RxMixerProductNode", - "RxSaturationNode", - "RxSelectivityNode", - "RxSpurNode", - "RxSusceptibilityProfNode", - "SamplingNode", - "SceneGroupNode", - "SelectivityTraceNode", - "SolutionCouplingNode", - "SolutionsNode", - "SpurTraceNode", - "TR_Switch", - "TRSwitchTraceNode", - "Terminator", - "TestNoiseTraceNode", - "TopLevelSimulation", - "TouchstoneCouplingNode", - "TunableTraceNode", - "TwoRayPathLossCouplingNode", - "TwoToneTraceNode", - "TxBbEmissionNode", - "TxHarmonicNode", - "TxMeasNode", - "TxNbEmissionNode", - "TxSpectralProfEmitterNode", - "TxSpectralProfNode", - "TxSpurNode", - "WalfischCouplingNode", - "Waveform", - "ReadOnlyAmplifier", - "ReadOnlyAntennaNode", - "ReadOnlyAntennaPassband", - "ReadOnlyBand", - "ReadOnlyBandFolder", - "ReadOnlyCADNode", - "ReadOnlyCable", - "ReadOnlyCirculator", - "ReadOnlyCouplingLinkNode", - "ReadOnlyCouplingsNode", - "ReadOnlyCustomCouplingNode", - "ReadOnlyEmitSceneNode", - "ReadOnlyErcegCouplingNode", - "ReadOnlyFilter", - "ReadOnlyFiveGChannelModel", - "ReadOnlyHataCouplingNode", - "ReadOnlyIndoorPropagationCouplingNode", - "ReadOnlyIsolator", - "ReadOnlyLogDistanceCouplingNode", - "ReadOnlyMultiplexer", - "ReadOnlyMultiplexerBand", - "ReadOnlyPowerDivider", - "ReadOnlyPropagationLossCouplingNode", - "ReadOnlyRadioNode", - "ReadOnlyRfSystemGroup", - "ReadOnlyRxMeasNode", - "ReadOnlyRxMixerProductNode", - "ReadOnlyRxSaturationNode", - "ReadOnlyRxSelectivityNode", - "ReadOnlyRxSpurNode", - "ReadOnlyRxSusceptibilityProfNode", - "ReadOnlySamplingNode", - "ReadOnlySceneGroupNode", - "ReadOnlySolutionCouplingNode", - "ReadOnlySolutionsNode", - "ReadOnlyTR_Switch", - "ReadOnlyTerminator", - "ReadOnlyTouchstoneCouplingNode", - "ReadOnlyTwoRayPathLossCouplingNode", - "ReadOnlyTxBbEmissionNode", - "ReadOnlyTxHarmonicNode", - "ReadOnlyTxMeasNode", - "ReadOnlyTxNbEmissionNode", - "ReadOnlyTxSpectralProfEmitterNode", - "ReadOnlyTxSpectralProfNode", - "ReadOnlyTxSpurNode", - "ReadOnlyWalfischCouplingNode", - "ReadOnlyWaveform", + 'Amplifier', + 'AntennaNode', + 'AntennaPassband', + 'Band', + 'BandFolder', + 'BandTraceNode', + 'CADNode', + 'Cable', + 'CategoriesViewNode', + 'Circulator', + 'CouplingLinkNode', + 'CouplingTraceNode', + 'CouplingsNode', + 'CustomCouplingNode', + 'EmiPlotMarkerNode', + 'EmitSceneNode', + 'ErcegCouplingNode', + 'Filter', + 'FiveGChannelModel', + 'HataCouplingNode', + 'IndoorPropagationCouplingNode', + 'Isolator', + 'LogDistanceCouplingNode', + 'MPlexBandTraceNode', + 'Multiplexer', + 'MultiplexerBand', + 'OutboardTraceNode', + 'ParametricCouplingTraceNode', + 'PlotMarkerNode', + 'PlotNode', + 'PowerDivider', + 'PowerTraceNode', + 'ProfileTraceNode', + 'PropagationLossCouplingNode', + 'RadioNode', + 'ResultPlotNode', + 'RfSystemGroup', + 'RxMeasNode', + 'RxMixerProductNode', + 'RxSaturationNode', + 'RxSelectivityNode', + 'RxSpurNode', + 'RxSusceptibilityProfNode', + 'SamplingNode', + 'SceneGroupNode', + 'SelectivityTraceNode', + 'SolutionCouplingNode', + 'SolutionsNode', + 'SpurTraceNode', + 'TR_Switch', + 'TRSwitchTraceNode', + 'Terminator', + 'TestNoiseTraceNode', + 'TopLevelSimulation', + 'TouchstoneCouplingNode', + 'TunableTraceNode', + 'TwoRayPathLossCouplingNode', + 'TwoToneTraceNode', + 'TxBbEmissionNode', + 'TxHarmonicNode', + 'TxMeasNode', + 'TxNbEmissionNode', + 'TxSpectralProfEmitterNode', + 'TxSpectralProfNode', + 'TxSpurNode', + 'WalfischCouplingNode', + 'Waveform', + 'ReadOnlyAmplifier', + 'ReadOnlyAntennaNode', + 'ReadOnlyAntennaPassband', + 'ReadOnlyBand', + 'ReadOnlyBandFolder', + 'ReadOnlyCADNode', + 'ReadOnlyCable', + 'ReadOnlyCirculator', + 'ReadOnlyCouplingLinkNode', + 'ReadOnlyCouplingsNode', + 'ReadOnlyCustomCouplingNode', + 'ReadOnlyEmitSceneNode', + 'ReadOnlyErcegCouplingNode', + 'ReadOnlyFilter', + 'ReadOnlyFiveGChannelModel', + 'ReadOnlyHataCouplingNode', + 'ReadOnlyIndoorPropagationCouplingNode', + 'ReadOnlyIsolator', + 'ReadOnlyLogDistanceCouplingNode', + 'ReadOnlyMultiplexer', + 'ReadOnlyMultiplexerBand', + 'ReadOnlyPowerDivider', + 'ReadOnlyPropagationLossCouplingNode', + 'ReadOnlyRadioNode', + 'ReadOnlyRfSystemGroup', + 'ReadOnlyRxMeasNode', + 'ReadOnlyRxMixerProductNode', + 'ReadOnlyRxSaturationNode', + 'ReadOnlyRxSelectivityNode', + 'ReadOnlyRxSpurNode', + 'ReadOnlyRxSusceptibilityProfNode', + 'ReadOnlySamplingNode', + 'ReadOnlySceneGroupNode', + 'ReadOnlySolutionCouplingNode', + 'ReadOnlySolutionsNode', + 'ReadOnlyTR_Switch', + 'ReadOnlyTerminator', + 'ReadOnlyTouchstoneCouplingNode', + 'ReadOnlyTwoRayPathLossCouplingNode', + 'ReadOnlyTxBbEmissionNode', + 'ReadOnlyTxHarmonicNode', + 'ReadOnlyTxMeasNode', + 'ReadOnlyTxNbEmissionNode', + 'ReadOnlyTxSpectralProfEmitterNode', + 'ReadOnlyTxSpectralProfNode', + 'ReadOnlyTxSpurNode', + 'ReadOnlyWalfischCouplingNode', + 'ReadOnlyWaveform', ] diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index 55214dcf22a..656f288fdc7 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -1017,9 +1017,9 @@ def _get_node(self, node_id: int) -> EmitNode: node = None try: type_class = getattr(generated, f"{prefix}{node_type}") - node = type_class(self.emit_project.odesign, self.results_index, node_id) + node = type_class(self.emit_project, self.results_index, node_id) except AttributeError: - node = EmitNode(self.emit_project.odesign, self.results_index, node_id) + node = EmitNode(self.emit_project, self.results_index, node_id) return node @pyaedt_function_handler From faf5ea88299cabd4b71fa6e23dfebbf8041bf7d8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 24 Apr 2025 21:47:46 +0000 Subject: [PATCH 56/86] CHORE: Auto fixes from pre-commit hooks --- .../emit_core/nodes/generated/Amplifier.py | 129 ++--- .../emit_core/nodes/generated/AntennaNode.py | 515 ++++++++---------- .../nodes/generated/AntennaPassband.py | 74 ++- .../core/emit_core/nodes/generated/Band.py | 381 ++++++------- .../emit_core/nodes/generated/BandFolder.py | 16 +- .../nodes/generated/BandTraceNode.py | 169 +++--- .../core/emit_core/nodes/generated/CADNode.py | 347 +++++------- .../core/emit_core/nodes/generated/Cable.py | 97 ++-- .../nodes/generated/CategoriesViewNode.py | 16 +- .../emit_core/nodes/generated/Circulator.py | 139 ++--- .../nodes/generated/CouplingLinkNode.py | 32 +- .../nodes/generated/CouplingTraceNode.py | 217 +++----- .../nodes/generated/CouplingsNode.py | 38 +- .../nodes/generated/CustomCouplingNode.py | 72 ++- .../nodes/generated/EmiPlotMarkerNode.py | 227 ++++---- .../nodes/generated/EmitSceneNode.py | 51 +- .../nodes/generated/ErcegCouplingNode.py | 203 +++---- .../core/emit_core/nodes/generated/Filter.py | 221 +++----- .../nodes/generated/FiveGChannelModel.py | 231 ++++---- .../nodes/generated/HataCouplingNode.py | 205 +++---- .../IndoorPropagationCouplingNode.py | 221 ++++---- .../emit_core/nodes/generated/Isolator.py | 139 ++--- .../generated/LogDistanceCouplingNode.py | 219 ++++---- .../nodes/generated/MPlexBandTraceNode.py | 156 +++--- .../emit_core/nodes/generated/Multiplexer.py | 83 ++- .../nodes/generated/MultiplexerBand.py | 123 ++--- .../nodes/generated/OutboardTraceNode.py | 157 +++--- .../generated/ParametricCouplingTraceNode.py | 163 +++--- .../nodes/generated/PlotMarkerNode.py | 239 ++++---- .../emit_core/nodes/generated/PlotNode.py | 267 ++++----- .../emit_core/nodes/generated/PowerDivider.py | 143 ++--- .../nodes/generated/PowerTraceNode.py | 157 +++--- .../nodes/generated/ProfileTraceNode.py | 145 +++-- .../generated/PropagationLossCouplingNode.py | 189 +++---- .../emit_core/nodes/generated/RadioNode.py | 32 +- .../nodes/generated/ReadOnlyAmplifier.py | 53 +- .../nodes/generated/ReadOnlyAntennaNode.py | 259 ++++----- .../generated/ReadOnlyAntennaPassband.py | 32 +- .../emit_core/nodes/generated/ReadOnlyBand.py | 193 +++---- .../nodes/generated/ReadOnlyBandFolder.py | 16 +- .../nodes/generated/ReadOnlyCADNode.py | 167 +++--- .../nodes/generated/ReadOnlyCable.py | 49 +- .../nodes/generated/ReadOnlyCirculator.py | 67 +-- .../generated/ReadOnlyCouplingLinkNode.py | 24 +- .../nodes/generated/ReadOnlyCouplingsNode.py | 24 +- .../generated/ReadOnlyCustomCouplingNode.py | 46 +- .../nodes/generated/ReadOnlyEmitSceneNode.py | 35 +- .../generated/ReadOnlyErcegCouplingNode.py | 93 ++-- .../nodes/generated/ReadOnlyFilter.py | 95 ++-- .../generated/ReadOnlyFiveGChannelModel.py | 109 ++-- .../generated/ReadOnlyHataCouplingNode.py | 95 ++-- .../ReadOnlyIndoorPropagationCouplingNode.py | 107 ++-- .../nodes/generated/ReadOnlyIsolator.py | 67 +-- .../ReadOnlyLogDistanceCouplingNode.py | 103 ++-- .../nodes/generated/ReadOnlyMultiplexer.py | 53 +- .../generated/ReadOnlyMultiplexerBand.py | 55 +- .../nodes/generated/ReadOnlyPowerDivider.py | 69 +-- .../ReadOnlyPropagationLossCouplingNode.py | 83 +-- .../nodes/generated/ReadOnlyRadioNode.py | 28 +- .../nodes/generated/ReadOnlyRfSystemGroup.py | 24 +- .../nodes/generated/ReadOnlyRxMeasNode.py | 85 +-- .../generated/ReadOnlyRxMixerProductNode.py | 79 +-- .../generated/ReadOnlyRxSaturationNode.py | 16 +- .../generated/ReadOnlyRxSelectivityNode.py | 20 +- .../nodes/generated/ReadOnlyRxSpurNode.py | 33 +- .../ReadOnlyRxSusceptibilityProfNode.py | 67 +-- .../nodes/generated/ReadOnlySamplingNode.py | 55 +- .../nodes/generated/ReadOnlySceneGroupNode.py | 47 +- .../generated/ReadOnlySolutionCouplingNode.py | 32 +- .../nodes/generated/ReadOnlySolutionsNode.py | 20 +- .../nodes/generated/ReadOnlyTR_Switch.py | 63 ++- .../nodes/generated/ReadOnlyTerminator.py | 47 +- .../ReadOnlyTouchstoneCouplingNode.py | 50 +- .../ReadOnlyTwoRayPathLossCouplingNode.py | 87 +-- .../generated/ReadOnlyTxBbEmissionNode.py | 37 +- .../nodes/generated/ReadOnlyTxHarmonicNode.py | 25 +- .../nodes/generated/ReadOnlyTxMeasNode.py | 36 +- .../generated/ReadOnlyTxNbEmissionNode.py | 29 +- .../ReadOnlyTxSpectralProfEmitterNode.py | 46 +- .../generated/ReadOnlyTxSpectralProfNode.py | 93 ++-- .../nodes/generated/ReadOnlyTxSpurNode.py | 33 +- .../generated/ReadOnlyWalfischCouplingNode.py | 107 ++-- .../nodes/generated/ReadOnlyWaveform.py | 131 ++--- .../nodes/generated/ResultPlotNode.py | 275 ++++------ .../nodes/generated/RfSystemGroup.py | 34 +- .../emit_core/nodes/generated/RxMeasNode.py | 181 +++--- .../nodes/generated/RxMixerProductNode.py | 175 +++--- .../nodes/generated/RxSaturationNode.py | 20 +- .../nodes/generated/RxSelectivityNode.py | 28 +- .../emit_core/nodes/generated/RxSpurNode.py | 41 +- .../generated/RxSusceptibilityProfNode.py | 153 +++--- .../emit_core/nodes/generated/SamplingNode.py | 79 ++- .../nodes/generated/SceneGroupNode.py | 85 ++- .../nodes/generated/SelectivityTraceNode.py | 145 +++-- .../nodes/generated/SolutionCouplingNode.py | 48 +- .../nodes/generated/SolutionsNode.py | 24 +- .../nodes/generated/SpurTraceNode.py | 157 +++--- .../nodes/generated/TRSwitchTraceNode.py | 157 +++--- .../emit_core/nodes/generated/TR_Switch.py | 137 ++--- .../emit_core/nodes/generated/Terminator.py | 75 ++- .../nodes/generated/TestNoiseTraceNode.py | 213 +++----- .../nodes/generated/TopLevelSimulation.py | 16 +- .../nodes/generated/TouchstoneCouplingNode.py | 82 ++- .../nodes/generated/TunableTraceNode.py | 167 +++--- .../generated/TwoRayPathLossCouplingNode.py | 203 +++---- .../nodes/generated/TwoToneTraceNode.py | 213 +++----- .../nodes/generated/TxBbEmissionNode.py | 51 +- .../nodes/generated/TxHarmonicNode.py | 35 +- .../emit_core/nodes/generated/TxMeasNode.py | 60 +- .../nodes/generated/TxNbEmissionNode.py | 45 +- .../generated/TxSpectralProfEmitterNode.py | 112 ++-- .../nodes/generated/TxSpectralProfNode.py | 223 ++++---- .../emit_core/nodes/generated/TxSpurNode.py | 41 +- .../nodes/generated/WalfischCouplingNode.py | 247 ++++----- .../emit_core/nodes/generated/Waveform.py | 275 ++++------ .../emit_core/nodes/generated/__init__.py | 318 ++++++----- 116 files changed, 5886 insertions(+), 7226 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index 8b6064fbf70..0892f101afa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Amplifier(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -49,13 +53,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,48 +67,42 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class AmplifierTypeOption(Enum): - TRANSMIT_AMPLIFIER = "Transmit Amplifier" # eslint-disable-line no-eval - RECEIVE_AMPLIFIER = "Receive Amplifier" # eslint-disable-line no-eval + TRANSMIT_AMPLIFIER = "Transmit Amplifier" # eslint-disable-line no-eval + RECEIVE_AMPLIFIER = "Receive Amplifier" # eslint-disable-line no-eval @property def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type Configures the amplifier as a Tx or Rx amplifier - """ + """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Type={value.value}"]) @property def gain(self) -> float: @@ -116,13 +112,11 @@ def gain(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Gain") - return val # type: ignore + return val # type: ignore @gain.setter - def gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Gain={value}"]) + def gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Gain={value}"]) @property def center_frequency(self) -> float: @@ -133,14 +127,12 @@ def center_frequency(self) -> float: """ val = self._get_property("Center Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @center_frequency.setter - def center_frequency(self, value : float|str): + def center_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Center Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Frequency={value}"]) @property def bandwidth(self) -> float: @@ -151,14 +143,12 @@ def bandwidth(self) -> float: """ val = self._get_property("Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth.setter - def bandwidth(self, value : float|str): + def bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth={value}"]) @property def noise_figure(self) -> float: @@ -168,13 +158,11 @@ def noise_figure(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def saturation_level(self) -> float: @@ -185,14 +173,12 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @saturation_level.setter - def saturation_level(self, value : float|str): + def saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) @property def p1_db_point_ref_input(self) -> float: @@ -203,14 +189,12 @@ def p1_db_point_ref_input(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value : float|str): + def p1_db_point_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input={value}"]) @property def ip3_ref_input(self) -> float: @@ -221,14 +205,12 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def shape_factor(self) -> float: @@ -238,13 +220,11 @@ def shape_factor(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @shape_factor.setter - def shape_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Shape Factor={value}"]) + def shape_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) @property def reverse_isolation(self) -> float: @@ -254,13 +234,11 @@ def reverse_isolation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -270,11 +248,8 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py index a1825363496..d10d76d968a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class AntennaNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -55,15 +59,13 @@ def tags(self) -> str: """Tags Space delimited list of tags for coupling selections - """ + """ val = self._get_property("Tags") - return val # type: ignore + return val # type: ignore @tags.setter def tags(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tags={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tags={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -74,14 +76,14 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -91,13 +93,11 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -107,33 +107,29 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] - return val # type: ignore + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -143,13 +139,11 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -159,13 +153,11 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def position_defined(self) -> bool: @@ -175,14 +167,12 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @position_defined.setter def position_defined(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position Defined={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Defined={value}"]) @property def antenna_temperature(self) -> float: @@ -192,28 +182,24 @@ def antenna_temperature(self) -> float: Value should be between 0 and 100000. """ val = self._get_property("Antenna Temperature") - return val # type: ignore + return val # type: ignore @antenna_temperature.setter - def antenna_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna Temperature={value}"]) + def antenna_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna Temperature={value}"]) @property def type(self): """Type Defines the type of antenna - """ + """ val = self._get_property("Type") - return val # type: ignore + return val # type: ignore @type.setter def type(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value}"]) @property def antenna_file(self) -> str: @@ -221,13 +207,11 @@ def antenna_file(self) -> str: Value should be a full file path. """ val = self._get_property("Antenna File") - return val # type: ignore + return val # type: ignore @antenna_file.setter def antenna_file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna File={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna File={value}"]) @property def project_name(self) -> str: @@ -237,13 +221,11 @@ def project_name(self) -> str: Value should be a full file path. """ val = self._get_property("Project Name") - return val # type: ignore + return val # type: ignore @project_name.setter def project_name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Project Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Project Name={value}"]) @property def peak_gain(self) -> float: @@ -253,34 +235,30 @@ def peak_gain(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Peak Gain") - return val # type: ignore + return val # type: ignore @peak_gain.setter - def peak_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Peak Gain={value}"]) + def peak_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Gain={value}"]) class BoresightOption(Enum): - XAXIS = "+X Axis" # eslint-disable-line no-eval - YAXIS = "+Y Axis" # eslint-disable-line no-eval - ZAXIS = "+Z Axis" # eslint-disable-line no-eval + XAXIS = "+X Axis" # eslint-disable-line no-eval + YAXIS = "+Y Axis" # eslint-disable-line no-eval + ZAXIS = "+Z Axis" # eslint-disable-line no-eval @property def boresight(self) -> BoresightOption: """Boresight Select peak beam direction in local coordinates - """ + """ val = self._get_property("Boresight") val = self.BoresightOption[val.upper()] - return val # type: ignore + return val # type: ignore @boresight.setter def boresight(self, value: BoresightOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Boresight={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Boresight={value.value}"]) @property def vertical_beamwidth(self) -> float: @@ -290,13 +268,11 @@ def vertical_beamwidth(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("Vertical Beamwidth") - return val # type: ignore + return val # type: ignore @vertical_beamwidth.setter - def vertical_beamwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Beamwidth={value}"]) + def vertical_beamwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Beamwidth={value}"]) @property def horizontal_beamwidth(self) -> float: @@ -306,13 +282,11 @@ def horizontal_beamwidth(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("Horizontal Beamwidth") - return val # type: ignore + return val # type: ignore @horizontal_beamwidth.setter - def horizontal_beamwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Beamwidth={value}"]) + def horizontal_beamwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Beamwidth={value}"]) @property def extra_sidelobe(self) -> bool: @@ -322,14 +296,12 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @extra_sidelobe.setter def extra_sidelobe(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Extra Sidelobe={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Extra Sidelobe={value}"]) @property def first_sidelobe_level(self) -> float: @@ -340,13 +312,11 @@ def first_sidelobe_level(self) -> float: Value should be between 0 and 200. """ val = self._get_property("First Sidelobe Level") - return val # type: ignore + return val # type: ignore @first_sidelobe_level.setter - def first_sidelobe_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Level={value}"]) + def first_sidelobe_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Level={value}"]) @property def first_sidelobe_vert_bw(self) -> float: @@ -356,13 +326,11 @@ def first_sidelobe_vert_bw(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Vert. BW") - return val # type: ignore + return val # type: ignore @first_sidelobe_vert_bw.setter - def first_sidelobe_vert_bw(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Vert. BW={value}"]) + def first_sidelobe_vert_bw(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Vert. BW={value}"]) @property def first_sidelobe_hor_bw(self) -> float: @@ -372,13 +340,11 @@ def first_sidelobe_hor_bw(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Hor. BW") - return val # type: ignore + return val # type: ignore @first_sidelobe_hor_bw.setter - def first_sidelobe_hor_bw(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Hor. BW={value}"]) + def first_sidelobe_hor_bw(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Hor. BW={value}"]) @property def outerbacklobe_level(self) -> float: @@ -388,13 +354,11 @@ def outerbacklobe_level(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Outer/Backlobe Level") - return val # type: ignore + return val # type: ignore @outerbacklobe_level.setter - def outerbacklobe_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Outer/Backlobe Level={value}"]) + def outerbacklobe_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Outer/Backlobe Level={value}"]) @property def resonant_frequency(self) -> float: @@ -406,14 +370,12 @@ def resonant_frequency(self) -> float: """ val = self._get_property("Resonant Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @resonant_frequency.setter - def resonant_frequency(self, value : float|str): + def resonant_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Resonant Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resonant Frequency={value}"]) @property def slot_length(self) -> float: @@ -424,14 +386,12 @@ def slot_length(self) -> float: """ val = self._get_property("Slot Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @slot_length.setter - def slot_length(self, value : float|str): + def slot_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Slot Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Slot Length={value}"]) @property def mouth_width(self) -> float: @@ -442,14 +402,12 @@ def mouth_width(self) -> float: """ val = self._get_property("Mouth Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_width.setter - def mouth_width(self, value : float|str): + def mouth_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Width={value}"]) @property def mouth_height(self) -> float: @@ -460,14 +418,12 @@ def mouth_height(self) -> float: """ val = self._get_property("Mouth Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_height.setter - def mouth_height(self, value : float|str): + def mouth_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Height={value}"]) @property def waveguide_width(self) -> float: @@ -479,14 +435,12 @@ def waveguide_width(self) -> float: """ val = self._get_property("Waveguide Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @waveguide_width.setter - def waveguide_width(self, value : float|str): + def waveguide_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Waveguide Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveguide Width={value}"]) @property def width_flare_half_angle(self) -> float: @@ -497,13 +451,11 @@ def width_flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Width Flare Half-angle") - return val # type: ignore + return val # type: ignore @width_flare_half_angle.setter - def width_flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Width Flare Half-angle={value}"]) + def width_flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width Flare Half-angle={value}"]) @property def height_flare_half_angle(self) -> float: @@ -514,13 +466,11 @@ def height_flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Height Flare Half-angle") - return val # type: ignore + return val # type: ignore @height_flare_half_angle.setter - def height_flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Height Flare Half-angle={value}"]) + def height_flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height Flare Half-angle={value}"]) @property def mouth_diameter(self) -> float: @@ -531,14 +481,12 @@ def mouth_diameter(self) -> float: """ val = self._get_property("Mouth Diameter") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @mouth_diameter.setter - def mouth_diameter(self, value : float|str): + def mouth_diameter(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Diameter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Diameter={value}"]) @property def flare_half_angle(self) -> float: @@ -549,13 +497,11 @@ def flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Flare Half-angle") - return val # type: ignore + return val # type: ignore @flare_half_angle.setter - def flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Flare Half-angle={value}"]) + def flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flare Half-angle={value}"]) @property def vswr(self) -> float: @@ -566,75 +512,71 @@ def vswr(self) -> float: Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @vswr.setter - def vswr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"VSWR={value}"]) + def vswr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) class AntennaPolarizationOption(Enum): - VERTICAL = "Vertical" # eslint-disable-line no-eval - HORIZONTAL = "Horizontal" # eslint-disable-line no-eval - RHCP = "RHCP" # eslint-disable-line no-eval - LHCP = "LHCP" # eslint-disable-line no-eval + VERTICAL = "Vertical" # eslint-disable-line no-eval + HORIZONTAL = "Horizontal" # eslint-disable-line no-eval + RHCP = "RHCP" # eslint-disable-line no-eval + LHCP = "LHCP" # eslint-disable-line no-eval @property def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val.upper()] - return val # type: ignore + return val # type: ignore @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna Polarization={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Antenna Polarization={value.value}"] + ) class CrossDipoleModeOption(Enum): - FREESTANDING = "Freestanding" # eslint-disable-line no-eval - OVER_GROUND_PLANE = "Over Ground Plane" # eslint-disable-line no-eval + FREESTANDING = "Freestanding" # eslint-disable-line no-eval + OVER_GROUND_PLANE = "Over Ground Plane" # eslint-disable-line no-eval @property def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode Choose the Cross Dipole type - """ + """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val.upper()] - return val # type: ignore + return val # type: ignore @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Cross Dipole Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Cross Dipole Mode={value.value}"]) class CrossDipolePolarizationOption(Enum): - RHCP = "RHCP" # eslint-disable-line no-eval - LHCP = "LHCP" # eslint-disable-line no-eval + RHCP = "RHCP" # eslint-disable-line no-eval + LHCP = "LHCP" # eslint-disable-line no-eval @property def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val.upper()] - return val # type: ignore + return val # type: ignore @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Cross Dipole Polarization={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Cross Dipole Polarization={value.value}"] + ) @property def override_height(self) -> bool: @@ -645,14 +587,12 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @override_height.setter def override_height(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Override Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Override Height={value}"]) @property def offset_height(self) -> float: @@ -663,14 +603,12 @@ def offset_height(self) -> float: """ val = self._get_property("Offset Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @offset_height.setter - def offset_height(self, value : float|str): + def offset_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Offset Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset Height={value}"]) @property def auto_height_offset(self) -> bool: @@ -681,14 +619,12 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @auto_height_offset.setter def auto_height_offset(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Auto Height Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Auto Height Offset={value}"]) @property def conform__adjust_antenna(self) -> bool: @@ -698,14 +634,12 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform / Adjust Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform / Adjust Antenna={value}"]) @property def element_offset(self): @@ -715,55 +649,51 @@ def element_offset(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Element Offset") - return val # type: ignore + return val # type: ignore @element_offset.setter def element_offset(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Element Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Element Offset={value}"]) class ConformtoPlatformOption(Enum): - NONE = "None" # eslint-disable-line no-eval - ALONG_NORMAL = "Along Normal" # eslint-disable-line no-eval - PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + ALONG_NORMAL = "Along Normal" # eslint-disable-line no-eval + PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" # eslint-disable-line no-eval @property def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform Select method of automated conforming applied after Element Offset - """ + """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val.upper()] - return val # type: ignore + return val # type: ignore @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform to Platform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Conform to Platform={value.value}"] + ) class ReferencePlaneOption(Enum): - XY_PLANE = "XY Plane" # eslint-disable-line no-eval - YZ_PLANE = "YZ Plane" # eslint-disable-line no-eval - ZX_PLANE = "ZX Plane" # eslint-disable-line no-eval + XY_PLANE = "XY Plane" # eslint-disable-line no-eval + YZ_PLANE = "YZ Plane" # eslint-disable-line no-eval + ZX_PLANE = "ZX Plane" # eslint-disable-line no-eval @property def reference_plane(self) -> ReferencePlaneOption: """Reference Plane Select reference plane for determining original element heights - """ + """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val.upper()] - return val # type: ignore + return val # type: ignore @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reference Plane={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reference Plane={value.value}"]) @property def conform_element_orientation(self) -> bool: @@ -774,14 +704,14 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform Element Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Conform Element Orientation={value}"] + ) @property def show_axes(self) -> bool: @@ -791,14 +721,12 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def show_icon(self) -> bool: @@ -808,14 +736,12 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @show_icon.setter def show_icon(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Icon={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Icon={value}"]) @property def size(self) -> float: @@ -825,13 +751,11 @@ def size(self) -> float: Value should be between 0.001 and 1. """ val = self._get_property("Size") - return val # type: ignore + return val # type: ignore @size.setter - def size(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Size={value}"]) + def size(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Size={value}"]) @property def color(self): @@ -841,31 +765,29 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def el_sample_interval(self) -> float: """El Sample Interval Space between elevation-angle samples of pattern - """ + """ val = self._get_property("El Sample Interval") - return val # type: ignore + return val # type: ignore @property def az_sample_interval(self) -> float: """Az Sample Interval Space between azimuth-angle samples of pattern - """ + """ val = self._get_property("Az Sample Interval") - return val # type: ignore + return val # type: ignore @property def has_frequency_domain(self) -> bool: @@ -875,35 +797,35 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def frequency_domain(self): """Frequency Domain Frequency sample(s) defining antenna - """ + """ val = self._get_property("Frequency Domain") - return val # type: ignore + return val # type: ignore @property def number_of_electric_sources(self) -> int: """Number of Electric Sources Number of freestanding electric current sources defining antenna - """ + """ val = self._get_property("Number of Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources Number of freestanding magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_electric_sources(self) -> int: @@ -911,9 +833,9 @@ def number_of_imaged_electric_sources(self) -> int: Number of imaged, half-space radiating electric current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_magnetic_sources(self) -> int: @@ -921,9 +843,9 @@ def number_of_imaged_magnetic_sources(self) -> int: Number of imaged, half-space radiating magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def waveguide_height(self) -> float: @@ -931,35 +853,35 @@ def waveguide_height(self) -> float: Implied waveguide height (along local x-axis) where the flared horn walls meet the feed - """ + """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency Implied lowest operating frequency of pyramidal horn antenna - """ + """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency Implied lowest operating frequency of conical horn antenna - """ + """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class SWEModeTruncationOption(Enum): - DYNAMIC = "Dynamic" # eslint-disable-line no-eval - FIXED_CUSTOM = "Fixed (Custom)" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + DYNAMIC = "Dynamic" # eslint-disable-line no-eval + FIXED_CUSTOM = "Fixed (Custom)" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def swe_mode_truncation(self) -> SWEModeTruncationOption: @@ -967,16 +889,16 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: Select the method for stability-enhancing truncation of spherical wave expansion terms - """ + """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val.upper()] - return val # type: ignore + return val # type: ignore @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SWE Mode Truncation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"SWE Mode Truncation={value.value}"] + ) @property def max_n_index(self) -> int: @@ -986,28 +908,24 @@ def max_n_index(self) -> int: Value should be greater than 1. """ val = self._get_property("Max N Index") - return val # type: ignore + return val # type: ignore @max_n_index.setter def max_n_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max N Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max N Index={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) @property def show_composite_passband(self) -> bool: @@ -1017,14 +935,12 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @show_composite_passband.setter def show_composite_passband(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Composite Passband={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Composite Passband={value}"]) @property def use_phase_center(self) -> bool: @@ -1034,23 +950,21 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @use_phase_center.setter def use_phase_center(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Phase Center={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Phase Center={value}"]) @property def coordinate_systems(self) -> str: """Coordinate Systems Specifies the coordinate system for the phase center of this antenna - """ + """ val = self._get_property("Coordinate Systems") - return val # type: ignore + return val # type: ignore @property def phasecenterposition(self): @@ -1060,7 +974,7 @@ def phasecenterposition(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("PhaseCenterPosition") - return val # type: ignore + return val # type: ignore @property def phasecenterorientation(self): @@ -1070,5 +984,4 @@ def phasecenterorientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("PhaseCenterOrientation") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py index 14961275ee5..027eb04920b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class AntennaPassband(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -48,7 +51,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -62,13 +65,11 @@ def passband_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Passband Loss") - return val # type: ignore + return val # type: ignore @passband_loss.setter - def passband_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Passband Loss={value}"]) + def passband_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Passband Loss={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -78,13 +79,11 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out of Band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out of Band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out of Band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -95,14 +94,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -113,14 +110,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -131,14 +126,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -149,27 +142,22 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index 3bf37328c1b..6d6316c9c33 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Band(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -48,15 +52,13 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) @property def use_dd_1494_mode(self) -> bool: @@ -66,14 +68,12 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use DD-1494 Mode={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use DD-1494 Mode={value}"]) @property def use_emission_designator(self) -> bool: @@ -83,48 +83,44 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @use_emission_designator.setter def use_emission_designator(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Emission Designator={value}"]) @property def emission_designator(self) -> str: """Emission Designator Enter the Emission Designator to define the bandwidth and modulation - """ + """ val = self._get_property("Emission Designator") - return val # type: ignore + return val # type: ignore @emission_designator.setter def emission_designator(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Emission Designator={value}"]) @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW Channel Bandwidth based off the emission designator - """ + """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def emit_modulation_type(self) -> str: """EMIT Modulation Type Modulation based off the emission designator - """ + """ val = self._get_property("EMIT Modulation Type") - return val # type: ignore + return val # type: ignore @property def override_emission_designator_bw(self) -> bool: @@ -135,14 +131,14 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Override Emission Designator BW={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Override Emission Designator BW={value}"] + ) @property def channel_bandwidth(self) -> float: @@ -153,43 +149,39 @@ def channel_bandwidth(self) -> float: """ val = self._get_property("Channel Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_bandwidth.setter - def channel_bandwidth(self, value : float|str): + def channel_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Bandwidth={value}"]) class ModulationOption(Enum): - GENERIC = "Generic" # eslint-disable-line no-eval - AM = "AM" # eslint-disable-line no-eval - LSB = "LSB" # eslint-disable-line no-eval - USB = "USB" # eslint-disable-line no-eval - FM = "FM" # eslint-disable-line no-eval - FSK = "FSK" # eslint-disable-line no-eval - MSK = "MSK" # eslint-disable-line no-eval - PSK = "PSK" # eslint-disable-line no-eval - QAM = "QAM" # eslint-disable-line no-eval - APSK = "APSK" # eslint-disable-line no-eval - RADAR = "Radar" # eslint-disable-line no-eval + GENERIC = "Generic" # eslint-disable-line no-eval + AM = "AM" # eslint-disable-line no-eval + LSB = "LSB" # eslint-disable-line no-eval + USB = "USB" # eslint-disable-line no-eval + FM = "FM" # eslint-disable-line no-eval + FSK = "FSK" # eslint-disable-line no-eval + MSK = "MSK" # eslint-disable-line no-eval + PSK = "PSK" # eslint-disable-line no-eval + QAM = "QAM" # eslint-disable-line no-eval + APSK = "APSK" # eslint-disable-line no-eval + RADAR = "Radar" # eslint-disable-line no-eval @property def modulation(self) -> ModulationOption: """Modulation Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Modulation") val = self.ModulationOption[val.upper()] - return val # type: ignore + return val # type: ignore @modulation.setter def modulation(self, value: ModulationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation={value.value}"]) @property def max_modulating_freq(self) -> float: @@ -200,14 +192,12 @@ def max_modulating_freq(self) -> float: """ val = self._get_property("Max Modulating Freq.") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_modulating_freq.setter - def max_modulating_freq(self, value : float|str): + def max_modulating_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Modulating Freq.={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Modulating Freq.={value}"]) @property def modulation_index(self) -> float: @@ -217,13 +207,11 @@ def modulation_index(self) -> float: Value should be between 0.01 and 1. """ val = self._get_property("Modulation Index") - return val # type: ignore + return val # type: ignore @modulation_index.setter - def modulation_index(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation Index={value}"]) + def modulation_index(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Index={value}"]) @property def freq_deviation(self) -> float: @@ -234,14 +222,12 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation.setter - def freq_deviation(self, value : float|str): + def freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) @property def bit_rate(self) -> float: @@ -252,14 +238,12 @@ def bit_rate(self) -> float: """ val = self._get_property("Bit Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @bit_rate.setter - def bit_rate(self, value : float|str): + def bit_rate(self, value: float | str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bit Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bit Rate={value}"]) @property def sidelobes(self) -> int: @@ -269,122 +253,110 @@ def sidelobes(self) -> int: Value should be greater than 0. """ val = self._get_property("Sidelobes") - return val # type: ignore + return val # type: ignore @sidelobes.setter def sidelobes(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sidelobes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sidelobes={value}"]) @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation FSK frequency deviation: helps determine spectral profile Value should be greater than 1. """ val = self._get_property("Freq. Deviation ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation_.setter - def freq_deviation_(self, value : float|str): + def freq_deviation_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation ={value}"]) class PSKTypeOption(Enum): - BPSK = "BPSK" # eslint-disable-line no-eval - QPSK = "QPSK" # eslint-disable-line no-eval - PSK_8 = "PSK-8" # eslint-disable-line no-eval - PSK_16 = "PSK-16" # eslint-disable-line no-eval - PSK_32 = "PSK-32" # eslint-disable-line no-eval - PSK_64 = "PSK-64" # eslint-disable-line no-eval + BPSK = "BPSK" # eslint-disable-line no-eval + QPSK = "QPSK" # eslint-disable-line no-eval + PSK_8 = "PSK-8" # eslint-disable-line no-eval + PSK_16 = "PSK-16" # eslint-disable-line no-eval + PSK_32 = "PSK-32" # eslint-disable-line no-eval + PSK_64 = "PSK-64" # eslint-disable-line no-eval @property def psk_type(self) -> PSKTypeOption: """PSK Type PSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @psk_type.setter def psk_type(self, value: PSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"PSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"PSK Type={value.value}"]) class FSKTypeOption(Enum): - FSK_2 = "FSK-2" # eslint-disable-line no-eval - FSK_4 = "FSK-4" # eslint-disable-line no-eval - FSK_8 = "FSK-8" # eslint-disable-line no-eval + FSK_2 = "FSK-2" # eslint-disable-line no-eval + FSK_4 = "FSK-4" # eslint-disable-line no-eval + FSK_8 = "FSK-8" # eslint-disable-line no-eval @property def fsk_type(self) -> FSKTypeOption: """FSK Type FSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @fsk_type.setter def fsk_type(self, value: FSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FSK Type={value.value}"]) class QAMTypeOption(Enum): - QAM_4 = "QAM-4" # eslint-disable-line no-eval - QAM_16 = "QAM-16" # eslint-disable-line no-eval - QAM_64 = "QAM-64" # eslint-disable-line no-eval - QAM_256 = "QAM-256" # eslint-disable-line no-eval - QAM_1024 = "QAM-1024" # eslint-disable-line no-eval + QAM_4 = "QAM-4" # eslint-disable-line no-eval + QAM_16 = "QAM-16" # eslint-disable-line no-eval + QAM_64 = "QAM-64" # eslint-disable-line no-eval + QAM_256 = "QAM-256" # eslint-disable-line no-eval + QAM_1024 = "QAM-1024" # eslint-disable-line no-eval @property def qam_type(self) -> QAMTypeOption: """QAM Type QAM modulation order: helps determine spectral profile - """ + """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @qam_type.setter def qam_type(self, value: QAMTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"QAM Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"QAM Type={value.value}"]) class APSKTypeOption(Enum): - APSK_4 = "APSK-4" # eslint-disable-line no-eval - APSK_16 = "APSK-16" # eslint-disable-line no-eval - APSK_64 = "APSK-64" # eslint-disable-line no-eval - APSK_256 = "APSK-256" # eslint-disable-line no-eval - APSK_1024 = "APSK-1024" # eslint-disable-line no-eval + APSK_4 = "APSK-4" # eslint-disable-line no-eval + APSK_16 = "APSK-16" # eslint-disable-line no-eval + APSK_64 = "APSK-64" # eslint-disable-line no-eval + APSK_256 = "APSK-256" # eslint-disable-line no-eval + APSK_1024 = "APSK-1024" # eslint-disable-line no-eval @property def apsk_type(self) -> APSKTypeOption: """APSK Type APSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @apsk_type.setter def apsk_type(self, value: APSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"APSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"APSK Type={value.value}"]) @property def start_frequency(self) -> float: @@ -395,14 +367,12 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -413,14 +383,12 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -431,14 +399,12 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_spacing.setter - def channel_spacing(self, value : float|str): + def channel_spacing(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) @property def tx_offset(self) -> float: @@ -449,37 +415,33 @@ def tx_offset(self) -> float: """ val = self._get_property("Tx Offset") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @tx_offset.setter - def tx_offset(self, value : float|str): + def tx_offset(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Offset={value}"]) class RadarTypeOption(Enum): - CW = "CW" # eslint-disable-line no-eval - FM_CW = "FM-CW" # eslint-disable-line no-eval - FM_PULSE = "FM Pulse" # eslint-disable-line no-eval - NON_FM_PULSE = "Non-FM Pulse" # eslint-disable-line no-eval - PHASE_CODED = "Phase Coded" # eslint-disable-line no-eval + CW = "CW" # eslint-disable-line no-eval + FM_CW = "FM-CW" # eslint-disable-line no-eval + FM_PULSE = "FM Pulse" # eslint-disable-line no-eval + NON_FM_PULSE = "Non-FM Pulse" # eslint-disable-line no-eval + PHASE_CODED = "Phase Coded" # eslint-disable-line no-eval @property def radar_type(self) -> RadarTypeOption: """Radar Type Radar type: helps determine spectral profile - """ + """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @radar_type.setter def radar_type(self, value: RadarTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Radar Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radar Type={value.value}"]) @property def hopping_radar(self) -> bool: @@ -489,14 +451,12 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @hopping_radar.setter def hopping_radar(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hopping Radar={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hopping Radar={value}"]) @property def post_october_2020_procurement(self) -> bool: @@ -507,14 +467,14 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Post October 2020 Procurement={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Post October 2020 Procurement={value}"] + ) @property def hop_range_min_freq(self) -> float: @@ -525,14 +485,12 @@ def hop_range_min_freq(self) -> float: """ val = self._get_property("Hop Range Min Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @hop_range_min_freq.setter - def hop_range_min_freq(self, value : float|str): + def hop_range_min_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hop Range Min Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Min Freq={value}"]) @property def hop_range_max_freq(self) -> float: @@ -543,14 +501,12 @@ def hop_range_max_freq(self) -> float: """ val = self._get_property("Hop Range Max Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @hop_range_max_freq.setter - def hop_range_max_freq(self, value : float|str): + def hop_range_max_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hop Range Max Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Max Freq={value}"]) @property def pulse_duration(self) -> float: @@ -561,14 +517,12 @@ def pulse_duration(self) -> float: """ val = self._get_property("Pulse Duration") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_duration.setter - def pulse_duration(self, value : float|str): + def pulse_duration(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Duration={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Duration={value}"]) @property def pulse_rise_time(self) -> float: @@ -579,14 +533,12 @@ def pulse_rise_time(self) -> float: """ val = self._get_property("Pulse Rise Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_rise_time.setter - def pulse_rise_time(self, value : float|str): + def pulse_rise_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Rise Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Rise Time={value}"]) @property def pulse_fall_time(self) -> float: @@ -597,14 +549,12 @@ def pulse_fall_time(self) -> float: """ val = self._get_property("Pulse Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @pulse_fall_time.setter - def pulse_fall_time(self, value : float|str): + def pulse_fall_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Fall Time={value}"]) @property def pulse_repetition_rate(self) -> float: @@ -614,13 +564,11 @@ def pulse_repetition_rate(self) -> float: Value should be greater than 1. """ val = self._get_property("Pulse Repetition Rate") - return val # type: ignore + return val # type: ignore @pulse_repetition_rate.setter - def pulse_repetition_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Repetition Rate={value}"]) + def pulse_repetition_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Repetition Rate={value}"]) @property def number_of_chips(self) -> float: @@ -630,13 +578,11 @@ def number_of_chips(self) -> float: Value should be greater than 1. """ val = self._get_property("Number of Chips") - return val # type: ignore + return val # type: ignore @number_of_chips.setter - def number_of_chips(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Chips={value}"]) + def number_of_chips(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Chips={value}"]) @property def pulse_compression_ratio(self) -> float: @@ -646,13 +592,11 @@ def pulse_compression_ratio(self) -> float: Value should be greater than 1. """ val = self._get_property("Pulse Compression Ratio") - return val # type: ignore + return val # type: ignore @pulse_compression_ratio.setter - def pulse_compression_ratio(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Compression Ratio={value}"]) + def pulse_compression_ratio(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Compression Ratio={value}"]) @property def fm_chirp_period(self) -> float: @@ -663,14 +607,12 @@ def fm_chirp_period(self) -> float: """ val = self._get_property("FM Chirp Period") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @fm_chirp_period.setter - def fm_chirp_period(self, value : float|str): + def fm_chirp_period(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Chirp Period={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Chirp Period={value}"]) @property def fm_freq_deviation(self) -> float: @@ -681,14 +623,12 @@ def fm_freq_deviation(self) -> float: """ val = self._get_property("FM Freq Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @fm_freq_deviation.setter - def fm_freq_deviation(self, value : float|str): + def fm_freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Freq Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Deviation={value}"]) @property def fm_freq_dev_bandwidth(self) -> float: @@ -700,12 +640,9 @@ def fm_freq_dev_bandwidth(self) -> float: """ val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value : float|str): + def fm_freq_dev_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Freq Dev Bandwidth={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Dev Bandwidth={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py index 41bf933f79d..95b37f9e3ab 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class BandFolder(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -48,4 +51,3 @@ def duplicate(self, new_name: str): def delete(self): """Delete this node""" self._delete() - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py index 133b98c6b8f..f537203eaf7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class BandTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,50 +56,44 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) class TxorRxOption(Enum): - TX = "Tx" # eslint-disable-line no-eval - RX = "Rx" # eslint-disable-line no-eval + TX = "Tx" # eslint-disable-line no-eval + RX = "Rx" # eslint-disable-line no-eval @property def tx_or_rx(self) -> TxorRxOption: """Tx or Rx Specifies whether the trace is a Tx or Rx channel - """ + """ val = self._get_property("Tx or Rx") val = self.TxorRxOption[val.upper()] - return val # type: ignore + return val # type: ignore @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx or Rx={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx or Rx={value.value}"]) @property def channel_frequency(self): """Channel Frequency Select band channel frequency to display - """ + """ val = self._get_property("Channel Frequency") - return val # type: ignore + return val # type: ignore @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: @@ -103,10 +101,10 @@ def transmit_frequency(self) -> float: The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset) - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def visible(self) -> bool: @@ -116,14 +114,12 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -133,53 +129,47 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -189,13 +179,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -205,46 +193,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -254,13 +238,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -270,13 +252,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -286,13 +266,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -303,12 +281,9 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py index 57a80c483d3..6a35e3d4f4e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class CADNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,39 +58,37 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore class ModelTypeOption(Enum): - PLATE = "Plate" # eslint-disable-line no-eval - BOX = "Box" # eslint-disable-line no-eval - DIHEDRAL = "Dihedral" # eslint-disable-line no-eval - TRIHEDRAL = "Trihedral" # eslint-disable-line no-eval - CYLINDER = "Cylinder" # eslint-disable-line no-eval - TAPERED_CYLINDER = "Tapered Cylinder" # eslint-disable-line no-eval - CONE = "Cone" # eslint-disable-line no-eval - SPHERE = "Sphere" # eslint-disable-line no-eval - ELLIPSOID = "Ellipsoid" # eslint-disable-line no-eval - CIRCULAR_PLATE = "Circular Plate" # eslint-disable-line no-eval - PARABOLA = "Parabola" # eslint-disable-line no-eval - PRISM = "Prism" # eslint-disable-line no-eval - TAPERED_PRISM = "Tapered Prism" # eslint-disable-line no-eval - TOPHAT = "Tophat" # eslint-disable-line no-eval + PLATE = "Plate" # eslint-disable-line no-eval + BOX = "Box" # eslint-disable-line no-eval + DIHEDRAL = "Dihedral" # eslint-disable-line no-eval + TRIHEDRAL = "Trihedral" # eslint-disable-line no-eval + CYLINDER = "Cylinder" # eslint-disable-line no-eval + TAPERED_CYLINDER = "Tapered Cylinder" # eslint-disable-line no-eval + CONE = "Cone" # eslint-disable-line no-eval + SPHERE = "Sphere" # eslint-disable-line no-eval + ELLIPSOID = "Ellipsoid" # eslint-disable-line no-eval + CIRCULAR_PLATE = "Circular Plate" # eslint-disable-line no-eval + PARABOLA = "Parabola" # eslint-disable-line no-eval + PRISM = "Prism" # eslint-disable-line no-eval + TAPERED_PRISM = "Tapered Prism" # eslint-disable-line no-eval + TOPHAT = "Tophat" # eslint-disable-line no-eval @property def model_type(self) -> ModelTypeOption: """Model Type Select type of parametric model to create - """ + """ val = self._get_property("Model Type") val = self.ModelTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @model_type.setter def model_type(self, value: ModelTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Model Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Model Type={value.value}"]) @property def length(self) -> float: @@ -97,14 +99,12 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @length.setter - def length(self, value : float|str): + def length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) @property def width(self) -> float: @@ -115,14 +115,12 @@ def width(self) -> float: """ val = self._get_property("Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @width.setter - def width(self, value : float|str): + def width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width={value}"]) @property def height(self) -> float: @@ -133,14 +131,12 @@ def height(self) -> float: """ val = self._get_property("Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @height.setter - def height(self, value : float|str): + def height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height={value}"]) @property def angle(self) -> float: @@ -150,13 +146,11 @@ def angle(self) -> float: Value should be between 0 and 360. """ val = self._get_property("Angle") - return val # type: ignore + return val # type: ignore @angle.setter - def angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Angle={value}"]) + def angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Angle={value}"]) @property def top_side(self) -> float: @@ -167,14 +161,12 @@ def top_side(self) -> float: """ val = self._get_property("Top Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @top_side.setter - def top_side(self, value : float|str): + def top_side(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Top Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Side={value}"]) @property def top_radius(self) -> float: @@ -185,14 +177,12 @@ def top_radius(self) -> float: """ val = self._get_property("Top Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @top_radius.setter - def top_radius(self, value : float|str): + def top_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Top Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Radius={value}"]) @property def side(self) -> float: @@ -203,14 +193,12 @@ def side(self) -> float: """ val = self._get_property("Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @side.setter - def side(self, value : float|str): + def side(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Side={value}"]) @property def radius(self) -> float: @@ -221,14 +209,12 @@ def radius(self) -> float: """ val = self._get_property("Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @radius.setter - def radius(self, value : float|str): + def radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radius={value}"]) @property def base_radius(self) -> float: @@ -239,14 +225,12 @@ def base_radius(self) -> float: """ val = self._get_property("Base Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @base_radius.setter - def base_radius(self, value : float|str): + def base_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Radius={value}"]) @property def center_radius(self) -> float: @@ -257,14 +241,12 @@ def center_radius(self) -> float: """ val = self._get_property("Center Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @center_radius.setter - def center_radius(self, value : float|str): + def center_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Center Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Radius={value}"]) @property def x_axis_ellipsoid_radius(self) -> float: @@ -275,14 +257,12 @@ def x_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("X Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value : float|str): + def x_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Axis Ellipsoid Radius={value}"]) @property def y_axis_ellipsoid_radius(self) -> float: @@ -293,14 +273,12 @@ def y_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Y Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value : float|str): + def y_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Axis Ellipsoid Radius={value}"]) @property def z_axis_ellipsoid_radius(self) -> float: @@ -311,14 +289,12 @@ def z_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Z Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value : float|str): + def z_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Z Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Z Axis Ellipsoid Radius={value}"]) @property def focal_length(self) -> float: @@ -329,31 +305,27 @@ def focal_length(self) -> float: """ val = self._get_property("Focal Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @focal_length.setter - def focal_length(self, value : float|str): + def focal_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Focal Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Focal Length={value}"]) @property def offset(self) -> float: """Offset Offset of parabolic reflector - """ + """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @offset.setter - def offset(self, value : float|str): + def offset(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset={value}"]) @property def x_direction_taper(self) -> float: @@ -364,13 +336,11 @@ def x_direction_taper(self) -> float: Value should be greater than 0. """ val = self._get_property("X Direction Taper") - return val # type: ignore + return val # type: ignore @x_direction_taper.setter - def x_direction_taper(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X Direction Taper={value}"]) + def x_direction_taper(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Direction Taper={value}"]) @property def y_direction_taper(self) -> float: @@ -381,13 +351,11 @@ def y_direction_taper(self) -> float: Value should be greater than 0. """ val = self._get_property("Y Direction Taper") - return val # type: ignore + return val # type: ignore @y_direction_taper.setter - def y_direction_taper(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y Direction Taper={value}"]) + def y_direction_taper(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Direction Taper={value}"]) @property def prism_direction(self): @@ -397,13 +365,11 @@ def prism_direction(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Prism Direction") - return val # type: ignore + return val # type: ignore @prism_direction.setter def prism_direction(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Prism Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Prism Direction={value}"]) @property def closed_top(self) -> bool: @@ -413,14 +379,12 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @closed_top.setter def closed_top(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Closed Top={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Top={value}"]) @property def closed_base(self) -> bool: @@ -430,14 +394,12 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @closed_base.setter def closed_base(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Closed Base={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Base={value}"]) @property def mesh_density(self) -> int: @@ -448,13 +410,11 @@ def mesh_density(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Mesh Density") - return val # type: ignore + return val # type: ignore @mesh_density.setter def mesh_density(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mesh Density={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Density={value}"]) @property def use_symmetric_mesh(self) -> bool: @@ -465,34 +425,30 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Symmetric Mesh={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Symmetric Mesh={value}"]) class MeshOptionOption(Enum): - IMPROVED = "Improved" # eslint-disable-line no-eval - LEGACY = "Legacy" # eslint-disable-line no-eval + IMPROVED = "Improved" # eslint-disable-line no-eval + LEGACY = "Legacy" # eslint-disable-line no-eval @property def mesh_option(self) -> MeshOptionOption: """Mesh Option Select from different meshing options - """ + """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val.upper()] - return val # type: ignore + return val # type: ignore @mesh_option.setter def mesh_option(self, value: MeshOptionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mesh Option={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Option={value.value}"]) @property def coating_index(self) -> int: @@ -502,13 +458,11 @@ def coating_index(self) -> int: Value should be between 0 and 100000. """ val = self._get_property("Coating Index") - return val # type: ignore + return val # type: ignore @coating_index.setter def coating_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Coating Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Coating Index={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -519,14 +473,14 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -536,13 +490,11 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -552,33 +504,29 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] - return val # type: ignore + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -588,13 +536,11 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -604,13 +550,11 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def visible(self) -> bool: @@ -620,36 +564,32 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) class RenderModeOption(Enum): - FLAT_SHADED = "Flat-Shaded" # eslint-disable-line no-eval - WIRE_FRAME = "Wire-Frame" # eslint-disable-line no-eval - HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" # eslint-disable-line no-eval - OUTLINE = "Outline" # eslint-disable-line no-eval + FLAT_SHADED = "Flat-Shaded" # eslint-disable-line no-eval + WIRE_FRAME = "Wire-Frame" # eslint-disable-line no-eval + HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" # eslint-disable-line no-eval + OUTLINE = "Outline" # eslint-disable-line no-eval @property def render_mode(self) -> RenderModeOption: """Render Mode Select drawing style for surfaces - """ + """ val = self._get_property("Render Mode") val = self.RenderModeOption[val.upper()] - return val # type: ignore + return val # type: ignore @render_mode.setter def render_mode(self, value: RenderModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Render Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Render Mode={value.value}"]) @property def show_axes(self) -> bool: @@ -659,14 +599,12 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def min(self): @@ -676,7 +614,7 @@ def min(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Min") - return val # type: ignore + return val # type: ignore @property def max(self): @@ -686,16 +624,16 @@ def max(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Max") - return val # type: ignore + return val # type: ignore @property def number_of_surfaces(self) -> int: """Number of Surfaces Number of surfaces in the model - """ + """ val = self._get_property("Number of Surfaces") - return val # type: ignore + return val # type: ignore @property def color(self): @@ -705,26 +643,21 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index d47ff8adbd4..980157ccf6b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Cable(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -49,13 +53,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,33 +67,29 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - CONSTANT_LOSS = "Constant Loss" # eslint-disable-line no-eval - COAXIAL_CABLE = "Coaxial Cable" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + CONSTANT_LOSS = "Constant Loss" # eslint-disable-line no-eval + COAXIAL_CABLE = "Coaxial Cable" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -99,16 +97,14 @@ def type(self) -> TypeOption: Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def length(self) -> float: @@ -119,14 +115,12 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @length.setter - def length(self, value : float|str): + def length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) @property def loss_per_length(self) -> float: @@ -136,13 +130,11 @@ def loss_per_length(self) -> float: Value should be between 0 and 20. """ val = self._get_property("Loss Per Length") - return val # type: ignore + return val # type: ignore @loss_per_length.setter - def loss_per_length(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Loss Per Length={value}"]) + def loss_per_length(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Loss Per Length={value}"]) @property def measurement_length(self) -> float: @@ -153,14 +145,12 @@ def measurement_length(self) -> float: """ val = self._get_property("Measurement Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @measurement_length.setter - def measurement_length(self, value : float|str): + def measurement_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Length={value}"]) @property def resistive_loss_constant(self) -> float: @@ -170,13 +160,11 @@ def resistive_loss_constant(self) -> float: Value should be between 0 and 2. """ val = self._get_property("Resistive Loss Constant") - return val # type: ignore + return val # type: ignore @resistive_loss_constant.setter - def resistive_loss_constant(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Resistive Loss Constant={value}"]) + def resistive_loss_constant(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resistive Loss Constant={value}"]) @property def dielectric_loss_constant(self) -> float: @@ -186,20 +174,17 @@ def dielectric_loss_constant(self) -> float: Value should be between 0 and 1. """ val = self._get_property("Dielectric Loss Constant") - return val # type: ignore + return val # type: ignore @dielectric_loss_constant.setter - def dielectric_loss_constant(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Dielectric Loss Constant={value}"]) + def dielectric_loss_constant(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Dielectric Loss Constant={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py index 4ad3df5df5b..64dbb73908e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py @@ -1,30 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class CategoriesViewNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False EmitNode.__init__(self, emit_obj, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index ba245c89e7a..38f9add5dd1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Circulator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -49,13 +53,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,32 +67,28 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -98,36 +96,32 @@ def type(self) -> TypeOption: Type of circulator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the circulator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] - return val # type: ignore + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -137,13 +131,11 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -154,14 +146,12 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -171,13 +161,11 @@ def reverse_isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -188,14 +176,12 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -205,13 +191,11 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -222,14 +206,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -240,14 +222,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -258,14 +238,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -276,21 +254,18 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py index 574e56f1ad2..daf325445dc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class CouplingLinkNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,14 +44,12 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def ports(self): @@ -56,13 +57,10 @@ def ports(self): Maps each port in the link to an antenna in the project "A list of values." - """ + """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ports={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py index 03f3e994697..e1e2322da90 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class CouplingTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -48,29 +52,23 @@ def delete(self): @property def transmitter(self) -> EmitNode: - """Transmitter - """ + """Transmitter""" val = self._get_property("Transmitter") - return val # type: ignore + return val # type: ignore @transmitter.setter def transmitter(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Transmitter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Transmitter={value}"]) @property def receiver(self) -> EmitNode: - """Receiver - """ + """Receiver""" val = self._get_property("Receiver") - return val # type: ignore + return val # type: ignore @receiver.setter def receiver(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Receiver={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver={value}"]) @property def data_source(self): @@ -78,15 +76,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,14 +92,12 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -113,53 +107,47 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -169,13 +157,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -185,46 +171,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -234,13 +216,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -250,13 +230,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -266,13 +244,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -283,14 +259,12 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def highlight_regions(self) -> bool: @@ -300,14 +274,12 @@ def highlight_regions(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Highlight Regions") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @highlight_regions.setter def highlight_regions(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Highlight Regions={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highlight Regions={value}"]) @property def show_region_labels(self) -> bool: @@ -317,14 +289,12 @@ def show_region_labels(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Region Labels") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @show_region_labels.setter def show_region_labels(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Region Labels={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Region Labels={value}"]) @property def font(self): @@ -334,13 +304,11 @@ def font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -350,13 +318,11 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -366,13 +332,11 @@ def background_color(self): Color should be in RGBA form: #AARRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -382,14 +346,12 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -399,13 +361,11 @@ def border_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -415,11 +375,8 @@ def border_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py index 9ba17529133..62f1ae12509 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class CouplingsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -30,7 +33,7 @@ def __init__(self, emit_obj, result_id, node_id): def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" - return self._import(file_name,"TouchstoneCoupling") + return self._import(file_name, "TouchstoneCoupling") def add_custom_coupling(self): """Add a new node to define custom coupling between antennas""" @@ -77,13 +80,11 @@ def minimum_allowed_coupling(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Minimum Allowed Coupling") - return val # type: ignore + return val # type: ignore @minimum_allowed_coupling.setter - def minimum_allowed_coupling(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minimum Allowed Coupling={value}"]) + def minimum_allowed_coupling(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Allowed Coupling={value}"]) @property def global_default_coupling(self) -> float: @@ -93,20 +94,17 @@ def global_default_coupling(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Global Default Coupling") - return val # type: ignore + return val # type: ignore @global_default_coupling.setter - def global_default_coupling(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Global Default Coupling={value}"]) + def global_default_coupling(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Global Default Coupling={value}"]) @property def antenna_tags(self) -> str: """Antenna Tags All tags currently used by all antennas in the project - """ + """ val = self._get_property("Antenna Tags") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py index 7e3632d60d0..500ebeead48 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class CustomCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def rename(self, new_name: str): """Rename this node""" @@ -51,11 +54,11 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Value (dB): + "Value (dB): Value should be between -1000 and 0. """ return self._get_table_data() @@ -72,44 +75,38 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -119,14 +116,12 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -136,27 +131,22 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py index 84c1562b1d8..b2f156d5d18 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class EmiPlotMarkerNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,14 +58,12 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def attached(self): @@ -69,33 +71,31 @@ def attached(self): Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False) - """ + """ val = self._get_property("Attached") - return val # type: ignore + return val # type: ignore @attached.setter def attached(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) @property def position_x(self) -> float: """Position X Position of the marker on the X-axis (frequency axis). - """ + """ val = self._get_property("Position X") - return val # type: ignore + return val # type: ignore @property def position_y(self) -> float: """Position Y Position of the marker on the Y-axis (result axis). - """ + """ val = self._get_property("Position Y") - return val # type: ignore + return val # type: ignore @property def floating_label(self) -> bool: @@ -106,14 +106,12 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -124,13 +122,11 @@ def position_from_left(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Position from Left") - return val # type: ignore + return val # type: ignore @position_from_left.setter - def position_from_left(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Left={value}"]) + def position_from_left(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -141,91 +137,83 @@ def position_from_top(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Position from Top") - return val # type: ignore + return val # type: ignore @position_from_top.setter - def position_from_top(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Top={value}"]) + def position_from_top(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) @property def text(self) -> str: """Text Set the text of the label - """ + """ val = self._get_property("Text") - return val # type: ignore + return val # type: ignore @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) class HorizontalPositionOption(Enum): - LEFT = "Left" # eslint-disable-line no-eval - RIGHT = "Right" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + LEFT = "Left" # eslint-disable-line no-eval + RIGHT = "Right" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position Specify horizontal position of the label as compared to the symbol - """ + """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val.upper()] - return val # type: ignore + return val # type: ignore @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Horizontal Position={value.value}"] + ) class VerticalPositionOption(Enum): - TOP = "Top" # eslint-disable-line no-eval - BOTTOM = "Bottom" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + TOP = "Top" # eslint-disable-line no-eval + BOTTOM = "Bottom" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def vertical_position(self) -> VerticalPositionOption: """Vertical Position Specify vertical position of the label as compared to the symbol - """ + """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val.upper()] - return val # type: ignore + return val # type: ignore @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): - LEFT = "Left" # eslint-disable-line no-eval - RIGHT = "Right" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + LEFT = "Left" # eslint-disable-line no-eval + RIGHT = "Right" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def text_alignment(self) -> TextAlignmentOption: """Text Alignment Specify justification applied to multi-line text - """ + """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val.upper()] - return val # type: ignore + return val # type: ignore @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) @property def font(self): @@ -235,13 +223,11 @@ def font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -251,13 +237,11 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -267,13 +251,11 @@ def background_color(self): Color should be in RGBA form: #AARRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -283,14 +265,12 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -300,13 +280,11 @@ def border_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -316,47 +294,43 @@ def border_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval - ARROW = "Arrow" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval + ARROW = "Arrow" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Specify symbol displayed next to the label - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -366,13 +340,11 @@ def arrow_direction(self) -> int: Value should be between -360 and 360. """ val = self._get_property("Arrow Direction") - return val # type: ignore + return val # type: ignore @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -382,13 +354,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -398,13 +368,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -414,13 +382,11 @@ def line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -431,12 +397,9 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py index f3dbf2e0295..915bb97f414 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class EmitSceneNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,36 +42,34 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class GroundPlaneNormalOption(Enum): - X_AXIS = "X Axis" # eslint-disable-line no-eval - Y_AXIS = "Y Axis" # eslint-disable-line no-eval - Z_AXIS = "Z Axis" # eslint-disable-line no-eval + X_AXIS = "X Axis" # eslint-disable-line no-eval + Y_AXIS = "Y Axis" # eslint-disable-line no-eval + Z_AXIS = "Z Axis" # eslint-disable-line no-eval @property def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal Specifies the axis of the normal to the ground plane - """ + """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val.upper()] - return val # type: ignore + return val # type: ignore @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ground Plane Normal={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"] + ) @property def gp_position_along_normal(self) -> float: @@ -75,15 +77,12 @@ def gp_position_along_normal(self) -> float: Offset of ground plane in direction normal to the ground planes orientation - """ + """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @gp_position_along_normal.setter - def gp_position_along_normal(self, value : float|str): + def gp_position_along_normal(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"GP Position Along Normal={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GP Position Along Normal={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py index 026235ad0d5..9898f2ea385 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ErcegCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,44 +58,38 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -101,14 +99,12 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -118,50 +114,44 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class TerrainCategoryOption(Enum): - TYPE_A = "Type A" # eslint-disable-line no-eval - TYPE_B = "Type B" # eslint-disable-line no-eval - TYPE_C = "Type C" # eslint-disable-line no-eval + TYPE_A = "Type A" # eslint-disable-line no-eval + TYPE_B = "Type B" # eslint-disable-line no-eval + TYPE_C = "Type C" # eslint-disable-line no-eval @property def terrain_category(self) -> TerrainCategoryOption: """Terrain Category Specify the terrain category type for the Erceg model - """ + """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val.upper()] - return val # type: ignore + return val # type: ignore @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Terrain Category={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Terrain Category={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -172,13 +162,11 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -189,13 +177,11 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -206,35 +192,31 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -245,13 +227,11 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -261,13 +241,11 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -277,14 +255,12 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -295,13 +271,11 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -311,13 +285,11 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -328,13 +300,11 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -345,14 +315,14 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -362,13 +332,11 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -378,13 +346,11 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -394,11 +360,10 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index 78ed457688b..a3a41425907 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Filter(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -49,13 +53,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,37 +67,33 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - LOW_PASS = "Low Pass" # eslint-disable-line no-eval - HIGH_PASS = "High Pass" # eslint-disable-line no-eval - BAND_PASS = "Band Pass" # eslint-disable-line no-eval - BAND_STOP = "Band Stop" # eslint-disable-line no-eval - TUNABLE_BANDPASS = "Tunable Bandpass" # eslint-disable-line no-eval - TUNABLE_BANDSTOP = "Tunable Bandstop" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + LOW_PASS = "Low Pass" # eslint-disable-line no-eval + HIGH_PASS = "High Pass" # eslint-disable-line no-eval + BAND_PASS = "Band Pass" # eslint-disable-line no-eval + BAND_STOP = "Band Stop" # eslint-disable-line no-eval + TUNABLE_BANDPASS = "Tunable Bandpass" # eslint-disable-line no-eval + TUNABLE_BANDSTOP = "Tunable Bandstop" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -103,16 +101,14 @@ def type(self) -> TypeOption: Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def insertion_loss(self) -> float: @@ -122,13 +118,11 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -138,13 +132,11 @@ def stop_band_attenuation(self) -> float: Value should be less than 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @stop_band_attenuation.setter - def stop_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -155,14 +147,12 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_pass_band.setter - def max_pass_band(self, value : float|str): + def max_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -173,14 +163,12 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_stop_band.setter - def min_stop_band(self, value : float|str): + def min_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -191,14 +179,12 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_stop_band.setter - def max_stop_band(self, value : float|str): + def max_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -209,14 +195,12 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_pass_band.setter - def min_pass_band(self, value : float|str): + def min_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -227,14 +211,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -245,14 +227,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -263,14 +243,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -281,122 +259,108 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff Lower cutoff frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff_.setter - def lower_cutoff_(self, value : float|str): + def lower_cutoff_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff ={value}"]) @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band Lower stop band frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band_.setter - def lower_stop_band_(self, value : float|str): + def lower_stop_band_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band ={value}"]) @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band Higher stop band frequency Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band_.setter - def higher_stop_band_(self, value : float|str): + def higher_stop_band_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band ={value}"]) @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff Higher cutoff frequency Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff_.setter - def higher_cutoff_(self, value : float|str): + def higher_cutoff_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff ={value}"]) @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency Lowest tuned frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lowest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lowest_tuned_frequency_.setter - def lowest_tuned_frequency_(self, value : float|str): + def lowest_tuned_frequency_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lowest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lowest Tuned Frequency ={value}"]) @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency Highest tuned frequency Value should be between 1 and 1e+11. """ val = self._get_property("Highest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @highest_tuned_frequency_.setter - def highest_tuned_frequency_(self, value : float|str): + def highest_tuned_frequency_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Highest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highest Tuned Frequency ={value}"]) @property def percent_bandwidth(self) -> float: @@ -406,13 +370,11 @@ def percent_bandwidth(self) -> float: Value should be between 0.001 and 100. """ val = self._get_property("Percent Bandwidth") - return val # type: ignore + return val # type: ignore @percent_bandwidth.setter - def percent_bandwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Percent Bandwidth={value}"]) + def percent_bandwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percent Bandwidth={value}"]) @property def shape_factor(self) -> float: @@ -422,20 +384,17 @@ def shape_factor(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @shape_factor.setter - def shape_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Shape Factor={value}"]) + def shape_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py index 77d0e243b1b..614ab9e365c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class FiveGChannelModel(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,44 +58,38 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -101,14 +99,12 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -118,50 +114,44 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): - URBAN_MICROCELL = "Urban Microcell" # eslint-disable-line no-eval - URBAN_MACROCELL = "Urban Macrocell" # eslint-disable-line no-eval - RURAL_MACROCELL = "Rural Macrocell" # eslint-disable-line no-eval + URBAN_MICROCELL = "Urban Microcell" # eslint-disable-line no-eval + URBAN_MACROCELL = "Urban Macrocell" # eslint-disable-line no-eval + RURAL_MACROCELL = "Rural Macrocell" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment for the 5G channel model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def los(self) -> bool: @@ -171,14 +161,12 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @los.setter def los(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"LOS={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"LOS={value}"]) @property def include_bpl(self) -> bool: @@ -188,34 +176,30 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @include_bpl.setter def include_bpl(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include BPL={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include BPL={value}"]) class NYUBPLModelOption(Enum): - LOW_LOSS_MODEL = "Low-loss model" # eslint-disable-line no-eval - HIGH_LOSS_MODEL = "High-loss model" # eslint-disable-line no-eval + LOW_LOSS_MODEL = "Low-loss model" # eslint-disable-line no-eval + HIGH_LOSS_MODEL = "High-loss model" # eslint-disable-line no-eval @property def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model Specify the NYU Building Penetration Loss model - """ + """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val.upper()] - return val # type: ignore + return val # type: ignore @nyu_bpl_model.setter def nyu_bpl_model(self, value: NYUBPLModelOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NYU BPL Model={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NYU BPL Model={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -226,13 +210,11 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -243,13 +225,11 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -260,35 +240,31 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -299,13 +275,11 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -315,13 +289,11 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -331,14 +303,12 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -349,13 +319,11 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -365,13 +333,11 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -382,13 +348,11 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -399,14 +363,14 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -416,13 +380,11 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -432,13 +394,11 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -448,11 +408,10 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py index 423417c6db1..90b5753f8ae 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class HataCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,44 +58,38 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -101,14 +99,12 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -118,51 +114,45 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): - LARGE_CITY = "Large City" # eslint-disable-line no-eval - SMALLMEDIUM_CITY = "Small/Medium City" # eslint-disable-line no-eval - SUBURBAN = "Suburban" # eslint-disable-line no-eval - RURAL = "Rural" # eslint-disable-line no-eval + LARGE_CITY = "Large City" # eslint-disable-line no-eval + SMALLMEDIUM_CITY = "Small/Medium City" # eslint-disable-line no-eval + SUBURBAN = "Suburban" # eslint-disable-line no-eval + RURAL = "Rural" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Hata model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -173,13 +163,11 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -190,13 +178,11 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -207,35 +193,31 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -246,13 +228,11 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -262,13 +242,11 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -278,14 +256,12 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -296,13 +272,11 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -312,13 +286,11 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -329,13 +301,11 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -346,14 +316,14 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -363,13 +333,11 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -379,13 +347,11 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -395,11 +361,10 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py index a16c31a0414..73543bfb007 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class IndoorPropagationCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -48,13 +52,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Power Loss Coefficient: + "Power Loss Coefficient: Value should be between 0 and 100. - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): Value should be between 0 and 1000. """ return self._get_table_data() @@ -71,44 +75,38 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -118,14 +116,12 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -135,52 +131,46 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class BuildingTypeOption(Enum): - RESIDENTIAL_APARTMENT = "Residential Apartment" # eslint-disable-line no-eval - RESIDENTIAL_HOUSE = "Residential House" # eslint-disable-line no-eval - OFFICE_BUILDING = "Office Building" # eslint-disable-line no-eval - COMMERCIAL_BUILDING = "Commercial Building" # eslint-disable-line no-eval - CUSTOM_BUILDING = "Custom Building" # eslint-disable-line no-eval + RESIDENTIAL_APARTMENT = "Residential Apartment" # eslint-disable-line no-eval + RESIDENTIAL_HOUSE = "Residential House" # eslint-disable-line no-eval + OFFICE_BUILDING = "Office Building" # eslint-disable-line no-eval + COMMERCIAL_BUILDING = "Commercial Building" # eslint-disable-line no-eval + CUSTOM_BUILDING = "Custom Building" # eslint-disable-line no-eval @property def building_type(self) -> BuildingTypeOption: """Building Type Specify the building type for the Indoor Propagation model - """ + """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @building_type.setter def building_type(self, value: BuildingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Building Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Building Type={value.value}"]) @property def number_of_floors(self) -> int: @@ -190,13 +180,11 @@ def number_of_floors(self) -> int: Value should be between 1 and 3. """ val = self._get_property("Number of Floors") - return val # type: ignore + return val # type: ignore @number_of_floors.setter def number_of_floors(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Floors={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Floors={value}"]) @property def custom_fading_margin(self) -> float: @@ -207,13 +195,11 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -224,13 +210,11 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -241,35 +225,31 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -280,13 +260,11 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -296,13 +274,11 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -312,14 +288,12 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -330,13 +304,11 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -346,13 +318,11 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -363,13 +333,11 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -380,14 +348,14 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -397,13 +365,11 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -413,13 +379,11 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -429,11 +393,10 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index c87fc95b8cf..c1db4e01460 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Isolator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -49,13 +53,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,32 +67,28 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -98,36 +96,32 @@ def type(self) -> TypeOption: Type of isolator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the isolator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] - return val # type: ignore + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -137,13 +131,11 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -154,14 +146,12 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -171,13 +161,11 @@ def reverse_isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -188,14 +176,12 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -205,13 +191,11 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -222,14 +206,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -240,14 +222,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -258,14 +238,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -276,21 +254,18 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py index 7305026079c..83867d33be1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class LogDistanceCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,44 +58,38 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -101,14 +99,12 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -118,54 +114,48 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): - FREE_SPACE = "Free Space" # eslint-disable-line no-eval - URBAN = "Urban" # eslint-disable-line no-eval - SHADOWED_URBAN = "Shadowed Urban" # eslint-disable-line no-eval - BUILDING_LINE_OF_SIGHT = "Building Line of Sight" # eslint-disable-line no-eval - BUILDING_OBSTRUCTED = "Building Obstructed" # eslint-disable-line no-eval - FACTORY_OBSTRUCTED = "Factory Obstructed" # eslint-disable-line no-eval - CUSTOM = "Custom" # eslint-disable-line no-eval + FREE_SPACE = "Free Space" # eslint-disable-line no-eval + URBAN = "Urban" # eslint-disable-line no-eval + SHADOWED_URBAN = "Shadowed Urban" # eslint-disable-line no-eval + BUILDING_LINE_OF_SIGHT = "Building Line of Sight" # eslint-disable-line no-eval + BUILDING_OBSTRUCTED = "Building Obstructed" # eslint-disable-line no-eval + FACTORY_OBSTRUCTED = "Factory Obstructed" # eslint-disable-line no-eval + CUSTOM = "Custom" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Log Distance model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def path_loss_exponent(self) -> float: @@ -175,13 +165,11 @@ def path_loss_exponent(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Path Loss Exponent") - return val # type: ignore + return val # type: ignore @path_loss_exponent.setter - def path_loss_exponent(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Path Loss Exponent={value}"]) + def path_loss_exponent(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Exponent={value}"]) @property def custom_fading_margin(self) -> float: @@ -192,13 +180,11 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -209,13 +195,11 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -226,35 +210,31 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -265,13 +245,11 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -281,13 +259,11 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -297,14 +273,12 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -315,13 +289,11 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -331,13 +303,11 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -348,13 +318,11 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -365,14 +333,14 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -382,13 +350,11 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -398,13 +364,11 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -414,11 +378,10 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py index 9c98a84bd0f..3c1201a5b39 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class MPlexBandTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -47,21 +51,18 @@ def delete(self): self._delete() class PowerDirectionOption(Enum): - INTO_COMMON_PORTOUT_OF_COMMON_PORT = "Into Common Port|Out of Common Port" # eslint-disable-line no-eval + INTO_COMMON_PORTOUT_OF_COMMON_PORT = "Into Common Port|Out of Common Port" # eslint-disable-line no-eval @property def power_direction(self) -> PowerDirectionOption: - """Power Direction - """ + """Power Direction""" val = self._get_property("Power Direction") val = self.PowerDirectionOption[val.upper()] - return val # type: ignore + return val # type: ignore @power_direction.setter def power_direction(self, value: PowerDirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Power Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Power Direction={value.value}"]) @property def data_source(self): @@ -69,15 +70,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -87,14 +86,12 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -104,53 +101,47 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -160,13 +151,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -176,46 +165,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -225,13 +210,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -241,13 +224,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -257,13 +238,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -274,12 +253,9 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index 0090252203e..f0c7300a47d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Multiplexer(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,13 +57,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -69,32 +71,28 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): - BY_PASS_BAND = "By Pass Band" # eslint-disable-line no-eval - BY_FILE = "By File" # eslint-disable-line no-eval + BY_PASS_BAND = "By Pass Band" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -103,36 +101,32 @@ def type(self) -> TypeOption: simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the multiplexer. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] - return val # type: ignore + return val # type: ignore @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def flip_ports_vertically(self) -> bool: @@ -142,14 +136,12 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Flip Ports Vertically={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flip Ports Vertically={value}"]) @property def ports(self): @@ -157,22 +149,19 @@ def ports(self): Assigns the child port nodes to the multiplexers ports "A list of values." - """ + """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py index 1cfdec19589..fc2ce93e192 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class MultiplexerBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -47,10 +51,10 @@ def delete(self): self._delete() class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - LOW_PASS = "Low Pass" # eslint-disable-line no-eval - HIGH_PASS = "High Pass" # eslint-disable-line no-eval - BAND_PASS = "Band Pass" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + LOW_PASS = "Low Pass" # eslint-disable-line no-eval + HIGH_PASS = "High Pass" # eslint-disable-line no-eval + BAND_PASS = "Band Pass" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -59,16 +63,14 @@ def type(self) -> TypeOption: file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def filename(self) -> str: @@ -78,13 +80,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def insertion_loss(self) -> float: @@ -94,13 +94,11 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -110,13 +108,11 @@ def stop_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @stop_band_attenuation.setter - def stop_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -127,14 +123,12 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_pass_band.setter - def max_pass_band(self, value : float|str): + def max_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -145,14 +139,12 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_stop_band.setter - def min_stop_band(self, value : float|str): + def min_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -163,14 +155,12 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_stop_band.setter - def max_stop_band(self, value : float|str): + def max_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -181,14 +171,12 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @min_pass_band.setter - def min_pass_band(self, value : float|str): + def min_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -199,14 +187,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -217,14 +203,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -235,14 +219,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -253,21 +235,18 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py index 43f98bc7377..c2d367d4901 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class OutboardTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -70,13 +72,11 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -84,15 +84,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -102,14 +100,12 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -119,53 +115,47 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -175,13 +165,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -191,46 +179,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -240,13 +224,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -256,13 +238,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -272,13 +252,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -289,12 +267,9 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py index 202761b6c07..c7dc31965bf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ParametricCouplingTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -48,29 +52,23 @@ def delete(self): @property def antenna_a(self) -> EmitNode: - """Antenna A - """ + """Antenna A""" val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: - """Antenna B - """ + """Antenna B""" val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def data_source(self): @@ -78,15 +76,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,14 +92,12 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -113,53 +107,47 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -169,13 +157,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -185,46 +171,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -234,13 +216,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -250,13 +230,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -266,13 +244,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -283,12 +259,9 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py index 09370d36dff..bba2ac7ad3c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PlotMarkerNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,14 +58,12 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def attached(self) -> bool: @@ -72,44 +74,38 @@ def attached(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Attached") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @attached.setter def attached(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) @property def position_x(self) -> float: """Position X Position of the marker on the X-axis (frequency axis). - """ + """ val = self._get_property("Position X") - return val # type: ignore + return val # type: ignore @position_x.setter - def position_x(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position X={value}"]) + def position_x(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position X={value}"]) @property def position_y(self) -> float: """Position Y Position of the marker on the Y-axis (result axis). - """ + """ val = self._get_property("Position Y") - return val # type: ignore + return val # type: ignore @position_y.setter - def position_y(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position Y={value}"]) + def position_y(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Y={value}"]) @property def floating_label(self) -> bool: @@ -120,14 +116,12 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -138,13 +132,11 @@ def position_from_left(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Position from Left") - return val # type: ignore + return val # type: ignore @position_from_left.setter - def position_from_left(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Left={value}"]) + def position_from_left(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -155,91 +147,83 @@ def position_from_top(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Position from Top") - return val # type: ignore + return val # type: ignore @position_from_top.setter - def position_from_top(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Top={value}"]) + def position_from_top(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) @property def text(self) -> str: """Text Set the text of the label - """ + """ val = self._get_property("Text") - return val # type: ignore + return val # type: ignore @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) class HorizontalPositionOption(Enum): - LEFT = "Left" # eslint-disable-line no-eval - RIGHT = "Right" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + LEFT = "Left" # eslint-disable-line no-eval + RIGHT = "Right" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position Specify horizontal position of the label as compared to the symbol - """ + """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val.upper()] - return val # type: ignore + return val # type: ignore @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Horizontal Position={value.value}"] + ) class VerticalPositionOption(Enum): - TOP = "Top" # eslint-disable-line no-eval - BOTTOM = "Bottom" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + TOP = "Top" # eslint-disable-line no-eval + BOTTOM = "Bottom" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def vertical_position(self) -> VerticalPositionOption: """Vertical Position Specify vertical position of the label as compared to the symbol - """ + """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val.upper()] - return val # type: ignore + return val # type: ignore @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): - LEFT = "Left" # eslint-disable-line no-eval - RIGHT = "Right" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + LEFT = "Left" # eslint-disable-line no-eval + RIGHT = "Right" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def text_alignment(self) -> TextAlignmentOption: """Text Alignment Specify justification applied to multi-line text - """ + """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val.upper()] - return val # type: ignore + return val # type: ignore @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) @property def font(self): @@ -249,13 +233,11 @@ def font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Font") - return val # type: ignore + return val # type: ignore @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -265,13 +247,11 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -281,13 +261,11 @@ def background_color(self): Color should be in RGBA form: #AARRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -297,14 +275,12 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -314,13 +290,11 @@ def border_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Border Width") - return val # type: ignore + return val # type: ignore @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -330,47 +304,43 @@ def border_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Border Color") - return val # type: ignore + return val # type: ignore @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval - ARROW = "Arrow" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval + ARROW = "Arrow" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Specify symbol displayed next to the label - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -380,13 +350,11 @@ def arrow_direction(self) -> int: Value should be between -360 and 360. """ val = self._get_property("Arrow Direction") - return val # type: ignore + return val # type: ignore @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -396,13 +364,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -412,13 +378,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -428,13 +392,11 @@ def line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -445,12 +407,9 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py index 24a94c0e748..37e0057c87c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PlotNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,15 +58,13 @@ def title(self) -> str: """Title Enter title at the top of the plot, room will be made for it - """ + """ val = self._get_property("Title") - return val # type: ignore + return val # type: ignore @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) @property def title_font(self): @@ -72,13 +74,11 @@ def title_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Title Font") - return val # type: ignore + return val # type: ignore @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -88,14 +88,12 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) @property def legend_font(self): @@ -105,13 +103,11 @@ def legend_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Legend Font") - return val # type: ignore + return val # type: ignore @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) @property def display_cad_overlay(self) -> bool: @@ -121,14 +117,12 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -138,28 +132,24 @@ def opacity(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Opacity") - return val # type: ignore + return val # type: ignore @opacity.setter - def opacity(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Opacity={value}"]) + def opacity(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset Adjust vertical position of CAD model overlay - """ + """ val = self._get_property("Vertical Offset") - return val # type: ignore + return val # type: ignore @vertical_offset.setter - def vertical_offset(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Offset={value}"]) + def vertical_offset(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -170,13 +160,11 @@ def range_axis_rotation(self) -> float: Value should be between -180 and 180. """ val = self._get_property("Range Axis Rotation") - return val # type: ignore + return val # type: ignore @range_axis_rotation.setter - def range_axis_rotation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -186,74 +174,64 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min Set lower extent of horizontal axis - """ + """ val = self._get_property("X-axis Min") - return val # type: ignore + return val # type: ignore @x_axis_min.setter - def x_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Min={value}"]) + def x_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max Set upper extent of horizontal axis - """ + """ val = self._get_property("X-axis Max") - return val # type: ignore + return val # type: ignore @x_axis_max.setter - def x_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Max={value}"]) + def x_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min Set lower extent of vertical axis - """ + """ val = self._get_property("Y-axis Min") - return val # type: ignore + return val # type: ignore @y_axis_min.setter - def y_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Min={value}"]) + def y_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max Set upper extent of vertical axis - """ + """ val = self._get_property("Y-axis Max") - return val # type: ignore + return val # type: ignore @y_axis_max.setter - def y_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Max={value}"]) + def y_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -264,13 +242,11 @@ def y_axis_range(self) -> float: Value should be greater than 0. """ val = self._get_property("Y-axis Range") - return val # type: ignore + return val # type: ignore @y_axis_range.setter - def y_axis_range(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Range={value}"]) + def y_axis_range(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -280,13 +256,11 @@ def max_major_ticks_x(self) -> int: Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks X") - return val # type: ignore + return val # type: ignore @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -297,13 +271,11 @@ def max_minor_ticks_x(self) -> int: Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks X") - return val # type: ignore + return val # type: ignore @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -313,13 +285,11 @@ def max_major_ticks_y(self) -> int: Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks Y") - return val # type: ignore + return val # type: ignore @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -330,13 +300,11 @@ def max_minor_ticks_y(self) -> int: Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks Y") - return val # type: ignore + return val # type: ignore @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -346,13 +314,11 @@ def axis_label_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Label Font") - return val # type: ignore + return val # type: ignore @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -362,37 +328,35 @@ def axis_tick_label_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Tick Label Font") - return val # type: ignore + return val # type: ignore @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style Select line style of major-tick grid lines - """ + """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val.upper()] - return val # type: ignore + return val # type: ignore @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] + ) @property def major_grid_color(self): @@ -402,37 +366,35 @@ def major_grid_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Major Grid Color") - return val # type: ignore + return val # type: ignore @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style Select line style of minor-tick grid lines - """ + """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val.upper()] - return val # type: ignore + return val # type: ignore @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] + ) @property def minor_grid_color(self): @@ -442,13 +404,11 @@ def minor_grid_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Minor Grid Color") - return val # type: ignore + return val # type: ignore @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -458,35 +418,33 @@ def background_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): - HERTZ = "hertz" # eslint-disable-line no-eval - KILOHERTZ = "kilohertz" # eslint-disable-line no-eval - MEGAHERTZ = "megahertz" # eslint-disable-line no-eval - GIGAHERTZ = "gigahertz" # eslint-disable-line no-eval + HERTZ = "hertz" # eslint-disable-line no-eval + KILOHERTZ = "kilohertz" # eslint-disable-line no-eval + MEGAHERTZ = "megahertz" # eslint-disable-line no-eval + GIGAHERTZ = "gigahertz" # eslint-disable-line no-eval @property def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit Units to use for plotting broadband power densities - """ + """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val.upper()] - return val # type: ignore + return val # type: ignore @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power for Plots Unit={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] + ) @property def bb_power_bandwidth(self) -> float: @@ -497,14 +455,12 @@ def bb_power_bandwidth(self) -> float: """ val = self._get_property("BB Power Bandwidth") val = self._convert_from_internal_units(float(val), "") - return val # type: ignore + return val # type: ignore @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value : float|str): + def bb_power_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -514,12 +470,9 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Log Scale={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py index fea2e341630..d10ce238ab1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PowerDivider(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -49,13 +53,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,33 +67,29 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - P3_DB = "P3 dB" # eslint-disable-line no-eval - RESISTIVE = "Resistive" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + P3_DB = "P3 dB" # eslint-disable-line no-eval + RESISTIVE = "Resistive" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -99,36 +97,32 @@ def type(self) -> TypeOption: Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class OrientationOption(Enum): - DIVIDER = "Divider" # eslint-disable-line no-eval - COMBINER = "Combiner" # eslint-disable-line no-eval + DIVIDER = "Divider" # eslint-disable-line no-eval + COMBINER = "Combiner" # eslint-disable-line no-eval @property def orientation(self) -> OrientationOption: """Orientation Defines the orientation of the Power Divider. - """ + """ val = self._get_property("Orientation") val = self.OrientationOption[val.upper()] - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value: OrientationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value.value}"]) @property def insertion_loss_above_ideal(self) -> float: @@ -139,13 +133,13 @@ def insertion_loss_above_ideal(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss Above Ideal") - return val # type: ignore + return val # type: ignore @insertion_loss_above_ideal.setter - def insertion_loss_above_ideal(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss Above Ideal={value}"]) + def insertion_loss_above_ideal(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Insertion Loss Above Ideal={value}"] + ) @property def finite_isolation(self) -> bool: @@ -156,14 +150,12 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -173,13 +165,11 @@ def isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @isolation.setter - def isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Isolation={value}"]) + def isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -190,14 +180,12 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -207,13 +195,11 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -224,14 +210,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -242,14 +226,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -260,14 +242,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -278,21 +258,18 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py index 9ec3b443bc6..4cf653efb6c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PowerTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -47,24 +51,22 @@ def delete(self): self._delete() class DirectionOption(Enum): - AWAY_FROM_TX = "Away From Tx" # eslint-disable-line no-eval - TOWARD_TX = "Toward Tx" # eslint-disable-line no-eval + AWAY_FROM_TX = "Away From Tx" # eslint-disable-line no-eval + TOWARD_TX = "Toward Tx" # eslint-disable-line no-eval @property def direction(self) -> DirectionOption: """Direction Direction of power flow (towards or away from the transmitter) to plot - """ + """ val = self._get_property("Direction") val = self.DirectionOption[val.upper()] - return val # type: ignore + return val # type: ignore @direction.setter def direction(self, value: DirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Direction={value.value}"]) @property def data_source(self): @@ -72,15 +74,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -90,14 +90,12 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -107,53 +105,47 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -163,13 +155,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -179,46 +169,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -228,13 +214,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -244,13 +228,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -260,13 +242,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -277,12 +257,9 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py index 445e59e2645..784517d5880 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ProfileTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,15 +56,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -70,14 +72,12 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -87,53 +87,47 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -143,13 +137,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -159,46 +151,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -208,13 +196,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -224,13 +210,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -240,13 +224,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -257,12 +239,9 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py index 65f573d23eb..75232c240c8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class PropagationLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,44 +58,38 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -101,14 +99,12 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -118,29 +114,25 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def custom_fading_margin(self) -> float: @@ -151,13 +143,11 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -168,13 +158,11 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -185,35 +173,31 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -224,13 +208,11 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -240,13 +222,11 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -256,14 +236,12 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -274,13 +252,11 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -290,13 +266,11 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -307,13 +281,11 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -324,14 +296,14 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -341,13 +313,11 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -357,13 +327,11 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -373,11 +341,10 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py index 60ab1e1ac44..fb695e72234 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class RadioNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -51,11 +54,11 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Name: - "Type: - """ + "Name: + "Type: + """ return self._get_table_data() @table_data.setter @@ -67,13 +70,10 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py index 93068b7061a..dff9ea14eb7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyAmplifier(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,30 +51,30 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class AmplifierTypeOption(Enum): - TRANSMIT_AMPLIFIER = "Transmit Amplifier" # eslint-disable-line no-eval - RECEIVE_AMPLIFIER = "Receive Amplifier" # eslint-disable-line no-eval + TRANSMIT_AMPLIFIER = "Transmit Amplifier" # eslint-disable-line no-eval + RECEIVE_AMPLIFIER = "Receive Amplifier" # eslint-disable-line no-eval @property def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type Configures the amplifier as a Tx or Rx amplifier - """ + """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def gain(self) -> float: @@ -80,7 +84,7 @@ def gain(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Gain") - return val # type: ignore + return val # type: ignore @property def center_frequency(self) -> float: @@ -91,7 +95,7 @@ def center_frequency(self) -> float: """ val = self._get_property("Center Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def bandwidth(self) -> float: @@ -102,7 +106,7 @@ def bandwidth(self) -> float: """ val = self._get_property("Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: @@ -112,7 +116,7 @@ def noise_figure(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def saturation_level(self) -> float: @@ -123,7 +127,7 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input(self) -> float: @@ -134,7 +138,7 @@ def p1_db_point_ref_input(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -145,7 +149,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def shape_factor(self) -> float: @@ -155,7 +159,7 @@ def shape_factor(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -165,7 +169,7 @@ def reverse_isolation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -175,5 +179,4 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py index 4c230aacf54..57b360316ba 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyAntennaNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -39,9 +43,9 @@ def tags(self) -> str: """Tags Space delimited list of tags for coupling selections - """ + """ val = self._get_property("Tags") - return val # type: ignore + return val # type: ignore @property def show_relative_coordinates(self) -> bool: @@ -52,8 +56,8 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def position(self): @@ -63,7 +67,7 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): @@ -73,21 +77,21 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def orientation(self): @@ -97,7 +101,7 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): @@ -107,7 +111,7 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def position_defined(self) -> bool: @@ -117,8 +121,8 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def antenna_temperature(self) -> float: @@ -128,16 +132,16 @@ def antenna_temperature(self) -> float: Value should be between 0 and 100000. """ val = self._get_property("Antenna Temperature") - return val # type: ignore + return val # type: ignore @property def type(self): """Type Defines the type of antenna - """ + """ val = self._get_property("Type") - return val # type: ignore + return val # type: ignore @property def antenna_file(self) -> str: @@ -145,7 +149,7 @@ def antenna_file(self) -> str: Value should be a full file path. """ val = self._get_property("Antenna File") - return val # type: ignore + return val # type: ignore @property def project_name(self) -> str: @@ -155,7 +159,7 @@ def project_name(self) -> str: Value should be a full file path. """ val = self._get_property("Project Name") - return val # type: ignore + return val # type: ignore @property def peak_gain(self) -> float: @@ -165,22 +169,22 @@ def peak_gain(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Peak Gain") - return val # type: ignore + return val # type: ignore class BoresightOption(Enum): - XAXIS = "+X Axis" # eslint-disable-line no-eval - YAXIS = "+Y Axis" # eslint-disable-line no-eval - ZAXIS = "+Z Axis" # eslint-disable-line no-eval + XAXIS = "+X Axis" # eslint-disable-line no-eval + YAXIS = "+Y Axis" # eslint-disable-line no-eval + ZAXIS = "+Z Axis" # eslint-disable-line no-eval @property def boresight(self) -> BoresightOption: """Boresight Select peak beam direction in local coordinates - """ + """ val = self._get_property("Boresight") val = self.BoresightOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def vertical_beamwidth(self) -> float: @@ -190,7 +194,7 @@ def vertical_beamwidth(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("Vertical Beamwidth") - return val # type: ignore + return val # type: ignore @property def horizontal_beamwidth(self) -> float: @@ -200,7 +204,7 @@ def horizontal_beamwidth(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("Horizontal Beamwidth") - return val # type: ignore + return val # type: ignore @property def extra_sidelobe(self) -> bool: @@ -210,8 +214,8 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def first_sidelobe_level(self) -> float: @@ -222,7 +226,7 @@ def first_sidelobe_level(self) -> float: Value should be between 0 and 200. """ val = self._get_property("First Sidelobe Level") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_vert_bw(self) -> float: @@ -232,7 +236,7 @@ def first_sidelobe_vert_bw(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Vert. BW") - return val # type: ignore + return val # type: ignore @property def first_sidelobe_hor_bw(self) -> float: @@ -242,7 +246,7 @@ def first_sidelobe_hor_bw(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Hor. BW") - return val # type: ignore + return val # type: ignore @property def outerbacklobe_level(self) -> float: @@ -252,7 +256,7 @@ def outerbacklobe_level(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Outer/Backlobe Level") - return val # type: ignore + return val # type: ignore @property def resonant_frequency(self) -> float: @@ -264,7 +268,7 @@ def resonant_frequency(self) -> float: """ val = self._get_property("Resonant Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def slot_length(self) -> float: @@ -275,7 +279,7 @@ def slot_length(self) -> float: """ val = self._get_property("Slot Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def mouth_width(self) -> float: @@ -286,7 +290,7 @@ def mouth_width(self) -> float: """ val = self._get_property("Mouth Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def mouth_height(self) -> float: @@ -297,7 +301,7 @@ def mouth_height(self) -> float: """ val = self._get_property("Mouth Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_width(self) -> float: @@ -309,7 +313,7 @@ def waveguide_width(self) -> float: """ val = self._get_property("Waveguide Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def width_flare_half_angle(self) -> float: @@ -320,7 +324,7 @@ def width_flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Width Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def height_flare_half_angle(self) -> float: @@ -331,7 +335,7 @@ def height_flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Height Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def mouth_diameter(self) -> float: @@ -342,7 +346,7 @@ def mouth_diameter(self) -> float: """ val = self._get_property("Mouth Diameter") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def flare_half_angle(self) -> float: @@ -353,7 +357,7 @@ def flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Flare Half-angle") - return val # type: ignore + return val # type: ignore @property def vswr(self) -> float: @@ -364,51 +368,51 @@ def vswr(self) -> float: Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore class AntennaPolarizationOption(Enum): - VERTICAL = "Vertical" # eslint-disable-line no-eval - HORIZONTAL = "Horizontal" # eslint-disable-line no-eval - RHCP = "RHCP" # eslint-disable-line no-eval - LHCP = "LHCP" # eslint-disable-line no-eval + VERTICAL = "Vertical" # eslint-disable-line no-eval + HORIZONTAL = "Horizontal" # eslint-disable-line no-eval + RHCP = "RHCP" # eslint-disable-line no-eval + LHCP = "LHCP" # eslint-disable-line no-eval @property def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val.upper()] - return val # type: ignore + return val # type: ignore class CrossDipoleModeOption(Enum): - FREESTANDING = "Freestanding" # eslint-disable-line no-eval - OVER_GROUND_PLANE = "Over Ground Plane" # eslint-disable-line no-eval + FREESTANDING = "Freestanding" # eslint-disable-line no-eval + OVER_GROUND_PLANE = "Over Ground Plane" # eslint-disable-line no-eval @property def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode Choose the Cross Dipole type - """ + """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val.upper()] - return val # type: ignore + return val # type: ignore class CrossDipolePolarizationOption(Enum): - RHCP = "RHCP" # eslint-disable-line no-eval - LHCP = "LHCP" # eslint-disable-line no-eval + RHCP = "RHCP" # eslint-disable-line no-eval + LHCP = "LHCP" # eslint-disable-line no-eval @property def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def override_height(self) -> bool: @@ -419,8 +423,8 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def offset_height(self) -> float: @@ -431,7 +435,7 @@ def offset_height(self) -> float: """ val = self._get_property("Offset Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def auto_height_offset(self) -> bool: @@ -442,8 +446,8 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def conform__adjust_antenna(self) -> bool: @@ -453,8 +457,8 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def element_offset(self): @@ -464,37 +468,37 @@ def element_offset(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Element Offset") - return val # type: ignore + return val # type: ignore class ConformtoPlatformOption(Enum): - NONE = "None" # eslint-disable-line no-eval - ALONG_NORMAL = "Along Normal" # eslint-disable-line no-eval - PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + ALONG_NORMAL = "Along Normal" # eslint-disable-line no-eval + PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" # eslint-disable-line no-eval @property def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform Select method of automated conforming applied after Element Offset - """ + """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val.upper()] - return val # type: ignore + return val # type: ignore class ReferencePlaneOption(Enum): - XY_PLANE = "XY Plane" # eslint-disable-line no-eval - YZ_PLANE = "YZ Plane" # eslint-disable-line no-eval - ZX_PLANE = "ZX Plane" # eslint-disable-line no-eval + XY_PLANE = "XY Plane" # eslint-disable-line no-eval + YZ_PLANE = "YZ Plane" # eslint-disable-line no-eval + ZX_PLANE = "ZX Plane" # eslint-disable-line no-eval @property def reference_plane(self) -> ReferencePlaneOption: """Reference Plane Select reference plane for determining original element heights - """ + """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def conform_element_orientation(self) -> bool: @@ -505,8 +509,8 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def show_axes(self) -> bool: @@ -516,8 +520,8 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def show_icon(self) -> bool: @@ -527,8 +531,8 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def size(self) -> float: @@ -538,7 +542,7 @@ def size(self) -> float: Value should be between 0.001 and 1. """ val = self._get_property("Size") - return val # type: ignore + return val # type: ignore @property def color(self): @@ -548,25 +552,25 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @property def el_sample_interval(self) -> float: """El Sample Interval Space between elevation-angle samples of pattern - """ + """ val = self._get_property("El Sample Interval") - return val # type: ignore + return val # type: ignore @property def az_sample_interval(self) -> float: """Az Sample Interval Space between azimuth-angle samples of pattern - """ + """ val = self._get_property("Az Sample Interval") - return val # type: ignore + return val # type: ignore @property def has_frequency_domain(self) -> bool: @@ -576,35 +580,35 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def frequency_domain(self): """Frequency Domain Frequency sample(s) defining antenna - """ + """ val = self._get_property("Frequency Domain") - return val # type: ignore + return val # type: ignore @property def number_of_electric_sources(self) -> int: """Number of Electric Sources Number of freestanding electric current sources defining antenna - """ + """ val = self._get_property("Number of Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources Number of freestanding magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_electric_sources(self) -> int: @@ -612,9 +616,9 @@ def number_of_imaged_electric_sources(self) -> int: Number of imaged, half-space radiating electric current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Electric Sources") - return val # type: ignore + return val # type: ignore @property def number_of_imaged_magnetic_sources(self) -> int: @@ -622,9 +626,9 @@ def number_of_imaged_magnetic_sources(self) -> int: Number of imaged, half-space radiating magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Magnetic Sources") - return val # type: ignore + return val # type: ignore @property def waveguide_height(self) -> float: @@ -632,35 +636,35 @@ def waveguide_height(self) -> float: Implied waveguide height (along local x-axis) where the flared horn walls meet the feed - """ + """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency Implied lowest operating frequency of pyramidal horn antenna - """ + """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency Implied lowest operating frequency of conical horn antenna - """ + """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class SWEModeTruncationOption(Enum): - DYNAMIC = "Dynamic" # eslint-disable-line no-eval - FIXED_CUSTOM = "Fixed (Custom)" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + DYNAMIC = "Dynamic" # eslint-disable-line no-eval + FIXED_CUSTOM = "Fixed (Custom)" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def swe_mode_truncation(self) -> SWEModeTruncationOption: @@ -668,10 +672,10 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: Select the method for stability-enhancing truncation of spherical wave expansion terms - """ + """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def max_n_index(self) -> int: @@ -681,16 +685,16 @@ def max_n_index(self) -> int: Value should be greater than 1. """ val = self._get_property("Max N Index") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @property def show_composite_passband(self) -> bool: @@ -700,8 +704,8 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def use_phase_center(self) -> bool: @@ -711,17 +715,17 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def coordinate_systems(self) -> str: """Coordinate Systems Specifies the coordinate system for the phase center of this antenna - """ + """ val = self._get_property("Coordinate Systems") - return val # type: ignore + return val # type: ignore @property def phasecenterposition(self): @@ -731,7 +735,7 @@ def phasecenterposition(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("PhaseCenterPosition") - return val # type: ignore + return val # type: ignore @property def phasecenterorientation(self): @@ -741,5 +745,4 @@ def phasecenterorientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("PhaseCenterOrientation") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py index ceb4896872d..46fd8e6c5fa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyAntennaPassband(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +44,7 @@ def passband_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Passband Loss") - return val # type: ignore + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -51,7 +54,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out of Band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -62,7 +65,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -73,7 +76,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -84,7 +87,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -95,14 +98,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py index 5afa58d83fa..c30a1a78306 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -39,9 +43,9 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @property def use_dd_1494_mode(self) -> bool: @@ -51,8 +55,8 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def use_emission_designator(self) -> bool: @@ -62,36 +66,36 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def emission_designator(self) -> str: """Emission Designator Enter the Emission Designator to define the bandwidth and modulation - """ + """ val = self._get_property("Emission Designator") - return val # type: ignore + return val # type: ignore @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW Channel Bandwidth based off the emission designator - """ + """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def emit_modulation_type(self) -> str: """EMIT Modulation Type Modulation based off the emission designator - """ + """ val = self._get_property("EMIT Modulation Type") - return val # type: ignore + return val # type: ignore @property def override_emission_designator_bw(self) -> bool: @@ -102,8 +106,8 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def channel_bandwidth(self) -> float: @@ -114,30 +118,30 @@ def channel_bandwidth(self) -> float: """ val = self._get_property("Channel Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class ModulationOption(Enum): - GENERIC = "Generic" # eslint-disable-line no-eval - AM = "AM" # eslint-disable-line no-eval - LSB = "LSB" # eslint-disable-line no-eval - USB = "USB" # eslint-disable-line no-eval - FM = "FM" # eslint-disable-line no-eval - FSK = "FSK" # eslint-disable-line no-eval - MSK = "MSK" # eslint-disable-line no-eval - PSK = "PSK" # eslint-disable-line no-eval - QAM = "QAM" # eslint-disable-line no-eval - APSK = "APSK" # eslint-disable-line no-eval - RADAR = "Radar" # eslint-disable-line no-eval + GENERIC = "Generic" # eslint-disable-line no-eval + AM = "AM" # eslint-disable-line no-eval + LSB = "LSB" # eslint-disable-line no-eval + USB = "USB" # eslint-disable-line no-eval + FM = "FM" # eslint-disable-line no-eval + FSK = "FSK" # eslint-disable-line no-eval + MSK = "MSK" # eslint-disable-line no-eval + PSK = "PSK" # eslint-disable-line no-eval + QAM = "QAM" # eslint-disable-line no-eval + APSK = "APSK" # eslint-disable-line no-eval + RADAR = "Radar" # eslint-disable-line no-eval @property def modulation(self) -> ModulationOption: """Modulation Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Modulation") val = self.ModulationOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def max_modulating_freq(self) -> float: @@ -148,7 +152,7 @@ def max_modulating_freq(self) -> float: """ val = self._get_property("Max Modulating Freq.") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def modulation_index(self) -> float: @@ -158,7 +162,7 @@ def modulation_index(self) -> float: Value should be between 0.01 and 1. """ val = self._get_property("Modulation Index") - return val # type: ignore + return val # type: ignore @property def freq_deviation(self) -> float: @@ -169,7 +173,7 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def bit_rate(self) -> float: @@ -180,7 +184,7 @@ def bit_rate(self) -> float: """ val = self._get_property("Bit Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @property def sidelobes(self) -> int: @@ -190,85 +194,85 @@ def sidelobes(self) -> int: Value should be greater than 0. """ val = self._get_property("Sidelobes") - return val # type: ignore + return val # type: ignore @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation FSK frequency deviation: helps determine spectral profile Value should be greater than 1. """ val = self._get_property("Freq. Deviation ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class PSKTypeOption(Enum): - BPSK = "BPSK" # eslint-disable-line no-eval - QPSK = "QPSK" # eslint-disable-line no-eval - PSK_8 = "PSK-8" # eslint-disable-line no-eval - PSK_16 = "PSK-16" # eslint-disable-line no-eval - PSK_32 = "PSK-32" # eslint-disable-line no-eval - PSK_64 = "PSK-64" # eslint-disable-line no-eval + BPSK = "BPSK" # eslint-disable-line no-eval + QPSK = "QPSK" # eslint-disable-line no-eval + PSK_8 = "PSK-8" # eslint-disable-line no-eval + PSK_16 = "PSK-16" # eslint-disable-line no-eval + PSK_32 = "PSK-32" # eslint-disable-line no-eval + PSK_64 = "PSK-64" # eslint-disable-line no-eval @property def psk_type(self) -> PSKTypeOption: """PSK Type PSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore class FSKTypeOption(Enum): - FSK_2 = "FSK-2" # eslint-disable-line no-eval - FSK_4 = "FSK-4" # eslint-disable-line no-eval - FSK_8 = "FSK-8" # eslint-disable-line no-eval + FSK_2 = "FSK-2" # eslint-disable-line no-eval + FSK_4 = "FSK-4" # eslint-disable-line no-eval + FSK_8 = "FSK-8" # eslint-disable-line no-eval @property def fsk_type(self) -> FSKTypeOption: """FSK Type FSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore class QAMTypeOption(Enum): - QAM_4 = "QAM-4" # eslint-disable-line no-eval - QAM_16 = "QAM-16" # eslint-disable-line no-eval - QAM_64 = "QAM-64" # eslint-disable-line no-eval - QAM_256 = "QAM-256" # eslint-disable-line no-eval - QAM_1024 = "QAM-1024" # eslint-disable-line no-eval + QAM_4 = "QAM-4" # eslint-disable-line no-eval + QAM_16 = "QAM-16" # eslint-disable-line no-eval + QAM_64 = "QAM-64" # eslint-disable-line no-eval + QAM_256 = "QAM-256" # eslint-disable-line no-eval + QAM_1024 = "QAM-1024" # eslint-disable-line no-eval @property def qam_type(self) -> QAMTypeOption: """QAM Type QAM modulation order: helps determine spectral profile - """ + """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore class APSKTypeOption(Enum): - APSK_4 = "APSK-4" # eslint-disable-line no-eval - APSK_16 = "APSK-16" # eslint-disable-line no-eval - APSK_64 = "APSK-64" # eslint-disable-line no-eval - APSK_256 = "APSK-256" # eslint-disable-line no-eval - APSK_1024 = "APSK-1024" # eslint-disable-line no-eval + APSK_4 = "APSK-4" # eslint-disable-line no-eval + APSK_16 = "APSK-16" # eslint-disable-line no-eval + APSK_64 = "APSK-64" # eslint-disable-line no-eval + APSK_256 = "APSK-256" # eslint-disable-line no-eval + APSK_1024 = "APSK-1024" # eslint-disable-line no-eval @property def apsk_type(self) -> APSKTypeOption: """APSK Type APSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -279,7 +283,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -290,7 +294,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def channel_spacing(self) -> float: @@ -301,7 +305,7 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def tx_offset(self) -> float: @@ -312,24 +316,24 @@ def tx_offset(self) -> float: """ val = self._get_property("Tx Offset") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class RadarTypeOption(Enum): - CW = "CW" # eslint-disable-line no-eval - FM_CW = "FM-CW" # eslint-disable-line no-eval - FM_PULSE = "FM Pulse" # eslint-disable-line no-eval - NON_FM_PULSE = "Non-FM Pulse" # eslint-disable-line no-eval - PHASE_CODED = "Phase Coded" # eslint-disable-line no-eval + CW = "CW" # eslint-disable-line no-eval + FM_CW = "FM-CW" # eslint-disable-line no-eval + FM_PULSE = "FM Pulse" # eslint-disable-line no-eval + NON_FM_PULSE = "Non-FM Pulse" # eslint-disable-line no-eval + PHASE_CODED = "Phase Coded" # eslint-disable-line no-eval @property def radar_type(self) -> RadarTypeOption: """Radar Type Radar type: helps determine spectral profile - """ + """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def hopping_radar(self) -> bool: @@ -339,8 +343,8 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def post_october_2020_procurement(self) -> bool: @@ -351,8 +355,8 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def hop_range_min_freq(self) -> float: @@ -363,7 +367,7 @@ def hop_range_min_freq(self) -> float: """ val = self._get_property("Hop Range Min Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def hop_range_max_freq(self) -> float: @@ -374,7 +378,7 @@ def hop_range_max_freq(self) -> float: """ val = self._get_property("Hop Range Max Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def pulse_duration(self) -> float: @@ -385,7 +389,7 @@ def pulse_duration(self) -> float: """ val = self._get_property("Pulse Duration") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_rise_time(self) -> float: @@ -396,7 +400,7 @@ def pulse_rise_time(self) -> float: """ val = self._get_property("Pulse Rise Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_fall_time(self) -> float: @@ -407,7 +411,7 @@ def pulse_fall_time(self) -> float: """ val = self._get_property("Pulse Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def pulse_repetition_rate(self) -> float: @@ -417,7 +421,7 @@ def pulse_repetition_rate(self) -> float: Value should be greater than 1. """ val = self._get_property("Pulse Repetition Rate") - return val # type: ignore + return val # type: ignore @property def number_of_chips(self) -> float: @@ -427,7 +431,7 @@ def number_of_chips(self) -> float: Value should be greater than 1. """ val = self._get_property("Number of Chips") - return val # type: ignore + return val # type: ignore @property def pulse_compression_ratio(self) -> float: @@ -437,7 +441,7 @@ def pulse_compression_ratio(self) -> float: Value should be greater than 1. """ val = self._get_property("Pulse Compression Ratio") - return val # type: ignore + return val # type: ignore @property def fm_chirp_period(self) -> float: @@ -448,7 +452,7 @@ def fm_chirp_period(self) -> float: """ val = self._get_property("FM Chirp Period") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def fm_freq_deviation(self) -> float: @@ -459,7 +463,7 @@ def fm_freq_deviation(self) -> float: """ val = self._get_property("FM Freq Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def fm_freq_dev_bandwidth(self) -> float: @@ -471,5 +475,4 @@ def fm_freq_dev_bandwidth(self) -> float: """ val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py index 67a177d739f..35d30623195 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyBandFolder(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -32,4 +35,3 @@ def __init__(self, emit_obj, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py index 252a34939dd..491c35d6ae9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyCADNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,33 +46,33 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore class ModelTypeOption(Enum): - PLATE = "Plate" # eslint-disable-line no-eval - BOX = "Box" # eslint-disable-line no-eval - DIHEDRAL = "Dihedral" # eslint-disable-line no-eval - TRIHEDRAL = "Trihedral" # eslint-disable-line no-eval - CYLINDER = "Cylinder" # eslint-disable-line no-eval - TAPERED_CYLINDER = "Tapered Cylinder" # eslint-disable-line no-eval - CONE = "Cone" # eslint-disable-line no-eval - SPHERE = "Sphere" # eslint-disable-line no-eval - ELLIPSOID = "Ellipsoid" # eslint-disable-line no-eval - CIRCULAR_PLATE = "Circular Plate" # eslint-disable-line no-eval - PARABOLA = "Parabola" # eslint-disable-line no-eval - PRISM = "Prism" # eslint-disable-line no-eval - TAPERED_PRISM = "Tapered Prism" # eslint-disable-line no-eval - TOPHAT = "Tophat" # eslint-disable-line no-eval + PLATE = "Plate" # eslint-disable-line no-eval + BOX = "Box" # eslint-disable-line no-eval + DIHEDRAL = "Dihedral" # eslint-disable-line no-eval + TRIHEDRAL = "Trihedral" # eslint-disable-line no-eval + CYLINDER = "Cylinder" # eslint-disable-line no-eval + TAPERED_CYLINDER = "Tapered Cylinder" # eslint-disable-line no-eval + CONE = "Cone" # eslint-disable-line no-eval + SPHERE = "Sphere" # eslint-disable-line no-eval + ELLIPSOID = "Ellipsoid" # eslint-disable-line no-eval + CIRCULAR_PLATE = "Circular Plate" # eslint-disable-line no-eval + PARABOLA = "Parabola" # eslint-disable-line no-eval + PRISM = "Prism" # eslint-disable-line no-eval + TAPERED_PRISM = "Tapered Prism" # eslint-disable-line no-eval + TOPHAT = "Tophat" # eslint-disable-line no-eval @property def model_type(self) -> ModelTypeOption: """Model Type Select type of parametric model to create - """ + """ val = self._get_property("Model Type") val = self.ModelTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def length(self) -> float: @@ -79,7 +83,7 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def width(self) -> float: @@ -90,7 +94,7 @@ def width(self) -> float: """ val = self._get_property("Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def height(self) -> float: @@ -101,7 +105,7 @@ def height(self) -> float: """ val = self._get_property("Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def angle(self) -> float: @@ -111,7 +115,7 @@ def angle(self) -> float: Value should be between 0 and 360. """ val = self._get_property("Angle") - return val # type: ignore + return val # type: ignore @property def top_side(self) -> float: @@ -122,7 +126,7 @@ def top_side(self) -> float: """ val = self._get_property("Top Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def top_radius(self) -> float: @@ -133,7 +137,7 @@ def top_radius(self) -> float: """ val = self._get_property("Top Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def side(self) -> float: @@ -144,7 +148,7 @@ def side(self) -> float: """ val = self._get_property("Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def radius(self) -> float: @@ -155,7 +159,7 @@ def radius(self) -> float: """ val = self._get_property("Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def base_radius(self) -> float: @@ -166,7 +170,7 @@ def base_radius(self) -> float: """ val = self._get_property("Base Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def center_radius(self) -> float: @@ -177,7 +181,7 @@ def center_radius(self) -> float: """ val = self._get_property("Center Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def x_axis_ellipsoid_radius(self) -> float: @@ -188,7 +192,7 @@ def x_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("X Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def y_axis_ellipsoid_radius(self) -> float: @@ -199,7 +203,7 @@ def y_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Y Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def z_axis_ellipsoid_radius(self) -> float: @@ -210,7 +214,7 @@ def z_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Z Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def focal_length(self) -> float: @@ -221,17 +225,17 @@ def focal_length(self) -> float: """ val = self._get_property("Focal Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def offset(self) -> float: """Offset Offset of parabolic reflector - """ + """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def x_direction_taper(self) -> float: @@ -242,7 +246,7 @@ def x_direction_taper(self) -> float: Value should be greater than 0. """ val = self._get_property("X Direction Taper") - return val # type: ignore + return val # type: ignore @property def y_direction_taper(self) -> float: @@ -253,7 +257,7 @@ def y_direction_taper(self) -> float: Value should be greater than 0. """ val = self._get_property("Y Direction Taper") - return val # type: ignore + return val # type: ignore @property def prism_direction(self): @@ -263,7 +267,7 @@ def prism_direction(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Prism Direction") - return val # type: ignore + return val # type: ignore @property def closed_top(self) -> bool: @@ -273,8 +277,8 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def closed_base(self) -> bool: @@ -284,8 +288,8 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def mesh_density(self) -> int: @@ -296,7 +300,7 @@ def mesh_density(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Mesh Density") - return val # type: ignore + return val # type: ignore @property def use_symmetric_mesh(self) -> bool: @@ -307,22 +311,22 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore class MeshOptionOption(Enum): - IMPROVED = "Improved" # eslint-disable-line no-eval - LEGACY = "Legacy" # eslint-disable-line no-eval + IMPROVED = "Improved" # eslint-disable-line no-eval + LEGACY = "Legacy" # eslint-disable-line no-eval @property def mesh_option(self) -> MeshOptionOption: """Mesh Option Select from different meshing options - """ + """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def coating_index(self) -> int: @@ -332,7 +336,7 @@ def coating_index(self) -> int: Value should be between 0 and 100000. """ val = self._get_property("Coating Index") - return val # type: ignore + return val # type: ignore @property def show_relative_coordinates(self) -> bool: @@ -343,8 +347,8 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def position(self): @@ -354,7 +358,7 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): @@ -364,21 +368,21 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def orientation(self): @@ -388,7 +392,7 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): @@ -398,7 +402,7 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def visible(self) -> bool: @@ -408,24 +412,24 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore class RenderModeOption(Enum): - FLAT_SHADED = "Flat-Shaded" # eslint-disable-line no-eval - WIRE_FRAME = "Wire-Frame" # eslint-disable-line no-eval - HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" # eslint-disable-line no-eval - OUTLINE = "Outline" # eslint-disable-line no-eval + FLAT_SHADED = "Flat-Shaded" # eslint-disable-line no-eval + WIRE_FRAME = "Wire-Frame" # eslint-disable-line no-eval + HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" # eslint-disable-line no-eval + OUTLINE = "Outline" # eslint-disable-line no-eval @property def render_mode(self) -> RenderModeOption: """Render Mode Select drawing style for surfaces - """ + """ val = self._get_property("Render Mode") val = self.RenderModeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def show_axes(self) -> bool: @@ -435,8 +439,8 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def min(self): @@ -446,7 +450,7 @@ def min(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Min") - return val # type: ignore + return val # type: ignore @property def max(self): @@ -456,16 +460,16 @@ def max(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Max") - return val # type: ignore + return val # type: ignore @property def number_of_surfaces(self) -> int: """Number of Surfaces Number of surfaces in the model - """ + """ val = self._get_property("Number of Surfaces") - return val # type: ignore + return val # type: ignore @property def color(self): @@ -475,14 +479,13 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py index d7326acab46..b985801c87c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyCable(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,21 +51,21 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - CONSTANT_LOSS = "Constant Loss" # eslint-disable-line no-eval - COAXIAL_CABLE = "Coaxial Cable" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + CONSTANT_LOSS = "Constant Loss" # eslint-disable-line no-eval + COAXIAL_CABLE = "Coaxial Cable" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -69,10 +73,10 @@ def type(self) -> TypeOption: Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def length(self) -> float: @@ -83,7 +87,7 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def loss_per_length(self) -> float: @@ -93,7 +97,7 @@ def loss_per_length(self) -> float: Value should be between 0 and 20. """ val = self._get_property("Loss Per Length") - return val # type: ignore + return val # type: ignore @property def measurement_length(self) -> float: @@ -104,7 +108,7 @@ def measurement_length(self) -> float: """ val = self._get_property("Measurement Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def resistive_loss_constant(self) -> float: @@ -114,7 +118,7 @@ def resistive_loss_constant(self) -> float: Value should be between 0 and 2. """ val = self._get_property("Resistive Loss Constant") - return val # type: ignore + return val # type: ignore @property def dielectric_loss_constant(self) -> float: @@ -124,14 +128,13 @@ def dielectric_loss_constant(self) -> float: Value should be between 0 and 1. """ val = self._get_property("Dielectric Loss Constant") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py index 687c281bf5b..ef9e0ecb3c1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyCirculator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,20 +51,20 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -68,24 +72,24 @@ def type(self) -> TypeOption: Type of circulator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val # type: ignore class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the circulator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -95,7 +99,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_reverse_isolation(self) -> bool: @@ -106,8 +110,8 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -117,7 +121,7 @@ def reverse_isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -128,8 +132,8 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -139,7 +143,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -150,7 +154,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -161,7 +165,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -172,7 +176,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -183,14 +187,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py index dfa7683c420..2c28ec0c580 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,8 +44,8 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def ports(self): @@ -50,7 +53,6 @@ def ports(self): Maps each port in the link to an antenna in the project "A list of values." - """ + """ val = self._get_property("Ports") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py index 89ab6479a7b..f769be755bd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyCouplingsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -37,7 +40,7 @@ def minimum_allowed_coupling(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Minimum Allowed Coupling") - return val # type: ignore + return val # type: ignore @property def global_default_coupling(self) -> float: @@ -47,14 +50,13 @@ def global_default_coupling(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Global Default Coupling") - return val # type: ignore + return val # type: ignore @property def antenna_tags(self) -> str: """Antenna Tags All tags currently used by all antennas in the project - """ + """ val = self._get_property("Antenna Tags") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py index 5f2844b925f..4722b5a217f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,11 +38,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Value (dB): + "Value (dB): Value should be between -1000 and 0. """ return self._get_table_data() @@ -52,26 +55,26 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -81,8 +84,8 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -92,15 +95,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py index 9ea395a770b..b1d87fd3df1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -34,24 +38,24 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class GroundPlaneNormalOption(Enum): - X_AXIS = "X Axis" # eslint-disable-line no-eval - Y_AXIS = "Y Axis" # eslint-disable-line no-eval - Z_AXIS = "Z Axis" # eslint-disable-line no-eval + X_AXIS = "X Axis" # eslint-disable-line no-eval + Y_AXIS = "Y Axis" # eslint-disable-line no-eval + Z_AXIS = "Z Axis" # eslint-disable-line no-eval @property def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal Specifies the axis of the normal to the ground plane - """ + """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def gp_position_along_normal(self) -> float: @@ -59,8 +63,7 @@ def gp_position_along_normal(self) -> float: Offset of ground plane in direction normal to the ground planes orientation - """ + """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py index ea3b699862e..a2732be820c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,26 +46,26 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -71,8 +75,8 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -82,32 +86,32 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class TerrainCategoryOption(Enum): - TYPE_A = "Type A" # eslint-disable-line no-eval - TYPE_B = "Type B" # eslint-disable-line no-eval - TYPE_C = "Type C" # eslint-disable-line no-eval + TYPE_A = "Type A" # eslint-disable-line no-eval + TYPE_B = "Type B" # eslint-disable-line no-eval + TYPE_C = "Type C" # eslint-disable-line no-eval @property def terrain_category(self) -> TerrainCategoryOption: """Terrain Category Specify the terrain category type for the Erceg model - """ + """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -118,7 +122,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -129,7 +133,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -140,23 +144,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -167,7 +171,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -177,7 +181,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -187,8 +191,8 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def rain_availability(self) -> float: @@ -199,7 +203,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -209,7 +213,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -220,7 +224,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -231,8 +235,8 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def temperature(self) -> float: @@ -242,7 +246,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -252,7 +256,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -262,5 +266,4 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py index c18b9317ae1..f3729e4484c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyFilter(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,25 +51,25 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - LOW_PASS = "Low Pass" # eslint-disable-line no-eval - HIGH_PASS = "High Pass" # eslint-disable-line no-eval - BAND_PASS = "Band Pass" # eslint-disable-line no-eval - BAND_STOP = "Band Stop" # eslint-disable-line no-eval - TUNABLE_BANDPASS = "Tunable Bandpass" # eslint-disable-line no-eval - TUNABLE_BANDSTOP = "Tunable Bandstop" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + LOW_PASS = "Low Pass" # eslint-disable-line no-eval + HIGH_PASS = "High Pass" # eslint-disable-line no-eval + BAND_PASS = "Band Pass" # eslint-disable-line no-eval + BAND_STOP = "Band Stop" # eslint-disable-line no-eval + TUNABLE_BANDPASS = "Tunable Bandpass" # eslint-disable-line no-eval + TUNABLE_BANDSTOP = "Tunable Bandstop" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -73,10 +77,10 @@ def type(self) -> TypeOption: Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -86,7 +90,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def stop_band_attenuation(self) -> float: @@ -96,7 +100,7 @@ def stop_band_attenuation(self) -> float: Value should be less than 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @property def max_pass_band(self) -> float: @@ -107,7 +111,7 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_stop_band(self) -> float: @@ -118,7 +122,7 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def max_stop_band(self) -> float: @@ -129,7 +133,7 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_pass_band(self) -> float: @@ -140,7 +144,7 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -151,7 +155,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -162,7 +166,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -173,7 +177,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -184,73 +188,73 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff Lower cutoff frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band Lower stop band frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band Higher stop band frequency Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff Higher cutoff frequency Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency Lowest tuned frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lowest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency Highest tuned frequency Value should be between 1 and 1e+11. """ val = self._get_property("Highest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def percent_bandwidth(self) -> float: @@ -260,7 +264,7 @@ def percent_bandwidth(self) -> float: Value should be between 0.001 and 100. """ val = self._get_property("Percent Bandwidth") - return val # type: ignore + return val # type: ignore @property def shape_factor(self) -> float: @@ -270,14 +274,13 @@ def shape_factor(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py index 9cfb282bb4e..e909c9cfb43 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,26 +46,26 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -71,8 +75,8 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -82,32 +86,32 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): - URBAN_MICROCELL = "Urban Microcell" # eslint-disable-line no-eval - URBAN_MACROCELL = "Urban Macrocell" # eslint-disable-line no-eval - RURAL_MACROCELL = "Rural Macrocell" # eslint-disable-line no-eval + URBAN_MICROCELL = "Urban Microcell" # eslint-disable-line no-eval + URBAN_MACROCELL = "Urban Macrocell" # eslint-disable-line no-eval + RURAL_MACROCELL = "Rural Macrocell" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment for the 5G channel model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def los(self) -> bool: @@ -117,8 +121,8 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def include_bpl(self) -> bool: @@ -128,22 +132,22 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore class NYUBPLModelOption(Enum): - LOW_LOSS_MODEL = "Low-loss model" # eslint-disable-line no-eval - HIGH_LOSS_MODEL = "High-loss model" # eslint-disable-line no-eval + LOW_LOSS_MODEL = "Low-loss model" # eslint-disable-line no-eval + HIGH_LOSS_MODEL = "High-loss model" # eslint-disable-line no-eval @property def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model Specify the NYU Building Penetration Loss model - """ + """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -154,7 +158,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -165,7 +169,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -176,23 +180,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -203,7 +207,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -213,7 +217,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -223,8 +227,8 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def rain_availability(self) -> float: @@ -235,7 +239,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -245,7 +249,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -256,7 +260,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -267,8 +271,8 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def temperature(self) -> float: @@ -278,7 +282,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -288,7 +292,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -298,5 +302,4 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py index eb876c5e4f9..367d8897a4b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,26 +46,26 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -71,8 +75,8 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -82,33 +86,33 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): - LARGE_CITY = "Large City" # eslint-disable-line no-eval - SMALLMEDIUM_CITY = "Small/Medium City" # eslint-disable-line no-eval - SUBURBAN = "Suburban" # eslint-disable-line no-eval - RURAL = "Rural" # eslint-disable-line no-eval + LARGE_CITY = "Large City" # eslint-disable-line no-eval + SMALLMEDIUM_CITY = "Small/Medium City" # eslint-disable-line no-eval + SUBURBAN = "Suburban" # eslint-disable-line no-eval + RURAL = "Rural" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Hata model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -119,7 +123,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -130,7 +134,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -141,23 +145,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -168,7 +172,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -178,7 +182,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -188,8 +192,8 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def rain_availability(self) -> float: @@ -200,7 +204,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -210,7 +214,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -221,7 +225,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -232,8 +236,8 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def temperature(self) -> float: @@ -243,7 +247,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -253,7 +257,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -263,5 +267,4 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py index 66976d2c345..83039421d32 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,13 +40,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Power Loss Coefficient: + "Power Loss Coefficient: Value should be between 0 and 100. - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): Value should be between 0 and 1000. """ return self._get_table_data() @@ -55,26 +59,26 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -84,8 +88,8 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -95,34 +99,34 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class BuildingTypeOption(Enum): - RESIDENTIAL_APARTMENT = "Residential Apartment" # eslint-disable-line no-eval - RESIDENTIAL_HOUSE = "Residential House" # eslint-disable-line no-eval - OFFICE_BUILDING = "Office Building" # eslint-disable-line no-eval - COMMERCIAL_BUILDING = "Commercial Building" # eslint-disable-line no-eval - CUSTOM_BUILDING = "Custom Building" # eslint-disable-line no-eval + RESIDENTIAL_APARTMENT = "Residential Apartment" # eslint-disable-line no-eval + RESIDENTIAL_HOUSE = "Residential House" # eslint-disable-line no-eval + OFFICE_BUILDING = "Office Building" # eslint-disable-line no-eval + COMMERCIAL_BUILDING = "Commercial Building" # eslint-disable-line no-eval + CUSTOM_BUILDING = "Custom Building" # eslint-disable-line no-eval @property def building_type(self) -> BuildingTypeOption: """Building Type Specify the building type for the Indoor Propagation model - """ + """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def number_of_floors(self) -> int: @@ -132,7 +136,7 @@ def number_of_floors(self) -> int: Value should be between 1 and 3. """ val = self._get_property("Number of Floors") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -143,7 +147,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -154,7 +158,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -165,23 +169,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -192,7 +196,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -202,7 +206,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -212,8 +216,8 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def rain_availability(self) -> float: @@ -224,7 +228,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -234,7 +238,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -245,7 +249,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -256,8 +260,8 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def temperature(self) -> float: @@ -267,7 +271,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -277,7 +281,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -287,5 +291,4 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py index 003e35b207e..54211c00985 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyIsolator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,20 +51,20 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -68,24 +72,24 @@ def type(self) -> TypeOption: Type of isolator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val # type: ignore class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the isolator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -95,7 +99,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_reverse_isolation(self) -> bool: @@ -106,8 +110,8 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -117,7 +121,7 @@ def reverse_isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -128,8 +132,8 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -139,7 +143,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -150,7 +154,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -161,7 +165,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -172,7 +176,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -183,14 +187,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py index 537f654296d..271e9969ef3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,26 +46,26 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -71,8 +75,8 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -82,36 +86,36 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): - FREE_SPACE = "Free Space" # eslint-disable-line no-eval - URBAN = "Urban" # eslint-disable-line no-eval - SHADOWED_URBAN = "Shadowed Urban" # eslint-disable-line no-eval - BUILDING_LINE_OF_SIGHT = "Building Line of Sight" # eslint-disable-line no-eval - BUILDING_OBSTRUCTED = "Building Obstructed" # eslint-disable-line no-eval - FACTORY_OBSTRUCTED = "Factory Obstructed" # eslint-disable-line no-eval - CUSTOM = "Custom" # eslint-disable-line no-eval + FREE_SPACE = "Free Space" # eslint-disable-line no-eval + URBAN = "Urban" # eslint-disable-line no-eval + SHADOWED_URBAN = "Shadowed Urban" # eslint-disable-line no-eval + BUILDING_LINE_OF_SIGHT = "Building Line of Sight" # eslint-disable-line no-eval + BUILDING_OBSTRUCTED = "Building Obstructed" # eslint-disable-line no-eval + FACTORY_OBSTRUCTED = "Factory Obstructed" # eslint-disable-line no-eval + CUSTOM = "Custom" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Log Distance model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def path_loss_exponent(self) -> float: @@ -121,7 +125,7 @@ def path_loss_exponent(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Path Loss Exponent") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -132,7 +136,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -143,7 +147,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -154,23 +158,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -181,7 +185,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -191,7 +195,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -201,8 +205,8 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def rain_availability(self) -> float: @@ -213,7 +217,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -223,7 +227,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -234,7 +238,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -245,8 +249,8 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def temperature(self) -> float: @@ -256,7 +260,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -266,7 +270,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -276,5 +280,4 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py index 41fc81b660d..777039c73c1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyMultiplexer(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,20 +51,20 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_PASS_BAND = "By Pass Band" # eslint-disable-line no-eval - BY_FILE = "By File" # eslint-disable-line no-eval + BY_PASS_BAND = "By Pass Band" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -69,24 +73,24 @@ def type(self) -> TypeOption: simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val # type: ignore class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the multiplexer. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def flip_ports_vertically(self) -> bool: @@ -96,8 +100,8 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def ports(self): @@ -105,16 +109,15 @@ def ports(self): Assigns the child port nodes to the multiplexers ports "A list of values." - """ + """ val = self._get_property("Ports") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py index 16c5a81dc8c..6ad234b9431 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,10 +39,10 @@ def parent(self): return self._parent class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - LOW_PASS = "Low Pass" # eslint-disable-line no-eval - HIGH_PASS = "High Pass" # eslint-disable-line no-eval - BAND_PASS = "Band Pass" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + LOW_PASS = "Low Pass" # eslint-disable-line no-eval + HIGH_PASS = "High Pass" # eslint-disable-line no-eval + BAND_PASS = "Band Pass" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -47,10 +51,10 @@ def type(self) -> TypeOption: file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def filename(self) -> str: @@ -60,7 +64,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -70,7 +74,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def stop_band_attenuation(self) -> float: @@ -80,7 +84,7 @@ def stop_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return val # type: ignore @property def max_pass_band(self) -> float: @@ -91,7 +95,7 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_stop_band(self) -> float: @@ -102,7 +106,7 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def max_stop_band(self) -> float: @@ -113,7 +117,7 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def min_pass_band(self) -> float: @@ -124,7 +128,7 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -135,7 +139,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -146,7 +150,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -157,7 +161,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -168,14 +172,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py index e351d9ec0ba..f253c6bcbcf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyPowerDivider(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,21 +51,21 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - P3_DB = "P3 dB" # eslint-disable-line no-eval - RESISTIVE = "Resistive" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + P3_DB = "P3 dB" # eslint-disable-line no-eval + RESISTIVE = "Resistive" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -69,24 +73,24 @@ def type(self) -> TypeOption: Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val # type: ignore class OrientationOption(Enum): - DIVIDER = "Divider" # eslint-disable-line no-eval - COMBINER = "Combiner" # eslint-disable-line no-eval + DIVIDER = "Divider" # eslint-disable-line no-eval + COMBINER = "Combiner" # eslint-disable-line no-eval @property def orientation(self) -> OrientationOption: """Orientation Defines the orientation of the Power Divider. - """ + """ val = self._get_property("Orientation") val = self.OrientationOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def insertion_loss_above_ideal(self) -> float: @@ -97,7 +101,7 @@ def insertion_loss_above_ideal(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss Above Ideal") - return val # type: ignore + return val # type: ignore @property def finite_isolation(self) -> bool: @@ -108,8 +112,8 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def isolation(self) -> float: @@ -119,7 +123,7 @@ def isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -130,8 +134,8 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -141,7 +145,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -152,7 +156,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -163,7 +167,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -174,7 +178,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -185,14 +189,13 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py index b029f758c22..f39b81fc115 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,26 +46,26 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -71,8 +75,8 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -82,17 +86,17 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -103,7 +107,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -114,7 +118,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -125,23 +129,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -152,7 +156,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -162,7 +166,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -172,8 +176,8 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def rain_availability(self) -> float: @@ -184,7 +188,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -194,7 +198,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -205,7 +209,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -216,8 +220,8 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def temperature(self) -> float: @@ -227,7 +231,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -237,7 +241,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -247,5 +251,4 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py index 8643d88c097..c877ac11f08 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRadioNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,11 +38,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Name: - "Type: - """ + "Name: + "Type: + """ return self._get_table_data() @property @@ -47,7 +50,6 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py index 95e7cad7ae9..af4e7362b96 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRfSystemGroup(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -43,8 +46,8 @@ def enable_passive_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Passive Noise") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def enforce_thermal_noise_floor(self) -> bool: @@ -55,6 +58,5 @@ def enforce_thermal_noise_floor(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enforce Thermal Noise Floor") - val = (val == 'true') - return val # type: ignore - + val = val == "true" + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py index 3fcf5c9d90c..6ad4234310a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,7 +46,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -52,32 +56,32 @@ def source_file(self) -> str: Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def receive_frequency(self) -> float: """Receive Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class MeasurementModeOption(Enum): - AUDIO_SINAD = "Audio SINAD" # eslint-disable-line no-eval - DIGITAL_BER = "Digital BER" # eslint-disable-line no-eval - GPS_CNR = "GPS CNR" # eslint-disable-line no-eval + AUDIO_SINAD = "Audio SINAD" # eslint-disable-line no-eval + DIGITAL_BER = "Digital BER" # eslint-disable-line no-eval + GPS_CNR = "GPS CNR" # eslint-disable-line no-eval @property def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode Defines the mode for the receiver measurement - """ + """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def sinad_threshold(self) -> float: @@ -87,7 +91,7 @@ def sinad_threshold(self) -> float: Value should be between 5 and 20. """ val = self._get_property("SINAD Threshold") - return val # type: ignore + return val # type: ignore @property def gps_cnr_threshold(self) -> float: @@ -97,7 +101,7 @@ def gps_cnr_threshold(self) -> float: Value should be between 15 and 30. """ val = self._get_property("GPS CNR Threshold") - return val # type: ignore + return val # type: ignore @property def ber_threshold(self) -> float: @@ -107,7 +111,7 @@ def ber_threshold(self) -> float: Value should be between -12 and -1. """ val = self._get_property("BER Threshold") - return val # type: ignore + return val # type: ignore @property def default_intended_power(self) -> bool: @@ -117,8 +121,8 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def intended_signal_power(self) -> float: @@ -128,7 +132,7 @@ def intended_signal_power(self) -> float: Value should be between -140 and -50. """ val = self._get_property("Intended Signal Power") - return val # type: ignore + return val # type: ignore @property def freq_deviation(self) -> float: @@ -139,7 +143,7 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def modulation_depth(self) -> float: @@ -149,7 +153,7 @@ def modulation_depth(self) -> float: Value should be between 10 and 100. """ val = self._get_property("Modulation Depth") - return val # type: ignore + return val # type: ignore @property def measure_selectivity(self) -> bool: @@ -159,8 +163,8 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def measure_mixer_products(self) -> bool: @@ -170,8 +174,8 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def max_rf_order(self) -> int: @@ -181,7 +185,7 @@ def max_rf_order(self) -> int: Value should be greater than 1. """ val = self._get_property("Max RF Order") - return val # type: ignore + return val # type: ignore @property def max_lo_order(self) -> int: @@ -191,7 +195,7 @@ def max_lo_order(self) -> int: Value should be greater than 1. """ val = self._get_property("Max LO Order") - return val # type: ignore + return val # type: ignore @property def include_if(self) -> bool: @@ -201,8 +205,8 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def measure_saturation(self) -> bool: @@ -212,8 +216,8 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -223,8 +227,8 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def start_frequency(self) -> float: @@ -235,7 +239,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -246,7 +250,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def samples(self) -> int: @@ -256,7 +260,7 @@ def samples(self) -> int: Value should be between 2 and 100. """ val = self._get_property("Samples") - return val # type: ignore + return val # type: ignore @property def exclude_mixer_products_below_noise(self) -> bool: @@ -266,6 +270,5 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - val = (val == 'true') - return val # type: ignore - + val = val == "true" + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py index d8b822bf7e7..cf33e35daec 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,19 +39,19 @@ def parent(self): return self._parent class MixerProductTaperOption(Enum): - CONSTANT = "Constant" # eslint-disable-line no-eval - MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval - DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval + CONSTANT = "Constant" # eslint-disable-line no-eval + MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval + DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval @property def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper Taper for setting amplitude of mixer products - """ + """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def mixer_product_susceptibility(self) -> float: @@ -57,7 +61,7 @@ def mixer_product_susceptibility(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Mixer Product Susceptibility") - return val # type: ignore + return val # type: ignore @property def spurious_rejection(self) -> float: @@ -67,7 +71,7 @@ def spurious_rejection(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Spurious Rejection") - return val # type: ignore + return val # type: ignore @property def minimum_tuning_frequency(self) -> float: @@ -78,7 +82,7 @@ def minimum_tuning_frequency(self) -> float: """ val = self._get_property("Minimum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def maximum_tuning_frequency(self) -> float: @@ -89,7 +93,7 @@ def maximum_tuning_frequency(self) -> float: """ val = self._get_property("Maximum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def mixer_product_slope(self) -> float: @@ -100,7 +104,7 @@ def mixer_product_slope(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Mixer Product Slope") - return val # type: ignore + return val # type: ignore @property def mixer_product_intercept(self) -> float: @@ -110,7 +114,7 @@ def mixer_product_intercept(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Mixer Product Intercept") - return val # type: ignore + return val # type: ignore @property def bandwidth_80_db(self) -> float: @@ -122,7 +126,7 @@ def bandwidth_80_db(self) -> float: """ val = self._get_property("Bandwidth 80 dB") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def image_rejection(self) -> float: @@ -132,7 +136,7 @@ def image_rejection(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Image Rejection") - return val # type: ignore + return val # type: ignore @property def maximum_rf_harmonic_order(self) -> int: @@ -142,7 +146,7 @@ def maximum_rf_harmonic_order(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Maximum RF Harmonic Order") - return val # type: ignore + return val # type: ignore @property def maximum_lo_harmonic_order(self) -> int: @@ -152,22 +156,22 @@ def maximum_lo_harmonic_order(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Maximum LO Harmonic Order") - return val # type: ignore + return val # type: ignore class MixingModeOption(Enum): - LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" # eslint-disable-line no-eval - LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" # eslint-disable-line no-eval - LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" # eslint-disable-line no-eval @property def mixing_mode(self) -> MixingModeOption: """Mixing Mode Specifies whether the IF frequency is > or < RF channel frequency - """ + """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def first_if_frequency(self): @@ -177,43 +181,42 @@ def first_if_frequency(self): Value should be a mathematical expression. """ val = self._get_property("First IF Frequency") - return val # type: ignore + return val # type: ignore @property def rf_transition_frequency(self) -> float: """RF Transition Frequency RF Frequency Transition point - """ + """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class UseHighLOOption(Enum): - ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" # eslint-disable-line no-eval - BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" # eslint-disable-line no-eval + ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" # eslint-disable-line no-eval + BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" # eslint-disable-line no-eval @property def use_high_lo(self) -> UseHighLOOption: """Use High LO Use High LO above/below the transition frequency - """ + """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val.upper()] - return val # type: ignore + return val # type: ignore class MixerProductTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units Specifies the units for the Mixer Products - """ + """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val.upper()] - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py index 7a81fded205..b42e7cbf325 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -32,4 +35,3 @@ def __init__(self, emit_obj, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py index 326a31399b4..7eca21feb8c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,6 +45,5 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - val = (val == 'true') - return val # type: ignore - + val = val == "true" + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py index f0aa62bda12..bdb0adb420e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,28 +40,27 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py index 947553b6fec..2b95a61fc2a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,30 +39,30 @@ def parent(self): return self._parent class SensitivityUnitsOption(Enum): - DBM = "dBm" # eslint-disable-line no-eval - DBUV = "dBuV" # eslint-disable-line no-eval - MILLIWATTS = "milliwatts" # eslint-disable-line no-eval - MICROVOLTS = "microvolts" # eslint-disable-line no-eval + DBM = "dBm" # eslint-disable-line no-eval + DBUV = "dBuV" # eslint-disable-line no-eval + MILLIWATTS = "milliwatts" # eslint-disable-line no-eval + MICROVOLTS = "microvolts" # eslint-disable-line no-eval @property def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units Units to use for the Rx Sensitivity - """ + """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr Received signal power level at the Rx's antenna terminal Value should be between -1000 and 1000. """ val = self._get_property("Min. Receive Signal Pwr ") - return val # type: ignore + return val # type: ignore @property def snr_at_rx_signal_pwr(self) -> float: @@ -69,7 +73,7 @@ def snr_at_rx_signal_pwr(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("SNR at Rx Signal Pwr") - return val # type: ignore + return val # type: ignore @property def processing_gain(self) -> float: @@ -79,7 +83,7 @@ def processing_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Processing Gain") - return val # type: ignore + return val # type: ignore @property def apply_pg_to_narrowband_only(self) -> bool: @@ -90,8 +94,8 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def saturation_level(self) -> float: @@ -102,7 +106,7 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def rx_noise_figure(self) -> float: @@ -112,28 +116,28 @@ def rx_noise_figure(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rx Noise Figure") - return val # type: ignore + return val # type: ignore @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity Rx minimum sensitivity level (dBm) Value should be between -1000 and 1000. """ val = self._get_property("Receiver Sensitivity ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity SNR or SINAD at the specified sensitivity level Value should be between -1000 and 1000. """ val = self._get_property("SNR/SINAD at Sensitivity ") - return val # type: ignore + return val # type: ignore @property def perform_rx_intermod_analysis(self) -> bool: @@ -143,8 +147,8 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -155,18 +159,18 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Rx's 1 dB Compression Point - total power > P1dB saturates the receiver Value should be between -1000 and 1000. """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -177,7 +181,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -187,5 +191,4 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py index 27a5ad025a4..2e6406a0ac7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlySamplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,29 +40,29 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Min: + "Min: Value should be greater than 1. - "Max: + "Max: Value should be greater than 1. """ return self._get_table_data() class SamplingTypeOption(Enum): - SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" # eslint-disable-line no-eval - RANDOM_SAMPLING = "Random Sampling" # eslint-disable-line no-eval - UNIFORM_SAMPLING = "Uniform Sampling" # eslint-disable-line no-eval + SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" # eslint-disable-line no-eval + RANDOM_SAMPLING = "Random Sampling" # eslint-disable-line no-eval + UNIFORM_SAMPLING = "Uniform Sampling" # eslint-disable-line no-eval @property def sampling_type(self) -> SamplingTypeOption: """Sampling Type Sampling to apply to this configuration - """ + """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def specify_percentage(self) -> bool: @@ -69,8 +73,8 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def percentage_of_channels(self) -> float: @@ -80,7 +84,7 @@ def percentage_of_channels(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Percentage of Channels") - return val # type: ignore + return val # type: ignore @property def max__channelsrangeband(self) -> int: @@ -90,7 +94,7 @@ def max__channelsrangeband(self) -> int: Value should be between 1 and 100000. """ val = self._get_property("Max # Channels/Range/Band") - return val # type: ignore + return val # type: ignore @property def seed(self) -> int: @@ -100,7 +104,7 @@ def seed(self) -> int: Value should be greater than 0. """ val = self._get_property("Seed") - return val # type: ignore + return val # type: ignore @property def total_tx_channels(self) -> int: @@ -108,9 +112,9 @@ def total_tx_channels(self) -> int: Total number of transmit channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Tx Channels") - return val # type: ignore + return val # type: ignore @property def total_rx_channels(self) -> int: @@ -118,16 +122,15 @@ def total_rx_channels(self) -> int: Total number of receive channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Rx Channels") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py index 5b393b8aaa1..bd5503ea0ad 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlySceneGroupNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -43,8 +47,8 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def position(self): @@ -54,7 +58,7 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @property def relative_position(self): @@ -64,21 +68,21 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def orientation(self): @@ -88,7 +92,7 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @property def relative_orientation(self): @@ -98,7 +102,7 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @property def show_axes(self) -> bool: @@ -108,8 +112,8 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def box_color(self): @@ -119,14 +123,13 @@ def box_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Box Color") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py index b26d6d09de5..4a5b490ac63 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,8 +45,8 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -53,8 +56,8 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -64,15 +67,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py index c5a97246a42..c39a4a98f9f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlySolutionsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,6 +45,5 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore - + val = val == "true" + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py index c31fe110910..be87f20b3f3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTR_Switch(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,44 +51,44 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TxPortOption(Enum): - PORT_1 = "Port 1" # eslint-disable-line no-eval - PORT_2 = "Port 2" # eslint-disable-line no-eval + PORT_1 = "Port 1" # eslint-disable-line no-eval + PORT_2 = "Port 2" # eslint-disable-line no-eval @property def tx_port(self) -> TxPortOption: """Tx Port Specifies which port on the TR Switch is part of the Tx path. - """ + """ val = self._get_property("Tx Port") val = self.TxPortOption[val.upper()] - return val # type: ignore + return val # type: ignore class CommonPortLocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def common_port_location(self) -> CommonPortLocationOption: """Common Port Location Defines the orientation of the tr switch. - """ + """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def insertion_loss(self) -> float: @@ -94,7 +98,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @property def finite_isolation(self) -> bool: @@ -105,8 +109,8 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def isolation(self) -> float: @@ -116,7 +120,7 @@ def isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @property def finite_bandwidth(self) -> bool: @@ -127,8 +131,8 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def out_of_band_attenuation(self) -> float: @@ -138,7 +142,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @property def lower_stop_band(self) -> float: @@ -149,7 +153,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def lower_cutoff(self) -> float: @@ -160,7 +164,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_cutoff(self) -> float: @@ -171,7 +175,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def higher_stop_band(self) -> float: @@ -182,5 +186,4 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py index ab81a22825c..3be2b611e0b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTerminator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -37,7 +41,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def noise_temperature(self) -> float: @@ -47,20 +51,20 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -68,24 +72,24 @@ def type(self) -> TypeOption: Type of terminator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val # type: ignore class PortLocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_location(self) -> PortLocationOption: """Port Location Defines the orientation of the terminator. - """ + """ val = self._get_property("Port Location") val = self.PortLocationOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def vswr(self) -> float: @@ -97,14 +101,13 @@ def vswr(self) -> float: Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py index 2db9d2541db..154d9a0ca73 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,8 +44,8 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -52,8 +55,8 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -63,17 +66,17 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def filename(self) -> str: @@ -83,16 +86,16 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File Coupling data generated by Savant and exported as a matched file - """ + """ val = self._get_property("Savant Matched Coupling File") - return val # type: ignore + return val # type: ignore @property def enable_em_isolation(self) -> bool: @@ -102,8 +105,8 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def port_antenna_assignment(self): @@ -111,16 +114,15 @@ def port_antenna_assignment(self): Maps each port in the coupling file to an antenna in the project "A list of values." - """ + """ val = self._get_property("Port-Antenna Assignment") - return val # type: ignore + return val # type: ignore @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py index fb69b0ce18d..607b19db164 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,26 +46,26 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -71,8 +75,8 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -82,17 +86,17 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @property def ground_reflection_coeff(self) -> float: @@ -102,7 +106,7 @@ def ground_reflection_coeff(self) -> float: Value should be between -100 and 100. """ val = self._get_property("Ground Reflection Coeff.") - return val # type: ignore + return val # type: ignore @property def pointspeak(self) -> int: @@ -112,7 +116,7 @@ def pointspeak(self) -> int: Value should be between 3 and 100. """ val = self._get_property("Points/Peak") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -123,7 +127,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -134,7 +138,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -145,23 +149,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -172,7 +176,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -182,7 +186,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -192,8 +196,8 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def rain_availability(self) -> float: @@ -204,7 +208,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -214,7 +218,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -225,7 +229,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -236,8 +240,8 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def temperature(self) -> float: @@ -247,7 +251,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -257,7 +261,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -267,5 +271,4 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py index 4df7aad6ff9..ad9456af41f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,28 +42,28 @@ def parent(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): Value should be between -200 and 150. """ return self._get_table_data() class NoiseBehaviorOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE_BANDWIDTH = "Relative (Bandwidth)" # eslint-disable-line no-eval - RELATIVE_OFFSET = "Relative (Offset)" # eslint-disable-line no-eval - EQUATION = "Equation" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE_BANDWIDTH = "Relative (Bandwidth)" # eslint-disable-line no-eval + RELATIVE_OFFSET = "Relative (Offset)" # eslint-disable-line no-eval + EQUATION = "Equation" # eslint-disable-line no-eval @property def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior Specifies the behavior of the parametric noise profile - """ + """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def use_log_linear_interpolation(self) -> bool: @@ -70,6 +74,5 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - val = (val == 'true') - return val # type: ignore - + val = val == "true" + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py index 5ba0810324e..bf3353c9063 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,16 +39,15 @@ def parent(self): return self._parent class HarmonicTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units Specifies the units for the Harmonics - """ + """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val.upper()] - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py index 00c54bd30a2..9dd6504b496 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyTxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +44,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -51,17 +54,17 @@ def source_file(self) -> str: Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def transmit_frequency(self) -> float: """Transmit Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -71,8 +74,8 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def start_frequency(self) -> float: @@ -83,7 +86,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -94,7 +97,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def exclude_harmonics_below_noise(self) -> bool: @@ -104,6 +107,5 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - val = (val == 'true') - return val # type: ignore - + val = val == "true" + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py index 78affcfd609..82400a7e020 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,26 +39,25 @@ def parent(self): return self._parent class NarrowbandBehaviorOption(Enum): - ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" # eslint-disable-line no-eval - RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" # eslint-disable-line no-eval + ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" # eslint-disable-line no-eval + RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" # eslint-disable-line no-eval @property def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior Specifies the behavior of the parametric narrowband emissions mask - """ + """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def measurement_frequency(self) -> float: """Measurement Frequency Measurement frequency for the absolute freq/amp pairs. - """ + """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py index 8f5cc74878d..6c2837262de 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class ReadOnlyTxSpectralProfEmitterNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,10 +41,10 @@ def output_voltage_peak(self) -> float: """Output Voltage Peak Output High Voltage Level: maximum voltage of the digital signal - """ + """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") - return val # type: ignore + return val # type: ignore @property def include_phase_noise(self) -> bool: @@ -51,8 +54,8 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def tx_broadband_noise(self) -> float: @@ -62,7 +65,7 @@ def tx_broadband_noise(self) -> float: Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @property def perform_tx_intermod_analysis(self) -> bool: @@ -72,8 +75,8 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def internal_amp_gain(self) -> float: @@ -83,7 +86,7 @@ def internal_amp_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: @@ -93,7 +96,7 @@ def noise_figure(self) -> float: Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -104,11 +107,11 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -116,7 +119,7 @@ def p1_db_point_ref_input_(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -127,7 +130,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -137,7 +140,7 @@ def reverse_isolation(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -147,5 +150,4 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py index abceee304ce..89932595721 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,32 +39,32 @@ def parent(self): return self._parent class SpectrumTypeOption(Enum): - NARROWBAND__BROADBAND = "Narrowband & Broadband" # eslint-disable-line no-eval - BROADBAND_ONLY = "Broadband Only" # eslint-disable-line no-eval + NARROWBAND__BROADBAND = "Narrowband & Broadband" # eslint-disable-line no-eval + BROADBAND_ONLY = "Broadband Only" # eslint-disable-line no-eval @property def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type Specifies EMI Margins to calculate - """ + """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore class TxPowerOption(Enum): - PEAK_POWER = "Peak Power" # eslint-disable-line no-eval - AVERAGE_POWER = "Average Power" # eslint-disable-line no-eval + PEAK_POWER = "Peak Power" # eslint-disable-line no-eval + AVERAGE_POWER = "Average Power" # eslint-disable-line no-eval @property def tx_power(self) -> TxPowerOption: """Tx Power Method used to specify the power - """ + """ val = self._get_property("Tx Power") val = self.TxPowerOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def peak_power(self) -> float: @@ -71,7 +75,7 @@ def peak_power(self) -> float: """ val = self._get_property("Peak Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def average_power(self) -> float: @@ -82,7 +86,7 @@ def average_power(self) -> float: """ val = self._get_property("Average Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def include_phase_noise(self) -> bool: @@ -92,8 +96,8 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def tx_broadband_noise(self) -> float: @@ -103,23 +107,23 @@ def tx_broadband_noise(self) -> float: Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore class HarmonicTaperOption(Enum): - CONSTANT = "Constant" # eslint-disable-line no-eval - MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval - MIL_STD_461G_NAVY = "MIL-STD-461G Navy" # eslint-disable-line no-eval - DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval + CONSTANT = "Constant" # eslint-disable-line no-eval + MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval + MIL_STD_461G_NAVY = "MIL-STD-461G Navy" # eslint-disable-line no-eval + DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval @property def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper Taper type used to set amplitude of harmonics - """ + """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def harmonic_amplitude(self) -> float: @@ -129,7 +133,7 @@ def harmonic_amplitude(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Amplitude") - return val # type: ignore + return val # type: ignore @property def harmonic_slope(self) -> float: @@ -139,7 +143,7 @@ def harmonic_slope(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Slope") - return val # type: ignore + return val # type: ignore @property def harmonic_intercept(self) -> float: @@ -149,7 +153,7 @@ def harmonic_intercept(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Intercept") - return val # type: ignore + return val # type: ignore @property def enable_harmonic_bw_expansion(self) -> bool: @@ -160,8 +164,8 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def number_of_harmonics(self) -> int: @@ -171,7 +175,7 @@ def number_of_harmonics(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Number of Harmonics") - return val # type: ignore + return val # type: ignore @property def second_harmonic_level(self) -> float: @@ -181,7 +185,7 @@ def second_harmonic_level(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Second Harmonic Level") - return val # type: ignore + return val # type: ignore @property def third_harmonic_level(self) -> float: @@ -191,7 +195,7 @@ def third_harmonic_level(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Third Harmonic Level") - return val # type: ignore + return val # type: ignore @property def other_harmonic_levels(self) -> float: @@ -201,7 +205,7 @@ def other_harmonic_levels(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Other Harmonic Levels") - return val # type: ignore + return val # type: ignore @property def perform_tx_intermod_analysis(self) -> bool: @@ -211,8 +215,8 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def internal_amp_gain(self) -> float: @@ -222,7 +226,7 @@ def internal_amp_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @property def noise_figure(self) -> float: @@ -232,7 +236,7 @@ def noise_figure(self) -> float: Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @property def amplifier_saturation_level(self) -> float: @@ -243,11 +247,11 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -255,7 +259,7 @@ def p1_db_point_ref_input_(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def ip3_ref_input(self) -> float: @@ -266,7 +270,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @property def reverse_isolation(self) -> float: @@ -276,7 +280,7 @@ def reverse_isolation(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @property def max_intermod_order(self) -> int: @@ -286,5 +290,4 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py index a5a95bfb4f3..1588872979d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyTxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,28 +40,27 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py index 87359efa92b..2eda68c7900 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,26 +46,26 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @property def enable_refinement(self) -> bool: @@ -71,8 +75,8 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def adaptive_sampling(self) -> bool: @@ -82,45 +86,45 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore class PathLossTypeOption(Enum): - LOS_URBAN_CANYON = "LOS (Urban Canyon)" # eslint-disable-line no-eval - NLOS = "NLOS" # eslint-disable-line no-eval + LOS_URBAN_CANYON = "LOS (Urban Canyon)" # eslint-disable-line no-eval + NLOS = "NLOS" # eslint-disable-line no-eval @property def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type Specify LOS vs NLOS for the Walfisch-Ikegami model - """ + """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore class EnvironmentOption(Enum): - DENSE_METRO = "Dense Metro" # eslint-disable-line no-eval - SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" # eslint-disable-line no-eval + DENSE_METRO = "Dense Metro" # eslint-disable-line no-eval + SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Walfisch model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def roof_height(self) -> float: @@ -131,7 +135,7 @@ def roof_height(self) -> float: """ val = self._get_property("Roof Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def distance_between_buildings(self) -> float: @@ -142,7 +146,7 @@ def distance_between_buildings(self) -> float: """ val = self._get_property("Distance Between Buildings") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def street_width(self) -> float: @@ -153,7 +157,7 @@ def street_width(self) -> float: """ val = self._get_property("Street Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @property def incidence_angle(self) -> float: @@ -163,7 +167,7 @@ def incidence_angle(self) -> float: Value should be between 0 and 90. """ val = self._get_property("Incidence Angle") - return val # type: ignore + return val # type: ignore @property def custom_fading_margin(self) -> float: @@ -174,7 +178,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @property def polarization_mismatch(self) -> float: @@ -185,7 +189,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @property def pointing_error_loss(self) -> float: @@ -196,23 +200,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def fading_availability(self) -> float: @@ -223,7 +227,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @property def std_deviation(self) -> float: @@ -233,7 +237,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @property def include_rain_attenuation(self) -> bool: @@ -243,8 +247,8 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def rain_availability(self) -> float: @@ -255,7 +259,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @property def rain_rate(self) -> float: @@ -265,7 +269,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @property def polarization_tilt_angle(self) -> float: @@ -276,7 +280,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @property def include_atmospheric_absorption(self) -> bool: @@ -287,8 +291,8 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def temperature(self) -> float: @@ -298,7 +302,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @property def total_air_pressure(self) -> float: @@ -308,7 +312,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @property def water_vapor_concentration(self) -> float: @@ -318,5 +322,4 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py index f6823ff052b..a737c31f428 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ReadOnlyWaveform(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -39,26 +43,26 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore class WaveformOption(Enum): - PERIODIC_CLOCK = "Periodic Clock" # eslint-disable-line no-eval - SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" # eslint-disable-line no-eval - PRBS = "PRBS" # eslint-disable-line no-eval - PRBS_PERIODIC = "PRBS (Periodic)" # eslint-disable-line no-eval - IMPORTED = "Imported" # eslint-disable-line no-eval + PERIODIC_CLOCK = "Periodic Clock" # eslint-disable-line no-eval + SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" # eslint-disable-line no-eval + PRBS = "PRBS" # eslint-disable-line no-eval + PRBS_PERIODIC = "PRBS (Periodic)" # eslint-disable-line no-eval + IMPORTED = "Imported" # eslint-disable-line no-eval @property def waveform(self) -> WaveformOption: """Waveform Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Waveform") val = self.WaveformOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def start_frequency(self) -> float: @@ -69,7 +73,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def stop_frequency(self) -> float: @@ -80,7 +84,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def channel_spacing(self) -> float: @@ -91,7 +95,7 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def clock_duty_cycle(self) -> float: @@ -101,7 +105,7 @@ def clock_duty_cycle(self) -> float: Value should be between 0.001 and 1. """ val = self._get_property("Clock Duty Cycle") - return val # type: ignore + return val # type: ignore @property def clock_risefall_time(self) -> float: @@ -112,22 +116,22 @@ def clock_risefall_time(self) -> float: """ val = self._get_property("Clock Rise/Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore class SpreadingTypeOption(Enum): - LOW_SPREAD = "Low Spread" # eslint-disable-line no-eval - CENTER_SPREAD = "Center Spread" # eslint-disable-line no-eval - HIGH_SPREAD = "High Spread" # eslint-disable-line no-eval + LOW_SPREAD = "Low Spread" # eslint-disable-line no-eval + CENTER_SPREAD = "Center Spread" # eslint-disable-line no-eval + HIGH_SPREAD = "High Spread" # eslint-disable-line no-eval @property def spreading_type(self) -> SpreadingTypeOption: """Spreading Type Type of spreading employed by the Spread Spectrum Clock - """ + """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def spread_percentage(self) -> float: @@ -137,7 +141,7 @@ def spread_percentage(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Spread Percentage") - return val # type: ignore + return val # type: ignore @property def imported_spectrum(self) -> str: @@ -145,16 +149,16 @@ def imported_spectrum(self) -> str: Value should be a full file path. """ val = self._get_property("Imported Spectrum") - return val # type: ignore + return val # type: ignore @property def raw_data_format(self) -> str: """Raw Data Format Format of the imported raw data - """ + """ val = self._get_property("Raw Data Format") - return val # type: ignore + return val # type: ignore @property def system_impedance(self) -> float: @@ -165,7 +169,7 @@ def system_impedance(self) -> float: """ val = self._get_property("System Impedance") val = self._convert_from_internal_units(float(val), "Resistance") - return val # type: ignore + return val # type: ignore @property def advanced_extraction_params(self) -> bool: @@ -175,8 +179,8 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def nb_window_size(self) -> float: @@ -187,7 +191,7 @@ def nb_window_size(self) -> float: Value should be greater than 3. """ val = self._get_property("NB Window Size") - return val # type: ignore + return val # type: ignore @property def bb_smoothing_factor(self) -> float: @@ -197,7 +201,7 @@ def bb_smoothing_factor(self) -> float: Value should be greater than 1. """ val = self._get_property("BB Smoothing Factor") - return val # type: ignore + return val # type: ignore @property def nb_detector_threshold(self) -> float: @@ -207,21 +211,21 @@ def nb_detector_threshold(self) -> float: Value should be between 2 and 10. """ val = self._get_property("NB Detector Threshold") - return val # type: ignore + return val # type: ignore class AlgorithmOption(Enum): - FFT = "FFT" # eslint-disable-line no-eval - FOURIER_TRANSFORM = "Fourier Transform" # eslint-disable-line no-eval + FFT = "FFT" # eslint-disable-line no-eval + FOURIER_TRANSFORM = "Fourier Transform" # eslint-disable-line no-eval @property def algorithm(self) -> AlgorithmOption: """Algorithm Algorithm used to transform the imported time domain spectrum - """ + """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def start_time(self) -> float: @@ -232,17 +236,17 @@ def start_time(self) -> float: """ val = self._get_property("Start Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def stop_time(self) -> float: """Stop Time Final time of the imported time domain spectrum - """ + """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @property def max_frequency(self) -> float: @@ -253,28 +257,28 @@ def max_frequency(self) -> float: """ val = self._get_property("Max Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class WindowTypeOption(Enum): - RECTANGULAR = "Rectangular" # eslint-disable-line no-eval - BARTLETT = "Bartlett" # eslint-disable-line no-eval - BLACKMAN = "Blackman" # eslint-disable-line no-eval - HAMMING = "Hamming" # eslint-disable-line no-eval - HANNING = "Hanning" # eslint-disable-line no-eval - KAISER = "Kaiser" # eslint-disable-line no-eval - LANZCOS = "Lanzcos" # eslint-disable-line no-eval - WELCH = "Welch" # eslint-disable-line no-eval - WEBER = "Weber" # eslint-disable-line no-eval + RECTANGULAR = "Rectangular" # eslint-disable-line no-eval + BARTLETT = "Bartlett" # eslint-disable-line no-eval + BLACKMAN = "Blackman" # eslint-disable-line no-eval + HAMMING = "Hamming" # eslint-disable-line no-eval + HANNING = "Hanning" # eslint-disable-line no-eval + KAISER = "Kaiser" # eslint-disable-line no-eval + LANZCOS = "Lanzcos" # eslint-disable-line no-eval + WELCH = "Welch" # eslint-disable-line no-eval + WEBER = "Weber" # eslint-disable-line no-eval @property def window_type(self) -> WindowTypeOption: """Window Type Windowing scheme used for importing time domain spectrum - """ + """ val = self._get_property("Window Type") val = self.WindowTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @property def kaiser_parameter(self) -> float: @@ -284,7 +288,7 @@ def kaiser_parameter(self) -> float: Value should be greater than 0. """ val = self._get_property("Kaiser Parameter") - return val # type: ignore + return val # type: ignore @property def adjust_coherent_gain(self) -> bool: @@ -294,8 +298,8 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def data_rate(self) -> float: @@ -306,7 +310,7 @@ def data_rate(self) -> float: """ val = self._get_property("Data Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @property def num_of_bits(self) -> int: @@ -316,7 +320,7 @@ def num_of_bits(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Num of Bits") - return val # type: ignore + return val # type: ignore @property def use_envelope(self) -> bool: @@ -326,8 +330,8 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @property def min_ptsnull(self) -> int: @@ -337,7 +341,7 @@ def min_ptsnull(self) -> int: Value should be between 2 and 50. """ val = self._get_property("Min Pts/Null") - return val # type: ignore + return val # type: ignore @property def delay_skew(self) -> float: @@ -348,5 +352,4 @@ def delay_skew(self) -> float: """ val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py index 91d082a576b..1e5dda82a6d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class ResultPlotNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,15 +46,13 @@ def title(self) -> str: """Title Enter title at the top of the plot, room will be made for it - """ + """ val = self._get_property("Title") - return val # type: ignore + return val # type: ignore @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) @property def title_font(self): @@ -60,13 +62,11 @@ def title_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Title Font") - return val # type: ignore + return val # type: ignore @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -76,14 +76,12 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) @property def legend_font(self): @@ -93,13 +91,11 @@ def legend_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Legend Font") - return val # type: ignore + return val # type: ignore @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) @property def show_emi_thresholds(self) -> bool: @@ -109,14 +105,12 @@ def show_emi_thresholds(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show EMI Thresholds") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show EMI Thresholds={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show EMI Thresholds={value}"]) @property def display_cad_overlay(self) -> bool: @@ -126,14 +120,12 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -143,28 +135,24 @@ def opacity(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Opacity") - return val # type: ignore + return val # type: ignore @opacity.setter - def opacity(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Opacity={value}"]) + def opacity(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset Adjust vertical position of CAD model overlay - """ + """ val = self._get_property("Vertical Offset") - return val # type: ignore + return val # type: ignore @vertical_offset.setter - def vertical_offset(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Offset={value}"]) + def vertical_offset(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -175,13 +163,11 @@ def range_axis_rotation(self) -> float: Value should be between -180 and 180. """ val = self._get_property("Range Axis Rotation") - return val # type: ignore + return val # type: ignore @range_axis_rotation.setter - def range_axis_rotation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -191,74 +177,64 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min Set lower extent of horizontal axis - """ + """ val = self._get_property("X-axis Min") - return val # type: ignore + return val # type: ignore @x_axis_min.setter - def x_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Min={value}"]) + def x_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max Set upper extent of horizontal axis - """ + """ val = self._get_property("X-axis Max") - return val # type: ignore + return val # type: ignore @x_axis_max.setter - def x_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Max={value}"]) + def x_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min Set lower extent of vertical axis - """ + """ val = self._get_property("Y-axis Min") - return val # type: ignore + return val # type: ignore @y_axis_min.setter - def y_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Min={value}"]) + def y_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max Set upper extent of vertical axis - """ + """ val = self._get_property("Y-axis Max") - return val # type: ignore + return val # type: ignore @y_axis_max.setter - def y_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Max={value}"]) + def y_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -269,13 +245,11 @@ def y_axis_range(self) -> float: Value should be greater than 0. """ val = self._get_property("Y-axis Range") - return val # type: ignore + return val # type: ignore @y_axis_range.setter - def y_axis_range(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Range={value}"]) + def y_axis_range(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -285,13 +259,11 @@ def max_major_ticks_x(self) -> int: Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks X") - return val # type: ignore + return val # type: ignore @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -302,13 +274,11 @@ def max_minor_ticks_x(self) -> int: Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks X") - return val # type: ignore + return val # type: ignore @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -318,13 +288,11 @@ def max_major_ticks_y(self) -> int: Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks Y") - return val # type: ignore + return val # type: ignore @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -335,13 +303,11 @@ def max_minor_ticks_y(self) -> int: Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks Y") - return val # type: ignore + return val # type: ignore @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -351,13 +317,11 @@ def axis_label_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Label Font") - return val # type: ignore + return val # type: ignore @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -367,37 +331,35 @@ def axis_tick_label_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Tick Label Font") - return val # type: ignore + return val # type: ignore @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style Select line style of major-tick grid lines - """ + """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val.upper()] - return val # type: ignore + return val # type: ignore @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] + ) @property def major_grid_color(self): @@ -407,37 +369,35 @@ def major_grid_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Major Grid Color") - return val # type: ignore + return val # type: ignore @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style Select line style of minor-tick grid lines - """ + """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val.upper()] - return val # type: ignore + return val # type: ignore @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] + ) @property def minor_grid_color(self): @@ -447,13 +407,11 @@ def minor_grid_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Minor Grid Color") - return val # type: ignore + return val # type: ignore @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -463,35 +421,33 @@ def background_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val # type: ignore @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): - HERTZ = "hertz" # eslint-disable-line no-eval - KILOHERTZ = "kilohertz" # eslint-disable-line no-eval - MEGAHERTZ = "megahertz" # eslint-disable-line no-eval - GIGAHERTZ = "gigahertz" # eslint-disable-line no-eval + HERTZ = "hertz" # eslint-disable-line no-eval + KILOHERTZ = "kilohertz" # eslint-disable-line no-eval + MEGAHERTZ = "megahertz" # eslint-disable-line no-eval + GIGAHERTZ = "gigahertz" # eslint-disable-line no-eval @property def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit Units to use for plotting broadband power densities - """ + """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val.upper()] - return val # type: ignore + return val # type: ignore @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power for Plots Unit={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] + ) @property def bb_power_bandwidth(self) -> float: @@ -502,14 +458,12 @@ def bb_power_bandwidth(self) -> float: """ val = self._get_property("BB Power Bandwidth") val = self._convert_from_internal_units(float(val), "") - return val # type: ignore + return val # type: ignore @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value : float|str): + def bb_power_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -519,12 +473,9 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Log Scale={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py index ef2230ed142..d96c6c0d616 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class RfSystemGroup(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -43,14 +46,12 @@ def enable_passive_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Passive Noise") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enable_passive_noise.setter def enable_passive_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Passive Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Passive Noise={value}"]) @property def enforce_thermal_noise_floor(self) -> bool: @@ -61,12 +62,11 @@ def enforce_thermal_noise_floor(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enforce Thermal Noise Floor") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enforce_thermal_noise_floor.setter def enforce_thermal_noise_floor(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enforce Thermal Noise Floor={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Enforce Thermal Noise Floor={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py index 41d8f88a36a..3c1907e0368 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -50,7 +54,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -60,38 +64,36 @@ def source_file(self) -> str: Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def receive_frequency(self) -> float: """Receive Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore class MeasurementModeOption(Enum): - AUDIO_SINAD = "Audio SINAD" # eslint-disable-line no-eval - DIGITAL_BER = "Digital BER" # eslint-disable-line no-eval - GPS_CNR = "GPS CNR" # eslint-disable-line no-eval + AUDIO_SINAD = "Audio SINAD" # eslint-disable-line no-eval + DIGITAL_BER = "Digital BER" # eslint-disable-line no-eval + GPS_CNR = "GPS CNR" # eslint-disable-line no-eval @property def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode Defines the mode for the receiver measurement - """ + """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val.upper()] - return val # type: ignore + return val # type: ignore @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Mode={value.value}"]) @property def sinad_threshold(self) -> float: @@ -101,13 +103,11 @@ def sinad_threshold(self) -> float: Value should be between 5 and 20. """ val = self._get_property("SINAD Threshold") - return val # type: ignore + return val # type: ignore @sinad_threshold.setter - def sinad_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SINAD Threshold={value}"]) + def sinad_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SINAD Threshold={value}"]) @property def gps_cnr_threshold(self) -> float: @@ -117,13 +117,11 @@ def gps_cnr_threshold(self) -> float: Value should be between 15 and 30. """ val = self._get_property("GPS CNR Threshold") - return val # type: ignore + return val # type: ignore @gps_cnr_threshold.setter - def gps_cnr_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"GPS CNR Threshold={value}"]) + def gps_cnr_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GPS CNR Threshold={value}"]) @property def ber_threshold(self) -> float: @@ -133,13 +131,11 @@ def ber_threshold(self) -> float: Value should be between -12 and -1. """ val = self._get_property("BER Threshold") - return val # type: ignore + return val # type: ignore @ber_threshold.setter - def ber_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BER Threshold={value}"]) + def ber_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BER Threshold={value}"]) @property def default_intended_power(self) -> bool: @@ -149,14 +145,12 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @default_intended_power.setter def default_intended_power(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Default Intended Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Default Intended Power={value}"]) @property def intended_signal_power(self) -> float: @@ -166,13 +160,11 @@ def intended_signal_power(self) -> float: Value should be between -140 and -50. """ val = self._get_property("Intended Signal Power") - return val # type: ignore + return val # type: ignore @intended_signal_power.setter - def intended_signal_power(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Intended Signal Power={value}"]) + def intended_signal_power(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Intended Signal Power={value}"]) @property def freq_deviation(self) -> float: @@ -183,14 +175,12 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @freq_deviation.setter - def freq_deviation(self, value : float|str): + def freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) @property def modulation_depth(self) -> float: @@ -200,13 +190,11 @@ def modulation_depth(self) -> float: Value should be between 10 and 100. """ val = self._get_property("Modulation Depth") - return val # type: ignore + return val # type: ignore @modulation_depth.setter - def modulation_depth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation Depth={value}"]) + def modulation_depth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Depth={value}"]) @property def measure_selectivity(self) -> bool: @@ -216,14 +204,12 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @measure_selectivity.setter def measure_selectivity(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Selectivity={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Selectivity={value}"]) @property def measure_mixer_products(self) -> bool: @@ -233,14 +219,12 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @measure_mixer_products.setter def measure_mixer_products(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Mixer Products={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Mixer Products={value}"]) @property def max_rf_order(self) -> int: @@ -250,13 +234,11 @@ def max_rf_order(self) -> int: Value should be greater than 1. """ val = self._get_property("Max RF Order") - return val # type: ignore + return val # type: ignore @max_rf_order.setter def max_rf_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max RF Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max RF Order={value}"]) @property def max_lo_order(self) -> int: @@ -266,13 +248,11 @@ def max_lo_order(self) -> int: Value should be greater than 1. """ val = self._get_property("Max LO Order") - return val # type: ignore + return val # type: ignore @max_lo_order.setter def max_lo_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max LO Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max LO Order={value}"]) @property def include_if(self) -> bool: @@ -282,14 +262,12 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @include_if.setter def include_if(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include IF={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include IF={value}"]) @property def measure_saturation(self) -> bool: @@ -299,14 +277,12 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @measure_saturation.setter def measure_saturation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Saturation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Saturation={value}"]) @property def use_ams_limits(self) -> bool: @@ -316,14 +292,12 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -334,14 +308,12 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -352,14 +324,12 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def samples(self) -> int: @@ -369,13 +339,11 @@ def samples(self) -> int: Value should be between 2 and 100. """ val = self._get_property("Samples") - return val # type: ignore + return val # type: ignore @samples.setter def samples(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Samples={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Samples={value}"]) @property def exclude_mixer_products_below_noise(self) -> bool: @@ -385,21 +353,20 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Exclude Mixer Products Below Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Exclude Mixer Products Below Noise={value}"] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py index 13ba50aab9c..e4c7b9a9737 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxMixerProductNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -45,32 +49,32 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class MixerProductTaperOption(Enum): - CONSTANT = "Constant" # eslint-disable-line no-eval - MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval - DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval + CONSTANT = "Constant" # eslint-disable-line no-eval + MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval + DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval @property def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper Taper for setting amplitude of mixer products - """ + """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val.upper()] - return val # type: ignore + return val # type: ignore @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Taper={value.value}"] + ) @property def mixer_product_susceptibility(self) -> float: @@ -80,13 +84,13 @@ def mixer_product_susceptibility(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Mixer Product Susceptibility") - return val # type: ignore + return val # type: ignore @mixer_product_susceptibility.setter - def mixer_product_susceptibility(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Susceptibility={value}"]) + def mixer_product_susceptibility(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Susceptibility={value}"] + ) @property def spurious_rejection(self) -> float: @@ -96,13 +100,11 @@ def spurious_rejection(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Spurious Rejection") - return val # type: ignore + return val # type: ignore @spurious_rejection.setter - def spurious_rejection(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spurious Rejection={value}"]) + def spurious_rejection(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spurious Rejection={value}"]) @property def minimum_tuning_frequency(self) -> float: @@ -113,14 +115,12 @@ def minimum_tuning_frequency(self) -> float: """ val = self._get_property("Minimum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value : float|str): + def minimum_tuning_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minimum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Tuning Frequency={value}"]) @property def maximum_tuning_frequency(self) -> float: @@ -131,14 +131,12 @@ def maximum_tuning_frequency(self) -> float: """ val = self._get_property("Maximum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value : float|str): + def maximum_tuning_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum Tuning Frequency={value}"]) @property def mixer_product_slope(self) -> float: @@ -149,13 +147,11 @@ def mixer_product_slope(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Mixer Product Slope") - return val # type: ignore + return val # type: ignore @mixer_product_slope.setter - def mixer_product_slope(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Slope={value}"]) + def mixer_product_slope(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Slope={value}"]) @property def mixer_product_intercept(self) -> float: @@ -165,13 +161,11 @@ def mixer_product_intercept(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Mixer Product Intercept") - return val # type: ignore + return val # type: ignore @mixer_product_intercept.setter - def mixer_product_intercept(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Intercept={value}"]) + def mixer_product_intercept(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Intercept={value}"]) @property def bandwidth_80_db(self) -> float: @@ -183,14 +177,12 @@ def bandwidth_80_db(self) -> float: """ val = self._get_property("Bandwidth 80 dB") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_80_db.setter - def bandwidth_80_db(self, value : float|str): + def bandwidth_80_db(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 80 dB={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 80 dB={value}"]) @property def image_rejection(self) -> float: @@ -200,13 +192,11 @@ def image_rejection(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Image Rejection") - return val # type: ignore + return val # type: ignore @image_rejection.setter - def image_rejection(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Image Rejection={value}"]) + def image_rejection(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Image Rejection={value}"]) @property def maximum_rf_harmonic_order(self) -> int: @@ -216,13 +206,13 @@ def maximum_rf_harmonic_order(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Maximum RF Harmonic Order") - return val # type: ignore + return val # type: ignore @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum RF Harmonic Order={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Maximum RF Harmonic Order={value}"] + ) @property def maximum_lo_harmonic_order(self) -> int: @@ -232,34 +222,32 @@ def maximum_lo_harmonic_order(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Maximum LO Harmonic Order") - return val # type: ignore + return val # type: ignore @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum LO Harmonic Order={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Maximum LO Harmonic Order={value}"] + ) class MixingModeOption(Enum): - LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" # eslint-disable-line no-eval - LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" # eslint-disable-line no-eval - LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" # eslint-disable-line no-eval @property def mixing_mode(self) -> MixingModeOption: """Mixing Mode Specifies whether the IF frequency is > or < RF channel frequency - """ + """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val.upper()] - return val # type: ignore + return val # type: ignore @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixing Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixing Mode={value.value}"]) @property def first_if_frequency(self): @@ -269,68 +257,61 @@ def first_if_frequency(self): Value should be a mathematical expression. """ val = self._get_property("First IF Frequency") - return val # type: ignore + return val # type: ignore @first_if_frequency.setter def first_if_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First IF Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First IF Frequency={value}"]) @property def rf_transition_frequency(self) -> float: """RF Transition Frequency RF Frequency Transition point - """ + """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @rf_transition_frequency.setter - def rf_transition_frequency(self, value : float|str): + def rf_transition_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"RF Transition Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"RF Transition Frequency={value}"]) class UseHighLOOption(Enum): - ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" # eslint-disable-line no-eval - BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" # eslint-disable-line no-eval + ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" # eslint-disable-line no-eval + BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" # eslint-disable-line no-eval @property def use_high_lo(self) -> UseHighLOOption: """Use High LO Use High LO above/below the transition frequency - """ + """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val.upper()] - return val # type: ignore + return val # type: ignore @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use High LO={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use High LO={value.value}"]) class MixerProductTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units Specifies the units for the Mixer Products - """ + """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val.upper()] - return val # type: ignore + return val # type: ignore @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Table Units={value.value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py index 4c306ba3d10..68ba1494158 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class RxSaturationNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,9 +47,8 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py index 931f031c556..98525596f45 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class RxSelectivityNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,7 +47,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -59,12 +62,9 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Arithmetic Mean={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Arithmetic Mean={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py index fe7d796f3e1..8eaac368f00 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,13 +48,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -62,29 +66,26 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] - return val # type: ignore + return val # type: ignore @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spur Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py index 003c069afea..5deb2619914 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class RxSusceptibilityProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -37,49 +41,45 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SensitivityUnitsOption(Enum): - DBM = "dBm" # eslint-disable-line no-eval - DBUV = "dBuV" # eslint-disable-line no-eval - MILLIWATTS = "milliwatts" # eslint-disable-line no-eval - MICROVOLTS = "microvolts" # eslint-disable-line no-eval + DBM = "dBm" # eslint-disable-line no-eval + DBUV = "dBuV" # eslint-disable-line no-eval + MILLIWATTS = "milliwatts" # eslint-disable-line no-eval + MICROVOLTS = "microvolts" # eslint-disable-line no-eval @property def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units Units to use for the Rx Sensitivity - """ + """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val.upper()] - return val # type: ignore + return val # type: ignore @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sensitivity Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sensitivity Units={value.value}"]) @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr Received signal power level at the Rx's antenna terminal Value should be between -1000 and 1000. """ val = self._get_property("Min. Receive Signal Pwr ") - return val # type: ignore + return val # type: ignore @min_receive_signal_pwr_.setter - def min_receive_signal_pwr_(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min. Receive Signal Pwr ={value}"]) + def min_receive_signal_pwr_(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min. Receive Signal Pwr ={value}"]) @property def snr_at_rx_signal_pwr(self) -> float: @@ -90,13 +90,11 @@ def snr_at_rx_signal_pwr(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("SNR at Rx Signal Pwr") - return val # type: ignore + return val # type: ignore @snr_at_rx_signal_pwr.setter - def snr_at_rx_signal_pwr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SNR at Rx Signal Pwr={value}"]) + def snr_at_rx_signal_pwr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR at Rx Signal Pwr={value}"]) @property def processing_gain(self) -> float: @@ -106,13 +104,11 @@ def processing_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Processing Gain") - return val # type: ignore + return val # type: ignore @processing_gain.setter - def processing_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Processing Gain={value}"]) + def processing_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Processing Gain={value}"]) @property def apply_pg_to_narrowband_only(self) -> bool: @@ -123,14 +119,14 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Apply PG to Narrowband Only={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Apply PG to Narrowband Only={value}"] + ) @property def saturation_level(self) -> float: @@ -141,14 +137,12 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @saturation_level.setter - def saturation_level(self, value : float|str): + def saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) @property def rx_noise_figure(self) -> float: @@ -158,47 +152,43 @@ def rx_noise_figure(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rx Noise Figure") - return val # type: ignore + return val # type: ignore @rx_noise_figure.setter - def rx_noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rx Noise Figure={value}"]) + def rx_noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rx Noise Figure={value}"]) @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity Rx minimum sensitivity level (dBm) Value should be between -1000 and 1000. """ val = self._get_property("Receiver Sensitivity ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @receiver_sensitivity_.setter - def receiver_sensitivity_(self, value : float|str): + def receiver_sensitivity_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Receiver Sensitivity ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver Sensitivity ={value}"]) @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity SNR or SINAD at the specified sensitivity level Value should be between -1000 and 1000. """ val = self._get_property("SNR/SINAD at Sensitivity ") - return val # type: ignore + return val # type: ignore @snrsinad_at_sensitivity_.setter - def snrsinad_at_sensitivity_(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SNR/SINAD at Sensitivity ={value}"]) + def snrsinad_at_sensitivity_(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"SNR/SINAD at Sensitivity ={value}"] + ) @property def perform_rx_intermod_analysis(self) -> bool: @@ -208,14 +198,14 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Rx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Rx Intermod Analysis={value}"] + ) @property def amplifier_saturation_level(self) -> float: @@ -226,32 +216,30 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Rx's 1 dB Compression Point - total power > P1dB saturates the receiver Value should be between -1000 and 1000. """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -262,14 +250,12 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def max_intermod_order(self) -> int: @@ -279,11 +265,8 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py index b8c8c9583fe..bd695dfa262 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SamplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,11 +40,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Min: + "Min: Value should be greater than 1. - "Max: + "Max: Value should be greater than 1. """ return self._get_table_data() @@ -50,25 +54,23 @@ def table_data(self, value): self._set_table_data(value) class SamplingTypeOption(Enum): - SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" # eslint-disable-line no-eval - RANDOM_SAMPLING = "Random Sampling" # eslint-disable-line no-eval - UNIFORM_SAMPLING = "Uniform Sampling" # eslint-disable-line no-eval + SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" # eslint-disable-line no-eval + RANDOM_SAMPLING = "Random Sampling" # eslint-disable-line no-eval + UNIFORM_SAMPLING = "Uniform Sampling" # eslint-disable-line no-eval @property def sampling_type(self) -> SamplingTypeOption: """Sampling Type Sampling to apply to this configuration - """ + """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sampling Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sampling Type={value.value}"]) @property def specify_percentage(self) -> bool: @@ -79,14 +81,12 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @specify_percentage.setter def specify_percentage(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Specify Percentage={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Specify Percentage={value}"]) @property def percentage_of_channels(self) -> float: @@ -96,13 +96,11 @@ def percentage_of_channels(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Percentage of Channels") - return val # type: ignore + return val # type: ignore @percentage_of_channels.setter - def percentage_of_channels(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Percentage of Channels={value}"]) + def percentage_of_channels(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percentage of Channels={value}"]) @property def max__channelsrangeband(self) -> int: @@ -112,13 +110,13 @@ def max__channelsrangeband(self) -> int: Value should be between 1 and 100000. """ val = self._get_property("Max # Channels/Range/Band") - return val # type: ignore + return val # type: ignore @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max # Channels/Range/Band={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Max # Channels/Range/Band={value}"] + ) @property def seed(self) -> int: @@ -128,13 +126,11 @@ def seed(self) -> int: Value should be greater than 0. """ val = self._get_property("Seed") - return val # type: ignore + return val # type: ignore @seed.setter def seed(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Seed={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Seed={value}"]) @property def total_tx_channels(self) -> int: @@ -142,9 +138,9 @@ def total_tx_channels(self) -> int: Total number of transmit channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Tx Channels") - return val # type: ignore + return val # type: ignore @property def total_rx_channels(self) -> int: @@ -152,16 +148,15 @@ def total_rx_channels(self) -> int: Total number of receive channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Rx Channels") - return val # type: ignore + return val # type: ignore @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py index fc3cee34fb9..18ecdcc9fcd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SceneGroupNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -59,14 +63,14 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -76,13 +80,11 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val # type: ignore @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -92,33 +94,29 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val # type: ignore @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] - return val # type: ignore + return val # type: ignore @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -128,13 +126,11 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val # type: ignore @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -144,13 +140,11 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val # type: ignore @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def show_axes(self) -> bool: @@ -160,14 +154,12 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def box_color(self): @@ -177,26 +169,21 @@ def box_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Box Color") - return val # type: ignore + return val # type: ignore @box_color.setter def box_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Box Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Box Color={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py index e6b31f21cd0..fa7a688da57 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SelectivityTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,15 +56,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -70,14 +72,12 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -87,53 +87,47 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -143,13 +137,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -159,46 +151,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -208,13 +196,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -224,13 +210,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -240,13 +224,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -257,12 +239,9 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py index 4a4e8b5b0d6..c8e0e67b9c5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class SolutionCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,14 +45,12 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -59,14 +60,12 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -76,27 +75,22 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py index 1ecfb140c4d..73df11d538a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class SolutionsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,12 +45,9 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py index 8fd8b127cbc..55c8764a15a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class SpurTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -51,15 +55,13 @@ def channel_frequency(self): """Channel Frequency Select band channel frequency to display - """ + """ val = self._get_property("Channel Frequency") - return val # type: ignore + return val # type: ignore @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: @@ -67,10 +69,10 @@ def transmit_frequency(self) -> float: The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset) - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def data_source(self): @@ -78,15 +80,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,14 +96,12 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -113,53 +111,47 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -169,13 +161,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -185,46 +175,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -234,13 +220,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -250,13 +234,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -266,13 +248,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -283,12 +263,9 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py index d67a9f49877..9c13aaf52c5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TRSwitchTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -70,13 +72,11 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -84,15 +84,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -102,14 +100,12 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -119,53 +115,47 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -175,13 +165,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -191,46 +179,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -240,13 +224,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -256,13 +238,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -272,13 +252,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -289,12 +267,9 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index 01f7a66a125..5c9a04f19f0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TR_Switch(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -49,13 +53,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,68 +67,62 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TxPortOption(Enum): - PORT_1 = "Port 1" # eslint-disable-line no-eval - PORT_2 = "Port 2" # eslint-disable-line no-eval + PORT_1 = "Port 1" # eslint-disable-line no-eval + PORT_2 = "Port 2" # eslint-disable-line no-eval @property def tx_port(self) -> TxPortOption: """Tx Port Specifies which port on the TR Switch is part of the Tx path. - """ + """ val = self._get_property("Tx Port") val = self.TxPortOption[val.upper()] - return val # type: ignore + return val # type: ignore @tx_port.setter def tx_port(self, value: TxPortOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Port={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Port={value.value}"]) class CommonPortLocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def common_port_location(self) -> CommonPortLocationOption: """Common Port Location Defines the orientation of the tr switch. - """ + """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val.upper()] - return val # type: ignore + return val # type: ignore @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Common Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Common Port Location={value.value}"] + ) @property def insertion_loss(self) -> float: @@ -136,13 +132,11 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return val # type: ignore @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_isolation(self) -> bool: @@ -153,14 +147,12 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -170,13 +162,11 @@ def isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return val # type: ignore @isolation.setter - def isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Isolation={value}"]) + def isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -187,14 +177,12 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -204,13 +192,11 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return val # type: ignore @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -221,14 +207,12 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -239,14 +223,12 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -257,14 +239,12 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -275,12 +255,9 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index 507735535e2..afcf60b9aac 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Terminator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -49,13 +53,11 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -65,32 +67,28 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return val # type: ignore @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -98,36 +96,32 @@ def type(self) -> TypeOption: Type of terminator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class PortLocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_location(self) -> PortLocationOption: """Port Location Defines the orientation of the terminator. - """ + """ val = self._get_property("Port Location") val = self.PortLocationOption[val.upper()] - return val # type: ignore + return val # type: ignore @port_location.setter def port_location(self, value: PortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port Location={value.value}"]) @property def vswr(self) -> float: @@ -139,20 +133,17 @@ def vswr(self) -> float: Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return val # type: ignore @vswr.setter - def vswr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"VSWR={value}"]) + def vswr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore - + return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py index bfdfd07de53..bf80518fc77 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TestNoiseTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -70,13 +72,11 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -84,15 +84,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -102,14 +100,12 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -119,53 +115,47 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -175,13 +165,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -191,46 +179,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -240,13 +224,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -256,13 +238,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -272,13 +252,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -289,14 +267,12 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -307,14 +283,12 @@ def frequency_1(self) -> float: """ val = self._get_property("Frequency 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_1.setter - def frequency_1(self, value : float|str): + def frequency_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -325,14 +299,12 @@ def amplitude_1(self) -> float: """ val = self._get_property("Amplitude 1") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_1.setter - def amplitude_1(self, value : float|str): + def amplitude_1(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -343,14 +315,12 @@ def bandwidth_1(self) -> float: """ val = self._get_property("Bandwidth 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_1.setter - def bandwidth_1(self, value : float|str): + def bandwidth_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -361,14 +331,12 @@ def frequency_2(self) -> float: """ val = self._get_property("Frequency 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_2.setter - def frequency_2(self, value : float|str): + def frequency_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -379,14 +347,12 @@ def amplitude_2(self) -> float: """ val = self._get_property("Amplitude 2") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_2.setter - def amplitude_2(self, value : float|str): + def amplitude_2(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -397,14 +363,12 @@ def bandwidth_2(self) -> float: """ val = self._get_property("Bandwidth 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_2.setter - def bandwidth_2(self, value : float|str): + def bandwidth_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -414,11 +378,8 @@ def noise_level(self) -> float: Value should be between -200 and 0. """ val = self._get_property("Noise Level") - return val # type: ignore + return val # type: ignore @noise_level.setter - def noise_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Level={value}"]) - + def noise_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py index 69151b5f025..0d75b168b11 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py @@ -1,30 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class TopLevelSimulation(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False EmitNode.__init__(self, emit_obj, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py index a6b6e598a89..dc91d6a65e6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class TouchstoneCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -53,14 +56,12 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -70,14 +71,12 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -87,29 +86,25 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def filename(self) -> str: @@ -119,22 +114,20 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val # type: ignore @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File Coupling data generated by Savant and exported as a matched file - """ + """ val = self._get_property("Savant Matched Coupling File") - return val # type: ignore + return val # type: ignore @property def enable_em_isolation(self) -> bool: @@ -144,14 +137,12 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enable_em_isolation.setter def enable_em_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable EM Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable EM Isolation={value}"]) @property def port_antenna_assignment(self): @@ -159,28 +150,23 @@ def port_antenna_assignment(self): Maps each port in the coupling file to an antenna in the project "A list of values." - """ + """ val = self._get_property("Port-Antenna Assignment") - return val # type: ignore + return val # type: ignore @port_antenna_assignment.setter def port_antenna_assignment(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port-Antenna Assignment={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port-Antenna Assignment={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val # type: ignore @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py index ee90d2065b7..cd18f074801 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TunableTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -70,30 +72,26 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def frequency(self) -> float: """Frequency Tunable filter center frequency - """ + """ val = self._get_property("Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency.setter - def frequency(self, value : float|str): + def frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency={value}"]) @property def data_source(self): @@ -101,15 +99,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -119,14 +115,12 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -136,53 +130,47 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -192,13 +180,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -208,46 +194,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -257,13 +239,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -273,13 +253,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -289,13 +267,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -306,12 +282,9 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py index 1aa3e567a82..84352141fc6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,44 +58,38 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val # type: ignore @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val # type: ignore @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -101,14 +99,12 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -118,29 +114,25 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def ground_reflection_coeff(self) -> float: @@ -150,13 +142,11 @@ def ground_reflection_coeff(self) -> float: Value should be between -100 and 100. """ val = self._get_property("Ground Reflection Coeff.") - return val # type: ignore + return val # type: ignore @ground_reflection_coeff.setter - def ground_reflection_coeff(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ground Reflection Coeff.={value}"]) + def ground_reflection_coeff(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ground Reflection Coeff.={value}"]) @property def pointspeak(self) -> int: @@ -166,13 +156,11 @@ def pointspeak(self) -> int: Value should be between 3 and 100. """ val = self._get_property("Points/Peak") - return val # type: ignore + return val # type: ignore @pointspeak.setter def pointspeak(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Points/Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Points/Peak={value}"]) @property def custom_fading_margin(self) -> float: @@ -183,13 +171,11 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -200,13 +186,11 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -217,35 +201,31 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -256,13 +236,11 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -272,13 +250,11 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -288,14 +264,12 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -306,13 +280,11 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -322,13 +294,11 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -339,13 +309,11 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -356,14 +324,14 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -373,13 +341,11 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -389,13 +355,11 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -405,11 +369,10 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py index 1fc83e5a214..8273be467a0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TwoToneTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return val # type: ignore @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -70,13 +72,11 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return val # type: ignore @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -84,15 +84,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val # type: ignore @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -102,14 +100,12 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -119,53 +115,47 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val # type: ignore @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val # type: ignore @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -175,13 +165,11 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return val # type: ignore @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -191,46 +179,42 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val # type: ignore @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val # type: ignore @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -240,13 +224,11 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return val # type: ignore @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -256,13 +238,11 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val # type: ignore @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -272,13 +252,11 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return val # type: ignore @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -289,14 +267,12 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -307,14 +283,12 @@ def frequency_1(self) -> float: """ val = self._get_property("Frequency 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_1.setter - def frequency_1(self, value : float|str): + def frequency_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -325,14 +299,12 @@ def amplitude_1(self) -> float: """ val = self._get_property("Amplitude 1") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_1.setter - def amplitude_1(self, value : float|str): + def amplitude_1(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -343,14 +315,12 @@ def bandwidth_1(self) -> float: """ val = self._get_property("Bandwidth 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_1.setter - def bandwidth_1(self, value : float|str): + def bandwidth_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -361,14 +331,12 @@ def frequency_2(self) -> float: """ val = self._get_property("Frequency 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @frequency_2.setter - def frequency_2(self, value : float|str): + def frequency_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -379,14 +347,12 @@ def amplitude_2(self) -> float: """ val = self._get_property("Amplitude 2") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplitude_2.setter - def amplitude_2(self, value : float|str): + def amplitude_2(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -397,14 +363,12 @@ def bandwidth_2(self) -> float: """ val = self._get_property("Bandwidth 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @bandwidth_2.setter - def bandwidth_2(self, value : float|str): + def bandwidth_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -414,11 +378,8 @@ def noise_level(self) -> float: Value should be between -200 and 0. """ val = self._get_property("Noise Level") - return val # type: ignore + return val # type: ignore @noise_level.setter - def noise_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Level={value}"]) - + def noise_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py index f19d135fb42..156ccb7d1ef 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxBbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -46,9 +50,9 @@ def delete(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): Value should be between -200 and 150. """ return self._get_table_data() @@ -60,33 +64,31 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class NoiseBehaviorOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE_BANDWIDTH = "Relative (Bandwidth)" # eslint-disable-line no-eval - RELATIVE_OFFSET = "Relative (Offset)" # eslint-disable-line no-eval - EQUATION = "Equation" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE_BANDWIDTH = "Relative (Bandwidth)" # eslint-disable-line no-eval + RELATIVE_OFFSET = "Relative (Offset)" # eslint-disable-line no-eval + EQUATION = "Equation" # eslint-disable-line no-eval @property def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior Specifies the behavior of the parametric noise profile - """ + """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val.upper()] - return val # type: ignore + return val # type: ignore @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Behavior={value.value}"]) @property def use_log_linear_interpolation(self) -> bool: @@ -97,12 +99,11 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Log-Linear Interpolation={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py index 8ebbf405e13..8d91ffbaea1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxHarmonicNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -45,29 +49,28 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class HarmonicTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units Specifies the units for the Harmonics - """ + """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val.upper()] - return val # type: ignore + return val # type: ignore @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py index 8597fdab4e9..7ce15f09aea 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class TxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -49,7 +52,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val # type: ignore @property def source_file(self) -> str: @@ -59,17 +62,17 @@ def source_file(self) -> str: Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val # type: ignore @property def transmit_frequency(self) -> float: """Transmit Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @property def use_ams_limits(self) -> bool: @@ -79,14 +82,12 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -97,14 +98,12 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -115,14 +114,12 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def exclude_harmonics_below_noise(self) -> bool: @@ -132,21 +129,20 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Exclude Harmonics Below Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py index 422aea16c8c..870ae442f29 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxNbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -45,46 +49,43 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class NarrowbandBehaviorOption(Enum): - ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" # eslint-disable-line no-eval - RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" # eslint-disable-line no-eval + ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" # eslint-disable-line no-eval + RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" # eslint-disable-line no-eval @property def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior Specifies the behavior of the parametric narrowband emissions mask - """ + """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val.upper()] - return val # type: ignore + return val # type: ignore @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Narrowband Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"] + ) @property def measurement_frequency(self) -> float: """Measurement Frequency Measurement frequency for the absolute freq/amp pairs. - """ + """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @measurement_frequency.setter - def measurement_frequency(self, value : float|str): + def measurement_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Frequency={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Frequency={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py index 4ebd1f458f7..3937656749a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ..EmitNode import EmitNode + class TxSpectralProfEmitterNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +39,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -47,17 +50,15 @@ def output_voltage_peak(self) -> float: """Output Voltage Peak Output High Voltage Level: maximum voltage of the digital signal - """ + """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") - return val # type: ignore + return val # type: ignore @output_voltage_peak.setter - def output_voltage_peak(self, value : float|str): + def output_voltage_peak(self, value: float | str): value = self._convert_to_internal_units(value, "Voltage") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Voltage Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Voltage Peak={value}"]) @property def include_phase_noise(self) -> bool: @@ -67,14 +68,12 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -84,13 +83,11 @@ def tx_broadband_noise(self) -> float: Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @tx_broadband_noise.setter - def tx_broadband_noise(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -100,14 +97,14 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Tx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] + ) @property def internal_amp_gain(self) -> float: @@ -117,13 +114,11 @@ def internal_amp_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @internal_amp_gain.setter - def internal_amp_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -133,13 +128,11 @@ def noise_figure(self) -> float: Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -150,18 +143,18 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -169,14 +162,12 @@ def p1_db_point_ref_input_(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -187,14 +178,12 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -204,13 +193,11 @@ def reverse_isolation(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -220,11 +207,8 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py index 7e1e7ead384..6b980ddf4aa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxSpectralProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -37,51 +41,47 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpectrumTypeOption(Enum): - NARROWBAND__BROADBAND = "Narrowband & Broadband" # eslint-disable-line no-eval - BROADBAND_ONLY = "Broadband Only" # eslint-disable-line no-eval + NARROWBAND__BROADBAND = "Narrowband & Broadband" # eslint-disable-line no-eval + BROADBAND_ONLY = "Broadband Only" # eslint-disable-line no-eval @property def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type Specifies EMI Margins to calculate - """ + """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spectrum Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spectrum Type={value.value}"]) class TxPowerOption(Enum): - PEAK_POWER = "Peak Power" # eslint-disable-line no-eval - AVERAGE_POWER = "Average Power" # eslint-disable-line no-eval + PEAK_POWER = "Peak Power" # eslint-disable-line no-eval + AVERAGE_POWER = "Average Power" # eslint-disable-line no-eval @property def tx_power(self) -> TxPowerOption: """Tx Power Method used to specify the power - """ + """ val = self._get_property("Tx Power") val = self.TxPowerOption[val.upper()] - return val # type: ignore + return val # type: ignore @tx_power.setter def tx_power(self, value: TxPowerOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Power={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Power={value.value}"]) @property def peak_power(self) -> float: @@ -92,14 +92,12 @@ def peak_power(self) -> float: """ val = self._get_property("Peak Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @peak_power.setter - def peak_power(self, value : float|str): + def peak_power(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Peak Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Power={value}"]) @property def average_power(self) -> float: @@ -110,14 +108,12 @@ def average_power(self) -> float: """ val = self._get_property("Average Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @average_power.setter - def average_power(self, value : float|str): + def average_power(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Average Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Average Power={value}"]) @property def include_phase_noise(self) -> bool: @@ -127,14 +123,12 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -144,35 +138,31 @@ def tx_broadband_noise(self) -> float: Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return val # type: ignore @tx_broadband_noise.setter - def tx_broadband_noise(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) class HarmonicTaperOption(Enum): - CONSTANT = "Constant" # eslint-disable-line no-eval - MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval - MIL_STD_461G_NAVY = "MIL-STD-461G Navy" # eslint-disable-line no-eval - DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval + CONSTANT = "Constant" # eslint-disable-line no-eval + MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval + MIL_STD_461G_NAVY = "MIL-STD-461G Navy" # eslint-disable-line no-eval + DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval @property def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper Taper type used to set amplitude of harmonics - """ + """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val.upper()] - return val # type: ignore + return val # type: ignore @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Taper={value.value}"]) @property def harmonic_amplitude(self) -> float: @@ -182,13 +172,11 @@ def harmonic_amplitude(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Amplitude") - return val # type: ignore + return val # type: ignore @harmonic_amplitude.setter - def harmonic_amplitude(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Amplitude={value}"]) + def harmonic_amplitude(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Amplitude={value}"]) @property def harmonic_slope(self) -> float: @@ -198,13 +186,11 @@ def harmonic_slope(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Slope") - return val # type: ignore + return val # type: ignore @harmonic_slope.setter - def harmonic_slope(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Slope={value}"]) + def harmonic_slope(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Slope={value}"]) @property def harmonic_intercept(self) -> float: @@ -214,13 +200,11 @@ def harmonic_intercept(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Intercept") - return val # type: ignore + return val # type: ignore @harmonic_intercept.setter - def harmonic_intercept(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Intercept={value}"]) + def harmonic_intercept(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Intercept={value}"]) @property def enable_harmonic_bw_expansion(self) -> bool: @@ -231,14 +215,14 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Harmonic BW Expansion={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Enable Harmonic BW Expansion={value}"] + ) @property def number_of_harmonics(self) -> int: @@ -248,13 +232,11 @@ def number_of_harmonics(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Number of Harmonics") - return val # type: ignore + return val # type: ignore @number_of_harmonics.setter def number_of_harmonics(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Harmonics={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Harmonics={value}"]) @property def second_harmonic_level(self) -> float: @@ -264,13 +246,11 @@ def second_harmonic_level(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Second Harmonic Level") - return val # type: ignore + return val # type: ignore @second_harmonic_level.setter - def second_harmonic_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Second Harmonic Level={value}"]) + def second_harmonic_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Second Harmonic Level={value}"]) @property def third_harmonic_level(self) -> float: @@ -280,13 +260,11 @@ def third_harmonic_level(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Third Harmonic Level") - return val # type: ignore + return val # type: ignore @third_harmonic_level.setter - def third_harmonic_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Third Harmonic Level={value}"]) + def third_harmonic_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Third Harmonic Level={value}"]) @property def other_harmonic_levels(self) -> float: @@ -296,13 +274,11 @@ def other_harmonic_levels(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Other Harmonic Levels") - return val # type: ignore + return val # type: ignore @other_harmonic_levels.setter - def other_harmonic_levels(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Other Harmonic Levels={value}"]) + def other_harmonic_levels(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Other Harmonic Levels={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -312,14 +288,14 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Tx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] + ) @property def internal_amp_gain(self) -> float: @@ -329,13 +305,11 @@ def internal_amp_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return val # type: ignore @internal_amp_gain.setter - def internal_amp_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -345,13 +319,11 @@ def noise_figure(self) -> float: Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return val # type: ignore @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -362,18 +334,18 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -381,14 +353,12 @@ def p1_db_point_ref_input_(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -399,14 +369,12 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return val # type: ignore @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -416,13 +384,11 @@ def reverse_isolation(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return val # type: ignore @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -432,11 +398,8 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return val # type: ignore @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py index 4941863931e..83ebc7beacb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class TxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,13 +48,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -62,29 +66,26 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] - return val # type: ignore + return val # type: ignore @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spur Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py index 1f2859bb219..5587df10ceb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class WalfischCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,44 +58,38 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val # type: ignore @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val # type: ignore @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -101,14 +99,12 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -118,69 +114,61 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val # type: ignore @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class PathLossTypeOption(Enum): - LOS_URBAN_CANYON = "LOS (Urban Canyon)" # eslint-disable-line no-eval - NLOS = "NLOS" # eslint-disable-line no-eval + LOS_URBAN_CANYON = "LOS (Urban Canyon)" # eslint-disable-line no-eval + NLOS = "NLOS" # eslint-disable-line no-eval @property def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type Specify LOS vs NLOS for the Walfisch-Ikegami model - """ + """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Path Loss Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Type={value.value}"]) class EnvironmentOption(Enum): - DENSE_METRO = "Dense Metro" # eslint-disable-line no-eval - SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" # eslint-disable-line no-eval + DENSE_METRO = "Dense Metro" # eslint-disable-line no-eval + SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Walfisch model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] - return val # type: ignore + return val # type: ignore @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def roof_height(self) -> float: @@ -191,14 +179,12 @@ def roof_height(self) -> float: """ val = self._get_property("Roof Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @roof_height.setter - def roof_height(self, value : float|str): + def roof_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Roof Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Roof Height={value}"]) @property def distance_between_buildings(self) -> float: @@ -209,14 +195,14 @@ def distance_between_buildings(self) -> float: """ val = self._get_property("Distance Between Buildings") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @distance_between_buildings.setter - def distance_between_buildings(self, value : float|str): + def distance_between_buildings(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Distance Between Buildings={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Distance Between Buildings={value}"] + ) @property def street_width(self) -> float: @@ -227,14 +213,12 @@ def street_width(self) -> float: """ val = self._get_property("Street Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return val # type: ignore @street_width.setter - def street_width(self, value : float|str): + def street_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Street Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Street Width={value}"]) @property def incidence_angle(self) -> float: @@ -244,13 +228,11 @@ def incidence_angle(self) -> float: Value should be between 0 and 90. """ val = self._get_property("Incidence Angle") - return val # type: ignore + return val # type: ignore @incidence_angle.setter - def incidence_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Incidence Angle={value}"]) + def incidence_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Incidence Angle={value}"]) @property def custom_fading_margin(self) -> float: @@ -261,13 +243,11 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return val # type: ignore @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -278,13 +258,11 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return val # type: ignore @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -295,35 +273,31 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return val # type: ignore @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -334,13 +308,11 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return val # type: ignore @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -350,13 +322,11 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return val # type: ignore @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -366,14 +336,12 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -384,13 +352,11 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return val # type: ignore @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -400,13 +366,11 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return val # type: ignore @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -417,13 +381,11 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return val # type: ignore @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -434,14 +396,14 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -451,13 +413,11 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return val # type: ignore @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -467,13 +427,11 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return val # type: ignore @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -483,11 +441,10 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return val # type: ignore @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py index 7e6fbb0ce2c..f087e04f687 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ..EmitNode import EmitNode + class Waveform(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -48,38 +52,34 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") - return val # type: ignore + return val # type: ignore @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) class WaveformOption(Enum): - PERIODIC_CLOCK = "Periodic Clock" # eslint-disable-line no-eval - SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" # eslint-disable-line no-eval - PRBS = "PRBS" # eslint-disable-line no-eval - PRBS_PERIODIC = "PRBS (Periodic)" # eslint-disable-line no-eval - IMPORTED = "Imported" # eslint-disable-line no-eval + PERIODIC_CLOCK = "Periodic Clock" # eslint-disable-line no-eval + SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" # eslint-disable-line no-eval + PRBS = "PRBS" # eslint-disable-line no-eval + PRBS_PERIODIC = "PRBS (Periodic)" # eslint-disable-line no-eval + IMPORTED = "Imported" # eslint-disable-line no-eval @property def waveform(self) -> WaveformOption: """Waveform Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Waveform") val = self.WaveformOption[val.upper()] - return val # type: ignore + return val # type: ignore @waveform.setter def waveform(self, value: WaveformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Waveform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveform={value.value}"]) @property def start_frequency(self) -> float: @@ -90,14 +90,12 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -108,14 +106,12 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -126,14 +122,12 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @channel_spacing.setter - def channel_spacing(self, value : float|str): + def channel_spacing(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) @property def clock_duty_cycle(self) -> float: @@ -143,13 +137,11 @@ def clock_duty_cycle(self) -> float: Value should be between 0.001 and 1. """ val = self._get_property("Clock Duty Cycle") - return val # type: ignore + return val # type: ignore @clock_duty_cycle.setter - def clock_duty_cycle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Clock Duty Cycle={value}"]) + def clock_duty_cycle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Duty Cycle={value}"]) @property def clock_risefall_time(self) -> float: @@ -160,35 +152,31 @@ def clock_risefall_time(self) -> float: """ val = self._get_property("Clock Rise/Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @clock_risefall_time.setter - def clock_risefall_time(self, value : float|str): + def clock_risefall_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Clock Rise/Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Rise/Fall Time={value}"]) class SpreadingTypeOption(Enum): - LOW_SPREAD = "Low Spread" # eslint-disable-line no-eval - CENTER_SPREAD = "Center Spread" # eslint-disable-line no-eval - HIGH_SPREAD = "High Spread" # eslint-disable-line no-eval + LOW_SPREAD = "Low Spread" # eslint-disable-line no-eval + CENTER_SPREAD = "Center Spread" # eslint-disable-line no-eval + HIGH_SPREAD = "High Spread" # eslint-disable-line no-eval @property def spreading_type(self) -> SpreadingTypeOption: """Spreading Type Type of spreading employed by the Spread Spectrum Clock - """ + """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @spreading_type.setter def spreading_type(self, value: SpreadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spreading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spreading Type={value.value}"]) @property def spread_percentage(self) -> float: @@ -198,13 +186,11 @@ def spread_percentage(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Spread Percentage") - return val # type: ignore + return val # type: ignore @spread_percentage.setter - def spread_percentage(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spread Percentage={value}"]) + def spread_percentage(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spread Percentage={value}"]) @property def imported_spectrum(self) -> str: @@ -212,22 +198,20 @@ def imported_spectrum(self) -> str: Value should be a full file path. """ val = self._get_property("Imported Spectrum") - return val # type: ignore + return val # type: ignore @imported_spectrum.setter def imported_spectrum(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Imported Spectrum={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Imported Spectrum={value}"]) @property def raw_data_format(self) -> str: """Raw Data Format Format of the imported raw data - """ + """ val = self._get_property("Raw Data Format") - return val # type: ignore + return val # type: ignore @property def system_impedance(self) -> float: @@ -238,14 +222,12 @@ def system_impedance(self) -> float: """ val = self._get_property("System Impedance") val = self._convert_from_internal_units(float(val), "Resistance") - return val # type: ignore + return val # type: ignore @system_impedance.setter - def system_impedance(self, value : float|str): + def system_impedance(self, value: float | str): value = self._convert_to_internal_units(value, "Resistance") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"System Impedance={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"System Impedance={value}"]) @property def advanced_extraction_params(self) -> bool: @@ -255,14 +237,14 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Advanced Extraction Params={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Advanced Extraction Params={value}"] + ) @property def nb_window_size(self) -> float: @@ -273,13 +255,11 @@ def nb_window_size(self) -> float: Value should be greater than 3. """ val = self._get_property("NB Window Size") - return val # type: ignore + return val # type: ignore @nb_window_size.setter - def nb_window_size(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NB Window Size={value}"]) + def nb_window_size(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Window Size={value}"]) @property def bb_smoothing_factor(self) -> float: @@ -289,13 +269,11 @@ def bb_smoothing_factor(self) -> float: Value should be greater than 1. """ val = self._get_property("BB Smoothing Factor") - return val # type: ignore + return val # type: ignore @bb_smoothing_factor.setter - def bb_smoothing_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Smoothing Factor={value}"]) + def bb_smoothing_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Smoothing Factor={value}"]) @property def nb_detector_threshold(self) -> float: @@ -305,33 +283,29 @@ def nb_detector_threshold(self) -> float: Value should be between 2 and 10. """ val = self._get_property("NB Detector Threshold") - return val # type: ignore + return val # type: ignore @nb_detector_threshold.setter - def nb_detector_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NB Detector Threshold={value}"]) + def nb_detector_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Detector Threshold={value}"]) class AlgorithmOption(Enum): - FFT = "FFT" # eslint-disable-line no-eval - FOURIER_TRANSFORM = "Fourier Transform" # eslint-disable-line no-eval + FFT = "FFT" # eslint-disable-line no-eval + FOURIER_TRANSFORM = "Fourier Transform" # eslint-disable-line no-eval @property def algorithm(self) -> AlgorithmOption: """Algorithm Algorithm used to transform the imported time domain spectrum - """ + """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val.upper()] - return val # type: ignore + return val # type: ignore @algorithm.setter def algorithm(self, value: AlgorithmOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Algorithm={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Algorithm={value.value}"]) @property def start_time(self) -> float: @@ -342,31 +316,27 @@ def start_time(self) -> float: """ val = self._get_property("Start Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @start_time.setter - def start_time(self, value : float|str): + def start_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Time={value}"]) @property def stop_time(self) -> float: """Stop Time Final time of the imported time domain spectrum - """ + """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @stop_time.setter - def stop_time(self, value : float|str): + def stop_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Time={value}"]) @property def max_frequency(self) -> float: @@ -377,41 +347,37 @@ def max_frequency(self) -> float: """ val = self._get_property("Max Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return val # type: ignore @max_frequency.setter - def max_frequency(self, value : float|str): + def max_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Frequency={value}"]) class WindowTypeOption(Enum): - RECTANGULAR = "Rectangular" # eslint-disable-line no-eval - BARTLETT = "Bartlett" # eslint-disable-line no-eval - BLACKMAN = "Blackman" # eslint-disable-line no-eval - HAMMING = "Hamming" # eslint-disable-line no-eval - HANNING = "Hanning" # eslint-disable-line no-eval - KAISER = "Kaiser" # eslint-disable-line no-eval - LANZCOS = "Lanzcos" # eslint-disable-line no-eval - WELCH = "Welch" # eslint-disable-line no-eval - WEBER = "Weber" # eslint-disable-line no-eval + RECTANGULAR = "Rectangular" # eslint-disable-line no-eval + BARTLETT = "Bartlett" # eslint-disable-line no-eval + BLACKMAN = "Blackman" # eslint-disable-line no-eval + HAMMING = "Hamming" # eslint-disable-line no-eval + HANNING = "Hanning" # eslint-disable-line no-eval + KAISER = "Kaiser" # eslint-disable-line no-eval + LANZCOS = "Lanzcos" # eslint-disable-line no-eval + WELCH = "Welch" # eslint-disable-line no-eval + WEBER = "Weber" # eslint-disable-line no-eval @property def window_type(self) -> WindowTypeOption: """Window Type Windowing scheme used for importing time domain spectrum - """ + """ val = self._get_property("Window Type") val = self.WindowTypeOption[val.upper()] - return val # type: ignore + return val # type: ignore @window_type.setter def window_type(self, value: WindowTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Window Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Window Type={value.value}"]) @property def kaiser_parameter(self) -> float: @@ -421,13 +387,11 @@ def kaiser_parameter(self) -> float: Value should be greater than 0. """ val = self._get_property("Kaiser Parameter") - return val # type: ignore + return val # type: ignore @kaiser_parameter.setter - def kaiser_parameter(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Kaiser Parameter={value}"]) + def kaiser_parameter(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Kaiser Parameter={value}"]) @property def adjust_coherent_gain(self) -> bool: @@ -437,14 +401,12 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adjust Coherent Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adjust Coherent Gain={value}"]) @property def data_rate(self) -> float: @@ -455,14 +417,12 @@ def data_rate(self) -> float: """ val = self._get_property("Data Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return val # type: ignore @data_rate.setter - def data_rate(self, value : float|str): + def data_rate(self, value: float | str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Rate={value}"]) @property def num_of_bits(self) -> int: @@ -472,13 +432,11 @@ def num_of_bits(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Num of Bits") - return val # type: ignore + return val # type: ignore @num_of_bits.setter def num_of_bits(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Num of Bits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Num of Bits={value}"]) @property def use_envelope(self) -> bool: @@ -488,14 +446,12 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - val = (val == 'true') - return val # type: ignore + val = val == "true" + return val # type: ignore @use_envelope.setter def use_envelope(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Envelope={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Envelope={value}"]) @property def min_ptsnull(self) -> int: @@ -505,13 +461,11 @@ def min_ptsnull(self) -> int: Value should be between 2 and 50. """ val = self._get_property("Min Pts/Null") - return val # type: ignore + return val # type: ignore @min_ptsnull.setter def min_ptsnull(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pts/Null={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pts/Null={value}"]) @property def delay_skew(self) -> float: @@ -522,12 +476,9 @@ def delay_skew(self) -> float: """ val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return val # type: ignore @delay_skew.setter - def delay_skew(self, value : float|str): + def delay_skew(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Delay Skew={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Delay Skew={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index bd6f8b1de0e..7f7a748aedf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,3 +1,27 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from .Amplifier import Amplifier from .AntennaNode import AntennaNode from .AntennaPassband import AntennaPassband @@ -33,38 +57,6 @@ from .ProfileTraceNode import ProfileTraceNode from .PropagationLossCouplingNode import PropagationLossCouplingNode from .RadioNode import RadioNode -from .ResultPlotNode import ResultPlotNode -from .RfSystemGroup import RfSystemGroup -from .RxMeasNode import RxMeasNode -from .RxMixerProductNode import RxMixerProductNode -from .RxSaturationNode import RxSaturationNode -from .RxSelectivityNode import RxSelectivityNode -from .RxSpurNode import RxSpurNode -from .RxSusceptibilityProfNode import RxSusceptibilityProfNode -from .SamplingNode import SamplingNode -from .SceneGroupNode import SceneGroupNode -from .SelectivityTraceNode import SelectivityTraceNode -from .SolutionCouplingNode import SolutionCouplingNode -from .SolutionsNode import SolutionsNode -from .SpurTraceNode import SpurTraceNode -from .TR_Switch import TR_Switch -from .TRSwitchTraceNode import TRSwitchTraceNode -from .Terminator import Terminator -from .TestNoiseTraceNode import TestNoiseTraceNode -from .TopLevelSimulation import TopLevelSimulation -from .TouchstoneCouplingNode import TouchstoneCouplingNode -from .TunableTraceNode import TunableTraceNode -from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode -from .TwoToneTraceNode import TwoToneTraceNode -from .TxBbEmissionNode import TxBbEmissionNode -from .TxHarmonicNode import TxHarmonicNode -from .TxMeasNode import TxMeasNode -from .TxNbEmissionNode import TxNbEmissionNode -from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode -from .TxSpectralProfNode import TxSpectralProfNode -from .TxSpurNode import TxSpurNode -from .WalfischCouplingNode import WalfischCouplingNode -from .Waveform import Waveform from .ReadOnlyAmplifier import ReadOnlyAmplifier from .ReadOnlyAntennaNode import ReadOnlyAntennaNode from .ReadOnlyAntennaPassband import ReadOnlyAntennaPassband @@ -113,121 +105,153 @@ from .ReadOnlyTxSpurNode import ReadOnlyTxSpurNode from .ReadOnlyWalfischCouplingNode import ReadOnlyWalfischCouplingNode from .ReadOnlyWaveform import ReadOnlyWaveform +from .ResultPlotNode import ResultPlotNode +from .RfSystemGroup import RfSystemGroup +from .RxMeasNode import RxMeasNode +from .RxMixerProductNode import RxMixerProductNode +from .RxSaturationNode import RxSaturationNode +from .RxSelectivityNode import RxSelectivityNode +from .RxSpurNode import RxSpurNode +from .RxSusceptibilityProfNode import RxSusceptibilityProfNode +from .SamplingNode import SamplingNode +from .SceneGroupNode import SceneGroupNode +from .SelectivityTraceNode import SelectivityTraceNode +from .SolutionCouplingNode import SolutionCouplingNode +from .SolutionsNode import SolutionsNode +from .SpurTraceNode import SpurTraceNode +from .TRSwitchTraceNode import TRSwitchTraceNode +from .TR_Switch import TR_Switch +from .Terminator import Terminator +from .TestNoiseTraceNode import TestNoiseTraceNode +from .TopLevelSimulation import TopLevelSimulation +from .TouchstoneCouplingNode import TouchstoneCouplingNode +from .TunableTraceNode import TunableTraceNode +from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode +from .TwoToneTraceNode import TwoToneTraceNode +from .TxBbEmissionNode import TxBbEmissionNode +from .TxHarmonicNode import TxHarmonicNode +from .TxMeasNode import TxMeasNode +from .TxNbEmissionNode import TxNbEmissionNode +from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode +from .TxSpectralProfNode import TxSpectralProfNode +from .TxSpurNode import TxSpurNode +from .WalfischCouplingNode import WalfischCouplingNode +from .Waveform import Waveform __all__ = [ - 'Amplifier', - 'AntennaNode', - 'AntennaPassband', - 'Band', - 'BandFolder', - 'BandTraceNode', - 'CADNode', - 'Cable', - 'CategoriesViewNode', - 'Circulator', - 'CouplingLinkNode', - 'CouplingTraceNode', - 'CouplingsNode', - 'CustomCouplingNode', - 'EmiPlotMarkerNode', - 'EmitSceneNode', - 'ErcegCouplingNode', - 'Filter', - 'FiveGChannelModel', - 'HataCouplingNode', - 'IndoorPropagationCouplingNode', - 'Isolator', - 'LogDistanceCouplingNode', - 'MPlexBandTraceNode', - 'Multiplexer', - 'MultiplexerBand', - 'OutboardTraceNode', - 'ParametricCouplingTraceNode', - 'PlotMarkerNode', - 'PlotNode', - 'PowerDivider', - 'PowerTraceNode', - 'ProfileTraceNode', - 'PropagationLossCouplingNode', - 'RadioNode', - 'ResultPlotNode', - 'RfSystemGroup', - 'RxMeasNode', - 'RxMixerProductNode', - 'RxSaturationNode', - 'RxSelectivityNode', - 'RxSpurNode', - 'RxSusceptibilityProfNode', - 'SamplingNode', - 'SceneGroupNode', - 'SelectivityTraceNode', - 'SolutionCouplingNode', - 'SolutionsNode', - 'SpurTraceNode', - 'TR_Switch', - 'TRSwitchTraceNode', - 'Terminator', - 'TestNoiseTraceNode', - 'TopLevelSimulation', - 'TouchstoneCouplingNode', - 'TunableTraceNode', - 'TwoRayPathLossCouplingNode', - 'TwoToneTraceNode', - 'TxBbEmissionNode', - 'TxHarmonicNode', - 'TxMeasNode', - 'TxNbEmissionNode', - 'TxSpectralProfEmitterNode', - 'TxSpectralProfNode', - 'TxSpurNode', - 'WalfischCouplingNode', - 'Waveform', - 'ReadOnlyAmplifier', - 'ReadOnlyAntennaNode', - 'ReadOnlyAntennaPassband', - 'ReadOnlyBand', - 'ReadOnlyBandFolder', - 'ReadOnlyCADNode', - 'ReadOnlyCable', - 'ReadOnlyCirculator', - 'ReadOnlyCouplingLinkNode', - 'ReadOnlyCouplingsNode', - 'ReadOnlyCustomCouplingNode', - 'ReadOnlyEmitSceneNode', - 'ReadOnlyErcegCouplingNode', - 'ReadOnlyFilter', - 'ReadOnlyFiveGChannelModel', - 'ReadOnlyHataCouplingNode', - 'ReadOnlyIndoorPropagationCouplingNode', - 'ReadOnlyIsolator', - 'ReadOnlyLogDistanceCouplingNode', - 'ReadOnlyMultiplexer', - 'ReadOnlyMultiplexerBand', - 'ReadOnlyPowerDivider', - 'ReadOnlyPropagationLossCouplingNode', - 'ReadOnlyRadioNode', - 'ReadOnlyRfSystemGroup', - 'ReadOnlyRxMeasNode', - 'ReadOnlyRxMixerProductNode', - 'ReadOnlyRxSaturationNode', - 'ReadOnlyRxSelectivityNode', - 'ReadOnlyRxSpurNode', - 'ReadOnlyRxSusceptibilityProfNode', - 'ReadOnlySamplingNode', - 'ReadOnlySceneGroupNode', - 'ReadOnlySolutionCouplingNode', - 'ReadOnlySolutionsNode', - 'ReadOnlyTR_Switch', - 'ReadOnlyTerminator', - 'ReadOnlyTouchstoneCouplingNode', - 'ReadOnlyTwoRayPathLossCouplingNode', - 'ReadOnlyTxBbEmissionNode', - 'ReadOnlyTxHarmonicNode', - 'ReadOnlyTxMeasNode', - 'ReadOnlyTxNbEmissionNode', - 'ReadOnlyTxSpectralProfEmitterNode', - 'ReadOnlyTxSpectralProfNode', - 'ReadOnlyTxSpurNode', - 'ReadOnlyWalfischCouplingNode', - 'ReadOnlyWaveform', + "Amplifier", + "AntennaNode", + "AntennaPassband", + "Band", + "BandFolder", + "BandTraceNode", + "CADNode", + "Cable", + "CategoriesViewNode", + "Circulator", + "CouplingLinkNode", + "CouplingTraceNode", + "CouplingsNode", + "CustomCouplingNode", + "EmiPlotMarkerNode", + "EmitSceneNode", + "ErcegCouplingNode", + "Filter", + "FiveGChannelModel", + "HataCouplingNode", + "IndoorPropagationCouplingNode", + "Isolator", + "LogDistanceCouplingNode", + "MPlexBandTraceNode", + "Multiplexer", + "MultiplexerBand", + "OutboardTraceNode", + "ParametricCouplingTraceNode", + "PlotMarkerNode", + "PlotNode", + "PowerDivider", + "PowerTraceNode", + "ProfileTraceNode", + "PropagationLossCouplingNode", + "RadioNode", + "ResultPlotNode", + "RfSystemGroup", + "RxMeasNode", + "RxMixerProductNode", + "RxSaturationNode", + "RxSelectivityNode", + "RxSpurNode", + "RxSusceptibilityProfNode", + "SamplingNode", + "SceneGroupNode", + "SelectivityTraceNode", + "SolutionCouplingNode", + "SolutionsNode", + "SpurTraceNode", + "TR_Switch", + "TRSwitchTraceNode", + "Terminator", + "TestNoiseTraceNode", + "TopLevelSimulation", + "TouchstoneCouplingNode", + "TunableTraceNode", + "TwoRayPathLossCouplingNode", + "TwoToneTraceNode", + "TxBbEmissionNode", + "TxHarmonicNode", + "TxMeasNode", + "TxNbEmissionNode", + "TxSpectralProfEmitterNode", + "TxSpectralProfNode", + "TxSpurNode", + "WalfischCouplingNode", + "Waveform", + "ReadOnlyAmplifier", + "ReadOnlyAntennaNode", + "ReadOnlyAntennaPassband", + "ReadOnlyBand", + "ReadOnlyBandFolder", + "ReadOnlyCADNode", + "ReadOnlyCable", + "ReadOnlyCirculator", + "ReadOnlyCouplingLinkNode", + "ReadOnlyCouplingsNode", + "ReadOnlyCustomCouplingNode", + "ReadOnlyEmitSceneNode", + "ReadOnlyErcegCouplingNode", + "ReadOnlyFilter", + "ReadOnlyFiveGChannelModel", + "ReadOnlyHataCouplingNode", + "ReadOnlyIndoorPropagationCouplingNode", + "ReadOnlyIsolator", + "ReadOnlyLogDistanceCouplingNode", + "ReadOnlyMultiplexer", + "ReadOnlyMultiplexerBand", + "ReadOnlyPowerDivider", + "ReadOnlyPropagationLossCouplingNode", + "ReadOnlyRadioNode", + "ReadOnlyRfSystemGroup", + "ReadOnlyRxMeasNode", + "ReadOnlyRxMixerProductNode", + "ReadOnlyRxSaturationNode", + "ReadOnlyRxSelectivityNode", + "ReadOnlyRxSpurNode", + "ReadOnlyRxSusceptibilityProfNode", + "ReadOnlySamplingNode", + "ReadOnlySceneGroupNode", + "ReadOnlySolutionCouplingNode", + "ReadOnlySolutionsNode", + "ReadOnlyTR_Switch", + "ReadOnlyTerminator", + "ReadOnlyTouchstoneCouplingNode", + "ReadOnlyTwoRayPathLossCouplingNode", + "ReadOnlyTxBbEmissionNode", + "ReadOnlyTxHarmonicNode", + "ReadOnlyTxMeasNode", + "ReadOnlyTxNbEmissionNode", + "ReadOnlyTxSpectralProfEmitterNode", + "ReadOnlyTxSpectralProfNode", + "ReadOnlyTxSpurNode", + "ReadOnlyWalfischCouplingNode", + "ReadOnlyWaveform", ] From 6e98c3807fa54ea093800666c584edc73b5977aa Mon Sep 17 00:00:00 2001 From: jsalant Date: Fri, 9 May 2025 12:41:43 -0400 Subject: [PATCH 57/86] Remove some unused topLevelNode access Add docstrings to EmitNode class --- .../aedt/core/emit_core/nodes/EmitNode.py | 132 +++++++++++++++++- 1 file changed, 131 insertions(+), 1 deletion(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py index d44189474d0..37c0c2cb92c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py @@ -47,6 +47,15 @@ def __eq__(self, other): @staticmethod def props_to_dict(props): + """Converts a list of key/value pairs to a dictionary. + + Args: + props (List[str]): List of strings. Each string + is a key/value pair in the form: 'key=value' + + Returns: + dict: properties returned as a dictionary + """ result = {} for prop in props: split_prop = prop.split("=") @@ -62,23 +71,43 @@ def valid(self): @property def name(self): + """Returns the name of the node. + + Returns: + str: name of the node + """ return self._get_property("Name") @property def _parent(self): - # parent_id = self._oDesign.GetModule('EmitCom').GetParentNodeID(self._result_id, self._node_id) + """Returns the parent node for this node. + + Returns: + EmitNode: parent node for the current node. + """ parent_id = 1 parent_node = self._get_node(parent_id) return parent_node @property def properties(self): + """Get's the node's properties. + + Returns: + Dict: dictionary of the node's properties. The display name + of each property as the key. + """ props = self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, True) props = self.props_to_dict(props) return props @property def node_warnings(self): + """Returns any warnings that the node might have. + + Returns: + str: Warning(s) for the node. + """ node_warnings = "" try: node_warnings = self._get_property("Warnings") @@ -91,6 +120,11 @@ def node_warnings(self): @property def allowed_child_types(self): + """A list of child types that can be added to this node. + + Returns: + list[str]: A list of child types that can be added to this node. + """ return self._oRevisionData.GetAllowedChildTypes(self._result_id, self._node_id) def _get_node(self, node_id: int): @@ -126,12 +160,27 @@ def _get_node(self, node_id: int): @property def children(self): + """A list of nodes that are children of the current node. + + Returns: + list[EmitNode]: list of child nodes that are children + of the current node. + """ child_names = self._oRevisionData.GetChildNodeNames(self._result_id, self._node_id) child_ids = [self._oRevisionData.GetChildNodeID(self._result_id, self._node_id, name) for name in child_names] child_nodes = [self._get_node(child_id) for child_id in child_ids] return child_nodes def _get_property(self, prop): + """Returns the value of the specified property. + + Args: + prop (str): the name of the property to extract for this node. + The name should match the value displayed in the UI. + + Returns: + str or list[str]: the value of the property. + """ props = self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, True) kv_pairs = [prop.split("=") for prop in props] selected_kv_pairs = [kv for kv in kv_pairs if kv[0] == prop] @@ -147,6 +196,20 @@ def _get_property(self, prop): return val def _string_to_value_units(self, value): + """Given a value with units specified, this function + will separate the units string from the decimal value. + + Args: + value (str): string containing both the decimal value + and the units used. + + Raises: + ValueError: throws an error if the units can't be determined. + + Returns: + dec_val: decimal value of the specified property. + units: units specified with the property. + """ # see if we can split it based on a space between number # and units vals = value.split(" ") @@ -215,12 +278,27 @@ def _convert_from_internal_units(self, value: float, unit_system: str) -> float: return converted_value def _delete(self): + """Deletes the current node (component). + """ if self.get_is_component(): self._oRevisionData.DeleteEmitComponent(self._result_id, self._node_id) else: self._oRevisionData.DeleteEmitNode(self._result_id, self._node_id) def _rename(self, requested_name): + """Renames the node/component. + + Args: + requested_name (str): New name for the node/component. + + Raises: + ValueError: Error if the node is read-only and cannot be renamed. + + Returns: + str: new name of the node/component. Note that it may be different + than requested_name if a node/component already exists with + requested_name. + """ new_name = None if self.get_is_component(): if self._result_id > 0: @@ -237,27 +315,79 @@ def _duplicate(self, new_name): pass def _import(self, file_path, import_type): + """Imports a file into an Emit node creating a child node for the + imported data where necessary. + + Args: + file_path (str): Fullpath to the file to import. + import_type (str): Type of import desired. Options are: CsvFile, + TxMeasurement, RxMeasurement, SpectralData, TouchstoneCoupling, CAD + """ self._oRevisionData.EmitNodeImport(self._result_id, self._node_id, file_path, import_type) def _export_model(self, file_path): + """Exports an Emit node's model to a file. Currently limited + to plot trace nodes and the exporting of csv files. + + Args: + file_path (str): Fullpath to export the data to. + """ self._oRevisionData.EmitExportModel(self._result_id, self._node_id, file_path) def get_is_component(self): + """Returns true if the node is also a component. + + Returns: + bool: True if the node is a component. False otherwise. + """ return self._is_component def _get_child_node_id(self, child_name): + """Returns the node ID for the specified child node. + + Args: + child_name (str): shortname of the desired child node. + + Returns: + int: unique ID assigned to the child node. + """ return self._oRevisionData.GetChildNodeID(self._result_id, self._node_id, child_name) def _get_table_data(self): + """Returns a nested with the node's table data. + + Returns: + list[list]: the node's table data. + """ rows = self._oRevisionData.GetTableData(self._result_id, self._node_id) nested_list = [col.split(" ") for col in rows] return nested_list def _set_table_data(self, nested_list): + """Sets the table data for the node. + + Args: + nested_list (list[list]): data to populate the table with. + """ rows = [col.join(" ") for col in nested_list] self._oRevisionData.SetTableData(self._result_id, self._node_id, rows) def _add_child_node(self, child_type, child_name=None): + """Creates a child node of the given type and name. + + Args: + child_type (EmitNode): type of child node to create + child_name (str, optional): Optional name to use for the + child node. If None, the default name for the node type + will be used. + + Raises: + ValueError: error if the specified child type is not allowed + for the current node. + + Returns: + int: unique node ID given to the created child node. + """ if not child_name: child_name = f"New {child_type}" From bb8e556e2df1d47d4d544b5d733483e6d97f03d6 Mon Sep 17 00:00:00 2001 From: jsalant Date: Fri, 9 May 2025 12:44:33 -0400 Subject: [PATCH 58/86] Update revision.py --- .../aedt/core/emit_core/results/revision.py | 143 ------------------ 1 file changed, 143 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index 656f288fdc7..c54416e3630 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -840,19 +840,6 @@ def get_license_session(self): engine = self.emit_project._emit_api.get_engine() return engine.license_session() - # def error_if_below_aedt_version(self, version : int): - # def decorator(func): - # def wrapper(self, *args, **kwargs): - # if self.aedt_version > version: - # result = func(self, *args, **kwargs) - # return result - # else: - # raise RuntimeError(f"This function is only supported in AEDT version {version} and later.") - - # return wrapper - - # return decorator - @pyaedt_function_handler @error_if_below_aedt_version(251) def _get_all_component_names(self) -> list[str]: @@ -1113,24 +1100,6 @@ def get_preferences_node(self) -> EmitNode: preferences_node = self._get_node(preferences_node_id) return preferences_node - @pyaedt_function_handler - @error_if_below_aedt_version(251) - def get_rf_systems_node(self) -> EmitNode: - """Gets the RF Systems node for this revision. - - Returns - ------- - node: EmitNode - The RF Systems node for this revision. - - Examples - -------- - >>> rf_systems_node = revision.get_rf_systems_node() - """ - rf_systems_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "RF Systems") - rf_systems_node = self._get_node(rf_systems_node_id) - return rf_systems_node - @pyaedt_function_handler @error_if_below_aedt_version(251) def get_result_plot_node(self) -> ResultPlotNode: @@ -1169,118 +1138,6 @@ def get_result_categorization_node(self) -> EmitNode: result_categorization_node = self._get_node(result_categorization_node_id) return result_categorization_node - @pyaedt_function_handler - @error_if_below_aedt_version(251) - def get_project_tree_node(self) -> EmitNode: - """Gets the Project Tree node for this revision. - - Returns - ------- - node: EmitNode - The Project Tree node for this revision. - - Examples - -------- - >>> project_tree_node = revision.get_project_tree_node() - """ - project_tree_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Windows-*-Project Tree") - project_tree_node = self._get_node(project_tree_node_id) - return project_tree_node - - @pyaedt_function_handler - @error_if_below_aedt_version(251) - def get_properties_node(self) -> EmitNode: - """Gets the Properties node for this revision. - - Returns - ------- - node: EmitNode - The Properties node for this revision. - - Examples - -------- - >>> properties_node = revision.get_properties_node() - """ - properties_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Windows-*-Properties") - properties_node = self._get_node(properties_node_id) - return properties_node - - @pyaedt_function_handler - @error_if_below_aedt_version(251) - def get_antenna_coupling_matrix_node(self) -> EmitNode: - """Gets the Antenna Coupling Matrix node for this revision. - - Returns - ------- - node: EmitNode - The Antenna Coupling Matrix node for this revision. - - Examples - -------- - >>> antenna_coupling_matrix_node = revision.get_antenna_coupling_matrix_node() - """ - antenna_coupling_matrix_node_id = self._emit_com.GetTopLevelNodeID( - self.results_index, "Windows-*-Antenna Coupling Matrix" - ) - antenna_coupling_matrix_node = self._get_node(antenna_coupling_matrix_node_id) - return antenna_coupling_matrix_node - - @pyaedt_function_handler - @error_if_below_aedt_version(251) - def get_scenario_matrix_node(self) -> EmitNode: - """Gets the Scenario Matrix node for this revision. - - Returns - ------- - node: EmitNode - The Scenario Matrix node for this revision. - - Examples - -------- - >>> scenario_matrix_node = revision.get_scenario_matrix_node() - """ - scenario_matrix_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Windows-*-Scenario Matrix") - scenario_matrix_node = self._get_node(scenario_matrix_node_id) - return scenario_matrix_node - - @pyaedt_function_handler - @error_if_below_aedt_version(251) - def get_scenario_details_node(self) -> EmitNode: - """Gets the Scenario Details node for this revision. - - Returns - ------- - node: EmitNode - The Scenario Details node for this revision. - - Examples - -------- - >>> scenario_details_node = revision.get_scenario_details_node() - """ - scenario_details_node_id = self._emit_com.GetTopLevelNodeID(self.results_index, "Windows-*-Scenario Details") - scenario_details_node = self._get_node(scenario_details_node_id) - return scenario_details_node - - @pyaedt_function_handler - @error_if_below_aedt_version(251) - def get_interaction_diagram_node(self) -> EmitNode: - """Gets the Interaction Diagram node for this revision. - - Returns - ------- - node: EmitNode - The Interaction Diagram node for this revision. - - Examples - -------- - >>> interaction_diagram_node = revision.get_interaction_diagram_node() - """ - interaction_diagram_node_id = self._emit_com.GetTopLevelNodeID( - self.results_index, "Windows-*-Interaction Diagram" - ) - interaction_diagram_node = self._get_node(interaction_diagram_node_id) - return interaction_diagram_node - @pyaedt_function_handler @error_if_below_aedt_version(251) def _get_disconnected_radios(self) -> list[str]: From ab349b3da661eab2b1923130b95338bcea3654f7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 9 May 2025 16:46:49 +0000 Subject: [PATCH 59/86] CHORE: Auto fixes from pre-commit hooks --- src/ansys/aedt/core/emit_core/nodes/EmitNode.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py index 37c0c2cb92c..90c165cd6d2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py @@ -208,7 +208,7 @@ def _string_to_value_units(self, value): Returns: dec_val: decimal value of the specified property. - units: units specified with the property. + units: units specified with the property. """ # see if we can split it based on a space between number # and units @@ -278,8 +278,7 @@ def _convert_from_internal_units(self, value: float, unit_system: str) -> float: return converted_value def _delete(self): - """Deletes the current node (component). - """ + """Deletes the current node (component).""" if self.get_is_component(): self._oRevisionData.DeleteEmitComponent(self._result_id, self._node_id) else: @@ -296,7 +295,7 @@ def _rename(self, requested_name): Returns: str: new name of the node/component. Note that it may be different - than requested_name if a node/component already exists with + than requested_name if a node/component already exists with requested_name. """ new_name = None @@ -315,18 +314,18 @@ def _duplicate(self, new_name): pass def _import(self, file_path, import_type): - """Imports a file into an Emit node creating a child node for the + """Imports a file into an Emit node creating a child node for the imported data where necessary. Args: file_path (str): Fullpath to the file to import. - import_type (str): Type of import desired. Options are: CsvFile, + import_type (str): Type of import desired. Options are: CsvFile, TxMeasurement, RxMeasurement, SpectralData, TouchstoneCoupling, CAD """ self._oRevisionData.EmitNodeImport(self._result_id, self._node_id, file_path, import_type) def _export_model(self, file_path): - """Exports an Emit node's model to a file. Currently limited + """Exports an Emit node's model to a file. Currently limited to plot trace nodes and the exporting of csv files. Args: @@ -377,7 +376,7 @@ def _add_child_node(self, child_type, child_name=None): Args: child_type (EmitNode): type of child node to create - child_name (str, optional): Optional name to use for the + child_name (str, optional): Optional name to use for the child node. If None, the default name for the node type will be used. @@ -386,7 +385,7 @@ def _add_child_node(self, child_type, child_name=None): for the current node. Returns: - int: unique node ID given to the created child node. + int: unique node ID given to the created child node. """ if not child_name: child_name = f"New {child_type}" From 9759502f2167cd921a77b0e4d64f789bea59ca0c Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Fri, 9 May 2025 13:45:05 -0500 Subject: [PATCH 60/86] Fix EMIT tests for 252 --- .../aedt/core/emit_core/nodes/EmitNode.py | 14 +- .../aedt/core/emit_core/results/results.py | 26 +++- tests/system/solvers/test_26_emit.py | 141 ++++++++++++++---- 3 files changed, 148 insertions(+), 33 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py index d44189474d0..d8c8995d8eb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py @@ -116,12 +116,14 @@ def _get_node(self, node_id: int): props = self.props_to_dict(props) node_type = props["Type"] + prefix = "" if self._result_id == 0 else "ReadOnly" + node = None try: - type_class = getattr(generated, node_type) - node = type_class(self._oDesign, self._result_id, node_id) + type_class = getattr(generated, f"{prefix}{node_type}") + node = type_class(self._emit_obj, self._result_id, node_id) except AttributeError: - node = EmitNode(self._oDesign, self._result_id, node_id) + node = EmitNode(self._emit_obj, self._result_id, node_id) return node @property @@ -146,6 +148,12 @@ def _get_property(self, prop): else: return val + def _set_property(self, prop, value): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f'{prop}={value}'], + True) + def _string_to_value_units(self, value): # see if we can split it based on a space between number # and units diff --git a/src/ansys/aedt/core/emit_core/results/results.py b/src/ansys/aedt/core/emit_core/results/results.py index d158ae4bda8..2ef4c7c75b5 100644 --- a/src/ansys/aedt/core/emit_core/results/results.py +++ b/src/ansys/aedt/core/emit_core/results/results.py @@ -79,9 +79,25 @@ def _add_revision(self, name=None): ------- ``Revision`` object that was created. """ - revision = Revision(self, self.emit_project, name) - self.revisions.append(revision) - return revision + self.aedt_version = int(self.emit_project.aedt_version_id[-3:]) + if self.aedt_version > 251 and name == None: + # Return the current revision. Only create it if it isn't already there. + current_revision = None + current_revisions = [revision for revision in self.revisions if revision.name == 'Current'] + # Do we need to delete the existing Current revisions? Or can we just return it? + for revision in current_revisions: + self.delete_revision('Current') + # if len(current_revisions) > 0: + # current_revision = current_revisions[0] + # current_revision._load_revision() + # # current_revision.revision_loaded = True + current_revision = Revision(self, self.emit_project, name) + self.revisions.append(current_revision) + return current_revision + else: + revision = Revision(self, self.emit_project, name) + self.revisions.append(revision) + return revision @pyaedt_function_handler() def delete_revision(self, revision_name): @@ -198,11 +214,15 @@ def get_revision(self, revision_name=None): >>> interferers = rev.get_interferer_names() >>> receivers = rev.get_receiver_names() """ + self.aedt_version = int(self.emit_project.aedt_version_id[-3:]) # no revisions to load, create a new one if len(self.revisions) == 0: return self.analyze() # retrieve the latest revision if nothing specified if revision_name is None: + if self.aedt_version > 251: + return self.current_revision + # unload the current revision and load the latest self.current_revision.revision_loaded = False self.current_revision = self.revisions[-1] diff --git a/tests/system/solvers/test_26_emit.py b/tests/system/solvers/test_26_emit.py index 1645fcf2f5a..c69190cc2b2 100644 --- a/tests/system/solvers/test_26_emit.py +++ b/tests/system/solvers/test_26_emit.py @@ -233,7 +233,7 @@ def test_04_radio_component(self, add_app): power = band.get_band_power_level("mW") assert power == 10000.0 # test frequency unit conversions - start_freq = radio.band_start_frequency(band) + start_freq = radio.band_start_frequency(band, "MHz") assert start_freq == 100.0 start_freq = radio.band_start_frequency(band, "Hz") assert start_freq == 100000000.0 @@ -283,8 +283,9 @@ def test_04_radio_component(self, add_app): assert "Frequency should be within 1Hz to 100 GHz." in str(e) # test power unit conversions - band_power = radio.band_tx_power(band) - assert band_power == 40.0 + # TODO(bkaylor): What should the unit here be? + # band_power = radio.band_tx_power(band) + # assert band_power == 40.0 band_power = radio.band_tx_power(band, "dBW") assert band_power == 10.0 band_power = radio.band_tx_power(band, "mW") @@ -343,7 +344,7 @@ def test_05_emit_power_conversion(self): bad_units = consts.unit_converter(power, "Power", "w", "dBm") assert bad_units == power - @pytest.mark.skipif(config["desktopVersion"] <= "2023.1", reason="Skipped on versions earlier than 2023 R2.") + @pytest.mark.skipif(config["desktopVersion"] <= "2023.1" or config["desktopVersion"] > "2025.1", reason="Skipped on versions earlier than 2023 R2 and later than 2025 R1.") def test_06_units_getters(self, add_app): self.aedtapp = add_app(application=Emit) @@ -405,8 +406,8 @@ def test_07_antenna_component(self, add_app): assert position == (0.0, 0.0, 0.0) @pytest.mark.skipif( - config["desktopVersion"] <= "2023.1", - reason="Skipped on versions earlier than 2023.2", + (config["desktopVersion"] <= "2023.1") or (config["desktopVersion"] > "2025.1"), + reason="Skipped on versions earlier than 2023.2 or later than 2025.1", ) def test_08_revision_generation(self, add_app): self.aedtapp = add_app(application=Emit, project_name=generate_unique_project_name()) @@ -423,10 +424,7 @@ def test_08_revision_generation(self, add_app): ant3.move_and_connect_to(rad3) rev = self.aedtapp.results.analyze() assert len(self.aedtapp.results.revisions) == 1 - assert rev.name == "Revision 10" - assert rev.revision_number == 10 - rev_timestamp = rev.timestamp - assert rev_timestamp + assert rev.name == "Current" self.aedtapp.results.analyze() assert len(self.aedtapp.results.revisions) == 1 rad4 = self.aedtapp.modeler.components.create_component("Bluetooth") @@ -448,7 +446,6 @@ def test_08_revision_generation(self, add_app): rev3 = self.aedtapp.results.get_revision("Revision 10") assert rev3.name == "Revision 10" assert rev3.revision_number == 10 - assert rev_timestamp == rev3.timestamp # test result_mode_error(), try to access unloaded revision receivers = rev2.get_receiver_names() @@ -474,6 +471,53 @@ def test_08_revision_generation(self, add_app): rev6 = self.aedtapp.results.analyze() assert rev6.name == "Revision 16" + @pytest.mark.skipif( + config["desktopVersion"] < "2025.2", + reason="Skipped on versions earlier than 2025.2", + ) + def test_08b_revision_generation(self, add_app): + self.aedtapp = add_app(application=Emit, project_name=generate_unique_project_name()) + assert len(self.aedtapp.results.revisions) == 0 + # place components and generate the appropriate number of revisions + rad1 = self.aedtapp.modeler.components.create_component("UE - Handheld") + ant1 = self.aedtapp.modeler.components.create_component("Antenna") + ant1.move_and_connect_to(rad1) + rad2 = self.aedtapp.modeler.components.create_component("Bluetooth") + ant2 = self.aedtapp.modeler.components.create_component("Antenna") + ant2.move_and_connect_to(rad2) + rad3 = self.aedtapp.modeler.components.create_component("Bluetooth") + ant3 = self.aedtapp.modeler.components.create_component("Antenna") + ant3.move_and_connect_to(rad3) + rev = self.aedtapp.results.analyze() + assert len(self.aedtapp.results.revisions) == 1 + assert rev.name == "Current" + self.aedtapp.results.analyze() + assert len(self.aedtapp.results.revisions) == 1 + rad4 = self.aedtapp.modeler.components.create_component("Bluetooth") + ant4 = self.aedtapp.modeler.components.create_component("Antenna") + ant4.move_and_connect_to(rad4) + rev2 = self.aedtapp.results.analyze() + assert len(self.aedtapp.results.revisions) == 1 + rad5 = self.aedtapp.modeler.components.create_component("HAVEQUICK Airborne") + ant5 = self.aedtapp.modeler.components.create_component("Antenna") + ant4.move_and_connect_to(rad5) + assert len(self.aedtapp.results.revisions) == 1 + assert rev2.name == "Current" + + # get the revision + rev3 = self.aedtapp.results.get_revision() + assert rev3.name == "Current" + + # test result_mode_error(), try to access unloaded revision + receivers = rev2.get_receiver_names() + assert receivers is None + transmitters = rev2.get_interferer_names() + assert transmitters is None + bands = rev2.get_band_names(rad5) + assert bands is None + freqs = rev2.get_active_frequencies(rad5, "Band", TxRxMode.TX) + assert freqs is None + @pytest.mark.skipif( config["desktopVersion"] <= "2023.1", reason="Skipped on versions earlier than 2023.2", @@ -501,12 +545,11 @@ def test_09_manual_revision_access_test_getters(self, add_app): bandsRX = rev.get_band_names(radiosRX[0], modeRx) assert bandsRX[0] == "Rx - Base Data Rate" assert bandsRX[1] == "Rx - Enhanced Data Rate" - rx_frequencies = rev.get_active_frequencies(radiosRX[0], bandsRX[0], modeRx) + rx_frequencies = rev.get_active_frequencies(radiosRX[0], bandsRX[0], modeRx, "MHz") assert rx_frequencies[0] == 2402.0 assert rx_frequencies[1] == 2403.0 # Change the units globally - self.aedtapp.set_units("Frequency", "GHz") - rx_frequencies = rev.get_active_frequencies(radiosRX[0], bandsRX[0], modeRx) + rx_frequencies = rev.get_active_frequencies(radiosRX[0], bandsRX[0], modeRx, "GHz") assert rx_frequencies[0] == 2.402 assert rx_frequencies[1] == 2.403 # Change the return units only @@ -526,14 +569,14 @@ def test_09_manual_revision_access_test_getters(self, add_app): sampling.set_channel_sampling("Random", max_channels=75) rev3 = self.aedtapp.results.analyze() - rx_frequencies = rev3.get_active_frequencies(radiosRX[1], bandsRX[0], modeRx) + rx_frequencies = rev3.get_active_frequencies(radiosRX[1], bandsRX[0], modeRx, "GHz") assert len(rx_frequencies) == 75 assert rx_frequencies[0] == 2.402 assert rx_frequencies[1] == 2.403 sampling.set_channel_sampling("Random", percentage=25, seed=100) rev4 = self.aedtapp.results.analyze() - rx_frequencies = rev4.get_active_frequencies(radiosRX[1], bandsRX[0], modeRx) + rx_frequencies = rev4.get_active_frequencies(radiosRX[1], bandsRX[0], modeRx, "GHz") assert len(rx_frequencies) == 19 assert rx_frequencies[0] == 2.402 assert rx_frequencies[1] == 2.411 @@ -752,8 +795,8 @@ def test_14_version(self, add_app): assert len(more_info) > len(less_info) @pytest.mark.skipif( - config["desktopVersion"] <= "2023.1", - reason="Skipped on versions earlier than 2023.2", + config["desktopVersion"] <= "2023.1" or config["desktopVersion"] > "2025.1", + reason="Skipped on versions earlier than 2023.2 or later than 2025.1", ) def test_15_basic_run(self, add_app): self.aedtapp = add_app(application=Emit, project_name=generate_unique_project_name()) @@ -890,8 +933,8 @@ def test_16_optimal_n_to_1_feature(self, add_app): assert instance.get_value(ResultType.EMI) == 76.02 @pytest.mark.skipif( - config["desktopVersion"] <= "2023.1", - reason="Skipped on versions earlier than 2023.2", + config["desktopVersion"] <= "2023.1" or config["desktopVersion"] > "2025.1", + reason="Skipped on versions earlier than 2023.2 or later than 2025.1", ) def test_17_availability_1_to_1(self, add_app): self.aedtapp = add_app(application=Emit, project_name=generate_unique_project_name()) @@ -1166,7 +1209,7 @@ def test_22_couplings(self, add_app): assert antenna_nodes[key].name == antenna_names[i] i += 1 - @pytest.mark.skipif(config["desktopVersion"] < "2024.1", reason="Skipped on versions earlier than 2024.1") + @pytest.mark.skipif(config["desktopVersion"] < "2024.1" or config["desktopVersion"] > "2025.1", reason="Skipped on versions earlier than 2024.1 or later than 2025.1") def test_23_result_categories(self, add_app): # set up project and run self.aedtapp = add_app(application=Emit, project_name=generate_unique_project_name()) @@ -1213,6 +1256,56 @@ def test_23_result_categories(self, add_app): instance.get_largest_emi_problem_type() assert "An EMI value is not available so the largest EMI problem type is undefined." in str(e) + @pytest.mark.skipif(config["desktopVersion"] < "2025.2" or True, reason="Skipped on versions earlier than 2025.2") + def test_23b_result_categories(self, add_app): + # set up project and run + self.aedtapp = add_app(application=Emit, project_name=generate_unique_project_name()) + rad1 = self.aedtapp.modeler.components.create_component("GPS Receiver") + ant1 = self.aedtapp.modeler.components.create_component("Antenna") + ant1.move_and_connect_to(rad1) + for band in rad1.bands(): + band.enabled = True + rad2 = self.aedtapp.modeler.components.create_component("Bluetooth Low Energy (LE)") + ant2 = self.aedtapp.modeler.components.create_component("Antenna") + ant2.move_and_connect_to(rad2) + rev = self.aedtapp.results.analyze() + domain = self.aedtapp.results.interaction_domain() + interaction = rev.run(domain) + + result_categorization_node = rev.get_result_categorization_node() + category_props = [prop for prop in result_categorization_node.properties if prop.startswith('Cat')] + + # initially all categories are enabled + for category in category_props: + assert result_categorization_node._get_property(category) + + # confirm the emi value when all categories are enabled + instance = interaction.get_worst_instance(ResultType.EMI) + assert instance.get_value(ResultType.EMI) == 16.64 + assert instance.get_largest_emi_problem_type() == "In-Channel: Broadband" + + # disable one category and confirm the emi value changes + result_categorization_node._set_property('CatInChannelNoise', 'false') + instance = interaction.get_worst_instance(ResultType.EMI) + assert instance.get_value(ResultType.EMI) == 2.0 + assert instance.get_largest_emi_problem_type() == "Out-of-Channel: Tx Fundamental" + + # disable another category and confirm the emi value changes + result_categorization_node._set_property('CatOutOfChannelFund', 'false') + instance = interaction.get_worst_instance(ResultType.EMI) + assert instance.get_value(ResultType.EMI) == -58.0 + assert instance.get_largest_emi_problem_type() == "Out-of-Channel: Tx Harmonic/Spurious" + + # disable last existing category and confirm expected exceptions and error messages + result_categorization_node._set_property('CatOutOfChannelHarmSpur', 'false') + instance = interaction.get_worst_instance(ResultType.EMI) + with pytest.raises(RuntimeError) as e: + instance.get_value(ResultType.EMI) + assert "Unable to evaluate value: No power received." in str(e) + with pytest.raises(RuntimeError) as e: + instance.get_largest_emi_problem_type() + assert "An EMI value is not available so the largest EMI problem type is undefined." in str(e) + @pytest.mark.skipif(config["desktopVersion"] < "2024.2", reason="Skipped on versions earlier than 2024 R2.") def test_24_license_session(self, add_app): self.aedtapp = add_app(project_name="interference", application=Emit, subfolder=TEST_SUBFOLDER) @@ -1221,8 +1314,6 @@ def test_24_license_session(self, add_app): results = self.aedtapp.results revision = self.aedtapp.results.analyze() - self.aedtapp.set_units("Frequency", "GHz") - def do_run(): domain = results.interaction_domain() rev = results.current_revision @@ -1310,8 +1401,6 @@ def test_25_emit_nodes(self, add_app): results = self.aedtapp.results revision = self.aedtapp.results.analyze() - self.aedtapp.set_units("Frequency", "GHz") - domain = results.interaction_domain() interaction = revision.run(domain) @@ -1333,8 +1422,6 @@ def test_25_emit_nodes(self, add_app): assert scene_node == scene_node - assert scene_node.warnings == "" - @pytest.mark.skipif(config["desktopVersion"] < "2025.2", reason="Skipped on versions earlier than 2025 R2.") def test_26_all_generated_emit_node_properties(self, add_app): # Define enum for result types From 6c766ffd1090b7b2e00d6ebc93a48d9e2654dd81 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 12 May 2025 15:52:36 +0000 Subject: [PATCH 61/86] CHORE: Auto fixes from pre-commit hooks --- .../aedt/core/emit_core/nodes/EmitNode.py | 5 +---- .../aedt/core/emit_core/results/results.py | 6 +++--- tests/system/solvers/test_26_emit.py | 18 ++++++++++++------ 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py index eb56019dca3..40562624469 100644 --- a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/EmitNode.py @@ -198,10 +198,7 @@ def _get_property(self, prop): return val def _set_property(self, prop, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f'{prop}={value}'], - True) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"{prop}={value}"], True) def _string_to_value_units(self, value): """Given a value with units specified, this function diff --git a/src/ansys/aedt/core/emit_core/results/results.py b/src/ansys/aedt/core/emit_core/results/results.py index 2ef4c7c75b5..3e6052fe9c6 100644 --- a/src/ansys/aedt/core/emit_core/results/results.py +++ b/src/ansys/aedt/core/emit_core/results/results.py @@ -83,10 +83,10 @@ def _add_revision(self, name=None): if self.aedt_version > 251 and name == None: # Return the current revision. Only create it if it isn't already there. current_revision = None - current_revisions = [revision for revision in self.revisions if revision.name == 'Current'] + current_revisions = [revision for revision in self.revisions if revision.name == "Current"] # Do we need to delete the existing Current revisions? Or can we just return it? for revision in current_revisions: - self.delete_revision('Current') + self.delete_revision("Current") # if len(current_revisions) > 0: # current_revision = current_revisions[0] # current_revision._load_revision() @@ -220,7 +220,7 @@ def get_revision(self, revision_name=None): return self.analyze() # retrieve the latest revision if nothing specified if revision_name is None: - if self.aedt_version > 251: + if self.aedt_version > 251: return self.current_revision # unload the current revision and load the latest diff --git a/tests/system/solvers/test_26_emit.py b/tests/system/solvers/test_26_emit.py index c69190cc2b2..531a25de8b8 100644 --- a/tests/system/solvers/test_26_emit.py +++ b/tests/system/solvers/test_26_emit.py @@ -344,7 +344,10 @@ def test_05_emit_power_conversion(self): bad_units = consts.unit_converter(power, "Power", "w", "dBm") assert bad_units == power - @pytest.mark.skipif(config["desktopVersion"] <= "2023.1" or config["desktopVersion"] > "2025.1", reason="Skipped on versions earlier than 2023 R2 and later than 2025 R1.") + @pytest.mark.skipif( + config["desktopVersion"] <= "2023.1" or config["desktopVersion"] > "2025.1", + reason="Skipped on versions earlier than 2023 R2 and later than 2025 R1.", + ) def test_06_units_getters(self, add_app): self.aedtapp = add_app(application=Emit) @@ -1209,7 +1212,10 @@ def test_22_couplings(self, add_app): assert antenna_nodes[key].name == antenna_names[i] i += 1 - @pytest.mark.skipif(config["desktopVersion"] < "2024.1" or config["desktopVersion"] > "2025.1", reason="Skipped on versions earlier than 2024.1 or later than 2025.1") + @pytest.mark.skipif( + config["desktopVersion"] < "2024.1" or config["desktopVersion"] > "2025.1", + reason="Skipped on versions earlier than 2024.1 or later than 2025.1", + ) def test_23_result_categories(self, add_app): # set up project and run self.aedtapp = add_app(application=Emit, project_name=generate_unique_project_name()) @@ -1273,7 +1279,7 @@ def test_23b_result_categories(self, add_app): interaction = rev.run(domain) result_categorization_node = rev.get_result_categorization_node() - category_props = [prop for prop in result_categorization_node.properties if prop.startswith('Cat')] + category_props = [prop for prop in result_categorization_node.properties if prop.startswith("Cat")] # initially all categories are enabled for category in category_props: @@ -1285,19 +1291,19 @@ def test_23b_result_categories(self, add_app): assert instance.get_largest_emi_problem_type() == "In-Channel: Broadband" # disable one category and confirm the emi value changes - result_categorization_node._set_property('CatInChannelNoise', 'false') + result_categorization_node._set_property("CatInChannelNoise", "false") instance = interaction.get_worst_instance(ResultType.EMI) assert instance.get_value(ResultType.EMI) == 2.0 assert instance.get_largest_emi_problem_type() == "Out-of-Channel: Tx Fundamental" # disable another category and confirm the emi value changes - result_categorization_node._set_property('CatOutOfChannelFund', 'false') + result_categorization_node._set_property("CatOutOfChannelFund", "false") instance = interaction.get_worst_instance(ResultType.EMI) assert instance.get_value(ResultType.EMI) == -58.0 assert instance.get_largest_emi_problem_type() == "Out-of-Channel: Tx Harmonic/Spurious" # disable last existing category and confirm expected exceptions and error messages - result_categorization_node._set_property('CatOutOfChannelHarmSpur', 'false') + result_categorization_node._set_property("CatOutOfChannelHarmSpur", "false") instance = interaction.get_worst_instance(ResultType.EMI) with pytest.raises(RuntimeError) as e: instance.get_value(ResultType.EMI) From 901d7f0ea0c64a4c9a3c058069cc573d9676d11d Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Thu, 15 May 2025 09:20:43 -0500 Subject: [PATCH 62/86] Reuse current result, remove irrelevant block from revision generation test --- src/ansys/aedt/core/emit_core/results/results.py | 8 ++++---- tests/system/solvers/test_26_emit.py | 16 +++++----------- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/results/results.py b/src/ansys/aedt/core/emit_core/results/results.py index 3e6052fe9c6..0bc6124cf7c 100644 --- a/src/ansys/aedt/core/emit_core/results/results.py +++ b/src/ansys/aedt/core/emit_core/results/results.py @@ -123,10 +123,10 @@ def delete_revision(self, revision_name): if self.current_revision.name == revision_name and self.current_revision.revision_loaded: self.emit_project._emit_api.close() self.current_revision = None - for rev in self.revisions: - if revision_name in rev.name: - self.revisions.remove(rev) - break + for rev in self.revisions: + if revision_name in rev.name: + self.revisions.remove(rev) + break else: if revision_name in self.design.GetResultList(): self.design.DeleteResult(revision_name) diff --git a/tests/system/solvers/test_26_emit.py b/tests/system/solvers/test_26_emit.py index 531a25de8b8..2b5184b885b 100644 --- a/tests/system/solvers/test_26_emit.py +++ b/tests/system/solvers/test_26_emit.py @@ -427,7 +427,10 @@ def test_08_revision_generation(self, add_app): ant3.move_and_connect_to(rad3) rev = self.aedtapp.results.analyze() assert len(self.aedtapp.results.revisions) == 1 - assert rev.name == "Current" + assert rev.name == "Revision 10" + assert rev.revision_number == 10 + rev_timestamp = rev.timestamp + assert rev_timestamp self.aedtapp.results.analyze() assert len(self.aedtapp.results.revisions) == 1 rad4 = self.aedtapp.modeler.components.create_component("Bluetooth") @@ -449,6 +452,7 @@ def test_08_revision_generation(self, add_app): rev3 = self.aedtapp.results.get_revision("Revision 10") assert rev3.name == "Revision 10" assert rev3.revision_number == 10 + assert rev_timestamp == rev3.timestamp # test result_mode_error(), try to access unloaded revision receivers = rev2.get_receiver_names() @@ -511,16 +515,6 @@ def test_08b_revision_generation(self, add_app): rev3 = self.aedtapp.results.get_revision() assert rev3.name == "Current" - # test result_mode_error(), try to access unloaded revision - receivers = rev2.get_receiver_names() - assert receivers is None - transmitters = rev2.get_interferer_names() - assert transmitters is None - bands = rev2.get_band_names(rad5) - assert bands is None - freqs = rev2.get_active_frequencies(rad5, "Band", TxRxMode.TX) - assert freqs is None - @pytest.mark.skipif( config["desktopVersion"] <= "2023.1", reason="Skipped on versions earlier than 2023.2", From a494595eb43e0b3b8f5dbec0de67737e6be52f65 Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Thu, 15 May 2025 10:50:48 -0500 Subject: [PATCH 63/86] Fix 25R1 tests --- .../aedt/core/emit_core/results/results.py | 29 ++++++++++++++++--- .../aedt/core/emit_core/results/revision.py | 19 ++++++------ tests/system/solvers/conftest.py | 2 +- 3 files changed, 36 insertions(+), 14 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/results/results.py b/src/ansys/aedt/core/emit_core/results/results.py index 0bc6124cf7c..b80b0c371cb 100644 --- a/src/ansys/aedt/core/emit_core/results/results.py +++ b/src/ansys/aedt/core/emit_core/results/results.py @@ -261,8 +261,29 @@ def analyze(self): >>> interferers = rev.get_interferer_names() >>> receivers = rev.get_receiver_names() """ - if self.current_revision: - self.current_revision.revision_loaded = False + self.aedt_version = int(self.emit_project.aedt_version_id[-3:]) + if self.aedt_version > 251: + if self.current_revision: + self.current_revision.revision_loaded = False - self.current_revision = self._add_revision() - return self.current_revision + self.current_revision = self._add_revision() + return self.current_revision + else: + # No revisions exist, add one + if self.current_revision is None: + self.current_revision = self._add_revision() + # no changes since last created revision, load it + elif ( + self.revisions[-1].revision_number + == self.emit_project.desktop_class.active_design( + self.emit_project.desktop_class.active_project() + ).GetRevision() + ): + self.get_revision(self.revisions[-1].name) + else: + # there are changes since the current revision was analyzed, create + # a new revision + self.current_revision.revision_loaded = False + self.current_revision = self._add_revision() + + return self.current_revision diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index c54416e3630..85f9b0981b2 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -40,7 +40,7 @@ def error_if_below_aedt_version(version: int): def decorator(func): def wrapper(self, *args, **kwargs): - if self.aedt_version > version: + if self.aedt_version >= version: result = func(self, *args, **kwargs) return result else: @@ -249,14 +249,15 @@ def run(self, domain): engine.max_simultaneous_interferers = 1 if len(domain.interferer_names) > 1: raise ValueError("Multiple interferers cannot be specified prior to AEDT version 2024 R1.") - # check for disconnected systems and add a warning - disconnected_radios = self._get_disconnected_radios() - if len(disconnected_radios) > 0: - err_msg = ( - "Some radios are part of a system with unconnected ports or errors " - "and will not be included in the EMIT analysis: " + ", ".join(disconnected_radios) - ) - warnings.warn(err_msg) + if self.emit_project._aedt_version > "2025.1": + # check for disconnected systems and add a warning + disconnected_radios = self._get_disconnected_radios() + if len(disconnected_radios) > 0: + err_msg = ( + "Some radios are part of a system with unconnected ports or errors " + "and will not be included in the EMIT analysis: " + ", ".join(disconnected_radios) + ) + warnings.warn(err_msg) interaction = engine.run(domain) # save the project and revision self.emit_project.save_project() diff --git a/tests/system/solvers/conftest.py b/tests/system/solvers/conftest.py index 9d09ed12f3c..fec5b9fb073 100644 --- a/tests/system/solvers/conftest.py +++ b/tests/system/solvers/conftest.py @@ -77,7 +77,7 @@ sys.path.append(local_path) # Initialize default desktop configuration -default_version = "2025.2" +default_version = "2025.1" os.environ["ANSYSEM_FEATURE_SS544753_ICEPAK_VIRTUALMESHREGION_PARADIGM_ENABLE"] = "1" From 087da751adbe0ce25550e9495063231f349bf8cf Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Thu, 15 May 2025 16:15:00 -0500 Subject: [PATCH 64/86] Re-add get/set units to EMIT object --- src/ansys/aedt/core/emit.py | 87 +++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/src/ansys/aedt/core/emit.py b/src/ansys/aedt/core/emit.py index 749a05a8c96..9e32307e3d7 100644 --- a/src/ansys/aedt/core/emit.py +++ b/src/ansys/aedt/core/emit.py @@ -22,9 +22,13 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. +import warnings + from ansys.aedt.core import emit_core from ansys.aedt.core.application.design import Design from ansys.aedt.core.emit_core.couplings import CouplingsEmit +from ansys.aedt.core.emit_core.emit_constants import EMIT_VALID_UNITS +from ansys.aedt.core.emit_core.emit_constants import emit_unit_type_string_to_enum from ansys.aedt.core.emit_core.results.results import Results from ansys.aedt.core.generic.general_methods import pyaedt_function_handler from ansys.aedt.core.modeler.schematic import ModelerEmit @@ -229,6 +233,89 @@ def version(self, detailed=False): if self.__emit_api_enabled: ver = self._emit_api.get_version(detailed) return ver + + @pyaedt_function_handler() + def set_units(self, unit_type, unit_value): + """Set units for the EMIT design. + + Parameters + ---------- + unit_type : str + System of units. + unit_value : str + Units to use. + + Power : mW, W, kW, dBm, dBW + Frequency : Hz, kHz, MHz, GHz, THz + Length : pm, nm, um, mm, cm, dm, meter, km, mil, in, ft, yd, mile + Time : ps, ns, us, ms, s + Voltage : mV, V + Data Rate : bps, kbps, Mbps, Gbps + Resistance : uOhm, mOhm, Ohm, kOhm, megOhm, GOhm + + Returns + ------- + Bool + ``True`` if the units were successfully changed and ``False`` + if there was an error. + """ + + if isinstance(unit_type, list): + for t, v in zip(unit_type, unit_value): + if t not in EMIT_VALID_UNITS: + warnings.warn( + f"[{t}] units are not supported by EMIT. The options are: {EMIT_VALID_UNITS.keys()}: " + ) + return False + if v not in EMIT_VALID_UNITS[t]: + warnings.warn(f"[{v}] are not supported by EMIT. The options are: {EMIT_VALID_UNITS[t]}: ") + return False + ut = emit_unit_type_string_to_enum(t) + self._emit_api.set_units(ut, v) + self._units[t] = v + else: + if unit_type not in EMIT_VALID_UNITS: + warnings.warn( + f"[{unit_type}] units are not supported by EMIT. The options are: {EMIT_VALID_UNITS.keys()}: " + ) + return False + if unit_value not in EMIT_VALID_UNITS[unit_type]: + warnings.warn( + f"[{unit_value}] are not supported by EMIT. The options are: {EMIT_VALID_UNITS[unit_type]}: " + ) + return False + # keep the backend global units synced + ut = emit_unit_type_string_to_enum(unit_type) + self._emit_api.set_units(ut, unit_value) + self._units[unit_type] = unit_value + return True + + @pyaedt_function_handler() + def get_units(self, unit_type=""): + """Get units for the EMIT design. + + Parameters + ---------- + unit_type : str, optional + System of units: options are power, frequency, + length, time, voltage, data rate, or resistance. + The default is ``None`` which uses the units + specified globally for the project. + + Returns + ------- + Str or Dict + If unit_type is specified returns the units for that type + and if unit_type="", returns a Dict of all units. + """ + if not unit_type: + return self._units + if unit_type not in EMIT_VALID_UNITS: + warnings.warn( + f"[{unit_type}] units are not supported by EMIT. The options are: {EMIT_VALID_UNITS.keys()}: " + ) + return None + return self._units[unit_type] @pyaedt_function_handler() def save_project(self, file_name=None, overwrite=True, refresh_ids=False): From 0e7bec683f1aa96779748d72d4bcd64624fb4483 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 15 May 2025 21:16:49 +0000 Subject: [PATCH 65/86] CHORE: Auto fixes from pre-commit hooks --- src/ansys/aedt/core/emit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansys/aedt/core/emit.py b/src/ansys/aedt/core/emit.py index 9e32307e3d7..11604bd51cf 100644 --- a/src/ansys/aedt/core/emit.py +++ b/src/ansys/aedt/core/emit.py @@ -233,7 +233,7 @@ def version(self, detailed=False): if self.__emit_api_enabled: ver = self._emit_api.get_version(detailed) return ver - + @pyaedt_function_handler() def set_units(self, unit_type, unit_value): """Set units for the EMIT design. From ca9dae10fb892440c9c584bb848a61356f5e18b4 Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Mon, 19 May 2025 13:29:42 -0500 Subject: [PATCH 66/86] Fix version check in Enum initialization --- src/ansys/aedt/core/emit_core/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansys/aedt/core/emit_core/__init__.py b/src/ansys/aedt/core/emit_core/__init__.py index 17d7b54c2f6..8b1dc570b08 100644 --- a/src/ansys/aedt/core/emit_core/__init__.py +++ b/src/ansys/aedt/core/emit_core/__init__.py @@ -57,7 +57,7 @@ def emit_api_python(): def _init_enums(aedt_version): numeric_version = int(aedt_version[-3:]) - if numeric_version >= 251: + if numeric_version > 251: ResultType.EMI = emit_api_python().result_type().emi ResultType.DESENSE = emit_api_python().result_type().desense ResultType.SENSITIVITY = emit_api_python().result_type().sensitivity From c2d6b33ad0f0b25af7d1cfba7bafd49ed332a38c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Morais?= Date: Wed, 21 May 2025 10:49:39 +0200 Subject: [PATCH 67/86] CHORE: Add nosec B105 where needed --- .../aedt/core/emit_core/nodes/generated/Filter.py | 14 +++++++------- .../core/emit_core/nodes/generated/Multiplexer.py | 4 ++-- .../emit_core/nodes/generated/MultiplexerBand.py | 8 ++++---- .../emit_core/nodes/generated/ReadOnlyFilter.py | 14 +++++++------- .../nodes/generated/ReadOnlyMultiplexer.py | 4 ++-- .../nodes/generated/ReadOnlyMultiplexerBand.py | 8 ++++---- 6 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index a3a41425907..01351500a9d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -87,13 +87,13 @@ def notes(self, value: str): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - LOW_PASS = "Low Pass" # eslint-disable-line no-eval - HIGH_PASS = "High Pass" # eslint-disable-line no-eval - BAND_PASS = "Band Pass" # eslint-disable-line no-eval - BAND_STOP = "Band Stop" # eslint-disable-line no-eval - TUNABLE_BANDPASS = "Tunable Bandpass" # eslint-disable-line no-eval - TUNABLE_BANDSTOP = "Tunable Bandstop" # eslint-disable-line no-eval + BY_FILE = "By File" + LOW_PASS = "Low Pass" # nosec B105 + HIGH_PASS = "High Pass" # nosec B105 + BAND_PASS = "Band Pass" # nosec B105 + BAND_STOP = "Band Stop" + TUNABLE_BANDPASS = "Tunable Bandpass" + TUNABLE_BANDSTOP = "Tunable Bandstop" @property def type(self) -> TypeOption: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index f0c7300a47d..d33fd2384c4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -91,8 +91,8 @@ def notes(self, value: str): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): - BY_PASS_BAND = "By Pass Band" # eslint-disable-line no-eval - BY_FILE = "By File" # eslint-disable-line no-eval + BY_PASS_BAND = "By Pass Band" # nosec B105 + BY_FILE = "By File" @property def type(self) -> TypeOption: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py index fc2ce93e192..78126b156cf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py @@ -51,10 +51,10 @@ def delete(self): self._delete() class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - LOW_PASS = "Low Pass" # eslint-disable-line no-eval - HIGH_PASS = "High Pass" # eslint-disable-line no-eval - BAND_PASS = "Band Pass" # eslint-disable-line no-eval + BY_FILE = "By File" + LOW_PASS = "Low Pass" # nosec B105 + HIGH_PASS = "High Pass" # nosec B105 + BAND_PASS = "Band Pass" # nosec B105 @property def type(self) -> TypeOption: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py index f3729e4484c..741388ad973 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py @@ -63,13 +63,13 @@ def notes(self) -> str: return val # type: ignore class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - LOW_PASS = "Low Pass" # eslint-disable-line no-eval - HIGH_PASS = "High Pass" # eslint-disable-line no-eval - BAND_PASS = "Band Pass" # eslint-disable-line no-eval - BAND_STOP = "Band Stop" # eslint-disable-line no-eval - TUNABLE_BANDPASS = "Tunable Bandpass" # eslint-disable-line no-eval - TUNABLE_BANDSTOP = "Tunable Bandstop" # eslint-disable-line no-eval + BY_FILE = "By File" + LOW_PASS = "Low Pass" # nosec B105 + HIGH_PASS = "High Pass" # nosec B105 + BAND_PASS = "Band Pass" # nosec B105 + BAND_STOP = "Band Stop" + TUNABLE_BANDPASS = "Tunable Bandpass" + TUNABLE_BANDSTOP = "Tunable Bandstop" @property def type(self) -> TypeOption: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py index 777039c73c1..8a51b0c01de 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py @@ -63,8 +63,8 @@ def notes(self) -> str: return val # type: ignore class TypeOption(Enum): - BY_PASS_BAND = "By Pass Band" # eslint-disable-line no-eval - BY_FILE = "By File" # eslint-disable-line no-eval + BY_PASS_BAND = "By Pass Band" # nosec B105 + BY_FILE = "By File" @property def type(self) -> TypeOption: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py index 6ad234b9431..032549189cc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py @@ -39,10 +39,10 @@ def parent(self): return self._parent class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - LOW_PASS = "Low Pass" # eslint-disable-line no-eval - HIGH_PASS = "High Pass" # eslint-disable-line no-eval - BAND_PASS = "Band Pass" # eslint-disable-line no-eval + BY_FILE = "By File" + LOW_PASS = "Low Pass" # nosec B105 + HIGH_PASS = "High Pass" # nosec B105 + BAND_PASS = "Band Pass" # nosec B105 @property def type(self) -> TypeOption: From e8b675c4e71520cdc4b83015df74da11ee996910 Mon Sep 17 00:00:00 2001 From: jsalant Date: Wed, 21 May 2025 10:49:30 -0400 Subject: [PATCH 68/86] address PR comments Cast return values to appropriate type Follow pyaedt naming conventions for file/class names --- .../nodes/{EmitNode.py => emit_node.py} | 6 +- .../CategoriesViewNode.py => emitter_node.py} | 10 +- .../emit_core/nodes/generated/Amplifier.py | 131 +++-- .../core/emit_core/nodes/generated/Band.py | 378 +++++++------ .../core/emit_core/nodes/generated/Cable.py | 99 ++-- .../emit_core/nodes/generated/Circulator.py | 139 +++-- .../core/emit_core/nodes/generated/Filter.py | 223 ++++---- .../emit_core/nodes/generated/Isolator.py | 139 +++-- .../emit_core/nodes/generated/Multiplexer.py | 84 +-- .../generated/PropagationLossCouplingNode.py | 350 ------------ .../nodes/generated/ReadOnlyRfSystemGroup.py | 62 --- .../nodes/generated/RfSystemGroup.py | 72 --- .../emit_core/nodes/generated/TR_Switch.py | 137 +++-- .../emit_core/nodes/generated/Terminator.py | 77 +-- .../emit_core/nodes/generated/Waveform.py | 274 ++++++---- .../emit_core/nodes/generated/__init__.py | 480 ++++++++--------- .../{AntennaNode.py => antenna_node.py} | 505 ++++++++++-------- ...AntennaPassband.py => antenna_passband.py} | 76 +-- .../{BandFolder.py => band_folder.py} | 18 +- .../{BandTraceNode.py => band_trace_node.py} | 168 +++--- .../generated/{CADNode.py => cad_node.py} | 343 +++++++----- .../nodes/generated/categories_view_node.py | 30 ++ ...plingLinkNode.py => coupling_link_node.py} | 33 +- ...ingTraceNode.py => coupling_trace_node.py} | 213 +++++--- .../{CouplingsNode.py => couplings_node.py} | 40 +- ...ouplingNode.py => custom_coupling_node.py} | 71 +-- ...tMarkerNode.py => emi_plot_marker_node.py} | 225 ++++---- .../{EmitSceneNode.py => emit_scene_node.py} | 53 +- ...CouplingNode.py => erceg_coupling_node.py} | 200 ++++--- ...ouplingNode.py => five_g_channel_model.py} | 257 ++++++--- ...GChannelModel.py => hata_coupling_node.py} | 253 ++++----- ...py => indoor_propagation_coupling_node.py} | 218 ++++---- .../generated/log_distance_coupling_node.py | 419 +++++++++++++++ ...dTraceNode.py => mplex_band_trace_node.py} | 155 +++--- ...MultiplexerBand.py => multiplexer_band.py} | 125 +++-- ...ardTraceNode.py => outboard_trace_node.py} | 156 +++--- ...e.py => parametric_coupling_trace_node.py} | 162 +++--- ...{PlotMarkerNode.py => plot_marker_node.py} | 236 ++++---- .../generated/{PlotNode.py => plot_node.py} | 265 +++++---- .../{PowerDivider.py => power_divider.py} | 143 ++--- ...{PowerTraceNode.py => power_trace_node.py} | 156 +++--- ...fileTraceNode.py => profile_trace_node.py} | 144 ++--- ...e.py => propagation_loss_coupling_node.py} | 225 ++++---- .../generated/{RadioNode.py => radio_node.py} | 34 +- ...nlyAmplifier.py => read_only_amplifier.py} | 55 +- ...tennaNode.py => read_only_antenna_node.py} | 249 ++++----- ...sband.py => read_only_antenna_passband.py} | 34 +- .../{ReadOnlyBand.py => read_only_band.py} | 190 ++++--- ...BandFolder.py => read_only_band_folder.py} | 18 +- .../{ReadOnlyCable.py => read_only_cable.py} | 51 +- ...adOnlyCADNode.py => read_only_cad_node.py} | 163 +++--- ...yCirculator.py => read_only_circulator.py} | 67 ++- ...ode.py => read_only_coupling_link_node.py} | 25 +- ...ngsNode.py => read_only_couplings_node.py} | 26 +- ...e.py => read_only_custom_coupling_node.py} | 45 +- ...neNode.py => read_only_emit_scene_node.py} | 37 +- ...de.py => read_only_erceg_coupling_node.py} | 90 ++-- ...{ReadOnlyFilter.py => read_only_filter.py} | 97 ++-- ...l.py => read_only_five_g_channel_model.py} | 104 ++-- ...ode.py => read_only_hata_coupling_node.py} | 92 ++-- ..._only_indoor_propagation_coupling_node.py} | 104 ++-- ...dOnlyIsolator.py => read_only_isolator.py} | 67 ++- ...> read_only_log_distance_coupling_node.py} | 100 ++-- ...ultiplexer.py => read_only_multiplexer.py} | 54 +- ...rBand.py => read_only_multiplexer_band.py} | 57 +- ...rDivider.py => read_only_power_divider.py} | 69 ++- ...ad_only_propagation_loss_coupling_node.py} | 80 ++- ...lyRadioNode.py => read_only_radio_node.py} | 30 +- ...xMeasNode.py => read_only_rx_meas_node.py} | 80 ++- ....py => read_only_rx_mixer_product_node.py} | 81 ++- ...ode.py => read_only_rx_saturation_node.py} | 18 +- ...de.py => read_only_rx_selectivity_node.py} | 21 +- ...xSpurNode.py => read_only_rx_spur_node.py} | 35 +- ... read_only_rx_susceptibility_prof_node.py} | 67 ++- ...lingNode.py => read_only_sampling_node.py} | 56 +- ...pNode.py => read_only_scene_group_node.py} | 47 +- ...py => read_only_solution_coupling_node.py} | 31 +- ...onsNode.py => read_only_solutions_node.py} | 21 +- ...yTerminator.py => read_only_terminator.py} | 49 +- ... => read_only_touchstone_coupling_node.py} | 48 +- ...nlyTR_Switch.py => read_only_tr_switch.py} | 63 +-- ...d_only_two_ray_path_loss_coupling_node.py} | 84 ++- ...de.py => read_only_tx_bb_emission_node.py} | 38 +- ...cNode.py => read_only_tx_harmonic_node.py} | 27 +- ...xMeasNode.py => read_only_tx_meas_node.py} | 36 +- ...de.py => read_only_tx_nb_emission_node.py} | 31 +- ...ead_only_tx_spectral_prof_emitter_node.py} | 46 +- ....py => read_only_tx_spectral_prof_node.py} | 92 ++-- ...xSpurNode.py => read_only_tx_spur_node.py} | 35 +- ...py => read_only_walfisch_coupling_node.py} | 104 ++-- ...dOnlyWaveform.py => read_only_waveform.py} | 130 +++-- ...{ResultPlotNode.py => result_plot_node.py} | 272 ++++++---- .../{RxMeasNode.py => rx_meas_node.py} | 176 +++--- ...roductNode.py => rx_mixer_product_node.py} | 177 +++--- ...aturationNode.py => rx_saturation_node.py} | 22 +- ...ectivityNode.py => rx_selectivity_node.py} | 29 +- .../{RxSpurNode.py => rx_spur_node.py} | 43 +- ...Node.py => rx_susceptibility_prof_node.py} | 153 +++--- .../{SamplingNode.py => sampling_node.py} | 80 +-- ...{SceneGroupNode.py => scene_group_node.py} | 85 +-- ...TraceNode.py => selectivity_trace_node.py} | 144 ++--- ...plingNode.py => solution_coupling_node.py} | 47 +- .../{SolutionsNode.py => solutions_node.py} | 25 +- .../{SpurTraceNode.py => spur_trace_node.py} | 156 +++--- ...eTraceNode.py => test_noise_trace_node.py} | 212 +++++--- ...lSimulation.py => top_level_simulation.py} | 18 +- ...ingNode.py => touchstone_coupling_node.py} | 80 +-- ...chTraceNode.py => tr_switch_trace_node.py} | 156 +++--- ...ableTraceNode.py => tunable_trace_node.py} | 166 +++--- ....py => two_ray_path_loss_coupling_node.py} | 200 ++++--- ...oneTraceNode.py => two_tone_trace_node.py} | 212 +++++--- ...EmissionNode.py => tx_bb_emission_node.py} | 52 +- ...{TxHarmonicNode.py => tx_harmonic_node.py} | 37 +- .../{TxMeasNode.py => tx_meas_node.py} | 60 ++- ...EmissionNode.py => tx_nb_emission_node.py} | 47 +- ...de.py => tx_spectral_prof_emitter_node.py} | 112 ++-- ...alProfNode.py => tx_spectral_prof_node.py} | 222 ++++---- .../{TxSpurNode.py => tx_spur_node.py} | 43 +- ...plingNode.py => walfisch_coupling_node.py} | 244 +++++---- 119 files changed, 7478 insertions(+), 6520 deletions(-) rename src/ansys/aedt/core/emit_core/nodes/{EmitNode.py => emit_node.py} (98%) rename src/ansys/aedt/core/emit_core/nodes/{generated/CategoriesViewNode.py => emitter_node.py} (82%) delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py delete mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py rename src/ansys/aedt/core/emit_core/nodes/generated/{AntennaNode.py => antenna_node.py} (66%) rename src/ansys/aedt/core/emit_core/nodes/generated/{AntennaPassband.py => antenna_passband.py} (69%) rename src/ansys/aedt/core/emit_core/nodes/generated/{BandFolder.py => band_folder.py} (78%) rename src/ansys/aedt/core/emit_core/nodes/generated/{BandTraceNode.py => band_trace_node.py} (61%) rename src/ansys/aedt/core/emit_core/nodes/generated/{CADNode.py => cad_node.py} (65%) create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py rename src/ansys/aedt/core/emit_core/nodes/generated/{CouplingLinkNode.py => coupling_link_node.py} (70%) rename src/ansys/aedt/core/emit_core/nodes/generated/{CouplingTraceNode.py => coupling_trace_node.py} (62%) rename src/ansys/aedt/core/emit_core/nodes/generated/{CouplingsNode.py => couplings_node.py} (80%) rename src/ansys/aedt/core/emit_core/nodes/generated/{CustomCouplingNode.py => custom_coupling_node.py} (71%) rename src/ansys/aedt/core/emit_core/nodes/generated/{EmiPlotMarkerNode.py => emi_plot_marker_node.py} (62%) rename src/ansys/aedt/core/emit_core/nodes/generated/{EmitSceneNode.py => emit_scene_node.py} (65%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ErcegCouplingNode.py => erceg_coupling_node.py} (64%) rename src/ansys/aedt/core/emit_core/nodes/generated/{HataCouplingNode.py => five_g_channel_model.py} (56%) rename src/ansys/aedt/core/emit_core/nodes/generated/{FiveGChannelModel.py => hata_coupling_node.py} (63%) rename src/ansys/aedt/core/emit_core/nodes/generated/{IndoorPropagationCouplingNode.py => indoor_propagation_coupling_node.py} (63%) create mode 100644 src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py rename src/ansys/aedt/core/emit_core/nodes/generated/{MPlexBandTraceNode.py => mplex_band_trace_node.py} (60%) rename src/ansys/aedt/core/emit_core/nodes/generated/{MultiplexerBand.py => multiplexer_band.py} (67%) rename src/ansys/aedt/core/emit_core/nodes/generated/{OutboardTraceNode.py => outboard_trace_node.py} (61%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ParametricCouplingTraceNode.py => parametric_coupling_trace_node.py} (60%) rename src/ansys/aedt/core/emit_core/nodes/generated/{PlotMarkerNode.py => plot_marker_node.py} (61%) rename src/ansys/aedt/core/emit_core/nodes/generated/{PlotNode.py => plot_node.py} (63%) rename src/ansys/aedt/core/emit_core/nodes/generated/{PowerDivider.py => power_divider.py} (65%) rename src/ansys/aedt/core/emit_core/nodes/generated/{PowerTraceNode.py => power_trace_node.py} (60%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ProfileTraceNode.py => profile_trace_node.py} (60%) rename src/ansys/aedt/core/emit_core/nodes/generated/{LogDistanceCouplingNode.py => propagation_loss_coupling_node.py} (65%) rename src/ansys/aedt/core/emit_core/nodes/generated/{RadioNode.py => radio_node.py} (75%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyAmplifier.py => read_only_amplifier.py} (80%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyAntennaNode.py => read_only_antenna_node.py} (80%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyAntennaPassband.py => read_only_antenna_passband.py} (81%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyBand.py => read_only_band.py} (74%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyBandFolder.py => read_only_band_folder.py} (72%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyCable.py => read_only_cable.py} (77%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyCADNode.py => read_only_cad_node.py} (77%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyCirculator.py => read_only_circulator.py} (79%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyCouplingLinkNode.py => read_only_coupling_link_node.py} (74%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyCouplingsNode.py => read_only_couplings_node.py} (77%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyCustomCouplingNode.py => read_only_custom_coupling_node.py} (76%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyEmitSceneNode.py => read_only_emit_scene_node.py} (71%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyErcegCouplingNode.py => read_only_erceg_coupling_node.py} (79%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyFilter.py => read_only_filter.py} (80%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyFiveGChannelModel.py => read_only_five_g_channel_model.py} (77%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyHataCouplingNode.py => read_only_hata_coupling_node.py} (78%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyIndoorPropagationCouplingNode.py => read_only_indoor_propagation_coupling_node.py} (77%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyIsolator.py => read_only_isolator.py} (79%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyLogDistanceCouplingNode.py => read_only_log_distance_coupling_node.py} (76%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyMultiplexer.py => read_only_multiplexer.py} (74%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyMultiplexerBand.py => read_only_multiplexer_band.py} (81%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyPowerDivider.py => read_only_power_divider.py} (79%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyPropagationLossCouplingNode.py => read_only_propagation_loss_coupling_node.py} (80%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyRadioNode.py => read_only_radio_node.py} (72%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyRxMeasNode.py => read_only_rx_meas_node.py} (81%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyRxMixerProductNode.py => read_only_rx_mixer_product_node.py} (79%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyRxSaturationNode.py => read_only_rx_saturation_node.py} (72%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyRxSelectivityNode.py => read_only_rx_selectivity_node.py} (74%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyRxSpurNode.py => read_only_rx_spur_node.py} (71%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyRxSusceptibilityProfNode.py => read_only_rx_susceptibility_prof_node.py} (79%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlySamplingNode.py => read_only_sampling_node.py} (76%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlySceneGroupNode.py => read_only_scene_group_node.py} (78%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlySolutionCouplingNode.py => read_only_solution_coupling_node.py} (76%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlySolutionsNode.py => read_only_solutions_node.py} (74%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyTerminator.py => read_only_terminator.py} (73%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyTouchstoneCouplingNode.py => read_only_touchstone_coupling_node.py} (77%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyTR_Switch.py => read_only_tr_switch.py} (79%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyTwoRayPathLossCouplingNode.py => read_only_two_ray_path_loss_coupling_node.py} (81%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyTxBbEmissionNode.py => read_only_tx_bb_emission_node.py} (70%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyTxHarmonicNode.py => read_only_tx_harmonic_node.py} (71%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyTxMeasNode.py => read_only_tx_meas_node.py} (80%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyTxNbEmissionNode.py => read_only_tx_nb_emission_node.py} (73%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyTxSpectralProfEmitterNode.py => read_only_tx_spectral_prof_emitter_node.py} (82%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyTxSpectralProfNode.py => read_only_tx_spectral_prof_node.py} (79%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyTxSpurNode.py => read_only_tx_spur_node.py} (71%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyWalfischCouplingNode.py => read_only_walfisch_coupling_node.py} (80%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ReadOnlyWaveform.py => read_only_waveform.py} (75%) rename src/ansys/aedt/core/emit_core/nodes/generated/{ResultPlotNode.py => result_plot_node.py} (62%) rename src/ansys/aedt/core/emit_core/nodes/generated/{RxMeasNode.py => rx_meas_node.py} (68%) rename src/ansys/aedt/core/emit_core/nodes/generated/{RxMixerProductNode.py => rx_mixer_product_node.py} (64%) rename src/ansys/aedt/core/emit_core/nodes/generated/{RxSaturationNode.py => rx_saturation_node.py} (76%) rename src/ansys/aedt/core/emit_core/nodes/generated/{RxSelectivityNode.py => rx_selectivity_node.py} (75%) rename src/ansys/aedt/core/emit_core/nodes/generated/{RxSpurNode.py => rx_spur_node.py} (73%) rename src/ansys/aedt/core/emit_core/nodes/generated/{RxSusceptibilityProfNode.py => rx_susceptibility_prof_node.py} (63%) rename src/ansys/aedt/core/emit_core/nodes/generated/{SamplingNode.py => sampling_node.py} (69%) rename src/ansys/aedt/core/emit_core/nodes/generated/{SceneGroupNode.py => scene_group_node.py} (70%) rename src/ansys/aedt/core/emit_core/nodes/generated/{SelectivityTraceNode.py => selectivity_trace_node.py} (60%) rename src/ansys/aedt/core/emit_core/nodes/generated/{SolutionCouplingNode.py => solution_coupling_node.py} (70%) rename src/ansys/aedt/core/emit_core/nodes/generated/{SolutionsNode.py => solutions_node.py} (73%) rename src/ansys/aedt/core/emit_core/nodes/generated/{SpurTraceNode.py => spur_trace_node.py} (61%) rename src/ansys/aedt/core/emit_core/nodes/generated/{TestNoiseTraceNode.py => test_noise_trace_node.py} (62%) rename src/ansys/aedt/core/emit_core/nodes/generated/{TopLevelSimulation.py => top_level_simulation.py} (70%) rename src/ansys/aedt/core/emit_core/nodes/generated/{TouchstoneCouplingNode.py => touchstone_coupling_node.py} (70%) rename src/ansys/aedt/core/emit_core/nodes/generated/{TRSwitchTraceNode.py => tr_switch_trace_node.py} (61%) rename src/ansys/aedt/core/emit_core/nodes/generated/{TunableTraceNode.py => tunable_trace_node.py} (61%) rename src/ansys/aedt/core/emit_core/nodes/generated/{TwoRayPathLossCouplingNode.py => two_ray_path_loss_coupling_node.py} (64%) rename src/ansys/aedt/core/emit_core/nodes/generated/{TwoToneTraceNode.py => two_tone_trace_node.py} (62%) rename src/ansys/aedt/core/emit_core/nodes/generated/{TxBbEmissionNode.py => tx_bb_emission_node.py} (69%) rename src/ansys/aedt/core/emit_core/nodes/generated/{TxHarmonicNode.py => tx_harmonic_node.py} (70%) rename src/ansys/aedt/core/emit_core/nodes/generated/{TxMeasNode.py => tx_meas_node.py} (74%) rename src/ansys/aedt/core/emit_core/nodes/generated/{TxNbEmissionNode.py => tx_nb_emission_node.py} (69%) rename src/ansys/aedt/core/emit_core/nodes/generated/{TxSpectralProfEmitterNode.py => tx_spectral_prof_emitter_node.py} (66%) rename src/ansys/aedt/core/emit_core/nodes/generated/{TxSpectralProfNode.py => tx_spectral_prof_node.py} (63%) rename src/ansys/aedt/core/emit_core/nodes/generated/{TxSpurNode.py => tx_spur_node.py} (73%) rename src/ansys/aedt/core/emit_core/nodes/generated/{WalfischCouplingNode.py => walfisch_coupling_node.py} (64%) diff --git a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py b/src/ansys/aedt/core/emit_core/nodes/emit_node.py similarity index 98% rename from src/ansys/aedt/core/emit_core/nodes/EmitNode.py rename to src/ansys/aedt/core/emit_core/nodes/emit_node.py index 40562624469..f450ef1486b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/EmitNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/emit_node.py @@ -26,9 +26,9 @@ import ansys.aedt.core.generic.constants as consts -from ..emit_constants import EMIT_INTERNAL_UNITS -from ..emit_constants import EMIT_VALID_UNITS -from ..emit_constants import data_rate_conv +from ansys.aedt.core.emit_core.emit_constants import EMIT_INTERNAL_UNITS +from ansys.aedt.core.emit_core.emit_constants import EMIT_VALID_UNITS +from ansys.aedt.core.emit_core.emit_constants import data_rate_conv class EmitNode: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py b/src/ansys/aedt/core/emit_core/nodes/emitter_node.py similarity index 82% rename from src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py rename to src/ansys/aedt/core/emit_core/nodes/emitter_node.py index 64dbb73908e..0d72b60e903 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CategoriesViewNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/emitter_node.py @@ -1,7 +1,6 @@ # -*- coding: utf-8 -*- # # Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. # SPDX-License-Identifier: MIT # # @@ -23,10 +22,13 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -from ..EmitNode import EmitNode +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode +from ansys.aedt.core.emit_core.nodes.generated.radio_node import RadioNode +from ansys.aedt.core.emit_core.nodes.generated.antenna_node import AntennaNode - -class CategoriesViewNode(EmitNode): +class EmitterNode(RadioNode, AntennaNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False EmitNode.__init__(self, emit_obj, result_id, node_id) + + \ No newline at end of file diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index 0892f101afa..41002ca9c0b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class Amplifier(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -53,11 +49,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,42 +65,48 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class AmplifierTypeOption(Enum): - TRANSMIT_AMPLIFIER = "Transmit Amplifier" # eslint-disable-line no-eval - RECEIVE_AMPLIFIER = "Receive Amplifier" # eslint-disable-line no-eval + TRANSMIT_AMPLIFIER = "Transmit Amplifier" # eslint-disable-line no-eval + RECEIVE_AMPLIFIER = "Receive Amplifier" # eslint-disable-line no-eval @property def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type Configures the amplifier as a Tx or Rx amplifier - """ + """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val.upper()] - return val # type: ignore + return val @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Type={value.value}"]) @property def gain(self) -> float: @@ -112,11 +116,13 @@ def gain(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Gain") - return val # type: ignore + return float(val) @gain.setter - def gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Gain={value}"]) + def gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Gain={value}"]) @property def center_frequency(self) -> float: @@ -127,12 +133,14 @@ def center_frequency(self) -> float: """ val = self._get_property("Center Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @center_frequency.setter - def center_frequency(self, value: float | str): + def center_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Center Frequency={value}"]) @property def bandwidth(self) -> float: @@ -143,12 +151,14 @@ def bandwidth(self) -> float: """ val = self._get_property("Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @bandwidth.setter - def bandwidth(self, value: float | str): + def bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth={value}"]) @property def noise_figure(self) -> float: @@ -158,11 +168,13 @@ def noise_figure(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Noise Figure") - return val # type: ignore + return float(val) @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def saturation_level(self) -> float: @@ -173,12 +185,14 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @saturation_level.setter - def saturation_level(self, value: float | str): + def saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Saturation Level={value}"]) @property def p1_db_point_ref_input(self) -> float: @@ -189,12 +203,14 @@ def p1_db_point_ref_input(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value: float | str): + def p1_db_point_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input={value}"]) @property def ip3_ref_input(self) -> float: @@ -205,12 +221,14 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def shape_factor(self) -> float: @@ -220,11 +238,13 @@ def shape_factor(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return float(val) @shape_factor.setter - def shape_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) + def shape_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Shape Factor={value}"]) @property def reverse_isolation(self) -> float: @@ -234,11 +254,13 @@ def reverse_isolation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return float(val) @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -248,8 +270,11 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return int(val) @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index 6d6316c9c33..029d9456a26 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class Band(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -41,7 +37,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -52,13 +48,15 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") - return val # type: ignore + return val @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port={value}"]) @property def use_dd_1494_mode(self) -> bool: @@ -68,12 +66,13 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - val = val == "true" - return val # type: ignore + return (val == true) @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use DD-1494 Mode={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use DD-1494 Mode={value}"]) @property def use_emission_designator(self) -> bool: @@ -83,44 +82,47 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - val = val == "true" - return val # type: ignore + return (val == true) @use_emission_designator.setter def use_emission_designator(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Emission Designator={value}"]) @property def emission_designator(self) -> str: """Emission Designator Enter the Emission Designator to define the bandwidth and modulation - """ + """ val = self._get_property("Emission Designator") - return val # type: ignore + return val @emission_designator.setter def emission_designator(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Emission Designator={value}"]) @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW Channel Bandwidth based off the emission designator - """ + """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def emit_modulation_type(self) -> str: """EMIT Modulation Type Modulation based off the emission designator - """ + """ val = self._get_property("EMIT Modulation Type") - return val # type: ignore + return val @property def override_emission_designator_bw(self) -> bool: @@ -131,14 +133,13 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - val = val == "true" - return val # type: ignore + return (val == true) @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Override Emission Designator BW={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Override Emission Designator BW={value}"]) @property def channel_bandwidth(self) -> float: @@ -149,39 +150,43 @@ def channel_bandwidth(self) -> float: """ val = self._get_property("Channel Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @channel_bandwidth.setter - def channel_bandwidth(self, value: float | str): + def channel_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Bandwidth={value}"]) class ModulationOption(Enum): - GENERIC = "Generic" # eslint-disable-line no-eval - AM = "AM" # eslint-disable-line no-eval - LSB = "LSB" # eslint-disable-line no-eval - USB = "USB" # eslint-disable-line no-eval - FM = "FM" # eslint-disable-line no-eval - FSK = "FSK" # eslint-disable-line no-eval - MSK = "MSK" # eslint-disable-line no-eval - PSK = "PSK" # eslint-disable-line no-eval - QAM = "QAM" # eslint-disable-line no-eval - APSK = "APSK" # eslint-disable-line no-eval - RADAR = "Radar" # eslint-disable-line no-eval + GENERIC = "Generic" # eslint-disable-line no-eval + AM = "AM" # eslint-disable-line no-eval + LSB = "LSB" # eslint-disable-line no-eval + USB = "USB" # eslint-disable-line no-eval + FM = "FM" # eslint-disable-line no-eval + FSK = "FSK" # eslint-disable-line no-eval + MSK = "MSK" # eslint-disable-line no-eval + PSK = "PSK" # eslint-disable-line no-eval + QAM = "QAM" # eslint-disable-line no-eval + APSK = "APSK" # eslint-disable-line no-eval + RADAR = "Radar" # eslint-disable-line no-eval @property def modulation(self) -> ModulationOption: """Modulation Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Modulation") val = self.ModulationOption[val.upper()] - return val # type: ignore + return val @modulation.setter def modulation(self, value: ModulationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation={value.value}"]) @property def max_modulating_freq(self) -> float: @@ -192,12 +197,14 @@ def max_modulating_freq(self) -> float: """ val = self._get_property("Max Modulating Freq.") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @max_modulating_freq.setter - def max_modulating_freq(self, value: float | str): + def max_modulating_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Modulating Freq.={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Modulating Freq.={value}"]) @property def modulation_index(self) -> float: @@ -207,11 +214,13 @@ def modulation_index(self) -> float: Value should be between 0.01 and 1. """ val = self._get_property("Modulation Index") - return val # type: ignore + return float(val) @modulation_index.setter - def modulation_index(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Index={value}"]) + def modulation_index(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation Index={value}"]) @property def freq_deviation(self) -> float: @@ -222,12 +231,14 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @freq_deviation.setter - def freq_deviation(self, value: float | str): + def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation={value}"]) @property def bit_rate(self) -> float: @@ -238,12 +249,14 @@ def bit_rate(self) -> float: """ val = self._get_property("Bit Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return float(val) @bit_rate.setter - def bit_rate(self, value: float | str): + def bit_rate(self, value : float|str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bit Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bit Rate={value}"]) @property def sidelobes(self) -> int: @@ -253,110 +266,122 @@ def sidelobes(self) -> int: Value should be greater than 0. """ val = self._get_property("Sidelobes") - return val # type: ignore + return int(val) @sidelobes.setter def sidelobes(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sidelobes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sidelobes={value}"]) @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation FSK frequency deviation: helps determine spectral profile Value should be greater than 1. """ val = self._get_property("Freq. Deviation ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @freq_deviation_.setter - def freq_deviation_(self, value: float | str): + def freq_deviation_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation ={value}"]) class PSKTypeOption(Enum): - BPSK = "BPSK" # eslint-disable-line no-eval - QPSK = "QPSK" # eslint-disable-line no-eval - PSK_8 = "PSK-8" # eslint-disable-line no-eval - PSK_16 = "PSK-16" # eslint-disable-line no-eval - PSK_32 = "PSK-32" # eslint-disable-line no-eval - PSK_64 = "PSK-64" # eslint-disable-line no-eval + BPSK = "BPSK" # eslint-disable-line no-eval + QPSK = "QPSK" # eslint-disable-line no-eval + PSK_8 = "PSK-8" # eslint-disable-line no-eval + PSK_16 = "PSK-16" # eslint-disable-line no-eval + PSK_32 = "PSK-32" # eslint-disable-line no-eval + PSK_64 = "PSK-64" # eslint-disable-line no-eval @property def psk_type(self) -> PSKTypeOption: """PSK Type PSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val.upper()] - return val # type: ignore + return val @psk_type.setter def psk_type(self, value: PSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"PSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"PSK Type={value.value}"]) class FSKTypeOption(Enum): - FSK_2 = "FSK-2" # eslint-disable-line no-eval - FSK_4 = "FSK-4" # eslint-disable-line no-eval - FSK_8 = "FSK-8" # eslint-disable-line no-eval + FSK_2 = "FSK-2" # eslint-disable-line no-eval + FSK_4 = "FSK-4" # eslint-disable-line no-eval + FSK_8 = "FSK-8" # eslint-disable-line no-eval @property def fsk_type(self) -> FSKTypeOption: """FSK Type FSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val.upper()] - return val # type: ignore + return val @fsk_type.setter def fsk_type(self, value: FSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FSK Type={value.value}"]) class QAMTypeOption(Enum): - QAM_4 = "QAM-4" # eslint-disable-line no-eval - QAM_16 = "QAM-16" # eslint-disable-line no-eval - QAM_64 = "QAM-64" # eslint-disable-line no-eval - QAM_256 = "QAM-256" # eslint-disable-line no-eval - QAM_1024 = "QAM-1024" # eslint-disable-line no-eval + QAM_4 = "QAM-4" # eslint-disable-line no-eval + QAM_16 = "QAM-16" # eslint-disable-line no-eval + QAM_64 = "QAM-64" # eslint-disable-line no-eval + QAM_256 = "QAM-256" # eslint-disable-line no-eval + QAM_1024 = "QAM-1024" # eslint-disable-line no-eval @property def qam_type(self) -> QAMTypeOption: """QAM Type QAM modulation order: helps determine spectral profile - """ + """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val.upper()] - return val # type: ignore + return val @qam_type.setter def qam_type(self, value: QAMTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"QAM Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"QAM Type={value.value}"]) class APSKTypeOption(Enum): - APSK_4 = "APSK-4" # eslint-disable-line no-eval - APSK_16 = "APSK-16" # eslint-disable-line no-eval - APSK_64 = "APSK-64" # eslint-disable-line no-eval - APSK_256 = "APSK-256" # eslint-disable-line no-eval - APSK_1024 = "APSK-1024" # eslint-disable-line no-eval + APSK_4 = "APSK-4" # eslint-disable-line no-eval + APSK_16 = "APSK-16" # eslint-disable-line no-eval + APSK_64 = "APSK-64" # eslint-disable-line no-eval + APSK_256 = "APSK-256" # eslint-disable-line no-eval + APSK_1024 = "APSK-1024" # eslint-disable-line no-eval @property def apsk_type(self) -> APSKTypeOption: """APSK Type APSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val.upper()] - return val # type: ignore + return val @apsk_type.setter def apsk_type(self, value: APSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"APSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"APSK Type={value.value}"]) @property def start_frequency(self) -> float: @@ -367,12 +392,14 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -383,12 +410,14 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -399,12 +428,14 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @channel_spacing.setter - def channel_spacing(self, value: float | str): + def channel_spacing(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Spacing={value}"]) @property def tx_offset(self) -> float: @@ -415,33 +446,37 @@ def tx_offset(self) -> float: """ val = self._get_property("Tx Offset") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @tx_offset.setter - def tx_offset(self, value: float | str): + def tx_offset(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Offset={value}"]) class RadarTypeOption(Enum): - CW = "CW" # eslint-disable-line no-eval - FM_CW = "FM-CW" # eslint-disable-line no-eval - FM_PULSE = "FM Pulse" # eslint-disable-line no-eval - NON_FM_PULSE = "Non-FM Pulse" # eslint-disable-line no-eval - PHASE_CODED = "Phase Coded" # eslint-disable-line no-eval + CW = "CW" # eslint-disable-line no-eval + FM_CW = "FM-CW" # eslint-disable-line no-eval + FM_PULSE = "FM Pulse" # eslint-disable-line no-eval + NON_FM_PULSE = "Non-FM Pulse" # eslint-disable-line no-eval + PHASE_CODED = "Phase Coded" # eslint-disable-line no-eval @property def radar_type(self) -> RadarTypeOption: """Radar Type Radar type: helps determine spectral profile - """ + """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val.upper()] - return val # type: ignore + return val @radar_type.setter def radar_type(self, value: RadarTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radar Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Radar Type={value.value}"]) @property def hopping_radar(self) -> bool: @@ -451,12 +486,13 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - val = val == "true" - return val # type: ignore + return (val == true) @hopping_radar.setter def hopping_radar(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hopping Radar={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hopping Radar={value}"]) @property def post_october_2020_procurement(self) -> bool: @@ -467,14 +503,13 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - val = val == "true" - return val # type: ignore + return (val == true) @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Post October 2020 Procurement={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Post October 2020 Procurement={value}"]) @property def hop_range_min_freq(self) -> float: @@ -485,12 +520,14 @@ def hop_range_min_freq(self) -> float: """ val = self._get_property("Hop Range Min Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @hop_range_min_freq.setter - def hop_range_min_freq(self, value: float | str): + def hop_range_min_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Min Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hop Range Min Freq={value}"]) @property def hop_range_max_freq(self) -> float: @@ -501,12 +538,14 @@ def hop_range_max_freq(self) -> float: """ val = self._get_property("Hop Range Max Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @hop_range_max_freq.setter - def hop_range_max_freq(self, value: float | str): + def hop_range_max_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Max Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hop Range Max Freq={value}"]) @property def pulse_duration(self) -> float: @@ -517,12 +556,14 @@ def pulse_duration(self) -> float: """ val = self._get_property("Pulse Duration") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return float(val) @pulse_duration.setter - def pulse_duration(self, value: float | str): + def pulse_duration(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Duration={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Duration={value}"]) @property def pulse_rise_time(self) -> float: @@ -533,12 +574,14 @@ def pulse_rise_time(self) -> float: """ val = self._get_property("Pulse Rise Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return float(val) @pulse_rise_time.setter - def pulse_rise_time(self, value: float | str): + def pulse_rise_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Rise Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Rise Time={value}"]) @property def pulse_fall_time(self) -> float: @@ -549,12 +592,14 @@ def pulse_fall_time(self) -> float: """ val = self._get_property("Pulse Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return float(val) @pulse_fall_time.setter - def pulse_fall_time(self, value: float | str): + def pulse_fall_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Fall Time={value}"]) @property def pulse_repetition_rate(self) -> float: @@ -564,11 +609,13 @@ def pulse_repetition_rate(self) -> float: Value should be greater than 1. """ val = self._get_property("Pulse Repetition Rate") - return val # type: ignore + return float(val) @pulse_repetition_rate.setter - def pulse_repetition_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Repetition Rate={value}"]) + def pulse_repetition_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Repetition Rate={value}"]) @property def number_of_chips(self) -> float: @@ -578,11 +625,13 @@ def number_of_chips(self) -> float: Value should be greater than 1. """ val = self._get_property("Number of Chips") - return val # type: ignore + return float(val) @number_of_chips.setter - def number_of_chips(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Chips={value}"]) + def number_of_chips(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Chips={value}"]) @property def pulse_compression_ratio(self) -> float: @@ -592,11 +641,13 @@ def pulse_compression_ratio(self) -> float: Value should be greater than 1. """ val = self._get_property("Pulse Compression Ratio") - return val # type: ignore + return float(val) @pulse_compression_ratio.setter - def pulse_compression_ratio(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Compression Ratio={value}"]) + def pulse_compression_ratio(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Compression Ratio={value}"]) @property def fm_chirp_period(self) -> float: @@ -607,12 +658,14 @@ def fm_chirp_period(self) -> float: """ val = self._get_property("FM Chirp Period") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return float(val) @fm_chirp_period.setter - def fm_chirp_period(self, value: float | str): + def fm_chirp_period(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Chirp Period={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Chirp Period={value}"]) @property def fm_freq_deviation(self) -> float: @@ -623,12 +676,14 @@ def fm_freq_deviation(self) -> float: """ val = self._get_property("FM Freq Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @fm_freq_deviation.setter - def fm_freq_deviation(self, value: float | str): + def fm_freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Freq Deviation={value}"]) @property def fm_freq_dev_bandwidth(self) -> float: @@ -640,9 +695,12 @@ def fm_freq_dev_bandwidth(self) -> float: """ val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value: float | str): + def fm_freq_dev_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Dev Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Freq Dev Bandwidth={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index 980157ccf6b..9f56147a2c4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class Cable(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -53,11 +49,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,29 +65,33 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - CONSTANT_LOSS = "Constant Loss" # eslint-disable-line no-eval - COAXIAL_CABLE = "Coaxial Cable" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + CONSTANT_LOSS = "Constant Loss" # eslint-disable-line no-eval + COAXIAL_CABLE = "Coaxial Cable" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -97,14 +99,16 @@ def type(self) -> TypeOption: Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def length(self) -> float: @@ -115,12 +119,14 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @length.setter - def length(self, value: float | str): + def length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Length={value}"]) @property def loss_per_length(self) -> float: @@ -130,11 +136,13 @@ def loss_per_length(self) -> float: Value should be between 0 and 20. """ val = self._get_property("Loss Per Length") - return val # type: ignore + return float(val) @loss_per_length.setter - def loss_per_length(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Loss Per Length={value}"]) + def loss_per_length(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Loss Per Length={value}"]) @property def measurement_length(self) -> float: @@ -145,12 +153,14 @@ def measurement_length(self) -> float: """ val = self._get_property("Measurement Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @measurement_length.setter - def measurement_length(self, value: float | str): + def measurement_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Length={value}"]) @property def resistive_loss_constant(self) -> float: @@ -160,11 +170,13 @@ def resistive_loss_constant(self) -> float: Value should be between 0 and 2. """ val = self._get_property("Resistive Loss Constant") - return val # type: ignore + return float(val) @resistive_loss_constant.setter - def resistive_loss_constant(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resistive Loss Constant={value}"]) + def resistive_loss_constant(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Resistive Loss Constant={value}"]) @property def dielectric_loss_constant(self) -> float: @@ -174,17 +186,20 @@ def dielectric_loss_constant(self) -> float: Value should be between 0 and 1. """ val = self._get_property("Dielectric Loss Constant") - return val # type: ignore + return float(val) @dielectric_loss_constant.setter - def dielectric_loss_constant(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Dielectric Loss Constant={value}"]) + def dielectric_loss_constant(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Dielectric Loss Constant={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index 38f9add5dd1..c01d32ab9f7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class Circulator(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -53,11 +49,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,28 +65,32 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -96,32 +98,36 @@ def type(self) -> TypeOption: Type of circulator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the circulator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] - return val # type: ignore + return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -131,11 +137,13 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return float(val) @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -146,12 +154,13 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - val = val == "true" - return val # type: ignore + return (val == true) @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -161,11 +170,13 @@ def reverse_isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return float(val) @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -176,12 +187,13 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - val = val == "true" - return val # type: ignore + return (val == true) @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -191,11 +203,13 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -206,12 +220,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -222,12 +238,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -238,12 +256,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -254,18 +274,21 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index 01351500a9d..c5b58ede000 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class Filter(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -53,11 +49,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,33 +65,37 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" - LOW_PASS = "Low Pass" # nosec B105 - HIGH_PASS = "High Pass" # nosec B105 - BAND_PASS = "Band Pass" # nosec B105 - BAND_STOP = "Band Stop" - TUNABLE_BANDPASS = "Tunable Bandpass" - TUNABLE_BANDSTOP = "Tunable Bandstop" + BY_FILE = "By File" # eslint-disable-line no-eval + LOW_PASS = "Low Pass" # eslint-disable-line no-eval + HIGH_PASS = "High Pass" # eslint-disable-line no-eval + BAND_PASS = "Band Pass" # eslint-disable-line no-eval + BAND_STOP = "Band Stop" # eslint-disable-line no-eval + TUNABLE_BANDPASS = "Tunable Bandpass" # eslint-disable-line no-eval + TUNABLE_BANDSTOP = "Tunable Bandstop" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -101,14 +103,16 @@ def type(self) -> TypeOption: Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def insertion_loss(self) -> float: @@ -118,11 +122,13 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return float(val) @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -132,11 +138,13 @@ def stop_band_attenuation(self) -> float: Value should be less than 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return float(val) @stop_band_attenuation.setter - def stop_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -147,12 +155,14 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @max_pass_band.setter - def max_pass_band(self, value: float | str): + def max_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -163,12 +173,14 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @min_stop_band.setter - def min_stop_band(self, value: float | str): + def min_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -179,12 +191,14 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @max_stop_band.setter - def max_stop_band(self, value: float | str): + def max_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -195,12 +209,14 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @min_pass_band.setter - def min_pass_band(self, value: float | str): + def min_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -211,12 +227,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -227,12 +245,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -243,12 +263,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -259,108 +281,122 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff Lower cutoff frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @lower_cutoff_.setter - def lower_cutoff_(self, value: float | str): + def lower_cutoff_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff ={value}"]) @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band Lower stop band frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @lower_stop_band_.setter - def lower_stop_band_(self, value: float | str): + def lower_stop_band_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band ={value}"]) @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band Higher stop band frequency Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @higher_stop_band_.setter - def higher_stop_band_(self, value: float | str): + def higher_stop_band_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band ={value}"]) @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff Higher cutoff frequency Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @higher_cutoff_.setter - def higher_cutoff_(self, value: float | str): + def higher_cutoff_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff ={value}"]) @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency Lowest tuned frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lowest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @lowest_tuned_frequency_.setter - def lowest_tuned_frequency_(self, value: float | str): + def lowest_tuned_frequency_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lowest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lowest Tuned Frequency ={value}"]) @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency Highest tuned frequency Value should be between 1 and 1e+11. """ val = self._get_property("Highest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @highest_tuned_frequency_.setter - def highest_tuned_frequency_(self, value: float | str): + def highest_tuned_frequency_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Highest Tuned Frequency ={value}"]) @property def percent_bandwidth(self) -> float: @@ -370,11 +406,13 @@ def percent_bandwidth(self) -> float: Value should be between 0.001 and 100. """ val = self._get_property("Percent Bandwidth") - return val # type: ignore + return float(val) @percent_bandwidth.setter - def percent_bandwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percent Bandwidth={value}"]) + def percent_bandwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Percent Bandwidth={value}"]) @property def shape_factor(self) -> float: @@ -384,17 +422,20 @@ def shape_factor(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return float(val) @shape_factor.setter - def shape_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) + def shape_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Shape Factor={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index c1db4e01460..7a29c30dd4f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class Isolator(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -53,11 +49,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,28 +65,32 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -96,32 +98,36 @@ def type(self) -> TypeOption: Type of isolator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the isolator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] - return val # type: ignore + return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -131,11 +137,13 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return float(val) @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -146,12 +154,13 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - val = val == "true" - return val # type: ignore + return (val == true) @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -161,11 +170,13 @@ def reverse_isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return float(val) @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -176,12 +187,13 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - val = val == "true" - return val # type: ignore + return (val == true) @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -191,11 +203,13 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -206,12 +220,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -222,12 +238,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -238,12 +256,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -254,18 +274,21 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index d33fd2384c4..59c0bf7629f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class Multiplexer(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -57,11 +53,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -71,28 +69,32 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_PASS_BAND = "By Pass Band" # nosec B105 - BY_FILE = "By File" + BY_PASS_BAND = "By Pass Band" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -101,32 +103,36 @@ def type(self) -> TypeOption: simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the multiplexer. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] - return val # type: ignore + return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def flip_ports_vertically(self) -> bool: @@ -136,12 +142,13 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - val = val == "true" - return val # type: ignore + return (val == true) @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flip Ports Vertically={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Flip Ports Vertically={value}"]) @property def ports(self): @@ -149,19 +156,22 @@ def ports(self): Assigns the child port nodes to the multiplexers ports "A list of values." - """ + """ val = self._get_property("Ports") - return val # type: ignore + return val @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ports={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py deleted file mode 100644 index 75232c240c8..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PropagationLossCouplingNode.py +++ /dev/null @@ -1,350 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from enum import Enum - -from ..EmitNode import EmitNode - - -class PropagationLossCouplingNode(EmitNode): - def __init__(self, emit_obj, result_id, node_id): - self._is_component = False - EmitNode.__init__(self, emit_obj, result_id, node_id) - - @property - def parent(self): - """The parent of this emit node.""" - return self._parent - - def rename(self, new_name: str): - """Rename this node""" - self._rename(new_name) - - def duplicate(self, new_name: str): - """Duplicate this node""" - return self._duplicate(new_name) - - def delete(self): - """Delete this node""" - self._delete() - - @property - def enabled(self) -> bool: - """Enabled - Enable/Disable coupling - - Value should be 'true' or 'false'. - """ - val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore - - @enabled.setter - def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) - - @property - def antenna_a(self) -> EmitNode: - """Antenna A - First antenna of the pair to apply the coupling values to - - """ - val = self._get_property("Antenna A") - return val # type: ignore - - @antenna_a.setter - def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) - - @property - def antenna_b(self) -> EmitNode: - """Antenna B - Second antenna of the pair to apply the coupling values to - - """ - val = self._get_property("Antenna B") - return val # type: ignore - - @antenna_b.setter - def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) - - @property - def enable_refinement(self) -> bool: - """Enable Refinement - Enables/disables refined sampling of the frequency domain. - - Value should be 'true' or 'false'. - """ - val = self._get_property("Enable Refinement") - val = val == "true" - return val # type: ignore - - @enable_refinement.setter - def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) - - @property - def adaptive_sampling(self) -> bool: - """Adaptive Sampling - Enables/disables adaptive refinement the frequency domain sampling. - - Value should be 'true' or 'false'. - """ - val = self._get_property("Adaptive Sampling") - val = val == "true" - return val # type: ignore - - @adaptive_sampling.setter - def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) - - @property - def refinement_domain(self): - """Refinement Domain - Points to use when refining the frequency domain. - - """ - val = self._get_property("Refinement Domain") - return val # type: ignore - - @refinement_domain.setter - def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) - - @property - def custom_fading_margin(self) -> float: - """Custom Fading Margin - Sets a custom fading margin to be applied to all coupling defined by - this node - - Value should be between 0 and 100. - """ - val = self._get_property("Custom Fading Margin") - return val # type: ignore - - @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) - - @property - def polarization_mismatch(self) -> float: - """Polarization Mismatch - Sets a margin for polarization mismatch to be applied to all coupling - defined by this node - - Value should be between 0 and 100. - """ - val = self._get_property("Polarization Mismatch") - return val # type: ignore - - @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) - - @property - def pointing_error_loss(self) -> float: - """Pointing Error Loss - Sets a margin for pointing error loss to be applied to all coupling - defined by this node - - Value should be between 0 and 100. - """ - val = self._get_property("Pointing Error Loss") - return val # type: ignore - - @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) - - class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval - - @property - def fading_type(self) -> FadingTypeOption: - """Fading Type - Specify the type of fading to include - - """ - val = self._get_property("Fading Type") - val = self.FadingTypeOption[val.upper()] - return val # type: ignore - - @fading_type.setter - def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) - - @property - def fading_availability(self) -> float: - """Fading Availability - The probability that the propagation loss in dB is below its median - value plus the margin - - Value should be between 0 and 100. - """ - val = self._get_property("Fading Availability") - return val # type: ignore - - @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) - - @property - def std_deviation(self) -> float: - """Std Deviation - Standard deviation modeling the random amount of shadowing loss - - Value should be between 0 and 100. - """ - val = self._get_property("Std Deviation") - return val # type: ignore - - @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) - - @property - def include_rain_attenuation(self) -> bool: - """Include Rain Attenuation - Adds a margin for rain attenuation to the computed coupling - - Value should be 'true' or 'false'. - """ - val = self._get_property("Include Rain Attenuation") - val = val == "true" - return val # type: ignore - - @include_rain_attenuation.setter - def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) - - @property - def rain_availability(self) -> float: - """Rain Availability - Percentage of time attenuation due to range is < computed margin (range - from 99-99.999%) - - Value should be between 99 and 99.999. - """ - val = self._get_property("Rain Availability") - return val # type: ignore - - @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) - - @property - def rain_rate(self) -> float: - """Rain Rate - Rain rate (mm/hr) exceeded for 0.01% of the time - - Value should be between 0 and 1000. - """ - val = self._get_property("Rain Rate") - return val # type: ignore - - @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) - - @property - def polarization_tilt_angle(self) -> float: - """Polarization Tilt Angle - Polarization tilt angle of the transmitted signal relative to the - horizontal - - Value should be between 0 and 180. - """ - val = self._get_property("Polarization Tilt Angle") - return val # type: ignore - - @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) - - @property - def include_atmospheric_absorption(self) -> bool: - """Include Atmospheric Absorption - Adds a margin for atmospheric absorption due to oxygen/water vapor to - the computed coupling - - Value should be 'true' or 'false'. - """ - val = self._get_property("Include Atmospheric Absorption") - val = val == "true" - return val # type: ignore - - @include_atmospheric_absorption.setter - def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) - - @property - def temperature(self) -> float: - """Temperature - Air temperature in degrees Celsius - - Value should be between -273 and 100. - """ - val = self._get_property("Temperature") - return val # type: ignore - - @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) - - @property - def total_air_pressure(self) -> float: - """Total Air Pressure - Total air pressure - - Value should be between 0 and 2000. - """ - val = self._get_property("Total Air Pressure") - return val # type: ignore - - @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) - - @property - def water_vapor_concentration(self) -> float: - """Water Vapor Concentration - Water vapor concentration - - Value should be between 0 and 2000. - """ - val = self._get_property("Water Vapor Concentration") - return val # type: ignore - - @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py deleted file mode 100644 index af4e7362b96..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRfSystemGroup.py +++ /dev/null @@ -1,62 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import EmitNode - - -class ReadOnlyRfSystemGroup(EmitNode): - def __init__(self, emit_obj, result_id, node_id): - self._is_component = False - EmitNode.__init__(self, emit_obj, result_id, node_id) - - @property - def parent(self): - """The parent of this emit node.""" - return self._parent - - @property - def enable_passive_noise(self) -> bool: - """Enable Passive Noise - If true, the noise contributions of antennas and passive components are - included in cosite simulation. Note: Antenna and passive component - noise is always included in link analysis simulation. - - Value should be 'true' or 'false'. - """ - val = self._get_property("Enable Passive Noise") - val = val == "true" - return val # type: ignore - - @property - def enforce_thermal_noise_floor(self) -> bool: - """Enforce Thermal Noise Floor - If true, all broadband noise is limited by the thermal noise floor (-174 - dBm/Hz) - - Value should be 'true' or 'false'. - """ - val = self._get_property("Enforce Thermal Noise Floor") - val = val == "true" - return val # type: ignore diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py b/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py deleted file mode 100644 index d96c6c0d616..00000000000 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RfSystemGroup.py +++ /dev/null @@ -1,72 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from ..EmitNode import EmitNode - - -class RfSystemGroup(EmitNode): - def __init__(self, emit_obj, result_id, node_id): - self._is_component = False - EmitNode.__init__(self, emit_obj, result_id, node_id) - - @property - def parent(self): - """The parent of this emit node.""" - return self._parent - - @property - def enable_passive_noise(self) -> bool: - """Enable Passive Noise - If true, the noise contributions of antennas and passive components are - included in cosite simulation. Note: Antenna and passive component - noise is always included in link analysis simulation. - - Value should be 'true' or 'false'. - """ - val = self._get_property("Enable Passive Noise") - val = val == "true" - return val # type: ignore - - @enable_passive_noise.setter - def enable_passive_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Passive Noise={value}"]) - - @property - def enforce_thermal_noise_floor(self) -> bool: - """Enforce Thermal Noise Floor - If true, all broadband noise is limited by the thermal noise floor (-174 - dBm/Hz) - - Value should be 'true' or 'false'. - """ - val = self._get_property("Enforce Thermal Noise Floor") - val = val == "true" - return val # type: ignore - - @enforce_thermal_noise_floor.setter - def enforce_thermal_noise_floor(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Enforce Thermal Noise Floor={value}"] - ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index 5c9a04f19f0..d0f5217ddb0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class TR_Switch(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -53,11 +49,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,62 +65,68 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TxPortOption(Enum): - PORT_1 = "Port 1" # eslint-disable-line no-eval - PORT_2 = "Port 2" # eslint-disable-line no-eval + PORT_1 = "Port 1" # eslint-disable-line no-eval + PORT_2 = "Port 2" # eslint-disable-line no-eval @property def tx_port(self) -> TxPortOption: """Tx Port Specifies which port on the TR Switch is part of the Tx path. - """ + """ val = self._get_property("Tx Port") val = self.TxPortOption[val.upper()] - return val # type: ignore + return val @tx_port.setter def tx_port(self, value: TxPortOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Port={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Port={value.value}"]) class CommonPortLocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def common_port_location(self) -> CommonPortLocationOption: """Common Port Location Defines the orientation of the tr switch. - """ + """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val.upper()] - return val # type: ignore + return val @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Common Port Location={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Common Port Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -132,11 +136,13 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return float(val) @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_isolation(self) -> bool: @@ -147,12 +153,13 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - val = val == "true" - return val # type: ignore + return (val == true) @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -162,11 +169,13 @@ def isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return float(val) @isolation.setter - def isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) + def isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -177,12 +186,13 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - val = val == "true" - return val # type: ignore + return (val == true) @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -192,11 +202,13 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -207,12 +219,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -223,12 +237,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -239,12 +255,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -255,9 +273,12 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index afcf60b9aac..ec25a9fa320 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class Terminator(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -53,11 +49,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,28 +65,32 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -96,32 +98,36 @@ def type(self) -> TypeOption: Type of terminator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class PortLocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_location(self) -> PortLocationOption: """Port Location Defines the orientation of the terminator. - """ + """ val = self._get_property("Port Location") val = self.PortLocationOption[val.upper()] - return val # type: ignore + return val @port_location.setter def port_location(self, value: PortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port Location={value.value}"]) @property def vswr(self) -> float: @@ -133,17 +139,20 @@ def vswr(self) -> float: Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return float(val) @vswr.setter - def vswr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) + def vswr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"VSWR={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py index f087e04f687..3171537777a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class Waveform(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -41,7 +37,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -52,34 +48,38 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") - return val # type: ignore + return val @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port={value}"]) class WaveformOption(Enum): - PERIODIC_CLOCK = "Periodic Clock" # eslint-disable-line no-eval - SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" # eslint-disable-line no-eval - PRBS = "PRBS" # eslint-disable-line no-eval - PRBS_PERIODIC = "PRBS (Periodic)" # eslint-disable-line no-eval - IMPORTED = "Imported" # eslint-disable-line no-eval + PERIODIC_CLOCK = "Periodic Clock" # eslint-disable-line no-eval + SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" # eslint-disable-line no-eval + PRBS = "PRBS" # eslint-disable-line no-eval + PRBS_PERIODIC = "PRBS (Periodic)" # eslint-disable-line no-eval + IMPORTED = "Imported" # eslint-disable-line no-eval @property def waveform(self) -> WaveformOption: """Waveform Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Waveform") val = self.WaveformOption[val.upper()] - return val # type: ignore + return val @waveform.setter def waveform(self, value: WaveformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Waveform={value.value}"]) @property def start_frequency(self) -> float: @@ -90,12 +90,14 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -106,12 +108,14 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -122,12 +126,14 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @channel_spacing.setter - def channel_spacing(self, value: float | str): + def channel_spacing(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Spacing={value}"]) @property def clock_duty_cycle(self) -> float: @@ -137,11 +143,13 @@ def clock_duty_cycle(self) -> float: Value should be between 0.001 and 1. """ val = self._get_property("Clock Duty Cycle") - return val # type: ignore + return float(val) @clock_duty_cycle.setter - def clock_duty_cycle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Duty Cycle={value}"]) + def clock_duty_cycle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Clock Duty Cycle={value}"]) @property def clock_risefall_time(self) -> float: @@ -152,31 +160,35 @@ def clock_risefall_time(self) -> float: """ val = self._get_property("Clock Rise/Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return float(val) @clock_risefall_time.setter - def clock_risefall_time(self, value: float | str): + def clock_risefall_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Rise/Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Clock Rise/Fall Time={value}"]) class SpreadingTypeOption(Enum): - LOW_SPREAD = "Low Spread" # eslint-disable-line no-eval - CENTER_SPREAD = "Center Spread" # eslint-disable-line no-eval - HIGH_SPREAD = "High Spread" # eslint-disable-line no-eval + LOW_SPREAD = "Low Spread" # eslint-disable-line no-eval + CENTER_SPREAD = "Center Spread" # eslint-disable-line no-eval + HIGH_SPREAD = "High Spread" # eslint-disable-line no-eval @property def spreading_type(self) -> SpreadingTypeOption: """Spreading Type Type of spreading employed by the Spread Spectrum Clock - """ + """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val.upper()] - return val # type: ignore + return val @spreading_type.setter def spreading_type(self, value: SpreadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spreading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spreading Type={value.value}"]) @property def spread_percentage(self) -> float: @@ -186,11 +198,13 @@ def spread_percentage(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Spread Percentage") - return val # type: ignore + return float(val) @spread_percentage.setter - def spread_percentage(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spread Percentage={value}"]) + def spread_percentage(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spread Percentage={value}"]) @property def imported_spectrum(self) -> str: @@ -198,20 +212,22 @@ def imported_spectrum(self) -> str: Value should be a full file path. """ val = self._get_property("Imported Spectrum") - return val # type: ignore + return val @imported_spectrum.setter def imported_spectrum(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Imported Spectrum={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Imported Spectrum={value}"]) @property def raw_data_format(self) -> str: """Raw Data Format Format of the imported raw data - """ + """ val = self._get_property("Raw Data Format") - return val # type: ignore + return val @property def system_impedance(self) -> float: @@ -222,12 +238,14 @@ def system_impedance(self) -> float: """ val = self._get_property("System Impedance") val = self._convert_from_internal_units(float(val), "Resistance") - return val # type: ignore + return float(val) @system_impedance.setter - def system_impedance(self, value: float | str): + def system_impedance(self, value : float|str): value = self._convert_to_internal_units(value, "Resistance") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"System Impedance={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"System Impedance={value}"]) @property def advanced_extraction_params(self) -> bool: @@ -237,14 +255,13 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - val = val == "true" - return val # type: ignore + return (val == true) @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Advanced Extraction Params={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Advanced Extraction Params={value}"]) @property def nb_window_size(self) -> float: @@ -255,11 +272,13 @@ def nb_window_size(self) -> float: Value should be greater than 3. """ val = self._get_property("NB Window Size") - return val # type: ignore + return float(val) @nb_window_size.setter - def nb_window_size(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Window Size={value}"]) + def nb_window_size(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NB Window Size={value}"]) @property def bb_smoothing_factor(self) -> float: @@ -269,11 +288,13 @@ def bb_smoothing_factor(self) -> float: Value should be greater than 1. """ val = self._get_property("BB Smoothing Factor") - return val # type: ignore + return float(val) @bb_smoothing_factor.setter - def bb_smoothing_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Smoothing Factor={value}"]) + def bb_smoothing_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Smoothing Factor={value}"]) @property def nb_detector_threshold(self) -> float: @@ -283,29 +304,33 @@ def nb_detector_threshold(self) -> float: Value should be between 2 and 10. """ val = self._get_property("NB Detector Threshold") - return val # type: ignore + return float(val) @nb_detector_threshold.setter - def nb_detector_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Detector Threshold={value}"]) + def nb_detector_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NB Detector Threshold={value}"]) class AlgorithmOption(Enum): - FFT = "FFT" # eslint-disable-line no-eval - FOURIER_TRANSFORM = "Fourier Transform" # eslint-disable-line no-eval + FFT = "FFT" # eslint-disable-line no-eval + FOURIER_TRANSFORM = "Fourier Transform" # eslint-disable-line no-eval @property def algorithm(self) -> AlgorithmOption: """Algorithm Algorithm used to transform the imported time domain spectrum - """ + """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val.upper()] - return val # type: ignore + return val @algorithm.setter def algorithm(self, value: AlgorithmOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Algorithm={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Algorithm={value.value}"]) @property def start_time(self) -> float: @@ -316,27 +341,31 @@ def start_time(self) -> float: """ val = self._get_property("Start Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return float(val) @start_time.setter - def start_time(self, value: float | str): + def start_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Time={value}"]) @property def stop_time(self) -> float: """Stop Time Final time of the imported time domain spectrum - """ + """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return float(val) @stop_time.setter - def stop_time(self, value: float | str): + def stop_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Time={value}"]) @property def max_frequency(self) -> float: @@ -347,37 +376,41 @@ def max_frequency(self) -> float: """ val = self._get_property("Max Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @max_frequency.setter - def max_frequency(self, value: float | str): + def max_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Frequency={value}"]) class WindowTypeOption(Enum): - RECTANGULAR = "Rectangular" # eslint-disable-line no-eval - BARTLETT = "Bartlett" # eslint-disable-line no-eval - BLACKMAN = "Blackman" # eslint-disable-line no-eval - HAMMING = "Hamming" # eslint-disable-line no-eval - HANNING = "Hanning" # eslint-disable-line no-eval - KAISER = "Kaiser" # eslint-disable-line no-eval - LANZCOS = "Lanzcos" # eslint-disable-line no-eval - WELCH = "Welch" # eslint-disable-line no-eval - WEBER = "Weber" # eslint-disable-line no-eval + RECTANGULAR = "Rectangular" # eslint-disable-line no-eval + BARTLETT = "Bartlett" # eslint-disable-line no-eval + BLACKMAN = "Blackman" # eslint-disable-line no-eval + HAMMING = "Hamming" # eslint-disable-line no-eval + HANNING = "Hanning" # eslint-disable-line no-eval + KAISER = "Kaiser" # eslint-disable-line no-eval + LANZCOS = "Lanzcos" # eslint-disable-line no-eval + WELCH = "Welch" # eslint-disable-line no-eval + WEBER = "Weber" # eslint-disable-line no-eval @property def window_type(self) -> WindowTypeOption: """Window Type Windowing scheme used for importing time domain spectrum - """ + """ val = self._get_property("Window Type") val = self.WindowTypeOption[val.upper()] - return val # type: ignore + return val @window_type.setter def window_type(self, value: WindowTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Window Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Window Type={value.value}"]) @property def kaiser_parameter(self) -> float: @@ -387,11 +420,13 @@ def kaiser_parameter(self) -> float: Value should be greater than 0. """ val = self._get_property("Kaiser Parameter") - return val # type: ignore + return float(val) @kaiser_parameter.setter - def kaiser_parameter(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Kaiser Parameter={value}"]) + def kaiser_parameter(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Kaiser Parameter={value}"]) @property def adjust_coherent_gain(self) -> bool: @@ -401,12 +436,13 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - val = val == "true" - return val # type: ignore + return (val == true) @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adjust Coherent Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adjust Coherent Gain={value}"]) @property def data_rate(self) -> float: @@ -417,12 +453,14 @@ def data_rate(self) -> float: """ val = self._get_property("Data Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return float(val) @data_rate.setter - def data_rate(self, value: float | str): + def data_rate(self, value : float|str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Rate={value}"]) @property def num_of_bits(self) -> int: @@ -432,11 +470,13 @@ def num_of_bits(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Num of Bits") - return val # type: ignore + return int(val) @num_of_bits.setter def num_of_bits(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Num of Bits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Num of Bits={value}"]) @property def use_envelope(self) -> bool: @@ -446,12 +486,13 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - val = val == "true" - return val # type: ignore + return (val == true) @use_envelope.setter def use_envelope(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Envelope={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Envelope={value}"]) @property def min_ptsnull(self) -> int: @@ -461,11 +502,13 @@ def min_ptsnull(self) -> int: Value should be between 2 and 50. """ val = self._get_property("Min Pts/Null") - return val # type: ignore + return int(val) @min_ptsnull.setter def min_ptsnull(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pts/Null={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pts/Null={value}"]) @property def delay_skew(self) -> float: @@ -476,9 +519,12 @@ def delay_skew(self) -> float: """ val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return float(val) @delay_skew.setter - def delay_skew(self, value: float | str): + def delay_skew(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Delay Skew={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Delay Skew={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index 7f7a748aedf..255b60e62e6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,257 +1,229 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -from .Amplifier import Amplifier -from .AntennaNode import AntennaNode -from .AntennaPassband import AntennaPassband -from .Band import Band -from .BandFolder import BandFolder -from .BandTraceNode import BandTraceNode -from .CADNode import CADNode -from .Cable import Cable -from .CategoriesViewNode import CategoriesViewNode -from .Circulator import Circulator -from .CouplingLinkNode import CouplingLinkNode -from .CouplingTraceNode import CouplingTraceNode -from .CouplingsNode import CouplingsNode -from .CustomCouplingNode import CustomCouplingNode -from .EmiPlotMarkerNode import EmiPlotMarkerNode -from .EmitSceneNode import EmitSceneNode -from .ErcegCouplingNode import ErcegCouplingNode -from .Filter import Filter -from .FiveGChannelModel import FiveGChannelModel -from .HataCouplingNode import HataCouplingNode -from .IndoorPropagationCouplingNode import IndoorPropagationCouplingNode -from .Isolator import Isolator -from .LogDistanceCouplingNode import LogDistanceCouplingNode -from .MPlexBandTraceNode import MPlexBandTraceNode -from .Multiplexer import Multiplexer -from .MultiplexerBand import MultiplexerBand -from .OutboardTraceNode import OutboardTraceNode -from .ParametricCouplingTraceNode import ParametricCouplingTraceNode -from .PlotMarkerNode import PlotMarkerNode -from .PlotNode import PlotNode -from .PowerDivider import PowerDivider -from .PowerTraceNode import PowerTraceNode -from .ProfileTraceNode import ProfileTraceNode -from .PropagationLossCouplingNode import PropagationLossCouplingNode -from .RadioNode import RadioNode -from .ReadOnlyAmplifier import ReadOnlyAmplifier -from .ReadOnlyAntennaNode import ReadOnlyAntennaNode -from .ReadOnlyAntennaPassband import ReadOnlyAntennaPassband -from .ReadOnlyBand import ReadOnlyBand -from .ReadOnlyBandFolder import ReadOnlyBandFolder -from .ReadOnlyCADNode import ReadOnlyCADNode -from .ReadOnlyCable import ReadOnlyCable -from .ReadOnlyCirculator import ReadOnlyCirculator -from .ReadOnlyCouplingLinkNode import ReadOnlyCouplingLinkNode -from .ReadOnlyCouplingsNode import ReadOnlyCouplingsNode -from .ReadOnlyCustomCouplingNode import ReadOnlyCustomCouplingNode -from .ReadOnlyEmitSceneNode import ReadOnlyEmitSceneNode -from .ReadOnlyErcegCouplingNode import ReadOnlyErcegCouplingNode -from .ReadOnlyFilter import ReadOnlyFilter -from .ReadOnlyFiveGChannelModel import ReadOnlyFiveGChannelModel -from .ReadOnlyHataCouplingNode import ReadOnlyHataCouplingNode -from .ReadOnlyIndoorPropagationCouplingNode import ReadOnlyIndoorPropagationCouplingNode -from .ReadOnlyIsolator import ReadOnlyIsolator -from .ReadOnlyLogDistanceCouplingNode import ReadOnlyLogDistanceCouplingNode -from .ReadOnlyMultiplexer import ReadOnlyMultiplexer -from .ReadOnlyMultiplexerBand import ReadOnlyMultiplexerBand -from .ReadOnlyPowerDivider import ReadOnlyPowerDivider -from .ReadOnlyPropagationLossCouplingNode import ReadOnlyPropagationLossCouplingNode -from .ReadOnlyRadioNode import ReadOnlyRadioNode -from .ReadOnlyRfSystemGroup import ReadOnlyRfSystemGroup -from .ReadOnlyRxMeasNode import ReadOnlyRxMeasNode -from .ReadOnlyRxMixerProductNode import ReadOnlyRxMixerProductNode -from .ReadOnlyRxSaturationNode import ReadOnlyRxSaturationNode -from .ReadOnlyRxSelectivityNode import ReadOnlyRxSelectivityNode -from .ReadOnlyRxSpurNode import ReadOnlyRxSpurNode -from .ReadOnlyRxSusceptibilityProfNode import ReadOnlyRxSusceptibilityProfNode -from .ReadOnlySamplingNode import ReadOnlySamplingNode -from .ReadOnlySceneGroupNode import ReadOnlySceneGroupNode -from .ReadOnlySolutionCouplingNode import ReadOnlySolutionCouplingNode -from .ReadOnlySolutionsNode import ReadOnlySolutionsNode -from .ReadOnlyTR_Switch import ReadOnlyTR_Switch -from .ReadOnlyTerminator import ReadOnlyTerminator -from .ReadOnlyTouchstoneCouplingNode import ReadOnlyTouchstoneCouplingNode -from .ReadOnlyTwoRayPathLossCouplingNode import ReadOnlyTwoRayPathLossCouplingNode -from .ReadOnlyTxBbEmissionNode import ReadOnlyTxBbEmissionNode -from .ReadOnlyTxHarmonicNode import ReadOnlyTxHarmonicNode -from .ReadOnlyTxMeasNode import ReadOnlyTxMeasNode -from .ReadOnlyTxNbEmissionNode import ReadOnlyTxNbEmissionNode -from .ReadOnlyTxSpectralProfEmitterNode import ReadOnlyTxSpectralProfEmitterNode -from .ReadOnlyTxSpectralProfNode import ReadOnlyTxSpectralProfNode -from .ReadOnlyTxSpurNode import ReadOnlyTxSpurNode -from .ReadOnlyWalfischCouplingNode import ReadOnlyWalfischCouplingNode -from .ReadOnlyWaveform import ReadOnlyWaveform -from .ResultPlotNode import ResultPlotNode -from .RfSystemGroup import RfSystemGroup -from .RxMeasNode import RxMeasNode -from .RxMixerProductNode import RxMixerProductNode -from .RxSaturationNode import RxSaturationNode -from .RxSelectivityNode import RxSelectivityNode -from .RxSpurNode import RxSpurNode -from .RxSusceptibilityProfNode import RxSusceptibilityProfNode -from .SamplingNode import SamplingNode -from .SceneGroupNode import SceneGroupNode -from .SelectivityTraceNode import SelectivityTraceNode -from .SolutionCouplingNode import SolutionCouplingNode -from .SolutionsNode import SolutionsNode -from .SpurTraceNode import SpurTraceNode -from .TRSwitchTraceNode import TRSwitchTraceNode -from .TR_Switch import TR_Switch -from .Terminator import Terminator -from .TestNoiseTraceNode import TestNoiseTraceNode -from .TopLevelSimulation import TopLevelSimulation -from .TouchstoneCouplingNode import TouchstoneCouplingNode -from .TunableTraceNode import TunableTraceNode -from .TwoRayPathLossCouplingNode import TwoRayPathLossCouplingNode -from .TwoToneTraceNode import TwoToneTraceNode -from .TxBbEmissionNode import TxBbEmissionNode -from .TxHarmonicNode import TxHarmonicNode -from .TxMeasNode import TxMeasNode -from .TxNbEmissionNode import TxNbEmissionNode -from .TxSpectralProfEmitterNode import TxSpectralProfEmitterNode -from .TxSpectralProfNode import TxSpectralProfNode -from .TxSpurNode import TxSpurNode -from .WalfischCouplingNode import WalfischCouplingNode -from .Waveform import Waveform +from .amplifier import Amplifier +from .antenna_node import AntennaNode +from .antenna_passband import AntennaPassband +from .band import Band +from .band_folder import BandFolder +from .band_trace_node import BandTraceNode +from .cad_node import CADNode +from .cable import Cable +from .categories_view_node import CategoriesViewNode +from .circulator import Circulator +from .coupling_link_node import CouplingLinkNode +from .coupling_trace_node import CouplingTraceNode +from .couplings_node import CouplingsNode +from .custom_coupling_node import CustomCouplingNode +from .emi_plot_marker_node import EmiPlotMarkerNode +from .emit_scene_node import EmitSceneNode +from .erceg_coupling_node import ErcegCouplingNode +from .filter import Filter +from .five_g_channel_model import FiveGChannelModel +from .hata_coupling_node import HataCouplingNode +from .indoor_propagation_coupling_node import IndoorPropagationCouplingNode +from .isolator import Isolator +from .log_distance_coupling_node import LogDistanceCouplingNode +from .mplex_band_trace_node import MPlexBandTraceNode +from .multiplexer import Multiplexer +from .multiplexer_band import MultiplexerBand +from .outboard_trace_node import OutboardTraceNode +from .parametric_coupling_trace_node import ParametricCouplingTraceNode +from .plot_marker_node import PlotMarkerNode +from .plot_node import PlotNode +from .power_divider import PowerDivider +from .power_trace_node import PowerTraceNode +from .profile_trace_node import ProfileTraceNode +from .propagation_loss_coupling_node import PropagationLossCouplingNode +from .radio_node import RadioNode +from .result_plot_node import ResultPlotNode +from .rx_meas_node import RxMeasNode +from .rx_mixer_product_node import RxMixerProductNode +from .rx_saturation_node import RxSaturationNode +from .rx_selectivity_node import RxSelectivityNode +from .rx_spur_node import RxSpurNode +from .rx_susceptibility_prof_node import RxSusceptibilityProfNode +from .sampling_node import SamplingNode +from .scene_group_node import SceneGroupNode +from .selectivity_trace_node import SelectivityTraceNode +from .solution_coupling_node import SolutionCouplingNode +from .solutions_node import SolutionsNode +from .spur_trace_node import SpurTraceNode +from .tr_switch import TR_Switch +from .tr_switch_trace_node import TRSwitchTraceNode +from .terminator import Terminator +from .test_noise_trace_node import TestNoiseTraceNode +from .top_level_simulation import TopLevelSimulation +from .touchstone_coupling_node import TouchstoneCouplingNode +from .tunable_trace_node import TunableTraceNode +from .two_ray_path_loss_coupling_node import TwoRayPathLossCouplingNode +from .two_tone_trace_node import TwoToneTraceNode +from .tx_bb_emission_node import TxBbEmissionNode +from .tx_harmonic_node import TxHarmonicNode +from .tx_meas_node import TxMeasNode +from .tx_nb_emission_node import TxNbEmissionNode +from .tx_spectral_prof_emitter_node import TxSpectralProfEmitterNode +from .tx_spectral_prof_node import TxSpectralProfNode +from .tx_spur_node import TxSpurNode +from .walfisch_coupling_node import WalfischCouplingNode +from .waveform import Waveform +from .read_only_amplifier import ReadOnlyAmplifier +from .read_only_antenna_node import ReadOnlyAntennaNode +from .read_only_antenna_passband import ReadOnlyAntennaPassband +from .read_only_band import ReadOnlyBand +from .read_only_band_folder import ReadOnlyBandFolder +from .read_only_cad_node import ReadOnlyCADNode +from .read_only_cable import ReadOnlyCable +from .read_only_circulator import ReadOnlyCirculator +from .read_only_coupling_link_node import ReadOnlyCouplingLinkNode +from .read_only_couplings_node import ReadOnlyCouplingsNode +from .read_only_custom_coupling_node import ReadOnlyCustomCouplingNode +from .read_only_emit_scene_node import ReadOnlyEmitSceneNode +from .read_only_erceg_coupling_node import ReadOnlyErcegCouplingNode +from .read_only_filter import ReadOnlyFilter +from .read_only_five_g_channel_model import ReadOnlyFiveGChannelModel +from .read_only_hata_coupling_node import ReadOnlyHataCouplingNode +from .read_only_indoor_propagation_coupling_node import ReadOnlyIndoorPropagationCouplingNode +from .read_only_isolator import ReadOnlyIsolator +from .read_only_log_distance_coupling_node import ReadOnlyLogDistanceCouplingNode +from .read_only_multiplexer import ReadOnlyMultiplexer +from .read_only_multiplexer_band import ReadOnlyMultiplexerBand +from .read_only_power_divider import ReadOnlyPowerDivider +from .read_only_propagation_loss_coupling_node import ReadOnlyPropagationLossCouplingNode +from .read_only_radio_node import ReadOnlyRadioNode +from .read_only_rx_meas_node import ReadOnlyRxMeasNode +from .read_only_rx_mixer_product_node import ReadOnlyRxMixerProductNode +from .read_only_rx_saturation_node import ReadOnlyRxSaturationNode +from .read_only_rx_selectivity_node import ReadOnlyRxSelectivityNode +from .read_only_rx_spur_node import ReadOnlyRxSpurNode +from .read_only_rx_susceptibility_prof_node import ReadOnlyRxSusceptibilityProfNode +from .read_only_sampling_node import ReadOnlySamplingNode +from .read_only_scene_group_node import ReadOnlySceneGroupNode +from .read_only_solution_coupling_node import ReadOnlySolutionCouplingNode +from .read_only_solutions_node import ReadOnlySolutionsNode +from .read_only_tr_switch import ReadOnlyTR_Switch +from .read_only_terminator import ReadOnlyTerminator +from .read_only_touchstone_coupling_node import ReadOnlyTouchstoneCouplingNode +from .read_only_two_ray_path_loss_coupling_node import ReadOnlyTwoRayPathLossCouplingNode +from .read_only_tx_bb_emission_node import ReadOnlyTxBbEmissionNode +from .read_only_tx_harmonic_node import ReadOnlyTxHarmonicNode +from .read_only_tx_meas_node import ReadOnlyTxMeasNode +from .read_only_tx_nb_emission_node import ReadOnlyTxNbEmissionNode +from .read_only_tx_spectral_prof_emitter_node import ReadOnlyTxSpectralProfEmitterNode +from .read_only_tx_spectral_prof_node import ReadOnlyTxSpectralProfNode +from .read_only_tx_spur_node import ReadOnlyTxSpurNode +from .read_only_walfisch_coupling_node import ReadOnlyWalfischCouplingNode +from .read_only_waveform import ReadOnlyWaveform __all__ = [ - "Amplifier", - "AntennaNode", - "AntennaPassband", - "Band", - "BandFolder", - "BandTraceNode", - "CADNode", - "Cable", - "CategoriesViewNode", - "Circulator", - "CouplingLinkNode", - "CouplingTraceNode", - "CouplingsNode", - "CustomCouplingNode", - "EmiPlotMarkerNode", - "EmitSceneNode", - "ErcegCouplingNode", - "Filter", - "FiveGChannelModel", - "HataCouplingNode", - "IndoorPropagationCouplingNode", - "Isolator", - "LogDistanceCouplingNode", - "MPlexBandTraceNode", - "Multiplexer", - "MultiplexerBand", - "OutboardTraceNode", - "ParametricCouplingTraceNode", - "PlotMarkerNode", - "PlotNode", - "PowerDivider", - "PowerTraceNode", - "ProfileTraceNode", - "PropagationLossCouplingNode", - "RadioNode", - "ResultPlotNode", - "RfSystemGroup", - "RxMeasNode", - "RxMixerProductNode", - "RxSaturationNode", - "RxSelectivityNode", - "RxSpurNode", - "RxSusceptibilityProfNode", - "SamplingNode", - "SceneGroupNode", - "SelectivityTraceNode", - "SolutionCouplingNode", - "SolutionsNode", - "SpurTraceNode", - "TR_Switch", - "TRSwitchTraceNode", - "Terminator", - "TestNoiseTraceNode", - "TopLevelSimulation", - "TouchstoneCouplingNode", - "TunableTraceNode", - "TwoRayPathLossCouplingNode", - "TwoToneTraceNode", - "TxBbEmissionNode", - "TxHarmonicNode", - "TxMeasNode", - "TxNbEmissionNode", - "TxSpectralProfEmitterNode", - "TxSpectralProfNode", - "TxSpurNode", - "WalfischCouplingNode", - "Waveform", - "ReadOnlyAmplifier", - "ReadOnlyAntennaNode", - "ReadOnlyAntennaPassband", - "ReadOnlyBand", - "ReadOnlyBandFolder", - "ReadOnlyCADNode", - "ReadOnlyCable", - "ReadOnlyCirculator", - "ReadOnlyCouplingLinkNode", - "ReadOnlyCouplingsNode", - "ReadOnlyCustomCouplingNode", - "ReadOnlyEmitSceneNode", - "ReadOnlyErcegCouplingNode", - "ReadOnlyFilter", - "ReadOnlyFiveGChannelModel", - "ReadOnlyHataCouplingNode", - "ReadOnlyIndoorPropagationCouplingNode", - "ReadOnlyIsolator", - "ReadOnlyLogDistanceCouplingNode", - "ReadOnlyMultiplexer", - "ReadOnlyMultiplexerBand", - "ReadOnlyPowerDivider", - "ReadOnlyPropagationLossCouplingNode", - "ReadOnlyRadioNode", - "ReadOnlyRfSystemGroup", - "ReadOnlyRxMeasNode", - "ReadOnlyRxMixerProductNode", - "ReadOnlyRxSaturationNode", - "ReadOnlyRxSelectivityNode", - "ReadOnlyRxSpurNode", - "ReadOnlyRxSusceptibilityProfNode", - "ReadOnlySamplingNode", - "ReadOnlySceneGroupNode", - "ReadOnlySolutionCouplingNode", - "ReadOnlySolutionsNode", - "ReadOnlyTR_Switch", - "ReadOnlyTerminator", - "ReadOnlyTouchstoneCouplingNode", - "ReadOnlyTwoRayPathLossCouplingNode", - "ReadOnlyTxBbEmissionNode", - "ReadOnlyTxHarmonicNode", - "ReadOnlyTxMeasNode", - "ReadOnlyTxNbEmissionNode", - "ReadOnlyTxSpectralProfEmitterNode", - "ReadOnlyTxSpectralProfNode", - "ReadOnlyTxSpurNode", - "ReadOnlyWalfischCouplingNode", - "ReadOnlyWaveform", + 'Amplifier', + 'AntennaNode', + 'AntennaPassband', + 'Band', + 'BandFolder', + 'BandTraceNode', + 'CADNode', + 'Cable', + 'CategoriesViewNode', + 'Circulator', + 'CouplingLinkNode', + 'CouplingTraceNode', + 'CouplingsNode', + 'CustomCouplingNode', + 'EmiPlotMarkerNode', + 'EmitSceneNode', + 'ErcegCouplingNode', + 'Filter', + 'FiveGChannelModel', + 'HataCouplingNode', + 'IndoorPropagationCouplingNode', + 'Isolator', + 'LogDistanceCouplingNode', + 'MPlexBandTraceNode', + 'Multiplexer', + 'MultiplexerBand', + 'OutboardTraceNode', + 'ParametricCouplingTraceNode', + 'PlotMarkerNode', + 'PlotNode', + 'PowerDivider', + 'PowerTraceNode', + 'ProfileTraceNode', + 'PropagationLossCouplingNode', + 'RadioNode', + 'ResultPlotNode', + 'RxMeasNode', + 'RxMixerProductNode', + 'RxSaturationNode', + 'RxSelectivityNode', + 'RxSpurNode', + 'RxSusceptibilityProfNode', + 'SamplingNode', + 'SceneGroupNode', + 'SelectivityTraceNode', + 'SolutionCouplingNode', + 'SolutionsNode', + 'SpurTraceNode', + 'TR_Switch', + 'TRSwitchTraceNode', + 'Terminator', + 'TestNoiseTraceNode', + 'TopLevelSimulation', + 'TouchstoneCouplingNode', + 'TunableTraceNode', + 'TwoRayPathLossCouplingNode', + 'TwoToneTraceNode', + 'TxBbEmissionNode', + 'TxHarmonicNode', + 'TxMeasNode', + 'TxNbEmissionNode', + 'TxSpectralProfEmitterNode', + 'TxSpectralProfNode', + 'TxSpurNode', + 'WalfischCouplingNode', + 'Waveform', + 'ReadOnlyAmplifier', + 'ReadOnlyAntennaNode', + 'ReadOnlyAntennaPassband', + 'ReadOnlyBand', + 'ReadOnlyBandFolder', + 'ReadOnlyCADNode', + 'ReadOnlyCable', + 'ReadOnlyCirculator', + 'ReadOnlyCouplingLinkNode', + 'ReadOnlyCouplingsNode', + 'ReadOnlyCustomCouplingNode', + 'ReadOnlyEmitSceneNode', + 'ReadOnlyErcegCouplingNode', + 'ReadOnlyFilter', + 'ReadOnlyFiveGChannelModel', + 'ReadOnlyHataCouplingNode', + 'ReadOnlyIndoorPropagationCouplingNode', + 'ReadOnlyIsolator', + 'ReadOnlyLogDistanceCouplingNode', + 'ReadOnlyMultiplexer', + 'ReadOnlyMultiplexerBand', + 'ReadOnlyPowerDivider', + 'ReadOnlyPropagationLossCouplingNode', + 'ReadOnlyRadioNode', + 'ReadOnlyRxMeasNode', + 'ReadOnlyRxMixerProductNode', + 'ReadOnlyRxSaturationNode', + 'ReadOnlyRxSelectivityNode', + 'ReadOnlyRxSpurNode', + 'ReadOnlyRxSusceptibilityProfNode', + 'ReadOnlySamplingNode', + 'ReadOnlySceneGroupNode', + 'ReadOnlySolutionCouplingNode', + 'ReadOnlySolutionsNode', + 'ReadOnlyTR_Switch', + 'ReadOnlyTerminator', + 'ReadOnlyTouchstoneCouplingNode', + 'ReadOnlyTwoRayPathLossCouplingNode', + 'ReadOnlyTxBbEmissionNode', + 'ReadOnlyTxHarmonicNode', + 'ReadOnlyTxMeasNode', + 'ReadOnlyTxNbEmissionNode', + 'ReadOnlyTxSpectralProfEmitterNode', + 'ReadOnlyTxSpectralProfNode', + 'ReadOnlyTxSpurNode', + 'ReadOnlyWalfischCouplingNode', + 'ReadOnlyWaveform', ] diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py similarity index 66% rename from src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py index d10d76d968a..98f6ce5cc74 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class AntennaNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -59,13 +55,15 @@ def tags(self) -> str: """Tags Space delimited list of tags for coupling selections - """ + """ val = self._get_property("Tags") - return val # type: ignore + return val @tags.setter def tags(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tags={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tags={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -76,14 +74,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - val = val == "true" - return val # type: ignore + return (val == true) @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): @@ -93,11 +90,13 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): @@ -107,29 +106,33 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] - return val # type: ignore + return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -139,11 +142,13 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): @@ -153,11 +158,13 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def position_defined(self) -> bool: @@ -167,12 +174,13 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - val = val == "true" - return val # type: ignore + return (val == true) @position_defined.setter def position_defined(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Defined={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position Defined={value}"]) @property def antenna_temperature(self) -> float: @@ -182,24 +190,28 @@ def antenna_temperature(self) -> float: Value should be between 0 and 100000. """ val = self._get_property("Antenna Temperature") - return val # type: ignore + return float(val) @antenna_temperature.setter - def antenna_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna Temperature={value}"]) + def antenna_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna Temperature={value}"]) @property def type(self): """Type Defines the type of antenna - """ + """ val = self._get_property("Type") - return val # type: ignore + return val @type.setter def type(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value}"]) @property def antenna_file(self) -> str: @@ -207,11 +219,13 @@ def antenna_file(self) -> str: Value should be a full file path. """ val = self._get_property("Antenna File") - return val # type: ignore + return val @antenna_file.setter def antenna_file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna File={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna File={value}"]) @property def project_name(self) -> str: @@ -221,11 +235,13 @@ def project_name(self) -> str: Value should be a full file path. """ val = self._get_property("Project Name") - return val # type: ignore + return val @project_name.setter def project_name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Project Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Project Name={value}"]) @property def peak_gain(self) -> float: @@ -235,30 +251,34 @@ def peak_gain(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Peak Gain") - return val # type: ignore + return float(val) @peak_gain.setter - def peak_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Gain={value}"]) + def peak_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Peak Gain={value}"]) class BoresightOption(Enum): - XAXIS = "+X Axis" # eslint-disable-line no-eval - YAXIS = "+Y Axis" # eslint-disable-line no-eval - ZAXIS = "+Z Axis" # eslint-disable-line no-eval + XAXIS = "+X Axis" # eslint-disable-line no-eval + YAXIS = "+Y Axis" # eslint-disable-line no-eval + ZAXIS = "+Z Axis" # eslint-disable-line no-eval @property def boresight(self) -> BoresightOption: """Boresight Select peak beam direction in local coordinates - """ + """ val = self._get_property("Boresight") val = self.BoresightOption[val.upper()] - return val # type: ignore + return val @boresight.setter def boresight(self, value: BoresightOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Boresight={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Boresight={value.value}"]) @property def vertical_beamwidth(self) -> float: @@ -268,11 +288,13 @@ def vertical_beamwidth(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("Vertical Beamwidth") - return val # type: ignore + return float(val) @vertical_beamwidth.setter - def vertical_beamwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Beamwidth={value}"]) + def vertical_beamwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Beamwidth={value}"]) @property def horizontal_beamwidth(self) -> float: @@ -282,11 +304,13 @@ def horizontal_beamwidth(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("Horizontal Beamwidth") - return val # type: ignore + return float(val) @horizontal_beamwidth.setter - def horizontal_beamwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Beamwidth={value}"]) + def horizontal_beamwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Beamwidth={value}"]) @property def extra_sidelobe(self) -> bool: @@ -296,12 +320,13 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - val = val == "true" - return val # type: ignore + return (val == true) @extra_sidelobe.setter def extra_sidelobe(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Extra Sidelobe={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Extra Sidelobe={value}"]) @property def first_sidelobe_level(self) -> float: @@ -312,11 +337,13 @@ def first_sidelobe_level(self) -> float: Value should be between 0 and 200. """ val = self._get_property("First Sidelobe Level") - return val # type: ignore + return float(val) @first_sidelobe_level.setter - def first_sidelobe_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Level={value}"]) + def first_sidelobe_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Level={value}"]) @property def first_sidelobe_vert_bw(self) -> float: @@ -326,11 +353,13 @@ def first_sidelobe_vert_bw(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Vert. BW") - return val # type: ignore + return float(val) @first_sidelobe_vert_bw.setter - def first_sidelobe_vert_bw(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Vert. BW={value}"]) + def first_sidelobe_vert_bw(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Vert. BW={value}"]) @property def first_sidelobe_hor_bw(self) -> float: @@ -340,11 +369,13 @@ def first_sidelobe_hor_bw(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Hor. BW") - return val # type: ignore + return float(val) @first_sidelobe_hor_bw.setter - def first_sidelobe_hor_bw(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Hor. BW={value}"]) + def first_sidelobe_hor_bw(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Hor. BW={value}"]) @property def outerbacklobe_level(self) -> float: @@ -354,11 +385,13 @@ def outerbacklobe_level(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Outer/Backlobe Level") - return val # type: ignore + return float(val) @outerbacklobe_level.setter - def outerbacklobe_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Outer/Backlobe Level={value}"]) + def outerbacklobe_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Outer/Backlobe Level={value}"]) @property def resonant_frequency(self) -> float: @@ -370,12 +403,14 @@ def resonant_frequency(self) -> float: """ val = self._get_property("Resonant Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @resonant_frequency.setter - def resonant_frequency(self, value: float | str): + def resonant_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resonant Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Resonant Frequency={value}"]) @property def slot_length(self) -> float: @@ -386,12 +421,14 @@ def slot_length(self) -> float: """ val = self._get_property("Slot Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @slot_length.setter - def slot_length(self, value: float | str): + def slot_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Slot Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Slot Length={value}"]) @property def mouth_width(self) -> float: @@ -402,12 +439,14 @@ def mouth_width(self) -> float: """ val = self._get_property("Mouth Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @mouth_width.setter - def mouth_width(self, value: float | str): + def mouth_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Width={value}"]) @property def mouth_height(self) -> float: @@ -418,12 +457,14 @@ def mouth_height(self) -> float: """ val = self._get_property("Mouth Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @mouth_height.setter - def mouth_height(self, value: float | str): + def mouth_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Height={value}"]) @property def waveguide_width(self) -> float: @@ -435,12 +476,14 @@ def waveguide_width(self) -> float: """ val = self._get_property("Waveguide Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @waveguide_width.setter - def waveguide_width(self, value: float | str): + def waveguide_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveguide Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Waveguide Width={value}"]) @property def width_flare_half_angle(self) -> float: @@ -451,11 +494,13 @@ def width_flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Width Flare Half-angle") - return val # type: ignore + return float(val) @width_flare_half_angle.setter - def width_flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width Flare Half-angle={value}"]) + def width_flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Width Flare Half-angle={value}"]) @property def height_flare_half_angle(self) -> float: @@ -466,11 +511,13 @@ def height_flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Height Flare Half-angle") - return val # type: ignore + return float(val) @height_flare_half_angle.setter - def height_flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height Flare Half-angle={value}"]) + def height_flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Height Flare Half-angle={value}"]) @property def mouth_diameter(self) -> float: @@ -481,12 +528,14 @@ def mouth_diameter(self) -> float: """ val = self._get_property("Mouth Diameter") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @mouth_diameter.setter - def mouth_diameter(self, value: float | str): + def mouth_diameter(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Diameter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Diameter={value}"]) @property def flare_half_angle(self) -> float: @@ -497,11 +546,13 @@ def flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Flare Half-angle") - return val # type: ignore + return float(val) @flare_half_angle.setter - def flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flare Half-angle={value}"]) + def flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Flare Half-angle={value}"]) @property def vswr(self) -> float: @@ -512,71 +563,75 @@ def vswr(self) -> float: Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return float(val) @vswr.setter - def vswr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) + def vswr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"VSWR={value}"]) class AntennaPolarizationOption(Enum): - VERTICAL = "Vertical" # eslint-disable-line no-eval - HORIZONTAL = "Horizontal" # eslint-disable-line no-eval - RHCP = "RHCP" # eslint-disable-line no-eval - LHCP = "LHCP" # eslint-disable-line no-eval + VERTICAL = "Vertical" # eslint-disable-line no-eval + HORIZONTAL = "Horizontal" # eslint-disable-line no-eval + RHCP = "RHCP" # eslint-disable-line no-eval + LHCP = "LHCP" # eslint-disable-line no-eval @property def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val.upper()] - return val # type: ignore + return val @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Antenna Polarization={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna Polarization={value.value}"]) class CrossDipoleModeOption(Enum): - FREESTANDING = "Freestanding" # eslint-disable-line no-eval - OVER_GROUND_PLANE = "Over Ground Plane" # eslint-disable-line no-eval + FREESTANDING = "Freestanding" # eslint-disable-line no-eval + OVER_GROUND_PLANE = "Over Ground Plane" # eslint-disable-line no-eval @property def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode Choose the Cross Dipole type - """ + """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val.upper()] - return val # type: ignore + return val @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Cross Dipole Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Cross Dipole Mode={value.value}"]) class CrossDipolePolarizationOption(Enum): - RHCP = "RHCP" # eslint-disable-line no-eval - LHCP = "LHCP" # eslint-disable-line no-eval + RHCP = "RHCP" # eslint-disable-line no-eval + LHCP = "LHCP" # eslint-disable-line no-eval @property def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val.upper()] - return val # type: ignore + return val @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Cross Dipole Polarization={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Cross Dipole Polarization={value.value}"]) @property def override_height(self) -> bool: @@ -587,12 +642,13 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - val = val == "true" - return val # type: ignore + return (val == true) @override_height.setter def override_height(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Override Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Override Height={value}"]) @property def offset_height(self) -> float: @@ -603,12 +659,14 @@ def offset_height(self) -> float: """ val = self._get_property("Offset Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @offset_height.setter - def offset_height(self, value: float | str): + def offset_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Offset Height={value}"]) @property def auto_height_offset(self) -> bool: @@ -619,12 +677,13 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - val = val == "true" - return val # type: ignore + return (val == true) @auto_height_offset.setter def auto_height_offset(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Auto Height Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Auto Height Offset={value}"]) @property def conform__adjust_antenna(self) -> bool: @@ -634,12 +693,13 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - val = val == "true" - return val # type: ignore + return (val == true) @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform / Adjust Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform / Adjust Antenna={value}"]) @property def element_offset(self): @@ -649,51 +709,55 @@ def element_offset(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Element Offset") - return val # type: ignore + return val @element_offset.setter def element_offset(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Element Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Element Offset={value}"]) class ConformtoPlatformOption(Enum): - NONE = "None" # eslint-disable-line no-eval - ALONG_NORMAL = "Along Normal" # eslint-disable-line no-eval - PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + ALONG_NORMAL = "Along Normal" # eslint-disable-line no-eval + PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" # eslint-disable-line no-eval @property def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform Select method of automated conforming applied after Element Offset - """ + """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val.upper()] - return val # type: ignore + return val @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Conform to Platform={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform to Platform={value.value}"]) class ReferencePlaneOption(Enum): - XY_PLANE = "XY Plane" # eslint-disable-line no-eval - YZ_PLANE = "YZ Plane" # eslint-disable-line no-eval - ZX_PLANE = "ZX Plane" # eslint-disable-line no-eval + XY_PLANE = "XY Plane" # eslint-disable-line no-eval + YZ_PLANE = "YZ Plane" # eslint-disable-line no-eval + ZX_PLANE = "ZX Plane" # eslint-disable-line no-eval @property def reference_plane(self) -> ReferencePlaneOption: """Reference Plane Select reference plane for determining original element heights - """ + """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val.upper()] - return val # type: ignore + return val @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reference Plane={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reference Plane={value.value}"]) @property def conform_element_orientation(self) -> bool: @@ -704,14 +768,13 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - val = val == "true" - return val # type: ignore + return (val == true) @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Conform Element Orientation={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform Element Orientation={value}"]) @property def show_axes(self) -> bool: @@ -721,12 +784,13 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - val = val == "true" - return val # type: ignore + return (val == true) @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def show_icon(self) -> bool: @@ -736,12 +800,13 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - val = val == "true" - return val # type: ignore + return (val == true) @show_icon.setter def show_icon(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Icon={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Icon={value}"]) @property def size(self) -> float: @@ -751,11 +816,13 @@ def size(self) -> float: Value should be between 0.001 and 1. """ val = self._get_property("Size") - return val # type: ignore + return float(val) @size.setter - def size(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Size={value}"]) + def size(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Size={value}"]) @property def color(self): @@ -765,29 +832,31 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def el_sample_interval(self) -> float: """El Sample Interval Space between elevation-angle samples of pattern - """ + """ val = self._get_property("El Sample Interval") - return val # type: ignore + return float(val) @property def az_sample_interval(self) -> float: """Az Sample Interval Space between azimuth-angle samples of pattern - """ + """ val = self._get_property("Az Sample Interval") - return val # type: ignore + return float(val) @property def has_frequency_domain(self) -> bool: @@ -797,35 +866,34 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - val = val == "true" - return val # type: ignore + return (val == true) @property def frequency_domain(self): """Frequency Domain Frequency sample(s) defining antenna - """ + """ val = self._get_property("Frequency Domain") - return val # type: ignore + return val @property def number_of_electric_sources(self) -> int: """Number of Electric Sources Number of freestanding electric current sources defining antenna - """ + """ val = self._get_property("Number of Electric Sources") - return val # type: ignore + return int(val) @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources Number of freestanding magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Magnetic Sources") - return val # type: ignore + return int(val) @property def number_of_imaged_electric_sources(self) -> int: @@ -833,9 +901,9 @@ def number_of_imaged_electric_sources(self) -> int: Number of imaged, half-space radiating electric current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Electric Sources") - return val # type: ignore + return int(val) @property def number_of_imaged_magnetic_sources(self) -> int: @@ -843,9 +911,9 @@ def number_of_imaged_magnetic_sources(self) -> int: Number of imaged, half-space radiating magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Magnetic Sources") - return val # type: ignore + return int(val) @property def waveguide_height(self) -> float: @@ -853,35 +921,35 @@ def waveguide_height(self) -> float: Implied waveguide height (along local x-axis) where the flared horn walls meet the feed - """ + """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency Implied lowest operating frequency of pyramidal horn antenna - """ + """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency Implied lowest operating frequency of conical horn antenna - """ + """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) class SWEModeTruncationOption(Enum): - DYNAMIC = "Dynamic" # eslint-disable-line no-eval - FIXED_CUSTOM = "Fixed (Custom)" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + DYNAMIC = "Dynamic" # eslint-disable-line no-eval + FIXED_CUSTOM = "Fixed (Custom)" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def swe_mode_truncation(self) -> SWEModeTruncationOption: @@ -889,16 +957,16 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: Select the method for stability-enhancing truncation of spherical wave expansion terms - """ + """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val.upper()] - return val # type: ignore + return val @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"SWE Mode Truncation={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SWE Mode Truncation={value.value}"]) @property def max_n_index(self) -> int: @@ -908,24 +976,28 @@ def max_n_index(self) -> int: Value should be greater than 1. """ val = self._get_property("Max N Index") - return val # type: ignore + return int(val) @max_n_index.setter def max_n_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max N Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max N Index={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) @property def show_composite_passband(self) -> bool: @@ -935,12 +1007,13 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - val = val == "true" - return val # type: ignore + return (val == true) @show_composite_passband.setter def show_composite_passband(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Composite Passband={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Composite Passband={value}"]) @property def use_phase_center(self) -> bool: @@ -950,21 +1023,22 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - val = val == "true" - return val # type: ignore + return (val == true) @use_phase_center.setter def use_phase_center(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Phase Center={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Phase Center={value}"]) @property def coordinate_systems(self) -> str: """Coordinate Systems Specifies the coordinate system for the phase center of this antenna - """ + """ val = self._get_property("Coordinate Systems") - return val # type: ignore + return val @property def phasecenterposition(self): @@ -974,7 +1048,7 @@ def phasecenterposition(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("PhaseCenterPosition") - return val # type: ignore + return val @property def phasecenterorientation(self): @@ -984,4 +1058,5 @@ def phasecenterorientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("PhaseCenterOrientation") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py similarity index 69% rename from src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py rename to src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py index 027eb04920b..b2677b1f6a8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/AntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class AntennaPassband(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -51,7 +48,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -65,11 +62,13 @@ def passband_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Passband Loss") - return val # type: ignore + return float(val) @passband_loss.setter - def passband_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Passband Loss={value}"]) + def passband_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Passband Loss={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -79,11 +78,13 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out of Band Attenuation") - return val # type: ignore + return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out of Band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out of Band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -94,12 +95,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -110,12 +113,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -126,12 +131,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -142,22 +149,27 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py similarity index 78% rename from src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py rename to src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py index 95b37f9e3ab..25c5a5270e3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class BandFolder(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -51,3 +48,4 @@ def duplicate(self, new_name: str): def delete(self): """Delete this node""" self._delete() + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py similarity index 61% rename from src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py index f537203eaf7..7500442b5f3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/BandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class BandTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -56,44 +52,50 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) class TxorRxOption(Enum): - TX = "Tx" # eslint-disable-line no-eval - RX = "Rx" # eslint-disable-line no-eval + TX = "Tx" # eslint-disable-line no-eval + RX = "Rx" # eslint-disable-line no-eval @property def tx_or_rx(self) -> TxorRxOption: """Tx or Rx Specifies whether the trace is a Tx or Rx channel - """ + """ val = self._get_property("Tx or Rx") val = self.TxorRxOption[val.upper()] - return val # type: ignore + return val @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx or Rx={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx or Rx={value.value}"]) @property def channel_frequency(self): """Channel Frequency Select band channel frequency to display - """ + """ val = self._get_property("Channel Frequency") - return val # type: ignore + return val @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: @@ -101,10 +103,10 @@ def transmit_frequency(self) -> float: The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset) - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def visible(self) -> bool: @@ -114,12 +116,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = val == "true" - return val # type: ignore + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -129,47 +132,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = val == "true" - return val # type: ignore + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -179,11 +187,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return int(val) @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -193,42 +203,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -238,11 +252,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return int(val) @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -252,11 +268,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -266,11 +284,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return int(val) @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -281,9 +301,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = val == "true" - return val # type: ignore + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py similarity index 65% rename from src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py index 6a35e3d4f4e..3c43485bf4a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class CADNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -58,37 +54,39 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val class ModelTypeOption(Enum): - PLATE = "Plate" # eslint-disable-line no-eval - BOX = "Box" # eslint-disable-line no-eval - DIHEDRAL = "Dihedral" # eslint-disable-line no-eval - TRIHEDRAL = "Trihedral" # eslint-disable-line no-eval - CYLINDER = "Cylinder" # eslint-disable-line no-eval - TAPERED_CYLINDER = "Tapered Cylinder" # eslint-disable-line no-eval - CONE = "Cone" # eslint-disable-line no-eval - SPHERE = "Sphere" # eslint-disable-line no-eval - ELLIPSOID = "Ellipsoid" # eslint-disable-line no-eval - CIRCULAR_PLATE = "Circular Plate" # eslint-disable-line no-eval - PARABOLA = "Parabola" # eslint-disable-line no-eval - PRISM = "Prism" # eslint-disable-line no-eval - TAPERED_PRISM = "Tapered Prism" # eslint-disable-line no-eval - TOPHAT = "Tophat" # eslint-disable-line no-eval + PLATE = "Plate" # eslint-disable-line no-eval + BOX = "Box" # eslint-disable-line no-eval + DIHEDRAL = "Dihedral" # eslint-disable-line no-eval + TRIHEDRAL = "Trihedral" # eslint-disable-line no-eval + CYLINDER = "Cylinder" # eslint-disable-line no-eval + TAPERED_CYLINDER = "Tapered Cylinder" # eslint-disable-line no-eval + CONE = "Cone" # eslint-disable-line no-eval + SPHERE = "Sphere" # eslint-disable-line no-eval + ELLIPSOID = "Ellipsoid" # eslint-disable-line no-eval + CIRCULAR_PLATE = "Circular Plate" # eslint-disable-line no-eval + PARABOLA = "Parabola" # eslint-disable-line no-eval + PRISM = "Prism" # eslint-disable-line no-eval + TAPERED_PRISM = "Tapered Prism" # eslint-disable-line no-eval + TOPHAT = "Tophat" # eslint-disable-line no-eval @property def model_type(self) -> ModelTypeOption: """Model Type Select type of parametric model to create - """ + """ val = self._get_property("Model Type") val = self.ModelTypeOption[val.upper()] - return val # type: ignore + return val @model_type.setter def model_type(self, value: ModelTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Model Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Model Type={value.value}"]) @property def length(self) -> float: @@ -99,12 +97,14 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @length.setter - def length(self, value: float | str): + def length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Length={value}"]) @property def width(self) -> float: @@ -115,12 +115,14 @@ def width(self) -> float: """ val = self._get_property("Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @width.setter - def width(self, value: float | str): + def width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Width={value}"]) @property def height(self) -> float: @@ -131,12 +133,14 @@ def height(self) -> float: """ val = self._get_property("Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @height.setter - def height(self, value: float | str): + def height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Height={value}"]) @property def angle(self) -> float: @@ -146,11 +150,13 @@ def angle(self) -> float: Value should be between 0 and 360. """ val = self._get_property("Angle") - return val # type: ignore + return float(val) @angle.setter - def angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Angle={value}"]) + def angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Angle={value}"]) @property def top_side(self) -> float: @@ -161,12 +167,14 @@ def top_side(self) -> float: """ val = self._get_property("Top Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @top_side.setter - def top_side(self, value: float | str): + def top_side(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Top Side={value}"]) @property def top_radius(self) -> float: @@ -177,12 +185,14 @@ def top_radius(self) -> float: """ val = self._get_property("Top Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @top_radius.setter - def top_radius(self, value: float | str): + def top_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Top Radius={value}"]) @property def side(self) -> float: @@ -193,12 +203,14 @@ def side(self) -> float: """ val = self._get_property("Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @side.setter - def side(self, value: float | str): + def side(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Side={value}"]) @property def radius(self) -> float: @@ -209,12 +221,14 @@ def radius(self) -> float: """ val = self._get_property("Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @radius.setter - def radius(self, value: float | str): + def radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Radius={value}"]) @property def base_radius(self) -> float: @@ -225,12 +239,14 @@ def base_radius(self) -> float: """ val = self._get_property("Base Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @base_radius.setter - def base_radius(self, value: float | str): + def base_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Radius={value}"]) @property def center_radius(self) -> float: @@ -241,12 +257,14 @@ def center_radius(self) -> float: """ val = self._get_property("Center Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @center_radius.setter - def center_radius(self, value: float | str): + def center_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Center Radius={value}"]) @property def x_axis_ellipsoid_radius(self) -> float: @@ -257,12 +275,14 @@ def x_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("X Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value: float | str): + def x_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X Axis Ellipsoid Radius={value}"]) @property def y_axis_ellipsoid_radius(self) -> float: @@ -273,12 +293,14 @@ def y_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Y Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value: float | str): + def y_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y Axis Ellipsoid Radius={value}"]) @property def z_axis_ellipsoid_radius(self) -> float: @@ -289,12 +311,14 @@ def z_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Z Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value: float | str): + def z_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Z Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Z Axis Ellipsoid Radius={value}"]) @property def focal_length(self) -> float: @@ -305,27 +329,31 @@ def focal_length(self) -> float: """ val = self._get_property("Focal Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @focal_length.setter - def focal_length(self, value: float | str): + def focal_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Focal Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Focal Length={value}"]) @property def offset(self) -> float: """Offset Offset of parabolic reflector - """ + """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @offset.setter - def offset(self, value: float | str): + def offset(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Offset={value}"]) @property def x_direction_taper(self) -> float: @@ -336,11 +364,13 @@ def x_direction_taper(self) -> float: Value should be greater than 0. """ val = self._get_property("X Direction Taper") - return val # type: ignore + return float(val) @x_direction_taper.setter - def x_direction_taper(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Direction Taper={value}"]) + def x_direction_taper(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X Direction Taper={value}"]) @property def y_direction_taper(self) -> float: @@ -351,11 +381,13 @@ def y_direction_taper(self) -> float: Value should be greater than 0. """ val = self._get_property("Y Direction Taper") - return val # type: ignore + return float(val) @y_direction_taper.setter - def y_direction_taper(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Direction Taper={value}"]) + def y_direction_taper(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y Direction Taper={value}"]) @property def prism_direction(self): @@ -365,11 +397,13 @@ def prism_direction(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Prism Direction") - return val # type: ignore + return val @prism_direction.setter def prism_direction(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Prism Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Prism Direction={value}"]) @property def closed_top(self) -> bool: @@ -379,12 +413,13 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - val = val == "true" - return val # type: ignore + return (val == true) @closed_top.setter def closed_top(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Top={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Closed Top={value}"]) @property def closed_base(self) -> bool: @@ -394,12 +429,13 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - val = val == "true" - return val # type: ignore + return (val == true) @closed_base.setter def closed_base(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Base={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Closed Base={value}"]) @property def mesh_density(self) -> int: @@ -410,11 +446,13 @@ def mesh_density(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Mesh Density") - return val # type: ignore + return int(val) @mesh_density.setter def mesh_density(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Density={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mesh Density={value}"]) @property def use_symmetric_mesh(self) -> bool: @@ -425,30 +463,33 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - val = val == "true" - return val # type: ignore + return (val == true) @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Symmetric Mesh={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Symmetric Mesh={value}"]) class MeshOptionOption(Enum): - IMPROVED = "Improved" # eslint-disable-line no-eval - LEGACY = "Legacy" # eslint-disable-line no-eval + IMPROVED = "Improved" # eslint-disable-line no-eval + LEGACY = "Legacy" # eslint-disable-line no-eval @property def mesh_option(self) -> MeshOptionOption: """Mesh Option Select from different meshing options - """ + """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val.upper()] - return val # type: ignore + return val @mesh_option.setter def mesh_option(self, value: MeshOptionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Option={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mesh Option={value.value}"]) @property def coating_index(self) -> int: @@ -458,11 +499,13 @@ def coating_index(self) -> int: Value should be between 0 and 100000. """ val = self._get_property("Coating Index") - return val # type: ignore + return int(val) @coating_index.setter def coating_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Coating Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Coating Index={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -473,14 +516,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - val = val == "true" - return val # type: ignore + return (val == true) @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): @@ -490,11 +532,13 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): @@ -504,29 +548,33 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] - return val # type: ignore + return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -536,11 +584,13 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): @@ -550,11 +600,13 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def visible(self) -> bool: @@ -564,32 +616,35 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = val == "true" - return val # type: ignore + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) class RenderModeOption(Enum): - FLAT_SHADED = "Flat-Shaded" # eslint-disable-line no-eval - WIRE_FRAME = "Wire-Frame" # eslint-disable-line no-eval - HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" # eslint-disable-line no-eval - OUTLINE = "Outline" # eslint-disable-line no-eval + FLAT_SHADED = "Flat-Shaded" # eslint-disable-line no-eval + WIRE_FRAME = "Wire-Frame" # eslint-disable-line no-eval + HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" # eslint-disable-line no-eval + OUTLINE = "Outline" # eslint-disable-line no-eval @property def render_mode(self) -> RenderModeOption: """Render Mode Select drawing style for surfaces - """ + """ val = self._get_property("Render Mode") val = self.RenderModeOption[val.upper()] - return val # type: ignore + return val @render_mode.setter def render_mode(self, value: RenderModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Render Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Render Mode={value.value}"]) @property def show_axes(self) -> bool: @@ -599,12 +654,13 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - val = val == "true" - return val # type: ignore + return (val == true) @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def min(self): @@ -614,7 +670,7 @@ def min(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Min") - return val # type: ignore + return val @property def max(self): @@ -624,16 +680,16 @@ def max(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Max") - return val # type: ignore + return val @property def number_of_surfaces(self) -> int: """Number of Surfaces Number of surfaces in the model - """ + """ val = self._get_property("Number of Surfaces") - return val # type: ignore + return int(val) @property def color(self): @@ -643,21 +699,26 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py new file mode 100644 index 00000000000..0cc7e14fba0 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files(the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions : +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + +class CategoriesViewNode(EmitNode): + def __init__(self, emit_obj, result_id, node_id): + self._is_component = False + EmitNode.__init__(self, emit_obj, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py similarity index 70% rename from src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py index daf325445dc..1c6c57fab1a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class CouplingLinkNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -44,12 +41,13 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def ports(self): @@ -57,10 +55,13 @@ def ports(self): Maps each port in the link to an antenna in the project "A list of values." - """ + """ val = self._get_property("Ports") - return val # type: ignore + return val @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ports={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py similarity index 62% rename from src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py index e1e2322da90..5f36238ec71 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class CouplingTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -52,23 +48,29 @@ def delete(self): @property def transmitter(self) -> EmitNode: - """Transmitter""" + """Transmitter + """ val = self._get_property("Transmitter") - return val # type: ignore + return val @transmitter.setter def transmitter(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Transmitter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Transmitter={value}"]) @property def receiver(self) -> EmitNode: - """Receiver""" + """Receiver + """ val = self._get_property("Receiver") - return val # type: ignore + return val @receiver.setter def receiver(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Receiver={value}"]) @property def data_source(self): @@ -76,13 +78,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -92,12 +96,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = val == "true" - return val # type: ignore + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -107,47 +112,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = val == "true" - return val # type: ignore + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -157,11 +167,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return int(val) @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -171,42 +183,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -216,11 +232,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return int(val) @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -230,11 +248,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -244,11 +264,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return int(val) @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -259,12 +281,13 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = val == "true" - return val # type: ignore + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def highlight_regions(self) -> bool: @@ -274,12 +297,13 @@ def highlight_regions(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Highlight Regions") - val = val == "true" - return val # type: ignore + return (val == true) @highlight_regions.setter def highlight_regions(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highlight Regions={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Highlight Regions={value}"]) @property def show_region_labels(self) -> bool: @@ -289,12 +313,13 @@ def show_region_labels(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Region Labels") - val = val == "true" - return val # type: ignore + return (val == true) @show_region_labels.setter def show_region_labels(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Region Labels={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Region Labels={value}"]) @property def font(self): @@ -304,11 +329,13 @@ def font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Font") - return val # type: ignore + return val @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): @@ -318,11 +345,13 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): @@ -332,11 +361,13 @@ def background_color(self): Color should be in RGBA form: #AARRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: @@ -346,12 +377,13 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - val = val == "true" - return val # type: ignore + return (val == true) @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: @@ -361,11 +393,13 @@ def border_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Border Width") - return val # type: ignore + return int(val) @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): @@ -375,8 +409,11 @@ def border_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Border Color") - return val # type: ignore + return val @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py similarity index 80% rename from src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py index 62f1ae12509..8543cb64576 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class CouplingsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -33,7 +30,7 @@ def __init__(self, emit_obj, result_id, node_id): def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" - return self._import(file_name, "TouchstoneCoupling") + return self._import(file_name,"TouchstoneCoupling") def add_custom_coupling(self): """Add a new node to define custom coupling between antennas""" @@ -80,11 +77,13 @@ def minimum_allowed_coupling(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Minimum Allowed Coupling") - return val # type: ignore + return float(val) @minimum_allowed_coupling.setter - def minimum_allowed_coupling(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Allowed Coupling={value}"]) + def minimum_allowed_coupling(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minimum Allowed Coupling={value}"]) @property def global_default_coupling(self) -> float: @@ -94,17 +93,20 @@ def global_default_coupling(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Global Default Coupling") - return val # type: ignore + return float(val) @global_default_coupling.setter - def global_default_coupling(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Global Default Coupling={value}"]) + def global_default_coupling(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Global Default Coupling={value}"]) @property def antenna_tags(self) -> str: """Antenna Tags All tags currently used by all antennas in the project - """ + """ val = self._get_property("Antenna Tags") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py similarity index 71% rename from src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py index 500ebeead48..6a5209ba075 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/CustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class CustomCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -38,7 +35,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def rename(self, new_name: str): """Rename this node""" @@ -54,11 +51,11 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Value (dB): + "Value (dB): Value should be between -1000 and 0. """ return self._get_table_data() @@ -75,38 +72,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -116,12 +118,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = val == "true" - return val # type: ignore + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -131,22 +134,26 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = val == "true" - return val # type: ignore + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py similarity index 62% rename from src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py index b2f156d5d18..671a1008346 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmiPlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class EmiPlotMarkerNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -58,12 +54,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = val == "true" - return val # type: ignore + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def attached(self): @@ -71,31 +68,33 @@ def attached(self): Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False) - """ + """ val = self._get_property("Attached") - return val # type: ignore + return val @attached.setter def attached(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Attached={value}"]) @property def position_x(self) -> float: """Position X Position of the marker on the X-axis (frequency axis). - """ + """ val = self._get_property("Position X") - return val # type: ignore + return float(val) @property def position_y(self) -> float: """Position Y Position of the marker on the Y-axis (result axis). - """ + """ val = self._get_property("Position Y") - return val # type: ignore + return float(val) @property def floating_label(self) -> bool: @@ -106,12 +105,13 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - val = val == "true" - return val # type: ignore + return (val == true) @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -122,11 +122,13 @@ def position_from_left(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Position from Left") - return val # type: ignore + return float(val) @position_from_left.setter - def position_from_left(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) + def position_from_left(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -137,83 +139,91 @@ def position_from_top(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Position from Top") - return val # type: ignore + return float(val) @position_from_top.setter - def position_from_top(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) + def position_from_top(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Top={value}"]) @property def text(self) -> str: """Text Set the text of the label - """ + """ val = self._get_property("Text") - return val # type: ignore + return val @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text={value}"]) class HorizontalPositionOption(Enum): - LEFT = "Left" # eslint-disable-line no-eval - RIGHT = "Right" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + LEFT = "Left" # eslint-disable-line no-eval + RIGHT = "Right" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position Specify horizontal position of the label as compared to the symbol - """ + """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val.upper()] - return val # type: ignore + return val @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Horizontal Position={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Position={value.value}"]) class VerticalPositionOption(Enum): - TOP = "Top" # eslint-disable-line no-eval - BOTTOM = "Bottom" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + TOP = "Top" # eslint-disable-line no-eval + BOTTOM = "Bottom" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def vertical_position(self) -> VerticalPositionOption: """Vertical Position Specify vertical position of the label as compared to the symbol - """ + """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val.upper()] - return val # type: ignore + return val @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): - LEFT = "Left" # eslint-disable-line no-eval - RIGHT = "Right" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + LEFT = "Left" # eslint-disable-line no-eval + RIGHT = "Right" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def text_alignment(self) -> TextAlignmentOption: """Text Alignment Specify justification applied to multi-line text - """ + """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val.upper()] - return val # type: ignore + return val @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text Alignment={value.value}"]) @property def font(self): @@ -223,11 +233,13 @@ def font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Font") - return val # type: ignore + return val @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): @@ -237,11 +249,13 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): @@ -251,11 +265,13 @@ def background_color(self): Color should be in RGBA form: #AARRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: @@ -265,12 +281,13 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - val = val == "true" - return val # type: ignore + return (val == true) @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: @@ -280,11 +297,13 @@ def border_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Border Width") - return val # type: ignore + return int(val) @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): @@ -294,43 +313,47 @@ def border_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Border Color") - return val # type: ignore + return val @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval - ARROW = "Arrow" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval + ARROW = "Arrow" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Specify symbol displayed next to the label - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -340,11 +363,13 @@ def arrow_direction(self) -> int: Value should be between -360 and 360. """ val = self._get_property("Arrow Direction") - return val # type: ignore + return int(val) @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -354,11 +379,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return int(val) @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -368,11 +395,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -382,11 +411,13 @@ def line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Line Width") - return val # type: ignore + return int(val) @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -397,9 +428,11 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - val = val == "true" - return val # type: ignore + return (val == true) @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py similarity index 65% rename from src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py index 915bb97f414..fcd90ebf1b0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/EmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class EmitSceneNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -42,34 +38,36 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class GroundPlaneNormalOption(Enum): - X_AXIS = "X Axis" # eslint-disable-line no-eval - Y_AXIS = "Y Axis" # eslint-disable-line no-eval - Z_AXIS = "Z Axis" # eslint-disable-line no-eval + X_AXIS = "X Axis" # eslint-disable-line no-eval + Y_AXIS = "Y Axis" # eslint-disable-line no-eval + Z_AXIS = "Z Axis" # eslint-disable-line no-eval @property def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal Specifies the axis of the normal to the ground plane - """ + """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val.upper()] - return val # type: ignore + return val @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ground Plane Normal={value.value}"]) @property def gp_position_along_normal(self) -> float: @@ -77,12 +75,15 @@ def gp_position_along_normal(self) -> float: Offset of ground plane in direction normal to the ground planes orientation - """ + """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @gp_position_along_normal.setter - def gp_position_along_normal(self, value: float | str): + def gp_position_along_normal(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GP Position Along Normal={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"GP Position Along Normal={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py similarity index 64% rename from src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py index 9898f2ea385..fbdc384668e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ErcegCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -58,38 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -99,12 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = val == "true" - return val # type: ignore + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -114,44 +116,49 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = val == "true" - return val # type: ignore + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class TerrainCategoryOption(Enum): - TYPE_A = "Type A" # eslint-disable-line no-eval - TYPE_B = "Type B" # eslint-disable-line no-eval - TYPE_C = "Type C" # eslint-disable-line no-eval + TYPE_A = "Type A" # eslint-disable-line no-eval + TYPE_B = "Type B" # eslint-disable-line no-eval + TYPE_C = "Type C" # eslint-disable-line no-eval @property def terrain_category(self) -> TerrainCategoryOption: """Terrain Category Specify the terrain category type for the Erceg model - """ + """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val.upper()] - return val # type: ignore + return val @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Terrain Category={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Terrain Category={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -162,11 +169,13 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -177,11 +186,13 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -192,31 +203,35 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -227,11 +242,13 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -241,11 +258,13 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -255,12 +274,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = val == "true" - return val # type: ignore + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -271,11 +291,13 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -285,11 +307,13 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -300,11 +324,13 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -315,14 +341,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = val == "true" - return val # type: ignore + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -332,11 +357,13 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -346,11 +373,13 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -360,10 +389,11 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py similarity index 56% rename from src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py index 90b5753f8ae..e8e4d80c2b2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/HataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py @@ -1,34 +1,30 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode -from ..EmitNode import EmitNode - - -class HataCouplingNode(EmitNode): +class FiveGChannelModel(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False EmitNode.__init__(self, emit_obj, result_id, node_id) @@ -58,38 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -99,12 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = val == "true" - return val # type: ignore + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -114,45 +116,101 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = val == "true" - return val # type: ignore + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): - LARGE_CITY = "Large City" # eslint-disable-line no-eval - SMALLMEDIUM_CITY = "Small/Medium City" # eslint-disable-line no-eval - SUBURBAN = "Suburban" # eslint-disable-line no-eval - RURAL = "Rural" # eslint-disable-line no-eval + URBAN_MICROCELL = "Urban Microcell" # eslint-disable-line no-eval + URBAN_MACROCELL = "Urban Macrocell" # eslint-disable-line no-eval + RURAL_MACROCELL = "Rural Macrocell" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment - Specify the environment type for the Hata model + Specify the environment for the 5G channel model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] - return val # type: ignore + return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) + + @property + def los(self) -> bool: + """LOS + True if the operating environment is line-of-sight + + Value should be 'true' or 'false'. + """ + val = self._get_property("LOS") + return (val == true) + + @los.setter + def los(self, value: bool): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"LOS={value}"]) + + @property + def include_bpl(self) -> bool: + """Include BPL + Includes building penetration loss if true + + Value should be 'true' or 'false'. + """ + val = self._get_property("Include BPL") + return (val == true) + + @include_bpl.setter + def include_bpl(self, value: bool): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include BPL={value}"]) + + class NYUBPLModelOption(Enum): + LOW_LOSS_MODEL = "Low-loss model" # eslint-disable-line no-eval + HIGH_LOSS_MODEL = "High-loss model" # eslint-disable-line no-eval + + @property + def nyu_bpl_model(self) -> NYUBPLModelOption: + """NYU BPL Model + Specify the NYU Building Penetration Loss model + + """ + val = self._get_property("NYU BPL Model") + val = self.NYUBPLModelOption[val.upper()] + return val + + @nyu_bpl_model.setter + def nyu_bpl_model(self, value: NYUBPLModelOption): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NYU BPL Model={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -163,11 +221,13 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -178,11 +238,13 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -193,31 +255,35 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -228,11 +294,13 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -242,11 +310,13 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -256,12 +326,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = val == "true" - return val # type: ignore + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -272,11 +343,13 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -286,11 +359,13 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -301,11 +376,13 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -316,14 +393,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = val == "true" - return val # type: ignore + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -333,11 +409,13 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -347,11 +425,13 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -361,10 +441,11 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py similarity index 63% rename from src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py rename to src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py index 614ab9e365c..3c73b927008 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/FiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py @@ -1,34 +1,30 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode -from ..EmitNode import EmitNode - - -class FiveGChannelModel(EmitNode): +class HataCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False EmitNode.__init__(self, emit_obj, result_id, node_id) @@ -58,38 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -99,12 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = val == "true" - return val # type: ignore + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -114,92 +116,50 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = val == "true" - return val # type: ignore + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): - URBAN_MICROCELL = "Urban Microcell" # eslint-disable-line no-eval - URBAN_MACROCELL = "Urban Macrocell" # eslint-disable-line no-eval - RURAL_MACROCELL = "Rural Macrocell" # eslint-disable-line no-eval + LARGE_CITY = "Large City" # eslint-disable-line no-eval + SMALLMEDIUM_CITY = "Small/Medium City" # eslint-disable-line no-eval + SUBURBAN = "Suburban" # eslint-disable-line no-eval + RURAL = "Rural" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment - Specify the environment for the 5G channel model + Specify the environment type for the Hata model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] - return val # type: ignore + return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) - - @property - def los(self) -> bool: - """LOS - True if the operating environment is line-of-sight - - Value should be 'true' or 'false'. - """ - val = self._get_property("LOS") - val = val == "true" - return val # type: ignore - - @los.setter - def los(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"LOS={value}"]) - - @property - def include_bpl(self) -> bool: - """Include BPL - Includes building penetration loss if true - - Value should be 'true' or 'false'. - """ - val = self._get_property("Include BPL") - val = val == "true" - return val # type: ignore - - @include_bpl.setter - def include_bpl(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include BPL={value}"]) - - class NYUBPLModelOption(Enum): - LOW_LOSS_MODEL = "Low-loss model" # eslint-disable-line no-eval - HIGH_LOSS_MODEL = "High-loss model" # eslint-disable-line no-eval - - @property - def nyu_bpl_model(self) -> NYUBPLModelOption: - """NYU BPL Model - Specify the NYU Building Penetration Loss model - - """ - val = self._get_property("NYU BPL Model") - val = self.NYUBPLModelOption[val.upper()] - return val # type: ignore - - @nyu_bpl_model.setter - def nyu_bpl_model(self, value: NYUBPLModelOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NYU BPL Model={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -210,11 +170,13 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -225,11 +187,13 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -240,31 +204,35 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -275,11 +243,13 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -289,11 +259,13 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -303,12 +275,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = val == "true" - return val # type: ignore + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -319,11 +292,13 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -333,11 +308,13 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -348,11 +325,13 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -363,14 +342,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = val == "true" - return val # type: ignore + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -380,11 +358,13 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -394,11 +374,13 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -408,10 +390,11 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py similarity index 63% rename from src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py index 73543bfb007..511918799eb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/IndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class IndoorPropagationCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -52,13 +48,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Power Loss Coefficient: + "Power Loss Coefficient: Value should be between 0 and 100. - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): Value should be between 0 and 1000. """ return self._get_table_data() @@ -75,38 +71,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -116,12 +117,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = val == "true" - return val # type: ignore + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -131,46 +133,51 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = val == "true" - return val # type: ignore + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class BuildingTypeOption(Enum): - RESIDENTIAL_APARTMENT = "Residential Apartment" # eslint-disable-line no-eval - RESIDENTIAL_HOUSE = "Residential House" # eslint-disable-line no-eval - OFFICE_BUILDING = "Office Building" # eslint-disable-line no-eval - COMMERCIAL_BUILDING = "Commercial Building" # eslint-disable-line no-eval - CUSTOM_BUILDING = "Custom Building" # eslint-disable-line no-eval + RESIDENTIAL_APARTMENT = "Residential Apartment" # eslint-disable-line no-eval + RESIDENTIAL_HOUSE = "Residential House" # eslint-disable-line no-eval + OFFICE_BUILDING = "Office Building" # eslint-disable-line no-eval + COMMERCIAL_BUILDING = "Commercial Building" # eslint-disable-line no-eval + CUSTOM_BUILDING = "Custom Building" # eslint-disable-line no-eval @property def building_type(self) -> BuildingTypeOption: """Building Type Specify the building type for the Indoor Propagation model - """ + """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val.upper()] - return val # type: ignore + return val @building_type.setter def building_type(self, value: BuildingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Building Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Building Type={value.value}"]) @property def number_of_floors(self) -> int: @@ -180,11 +187,13 @@ def number_of_floors(self) -> int: Value should be between 1 and 3. """ val = self._get_property("Number of Floors") - return val # type: ignore + return int(val) @number_of_floors.setter def number_of_floors(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Floors={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Floors={value}"]) @property def custom_fading_margin(self) -> float: @@ -195,11 +204,13 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -210,11 +221,13 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -225,31 +238,35 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -260,11 +277,13 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -274,11 +293,13 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -288,12 +309,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = val == "true" - return val # type: ignore + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -304,11 +326,13 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -318,11 +342,13 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -333,11 +359,13 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -348,14 +376,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = val == "true" - return val # type: ignore + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -365,11 +392,13 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -379,11 +408,13 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -393,10 +424,11 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py new file mode 100644 index 00000000000..6c685e3169d --- /dev/null +++ b/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py @@ -0,0 +1,419 @@ +# -*- coding: utf-8 -*- +# +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files(the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions : +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. +from enum import Enum +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + +class LogDistanceCouplingNode(EmitNode): + def __init__(self, emit_obj, result_id, node_id): + self._is_component = False + EmitNode.__init__(self, emit_obj, result_id, node_id) + + @property + def parent(self): + """The parent of this emit node.""" + return self._parent + + def rename(self, new_name: str): + """Rename this node""" + self._rename(new_name) + + def duplicate(self, new_name: str): + """Duplicate this node""" + return self._duplicate(new_name) + + def delete(self): + """Delete this node""" + self._delete() + + @property + def enabled(self) -> bool: + """Enabled + Enable/Disable coupling + + Value should be 'true' or 'false'. + """ + val = self._get_property("Enabled") + return (val == true) + + @enabled.setter + def enabled(self, value: bool): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) + + @property + def antenna_a(self) -> EmitNode: + """Antenna A + First antenna of the pair to apply the coupling values to + + """ + val = self._get_property("Antenna A") + return val + + @antenna_a.setter + def antenna_a(self, value: EmitNode): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) + + @property + def antenna_b(self) -> EmitNode: + """Antenna B + Second antenna of the pair to apply the coupling values to + + """ + val = self._get_property("Antenna B") + return val + + @antenna_b.setter + def antenna_b(self, value: EmitNode): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) + + @property + def enable_refinement(self) -> bool: + """Enable Refinement + Enables/disables refined sampling of the frequency domain. + + Value should be 'true' or 'false'. + """ + val = self._get_property("Enable Refinement") + return (val == true) + + @enable_refinement.setter + def enable_refinement(self, value: bool): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) + + @property + def adaptive_sampling(self) -> bool: + """Adaptive Sampling + Enables/disables adaptive refinement the frequency domain sampling. + + Value should be 'true' or 'false'. + """ + val = self._get_property("Adaptive Sampling") + return (val == true) + + @adaptive_sampling.setter + def adaptive_sampling(self, value: bool): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) + + @property + def refinement_domain(self): + """Refinement Domain + Points to use when refining the frequency domain. + + """ + val = self._get_property("Refinement Domain") + return val + + @refinement_domain.setter + def refinement_domain(self, value): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) + + class EnvironmentOption(Enum): + FREE_SPACE = "Free Space" # eslint-disable-line no-eval + URBAN = "Urban" # eslint-disable-line no-eval + SHADOWED_URBAN = "Shadowed Urban" # eslint-disable-line no-eval + BUILDING_LINE_OF_SIGHT = "Building Line of Sight" # eslint-disable-line no-eval + BUILDING_OBSTRUCTED = "Building Obstructed" # eslint-disable-line no-eval + FACTORY_OBSTRUCTED = "Factory Obstructed" # eslint-disable-line no-eval + CUSTOM = "Custom" # eslint-disable-line no-eval + + @property + def environment(self) -> EnvironmentOption: + """Environment + Specify the environment type for the Log Distance model + + """ + val = self._get_property("Environment") + val = self.EnvironmentOption[val.upper()] + return val + + @environment.setter + def environment(self, value: EnvironmentOption): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) + + @property + def path_loss_exponent(self) -> float: + """Path Loss Exponent + Path Loss Exponent + + Value should be between 0 and 100. + """ + val = self._get_property("Path Loss Exponent") + return float(val) + + @path_loss_exponent.setter + def path_loss_exponent(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Path Loss Exponent={value}"]) + + @property + def custom_fading_margin(self) -> float: + """Custom Fading Margin + Sets a custom fading margin to be applied to all coupling defined by + this node + + Value should be between 0 and 100. + """ + val = self._get_property("Custom Fading Margin") + return float(val) + + @custom_fading_margin.setter + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) + + @property + def polarization_mismatch(self) -> float: + """Polarization Mismatch + Sets a margin for polarization mismatch to be applied to all coupling + defined by this node + + Value should be between 0 and 100. + """ + val = self._get_property("Polarization Mismatch") + return float(val) + + @polarization_mismatch.setter + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) + + @property + def pointing_error_loss(self) -> float: + """Pointing Error Loss + Sets a margin for pointing error loss to be applied to all coupling + defined by this node + + Value should be between 0 and 100. + """ + val = self._get_property("Pointing Error Loss") + return float(val) + + @pointing_error_loss.setter + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) + + class FadingTypeOption(Enum): + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + + @property + def fading_type(self) -> FadingTypeOption: + """Fading Type + Specify the type of fading to include + + """ + val = self._get_property("Fading Type") + val = self.FadingTypeOption[val.upper()] + return val + + @fading_type.setter + def fading_type(self, value: FadingTypeOption): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) + + @property + def fading_availability(self) -> float: + """Fading Availability + The probability that the propagation loss in dB is below its median + value plus the margin + + Value should be between 0 and 100. + """ + val = self._get_property("Fading Availability") + return float(val) + + @fading_availability.setter + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) + + @property + def std_deviation(self) -> float: + """Std Deviation + Standard deviation modeling the random amount of shadowing loss + + Value should be between 0 and 100. + """ + val = self._get_property("Std Deviation") + return float(val) + + @std_deviation.setter + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) + + @property + def include_rain_attenuation(self) -> bool: + """Include Rain Attenuation + Adds a margin for rain attenuation to the computed coupling + + Value should be 'true' or 'false'. + """ + val = self._get_property("Include Rain Attenuation") + return (val == true) + + @include_rain_attenuation.setter + def include_rain_attenuation(self, value: bool): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) + + @property + def rain_availability(self) -> float: + """Rain Availability + Percentage of time attenuation due to range is < computed margin (range + from 99-99.999%) + + Value should be between 99 and 99.999. + """ + val = self._get_property("Rain Availability") + return float(val) + + @rain_availability.setter + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) + + @property + def rain_rate(self) -> float: + """Rain Rate + Rain rate (mm/hr) exceeded for 0.01% of the time + + Value should be between 0 and 1000. + """ + val = self._get_property("Rain Rate") + return float(val) + + @rain_rate.setter + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) + + @property + def polarization_tilt_angle(self) -> float: + """Polarization Tilt Angle + Polarization tilt angle of the transmitted signal relative to the + horizontal + + Value should be between 0 and 180. + """ + val = self._get_property("Polarization Tilt Angle") + return float(val) + + @polarization_tilt_angle.setter + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) + + @property + def include_atmospheric_absorption(self) -> bool: + """Include Atmospheric Absorption + Adds a margin for atmospheric absorption due to oxygen/water vapor to + the computed coupling + + Value should be 'true' or 'false'. + """ + val = self._get_property("Include Atmospheric Absorption") + return (val == true) + + @include_atmospheric_absorption.setter + def include_atmospheric_absorption(self, value: bool): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) + + @property + def temperature(self) -> float: + """Temperature + Air temperature in degrees Celsius + + Value should be between -273 and 100. + """ + val = self._get_property("Temperature") + return float(val) + + @temperature.setter + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) + + @property + def total_air_pressure(self) -> float: + """Total Air Pressure + Total air pressure + + Value should be between 0 and 2000. + """ + val = self._get_property("Total Air Pressure") + return float(val) + + @total_air_pressure.setter + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) + + @property + def water_vapor_concentration(self) -> float: + """Water Vapor Concentration + Water vapor concentration + + Value should be between 0 and 2000. + """ + val = self._get_property("Water Vapor Concentration") + return float(val) + + @water_vapor_concentration.setter + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py similarity index 60% rename from src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py index 3c1201a5b39..8778c7adfb1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MPlexBandTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class MPlexBandTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -51,18 +47,21 @@ def delete(self): self._delete() class PowerDirectionOption(Enum): - INTO_COMMON_PORTOUT_OF_COMMON_PORT = "Into Common Port|Out of Common Port" # eslint-disable-line no-eval + INTO_COMMON_PORTOUT_OF_COMMON_PORT = "Into Common Port|Out of Common Port" # eslint-disable-line no-eval @property def power_direction(self) -> PowerDirectionOption: - """Power Direction""" + """Power Direction + """ val = self._get_property("Power Direction") val = self.PowerDirectionOption[val.upper()] - return val # type: ignore + return val @power_direction.setter def power_direction(self, value: PowerDirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Power Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Power Direction={value.value}"]) @property def data_source(self): @@ -70,13 +69,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -86,12 +87,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = val == "true" - return val # type: ignore + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -101,47 +103,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = val == "true" - return val # type: ignore + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -151,11 +158,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return int(val) @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -165,42 +174,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -210,11 +223,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return int(val) @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -224,11 +239,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -238,11 +255,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return int(val) @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -253,9 +272,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = val == "true" - return val # type: ignore + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py similarity index 67% rename from src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py rename to src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py index 78126b156cf..c53e676d61e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/MultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class MultiplexerBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -51,10 +47,10 @@ def delete(self): self._delete() class TypeOption(Enum): - BY_FILE = "By File" - LOW_PASS = "Low Pass" # nosec B105 - HIGH_PASS = "High Pass" # nosec B105 - BAND_PASS = "Band Pass" # nosec B105 + BY_FILE = "By File" # eslint-disable-line no-eval + LOW_PASS = "Low Pass" # eslint-disable-line no-eval + HIGH_PASS = "High Pass" # eslint-disable-line no-eval + BAND_PASS = "Band Pass" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -63,14 +59,16 @@ def type(self) -> TypeOption: file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def filename(self) -> str: @@ -80,11 +78,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def insertion_loss(self) -> float: @@ -94,11 +94,13 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return float(val) @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -108,11 +110,13 @@ def stop_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return float(val) @stop_band_attenuation.setter - def stop_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -123,12 +127,14 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @max_pass_band.setter - def max_pass_band(self, value: float | str): + def max_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -139,12 +145,14 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @min_stop_band.setter - def min_stop_band(self, value: float | str): + def min_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -155,12 +163,14 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @max_stop_band.setter - def max_stop_band(self, value: float | str): + def max_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -171,12 +181,14 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @min_pass_band.setter - def min_pass_band(self, value: float | str): + def min_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -187,12 +199,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -203,12 +217,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -219,12 +235,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -235,18 +253,21 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py similarity index 61% rename from src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py index c2d367d4901..fe1f86f7184 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/OutboardTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class OutboardTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -58,11 +54,13 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return int(val) @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -72,11 +70,13 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return int(val) @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): @@ -84,13 +84,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -100,12 +102,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = val == "true" - return val # type: ignore + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -115,47 +118,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = val == "true" - return val # type: ignore + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -165,11 +173,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return int(val) @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -179,42 +189,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -224,11 +238,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return int(val) @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -238,11 +254,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -252,11 +270,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return int(val) @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -267,9 +287,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = val == "true" - return val # type: ignore + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py similarity index 60% rename from src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py index c7dc31965bf..fb22694663a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ParametricCouplingTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ParametricCouplingTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -52,23 +48,29 @@ def delete(self): @property def antenna_a(self) -> EmitNode: - """Antenna A""" + """Antenna A + """ val = self._get_property("Antenna A") - return val # type: ignore + return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: - """Antenna B""" + """Antenna B + """ val = self._get_property("Antenna B") - return val # type: ignore + return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def data_source(self): @@ -76,13 +78,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -92,12 +96,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = val == "true" - return val # type: ignore + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -107,47 +112,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = val == "true" - return val # type: ignore + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -157,11 +167,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return int(val) @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -171,42 +183,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -216,11 +232,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return int(val) @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -230,11 +248,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -244,11 +264,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return int(val) @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -259,9 +281,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = val == "true" - return val # type: ignore + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py similarity index 61% rename from src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py index bba2ac7ad3c..879ff7e1f7e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotMarkerNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class PlotMarkerNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -58,12 +54,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = val == "true" - return val # type: ignore + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def attached(self) -> bool: @@ -74,38 +71,43 @@ def attached(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Attached") - val = val == "true" - return val # type: ignore + return (val == true) @attached.setter def attached(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Attached={value}"]) @property def position_x(self) -> float: """Position X Position of the marker on the X-axis (frequency axis). - """ + """ val = self._get_property("Position X") - return val # type: ignore + return float(val) @position_x.setter - def position_x(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position X={value}"]) + def position_x(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position X={value}"]) @property def position_y(self) -> float: """Position Y Position of the marker on the Y-axis (result axis). - """ + """ val = self._get_property("Position Y") - return val # type: ignore + return float(val) @position_y.setter - def position_y(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Y={value}"]) + def position_y(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position Y={value}"]) @property def floating_label(self) -> bool: @@ -116,12 +118,13 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - val = val == "true" - return val # type: ignore + return (val == true) @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -132,11 +135,13 @@ def position_from_left(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Position from Left") - return val # type: ignore + return float(val) @position_from_left.setter - def position_from_left(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) + def position_from_left(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -147,83 +152,91 @@ def position_from_top(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Position from Top") - return val # type: ignore + return float(val) @position_from_top.setter - def position_from_top(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) + def position_from_top(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Top={value}"]) @property def text(self) -> str: """Text Set the text of the label - """ + """ val = self._get_property("Text") - return val # type: ignore + return val @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text={value}"]) class HorizontalPositionOption(Enum): - LEFT = "Left" # eslint-disable-line no-eval - RIGHT = "Right" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + LEFT = "Left" # eslint-disable-line no-eval + RIGHT = "Right" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position Specify horizontal position of the label as compared to the symbol - """ + """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val.upper()] - return val # type: ignore + return val @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Horizontal Position={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Position={value.value}"]) class VerticalPositionOption(Enum): - TOP = "Top" # eslint-disable-line no-eval - BOTTOM = "Bottom" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + TOP = "Top" # eslint-disable-line no-eval + BOTTOM = "Bottom" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def vertical_position(self) -> VerticalPositionOption: """Vertical Position Specify vertical position of the label as compared to the symbol - """ + """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val.upper()] - return val # type: ignore + return val @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): - LEFT = "Left" # eslint-disable-line no-eval - RIGHT = "Right" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + LEFT = "Left" # eslint-disable-line no-eval + RIGHT = "Right" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def text_alignment(self) -> TextAlignmentOption: """Text Alignment Specify justification applied to multi-line text - """ + """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val.upper()] - return val # type: ignore + return val @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text Alignment={value.value}"]) @property def font(self): @@ -233,11 +246,13 @@ def font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Font") - return val # type: ignore + return val @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): @@ -247,11 +262,13 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): @@ -261,11 +278,13 @@ def background_color(self): Color should be in RGBA form: #AARRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: @@ -275,12 +294,13 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - val = val == "true" - return val # type: ignore + return (val == true) @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: @@ -290,11 +310,13 @@ def border_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Border Width") - return val # type: ignore + return int(val) @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): @@ -304,43 +326,47 @@ def border_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Border Color") - return val # type: ignore + return val @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval - ARROW = "Arrow" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval + ARROW = "Arrow" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Specify symbol displayed next to the label - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -350,11 +376,13 @@ def arrow_direction(self) -> int: Value should be between -360 and 360. """ val = self._get_property("Arrow Direction") - return val # type: ignore + return int(val) @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -364,11 +392,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return int(val) @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -378,11 +408,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -392,11 +424,13 @@ def line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Line Width") - return val # type: ignore + return int(val) @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -407,9 +441,11 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - val = val == "true" - return val # type: ignore + return (val == true) @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py similarity index 63% rename from src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py index 37e0057c87c..d2a46323745 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class PlotNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -58,13 +54,15 @@ def title(self) -> str: """Title Enter title at the top of the plot, room will be made for it - """ + """ val = self._get_property("Title") - return val # type: ignore + return val @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title={value}"]) @property def title_font(self): @@ -74,11 +72,13 @@ def title_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Title Font") - return val # type: ignore + return val @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -88,12 +88,13 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - val = val == "true" - return val # type: ignore + return (val == true) @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Legend={value}"]) @property def legend_font(self): @@ -103,11 +104,13 @@ def legend_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Legend Font") - return val # type: ignore + return val @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Legend Font={value}"]) @property def display_cad_overlay(self) -> bool: @@ -117,12 +120,13 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - val = val == "true" - return val # type: ignore + return (val == true) @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -132,24 +136,28 @@ def opacity(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Opacity") - return val # type: ignore + return float(val) @opacity.setter - def opacity(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) + def opacity(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset Adjust vertical position of CAD model overlay - """ + """ val = self._get_property("Vertical Offset") - return val # type: ignore + return float(val) @vertical_offset.setter - def vertical_offset(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) + def vertical_offset(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -160,11 +168,13 @@ def range_axis_rotation(self) -> float: Value should be between -180 and 180. """ val = self._get_property("Range Axis Rotation") - return val # type: ignore + return float(val) @range_axis_rotation.setter - def range_axis_rotation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -174,64 +184,73 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - val = val == "true" - return val # type: ignore + return (val == true) @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min Set lower extent of horizontal axis - """ + """ val = self._get_property("X-axis Min") - return val # type: ignore + return float(val) @x_axis_min.setter - def x_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) + def x_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max Set upper extent of horizontal axis - """ + """ val = self._get_property("X-axis Max") - return val # type: ignore + return float(val) @x_axis_max.setter - def x_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) + def x_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min Set lower extent of vertical axis - """ + """ val = self._get_property("Y-axis Min") - return val # type: ignore + return float(val) @y_axis_min.setter - def y_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) + def y_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max Set upper extent of vertical axis - """ + """ val = self._get_property("Y-axis Max") - return val # type: ignore + return float(val) @y_axis_max.setter - def y_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) + def y_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -242,11 +261,13 @@ def y_axis_range(self) -> float: Value should be greater than 0. """ val = self._get_property("Y-axis Range") - return val # type: ignore + return float(val) @y_axis_range.setter - def y_axis_range(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) + def y_axis_range(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -256,11 +277,13 @@ def max_major_ticks_x(self) -> int: Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks X") - return val # type: ignore + return int(val) @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -271,11 +294,13 @@ def max_minor_ticks_x(self) -> int: Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks X") - return val # type: ignore + return int(val) @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -285,11 +310,13 @@ def max_major_ticks_y(self) -> int: Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks Y") - return val # type: ignore + return int(val) @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -300,11 +327,13 @@ def max_minor_ticks_y(self) -> int: Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks Y") - return val # type: ignore + return int(val) @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -314,11 +343,13 @@ def axis_label_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Label Font") - return val # type: ignore + return val @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -328,35 +359,37 @@ def axis_tick_label_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Tick Label Font") - return val # type: ignore + return val @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style Select line style of major-tick grid lines - """ + """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val.upper()] - return val # type: ignore + return val @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Line Style={value.value}"]) @property def major_grid_color(self): @@ -366,35 +399,37 @@ def major_grid_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Major Grid Color") - return val # type: ignore + return val @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style Select line style of minor-tick grid lines - """ + """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val.upper()] - return val # type: ignore + return val @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Line Style={value.value}"]) @property def minor_grid_color(self): @@ -404,11 +439,13 @@ def minor_grid_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Minor Grid Color") - return val # type: ignore + return val @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -418,33 +455,35 @@ def background_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): - HERTZ = "hertz" # eslint-disable-line no-eval - KILOHERTZ = "kilohertz" # eslint-disable-line no-eval - MEGAHERTZ = "megahertz" # eslint-disable-line no-eval - GIGAHERTZ = "gigahertz" # eslint-disable-line no-eval + HERTZ = "hertz" # eslint-disable-line no-eval + KILOHERTZ = "kilohertz" # eslint-disable-line no-eval + MEGAHERTZ = "megahertz" # eslint-disable-line no-eval + GIGAHERTZ = "gigahertz" # eslint-disable-line no-eval @property def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit Units to use for plotting broadband power densities - """ + """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val.upper()] - return val # type: ignore + return val @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power for Plots Unit={value.value}"]) @property def bb_power_bandwidth(self) -> float: @@ -455,12 +494,14 @@ def bb_power_bandwidth(self) -> float: """ val = self._get_property("BB Power Bandwidth") val = self._convert_from_internal_units(float(val), "") - return val # type: ignore + return float(val) @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value: float | str): + def bb_power_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -470,9 +511,11 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - val = val == "true" - return val # type: ignore + return (val == true) @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Log Scale={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py similarity index 65% rename from src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py rename to src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py index d10ce238ab1..d85c1c58f76 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class PowerDivider(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -53,11 +49,13 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -67,29 +65,33 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - P3_DB = "P3 dB" # eslint-disable-line no-eval - RESISTIVE = "Resistive" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + P3_DB = "P3 dB" # eslint-disable-line no-eval + RESISTIVE = "Resistive" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -97,32 +99,36 @@ def type(self) -> TypeOption: Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class OrientationOption(Enum): - DIVIDER = "Divider" # eslint-disable-line no-eval - COMBINER = "Combiner" # eslint-disable-line no-eval + DIVIDER = "Divider" # eslint-disable-line no-eval + COMBINER = "Combiner" # eslint-disable-line no-eval @property def orientation(self) -> OrientationOption: """Orientation Defines the orientation of the Power Divider. - """ + """ val = self._get_property("Orientation") val = self.OrientationOption[val.upper()] - return val # type: ignore + return val @orientation.setter def orientation(self, value: OrientationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value.value}"]) @property def insertion_loss_above_ideal(self) -> float: @@ -133,13 +139,13 @@ def insertion_loss_above_ideal(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss Above Ideal") - return val # type: ignore + return float(val) @insertion_loss_above_ideal.setter - def insertion_loss_above_ideal(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Insertion Loss Above Ideal={value}"] - ) + def insertion_loss_above_ideal(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss Above Ideal={value}"]) @property def finite_isolation(self) -> bool: @@ -150,12 +156,13 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - val = val == "true" - return val # type: ignore + return (val == true) @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -165,11 +172,13 @@ def isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return float(val) @isolation.setter - def isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) + def isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -180,12 +189,13 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - val = val == "true" - return val # type: ignore + return (val == true) @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -195,11 +205,13 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -210,12 +222,14 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -226,12 +240,14 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -242,12 +258,14 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -258,18 +276,21 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py similarity index 60% rename from src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py index 4cf653efb6c..54e6137b879 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/PowerTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class PowerTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -51,22 +47,24 @@ def delete(self): self._delete() class DirectionOption(Enum): - AWAY_FROM_TX = "Away From Tx" # eslint-disable-line no-eval - TOWARD_TX = "Toward Tx" # eslint-disable-line no-eval + AWAY_FROM_TX = "Away From Tx" # eslint-disable-line no-eval + TOWARD_TX = "Toward Tx" # eslint-disable-line no-eval @property def direction(self) -> DirectionOption: """Direction Direction of power flow (towards or away from the transmitter) to plot - """ + """ val = self._get_property("Direction") val = self.DirectionOption[val.upper()] - return val # type: ignore + return val @direction.setter def direction(self, value: DirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Direction={value.value}"]) @property def data_source(self): @@ -74,13 +72,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -90,12 +90,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = val == "true" - return val # type: ignore + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -105,47 +106,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = val == "true" - return val # type: ignore + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -155,11 +161,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return int(val) @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -169,42 +177,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -214,11 +226,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return int(val) @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -228,11 +242,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -242,11 +258,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return int(val) @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -257,9 +275,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = val == "true" - return val # type: ignore + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py similarity index 60% rename from src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py index 784517d5880..04dfc0c04e3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ProfileTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ProfileTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -56,13 +52,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -72,12 +70,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = val == "true" - return val # type: ignore + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -87,47 +86,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = val == "true" - return val # type: ignore + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -137,11 +141,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return int(val) @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -151,42 +157,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -196,11 +206,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return int(val) @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -210,11 +222,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -224,11 +238,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return int(val) @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -239,9 +255,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = val == "true" - return val # type: ignore + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py similarity index 65% rename from src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py index 83867d33be1..bad62c17a29 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/LogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py @@ -1,34 +1,30 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode -from ..EmitNode import EmitNode - - -class LogDistanceCouplingNode(EmitNode): +class PropagationLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False EmitNode.__init__(self, emit_obj, result_id, node_id) @@ -58,38 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -99,12 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = val == "true" - return val # type: ignore + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -114,62 +116,28 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = val == "true" - return val # type: ignore + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) - - class EnvironmentOption(Enum): - FREE_SPACE = "Free Space" # eslint-disable-line no-eval - URBAN = "Urban" # eslint-disable-line no-eval - SHADOWED_URBAN = "Shadowed Urban" # eslint-disable-line no-eval - BUILDING_LINE_OF_SIGHT = "Building Line of Sight" # eslint-disable-line no-eval - BUILDING_OBSTRUCTED = "Building Obstructed" # eslint-disable-line no-eval - FACTORY_OBSTRUCTED = "Factory Obstructed" # eslint-disable-line no-eval - CUSTOM = "Custom" # eslint-disable-line no-eval - - @property - def environment(self) -> EnvironmentOption: - """Environment - Specify the environment type for the Log Distance model - - """ - val = self._get_property("Environment") - val = self.EnvironmentOption[val.upper()] - return val # type: ignore - - @environment.setter - def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) - - @property - def path_loss_exponent(self) -> float: - """Path Loss Exponent - Path Loss Exponent - - Value should be between 0 and 100. - """ - val = self._get_property("Path Loss Exponent") - return val # type: ignore - - @path_loss_exponent.setter - def path_loss_exponent(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Exponent={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def custom_fading_margin(self) -> float: @@ -180,11 +148,13 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -195,11 +165,13 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -210,31 +182,35 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -245,11 +221,13 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -259,11 +237,13 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -273,12 +253,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = val == "true" - return val # type: ignore + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -289,11 +270,13 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -303,11 +286,13 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -318,11 +303,13 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -333,14 +320,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = val == "true" - return val # type: ignore + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -350,11 +336,13 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -364,11 +352,13 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -378,10 +368,11 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py similarity index 75% rename from src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py index fb695e72234..12cc5aa7711 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class RadioNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -54,11 +51,11 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Name: - "Type: - """ + "Name: + "Type: + """ return self._get_table_data() @table_data.setter @@ -70,10 +67,13 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py similarity index 80% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py index dff9ea14eb7..44a4bffc3e3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAmplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyAmplifier(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val @property def noise_temperature(self) -> float: @@ -51,30 +47,30 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return float(val) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val class AmplifierTypeOption(Enum): - TRANSMIT_AMPLIFIER = "Transmit Amplifier" # eslint-disable-line no-eval - RECEIVE_AMPLIFIER = "Receive Amplifier" # eslint-disable-line no-eval + TRANSMIT_AMPLIFIER = "Transmit Amplifier" # eslint-disable-line no-eval + RECEIVE_AMPLIFIER = "Receive Amplifier" # eslint-disable-line no-eval @property def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type Configures the amplifier as a Tx or Rx amplifier - """ + """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val.upper()] - return val # type: ignore + return val @property def gain(self) -> float: @@ -84,7 +80,7 @@ def gain(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Gain") - return val # type: ignore + return float(val) @property def center_frequency(self) -> float: @@ -95,7 +91,7 @@ def center_frequency(self) -> float: """ val = self._get_property("Center Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def bandwidth(self) -> float: @@ -106,7 +102,7 @@ def bandwidth(self) -> float: """ val = self._get_property("Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def noise_figure(self) -> float: @@ -116,7 +112,7 @@ def noise_figure(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Noise Figure") - return val # type: ignore + return float(val) @property def saturation_level(self) -> float: @@ -127,7 +123,7 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @property def p1_db_point_ref_input(self) -> float: @@ -138,7 +134,7 @@ def p1_db_point_ref_input(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @property def ip3_ref_input(self) -> float: @@ -149,7 +145,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @property def shape_factor(self) -> float: @@ -159,7 +155,7 @@ def shape_factor(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return float(val) @property def reverse_isolation(self) -> float: @@ -169,7 +165,7 @@ def reverse_isolation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return float(val) @property def max_intermod_order(self) -> int: @@ -179,4 +175,5 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return int(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py similarity index 80% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py index 57b360316ba..b0f8bb1005a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyAntennaNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -43,9 +39,9 @@ def tags(self) -> str: """Tags Space delimited list of tags for coupling selections - """ + """ val = self._get_property("Tags") - return val # type: ignore + return val @property def show_relative_coordinates(self) -> bool: @@ -56,8 +52,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - val = val == "true" - return val # type: ignore + return (val == true) @property def position(self): @@ -67,7 +62,7 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val @property def relative_position(self): @@ -77,21 +72,21 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] - return val # type: ignore + return val @property def orientation(self): @@ -101,7 +96,7 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val @property def relative_orientation(self): @@ -111,7 +106,7 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val @property def position_defined(self) -> bool: @@ -121,8 +116,7 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - val = val == "true" - return val # type: ignore + return (val == true) @property def antenna_temperature(self) -> float: @@ -132,16 +126,16 @@ def antenna_temperature(self) -> float: Value should be between 0 and 100000. """ val = self._get_property("Antenna Temperature") - return val # type: ignore + return float(val) @property def type(self): """Type Defines the type of antenna - """ + """ val = self._get_property("Type") - return val # type: ignore + return val @property def antenna_file(self) -> str: @@ -149,7 +143,7 @@ def antenna_file(self) -> str: Value should be a full file path. """ val = self._get_property("Antenna File") - return val # type: ignore + return val @property def project_name(self) -> str: @@ -159,7 +153,7 @@ def project_name(self) -> str: Value should be a full file path. """ val = self._get_property("Project Name") - return val # type: ignore + return val @property def peak_gain(self) -> float: @@ -169,22 +163,22 @@ def peak_gain(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Peak Gain") - return val # type: ignore + return float(val) class BoresightOption(Enum): - XAXIS = "+X Axis" # eslint-disable-line no-eval - YAXIS = "+Y Axis" # eslint-disable-line no-eval - ZAXIS = "+Z Axis" # eslint-disable-line no-eval + XAXIS = "+X Axis" # eslint-disable-line no-eval + YAXIS = "+Y Axis" # eslint-disable-line no-eval + ZAXIS = "+Z Axis" # eslint-disable-line no-eval @property def boresight(self) -> BoresightOption: """Boresight Select peak beam direction in local coordinates - """ + """ val = self._get_property("Boresight") val = self.BoresightOption[val.upper()] - return val # type: ignore + return val @property def vertical_beamwidth(self) -> float: @@ -194,7 +188,7 @@ def vertical_beamwidth(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("Vertical Beamwidth") - return val # type: ignore + return float(val) @property def horizontal_beamwidth(self) -> float: @@ -204,7 +198,7 @@ def horizontal_beamwidth(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("Horizontal Beamwidth") - return val # type: ignore + return float(val) @property def extra_sidelobe(self) -> bool: @@ -214,8 +208,7 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - val = val == "true" - return val # type: ignore + return (val == true) @property def first_sidelobe_level(self) -> float: @@ -226,7 +219,7 @@ def first_sidelobe_level(self) -> float: Value should be between 0 and 200. """ val = self._get_property("First Sidelobe Level") - return val # type: ignore + return float(val) @property def first_sidelobe_vert_bw(self) -> float: @@ -236,7 +229,7 @@ def first_sidelobe_vert_bw(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Vert. BW") - return val # type: ignore + return float(val) @property def first_sidelobe_hor_bw(self) -> float: @@ -246,7 +239,7 @@ def first_sidelobe_hor_bw(self) -> float: Value should be between 0.1 and 360. """ val = self._get_property("First Sidelobe Hor. BW") - return val # type: ignore + return float(val) @property def outerbacklobe_level(self) -> float: @@ -256,7 +249,7 @@ def outerbacklobe_level(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Outer/Backlobe Level") - return val # type: ignore + return float(val) @property def resonant_frequency(self) -> float: @@ -268,7 +261,7 @@ def resonant_frequency(self) -> float: """ val = self._get_property("Resonant Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def slot_length(self) -> float: @@ -279,7 +272,7 @@ def slot_length(self) -> float: """ val = self._get_property("Slot Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def mouth_width(self) -> float: @@ -290,7 +283,7 @@ def mouth_width(self) -> float: """ val = self._get_property("Mouth Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def mouth_height(self) -> float: @@ -301,7 +294,7 @@ def mouth_height(self) -> float: """ val = self._get_property("Mouth Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def waveguide_width(self) -> float: @@ -313,7 +306,7 @@ def waveguide_width(self) -> float: """ val = self._get_property("Waveguide Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def width_flare_half_angle(self) -> float: @@ -324,7 +317,7 @@ def width_flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Width Flare Half-angle") - return val # type: ignore + return float(val) @property def height_flare_half_angle(self) -> float: @@ -335,7 +328,7 @@ def height_flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Height Flare Half-angle") - return val # type: ignore + return float(val) @property def mouth_diameter(self) -> float: @@ -346,7 +339,7 @@ def mouth_diameter(self) -> float: """ val = self._get_property("Mouth Diameter") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def flare_half_angle(self) -> float: @@ -357,7 +350,7 @@ def flare_half_angle(self) -> float: Value should be between 1 and 89.9. """ val = self._get_property("Flare Half-angle") - return val # type: ignore + return float(val) @property def vswr(self) -> float: @@ -368,51 +361,51 @@ def vswr(self) -> float: Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return float(val) class AntennaPolarizationOption(Enum): - VERTICAL = "Vertical" # eslint-disable-line no-eval - HORIZONTAL = "Horizontal" # eslint-disable-line no-eval - RHCP = "RHCP" # eslint-disable-line no-eval - LHCP = "LHCP" # eslint-disable-line no-eval + VERTICAL = "Vertical" # eslint-disable-line no-eval + HORIZONTAL = "Horizontal" # eslint-disable-line no-eval + RHCP = "RHCP" # eslint-disable-line no-eval + LHCP = "LHCP" # eslint-disable-line no-eval @property def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val.upper()] - return val # type: ignore + return val class CrossDipoleModeOption(Enum): - FREESTANDING = "Freestanding" # eslint-disable-line no-eval - OVER_GROUND_PLANE = "Over Ground Plane" # eslint-disable-line no-eval + FREESTANDING = "Freestanding" # eslint-disable-line no-eval + OVER_GROUND_PLANE = "Over Ground Plane" # eslint-disable-line no-eval @property def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode Choose the Cross Dipole type - """ + """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val.upper()] - return val # type: ignore + return val class CrossDipolePolarizationOption(Enum): - RHCP = "RHCP" # eslint-disable-line no-eval - LHCP = "LHCP" # eslint-disable-line no-eval + RHCP = "RHCP" # eslint-disable-line no-eval + LHCP = "LHCP" # eslint-disable-line no-eval @property def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val.upper()] - return val # type: ignore + return val @property def override_height(self) -> bool: @@ -423,8 +416,7 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - val = val == "true" - return val # type: ignore + return (val == true) @property def offset_height(self) -> float: @@ -435,7 +427,7 @@ def offset_height(self) -> float: """ val = self._get_property("Offset Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def auto_height_offset(self) -> bool: @@ -446,8 +438,7 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - val = val == "true" - return val # type: ignore + return (val == true) @property def conform__adjust_antenna(self) -> bool: @@ -457,8 +448,7 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - val = val == "true" - return val # type: ignore + return (val == true) @property def element_offset(self): @@ -468,37 +458,37 @@ def element_offset(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Element Offset") - return val # type: ignore + return val class ConformtoPlatformOption(Enum): - NONE = "None" # eslint-disable-line no-eval - ALONG_NORMAL = "Along Normal" # eslint-disable-line no-eval - PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + ALONG_NORMAL = "Along Normal" # eslint-disable-line no-eval + PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" # eslint-disable-line no-eval @property def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform Select method of automated conforming applied after Element Offset - """ + """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val.upper()] - return val # type: ignore + return val class ReferencePlaneOption(Enum): - XY_PLANE = "XY Plane" # eslint-disable-line no-eval - YZ_PLANE = "YZ Plane" # eslint-disable-line no-eval - ZX_PLANE = "ZX Plane" # eslint-disable-line no-eval + XY_PLANE = "XY Plane" # eslint-disable-line no-eval + YZ_PLANE = "YZ Plane" # eslint-disable-line no-eval + ZX_PLANE = "ZX Plane" # eslint-disable-line no-eval @property def reference_plane(self) -> ReferencePlaneOption: """Reference Plane Select reference plane for determining original element heights - """ + """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val.upper()] - return val # type: ignore + return val @property def conform_element_orientation(self) -> bool: @@ -509,8 +499,7 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - val = val == "true" - return val # type: ignore + return (val == true) @property def show_axes(self) -> bool: @@ -520,8 +509,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - val = val == "true" - return val # type: ignore + return (val == true) @property def show_icon(self) -> bool: @@ -531,8 +519,7 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - val = val == "true" - return val # type: ignore + return (val == true) @property def size(self) -> float: @@ -542,7 +529,7 @@ def size(self) -> float: Value should be between 0.001 and 1. """ val = self._get_property("Size") - return val # type: ignore + return float(val) @property def color(self): @@ -552,25 +539,25 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val @property def el_sample_interval(self) -> float: """El Sample Interval Space between elevation-angle samples of pattern - """ + """ val = self._get_property("El Sample Interval") - return val # type: ignore + return float(val) @property def az_sample_interval(self) -> float: """Az Sample Interval Space between azimuth-angle samples of pattern - """ + """ val = self._get_property("Az Sample Interval") - return val # type: ignore + return float(val) @property def has_frequency_domain(self) -> bool: @@ -580,35 +567,34 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - val = val == "true" - return val # type: ignore + return (val == true) @property def frequency_domain(self): """Frequency Domain Frequency sample(s) defining antenna - """ + """ val = self._get_property("Frequency Domain") - return val # type: ignore + return val @property def number_of_electric_sources(self) -> int: """Number of Electric Sources Number of freestanding electric current sources defining antenna - """ + """ val = self._get_property("Number of Electric Sources") - return val # type: ignore + return int(val) @property def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources Number of freestanding magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Magnetic Sources") - return val # type: ignore + return int(val) @property def number_of_imaged_electric_sources(self) -> int: @@ -616,9 +602,9 @@ def number_of_imaged_electric_sources(self) -> int: Number of imaged, half-space radiating electric current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Electric Sources") - return val # type: ignore + return int(val) @property def number_of_imaged_magnetic_sources(self) -> int: @@ -626,9 +612,9 @@ def number_of_imaged_magnetic_sources(self) -> int: Number of imaged, half-space radiating magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Magnetic Sources") - return val # type: ignore + return int(val) @property def waveguide_height(self) -> float: @@ -636,35 +622,35 @@ def waveguide_height(self) -> float: Implied waveguide height (along local x-axis) where the flared horn walls meet the feed - """ + """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency Implied lowest operating frequency of pyramidal horn antenna - """ + """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency Implied lowest operating frequency of conical horn antenna - """ + """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) class SWEModeTruncationOption(Enum): - DYNAMIC = "Dynamic" # eslint-disable-line no-eval - FIXED_CUSTOM = "Fixed (Custom)" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + DYNAMIC = "Dynamic" # eslint-disable-line no-eval + FIXED_CUSTOM = "Fixed (Custom)" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def swe_mode_truncation(self) -> SWEModeTruncationOption: @@ -672,10 +658,10 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: Select the method for stability-enhancing truncation of spherical wave expansion terms - """ + """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val.upper()] - return val # type: ignore + return val @property def max_n_index(self) -> int: @@ -685,16 +671,16 @@ def max_n_index(self) -> int: Value should be greater than 1. """ val = self._get_property("Max N Index") - return val # type: ignore + return int(val) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val @property def show_composite_passband(self) -> bool: @@ -704,8 +690,7 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - val = val == "true" - return val # type: ignore + return (val == true) @property def use_phase_center(self) -> bool: @@ -715,17 +700,16 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - val = val == "true" - return val # type: ignore + return (val == true) @property def coordinate_systems(self) -> str: """Coordinate Systems Specifies the coordinate system for the phase center of this antenna - """ + """ val = self._get_property("Coordinate Systems") - return val # type: ignore + return val @property def phasecenterposition(self): @@ -735,7 +719,7 @@ def phasecenterposition(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("PhaseCenterPosition") - return val # type: ignore + return val @property def phasecenterorientation(self): @@ -745,4 +729,5 @@ def phasecenterorientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("PhaseCenterOrientation") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py similarity index 81% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py index 46fd8e6c5fa..cf8b02d8aec 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyAntennaPassband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyAntennaPassband(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -44,7 +41,7 @@ def passband_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Passband Loss") - return val # type: ignore + return float(val) @property def out_of_band_attenuation(self) -> float: @@ -54,7 +51,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out of Band Attenuation") - return val # type: ignore + return float(val) @property def lower_stop_band(self) -> float: @@ -65,7 +62,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def lower_cutoff(self) -> float: @@ -76,7 +73,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def higher_cutoff(self) -> float: @@ -87,7 +84,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def higher_stop_band(self) -> float: @@ -98,13 +95,14 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py similarity index 74% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py index c30a1a78306..23ea442dbc5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -43,9 +39,9 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") - return val # type: ignore + return val @property def use_dd_1494_mode(self) -> bool: @@ -55,8 +51,7 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - val = val == "true" - return val # type: ignore + return (val == true) @property def use_emission_designator(self) -> bool: @@ -66,36 +61,35 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - val = val == "true" - return val # type: ignore + return (val == true) @property def emission_designator(self) -> str: """Emission Designator Enter the Emission Designator to define the bandwidth and modulation - """ + """ val = self._get_property("Emission Designator") - return val # type: ignore + return val @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW Channel Bandwidth based off the emission designator - """ + """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def emit_modulation_type(self) -> str: """EMIT Modulation Type Modulation based off the emission designator - """ + """ val = self._get_property("EMIT Modulation Type") - return val # type: ignore + return val @property def override_emission_designator_bw(self) -> bool: @@ -106,8 +100,7 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - val = val == "true" - return val # type: ignore + return (val == true) @property def channel_bandwidth(self) -> float: @@ -118,30 +111,30 @@ def channel_bandwidth(self) -> float: """ val = self._get_property("Channel Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) class ModulationOption(Enum): - GENERIC = "Generic" # eslint-disable-line no-eval - AM = "AM" # eslint-disable-line no-eval - LSB = "LSB" # eslint-disable-line no-eval - USB = "USB" # eslint-disable-line no-eval - FM = "FM" # eslint-disable-line no-eval - FSK = "FSK" # eslint-disable-line no-eval - MSK = "MSK" # eslint-disable-line no-eval - PSK = "PSK" # eslint-disable-line no-eval - QAM = "QAM" # eslint-disable-line no-eval - APSK = "APSK" # eslint-disable-line no-eval - RADAR = "Radar" # eslint-disable-line no-eval + GENERIC = "Generic" # eslint-disable-line no-eval + AM = "AM" # eslint-disable-line no-eval + LSB = "LSB" # eslint-disable-line no-eval + USB = "USB" # eslint-disable-line no-eval + FM = "FM" # eslint-disable-line no-eval + FSK = "FSK" # eslint-disable-line no-eval + MSK = "MSK" # eslint-disable-line no-eval + PSK = "PSK" # eslint-disable-line no-eval + QAM = "QAM" # eslint-disable-line no-eval + APSK = "APSK" # eslint-disable-line no-eval + RADAR = "Radar" # eslint-disable-line no-eval @property def modulation(self) -> ModulationOption: """Modulation Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Modulation") val = self.ModulationOption[val.upper()] - return val # type: ignore + return val @property def max_modulating_freq(self) -> float: @@ -152,7 +145,7 @@ def max_modulating_freq(self) -> float: """ val = self._get_property("Max Modulating Freq.") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def modulation_index(self) -> float: @@ -162,7 +155,7 @@ def modulation_index(self) -> float: Value should be between 0.01 and 1. """ val = self._get_property("Modulation Index") - return val # type: ignore + return float(val) @property def freq_deviation(self) -> float: @@ -173,7 +166,7 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def bit_rate(self) -> float: @@ -184,7 +177,7 @@ def bit_rate(self) -> float: """ val = self._get_property("Bit Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return float(val) @property def sidelobes(self) -> int: @@ -194,85 +187,85 @@ def sidelobes(self) -> int: Value should be greater than 0. """ val = self._get_property("Sidelobes") - return val # type: ignore + return int(val) @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation FSK frequency deviation: helps determine spectral profile Value should be greater than 1. """ val = self._get_property("Freq. Deviation ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) class PSKTypeOption(Enum): - BPSK = "BPSK" # eslint-disable-line no-eval - QPSK = "QPSK" # eslint-disable-line no-eval - PSK_8 = "PSK-8" # eslint-disable-line no-eval - PSK_16 = "PSK-16" # eslint-disable-line no-eval - PSK_32 = "PSK-32" # eslint-disable-line no-eval - PSK_64 = "PSK-64" # eslint-disable-line no-eval + BPSK = "BPSK" # eslint-disable-line no-eval + QPSK = "QPSK" # eslint-disable-line no-eval + PSK_8 = "PSK-8" # eslint-disable-line no-eval + PSK_16 = "PSK-16" # eslint-disable-line no-eval + PSK_32 = "PSK-32" # eslint-disable-line no-eval + PSK_64 = "PSK-64" # eslint-disable-line no-eval @property def psk_type(self) -> PSKTypeOption: """PSK Type PSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val.upper()] - return val # type: ignore + return val class FSKTypeOption(Enum): - FSK_2 = "FSK-2" # eslint-disable-line no-eval - FSK_4 = "FSK-4" # eslint-disable-line no-eval - FSK_8 = "FSK-8" # eslint-disable-line no-eval + FSK_2 = "FSK-2" # eslint-disable-line no-eval + FSK_4 = "FSK-4" # eslint-disable-line no-eval + FSK_8 = "FSK-8" # eslint-disable-line no-eval @property def fsk_type(self) -> FSKTypeOption: """FSK Type FSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val.upper()] - return val # type: ignore + return val class QAMTypeOption(Enum): - QAM_4 = "QAM-4" # eslint-disable-line no-eval - QAM_16 = "QAM-16" # eslint-disable-line no-eval - QAM_64 = "QAM-64" # eslint-disable-line no-eval - QAM_256 = "QAM-256" # eslint-disable-line no-eval - QAM_1024 = "QAM-1024" # eslint-disable-line no-eval + QAM_4 = "QAM-4" # eslint-disable-line no-eval + QAM_16 = "QAM-16" # eslint-disable-line no-eval + QAM_64 = "QAM-64" # eslint-disable-line no-eval + QAM_256 = "QAM-256" # eslint-disable-line no-eval + QAM_1024 = "QAM-1024" # eslint-disable-line no-eval @property def qam_type(self) -> QAMTypeOption: """QAM Type QAM modulation order: helps determine spectral profile - """ + """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val.upper()] - return val # type: ignore + return val class APSKTypeOption(Enum): - APSK_4 = "APSK-4" # eslint-disable-line no-eval - APSK_16 = "APSK-16" # eslint-disable-line no-eval - APSK_64 = "APSK-64" # eslint-disable-line no-eval - APSK_256 = "APSK-256" # eslint-disable-line no-eval - APSK_1024 = "APSK-1024" # eslint-disable-line no-eval + APSK_4 = "APSK-4" # eslint-disable-line no-eval + APSK_16 = "APSK-16" # eslint-disable-line no-eval + APSK_64 = "APSK-64" # eslint-disable-line no-eval + APSK_256 = "APSK-256" # eslint-disable-line no-eval + APSK_1024 = "APSK-1024" # eslint-disable-line no-eval @property def apsk_type(self) -> APSKTypeOption: """APSK Type APSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val.upper()] - return val # type: ignore + return val @property def start_frequency(self) -> float: @@ -283,7 +276,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def stop_frequency(self) -> float: @@ -294,7 +287,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def channel_spacing(self) -> float: @@ -305,7 +298,7 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def tx_offset(self) -> float: @@ -316,24 +309,24 @@ def tx_offset(self) -> float: """ val = self._get_property("Tx Offset") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) class RadarTypeOption(Enum): - CW = "CW" # eslint-disable-line no-eval - FM_CW = "FM-CW" # eslint-disable-line no-eval - FM_PULSE = "FM Pulse" # eslint-disable-line no-eval - NON_FM_PULSE = "Non-FM Pulse" # eslint-disable-line no-eval - PHASE_CODED = "Phase Coded" # eslint-disable-line no-eval + CW = "CW" # eslint-disable-line no-eval + FM_CW = "FM-CW" # eslint-disable-line no-eval + FM_PULSE = "FM Pulse" # eslint-disable-line no-eval + NON_FM_PULSE = "Non-FM Pulse" # eslint-disable-line no-eval + PHASE_CODED = "Phase Coded" # eslint-disable-line no-eval @property def radar_type(self) -> RadarTypeOption: """Radar Type Radar type: helps determine spectral profile - """ + """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val.upper()] - return val # type: ignore + return val @property def hopping_radar(self) -> bool: @@ -343,8 +336,7 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - val = val == "true" - return val # type: ignore + return (val == true) @property def post_october_2020_procurement(self) -> bool: @@ -355,8 +347,7 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - val = val == "true" - return val # type: ignore + return (val == true) @property def hop_range_min_freq(self) -> float: @@ -367,7 +358,7 @@ def hop_range_min_freq(self) -> float: """ val = self._get_property("Hop Range Min Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def hop_range_max_freq(self) -> float: @@ -378,7 +369,7 @@ def hop_range_max_freq(self) -> float: """ val = self._get_property("Hop Range Max Freq") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def pulse_duration(self) -> float: @@ -389,7 +380,7 @@ def pulse_duration(self) -> float: """ val = self._get_property("Pulse Duration") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return float(val) @property def pulse_rise_time(self) -> float: @@ -400,7 +391,7 @@ def pulse_rise_time(self) -> float: """ val = self._get_property("Pulse Rise Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return float(val) @property def pulse_fall_time(self) -> float: @@ -411,7 +402,7 @@ def pulse_fall_time(self) -> float: """ val = self._get_property("Pulse Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return float(val) @property def pulse_repetition_rate(self) -> float: @@ -421,7 +412,7 @@ def pulse_repetition_rate(self) -> float: Value should be greater than 1. """ val = self._get_property("Pulse Repetition Rate") - return val # type: ignore + return float(val) @property def number_of_chips(self) -> float: @@ -431,7 +422,7 @@ def number_of_chips(self) -> float: Value should be greater than 1. """ val = self._get_property("Number of Chips") - return val # type: ignore + return float(val) @property def pulse_compression_ratio(self) -> float: @@ -441,7 +432,7 @@ def pulse_compression_ratio(self) -> float: Value should be greater than 1. """ val = self._get_property("Pulse Compression Ratio") - return val # type: ignore + return float(val) @property def fm_chirp_period(self) -> float: @@ -452,7 +443,7 @@ def fm_chirp_period(self) -> float: """ val = self._get_property("FM Chirp Period") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return float(val) @property def fm_freq_deviation(self) -> float: @@ -463,7 +454,7 @@ def fm_freq_deviation(self) -> float: """ val = self._get_property("FM Freq Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def fm_freq_dev_bandwidth(self) -> float: @@ -475,4 +466,5 @@ def fm_freq_dev_bandwidth(self) -> float: """ val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py similarity index 72% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py index 35d30623195..88c4224e281 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyBandFolder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyBandFolder(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -35,3 +32,4 @@ def __init__(self, emit_obj, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py similarity index 77% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py index b985801c87c..50e82769205 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyCable(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val @property def noise_temperature(self) -> float: @@ -51,21 +47,21 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return float(val) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - CONSTANT_LOSS = "Constant Loss" # eslint-disable-line no-eval - COAXIAL_CABLE = "Coaxial Cable" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + CONSTANT_LOSS = "Constant Loss" # eslint-disable-line no-eval + COAXIAL_CABLE = "Coaxial Cable" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -73,10 +69,10 @@ def type(self) -> TypeOption: Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val @property def length(self) -> float: @@ -87,7 +83,7 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def loss_per_length(self) -> float: @@ -97,7 +93,7 @@ def loss_per_length(self) -> float: Value should be between 0 and 20. """ val = self._get_property("Loss Per Length") - return val # type: ignore + return float(val) @property def measurement_length(self) -> float: @@ -108,7 +104,7 @@ def measurement_length(self) -> float: """ val = self._get_property("Measurement Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def resistive_loss_constant(self) -> float: @@ -118,7 +114,7 @@ def resistive_loss_constant(self) -> float: Value should be between 0 and 2. """ val = self._get_property("Resistive Loss Constant") - return val # type: ignore + return float(val) @property def dielectric_loss_constant(self) -> float: @@ -128,13 +124,14 @@ def dielectric_loss_constant(self) -> float: Value should be between 0 and 1. """ val = self._get_property("Dielectric Loss Constant") - return val # type: ignore + return float(val) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py similarity index 77% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py index 491c35d6ae9..3e5ad55b02f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCADNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyCADNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -46,33 +42,33 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val class ModelTypeOption(Enum): - PLATE = "Plate" # eslint-disable-line no-eval - BOX = "Box" # eslint-disable-line no-eval - DIHEDRAL = "Dihedral" # eslint-disable-line no-eval - TRIHEDRAL = "Trihedral" # eslint-disable-line no-eval - CYLINDER = "Cylinder" # eslint-disable-line no-eval - TAPERED_CYLINDER = "Tapered Cylinder" # eslint-disable-line no-eval - CONE = "Cone" # eslint-disable-line no-eval - SPHERE = "Sphere" # eslint-disable-line no-eval - ELLIPSOID = "Ellipsoid" # eslint-disable-line no-eval - CIRCULAR_PLATE = "Circular Plate" # eslint-disable-line no-eval - PARABOLA = "Parabola" # eslint-disable-line no-eval - PRISM = "Prism" # eslint-disable-line no-eval - TAPERED_PRISM = "Tapered Prism" # eslint-disable-line no-eval - TOPHAT = "Tophat" # eslint-disable-line no-eval + PLATE = "Plate" # eslint-disable-line no-eval + BOX = "Box" # eslint-disable-line no-eval + DIHEDRAL = "Dihedral" # eslint-disable-line no-eval + TRIHEDRAL = "Trihedral" # eslint-disable-line no-eval + CYLINDER = "Cylinder" # eslint-disable-line no-eval + TAPERED_CYLINDER = "Tapered Cylinder" # eslint-disable-line no-eval + CONE = "Cone" # eslint-disable-line no-eval + SPHERE = "Sphere" # eslint-disable-line no-eval + ELLIPSOID = "Ellipsoid" # eslint-disable-line no-eval + CIRCULAR_PLATE = "Circular Plate" # eslint-disable-line no-eval + PARABOLA = "Parabola" # eslint-disable-line no-eval + PRISM = "Prism" # eslint-disable-line no-eval + TAPERED_PRISM = "Tapered Prism" # eslint-disable-line no-eval + TOPHAT = "Tophat" # eslint-disable-line no-eval @property def model_type(self) -> ModelTypeOption: """Model Type Select type of parametric model to create - """ + """ val = self._get_property("Model Type") val = self.ModelTypeOption[val.upper()] - return val # type: ignore + return val @property def length(self) -> float: @@ -83,7 +79,7 @@ def length(self) -> float: """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def width(self) -> float: @@ -94,7 +90,7 @@ def width(self) -> float: """ val = self._get_property("Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def height(self) -> float: @@ -105,7 +101,7 @@ def height(self) -> float: """ val = self._get_property("Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def angle(self) -> float: @@ -115,7 +111,7 @@ def angle(self) -> float: Value should be between 0 and 360. """ val = self._get_property("Angle") - return val # type: ignore + return float(val) @property def top_side(self) -> float: @@ -126,7 +122,7 @@ def top_side(self) -> float: """ val = self._get_property("Top Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def top_radius(self) -> float: @@ -137,7 +133,7 @@ def top_radius(self) -> float: """ val = self._get_property("Top Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def side(self) -> float: @@ -148,7 +144,7 @@ def side(self) -> float: """ val = self._get_property("Side") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def radius(self) -> float: @@ -159,7 +155,7 @@ def radius(self) -> float: """ val = self._get_property("Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def base_radius(self) -> float: @@ -170,7 +166,7 @@ def base_radius(self) -> float: """ val = self._get_property("Base Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def center_radius(self) -> float: @@ -181,7 +177,7 @@ def center_radius(self) -> float: """ val = self._get_property("Center Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def x_axis_ellipsoid_radius(self) -> float: @@ -192,7 +188,7 @@ def x_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("X Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def y_axis_ellipsoid_radius(self) -> float: @@ -203,7 +199,7 @@ def y_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Y Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def z_axis_ellipsoid_radius(self) -> float: @@ -214,7 +210,7 @@ def z_axis_ellipsoid_radius(self) -> float: """ val = self._get_property("Z Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def focal_length(self) -> float: @@ -225,17 +221,17 @@ def focal_length(self) -> float: """ val = self._get_property("Focal Length") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def offset(self) -> float: """Offset Offset of parabolic reflector - """ + """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def x_direction_taper(self) -> float: @@ -246,7 +242,7 @@ def x_direction_taper(self) -> float: Value should be greater than 0. """ val = self._get_property("X Direction Taper") - return val # type: ignore + return float(val) @property def y_direction_taper(self) -> float: @@ -257,7 +253,7 @@ def y_direction_taper(self) -> float: Value should be greater than 0. """ val = self._get_property("Y Direction Taper") - return val # type: ignore + return float(val) @property def prism_direction(self): @@ -267,7 +263,7 @@ def prism_direction(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Prism Direction") - return val # type: ignore + return val @property def closed_top(self) -> bool: @@ -277,8 +273,7 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - val = val == "true" - return val # type: ignore + return (val == true) @property def closed_base(self) -> bool: @@ -288,8 +283,7 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - val = val == "true" - return val # type: ignore + return (val == true) @property def mesh_density(self) -> int: @@ -300,7 +294,7 @@ def mesh_density(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Mesh Density") - return val # type: ignore + return int(val) @property def use_symmetric_mesh(self) -> bool: @@ -311,22 +305,21 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - val = val == "true" - return val # type: ignore + return (val == true) class MeshOptionOption(Enum): - IMPROVED = "Improved" # eslint-disable-line no-eval - LEGACY = "Legacy" # eslint-disable-line no-eval + IMPROVED = "Improved" # eslint-disable-line no-eval + LEGACY = "Legacy" # eslint-disable-line no-eval @property def mesh_option(self) -> MeshOptionOption: """Mesh Option Select from different meshing options - """ + """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val.upper()] - return val # type: ignore + return val @property def coating_index(self) -> int: @@ -336,7 +329,7 @@ def coating_index(self) -> int: Value should be between 0 and 100000. """ val = self._get_property("Coating Index") - return val # type: ignore + return int(val) @property def show_relative_coordinates(self) -> bool: @@ -347,8 +340,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - val = val == "true" - return val # type: ignore + return (val == true) @property def position(self): @@ -358,7 +350,7 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val @property def relative_position(self): @@ -368,21 +360,21 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] - return val # type: ignore + return val @property def orientation(self): @@ -392,7 +384,7 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val @property def relative_orientation(self): @@ -402,7 +394,7 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val @property def visible(self) -> bool: @@ -412,24 +404,23 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = val == "true" - return val # type: ignore + return (val == true) class RenderModeOption(Enum): - FLAT_SHADED = "Flat-Shaded" # eslint-disable-line no-eval - WIRE_FRAME = "Wire-Frame" # eslint-disable-line no-eval - HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" # eslint-disable-line no-eval - OUTLINE = "Outline" # eslint-disable-line no-eval + FLAT_SHADED = "Flat-Shaded" # eslint-disable-line no-eval + WIRE_FRAME = "Wire-Frame" # eslint-disable-line no-eval + HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" # eslint-disable-line no-eval + OUTLINE = "Outline" # eslint-disable-line no-eval @property def render_mode(self) -> RenderModeOption: """Render Mode Select drawing style for surfaces - """ + """ val = self._get_property("Render Mode") val = self.RenderModeOption[val.upper()] - return val # type: ignore + return val @property def show_axes(self) -> bool: @@ -439,8 +430,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - val = val == "true" - return val # type: ignore + return (val == true) @property def min(self): @@ -450,7 +440,7 @@ def min(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Min") - return val # type: ignore + return val @property def max(self): @@ -460,16 +450,16 @@ def max(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Max") - return val # type: ignore + return val @property def number_of_surfaces(self) -> int: """Number of Surfaces Number of surfaces in the model - """ + """ val = self._get_property("Number of Surfaces") - return val # type: ignore + return int(val) @property def color(self): @@ -479,13 +469,14 @@ def color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Color") - return val # type: ignore + return val @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py similarity index 79% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py index ef9e0ecb3c1..b903211d4fb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCirculator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyCirculator(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val @property def noise_temperature(self) -> float: @@ -51,20 +47,20 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return float(val) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -72,24 +68,24 @@ def type(self) -> TypeOption: Type of circulator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the circulator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] - return val # type: ignore + return val @property def insertion_loss(self) -> float: @@ -99,7 +95,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return float(val) @property def finite_reverse_isolation(self) -> bool: @@ -110,8 +106,7 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - val = val == "true" - return val # type: ignore + return (val == true) @property def reverse_isolation(self) -> float: @@ -121,7 +116,7 @@ def reverse_isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return float(val) @property def finite_bandwidth(self) -> bool: @@ -132,8 +127,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - val = val == "true" - return val # type: ignore + return (val == true) @property def out_of_band_attenuation(self) -> float: @@ -143,7 +137,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return float(val) @property def lower_stop_band(self) -> float: @@ -154,7 +148,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def lower_cutoff(self) -> float: @@ -165,7 +159,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def higher_cutoff(self) -> float: @@ -176,7 +170,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def higher_stop_band(self) -> float: @@ -187,13 +181,14 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py similarity index 74% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py index 2c28ec0c580..12ac821d777 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingLinkNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -44,8 +41,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) @property def ports(self): @@ -53,6 +49,7 @@ def ports(self): Maps each port in the link to an antenna in the project "A list of values." - """ + """ val = self._get_property("Ports") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py similarity index 77% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py index f769be755bd..1098e5f28d5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCouplingsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyCouplingsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -40,7 +37,7 @@ def minimum_allowed_coupling(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Minimum Allowed Coupling") - return val # type: ignore + return float(val) @property def global_default_coupling(self) -> float: @@ -50,13 +47,14 @@ def global_default_coupling(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Global Default Coupling") - return val # type: ignore + return float(val) @property def antenna_tags(self) -> str: """Antenna Tags All tags currently used by all antennas in the project - """ + """ val = self._get_property("Antenna Tags") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py similarity index 76% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py index 4722b5a217f..4d506ca453b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyCustomCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -38,11 +35,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Value (dB): + "Value (dB): Value should be between -1000 and 0. """ return self._get_table_data() @@ -55,26 +52,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val @property def enable_refinement(self) -> bool: @@ -84,8 +80,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = val == "true" - return val # type: ignore + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -95,14 +90,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = val == "true" - return val # type: ignore + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py similarity index 71% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py index b1d87fd3df1..0a80d61aae2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyEmitSceneNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -38,24 +34,24 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val class GroundPlaneNormalOption(Enum): - X_AXIS = "X Axis" # eslint-disable-line no-eval - Y_AXIS = "Y Axis" # eslint-disable-line no-eval - Z_AXIS = "Z Axis" # eslint-disable-line no-eval + X_AXIS = "X Axis" # eslint-disable-line no-eval + Y_AXIS = "Y Axis" # eslint-disable-line no-eval + Z_AXIS = "Z Axis" # eslint-disable-line no-eval @property def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal Specifies the axis of the normal to the ground plane - """ + """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val.upper()] - return val # type: ignore + return val @property def gp_position_along_normal(self) -> float: @@ -63,7 +59,8 @@ def gp_position_along_normal(self) -> float: Offset of ground plane in direction normal to the ground planes orientation - """ + """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py similarity index 79% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py index a2732be820c..e58028a757a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyErcegCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -46,26 +42,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val @property def enable_refinement(self) -> bool: @@ -75,8 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = val == "true" - return val # type: ignore + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -86,32 +80,31 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = val == "true" - return val # type: ignore + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val class TerrainCategoryOption(Enum): - TYPE_A = "Type A" # eslint-disable-line no-eval - TYPE_B = "Type B" # eslint-disable-line no-eval - TYPE_C = "Type C" # eslint-disable-line no-eval + TYPE_A = "Type A" # eslint-disable-line no-eval + TYPE_B = "Type B" # eslint-disable-line no-eval + TYPE_C = "Type C" # eslint-disable-line no-eval @property def terrain_category(self) -> TerrainCategoryOption: """Terrain Category Specify the terrain category type for the Erceg model - """ + """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val.upper()] - return val # type: ignore + return val @property def custom_fading_margin(self) -> float: @@ -122,7 +115,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return float(val) @property def polarization_mismatch(self) -> float: @@ -133,7 +126,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return float(val) @property def pointing_error_loss(self) -> float: @@ -144,23 +137,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return float(val) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val @property def fading_availability(self) -> float: @@ -171,7 +164,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return float(val) @property def std_deviation(self) -> float: @@ -181,7 +174,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return float(val) @property def include_rain_attenuation(self) -> bool: @@ -191,8 +184,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = val == "true" - return val # type: ignore + return (val == true) @property def rain_availability(self) -> float: @@ -203,7 +195,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return float(val) @property def rain_rate(self) -> float: @@ -213,7 +205,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return float(val) @property def polarization_tilt_angle(self) -> float: @@ -224,7 +216,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return float(val) @property def include_atmospheric_absorption(self) -> bool: @@ -235,8 +227,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = val == "true" - return val # type: ignore + return (val == true) @property def temperature(self) -> float: @@ -246,7 +237,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return float(val) @property def total_air_pressure(self) -> float: @@ -256,7 +247,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return float(val) @property def water_vapor_concentration(self) -> float: @@ -266,4 +257,5 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py similarity index 80% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py index 741388ad973..207919076ab 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFilter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyFilter(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val @property def noise_temperature(self) -> float: @@ -51,25 +47,25 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return float(val) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val class TypeOption(Enum): - BY_FILE = "By File" - LOW_PASS = "Low Pass" # nosec B105 - HIGH_PASS = "High Pass" # nosec B105 - BAND_PASS = "Band Pass" # nosec B105 - BAND_STOP = "Band Stop" - TUNABLE_BANDPASS = "Tunable Bandpass" - TUNABLE_BANDSTOP = "Tunable Bandstop" + BY_FILE = "By File" # eslint-disable-line no-eval + LOW_PASS = "Low Pass" # eslint-disable-line no-eval + HIGH_PASS = "High Pass" # eslint-disable-line no-eval + BAND_PASS = "Band Pass" # eslint-disable-line no-eval + BAND_STOP = "Band Stop" # eslint-disable-line no-eval + TUNABLE_BANDPASS = "Tunable Bandpass" # eslint-disable-line no-eval + TUNABLE_BANDSTOP = "Tunable Bandstop" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -77,10 +73,10 @@ def type(self) -> TypeOption: Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val @property def insertion_loss(self) -> float: @@ -90,7 +86,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return float(val) @property def stop_band_attenuation(self) -> float: @@ -100,7 +96,7 @@ def stop_band_attenuation(self) -> float: Value should be less than 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return float(val) @property def max_pass_band(self) -> float: @@ -111,7 +107,7 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def min_stop_band(self) -> float: @@ -122,7 +118,7 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def max_stop_band(self) -> float: @@ -133,7 +129,7 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def min_pass_band(self) -> float: @@ -144,7 +140,7 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def lower_stop_band(self) -> float: @@ -155,7 +151,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def lower_cutoff(self) -> float: @@ -166,7 +162,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def higher_cutoff(self) -> float: @@ -177,7 +173,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def higher_stop_band(self) -> float: @@ -188,73 +184,73 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff Lower cutoff frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lower Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band Lower stop band frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lower Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band Higher stop band frequency Value should be between 1 and 1e+11. """ val = self._get_property("Higher Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff Higher cutoff frequency Value should be between 1 and 1e+11. """ val = self._get_property("Higher Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency Lowest tuned frequency Value should be between 1 and 1e+11. """ val = self._get_property("Lowest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency Highest tuned frequency Value should be between 1 and 1e+11. """ val = self._get_property("Highest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def percent_bandwidth(self) -> float: @@ -264,7 +260,7 @@ def percent_bandwidth(self) -> float: Value should be between 0.001 and 100. """ val = self._get_property("Percent Bandwidth") - return val # type: ignore + return float(val) @property def shape_factor(self) -> float: @@ -274,13 +270,14 @@ def shape_factor(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Shape Factor") - return val # type: ignore + return float(val) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py similarity index 77% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py index e909c9cfb43..12a7e8ac69b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyFiveGChannelModel.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -46,26 +42,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val @property def enable_refinement(self) -> bool: @@ -75,8 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = val == "true" - return val # type: ignore + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -86,32 +80,31 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = val == "true" - return val # type: ignore + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val class EnvironmentOption(Enum): - URBAN_MICROCELL = "Urban Microcell" # eslint-disable-line no-eval - URBAN_MACROCELL = "Urban Macrocell" # eslint-disable-line no-eval - RURAL_MACROCELL = "Rural Macrocell" # eslint-disable-line no-eval + URBAN_MICROCELL = "Urban Microcell" # eslint-disable-line no-eval + URBAN_MACROCELL = "Urban Macrocell" # eslint-disable-line no-eval + RURAL_MACROCELL = "Rural Macrocell" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment for the 5G channel model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] - return val # type: ignore + return val @property def los(self) -> bool: @@ -121,8 +114,7 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - val = val == "true" - return val # type: ignore + return (val == true) @property def include_bpl(self) -> bool: @@ -132,22 +124,21 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - val = val == "true" - return val # type: ignore + return (val == true) class NYUBPLModelOption(Enum): - LOW_LOSS_MODEL = "Low-loss model" # eslint-disable-line no-eval - HIGH_LOSS_MODEL = "High-loss model" # eslint-disable-line no-eval + LOW_LOSS_MODEL = "Low-loss model" # eslint-disable-line no-eval + HIGH_LOSS_MODEL = "High-loss model" # eslint-disable-line no-eval @property def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model Specify the NYU Building Penetration Loss model - """ + """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val.upper()] - return val # type: ignore + return val @property def custom_fading_margin(self) -> float: @@ -158,7 +149,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return float(val) @property def polarization_mismatch(self) -> float: @@ -169,7 +160,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return float(val) @property def pointing_error_loss(self) -> float: @@ -180,23 +171,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return float(val) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val @property def fading_availability(self) -> float: @@ -207,7 +198,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return float(val) @property def std_deviation(self) -> float: @@ -217,7 +208,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return float(val) @property def include_rain_attenuation(self) -> bool: @@ -227,8 +218,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = val == "true" - return val # type: ignore + return (val == true) @property def rain_availability(self) -> float: @@ -239,7 +229,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return float(val) @property def rain_rate(self) -> float: @@ -249,7 +239,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return float(val) @property def polarization_tilt_angle(self) -> float: @@ -260,7 +250,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return float(val) @property def include_atmospheric_absorption(self) -> bool: @@ -271,8 +261,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = val == "true" - return val # type: ignore + return (val == true) @property def temperature(self) -> float: @@ -282,7 +271,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return float(val) @property def total_air_pressure(self) -> float: @@ -292,7 +281,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return float(val) @property def water_vapor_concentration(self) -> float: @@ -302,4 +291,5 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py similarity index 78% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py index 367d8897a4b..4af89abb740 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyHataCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -46,26 +42,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val @property def enable_refinement(self) -> bool: @@ -75,8 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = val == "true" - return val # type: ignore + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -86,33 +80,32 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = val == "true" - return val # type: ignore + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val class EnvironmentOption(Enum): - LARGE_CITY = "Large City" # eslint-disable-line no-eval - SMALLMEDIUM_CITY = "Small/Medium City" # eslint-disable-line no-eval - SUBURBAN = "Suburban" # eslint-disable-line no-eval - RURAL = "Rural" # eslint-disable-line no-eval + LARGE_CITY = "Large City" # eslint-disable-line no-eval + SMALLMEDIUM_CITY = "Small/Medium City" # eslint-disable-line no-eval + SUBURBAN = "Suburban" # eslint-disable-line no-eval + RURAL = "Rural" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Hata model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] - return val # type: ignore + return val @property def custom_fading_margin(self) -> float: @@ -123,7 +116,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return float(val) @property def polarization_mismatch(self) -> float: @@ -134,7 +127,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return float(val) @property def pointing_error_loss(self) -> float: @@ -145,23 +138,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return float(val) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val @property def fading_availability(self) -> float: @@ -172,7 +165,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return float(val) @property def std_deviation(self) -> float: @@ -182,7 +175,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return float(val) @property def include_rain_attenuation(self) -> bool: @@ -192,8 +185,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = val == "true" - return val # type: ignore + return (val == true) @property def rain_availability(self) -> float: @@ -204,7 +196,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return float(val) @property def rain_rate(self) -> float: @@ -214,7 +206,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return float(val) @property def polarization_tilt_angle(self) -> float: @@ -225,7 +217,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return float(val) @property def include_atmospheric_absorption(self) -> bool: @@ -236,8 +228,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = val == "true" - return val # type: ignore + return (val == true) @property def temperature(self) -> float: @@ -247,7 +238,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return float(val) @property def total_air_pressure(self) -> float: @@ -257,7 +248,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return float(val) @property def water_vapor_concentration(self) -> float: @@ -267,4 +258,5 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py similarity index 77% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py index 83039421d32..8b318bc2c27 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIndoorPropagationCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -40,13 +36,13 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Power Loss Coefficient: + "Power Loss Coefficient: Value should be between 0 and 100. - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): Value should be between 0 and 1000. """ return self._get_table_data() @@ -59,26 +55,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val @property def enable_refinement(self) -> bool: @@ -88,8 +83,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = val == "true" - return val # type: ignore + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -99,34 +93,33 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = val == "true" - return val # type: ignore + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val class BuildingTypeOption(Enum): - RESIDENTIAL_APARTMENT = "Residential Apartment" # eslint-disable-line no-eval - RESIDENTIAL_HOUSE = "Residential House" # eslint-disable-line no-eval - OFFICE_BUILDING = "Office Building" # eslint-disable-line no-eval - COMMERCIAL_BUILDING = "Commercial Building" # eslint-disable-line no-eval - CUSTOM_BUILDING = "Custom Building" # eslint-disable-line no-eval + RESIDENTIAL_APARTMENT = "Residential Apartment" # eslint-disable-line no-eval + RESIDENTIAL_HOUSE = "Residential House" # eslint-disable-line no-eval + OFFICE_BUILDING = "Office Building" # eslint-disable-line no-eval + COMMERCIAL_BUILDING = "Commercial Building" # eslint-disable-line no-eval + CUSTOM_BUILDING = "Custom Building" # eslint-disable-line no-eval @property def building_type(self) -> BuildingTypeOption: """Building Type Specify the building type for the Indoor Propagation model - """ + """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val.upper()] - return val # type: ignore + return val @property def number_of_floors(self) -> int: @@ -136,7 +129,7 @@ def number_of_floors(self) -> int: Value should be between 1 and 3. """ val = self._get_property("Number of Floors") - return val # type: ignore + return int(val) @property def custom_fading_margin(self) -> float: @@ -147,7 +140,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return float(val) @property def polarization_mismatch(self) -> float: @@ -158,7 +151,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return float(val) @property def pointing_error_loss(self) -> float: @@ -169,23 +162,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return float(val) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val @property def fading_availability(self) -> float: @@ -196,7 +189,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return float(val) @property def std_deviation(self) -> float: @@ -206,7 +199,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return float(val) @property def include_rain_attenuation(self) -> bool: @@ -216,8 +209,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = val == "true" - return val # type: ignore + return (val == true) @property def rain_availability(self) -> float: @@ -228,7 +220,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return float(val) @property def rain_rate(self) -> float: @@ -238,7 +230,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return float(val) @property def polarization_tilt_angle(self) -> float: @@ -249,7 +241,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return float(val) @property def include_atmospheric_absorption(self) -> bool: @@ -260,8 +252,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = val == "true" - return val # type: ignore + return (val == true) @property def temperature(self) -> float: @@ -271,7 +262,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return float(val) @property def total_air_pressure(self) -> float: @@ -281,7 +272,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return float(val) @property def water_vapor_concentration(self) -> float: @@ -291,4 +282,5 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py similarity index 79% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py index 54211c00985..ebbb2fce497 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyIsolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyIsolator(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val @property def noise_temperature(self) -> float: @@ -51,20 +47,20 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return float(val) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -72,24 +68,24 @@ def type(self) -> TypeOption: Type of isolator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the isolator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] - return val # type: ignore + return val @property def insertion_loss(self) -> float: @@ -99,7 +95,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return float(val) @property def finite_reverse_isolation(self) -> bool: @@ -110,8 +106,7 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - val = val == "true" - return val # type: ignore + return (val == true) @property def reverse_isolation(self) -> float: @@ -121,7 +116,7 @@ def reverse_isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return float(val) @property def finite_bandwidth(self) -> bool: @@ -132,8 +127,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - val = val == "true" - return val # type: ignore + return (val == true) @property def out_of_band_attenuation(self) -> float: @@ -143,7 +137,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return float(val) @property def lower_stop_band(self) -> float: @@ -154,7 +148,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def lower_cutoff(self) -> float: @@ -165,7 +159,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def higher_cutoff(self) -> float: @@ -176,7 +170,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def higher_stop_band(self) -> float: @@ -187,13 +181,14 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py similarity index 76% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py index 271e9969ef3..3d76a411744 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyLogDistanceCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -46,26 +42,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val @property def enable_refinement(self) -> bool: @@ -75,8 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = val == "true" - return val # type: ignore + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -86,36 +80,35 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = val == "true" - return val # type: ignore + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val class EnvironmentOption(Enum): - FREE_SPACE = "Free Space" # eslint-disable-line no-eval - URBAN = "Urban" # eslint-disable-line no-eval - SHADOWED_URBAN = "Shadowed Urban" # eslint-disable-line no-eval - BUILDING_LINE_OF_SIGHT = "Building Line of Sight" # eslint-disable-line no-eval - BUILDING_OBSTRUCTED = "Building Obstructed" # eslint-disable-line no-eval - FACTORY_OBSTRUCTED = "Factory Obstructed" # eslint-disable-line no-eval - CUSTOM = "Custom" # eslint-disable-line no-eval + FREE_SPACE = "Free Space" # eslint-disable-line no-eval + URBAN = "Urban" # eslint-disable-line no-eval + SHADOWED_URBAN = "Shadowed Urban" # eslint-disable-line no-eval + BUILDING_LINE_OF_SIGHT = "Building Line of Sight" # eslint-disable-line no-eval + BUILDING_OBSTRUCTED = "Building Obstructed" # eslint-disable-line no-eval + FACTORY_OBSTRUCTED = "Factory Obstructed" # eslint-disable-line no-eval + CUSTOM = "Custom" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Log Distance model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] - return val # type: ignore + return val @property def path_loss_exponent(self) -> float: @@ -125,7 +118,7 @@ def path_loss_exponent(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Path Loss Exponent") - return val # type: ignore + return float(val) @property def custom_fading_margin(self) -> float: @@ -136,7 +129,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return float(val) @property def polarization_mismatch(self) -> float: @@ -147,7 +140,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return float(val) @property def pointing_error_loss(self) -> float: @@ -158,23 +151,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return float(val) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val @property def fading_availability(self) -> float: @@ -185,7 +178,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return float(val) @property def std_deviation(self) -> float: @@ -195,7 +188,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return float(val) @property def include_rain_attenuation(self) -> bool: @@ -205,8 +198,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = val == "true" - return val # type: ignore + return (val == true) @property def rain_availability(self) -> float: @@ -217,7 +209,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return float(val) @property def rain_rate(self) -> float: @@ -227,7 +219,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return float(val) @property def polarization_tilt_angle(self) -> float: @@ -238,7 +230,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return float(val) @property def include_atmospheric_absorption(self) -> bool: @@ -249,8 +241,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = val == "true" - return val # type: ignore + return (val == true) @property def temperature(self) -> float: @@ -260,7 +251,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return float(val) @property def total_air_pressure(self) -> float: @@ -270,7 +261,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return float(val) @property def water_vapor_concentration(self) -> float: @@ -280,4 +271,5 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py similarity index 74% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py index 8a51b0c01de..125b10b34e7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyMultiplexer(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val @property def noise_temperature(self) -> float: @@ -51,20 +47,20 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return float(val) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val class TypeOption(Enum): - BY_PASS_BAND = "By Pass Band" # nosec B105 - BY_FILE = "By File" + BY_PASS_BAND = "By Pass Band" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -73,24 +69,24 @@ def type(self) -> TypeOption: simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the multiplexer. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] - return val # type: ignore + return val @property def flip_ports_vertically(self) -> bool: @@ -100,8 +96,7 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - val = val == "true" - return val # type: ignore + return (val == true) @property def ports(self): @@ -109,15 +104,16 @@ def ports(self): Assigns the child port nodes to the multiplexers ports "A list of values." - """ + """ val = self._get_property("Ports") - return val # type: ignore + return val @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py similarity index 81% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py index 032549189cc..bf9dbb5ed35 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyMultiplexerBand.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -39,10 +35,10 @@ def parent(self): return self._parent class TypeOption(Enum): - BY_FILE = "By File" - LOW_PASS = "Low Pass" # nosec B105 - HIGH_PASS = "High Pass" # nosec B105 - BAND_PASS = "Band Pass" # nosec B105 + BY_FILE = "By File" # eslint-disable-line no-eval + LOW_PASS = "Low Pass" # eslint-disable-line no-eval + HIGH_PASS = "High Pass" # eslint-disable-line no-eval + BAND_PASS = "Band Pass" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -51,10 +47,10 @@ def type(self) -> TypeOption: file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val @property def filename(self) -> str: @@ -64,7 +60,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val @property def insertion_loss(self) -> float: @@ -74,7 +70,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return float(val) @property def stop_band_attenuation(self) -> float: @@ -84,7 +80,7 @@ def stop_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Stop band Attenuation") - return val # type: ignore + return float(val) @property def max_pass_band(self) -> float: @@ -95,7 +91,7 @@ def max_pass_band(self) -> float: """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def min_stop_band(self) -> float: @@ -106,7 +102,7 @@ def min_stop_band(self) -> float: """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def max_stop_band(self) -> float: @@ -117,7 +113,7 @@ def max_stop_band(self) -> float: """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def min_pass_band(self) -> float: @@ -128,7 +124,7 @@ def min_pass_band(self) -> float: """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def lower_stop_band(self) -> float: @@ -139,7 +135,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def lower_cutoff(self) -> float: @@ -150,7 +146,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def higher_cutoff(self) -> float: @@ -161,7 +157,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def higher_stop_band(self) -> float: @@ -172,13 +168,14 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py similarity index 79% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py index f253c6bcbcf..0486f98879c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPowerDivider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyPowerDivider(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val @property def noise_temperature(self) -> float: @@ -51,21 +47,21 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return float(val) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - P3_DB = "P3 dB" # eslint-disable-line no-eval - RESISTIVE = "Resistive" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + P3_DB = "P3 dB" # eslint-disable-line no-eval + RESISTIVE = "Resistive" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -73,24 +69,24 @@ def type(self) -> TypeOption: Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val class OrientationOption(Enum): - DIVIDER = "Divider" # eslint-disable-line no-eval - COMBINER = "Combiner" # eslint-disable-line no-eval + DIVIDER = "Divider" # eslint-disable-line no-eval + COMBINER = "Combiner" # eslint-disable-line no-eval @property def orientation(self) -> OrientationOption: """Orientation Defines the orientation of the Power Divider. - """ + """ val = self._get_property("Orientation") val = self.OrientationOption[val.upper()] - return val # type: ignore + return val @property def insertion_loss_above_ideal(self) -> float: @@ -101,7 +97,7 @@ def insertion_loss_above_ideal(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss Above Ideal") - return val # type: ignore + return float(val) @property def finite_isolation(self) -> bool: @@ -112,8 +108,7 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - val = val == "true" - return val # type: ignore + return (val == true) @property def isolation(self) -> float: @@ -123,7 +118,7 @@ def isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return float(val) @property def finite_bandwidth(self) -> bool: @@ -134,8 +129,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - val = val == "true" - return val # type: ignore + return (val == true) @property def out_of_band_attenuation(self) -> float: @@ -145,7 +139,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return float(val) @property def lower_stop_band(self) -> float: @@ -156,7 +150,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def lower_cutoff(self) -> float: @@ -167,7 +161,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def higher_cutoff(self) -> float: @@ -178,7 +172,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def higher_stop_band(self) -> float: @@ -189,13 +183,14 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py similarity index 80% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py index f39b81fc115..d035efb82aa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyPropagationLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -46,26 +42,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val @property def enable_refinement(self) -> bool: @@ -75,8 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = val == "true" - return val # type: ignore + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -86,17 +80,16 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = val == "true" - return val # type: ignore + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val @property def custom_fading_margin(self) -> float: @@ -107,7 +100,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return float(val) @property def polarization_mismatch(self) -> float: @@ -118,7 +111,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return float(val) @property def pointing_error_loss(self) -> float: @@ -129,23 +122,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return float(val) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val @property def fading_availability(self) -> float: @@ -156,7 +149,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return float(val) @property def std_deviation(self) -> float: @@ -166,7 +159,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return float(val) @property def include_rain_attenuation(self) -> bool: @@ -176,8 +169,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = val == "true" - return val # type: ignore + return (val == true) @property def rain_availability(self) -> float: @@ -188,7 +180,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return float(val) @property def rain_rate(self) -> float: @@ -198,7 +190,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return float(val) @property def polarization_tilt_angle(self) -> float: @@ -209,7 +201,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return float(val) @property def include_atmospheric_absorption(self) -> bool: @@ -220,8 +212,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = val == "true" - return val # type: ignore + return (val == true) @property def temperature(self) -> float: @@ -231,7 +222,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return float(val) @property def total_air_pressure(self) -> float: @@ -241,7 +232,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return float(val) @property def water_vapor_concentration(self) -> float: @@ -251,4 +242,5 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py similarity index 72% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py index c877ac11f08..4d49888006c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRadioNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyRadioNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -38,11 +35,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Name: - "Type: - """ + "Name: + "Type: + """ return self._get_table_data() @property @@ -50,6 +47,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py similarity index 81% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py index 6ad4234310a..e1cf5b6839b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyRxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -46,7 +42,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val @property def source_file(self) -> str: @@ -56,32 +52,32 @@ def source_file(self) -> str: Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val @property def receive_frequency(self) -> float: """Receive Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) class MeasurementModeOption(Enum): - AUDIO_SINAD = "Audio SINAD" # eslint-disable-line no-eval - DIGITAL_BER = "Digital BER" # eslint-disable-line no-eval - GPS_CNR = "GPS CNR" # eslint-disable-line no-eval + AUDIO_SINAD = "Audio SINAD" # eslint-disable-line no-eval + DIGITAL_BER = "Digital BER" # eslint-disable-line no-eval + GPS_CNR = "GPS CNR" # eslint-disable-line no-eval @property def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode Defines the mode for the receiver measurement - """ + """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val.upper()] - return val # type: ignore + return val @property def sinad_threshold(self) -> float: @@ -91,7 +87,7 @@ def sinad_threshold(self) -> float: Value should be between 5 and 20. """ val = self._get_property("SINAD Threshold") - return val # type: ignore + return float(val) @property def gps_cnr_threshold(self) -> float: @@ -101,7 +97,7 @@ def gps_cnr_threshold(self) -> float: Value should be between 15 and 30. """ val = self._get_property("GPS CNR Threshold") - return val # type: ignore + return float(val) @property def ber_threshold(self) -> float: @@ -111,7 +107,7 @@ def ber_threshold(self) -> float: Value should be between -12 and -1. """ val = self._get_property("BER Threshold") - return val # type: ignore + return float(val) @property def default_intended_power(self) -> bool: @@ -121,8 +117,7 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - val = val == "true" - return val # type: ignore + return (val == true) @property def intended_signal_power(self) -> float: @@ -132,7 +127,7 @@ def intended_signal_power(self) -> float: Value should be between -140 and -50. """ val = self._get_property("Intended Signal Power") - return val # type: ignore + return float(val) @property def freq_deviation(self) -> float: @@ -143,7 +138,7 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def modulation_depth(self) -> float: @@ -153,7 +148,7 @@ def modulation_depth(self) -> float: Value should be between 10 and 100. """ val = self._get_property("Modulation Depth") - return val # type: ignore + return float(val) @property def measure_selectivity(self) -> bool: @@ -163,8 +158,7 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - val = val == "true" - return val # type: ignore + return (val == true) @property def measure_mixer_products(self) -> bool: @@ -174,8 +168,7 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - val = val == "true" - return val # type: ignore + return (val == true) @property def max_rf_order(self) -> int: @@ -185,7 +178,7 @@ def max_rf_order(self) -> int: Value should be greater than 1. """ val = self._get_property("Max RF Order") - return val # type: ignore + return int(val) @property def max_lo_order(self) -> int: @@ -195,7 +188,7 @@ def max_lo_order(self) -> int: Value should be greater than 1. """ val = self._get_property("Max LO Order") - return val # type: ignore + return int(val) @property def include_if(self) -> bool: @@ -205,8 +198,7 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - val = val == "true" - return val # type: ignore + return (val == true) @property def measure_saturation(self) -> bool: @@ -216,8 +208,7 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - val = val == "true" - return val # type: ignore + return (val == true) @property def use_ams_limits(self) -> bool: @@ -227,8 +218,7 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - val = val == "true" - return val # type: ignore + return (val == true) @property def start_frequency(self) -> float: @@ -239,7 +229,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def stop_frequency(self) -> float: @@ -250,7 +240,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def samples(self) -> int: @@ -260,7 +250,7 @@ def samples(self) -> int: Value should be between 2 and 100. """ val = self._get_property("Samples") - return val # type: ignore + return int(val) @property def exclude_mixer_products_below_noise(self) -> bool: @@ -270,5 +260,5 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - val = val == "true" - return val # type: ignore + return (val == true) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py similarity index 79% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py index cf33e35daec..0be321feec5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -39,19 +35,19 @@ def parent(self): return self._parent class MixerProductTaperOption(Enum): - CONSTANT = "Constant" # eslint-disable-line no-eval - MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval - DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval + CONSTANT = "Constant" # eslint-disable-line no-eval + MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval + DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval @property def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper Taper for setting amplitude of mixer products - """ + """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val.upper()] - return val # type: ignore + return val @property def mixer_product_susceptibility(self) -> float: @@ -61,7 +57,7 @@ def mixer_product_susceptibility(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Mixer Product Susceptibility") - return val # type: ignore + return float(val) @property def spurious_rejection(self) -> float: @@ -71,7 +67,7 @@ def spurious_rejection(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Spurious Rejection") - return val # type: ignore + return float(val) @property def minimum_tuning_frequency(self) -> float: @@ -82,7 +78,7 @@ def minimum_tuning_frequency(self) -> float: """ val = self._get_property("Minimum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def maximum_tuning_frequency(self) -> float: @@ -93,7 +89,7 @@ def maximum_tuning_frequency(self) -> float: """ val = self._get_property("Maximum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def mixer_product_slope(self) -> float: @@ -104,7 +100,7 @@ def mixer_product_slope(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Mixer Product Slope") - return val # type: ignore + return float(val) @property def mixer_product_intercept(self) -> float: @@ -114,7 +110,7 @@ def mixer_product_intercept(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Mixer Product Intercept") - return val # type: ignore + return float(val) @property def bandwidth_80_db(self) -> float: @@ -126,7 +122,7 @@ def bandwidth_80_db(self) -> float: """ val = self._get_property("Bandwidth 80 dB") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def image_rejection(self) -> float: @@ -136,7 +132,7 @@ def image_rejection(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Image Rejection") - return val # type: ignore + return float(val) @property def maximum_rf_harmonic_order(self) -> int: @@ -146,7 +142,7 @@ def maximum_rf_harmonic_order(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Maximum RF Harmonic Order") - return val # type: ignore + return int(val) @property def maximum_lo_harmonic_order(self) -> int: @@ -156,22 +152,22 @@ def maximum_lo_harmonic_order(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Maximum LO Harmonic Order") - return val # type: ignore + return int(val) class MixingModeOption(Enum): - LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" # eslint-disable-line no-eval - LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" # eslint-disable-line no-eval - LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" # eslint-disable-line no-eval @property def mixing_mode(self) -> MixingModeOption: """Mixing Mode Specifies whether the IF frequency is > or < RF channel frequency - """ + """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val.upper()] - return val # type: ignore + return val @property def first_if_frequency(self): @@ -181,42 +177,43 @@ def first_if_frequency(self): Value should be a mathematical expression. """ val = self._get_property("First IF Frequency") - return val # type: ignore + return val @property def rf_transition_frequency(self) -> float: """RF Transition Frequency RF Frequency Transition point - """ + """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) class UseHighLOOption(Enum): - ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" # eslint-disable-line no-eval - BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" # eslint-disable-line no-eval + ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" # eslint-disable-line no-eval + BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" # eslint-disable-line no-eval @property def use_high_lo(self) -> UseHighLOOption: """Use High LO Use High LO above/below the transition frequency - """ + """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val.upper()] - return val # type: ignore + return val class MixerProductTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units Specifies the units for the Mixer Products - """ + """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val.upper()] - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py similarity index 72% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py index b42e7cbf325..5e22eca60c2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -35,3 +32,4 @@ def __init__(self, emit_obj, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py similarity index 74% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py index 7eca21feb8c..a3944914964 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -45,5 +42,5 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - val = val == "true" - return val # type: ignore + return (val == true) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py similarity index 71% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py index bdb0adb420e..6fceb6ea00f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyRxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -40,27 +36,28 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py similarity index 79% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py index 2b95a61fc2a..eefee37c25f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyRxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -39,30 +35,30 @@ def parent(self): return self._parent class SensitivityUnitsOption(Enum): - DBM = "dBm" # eslint-disable-line no-eval - DBUV = "dBuV" # eslint-disable-line no-eval - MILLIWATTS = "milliwatts" # eslint-disable-line no-eval - MICROVOLTS = "microvolts" # eslint-disable-line no-eval + DBM = "dBm" # eslint-disable-line no-eval + DBUV = "dBuV" # eslint-disable-line no-eval + MILLIWATTS = "milliwatts" # eslint-disable-line no-eval + MICROVOLTS = "microvolts" # eslint-disable-line no-eval @property def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units Units to use for the Rx Sensitivity - """ + """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val.upper()] - return val # type: ignore + return val @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr Received signal power level at the Rx's antenna terminal Value should be between -1000 and 1000. """ val = self._get_property("Min. Receive Signal Pwr ") - return val # type: ignore + return float(val) @property def snr_at_rx_signal_pwr(self) -> float: @@ -73,7 +69,7 @@ def snr_at_rx_signal_pwr(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("SNR at Rx Signal Pwr") - return val # type: ignore + return float(val) @property def processing_gain(self) -> float: @@ -83,7 +79,7 @@ def processing_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Processing Gain") - return val # type: ignore + return float(val) @property def apply_pg_to_narrowband_only(self) -> bool: @@ -94,8 +90,7 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - val = val == "true" - return val # type: ignore + return (val == true) @property def saturation_level(self) -> float: @@ -106,7 +101,7 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @property def rx_noise_figure(self) -> float: @@ -116,28 +111,28 @@ def rx_noise_figure(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rx Noise Figure") - return val # type: ignore + return float(val) @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity Rx minimum sensitivity level (dBm) Value should be between -1000 and 1000. """ val = self._get_property("Receiver Sensitivity ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity SNR or SINAD at the specified sensitivity level Value should be between -1000 and 1000. """ val = self._get_property("SNR/SINAD at Sensitivity ") - return val # type: ignore + return float(val) @property def perform_rx_intermod_analysis(self) -> bool: @@ -147,8 +142,7 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - val = val == "true" - return val # type: ignore + return (val == true) @property def amplifier_saturation_level(self) -> float: @@ -159,18 +153,18 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Rx's 1 dB Compression Point - total power > P1dB saturates the receiver Value should be between -1000 and 1000. """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @property def ip3_ref_input(self) -> float: @@ -181,7 +175,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @property def max_intermod_order(self) -> int: @@ -191,4 +185,5 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return int(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py similarity index 76% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py index 2e6406a0ac7..30cc9b9d9ef 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlySamplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -40,29 +36,29 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Min: + "Min: Value should be greater than 1. - "Max: + "Max: Value should be greater than 1. """ return self._get_table_data() class SamplingTypeOption(Enum): - SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" # eslint-disable-line no-eval - RANDOM_SAMPLING = "Random Sampling" # eslint-disable-line no-eval - UNIFORM_SAMPLING = "Uniform Sampling" # eslint-disable-line no-eval + SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" # eslint-disable-line no-eval + RANDOM_SAMPLING = "Random Sampling" # eslint-disable-line no-eval + UNIFORM_SAMPLING = "Uniform Sampling" # eslint-disable-line no-eval @property def sampling_type(self) -> SamplingTypeOption: """Sampling Type Sampling to apply to this configuration - """ + """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val.upper()] - return val # type: ignore + return val @property def specify_percentage(self) -> bool: @@ -73,8 +69,7 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - val = val == "true" - return val # type: ignore + return (val == true) @property def percentage_of_channels(self) -> float: @@ -84,7 +79,7 @@ def percentage_of_channels(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Percentage of Channels") - return val # type: ignore + return float(val) @property def max__channelsrangeband(self) -> int: @@ -94,7 +89,7 @@ def max__channelsrangeband(self) -> int: Value should be between 1 and 100000. """ val = self._get_property("Max # Channels/Range/Band") - return val # type: ignore + return int(val) @property def seed(self) -> int: @@ -104,7 +99,7 @@ def seed(self) -> int: Value should be greater than 0. """ val = self._get_property("Seed") - return val # type: ignore + return int(val) @property def total_tx_channels(self) -> int: @@ -112,9 +107,9 @@ def total_tx_channels(self) -> int: Total number of transmit channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Tx Channels") - return val # type: ignore + return int(val) @property def total_rx_channels(self) -> int: @@ -122,15 +117,16 @@ def total_rx_channels(self) -> int: Total number of receive channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Rx Channels") - return val # type: ignore + return int(val) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py similarity index 78% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py index bd5503ea0ad..682949bf213 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlySceneGroupNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -47,8 +43,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - val = val == "true" - return val # type: ignore + return (val == true) @property def position(self): @@ -58,7 +53,7 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val @property def relative_position(self): @@ -68,21 +63,21 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] - return val # type: ignore + return val @property def orientation(self): @@ -92,7 +87,7 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val @property def relative_orientation(self): @@ -102,7 +97,7 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val @property def show_axes(self) -> bool: @@ -112,8 +107,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - val = val == "true" - return val # type: ignore + return (val == true) @property def box_color(self): @@ -123,13 +117,14 @@ def box_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Box Color") - return val # type: ignore + return val @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py similarity index 76% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py index 4a5b490ac63..5ca19668655 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -45,8 +42,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) @property def enable_refinement(self) -> bool: @@ -56,8 +52,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = val == "true" - return val # type: ignore + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -67,14 +62,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = val == "true" - return val # type: ignore + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py similarity index 74% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py index c39a4a98f9f..cb6390f154e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlySolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlySolutionsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -45,5 +42,5 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py similarity index 73% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py index 3be2b611e0b..d8691163011 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTerminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyTerminator(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val @property def noise_temperature(self) -> float: @@ -51,20 +47,20 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return float(val) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -72,24 +68,24 @@ def type(self) -> TypeOption: Type of terminator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] - return val # type: ignore + return val class PortLocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_location(self) -> PortLocationOption: """Port Location Defines the orientation of the terminator. - """ + """ val = self._get_property("Port Location") val = self.PortLocationOption[val.upper()] - return val # type: ignore + return val @property def vswr(self) -> float: @@ -101,13 +97,14 @@ def vswr(self) -> float: Value should be between 1 and 100. """ val = self._get_property("VSWR") - return val # type: ignore + return float(val) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py similarity index 77% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py index 154d9a0ca73..8a161344db3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -44,8 +41,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) @property def enable_refinement(self) -> bool: @@ -55,8 +51,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = val == "true" - return val # type: ignore + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -66,17 +61,16 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = val == "true" - return val # type: ignore + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val @property def filename(self) -> str: @@ -86,16 +80,16 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File Coupling data generated by Savant and exported as a matched file - """ + """ val = self._get_property("Savant Matched Coupling File") - return val # type: ignore + return val @property def enable_em_isolation(self) -> bool: @@ -105,8 +99,7 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - val = val == "true" - return val # type: ignore + return (val == true) @property def port_antenna_assignment(self): @@ -114,15 +107,16 @@ def port_antenna_assignment(self): Maps each port in the coupling file to an antenna in the project "A list of values." - """ + """ val = self._get_property("Port-Antenna Assignment") - return val # type: ignore + return val @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py similarity index 79% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py index be87f20b3f3..8a82a516540 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyTR_Switch(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -41,7 +37,7 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val @property def noise_temperature(self) -> float: @@ -51,44 +47,44 @@ def noise_temperature(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Noise Temperature") - return val # type: ignore + return float(val) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val class TxPortOption(Enum): - PORT_1 = "Port 1" # eslint-disable-line no-eval - PORT_2 = "Port 2" # eslint-disable-line no-eval + PORT_1 = "Port 1" # eslint-disable-line no-eval + PORT_2 = "Port 2" # eslint-disable-line no-eval @property def tx_port(self) -> TxPortOption: """Tx Port Specifies which port on the TR Switch is part of the Tx path. - """ + """ val = self._get_property("Tx Port") val = self.TxPortOption[val.upper()] - return val # type: ignore + return val class CommonPortLocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def common_port_location(self) -> CommonPortLocationOption: """Common Port Location Defines the orientation of the tr switch. - """ + """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val.upper()] - return val # type: ignore + return val @property def insertion_loss(self) -> float: @@ -98,7 +94,7 @@ def insertion_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Insertion Loss") - return val # type: ignore + return float(val) @property def finite_isolation(self) -> bool: @@ -109,8 +105,7 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - val = val == "true" - return val # type: ignore + return (val == true) @property def isolation(self) -> float: @@ -120,7 +115,7 @@ def isolation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Isolation") - return val # type: ignore + return float(val) @property def finite_bandwidth(self) -> bool: @@ -131,8 +126,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - val = val == "true" - return val # type: ignore + return (val == true) @property def out_of_band_attenuation(self) -> float: @@ -142,7 +136,7 @@ def out_of_band_attenuation(self) -> float: Value should be between 0 and 200. """ val = self._get_property("Out-of-band Attenuation") - return val # type: ignore + return float(val) @property def lower_stop_band(self) -> float: @@ -153,7 +147,7 @@ def lower_stop_band(self) -> float: """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def lower_cutoff(self) -> float: @@ -164,7 +158,7 @@ def lower_cutoff(self) -> float: """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def higher_cutoff(self) -> float: @@ -175,7 +169,7 @@ def higher_cutoff(self) -> float: """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def higher_stop_band(self) -> float: @@ -186,4 +180,5 @@ def higher_stop_band(self) -> float: """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py similarity index 81% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py index 607b19db164..22423f7a5bf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -46,26 +42,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val @property def enable_refinement(self) -> bool: @@ -75,8 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = val == "true" - return val # type: ignore + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -86,17 +80,16 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = val == "true" - return val # type: ignore + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val @property def ground_reflection_coeff(self) -> float: @@ -106,7 +99,7 @@ def ground_reflection_coeff(self) -> float: Value should be between -100 and 100. """ val = self._get_property("Ground Reflection Coeff.") - return val # type: ignore + return float(val) @property def pointspeak(self) -> int: @@ -116,7 +109,7 @@ def pointspeak(self) -> int: Value should be between 3 and 100. """ val = self._get_property("Points/Peak") - return val # type: ignore + return int(val) @property def custom_fading_margin(self) -> float: @@ -127,7 +120,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return float(val) @property def polarization_mismatch(self) -> float: @@ -138,7 +131,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return float(val) @property def pointing_error_loss(self) -> float: @@ -149,23 +142,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return float(val) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val @property def fading_availability(self) -> float: @@ -176,7 +169,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return float(val) @property def std_deviation(self) -> float: @@ -186,7 +179,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return float(val) @property def include_rain_attenuation(self) -> bool: @@ -196,8 +189,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = val == "true" - return val # type: ignore + return (val == true) @property def rain_availability(self) -> float: @@ -208,7 +200,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return float(val) @property def rain_rate(self) -> float: @@ -218,7 +210,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return float(val) @property def polarization_tilt_angle(self) -> float: @@ -229,7 +221,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return float(val) @property def include_atmospheric_absorption(self) -> bool: @@ -240,8 +232,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = val == "true" - return val # type: ignore + return (val == true) @property def temperature(self) -> float: @@ -251,7 +242,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return float(val) @property def total_air_pressure(self) -> float: @@ -261,7 +252,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return float(val) @property def water_vapor_concentration(self) -> float: @@ -271,4 +262,5 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py similarity index 70% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py index ad9456af41f..5fab08fccc3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -42,28 +38,28 @@ def parent(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): Value should be between -200 and 150. """ return self._get_table_data() class NoiseBehaviorOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE_BANDWIDTH = "Relative (Bandwidth)" # eslint-disable-line no-eval - RELATIVE_OFFSET = "Relative (Offset)" # eslint-disable-line no-eval - EQUATION = "Equation" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE_BANDWIDTH = "Relative (Bandwidth)" # eslint-disable-line no-eval + RELATIVE_OFFSET = "Relative (Offset)" # eslint-disable-line no-eval + EQUATION = "Equation" # eslint-disable-line no-eval @property def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior Specifies the behavior of the parametric noise profile - """ + """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val.upper()] - return val # type: ignore + return val @property def use_log_linear_interpolation(self) -> bool: @@ -74,5 +70,5 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - val = val == "true" - return val # type: ignore + return (val == true) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py similarity index 71% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py index bf3353c9063..72b32d9f5f4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -39,15 +35,16 @@ def parent(self): return self._parent class HarmonicTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units Specifies the units for the Harmonics - """ + """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val.upper()] - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py similarity index 80% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py index 9dd6504b496..9d8729dc36b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyTxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -44,7 +41,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val @property def source_file(self) -> str: @@ -54,17 +51,17 @@ def source_file(self) -> str: Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val @property def transmit_frequency(self) -> float: """Transmit Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def use_ams_limits(self) -> bool: @@ -74,8 +71,7 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - val = val == "true" - return val # type: ignore + return (val == true) @property def start_frequency(self) -> float: @@ -86,7 +82,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def stop_frequency(self) -> float: @@ -97,7 +93,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def exclude_harmonics_below_noise(self) -> bool: @@ -107,5 +103,5 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - val = val == "true" - return val # type: ignore + return (val == true) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py similarity index 73% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py index 82400a7e020..fb7e374df50 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -39,25 +35,26 @@ def parent(self): return self._parent class NarrowbandBehaviorOption(Enum): - ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" # eslint-disable-line no-eval - RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" # eslint-disable-line no-eval + ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" # eslint-disable-line no-eval + RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" # eslint-disable-line no-eval @property def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior Specifies the behavior of the parametric narrowband emissions mask - """ + """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val.upper()] - return val # type: ignore + return val @property def measurement_frequency(self) -> float: """Measurement Frequency Measurement frequency for the absolute freq/amp pairs. - """ + """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py similarity index 82% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py index 6c2837262de..f551a2e6781 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyTxSpectralProfEmitterNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -41,10 +38,10 @@ def output_voltage_peak(self) -> float: """Output Voltage Peak Output High Voltage Level: maximum voltage of the digital signal - """ + """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") - return val # type: ignore + return float(val) @property def include_phase_noise(self) -> bool: @@ -54,8 +51,7 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - val = val == "true" - return val # type: ignore + return (val == true) @property def tx_broadband_noise(self) -> float: @@ -65,7 +61,7 @@ def tx_broadband_noise(self) -> float: Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return float(val) @property def perform_tx_intermod_analysis(self) -> bool: @@ -75,8 +71,7 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - val = val == "true" - return val # type: ignore + return (val == true) @property def internal_amp_gain(self) -> float: @@ -86,7 +81,7 @@ def internal_amp_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return float(val) @property def noise_figure(self) -> float: @@ -96,7 +91,7 @@ def noise_figure(self) -> float: Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return float(val) @property def amplifier_saturation_level(self) -> float: @@ -107,11 +102,11 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -119,7 +114,7 @@ def p1_db_point_ref_input_(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @property def ip3_ref_input(self) -> float: @@ -130,7 +125,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @property def reverse_isolation(self) -> float: @@ -140,7 +135,7 @@ def reverse_isolation(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return float(val) @property def max_intermod_order(self) -> int: @@ -150,4 +145,5 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return int(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py similarity index 79% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py index 89932595721..43261056889 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -39,32 +35,32 @@ def parent(self): return self._parent class SpectrumTypeOption(Enum): - NARROWBAND__BROADBAND = "Narrowband & Broadband" # eslint-disable-line no-eval - BROADBAND_ONLY = "Broadband Only" # eslint-disable-line no-eval + NARROWBAND__BROADBAND = "Narrowband & Broadband" # eslint-disable-line no-eval + BROADBAND_ONLY = "Broadband Only" # eslint-disable-line no-eval @property def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type Specifies EMI Margins to calculate - """ + """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val.upper()] - return val # type: ignore + return val class TxPowerOption(Enum): - PEAK_POWER = "Peak Power" # eslint-disable-line no-eval - AVERAGE_POWER = "Average Power" # eslint-disable-line no-eval + PEAK_POWER = "Peak Power" # eslint-disable-line no-eval + AVERAGE_POWER = "Average Power" # eslint-disable-line no-eval @property def tx_power(self) -> TxPowerOption: """Tx Power Method used to specify the power - """ + """ val = self._get_property("Tx Power") val = self.TxPowerOption[val.upper()] - return val # type: ignore + return val @property def peak_power(self) -> float: @@ -75,7 +71,7 @@ def peak_power(self) -> float: """ val = self._get_property("Peak Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @property def average_power(self) -> float: @@ -86,7 +82,7 @@ def average_power(self) -> float: """ val = self._get_property("Average Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @property def include_phase_noise(self) -> bool: @@ -96,8 +92,7 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - val = val == "true" - return val # type: ignore + return (val == true) @property def tx_broadband_noise(self) -> float: @@ -107,23 +102,23 @@ def tx_broadband_noise(self) -> float: Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return float(val) class HarmonicTaperOption(Enum): - CONSTANT = "Constant" # eslint-disable-line no-eval - MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval - MIL_STD_461G_NAVY = "MIL-STD-461G Navy" # eslint-disable-line no-eval - DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval + CONSTANT = "Constant" # eslint-disable-line no-eval + MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval + MIL_STD_461G_NAVY = "MIL-STD-461G Navy" # eslint-disable-line no-eval + DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval @property def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper Taper type used to set amplitude of harmonics - """ + """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val.upper()] - return val # type: ignore + return val @property def harmonic_amplitude(self) -> float: @@ -133,7 +128,7 @@ def harmonic_amplitude(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Amplitude") - return val # type: ignore + return float(val) @property def harmonic_slope(self) -> float: @@ -143,7 +138,7 @@ def harmonic_slope(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Slope") - return val # type: ignore + return float(val) @property def harmonic_intercept(self) -> float: @@ -153,7 +148,7 @@ def harmonic_intercept(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Intercept") - return val # type: ignore + return float(val) @property def enable_harmonic_bw_expansion(self) -> bool: @@ -164,8 +159,7 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - val = val == "true" - return val # type: ignore + return (val == true) @property def number_of_harmonics(self) -> int: @@ -175,7 +169,7 @@ def number_of_harmonics(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Number of Harmonics") - return val # type: ignore + return int(val) @property def second_harmonic_level(self) -> float: @@ -185,7 +179,7 @@ def second_harmonic_level(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Second Harmonic Level") - return val # type: ignore + return float(val) @property def third_harmonic_level(self) -> float: @@ -195,7 +189,7 @@ def third_harmonic_level(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Third Harmonic Level") - return val # type: ignore + return float(val) @property def other_harmonic_levels(self) -> float: @@ -205,7 +199,7 @@ def other_harmonic_levels(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Other Harmonic Levels") - return val # type: ignore + return float(val) @property def perform_tx_intermod_analysis(self) -> bool: @@ -215,8 +209,7 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - val = val == "true" - return val # type: ignore + return (val == true) @property def internal_amp_gain(self) -> float: @@ -226,7 +219,7 @@ def internal_amp_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return float(val) @property def noise_figure(self) -> float: @@ -236,7 +229,7 @@ def noise_figure(self) -> float: Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return float(val) @property def amplifier_saturation_level(self) -> float: @@ -247,11 +240,11 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -259,7 +252,7 @@ def p1_db_point_ref_input_(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @property def ip3_ref_input(self) -> float: @@ -270,7 +263,7 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @property def reverse_isolation(self) -> float: @@ -280,7 +273,7 @@ def reverse_isolation(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return float(val) @property def max_intermod_order(self) -> int: @@ -290,4 +283,5 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return int(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py similarity index 71% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py index 1588872979d..22181d5a1b3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyTxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyTxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -40,27 +36,28 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py similarity index 80% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py index 2eda68c7900..71e96dd9bce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -46,26 +42,25 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val @property def enable_refinement(self) -> bool: @@ -75,8 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = val == "true" - return val # type: ignore + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -86,45 +80,44 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = val == "true" - return val # type: ignore + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val class PathLossTypeOption(Enum): - LOS_URBAN_CANYON = "LOS (Urban Canyon)" # eslint-disable-line no-eval - NLOS = "NLOS" # eslint-disable-line no-eval + LOS_URBAN_CANYON = "LOS (Urban Canyon)" # eslint-disable-line no-eval + NLOS = "NLOS" # eslint-disable-line no-eval @property def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type Specify LOS vs NLOS for the Walfisch-Ikegami model - """ + """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val.upper()] - return val # type: ignore + return val class EnvironmentOption(Enum): - DENSE_METRO = "Dense Metro" # eslint-disable-line no-eval - SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" # eslint-disable-line no-eval + DENSE_METRO = "Dense Metro" # eslint-disable-line no-eval + SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Walfisch model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] - return val # type: ignore + return val @property def roof_height(self) -> float: @@ -135,7 +128,7 @@ def roof_height(self) -> float: """ val = self._get_property("Roof Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def distance_between_buildings(self) -> float: @@ -146,7 +139,7 @@ def distance_between_buildings(self) -> float: """ val = self._get_property("Distance Between Buildings") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def street_width(self) -> float: @@ -157,7 +150,7 @@ def street_width(self) -> float: """ val = self._get_property("Street Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @property def incidence_angle(self) -> float: @@ -167,7 +160,7 @@ def incidence_angle(self) -> float: Value should be between 0 and 90. """ val = self._get_property("Incidence Angle") - return val # type: ignore + return float(val) @property def custom_fading_margin(self) -> float: @@ -178,7 +171,7 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return float(val) @property def polarization_mismatch(self) -> float: @@ -189,7 +182,7 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return float(val) @property def pointing_error_loss(self) -> float: @@ -200,23 +193,23 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return float(val) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val @property def fading_availability(self) -> float: @@ -227,7 +220,7 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return float(val) @property def std_deviation(self) -> float: @@ -237,7 +230,7 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return float(val) @property def include_rain_attenuation(self) -> bool: @@ -247,8 +240,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = val == "true" - return val # type: ignore + return (val == true) @property def rain_availability(self) -> float: @@ -259,7 +251,7 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return float(val) @property def rain_rate(self) -> float: @@ -269,7 +261,7 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return float(val) @property def polarization_tilt_angle(self) -> float: @@ -280,7 +272,7 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return float(val) @property def include_atmospheric_absorption(self) -> bool: @@ -291,8 +283,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = val == "true" - return val # type: ignore + return (val == true) @property def temperature(self) -> float: @@ -302,7 +293,7 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return float(val) @property def total_air_pressure(self) -> float: @@ -312,7 +303,7 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return float(val) @property def water_vapor_concentration(self) -> float: @@ -322,4 +313,5 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py similarity index 75% rename from src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py rename to src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py index a737c31f428..5c1658b76bd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ReadOnlyWaveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ReadOnlyWaveform(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -43,26 +39,26 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") - return val # type: ignore + return val class WaveformOption(Enum): - PERIODIC_CLOCK = "Periodic Clock" # eslint-disable-line no-eval - SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" # eslint-disable-line no-eval - PRBS = "PRBS" # eslint-disable-line no-eval - PRBS_PERIODIC = "PRBS (Periodic)" # eslint-disable-line no-eval - IMPORTED = "Imported" # eslint-disable-line no-eval + PERIODIC_CLOCK = "Periodic Clock" # eslint-disable-line no-eval + SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" # eslint-disable-line no-eval + PRBS = "PRBS" # eslint-disable-line no-eval + PRBS_PERIODIC = "PRBS (Periodic)" # eslint-disable-line no-eval + IMPORTED = "Imported" # eslint-disable-line no-eval @property def waveform(self) -> WaveformOption: """Waveform Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Waveform") val = self.WaveformOption[val.upper()] - return val # type: ignore + return val @property def start_frequency(self) -> float: @@ -73,7 +69,7 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def stop_frequency(self) -> float: @@ -84,7 +80,7 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def channel_spacing(self) -> float: @@ -95,7 +91,7 @@ def channel_spacing(self) -> float: """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def clock_duty_cycle(self) -> float: @@ -105,7 +101,7 @@ def clock_duty_cycle(self) -> float: Value should be between 0.001 and 1. """ val = self._get_property("Clock Duty Cycle") - return val # type: ignore + return float(val) @property def clock_risefall_time(self) -> float: @@ -116,22 +112,22 @@ def clock_risefall_time(self) -> float: """ val = self._get_property("Clock Rise/Fall Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return float(val) class SpreadingTypeOption(Enum): - LOW_SPREAD = "Low Spread" # eslint-disable-line no-eval - CENTER_SPREAD = "Center Spread" # eslint-disable-line no-eval - HIGH_SPREAD = "High Spread" # eslint-disable-line no-eval + LOW_SPREAD = "Low Spread" # eslint-disable-line no-eval + CENTER_SPREAD = "Center Spread" # eslint-disable-line no-eval + HIGH_SPREAD = "High Spread" # eslint-disable-line no-eval @property def spreading_type(self) -> SpreadingTypeOption: """Spreading Type Type of spreading employed by the Spread Spectrum Clock - """ + """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val.upper()] - return val # type: ignore + return val @property def spread_percentage(self) -> float: @@ -141,7 +137,7 @@ def spread_percentage(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Spread Percentage") - return val # type: ignore + return float(val) @property def imported_spectrum(self) -> str: @@ -149,16 +145,16 @@ def imported_spectrum(self) -> str: Value should be a full file path. """ val = self._get_property("Imported Spectrum") - return val # type: ignore + return val @property def raw_data_format(self) -> str: """Raw Data Format Format of the imported raw data - """ + """ val = self._get_property("Raw Data Format") - return val # type: ignore + return val @property def system_impedance(self) -> float: @@ -169,7 +165,7 @@ def system_impedance(self) -> float: """ val = self._get_property("System Impedance") val = self._convert_from_internal_units(float(val), "Resistance") - return val # type: ignore + return float(val) @property def advanced_extraction_params(self) -> bool: @@ -179,8 +175,7 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - val = val == "true" - return val # type: ignore + return (val == true) @property def nb_window_size(self) -> float: @@ -191,7 +186,7 @@ def nb_window_size(self) -> float: Value should be greater than 3. """ val = self._get_property("NB Window Size") - return val # type: ignore + return float(val) @property def bb_smoothing_factor(self) -> float: @@ -201,7 +196,7 @@ def bb_smoothing_factor(self) -> float: Value should be greater than 1. """ val = self._get_property("BB Smoothing Factor") - return val # type: ignore + return float(val) @property def nb_detector_threshold(self) -> float: @@ -211,21 +206,21 @@ def nb_detector_threshold(self) -> float: Value should be between 2 and 10. """ val = self._get_property("NB Detector Threshold") - return val # type: ignore + return float(val) class AlgorithmOption(Enum): - FFT = "FFT" # eslint-disable-line no-eval - FOURIER_TRANSFORM = "Fourier Transform" # eslint-disable-line no-eval + FFT = "FFT" # eslint-disable-line no-eval + FOURIER_TRANSFORM = "Fourier Transform" # eslint-disable-line no-eval @property def algorithm(self) -> AlgorithmOption: """Algorithm Algorithm used to transform the imported time domain spectrum - """ + """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val.upper()] - return val # type: ignore + return val @property def start_time(self) -> float: @@ -236,17 +231,17 @@ def start_time(self) -> float: """ val = self._get_property("Start Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return float(val) @property def stop_time(self) -> float: """Stop Time Final time of the imported time domain spectrum - """ + """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return float(val) @property def max_frequency(self) -> float: @@ -257,28 +252,28 @@ def max_frequency(self) -> float: """ val = self._get_property("Max Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) class WindowTypeOption(Enum): - RECTANGULAR = "Rectangular" # eslint-disable-line no-eval - BARTLETT = "Bartlett" # eslint-disable-line no-eval - BLACKMAN = "Blackman" # eslint-disable-line no-eval - HAMMING = "Hamming" # eslint-disable-line no-eval - HANNING = "Hanning" # eslint-disable-line no-eval - KAISER = "Kaiser" # eslint-disable-line no-eval - LANZCOS = "Lanzcos" # eslint-disable-line no-eval - WELCH = "Welch" # eslint-disable-line no-eval - WEBER = "Weber" # eslint-disable-line no-eval + RECTANGULAR = "Rectangular" # eslint-disable-line no-eval + BARTLETT = "Bartlett" # eslint-disable-line no-eval + BLACKMAN = "Blackman" # eslint-disable-line no-eval + HAMMING = "Hamming" # eslint-disable-line no-eval + HANNING = "Hanning" # eslint-disable-line no-eval + KAISER = "Kaiser" # eslint-disable-line no-eval + LANZCOS = "Lanzcos" # eslint-disable-line no-eval + WELCH = "Welch" # eslint-disable-line no-eval + WEBER = "Weber" # eslint-disable-line no-eval @property def window_type(self) -> WindowTypeOption: """Window Type Windowing scheme used for importing time domain spectrum - """ + """ val = self._get_property("Window Type") val = self.WindowTypeOption[val.upper()] - return val # type: ignore + return val @property def kaiser_parameter(self) -> float: @@ -288,7 +283,7 @@ def kaiser_parameter(self) -> float: Value should be greater than 0. """ val = self._get_property("Kaiser Parameter") - return val # type: ignore + return float(val) @property def adjust_coherent_gain(self) -> bool: @@ -298,8 +293,7 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - val = val == "true" - return val # type: ignore + return (val == true) @property def data_rate(self) -> float: @@ -310,7 +304,7 @@ def data_rate(self) -> float: """ val = self._get_property("Data Rate") val = self._convert_from_internal_units(float(val), "Data Rate") - return val # type: ignore + return float(val) @property def num_of_bits(self) -> int: @@ -320,7 +314,7 @@ def num_of_bits(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Num of Bits") - return val # type: ignore + return int(val) @property def use_envelope(self) -> bool: @@ -330,8 +324,7 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - val = val == "true" - return val # type: ignore + return (val == true) @property def min_ptsnull(self) -> int: @@ -341,7 +334,7 @@ def min_ptsnull(self) -> int: Value should be between 2 and 50. """ val = self._get_property("Min Pts/Null") - return val # type: ignore + return int(val) @property def delay_skew(self) -> float: @@ -352,4 +345,5 @@ def delay_skew(self) -> float: """ val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") - return val # type: ignore + return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py similarity index 62% rename from src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py index 1e5dda82a6d..3117ab4e6db 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/ResultPlotNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class ResultPlotNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -46,13 +42,15 @@ def title(self) -> str: """Title Enter title at the top of the plot, room will be made for it - """ + """ val = self._get_property("Title") - return val # type: ignore + return val @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title={value}"]) @property def title_font(self): @@ -62,11 +60,13 @@ def title_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Title Font") - return val # type: ignore + return val @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -76,12 +76,13 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - val = val == "true" - return val # type: ignore + return (val == true) @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Legend={value}"]) @property def legend_font(self): @@ -91,11 +92,13 @@ def legend_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Legend Font") - return val # type: ignore + return val @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Legend Font={value}"]) @property def show_emi_thresholds(self) -> bool: @@ -105,12 +108,13 @@ def show_emi_thresholds(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show EMI Thresholds") - val = val == "true" - return val # type: ignore + return (val == true) @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show EMI Thresholds={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show EMI Thresholds={value}"]) @property def display_cad_overlay(self) -> bool: @@ -120,12 +124,13 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - val = val == "true" - return val # type: ignore + return (val == true) @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -135,24 +140,28 @@ def opacity(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Opacity") - return val # type: ignore + return float(val) @opacity.setter - def opacity(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) + def opacity(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset Adjust vertical position of CAD model overlay - """ + """ val = self._get_property("Vertical Offset") - return val # type: ignore + return float(val) @vertical_offset.setter - def vertical_offset(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) + def vertical_offset(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -163,11 +172,13 @@ def range_axis_rotation(self) -> float: Value should be between -180 and 180. """ val = self._get_property("Range Axis Rotation") - return val # type: ignore + return float(val) @range_axis_rotation.setter - def range_axis_rotation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -177,64 +188,73 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - val = val == "true" - return val # type: ignore + return (val == true) @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min Set lower extent of horizontal axis - """ + """ val = self._get_property("X-axis Min") - return val # type: ignore + return float(val) @x_axis_min.setter - def x_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) + def x_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max Set upper extent of horizontal axis - """ + """ val = self._get_property("X-axis Max") - return val # type: ignore + return float(val) @x_axis_max.setter - def x_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) + def x_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min Set lower extent of vertical axis - """ + """ val = self._get_property("Y-axis Min") - return val # type: ignore + return float(val) @y_axis_min.setter - def y_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) + def y_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max Set upper extent of vertical axis - """ + """ val = self._get_property("Y-axis Max") - return val # type: ignore + return float(val) @y_axis_max.setter - def y_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) + def y_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -245,11 +265,13 @@ def y_axis_range(self) -> float: Value should be greater than 0. """ val = self._get_property("Y-axis Range") - return val # type: ignore + return float(val) @y_axis_range.setter - def y_axis_range(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) + def y_axis_range(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -259,11 +281,13 @@ def max_major_ticks_x(self) -> int: Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks X") - return val # type: ignore + return int(val) @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -274,11 +298,13 @@ def max_minor_ticks_x(self) -> int: Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks X") - return val # type: ignore + return int(val) @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -288,11 +314,13 @@ def max_major_ticks_y(self) -> int: Value should be between 1 and 30. """ val = self._get_property("Max Major Ticks Y") - return val # type: ignore + return int(val) @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -303,11 +331,13 @@ def max_minor_ticks_y(self) -> int: Value should be between 0 and 100. """ val = self._get_property("Max Minor Ticks Y") - return val # type: ignore + return int(val) @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -317,11 +347,13 @@ def axis_label_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Label Font") - return val # type: ignore + return val @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -331,35 +363,37 @@ def axis_tick_label_font(self): Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ val = self._get_property("Axis Tick Label Font") - return val # type: ignore + return val @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style Select line style of major-tick grid lines - """ + """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val.upper()] - return val # type: ignore + return val @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Line Style={value.value}"]) @property def major_grid_color(self): @@ -369,35 +403,37 @@ def major_grid_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Major Grid Color") - return val # type: ignore + return val @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style Select line style of minor-tick grid lines - """ + """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val.upper()] - return val # type: ignore + return val @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Line Style={value.value}"]) @property def minor_grid_color(self): @@ -407,11 +443,13 @@ def minor_grid_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Minor Grid Color") - return val # type: ignore + return val @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -421,33 +459,35 @@ def background_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Background Color") - return val # type: ignore + return val @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): - HERTZ = "hertz" # eslint-disable-line no-eval - KILOHERTZ = "kilohertz" # eslint-disable-line no-eval - MEGAHERTZ = "megahertz" # eslint-disable-line no-eval - GIGAHERTZ = "gigahertz" # eslint-disable-line no-eval + HERTZ = "hertz" # eslint-disable-line no-eval + KILOHERTZ = "kilohertz" # eslint-disable-line no-eval + MEGAHERTZ = "megahertz" # eslint-disable-line no-eval + GIGAHERTZ = "gigahertz" # eslint-disable-line no-eval @property def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit Units to use for plotting broadband power densities - """ + """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val.upper()] - return val # type: ignore + return val @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power for Plots Unit={value.value}"]) @property def bb_power_bandwidth(self) -> float: @@ -458,12 +498,14 @@ def bb_power_bandwidth(self) -> float: """ val = self._get_property("BB Power Bandwidth") val = self._convert_from_internal_units(float(val), "") - return val # type: ignore + return float(val) @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value: float | str): + def bb_power_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -473,9 +515,11 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - val = val == "true" - return val # type: ignore + return (val == true) @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Log Scale={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py similarity index 68% rename from src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py index 3c1907e0368..06922538d2c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class RxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -54,7 +50,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val @property def source_file(self) -> str: @@ -64,36 +60,38 @@ def source_file(self) -> str: Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val @property def receive_frequency(self) -> float: """Receive Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) class MeasurementModeOption(Enum): - AUDIO_SINAD = "Audio SINAD" # eslint-disable-line no-eval - DIGITAL_BER = "Digital BER" # eslint-disable-line no-eval - GPS_CNR = "GPS CNR" # eslint-disable-line no-eval + AUDIO_SINAD = "Audio SINAD" # eslint-disable-line no-eval + DIGITAL_BER = "Digital BER" # eslint-disable-line no-eval + GPS_CNR = "GPS CNR" # eslint-disable-line no-eval @property def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode Defines the mode for the receiver measurement - """ + """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val.upper()] - return val # type: ignore + return val @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Mode={value.value}"]) @property def sinad_threshold(self) -> float: @@ -103,11 +101,13 @@ def sinad_threshold(self) -> float: Value should be between 5 and 20. """ val = self._get_property("SINAD Threshold") - return val # type: ignore + return float(val) @sinad_threshold.setter - def sinad_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SINAD Threshold={value}"]) + def sinad_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SINAD Threshold={value}"]) @property def gps_cnr_threshold(self) -> float: @@ -117,11 +117,13 @@ def gps_cnr_threshold(self) -> float: Value should be between 15 and 30. """ val = self._get_property("GPS CNR Threshold") - return val # type: ignore + return float(val) @gps_cnr_threshold.setter - def gps_cnr_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GPS CNR Threshold={value}"]) + def gps_cnr_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"GPS CNR Threshold={value}"]) @property def ber_threshold(self) -> float: @@ -131,11 +133,13 @@ def ber_threshold(self) -> float: Value should be between -12 and -1. """ val = self._get_property("BER Threshold") - return val # type: ignore + return float(val) @ber_threshold.setter - def ber_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BER Threshold={value}"]) + def ber_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BER Threshold={value}"]) @property def default_intended_power(self) -> bool: @@ -145,12 +149,13 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - val = val == "true" - return val # type: ignore + return (val == true) @default_intended_power.setter def default_intended_power(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Default Intended Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Default Intended Power={value}"]) @property def intended_signal_power(self) -> float: @@ -160,11 +165,13 @@ def intended_signal_power(self) -> float: Value should be between -140 and -50. """ val = self._get_property("Intended Signal Power") - return val # type: ignore + return float(val) @intended_signal_power.setter - def intended_signal_power(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Intended Signal Power={value}"]) + def intended_signal_power(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Intended Signal Power={value}"]) @property def freq_deviation(self) -> float: @@ -175,12 +182,14 @@ def freq_deviation(self) -> float: """ val = self._get_property("Freq. Deviation") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @freq_deviation.setter - def freq_deviation(self, value: float | str): + def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation={value}"]) @property def modulation_depth(self) -> float: @@ -190,11 +199,13 @@ def modulation_depth(self) -> float: Value should be between 10 and 100. """ val = self._get_property("Modulation Depth") - return val # type: ignore + return float(val) @modulation_depth.setter - def modulation_depth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Depth={value}"]) + def modulation_depth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation Depth={value}"]) @property def measure_selectivity(self) -> bool: @@ -204,12 +215,13 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - val = val == "true" - return val # type: ignore + return (val == true) @measure_selectivity.setter def measure_selectivity(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Selectivity={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Selectivity={value}"]) @property def measure_mixer_products(self) -> bool: @@ -219,12 +231,13 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - val = val == "true" - return val # type: ignore + return (val == true) @measure_mixer_products.setter def measure_mixer_products(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Mixer Products={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Mixer Products={value}"]) @property def max_rf_order(self) -> int: @@ -234,11 +247,13 @@ def max_rf_order(self) -> int: Value should be greater than 1. """ val = self._get_property("Max RF Order") - return val # type: ignore + return int(val) @max_rf_order.setter def max_rf_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max RF Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max RF Order={value}"]) @property def max_lo_order(self) -> int: @@ -248,11 +263,13 @@ def max_lo_order(self) -> int: Value should be greater than 1. """ val = self._get_property("Max LO Order") - return val # type: ignore + return int(val) @max_lo_order.setter def max_lo_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max LO Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max LO Order={value}"]) @property def include_if(self) -> bool: @@ -262,12 +279,13 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - val = val == "true" - return val # type: ignore + return (val == true) @include_if.setter def include_if(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include IF={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include IF={value}"]) @property def measure_saturation(self) -> bool: @@ -277,12 +295,13 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - val = val == "true" - return val # type: ignore + return (val == true) @measure_saturation.setter def measure_saturation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Saturation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Saturation={value}"]) @property def use_ams_limits(self) -> bool: @@ -292,12 +311,13 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - val = val == "true" - return val # type: ignore + return (val == true) @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -308,12 +328,14 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -324,12 +346,14 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def samples(self) -> int: @@ -339,11 +363,13 @@ def samples(self) -> int: Value should be between 2 and 100. """ val = self._get_property("Samples") - return val # type: ignore + return int(val) @samples.setter def samples(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Samples={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Samples={value}"]) @property def exclude_mixer_products_below_noise(self) -> bool: @@ -353,20 +379,20 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - val = val == "true" - return val # type: ignore + return (val == true) @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Exclude Mixer Products Below Noise={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Exclude Mixer Products Below Noise={value}"]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py similarity index 64% rename from src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py index e4c7b9a9737..fe158ef21cf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxMixerProductNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class RxMixerProductNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -49,32 +45,32 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class MixerProductTaperOption(Enum): - CONSTANT = "Constant" # eslint-disable-line no-eval - MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval - DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval + CONSTANT = "Constant" # eslint-disable-line no-eval + MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval + DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval @property def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper Taper for setting amplitude of mixer products - """ + """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val.upper()] - return val # type: ignore + return val @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Taper={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Taper={value.value}"]) @property def mixer_product_susceptibility(self) -> float: @@ -84,13 +80,13 @@ def mixer_product_susceptibility(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Mixer Product Susceptibility") - return val # type: ignore + return float(val) @mixer_product_susceptibility.setter - def mixer_product_susceptibility(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Susceptibility={value}"] - ) + def mixer_product_susceptibility(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Susceptibility={value}"]) @property def spurious_rejection(self) -> float: @@ -100,11 +96,13 @@ def spurious_rejection(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Spurious Rejection") - return val # type: ignore + return float(val) @spurious_rejection.setter - def spurious_rejection(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spurious Rejection={value}"]) + def spurious_rejection(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spurious Rejection={value}"]) @property def minimum_tuning_frequency(self) -> float: @@ -115,12 +113,14 @@ def minimum_tuning_frequency(self) -> float: """ val = self._get_property("Minimum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value: float | str): + def minimum_tuning_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minimum Tuning Frequency={value}"]) @property def maximum_tuning_frequency(self) -> float: @@ -131,12 +131,14 @@ def maximum_tuning_frequency(self) -> float: """ val = self._get_property("Maximum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value: float | str): + def maximum_tuning_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum Tuning Frequency={value}"]) @property def mixer_product_slope(self) -> float: @@ -147,11 +149,13 @@ def mixer_product_slope(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Mixer Product Slope") - return val # type: ignore + return float(val) @mixer_product_slope.setter - def mixer_product_slope(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Slope={value}"]) + def mixer_product_slope(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Slope={value}"]) @property def mixer_product_intercept(self) -> float: @@ -161,11 +165,13 @@ def mixer_product_intercept(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Mixer Product Intercept") - return val # type: ignore + return float(val) @mixer_product_intercept.setter - def mixer_product_intercept(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Intercept={value}"]) + def mixer_product_intercept(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Intercept={value}"]) @property def bandwidth_80_db(self) -> float: @@ -177,12 +183,14 @@ def bandwidth_80_db(self) -> float: """ val = self._get_property("Bandwidth 80 dB") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @bandwidth_80_db.setter - def bandwidth_80_db(self, value: float | str): + def bandwidth_80_db(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 80 dB={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 80 dB={value}"]) @property def image_rejection(self) -> float: @@ -192,11 +200,13 @@ def image_rejection(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Image Rejection") - return val # type: ignore + return float(val) @image_rejection.setter - def image_rejection(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Image Rejection={value}"]) + def image_rejection(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Image Rejection={value}"]) @property def maximum_rf_harmonic_order(self) -> int: @@ -206,13 +216,13 @@ def maximum_rf_harmonic_order(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Maximum RF Harmonic Order") - return val # type: ignore + return int(val) @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Maximum RF Harmonic Order={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum RF Harmonic Order={value}"]) @property def maximum_lo_harmonic_order(self) -> int: @@ -222,32 +232,34 @@ def maximum_lo_harmonic_order(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Maximum LO Harmonic Order") - return val # type: ignore + return int(val) @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Maximum LO Harmonic Order={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum LO Harmonic Order={value}"]) class MixingModeOption(Enum): - LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" # eslint-disable-line no-eval - LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" # eslint-disable-line no-eval - LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" # eslint-disable-line no-eval @property def mixing_mode(self) -> MixingModeOption: """Mixing Mode Specifies whether the IF frequency is > or < RF channel frequency - """ + """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val.upper()] - return val # type: ignore + return val @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixing Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixing Mode={value.value}"]) @property def first_if_frequency(self): @@ -257,61 +269,68 @@ def first_if_frequency(self): Value should be a mathematical expression. """ val = self._get_property("First IF Frequency") - return val # type: ignore + return val @first_if_frequency.setter def first_if_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First IF Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First IF Frequency={value}"]) @property def rf_transition_frequency(self) -> float: """RF Transition Frequency RF Frequency Transition point - """ + """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @rf_transition_frequency.setter - def rf_transition_frequency(self, value: float | str): + def rf_transition_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"RF Transition Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"RF Transition Frequency={value}"]) class UseHighLOOption(Enum): - ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" # eslint-disable-line no-eval - BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" # eslint-disable-line no-eval + ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" # eslint-disable-line no-eval + BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" # eslint-disable-line no-eval @property def use_high_lo(self) -> UseHighLOOption: """Use High LO Use High LO above/below the transition frequency - """ + """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val.upper()] - return val # type: ignore + return val @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use High LO={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use High LO={value.value}"]) class MixerProductTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units Specifies the units for the Mixer Products - """ + """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val.upper()] - return val # type: ignore + return val @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Table Units={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py similarity index 76% rename from src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py index 68ba1494158..df6a48c060b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSaturationNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class RxSaturationNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -38,7 +35,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -47,8 +44,9 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py similarity index 75% rename from src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py index 98525596f45..b9449774377 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSelectivityNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class RxSelectivityNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -38,7 +35,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -47,7 +44,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -62,9 +59,11 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - val = val == "true" - return val # type: ignore + return (val == true) @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Arithmetic Mean={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Arithmetic Mean={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py similarity index 73% rename from src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py index 8eaac368f00..89ea0bb0ab1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class RxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -48,13 +44,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -66,26 +62,29 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] - return val # type: ignore + return val @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spur Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py similarity index 63% rename from src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py index 5deb2619914..61f20e340cd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/RxSusceptibilityProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class RxSusceptibilityProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -41,45 +37,49 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SensitivityUnitsOption(Enum): - DBM = "dBm" # eslint-disable-line no-eval - DBUV = "dBuV" # eslint-disable-line no-eval - MILLIWATTS = "milliwatts" # eslint-disable-line no-eval - MICROVOLTS = "microvolts" # eslint-disable-line no-eval + DBM = "dBm" # eslint-disable-line no-eval + DBUV = "dBuV" # eslint-disable-line no-eval + MILLIWATTS = "milliwatts" # eslint-disable-line no-eval + MICROVOLTS = "microvolts" # eslint-disable-line no-eval @property def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units Units to use for the Rx Sensitivity - """ + """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val.upper()] - return val # type: ignore + return val @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sensitivity Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sensitivity Units={value.value}"]) @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr Received signal power level at the Rx's antenna terminal Value should be between -1000 and 1000. """ val = self._get_property("Min. Receive Signal Pwr ") - return val # type: ignore + return float(val) @min_receive_signal_pwr_.setter - def min_receive_signal_pwr_(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min. Receive Signal Pwr ={value}"]) + def min_receive_signal_pwr_(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min. Receive Signal Pwr ={value}"]) @property def snr_at_rx_signal_pwr(self) -> float: @@ -90,11 +90,13 @@ def snr_at_rx_signal_pwr(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("SNR at Rx Signal Pwr") - return val # type: ignore + return float(val) @snr_at_rx_signal_pwr.setter - def snr_at_rx_signal_pwr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR at Rx Signal Pwr={value}"]) + def snr_at_rx_signal_pwr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SNR at Rx Signal Pwr={value}"]) @property def processing_gain(self) -> float: @@ -104,11 +106,13 @@ def processing_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Processing Gain") - return val # type: ignore + return float(val) @processing_gain.setter - def processing_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Processing Gain={value}"]) + def processing_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Processing Gain={value}"]) @property def apply_pg_to_narrowband_only(self) -> bool: @@ -119,14 +123,13 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - val = val == "true" - return val # type: ignore + return (val == true) @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Apply PG to Narrowband Only={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Apply PG to Narrowband Only={value}"]) @property def saturation_level(self) -> float: @@ -137,12 +140,14 @@ def saturation_level(self) -> float: """ val = self._get_property("Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @saturation_level.setter - def saturation_level(self, value: float | str): + def saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Saturation Level={value}"]) @property def rx_noise_figure(self) -> float: @@ -152,43 +157,47 @@ def rx_noise_figure(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rx Noise Figure") - return val # type: ignore + return float(val) @rx_noise_figure.setter - def rx_noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rx Noise Figure={value}"]) + def rx_noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rx Noise Figure={value}"]) @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity Rx minimum sensitivity level (dBm) Value should be between -1000 and 1000. """ val = self._get_property("Receiver Sensitivity ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @receiver_sensitivity_.setter - def receiver_sensitivity_(self, value: float | str): + def receiver_sensitivity_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver Sensitivity ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Receiver Sensitivity ={value}"]) @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity SNR or SINAD at the specified sensitivity level Value should be between -1000 and 1000. """ val = self._get_property("SNR/SINAD at Sensitivity ") - return val # type: ignore + return float(val) @snrsinad_at_sensitivity_.setter - def snrsinad_at_sensitivity_(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"SNR/SINAD at Sensitivity ={value}"] - ) + def snrsinad_at_sensitivity_(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SNR/SINAD at Sensitivity ={value}"]) @property def perform_rx_intermod_analysis(self) -> bool: @@ -198,14 +207,13 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - val = val == "true" - return val # type: ignore + return (val == true) @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Rx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Rx Intermod Analysis={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -216,30 +224,32 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Rx's 1 dB Compression Point - total power > P1dB saturates the receiver Value should be between -1000 and 1000. """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -250,12 +260,14 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def max_intermod_order(self) -> int: @@ -265,8 +277,11 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return int(val) @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py similarity index 69% rename from src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py index bd695dfa262..1d867b31631 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SamplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class SamplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -40,11 +36,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Min: + "Min: Value should be greater than 1. - "Max: + "Max: Value should be greater than 1. """ return self._get_table_data() @@ -54,23 +50,25 @@ def table_data(self, value): self._set_table_data(value) class SamplingTypeOption(Enum): - SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" # eslint-disable-line no-eval - RANDOM_SAMPLING = "Random Sampling" # eslint-disable-line no-eval - UNIFORM_SAMPLING = "Uniform Sampling" # eslint-disable-line no-eval + SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" # eslint-disable-line no-eval + RANDOM_SAMPLING = "Random Sampling" # eslint-disable-line no-eval + UNIFORM_SAMPLING = "Uniform Sampling" # eslint-disable-line no-eval @property def sampling_type(self) -> SamplingTypeOption: """Sampling Type Sampling to apply to this configuration - """ + """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val.upper()] - return val # type: ignore + return val @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sampling Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sampling Type={value.value}"]) @property def specify_percentage(self) -> bool: @@ -81,12 +79,13 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - val = val == "true" - return val # type: ignore + return (val == true) @specify_percentage.setter def specify_percentage(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Specify Percentage={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Specify Percentage={value}"]) @property def percentage_of_channels(self) -> float: @@ -96,11 +95,13 @@ def percentage_of_channels(self) -> float: Value should be between 1 and 100. """ val = self._get_property("Percentage of Channels") - return val # type: ignore + return float(val) @percentage_of_channels.setter - def percentage_of_channels(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percentage of Channels={value}"]) + def percentage_of_channels(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Percentage of Channels={value}"]) @property def max__channelsrangeband(self) -> int: @@ -110,13 +111,13 @@ def max__channelsrangeband(self) -> int: Value should be between 1 and 100000. """ val = self._get_property("Max # Channels/Range/Band") - return val # type: ignore + return int(val) @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Max # Channels/Range/Band={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max # Channels/Range/Band={value}"]) @property def seed(self) -> int: @@ -126,11 +127,13 @@ def seed(self) -> int: Value should be greater than 0. """ val = self._get_property("Seed") - return val # type: ignore + return int(val) @seed.setter def seed(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Seed={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Seed={value}"]) @property def total_tx_channels(self) -> int: @@ -138,9 +141,9 @@ def total_tx_channels(self) -> int: Total number of transmit channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Tx Channels") - return val # type: ignore + return int(val) @property def total_rx_channels(self) -> int: @@ -148,15 +151,16 @@ def total_rx_channels(self) -> int: Total number of receive channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Rx Channels") - return val # type: ignore + return int(val) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") - return val # type: ignore + return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py similarity index 70% rename from src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py index 18ecdcc9fcd..2c98880e6d8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SceneGroupNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class SceneGroupNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -63,14 +59,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - val = val == "true" - return val # type: ignore + return (val == true) @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): @@ -80,11 +75,13 @@ def position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Position") - return val # type: ignore + return val @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): @@ -94,29 +91,33 @@ def relative_position(self): Value should be x/y/z, delimited by spaces. """ val = self._get_property("Relative Position") - return val # type: ignore + return val @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] - return val # type: ignore + return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -126,11 +127,13 @@ def orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Orientation") - return val # type: ignore + return val @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): @@ -140,11 +143,13 @@ def relative_orientation(self): Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("Relative Orientation") - return val # type: ignore + return val @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def show_axes(self) -> bool: @@ -154,12 +159,13 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - val = val == "true" - return val # type: ignore + return (val == true) @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def box_color(self): @@ -169,21 +175,26 @@ def box_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Box Color") - return val # type: ignore + return val @box_color.setter def box_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Box Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Box Color={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py similarity index 60% rename from src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py index fa7a688da57..2fd164ebd1f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SelectivityTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class SelectivityTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -56,13 +52,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -72,12 +70,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = val == "true" - return val # type: ignore + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -87,47 +86,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = val == "true" - return val # type: ignore + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -137,11 +141,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return int(val) @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -151,42 +157,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -196,11 +206,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return int(val) @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -210,11 +222,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -224,11 +238,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return int(val) @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -239,9 +255,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = val == "true" - return val # type: ignore + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py similarity index 70% rename from src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py index c8e0e67b9c5..959b5cfb018 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class SolutionCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -45,12 +42,13 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -60,12 +58,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = val == "true" - return val # type: ignore + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -75,22 +74,26 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = val == "true" - return val # type: ignore + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py similarity index 73% rename from src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py index 73df11d538a..0ce64982dff 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SolutionsNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class SolutionsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -45,9 +42,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py similarity index 61% rename from src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py index 55c8764a15a..3020732a087 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/SpurTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class SpurTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -55,13 +51,15 @@ def channel_frequency(self): """Channel Frequency Select band channel frequency to display - """ + """ val = self._get_property("Channel Frequency") - return val # type: ignore + return val @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: @@ -69,10 +67,10 @@ def transmit_frequency(self) -> float: The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset) - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def data_source(self): @@ -80,13 +78,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,12 +96,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = val == "true" - return val # type: ignore + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -111,47 +112,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = val == "true" - return val # type: ignore + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -161,11 +167,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return int(val) @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -175,42 +183,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -220,11 +232,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return int(val) @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -234,11 +248,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -248,11 +264,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return int(val) @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -263,9 +281,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = val == "true" - return val # type: ignore + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py similarity index 62% rename from src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py index bf80518fc77..0c8853662ec 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TestNoiseTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class TestNoiseTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -58,11 +54,13 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return int(val) @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -72,11 +70,13 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return int(val) @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): @@ -84,13 +84,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -100,12 +102,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = val == "true" - return val # type: ignore + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -115,47 +118,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = val == "true" - return val # type: ignore + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -165,11 +173,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return int(val) @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -179,42 +189,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -224,11 +238,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return int(val) @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -238,11 +254,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -252,11 +270,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return int(val) @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -267,12 +287,13 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = val == "true" - return val # type: ignore + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -283,12 +304,14 @@ def frequency_1(self) -> float: """ val = self._get_property("Frequency 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @frequency_1.setter - def frequency_1(self, value: float | str): + def frequency_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -299,12 +322,14 @@ def amplitude_1(self) -> float: """ val = self._get_property("Amplitude 1") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @amplitude_1.setter - def amplitude_1(self, value: float | str): + def amplitude_1(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -315,12 +340,14 @@ def bandwidth_1(self) -> float: """ val = self._get_property("Bandwidth 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @bandwidth_1.setter - def bandwidth_1(self, value: float | str): + def bandwidth_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -331,12 +358,14 @@ def frequency_2(self) -> float: """ val = self._get_property("Frequency 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @frequency_2.setter - def frequency_2(self, value: float | str): + def frequency_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -347,12 +376,14 @@ def amplitude_2(self) -> float: """ val = self._get_property("Amplitude 2") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @amplitude_2.setter - def amplitude_2(self, value: float | str): + def amplitude_2(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -363,12 +394,14 @@ def bandwidth_2(self) -> float: """ val = self._get_property("Bandwidth 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @bandwidth_2.setter - def bandwidth_2(self, value: float | str): + def bandwidth_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -378,8 +411,11 @@ def noise_level(self) -> float: Value should be between -200 and 0. """ val = self._get_property("Noise Level") - return val # type: ignore + return float(val) @noise_level.setter - def noise_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) + def noise_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Level={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py similarity index 70% rename from src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py rename to src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py index 0d75b168b11..3dc7c0a53b1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TopLevelSimulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py @@ -1,32 +1,30 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class TopLevelSimulation(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False EmitNode.__init__(self, emit_obj, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py similarity index 70% rename from src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py index dc91d6a65e6..b16d60057e3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TouchstoneCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class TouchstoneCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -56,12 +53,13 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -71,12 +69,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = val == "true" - return val # type: ignore + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -86,25 +85,28 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = val == "true" - return val # type: ignore + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def filename(self) -> str: @@ -114,20 +116,22 @@ def filename(self) -> str: Value should be a full file path. """ val = self._get_property("Filename") - return val # type: ignore + return val @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File Coupling data generated by Savant and exported as a matched file - """ + """ val = self._get_property("Savant Matched Coupling File") - return val # type: ignore + return val @property def enable_em_isolation(self) -> bool: @@ -137,12 +141,13 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - val = val == "true" - return val # type: ignore + return (val == true) @enable_em_isolation.setter def enable_em_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable EM Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable EM Isolation={value}"]) @property def port_antenna_assignment(self): @@ -150,23 +155,28 @@ def port_antenna_assignment(self): Maps each port in the coupling file to an antenna in the project "A list of values." - """ + """ val = self._get_property("Port-Antenna Assignment") - return val # type: ignore + return val @port_antenna_assignment.setter def port_antenna_assignment(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port-Antenna Assignment={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port-Antenna Assignment={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") - return val # type: ignore + return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py similarity index 61% rename from src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py index 9c13aaf52c5..2ec224f815a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TRSwitchTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class TRSwitchTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -58,11 +54,13 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return int(val) @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -72,11 +70,13 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return int(val) @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): @@ -84,13 +84,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -100,12 +102,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = val == "true" - return val # type: ignore + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -115,47 +118,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = val == "true" - return val # type: ignore + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -165,11 +173,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return int(val) @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -179,42 +189,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -224,11 +238,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return int(val) @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -238,11 +254,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -252,11 +270,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return int(val) @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -267,9 +287,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = val == "true" - return val # type: ignore + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py similarity index 61% rename from src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py index cd18f074801..64ba5f45756 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TunableTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class TunableTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -58,11 +54,13 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return int(val) @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -72,26 +70,30 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return int(val) @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def frequency(self) -> float: """Frequency Tunable filter center frequency - """ + """ val = self._get_property("Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @frequency.setter - def frequency(self, value: float | str): + def frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency={value}"]) @property def data_source(self): @@ -99,13 +101,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -115,12 +119,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = val == "true" - return val # type: ignore + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -130,47 +135,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = val == "true" - return val # type: ignore + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -180,11 +190,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return int(val) @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -194,42 +206,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -239,11 +255,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return int(val) @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -253,11 +271,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -267,11 +287,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return int(val) @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -282,9 +304,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = val == "true" - return val # type: ignore + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py similarity index 64% rename from src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py index 84352141fc6..62510da1c13 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoRayPathLossCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -58,38 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") - return val # type: ignore + return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") - return val # type: ignore + return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -99,12 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = val == "true" - return val # type: ignore + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -114,25 +116,28 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = val == "true" - return val # type: ignore + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def ground_reflection_coeff(self) -> float: @@ -142,11 +147,13 @@ def ground_reflection_coeff(self) -> float: Value should be between -100 and 100. """ val = self._get_property("Ground Reflection Coeff.") - return val # type: ignore + return float(val) @ground_reflection_coeff.setter - def ground_reflection_coeff(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ground Reflection Coeff.={value}"]) + def ground_reflection_coeff(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ground Reflection Coeff.={value}"]) @property def pointspeak(self) -> int: @@ -156,11 +163,13 @@ def pointspeak(self) -> int: Value should be between 3 and 100. """ val = self._get_property("Points/Peak") - return val # type: ignore + return int(val) @pointspeak.setter def pointspeak(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Points/Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Points/Peak={value}"]) @property def custom_fading_margin(self) -> float: @@ -171,11 +180,13 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -186,11 +197,13 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -201,31 +214,35 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -236,11 +253,13 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -250,11 +269,13 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -264,12 +285,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = val == "true" - return val # type: ignore + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -280,11 +302,13 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -294,11 +318,13 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -309,11 +335,13 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -324,14 +352,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = val == "true" - return val # type: ignore + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -341,11 +368,13 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -355,11 +384,13 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -369,10 +400,11 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py similarity index 62% rename from src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py index 8273be467a0..21ef52d1c91 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TwoToneTraceNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class TwoToneTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -58,11 +54,13 @@ def input_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Input Port") - return val # type: ignore + return int(val) @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -72,11 +70,13 @@ def output_port(self) -> int: Value should be greater than 1. """ val = self._get_property("Output Port") - return val # type: ignore + return int(val) @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): @@ -84,13 +84,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") - return val # type: ignore + return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -100,12 +102,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - val = val == "true" - return val # type: ignore + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -115,47 +118,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - val = val == "true" - return val # type: ignore + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") - return val # type: ignore + return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] - return val # type: ignore + return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -165,11 +173,13 @@ def line_width(self) -> int: Value should be between 1 and 100. """ val = self._get_property("Line Width") - return val # type: ignore + return int(val) @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -179,42 +189,46 @@ def line_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Line Color") - return val # type: ignore + return val @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] - return val # type: ignore + return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -224,11 +238,13 @@ def symbol_size(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Symbol Size") - return val # type: ignore + return int(val) @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -238,11 +254,13 @@ def symbol_color(self): Color should be in RGB form: #RRGGBB. """ val = self._get_property("Symbol Color") - return val # type: ignore + return val @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -252,11 +270,13 @@ def symbol_line_width(self) -> int: Value should be between 1 and 20. """ val = self._get_property("Symbol Line Width") - return val # type: ignore + return int(val) @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -267,12 +287,13 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - val = val == "true" - return val # type: ignore + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -283,12 +304,14 @@ def frequency_1(self) -> float: """ val = self._get_property("Frequency 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @frequency_1.setter - def frequency_1(self, value: float | str): + def frequency_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -299,12 +322,14 @@ def amplitude_1(self) -> float: """ val = self._get_property("Amplitude 1") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @amplitude_1.setter - def amplitude_1(self, value: float | str): + def amplitude_1(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -315,12 +340,14 @@ def bandwidth_1(self) -> float: """ val = self._get_property("Bandwidth 1") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @bandwidth_1.setter - def bandwidth_1(self, value: float | str): + def bandwidth_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -331,12 +358,14 @@ def frequency_2(self) -> float: """ val = self._get_property("Frequency 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @frequency_2.setter - def frequency_2(self, value: float | str): + def frequency_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -347,12 +376,14 @@ def amplitude_2(self) -> float: """ val = self._get_property("Amplitude 2") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @amplitude_2.setter - def amplitude_2(self, value: float | str): + def amplitude_2(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -363,12 +394,14 @@ def bandwidth_2(self) -> float: """ val = self._get_property("Bandwidth 2") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @bandwidth_2.setter - def bandwidth_2(self, value: float | str): + def bandwidth_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -378,8 +411,11 @@ def noise_level(self) -> float: Value should be between -200 and 0. """ val = self._get_property("Noise Level") - return val # type: ignore + return float(val) @noise_level.setter - def noise_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) + def noise_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Level={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py similarity index 69% rename from src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py index 156ccb7d1ef..2550605d095 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxBbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class TxBbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -50,9 +46,9 @@ def delete(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): Value should be between -200 and 150. """ return self._get_table_data() @@ -64,31 +60,33 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class NoiseBehaviorOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE_BANDWIDTH = "Relative (Bandwidth)" # eslint-disable-line no-eval - RELATIVE_OFFSET = "Relative (Offset)" # eslint-disable-line no-eval - EQUATION = "Equation" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE_BANDWIDTH = "Relative (Bandwidth)" # eslint-disable-line no-eval + RELATIVE_OFFSET = "Relative (Offset)" # eslint-disable-line no-eval + EQUATION = "Equation" # eslint-disable-line no-eval @property def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior Specifies the behavior of the parametric noise profile - """ + """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val.upper()] - return val # type: ignore + return val @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Behavior={value.value}"]) @property def use_log_linear_interpolation(self) -> bool: @@ -99,11 +97,11 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - val = val == "true" - return val # type: ignore + return (val == true) @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Log-Linear Interpolation={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py similarity index 70% rename from src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py index 8d91ffbaea1..5b511707cff 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxHarmonicNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class TxHarmonicNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -49,28 +45,29 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class HarmonicTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units Specifies the units for the Harmonics - """ + """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val.upper()] - return val # type: ignore + return val @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py similarity index 74% rename from src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py index 7ce15f09aea..5b7b3dee748 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxMeasNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class TxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -52,7 +49,7 @@ def file(self) -> str: Value should be a full file path. """ val = self._get_property("File") - return val # type: ignore + return val @property def source_file(self) -> str: @@ -62,17 +59,17 @@ def source_file(self) -> str: Value should be a full file path. """ val = self._get_property("Source File") - return val # type: ignore + return val @property def transmit_frequency(self) -> float: """Transmit Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @property def use_ams_limits(self) -> bool: @@ -82,12 +79,13 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - val = val == "true" - return val # type: ignore + return (val == true) @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -98,12 +96,14 @@ def start_frequency(self) -> float: """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -114,12 +114,14 @@ def stop_frequency(self) -> float: """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def exclude_harmonics_below_noise(self) -> bool: @@ -129,20 +131,20 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - val = val == "true" - return val # type: ignore + return (val == true) @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Exclude Harmonics Below Noise={value}"]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py similarity index 69% rename from src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py index 870ae442f29..6cf45a15f9e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxNbEmissionNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class TxNbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -49,43 +45,46 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class NarrowbandBehaviorOption(Enum): - ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" # eslint-disable-line no-eval - RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" # eslint-disable-line no-eval + ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" # eslint-disable-line no-eval + RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" # eslint-disable-line no-eval @property def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior Specifies the behavior of the parametric narrowband emissions mask - """ + """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val.upper()] - return val # type: ignore + return val @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Narrowband Behavior={value.value}"]) @property def measurement_frequency(self) -> float: """Measurement Frequency Measurement frequency for the absolute freq/amp pairs. - """ + """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") - return val # type: ignore + return float(val) @measurement_frequency.setter - def measurement_frequency(self, value: float | str): + def measurement_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Frequency={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py similarity index 66% rename from src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py index 3937656749a..32cfcb3cd42 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfEmitterNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py @@ -1,30 +1,27 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class TxSpectralProfEmitterNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -39,7 +36,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -50,15 +47,17 @@ def output_voltage_peak(self) -> float: """Output Voltage Peak Output High Voltage Level: maximum voltage of the digital signal - """ + """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") - return val # type: ignore + return float(val) @output_voltage_peak.setter - def output_voltage_peak(self, value: float | str): + def output_voltage_peak(self, value : float|str): value = self._convert_to_internal_units(value, "Voltage") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Voltage Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Voltage Peak={value}"]) @property def include_phase_noise(self) -> bool: @@ -68,12 +67,13 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - val = val == "true" - return val # type: ignore + return (val == true) @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -83,11 +83,13 @@ def tx_broadband_noise(self) -> float: Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return float(val) @tx_broadband_noise.setter - def tx_broadband_noise(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Broadband Noise={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -97,14 +99,13 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - val = val == "true" - return val # type: ignore + return (val == true) @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Tx Intermod Analysis={value}"]) @property def internal_amp_gain(self) -> float: @@ -114,11 +115,13 @@ def internal_amp_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return float(val) @internal_amp_gain.setter - def internal_amp_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -128,11 +131,13 @@ def noise_figure(self) -> float: Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return float(val) @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -143,18 +148,18 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -162,12 +167,14 @@ def p1_db_point_ref_input_(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -178,12 +185,14 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -193,11 +202,13 @@ def reverse_isolation(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return float(val) @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -207,8 +218,11 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return int(val) @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py similarity index 63% rename from src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py index 6b980ddf4aa..c671c184a43 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpectralProfNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class TxSpectralProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -41,47 +37,51 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpectrumTypeOption(Enum): - NARROWBAND__BROADBAND = "Narrowband & Broadband" # eslint-disable-line no-eval - BROADBAND_ONLY = "Broadband Only" # eslint-disable-line no-eval + NARROWBAND__BROADBAND = "Narrowband & Broadband" # eslint-disable-line no-eval + BROADBAND_ONLY = "Broadband Only" # eslint-disable-line no-eval @property def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type Specifies EMI Margins to calculate - """ + """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val.upper()] - return val # type: ignore + return val @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spectrum Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spectrum Type={value.value}"]) class TxPowerOption(Enum): - PEAK_POWER = "Peak Power" # eslint-disable-line no-eval - AVERAGE_POWER = "Average Power" # eslint-disable-line no-eval + PEAK_POWER = "Peak Power" # eslint-disable-line no-eval + AVERAGE_POWER = "Average Power" # eslint-disable-line no-eval @property def tx_power(self) -> TxPowerOption: """Tx Power Method used to specify the power - """ + """ val = self._get_property("Tx Power") val = self.TxPowerOption[val.upper()] - return val # type: ignore + return val @tx_power.setter def tx_power(self, value: TxPowerOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Power={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Power={value.value}"]) @property def peak_power(self) -> float: @@ -92,12 +92,14 @@ def peak_power(self) -> float: """ val = self._get_property("Peak Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @peak_power.setter - def peak_power(self, value: float | str): + def peak_power(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Peak Power={value}"]) @property def average_power(self) -> float: @@ -108,12 +110,14 @@ def average_power(self) -> float: """ val = self._get_property("Average Power") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @average_power.setter - def average_power(self, value: float | str): + def average_power(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Average Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Average Power={value}"]) @property def include_phase_noise(self) -> bool: @@ -123,12 +127,13 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - val = val == "true" - return val # type: ignore + return (val == true) @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -138,31 +143,35 @@ def tx_broadband_noise(self) -> float: Value should be less than 1000. """ val = self._get_property("Tx Broadband Noise") - return val # type: ignore + return float(val) @tx_broadband_noise.setter - def tx_broadband_noise(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Broadband Noise={value}"]) class HarmonicTaperOption(Enum): - CONSTANT = "Constant" # eslint-disable-line no-eval - MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval - MIL_STD_461G_NAVY = "MIL-STD-461G Navy" # eslint-disable-line no-eval - DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval + CONSTANT = "Constant" # eslint-disable-line no-eval + MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval + MIL_STD_461G_NAVY = "MIL-STD-461G Navy" # eslint-disable-line no-eval + DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval @property def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper Taper type used to set amplitude of harmonics - """ + """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val.upper()] - return val # type: ignore + return val @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Taper={value.value}"]) @property def harmonic_amplitude(self) -> float: @@ -172,11 +181,13 @@ def harmonic_amplitude(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Amplitude") - return val # type: ignore + return float(val) @harmonic_amplitude.setter - def harmonic_amplitude(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Amplitude={value}"]) + def harmonic_amplitude(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Amplitude={value}"]) @property def harmonic_slope(self) -> float: @@ -186,11 +197,13 @@ def harmonic_slope(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Slope") - return val # type: ignore + return float(val) @harmonic_slope.setter - def harmonic_slope(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Slope={value}"]) + def harmonic_slope(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Slope={value}"]) @property def harmonic_intercept(self) -> float: @@ -200,11 +213,13 @@ def harmonic_intercept(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Harmonic Intercept") - return val # type: ignore + return float(val) @harmonic_intercept.setter - def harmonic_intercept(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Intercept={value}"]) + def harmonic_intercept(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Intercept={value}"]) @property def enable_harmonic_bw_expansion(self) -> bool: @@ -215,14 +230,13 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - val = val == "true" - return val # type: ignore + return (val == true) @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Enable Harmonic BW Expansion={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Harmonic BW Expansion={value}"]) @property def number_of_harmonics(self) -> int: @@ -232,11 +246,13 @@ def number_of_harmonics(self) -> int: Value should be between 1 and 1000. """ val = self._get_property("Number of Harmonics") - return val # type: ignore + return int(val) @number_of_harmonics.setter def number_of_harmonics(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Harmonics={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Harmonics={value}"]) @property def second_harmonic_level(self) -> float: @@ -246,11 +262,13 @@ def second_harmonic_level(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Second Harmonic Level") - return val # type: ignore + return float(val) @second_harmonic_level.setter - def second_harmonic_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Second Harmonic Level={value}"]) + def second_harmonic_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Second Harmonic Level={value}"]) @property def third_harmonic_level(self) -> float: @@ -260,11 +278,13 @@ def third_harmonic_level(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Third Harmonic Level") - return val # type: ignore + return float(val) @third_harmonic_level.setter - def third_harmonic_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Third Harmonic Level={value}"]) + def third_harmonic_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Third Harmonic Level={value}"]) @property def other_harmonic_levels(self) -> float: @@ -274,11 +294,13 @@ def other_harmonic_levels(self) -> float: Value should be between -1000 and 0. """ val = self._get_property("Other Harmonic Levels") - return val # type: ignore + return float(val) @other_harmonic_levels.setter - def other_harmonic_levels(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Other Harmonic Levels={value}"]) + def other_harmonic_levels(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Other Harmonic Levels={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -288,14 +310,13 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - val = val == "true" - return val # type: ignore + return (val == true) @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Tx Intermod Analysis={value}"]) @property def internal_amp_gain(self) -> float: @@ -305,11 +326,13 @@ def internal_amp_gain(self) -> float: Value should be between -1000 and 1000. """ val = self._get_property("Internal Amp Gain") - return val # type: ignore + return float(val) @internal_amp_gain.setter - def internal_amp_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -319,11 +342,13 @@ def noise_figure(self) -> float: Value should be between 0 and 50. """ val = self._get_property("Noise Figure") - return val # type: ignore + return float(val) @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -334,18 +359,18 @@ def amplifier_saturation_level(self) -> float: """ val = self._get_property("Amplifier Saturation Level") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -353,12 +378,14 @@ def p1_db_point_ref_input_(self) -> float: """ val = self._get_property("P1-dB Point, Ref. Input ") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -369,12 +396,14 @@ def ip3_ref_input(self) -> float: """ val = self._get_property("IP3, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") - return val # type: ignore + return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -384,11 +413,13 @@ def reverse_isolation(self) -> float: Value should be between -200 and 200. """ val = self._get_property("Reverse Isolation") - return val # type: ignore + return float(val) @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -398,8 +429,11 @@ def max_intermod_order(self) -> int: Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") - return val # type: ignore + return int(val) @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py similarity index 73% rename from src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py index 83ebc7beacb..3efe5d23920 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TxSpurNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class TxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -48,13 +44,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -66,26 +62,29 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] - return val # type: ignore + return val @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spur Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py b/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py similarity index 64% rename from src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py rename to src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py index 5587df10ceb..471a6aa7212 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/WalfischCouplingNode.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py @@ -1,32 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - -from ..EmitNode import EmitNode - +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode class WalfischCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): @@ -58,38 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - val = val == "true" - return val # type: ignore + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") - return val # type: ignore + return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") - return val # type: ignore + return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -99,12 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - val = val == "true" - return val # type: ignore + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -114,61 +116,68 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - val = val == "true" - return val # type: ignore + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") - return val # type: ignore + return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class PathLossTypeOption(Enum): - LOS_URBAN_CANYON = "LOS (Urban Canyon)" # eslint-disable-line no-eval - NLOS = "NLOS" # eslint-disable-line no-eval + LOS_URBAN_CANYON = "LOS (Urban Canyon)" # eslint-disable-line no-eval + NLOS = "NLOS" # eslint-disable-line no-eval @property def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type Specify LOS vs NLOS for the Walfisch-Ikegami model - """ + """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val.upper()] - return val # type: ignore + return val @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Path Loss Type={value.value}"]) class EnvironmentOption(Enum): - DENSE_METRO = "Dense Metro" # eslint-disable-line no-eval - SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" # eslint-disable-line no-eval + DENSE_METRO = "Dense Metro" # eslint-disable-line no-eval + SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Walfisch model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] - return val # type: ignore + return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def roof_height(self) -> float: @@ -179,12 +188,14 @@ def roof_height(self) -> float: """ val = self._get_property("Roof Height") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @roof_height.setter - def roof_height(self, value: float | str): + def roof_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Roof Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Roof Height={value}"]) @property def distance_between_buildings(self) -> float: @@ -195,14 +206,14 @@ def distance_between_buildings(self) -> float: """ val = self._get_property("Distance Between Buildings") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @distance_between_buildings.setter - def distance_between_buildings(self, value: float | str): + def distance_between_buildings(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Distance Between Buildings={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Distance Between Buildings={value}"]) @property def street_width(self) -> float: @@ -213,12 +224,14 @@ def street_width(self) -> float: """ val = self._get_property("Street Width") val = self._convert_from_internal_units(float(val), "Length") - return val # type: ignore + return float(val) @street_width.setter - def street_width(self, value: float | str): + def street_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Street Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Street Width={value}"]) @property def incidence_angle(self) -> float: @@ -228,11 +241,13 @@ def incidence_angle(self) -> float: Value should be between 0 and 90. """ val = self._get_property("Incidence Angle") - return val # type: ignore + return float(val) @incidence_angle.setter - def incidence_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Incidence Angle={value}"]) + def incidence_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Incidence Angle={value}"]) @property def custom_fading_margin(self) -> float: @@ -243,11 +258,13 @@ def custom_fading_margin(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Custom Fading Margin") - return val # type: ignore + return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -258,11 +275,13 @@ def polarization_mismatch(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Polarization Mismatch") - return val # type: ignore + return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -273,31 +292,35 @@ def pointing_error_loss(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Pointing Error Loss") - return val # type: ignore + return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] - return val # type: ignore + return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -308,11 +331,13 @@ def fading_availability(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Fading Availability") - return val # type: ignore + return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -322,11 +347,13 @@ def std_deviation(self) -> float: Value should be between 0 and 100. """ val = self._get_property("Std Deviation") - return val # type: ignore + return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -336,12 +363,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - val = val == "true" - return val # type: ignore + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -352,11 +380,13 @@ def rain_availability(self) -> float: Value should be between 99 and 99.999. """ val = self._get_property("Rain Availability") - return val # type: ignore + return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -366,11 +396,13 @@ def rain_rate(self) -> float: Value should be between 0 and 1000. """ val = self._get_property("Rain Rate") - return val # type: ignore + return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -381,11 +413,13 @@ def polarization_tilt_angle(self) -> float: Value should be between 0 and 180. """ val = self._get_property("Polarization Tilt Angle") - return val # type: ignore + return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -396,14 +430,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - val = val == "true" - return val # type: ignore + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -413,11 +446,13 @@ def temperature(self) -> float: Value should be between -273 and 100. """ val = self._get_property("Temperature") - return val # type: ignore + return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -427,11 +462,13 @@ def total_air_pressure(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Total Air Pressure") - return val # type: ignore + return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -441,10 +478,11 @@ def water_vapor_concentration(self) -> float: Value should be between 0 and 2000. """ val = self._get_property("Water Vapor Concentration") - return val # type: ignore + return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + From 75dbed9ff99a9eebe3cb4688df4de72a0bfaee83 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 21 May 2025 14:54:30 +0000 Subject: [PATCH 69/86] CHORE: Auto fixes from pre-commit hooks --- .../aedt/core/emit_core/nodes/emit_node.py | 3 +- .../aedt/core/emit_core/nodes/emitter_node.py | 5 +- .../emit_core/nodes/generated/Amplifier.py | 101 ++--- .../core/emit_core/nodes/generated/Band.py | 307 ++++++-------- .../core/emit_core/nodes/generated/Cable.py | 77 ++-- .../emit_core/nodes/generated/Circulator.py | 109 ++--- .../core/emit_core/nodes/generated/Filter.py | 175 +++----- .../emit_core/nodes/generated/Isolator.py | 109 ++--- .../emit_core/nodes/generated/Multiplexer.py | 67 ++- .../emit_core/nodes/generated/TR_Switch.py | 109 ++--- .../emit_core/nodes/generated/Terminator.py | 61 ++- .../emit_core/nodes/generated/Waveform.py | 219 ++++------ .../emit_core/nodes/generated/__init__.py | 318 ++++++++------- .../emit_core/nodes/generated/antenna_node.py | 385 +++++++----------- .../nodes/generated/antenna_passband.py | 60 ++- .../emit_core/nodes/generated/band_folder.py | 16 +- .../nodes/generated/band_trace_node.py | 139 +++---- .../emit_core/nodes/generated/cad_node.py | 267 +++++------- .../nodes/generated/categories_view_node.py | 16 +- .../nodes/generated/coupling_link_node.py | 28 +- .../nodes/generated/coupling_trace_node.py | 173 +++----- .../nodes/generated/couplings_node.py | 32 +- .../nodes/generated/custom_coupling_node.py | 60 ++- .../nodes/generated/emi_plot_marker_node.py | 181 ++++---- .../nodes/generated/emit_scene_node.py | 45 +- .../nodes/generated/erceg_coupling_node.py | 161 +++----- .../nodes/generated/five_g_channel_model.py | 183 ++++----- .../nodes/generated/hata_coupling_node.py | 163 +++----- .../indoor_propagation_coupling_node.py | 177 ++++---- .../generated/log_distance_coupling_node.py | 175 ++++---- .../nodes/generated/mplex_band_trace_node.py | 130 +++--- .../nodes/generated/multiplexer_band.py | 97 ++--- .../nodes/generated/outboard_trace_node.py | 129 +++--- .../parametric_coupling_trace_node.py | 135 +++--- .../nodes/generated/plot_marker_node.py | 193 ++++----- .../emit_core/nodes/generated/plot_node.py | 211 ++++------ .../nodes/generated/power_divider.py | 113 ++--- .../nodes/generated/power_trace_node.py | 131 +++--- .../nodes/generated/profile_trace_node.py | 121 +++--- .../propagation_loss_coupling_node.py | 149 +++---- .../emit_core/nodes/generated/radio_node.py | 30 +- .../nodes/generated/read_only_amplifier.py | 25 +- .../nodes/generated/read_only_antenna_node.py | 129 +++--- .../generated/read_only_antenna_passband.py | 18 +- .../nodes/generated/read_only_band.py | 119 +++--- .../nodes/generated/read_only_band_folder.py | 16 +- .../nodes/generated/read_only_cable.py | 29 +- .../nodes/generated/read_only_cad_node.py | 87 ++-- .../nodes/generated/read_only_circulator.py | 37 +- .../generated/read_only_coupling_link_node.py | 20 +- .../generated/read_only_couplings_node.py | 18 +- .../read_only_custom_coupling_node.py | 34 +- .../generated/read_only_emit_scene_node.py | 29 +- .../read_only_erceg_coupling_node.py | 51 +-- .../nodes/generated/read_only_filter.py | 49 +-- .../read_only_five_g_channel_model.py | 61 +-- .../generated/read_only_hata_coupling_node.py | 53 +-- ...d_only_indoor_propagation_coupling_node.py | 63 +-- .../nodes/generated/read_only_isolator.py | 37 +- .../read_only_log_distance_coupling_node.py | 59 +-- .../nodes/generated/read_only_multiplexer.py | 37 +- .../generated/read_only_multiplexer_band.py | 29 +- .../generated/read_only_power_divider.py | 39 +- ...ead_only_propagation_loss_coupling_node.py | 43 +- .../nodes/generated/read_only_radio_node.py | 26 +- .../nodes/generated/read_only_rx_meas_node.py | 41 +- .../read_only_rx_mixer_product_node.py | 47 ++- .../generated/read_only_rx_saturation_node.py | 16 +- .../read_only_rx_selectivity_node.py | 18 +- .../nodes/generated/read_only_rx_spur_node.py | 31 +- .../read_only_rx_susceptibility_prof_node.py | 39 +- .../generated/read_only_sampling_node.py | 39 +- .../generated/read_only_scene_group_node.py | 29 +- .../read_only_solution_coupling_node.py | 24 +- .../generated/read_only_solutions_node.py | 18 +- .../nodes/generated/read_only_terminator.py | 33 +- .../read_only_touchstone_coupling_node.py | 32 +- .../nodes/generated/read_only_tr_switch.py | 35 +- ...ad_only_two_ray_path_loss_coupling_node.py | 43 +- .../read_only_tx_bb_emission_node.py | 33 +- .../generated/read_only_tx_harmonic_node.py | 23 +- .../nodes/generated/read_only_tx_meas_node.py | 22 +- .../read_only_tx_nb_emission_node.py | 25 +- ...read_only_tx_spectral_prof_emitter_node.py | 24 +- .../read_only_tx_spectral_prof_node.py | 47 ++- .../nodes/generated/read_only_tx_spur_node.py | 31 +- .../read_only_walfisch_coupling_node.py | 55 +-- .../nodes/generated/read_only_waveform.py | 75 ++-- .../nodes/generated/result_plot_node.py | 217 ++++------ .../emit_core/nodes/generated/rx_meas_node.py | 137 +++---- .../nodes/generated/rx_mixer_product_node.py | 143 +++---- .../nodes/generated/rx_saturation_node.py | 20 +- .../nodes/generated/rx_selectivity_node.py | 26 +- .../emit_core/nodes/generated/rx_spur_node.py | 39 +- .../generated/rx_susceptibility_prof_node.py | 125 +++--- .../nodes/generated/sampling_node.py | 63 ++- .../nodes/generated/scene_group_node.py | 67 ++- .../nodes/generated/selectivity_trace_node.py | 121 +++--- .../nodes/generated/solution_coupling_node.py | 40 +- .../nodes/generated/solutions_node.py | 22 +- .../nodes/generated/spur_trace_node.py | 129 +++--- .../nodes/generated/test_noise_trace_node.py | 171 +++----- .../nodes/generated/top_level_simulation.py | 16 +- .../generated/touchstone_coupling_node.py | 64 ++- .../nodes/generated/tr_switch_trace_node.py | 129 +++--- .../nodes/generated/tunable_trace_node.py | 137 +++---- .../two_ray_path_loss_coupling_node.py | 159 +++----- .../nodes/generated/two_tone_trace_node.py | 171 +++----- .../nodes/generated/tx_bb_emission_node.py | 47 +-- .../nodes/generated/tx_harmonic_node.py | 33 +- .../emit_core/nodes/generated/tx_meas_node.py | 46 +-- .../nodes/generated/tx_nb_emission_node.py | 41 +- .../tx_spectral_prof_emitter_node.py | 90 ++-- .../nodes/generated/tx_spectral_prof_node.py | 177 ++++---- .../emit_core/nodes/generated/tx_spur_node.py | 39 +- .../nodes/generated/walfisch_coupling_node.py | 195 ++++----- 116 files changed, 4284 insertions(+), 5628 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/emit_node.py b/src/ansys/aedt/core/emit_core/nodes/emit_node.py index f450ef1486b..2d4e0dffbe0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/emit_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/emit_node.py @@ -24,11 +24,10 @@ import warnings -import ansys.aedt.core.generic.constants as consts - from ansys.aedt.core.emit_core.emit_constants import EMIT_INTERNAL_UNITS from ansys.aedt.core.emit_core.emit_constants import EMIT_VALID_UNITS from ansys.aedt.core.emit_core.emit_constants import data_rate_conv +import ansys.aedt.core.generic.constants as consts class EmitNode: diff --git a/src/ansys/aedt/core/emit_core/nodes/emitter_node.py b/src/ansys/aedt/core/emit_core/nodes/emitter_node.py index 0d72b60e903..71234bbc24c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/emitter_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/emitter_node.py @@ -23,12 +23,11 @@ # SOFTWARE. from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode -from ansys.aedt.core.emit_core.nodes.generated.radio_node import RadioNode from ansys.aedt.core.emit_core.nodes.generated.antenna_node import AntennaNode +from ansys.aedt.core.emit_core.nodes.generated.radio_node import RadioNode + class EmitterNode(RadioNode, AntennaNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False EmitNode.__init__(self, emit_obj, result_id, node_id) - - \ No newline at end of file diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index 41002ca9c0b..a6183fb9a9d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Amplifier(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,9 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,45 +70,39 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class AmplifierTypeOption(Enum): - TRANSMIT_AMPLIFIER = "Transmit Amplifier" # eslint-disable-line no-eval - RECEIVE_AMPLIFIER = "Receive Amplifier" # eslint-disable-line no-eval + TRANSMIT_AMPLIFIER = "Transmit Amplifier" # eslint-disable-line no-eval + RECEIVE_AMPLIFIER = "Receive Amplifier" # eslint-disable-line no-eval @property def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type Configures the amplifier as a Tx or Rx amplifier - """ + """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val.upper()] return val @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Type={value.value}"]) @property def gain(self) -> float: @@ -119,10 +115,8 @@ def gain(self) -> float: return float(val) @gain.setter - def gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Gain={value}"]) + def gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Gain={value}"]) @property def center_frequency(self) -> float: @@ -136,11 +130,9 @@ def center_frequency(self) -> float: return float(val) @center_frequency.setter - def center_frequency(self, value : float|str): + def center_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Center Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Frequency={value}"]) @property def bandwidth(self) -> float: @@ -154,11 +146,9 @@ def bandwidth(self) -> float: return float(val) @bandwidth.setter - def bandwidth(self, value : float|str): + def bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth={value}"]) @property def noise_figure(self) -> float: @@ -171,10 +161,8 @@ def noise_figure(self) -> float: return float(val) @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def saturation_level(self) -> float: @@ -188,11 +176,9 @@ def saturation_level(self) -> float: return float(val) @saturation_level.setter - def saturation_level(self, value : float|str): + def saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) @property def p1_db_point_ref_input(self) -> float: @@ -206,11 +192,9 @@ def p1_db_point_ref_input(self) -> float: return float(val) @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value : float|str): + def p1_db_point_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input={value}"]) @property def ip3_ref_input(self) -> float: @@ -224,11 +208,9 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def shape_factor(self) -> float: @@ -241,10 +223,8 @@ def shape_factor(self) -> float: return float(val) @shape_factor.setter - def shape_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Shape Factor={value}"]) + def shape_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) @property def reverse_isolation(self) -> float: @@ -257,10 +237,8 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -274,7 +252,4 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index 029d9456a26..e16425cce99 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Band(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -48,15 +52,13 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") return val @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) @property def use_dd_1494_mode(self) -> bool: @@ -66,13 +68,11 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return (val == true) + return val == true @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use DD-1494 Mode={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use DD-1494 Mode={value}"]) @property def use_emission_designator(self) -> bool: @@ -82,35 +82,31 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return (val == true) + return val == true @use_emission_designator.setter def use_emission_designator(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Emission Designator={value}"]) @property def emission_designator(self) -> str: """Emission Designator Enter the Emission Designator to define the bandwidth and modulation - """ + """ val = self._get_property("Emission Designator") return val @emission_designator.setter def emission_designator(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Emission Designator={value}"]) @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW Channel Bandwidth based off the emission designator - """ + """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -120,7 +116,7 @@ def emit_modulation_type(self) -> str: """EMIT Modulation Type Modulation based off the emission designator - """ + """ val = self._get_property("EMIT Modulation Type") return val @@ -133,13 +129,13 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return (val == true) + return val == true @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Override Emission Designator BW={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Override Emission Designator BW={value}"] + ) @property def channel_bandwidth(self) -> float: @@ -153,40 +149,36 @@ def channel_bandwidth(self) -> float: return float(val) @channel_bandwidth.setter - def channel_bandwidth(self, value : float|str): + def channel_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Bandwidth={value}"]) class ModulationOption(Enum): - GENERIC = "Generic" # eslint-disable-line no-eval - AM = "AM" # eslint-disable-line no-eval - LSB = "LSB" # eslint-disable-line no-eval - USB = "USB" # eslint-disable-line no-eval - FM = "FM" # eslint-disable-line no-eval - FSK = "FSK" # eslint-disable-line no-eval - MSK = "MSK" # eslint-disable-line no-eval - PSK = "PSK" # eslint-disable-line no-eval - QAM = "QAM" # eslint-disable-line no-eval - APSK = "APSK" # eslint-disable-line no-eval - RADAR = "Radar" # eslint-disable-line no-eval + GENERIC = "Generic" # eslint-disable-line no-eval + AM = "AM" # eslint-disable-line no-eval + LSB = "LSB" # eslint-disable-line no-eval + USB = "USB" # eslint-disable-line no-eval + FM = "FM" # eslint-disable-line no-eval + FSK = "FSK" # eslint-disable-line no-eval + MSK = "MSK" # eslint-disable-line no-eval + PSK = "PSK" # eslint-disable-line no-eval + QAM = "QAM" # eslint-disable-line no-eval + APSK = "APSK" # eslint-disable-line no-eval + RADAR = "Radar" # eslint-disable-line no-eval @property def modulation(self) -> ModulationOption: """Modulation Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Modulation") val = self.ModulationOption[val.upper()] return val @modulation.setter def modulation(self, value: ModulationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation={value.value}"]) @property def max_modulating_freq(self) -> float: @@ -200,11 +192,9 @@ def max_modulating_freq(self) -> float: return float(val) @max_modulating_freq.setter - def max_modulating_freq(self, value : float|str): + def max_modulating_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Modulating Freq.={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Modulating Freq.={value}"]) @property def modulation_index(self) -> float: @@ -217,10 +207,8 @@ def modulation_index(self) -> float: return float(val) @modulation_index.setter - def modulation_index(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation Index={value}"]) + def modulation_index(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Index={value}"]) @property def freq_deviation(self) -> float: @@ -234,11 +222,9 @@ def freq_deviation(self) -> float: return float(val) @freq_deviation.setter - def freq_deviation(self, value : float|str): + def freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) @property def bit_rate(self) -> float: @@ -252,11 +238,9 @@ def bit_rate(self) -> float: return float(val) @bit_rate.setter - def bit_rate(self, value : float|str): + def bit_rate(self, value: float | str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bit Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bit Rate={value}"]) @property def sidelobes(self) -> int: @@ -270,13 +254,11 @@ def sidelobes(self) -> int: @sidelobes.setter def sidelobes(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sidelobes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sidelobes={value}"]) @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation FSK frequency deviation: helps determine spectral profile Value should be greater than 1. @@ -286,102 +268,92 @@ def freq_deviation_(self) -> float: return float(val) @freq_deviation_.setter - def freq_deviation_(self, value : float|str): + def freq_deviation_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation ={value}"]) class PSKTypeOption(Enum): - BPSK = "BPSK" # eslint-disable-line no-eval - QPSK = "QPSK" # eslint-disable-line no-eval - PSK_8 = "PSK-8" # eslint-disable-line no-eval - PSK_16 = "PSK-16" # eslint-disable-line no-eval - PSK_32 = "PSK-32" # eslint-disable-line no-eval - PSK_64 = "PSK-64" # eslint-disable-line no-eval + BPSK = "BPSK" # eslint-disable-line no-eval + QPSK = "QPSK" # eslint-disable-line no-eval + PSK_8 = "PSK-8" # eslint-disable-line no-eval + PSK_16 = "PSK-16" # eslint-disable-line no-eval + PSK_32 = "PSK-32" # eslint-disable-line no-eval + PSK_64 = "PSK-64" # eslint-disable-line no-eval @property def psk_type(self) -> PSKTypeOption: """PSK Type PSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val.upper()] return val @psk_type.setter def psk_type(self, value: PSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"PSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"PSK Type={value.value}"]) class FSKTypeOption(Enum): - FSK_2 = "FSK-2" # eslint-disable-line no-eval - FSK_4 = "FSK-4" # eslint-disable-line no-eval - FSK_8 = "FSK-8" # eslint-disable-line no-eval + FSK_2 = "FSK-2" # eslint-disable-line no-eval + FSK_4 = "FSK-4" # eslint-disable-line no-eval + FSK_8 = "FSK-8" # eslint-disable-line no-eval @property def fsk_type(self) -> FSKTypeOption: """FSK Type FSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val.upper()] return val @fsk_type.setter def fsk_type(self, value: FSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FSK Type={value.value}"]) class QAMTypeOption(Enum): - QAM_4 = "QAM-4" # eslint-disable-line no-eval - QAM_16 = "QAM-16" # eslint-disable-line no-eval - QAM_64 = "QAM-64" # eslint-disable-line no-eval - QAM_256 = "QAM-256" # eslint-disable-line no-eval - QAM_1024 = "QAM-1024" # eslint-disable-line no-eval + QAM_4 = "QAM-4" # eslint-disable-line no-eval + QAM_16 = "QAM-16" # eslint-disable-line no-eval + QAM_64 = "QAM-64" # eslint-disable-line no-eval + QAM_256 = "QAM-256" # eslint-disable-line no-eval + QAM_1024 = "QAM-1024" # eslint-disable-line no-eval @property def qam_type(self) -> QAMTypeOption: """QAM Type QAM modulation order: helps determine spectral profile - """ + """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val.upper()] return val @qam_type.setter def qam_type(self, value: QAMTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"QAM Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"QAM Type={value.value}"]) class APSKTypeOption(Enum): - APSK_4 = "APSK-4" # eslint-disable-line no-eval - APSK_16 = "APSK-16" # eslint-disable-line no-eval - APSK_64 = "APSK-64" # eslint-disable-line no-eval - APSK_256 = "APSK-256" # eslint-disable-line no-eval - APSK_1024 = "APSK-1024" # eslint-disable-line no-eval + APSK_4 = "APSK-4" # eslint-disable-line no-eval + APSK_16 = "APSK-16" # eslint-disable-line no-eval + APSK_64 = "APSK-64" # eslint-disable-line no-eval + APSK_256 = "APSK-256" # eslint-disable-line no-eval + APSK_1024 = "APSK-1024" # eslint-disable-line no-eval @property def apsk_type(self) -> APSKTypeOption: """APSK Type APSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val.upper()] return val @apsk_type.setter def apsk_type(self, value: APSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"APSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"APSK Type={value.value}"]) @property def start_frequency(self) -> float: @@ -395,11 +367,9 @@ def start_frequency(self) -> float: return float(val) @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -413,11 +383,9 @@ def stop_frequency(self) -> float: return float(val) @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -431,11 +399,9 @@ def channel_spacing(self) -> float: return float(val) @channel_spacing.setter - def channel_spacing(self, value : float|str): + def channel_spacing(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) @property def tx_offset(self) -> float: @@ -449,34 +415,30 @@ def tx_offset(self) -> float: return float(val) @tx_offset.setter - def tx_offset(self, value : float|str): + def tx_offset(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Offset={value}"]) class RadarTypeOption(Enum): - CW = "CW" # eslint-disable-line no-eval - FM_CW = "FM-CW" # eslint-disable-line no-eval - FM_PULSE = "FM Pulse" # eslint-disable-line no-eval - NON_FM_PULSE = "Non-FM Pulse" # eslint-disable-line no-eval - PHASE_CODED = "Phase Coded" # eslint-disable-line no-eval + CW = "CW" # eslint-disable-line no-eval + FM_CW = "FM-CW" # eslint-disable-line no-eval + FM_PULSE = "FM Pulse" # eslint-disable-line no-eval + NON_FM_PULSE = "Non-FM Pulse" # eslint-disable-line no-eval + PHASE_CODED = "Phase Coded" # eslint-disable-line no-eval @property def radar_type(self) -> RadarTypeOption: """Radar Type Radar type: helps determine spectral profile - """ + """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val.upper()] return val @radar_type.setter def radar_type(self, value: RadarTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Radar Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radar Type={value.value}"]) @property def hopping_radar(self) -> bool: @@ -486,13 +448,11 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return (val == true) + return val == true @hopping_radar.setter def hopping_radar(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hopping Radar={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hopping Radar={value}"]) @property def post_october_2020_procurement(self) -> bool: @@ -503,13 +463,13 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return (val == true) + return val == true @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Post October 2020 Procurement={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Post October 2020 Procurement={value}"] + ) @property def hop_range_min_freq(self) -> float: @@ -523,11 +483,9 @@ def hop_range_min_freq(self) -> float: return float(val) @hop_range_min_freq.setter - def hop_range_min_freq(self, value : float|str): + def hop_range_min_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hop Range Min Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Min Freq={value}"]) @property def hop_range_max_freq(self) -> float: @@ -541,11 +499,9 @@ def hop_range_max_freq(self) -> float: return float(val) @hop_range_max_freq.setter - def hop_range_max_freq(self, value : float|str): + def hop_range_max_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hop Range Max Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Max Freq={value}"]) @property def pulse_duration(self) -> float: @@ -559,11 +515,9 @@ def pulse_duration(self) -> float: return float(val) @pulse_duration.setter - def pulse_duration(self, value : float|str): + def pulse_duration(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Duration={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Duration={value}"]) @property def pulse_rise_time(self) -> float: @@ -577,11 +531,9 @@ def pulse_rise_time(self) -> float: return float(val) @pulse_rise_time.setter - def pulse_rise_time(self, value : float|str): + def pulse_rise_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Rise Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Rise Time={value}"]) @property def pulse_fall_time(self) -> float: @@ -595,11 +547,9 @@ def pulse_fall_time(self) -> float: return float(val) @pulse_fall_time.setter - def pulse_fall_time(self, value : float|str): + def pulse_fall_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Fall Time={value}"]) @property def pulse_repetition_rate(self) -> float: @@ -612,10 +562,8 @@ def pulse_repetition_rate(self) -> float: return float(val) @pulse_repetition_rate.setter - def pulse_repetition_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Repetition Rate={value}"]) + def pulse_repetition_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Repetition Rate={value}"]) @property def number_of_chips(self) -> float: @@ -628,10 +576,8 @@ def number_of_chips(self) -> float: return float(val) @number_of_chips.setter - def number_of_chips(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Chips={value}"]) + def number_of_chips(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Chips={value}"]) @property def pulse_compression_ratio(self) -> float: @@ -644,10 +590,8 @@ def pulse_compression_ratio(self) -> float: return float(val) @pulse_compression_ratio.setter - def pulse_compression_ratio(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Compression Ratio={value}"]) + def pulse_compression_ratio(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Compression Ratio={value}"]) @property def fm_chirp_period(self) -> float: @@ -661,11 +605,9 @@ def fm_chirp_period(self) -> float: return float(val) @fm_chirp_period.setter - def fm_chirp_period(self, value : float|str): + def fm_chirp_period(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Chirp Period={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Chirp Period={value}"]) @property def fm_freq_deviation(self) -> float: @@ -679,11 +621,9 @@ def fm_freq_deviation(self) -> float: return float(val) @fm_freq_deviation.setter - def fm_freq_deviation(self, value : float|str): + def fm_freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Freq Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Deviation={value}"]) @property def fm_freq_dev_bandwidth(self) -> float: @@ -698,9 +638,6 @@ def fm_freq_dev_bandwidth(self) -> float: return float(val) @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value : float|str): + def fm_freq_dev_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Freq Dev Bandwidth={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Dev Bandwidth={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index 9f56147a2c4..bb8c0bc9d68 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Cable(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,9 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,30 +70,26 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - CONSTANT_LOSS = "Constant Loss" # eslint-disable-line no-eval - COAXIAL_CABLE = "Coaxial Cable" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + CONSTANT_LOSS = "Constant Loss" # eslint-disable-line no-eval + COAXIAL_CABLE = "Coaxial Cable" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -99,16 +97,14 @@ def type(self) -> TypeOption: Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def length(self) -> float: @@ -122,11 +118,9 @@ def length(self) -> float: return float(val) @length.setter - def length(self, value : float|str): + def length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) @property def loss_per_length(self) -> float: @@ -139,10 +133,8 @@ def loss_per_length(self) -> float: return float(val) @loss_per_length.setter - def loss_per_length(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Loss Per Length={value}"]) + def loss_per_length(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Loss Per Length={value}"]) @property def measurement_length(self) -> float: @@ -156,11 +148,9 @@ def measurement_length(self) -> float: return float(val) @measurement_length.setter - def measurement_length(self, value : float|str): + def measurement_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Length={value}"]) @property def resistive_loss_constant(self) -> float: @@ -173,10 +163,8 @@ def resistive_loss_constant(self) -> float: return float(val) @resistive_loss_constant.setter - def resistive_loss_constant(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Resistive Loss Constant={value}"]) + def resistive_loss_constant(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resistive Loss Constant={value}"]) @property def dielectric_loss_constant(self) -> float: @@ -189,17 +177,14 @@ def dielectric_loss_constant(self) -> float: return float(val) @dielectric_loss_constant.setter - def dielectric_loss_constant(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Dielectric Loss Constant={value}"]) + def dielectric_loss_constant(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Dielectric Loss Constant={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index c01d32ab9f7..85a69dbd52a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Circulator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,9 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,29 +70,25 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -98,36 +96,32 @@ def type(self) -> TypeOption: Type of circulator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the circulator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -140,10 +134,8 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -154,13 +146,11 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return (val == true) + return val == true @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -173,10 +163,8 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -187,13 +175,11 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -206,10 +192,8 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -223,11 +207,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -241,11 +223,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -259,11 +239,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -277,18 +255,15 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index c5b58ede000..20c3080ab17 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Filter(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,9 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,34 +70,30 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - LOW_PASS = "Low Pass" # eslint-disable-line no-eval - HIGH_PASS = "High Pass" # eslint-disable-line no-eval - BAND_PASS = "Band Pass" # eslint-disable-line no-eval - BAND_STOP = "Band Stop" # eslint-disable-line no-eval - TUNABLE_BANDPASS = "Tunable Bandpass" # eslint-disable-line no-eval - TUNABLE_BANDSTOP = "Tunable Bandstop" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + LOW_PASS = "Low Pass" # eslint-disable-line no-eval + HIGH_PASS = "High Pass" # eslint-disable-line no-eval + BAND_PASS = "Band Pass" # eslint-disable-line no-eval + BAND_STOP = "Band Stop" # eslint-disable-line no-eval + TUNABLE_BANDPASS = "Tunable Bandpass" # eslint-disable-line no-eval + TUNABLE_BANDSTOP = "Tunable Bandstop" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -103,16 +101,14 @@ def type(self) -> TypeOption: Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def insertion_loss(self) -> float: @@ -125,10 +121,8 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -141,10 +135,8 @@ def stop_band_attenuation(self) -> float: return float(val) @stop_band_attenuation.setter - def stop_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -158,11 +150,9 @@ def max_pass_band(self) -> float: return float(val) @max_pass_band.setter - def max_pass_band(self, value : float|str): + def max_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -176,11 +166,9 @@ def min_stop_band(self) -> float: return float(val) @min_stop_band.setter - def min_stop_band(self, value : float|str): + def min_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -194,11 +182,9 @@ def max_stop_band(self) -> float: return float(val) @max_stop_band.setter - def max_stop_band(self, value : float|str): + def max_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -212,11 +198,9 @@ def min_pass_band(self) -> float: return float(val) @min_pass_band.setter - def min_pass_band(self, value : float|str): + def min_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -230,11 +214,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -248,11 +230,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -266,11 +246,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -284,15 +262,13 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff Lower cutoff frequency Value should be between 1 and 1e+11. @@ -302,15 +278,13 @@ def lower_cutoff_(self) -> float: return float(val) @lower_cutoff_.setter - def lower_cutoff_(self, value : float|str): + def lower_cutoff_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff ={value}"]) @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band Lower stop band frequency Value should be between 1 and 1e+11. @@ -320,15 +294,13 @@ def lower_stop_band_(self) -> float: return float(val) @lower_stop_band_.setter - def lower_stop_band_(self, value : float|str): + def lower_stop_band_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band ={value}"]) @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band Higher stop band frequency Value should be between 1 and 1e+11. @@ -338,15 +310,13 @@ def higher_stop_band_(self) -> float: return float(val) @higher_stop_band_.setter - def higher_stop_band_(self, value : float|str): + def higher_stop_band_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band ={value}"]) @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff Higher cutoff frequency Value should be between 1 and 1e+11. @@ -356,15 +326,13 @@ def higher_cutoff_(self) -> float: return float(val) @higher_cutoff_.setter - def higher_cutoff_(self, value : float|str): + def higher_cutoff_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff ={value}"]) @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency Lowest tuned frequency Value should be between 1 and 1e+11. @@ -374,15 +342,13 @@ def lowest_tuned_frequency_(self) -> float: return float(val) @lowest_tuned_frequency_.setter - def lowest_tuned_frequency_(self, value : float|str): + def lowest_tuned_frequency_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lowest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lowest Tuned Frequency ={value}"]) @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency Highest tuned frequency Value should be between 1 and 1e+11. @@ -392,11 +358,9 @@ def highest_tuned_frequency_(self) -> float: return float(val) @highest_tuned_frequency_.setter - def highest_tuned_frequency_(self, value : float|str): + def highest_tuned_frequency_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Highest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highest Tuned Frequency ={value}"]) @property def percent_bandwidth(self) -> float: @@ -409,10 +373,8 @@ def percent_bandwidth(self) -> float: return float(val) @percent_bandwidth.setter - def percent_bandwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Percent Bandwidth={value}"]) + def percent_bandwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percent Bandwidth={value}"]) @property def shape_factor(self) -> float: @@ -425,17 +387,14 @@ def shape_factor(self) -> float: return float(val) @shape_factor.setter - def shape_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Shape Factor={value}"]) + def shape_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index 7a29c30dd4f..c1419303913 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Isolator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,9 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,29 +70,25 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -98,36 +96,32 @@ def type(self) -> TypeOption: Type of isolator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the isolator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -140,10 +134,8 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -154,13 +146,11 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return (val == true) + return val == true @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -173,10 +163,8 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -187,13 +175,11 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -206,10 +192,8 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -223,11 +207,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -241,11 +223,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -259,11 +239,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -277,18 +255,15 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index 59c0bf7629f..04801689318 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Multiplexer(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -57,9 +61,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -72,29 +74,25 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): - BY_PASS_BAND = "By Pass Band" # eslint-disable-line no-eval - BY_FILE = "By File" # eslint-disable-line no-eval + BY_PASS_BAND = "By Pass Band" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -103,36 +101,32 @@ def type(self) -> TypeOption: simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the multiplexer. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def flip_ports_vertically(self) -> bool: @@ -142,13 +136,11 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return (val == true) + return val == true @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Flip Ports Vertically={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flip Ports Vertically={value}"]) @property def ports(self): @@ -156,22 +148,19 @@ def ports(self): Assigns the child port nodes to the multiplexers ports "A list of values." - """ + """ val = self._get_property("Ports") return val @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index d0f5217ddb0..5cc6b848abc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TR_Switch(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,9 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,65 +70,59 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TxPortOption(Enum): - PORT_1 = "Port 1" # eslint-disable-line no-eval - PORT_2 = "Port 2" # eslint-disable-line no-eval + PORT_1 = "Port 1" # eslint-disable-line no-eval + PORT_2 = "Port 2" # eslint-disable-line no-eval @property def tx_port(self) -> TxPortOption: """Tx Port Specifies which port on the TR Switch is part of the Tx path. - """ + """ val = self._get_property("Tx Port") val = self.TxPortOption[val.upper()] return val @tx_port.setter def tx_port(self, value: TxPortOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Port={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Port={value.value}"]) class CommonPortLocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def common_port_location(self) -> CommonPortLocationOption: """Common Port Location Defines the orientation of the tr switch. - """ + """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val.upper()] return val @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Common Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Common Port Location={value.value}"] + ) @property def insertion_loss(self) -> float: @@ -139,10 +135,8 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_isolation(self) -> bool: @@ -153,13 +147,11 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return (val == true) + return val == true @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -172,10 +164,8 @@ def isolation(self) -> float: return float(val) @isolation.setter - def isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Isolation={value}"]) + def isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -186,13 +176,11 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -205,10 +193,8 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -222,11 +208,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -240,11 +224,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -258,11 +240,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -276,9 +256,6 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index ec25a9fa320..0e657477a44 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Terminator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,9 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,29 +70,25 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -98,36 +96,32 @@ def type(self) -> TypeOption: Type of terminator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class PortLocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_location(self) -> PortLocationOption: """Port Location Defines the orientation of the terminator. - """ + """ val = self._get_property("Port Location") val = self.PortLocationOption[val.upper()] return val @port_location.setter def port_location(self, value: PortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port Location={value.value}"]) @property def vswr(self) -> float: @@ -142,17 +136,14 @@ def vswr(self) -> float: return float(val) @vswr.setter - def vswr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"VSWR={value}"]) + def vswr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py index 3171537777a..0f82611f494 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Waveform(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -48,38 +52,34 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") return val @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) class WaveformOption(Enum): - PERIODIC_CLOCK = "Periodic Clock" # eslint-disable-line no-eval - SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" # eslint-disable-line no-eval - PRBS = "PRBS" # eslint-disable-line no-eval - PRBS_PERIODIC = "PRBS (Periodic)" # eslint-disable-line no-eval - IMPORTED = "Imported" # eslint-disable-line no-eval + PERIODIC_CLOCK = "Periodic Clock" # eslint-disable-line no-eval + SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" # eslint-disable-line no-eval + PRBS = "PRBS" # eslint-disable-line no-eval + PRBS_PERIODIC = "PRBS (Periodic)" # eslint-disable-line no-eval + IMPORTED = "Imported" # eslint-disable-line no-eval @property def waveform(self) -> WaveformOption: """Waveform Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Waveform") val = self.WaveformOption[val.upper()] return val @waveform.setter def waveform(self, value: WaveformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Waveform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveform={value.value}"]) @property def start_frequency(self) -> float: @@ -93,11 +93,9 @@ def start_frequency(self) -> float: return float(val) @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -111,11 +109,9 @@ def stop_frequency(self) -> float: return float(val) @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -129,11 +125,9 @@ def channel_spacing(self) -> float: return float(val) @channel_spacing.setter - def channel_spacing(self, value : float|str): + def channel_spacing(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) @property def clock_duty_cycle(self) -> float: @@ -146,10 +140,8 @@ def clock_duty_cycle(self) -> float: return float(val) @clock_duty_cycle.setter - def clock_duty_cycle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Clock Duty Cycle={value}"]) + def clock_duty_cycle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Duty Cycle={value}"]) @property def clock_risefall_time(self) -> float: @@ -163,32 +155,28 @@ def clock_risefall_time(self) -> float: return float(val) @clock_risefall_time.setter - def clock_risefall_time(self, value : float|str): + def clock_risefall_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Clock Rise/Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Rise/Fall Time={value}"]) class SpreadingTypeOption(Enum): - LOW_SPREAD = "Low Spread" # eslint-disable-line no-eval - CENTER_SPREAD = "Center Spread" # eslint-disable-line no-eval - HIGH_SPREAD = "High Spread" # eslint-disable-line no-eval + LOW_SPREAD = "Low Spread" # eslint-disable-line no-eval + CENTER_SPREAD = "Center Spread" # eslint-disable-line no-eval + HIGH_SPREAD = "High Spread" # eslint-disable-line no-eval @property def spreading_type(self) -> SpreadingTypeOption: """Spreading Type Type of spreading employed by the Spread Spectrum Clock - """ + """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val.upper()] return val @spreading_type.setter def spreading_type(self, value: SpreadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spreading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spreading Type={value.value}"]) @property def spread_percentage(self) -> float: @@ -201,10 +189,8 @@ def spread_percentage(self) -> float: return float(val) @spread_percentage.setter - def spread_percentage(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spread Percentage={value}"]) + def spread_percentage(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spread Percentage={value}"]) @property def imported_spectrum(self) -> str: @@ -216,16 +202,14 @@ def imported_spectrum(self) -> str: @imported_spectrum.setter def imported_spectrum(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Imported Spectrum={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Imported Spectrum={value}"]) @property def raw_data_format(self) -> str: """Raw Data Format Format of the imported raw data - """ + """ val = self._get_property("Raw Data Format") return val @@ -241,11 +225,9 @@ def system_impedance(self) -> float: return float(val) @system_impedance.setter - def system_impedance(self, value : float|str): + def system_impedance(self, value: float | str): value = self._convert_to_internal_units(value, "Resistance") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"System Impedance={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"System Impedance={value}"]) @property def advanced_extraction_params(self) -> bool: @@ -255,13 +237,13 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return (val == true) + return val == true @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Advanced Extraction Params={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Advanced Extraction Params={value}"] + ) @property def nb_window_size(self) -> float: @@ -275,10 +257,8 @@ def nb_window_size(self) -> float: return float(val) @nb_window_size.setter - def nb_window_size(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NB Window Size={value}"]) + def nb_window_size(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Window Size={value}"]) @property def bb_smoothing_factor(self) -> float: @@ -291,10 +271,8 @@ def bb_smoothing_factor(self) -> float: return float(val) @bb_smoothing_factor.setter - def bb_smoothing_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Smoothing Factor={value}"]) + def bb_smoothing_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Smoothing Factor={value}"]) @property def nb_detector_threshold(self) -> float: @@ -307,30 +285,26 @@ def nb_detector_threshold(self) -> float: return float(val) @nb_detector_threshold.setter - def nb_detector_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NB Detector Threshold={value}"]) + def nb_detector_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Detector Threshold={value}"]) class AlgorithmOption(Enum): - FFT = "FFT" # eslint-disable-line no-eval - FOURIER_TRANSFORM = "Fourier Transform" # eslint-disable-line no-eval + FFT = "FFT" # eslint-disable-line no-eval + FOURIER_TRANSFORM = "Fourier Transform" # eslint-disable-line no-eval @property def algorithm(self) -> AlgorithmOption: """Algorithm Algorithm used to transform the imported time domain spectrum - """ + """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val.upper()] return val @algorithm.setter def algorithm(self, value: AlgorithmOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Algorithm={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Algorithm={value.value}"]) @property def start_time(self) -> float: @@ -344,28 +318,24 @@ def start_time(self) -> float: return float(val) @start_time.setter - def start_time(self, value : float|str): + def start_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Time={value}"]) @property def stop_time(self) -> float: """Stop Time Final time of the imported time domain spectrum - """ + """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") return float(val) @stop_time.setter - def stop_time(self, value : float|str): + def stop_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Time={value}"]) @property def max_frequency(self) -> float: @@ -379,38 +349,34 @@ def max_frequency(self) -> float: return float(val) @max_frequency.setter - def max_frequency(self, value : float|str): + def max_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Frequency={value}"]) class WindowTypeOption(Enum): - RECTANGULAR = "Rectangular" # eslint-disable-line no-eval - BARTLETT = "Bartlett" # eslint-disable-line no-eval - BLACKMAN = "Blackman" # eslint-disable-line no-eval - HAMMING = "Hamming" # eslint-disable-line no-eval - HANNING = "Hanning" # eslint-disable-line no-eval - KAISER = "Kaiser" # eslint-disable-line no-eval - LANZCOS = "Lanzcos" # eslint-disable-line no-eval - WELCH = "Welch" # eslint-disable-line no-eval - WEBER = "Weber" # eslint-disable-line no-eval + RECTANGULAR = "Rectangular" # eslint-disable-line no-eval + BARTLETT = "Bartlett" # eslint-disable-line no-eval + BLACKMAN = "Blackman" # eslint-disable-line no-eval + HAMMING = "Hamming" # eslint-disable-line no-eval + HANNING = "Hanning" # eslint-disable-line no-eval + KAISER = "Kaiser" # eslint-disable-line no-eval + LANZCOS = "Lanzcos" # eslint-disable-line no-eval + WELCH = "Welch" # eslint-disable-line no-eval + WEBER = "Weber" # eslint-disable-line no-eval @property def window_type(self) -> WindowTypeOption: """Window Type Windowing scheme used for importing time domain spectrum - """ + """ val = self._get_property("Window Type") val = self.WindowTypeOption[val.upper()] return val @window_type.setter def window_type(self, value: WindowTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Window Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Window Type={value.value}"]) @property def kaiser_parameter(self) -> float: @@ -423,10 +389,8 @@ def kaiser_parameter(self) -> float: return float(val) @kaiser_parameter.setter - def kaiser_parameter(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Kaiser Parameter={value}"]) + def kaiser_parameter(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Kaiser Parameter={value}"]) @property def adjust_coherent_gain(self) -> bool: @@ -436,13 +400,11 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return (val == true) + return val == true @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adjust Coherent Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adjust Coherent Gain={value}"]) @property def data_rate(self) -> float: @@ -456,11 +418,9 @@ def data_rate(self) -> float: return float(val) @data_rate.setter - def data_rate(self, value : float|str): + def data_rate(self, value: float | str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Rate={value}"]) @property def num_of_bits(self) -> int: @@ -474,9 +434,7 @@ def num_of_bits(self) -> int: @num_of_bits.setter def num_of_bits(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Num of Bits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Num of Bits={value}"]) @property def use_envelope(self) -> bool: @@ -486,13 +444,11 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return (val == true) + return val == true @use_envelope.setter def use_envelope(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Envelope={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Envelope={value}"]) @property def min_ptsnull(self) -> int: @@ -506,9 +462,7 @@ def min_ptsnull(self) -> int: @min_ptsnull.setter def min_ptsnull(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pts/Null={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pts/Null={value}"]) @property def delay_skew(self) -> float: @@ -522,9 +476,6 @@ def delay_skew(self) -> float: return float(val) @delay_skew.setter - def delay_skew(self, value : float|str): + def delay_skew(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Delay Skew={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Delay Skew={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index 255b60e62e6..1cb32f85690 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,11 +1,35 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from .amplifier import Amplifier from .antenna_node import AntennaNode from .antenna_passband import AntennaPassband from .band import Band from .band_folder import BandFolder from .band_trace_node import BandTraceNode -from .cad_node import CADNode from .cable import Cable +from .cad_node import CADNode from .categories_view_node import CategoriesViewNode from .circulator import Circulator from .coupling_link_node import CouplingLinkNode @@ -33,44 +57,13 @@ from .profile_trace_node import ProfileTraceNode from .propagation_loss_coupling_node import PropagationLossCouplingNode from .radio_node import RadioNode -from .result_plot_node import ResultPlotNode -from .rx_meas_node import RxMeasNode -from .rx_mixer_product_node import RxMixerProductNode -from .rx_saturation_node import RxSaturationNode -from .rx_selectivity_node import RxSelectivityNode -from .rx_spur_node import RxSpurNode -from .rx_susceptibility_prof_node import RxSusceptibilityProfNode -from .sampling_node import SamplingNode -from .scene_group_node import SceneGroupNode -from .selectivity_trace_node import SelectivityTraceNode -from .solution_coupling_node import SolutionCouplingNode -from .solutions_node import SolutionsNode -from .spur_trace_node import SpurTraceNode -from .tr_switch import TR_Switch -from .tr_switch_trace_node import TRSwitchTraceNode -from .terminator import Terminator -from .test_noise_trace_node import TestNoiseTraceNode -from .top_level_simulation import TopLevelSimulation -from .touchstone_coupling_node import TouchstoneCouplingNode -from .tunable_trace_node import TunableTraceNode -from .two_ray_path_loss_coupling_node import TwoRayPathLossCouplingNode -from .two_tone_trace_node import TwoToneTraceNode -from .tx_bb_emission_node import TxBbEmissionNode -from .tx_harmonic_node import TxHarmonicNode -from .tx_meas_node import TxMeasNode -from .tx_nb_emission_node import TxNbEmissionNode -from .tx_spectral_prof_emitter_node import TxSpectralProfEmitterNode -from .tx_spectral_prof_node import TxSpectralProfNode -from .tx_spur_node import TxSpurNode -from .walfisch_coupling_node import WalfischCouplingNode -from .waveform import Waveform from .read_only_amplifier import ReadOnlyAmplifier from .read_only_antenna_node import ReadOnlyAntennaNode from .read_only_antenna_passband import ReadOnlyAntennaPassband from .read_only_band import ReadOnlyBand from .read_only_band_folder import ReadOnlyBandFolder -from .read_only_cad_node import ReadOnlyCADNode from .read_only_cable import ReadOnlyCable +from .read_only_cad_node import ReadOnlyCADNode from .read_only_circulator import ReadOnlyCirculator from .read_only_coupling_link_node import ReadOnlyCouplingLinkNode from .read_only_couplings_node import ReadOnlyCouplingsNode @@ -98,9 +91,9 @@ from .read_only_scene_group_node import ReadOnlySceneGroupNode from .read_only_solution_coupling_node import ReadOnlySolutionCouplingNode from .read_only_solutions_node import ReadOnlySolutionsNode -from .read_only_tr_switch import ReadOnlyTR_Switch from .read_only_terminator import ReadOnlyTerminator from .read_only_touchstone_coupling_node import ReadOnlyTouchstoneCouplingNode +from .read_only_tr_switch import ReadOnlyTR_Switch from .read_only_two_ray_path_loss_coupling_node import ReadOnlyTwoRayPathLossCouplingNode from .read_only_tx_bb_emission_node import ReadOnlyTxBbEmissionNode from .read_only_tx_harmonic_node import ReadOnlyTxHarmonicNode @@ -111,119 +104,150 @@ from .read_only_tx_spur_node import ReadOnlyTxSpurNode from .read_only_walfisch_coupling_node import ReadOnlyWalfischCouplingNode from .read_only_waveform import ReadOnlyWaveform +from .result_plot_node import ResultPlotNode +from .rx_meas_node import RxMeasNode +from .rx_mixer_product_node import RxMixerProductNode +from .rx_saturation_node import RxSaturationNode +from .rx_selectivity_node import RxSelectivityNode +from .rx_spur_node import RxSpurNode +from .rx_susceptibility_prof_node import RxSusceptibilityProfNode +from .sampling_node import SamplingNode +from .scene_group_node import SceneGroupNode +from .selectivity_trace_node import SelectivityTraceNode +from .solution_coupling_node import SolutionCouplingNode +from .solutions_node import SolutionsNode +from .spur_trace_node import SpurTraceNode +from .terminator import Terminator +from .test_noise_trace_node import TestNoiseTraceNode +from .top_level_simulation import TopLevelSimulation +from .touchstone_coupling_node import TouchstoneCouplingNode +from .tr_switch import TR_Switch +from .tr_switch_trace_node import TRSwitchTraceNode +from .tunable_trace_node import TunableTraceNode +from .two_ray_path_loss_coupling_node import TwoRayPathLossCouplingNode +from .two_tone_trace_node import TwoToneTraceNode +from .tx_bb_emission_node import TxBbEmissionNode +from .tx_harmonic_node import TxHarmonicNode +from .tx_meas_node import TxMeasNode +from .tx_nb_emission_node import TxNbEmissionNode +from .tx_spectral_prof_emitter_node import TxSpectralProfEmitterNode +from .tx_spectral_prof_node import TxSpectralProfNode +from .tx_spur_node import TxSpurNode +from .walfisch_coupling_node import WalfischCouplingNode +from .waveform import Waveform __all__ = [ - 'Amplifier', - 'AntennaNode', - 'AntennaPassband', - 'Band', - 'BandFolder', - 'BandTraceNode', - 'CADNode', - 'Cable', - 'CategoriesViewNode', - 'Circulator', - 'CouplingLinkNode', - 'CouplingTraceNode', - 'CouplingsNode', - 'CustomCouplingNode', - 'EmiPlotMarkerNode', - 'EmitSceneNode', - 'ErcegCouplingNode', - 'Filter', - 'FiveGChannelModel', - 'HataCouplingNode', - 'IndoorPropagationCouplingNode', - 'Isolator', - 'LogDistanceCouplingNode', - 'MPlexBandTraceNode', - 'Multiplexer', - 'MultiplexerBand', - 'OutboardTraceNode', - 'ParametricCouplingTraceNode', - 'PlotMarkerNode', - 'PlotNode', - 'PowerDivider', - 'PowerTraceNode', - 'ProfileTraceNode', - 'PropagationLossCouplingNode', - 'RadioNode', - 'ResultPlotNode', - 'RxMeasNode', - 'RxMixerProductNode', - 'RxSaturationNode', - 'RxSelectivityNode', - 'RxSpurNode', - 'RxSusceptibilityProfNode', - 'SamplingNode', - 'SceneGroupNode', - 'SelectivityTraceNode', - 'SolutionCouplingNode', - 'SolutionsNode', - 'SpurTraceNode', - 'TR_Switch', - 'TRSwitchTraceNode', - 'Terminator', - 'TestNoiseTraceNode', - 'TopLevelSimulation', - 'TouchstoneCouplingNode', - 'TunableTraceNode', - 'TwoRayPathLossCouplingNode', - 'TwoToneTraceNode', - 'TxBbEmissionNode', - 'TxHarmonicNode', - 'TxMeasNode', - 'TxNbEmissionNode', - 'TxSpectralProfEmitterNode', - 'TxSpectralProfNode', - 'TxSpurNode', - 'WalfischCouplingNode', - 'Waveform', - 'ReadOnlyAmplifier', - 'ReadOnlyAntennaNode', - 'ReadOnlyAntennaPassband', - 'ReadOnlyBand', - 'ReadOnlyBandFolder', - 'ReadOnlyCADNode', - 'ReadOnlyCable', - 'ReadOnlyCirculator', - 'ReadOnlyCouplingLinkNode', - 'ReadOnlyCouplingsNode', - 'ReadOnlyCustomCouplingNode', - 'ReadOnlyEmitSceneNode', - 'ReadOnlyErcegCouplingNode', - 'ReadOnlyFilter', - 'ReadOnlyFiveGChannelModel', - 'ReadOnlyHataCouplingNode', - 'ReadOnlyIndoorPropagationCouplingNode', - 'ReadOnlyIsolator', - 'ReadOnlyLogDistanceCouplingNode', - 'ReadOnlyMultiplexer', - 'ReadOnlyMultiplexerBand', - 'ReadOnlyPowerDivider', - 'ReadOnlyPropagationLossCouplingNode', - 'ReadOnlyRadioNode', - 'ReadOnlyRxMeasNode', - 'ReadOnlyRxMixerProductNode', - 'ReadOnlyRxSaturationNode', - 'ReadOnlyRxSelectivityNode', - 'ReadOnlyRxSpurNode', - 'ReadOnlyRxSusceptibilityProfNode', - 'ReadOnlySamplingNode', - 'ReadOnlySceneGroupNode', - 'ReadOnlySolutionCouplingNode', - 'ReadOnlySolutionsNode', - 'ReadOnlyTR_Switch', - 'ReadOnlyTerminator', - 'ReadOnlyTouchstoneCouplingNode', - 'ReadOnlyTwoRayPathLossCouplingNode', - 'ReadOnlyTxBbEmissionNode', - 'ReadOnlyTxHarmonicNode', - 'ReadOnlyTxMeasNode', - 'ReadOnlyTxNbEmissionNode', - 'ReadOnlyTxSpectralProfEmitterNode', - 'ReadOnlyTxSpectralProfNode', - 'ReadOnlyTxSpurNode', - 'ReadOnlyWalfischCouplingNode', - 'ReadOnlyWaveform', + "Amplifier", + "AntennaNode", + "AntennaPassband", + "Band", + "BandFolder", + "BandTraceNode", + "CADNode", + "Cable", + "CategoriesViewNode", + "Circulator", + "CouplingLinkNode", + "CouplingTraceNode", + "CouplingsNode", + "CustomCouplingNode", + "EmiPlotMarkerNode", + "EmitSceneNode", + "ErcegCouplingNode", + "Filter", + "FiveGChannelModel", + "HataCouplingNode", + "IndoorPropagationCouplingNode", + "Isolator", + "LogDistanceCouplingNode", + "MPlexBandTraceNode", + "Multiplexer", + "MultiplexerBand", + "OutboardTraceNode", + "ParametricCouplingTraceNode", + "PlotMarkerNode", + "PlotNode", + "PowerDivider", + "PowerTraceNode", + "ProfileTraceNode", + "PropagationLossCouplingNode", + "RadioNode", + "ResultPlotNode", + "RxMeasNode", + "RxMixerProductNode", + "RxSaturationNode", + "RxSelectivityNode", + "RxSpurNode", + "RxSusceptibilityProfNode", + "SamplingNode", + "SceneGroupNode", + "SelectivityTraceNode", + "SolutionCouplingNode", + "SolutionsNode", + "SpurTraceNode", + "TR_Switch", + "TRSwitchTraceNode", + "Terminator", + "TestNoiseTraceNode", + "TopLevelSimulation", + "TouchstoneCouplingNode", + "TunableTraceNode", + "TwoRayPathLossCouplingNode", + "TwoToneTraceNode", + "TxBbEmissionNode", + "TxHarmonicNode", + "TxMeasNode", + "TxNbEmissionNode", + "TxSpectralProfEmitterNode", + "TxSpectralProfNode", + "TxSpurNode", + "WalfischCouplingNode", + "Waveform", + "ReadOnlyAmplifier", + "ReadOnlyAntennaNode", + "ReadOnlyAntennaPassband", + "ReadOnlyBand", + "ReadOnlyBandFolder", + "ReadOnlyCADNode", + "ReadOnlyCable", + "ReadOnlyCirculator", + "ReadOnlyCouplingLinkNode", + "ReadOnlyCouplingsNode", + "ReadOnlyCustomCouplingNode", + "ReadOnlyEmitSceneNode", + "ReadOnlyErcegCouplingNode", + "ReadOnlyFilter", + "ReadOnlyFiveGChannelModel", + "ReadOnlyHataCouplingNode", + "ReadOnlyIndoorPropagationCouplingNode", + "ReadOnlyIsolator", + "ReadOnlyLogDistanceCouplingNode", + "ReadOnlyMultiplexer", + "ReadOnlyMultiplexerBand", + "ReadOnlyPowerDivider", + "ReadOnlyPropagationLossCouplingNode", + "ReadOnlyRadioNode", + "ReadOnlyRxMeasNode", + "ReadOnlyRxMixerProductNode", + "ReadOnlyRxSaturationNode", + "ReadOnlyRxSelectivityNode", + "ReadOnlyRxSpurNode", + "ReadOnlyRxSusceptibilityProfNode", + "ReadOnlySamplingNode", + "ReadOnlySceneGroupNode", + "ReadOnlySolutionCouplingNode", + "ReadOnlySolutionsNode", + "ReadOnlyTR_Switch", + "ReadOnlyTerminator", + "ReadOnlyTouchstoneCouplingNode", + "ReadOnlyTwoRayPathLossCouplingNode", + "ReadOnlyTxBbEmissionNode", + "ReadOnlyTxHarmonicNode", + "ReadOnlyTxMeasNode", + "ReadOnlyTxNbEmissionNode", + "ReadOnlyTxSpectralProfEmitterNode", + "ReadOnlyTxSpectralProfNode", + "ReadOnlyTxSpurNode", + "ReadOnlyWalfischCouplingNode", + "ReadOnlyWaveform", ] diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py index 98f6ce5cc74..02fe0b0deae 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class AntennaNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -55,15 +59,13 @@ def tags(self) -> str: """Tags Space delimited list of tags for coupling selections - """ + """ val = self._get_property("Tags") return val @tags.setter def tags(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tags={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tags={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -74,13 +76,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return val == true @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -94,9 +96,7 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -110,29 +110,25 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -146,9 +142,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -162,9 +156,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def position_defined(self) -> bool: @@ -174,13 +166,11 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return (val == true) + return val == true @position_defined.setter def position_defined(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position Defined={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Defined={value}"]) @property def antenna_temperature(self) -> float: @@ -193,25 +183,21 @@ def antenna_temperature(self) -> float: return float(val) @antenna_temperature.setter - def antenna_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna Temperature={value}"]) + def antenna_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna Temperature={value}"]) @property def type(self): """Type Defines the type of antenna - """ + """ val = self._get_property("Type") return val @type.setter def type(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value}"]) @property def antenna_file(self) -> str: @@ -223,9 +209,7 @@ def antenna_file(self) -> str: @antenna_file.setter def antenna_file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna File={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna File={value}"]) @property def project_name(self) -> str: @@ -239,9 +223,7 @@ def project_name(self) -> str: @project_name.setter def project_name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Project Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Project Name={value}"]) @property def peak_gain(self) -> float: @@ -254,31 +236,27 @@ def peak_gain(self) -> float: return float(val) @peak_gain.setter - def peak_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Peak Gain={value}"]) + def peak_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Gain={value}"]) class BoresightOption(Enum): - XAXIS = "+X Axis" # eslint-disable-line no-eval - YAXIS = "+Y Axis" # eslint-disable-line no-eval - ZAXIS = "+Z Axis" # eslint-disable-line no-eval + XAXIS = "+X Axis" # eslint-disable-line no-eval + YAXIS = "+Y Axis" # eslint-disable-line no-eval + ZAXIS = "+Z Axis" # eslint-disable-line no-eval @property def boresight(self) -> BoresightOption: """Boresight Select peak beam direction in local coordinates - """ + """ val = self._get_property("Boresight") val = self.BoresightOption[val.upper()] return val @boresight.setter def boresight(self, value: BoresightOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Boresight={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Boresight={value.value}"]) @property def vertical_beamwidth(self) -> float: @@ -291,10 +269,8 @@ def vertical_beamwidth(self) -> float: return float(val) @vertical_beamwidth.setter - def vertical_beamwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Beamwidth={value}"]) + def vertical_beamwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Beamwidth={value}"]) @property def horizontal_beamwidth(self) -> float: @@ -307,10 +283,8 @@ def horizontal_beamwidth(self) -> float: return float(val) @horizontal_beamwidth.setter - def horizontal_beamwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Beamwidth={value}"]) + def horizontal_beamwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Beamwidth={value}"]) @property def extra_sidelobe(self) -> bool: @@ -320,13 +294,11 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return (val == true) + return val == true @extra_sidelobe.setter def extra_sidelobe(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Extra Sidelobe={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Extra Sidelobe={value}"]) @property def first_sidelobe_level(self) -> float: @@ -340,10 +312,8 @@ def first_sidelobe_level(self) -> float: return float(val) @first_sidelobe_level.setter - def first_sidelobe_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Level={value}"]) + def first_sidelobe_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Level={value}"]) @property def first_sidelobe_vert_bw(self) -> float: @@ -356,10 +326,8 @@ def first_sidelobe_vert_bw(self) -> float: return float(val) @first_sidelobe_vert_bw.setter - def first_sidelobe_vert_bw(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Vert. BW={value}"]) + def first_sidelobe_vert_bw(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Vert. BW={value}"]) @property def first_sidelobe_hor_bw(self) -> float: @@ -372,10 +340,8 @@ def first_sidelobe_hor_bw(self) -> float: return float(val) @first_sidelobe_hor_bw.setter - def first_sidelobe_hor_bw(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Hor. BW={value}"]) + def first_sidelobe_hor_bw(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Hor. BW={value}"]) @property def outerbacklobe_level(self) -> float: @@ -388,10 +354,8 @@ def outerbacklobe_level(self) -> float: return float(val) @outerbacklobe_level.setter - def outerbacklobe_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Outer/Backlobe Level={value}"]) + def outerbacklobe_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Outer/Backlobe Level={value}"]) @property def resonant_frequency(self) -> float: @@ -406,11 +370,9 @@ def resonant_frequency(self) -> float: return float(val) @resonant_frequency.setter - def resonant_frequency(self, value : float|str): + def resonant_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Resonant Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resonant Frequency={value}"]) @property def slot_length(self) -> float: @@ -424,11 +386,9 @@ def slot_length(self) -> float: return float(val) @slot_length.setter - def slot_length(self, value : float|str): + def slot_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Slot Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Slot Length={value}"]) @property def mouth_width(self) -> float: @@ -442,11 +402,9 @@ def mouth_width(self) -> float: return float(val) @mouth_width.setter - def mouth_width(self, value : float|str): + def mouth_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Width={value}"]) @property def mouth_height(self) -> float: @@ -460,11 +418,9 @@ def mouth_height(self) -> float: return float(val) @mouth_height.setter - def mouth_height(self, value : float|str): + def mouth_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Height={value}"]) @property def waveguide_width(self) -> float: @@ -479,11 +435,9 @@ def waveguide_width(self) -> float: return float(val) @waveguide_width.setter - def waveguide_width(self, value : float|str): + def waveguide_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Waveguide Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveguide Width={value}"]) @property def width_flare_half_angle(self) -> float: @@ -497,10 +451,8 @@ def width_flare_half_angle(self) -> float: return float(val) @width_flare_half_angle.setter - def width_flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Width Flare Half-angle={value}"]) + def width_flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width Flare Half-angle={value}"]) @property def height_flare_half_angle(self) -> float: @@ -514,10 +466,8 @@ def height_flare_half_angle(self) -> float: return float(val) @height_flare_half_angle.setter - def height_flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Height Flare Half-angle={value}"]) + def height_flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height Flare Half-angle={value}"]) @property def mouth_diameter(self) -> float: @@ -531,11 +481,9 @@ def mouth_diameter(self) -> float: return float(val) @mouth_diameter.setter - def mouth_diameter(self, value : float|str): + def mouth_diameter(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Diameter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Diameter={value}"]) @property def flare_half_angle(self) -> float: @@ -549,10 +497,8 @@ def flare_half_angle(self) -> float: return float(val) @flare_half_angle.setter - def flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Flare Half-angle={value}"]) + def flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flare Half-angle={value}"]) @property def vswr(self) -> float: @@ -566,72 +512,68 @@ def vswr(self) -> float: return float(val) @vswr.setter - def vswr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"VSWR={value}"]) + def vswr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) class AntennaPolarizationOption(Enum): - VERTICAL = "Vertical" # eslint-disable-line no-eval - HORIZONTAL = "Horizontal" # eslint-disable-line no-eval - RHCP = "RHCP" # eslint-disable-line no-eval - LHCP = "LHCP" # eslint-disable-line no-eval + VERTICAL = "Vertical" # eslint-disable-line no-eval + HORIZONTAL = "Horizontal" # eslint-disable-line no-eval + RHCP = "RHCP" # eslint-disable-line no-eval + LHCP = "LHCP" # eslint-disable-line no-eval @property def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val.upper()] return val @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna Polarization={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Antenna Polarization={value.value}"] + ) class CrossDipoleModeOption(Enum): - FREESTANDING = "Freestanding" # eslint-disable-line no-eval - OVER_GROUND_PLANE = "Over Ground Plane" # eslint-disable-line no-eval + FREESTANDING = "Freestanding" # eslint-disable-line no-eval + OVER_GROUND_PLANE = "Over Ground Plane" # eslint-disable-line no-eval @property def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode Choose the Cross Dipole type - """ + """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val.upper()] return val @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Cross Dipole Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Cross Dipole Mode={value.value}"]) class CrossDipolePolarizationOption(Enum): - RHCP = "RHCP" # eslint-disable-line no-eval - LHCP = "LHCP" # eslint-disable-line no-eval + RHCP = "RHCP" # eslint-disable-line no-eval + LHCP = "LHCP" # eslint-disable-line no-eval @property def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val.upper()] return val @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Cross Dipole Polarization={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Cross Dipole Polarization={value.value}"] + ) @property def override_height(self) -> bool: @@ -642,13 +584,11 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return (val == true) + return val == true @override_height.setter def override_height(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Override Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Override Height={value}"]) @property def offset_height(self) -> float: @@ -662,11 +602,9 @@ def offset_height(self) -> float: return float(val) @offset_height.setter - def offset_height(self, value : float|str): + def offset_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Offset Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset Height={value}"]) @property def auto_height_offset(self) -> bool: @@ -677,13 +615,11 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return (val == true) + return val == true @auto_height_offset.setter def auto_height_offset(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Auto Height Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Auto Height Offset={value}"]) @property def conform__adjust_antenna(self) -> bool: @@ -693,13 +629,11 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return (val == true) + return val == true @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform / Adjust Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform / Adjust Antenna={value}"]) @property def element_offset(self): @@ -713,51 +647,47 @@ def element_offset(self): @element_offset.setter def element_offset(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Element Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Element Offset={value}"]) class ConformtoPlatformOption(Enum): - NONE = "None" # eslint-disable-line no-eval - ALONG_NORMAL = "Along Normal" # eslint-disable-line no-eval - PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + ALONG_NORMAL = "Along Normal" # eslint-disable-line no-eval + PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" # eslint-disable-line no-eval @property def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform Select method of automated conforming applied after Element Offset - """ + """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val.upper()] return val @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform to Platform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Conform to Platform={value.value}"] + ) class ReferencePlaneOption(Enum): - XY_PLANE = "XY Plane" # eslint-disable-line no-eval - YZ_PLANE = "YZ Plane" # eslint-disable-line no-eval - ZX_PLANE = "ZX Plane" # eslint-disable-line no-eval + XY_PLANE = "XY Plane" # eslint-disable-line no-eval + YZ_PLANE = "YZ Plane" # eslint-disable-line no-eval + ZX_PLANE = "ZX Plane" # eslint-disable-line no-eval @property def reference_plane(self) -> ReferencePlaneOption: """Reference Plane Select reference plane for determining original element heights - """ + """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val.upper()] return val @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reference Plane={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reference Plane={value.value}"]) @property def conform_element_orientation(self) -> bool: @@ -768,13 +698,13 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return (val == true) + return val == true @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform Element Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Conform Element Orientation={value}"] + ) @property def show_axes(self) -> bool: @@ -784,13 +714,11 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return val == true @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def show_icon(self) -> bool: @@ -800,13 +728,11 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return (val == true) + return val == true @show_icon.setter def show_icon(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Icon={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Icon={value}"]) @property def size(self) -> float: @@ -819,10 +745,8 @@ def size(self) -> float: return float(val) @size.setter - def size(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Size={value}"]) + def size(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Size={value}"]) @property def color(self): @@ -836,16 +760,14 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def el_sample_interval(self) -> float: """El Sample Interval Space between elevation-angle samples of pattern - """ + """ val = self._get_property("El Sample Interval") return float(val) @@ -854,7 +776,7 @@ def az_sample_interval(self) -> float: """Az Sample Interval Space between azimuth-angle samples of pattern - """ + """ val = self._get_property("Az Sample Interval") return float(val) @@ -866,14 +788,14 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return (val == true) + return val == true @property def frequency_domain(self): """Frequency Domain Frequency sample(s) defining antenna - """ + """ val = self._get_property("Frequency Domain") return val @@ -882,7 +804,7 @@ def number_of_electric_sources(self) -> int: """Number of Electric Sources Number of freestanding electric current sources defining antenna - """ + """ val = self._get_property("Number of Electric Sources") return int(val) @@ -891,7 +813,7 @@ def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources Number of freestanding magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Magnetic Sources") return int(val) @@ -901,7 +823,7 @@ def number_of_imaged_electric_sources(self) -> int: Number of imaged, half-space radiating electric current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Electric Sources") return int(val) @@ -911,7 +833,7 @@ def number_of_imaged_magnetic_sources(self) -> int: Number of imaged, half-space radiating magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Magnetic Sources") return int(val) @@ -921,7 +843,7 @@ def waveguide_height(self) -> float: Implied waveguide height (along local x-axis) where the flared horn walls meet the feed - """ + """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") return float(val) @@ -931,7 +853,7 @@ def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency Implied lowest operating frequency of pyramidal horn antenna - """ + """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -941,15 +863,15 @@ def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency Implied lowest operating frequency of conical horn antenna - """ + """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) class SWEModeTruncationOption(Enum): - DYNAMIC = "Dynamic" # eslint-disable-line no-eval - FIXED_CUSTOM = "Fixed (Custom)" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + DYNAMIC = "Dynamic" # eslint-disable-line no-eval + FIXED_CUSTOM = "Fixed (Custom)" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def swe_mode_truncation(self) -> SWEModeTruncationOption: @@ -957,16 +879,16 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: Select the method for stability-enhancing truncation of spherical wave expansion terms - """ + """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val.upper()] return val @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SWE Mode Truncation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"SWE Mode Truncation={value.value}"] + ) @property def max_n_index(self) -> int: @@ -980,24 +902,20 @@ def max_n_index(self) -> int: @max_n_index.setter def max_n_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max N Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max N Index={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) @property def show_composite_passband(self) -> bool: @@ -1007,13 +925,11 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return (val == true) + return val == true @show_composite_passband.setter def show_composite_passband(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Composite Passband={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Composite Passband={value}"]) @property def use_phase_center(self) -> bool: @@ -1023,20 +939,18 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return (val == true) + return val == true @use_phase_center.setter def use_phase_center(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Phase Center={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Phase Center={value}"]) @property def coordinate_systems(self) -> str: """Coordinate Systems Specifies the coordinate system for the phase center of this antenna - """ + """ val = self._get_property("Coordinate Systems") return val @@ -1059,4 +973,3 @@ def phasecenterorientation(self): """ val = self._get_property("PhaseCenterOrientation") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py index b2677b1f6a8..58c7ebbb47c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class AntennaPassband(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -48,7 +51,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -65,10 +68,8 @@ def passband_loss(self) -> float: return float(val) @passband_loss.setter - def passband_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Passband Loss={value}"]) + def passband_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Passband Loss={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -81,10 +82,8 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out of Band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out of Band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -98,11 +97,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -116,11 +113,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -134,11 +129,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -152,24 +145,19 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py b/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py index 25c5a5270e3..528817256e3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class BandFolder(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -48,4 +51,3 @@ def duplicate(self, new_name: str): def delete(self): """Delete this node""" self._delete() - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py index 7500442b5f3..2a31eb81b7a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class BandTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,50 +56,44 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) class TxorRxOption(Enum): - TX = "Tx" # eslint-disable-line no-eval - RX = "Rx" # eslint-disable-line no-eval + TX = "Tx" # eslint-disable-line no-eval + RX = "Rx" # eslint-disable-line no-eval @property def tx_or_rx(self) -> TxorRxOption: """Tx or Rx Specifies whether the trace is a Tx or Rx channel - """ + """ val = self._get_property("Tx or Rx") val = self.TxorRxOption[val.upper()] return val @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx or Rx={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx or Rx={value.value}"]) @property def channel_frequency(self): """Channel Frequency Select band channel frequency to display - """ + """ val = self._get_property("Channel Frequency") return val @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: @@ -103,7 +101,7 @@ def transmit_frequency(self) -> float: The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset) - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -116,13 +114,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -132,52 +128,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -191,9 +181,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -207,42 +195,38 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -256,9 +240,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -272,9 +254,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -288,9 +268,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -301,11 +279,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py index 3c43485bf4a..e6c3a07d086 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class CADNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -57,36 +61,34 @@ def file(self) -> str: return val class ModelTypeOption(Enum): - PLATE = "Plate" # eslint-disable-line no-eval - BOX = "Box" # eslint-disable-line no-eval - DIHEDRAL = "Dihedral" # eslint-disable-line no-eval - TRIHEDRAL = "Trihedral" # eslint-disable-line no-eval - CYLINDER = "Cylinder" # eslint-disable-line no-eval - TAPERED_CYLINDER = "Tapered Cylinder" # eslint-disable-line no-eval - CONE = "Cone" # eslint-disable-line no-eval - SPHERE = "Sphere" # eslint-disable-line no-eval - ELLIPSOID = "Ellipsoid" # eslint-disable-line no-eval - CIRCULAR_PLATE = "Circular Plate" # eslint-disable-line no-eval - PARABOLA = "Parabola" # eslint-disable-line no-eval - PRISM = "Prism" # eslint-disable-line no-eval - TAPERED_PRISM = "Tapered Prism" # eslint-disable-line no-eval - TOPHAT = "Tophat" # eslint-disable-line no-eval + PLATE = "Plate" # eslint-disable-line no-eval + BOX = "Box" # eslint-disable-line no-eval + DIHEDRAL = "Dihedral" # eslint-disable-line no-eval + TRIHEDRAL = "Trihedral" # eslint-disable-line no-eval + CYLINDER = "Cylinder" # eslint-disable-line no-eval + TAPERED_CYLINDER = "Tapered Cylinder" # eslint-disable-line no-eval + CONE = "Cone" # eslint-disable-line no-eval + SPHERE = "Sphere" # eslint-disable-line no-eval + ELLIPSOID = "Ellipsoid" # eslint-disable-line no-eval + CIRCULAR_PLATE = "Circular Plate" # eslint-disable-line no-eval + PARABOLA = "Parabola" # eslint-disable-line no-eval + PRISM = "Prism" # eslint-disable-line no-eval + TAPERED_PRISM = "Tapered Prism" # eslint-disable-line no-eval + TOPHAT = "Tophat" # eslint-disable-line no-eval @property def model_type(self) -> ModelTypeOption: """Model Type Select type of parametric model to create - """ + """ val = self._get_property("Model Type") val = self.ModelTypeOption[val.upper()] return val @model_type.setter def model_type(self, value: ModelTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Model Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Model Type={value.value}"]) @property def length(self) -> float: @@ -100,11 +102,9 @@ def length(self) -> float: return float(val) @length.setter - def length(self, value : float|str): + def length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) @property def width(self) -> float: @@ -118,11 +118,9 @@ def width(self) -> float: return float(val) @width.setter - def width(self, value : float|str): + def width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width={value}"]) @property def height(self) -> float: @@ -136,11 +134,9 @@ def height(self) -> float: return float(val) @height.setter - def height(self, value : float|str): + def height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height={value}"]) @property def angle(self) -> float: @@ -153,10 +149,8 @@ def angle(self) -> float: return float(val) @angle.setter - def angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Angle={value}"]) + def angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Angle={value}"]) @property def top_side(self) -> float: @@ -170,11 +164,9 @@ def top_side(self) -> float: return float(val) @top_side.setter - def top_side(self, value : float|str): + def top_side(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Top Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Side={value}"]) @property def top_radius(self) -> float: @@ -188,11 +180,9 @@ def top_radius(self) -> float: return float(val) @top_radius.setter - def top_radius(self, value : float|str): + def top_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Top Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Radius={value}"]) @property def side(self) -> float: @@ -206,11 +196,9 @@ def side(self) -> float: return float(val) @side.setter - def side(self, value : float|str): + def side(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Side={value}"]) @property def radius(self) -> float: @@ -224,11 +212,9 @@ def radius(self) -> float: return float(val) @radius.setter - def radius(self, value : float|str): + def radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radius={value}"]) @property def base_radius(self) -> float: @@ -242,11 +228,9 @@ def base_radius(self) -> float: return float(val) @base_radius.setter - def base_radius(self, value : float|str): + def base_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Radius={value}"]) @property def center_radius(self) -> float: @@ -260,11 +244,9 @@ def center_radius(self) -> float: return float(val) @center_radius.setter - def center_radius(self, value : float|str): + def center_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Center Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Radius={value}"]) @property def x_axis_ellipsoid_radius(self) -> float: @@ -278,11 +260,9 @@ def x_axis_ellipsoid_radius(self) -> float: return float(val) @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value : float|str): + def x_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Axis Ellipsoid Radius={value}"]) @property def y_axis_ellipsoid_radius(self) -> float: @@ -296,11 +276,9 @@ def y_axis_ellipsoid_radius(self) -> float: return float(val) @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value : float|str): + def y_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Axis Ellipsoid Radius={value}"]) @property def z_axis_ellipsoid_radius(self) -> float: @@ -314,11 +292,9 @@ def z_axis_ellipsoid_radius(self) -> float: return float(val) @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value : float|str): + def z_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Z Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Z Axis Ellipsoid Radius={value}"]) @property def focal_length(self) -> float: @@ -332,28 +308,24 @@ def focal_length(self) -> float: return float(val) @focal_length.setter - def focal_length(self, value : float|str): + def focal_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Focal Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Focal Length={value}"]) @property def offset(self) -> float: """Offset Offset of parabolic reflector - """ + """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") return float(val) @offset.setter - def offset(self, value : float|str): + def offset(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset={value}"]) @property def x_direction_taper(self) -> float: @@ -367,10 +339,8 @@ def x_direction_taper(self) -> float: return float(val) @x_direction_taper.setter - def x_direction_taper(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X Direction Taper={value}"]) + def x_direction_taper(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Direction Taper={value}"]) @property def y_direction_taper(self) -> float: @@ -384,10 +354,8 @@ def y_direction_taper(self) -> float: return float(val) @y_direction_taper.setter - def y_direction_taper(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y Direction Taper={value}"]) + def y_direction_taper(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Direction Taper={value}"]) @property def prism_direction(self): @@ -401,9 +369,7 @@ def prism_direction(self): @prism_direction.setter def prism_direction(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Prism Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Prism Direction={value}"]) @property def closed_top(self) -> bool: @@ -413,13 +379,11 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return (val == true) + return val == true @closed_top.setter def closed_top(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Closed Top={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Top={value}"]) @property def closed_base(self) -> bool: @@ -429,13 +393,11 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return (val == true) + return val == true @closed_base.setter def closed_base(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Closed Base={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Base={value}"]) @property def mesh_density(self) -> int: @@ -450,9 +412,7 @@ def mesh_density(self) -> int: @mesh_density.setter def mesh_density(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mesh Density={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Density={value}"]) @property def use_symmetric_mesh(self) -> bool: @@ -463,33 +423,29 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return (val == true) + return val == true @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Symmetric Mesh={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Symmetric Mesh={value}"]) class MeshOptionOption(Enum): - IMPROVED = "Improved" # eslint-disable-line no-eval - LEGACY = "Legacy" # eslint-disable-line no-eval + IMPROVED = "Improved" # eslint-disable-line no-eval + LEGACY = "Legacy" # eslint-disable-line no-eval @property def mesh_option(self) -> MeshOptionOption: """Mesh Option Select from different meshing options - """ + """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val.upper()] return val @mesh_option.setter def mesh_option(self, value: MeshOptionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mesh Option={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Option={value.value}"]) @property def coating_index(self) -> int: @@ -503,9 +459,7 @@ def coating_index(self) -> int: @coating_index.setter def coating_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Coating Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Coating Index={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -516,13 +470,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return val == true @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -536,9 +490,7 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -552,29 +504,25 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -588,9 +536,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -604,9 +550,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def visible(self) -> bool: @@ -616,35 +560,31 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) class RenderModeOption(Enum): - FLAT_SHADED = "Flat-Shaded" # eslint-disable-line no-eval - WIRE_FRAME = "Wire-Frame" # eslint-disable-line no-eval - HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" # eslint-disable-line no-eval - OUTLINE = "Outline" # eslint-disable-line no-eval + FLAT_SHADED = "Flat-Shaded" # eslint-disable-line no-eval + WIRE_FRAME = "Wire-Frame" # eslint-disable-line no-eval + HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" # eslint-disable-line no-eval + OUTLINE = "Outline" # eslint-disable-line no-eval @property def render_mode(self) -> RenderModeOption: """Render Mode Select drawing style for surfaces - """ + """ val = self._get_property("Render Mode") val = self.RenderModeOption[val.upper()] return val @render_mode.setter def render_mode(self, value: RenderModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Render Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Render Mode={value.value}"]) @property def show_axes(self) -> bool: @@ -654,13 +594,11 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return val == true @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def min(self): @@ -687,7 +625,7 @@ def number_of_surfaces(self) -> int: """Number of Surfaces Number of surfaces in the model - """ + """ val = self._get_property("Number of Surfaces") return int(val) @@ -703,22 +641,17 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py index 0cc7e14fba0..f6c5ee604ce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py @@ -1,30 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class CategoriesViewNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False EmitNode.__init__(self, emit_obj, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py index 1c6c57fab1a..e8c782cc450 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class CouplingLinkNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,13 +44,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def ports(self): @@ -55,13 +56,10 @@ def ports(self): Maps each port in the link to an antenna in the project "A list of values." - """ + """ val = self._get_property("Ports") return val @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ports={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py index 5f36238ec71..0ddae02fb7e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class CouplingTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -48,29 +52,23 @@ def delete(self): @property def transmitter(self) -> EmitNode: - """Transmitter - """ + """Transmitter""" val = self._get_property("Transmitter") return val @transmitter.setter def transmitter(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Transmitter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Transmitter={value}"]) @property def receiver(self) -> EmitNode: - """Receiver - """ + """Receiver""" val = self._get_property("Receiver") return val @receiver.setter def receiver(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Receiver={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver={value}"]) @property def data_source(self): @@ -78,15 +76,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,13 +92,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -112,52 +106,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -171,9 +159,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -187,42 +173,38 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -236,9 +218,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -252,9 +232,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -268,9 +246,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -281,13 +257,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def highlight_regions(self) -> bool: @@ -297,13 +271,11 @@ def highlight_regions(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Highlight Regions") - return (val == true) + return val == true @highlight_regions.setter def highlight_regions(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Highlight Regions={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highlight Regions={value}"]) @property def show_region_labels(self) -> bool: @@ -313,13 +285,11 @@ def show_region_labels(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Region Labels") - return (val == true) + return val == true @show_region_labels.setter def show_region_labels(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Region Labels={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Region Labels={value}"]) @property def font(self): @@ -333,9 +303,7 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -349,9 +317,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -365,9 +331,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -377,13 +341,11 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return (val == true) + return val == true @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -397,9 +359,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -413,7 +373,4 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py index 8543cb64576..e5e8bfc8bf4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class CouplingsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -30,7 +33,7 @@ def __init__(self, emit_obj, result_id, node_id): def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" - return self._import(file_name,"TouchstoneCoupling") + return self._import(file_name, "TouchstoneCoupling") def add_custom_coupling(self): """Add a new node to define custom coupling between antennas""" @@ -80,10 +83,8 @@ def minimum_allowed_coupling(self) -> float: return float(val) @minimum_allowed_coupling.setter - def minimum_allowed_coupling(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minimum Allowed Coupling={value}"]) + def minimum_allowed_coupling(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Allowed Coupling={value}"]) @property def global_default_coupling(self) -> float: @@ -96,17 +97,14 @@ def global_default_coupling(self) -> float: return float(val) @global_default_coupling.setter - def global_default_coupling(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Global Default Coupling={value}"]) + def global_default_coupling(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Global Default Coupling={value}"]) @property def antenna_tags(self) -> str: """Antenna Tags All tags currently used by all antennas in the project - """ + """ val = self._get_property("Antenna Tags") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py index 6a5209ba075..fff9314625f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class CustomCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def rename(self, new_name: str): """Rename this node""" @@ -51,11 +54,11 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Value (dB): + "Value (dB): Value should be between -1000 and 0. """ return self._get_table_data() @@ -72,43 +75,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -118,13 +115,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -134,26 +129,21 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py index 671a1008346..b2bb87337b1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class EmiPlotMarkerNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def attached(self): @@ -68,22 +70,20 @@ def attached(self): Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False) - """ + """ val = self._get_property("Attached") return val @attached.setter def attached(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) @property def position_x(self) -> float: """Position X Position of the marker on the X-axis (frequency axis). - """ + """ val = self._get_property("Position X") return float(val) @@ -92,7 +92,7 @@ def position_y(self) -> float: """Position Y Position of the marker on the Y-axis (result axis). - """ + """ val = self._get_property("Position Y") return float(val) @@ -105,13 +105,11 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return (val == true) + return val == true @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -125,10 +123,8 @@ def position_from_left(self) -> float: return float(val) @position_from_left.setter - def position_from_left(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Left={value}"]) + def position_from_left(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -142,88 +138,80 @@ def position_from_top(self) -> float: return float(val) @position_from_top.setter - def position_from_top(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Top={value}"]) + def position_from_top(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) @property def text(self) -> str: """Text Set the text of the label - """ + """ val = self._get_property("Text") return val @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) class HorizontalPositionOption(Enum): - LEFT = "Left" # eslint-disable-line no-eval - RIGHT = "Right" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + LEFT = "Left" # eslint-disable-line no-eval + RIGHT = "Right" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position Specify horizontal position of the label as compared to the symbol - """ + """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val.upper()] return val @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Horizontal Position={value.value}"] + ) class VerticalPositionOption(Enum): - TOP = "Top" # eslint-disable-line no-eval - BOTTOM = "Bottom" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + TOP = "Top" # eslint-disable-line no-eval + BOTTOM = "Bottom" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def vertical_position(self) -> VerticalPositionOption: """Vertical Position Specify vertical position of the label as compared to the symbol - """ + """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val.upper()] return val @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): - LEFT = "Left" # eslint-disable-line no-eval - RIGHT = "Right" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + LEFT = "Left" # eslint-disable-line no-eval + RIGHT = "Right" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def text_alignment(self) -> TextAlignmentOption: """Text Alignment Specify justification applied to multi-line text - """ + """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val.upper()] return val @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) @property def font(self): @@ -237,9 +225,7 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -253,9 +239,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -269,9 +253,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -281,13 +263,11 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return (val == true) + return val == true @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -301,9 +281,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -317,43 +295,39 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval - ARROW = "Arrow" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval + ARROW = "Arrow" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Specify symbol displayed next to the label - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -367,9 +341,7 @@ def arrow_direction(self) -> int: @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -383,9 +355,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -399,9 +369,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -415,9 +383,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -428,11 +394,8 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return (val == true) + return val == true @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py index fcd90ebf1b0..313cb662f43 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class EmitSceneNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,36 +42,34 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class GroundPlaneNormalOption(Enum): - X_AXIS = "X Axis" # eslint-disable-line no-eval - Y_AXIS = "Y Axis" # eslint-disable-line no-eval - Z_AXIS = "Z Axis" # eslint-disable-line no-eval + X_AXIS = "X Axis" # eslint-disable-line no-eval + Y_AXIS = "Y Axis" # eslint-disable-line no-eval + Z_AXIS = "Z Axis" # eslint-disable-line no-eval @property def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal Specifies the axis of the normal to the ground plane - """ + """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val.upper()] return val @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ground Plane Normal={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"] + ) @property def gp_position_along_normal(self) -> float: @@ -75,15 +77,12 @@ def gp_position_along_normal(self) -> float: Offset of ground plane in direction normal to the ground planes orientation - """ + """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return float(val) @gp_position_along_normal.setter - def gp_position_along_normal(self, value : float|str): + def gp_position_along_normal(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"GP Position Along Normal={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GP Position Along Normal={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py index fbdc384668e..9d7fd3b8b0d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ErcegCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,49 +112,43 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class TerrainCategoryOption(Enum): - TYPE_A = "Type A" # eslint-disable-line no-eval - TYPE_B = "Type B" # eslint-disable-line no-eval - TYPE_C = "Type C" # eslint-disable-line no-eval + TYPE_A = "Type A" # eslint-disable-line no-eval + TYPE_B = "Type B" # eslint-disable-line no-eval + TYPE_C = "Type C" # eslint-disable-line no-eval @property def terrain_category(self) -> TerrainCategoryOption: """Terrain Category Specify the terrain category type for the Erceg model - """ + """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val.upper()] return val @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Terrain Category={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Terrain Category={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -172,10 +162,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -189,10 +177,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -206,32 +192,28 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -245,10 +227,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -261,10 +241,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -274,13 +252,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -294,10 +270,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -310,10 +284,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -327,10 +299,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -341,13 +311,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -360,10 +330,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -376,10 +344,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -392,8 +358,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py b/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py index e8e4d80c2b2..081dd229bcf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class FiveGChannelModel(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,49 +112,43 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): - URBAN_MICROCELL = "Urban Microcell" # eslint-disable-line no-eval - URBAN_MACROCELL = "Urban Macrocell" # eslint-disable-line no-eval - RURAL_MACROCELL = "Rural Macrocell" # eslint-disable-line no-eval + URBAN_MICROCELL = "Urban Microcell" # eslint-disable-line no-eval + URBAN_MACROCELL = "Urban Macrocell" # eslint-disable-line no-eval + RURAL_MACROCELL = "Rural Macrocell" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment for the 5G channel model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def los(self) -> bool: @@ -168,13 +158,11 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return (val == true) + return val == true @los.setter def los(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"LOS={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"LOS={value}"]) @property def include_bpl(self) -> bool: @@ -184,33 +172,29 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return (val == true) + return val == true @include_bpl.setter def include_bpl(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include BPL={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include BPL={value}"]) class NYUBPLModelOption(Enum): - LOW_LOSS_MODEL = "Low-loss model" # eslint-disable-line no-eval - HIGH_LOSS_MODEL = "High-loss model" # eslint-disable-line no-eval + LOW_LOSS_MODEL = "Low-loss model" # eslint-disable-line no-eval + HIGH_LOSS_MODEL = "High-loss model" # eslint-disable-line no-eval @property def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model Specify the NYU Building Penetration Loss model - """ + """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val.upper()] return val @nyu_bpl_model.setter def nyu_bpl_model(self, value: NYUBPLModelOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NYU BPL Model={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NYU BPL Model={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -224,10 +208,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -241,10 +223,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -258,32 +238,28 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -297,10 +273,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -313,10 +287,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -326,13 +298,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -346,10 +316,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -362,10 +330,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -379,10 +345,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -393,13 +357,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -412,10 +376,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -428,10 +390,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -444,8 +404,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py index 3c73b927008..91e2272508b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class HataCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,50 +112,44 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): - LARGE_CITY = "Large City" # eslint-disable-line no-eval - SMALLMEDIUM_CITY = "Small/Medium City" # eslint-disable-line no-eval - SUBURBAN = "Suburban" # eslint-disable-line no-eval - RURAL = "Rural" # eslint-disable-line no-eval + LARGE_CITY = "Large City" # eslint-disable-line no-eval + SMALLMEDIUM_CITY = "Small/Medium City" # eslint-disable-line no-eval + SUBURBAN = "Suburban" # eslint-disable-line no-eval + RURAL = "Rural" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Hata model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -173,10 +163,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -190,10 +178,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -207,32 +193,28 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -246,10 +228,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -262,10 +242,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -275,13 +253,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -295,10 +271,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -311,10 +285,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -328,10 +300,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -342,13 +312,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -361,10 +331,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -377,10 +345,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -393,8 +359,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py index 511918799eb..b07099a42c3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class IndoorPropagationCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -48,13 +52,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Power Loss Coefficient: + "Power Loss Coefficient: Value should be between 0 and 100. - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): Value should be between 0 and 1000. """ return self._get_table_data() @@ -71,43 +75,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -117,13 +115,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -133,51 +129,45 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class BuildingTypeOption(Enum): - RESIDENTIAL_APARTMENT = "Residential Apartment" # eslint-disable-line no-eval - RESIDENTIAL_HOUSE = "Residential House" # eslint-disable-line no-eval - OFFICE_BUILDING = "Office Building" # eslint-disable-line no-eval - COMMERCIAL_BUILDING = "Commercial Building" # eslint-disable-line no-eval - CUSTOM_BUILDING = "Custom Building" # eslint-disable-line no-eval + RESIDENTIAL_APARTMENT = "Residential Apartment" # eslint-disable-line no-eval + RESIDENTIAL_HOUSE = "Residential House" # eslint-disable-line no-eval + OFFICE_BUILDING = "Office Building" # eslint-disable-line no-eval + COMMERCIAL_BUILDING = "Commercial Building" # eslint-disable-line no-eval + CUSTOM_BUILDING = "Custom Building" # eslint-disable-line no-eval @property def building_type(self) -> BuildingTypeOption: """Building Type Specify the building type for the Indoor Propagation model - """ + """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val.upper()] return val @building_type.setter def building_type(self, value: BuildingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Building Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Building Type={value.value}"]) @property def number_of_floors(self) -> int: @@ -191,9 +181,7 @@ def number_of_floors(self) -> int: @number_of_floors.setter def number_of_floors(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Floors={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Floors={value}"]) @property def custom_fading_margin(self) -> float: @@ -207,10 +195,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -224,10 +210,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -241,32 +225,28 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -280,10 +260,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -296,10 +274,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -309,13 +285,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -329,10 +303,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -345,10 +317,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -362,10 +332,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -376,13 +344,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -395,10 +363,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -411,10 +377,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -427,8 +391,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py index 6c685e3169d..1db06be7d76 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class LogDistanceCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,53 +112,47 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): - FREE_SPACE = "Free Space" # eslint-disable-line no-eval - URBAN = "Urban" # eslint-disable-line no-eval - SHADOWED_URBAN = "Shadowed Urban" # eslint-disable-line no-eval - BUILDING_LINE_OF_SIGHT = "Building Line of Sight" # eslint-disable-line no-eval - BUILDING_OBSTRUCTED = "Building Obstructed" # eslint-disable-line no-eval - FACTORY_OBSTRUCTED = "Factory Obstructed" # eslint-disable-line no-eval - CUSTOM = "Custom" # eslint-disable-line no-eval + FREE_SPACE = "Free Space" # eslint-disable-line no-eval + URBAN = "Urban" # eslint-disable-line no-eval + SHADOWED_URBAN = "Shadowed Urban" # eslint-disable-line no-eval + BUILDING_LINE_OF_SIGHT = "Building Line of Sight" # eslint-disable-line no-eval + BUILDING_OBSTRUCTED = "Building Obstructed" # eslint-disable-line no-eval + FACTORY_OBSTRUCTED = "Factory Obstructed" # eslint-disable-line no-eval + CUSTOM = "Custom" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Log Distance model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def path_loss_exponent(self) -> float: @@ -175,10 +165,8 @@ def path_loss_exponent(self) -> float: return float(val) @path_loss_exponent.setter - def path_loss_exponent(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Path Loss Exponent={value}"]) + def path_loss_exponent(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Exponent={value}"]) @property def custom_fading_margin(self) -> float: @@ -192,10 +180,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -209,10 +195,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -226,32 +210,28 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -265,10 +245,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -281,10 +259,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -294,13 +270,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -314,10 +288,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -330,10 +302,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -347,10 +317,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -361,13 +329,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -380,10 +348,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -396,10 +362,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -412,8 +376,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py index 8778c7adfb1..8b84e8b3964 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class MPlexBandTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -47,21 +51,18 @@ def delete(self): self._delete() class PowerDirectionOption(Enum): - INTO_COMMON_PORTOUT_OF_COMMON_PORT = "Into Common Port|Out of Common Port" # eslint-disable-line no-eval + INTO_COMMON_PORTOUT_OF_COMMON_PORT = "Into Common Port|Out of Common Port" # eslint-disable-line no-eval @property def power_direction(self) -> PowerDirectionOption: - """Power Direction - """ + """Power Direction""" val = self._get_property("Power Direction") val = self.PowerDirectionOption[val.upper()] return val @power_direction.setter def power_direction(self, value: PowerDirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Power Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Power Direction={value.value}"]) @property def data_source(self): @@ -69,15 +70,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -87,13 +86,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -103,52 +100,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -162,9 +153,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -178,42 +167,38 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -227,9 +212,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -243,9 +226,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -259,9 +240,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -272,11 +251,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py index c53e676d61e..040f2d8efd3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class MultiplexerBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -47,10 +51,10 @@ def delete(self): self._delete() class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - LOW_PASS = "Low Pass" # eslint-disable-line no-eval - HIGH_PASS = "High Pass" # eslint-disable-line no-eval - BAND_PASS = "Band Pass" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + LOW_PASS = "Low Pass" # eslint-disable-line no-eval + HIGH_PASS = "High Pass" # eslint-disable-line no-eval + BAND_PASS = "Band Pass" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -59,16 +63,14 @@ def type(self) -> TypeOption: file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def filename(self) -> str: @@ -82,9 +84,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def insertion_loss(self) -> float: @@ -97,10 +97,8 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -113,10 +111,8 @@ def stop_band_attenuation(self) -> float: return float(val) @stop_band_attenuation.setter - def stop_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -130,11 +126,9 @@ def max_pass_band(self) -> float: return float(val) @max_pass_band.setter - def max_pass_band(self, value : float|str): + def max_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -148,11 +142,9 @@ def min_stop_band(self) -> float: return float(val) @min_stop_band.setter - def min_stop_band(self, value : float|str): + def min_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -166,11 +158,9 @@ def max_stop_band(self) -> float: return float(val) @max_stop_band.setter - def max_stop_band(self, value : float|str): + def max_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -184,11 +174,9 @@ def min_pass_band(self) -> float: return float(val) @min_pass_band.setter - def min_pass_band(self, value : float|str): + def min_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -202,11 +190,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -220,11 +206,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -238,11 +222,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -256,18 +238,15 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py index fe1f86f7184..11eae98e8ec 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class OutboardTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,9 +62,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -74,9 +76,7 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -84,15 +84,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -102,13 +100,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -118,52 +114,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -177,9 +167,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -193,42 +181,38 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -242,9 +226,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -258,9 +240,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -274,9 +254,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -287,11 +265,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py index fb22694663a..7a6c82533ab 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ParametricCouplingTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -48,29 +52,23 @@ def delete(self): @property def antenna_a(self) -> EmitNode: - """Antenna A - """ + """Antenna A""" val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: - """Antenna B - """ + """Antenna B""" val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def data_source(self): @@ -78,15 +76,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,13 +92,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -112,52 +106,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -171,9 +159,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -187,42 +173,38 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -236,9 +218,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -252,9 +232,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -268,9 +246,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -281,11 +257,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py index 879ff7e1f7e..dfd936654cb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class PlotMarkerNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def attached(self) -> bool: @@ -71,43 +73,37 @@ def attached(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Attached") - return (val == true) + return val == true @attached.setter def attached(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) @property def position_x(self) -> float: """Position X Position of the marker on the X-axis (frequency axis). - """ + """ val = self._get_property("Position X") return float(val) @position_x.setter - def position_x(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position X={value}"]) + def position_x(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position X={value}"]) @property def position_y(self) -> float: """Position Y Position of the marker on the Y-axis (result axis). - """ + """ val = self._get_property("Position Y") return float(val) @position_y.setter - def position_y(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position Y={value}"]) + def position_y(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Y={value}"]) @property def floating_label(self) -> bool: @@ -118,13 +114,11 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return (val == true) + return val == true @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -138,10 +132,8 @@ def position_from_left(self) -> float: return float(val) @position_from_left.setter - def position_from_left(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Left={value}"]) + def position_from_left(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -155,88 +147,80 @@ def position_from_top(self) -> float: return float(val) @position_from_top.setter - def position_from_top(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Top={value}"]) + def position_from_top(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) @property def text(self) -> str: """Text Set the text of the label - """ + """ val = self._get_property("Text") return val @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) class HorizontalPositionOption(Enum): - LEFT = "Left" # eslint-disable-line no-eval - RIGHT = "Right" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + LEFT = "Left" # eslint-disable-line no-eval + RIGHT = "Right" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position Specify horizontal position of the label as compared to the symbol - """ + """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val.upper()] return val @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Horizontal Position={value.value}"] + ) class VerticalPositionOption(Enum): - TOP = "Top" # eslint-disable-line no-eval - BOTTOM = "Bottom" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + TOP = "Top" # eslint-disable-line no-eval + BOTTOM = "Bottom" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def vertical_position(self) -> VerticalPositionOption: """Vertical Position Specify vertical position of the label as compared to the symbol - """ + """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val.upper()] return val @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): - LEFT = "Left" # eslint-disable-line no-eval - RIGHT = "Right" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + LEFT = "Left" # eslint-disable-line no-eval + RIGHT = "Right" # eslint-disable-line no-eval + CENTER = "Center" # eslint-disable-line no-eval @property def text_alignment(self) -> TextAlignmentOption: """Text Alignment Specify justification applied to multi-line text - """ + """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val.upper()] return val @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) @property def font(self): @@ -250,9 +234,7 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -266,9 +248,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -282,9 +262,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -294,13 +272,11 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return (val == true) + return val == true @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -314,9 +290,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -330,43 +304,39 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval - ARROW = "Arrow" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval + ARROW = "Arrow" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Specify symbol displayed next to the label - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -380,9 +350,7 @@ def arrow_direction(self) -> int: @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -396,9 +364,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -412,9 +378,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -428,9 +392,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -441,11 +403,8 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return (val == true) + return val == true @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py index d2a46323745..6584d5b8dfc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class PlotNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,15 +58,13 @@ def title(self) -> str: """Title Enter title at the top of the plot, room will be made for it - """ + """ val = self._get_property("Title") return val @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) @property def title_font(self): @@ -76,9 +78,7 @@ def title_font(self): @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -88,13 +88,11 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return (val == true) + return val == true @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) @property def legend_font(self): @@ -108,9 +106,7 @@ def legend_font(self): @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) @property def display_cad_overlay(self) -> bool: @@ -120,13 +116,11 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return (val == true) + return val == true @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -139,25 +133,21 @@ def opacity(self) -> float: return float(val) @opacity.setter - def opacity(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Opacity={value}"]) + def opacity(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset Adjust vertical position of CAD model overlay - """ + """ val = self._get_property("Vertical Offset") return float(val) @vertical_offset.setter - def vertical_offset(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Offset={value}"]) + def vertical_offset(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -171,10 +161,8 @@ def range_axis_rotation(self) -> float: return float(val) @range_axis_rotation.setter - def range_axis_rotation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -184,73 +172,63 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return (val == true) + return val == true @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min Set lower extent of horizontal axis - """ + """ val = self._get_property("X-axis Min") return float(val) @x_axis_min.setter - def x_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Min={value}"]) + def x_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max Set upper extent of horizontal axis - """ + """ val = self._get_property("X-axis Max") return float(val) @x_axis_max.setter - def x_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Max={value}"]) + def x_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min Set lower extent of vertical axis - """ + """ val = self._get_property("Y-axis Min") return float(val) @y_axis_min.setter - def y_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Min={value}"]) + def y_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max Set upper extent of vertical axis - """ + """ val = self._get_property("Y-axis Max") return float(val) @y_axis_max.setter - def y_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Max={value}"]) + def y_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -264,10 +242,8 @@ def y_axis_range(self) -> float: return float(val) @y_axis_range.setter - def y_axis_range(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Range={value}"]) + def y_axis_range(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -281,9 +257,7 @@ def max_major_ticks_x(self) -> int: @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -298,9 +272,7 @@ def max_minor_ticks_x(self) -> int: @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -314,9 +286,7 @@ def max_major_ticks_y(self) -> int: @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -331,9 +301,7 @@ def max_minor_ticks_y(self) -> int: @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -347,9 +315,7 @@ def axis_label_font(self): @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -363,33 +329,31 @@ def axis_tick_label_font(self): @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style Select line style of major-tick grid lines - """ + """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val.upper()] return val @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] + ) @property def major_grid_color(self): @@ -403,33 +367,31 @@ def major_grid_color(self): @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style Select line style of minor-tick grid lines - """ + """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val.upper()] return val @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] + ) @property def minor_grid_color(self): @@ -443,9 +405,7 @@ def minor_grid_color(self): @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -459,31 +419,29 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): - HERTZ = "hertz" # eslint-disable-line no-eval - KILOHERTZ = "kilohertz" # eslint-disable-line no-eval - MEGAHERTZ = "megahertz" # eslint-disable-line no-eval - GIGAHERTZ = "gigahertz" # eslint-disable-line no-eval + HERTZ = "hertz" # eslint-disable-line no-eval + KILOHERTZ = "kilohertz" # eslint-disable-line no-eval + MEGAHERTZ = "megahertz" # eslint-disable-line no-eval + GIGAHERTZ = "gigahertz" # eslint-disable-line no-eval @property def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit Units to use for plotting broadband power densities - """ + """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val.upper()] return val @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power for Plots Unit={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] + ) @property def bb_power_bandwidth(self) -> float: @@ -497,11 +455,9 @@ def bb_power_bandwidth(self) -> float: return float(val) @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value : float|str): + def bb_power_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -511,11 +467,8 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return (val == true) + return val == true @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Log Scale={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py b/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py index d85c1c58f76..332ba4980ae 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class PowerDivider(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,9 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,30 +70,26 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - P3_DB = "P3 dB" # eslint-disable-line no-eval - RESISTIVE = "Resistive" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + P3_DB = "P3 dB" # eslint-disable-line no-eval + RESISTIVE = "Resistive" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -99,36 +97,32 @@ def type(self) -> TypeOption: Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class OrientationOption(Enum): - DIVIDER = "Divider" # eslint-disable-line no-eval - COMBINER = "Combiner" # eslint-disable-line no-eval + DIVIDER = "Divider" # eslint-disable-line no-eval + COMBINER = "Combiner" # eslint-disable-line no-eval @property def orientation(self) -> OrientationOption: """Orientation Defines the orientation of the Power Divider. - """ + """ val = self._get_property("Orientation") val = self.OrientationOption[val.upper()] return val @orientation.setter def orientation(self, value: OrientationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value.value}"]) @property def insertion_loss_above_ideal(self) -> float: @@ -142,10 +136,10 @@ def insertion_loss_above_ideal(self) -> float: return float(val) @insertion_loss_above_ideal.setter - def insertion_loss_above_ideal(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss Above Ideal={value}"]) + def insertion_loss_above_ideal(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Insertion Loss Above Ideal={value}"] + ) @property def finite_isolation(self) -> bool: @@ -156,13 +150,11 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return (val == true) + return val == true @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -175,10 +167,8 @@ def isolation(self) -> float: return float(val) @isolation.setter - def isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Isolation={value}"]) + def isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -189,13 +179,11 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -208,10 +196,8 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -225,11 +211,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -243,11 +227,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -261,11 +243,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -279,18 +259,15 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py index 54e6137b879..3a4b431195c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class PowerTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -47,24 +51,22 @@ def delete(self): self._delete() class DirectionOption(Enum): - AWAY_FROM_TX = "Away From Tx" # eslint-disable-line no-eval - TOWARD_TX = "Toward Tx" # eslint-disable-line no-eval + AWAY_FROM_TX = "Away From Tx" # eslint-disable-line no-eval + TOWARD_TX = "Toward Tx" # eslint-disable-line no-eval @property def direction(self) -> DirectionOption: """Direction Direction of power flow (towards or away from the transmitter) to plot - """ + """ val = self._get_property("Direction") val = self.DirectionOption[val.upper()] return val @direction.setter def direction(self, value: DirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Direction={value.value}"]) @property def data_source(self): @@ -72,15 +74,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -90,13 +90,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -106,52 +104,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -165,9 +157,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -181,42 +171,38 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -230,9 +216,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -246,9 +230,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -262,9 +244,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -275,11 +255,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py index 04dfc0c04e3..6ee92bb7a65 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ProfileTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,15 +56,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -70,13 +72,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -86,52 +86,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -145,9 +139,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -161,42 +153,38 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -210,9 +198,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -226,9 +212,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -242,9 +226,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -255,11 +237,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py index bad62c17a29..8c6e5a009a9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class PropagationLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def custom_fading_margin(self) -> float: @@ -151,10 +143,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -168,10 +158,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -185,32 +173,28 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -224,10 +208,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -240,10 +222,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -253,13 +233,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -273,10 +251,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -289,10 +265,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -306,10 +280,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -320,13 +292,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -339,10 +311,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -355,10 +325,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -371,8 +339,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py index 12cc5aa7711..6ebf43aadb1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RadioNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -51,11 +54,11 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Name: - "Type: - """ + "Name: + "Type: + """ return self._get_table_data() @table_data.setter @@ -67,13 +70,10 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py index 44a4bffc3e3..76f622ea3c9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyAmplifier(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,20 +58,20 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val class AmplifierTypeOption(Enum): - TRANSMIT_AMPLIFIER = "Transmit Amplifier" # eslint-disable-line no-eval - RECEIVE_AMPLIFIER = "Receive Amplifier" # eslint-disable-line no-eval + TRANSMIT_AMPLIFIER = "Transmit Amplifier" # eslint-disable-line no-eval + RECEIVE_AMPLIFIER = "Receive Amplifier" # eslint-disable-line no-eval @property def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type Configures the amplifier as a Tx or Rx amplifier - """ + """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val.upper()] return val @@ -176,4 +180,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return int(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py index b0f8bb1005a..798953a2c5f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyAntennaNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -39,7 +43,7 @@ def tags(self) -> str: """Tags Space delimited list of tags for coupling selections - """ + """ val = self._get_property("Tags") return val @@ -52,7 +56,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return val == true @property def position(self): @@ -75,15 +79,15 @@ def relative_position(self): return val class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @@ -116,7 +120,7 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return (val == true) + return val == true @property def antenna_temperature(self) -> float: @@ -133,7 +137,7 @@ def type(self): """Type Defines the type of antenna - """ + """ val = self._get_property("Type") return val @@ -166,16 +170,16 @@ def peak_gain(self) -> float: return float(val) class BoresightOption(Enum): - XAXIS = "+X Axis" # eslint-disable-line no-eval - YAXIS = "+Y Axis" # eslint-disable-line no-eval - ZAXIS = "+Z Axis" # eslint-disable-line no-eval + XAXIS = "+X Axis" # eslint-disable-line no-eval + YAXIS = "+Y Axis" # eslint-disable-line no-eval + ZAXIS = "+Z Axis" # eslint-disable-line no-eval @property def boresight(self) -> BoresightOption: """Boresight Select peak beam direction in local coordinates - """ + """ val = self._get_property("Boresight") val = self.BoresightOption[val.upper()] return val @@ -208,7 +212,7 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return (val == true) + return val == true @property def first_sidelobe_level(self) -> float: @@ -364,45 +368,45 @@ def vswr(self) -> float: return float(val) class AntennaPolarizationOption(Enum): - VERTICAL = "Vertical" # eslint-disable-line no-eval - HORIZONTAL = "Horizontal" # eslint-disable-line no-eval - RHCP = "RHCP" # eslint-disable-line no-eval - LHCP = "LHCP" # eslint-disable-line no-eval + VERTICAL = "Vertical" # eslint-disable-line no-eval + HORIZONTAL = "Horizontal" # eslint-disable-line no-eval + RHCP = "RHCP" # eslint-disable-line no-eval + LHCP = "LHCP" # eslint-disable-line no-eval @property def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val.upper()] return val class CrossDipoleModeOption(Enum): - FREESTANDING = "Freestanding" # eslint-disable-line no-eval - OVER_GROUND_PLANE = "Over Ground Plane" # eslint-disable-line no-eval + FREESTANDING = "Freestanding" # eslint-disable-line no-eval + OVER_GROUND_PLANE = "Over Ground Plane" # eslint-disable-line no-eval @property def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode Choose the Cross Dipole type - """ + """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val.upper()] return val class CrossDipolePolarizationOption(Enum): - RHCP = "RHCP" # eslint-disable-line no-eval - LHCP = "LHCP" # eslint-disable-line no-eval + RHCP = "RHCP" # eslint-disable-line no-eval + LHCP = "LHCP" # eslint-disable-line no-eval @property def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val.upper()] return val @@ -416,7 +420,7 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return (val == true) + return val == true @property def offset_height(self) -> float: @@ -438,7 +442,7 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return (val == true) + return val == true @property def conform__adjust_antenna(self) -> bool: @@ -448,7 +452,7 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return (val == true) + return val == true @property def element_offset(self): @@ -461,31 +465,31 @@ def element_offset(self): return val class ConformtoPlatformOption(Enum): - NONE = "None" # eslint-disable-line no-eval - ALONG_NORMAL = "Along Normal" # eslint-disable-line no-eval - PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + ALONG_NORMAL = "Along Normal" # eslint-disable-line no-eval + PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" # eslint-disable-line no-eval @property def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform Select method of automated conforming applied after Element Offset - """ + """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val.upper()] return val class ReferencePlaneOption(Enum): - XY_PLANE = "XY Plane" # eslint-disable-line no-eval - YZ_PLANE = "YZ Plane" # eslint-disable-line no-eval - ZX_PLANE = "ZX Plane" # eslint-disable-line no-eval + XY_PLANE = "XY Plane" # eslint-disable-line no-eval + YZ_PLANE = "YZ Plane" # eslint-disable-line no-eval + ZX_PLANE = "ZX Plane" # eslint-disable-line no-eval @property def reference_plane(self) -> ReferencePlaneOption: """Reference Plane Select reference plane for determining original element heights - """ + """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val.upper()] return val @@ -499,7 +503,7 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return (val == true) + return val == true @property def show_axes(self) -> bool: @@ -509,7 +513,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return val == true @property def show_icon(self) -> bool: @@ -519,7 +523,7 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return (val == true) + return val == true @property def size(self) -> float: @@ -546,7 +550,7 @@ def el_sample_interval(self) -> float: """El Sample Interval Space between elevation-angle samples of pattern - """ + """ val = self._get_property("El Sample Interval") return float(val) @@ -555,7 +559,7 @@ def az_sample_interval(self) -> float: """Az Sample Interval Space between azimuth-angle samples of pattern - """ + """ val = self._get_property("Az Sample Interval") return float(val) @@ -567,14 +571,14 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return (val == true) + return val == true @property def frequency_domain(self): """Frequency Domain Frequency sample(s) defining antenna - """ + """ val = self._get_property("Frequency Domain") return val @@ -583,7 +587,7 @@ def number_of_electric_sources(self) -> int: """Number of Electric Sources Number of freestanding electric current sources defining antenna - """ + """ val = self._get_property("Number of Electric Sources") return int(val) @@ -592,7 +596,7 @@ def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources Number of freestanding magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Magnetic Sources") return int(val) @@ -602,7 +606,7 @@ def number_of_imaged_electric_sources(self) -> int: Number of imaged, half-space radiating electric current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Electric Sources") return int(val) @@ -612,7 +616,7 @@ def number_of_imaged_magnetic_sources(self) -> int: Number of imaged, half-space radiating magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Magnetic Sources") return int(val) @@ -622,7 +626,7 @@ def waveguide_height(self) -> float: Implied waveguide height (along local x-axis) where the flared horn walls meet the feed - """ + """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") return float(val) @@ -632,7 +636,7 @@ def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency Implied lowest operating frequency of pyramidal horn antenna - """ + """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -642,15 +646,15 @@ def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency Implied lowest operating frequency of conical horn antenna - """ + """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) class SWEModeTruncationOption(Enum): - DYNAMIC = "Dynamic" # eslint-disable-line no-eval - FIXED_CUSTOM = "Fixed (Custom)" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + DYNAMIC = "Dynamic" # eslint-disable-line no-eval + FIXED_CUSTOM = "Fixed (Custom)" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def swe_mode_truncation(self) -> SWEModeTruncationOption: @@ -658,7 +662,7 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: Select the method for stability-enhancing truncation of spherical wave expansion terms - """ + """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val.upper()] return val @@ -678,7 +682,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -690,7 +694,7 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return (val == true) + return val == true @property def use_phase_center(self) -> bool: @@ -700,14 +704,14 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return (val == true) + return val == true @property def coordinate_systems(self) -> str: """Coordinate Systems Specifies the coordinate system for the phase center of this antenna - """ + """ val = self._get_property("Coordinate Systems") return val @@ -730,4 +734,3 @@ def phasecenterorientation(self): """ val = self._get_property("PhaseCenterOrientation") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py index cf8b02d8aec..c1f7e8dd5bd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyAntennaPassband(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -102,7 +105,6 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py index 23ea442dbc5..0cba18653dd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -39,7 +43,7 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") return val @@ -51,7 +55,7 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return (val == true) + return val == true @property def use_emission_designator(self) -> bool: @@ -61,14 +65,14 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return (val == true) + return val == true @property def emission_designator(self) -> str: """Emission Designator Enter the Emission Designator to define the bandwidth and modulation - """ + """ val = self._get_property("Emission Designator") return val @@ -77,7 +81,7 @@ def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW Channel Bandwidth based off the emission designator - """ + """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -87,7 +91,7 @@ def emit_modulation_type(self) -> str: """EMIT Modulation Type Modulation based off the emission designator - """ + """ val = self._get_property("EMIT Modulation Type") return val @@ -100,7 +104,7 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return (val == true) + return val == true @property def channel_bandwidth(self) -> float: @@ -114,24 +118,24 @@ def channel_bandwidth(self) -> float: return float(val) class ModulationOption(Enum): - GENERIC = "Generic" # eslint-disable-line no-eval - AM = "AM" # eslint-disable-line no-eval - LSB = "LSB" # eslint-disable-line no-eval - USB = "USB" # eslint-disable-line no-eval - FM = "FM" # eslint-disable-line no-eval - FSK = "FSK" # eslint-disable-line no-eval - MSK = "MSK" # eslint-disable-line no-eval - PSK = "PSK" # eslint-disable-line no-eval - QAM = "QAM" # eslint-disable-line no-eval - APSK = "APSK" # eslint-disable-line no-eval - RADAR = "Radar" # eslint-disable-line no-eval + GENERIC = "Generic" # eslint-disable-line no-eval + AM = "AM" # eslint-disable-line no-eval + LSB = "LSB" # eslint-disable-line no-eval + USB = "USB" # eslint-disable-line no-eval + FM = "FM" # eslint-disable-line no-eval + FSK = "FSK" # eslint-disable-line no-eval + MSK = "MSK" # eslint-disable-line no-eval + PSK = "PSK" # eslint-disable-line no-eval + QAM = "QAM" # eslint-disable-line no-eval + APSK = "APSK" # eslint-disable-line no-eval + RADAR = "Radar" # eslint-disable-line no-eval @property def modulation(self) -> ModulationOption: """Modulation Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Modulation") val = self.ModulationOption[val.upper()] return val @@ -191,7 +195,7 @@ def sidelobes(self) -> int: @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation FSK frequency deviation: helps determine spectral profile Value should be greater than 1. @@ -201,68 +205,68 @@ def freq_deviation_(self) -> float: return float(val) class PSKTypeOption(Enum): - BPSK = "BPSK" # eslint-disable-line no-eval - QPSK = "QPSK" # eslint-disable-line no-eval - PSK_8 = "PSK-8" # eslint-disable-line no-eval - PSK_16 = "PSK-16" # eslint-disable-line no-eval - PSK_32 = "PSK-32" # eslint-disable-line no-eval - PSK_64 = "PSK-64" # eslint-disable-line no-eval + BPSK = "BPSK" # eslint-disable-line no-eval + QPSK = "QPSK" # eslint-disable-line no-eval + PSK_8 = "PSK-8" # eslint-disable-line no-eval + PSK_16 = "PSK-16" # eslint-disable-line no-eval + PSK_32 = "PSK-32" # eslint-disable-line no-eval + PSK_64 = "PSK-64" # eslint-disable-line no-eval @property def psk_type(self) -> PSKTypeOption: """PSK Type PSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val.upper()] return val class FSKTypeOption(Enum): - FSK_2 = "FSK-2" # eslint-disable-line no-eval - FSK_4 = "FSK-4" # eslint-disable-line no-eval - FSK_8 = "FSK-8" # eslint-disable-line no-eval + FSK_2 = "FSK-2" # eslint-disable-line no-eval + FSK_4 = "FSK-4" # eslint-disable-line no-eval + FSK_8 = "FSK-8" # eslint-disable-line no-eval @property def fsk_type(self) -> FSKTypeOption: """FSK Type FSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val.upper()] return val class QAMTypeOption(Enum): - QAM_4 = "QAM-4" # eslint-disable-line no-eval - QAM_16 = "QAM-16" # eslint-disable-line no-eval - QAM_64 = "QAM-64" # eslint-disable-line no-eval - QAM_256 = "QAM-256" # eslint-disable-line no-eval - QAM_1024 = "QAM-1024" # eslint-disable-line no-eval + QAM_4 = "QAM-4" # eslint-disable-line no-eval + QAM_16 = "QAM-16" # eslint-disable-line no-eval + QAM_64 = "QAM-64" # eslint-disable-line no-eval + QAM_256 = "QAM-256" # eslint-disable-line no-eval + QAM_1024 = "QAM-1024" # eslint-disable-line no-eval @property def qam_type(self) -> QAMTypeOption: """QAM Type QAM modulation order: helps determine spectral profile - """ + """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val.upper()] return val class APSKTypeOption(Enum): - APSK_4 = "APSK-4" # eslint-disable-line no-eval - APSK_16 = "APSK-16" # eslint-disable-line no-eval - APSK_64 = "APSK-64" # eslint-disable-line no-eval - APSK_256 = "APSK-256" # eslint-disable-line no-eval - APSK_1024 = "APSK-1024" # eslint-disable-line no-eval + APSK_4 = "APSK-4" # eslint-disable-line no-eval + APSK_16 = "APSK-16" # eslint-disable-line no-eval + APSK_64 = "APSK-64" # eslint-disable-line no-eval + APSK_256 = "APSK-256" # eslint-disable-line no-eval + APSK_1024 = "APSK-1024" # eslint-disable-line no-eval @property def apsk_type(self) -> APSKTypeOption: """APSK Type APSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val.upper()] return val @@ -312,18 +316,18 @@ def tx_offset(self) -> float: return float(val) class RadarTypeOption(Enum): - CW = "CW" # eslint-disable-line no-eval - FM_CW = "FM-CW" # eslint-disable-line no-eval - FM_PULSE = "FM Pulse" # eslint-disable-line no-eval - NON_FM_PULSE = "Non-FM Pulse" # eslint-disable-line no-eval - PHASE_CODED = "Phase Coded" # eslint-disable-line no-eval + CW = "CW" # eslint-disable-line no-eval + FM_CW = "FM-CW" # eslint-disable-line no-eval + FM_PULSE = "FM Pulse" # eslint-disable-line no-eval + NON_FM_PULSE = "Non-FM Pulse" # eslint-disable-line no-eval + PHASE_CODED = "Phase Coded" # eslint-disable-line no-eval @property def radar_type(self) -> RadarTypeOption: """Radar Type Radar type: helps determine spectral profile - """ + """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val.upper()] return val @@ -336,7 +340,7 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return (val == true) + return val == true @property def post_october_2020_procurement(self) -> bool: @@ -347,7 +351,7 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return (val == true) + return val == true @property def hop_range_min_freq(self) -> float: @@ -467,4 +471,3 @@ def fm_freq_dev_bandwidth(self) -> float: val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py index 88c4224e281..6aa83ad1ada 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyBandFolder(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -32,4 +35,3 @@ def __init__(self, emit_obj, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py index 50e82769205..762292b5e46 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyCable(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,14 +58,14 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - CONSTANT_LOSS = "Constant Loss" # eslint-disable-line no-eval - COAXIAL_CABLE = "Coaxial Cable" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + CONSTANT_LOSS = "Constant Loss" # eslint-disable-line no-eval + COAXIAL_CABLE = "Coaxial Cable" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -69,7 +73,7 @@ def type(self) -> TypeOption: Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -131,7 +135,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py index 3e5ad55b02f..dd5287c8823 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyCADNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -45,27 +49,27 @@ def file(self) -> str: return val class ModelTypeOption(Enum): - PLATE = "Plate" # eslint-disable-line no-eval - BOX = "Box" # eslint-disable-line no-eval - DIHEDRAL = "Dihedral" # eslint-disable-line no-eval - TRIHEDRAL = "Trihedral" # eslint-disable-line no-eval - CYLINDER = "Cylinder" # eslint-disable-line no-eval - TAPERED_CYLINDER = "Tapered Cylinder" # eslint-disable-line no-eval - CONE = "Cone" # eslint-disable-line no-eval - SPHERE = "Sphere" # eslint-disable-line no-eval - ELLIPSOID = "Ellipsoid" # eslint-disable-line no-eval - CIRCULAR_PLATE = "Circular Plate" # eslint-disable-line no-eval - PARABOLA = "Parabola" # eslint-disable-line no-eval - PRISM = "Prism" # eslint-disable-line no-eval - TAPERED_PRISM = "Tapered Prism" # eslint-disable-line no-eval - TOPHAT = "Tophat" # eslint-disable-line no-eval + PLATE = "Plate" # eslint-disable-line no-eval + BOX = "Box" # eslint-disable-line no-eval + DIHEDRAL = "Dihedral" # eslint-disable-line no-eval + TRIHEDRAL = "Trihedral" # eslint-disable-line no-eval + CYLINDER = "Cylinder" # eslint-disable-line no-eval + TAPERED_CYLINDER = "Tapered Cylinder" # eslint-disable-line no-eval + CONE = "Cone" # eslint-disable-line no-eval + SPHERE = "Sphere" # eslint-disable-line no-eval + ELLIPSOID = "Ellipsoid" # eslint-disable-line no-eval + CIRCULAR_PLATE = "Circular Plate" # eslint-disable-line no-eval + PARABOLA = "Parabola" # eslint-disable-line no-eval + PRISM = "Prism" # eslint-disable-line no-eval + TAPERED_PRISM = "Tapered Prism" # eslint-disable-line no-eval + TOPHAT = "Tophat" # eslint-disable-line no-eval @property def model_type(self) -> ModelTypeOption: """Model Type Select type of parametric model to create - """ + """ val = self._get_property("Model Type") val = self.ModelTypeOption[val.upper()] return val @@ -228,7 +232,7 @@ def offset(self) -> float: """Offset Offset of parabolic reflector - """ + """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") return float(val) @@ -273,7 +277,7 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return (val == true) + return val == true @property def closed_base(self) -> bool: @@ -283,7 +287,7 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return (val == true) + return val == true @property def mesh_density(self) -> int: @@ -305,18 +309,18 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return (val == true) + return val == true class MeshOptionOption(Enum): - IMPROVED = "Improved" # eslint-disable-line no-eval - LEGACY = "Legacy" # eslint-disable-line no-eval + IMPROVED = "Improved" # eslint-disable-line no-eval + LEGACY = "Legacy" # eslint-disable-line no-eval @property def mesh_option(self) -> MeshOptionOption: """Mesh Option Select from different meshing options - """ + """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val.upper()] return val @@ -340,7 +344,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return val == true @property def position(self): @@ -363,15 +367,15 @@ def relative_position(self): return val class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @@ -404,20 +408,20 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true class RenderModeOption(Enum): - FLAT_SHADED = "Flat-Shaded" # eslint-disable-line no-eval - WIRE_FRAME = "Wire-Frame" # eslint-disable-line no-eval - HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" # eslint-disable-line no-eval - OUTLINE = "Outline" # eslint-disable-line no-eval + FLAT_SHADED = "Flat-Shaded" # eslint-disable-line no-eval + WIRE_FRAME = "Wire-Frame" # eslint-disable-line no-eval + HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" # eslint-disable-line no-eval + OUTLINE = "Outline" # eslint-disable-line no-eval @property def render_mode(self) -> RenderModeOption: """Render Mode Select drawing style for surfaces - """ + """ val = self._get_property("Render Mode") val = self.RenderModeOption[val.upper()] return val @@ -430,7 +434,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return val == true @property def min(self): @@ -457,7 +461,7 @@ def number_of_surfaces(self) -> int: """Number of Surfaces Number of surfaces in the model - """ + """ val = self._get_property("Number of Surfaces") return int(val) @@ -476,7 +480,6 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py index b903211d4fb..93e1485037f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyCirculator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,13 +58,13 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -68,21 +72,21 @@ def type(self) -> TypeOption: Type of circulator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the circulator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @@ -106,7 +110,7 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return (val == true) + return val == true @property def reverse_isolation(self) -> float: @@ -127,7 +131,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @property def out_of_band_attenuation(self) -> float: @@ -188,7 +192,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py index 12ac821d777..1aaaf0aa9a8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +44,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def ports(self): @@ -49,7 +52,6 @@ def ports(self): Maps each port in the link to an antenna in the project "A list of values." - """ + """ val = self._get_property("Ports") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py index 1098e5f28d5..2612058943c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyCouplingsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,7 +57,6 @@ def antenna_tags(self) -> str: """Antenna Tags All tags currently used by all antennas in the project - """ + """ val = self._get_property("Antenna Tags") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py index 4d506ca453b..1233eb221b3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,11 +38,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Value (dB): + "Value (dB): Value should be between -1000 and 0. """ return self._get_table_data() @@ -52,14 +55,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -68,7 +71,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -80,7 +83,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -90,14 +93,13 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py index 0a80d61aae2..a5fc4c05f0e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -34,21 +38,21 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val class GroundPlaneNormalOption(Enum): - X_AXIS = "X Axis" # eslint-disable-line no-eval - Y_AXIS = "Y Axis" # eslint-disable-line no-eval - Z_AXIS = "Z Axis" # eslint-disable-line no-eval + X_AXIS = "X Axis" # eslint-disable-line no-eval + Y_AXIS = "Y Axis" # eslint-disable-line no-eval + Z_AXIS = "Z Axis" # eslint-disable-line no-eval @property def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal Specifies the axis of the normal to the ground plane - """ + """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val.upper()] return val @@ -59,8 +63,7 @@ def gp_position_along_normal(self) -> float: Offset of ground plane in direction normal to the ground planes orientation - """ + """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py index e58028a757a..af80e599bad 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,14 +46,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @@ -58,7 +62,7 @@ def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -80,28 +84,28 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val class TerrainCategoryOption(Enum): - TYPE_A = "Type A" # eslint-disable-line no-eval - TYPE_B = "Type B" # eslint-disable-line no-eval - TYPE_C = "Type C" # eslint-disable-line no-eval + TYPE_A = "Type A" # eslint-disable-line no-eval + TYPE_B = "Type B" # eslint-disable-line no-eval + TYPE_C = "Type C" # eslint-disable-line no-eval @property def terrain_category(self) -> TerrainCategoryOption: """Terrain Category Specify the terrain category type for the Erceg model - """ + """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val.upper()] return val @@ -140,17 +144,17 @@ def pointing_error_loss(self) -> float: return float(val) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -184,7 +188,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -227,7 +231,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -258,4 +262,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py index 207919076ab..ea0cc26beec 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyFilter(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,18 +58,18 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - LOW_PASS = "Low Pass" # eslint-disable-line no-eval - HIGH_PASS = "High Pass" # eslint-disable-line no-eval - BAND_PASS = "Band Pass" # eslint-disable-line no-eval - BAND_STOP = "Band Stop" # eslint-disable-line no-eval - TUNABLE_BANDPASS = "Tunable Bandpass" # eslint-disable-line no-eval - TUNABLE_BANDSTOP = "Tunable Bandstop" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + LOW_PASS = "Low Pass" # eslint-disable-line no-eval + HIGH_PASS = "High Pass" # eslint-disable-line no-eval + BAND_PASS = "Band Pass" # eslint-disable-line no-eval + BAND_STOP = "Band Stop" # eslint-disable-line no-eval + TUNABLE_BANDPASS = "Tunable Bandpass" # eslint-disable-line no-eval + TUNABLE_BANDSTOP = "Tunable Bandstop" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -73,7 +77,7 @@ def type(self) -> TypeOption: Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -188,7 +192,7 @@ def higher_stop_band(self) -> float: @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff Lower cutoff frequency Value should be between 1 and 1e+11. @@ -199,7 +203,7 @@ def lower_cutoff_(self) -> float: @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band Lower stop band frequency Value should be between 1 and 1e+11. @@ -210,7 +214,7 @@ def lower_stop_band_(self) -> float: @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band Higher stop band frequency Value should be between 1 and 1e+11. @@ -221,7 +225,7 @@ def higher_stop_band_(self) -> float: @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff Higher cutoff frequency Value should be between 1 and 1e+11. @@ -232,7 +236,7 @@ def higher_cutoff_(self) -> float: @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency Lowest tuned frequency Value should be between 1 and 1e+11. @@ -243,7 +247,7 @@ def lowest_tuned_frequency_(self) -> float: @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency Highest tuned frequency Value should be between 1 and 1e+11. @@ -277,7 +281,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py index 12a7e8ac69b..6f527fed99b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,14 +46,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @@ -58,7 +62,7 @@ def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -80,28 +84,28 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val class EnvironmentOption(Enum): - URBAN_MICROCELL = "Urban Microcell" # eslint-disable-line no-eval - URBAN_MACROCELL = "Urban Macrocell" # eslint-disable-line no-eval - RURAL_MACROCELL = "Rural Macrocell" # eslint-disable-line no-eval + URBAN_MICROCELL = "Urban Microcell" # eslint-disable-line no-eval + URBAN_MACROCELL = "Urban Macrocell" # eslint-disable-line no-eval + RURAL_MACROCELL = "Rural Macrocell" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment for the 5G channel model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @@ -114,7 +118,7 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return (val == true) + return val == true @property def include_bpl(self) -> bool: @@ -124,18 +128,18 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return (val == true) + return val == true class NYUBPLModelOption(Enum): - LOW_LOSS_MODEL = "Low-loss model" # eslint-disable-line no-eval - HIGH_LOSS_MODEL = "High-loss model" # eslint-disable-line no-eval + LOW_LOSS_MODEL = "Low-loss model" # eslint-disable-line no-eval + HIGH_LOSS_MODEL = "High-loss model" # eslint-disable-line no-eval @property def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model Specify the NYU Building Penetration Loss model - """ + """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val.upper()] return val @@ -174,17 +178,17 @@ def pointing_error_loss(self) -> float: return float(val) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -218,7 +222,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -261,7 +265,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -292,4 +296,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py index 4af89abb740..28118859b6e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,14 +46,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @@ -58,7 +62,7 @@ def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -80,29 +84,29 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val class EnvironmentOption(Enum): - LARGE_CITY = "Large City" # eslint-disable-line no-eval - SMALLMEDIUM_CITY = "Small/Medium City" # eslint-disable-line no-eval - SUBURBAN = "Suburban" # eslint-disable-line no-eval - RURAL = "Rural" # eslint-disable-line no-eval + LARGE_CITY = "Large City" # eslint-disable-line no-eval + SMALLMEDIUM_CITY = "Small/Medium City" # eslint-disable-line no-eval + SUBURBAN = "Suburban" # eslint-disable-line no-eval + RURAL = "Rural" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Hata model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @@ -141,17 +145,17 @@ def pointing_error_loss(self) -> float: return float(val) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -185,7 +189,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -228,7 +232,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -259,4 +263,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py index 8b318bc2c27..26e9e7171f8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,13 +40,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Power Loss Coefficient: + "Power Loss Coefficient: Value should be between 0 and 100. - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): Value should be between 0 and 1000. """ return self._get_table_data() @@ -55,14 +59,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -71,7 +75,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -83,7 +87,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -93,30 +97,30 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val class BuildingTypeOption(Enum): - RESIDENTIAL_APARTMENT = "Residential Apartment" # eslint-disable-line no-eval - RESIDENTIAL_HOUSE = "Residential House" # eslint-disable-line no-eval - OFFICE_BUILDING = "Office Building" # eslint-disable-line no-eval - COMMERCIAL_BUILDING = "Commercial Building" # eslint-disable-line no-eval - CUSTOM_BUILDING = "Custom Building" # eslint-disable-line no-eval + RESIDENTIAL_APARTMENT = "Residential Apartment" # eslint-disable-line no-eval + RESIDENTIAL_HOUSE = "Residential House" # eslint-disable-line no-eval + OFFICE_BUILDING = "Office Building" # eslint-disable-line no-eval + COMMERCIAL_BUILDING = "Commercial Building" # eslint-disable-line no-eval + CUSTOM_BUILDING = "Custom Building" # eslint-disable-line no-eval @property def building_type(self) -> BuildingTypeOption: """Building Type Specify the building type for the Indoor Propagation model - """ + """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val.upper()] return val @@ -165,17 +169,17 @@ def pointing_error_loss(self) -> float: return float(val) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -209,7 +213,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -252,7 +256,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -283,4 +287,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py index ebbb2fce497..085f825f885 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyIsolator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,13 +58,13 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -68,21 +72,21 @@ def type(self) -> TypeOption: Type of isolator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the isolator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @@ -106,7 +110,7 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return (val == true) + return val == true @property def reverse_isolation(self) -> float: @@ -127,7 +131,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @property def out_of_band_attenuation(self) -> float: @@ -188,7 +192,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py index 3d76a411744..4a16c297636 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,14 +46,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -58,7 +62,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -80,32 +84,32 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val class EnvironmentOption(Enum): - FREE_SPACE = "Free Space" # eslint-disable-line no-eval - URBAN = "Urban" # eslint-disable-line no-eval - SHADOWED_URBAN = "Shadowed Urban" # eslint-disable-line no-eval - BUILDING_LINE_OF_SIGHT = "Building Line of Sight" # eslint-disable-line no-eval - BUILDING_OBSTRUCTED = "Building Obstructed" # eslint-disable-line no-eval - FACTORY_OBSTRUCTED = "Factory Obstructed" # eslint-disable-line no-eval - CUSTOM = "Custom" # eslint-disable-line no-eval + FREE_SPACE = "Free Space" # eslint-disable-line no-eval + URBAN = "Urban" # eslint-disable-line no-eval + SHADOWED_URBAN = "Shadowed Urban" # eslint-disable-line no-eval + BUILDING_LINE_OF_SIGHT = "Building Line of Sight" # eslint-disable-line no-eval + BUILDING_OBSTRUCTED = "Building Obstructed" # eslint-disable-line no-eval + FACTORY_OBSTRUCTED = "Factory Obstructed" # eslint-disable-line no-eval + CUSTOM = "Custom" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Log Distance model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @@ -154,17 +158,17 @@ def pointing_error_loss(self) -> float: return float(val) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -198,7 +202,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -241,7 +245,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -272,4 +276,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py index 125b10b34e7..bcef0cdf4b9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyMultiplexer(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,13 +58,13 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val class TypeOption(Enum): - BY_PASS_BAND = "By Pass Band" # eslint-disable-line no-eval - BY_FILE = "By File" # eslint-disable-line no-eval + BY_PASS_BAND = "By Pass Band" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -69,21 +73,21 @@ def type(self) -> TypeOption: simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the multiplexer. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @@ -96,7 +100,7 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return (val == true) + return val == true @property def ports(self): @@ -104,7 +108,7 @@ def ports(self): Assigns the child port nodes to the multiplexers ports "A list of values." - """ + """ val = self._get_property("Ports") return val @@ -113,7 +117,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py index bf9dbb5ed35..e7137f366b1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,10 +39,10 @@ def parent(self): return self._parent class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - LOW_PASS = "Low Pass" # eslint-disable-line no-eval - HIGH_PASS = "High Pass" # eslint-disable-line no-eval - BAND_PASS = "Band Pass" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + LOW_PASS = "Low Pass" # eslint-disable-line no-eval + HIGH_PASS = "High Pass" # eslint-disable-line no-eval + BAND_PASS = "Band Pass" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -47,7 +51,7 @@ def type(self) -> TypeOption: file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -175,7 +179,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py index 0486f98879c..371f36c90e7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyPowerDivider(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,14 +58,14 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - P3_DB = "P3 dB" # eslint-disable-line no-eval - RESISTIVE = "Resistive" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + P3_DB = "P3 dB" # eslint-disable-line no-eval + RESISTIVE = "Resistive" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -69,21 +73,21 @@ def type(self) -> TypeOption: Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val class OrientationOption(Enum): - DIVIDER = "Divider" # eslint-disable-line no-eval - COMBINER = "Combiner" # eslint-disable-line no-eval + DIVIDER = "Divider" # eslint-disable-line no-eval + COMBINER = "Combiner" # eslint-disable-line no-eval @property def orientation(self) -> OrientationOption: """Orientation Defines the orientation of the Power Divider. - """ + """ val = self._get_property("Orientation") val = self.OrientationOption[val.upper()] return val @@ -108,7 +112,7 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return (val == true) + return val == true @property def isolation(self) -> float: @@ -129,7 +133,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @property def out_of_band_attenuation(self) -> float: @@ -190,7 +194,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py index d035efb82aa..e8576c10937 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,14 +46,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -58,7 +62,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -80,14 +84,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -125,17 +129,17 @@ def pointing_error_loss(self) -> float: return float(val) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -169,7 +173,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -212,7 +216,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -243,4 +247,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py index 4d49888006c..6dd413f7188 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRadioNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,11 +38,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Name: - "Type: - """ + "Name: + "Type: + """ return self._get_table_data() @property @@ -47,7 +50,6 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py index e1cf5b6839b..02a4d4d8d1a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -59,22 +63,22 @@ def receive_frequency(self) -> float: """Receive Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) class MeasurementModeOption(Enum): - AUDIO_SINAD = "Audio SINAD" # eslint-disable-line no-eval - DIGITAL_BER = "Digital BER" # eslint-disable-line no-eval - GPS_CNR = "GPS CNR" # eslint-disable-line no-eval + AUDIO_SINAD = "Audio SINAD" # eslint-disable-line no-eval + DIGITAL_BER = "Digital BER" # eslint-disable-line no-eval + GPS_CNR = "GPS CNR" # eslint-disable-line no-eval @property def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode Defines the mode for the receiver measurement - """ + """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val.upper()] return val @@ -117,7 +121,7 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return (val == true) + return val == true @property def intended_signal_power(self) -> float: @@ -158,7 +162,7 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return (val == true) + return val == true @property def measure_mixer_products(self) -> bool: @@ -168,7 +172,7 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return (val == true) + return val == true @property def max_rf_order(self) -> int: @@ -198,7 +202,7 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return (val == true) + return val == true @property def measure_saturation(self) -> bool: @@ -208,7 +212,7 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return (val == true) + return val == true @property def use_ams_limits(self) -> bool: @@ -218,7 +222,7 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return (val == true) + return val == true @property def start_frequency(self) -> float: @@ -260,5 +264,4 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return (val == true) - + return val == true diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py index 0be321feec5..cce3ec0fa1f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,16 +39,16 @@ def parent(self): return self._parent class MixerProductTaperOption(Enum): - CONSTANT = "Constant" # eslint-disable-line no-eval - MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval - DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval + CONSTANT = "Constant" # eslint-disable-line no-eval + MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval + DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval @property def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper Taper for setting amplitude of mixer products - """ + """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val.upper()] return val @@ -155,16 +159,16 @@ def maximum_lo_harmonic_order(self) -> int: return int(val) class MixingModeOption(Enum): - LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" # eslint-disable-line no-eval - LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" # eslint-disable-line no-eval - LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" # eslint-disable-line no-eval @property def mixing_mode(self) -> MixingModeOption: """Mixing Mode Specifies whether the IF frequency is > or < RF channel frequency - """ + """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val.upper()] return val @@ -184,36 +188,35 @@ def rf_transition_frequency(self) -> float: """RF Transition Frequency RF Frequency Transition point - """ + """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) class UseHighLOOption(Enum): - ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" # eslint-disable-line no-eval - BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" # eslint-disable-line no-eval + ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" # eslint-disable-line no-eval + BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" # eslint-disable-line no-eval @property def use_high_lo(self) -> UseHighLOOption: """Use High LO Use High LO above/below the transition frequency - """ + """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val.upper()] return val class MixerProductTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units Specifies the units for the Mixer Products - """ + """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val.upper()] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py index 5e22eca60c2..45328a8b5fe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -32,4 +35,3 @@ def __init__(self, emit_obj, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py index a3944914964..fab53dbb400 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,5 +45,4 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return (val == true) - + return val == true diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py index 6fceb6ea00f..85826c7d89b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,28 +40,27 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py index eefee37c25f..2fbcbd4a33b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,24 +39,24 @@ def parent(self): return self._parent class SensitivityUnitsOption(Enum): - DBM = "dBm" # eslint-disable-line no-eval - DBUV = "dBuV" # eslint-disable-line no-eval - MILLIWATTS = "milliwatts" # eslint-disable-line no-eval - MICROVOLTS = "microvolts" # eslint-disable-line no-eval + DBM = "dBm" # eslint-disable-line no-eval + DBUV = "dBuV" # eslint-disable-line no-eval + MILLIWATTS = "milliwatts" # eslint-disable-line no-eval + MICROVOLTS = "microvolts" # eslint-disable-line no-eval @property def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units Units to use for the Rx Sensitivity - """ + """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val.upper()] return val @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr Received signal power level at the Rx's antenna terminal Value should be between -1000 and 1000. @@ -90,7 +94,7 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return (val == true) + return val == true @property def saturation_level(self) -> float: @@ -115,7 +119,7 @@ def rx_noise_figure(self) -> float: @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity Rx minimum sensitivity level (dBm) Value should be between -1000 and 1000. @@ -126,7 +130,7 @@ def receiver_sensitivity_(self) -> float: @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity SNR or SINAD at the specified sensitivity level Value should be between -1000 and 1000. @@ -142,7 +146,7 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return (val == true) + return val == true @property def amplifier_saturation_level(self) -> float: @@ -157,7 +161,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Rx's 1 dB Compression Point - total power > P1dB saturates the receiver Value should be between -1000 and 1000. @@ -186,4 +190,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return int(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py index 30cc9b9d9ef..955443d6836 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlySamplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,26 +40,26 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Min: + "Min: Value should be greater than 1. - "Max: + "Max: Value should be greater than 1. """ return self._get_table_data() class SamplingTypeOption(Enum): - SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" # eslint-disable-line no-eval - RANDOM_SAMPLING = "Random Sampling" # eslint-disable-line no-eval - UNIFORM_SAMPLING = "Uniform Sampling" # eslint-disable-line no-eval + SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" # eslint-disable-line no-eval + RANDOM_SAMPLING = "Random Sampling" # eslint-disable-line no-eval + UNIFORM_SAMPLING = "Uniform Sampling" # eslint-disable-line no-eval @property def sampling_type(self) -> SamplingTypeOption: """Sampling Type Sampling to apply to this configuration - """ + """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val.upper()] return val @@ -69,7 +73,7 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return (val == true) + return val == true @property def percentage_of_channels(self) -> float: @@ -107,7 +111,7 @@ def total_tx_channels(self) -> int: Total number of transmit channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Tx Channels") return int(val) @@ -117,7 +121,7 @@ def total_rx_channels(self) -> int: Total number of receive channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Rx Channels") return int(val) @@ -126,7 +130,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py index 682949bf213..2e94d284dfe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlySceneGroupNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -43,7 +47,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return val == true @property def position(self): @@ -66,15 +70,15 @@ def relative_position(self): return val class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @@ -107,7 +111,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return val == true @property def box_color(self): @@ -124,7 +128,6 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py index 5ca19668655..3bf6d1f23bb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,7 +45,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def enable_refinement(self) -> bool: @@ -52,7 +55,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -62,14 +65,13 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py index cb6390f154e..4200a3fc267 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlySolutionsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,5 +45,4 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) - + return val == true diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py index d8691163011..c9d62dc4218 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTerminator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,13 +58,13 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" # eslint-disable-line no-eval + PARAMETRIC = "Parametric" # eslint-disable-line no-eval @property def type(self) -> TypeOption: @@ -68,21 +72,21 @@ def type(self) -> TypeOption: Type of terminator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val class PortLocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def port_location(self) -> PortLocationOption: """Port Location Defines the orientation of the terminator. - """ + """ val = self._get_property("Port Location") val = self.PortLocationOption[val.upper()] return val @@ -104,7 +108,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py index 8a161344db3..3e67009dd63 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +44,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def enable_refinement(self) -> bool: @@ -51,7 +54,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -61,14 +64,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -87,7 +90,7 @@ def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File Coupling data generated by Savant and exported as a matched file - """ + """ val = self._get_property("Savant Matched Coupling File") return val @@ -99,7 +102,7 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return (val == true) + return val == true @property def port_antenna_assignment(self): @@ -107,7 +110,7 @@ def port_antenna_assignment(self): Maps each port in the coupling file to an antenna in the project "A list of values." - """ + """ val = self._get_property("Port-Antenna Assignment") return val @@ -116,7 +119,6 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py index 8a82a516540..1af3c088abf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTR_Switch(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,34 +58,34 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val class TxPortOption(Enum): - PORT_1 = "Port 1" # eslint-disable-line no-eval - PORT_2 = "Port 2" # eslint-disable-line no-eval + PORT_1 = "Port 1" # eslint-disable-line no-eval + PORT_2 = "Port 2" # eslint-disable-line no-eval @property def tx_port(self) -> TxPortOption: """Tx Port Specifies which port on the TR Switch is part of the Tx path. - """ + """ val = self._get_property("Tx Port") val = self.TxPortOption[val.upper()] return val class CommonPortLocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval + ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval @property def common_port_location(self) -> CommonPortLocationOption: """Common Port Location Defines the orientation of the tr switch. - """ + """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val.upper()] return val @@ -105,7 +109,7 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return (val == true) + return val == true @property def isolation(self) -> float: @@ -126,7 +130,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @property def out_of_band_attenuation(self) -> float: @@ -181,4 +185,3 @@ def higher_stop_band(self) -> float: val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py index 22423f7a5bf..385ea238d86 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,14 +46,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -58,7 +62,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -80,14 +84,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -145,17 +149,17 @@ def pointing_error_loss(self) -> float: return float(val) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -189,7 +193,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -232,7 +236,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -263,4 +267,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py index 5fab08fccc3..0e906d601b5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,25 +42,25 @@ def parent(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): Value should be between -200 and 150. """ return self._get_table_data() class NoiseBehaviorOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE_BANDWIDTH = "Relative (Bandwidth)" # eslint-disable-line no-eval - RELATIVE_OFFSET = "Relative (Offset)" # eslint-disable-line no-eval - EQUATION = "Equation" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE_BANDWIDTH = "Relative (Bandwidth)" # eslint-disable-line no-eval + RELATIVE_OFFSET = "Relative (Offset)" # eslint-disable-line no-eval + EQUATION = "Equation" # eslint-disable-line no-eval @property def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior Specifies the behavior of the parametric noise profile - """ + """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val.upper()] return val @@ -70,5 +74,4 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return (val == true) - + return val == true diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py index 72b32d9f5f4..2888089f973 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,16 +39,15 @@ def parent(self): return self._parent class HarmonicTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units Specifies the units for the Harmonics - """ + """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val.upper()] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py index 9d8729dc36b..a69caa5e6e5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,7 +61,7 @@ def transmit_frequency(self) -> float: """Transmit Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -71,7 +74,7 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return (val == true) + return val == true @property def start_frequency(self) -> float: @@ -103,5 +106,4 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return (val == true) - + return val == true diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py index fb7e374df50..148c1a0ef0c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,15 +39,15 @@ def parent(self): return self._parent class NarrowbandBehaviorOption(Enum): - ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" # eslint-disable-line no-eval - RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" # eslint-disable-line no-eval + ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" # eslint-disable-line no-eval + RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" # eslint-disable-line no-eval @property def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior Specifies the behavior of the parametric narrowband emissions mask - """ + """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val.upper()] return val @@ -53,8 +57,7 @@ def measurement_frequency(self) -> float: """Measurement Frequency Measurement frequency for the absolute freq/amp pairs. - """ + """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py index f551a2e6781..f8924491de9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxSpectralProfEmitterNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,7 +41,7 @@ def output_voltage_peak(self) -> float: """Output Voltage Peak Output High Voltage Level: maximum voltage of the digital signal - """ + """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") return float(val) @@ -51,7 +54,7 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return (val == true) + return val == true @property def tx_broadband_noise(self) -> float: @@ -71,7 +74,7 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return (val == true) + return val == true @property def internal_amp_gain(self) -> float: @@ -106,7 +109,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -146,4 +149,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return int(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py index 43261056889..5289464b3e7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,29 +39,29 @@ def parent(self): return self._parent class SpectrumTypeOption(Enum): - NARROWBAND__BROADBAND = "Narrowband & Broadband" # eslint-disable-line no-eval - BROADBAND_ONLY = "Broadband Only" # eslint-disable-line no-eval + NARROWBAND__BROADBAND = "Narrowband & Broadband" # eslint-disable-line no-eval + BROADBAND_ONLY = "Broadband Only" # eslint-disable-line no-eval @property def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type Specifies EMI Margins to calculate - """ + """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val.upper()] return val class TxPowerOption(Enum): - PEAK_POWER = "Peak Power" # eslint-disable-line no-eval - AVERAGE_POWER = "Average Power" # eslint-disable-line no-eval + PEAK_POWER = "Peak Power" # eslint-disable-line no-eval + AVERAGE_POWER = "Average Power" # eslint-disable-line no-eval @property def tx_power(self) -> TxPowerOption: """Tx Power Method used to specify the power - """ + """ val = self._get_property("Tx Power") val = self.TxPowerOption[val.upper()] return val @@ -92,7 +96,7 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return (val == true) + return val == true @property def tx_broadband_noise(self) -> float: @@ -105,17 +109,17 @@ def tx_broadband_noise(self) -> float: return float(val) class HarmonicTaperOption(Enum): - CONSTANT = "Constant" # eslint-disable-line no-eval - MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval - MIL_STD_461G_NAVY = "MIL-STD-461G Navy" # eslint-disable-line no-eval - DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval + CONSTANT = "Constant" # eslint-disable-line no-eval + MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval + MIL_STD_461G_NAVY = "MIL-STD-461G Navy" # eslint-disable-line no-eval + DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval @property def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper Taper type used to set amplitude of harmonics - """ + """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val.upper()] return val @@ -159,7 +163,7 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return (val == true) + return val == true @property def number_of_harmonics(self) -> int: @@ -209,7 +213,7 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return (val == true) + return val == true @property def internal_amp_gain(self) -> float: @@ -244,7 +248,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -284,4 +288,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return int(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py index 22181d5a1b3..6e5bb3ef8a6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,28 +40,27 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py index 71e96dd9bce..7615faa90a6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,14 +46,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @@ -58,7 +62,7 @@ def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -80,41 +84,41 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val class PathLossTypeOption(Enum): - LOS_URBAN_CANYON = "LOS (Urban Canyon)" # eslint-disable-line no-eval - NLOS = "NLOS" # eslint-disable-line no-eval + LOS_URBAN_CANYON = "LOS (Urban Canyon)" # eslint-disable-line no-eval + NLOS = "NLOS" # eslint-disable-line no-eval @property def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type Specify LOS vs NLOS for the Walfisch-Ikegami model - """ + """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val.upper()] return val class EnvironmentOption(Enum): - DENSE_METRO = "Dense Metro" # eslint-disable-line no-eval - SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" # eslint-disable-line no-eval + DENSE_METRO = "Dense Metro" # eslint-disable-line no-eval + SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Walfisch model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @@ -196,17 +200,17 @@ def pointing_error_loss(self) -> float: return float(val) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -240,7 +244,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -283,7 +287,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -314,4 +318,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py index 5c1658b76bd..793b36627eb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyWaveform(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -39,23 +43,23 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") return val class WaveformOption(Enum): - PERIODIC_CLOCK = "Periodic Clock" # eslint-disable-line no-eval - SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" # eslint-disable-line no-eval - PRBS = "PRBS" # eslint-disable-line no-eval - PRBS_PERIODIC = "PRBS (Periodic)" # eslint-disable-line no-eval - IMPORTED = "Imported" # eslint-disable-line no-eval + PERIODIC_CLOCK = "Periodic Clock" # eslint-disable-line no-eval + SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" # eslint-disable-line no-eval + PRBS = "PRBS" # eslint-disable-line no-eval + PRBS_PERIODIC = "PRBS (Periodic)" # eslint-disable-line no-eval + IMPORTED = "Imported" # eslint-disable-line no-eval @property def waveform(self) -> WaveformOption: """Waveform Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Waveform") val = self.WaveformOption[val.upper()] return val @@ -115,16 +119,16 @@ def clock_risefall_time(self) -> float: return float(val) class SpreadingTypeOption(Enum): - LOW_SPREAD = "Low Spread" # eslint-disable-line no-eval - CENTER_SPREAD = "Center Spread" # eslint-disable-line no-eval - HIGH_SPREAD = "High Spread" # eslint-disable-line no-eval + LOW_SPREAD = "Low Spread" # eslint-disable-line no-eval + CENTER_SPREAD = "Center Spread" # eslint-disable-line no-eval + HIGH_SPREAD = "High Spread" # eslint-disable-line no-eval @property def spreading_type(self) -> SpreadingTypeOption: """Spreading Type Type of spreading employed by the Spread Spectrum Clock - """ + """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val.upper()] return val @@ -152,7 +156,7 @@ def raw_data_format(self) -> str: """Raw Data Format Format of the imported raw data - """ + """ val = self._get_property("Raw Data Format") return val @@ -175,7 +179,7 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return (val == true) + return val == true @property def nb_window_size(self) -> float: @@ -209,15 +213,15 @@ def nb_detector_threshold(self) -> float: return float(val) class AlgorithmOption(Enum): - FFT = "FFT" # eslint-disable-line no-eval - FOURIER_TRANSFORM = "Fourier Transform" # eslint-disable-line no-eval + FFT = "FFT" # eslint-disable-line no-eval + FOURIER_TRANSFORM = "Fourier Transform" # eslint-disable-line no-eval @property def algorithm(self) -> AlgorithmOption: """Algorithm Algorithm used to transform the imported time domain spectrum - """ + """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val.upper()] return val @@ -238,7 +242,7 @@ def stop_time(self) -> float: """Stop Time Final time of the imported time domain spectrum - """ + """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") return float(val) @@ -255,22 +259,22 @@ def max_frequency(self) -> float: return float(val) class WindowTypeOption(Enum): - RECTANGULAR = "Rectangular" # eslint-disable-line no-eval - BARTLETT = "Bartlett" # eslint-disable-line no-eval - BLACKMAN = "Blackman" # eslint-disable-line no-eval - HAMMING = "Hamming" # eslint-disable-line no-eval - HANNING = "Hanning" # eslint-disable-line no-eval - KAISER = "Kaiser" # eslint-disable-line no-eval - LANZCOS = "Lanzcos" # eslint-disable-line no-eval - WELCH = "Welch" # eslint-disable-line no-eval - WEBER = "Weber" # eslint-disable-line no-eval + RECTANGULAR = "Rectangular" # eslint-disable-line no-eval + BARTLETT = "Bartlett" # eslint-disable-line no-eval + BLACKMAN = "Blackman" # eslint-disable-line no-eval + HAMMING = "Hamming" # eslint-disable-line no-eval + HANNING = "Hanning" # eslint-disable-line no-eval + KAISER = "Kaiser" # eslint-disable-line no-eval + LANZCOS = "Lanzcos" # eslint-disable-line no-eval + WELCH = "Welch" # eslint-disable-line no-eval + WEBER = "Weber" # eslint-disable-line no-eval @property def window_type(self) -> WindowTypeOption: """Window Type Windowing scheme used for importing time domain spectrum - """ + """ val = self._get_property("Window Type") val = self.WindowTypeOption[val.upper()] return val @@ -293,7 +297,7 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return (val == true) + return val == true @property def data_rate(self) -> float: @@ -324,7 +328,7 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return (val == true) + return val == true @property def min_ptsnull(self) -> int: @@ -346,4 +350,3 @@ def delay_skew(self) -> float: val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py index 3117ab4e6db..e277116c257 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ResultPlotNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,15 +46,13 @@ def title(self) -> str: """Title Enter title at the top of the plot, room will be made for it - """ + """ val = self._get_property("Title") return val @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) @property def title_font(self): @@ -64,9 +66,7 @@ def title_font(self): @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -76,13 +76,11 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return (val == true) + return val == true @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) @property def legend_font(self): @@ -96,9 +94,7 @@ def legend_font(self): @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) @property def show_emi_thresholds(self) -> bool: @@ -108,13 +104,11 @@ def show_emi_thresholds(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show EMI Thresholds") - return (val == true) + return val == true @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show EMI Thresholds={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show EMI Thresholds={value}"]) @property def display_cad_overlay(self) -> bool: @@ -124,13 +118,11 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return (val == true) + return val == true @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -143,25 +135,21 @@ def opacity(self) -> float: return float(val) @opacity.setter - def opacity(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Opacity={value}"]) + def opacity(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset Adjust vertical position of CAD model overlay - """ + """ val = self._get_property("Vertical Offset") return float(val) @vertical_offset.setter - def vertical_offset(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Offset={value}"]) + def vertical_offset(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -175,10 +163,8 @@ def range_axis_rotation(self) -> float: return float(val) @range_axis_rotation.setter - def range_axis_rotation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -188,73 +174,63 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return (val == true) + return val == true @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min Set lower extent of horizontal axis - """ + """ val = self._get_property("X-axis Min") return float(val) @x_axis_min.setter - def x_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Min={value}"]) + def x_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max Set upper extent of horizontal axis - """ + """ val = self._get_property("X-axis Max") return float(val) @x_axis_max.setter - def x_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Max={value}"]) + def x_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min Set lower extent of vertical axis - """ + """ val = self._get_property("Y-axis Min") return float(val) @y_axis_min.setter - def y_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Min={value}"]) + def y_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max Set upper extent of vertical axis - """ + """ val = self._get_property("Y-axis Max") return float(val) @y_axis_max.setter - def y_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Max={value}"]) + def y_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -268,10 +244,8 @@ def y_axis_range(self) -> float: return float(val) @y_axis_range.setter - def y_axis_range(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Range={value}"]) + def y_axis_range(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -285,9 +259,7 @@ def max_major_ticks_x(self) -> int: @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -302,9 +274,7 @@ def max_minor_ticks_x(self) -> int: @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -318,9 +288,7 @@ def max_major_ticks_y(self) -> int: @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -335,9 +303,7 @@ def max_minor_ticks_y(self) -> int: @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -351,9 +317,7 @@ def axis_label_font(self): @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -367,33 +331,31 @@ def axis_tick_label_font(self): @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style Select line style of major-tick grid lines - """ + """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val.upper()] return val @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] + ) @property def major_grid_color(self): @@ -407,33 +369,31 @@ def major_grid_color(self): @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style Select line style of minor-tick grid lines - """ + """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val.upper()] return val @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] + ) @property def minor_grid_color(self): @@ -447,9 +407,7 @@ def minor_grid_color(self): @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -463,31 +421,29 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): - HERTZ = "hertz" # eslint-disable-line no-eval - KILOHERTZ = "kilohertz" # eslint-disable-line no-eval - MEGAHERTZ = "megahertz" # eslint-disable-line no-eval - GIGAHERTZ = "gigahertz" # eslint-disable-line no-eval + HERTZ = "hertz" # eslint-disable-line no-eval + KILOHERTZ = "kilohertz" # eslint-disable-line no-eval + MEGAHERTZ = "megahertz" # eslint-disable-line no-eval + GIGAHERTZ = "gigahertz" # eslint-disable-line no-eval @property def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit Units to use for plotting broadband power densities - """ + """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val.upper()] return val @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power for Plots Unit={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] + ) @property def bb_power_bandwidth(self) -> float: @@ -501,11 +457,9 @@ def bb_power_bandwidth(self) -> float: return float(val) @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value : float|str): + def bb_power_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -515,11 +469,8 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return (val == true) + return val == true @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Log Scale={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py index 06922538d2c..2c6e541e30d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -67,31 +71,29 @@ def receive_frequency(self) -> float: """Receive Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) class MeasurementModeOption(Enum): - AUDIO_SINAD = "Audio SINAD" # eslint-disable-line no-eval - DIGITAL_BER = "Digital BER" # eslint-disable-line no-eval - GPS_CNR = "GPS CNR" # eslint-disable-line no-eval + AUDIO_SINAD = "Audio SINAD" # eslint-disable-line no-eval + DIGITAL_BER = "Digital BER" # eslint-disable-line no-eval + GPS_CNR = "GPS CNR" # eslint-disable-line no-eval @property def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode Defines the mode for the receiver measurement - """ + """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val.upper()] return val @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Mode={value.value}"]) @property def sinad_threshold(self) -> float: @@ -104,10 +106,8 @@ def sinad_threshold(self) -> float: return float(val) @sinad_threshold.setter - def sinad_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SINAD Threshold={value}"]) + def sinad_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SINAD Threshold={value}"]) @property def gps_cnr_threshold(self) -> float: @@ -120,10 +120,8 @@ def gps_cnr_threshold(self) -> float: return float(val) @gps_cnr_threshold.setter - def gps_cnr_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"GPS CNR Threshold={value}"]) + def gps_cnr_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GPS CNR Threshold={value}"]) @property def ber_threshold(self) -> float: @@ -136,10 +134,8 @@ def ber_threshold(self) -> float: return float(val) @ber_threshold.setter - def ber_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BER Threshold={value}"]) + def ber_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BER Threshold={value}"]) @property def default_intended_power(self) -> bool: @@ -149,13 +145,11 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return (val == true) + return val == true @default_intended_power.setter def default_intended_power(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Default Intended Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Default Intended Power={value}"]) @property def intended_signal_power(self) -> float: @@ -168,10 +162,8 @@ def intended_signal_power(self) -> float: return float(val) @intended_signal_power.setter - def intended_signal_power(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Intended Signal Power={value}"]) + def intended_signal_power(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Intended Signal Power={value}"]) @property def freq_deviation(self) -> float: @@ -185,11 +177,9 @@ def freq_deviation(self) -> float: return float(val) @freq_deviation.setter - def freq_deviation(self, value : float|str): + def freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) @property def modulation_depth(self) -> float: @@ -202,10 +192,8 @@ def modulation_depth(self) -> float: return float(val) @modulation_depth.setter - def modulation_depth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation Depth={value}"]) + def modulation_depth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Depth={value}"]) @property def measure_selectivity(self) -> bool: @@ -215,13 +203,11 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return (val == true) + return val == true @measure_selectivity.setter def measure_selectivity(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Selectivity={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Selectivity={value}"]) @property def measure_mixer_products(self) -> bool: @@ -231,13 +217,11 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return (val == true) + return val == true @measure_mixer_products.setter def measure_mixer_products(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Mixer Products={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Mixer Products={value}"]) @property def max_rf_order(self) -> int: @@ -251,9 +235,7 @@ def max_rf_order(self) -> int: @max_rf_order.setter def max_rf_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max RF Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max RF Order={value}"]) @property def max_lo_order(self) -> int: @@ -267,9 +249,7 @@ def max_lo_order(self) -> int: @max_lo_order.setter def max_lo_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max LO Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max LO Order={value}"]) @property def include_if(self) -> bool: @@ -279,13 +259,11 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return (val == true) + return val == true @include_if.setter def include_if(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include IF={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include IF={value}"]) @property def measure_saturation(self) -> bool: @@ -295,13 +273,11 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return (val == true) + return val == true @measure_saturation.setter def measure_saturation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Saturation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Saturation={value}"]) @property def use_ams_limits(self) -> bool: @@ -311,13 +287,11 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return (val == true) + return val == true @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -331,11 +305,9 @@ def start_frequency(self) -> float: return float(val) @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -349,11 +321,9 @@ def stop_frequency(self) -> float: return float(val) @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def samples(self) -> int: @@ -367,9 +337,7 @@ def samples(self) -> int: @samples.setter def samples(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Samples={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Samples={value}"]) @property def exclude_mixer_products_below_noise(self) -> bool: @@ -379,20 +347,19 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return (val == true) + return val == true @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Exclude Mixer Products Below Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Exclude Mixer Products Below Noise={value}"] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py index fe158ef21cf..4268c9f5ad1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RxMixerProductNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -45,32 +49,32 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class MixerProductTaperOption(Enum): - CONSTANT = "Constant" # eslint-disable-line no-eval - MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval - DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval + CONSTANT = "Constant" # eslint-disable-line no-eval + MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval + DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval @property def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper Taper for setting amplitude of mixer products - """ + """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val.upper()] return val @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Taper={value.value}"] + ) @property def mixer_product_susceptibility(self) -> float: @@ -83,10 +87,10 @@ def mixer_product_susceptibility(self) -> float: return float(val) @mixer_product_susceptibility.setter - def mixer_product_susceptibility(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Susceptibility={value}"]) + def mixer_product_susceptibility(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Susceptibility={value}"] + ) @property def spurious_rejection(self) -> float: @@ -99,10 +103,8 @@ def spurious_rejection(self) -> float: return float(val) @spurious_rejection.setter - def spurious_rejection(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spurious Rejection={value}"]) + def spurious_rejection(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spurious Rejection={value}"]) @property def minimum_tuning_frequency(self) -> float: @@ -116,11 +118,9 @@ def minimum_tuning_frequency(self) -> float: return float(val) @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value : float|str): + def minimum_tuning_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minimum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Tuning Frequency={value}"]) @property def maximum_tuning_frequency(self) -> float: @@ -134,11 +134,9 @@ def maximum_tuning_frequency(self) -> float: return float(val) @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value : float|str): + def maximum_tuning_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum Tuning Frequency={value}"]) @property def mixer_product_slope(self) -> float: @@ -152,10 +150,8 @@ def mixer_product_slope(self) -> float: return float(val) @mixer_product_slope.setter - def mixer_product_slope(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Slope={value}"]) + def mixer_product_slope(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Slope={value}"]) @property def mixer_product_intercept(self) -> float: @@ -168,10 +164,8 @@ def mixer_product_intercept(self) -> float: return float(val) @mixer_product_intercept.setter - def mixer_product_intercept(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Intercept={value}"]) + def mixer_product_intercept(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Intercept={value}"]) @property def bandwidth_80_db(self) -> float: @@ -186,11 +180,9 @@ def bandwidth_80_db(self) -> float: return float(val) @bandwidth_80_db.setter - def bandwidth_80_db(self, value : float|str): + def bandwidth_80_db(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 80 dB={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 80 dB={value}"]) @property def image_rejection(self) -> float: @@ -203,10 +195,8 @@ def image_rejection(self) -> float: return float(val) @image_rejection.setter - def image_rejection(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Image Rejection={value}"]) + def image_rejection(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Image Rejection={value}"]) @property def maximum_rf_harmonic_order(self) -> int: @@ -220,9 +210,9 @@ def maximum_rf_harmonic_order(self) -> int: @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum RF Harmonic Order={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Maximum RF Harmonic Order={value}"] + ) @property def maximum_lo_harmonic_order(self) -> int: @@ -236,30 +226,28 @@ def maximum_lo_harmonic_order(self) -> int: @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum LO Harmonic Order={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Maximum LO Harmonic Order={value}"] + ) class MixingModeOption(Enum): - LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" # eslint-disable-line no-eval - LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" # eslint-disable-line no-eval - LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" # eslint-disable-line no-eval @property def mixing_mode(self) -> MixingModeOption: """Mixing Mode Specifies whether the IF frequency is > or < RF channel frequency - """ + """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val.upper()] return val @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixing Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixing Mode={value.value}"]) @property def first_if_frequency(self): @@ -273,64 +261,57 @@ def first_if_frequency(self): @first_if_frequency.setter def first_if_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First IF Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First IF Frequency={value}"]) @property def rf_transition_frequency(self) -> float: """RF Transition Frequency RF Frequency Transition point - """ + """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @rf_transition_frequency.setter - def rf_transition_frequency(self, value : float|str): + def rf_transition_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"RF Transition Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"RF Transition Frequency={value}"]) class UseHighLOOption(Enum): - ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" # eslint-disable-line no-eval - BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" # eslint-disable-line no-eval + ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" # eslint-disable-line no-eval + BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" # eslint-disable-line no-eval @property def use_high_lo(self) -> UseHighLOOption: """Use High LO Use High LO above/below the transition frequency - """ + """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val.upper()] return val @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use High LO={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use High LO={value.value}"]) class MixerProductTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units Specifies the units for the Mixer Products - """ + """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val.upper()] return val @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Table Units={value.value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py index df6a48c060b..62e4e8f9276 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RxSaturationNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,9 +47,8 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py index b9449774377..e49a32513f8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RxSelectivityNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,7 +47,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -59,11 +62,8 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return (val == true) + return val == true @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Arithmetic Mean={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Arithmetic Mean={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py index 89ea0bb0ab1..d31eeddfbd7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,13 +48,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -62,29 +66,26 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spur Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py index 61f20e340cd..a9eabfb4a7a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RxSusceptibilityProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -37,37 +41,35 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SensitivityUnitsOption(Enum): - DBM = "dBm" # eslint-disable-line no-eval - DBUV = "dBuV" # eslint-disable-line no-eval - MILLIWATTS = "milliwatts" # eslint-disable-line no-eval - MICROVOLTS = "microvolts" # eslint-disable-line no-eval + DBM = "dBm" # eslint-disable-line no-eval + DBUV = "dBuV" # eslint-disable-line no-eval + MILLIWATTS = "milliwatts" # eslint-disable-line no-eval + MICROVOLTS = "microvolts" # eslint-disable-line no-eval @property def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units Units to use for the Rx Sensitivity - """ + """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val.upper()] return val @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sensitivity Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sensitivity Units={value.value}"]) @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr Received signal power level at the Rx's antenna terminal Value should be between -1000 and 1000. @@ -76,10 +78,8 @@ def min_receive_signal_pwr_(self) -> float: return float(val) @min_receive_signal_pwr_.setter - def min_receive_signal_pwr_(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min. Receive Signal Pwr ={value}"]) + def min_receive_signal_pwr_(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min. Receive Signal Pwr ={value}"]) @property def snr_at_rx_signal_pwr(self) -> float: @@ -93,10 +93,8 @@ def snr_at_rx_signal_pwr(self) -> float: return float(val) @snr_at_rx_signal_pwr.setter - def snr_at_rx_signal_pwr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SNR at Rx Signal Pwr={value}"]) + def snr_at_rx_signal_pwr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR at Rx Signal Pwr={value}"]) @property def processing_gain(self) -> float: @@ -109,10 +107,8 @@ def processing_gain(self) -> float: return float(val) @processing_gain.setter - def processing_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Processing Gain={value}"]) + def processing_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Processing Gain={value}"]) @property def apply_pg_to_narrowband_only(self) -> bool: @@ -123,13 +119,13 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return (val == true) + return val == true @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Apply PG to Narrowband Only={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Apply PG to Narrowband Only={value}"] + ) @property def saturation_level(self) -> float: @@ -143,11 +139,9 @@ def saturation_level(self) -> float: return float(val) @saturation_level.setter - def saturation_level(self, value : float|str): + def saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) @property def rx_noise_figure(self) -> float: @@ -160,14 +154,12 @@ def rx_noise_figure(self) -> float: return float(val) @rx_noise_figure.setter - def rx_noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rx Noise Figure={value}"]) + def rx_noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rx Noise Figure={value}"]) @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity Rx minimum sensitivity level (dBm) Value should be between -1000 and 1000. @@ -177,15 +169,13 @@ def receiver_sensitivity_(self) -> float: return float(val) @receiver_sensitivity_.setter - def receiver_sensitivity_(self, value : float|str): + def receiver_sensitivity_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Receiver Sensitivity ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver Sensitivity ={value}"]) @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity SNR or SINAD at the specified sensitivity level Value should be between -1000 and 1000. @@ -194,10 +184,10 @@ def snrsinad_at_sensitivity_(self) -> float: return float(val) @snrsinad_at_sensitivity_.setter - def snrsinad_at_sensitivity_(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SNR/SINAD at Sensitivity ={value}"]) + def snrsinad_at_sensitivity_(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"SNR/SINAD at Sensitivity ={value}"] + ) @property def perform_rx_intermod_analysis(self) -> bool: @@ -207,13 +197,13 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return (val == true) + return val == true @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Rx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Rx Intermod Analysis={value}"] + ) @property def amplifier_saturation_level(self) -> float: @@ -227,15 +217,15 @@ def amplifier_saturation_level(self) -> float: return float(val) @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Rx's 1 dB Compression Point - total power > P1dB saturates the receiver Value should be between -1000 and 1000. @@ -245,11 +235,9 @@ def p1_db_point_ref_input_(self) -> float: return float(val) @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -263,11 +251,9 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def max_intermod_order(self) -> int: @@ -281,7 +267,4 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py index 1d867b31631..18b477a6102 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class SamplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,11 +40,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Min: + "Min: Value should be greater than 1. - "Max: + "Max: Value should be greater than 1. """ return self._get_table_data() @@ -50,25 +54,23 @@ def table_data(self, value): self._set_table_data(value) class SamplingTypeOption(Enum): - SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" # eslint-disable-line no-eval - RANDOM_SAMPLING = "Random Sampling" # eslint-disable-line no-eval - UNIFORM_SAMPLING = "Uniform Sampling" # eslint-disable-line no-eval + SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" # eslint-disable-line no-eval + RANDOM_SAMPLING = "Random Sampling" # eslint-disable-line no-eval + UNIFORM_SAMPLING = "Uniform Sampling" # eslint-disable-line no-eval @property def sampling_type(self) -> SamplingTypeOption: """Sampling Type Sampling to apply to this configuration - """ + """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val.upper()] return val @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sampling Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sampling Type={value.value}"]) @property def specify_percentage(self) -> bool: @@ -79,13 +81,11 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return (val == true) + return val == true @specify_percentage.setter def specify_percentage(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Specify Percentage={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Specify Percentage={value}"]) @property def percentage_of_channels(self) -> float: @@ -98,10 +98,8 @@ def percentage_of_channels(self) -> float: return float(val) @percentage_of_channels.setter - def percentage_of_channels(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Percentage of Channels={value}"]) + def percentage_of_channels(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percentage of Channels={value}"]) @property def max__channelsrangeband(self) -> int: @@ -115,9 +113,9 @@ def max__channelsrangeband(self) -> int: @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max # Channels/Range/Band={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Max # Channels/Range/Band={value}"] + ) @property def seed(self) -> int: @@ -131,9 +129,7 @@ def seed(self) -> int: @seed.setter def seed(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Seed={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Seed={value}"]) @property def total_tx_channels(self) -> int: @@ -141,7 +137,7 @@ def total_tx_channels(self) -> int: Total number of transmit channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Tx Channels") return int(val) @@ -151,7 +147,7 @@ def total_rx_channels(self) -> int: Total number of receive channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Rx Channels") return int(val) @@ -160,7 +156,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py index 2c98880e6d8..8c5d7918192 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class SceneGroupNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -59,13 +63,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return val == true @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -79,9 +83,7 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -95,29 +97,25 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval + AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -131,9 +129,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -147,9 +143,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def show_axes(self) -> bool: @@ -159,13 +153,11 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return val == true @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def box_color(self): @@ -179,22 +171,17 @@ def box_color(self): @box_color.setter def box_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Box Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Box Color={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py index 2fd164ebd1f..1d4975aa6db 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class SelectivityTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,15 +56,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -70,13 +72,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -86,52 +86,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -145,9 +139,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -161,42 +153,38 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -210,9 +198,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -226,9 +212,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -242,9 +226,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -255,11 +237,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py index 959b5cfb018..8553e1f5f7d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class SolutionCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,13 +45,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -58,13 +59,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -74,26 +73,21 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py index 0ce64982dff..0a1142dc3d7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class SolutionsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,11 +45,8 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py index 3020732a087..09c0c7eb305 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class SpurTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -51,15 +55,13 @@ def channel_frequency(self): """Channel Frequency Select band channel frequency to display - """ + """ val = self._get_property("Channel Frequency") return val @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: @@ -67,7 +69,7 @@ def transmit_frequency(self) -> float: The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset) - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -78,15 +80,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,13 +96,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -112,52 +110,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -171,9 +163,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -187,42 +177,38 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -236,9 +222,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -252,9 +236,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -268,9 +250,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -281,11 +261,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py index 0c8853662ec..136636da3b7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TestNoiseTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,9 +62,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -74,9 +76,7 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -84,15 +84,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -102,13 +100,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -118,52 +114,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -177,9 +167,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -193,42 +181,38 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -242,9 +226,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -258,9 +240,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -274,9 +254,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -287,13 +265,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -307,11 +283,9 @@ def frequency_1(self) -> float: return float(val) @frequency_1.setter - def frequency_1(self, value : float|str): + def frequency_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -325,11 +299,9 @@ def amplitude_1(self) -> float: return float(val) @amplitude_1.setter - def amplitude_1(self, value : float|str): + def amplitude_1(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -343,11 +315,9 @@ def bandwidth_1(self) -> float: return float(val) @bandwidth_1.setter - def bandwidth_1(self, value : float|str): + def bandwidth_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -361,11 +331,9 @@ def frequency_2(self) -> float: return float(val) @frequency_2.setter - def frequency_2(self, value : float|str): + def frequency_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -379,11 +347,9 @@ def amplitude_2(self) -> float: return float(val) @amplitude_2.setter - def amplitude_2(self, value : float|str): + def amplitude_2(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -397,11 +363,9 @@ def bandwidth_2(self) -> float: return float(val) @bandwidth_2.setter - def bandwidth_2(self, value : float|str): + def bandwidth_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -414,8 +378,5 @@ def noise_level(self) -> float: return float(val) @noise_level.setter - def noise_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Level={value}"]) - + def noise_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py index 3dc7c0a53b1..e54ab2654f2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py @@ -1,30 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TopLevelSimulation(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False EmitNode.__init__(self, emit_obj, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py index b16d60057e3..36fc75f89f7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TouchstoneCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -53,13 +56,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -69,13 +70,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -85,28 +84,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def filename(self) -> str: @@ -120,16 +115,14 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File Coupling data generated by Savant and exported as a matched file - """ + """ val = self._get_property("Savant Matched Coupling File") return val @@ -141,13 +134,11 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return (val == true) + return val == true @enable_em_isolation.setter def enable_em_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable EM Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable EM Isolation={value}"]) @property def port_antenna_assignment(self): @@ -155,28 +146,23 @@ def port_antenna_assignment(self): Maps each port in the coupling file to an antenna in the project "A list of values." - """ + """ val = self._get_property("Port-Antenna Assignment") return val @port_antenna_assignment.setter def port_antenna_assignment(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port-Antenna Assignment={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port-Antenna Assignment={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py index 2ec224f815a..1e7c1aa322e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TRSwitchTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,9 +62,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -74,9 +76,7 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -84,15 +84,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -102,13 +100,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -118,52 +114,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -177,9 +167,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -193,42 +181,38 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -242,9 +226,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -258,9 +240,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -274,9 +254,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -287,11 +265,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py index 64ba5f45756..a4a28a05082 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TunableTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,9 +62,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -74,26 +76,22 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def frequency(self) -> float: """Frequency Tunable filter center frequency - """ + """ val = self._get_property("Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @frequency.setter - def frequency(self, value : float|str): + def frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency={value}"]) @property def data_source(self): @@ -101,15 +99,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -119,13 +115,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -135,52 +129,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -194,9 +182,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -210,42 +196,38 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -259,9 +241,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -275,9 +255,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -291,9 +269,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -304,11 +280,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py index 62510da1c13..d485cfbbaa8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def ground_reflection_coeff(self) -> float: @@ -150,10 +142,8 @@ def ground_reflection_coeff(self) -> float: return float(val) @ground_reflection_coeff.setter - def ground_reflection_coeff(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ground Reflection Coeff.={value}"]) + def ground_reflection_coeff(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ground Reflection Coeff.={value}"]) @property def pointspeak(self) -> int: @@ -167,9 +157,7 @@ def pointspeak(self) -> int: @pointspeak.setter def pointspeak(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Points/Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Points/Peak={value}"]) @property def custom_fading_margin(self) -> float: @@ -183,10 +171,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -200,10 +186,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -217,32 +201,28 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -256,10 +236,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -272,10 +250,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -285,13 +261,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -305,10 +279,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -321,10 +293,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -338,10 +308,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -352,13 +320,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -371,10 +339,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -387,10 +353,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -403,8 +367,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py index 21ef52d1c91..e4d768d2910 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TwoToneTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,9 +62,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -74,9 +76,7 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -84,15 +84,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -102,13 +100,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -118,52 +114,46 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" # eslint-disable-line no-eval + DOTTED = "Dotted" # eslint-disable-line no-eval + DASHED = "Dashed" # eslint-disable-line no-eval + DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval + DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -177,9 +167,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -193,42 +181,38 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval + ELLIPSE = "Ellipse" # eslint-disable-line no-eval + RECT = "Rect" # eslint-disable-line no-eval + DIAMOND = "Diamond" # eslint-disable-line no-eval + TRIANGLE = "Triangle" # eslint-disable-line no-eval + DTRIANGLE = "DTriangle" # eslint-disable-line no-eval + LTRIANGLE = "LTriangle" # eslint-disable-line no-eval + RTRIANGLE = "RTriangle" # eslint-disable-line no-eval + CROSS = "Cross" # eslint-disable-line no-eval + XCROSS = "XCross" # eslint-disable-line no-eval + HLINE = "HLine" # eslint-disable-line no-eval + VLINE = "VLine" # eslint-disable-line no-eval + STAR1 = "Star1" # eslint-disable-line no-eval + STAR2 = "Star2" # eslint-disable-line no-eval + HEXAGON = "Hexagon" # eslint-disable-line no-eval @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -242,9 +226,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -258,9 +240,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -274,9 +254,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -287,13 +265,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -307,11 +283,9 @@ def frequency_1(self) -> float: return float(val) @frequency_1.setter - def frequency_1(self, value : float|str): + def frequency_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -325,11 +299,9 @@ def amplitude_1(self) -> float: return float(val) @amplitude_1.setter - def amplitude_1(self, value : float|str): + def amplitude_1(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -343,11 +315,9 @@ def bandwidth_1(self) -> float: return float(val) @bandwidth_1.setter - def bandwidth_1(self, value : float|str): + def bandwidth_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -361,11 +331,9 @@ def frequency_2(self) -> float: return float(val) @frequency_2.setter - def frequency_2(self, value : float|str): + def frequency_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -379,11 +347,9 @@ def amplitude_2(self) -> float: return float(val) @amplitude_2.setter - def amplitude_2(self, value : float|str): + def amplitude_2(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -397,11 +363,9 @@ def bandwidth_2(self) -> float: return float(val) @bandwidth_2.setter - def bandwidth_2(self, value : float|str): + def bandwidth_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -414,8 +378,5 @@ def noise_level(self) -> float: return float(val) @noise_level.setter - def noise_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Level={value}"]) - + def noise_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py index 2550605d095..ab103a45b30 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxBbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -46,9 +50,9 @@ def delete(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): Value should be between -200 and 150. """ return self._get_table_data() @@ -60,33 +64,31 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class NoiseBehaviorOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE_BANDWIDTH = "Relative (Bandwidth)" # eslint-disable-line no-eval - RELATIVE_OFFSET = "Relative (Offset)" # eslint-disable-line no-eval - EQUATION = "Equation" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE_BANDWIDTH = "Relative (Bandwidth)" # eslint-disable-line no-eval + RELATIVE_OFFSET = "Relative (Offset)" # eslint-disable-line no-eval + EQUATION = "Equation" # eslint-disable-line no-eval @property def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior Specifies the behavior of the parametric noise profile - """ + """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val.upper()] return val @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Behavior={value.value}"]) @property def use_log_linear_interpolation(self) -> bool: @@ -97,11 +99,10 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return (val == true) + return val == true @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Log-Linear Interpolation={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py index 5b511707cff..54a57f2f6a9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxHarmonicNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -45,29 +49,28 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class HarmonicTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units Specifies the units for the Harmonics - """ + """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val.upper()] return val @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py index 5b7b3dee748..21e1fc9cb59 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -66,7 +69,7 @@ def transmit_frequency(self) -> float: """Transmit Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -79,13 +82,11 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return (val == true) + return val == true @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -99,11 +100,9 @@ def start_frequency(self) -> float: return float(val) @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -117,11 +116,9 @@ def stop_frequency(self) -> float: return float(val) @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def exclude_harmonics_below_noise(self) -> bool: @@ -131,20 +128,19 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return (val == true) + return val == true @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Exclude Harmonics Below Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py index 6cf45a15f9e..4c85e75b442 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxNbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -45,46 +49,43 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class NarrowbandBehaviorOption(Enum): - ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" # eslint-disable-line no-eval - RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" # eslint-disable-line no-eval + ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" # eslint-disable-line no-eval + RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" # eslint-disable-line no-eval @property def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior Specifies the behavior of the parametric narrowband emissions mask - """ + """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val.upper()] return val @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Narrowband Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"] + ) @property def measurement_frequency(self) -> float: """Measurement Frequency Measurement frequency for the absolute freq/amp pairs. - """ + """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @measurement_frequency.setter - def measurement_frequency(self, value : float|str): + def measurement_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Frequency={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Frequency={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py index 32cfcb3cd42..8a8426ae9cb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxSpectralProfEmitterNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +39,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -47,17 +50,15 @@ def output_voltage_peak(self) -> float: """Output Voltage Peak Output High Voltage Level: maximum voltage of the digital signal - """ + """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") return float(val) @output_voltage_peak.setter - def output_voltage_peak(self, value : float|str): + def output_voltage_peak(self, value: float | str): value = self._convert_to_internal_units(value, "Voltage") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Voltage Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Voltage Peak={value}"]) @property def include_phase_noise(self) -> bool: @@ -67,13 +68,11 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return (val == true) + return val == true @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -86,10 +85,8 @@ def tx_broadband_noise(self) -> float: return float(val) @tx_broadband_noise.setter - def tx_broadband_noise(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -99,13 +96,13 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return (val == true) + return val == true @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Tx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] + ) @property def internal_amp_gain(self) -> float: @@ -118,10 +115,8 @@ def internal_amp_gain(self) -> float: return float(val) @internal_amp_gain.setter - def internal_amp_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -134,10 +129,8 @@ def noise_figure(self) -> float: return float(val) @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -151,15 +144,15 @@ def amplifier_saturation_level(self) -> float: return float(val) @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -170,11 +163,9 @@ def p1_db_point_ref_input_(self) -> float: return float(val) @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -188,11 +179,9 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -205,10 +194,8 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -222,7 +209,4 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py index c671c184a43..364180aa1e3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxSpectralProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -37,51 +41,47 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpectrumTypeOption(Enum): - NARROWBAND__BROADBAND = "Narrowband & Broadband" # eslint-disable-line no-eval - BROADBAND_ONLY = "Broadband Only" # eslint-disable-line no-eval + NARROWBAND__BROADBAND = "Narrowband & Broadband" # eslint-disable-line no-eval + BROADBAND_ONLY = "Broadband Only" # eslint-disable-line no-eval @property def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type Specifies EMI Margins to calculate - """ + """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val.upper()] return val @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spectrum Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spectrum Type={value.value}"]) class TxPowerOption(Enum): - PEAK_POWER = "Peak Power" # eslint-disable-line no-eval - AVERAGE_POWER = "Average Power" # eslint-disable-line no-eval + PEAK_POWER = "Peak Power" # eslint-disable-line no-eval + AVERAGE_POWER = "Average Power" # eslint-disable-line no-eval @property def tx_power(self) -> TxPowerOption: """Tx Power Method used to specify the power - """ + """ val = self._get_property("Tx Power") val = self.TxPowerOption[val.upper()] return val @tx_power.setter def tx_power(self, value: TxPowerOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Power={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Power={value.value}"]) @property def peak_power(self) -> float: @@ -95,11 +95,9 @@ def peak_power(self) -> float: return float(val) @peak_power.setter - def peak_power(self, value : float|str): + def peak_power(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Peak Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Power={value}"]) @property def average_power(self) -> float: @@ -113,11 +111,9 @@ def average_power(self) -> float: return float(val) @average_power.setter - def average_power(self, value : float|str): + def average_power(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Average Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Average Power={value}"]) @property def include_phase_noise(self) -> bool: @@ -127,13 +123,11 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return (val == true) + return val == true @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -146,32 +140,28 @@ def tx_broadband_noise(self) -> float: return float(val) @tx_broadband_noise.setter - def tx_broadband_noise(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) class HarmonicTaperOption(Enum): - CONSTANT = "Constant" # eslint-disable-line no-eval - MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval - MIL_STD_461G_NAVY = "MIL-STD-461G Navy" # eslint-disable-line no-eval - DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval + CONSTANT = "Constant" # eslint-disable-line no-eval + MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval + MIL_STD_461G_NAVY = "MIL-STD-461G Navy" # eslint-disable-line no-eval + DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval @property def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper Taper type used to set amplitude of harmonics - """ + """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val.upper()] return val @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Taper={value.value}"]) @property def harmonic_amplitude(self) -> float: @@ -184,10 +174,8 @@ def harmonic_amplitude(self) -> float: return float(val) @harmonic_amplitude.setter - def harmonic_amplitude(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Amplitude={value}"]) + def harmonic_amplitude(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Amplitude={value}"]) @property def harmonic_slope(self) -> float: @@ -200,10 +188,8 @@ def harmonic_slope(self) -> float: return float(val) @harmonic_slope.setter - def harmonic_slope(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Slope={value}"]) + def harmonic_slope(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Slope={value}"]) @property def harmonic_intercept(self) -> float: @@ -216,10 +202,8 @@ def harmonic_intercept(self) -> float: return float(val) @harmonic_intercept.setter - def harmonic_intercept(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Intercept={value}"]) + def harmonic_intercept(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Intercept={value}"]) @property def enable_harmonic_bw_expansion(self) -> bool: @@ -230,13 +214,13 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return (val == true) + return val == true @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Harmonic BW Expansion={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Enable Harmonic BW Expansion={value}"] + ) @property def number_of_harmonics(self) -> int: @@ -250,9 +234,7 @@ def number_of_harmonics(self) -> int: @number_of_harmonics.setter def number_of_harmonics(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Harmonics={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Harmonics={value}"]) @property def second_harmonic_level(self) -> float: @@ -265,10 +247,8 @@ def second_harmonic_level(self) -> float: return float(val) @second_harmonic_level.setter - def second_harmonic_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Second Harmonic Level={value}"]) + def second_harmonic_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Second Harmonic Level={value}"]) @property def third_harmonic_level(self) -> float: @@ -281,10 +261,8 @@ def third_harmonic_level(self) -> float: return float(val) @third_harmonic_level.setter - def third_harmonic_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Third Harmonic Level={value}"]) + def third_harmonic_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Third Harmonic Level={value}"]) @property def other_harmonic_levels(self) -> float: @@ -297,10 +275,8 @@ def other_harmonic_levels(self) -> float: return float(val) @other_harmonic_levels.setter - def other_harmonic_levels(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Other Harmonic Levels={value}"]) + def other_harmonic_levels(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Other Harmonic Levels={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -310,13 +286,13 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return (val == true) + return val == true @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Tx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] + ) @property def internal_amp_gain(self) -> float: @@ -329,10 +305,8 @@ def internal_amp_gain(self) -> float: return float(val) @internal_amp_gain.setter - def internal_amp_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -345,10 +319,8 @@ def noise_figure(self) -> float: return float(val) @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -362,15 +334,15 @@ def amplifier_saturation_level(self) -> float: return float(val) @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -381,11 +353,9 @@ def p1_db_point_ref_input_(self) -> float: return float(val) @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -399,11 +369,9 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -416,10 +384,8 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -433,7 +399,4 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py index 3efe5d23920..a9b400f5e1d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,13 +48,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -62,29 +66,26 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" # eslint-disable-line no-eval + RELATIVE = "Relative" # eslint-disable-line no-eval @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spur Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py index 471a6aa7212..fa04b213947 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class WalfischCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,68 +112,60 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class PathLossTypeOption(Enum): - LOS_URBAN_CANYON = "LOS (Urban Canyon)" # eslint-disable-line no-eval - NLOS = "NLOS" # eslint-disable-line no-eval + LOS_URBAN_CANYON = "LOS (Urban Canyon)" # eslint-disable-line no-eval + NLOS = "NLOS" # eslint-disable-line no-eval @property def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type Specify LOS vs NLOS for the Walfisch-Ikegami model - """ + """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val.upper()] return val @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Path Loss Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Type={value.value}"]) class EnvironmentOption(Enum): - DENSE_METRO = "Dense Metro" # eslint-disable-line no-eval - SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" # eslint-disable-line no-eval + DENSE_METRO = "Dense Metro" # eslint-disable-line no-eval + SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" # eslint-disable-line no-eval @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Walfisch model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def roof_height(self) -> float: @@ -191,11 +179,9 @@ def roof_height(self) -> float: return float(val) @roof_height.setter - def roof_height(self, value : float|str): + def roof_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Roof Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Roof Height={value}"]) @property def distance_between_buildings(self) -> float: @@ -209,11 +195,11 @@ def distance_between_buildings(self) -> float: return float(val) @distance_between_buildings.setter - def distance_between_buildings(self, value : float|str): + def distance_between_buildings(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Distance Between Buildings={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Distance Between Buildings={value}"] + ) @property def street_width(self) -> float: @@ -227,11 +213,9 @@ def street_width(self) -> float: return float(val) @street_width.setter - def street_width(self, value : float|str): + def street_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Street Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Street Width={value}"]) @property def incidence_angle(self) -> float: @@ -244,10 +228,8 @@ def incidence_angle(self) -> float: return float(val) @incidence_angle.setter - def incidence_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Incidence Angle={value}"]) + def incidence_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Incidence Angle={value}"]) @property def custom_fading_margin(self) -> float: @@ -261,10 +243,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -278,10 +258,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -295,32 +273,28 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" # eslint-disable-line no-eval + FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval + SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -334,10 +308,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -350,10 +322,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -363,13 +333,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -383,10 +351,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -399,10 +365,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -416,10 +380,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -430,13 +392,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -449,10 +411,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -465,10 +425,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -481,8 +439,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) From ca17091372c1a6782b39915741a4899f9d343881 Mon Sep 17 00:00:00 2001 From: jsalant Date: Wed, 21 May 2025 12:55:24 -0400 Subject: [PATCH 70/86] remove lint comments --- .../emit_core/nodes/generated/Amplifier.py | 101 +++-- .../core/emit_core/nodes/generated/Band.py | 307 ++++++++------ .../core/emit_core/nodes/generated/Cable.py | 77 ++-- .../emit_core/nodes/generated/Circulator.py | 109 +++-- .../core/emit_core/nodes/generated/Filter.py | 175 +++++--- .../emit_core/nodes/generated/Isolator.py | 109 +++-- .../emit_core/nodes/generated/Multiplexer.py | 67 +-- .../emit_core/nodes/generated/TR_Switch.py | 109 +++-- .../emit_core/nodes/generated/Terminator.py | 61 +-- .../emit_core/nodes/generated/Waveform.py | 219 ++++++---- .../emit_core/nodes/generated/__init__.py | 318 +++++++-------- .../emit_core/nodes/generated/antenna_node.py | 385 +++++++++++------- .../nodes/generated/antenna_passband.py | 60 +-- .../emit_core/nodes/generated/band_folder.py | 16 +- .../nodes/generated/band_trace_node.py | 139 ++++--- .../emit_core/nodes/generated/cad_node.py | 267 +++++++----- .../nodes/generated/categories_view_node.py | 16 +- .../nodes/generated/coupling_link_node.py | 28 +- .../nodes/generated/coupling_trace_node.py | 173 +++++--- .../nodes/generated/couplings_node.py | 32 +- .../nodes/generated/custom_coupling_node.py | 60 +-- .../nodes/generated/emi_plot_marker_node.py | 181 ++++---- .../nodes/generated/emit_scene_node.py | 45 +- .../nodes/generated/erceg_coupling_node.py | 161 +++++--- .../nodes/generated/five_g_channel_model.py | 183 +++++---- .../nodes/generated/hata_coupling_node.py | 163 +++++--- .../indoor_propagation_coupling_node.py | 177 ++++---- .../generated/log_distance_coupling_node.py | 175 ++++---- .../nodes/generated/mplex_band_trace_node.py | 130 +++--- .../nodes/generated/multiplexer_band.py | 97 +++-- .../nodes/generated/outboard_trace_node.py | 129 +++--- .../parametric_coupling_trace_node.py | 135 +++--- .../nodes/generated/plot_marker_node.py | 193 +++++---- .../emit_core/nodes/generated/plot_node.py | 211 ++++++---- .../nodes/generated/power_divider.py | 113 +++-- .../nodes/generated/power_trace_node.py | 131 +++--- .../nodes/generated/profile_trace_node.py | 121 +++--- .../propagation_loss_coupling_node.py | 149 ++++--- .../emit_core/nodes/generated/radio_node.py | 30 +- .../nodes/generated/read_only_amplifier.py | 25 +- .../nodes/generated/read_only_antenna_node.py | 129 +++--- .../generated/read_only_antenna_passband.py | 18 +- .../nodes/generated/read_only_band.py | 119 +++--- .../nodes/generated/read_only_band_folder.py | 16 +- .../nodes/generated/read_only_cable.py | 29 +- .../nodes/generated/read_only_cad_node.py | 87 ++-- .../nodes/generated/read_only_circulator.py | 37 +- .../generated/read_only_coupling_link_node.py | 20 +- .../generated/read_only_couplings_node.py | 18 +- .../read_only_custom_coupling_node.py | 34 +- .../generated/read_only_emit_scene_node.py | 29 +- .../read_only_erceg_coupling_node.py | 51 ++- .../nodes/generated/read_only_filter.py | 49 ++- .../read_only_five_g_channel_model.py | 61 ++- .../generated/read_only_hata_coupling_node.py | 53 ++- ...d_only_indoor_propagation_coupling_node.py | 63 ++- .../nodes/generated/read_only_isolator.py | 37 +- .../read_only_log_distance_coupling_node.py | 59 ++- .../nodes/generated/read_only_multiplexer.py | 37 +- .../generated/read_only_multiplexer_band.py | 29 +- .../generated/read_only_power_divider.py | 39 +- ...ead_only_propagation_loss_coupling_node.py | 43 +- .../nodes/generated/read_only_radio_node.py | 26 +- .../nodes/generated/read_only_rx_meas_node.py | 41 +- .../read_only_rx_mixer_product_node.py | 47 +-- .../generated/read_only_rx_saturation_node.py | 16 +- .../read_only_rx_selectivity_node.py | 18 +- .../nodes/generated/read_only_rx_spur_node.py | 31 +- .../read_only_rx_susceptibility_prof_node.py | 39 +- .../generated/read_only_sampling_node.py | 39 +- .../generated/read_only_scene_group_node.py | 29 +- .../read_only_solution_coupling_node.py | 24 +- .../generated/read_only_solutions_node.py | 18 +- .../nodes/generated/read_only_terminator.py | 33 +- .../read_only_touchstone_coupling_node.py | 32 +- .../nodes/generated/read_only_tr_switch.py | 35 +- ...ad_only_two_ray_path_loss_coupling_node.py | 43 +- .../read_only_tx_bb_emission_node.py | 33 +- .../generated/read_only_tx_harmonic_node.py | 23 +- .../nodes/generated/read_only_tx_meas_node.py | 22 +- .../read_only_tx_nb_emission_node.py | 25 +- ...read_only_tx_spectral_prof_emitter_node.py | 24 +- .../read_only_tx_spectral_prof_node.py | 47 +-- .../nodes/generated/read_only_tx_spur_node.py | 31 +- .../read_only_walfisch_coupling_node.py | 55 ++- .../nodes/generated/read_only_waveform.py | 75 ++-- .../nodes/generated/result_plot_node.py | 217 ++++++---- .../emit_core/nodes/generated/rx_meas_node.py | 137 ++++--- .../nodes/generated/rx_mixer_product_node.py | 143 ++++--- .../nodes/generated/rx_saturation_node.py | 20 +- .../nodes/generated/rx_selectivity_node.py | 26 +- .../emit_core/nodes/generated/rx_spur_node.py | 39 +- .../generated/rx_susceptibility_prof_node.py | 125 +++--- .../nodes/generated/sampling_node.py | 63 +-- .../nodes/generated/scene_group_node.py | 67 +-- .../nodes/generated/selectivity_trace_node.py | 121 +++--- .../nodes/generated/solution_coupling_node.py | 40 +- .../nodes/generated/solutions_node.py | 22 +- .../nodes/generated/spur_trace_node.py | 129 +++--- .../nodes/generated/test_noise_trace_node.py | 171 +++++--- .../nodes/generated/top_level_simulation.py | 16 +- .../generated/touchstone_coupling_node.py | 64 +-- .../nodes/generated/tr_switch_trace_node.py | 129 +++--- .../nodes/generated/tunable_trace_node.py | 137 ++++--- .../two_ray_path_loss_coupling_node.py | 159 +++++--- .../nodes/generated/two_tone_trace_node.py | 171 +++++--- .../nodes/generated/tx_bb_emission_node.py | 47 ++- .../nodes/generated/tx_harmonic_node.py | 33 +- .../emit_core/nodes/generated/tx_meas_node.py | 46 ++- .../nodes/generated/tx_nb_emission_node.py | 41 +- .../tx_spectral_prof_emitter_node.py | 90 ++-- .../nodes/generated/tx_spectral_prof_node.py | 177 ++++---- .../emit_core/nodes/generated/tx_spur_node.py | 39 +- .../nodes/generated/walfisch_coupling_node.py | 195 +++++---- 114 files changed, 5623 insertions(+), 4281 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index a6183fb9a9d..d40968c90d2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Amplifier(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -57,7 +53,9 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -70,39 +68,45 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class AmplifierTypeOption(Enum): - TRANSMIT_AMPLIFIER = "Transmit Amplifier" # eslint-disable-line no-eval - RECEIVE_AMPLIFIER = "Receive Amplifier" # eslint-disable-line no-eval + TRANSMIT_AMPLIFIER = "Transmit Amplifier" + RECEIVE_AMPLIFIER = "Receive Amplifier" @property def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type Configures the amplifier as a Tx or Rx amplifier - """ + """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val.upper()] return val @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Type={value.value}"]) @property def gain(self) -> float: @@ -115,8 +119,10 @@ def gain(self) -> float: return float(val) @gain.setter - def gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Gain={value}"]) + def gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Gain={value}"]) @property def center_frequency(self) -> float: @@ -130,9 +136,11 @@ def center_frequency(self) -> float: return float(val) @center_frequency.setter - def center_frequency(self, value: float | str): + def center_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Center Frequency={value}"]) @property def bandwidth(self) -> float: @@ -146,9 +154,11 @@ def bandwidth(self) -> float: return float(val) @bandwidth.setter - def bandwidth(self, value: float | str): + def bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth={value}"]) @property def noise_figure(self) -> float: @@ -161,8 +171,10 @@ def noise_figure(self) -> float: return float(val) @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def saturation_level(self) -> float: @@ -176,9 +188,11 @@ def saturation_level(self) -> float: return float(val) @saturation_level.setter - def saturation_level(self, value: float | str): + def saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Saturation Level={value}"]) @property def p1_db_point_ref_input(self) -> float: @@ -192,9 +206,11 @@ def p1_db_point_ref_input(self) -> float: return float(val) @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value: float | str): + def p1_db_point_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input={value}"]) @property def ip3_ref_input(self) -> float: @@ -208,9 +224,11 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def shape_factor(self) -> float: @@ -223,8 +241,10 @@ def shape_factor(self) -> float: return float(val) @shape_factor.setter - def shape_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) + def shape_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Shape Factor={value}"]) @property def reverse_isolation(self) -> float: @@ -237,8 +257,10 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -252,4 +274,7 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index e16425cce99..3001455d9e1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Band(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +37,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -52,13 +48,15 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") return val @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port={value}"]) @property def use_dd_1494_mode(self) -> bool: @@ -68,11 +66,13 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return val == true + return (val == true) @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use DD-1494 Mode={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use DD-1494 Mode={value}"]) @property def use_emission_designator(self) -> bool: @@ -82,31 +82,35 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return val == true + return (val == true) @use_emission_designator.setter def use_emission_designator(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Emission Designator={value}"]) @property def emission_designator(self) -> str: """Emission Designator Enter the Emission Designator to define the bandwidth and modulation - """ + """ val = self._get_property("Emission Designator") return val @emission_designator.setter def emission_designator(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Emission Designator={value}"]) @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW Channel Bandwidth based off the emission designator - """ + """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -116,7 +120,7 @@ def emit_modulation_type(self) -> str: """EMIT Modulation Type Modulation based off the emission designator - """ + """ val = self._get_property("EMIT Modulation Type") return val @@ -129,13 +133,13 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return val == true + return (val == true) @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Override Emission Designator BW={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Override Emission Designator BW={value}"]) @property def channel_bandwidth(self) -> float: @@ -149,36 +153,40 @@ def channel_bandwidth(self) -> float: return float(val) @channel_bandwidth.setter - def channel_bandwidth(self, value: float | str): + def channel_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Bandwidth={value}"]) class ModulationOption(Enum): - GENERIC = "Generic" # eslint-disable-line no-eval - AM = "AM" # eslint-disable-line no-eval - LSB = "LSB" # eslint-disable-line no-eval - USB = "USB" # eslint-disable-line no-eval - FM = "FM" # eslint-disable-line no-eval - FSK = "FSK" # eslint-disable-line no-eval - MSK = "MSK" # eslint-disable-line no-eval - PSK = "PSK" # eslint-disable-line no-eval - QAM = "QAM" # eslint-disable-line no-eval - APSK = "APSK" # eslint-disable-line no-eval - RADAR = "Radar" # eslint-disable-line no-eval + GENERIC = "Generic" + AM = "AM" + LSB = "LSB" + USB = "USB" + FM = "FM" + FSK = "FSK" + MSK = "MSK" + PSK = "PSK" + QAM = "QAM" + APSK = "APSK" + RADAR = "Radar" @property def modulation(self) -> ModulationOption: """Modulation Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Modulation") val = self.ModulationOption[val.upper()] return val @modulation.setter def modulation(self, value: ModulationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation={value.value}"]) @property def max_modulating_freq(self) -> float: @@ -192,9 +200,11 @@ def max_modulating_freq(self) -> float: return float(val) @max_modulating_freq.setter - def max_modulating_freq(self, value: float | str): + def max_modulating_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Modulating Freq.={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Modulating Freq.={value}"]) @property def modulation_index(self) -> float: @@ -207,8 +217,10 @@ def modulation_index(self) -> float: return float(val) @modulation_index.setter - def modulation_index(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Index={value}"]) + def modulation_index(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation Index={value}"]) @property def freq_deviation(self) -> float: @@ -222,9 +234,11 @@ def freq_deviation(self) -> float: return float(val) @freq_deviation.setter - def freq_deviation(self, value: float | str): + def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation={value}"]) @property def bit_rate(self) -> float: @@ -238,9 +252,11 @@ def bit_rate(self) -> float: return float(val) @bit_rate.setter - def bit_rate(self, value: float | str): + def bit_rate(self, value : float|str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bit Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bit Rate={value}"]) @property def sidelobes(self) -> int: @@ -254,11 +270,13 @@ def sidelobes(self) -> int: @sidelobes.setter def sidelobes(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sidelobes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sidelobes={value}"]) @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation FSK frequency deviation: helps determine spectral profile Value should be greater than 1. @@ -268,92 +286,102 @@ def freq_deviation_(self) -> float: return float(val) @freq_deviation_.setter - def freq_deviation_(self, value: float | str): + def freq_deviation_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation ={value}"]) class PSKTypeOption(Enum): - BPSK = "BPSK" # eslint-disable-line no-eval - QPSK = "QPSK" # eslint-disable-line no-eval - PSK_8 = "PSK-8" # eslint-disable-line no-eval - PSK_16 = "PSK-16" # eslint-disable-line no-eval - PSK_32 = "PSK-32" # eslint-disable-line no-eval - PSK_64 = "PSK-64" # eslint-disable-line no-eval + BPSK = "BPSK" + QPSK = "QPSK" + PSK_8 = "PSK-8" + PSK_16 = "PSK-16" + PSK_32 = "PSK-32" + PSK_64 = "PSK-64" @property def psk_type(self) -> PSKTypeOption: """PSK Type PSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val.upper()] return val @psk_type.setter def psk_type(self, value: PSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"PSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"PSK Type={value.value}"]) class FSKTypeOption(Enum): - FSK_2 = "FSK-2" # eslint-disable-line no-eval - FSK_4 = "FSK-4" # eslint-disable-line no-eval - FSK_8 = "FSK-8" # eslint-disable-line no-eval + FSK_2 = "FSK-2" + FSK_4 = "FSK-4" + FSK_8 = "FSK-8" @property def fsk_type(self) -> FSKTypeOption: """FSK Type FSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val.upper()] return val @fsk_type.setter def fsk_type(self, value: FSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FSK Type={value.value}"]) class QAMTypeOption(Enum): - QAM_4 = "QAM-4" # eslint-disable-line no-eval - QAM_16 = "QAM-16" # eslint-disable-line no-eval - QAM_64 = "QAM-64" # eslint-disable-line no-eval - QAM_256 = "QAM-256" # eslint-disable-line no-eval - QAM_1024 = "QAM-1024" # eslint-disable-line no-eval + QAM_4 = "QAM-4" + QAM_16 = "QAM-16" + QAM_64 = "QAM-64" + QAM_256 = "QAM-256" + QAM_1024 = "QAM-1024" @property def qam_type(self) -> QAMTypeOption: """QAM Type QAM modulation order: helps determine spectral profile - """ + """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val.upper()] return val @qam_type.setter def qam_type(self, value: QAMTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"QAM Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"QAM Type={value.value}"]) class APSKTypeOption(Enum): - APSK_4 = "APSK-4" # eslint-disable-line no-eval - APSK_16 = "APSK-16" # eslint-disable-line no-eval - APSK_64 = "APSK-64" # eslint-disable-line no-eval - APSK_256 = "APSK-256" # eslint-disable-line no-eval - APSK_1024 = "APSK-1024" # eslint-disable-line no-eval + APSK_4 = "APSK-4" + APSK_16 = "APSK-16" + APSK_64 = "APSK-64" + APSK_256 = "APSK-256" + APSK_1024 = "APSK-1024" @property def apsk_type(self) -> APSKTypeOption: """APSK Type APSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val.upper()] return val @apsk_type.setter def apsk_type(self, value: APSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"APSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"APSK Type={value.value}"]) @property def start_frequency(self) -> float: @@ -367,9 +395,11 @@ def start_frequency(self) -> float: return float(val) @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -383,9 +413,11 @@ def stop_frequency(self) -> float: return float(val) @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -399,9 +431,11 @@ def channel_spacing(self) -> float: return float(val) @channel_spacing.setter - def channel_spacing(self, value: float | str): + def channel_spacing(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Spacing={value}"]) @property def tx_offset(self) -> float: @@ -415,30 +449,34 @@ def tx_offset(self) -> float: return float(val) @tx_offset.setter - def tx_offset(self, value: float | str): + def tx_offset(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Offset={value}"]) class RadarTypeOption(Enum): - CW = "CW" # eslint-disable-line no-eval - FM_CW = "FM-CW" # eslint-disable-line no-eval - FM_PULSE = "FM Pulse" # eslint-disable-line no-eval - NON_FM_PULSE = "Non-FM Pulse" # eslint-disable-line no-eval - PHASE_CODED = "Phase Coded" # eslint-disable-line no-eval + CW = "CW" + FM_CW = "FM-CW" + FM_PULSE = "FM Pulse" + NON_FM_PULSE = "Non-FM Pulse" + PHASE_CODED = "Phase Coded" @property def radar_type(self) -> RadarTypeOption: """Radar Type Radar type: helps determine spectral profile - """ + """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val.upper()] return val @radar_type.setter def radar_type(self, value: RadarTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radar Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Radar Type={value.value}"]) @property def hopping_radar(self) -> bool: @@ -448,11 +486,13 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return val == true + return (val == true) @hopping_radar.setter def hopping_radar(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hopping Radar={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hopping Radar={value}"]) @property def post_october_2020_procurement(self) -> bool: @@ -463,13 +503,13 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return val == true + return (val == true) @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Post October 2020 Procurement={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Post October 2020 Procurement={value}"]) @property def hop_range_min_freq(self) -> float: @@ -483,9 +523,11 @@ def hop_range_min_freq(self) -> float: return float(val) @hop_range_min_freq.setter - def hop_range_min_freq(self, value: float | str): + def hop_range_min_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Min Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hop Range Min Freq={value}"]) @property def hop_range_max_freq(self) -> float: @@ -499,9 +541,11 @@ def hop_range_max_freq(self) -> float: return float(val) @hop_range_max_freq.setter - def hop_range_max_freq(self, value: float | str): + def hop_range_max_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Max Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hop Range Max Freq={value}"]) @property def pulse_duration(self) -> float: @@ -515,9 +559,11 @@ def pulse_duration(self) -> float: return float(val) @pulse_duration.setter - def pulse_duration(self, value: float | str): + def pulse_duration(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Duration={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Duration={value}"]) @property def pulse_rise_time(self) -> float: @@ -531,9 +577,11 @@ def pulse_rise_time(self) -> float: return float(val) @pulse_rise_time.setter - def pulse_rise_time(self, value: float | str): + def pulse_rise_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Rise Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Rise Time={value}"]) @property def pulse_fall_time(self) -> float: @@ -547,9 +595,11 @@ def pulse_fall_time(self) -> float: return float(val) @pulse_fall_time.setter - def pulse_fall_time(self, value: float | str): + def pulse_fall_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Fall Time={value}"]) @property def pulse_repetition_rate(self) -> float: @@ -562,8 +612,10 @@ def pulse_repetition_rate(self) -> float: return float(val) @pulse_repetition_rate.setter - def pulse_repetition_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Repetition Rate={value}"]) + def pulse_repetition_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Repetition Rate={value}"]) @property def number_of_chips(self) -> float: @@ -576,8 +628,10 @@ def number_of_chips(self) -> float: return float(val) @number_of_chips.setter - def number_of_chips(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Chips={value}"]) + def number_of_chips(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Chips={value}"]) @property def pulse_compression_ratio(self) -> float: @@ -590,8 +644,10 @@ def pulse_compression_ratio(self) -> float: return float(val) @pulse_compression_ratio.setter - def pulse_compression_ratio(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Compression Ratio={value}"]) + def pulse_compression_ratio(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Compression Ratio={value}"]) @property def fm_chirp_period(self) -> float: @@ -605,9 +661,11 @@ def fm_chirp_period(self) -> float: return float(val) @fm_chirp_period.setter - def fm_chirp_period(self, value: float | str): + def fm_chirp_period(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Chirp Period={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Chirp Period={value}"]) @property def fm_freq_deviation(self) -> float: @@ -621,9 +679,11 @@ def fm_freq_deviation(self) -> float: return float(val) @fm_freq_deviation.setter - def fm_freq_deviation(self, value: float | str): + def fm_freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Freq Deviation={value}"]) @property def fm_freq_dev_bandwidth(self) -> float: @@ -638,6 +698,9 @@ def fm_freq_dev_bandwidth(self) -> float: return float(val) @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value: float | str): + def fm_freq_dev_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Dev Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Freq Dev Bandwidth={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index bb8c0bc9d68..6a1be19ecde 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Cable(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -57,7 +53,9 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -70,26 +68,30 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - CONSTANT_LOSS = "Constant Loss" # eslint-disable-line no-eval - COAXIAL_CABLE = "Coaxial Cable" # eslint-disable-line no-eval + BY_FILE = "By File" + CONSTANT_LOSS = "Constant Loss" + COAXIAL_CABLE = "Coaxial Cable" @property def type(self) -> TypeOption: @@ -97,14 +99,16 @@ def type(self) -> TypeOption: Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def length(self) -> float: @@ -118,9 +122,11 @@ def length(self) -> float: return float(val) @length.setter - def length(self, value: float | str): + def length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Length={value}"]) @property def loss_per_length(self) -> float: @@ -133,8 +139,10 @@ def loss_per_length(self) -> float: return float(val) @loss_per_length.setter - def loss_per_length(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Loss Per Length={value}"]) + def loss_per_length(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Loss Per Length={value}"]) @property def measurement_length(self) -> float: @@ -148,9 +156,11 @@ def measurement_length(self) -> float: return float(val) @measurement_length.setter - def measurement_length(self, value: float | str): + def measurement_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Length={value}"]) @property def resistive_loss_constant(self) -> float: @@ -163,8 +173,10 @@ def resistive_loss_constant(self) -> float: return float(val) @resistive_loss_constant.setter - def resistive_loss_constant(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resistive Loss Constant={value}"]) + def resistive_loss_constant(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Resistive Loss Constant={value}"]) @property def dielectric_loss_constant(self) -> float: @@ -177,14 +189,17 @@ def dielectric_loss_constant(self) -> float: return float(val) @dielectric_loss_constant.setter - def dielectric_loss_constant(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Dielectric Loss Constant={value}"]) + def dielectric_loss_constant(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Dielectric Loss Constant={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index 85a69dbd52a..21b3e607370 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Circulator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -57,7 +53,9 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -70,25 +68,29 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" + PARAMETRIC = "Parametric" @property def type(self) -> TypeOption: @@ -96,32 +98,36 @@ def type(self) -> TypeOption: Type of circulator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" + ANTENNA_SIDE = "Antenna Side" @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the circulator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -134,8 +140,10 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -146,11 +154,13 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val == true + return (val == true) @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -163,8 +173,10 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -175,11 +187,13 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val == true + return (val == true) @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -192,8 +206,10 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -207,9 +223,11 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -223,9 +241,11 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -239,9 +259,11 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -255,15 +277,18 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index 20c3080ab17..967e66a5efa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Filter(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -57,7 +53,9 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -70,30 +68,34 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - LOW_PASS = "Low Pass" # eslint-disable-line no-eval - HIGH_PASS = "High Pass" # eslint-disable-line no-eval - BAND_PASS = "Band Pass" # eslint-disable-line no-eval - BAND_STOP = "Band Stop" # eslint-disable-line no-eval - TUNABLE_BANDPASS = "Tunable Bandpass" # eslint-disable-line no-eval - TUNABLE_BANDSTOP = "Tunable Bandstop" # eslint-disable-line no-eval + BY_FILE = "By File" + LOW_PASS = "Low Pass" + HIGH_PASS = "High Pass" + BAND_PASS = "Band Pass" + BAND_STOP = "Band Stop" + TUNABLE_BANDPASS = "Tunable Bandpass" + TUNABLE_BANDSTOP = "Tunable Bandstop" @property def type(self) -> TypeOption: @@ -101,14 +103,16 @@ def type(self) -> TypeOption: Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def insertion_loss(self) -> float: @@ -121,8 +125,10 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -135,8 +141,10 @@ def stop_band_attenuation(self) -> float: return float(val) @stop_band_attenuation.setter - def stop_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -150,9 +158,11 @@ def max_pass_band(self) -> float: return float(val) @max_pass_band.setter - def max_pass_band(self, value: float | str): + def max_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -166,9 +176,11 @@ def min_stop_band(self) -> float: return float(val) @min_stop_band.setter - def min_stop_band(self, value: float | str): + def min_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -182,9 +194,11 @@ def max_stop_band(self) -> float: return float(val) @max_stop_band.setter - def max_stop_band(self, value: float | str): + def max_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -198,9 +212,11 @@ def min_pass_band(self) -> float: return float(val) @min_pass_band.setter - def min_pass_band(self, value: float | str): + def min_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -214,9 +230,11 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -230,9 +248,11 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -246,9 +266,11 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -262,13 +284,15 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff Lower cutoff frequency Value should be between 1 and 1e+11. @@ -278,13 +302,15 @@ def lower_cutoff_(self) -> float: return float(val) @lower_cutoff_.setter - def lower_cutoff_(self, value: float | str): + def lower_cutoff_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff ={value}"]) @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band Lower stop band frequency Value should be between 1 and 1e+11. @@ -294,13 +320,15 @@ def lower_stop_band_(self) -> float: return float(val) @lower_stop_band_.setter - def lower_stop_band_(self, value: float | str): + def lower_stop_band_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band ={value}"]) @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band Higher stop band frequency Value should be between 1 and 1e+11. @@ -310,13 +338,15 @@ def higher_stop_band_(self) -> float: return float(val) @higher_stop_band_.setter - def higher_stop_band_(self, value: float | str): + def higher_stop_band_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band ={value}"]) @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff Higher cutoff frequency Value should be between 1 and 1e+11. @@ -326,13 +356,15 @@ def higher_cutoff_(self) -> float: return float(val) @higher_cutoff_.setter - def higher_cutoff_(self, value: float | str): + def higher_cutoff_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff ={value}"]) @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency Lowest tuned frequency Value should be between 1 and 1e+11. @@ -342,13 +374,15 @@ def lowest_tuned_frequency_(self) -> float: return float(val) @lowest_tuned_frequency_.setter - def lowest_tuned_frequency_(self, value: float | str): + def lowest_tuned_frequency_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lowest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lowest Tuned Frequency ={value}"]) @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency Highest tuned frequency Value should be between 1 and 1e+11. @@ -358,9 +392,11 @@ def highest_tuned_frequency_(self) -> float: return float(val) @highest_tuned_frequency_.setter - def highest_tuned_frequency_(self, value: float | str): + def highest_tuned_frequency_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Highest Tuned Frequency ={value}"]) @property def percent_bandwidth(self) -> float: @@ -373,8 +409,10 @@ def percent_bandwidth(self) -> float: return float(val) @percent_bandwidth.setter - def percent_bandwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percent Bandwidth={value}"]) + def percent_bandwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Percent Bandwidth={value}"]) @property def shape_factor(self) -> float: @@ -387,14 +425,17 @@ def shape_factor(self) -> float: return float(val) @shape_factor.setter - def shape_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) + def shape_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Shape Factor={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index c1419303913..6aa95b62d73 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Isolator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -57,7 +53,9 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -70,25 +68,29 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" + PARAMETRIC = "Parametric" @property def type(self) -> TypeOption: @@ -96,32 +98,36 @@ def type(self) -> TypeOption: Type of isolator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" + ANTENNA_SIDE = "Antenna Side" @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the isolator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -134,8 +140,10 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -146,11 +154,13 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val == true + return (val == true) @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -163,8 +173,10 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -175,11 +187,13 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val == true + return (val == true) @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -192,8 +206,10 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -207,9 +223,11 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -223,9 +241,11 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -239,9 +259,11 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -255,15 +277,18 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index 04801689318..47b989677c7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Multiplexer(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -61,7 +57,9 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -74,25 +72,29 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_PASS_BAND = "By Pass Band" # eslint-disable-line no-eval - BY_FILE = "By File" # eslint-disable-line no-eval + BY_PASS_BAND = "By Pass Band" + BY_FILE = "By File" @property def type(self) -> TypeOption: @@ -101,32 +103,36 @@ def type(self) -> TypeOption: simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" + ANTENNA_SIDE = "Antenna Side" @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the multiplexer. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def flip_ports_vertically(self) -> bool: @@ -136,11 +142,13 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return val == true + return (val == true) @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flip Ports Vertically={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Flip Ports Vertically={value}"]) @property def ports(self): @@ -148,19 +156,22 @@ def ports(self): Assigns the child port nodes to the multiplexers ports "A list of values." - """ + """ val = self._get_property("Ports") return val @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ports={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index 5cc6b848abc..c68a43a9258 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TR_Switch(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -57,7 +53,9 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -70,59 +68,65 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TxPortOption(Enum): - PORT_1 = "Port 1" # eslint-disable-line no-eval - PORT_2 = "Port 2" # eslint-disable-line no-eval + PORT_1 = "Port 1" + PORT_2 = "Port 2" @property def tx_port(self) -> TxPortOption: """Tx Port Specifies which port on the TR Switch is part of the Tx path. - """ + """ val = self._get_property("Tx Port") val = self.TxPortOption[val.upper()] return val @tx_port.setter def tx_port(self, value: TxPortOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Port={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Port={value.value}"]) class CommonPortLocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" + ANTENNA_SIDE = "Antenna Side" @property def common_port_location(self) -> CommonPortLocationOption: """Common Port Location Defines the orientation of the tr switch. - """ + """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val.upper()] return val @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Common Port Location={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Common Port Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -135,8 +139,10 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_isolation(self) -> bool: @@ -147,11 +153,13 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val == true + return (val == true) @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -164,8 +172,10 @@ def isolation(self) -> float: return float(val) @isolation.setter - def isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) + def isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -176,11 +186,13 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val == true + return (val == true) @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -193,8 +205,10 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -208,9 +222,11 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -224,9 +240,11 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -240,9 +258,11 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -256,6 +276,9 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index 0e657477a44..857bf484b3c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Terminator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -57,7 +53,9 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -70,25 +68,29 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" + PARAMETRIC = "Parametric" @property def type(self) -> TypeOption: @@ -96,32 +98,36 @@ def type(self) -> TypeOption: Type of terminator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class PortLocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" + ANTENNA_SIDE = "Antenna Side" @property def port_location(self) -> PortLocationOption: """Port Location Defines the orientation of the terminator. - """ + """ val = self._get_property("Port Location") val = self.PortLocationOption[val.upper()] return val @port_location.setter def port_location(self, value: PortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port Location={value.value}"]) @property def vswr(self) -> float: @@ -136,14 +142,17 @@ def vswr(self) -> float: return float(val) @vswr.setter - def vswr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) + def vswr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"VSWR={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py index 0f82611f494..e763d28e2fc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Waveform(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +37,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -52,34 +48,38 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") return val @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port={value}"]) class WaveformOption(Enum): - PERIODIC_CLOCK = "Periodic Clock" # eslint-disable-line no-eval - SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" # eslint-disable-line no-eval - PRBS = "PRBS" # eslint-disable-line no-eval - PRBS_PERIODIC = "PRBS (Periodic)" # eslint-disable-line no-eval - IMPORTED = "Imported" # eslint-disable-line no-eval + PERIODIC_CLOCK = "Periodic Clock" + SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" + PRBS = "PRBS" + PRBS_PERIODIC = "PRBS (Periodic)" + IMPORTED = "Imported" @property def waveform(self) -> WaveformOption: """Waveform Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Waveform") val = self.WaveformOption[val.upper()] return val @waveform.setter def waveform(self, value: WaveformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Waveform={value.value}"]) @property def start_frequency(self) -> float: @@ -93,9 +93,11 @@ def start_frequency(self) -> float: return float(val) @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -109,9 +111,11 @@ def stop_frequency(self) -> float: return float(val) @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -125,9 +129,11 @@ def channel_spacing(self) -> float: return float(val) @channel_spacing.setter - def channel_spacing(self, value: float | str): + def channel_spacing(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Spacing={value}"]) @property def clock_duty_cycle(self) -> float: @@ -140,8 +146,10 @@ def clock_duty_cycle(self) -> float: return float(val) @clock_duty_cycle.setter - def clock_duty_cycle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Duty Cycle={value}"]) + def clock_duty_cycle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Clock Duty Cycle={value}"]) @property def clock_risefall_time(self) -> float: @@ -155,28 +163,32 @@ def clock_risefall_time(self) -> float: return float(val) @clock_risefall_time.setter - def clock_risefall_time(self, value: float | str): + def clock_risefall_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Rise/Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Clock Rise/Fall Time={value}"]) class SpreadingTypeOption(Enum): - LOW_SPREAD = "Low Spread" # eslint-disable-line no-eval - CENTER_SPREAD = "Center Spread" # eslint-disable-line no-eval - HIGH_SPREAD = "High Spread" # eslint-disable-line no-eval + LOW_SPREAD = "Low Spread" + CENTER_SPREAD = "Center Spread" + HIGH_SPREAD = "High Spread" @property def spreading_type(self) -> SpreadingTypeOption: """Spreading Type Type of spreading employed by the Spread Spectrum Clock - """ + """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val.upper()] return val @spreading_type.setter def spreading_type(self, value: SpreadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spreading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spreading Type={value.value}"]) @property def spread_percentage(self) -> float: @@ -189,8 +201,10 @@ def spread_percentage(self) -> float: return float(val) @spread_percentage.setter - def spread_percentage(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spread Percentage={value}"]) + def spread_percentage(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spread Percentage={value}"]) @property def imported_spectrum(self) -> str: @@ -202,14 +216,16 @@ def imported_spectrum(self) -> str: @imported_spectrum.setter def imported_spectrum(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Imported Spectrum={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Imported Spectrum={value}"]) @property def raw_data_format(self) -> str: """Raw Data Format Format of the imported raw data - """ + """ val = self._get_property("Raw Data Format") return val @@ -225,9 +241,11 @@ def system_impedance(self) -> float: return float(val) @system_impedance.setter - def system_impedance(self, value: float | str): + def system_impedance(self, value : float|str): value = self._convert_to_internal_units(value, "Resistance") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"System Impedance={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"System Impedance={value}"]) @property def advanced_extraction_params(self) -> bool: @@ -237,13 +255,13 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return val == true + return (val == true) @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Advanced Extraction Params={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Advanced Extraction Params={value}"]) @property def nb_window_size(self) -> float: @@ -257,8 +275,10 @@ def nb_window_size(self) -> float: return float(val) @nb_window_size.setter - def nb_window_size(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Window Size={value}"]) + def nb_window_size(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NB Window Size={value}"]) @property def bb_smoothing_factor(self) -> float: @@ -271,8 +291,10 @@ def bb_smoothing_factor(self) -> float: return float(val) @bb_smoothing_factor.setter - def bb_smoothing_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Smoothing Factor={value}"]) + def bb_smoothing_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Smoothing Factor={value}"]) @property def nb_detector_threshold(self) -> float: @@ -285,26 +307,30 @@ def nb_detector_threshold(self) -> float: return float(val) @nb_detector_threshold.setter - def nb_detector_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Detector Threshold={value}"]) + def nb_detector_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NB Detector Threshold={value}"]) class AlgorithmOption(Enum): - FFT = "FFT" # eslint-disable-line no-eval - FOURIER_TRANSFORM = "Fourier Transform" # eslint-disable-line no-eval + FFT = "FFT" + FOURIER_TRANSFORM = "Fourier Transform" @property def algorithm(self) -> AlgorithmOption: """Algorithm Algorithm used to transform the imported time domain spectrum - """ + """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val.upper()] return val @algorithm.setter def algorithm(self, value: AlgorithmOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Algorithm={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Algorithm={value.value}"]) @property def start_time(self) -> float: @@ -318,24 +344,28 @@ def start_time(self) -> float: return float(val) @start_time.setter - def start_time(self, value: float | str): + def start_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Time={value}"]) @property def stop_time(self) -> float: """Stop Time Final time of the imported time domain spectrum - """ + """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") return float(val) @stop_time.setter - def stop_time(self, value: float | str): + def stop_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Time={value}"]) @property def max_frequency(self) -> float: @@ -349,34 +379,38 @@ def max_frequency(self) -> float: return float(val) @max_frequency.setter - def max_frequency(self, value: float | str): + def max_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Frequency={value}"]) class WindowTypeOption(Enum): - RECTANGULAR = "Rectangular" # eslint-disable-line no-eval - BARTLETT = "Bartlett" # eslint-disable-line no-eval - BLACKMAN = "Blackman" # eslint-disable-line no-eval - HAMMING = "Hamming" # eslint-disable-line no-eval - HANNING = "Hanning" # eslint-disable-line no-eval - KAISER = "Kaiser" # eslint-disable-line no-eval - LANZCOS = "Lanzcos" # eslint-disable-line no-eval - WELCH = "Welch" # eslint-disable-line no-eval - WEBER = "Weber" # eslint-disable-line no-eval + RECTANGULAR = "Rectangular" + BARTLETT = "Bartlett" + BLACKMAN = "Blackman" + HAMMING = "Hamming" + HANNING = "Hanning" + KAISER = "Kaiser" + LANZCOS = "Lanzcos" + WELCH = "Welch" + WEBER = "Weber" @property def window_type(self) -> WindowTypeOption: """Window Type Windowing scheme used for importing time domain spectrum - """ + """ val = self._get_property("Window Type") val = self.WindowTypeOption[val.upper()] return val @window_type.setter def window_type(self, value: WindowTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Window Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Window Type={value.value}"]) @property def kaiser_parameter(self) -> float: @@ -389,8 +423,10 @@ def kaiser_parameter(self) -> float: return float(val) @kaiser_parameter.setter - def kaiser_parameter(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Kaiser Parameter={value}"]) + def kaiser_parameter(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Kaiser Parameter={value}"]) @property def adjust_coherent_gain(self) -> bool: @@ -400,11 +436,13 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return val == true + return (val == true) @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adjust Coherent Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adjust Coherent Gain={value}"]) @property def data_rate(self) -> float: @@ -418,9 +456,11 @@ def data_rate(self) -> float: return float(val) @data_rate.setter - def data_rate(self, value: float | str): + def data_rate(self, value : float|str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Rate={value}"]) @property def num_of_bits(self) -> int: @@ -434,7 +474,9 @@ def num_of_bits(self) -> int: @num_of_bits.setter def num_of_bits(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Num of Bits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Num of Bits={value}"]) @property def use_envelope(self) -> bool: @@ -444,11 +486,13 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return val == true + return (val == true) @use_envelope.setter def use_envelope(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Envelope={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Envelope={value}"]) @property def min_ptsnull(self) -> int: @@ -462,7 +506,9 @@ def min_ptsnull(self) -> int: @min_ptsnull.setter def min_ptsnull(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pts/Null={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pts/Null={value}"]) @property def delay_skew(self) -> float: @@ -476,6 +522,9 @@ def delay_skew(self) -> float: return float(val) @delay_skew.setter - def delay_skew(self, value: float | str): + def delay_skew(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Delay Skew={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Delay Skew={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index 1cb32f85690..255b60e62e6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,35 +1,11 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from .amplifier import Amplifier from .antenna_node import AntennaNode from .antenna_passband import AntennaPassband from .band import Band from .band_folder import BandFolder from .band_trace_node import BandTraceNode -from .cable import Cable from .cad_node import CADNode +from .cable import Cable from .categories_view_node import CategoriesViewNode from .circulator import Circulator from .coupling_link_node import CouplingLinkNode @@ -57,13 +33,44 @@ from .profile_trace_node import ProfileTraceNode from .propagation_loss_coupling_node import PropagationLossCouplingNode from .radio_node import RadioNode +from .result_plot_node import ResultPlotNode +from .rx_meas_node import RxMeasNode +from .rx_mixer_product_node import RxMixerProductNode +from .rx_saturation_node import RxSaturationNode +from .rx_selectivity_node import RxSelectivityNode +from .rx_spur_node import RxSpurNode +from .rx_susceptibility_prof_node import RxSusceptibilityProfNode +from .sampling_node import SamplingNode +from .scene_group_node import SceneGroupNode +from .selectivity_trace_node import SelectivityTraceNode +from .solution_coupling_node import SolutionCouplingNode +from .solutions_node import SolutionsNode +from .spur_trace_node import SpurTraceNode +from .tr_switch import TR_Switch +from .tr_switch_trace_node import TRSwitchTraceNode +from .terminator import Terminator +from .test_noise_trace_node import TestNoiseTraceNode +from .top_level_simulation import TopLevelSimulation +from .touchstone_coupling_node import TouchstoneCouplingNode +from .tunable_trace_node import TunableTraceNode +from .two_ray_path_loss_coupling_node import TwoRayPathLossCouplingNode +from .two_tone_trace_node import TwoToneTraceNode +from .tx_bb_emission_node import TxBbEmissionNode +from .tx_harmonic_node import TxHarmonicNode +from .tx_meas_node import TxMeasNode +from .tx_nb_emission_node import TxNbEmissionNode +from .tx_spectral_prof_emitter_node import TxSpectralProfEmitterNode +from .tx_spectral_prof_node import TxSpectralProfNode +from .tx_spur_node import TxSpurNode +from .walfisch_coupling_node import WalfischCouplingNode +from .waveform import Waveform from .read_only_amplifier import ReadOnlyAmplifier from .read_only_antenna_node import ReadOnlyAntennaNode from .read_only_antenna_passband import ReadOnlyAntennaPassband from .read_only_band import ReadOnlyBand from .read_only_band_folder import ReadOnlyBandFolder -from .read_only_cable import ReadOnlyCable from .read_only_cad_node import ReadOnlyCADNode +from .read_only_cable import ReadOnlyCable from .read_only_circulator import ReadOnlyCirculator from .read_only_coupling_link_node import ReadOnlyCouplingLinkNode from .read_only_couplings_node import ReadOnlyCouplingsNode @@ -91,9 +98,9 @@ from .read_only_scene_group_node import ReadOnlySceneGroupNode from .read_only_solution_coupling_node import ReadOnlySolutionCouplingNode from .read_only_solutions_node import ReadOnlySolutionsNode +from .read_only_tr_switch import ReadOnlyTR_Switch from .read_only_terminator import ReadOnlyTerminator from .read_only_touchstone_coupling_node import ReadOnlyTouchstoneCouplingNode -from .read_only_tr_switch import ReadOnlyTR_Switch from .read_only_two_ray_path_loss_coupling_node import ReadOnlyTwoRayPathLossCouplingNode from .read_only_tx_bb_emission_node import ReadOnlyTxBbEmissionNode from .read_only_tx_harmonic_node import ReadOnlyTxHarmonicNode @@ -104,150 +111,119 @@ from .read_only_tx_spur_node import ReadOnlyTxSpurNode from .read_only_walfisch_coupling_node import ReadOnlyWalfischCouplingNode from .read_only_waveform import ReadOnlyWaveform -from .result_plot_node import ResultPlotNode -from .rx_meas_node import RxMeasNode -from .rx_mixer_product_node import RxMixerProductNode -from .rx_saturation_node import RxSaturationNode -from .rx_selectivity_node import RxSelectivityNode -from .rx_spur_node import RxSpurNode -from .rx_susceptibility_prof_node import RxSusceptibilityProfNode -from .sampling_node import SamplingNode -from .scene_group_node import SceneGroupNode -from .selectivity_trace_node import SelectivityTraceNode -from .solution_coupling_node import SolutionCouplingNode -from .solutions_node import SolutionsNode -from .spur_trace_node import SpurTraceNode -from .terminator import Terminator -from .test_noise_trace_node import TestNoiseTraceNode -from .top_level_simulation import TopLevelSimulation -from .touchstone_coupling_node import TouchstoneCouplingNode -from .tr_switch import TR_Switch -from .tr_switch_trace_node import TRSwitchTraceNode -from .tunable_trace_node import TunableTraceNode -from .two_ray_path_loss_coupling_node import TwoRayPathLossCouplingNode -from .two_tone_trace_node import TwoToneTraceNode -from .tx_bb_emission_node import TxBbEmissionNode -from .tx_harmonic_node import TxHarmonicNode -from .tx_meas_node import TxMeasNode -from .tx_nb_emission_node import TxNbEmissionNode -from .tx_spectral_prof_emitter_node import TxSpectralProfEmitterNode -from .tx_spectral_prof_node import TxSpectralProfNode -from .tx_spur_node import TxSpurNode -from .walfisch_coupling_node import WalfischCouplingNode -from .waveform import Waveform __all__ = [ - "Amplifier", - "AntennaNode", - "AntennaPassband", - "Band", - "BandFolder", - "BandTraceNode", - "CADNode", - "Cable", - "CategoriesViewNode", - "Circulator", - "CouplingLinkNode", - "CouplingTraceNode", - "CouplingsNode", - "CustomCouplingNode", - "EmiPlotMarkerNode", - "EmitSceneNode", - "ErcegCouplingNode", - "Filter", - "FiveGChannelModel", - "HataCouplingNode", - "IndoorPropagationCouplingNode", - "Isolator", - "LogDistanceCouplingNode", - "MPlexBandTraceNode", - "Multiplexer", - "MultiplexerBand", - "OutboardTraceNode", - "ParametricCouplingTraceNode", - "PlotMarkerNode", - "PlotNode", - "PowerDivider", - "PowerTraceNode", - "ProfileTraceNode", - "PropagationLossCouplingNode", - "RadioNode", - "ResultPlotNode", - "RxMeasNode", - "RxMixerProductNode", - "RxSaturationNode", - "RxSelectivityNode", - "RxSpurNode", - "RxSusceptibilityProfNode", - "SamplingNode", - "SceneGroupNode", - "SelectivityTraceNode", - "SolutionCouplingNode", - "SolutionsNode", - "SpurTraceNode", - "TR_Switch", - "TRSwitchTraceNode", - "Terminator", - "TestNoiseTraceNode", - "TopLevelSimulation", - "TouchstoneCouplingNode", - "TunableTraceNode", - "TwoRayPathLossCouplingNode", - "TwoToneTraceNode", - "TxBbEmissionNode", - "TxHarmonicNode", - "TxMeasNode", - "TxNbEmissionNode", - "TxSpectralProfEmitterNode", - "TxSpectralProfNode", - "TxSpurNode", - "WalfischCouplingNode", - "Waveform", - "ReadOnlyAmplifier", - "ReadOnlyAntennaNode", - "ReadOnlyAntennaPassband", - "ReadOnlyBand", - "ReadOnlyBandFolder", - "ReadOnlyCADNode", - "ReadOnlyCable", - "ReadOnlyCirculator", - "ReadOnlyCouplingLinkNode", - "ReadOnlyCouplingsNode", - "ReadOnlyCustomCouplingNode", - "ReadOnlyEmitSceneNode", - "ReadOnlyErcegCouplingNode", - "ReadOnlyFilter", - "ReadOnlyFiveGChannelModel", - "ReadOnlyHataCouplingNode", - "ReadOnlyIndoorPropagationCouplingNode", - "ReadOnlyIsolator", - "ReadOnlyLogDistanceCouplingNode", - "ReadOnlyMultiplexer", - "ReadOnlyMultiplexerBand", - "ReadOnlyPowerDivider", - "ReadOnlyPropagationLossCouplingNode", - "ReadOnlyRadioNode", - "ReadOnlyRxMeasNode", - "ReadOnlyRxMixerProductNode", - "ReadOnlyRxSaturationNode", - "ReadOnlyRxSelectivityNode", - "ReadOnlyRxSpurNode", - "ReadOnlyRxSusceptibilityProfNode", - "ReadOnlySamplingNode", - "ReadOnlySceneGroupNode", - "ReadOnlySolutionCouplingNode", - "ReadOnlySolutionsNode", - "ReadOnlyTR_Switch", - "ReadOnlyTerminator", - "ReadOnlyTouchstoneCouplingNode", - "ReadOnlyTwoRayPathLossCouplingNode", - "ReadOnlyTxBbEmissionNode", - "ReadOnlyTxHarmonicNode", - "ReadOnlyTxMeasNode", - "ReadOnlyTxNbEmissionNode", - "ReadOnlyTxSpectralProfEmitterNode", - "ReadOnlyTxSpectralProfNode", - "ReadOnlyTxSpurNode", - "ReadOnlyWalfischCouplingNode", - "ReadOnlyWaveform", + 'Amplifier', + 'AntennaNode', + 'AntennaPassband', + 'Band', + 'BandFolder', + 'BandTraceNode', + 'CADNode', + 'Cable', + 'CategoriesViewNode', + 'Circulator', + 'CouplingLinkNode', + 'CouplingTraceNode', + 'CouplingsNode', + 'CustomCouplingNode', + 'EmiPlotMarkerNode', + 'EmitSceneNode', + 'ErcegCouplingNode', + 'Filter', + 'FiveGChannelModel', + 'HataCouplingNode', + 'IndoorPropagationCouplingNode', + 'Isolator', + 'LogDistanceCouplingNode', + 'MPlexBandTraceNode', + 'Multiplexer', + 'MultiplexerBand', + 'OutboardTraceNode', + 'ParametricCouplingTraceNode', + 'PlotMarkerNode', + 'PlotNode', + 'PowerDivider', + 'PowerTraceNode', + 'ProfileTraceNode', + 'PropagationLossCouplingNode', + 'RadioNode', + 'ResultPlotNode', + 'RxMeasNode', + 'RxMixerProductNode', + 'RxSaturationNode', + 'RxSelectivityNode', + 'RxSpurNode', + 'RxSusceptibilityProfNode', + 'SamplingNode', + 'SceneGroupNode', + 'SelectivityTraceNode', + 'SolutionCouplingNode', + 'SolutionsNode', + 'SpurTraceNode', + 'TR_Switch', + 'TRSwitchTraceNode', + 'Terminator', + 'TestNoiseTraceNode', + 'TopLevelSimulation', + 'TouchstoneCouplingNode', + 'TunableTraceNode', + 'TwoRayPathLossCouplingNode', + 'TwoToneTraceNode', + 'TxBbEmissionNode', + 'TxHarmonicNode', + 'TxMeasNode', + 'TxNbEmissionNode', + 'TxSpectralProfEmitterNode', + 'TxSpectralProfNode', + 'TxSpurNode', + 'WalfischCouplingNode', + 'Waveform', + 'ReadOnlyAmplifier', + 'ReadOnlyAntennaNode', + 'ReadOnlyAntennaPassband', + 'ReadOnlyBand', + 'ReadOnlyBandFolder', + 'ReadOnlyCADNode', + 'ReadOnlyCable', + 'ReadOnlyCirculator', + 'ReadOnlyCouplingLinkNode', + 'ReadOnlyCouplingsNode', + 'ReadOnlyCustomCouplingNode', + 'ReadOnlyEmitSceneNode', + 'ReadOnlyErcegCouplingNode', + 'ReadOnlyFilter', + 'ReadOnlyFiveGChannelModel', + 'ReadOnlyHataCouplingNode', + 'ReadOnlyIndoorPropagationCouplingNode', + 'ReadOnlyIsolator', + 'ReadOnlyLogDistanceCouplingNode', + 'ReadOnlyMultiplexer', + 'ReadOnlyMultiplexerBand', + 'ReadOnlyPowerDivider', + 'ReadOnlyPropagationLossCouplingNode', + 'ReadOnlyRadioNode', + 'ReadOnlyRxMeasNode', + 'ReadOnlyRxMixerProductNode', + 'ReadOnlyRxSaturationNode', + 'ReadOnlyRxSelectivityNode', + 'ReadOnlyRxSpurNode', + 'ReadOnlyRxSusceptibilityProfNode', + 'ReadOnlySamplingNode', + 'ReadOnlySceneGroupNode', + 'ReadOnlySolutionCouplingNode', + 'ReadOnlySolutionsNode', + 'ReadOnlyTR_Switch', + 'ReadOnlyTerminator', + 'ReadOnlyTouchstoneCouplingNode', + 'ReadOnlyTwoRayPathLossCouplingNode', + 'ReadOnlyTxBbEmissionNode', + 'ReadOnlyTxHarmonicNode', + 'ReadOnlyTxMeasNode', + 'ReadOnlyTxNbEmissionNode', + 'ReadOnlyTxSpectralProfEmitterNode', + 'ReadOnlyTxSpectralProfNode', + 'ReadOnlyTxSpurNode', + 'ReadOnlyWalfischCouplingNode', + 'ReadOnlyWaveform', ] diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py index 02fe0b0deae..db7dbccfe04 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class AntennaNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -59,13 +55,15 @@ def tags(self) -> str: """Tags Space delimited list of tags for coupling selections - """ + """ val = self._get_property("Tags") return val @tags.setter def tags(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tags={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tags={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -76,13 +74,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val == true + return (val == true) @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): @@ -96,7 +94,9 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): @@ -110,25 +110,29 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" + AZ_EL_TWIST = "Az-El-Twist" @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -142,7 +146,9 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): @@ -156,7 +162,9 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def position_defined(self) -> bool: @@ -166,11 +174,13 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return val == true + return (val == true) @position_defined.setter def position_defined(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Defined={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position Defined={value}"]) @property def antenna_temperature(self) -> float: @@ -183,21 +193,25 @@ def antenna_temperature(self) -> float: return float(val) @antenna_temperature.setter - def antenna_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna Temperature={value}"]) + def antenna_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna Temperature={value}"]) @property def type(self): """Type Defines the type of antenna - """ + """ val = self._get_property("Type") return val @type.setter def type(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value}"]) @property def antenna_file(self) -> str: @@ -209,7 +223,9 @@ def antenna_file(self) -> str: @antenna_file.setter def antenna_file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna File={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna File={value}"]) @property def project_name(self) -> str: @@ -223,7 +239,9 @@ def project_name(self) -> str: @project_name.setter def project_name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Project Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Project Name={value}"]) @property def peak_gain(self) -> float: @@ -236,27 +254,31 @@ def peak_gain(self) -> float: return float(val) @peak_gain.setter - def peak_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Gain={value}"]) + def peak_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Peak Gain={value}"]) class BoresightOption(Enum): - XAXIS = "+X Axis" # eslint-disable-line no-eval - YAXIS = "+Y Axis" # eslint-disable-line no-eval - ZAXIS = "+Z Axis" # eslint-disable-line no-eval + XAXIS = "+X Axis" + YAXIS = "+Y Axis" + ZAXIS = "+Z Axis" @property def boresight(self) -> BoresightOption: """Boresight Select peak beam direction in local coordinates - """ + """ val = self._get_property("Boresight") val = self.BoresightOption[val.upper()] return val @boresight.setter def boresight(self, value: BoresightOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Boresight={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Boresight={value.value}"]) @property def vertical_beamwidth(self) -> float: @@ -269,8 +291,10 @@ def vertical_beamwidth(self) -> float: return float(val) @vertical_beamwidth.setter - def vertical_beamwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Beamwidth={value}"]) + def vertical_beamwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Beamwidth={value}"]) @property def horizontal_beamwidth(self) -> float: @@ -283,8 +307,10 @@ def horizontal_beamwidth(self) -> float: return float(val) @horizontal_beamwidth.setter - def horizontal_beamwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Beamwidth={value}"]) + def horizontal_beamwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Beamwidth={value}"]) @property def extra_sidelobe(self) -> bool: @@ -294,11 +320,13 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return val == true + return (val == true) @extra_sidelobe.setter def extra_sidelobe(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Extra Sidelobe={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Extra Sidelobe={value}"]) @property def first_sidelobe_level(self) -> float: @@ -312,8 +340,10 @@ def first_sidelobe_level(self) -> float: return float(val) @first_sidelobe_level.setter - def first_sidelobe_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Level={value}"]) + def first_sidelobe_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Level={value}"]) @property def first_sidelobe_vert_bw(self) -> float: @@ -326,8 +356,10 @@ def first_sidelobe_vert_bw(self) -> float: return float(val) @first_sidelobe_vert_bw.setter - def first_sidelobe_vert_bw(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Vert. BW={value}"]) + def first_sidelobe_vert_bw(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Vert. BW={value}"]) @property def first_sidelobe_hor_bw(self) -> float: @@ -340,8 +372,10 @@ def first_sidelobe_hor_bw(self) -> float: return float(val) @first_sidelobe_hor_bw.setter - def first_sidelobe_hor_bw(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Hor. BW={value}"]) + def first_sidelobe_hor_bw(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Hor. BW={value}"]) @property def outerbacklobe_level(self) -> float: @@ -354,8 +388,10 @@ def outerbacklobe_level(self) -> float: return float(val) @outerbacklobe_level.setter - def outerbacklobe_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Outer/Backlobe Level={value}"]) + def outerbacklobe_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Outer/Backlobe Level={value}"]) @property def resonant_frequency(self) -> float: @@ -370,9 +406,11 @@ def resonant_frequency(self) -> float: return float(val) @resonant_frequency.setter - def resonant_frequency(self, value: float | str): + def resonant_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resonant Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Resonant Frequency={value}"]) @property def slot_length(self) -> float: @@ -386,9 +424,11 @@ def slot_length(self) -> float: return float(val) @slot_length.setter - def slot_length(self, value: float | str): + def slot_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Slot Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Slot Length={value}"]) @property def mouth_width(self) -> float: @@ -402,9 +442,11 @@ def mouth_width(self) -> float: return float(val) @mouth_width.setter - def mouth_width(self, value: float | str): + def mouth_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Width={value}"]) @property def mouth_height(self) -> float: @@ -418,9 +460,11 @@ def mouth_height(self) -> float: return float(val) @mouth_height.setter - def mouth_height(self, value: float | str): + def mouth_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Height={value}"]) @property def waveguide_width(self) -> float: @@ -435,9 +479,11 @@ def waveguide_width(self) -> float: return float(val) @waveguide_width.setter - def waveguide_width(self, value: float | str): + def waveguide_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveguide Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Waveguide Width={value}"]) @property def width_flare_half_angle(self) -> float: @@ -451,8 +497,10 @@ def width_flare_half_angle(self) -> float: return float(val) @width_flare_half_angle.setter - def width_flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width Flare Half-angle={value}"]) + def width_flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Width Flare Half-angle={value}"]) @property def height_flare_half_angle(self) -> float: @@ -466,8 +514,10 @@ def height_flare_half_angle(self) -> float: return float(val) @height_flare_half_angle.setter - def height_flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height Flare Half-angle={value}"]) + def height_flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Height Flare Half-angle={value}"]) @property def mouth_diameter(self) -> float: @@ -481,9 +531,11 @@ def mouth_diameter(self) -> float: return float(val) @mouth_diameter.setter - def mouth_diameter(self, value: float | str): + def mouth_diameter(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Diameter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Diameter={value}"]) @property def flare_half_angle(self) -> float: @@ -497,8 +549,10 @@ def flare_half_angle(self) -> float: return float(val) @flare_half_angle.setter - def flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flare Half-angle={value}"]) + def flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Flare Half-angle={value}"]) @property def vswr(self) -> float: @@ -512,68 +566,72 @@ def vswr(self) -> float: return float(val) @vswr.setter - def vswr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) + def vswr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"VSWR={value}"]) class AntennaPolarizationOption(Enum): - VERTICAL = "Vertical" # eslint-disable-line no-eval - HORIZONTAL = "Horizontal" # eslint-disable-line no-eval - RHCP = "RHCP" # eslint-disable-line no-eval - LHCP = "LHCP" # eslint-disable-line no-eval + VERTICAL = "Vertical" + HORIZONTAL = "Horizontal" + RHCP = "RHCP" + LHCP = "LHCP" @property def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val.upper()] return val @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Antenna Polarization={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna Polarization={value.value}"]) class CrossDipoleModeOption(Enum): - FREESTANDING = "Freestanding" # eslint-disable-line no-eval - OVER_GROUND_PLANE = "Over Ground Plane" # eslint-disable-line no-eval + FREESTANDING = "Freestanding" + OVER_GROUND_PLANE = "Over Ground Plane" @property def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode Choose the Cross Dipole type - """ + """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val.upper()] return val @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Cross Dipole Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Cross Dipole Mode={value.value}"]) class CrossDipolePolarizationOption(Enum): - RHCP = "RHCP" # eslint-disable-line no-eval - LHCP = "LHCP" # eslint-disable-line no-eval + RHCP = "RHCP" + LHCP = "LHCP" @property def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val.upper()] return val @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Cross Dipole Polarization={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Cross Dipole Polarization={value.value}"]) @property def override_height(self) -> bool: @@ -584,11 +642,13 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return val == true + return (val == true) @override_height.setter def override_height(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Override Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Override Height={value}"]) @property def offset_height(self) -> float: @@ -602,9 +662,11 @@ def offset_height(self) -> float: return float(val) @offset_height.setter - def offset_height(self, value: float | str): + def offset_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Offset Height={value}"]) @property def auto_height_offset(self) -> bool: @@ -615,11 +677,13 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return val == true + return (val == true) @auto_height_offset.setter def auto_height_offset(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Auto Height Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Auto Height Offset={value}"]) @property def conform__adjust_antenna(self) -> bool: @@ -629,11 +693,13 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return val == true + return (val == true) @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform / Adjust Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform / Adjust Antenna={value}"]) @property def element_offset(self): @@ -647,47 +713,51 @@ def element_offset(self): @element_offset.setter def element_offset(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Element Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Element Offset={value}"]) class ConformtoPlatformOption(Enum): - NONE = "None" # eslint-disable-line no-eval - ALONG_NORMAL = "Along Normal" # eslint-disable-line no-eval - PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" # eslint-disable-line no-eval + NONE = "None" + ALONG_NORMAL = "Along Normal" + PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" @property def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform Select method of automated conforming applied after Element Offset - """ + """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val.upper()] return val @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Conform to Platform={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform to Platform={value.value}"]) class ReferencePlaneOption(Enum): - XY_PLANE = "XY Plane" # eslint-disable-line no-eval - YZ_PLANE = "YZ Plane" # eslint-disable-line no-eval - ZX_PLANE = "ZX Plane" # eslint-disable-line no-eval + XY_PLANE = "XY Plane" + YZ_PLANE = "YZ Plane" + ZX_PLANE = "ZX Plane" @property def reference_plane(self) -> ReferencePlaneOption: """Reference Plane Select reference plane for determining original element heights - """ + """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val.upper()] return val @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reference Plane={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reference Plane={value.value}"]) @property def conform_element_orientation(self) -> bool: @@ -698,13 +768,13 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return val == true + return (val == true) @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Conform Element Orientation={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform Element Orientation={value}"]) @property def show_axes(self) -> bool: @@ -714,11 +784,13 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val == true + return (val == true) @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def show_icon(self) -> bool: @@ -728,11 +800,13 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return val == true + return (val == true) @show_icon.setter def show_icon(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Icon={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Icon={value}"]) @property def size(self) -> float: @@ -745,8 +819,10 @@ def size(self) -> float: return float(val) @size.setter - def size(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Size={value}"]) + def size(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Size={value}"]) @property def color(self): @@ -760,14 +836,16 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def el_sample_interval(self) -> float: """El Sample Interval Space between elevation-angle samples of pattern - """ + """ val = self._get_property("El Sample Interval") return float(val) @@ -776,7 +854,7 @@ def az_sample_interval(self) -> float: """Az Sample Interval Space between azimuth-angle samples of pattern - """ + """ val = self._get_property("Az Sample Interval") return float(val) @@ -788,14 +866,14 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return val == true + return (val == true) @property def frequency_domain(self): """Frequency Domain Frequency sample(s) defining antenna - """ + """ val = self._get_property("Frequency Domain") return val @@ -804,7 +882,7 @@ def number_of_electric_sources(self) -> int: """Number of Electric Sources Number of freestanding electric current sources defining antenna - """ + """ val = self._get_property("Number of Electric Sources") return int(val) @@ -813,7 +891,7 @@ def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources Number of freestanding magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Magnetic Sources") return int(val) @@ -823,7 +901,7 @@ def number_of_imaged_electric_sources(self) -> int: Number of imaged, half-space radiating electric current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Electric Sources") return int(val) @@ -833,7 +911,7 @@ def number_of_imaged_magnetic_sources(self) -> int: Number of imaged, half-space radiating magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Magnetic Sources") return int(val) @@ -843,7 +921,7 @@ def waveguide_height(self) -> float: Implied waveguide height (along local x-axis) where the flared horn walls meet the feed - """ + """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") return float(val) @@ -853,7 +931,7 @@ def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency Implied lowest operating frequency of pyramidal horn antenna - """ + """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -863,15 +941,15 @@ def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency Implied lowest operating frequency of conical horn antenna - """ + """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) class SWEModeTruncationOption(Enum): - DYNAMIC = "Dynamic" # eslint-disable-line no-eval - FIXED_CUSTOM = "Fixed (Custom)" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + DYNAMIC = "Dynamic" + FIXED_CUSTOM = "Fixed (Custom)" + NONE = "None" @property def swe_mode_truncation(self) -> SWEModeTruncationOption: @@ -879,16 +957,16 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: Select the method for stability-enhancing truncation of spherical wave expansion terms - """ + """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val.upper()] return val @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"SWE Mode Truncation={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SWE Mode Truncation={value.value}"]) @property def max_n_index(self) -> int: @@ -902,20 +980,24 @@ def max_n_index(self) -> int: @max_n_index.setter def max_n_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max N Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max N Index={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) @property def show_composite_passband(self) -> bool: @@ -925,11 +1007,13 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return val == true + return (val == true) @show_composite_passband.setter def show_composite_passband(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Composite Passband={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Composite Passband={value}"]) @property def use_phase_center(self) -> bool: @@ -939,18 +1023,20 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return val == true + return (val == true) @use_phase_center.setter def use_phase_center(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Phase Center={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Phase Center={value}"]) @property def coordinate_systems(self) -> str: """Coordinate Systems Specifies the coordinate system for the phase center of this antenna - """ + """ val = self._get_property("Coordinate Systems") return val @@ -973,3 +1059,4 @@ def phasecenterorientation(self): """ val = self._get_property("PhaseCenterOrientation") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py index 58c7ebbb47c..b2677b1f6a8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class AntennaPassband(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -51,7 +48,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -68,8 +65,10 @@ def passband_loss(self) -> float: return float(val) @passband_loss.setter - def passband_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Passband Loss={value}"]) + def passband_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Passband Loss={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -82,8 +81,10 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out of Band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out of Band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -97,9 +98,11 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -113,9 +116,11 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -129,9 +134,11 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -145,19 +152,24 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py b/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py index 528817256e3..25c5a5270e3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class BandFolder(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -51,3 +48,4 @@ def duplicate(self, new_name: str): def delete(self): """Delete this node""" self._delete() + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py index 2a31eb81b7a..820a5a4919c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class BandTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -56,44 +52,50 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) class TxorRxOption(Enum): - TX = "Tx" # eslint-disable-line no-eval - RX = "Rx" # eslint-disable-line no-eval + TX = "Tx" + RX = "Rx" @property def tx_or_rx(self) -> TxorRxOption: """Tx or Rx Specifies whether the trace is a Tx or Rx channel - """ + """ val = self._get_property("Tx or Rx") val = self.TxorRxOption[val.upper()] return val @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx or Rx={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx or Rx={value.value}"]) @property def channel_frequency(self): """Channel Frequency Select band channel frequency to display - """ + """ val = self._get_property("Channel Frequency") return val @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: @@ -101,7 +103,7 @@ def transmit_frequency(self) -> float: The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset) - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -114,11 +116,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -128,46 +132,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -181,7 +191,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -195,38 +207,42 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -240,7 +256,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -254,7 +272,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -268,7 +288,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -279,8 +301,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py index e6c3a07d086..8b6284c8804 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class CADNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -61,34 +57,36 @@ def file(self) -> str: return val class ModelTypeOption(Enum): - PLATE = "Plate" # eslint-disable-line no-eval - BOX = "Box" # eslint-disable-line no-eval - DIHEDRAL = "Dihedral" # eslint-disable-line no-eval - TRIHEDRAL = "Trihedral" # eslint-disable-line no-eval - CYLINDER = "Cylinder" # eslint-disable-line no-eval - TAPERED_CYLINDER = "Tapered Cylinder" # eslint-disable-line no-eval - CONE = "Cone" # eslint-disable-line no-eval - SPHERE = "Sphere" # eslint-disable-line no-eval - ELLIPSOID = "Ellipsoid" # eslint-disable-line no-eval - CIRCULAR_PLATE = "Circular Plate" # eslint-disable-line no-eval - PARABOLA = "Parabola" # eslint-disable-line no-eval - PRISM = "Prism" # eslint-disable-line no-eval - TAPERED_PRISM = "Tapered Prism" # eslint-disable-line no-eval - TOPHAT = "Tophat" # eslint-disable-line no-eval + PLATE = "Plate" + BOX = "Box" + DIHEDRAL = "Dihedral" + TRIHEDRAL = "Trihedral" + CYLINDER = "Cylinder" + TAPERED_CYLINDER = "Tapered Cylinder" + CONE = "Cone" + SPHERE = "Sphere" + ELLIPSOID = "Ellipsoid" + CIRCULAR_PLATE = "Circular Plate" + PARABOLA = "Parabola" + PRISM = "Prism" + TAPERED_PRISM = "Tapered Prism" + TOPHAT = "Tophat" @property def model_type(self) -> ModelTypeOption: """Model Type Select type of parametric model to create - """ + """ val = self._get_property("Model Type") val = self.ModelTypeOption[val.upper()] return val @model_type.setter def model_type(self, value: ModelTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Model Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Model Type={value.value}"]) @property def length(self) -> float: @@ -102,9 +100,11 @@ def length(self) -> float: return float(val) @length.setter - def length(self, value: float | str): + def length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Length={value}"]) @property def width(self) -> float: @@ -118,9 +118,11 @@ def width(self) -> float: return float(val) @width.setter - def width(self, value: float | str): + def width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Width={value}"]) @property def height(self) -> float: @@ -134,9 +136,11 @@ def height(self) -> float: return float(val) @height.setter - def height(self, value: float | str): + def height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Height={value}"]) @property def angle(self) -> float: @@ -149,8 +153,10 @@ def angle(self) -> float: return float(val) @angle.setter - def angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Angle={value}"]) + def angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Angle={value}"]) @property def top_side(self) -> float: @@ -164,9 +170,11 @@ def top_side(self) -> float: return float(val) @top_side.setter - def top_side(self, value: float | str): + def top_side(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Top Side={value}"]) @property def top_radius(self) -> float: @@ -180,9 +188,11 @@ def top_radius(self) -> float: return float(val) @top_radius.setter - def top_radius(self, value: float | str): + def top_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Top Radius={value}"]) @property def side(self) -> float: @@ -196,9 +206,11 @@ def side(self) -> float: return float(val) @side.setter - def side(self, value: float | str): + def side(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Side={value}"]) @property def radius(self) -> float: @@ -212,9 +224,11 @@ def radius(self) -> float: return float(val) @radius.setter - def radius(self, value: float | str): + def radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Radius={value}"]) @property def base_radius(self) -> float: @@ -228,9 +242,11 @@ def base_radius(self) -> float: return float(val) @base_radius.setter - def base_radius(self, value: float | str): + def base_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Radius={value}"]) @property def center_radius(self) -> float: @@ -244,9 +260,11 @@ def center_radius(self) -> float: return float(val) @center_radius.setter - def center_radius(self, value: float | str): + def center_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Center Radius={value}"]) @property def x_axis_ellipsoid_radius(self) -> float: @@ -260,9 +278,11 @@ def x_axis_ellipsoid_radius(self) -> float: return float(val) @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value: float | str): + def x_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X Axis Ellipsoid Radius={value}"]) @property def y_axis_ellipsoid_radius(self) -> float: @@ -276,9 +296,11 @@ def y_axis_ellipsoid_radius(self) -> float: return float(val) @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value: float | str): + def y_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y Axis Ellipsoid Radius={value}"]) @property def z_axis_ellipsoid_radius(self) -> float: @@ -292,9 +314,11 @@ def z_axis_ellipsoid_radius(self) -> float: return float(val) @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value: float | str): + def z_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Z Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Z Axis Ellipsoid Radius={value}"]) @property def focal_length(self) -> float: @@ -308,24 +332,28 @@ def focal_length(self) -> float: return float(val) @focal_length.setter - def focal_length(self, value: float | str): + def focal_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Focal Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Focal Length={value}"]) @property def offset(self) -> float: """Offset Offset of parabolic reflector - """ + """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") return float(val) @offset.setter - def offset(self, value: float | str): + def offset(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Offset={value}"]) @property def x_direction_taper(self) -> float: @@ -339,8 +367,10 @@ def x_direction_taper(self) -> float: return float(val) @x_direction_taper.setter - def x_direction_taper(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Direction Taper={value}"]) + def x_direction_taper(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X Direction Taper={value}"]) @property def y_direction_taper(self) -> float: @@ -354,8 +384,10 @@ def y_direction_taper(self) -> float: return float(val) @y_direction_taper.setter - def y_direction_taper(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Direction Taper={value}"]) + def y_direction_taper(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y Direction Taper={value}"]) @property def prism_direction(self): @@ -369,7 +401,9 @@ def prism_direction(self): @prism_direction.setter def prism_direction(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Prism Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Prism Direction={value}"]) @property def closed_top(self) -> bool: @@ -379,11 +413,13 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return val == true + return (val == true) @closed_top.setter def closed_top(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Top={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Closed Top={value}"]) @property def closed_base(self) -> bool: @@ -393,11 +429,13 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return val == true + return (val == true) @closed_base.setter def closed_base(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Base={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Closed Base={value}"]) @property def mesh_density(self) -> int: @@ -412,7 +450,9 @@ def mesh_density(self) -> int: @mesh_density.setter def mesh_density(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Density={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mesh Density={value}"]) @property def use_symmetric_mesh(self) -> bool: @@ -423,29 +463,33 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return val == true + return (val == true) @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Symmetric Mesh={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Symmetric Mesh={value}"]) class MeshOptionOption(Enum): - IMPROVED = "Improved" # eslint-disable-line no-eval - LEGACY = "Legacy" # eslint-disable-line no-eval + IMPROVED = "Improved" + LEGACY = "Legacy" @property def mesh_option(self) -> MeshOptionOption: """Mesh Option Select from different meshing options - """ + """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val.upper()] return val @mesh_option.setter def mesh_option(self, value: MeshOptionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Option={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mesh Option={value.value}"]) @property def coating_index(self) -> int: @@ -459,7 +503,9 @@ def coating_index(self) -> int: @coating_index.setter def coating_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Coating Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Coating Index={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -470,13 +516,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val == true + return (val == true) @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): @@ -490,7 +536,9 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): @@ -504,25 +552,29 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" + AZ_EL_TWIST = "Az-El-Twist" @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -536,7 +588,9 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): @@ -550,7 +604,9 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def visible(self) -> bool: @@ -560,31 +616,35 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) class RenderModeOption(Enum): - FLAT_SHADED = "Flat-Shaded" # eslint-disable-line no-eval - WIRE_FRAME = "Wire-Frame" # eslint-disable-line no-eval - HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" # eslint-disable-line no-eval - OUTLINE = "Outline" # eslint-disable-line no-eval + FLAT_SHADED = "Flat-Shaded" + WIRE_FRAME = "Wire-Frame" + HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" + OUTLINE = "Outline" @property def render_mode(self) -> RenderModeOption: """Render Mode Select drawing style for surfaces - """ + """ val = self._get_property("Render Mode") val = self.RenderModeOption[val.upper()] return val @render_mode.setter def render_mode(self, value: RenderModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Render Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Render Mode={value.value}"]) @property def show_axes(self) -> bool: @@ -594,11 +654,13 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val == true + return (val == true) @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def min(self): @@ -625,7 +687,7 @@ def number_of_surfaces(self) -> int: """Number of Surfaces Number of surfaces in the model - """ + """ val = self._get_property("Number of Surfaces") return int(val) @@ -641,17 +703,22 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py index f6c5ee604ce..0cc7e14fba0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py @@ -1,32 +1,30 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class CategoriesViewNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False EmitNode.__init__(self, emit_obj, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py index e8c782cc450..1c6c57fab1a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class CouplingLinkNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -44,11 +41,13 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def ports(self): @@ -56,10 +55,13 @@ def ports(self): Maps each port in the link to an antenna in the project "A list of values." - """ + """ val = self._get_property("Ports") return val @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ports={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py index 0ddae02fb7e..52b38e3a31a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class CouplingTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,23 +48,29 @@ def delete(self): @property def transmitter(self) -> EmitNode: - """Transmitter""" + """Transmitter + """ val = self._get_property("Transmitter") return val @transmitter.setter def transmitter(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Transmitter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Transmitter={value}"]) @property def receiver(self) -> EmitNode: - """Receiver""" + """Receiver + """ val = self._get_property("Receiver") return val @receiver.setter def receiver(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Receiver={value}"]) @property def data_source(self): @@ -76,13 +78,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -92,11 +96,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -106,46 +112,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -159,7 +171,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -173,38 +187,42 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -218,7 +236,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -232,7 +252,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -246,7 +268,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -257,11 +281,13 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def highlight_regions(self) -> bool: @@ -271,11 +297,13 @@ def highlight_regions(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Highlight Regions") - return val == true + return (val == true) @highlight_regions.setter def highlight_regions(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highlight Regions={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Highlight Regions={value}"]) @property def show_region_labels(self) -> bool: @@ -285,11 +313,13 @@ def show_region_labels(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Region Labels") - return val == true + return (val == true) @show_region_labels.setter def show_region_labels(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Region Labels={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Region Labels={value}"]) @property def font(self): @@ -303,7 +333,9 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): @@ -317,7 +349,9 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): @@ -331,7 +365,9 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: @@ -341,11 +377,13 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return val == true + return (val == true) @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: @@ -359,7 +397,9 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): @@ -373,4 +413,7 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py index e5e8bfc8bf4..8543cb64576 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class CouplingsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -33,7 +30,7 @@ def __init__(self, emit_obj, result_id, node_id): def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" - return self._import(file_name, "TouchstoneCoupling") + return self._import(file_name,"TouchstoneCoupling") def add_custom_coupling(self): """Add a new node to define custom coupling between antennas""" @@ -83,8 +80,10 @@ def minimum_allowed_coupling(self) -> float: return float(val) @minimum_allowed_coupling.setter - def minimum_allowed_coupling(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Allowed Coupling={value}"]) + def minimum_allowed_coupling(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minimum Allowed Coupling={value}"]) @property def global_default_coupling(self) -> float: @@ -97,14 +96,17 @@ def global_default_coupling(self) -> float: return float(val) @global_default_coupling.setter - def global_default_coupling(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Global Default Coupling={value}"]) + def global_default_coupling(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Global Default Coupling={value}"]) @property def antenna_tags(self) -> str: """Antenna Tags All tags currently used by all antennas in the project - """ + """ val = self._get_property("Antenna Tags") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py index fff9314625f..6a5209ba075 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class CustomCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,7 +35,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def rename(self, new_name: str): """Rename this node""" @@ -54,11 +51,11 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Value (dB): + "Value (dB): Value should be between -1000 and 0. """ return self._get_table_data() @@ -75,37 +72,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -115,11 +118,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -129,21 +134,26 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py index b2bb87337b1..c324a974b16 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class EmiPlotMarkerNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,11 +54,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def attached(self): @@ -70,20 +68,22 @@ def attached(self): Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False) - """ + """ val = self._get_property("Attached") return val @attached.setter def attached(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Attached={value}"]) @property def position_x(self) -> float: """Position X Position of the marker on the X-axis (frequency axis). - """ + """ val = self._get_property("Position X") return float(val) @@ -92,7 +92,7 @@ def position_y(self) -> float: """Position Y Position of the marker on the Y-axis (result axis). - """ + """ val = self._get_property("Position Y") return float(val) @@ -105,11 +105,13 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return val == true + return (val == true) @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -123,8 +125,10 @@ def position_from_left(self) -> float: return float(val) @position_from_left.setter - def position_from_left(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) + def position_from_left(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -138,80 +142,88 @@ def position_from_top(self) -> float: return float(val) @position_from_top.setter - def position_from_top(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) + def position_from_top(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Top={value}"]) @property def text(self) -> str: """Text Set the text of the label - """ + """ val = self._get_property("Text") return val @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text={value}"]) class HorizontalPositionOption(Enum): - LEFT = "Left" # eslint-disable-line no-eval - RIGHT = "Right" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + LEFT = "Left" + RIGHT = "Right" + CENTER = "Center" @property def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position Specify horizontal position of the label as compared to the symbol - """ + """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val.upper()] return val @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Horizontal Position={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Position={value.value}"]) class VerticalPositionOption(Enum): - TOP = "Top" # eslint-disable-line no-eval - BOTTOM = "Bottom" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + TOP = "Top" + BOTTOM = "Bottom" + CENTER = "Center" @property def vertical_position(self) -> VerticalPositionOption: """Vertical Position Specify vertical position of the label as compared to the symbol - """ + """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val.upper()] return val @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): - LEFT = "Left" # eslint-disable-line no-eval - RIGHT = "Right" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + LEFT = "Left" + RIGHT = "Right" + CENTER = "Center" @property def text_alignment(self) -> TextAlignmentOption: """Text Alignment Specify justification applied to multi-line text - """ + """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val.upper()] return val @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text Alignment={value.value}"]) @property def font(self): @@ -225,7 +237,9 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): @@ -239,7 +253,9 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): @@ -253,7 +269,9 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: @@ -263,11 +281,13 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return val == true + return (val == true) @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: @@ -281,7 +301,9 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): @@ -295,39 +317,43 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval - ARROW = "Arrow" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + ARROW = "Arrow" @property def symbol(self) -> SymbolOption: """Symbol Specify symbol displayed next to the label - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -341,7 +367,9 @@ def arrow_direction(self) -> int: @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -355,7 +383,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -369,7 +399,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -383,7 +415,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -394,8 +428,11 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return val == true + return (val == true) @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py index 313cb662f43..8c8ab894f69 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class EmitSceneNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,34 +38,36 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class GroundPlaneNormalOption(Enum): - X_AXIS = "X Axis" # eslint-disable-line no-eval - Y_AXIS = "Y Axis" # eslint-disable-line no-eval - Z_AXIS = "Z Axis" # eslint-disable-line no-eval + X_AXIS = "X Axis" + Y_AXIS = "Y Axis" + Z_AXIS = "Z Axis" @property def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal Specifies the axis of the normal to the ground plane - """ + """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val.upper()] return val @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ground Plane Normal={value.value}"]) @property def gp_position_along_normal(self) -> float: @@ -77,12 +75,15 @@ def gp_position_along_normal(self) -> float: Offset of ground plane in direction normal to the ground planes orientation - """ + """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return float(val) @gp_position_along_normal.setter - def gp_position_along_normal(self, value: float | str): + def gp_position_along_normal(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GP Position Along Normal={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"GP Position Along Normal={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py index 9d7fd3b8b0d..bf15e444452 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ErcegCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,37 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,43 +116,49 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class TerrainCategoryOption(Enum): - TYPE_A = "Type A" # eslint-disable-line no-eval - TYPE_B = "Type B" # eslint-disable-line no-eval - TYPE_C = "Type C" # eslint-disable-line no-eval + TYPE_A = "Type A" + TYPE_B = "Type B" + TYPE_C = "Type C" @property def terrain_category(self) -> TerrainCategoryOption: """Terrain Category Specify the terrain category type for the Erceg model - """ + """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val.upper()] return val @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Terrain Category={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Terrain Category={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -162,8 +172,10 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -177,8 +189,10 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -192,28 +206,32 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -227,8 +245,10 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -241,8 +261,10 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -252,11 +274,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -270,8 +294,10 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -284,8 +310,10 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -299,8 +327,10 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -311,13 +341,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -330,8 +360,10 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -344,8 +376,10 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -358,7 +392,8 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py b/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py index 081dd229bcf..a85d3a565ce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class FiveGChannelModel(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,37 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,43 +116,49 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): - URBAN_MICROCELL = "Urban Microcell" # eslint-disable-line no-eval - URBAN_MACROCELL = "Urban Macrocell" # eslint-disable-line no-eval - RURAL_MACROCELL = "Rural Macrocell" # eslint-disable-line no-eval + URBAN_MICROCELL = "Urban Microcell" + URBAN_MACROCELL = "Urban Macrocell" + RURAL_MACROCELL = "Rural Macrocell" @property def environment(self) -> EnvironmentOption: """Environment Specify the environment for the 5G channel model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def los(self) -> bool: @@ -158,11 +168,13 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return val == true + return (val == true) @los.setter def los(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"LOS={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"LOS={value}"]) @property def include_bpl(self) -> bool: @@ -172,29 +184,33 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return val == true + return (val == true) @include_bpl.setter def include_bpl(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include BPL={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include BPL={value}"]) class NYUBPLModelOption(Enum): - LOW_LOSS_MODEL = "Low-loss model" # eslint-disable-line no-eval - HIGH_LOSS_MODEL = "High-loss model" # eslint-disable-line no-eval + LOW_LOSS_MODEL = "Low-loss model" + HIGH_LOSS_MODEL = "High-loss model" @property def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model Specify the NYU Building Penetration Loss model - """ + """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val.upper()] return val @nyu_bpl_model.setter def nyu_bpl_model(self, value: NYUBPLModelOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NYU BPL Model={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NYU BPL Model={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -208,8 +224,10 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -223,8 +241,10 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -238,28 +258,32 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -273,8 +297,10 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -287,8 +313,10 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -298,11 +326,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -316,8 +346,10 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -330,8 +362,10 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -345,8 +379,10 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -357,13 +393,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -376,8 +412,10 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -390,8 +428,10 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -404,7 +444,8 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py index 91e2272508b..c26782c7ed0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class HataCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,37 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,44 +116,50 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): - LARGE_CITY = "Large City" # eslint-disable-line no-eval - SMALLMEDIUM_CITY = "Small/Medium City" # eslint-disable-line no-eval - SUBURBAN = "Suburban" # eslint-disable-line no-eval - RURAL = "Rural" # eslint-disable-line no-eval + LARGE_CITY = "Large City" + SMALLMEDIUM_CITY = "Small/Medium City" + SUBURBAN = "Suburban" + RURAL = "Rural" @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Hata model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -163,8 +173,10 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -178,8 +190,10 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -193,28 +207,32 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -228,8 +246,10 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -242,8 +262,10 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -253,11 +275,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -271,8 +295,10 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -285,8 +311,10 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -300,8 +328,10 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -312,13 +342,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -331,8 +361,10 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -345,8 +377,10 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -359,7 +393,8 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py index b07099a42c3..567d7204906 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class IndoorPropagationCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,13 +48,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Power Loss Coefficient: + "Power Loss Coefficient: Value should be between 0 and 100. - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): Value should be between 0 and 1000. """ return self._get_table_data() @@ -75,37 +71,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -115,11 +117,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -129,45 +133,51 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class BuildingTypeOption(Enum): - RESIDENTIAL_APARTMENT = "Residential Apartment" # eslint-disable-line no-eval - RESIDENTIAL_HOUSE = "Residential House" # eslint-disable-line no-eval - OFFICE_BUILDING = "Office Building" # eslint-disable-line no-eval - COMMERCIAL_BUILDING = "Commercial Building" # eslint-disable-line no-eval - CUSTOM_BUILDING = "Custom Building" # eslint-disable-line no-eval + RESIDENTIAL_APARTMENT = "Residential Apartment" + RESIDENTIAL_HOUSE = "Residential House" + OFFICE_BUILDING = "Office Building" + COMMERCIAL_BUILDING = "Commercial Building" + CUSTOM_BUILDING = "Custom Building" @property def building_type(self) -> BuildingTypeOption: """Building Type Specify the building type for the Indoor Propagation model - """ + """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val.upper()] return val @building_type.setter def building_type(self, value: BuildingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Building Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Building Type={value.value}"]) @property def number_of_floors(self) -> int: @@ -181,7 +191,9 @@ def number_of_floors(self) -> int: @number_of_floors.setter def number_of_floors(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Floors={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Floors={value}"]) @property def custom_fading_margin(self) -> float: @@ -195,8 +207,10 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -210,8 +224,10 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -225,28 +241,32 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -260,8 +280,10 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -274,8 +296,10 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -285,11 +309,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -303,8 +329,10 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -317,8 +345,10 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -332,8 +362,10 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -344,13 +376,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -363,8 +395,10 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -377,8 +411,10 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -391,7 +427,8 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py index 1db06be7d76..0ffaa2c9fb0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class LogDistanceCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,37 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,47 +116,53 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): - FREE_SPACE = "Free Space" # eslint-disable-line no-eval - URBAN = "Urban" # eslint-disable-line no-eval - SHADOWED_URBAN = "Shadowed Urban" # eslint-disable-line no-eval - BUILDING_LINE_OF_SIGHT = "Building Line of Sight" # eslint-disable-line no-eval - BUILDING_OBSTRUCTED = "Building Obstructed" # eslint-disable-line no-eval - FACTORY_OBSTRUCTED = "Factory Obstructed" # eslint-disable-line no-eval - CUSTOM = "Custom" # eslint-disable-line no-eval + FREE_SPACE = "Free Space" + URBAN = "Urban" + SHADOWED_URBAN = "Shadowed Urban" + BUILDING_LINE_OF_SIGHT = "Building Line of Sight" + BUILDING_OBSTRUCTED = "Building Obstructed" + FACTORY_OBSTRUCTED = "Factory Obstructed" + CUSTOM = "Custom" @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Log Distance model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def path_loss_exponent(self) -> float: @@ -165,8 +175,10 @@ def path_loss_exponent(self) -> float: return float(val) @path_loss_exponent.setter - def path_loss_exponent(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Exponent={value}"]) + def path_loss_exponent(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Path Loss Exponent={value}"]) @property def custom_fading_margin(self) -> float: @@ -180,8 +192,10 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -195,8 +209,10 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -210,28 +226,32 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -245,8 +265,10 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -259,8 +281,10 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -270,11 +294,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -288,8 +314,10 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -302,8 +330,10 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -317,8 +347,10 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -329,13 +361,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -348,8 +380,10 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -362,8 +396,10 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -376,7 +412,8 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py index 8b84e8b3964..3c4369fee9d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class MPlexBandTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -51,18 +47,21 @@ def delete(self): self._delete() class PowerDirectionOption(Enum): - INTO_COMMON_PORTOUT_OF_COMMON_PORT = "Into Common Port|Out of Common Port" # eslint-disable-line no-eval + INTO_COMMON_PORTOUT_OF_COMMON_PORT = "Into Common Port|Out of Common Port" @property def power_direction(self) -> PowerDirectionOption: - """Power Direction""" + """Power Direction + """ val = self._get_property("Power Direction") val = self.PowerDirectionOption[val.upper()] return val @power_direction.setter def power_direction(self, value: PowerDirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Power Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Power Direction={value.value}"]) @property def data_source(self): @@ -70,13 +69,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -86,11 +87,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -100,46 +103,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -153,7 +162,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -167,38 +178,42 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -212,7 +227,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -226,7 +243,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -240,7 +259,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -251,8 +272,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py index 040f2d8efd3..c7114eac22d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class MultiplexerBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -51,10 +47,10 @@ def delete(self): self._delete() class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - LOW_PASS = "Low Pass" # eslint-disable-line no-eval - HIGH_PASS = "High Pass" # eslint-disable-line no-eval - BAND_PASS = "Band Pass" # eslint-disable-line no-eval + BY_FILE = "By File" + LOW_PASS = "Low Pass" + HIGH_PASS = "High Pass" + BAND_PASS = "Band Pass" @property def type(self) -> TypeOption: @@ -63,14 +59,16 @@ def type(self) -> TypeOption: file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def filename(self) -> str: @@ -84,7 +82,9 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def insertion_loss(self) -> float: @@ -97,8 +97,10 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -111,8 +113,10 @@ def stop_band_attenuation(self) -> float: return float(val) @stop_band_attenuation.setter - def stop_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -126,9 +130,11 @@ def max_pass_band(self) -> float: return float(val) @max_pass_band.setter - def max_pass_band(self, value: float | str): + def max_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -142,9 +148,11 @@ def min_stop_band(self) -> float: return float(val) @min_stop_band.setter - def min_stop_band(self, value: float | str): + def min_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -158,9 +166,11 @@ def max_stop_band(self) -> float: return float(val) @max_stop_band.setter - def max_stop_band(self, value: float | str): + def max_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -174,9 +184,11 @@ def min_pass_band(self) -> float: return float(val) @min_pass_band.setter - def min_pass_band(self, value: float | str): + def min_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -190,9 +202,11 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -206,9 +220,11 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -222,9 +238,11 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -238,15 +256,18 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py index 11eae98e8ec..81bea8af4a9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class OutboardTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -62,7 +58,9 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -76,7 +74,9 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): @@ -84,13 +84,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -100,11 +102,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -114,46 +118,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -167,7 +177,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -181,38 +193,42 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -226,7 +242,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -240,7 +258,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -254,7 +274,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -265,8 +287,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py index 7a6c82533ab..8be3b249ac2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ParametricCouplingTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,23 +48,29 @@ def delete(self): @property def antenna_a(self) -> EmitNode: - """Antenna A""" + """Antenna A + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: - """Antenna B""" + """Antenna B + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def data_source(self): @@ -76,13 +78,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -92,11 +96,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -106,46 +112,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -159,7 +171,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -173,38 +187,42 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -218,7 +236,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -232,7 +252,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -246,7 +268,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -257,8 +281,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py index dfd936654cb..9fb1b11a02e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class PlotMarkerNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,11 +54,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def attached(self) -> bool: @@ -73,37 +71,43 @@ def attached(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Attached") - return val == true + return (val == true) @attached.setter def attached(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Attached={value}"]) @property def position_x(self) -> float: """Position X Position of the marker on the X-axis (frequency axis). - """ + """ val = self._get_property("Position X") return float(val) @position_x.setter - def position_x(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position X={value}"]) + def position_x(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position X={value}"]) @property def position_y(self) -> float: """Position Y Position of the marker on the Y-axis (result axis). - """ + """ val = self._get_property("Position Y") return float(val) @position_y.setter - def position_y(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Y={value}"]) + def position_y(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position Y={value}"]) @property def floating_label(self) -> bool: @@ -114,11 +118,13 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return val == true + return (val == true) @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -132,8 +138,10 @@ def position_from_left(self) -> float: return float(val) @position_from_left.setter - def position_from_left(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) + def position_from_left(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -147,80 +155,88 @@ def position_from_top(self) -> float: return float(val) @position_from_top.setter - def position_from_top(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) + def position_from_top(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Top={value}"]) @property def text(self) -> str: """Text Set the text of the label - """ + """ val = self._get_property("Text") return val @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text={value}"]) class HorizontalPositionOption(Enum): - LEFT = "Left" # eslint-disable-line no-eval - RIGHT = "Right" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + LEFT = "Left" + RIGHT = "Right" + CENTER = "Center" @property def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position Specify horizontal position of the label as compared to the symbol - """ + """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val.upper()] return val @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Horizontal Position={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Position={value.value}"]) class VerticalPositionOption(Enum): - TOP = "Top" # eslint-disable-line no-eval - BOTTOM = "Bottom" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + TOP = "Top" + BOTTOM = "Bottom" + CENTER = "Center" @property def vertical_position(self) -> VerticalPositionOption: """Vertical Position Specify vertical position of the label as compared to the symbol - """ + """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val.upper()] return val @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): - LEFT = "Left" # eslint-disable-line no-eval - RIGHT = "Right" # eslint-disable-line no-eval - CENTER = "Center" # eslint-disable-line no-eval + LEFT = "Left" + RIGHT = "Right" + CENTER = "Center" @property def text_alignment(self) -> TextAlignmentOption: """Text Alignment Specify justification applied to multi-line text - """ + """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val.upper()] return val @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text Alignment={value.value}"]) @property def font(self): @@ -234,7 +250,9 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): @@ -248,7 +266,9 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): @@ -262,7 +282,9 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: @@ -272,11 +294,13 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return val == true + return (val == true) @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: @@ -290,7 +314,9 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): @@ -304,39 +330,43 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval - ARROW = "Arrow" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" + ARROW = "Arrow" @property def symbol(self) -> SymbolOption: """Symbol Specify symbol displayed next to the label - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -350,7 +380,9 @@ def arrow_direction(self) -> int: @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -364,7 +396,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -378,7 +412,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -392,7 +428,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -403,8 +441,11 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return val == true + return (val == true) @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py index 6584d5b8dfc..54b1d5d909d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class PlotNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,13 +54,15 @@ def title(self) -> str: """Title Enter title at the top of the plot, room will be made for it - """ + """ val = self._get_property("Title") return val @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title={value}"]) @property def title_font(self): @@ -78,7 +76,9 @@ def title_font(self): @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -88,11 +88,13 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return val == true + return (val == true) @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Legend={value}"]) @property def legend_font(self): @@ -106,7 +108,9 @@ def legend_font(self): @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Legend Font={value}"]) @property def display_cad_overlay(self) -> bool: @@ -116,11 +120,13 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return val == true + return (val == true) @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -133,21 +139,25 @@ def opacity(self) -> float: return float(val) @opacity.setter - def opacity(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) + def opacity(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset Adjust vertical position of CAD model overlay - """ + """ val = self._get_property("Vertical Offset") return float(val) @vertical_offset.setter - def vertical_offset(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) + def vertical_offset(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -161,8 +171,10 @@ def range_axis_rotation(self) -> float: return float(val) @range_axis_rotation.setter - def range_axis_rotation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -172,63 +184,73 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return val == true + return (val == true) @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min Set lower extent of horizontal axis - """ + """ val = self._get_property("X-axis Min") return float(val) @x_axis_min.setter - def x_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) + def x_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max Set upper extent of horizontal axis - """ + """ val = self._get_property("X-axis Max") return float(val) @x_axis_max.setter - def x_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) + def x_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min Set lower extent of vertical axis - """ + """ val = self._get_property("Y-axis Min") return float(val) @y_axis_min.setter - def y_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) + def y_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max Set upper extent of vertical axis - """ + """ val = self._get_property("Y-axis Max") return float(val) @y_axis_max.setter - def y_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) + def y_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -242,8 +264,10 @@ def y_axis_range(self) -> float: return float(val) @y_axis_range.setter - def y_axis_range(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) + def y_axis_range(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -257,7 +281,9 @@ def max_major_ticks_x(self) -> int: @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -272,7 +298,9 @@ def max_minor_ticks_x(self) -> int: @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -286,7 +314,9 @@ def max_major_ticks_y(self) -> int: @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -301,7 +331,9 @@ def max_minor_ticks_y(self) -> int: @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -315,7 +347,9 @@ def axis_label_font(self): @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -329,31 +363,33 @@ def axis_tick_label_font(self): @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style Select line style of major-tick grid lines - """ + """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val.upper()] return val @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Line Style={value.value}"]) @property def major_grid_color(self): @@ -367,31 +403,33 @@ def major_grid_color(self): @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style Select line style of minor-tick grid lines - """ + """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val.upper()] return val @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Line Style={value.value}"]) @property def minor_grid_color(self): @@ -405,7 +443,9 @@ def minor_grid_color(self): @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -419,29 +459,31 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): - HERTZ = "hertz" # eslint-disable-line no-eval - KILOHERTZ = "kilohertz" # eslint-disable-line no-eval - MEGAHERTZ = "megahertz" # eslint-disable-line no-eval - GIGAHERTZ = "gigahertz" # eslint-disable-line no-eval + HERTZ = "hertz" + KILOHERTZ = "kilohertz" + MEGAHERTZ = "megahertz" + GIGAHERTZ = "gigahertz" @property def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit Units to use for plotting broadband power densities - """ + """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val.upper()] return val @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power for Plots Unit={value.value}"]) @property def bb_power_bandwidth(self) -> float: @@ -455,9 +497,11 @@ def bb_power_bandwidth(self) -> float: return float(val) @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value: float | str): + def bb_power_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -467,8 +511,11 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return val == true + return (val == true) @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Log Scale={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py b/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py index 332ba4980ae..5b0711394c0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class PowerDivider(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -57,7 +53,9 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -70,26 +68,30 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - P3_DB = "P3 dB" # eslint-disable-line no-eval - RESISTIVE = "Resistive" # eslint-disable-line no-eval + BY_FILE = "By File" + P3_DB = "P3 dB" + RESISTIVE = "Resistive" @property def type(self) -> TypeOption: @@ -97,32 +99,36 @@ def type(self) -> TypeOption: Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class OrientationOption(Enum): - DIVIDER = "Divider" # eslint-disable-line no-eval - COMBINER = "Combiner" # eslint-disable-line no-eval + DIVIDER = "Divider" + COMBINER = "Combiner" @property def orientation(self) -> OrientationOption: """Orientation Defines the orientation of the Power Divider. - """ + """ val = self._get_property("Orientation") val = self.OrientationOption[val.upper()] return val @orientation.setter def orientation(self, value: OrientationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value.value}"]) @property def insertion_loss_above_ideal(self) -> float: @@ -136,10 +142,10 @@ def insertion_loss_above_ideal(self) -> float: return float(val) @insertion_loss_above_ideal.setter - def insertion_loss_above_ideal(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Insertion Loss Above Ideal={value}"] - ) + def insertion_loss_above_ideal(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss Above Ideal={value}"]) @property def finite_isolation(self) -> bool: @@ -150,11 +156,13 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val == true + return (val == true) @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -167,8 +175,10 @@ def isolation(self) -> float: return float(val) @isolation.setter - def isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) + def isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -179,11 +189,13 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val == true + return (val == true) @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -196,8 +208,10 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -211,9 +225,11 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -227,9 +243,11 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -243,9 +261,11 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -259,15 +279,18 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py index 3a4b431195c..b4323f7f68f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class PowerTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -51,22 +47,24 @@ def delete(self): self._delete() class DirectionOption(Enum): - AWAY_FROM_TX = "Away From Tx" # eslint-disable-line no-eval - TOWARD_TX = "Toward Tx" # eslint-disable-line no-eval + AWAY_FROM_TX = "Away From Tx" + TOWARD_TX = "Toward Tx" @property def direction(self) -> DirectionOption: """Direction Direction of power flow (towards or away from the transmitter) to plot - """ + """ val = self._get_property("Direction") val = self.DirectionOption[val.upper()] return val @direction.setter def direction(self, value: DirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Direction={value.value}"]) @property def data_source(self): @@ -74,13 +72,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -90,11 +90,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -104,46 +106,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -157,7 +165,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -171,38 +181,42 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -216,7 +230,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -230,7 +246,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -244,7 +262,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -255,8 +275,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py index 6ee92bb7a65..fa7135e351b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ProfileTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -56,13 +52,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -72,11 +70,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -86,46 +86,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -139,7 +145,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -153,38 +161,42 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -198,7 +210,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -212,7 +226,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -226,7 +242,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -237,8 +255,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py index 8c6e5a009a9..6f495e88296 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class PropagationLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,37 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,24 +116,28 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def custom_fading_margin(self) -> float: @@ -143,8 +151,10 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -158,8 +168,10 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -173,28 +185,32 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -208,8 +224,10 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -222,8 +240,10 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -233,11 +253,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -251,8 +273,10 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -265,8 +289,10 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -280,8 +306,10 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -292,13 +320,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -311,8 +339,10 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -325,8 +355,10 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -339,7 +371,8 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py index 6ebf43aadb1..12cc5aa7711 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class RadioNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,11 +51,11 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Name: - "Type: - """ + "Name: + "Type: + """ return self._get_table_data() @table_data.setter @@ -70,10 +67,13 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py index 76f622ea3c9..564926c4d22 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyAmplifier(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -58,20 +54,20 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val class AmplifierTypeOption(Enum): - TRANSMIT_AMPLIFIER = "Transmit Amplifier" # eslint-disable-line no-eval - RECEIVE_AMPLIFIER = "Receive Amplifier" # eslint-disable-line no-eval + TRANSMIT_AMPLIFIER = "Transmit Amplifier" + RECEIVE_AMPLIFIER = "Receive Amplifier" @property def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type Configures the amplifier as a Tx or Rx amplifier - """ + """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val.upper()] return val @@ -180,3 +176,4 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return int(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py index 798953a2c5f..83cdf3dc504 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyAntennaNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -43,7 +39,7 @@ def tags(self) -> str: """Tags Space delimited list of tags for coupling selections - """ + """ val = self._get_property("Tags") return val @@ -56,7 +52,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val == true + return (val == true) @property def position(self): @@ -79,15 +75,15 @@ def relative_position(self): return val class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" + AZ_EL_TWIST = "Az-El-Twist" @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @@ -120,7 +116,7 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return val == true + return (val == true) @property def antenna_temperature(self) -> float: @@ -137,7 +133,7 @@ def type(self): """Type Defines the type of antenna - """ + """ val = self._get_property("Type") return val @@ -170,16 +166,16 @@ def peak_gain(self) -> float: return float(val) class BoresightOption(Enum): - XAXIS = "+X Axis" # eslint-disable-line no-eval - YAXIS = "+Y Axis" # eslint-disable-line no-eval - ZAXIS = "+Z Axis" # eslint-disable-line no-eval + XAXIS = "+X Axis" + YAXIS = "+Y Axis" + ZAXIS = "+Z Axis" @property def boresight(self) -> BoresightOption: """Boresight Select peak beam direction in local coordinates - """ + """ val = self._get_property("Boresight") val = self.BoresightOption[val.upper()] return val @@ -212,7 +208,7 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return val == true + return (val == true) @property def first_sidelobe_level(self) -> float: @@ -368,45 +364,45 @@ def vswr(self) -> float: return float(val) class AntennaPolarizationOption(Enum): - VERTICAL = "Vertical" # eslint-disable-line no-eval - HORIZONTAL = "Horizontal" # eslint-disable-line no-eval - RHCP = "RHCP" # eslint-disable-line no-eval - LHCP = "LHCP" # eslint-disable-line no-eval + VERTICAL = "Vertical" + HORIZONTAL = "Horizontal" + RHCP = "RHCP" + LHCP = "LHCP" @property def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val.upper()] return val class CrossDipoleModeOption(Enum): - FREESTANDING = "Freestanding" # eslint-disable-line no-eval - OVER_GROUND_PLANE = "Over Ground Plane" # eslint-disable-line no-eval + FREESTANDING = "Freestanding" + OVER_GROUND_PLANE = "Over Ground Plane" @property def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode Choose the Cross Dipole type - """ + """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val.upper()] return val class CrossDipolePolarizationOption(Enum): - RHCP = "RHCP" # eslint-disable-line no-eval - LHCP = "LHCP" # eslint-disable-line no-eval + RHCP = "RHCP" + LHCP = "LHCP" @property def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val.upper()] return val @@ -420,7 +416,7 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return val == true + return (val == true) @property def offset_height(self) -> float: @@ -442,7 +438,7 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return val == true + return (val == true) @property def conform__adjust_antenna(self) -> bool: @@ -452,7 +448,7 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return val == true + return (val == true) @property def element_offset(self): @@ -465,31 +461,31 @@ def element_offset(self): return val class ConformtoPlatformOption(Enum): - NONE = "None" # eslint-disable-line no-eval - ALONG_NORMAL = "Along Normal" # eslint-disable-line no-eval - PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" # eslint-disable-line no-eval + NONE = "None" + ALONG_NORMAL = "Along Normal" + PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" @property def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform Select method of automated conforming applied after Element Offset - """ + """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val.upper()] return val class ReferencePlaneOption(Enum): - XY_PLANE = "XY Plane" # eslint-disable-line no-eval - YZ_PLANE = "YZ Plane" # eslint-disable-line no-eval - ZX_PLANE = "ZX Plane" # eslint-disable-line no-eval + XY_PLANE = "XY Plane" + YZ_PLANE = "YZ Plane" + ZX_PLANE = "ZX Plane" @property def reference_plane(self) -> ReferencePlaneOption: """Reference Plane Select reference plane for determining original element heights - """ + """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val.upper()] return val @@ -503,7 +499,7 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return val == true + return (val == true) @property def show_axes(self) -> bool: @@ -513,7 +509,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val == true + return (val == true) @property def show_icon(self) -> bool: @@ -523,7 +519,7 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return val == true + return (val == true) @property def size(self) -> float: @@ -550,7 +546,7 @@ def el_sample_interval(self) -> float: """El Sample Interval Space between elevation-angle samples of pattern - """ + """ val = self._get_property("El Sample Interval") return float(val) @@ -559,7 +555,7 @@ def az_sample_interval(self) -> float: """Az Sample Interval Space between azimuth-angle samples of pattern - """ + """ val = self._get_property("Az Sample Interval") return float(val) @@ -571,14 +567,14 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return val == true + return (val == true) @property def frequency_domain(self): """Frequency Domain Frequency sample(s) defining antenna - """ + """ val = self._get_property("Frequency Domain") return val @@ -587,7 +583,7 @@ def number_of_electric_sources(self) -> int: """Number of Electric Sources Number of freestanding electric current sources defining antenna - """ + """ val = self._get_property("Number of Electric Sources") return int(val) @@ -596,7 +592,7 @@ def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources Number of freestanding magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Magnetic Sources") return int(val) @@ -606,7 +602,7 @@ def number_of_imaged_electric_sources(self) -> int: Number of imaged, half-space radiating electric current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Electric Sources") return int(val) @@ -616,7 +612,7 @@ def number_of_imaged_magnetic_sources(self) -> int: Number of imaged, half-space radiating magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Magnetic Sources") return int(val) @@ -626,7 +622,7 @@ def waveguide_height(self) -> float: Implied waveguide height (along local x-axis) where the flared horn walls meet the feed - """ + """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") return float(val) @@ -636,7 +632,7 @@ def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency Implied lowest operating frequency of pyramidal horn antenna - """ + """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -646,15 +642,15 @@ def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency Implied lowest operating frequency of conical horn antenna - """ + """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) class SWEModeTruncationOption(Enum): - DYNAMIC = "Dynamic" # eslint-disable-line no-eval - FIXED_CUSTOM = "Fixed (Custom)" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + DYNAMIC = "Dynamic" + FIXED_CUSTOM = "Fixed (Custom)" + NONE = "None" @property def swe_mode_truncation(self) -> SWEModeTruncationOption: @@ -662,7 +658,7 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: Select the method for stability-enhancing truncation of spherical wave expansion terms - """ + """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val.upper()] return val @@ -682,7 +678,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -694,7 +690,7 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return val == true + return (val == true) @property def use_phase_center(self) -> bool: @@ -704,14 +700,14 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return val == true + return (val == true) @property def coordinate_systems(self) -> str: """Coordinate Systems Specifies the coordinate system for the phase center of this antenna - """ + """ val = self._get_property("Coordinate Systems") return val @@ -734,3 +730,4 @@ def phasecenterorientation(self): """ val = self._get_property("PhaseCenterOrientation") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py index c1f7e8dd5bd..cf8b02d8aec 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyAntennaPassband(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -105,6 +102,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py index 0cba18653dd..40b4ff1e74c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -43,7 +39,7 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") return val @@ -55,7 +51,7 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return val == true + return (val == true) @property def use_emission_designator(self) -> bool: @@ -65,14 +61,14 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return val == true + return (val == true) @property def emission_designator(self) -> str: """Emission Designator Enter the Emission Designator to define the bandwidth and modulation - """ + """ val = self._get_property("Emission Designator") return val @@ -81,7 +77,7 @@ def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW Channel Bandwidth based off the emission designator - """ + """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -91,7 +87,7 @@ def emit_modulation_type(self) -> str: """EMIT Modulation Type Modulation based off the emission designator - """ + """ val = self._get_property("EMIT Modulation Type") return val @@ -104,7 +100,7 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return val == true + return (val == true) @property def channel_bandwidth(self) -> float: @@ -118,24 +114,24 @@ def channel_bandwidth(self) -> float: return float(val) class ModulationOption(Enum): - GENERIC = "Generic" # eslint-disable-line no-eval - AM = "AM" # eslint-disable-line no-eval - LSB = "LSB" # eslint-disable-line no-eval - USB = "USB" # eslint-disable-line no-eval - FM = "FM" # eslint-disable-line no-eval - FSK = "FSK" # eslint-disable-line no-eval - MSK = "MSK" # eslint-disable-line no-eval - PSK = "PSK" # eslint-disable-line no-eval - QAM = "QAM" # eslint-disable-line no-eval - APSK = "APSK" # eslint-disable-line no-eval - RADAR = "Radar" # eslint-disable-line no-eval + GENERIC = "Generic" + AM = "AM" + LSB = "LSB" + USB = "USB" + FM = "FM" + FSK = "FSK" + MSK = "MSK" + PSK = "PSK" + QAM = "QAM" + APSK = "APSK" + RADAR = "Radar" @property def modulation(self) -> ModulationOption: """Modulation Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Modulation") val = self.ModulationOption[val.upper()] return val @@ -195,7 +191,7 @@ def sidelobes(self) -> int: @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation FSK frequency deviation: helps determine spectral profile Value should be greater than 1. @@ -205,68 +201,68 @@ def freq_deviation_(self) -> float: return float(val) class PSKTypeOption(Enum): - BPSK = "BPSK" # eslint-disable-line no-eval - QPSK = "QPSK" # eslint-disable-line no-eval - PSK_8 = "PSK-8" # eslint-disable-line no-eval - PSK_16 = "PSK-16" # eslint-disable-line no-eval - PSK_32 = "PSK-32" # eslint-disable-line no-eval - PSK_64 = "PSK-64" # eslint-disable-line no-eval + BPSK = "BPSK" + QPSK = "QPSK" + PSK_8 = "PSK-8" + PSK_16 = "PSK-16" + PSK_32 = "PSK-32" + PSK_64 = "PSK-64" @property def psk_type(self) -> PSKTypeOption: """PSK Type PSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val.upper()] return val class FSKTypeOption(Enum): - FSK_2 = "FSK-2" # eslint-disable-line no-eval - FSK_4 = "FSK-4" # eslint-disable-line no-eval - FSK_8 = "FSK-8" # eslint-disable-line no-eval + FSK_2 = "FSK-2" + FSK_4 = "FSK-4" + FSK_8 = "FSK-8" @property def fsk_type(self) -> FSKTypeOption: """FSK Type FSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val.upper()] return val class QAMTypeOption(Enum): - QAM_4 = "QAM-4" # eslint-disable-line no-eval - QAM_16 = "QAM-16" # eslint-disable-line no-eval - QAM_64 = "QAM-64" # eslint-disable-line no-eval - QAM_256 = "QAM-256" # eslint-disable-line no-eval - QAM_1024 = "QAM-1024" # eslint-disable-line no-eval + QAM_4 = "QAM-4" + QAM_16 = "QAM-16" + QAM_64 = "QAM-64" + QAM_256 = "QAM-256" + QAM_1024 = "QAM-1024" @property def qam_type(self) -> QAMTypeOption: """QAM Type QAM modulation order: helps determine spectral profile - """ + """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val.upper()] return val class APSKTypeOption(Enum): - APSK_4 = "APSK-4" # eslint-disable-line no-eval - APSK_16 = "APSK-16" # eslint-disable-line no-eval - APSK_64 = "APSK-64" # eslint-disable-line no-eval - APSK_256 = "APSK-256" # eslint-disable-line no-eval - APSK_1024 = "APSK-1024" # eslint-disable-line no-eval + APSK_4 = "APSK-4" + APSK_16 = "APSK-16" + APSK_64 = "APSK-64" + APSK_256 = "APSK-256" + APSK_1024 = "APSK-1024" @property def apsk_type(self) -> APSKTypeOption: """APSK Type APSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val.upper()] return val @@ -316,18 +312,18 @@ def tx_offset(self) -> float: return float(val) class RadarTypeOption(Enum): - CW = "CW" # eslint-disable-line no-eval - FM_CW = "FM-CW" # eslint-disable-line no-eval - FM_PULSE = "FM Pulse" # eslint-disable-line no-eval - NON_FM_PULSE = "Non-FM Pulse" # eslint-disable-line no-eval - PHASE_CODED = "Phase Coded" # eslint-disable-line no-eval + CW = "CW" + FM_CW = "FM-CW" + FM_PULSE = "FM Pulse" + NON_FM_PULSE = "Non-FM Pulse" + PHASE_CODED = "Phase Coded" @property def radar_type(self) -> RadarTypeOption: """Radar Type Radar type: helps determine spectral profile - """ + """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val.upper()] return val @@ -340,7 +336,7 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return val == true + return (val == true) @property def post_october_2020_procurement(self) -> bool: @@ -351,7 +347,7 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return val == true + return (val == true) @property def hop_range_min_freq(self) -> float: @@ -471,3 +467,4 @@ def fm_freq_dev_bandwidth(self) -> float: val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py index 6aa83ad1ada..88c4224e281 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyBandFolder(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,3 +32,4 @@ def __init__(self, emit_obj, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py index 762292b5e46..ac453c217f1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyCable(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -58,14 +54,14 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - CONSTANT_LOSS = "Constant Loss" # eslint-disable-line no-eval - COAXIAL_CABLE = "Coaxial Cable" # eslint-disable-line no-eval + BY_FILE = "By File" + CONSTANT_LOSS = "Constant Loss" + COAXIAL_CABLE = "Coaxial Cable" @property def type(self) -> TypeOption: @@ -73,7 +69,7 @@ def type(self) -> TypeOption: Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -135,6 +131,7 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py index dd5287c8823..0a4cfa219df 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyCADNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -49,27 +45,27 @@ def file(self) -> str: return val class ModelTypeOption(Enum): - PLATE = "Plate" # eslint-disable-line no-eval - BOX = "Box" # eslint-disable-line no-eval - DIHEDRAL = "Dihedral" # eslint-disable-line no-eval - TRIHEDRAL = "Trihedral" # eslint-disable-line no-eval - CYLINDER = "Cylinder" # eslint-disable-line no-eval - TAPERED_CYLINDER = "Tapered Cylinder" # eslint-disable-line no-eval - CONE = "Cone" # eslint-disable-line no-eval - SPHERE = "Sphere" # eslint-disable-line no-eval - ELLIPSOID = "Ellipsoid" # eslint-disable-line no-eval - CIRCULAR_PLATE = "Circular Plate" # eslint-disable-line no-eval - PARABOLA = "Parabola" # eslint-disable-line no-eval - PRISM = "Prism" # eslint-disable-line no-eval - TAPERED_PRISM = "Tapered Prism" # eslint-disable-line no-eval - TOPHAT = "Tophat" # eslint-disable-line no-eval + PLATE = "Plate" + BOX = "Box" + DIHEDRAL = "Dihedral" + TRIHEDRAL = "Trihedral" + CYLINDER = "Cylinder" + TAPERED_CYLINDER = "Tapered Cylinder" + CONE = "Cone" + SPHERE = "Sphere" + ELLIPSOID = "Ellipsoid" + CIRCULAR_PLATE = "Circular Plate" + PARABOLA = "Parabola" + PRISM = "Prism" + TAPERED_PRISM = "Tapered Prism" + TOPHAT = "Tophat" @property def model_type(self) -> ModelTypeOption: """Model Type Select type of parametric model to create - """ + """ val = self._get_property("Model Type") val = self.ModelTypeOption[val.upper()] return val @@ -232,7 +228,7 @@ def offset(self) -> float: """Offset Offset of parabolic reflector - """ + """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") return float(val) @@ -277,7 +273,7 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return val == true + return (val == true) @property def closed_base(self) -> bool: @@ -287,7 +283,7 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return val == true + return (val == true) @property def mesh_density(self) -> int: @@ -309,18 +305,18 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return val == true + return (val == true) class MeshOptionOption(Enum): - IMPROVED = "Improved" # eslint-disable-line no-eval - LEGACY = "Legacy" # eslint-disable-line no-eval + IMPROVED = "Improved" + LEGACY = "Legacy" @property def mesh_option(self) -> MeshOptionOption: """Mesh Option Select from different meshing options - """ + """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val.upper()] return val @@ -344,7 +340,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val == true + return (val == true) @property def position(self): @@ -367,15 +363,15 @@ def relative_position(self): return val class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" + AZ_EL_TWIST = "Az-El-Twist" @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @@ -408,20 +404,20 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) class RenderModeOption(Enum): - FLAT_SHADED = "Flat-Shaded" # eslint-disable-line no-eval - WIRE_FRAME = "Wire-Frame" # eslint-disable-line no-eval - HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" # eslint-disable-line no-eval - OUTLINE = "Outline" # eslint-disable-line no-eval + FLAT_SHADED = "Flat-Shaded" + WIRE_FRAME = "Wire-Frame" + HIDDEN_WIRE_FRAME = "Hidden Wire-Frame" + OUTLINE = "Outline" @property def render_mode(self) -> RenderModeOption: """Render Mode Select drawing style for surfaces - """ + """ val = self._get_property("Render Mode") val = self.RenderModeOption[val.upper()] return val @@ -434,7 +430,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val == true + return (val == true) @property def min(self): @@ -461,7 +457,7 @@ def number_of_surfaces(self) -> int: """Number of Surfaces Number of surfaces in the model - """ + """ val = self._get_property("Number of Surfaces") return int(val) @@ -480,6 +476,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py index 93e1485037f..5c2c7abb986 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyCirculator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -58,13 +54,13 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" + PARAMETRIC = "Parametric" @property def type(self) -> TypeOption: @@ -72,21 +68,21 @@ def type(self) -> TypeOption: Type of circulator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" + ANTENNA_SIDE = "Antenna Side" @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the circulator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @@ -110,7 +106,7 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val == true + return (val == true) @property def reverse_isolation(self) -> float: @@ -131,7 +127,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val == true + return (val == true) @property def out_of_band_attenuation(self) -> float: @@ -192,6 +188,7 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py index 1aaaf0aa9a8..12ac821d777 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -44,7 +41,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def ports(self): @@ -52,6 +49,7 @@ def ports(self): Maps each port in the link to an antenna in the project "A list of values." - """ + """ val = self._get_property("Ports") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py index 2612058943c..1098e5f28d5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyCouplingsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -57,6 +54,7 @@ def antenna_tags(self) -> str: """Antenna Tags All tags currently used by all antennas in the project - """ + """ val = self._get_property("Antenna Tags") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py index 1233eb221b3..4d506ca453b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,11 +35,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Value (dB): + "Value (dB): Value should be between -1000 and 0. """ return self._get_table_data() @@ -55,14 +52,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -71,7 +68,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -83,7 +80,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -93,13 +90,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py index a5fc4c05f0e..cef4f2deb62 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,21 +34,21 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val class GroundPlaneNormalOption(Enum): - X_AXIS = "X Axis" # eslint-disable-line no-eval - Y_AXIS = "Y Axis" # eslint-disable-line no-eval - Z_AXIS = "Z Axis" # eslint-disable-line no-eval + X_AXIS = "X Axis" + Y_AXIS = "Y Axis" + Z_AXIS = "Z Axis" @property def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal Specifies the axis of the normal to the ground plane - """ + """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val.upper()] return val @@ -63,7 +59,8 @@ def gp_position_along_normal(self) -> float: Offset of ground plane in direction normal to the ground planes orientation - """ + """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py index af80e599bad..08c7ada730f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -46,14 +42,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @@ -62,7 +58,7 @@ def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @@ -74,7 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -84,28 +80,28 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val class TerrainCategoryOption(Enum): - TYPE_A = "Type A" # eslint-disable-line no-eval - TYPE_B = "Type B" # eslint-disable-line no-eval - TYPE_C = "Type C" # eslint-disable-line no-eval + TYPE_A = "Type A" + TYPE_B = "Type B" + TYPE_C = "Type C" @property def terrain_category(self) -> TerrainCategoryOption: """Terrain Category Specify the terrain category type for the Erceg model - """ + """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val.upper()] return val @@ -144,17 +140,17 @@ def pointing_error_loss(self) -> float: return float(val) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -188,7 +184,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @property def rain_availability(self) -> float: @@ -231,7 +227,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @property def temperature(self) -> float: @@ -262,3 +258,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py index ea0cc26beec..d4e8ff24e69 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyFilter(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -58,18 +54,18 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - LOW_PASS = "Low Pass" # eslint-disable-line no-eval - HIGH_PASS = "High Pass" # eslint-disable-line no-eval - BAND_PASS = "Band Pass" # eslint-disable-line no-eval - BAND_STOP = "Band Stop" # eslint-disable-line no-eval - TUNABLE_BANDPASS = "Tunable Bandpass" # eslint-disable-line no-eval - TUNABLE_BANDSTOP = "Tunable Bandstop" # eslint-disable-line no-eval + BY_FILE = "By File" + LOW_PASS = "Low Pass" + HIGH_PASS = "High Pass" + BAND_PASS = "Band Pass" + BAND_STOP = "Band Stop" + TUNABLE_BANDPASS = "Tunable Bandpass" + TUNABLE_BANDSTOP = "Tunable Bandstop" @property def type(self) -> TypeOption: @@ -77,7 +73,7 @@ def type(self) -> TypeOption: Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -192,7 +188,7 @@ def higher_stop_band(self) -> float: @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff Lower cutoff frequency Value should be between 1 and 1e+11. @@ -203,7 +199,7 @@ def lower_cutoff_(self) -> float: @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band Lower stop band frequency Value should be between 1 and 1e+11. @@ -214,7 +210,7 @@ def lower_stop_band_(self) -> float: @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band Higher stop band frequency Value should be between 1 and 1e+11. @@ -225,7 +221,7 @@ def higher_stop_band_(self) -> float: @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff Higher cutoff frequency Value should be between 1 and 1e+11. @@ -236,7 +232,7 @@ def higher_cutoff_(self) -> float: @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency Lowest tuned frequency Value should be between 1 and 1e+11. @@ -247,7 +243,7 @@ def lowest_tuned_frequency_(self) -> float: @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency Highest tuned frequency Value should be between 1 and 1e+11. @@ -281,6 +277,7 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py index 6f527fed99b..be425b02af9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -46,14 +42,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @@ -62,7 +58,7 @@ def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @@ -74,7 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -84,28 +80,28 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val class EnvironmentOption(Enum): - URBAN_MICROCELL = "Urban Microcell" # eslint-disable-line no-eval - URBAN_MACROCELL = "Urban Macrocell" # eslint-disable-line no-eval - RURAL_MACROCELL = "Rural Macrocell" # eslint-disable-line no-eval + URBAN_MICROCELL = "Urban Microcell" + URBAN_MACROCELL = "Urban Macrocell" + RURAL_MACROCELL = "Rural Macrocell" @property def environment(self) -> EnvironmentOption: """Environment Specify the environment for the 5G channel model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @@ -118,7 +114,7 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return val == true + return (val == true) @property def include_bpl(self) -> bool: @@ -128,18 +124,18 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return val == true + return (val == true) class NYUBPLModelOption(Enum): - LOW_LOSS_MODEL = "Low-loss model" # eslint-disable-line no-eval - HIGH_LOSS_MODEL = "High-loss model" # eslint-disable-line no-eval + LOW_LOSS_MODEL = "Low-loss model" + HIGH_LOSS_MODEL = "High-loss model" @property def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model Specify the NYU Building Penetration Loss model - """ + """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val.upper()] return val @@ -178,17 +174,17 @@ def pointing_error_loss(self) -> float: return float(val) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -222,7 +218,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @property def rain_availability(self) -> float: @@ -265,7 +261,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @property def temperature(self) -> float: @@ -296,3 +292,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py index 28118859b6e..c9b2c934acd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -46,14 +42,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @@ -62,7 +58,7 @@ def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @@ -74,7 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -84,29 +80,29 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val class EnvironmentOption(Enum): - LARGE_CITY = "Large City" # eslint-disable-line no-eval - SMALLMEDIUM_CITY = "Small/Medium City" # eslint-disable-line no-eval - SUBURBAN = "Suburban" # eslint-disable-line no-eval - RURAL = "Rural" # eslint-disable-line no-eval + LARGE_CITY = "Large City" + SMALLMEDIUM_CITY = "Small/Medium City" + SUBURBAN = "Suburban" + RURAL = "Rural" @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Hata model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @@ -145,17 +141,17 @@ def pointing_error_loss(self) -> float: return float(val) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -189,7 +185,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @property def rain_availability(self) -> float: @@ -232,7 +228,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @property def temperature(self) -> float: @@ -263,3 +259,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py index 26e9e7171f8..5060d4ff921 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,13 +36,13 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Power Loss Coefficient: + "Power Loss Coefficient: Value should be between 0 and 100. - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): Value should be between 0 and 1000. """ return self._get_table_data() @@ -59,14 +55,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -75,7 +71,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -87,7 +83,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -97,30 +93,30 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val class BuildingTypeOption(Enum): - RESIDENTIAL_APARTMENT = "Residential Apartment" # eslint-disable-line no-eval - RESIDENTIAL_HOUSE = "Residential House" # eslint-disable-line no-eval - OFFICE_BUILDING = "Office Building" # eslint-disable-line no-eval - COMMERCIAL_BUILDING = "Commercial Building" # eslint-disable-line no-eval - CUSTOM_BUILDING = "Custom Building" # eslint-disable-line no-eval + RESIDENTIAL_APARTMENT = "Residential Apartment" + RESIDENTIAL_HOUSE = "Residential House" + OFFICE_BUILDING = "Office Building" + COMMERCIAL_BUILDING = "Commercial Building" + CUSTOM_BUILDING = "Custom Building" @property def building_type(self) -> BuildingTypeOption: """Building Type Specify the building type for the Indoor Propagation model - """ + """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val.upper()] return val @@ -169,17 +165,17 @@ def pointing_error_loss(self) -> float: return float(val) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -213,7 +209,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @property def rain_availability(self) -> float: @@ -256,7 +252,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @property def temperature(self) -> float: @@ -287,3 +283,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py index 085f825f885..55f492f6ee2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyIsolator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -58,13 +54,13 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" + PARAMETRIC = "Parametric" @property def type(self) -> TypeOption: @@ -72,21 +68,21 @@ def type(self) -> TypeOption: Type of isolator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" + ANTENNA_SIDE = "Antenna Side" @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the isolator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @@ -110,7 +106,7 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val == true + return (val == true) @property def reverse_isolation(self) -> float: @@ -131,7 +127,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val == true + return (val == true) @property def out_of_band_attenuation(self) -> float: @@ -192,6 +188,7 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py index 4a16c297636..b2165628930 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -46,14 +42,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -62,7 +58,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -74,7 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -84,32 +80,32 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val class EnvironmentOption(Enum): - FREE_SPACE = "Free Space" # eslint-disable-line no-eval - URBAN = "Urban" # eslint-disable-line no-eval - SHADOWED_URBAN = "Shadowed Urban" # eslint-disable-line no-eval - BUILDING_LINE_OF_SIGHT = "Building Line of Sight" # eslint-disable-line no-eval - BUILDING_OBSTRUCTED = "Building Obstructed" # eslint-disable-line no-eval - FACTORY_OBSTRUCTED = "Factory Obstructed" # eslint-disable-line no-eval - CUSTOM = "Custom" # eslint-disable-line no-eval + FREE_SPACE = "Free Space" + URBAN = "Urban" + SHADOWED_URBAN = "Shadowed Urban" + BUILDING_LINE_OF_SIGHT = "Building Line of Sight" + BUILDING_OBSTRUCTED = "Building Obstructed" + FACTORY_OBSTRUCTED = "Factory Obstructed" + CUSTOM = "Custom" @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Log Distance model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @@ -158,17 +154,17 @@ def pointing_error_loss(self) -> float: return float(val) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -202,7 +198,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @property def rain_availability(self) -> float: @@ -245,7 +241,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @property def temperature(self) -> float: @@ -276,3 +272,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py index bcef0cdf4b9..eaeffe4aa64 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyMultiplexer(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -58,13 +54,13 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val class TypeOption(Enum): - BY_PASS_BAND = "By Pass Band" # eslint-disable-line no-eval - BY_FILE = "By File" # eslint-disable-line no-eval + BY_PASS_BAND = "By Pass Band" + BY_FILE = "By File" @property def type(self) -> TypeOption: @@ -73,21 +69,21 @@ def type(self) -> TypeOption: simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val class Port1LocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" + ANTENNA_SIDE = "Antenna Side" @property def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the multiplexer. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @@ -100,7 +96,7 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return val == true + return (val == true) @property def ports(self): @@ -108,7 +104,7 @@ def ports(self): Assigns the child port nodes to the multiplexers ports "A list of values." - """ + """ val = self._get_property("Ports") return val @@ -117,6 +113,7 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py index e7137f366b1..a27fa73966b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -39,10 +35,10 @@ def parent(self): return self._parent class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - LOW_PASS = "Low Pass" # eslint-disable-line no-eval - HIGH_PASS = "High Pass" # eslint-disable-line no-eval - BAND_PASS = "Band Pass" # eslint-disable-line no-eval + BY_FILE = "By File" + LOW_PASS = "Low Pass" + HIGH_PASS = "High Pass" + BAND_PASS = "Band Pass" @property def type(self) -> TypeOption: @@ -51,7 +47,7 @@ def type(self) -> TypeOption: file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -179,6 +175,7 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py index 371f36c90e7..11a3b933ef9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyPowerDivider(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -58,14 +54,14 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - P3_DB = "P3 dB" # eslint-disable-line no-eval - RESISTIVE = "Resistive" # eslint-disable-line no-eval + BY_FILE = "By File" + P3_DB = "P3 dB" + RESISTIVE = "Resistive" @property def type(self) -> TypeOption: @@ -73,21 +69,21 @@ def type(self) -> TypeOption: Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val class OrientationOption(Enum): - DIVIDER = "Divider" # eslint-disable-line no-eval - COMBINER = "Combiner" # eslint-disable-line no-eval + DIVIDER = "Divider" + COMBINER = "Combiner" @property def orientation(self) -> OrientationOption: """Orientation Defines the orientation of the Power Divider. - """ + """ val = self._get_property("Orientation") val = self.OrientationOption[val.upper()] return val @@ -112,7 +108,7 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val == true + return (val == true) @property def isolation(self) -> float: @@ -133,7 +129,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val == true + return (val == true) @property def out_of_band_attenuation(self) -> float: @@ -194,6 +190,7 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py index e8576c10937..d893151e8ab 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -46,14 +42,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -62,7 +58,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -74,7 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -84,14 +80,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -129,17 +125,17 @@ def pointing_error_loss(self) -> float: return float(val) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -173,7 +169,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @property def rain_availability(self) -> float: @@ -216,7 +212,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @property def temperature(self) -> float: @@ -247,3 +243,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py index 6dd413f7188..4d49888006c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyRadioNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,11 +35,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Name: - "Type: - """ + "Name: + "Type: + """ return self._get_table_data() @property @@ -50,6 +47,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py index 02a4d4d8d1a..e3fa487c5a3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyRxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -63,22 +59,22 @@ def receive_frequency(self) -> float: """Receive Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) class MeasurementModeOption(Enum): - AUDIO_SINAD = "Audio SINAD" # eslint-disable-line no-eval - DIGITAL_BER = "Digital BER" # eslint-disable-line no-eval - GPS_CNR = "GPS CNR" # eslint-disable-line no-eval + AUDIO_SINAD = "Audio SINAD" + DIGITAL_BER = "Digital BER" + GPS_CNR = "GPS CNR" @property def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode Defines the mode for the receiver measurement - """ + """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val.upper()] return val @@ -121,7 +117,7 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return val == true + return (val == true) @property def intended_signal_power(self) -> float: @@ -162,7 +158,7 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return val == true + return (val == true) @property def measure_mixer_products(self) -> bool: @@ -172,7 +168,7 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return val == true + return (val == true) @property def max_rf_order(self) -> int: @@ -202,7 +198,7 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return val == true + return (val == true) @property def measure_saturation(self) -> bool: @@ -212,7 +208,7 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return val == true + return (val == true) @property def use_ams_limits(self) -> bool: @@ -222,7 +218,7 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val == true + return (val == true) @property def start_frequency(self) -> float: @@ -264,4 +260,5 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return val == true + return (val == true) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py index cce3ec0fa1f..7fc6010f99a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -39,16 +35,16 @@ def parent(self): return self._parent class MixerProductTaperOption(Enum): - CONSTANT = "Constant" # eslint-disable-line no-eval - MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval - DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval + CONSTANT = "Constant" + MIL_STD_461G = "MIL-STD-461G" + DUFF_MODEL = "Duff Model" @property def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper Taper for setting amplitude of mixer products - """ + """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val.upper()] return val @@ -159,16 +155,16 @@ def maximum_lo_harmonic_order(self) -> int: return int(val) class MixingModeOption(Enum): - LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" # eslint-disable-line no-eval - LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" # eslint-disable-line no-eval - LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" + LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" + LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" @property def mixing_mode(self) -> MixingModeOption: """Mixing Mode Specifies whether the IF frequency is > or < RF channel frequency - """ + """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val.upper()] return val @@ -188,35 +184,36 @@ def rf_transition_frequency(self) -> float: """RF Transition Frequency RF Frequency Transition point - """ + """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) class UseHighLOOption(Enum): - ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" # eslint-disable-line no-eval - BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" # eslint-disable-line no-eval + ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" + BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" @property def use_high_lo(self) -> UseHighLOOption: """Use High LO Use High LO above/below the transition frequency - """ + """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val.upper()] return val class MixerProductTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" + RELATIVE = "Relative" @property def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units Specifies the units for the Mixer Products - """ + """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val.upper()] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py index 45328a8b5fe..5e22eca60c2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,3 +32,4 @@ def __init__(self, emit_obj, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py index fab53dbb400..a3944914964 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -45,4 +42,5 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return val == true + return (val == true) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py index 85826c7d89b..bc475a26c1d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyRxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,27 +36,28 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" + RELATIVE = "Relative" @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py index 2fbcbd4a33b..acf4640a5f6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -39,24 +35,24 @@ def parent(self): return self._parent class SensitivityUnitsOption(Enum): - DBM = "dBm" # eslint-disable-line no-eval - DBUV = "dBuV" # eslint-disable-line no-eval - MILLIWATTS = "milliwatts" # eslint-disable-line no-eval - MICROVOLTS = "microvolts" # eslint-disable-line no-eval + DBM = "dBm" + DBUV = "dBuV" + MILLIWATTS = "milliwatts" + MICROVOLTS = "microvolts" @property def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units Units to use for the Rx Sensitivity - """ + """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val.upper()] return val @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr Received signal power level at the Rx's antenna terminal Value should be between -1000 and 1000. @@ -94,7 +90,7 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return val == true + return (val == true) @property def saturation_level(self) -> float: @@ -119,7 +115,7 @@ def rx_noise_figure(self) -> float: @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity Rx minimum sensitivity level (dBm) Value should be between -1000 and 1000. @@ -130,7 +126,7 @@ def receiver_sensitivity_(self) -> float: @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity SNR or SINAD at the specified sensitivity level Value should be between -1000 and 1000. @@ -146,7 +142,7 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return val == true + return (val == true) @property def amplifier_saturation_level(self) -> float: @@ -161,7 +157,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Rx's 1 dB Compression Point - total power > P1dB saturates the receiver Value should be between -1000 and 1000. @@ -190,3 +186,4 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return int(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py index 955443d6836..f95424ebcf8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlySamplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,26 +36,26 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Min: + "Min: Value should be greater than 1. - "Max: + "Max: Value should be greater than 1. """ return self._get_table_data() class SamplingTypeOption(Enum): - SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" # eslint-disable-line no-eval - RANDOM_SAMPLING = "Random Sampling" # eslint-disable-line no-eval - UNIFORM_SAMPLING = "Uniform Sampling" # eslint-disable-line no-eval + SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" + RANDOM_SAMPLING = "Random Sampling" + UNIFORM_SAMPLING = "Uniform Sampling" @property def sampling_type(self) -> SamplingTypeOption: """Sampling Type Sampling to apply to this configuration - """ + """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val.upper()] return val @@ -73,7 +69,7 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return val == true + return (val == true) @property def percentage_of_channels(self) -> float: @@ -111,7 +107,7 @@ def total_tx_channels(self) -> int: Total number of transmit channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Tx Channels") return int(val) @@ -121,7 +117,7 @@ def total_rx_channels(self) -> int: Total number of receive channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Rx Channels") return int(val) @@ -130,6 +126,7 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py index 2e94d284dfe..7214b8aa191 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlySceneGroupNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -47,7 +43,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val == true + return (val == true) @property def position(self): @@ -70,15 +66,15 @@ def relative_position(self): return val class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" + AZ_EL_TWIST = "Az-El-Twist" @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @@ -111,7 +107,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val == true + return (val == true) @property def box_color(self): @@ -128,6 +124,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py index 3bf6d1f23bb..5ca19668655 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -45,7 +42,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def enable_refinement(self) -> bool: @@ -55,7 +52,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -65,13 +62,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py index 4200a3fc267..cb6390f154e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlySolutionsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -45,4 +42,5 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py index c9d62dc4218..c1acb6619c6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTerminator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -58,13 +54,13 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val class TypeOption(Enum): - BY_FILE = "By File" # eslint-disable-line no-eval - PARAMETRIC = "Parametric" # eslint-disable-line no-eval + BY_FILE = "By File" + PARAMETRIC = "Parametric" @property def type(self) -> TypeOption: @@ -72,21 +68,21 @@ def type(self) -> TypeOption: Type of terminator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val class PortLocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" + ANTENNA_SIDE = "Antenna Side" @property def port_location(self) -> PortLocationOption: """Port Location Defines the orientation of the terminator. - """ + """ val = self._get_property("Port Location") val = self.PortLocationOption[val.upper()] return val @@ -108,6 +104,7 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py index 3e67009dd63..8a161344db3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -44,7 +41,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def enable_refinement(self) -> bool: @@ -54,7 +51,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -64,14 +61,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -90,7 +87,7 @@ def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File Coupling data generated by Savant and exported as a matched file - """ + """ val = self._get_property("Savant Matched Coupling File") return val @@ -102,7 +99,7 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return val == true + return (val == true) @property def port_antenna_assignment(self): @@ -110,7 +107,7 @@ def port_antenna_assignment(self): Maps each port in the coupling file to an antenna in the project "A list of values." - """ + """ val = self._get_property("Port-Antenna Assignment") return val @@ -119,6 +116,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py index 1af3c088abf..3ee1c4a4ed8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTR_Switch(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -58,34 +54,34 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val class TxPortOption(Enum): - PORT_1 = "Port 1" # eslint-disable-line no-eval - PORT_2 = "Port 2" # eslint-disable-line no-eval + PORT_1 = "Port 1" + PORT_2 = "Port 2" @property def tx_port(self) -> TxPortOption: """Tx Port Specifies which port on the TR Switch is part of the Tx path. - """ + """ val = self._get_property("Tx Port") val = self.TxPortOption[val.upper()] return val class CommonPortLocationOption(Enum): - RADIO_SIDE = "Radio Side" # eslint-disable-line no-eval - ANTENNA_SIDE = "Antenna Side" # eslint-disable-line no-eval + RADIO_SIDE = "Radio Side" + ANTENNA_SIDE = "Antenna Side" @property def common_port_location(self) -> CommonPortLocationOption: """Common Port Location Defines the orientation of the tr switch. - """ + """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val.upper()] return val @@ -109,7 +105,7 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val == true + return (val == true) @property def isolation(self) -> float: @@ -130,7 +126,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val == true + return (val == true) @property def out_of_band_attenuation(self) -> float: @@ -185,3 +181,4 @@ def higher_stop_band(self) -> float: val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py index 385ea238d86..39a5d895309 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -46,14 +42,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -62,7 +58,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -74,7 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -84,14 +80,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -149,17 +145,17 @@ def pointing_error_loss(self) -> float: return float(val) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -193,7 +189,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @property def rain_availability(self) -> float: @@ -236,7 +232,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @property def temperature(self) -> float: @@ -267,3 +263,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py index 0e906d601b5..04fec1e128d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,25 +38,25 @@ def parent(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): Value should be between -200 and 150. """ return self._get_table_data() class NoiseBehaviorOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE_BANDWIDTH = "Relative (Bandwidth)" # eslint-disable-line no-eval - RELATIVE_OFFSET = "Relative (Offset)" # eslint-disable-line no-eval - EQUATION = "Equation" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" + RELATIVE_BANDWIDTH = "Relative (Bandwidth)" + RELATIVE_OFFSET = "Relative (Offset)" + EQUATION = "Equation" @property def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior Specifies the behavior of the parametric noise profile - """ + """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val.upper()] return val @@ -74,4 +70,5 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return val == true + return (val == true) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py index 2888089f973..520126b07e6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -39,15 +35,16 @@ def parent(self): return self._parent class HarmonicTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" + RELATIVE = "Relative" @property def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units Specifies the units for the Harmonics - """ + """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val.upper()] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py index a69caa5e6e5..9d8729dc36b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -61,7 +58,7 @@ def transmit_frequency(self) -> float: """Transmit Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -74,7 +71,7 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val == true + return (val == true) @property def start_frequency(self) -> float: @@ -106,4 +103,5 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return val == true + return (val == true) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py index 148c1a0ef0c..ecb068c242e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -39,15 +35,15 @@ def parent(self): return self._parent class NarrowbandBehaviorOption(Enum): - ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" # eslint-disable-line no-eval - RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" # eslint-disable-line no-eval + ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" + RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" @property def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior Specifies the behavior of the parametric narrowband emissions mask - """ + """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val.upper()] return val @@ -57,7 +53,8 @@ def measurement_frequency(self) -> float: """Measurement Frequency Measurement frequency for the absolute freq/amp pairs. - """ + """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py index f8924491de9..f551a2e6781 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTxSpectralProfEmitterNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +38,7 @@ def output_voltage_peak(self) -> float: """Output Voltage Peak Output High Voltage Level: maximum voltage of the digital signal - """ + """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") return float(val) @@ -54,7 +51,7 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val == true + return (val == true) @property def tx_broadband_noise(self) -> float: @@ -74,7 +71,7 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val == true + return (val == true) @property def internal_amp_gain(self) -> float: @@ -109,7 +106,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -149,3 +146,4 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return int(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py index 5289464b3e7..506153c3046 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -39,29 +35,29 @@ def parent(self): return self._parent class SpectrumTypeOption(Enum): - NARROWBAND__BROADBAND = "Narrowband & Broadband" # eslint-disable-line no-eval - BROADBAND_ONLY = "Broadband Only" # eslint-disable-line no-eval + NARROWBAND__BROADBAND = "Narrowband & Broadband" + BROADBAND_ONLY = "Broadband Only" @property def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type Specifies EMI Margins to calculate - """ + """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val.upper()] return val class TxPowerOption(Enum): - PEAK_POWER = "Peak Power" # eslint-disable-line no-eval - AVERAGE_POWER = "Average Power" # eslint-disable-line no-eval + PEAK_POWER = "Peak Power" + AVERAGE_POWER = "Average Power" @property def tx_power(self) -> TxPowerOption: """Tx Power Method used to specify the power - """ + """ val = self._get_property("Tx Power") val = self.TxPowerOption[val.upper()] return val @@ -96,7 +92,7 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val == true + return (val == true) @property def tx_broadband_noise(self) -> float: @@ -109,17 +105,17 @@ def tx_broadband_noise(self) -> float: return float(val) class HarmonicTaperOption(Enum): - CONSTANT = "Constant" # eslint-disable-line no-eval - MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval - MIL_STD_461G_NAVY = "MIL-STD-461G Navy" # eslint-disable-line no-eval - DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval + CONSTANT = "Constant" + MIL_STD_461G = "MIL-STD-461G" + MIL_STD_461G_NAVY = "MIL-STD-461G Navy" + DUFF_MODEL = "Duff Model" @property def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper Taper type used to set amplitude of harmonics - """ + """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val.upper()] return val @@ -163,7 +159,7 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return val == true + return (val == true) @property def number_of_harmonics(self) -> int: @@ -213,7 +209,7 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val == true + return (val == true) @property def internal_amp_gain(self) -> float: @@ -248,7 +244,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -288,3 +284,4 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return int(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py index 6e5bb3ef8a6..9ad76c5cd08 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,27 +36,28 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" + RELATIVE = "Relative" @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py index 7615faa90a6..3754d8f77d0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -46,14 +42,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @@ -62,7 +58,7 @@ def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @@ -74,7 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -84,41 +80,41 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val class PathLossTypeOption(Enum): - LOS_URBAN_CANYON = "LOS (Urban Canyon)" # eslint-disable-line no-eval - NLOS = "NLOS" # eslint-disable-line no-eval + LOS_URBAN_CANYON = "LOS (Urban Canyon)" + NLOS = "NLOS" @property def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type Specify LOS vs NLOS for the Walfisch-Ikegami model - """ + """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val.upper()] return val class EnvironmentOption(Enum): - DENSE_METRO = "Dense Metro" # eslint-disable-line no-eval - SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" # eslint-disable-line no-eval + DENSE_METRO = "Dense Metro" + SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Walfisch model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @@ -200,17 +196,17 @@ def pointing_error_loss(self) -> float: return float(val) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -244,7 +240,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @property def rain_availability(self) -> float: @@ -287,7 +283,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @property def temperature(self) -> float: @@ -318,3 +314,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py index 793b36627eb..3bb0a69747f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyWaveform(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -43,23 +39,23 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") return val class WaveformOption(Enum): - PERIODIC_CLOCK = "Periodic Clock" # eslint-disable-line no-eval - SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" # eslint-disable-line no-eval - PRBS = "PRBS" # eslint-disable-line no-eval - PRBS_PERIODIC = "PRBS (Periodic)" # eslint-disable-line no-eval - IMPORTED = "Imported" # eslint-disable-line no-eval + PERIODIC_CLOCK = "Periodic Clock" + SPREAD_SPECTRUM_CLOCK = "Spread Spectrum Clock" + PRBS = "PRBS" + PRBS_PERIODIC = "PRBS (Periodic)" + IMPORTED = "Imported" @property def waveform(self) -> WaveformOption: """Waveform Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Waveform") val = self.WaveformOption[val.upper()] return val @@ -119,16 +115,16 @@ def clock_risefall_time(self) -> float: return float(val) class SpreadingTypeOption(Enum): - LOW_SPREAD = "Low Spread" # eslint-disable-line no-eval - CENTER_SPREAD = "Center Spread" # eslint-disable-line no-eval - HIGH_SPREAD = "High Spread" # eslint-disable-line no-eval + LOW_SPREAD = "Low Spread" + CENTER_SPREAD = "Center Spread" + HIGH_SPREAD = "High Spread" @property def spreading_type(self) -> SpreadingTypeOption: """Spreading Type Type of spreading employed by the Spread Spectrum Clock - """ + """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val.upper()] return val @@ -156,7 +152,7 @@ def raw_data_format(self) -> str: """Raw Data Format Format of the imported raw data - """ + """ val = self._get_property("Raw Data Format") return val @@ -179,7 +175,7 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return val == true + return (val == true) @property def nb_window_size(self) -> float: @@ -213,15 +209,15 @@ def nb_detector_threshold(self) -> float: return float(val) class AlgorithmOption(Enum): - FFT = "FFT" # eslint-disable-line no-eval - FOURIER_TRANSFORM = "Fourier Transform" # eslint-disable-line no-eval + FFT = "FFT" + FOURIER_TRANSFORM = "Fourier Transform" @property def algorithm(self) -> AlgorithmOption: """Algorithm Algorithm used to transform the imported time domain spectrum - """ + """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val.upper()] return val @@ -242,7 +238,7 @@ def stop_time(self) -> float: """Stop Time Final time of the imported time domain spectrum - """ + """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") return float(val) @@ -259,22 +255,22 @@ def max_frequency(self) -> float: return float(val) class WindowTypeOption(Enum): - RECTANGULAR = "Rectangular" # eslint-disable-line no-eval - BARTLETT = "Bartlett" # eslint-disable-line no-eval - BLACKMAN = "Blackman" # eslint-disable-line no-eval - HAMMING = "Hamming" # eslint-disable-line no-eval - HANNING = "Hanning" # eslint-disable-line no-eval - KAISER = "Kaiser" # eslint-disable-line no-eval - LANZCOS = "Lanzcos" # eslint-disable-line no-eval - WELCH = "Welch" # eslint-disable-line no-eval - WEBER = "Weber" # eslint-disable-line no-eval + RECTANGULAR = "Rectangular" + BARTLETT = "Bartlett" + BLACKMAN = "Blackman" + HAMMING = "Hamming" + HANNING = "Hanning" + KAISER = "Kaiser" + LANZCOS = "Lanzcos" + WELCH = "Welch" + WEBER = "Weber" @property def window_type(self) -> WindowTypeOption: """Window Type Windowing scheme used for importing time domain spectrum - """ + """ val = self._get_property("Window Type") val = self.WindowTypeOption[val.upper()] return val @@ -297,7 +293,7 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return val == true + return (val == true) @property def data_rate(self) -> float: @@ -328,7 +324,7 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return val == true + return (val == true) @property def min_ptsnull(self) -> int: @@ -350,3 +346,4 @@ def delay_skew(self) -> float: val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py index e277116c257..c47722ba6d7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ResultPlotNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -46,13 +42,15 @@ def title(self) -> str: """Title Enter title at the top of the plot, room will be made for it - """ + """ val = self._get_property("Title") return val @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title={value}"]) @property def title_font(self): @@ -66,7 +64,9 @@ def title_font(self): @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -76,11 +76,13 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return val == true + return (val == true) @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Legend={value}"]) @property def legend_font(self): @@ -94,7 +96,9 @@ def legend_font(self): @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Legend Font={value}"]) @property def show_emi_thresholds(self) -> bool: @@ -104,11 +108,13 @@ def show_emi_thresholds(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show EMI Thresholds") - return val == true + return (val == true) @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show EMI Thresholds={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show EMI Thresholds={value}"]) @property def display_cad_overlay(self) -> bool: @@ -118,11 +124,13 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return val == true + return (val == true) @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -135,21 +143,25 @@ def opacity(self) -> float: return float(val) @opacity.setter - def opacity(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) + def opacity(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset Adjust vertical position of CAD model overlay - """ + """ val = self._get_property("Vertical Offset") return float(val) @vertical_offset.setter - def vertical_offset(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) + def vertical_offset(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -163,8 +175,10 @@ def range_axis_rotation(self) -> float: return float(val) @range_axis_rotation.setter - def range_axis_rotation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -174,63 +188,73 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return val == true + return (val == true) @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min Set lower extent of horizontal axis - """ + """ val = self._get_property("X-axis Min") return float(val) @x_axis_min.setter - def x_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) + def x_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max Set upper extent of horizontal axis - """ + """ val = self._get_property("X-axis Max") return float(val) @x_axis_max.setter - def x_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) + def x_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min Set lower extent of vertical axis - """ + """ val = self._get_property("Y-axis Min") return float(val) @y_axis_min.setter - def y_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) + def y_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max Set upper extent of vertical axis - """ + """ val = self._get_property("Y-axis Max") return float(val) @y_axis_max.setter - def y_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) + def y_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -244,8 +268,10 @@ def y_axis_range(self) -> float: return float(val) @y_axis_range.setter - def y_axis_range(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) + def y_axis_range(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -259,7 +285,9 @@ def max_major_ticks_x(self) -> int: @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -274,7 +302,9 @@ def max_minor_ticks_x(self) -> int: @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -288,7 +318,9 @@ def max_major_ticks_y(self) -> int: @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -303,7 +335,9 @@ def max_minor_ticks_y(self) -> int: @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -317,7 +351,9 @@ def axis_label_font(self): @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -331,31 +367,33 @@ def axis_tick_label_font(self): @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style Select line style of major-tick grid lines - """ + """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val.upper()] return val @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Line Style={value.value}"]) @property def major_grid_color(self): @@ -369,31 +407,33 @@ def major_grid_color(self): @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style Select line style of minor-tick grid lines - """ + """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val.upper()] return val @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Line Style={value.value}"]) @property def minor_grid_color(self): @@ -407,7 +447,9 @@ def minor_grid_color(self): @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -421,29 +463,31 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): - HERTZ = "hertz" # eslint-disable-line no-eval - KILOHERTZ = "kilohertz" # eslint-disable-line no-eval - MEGAHERTZ = "megahertz" # eslint-disable-line no-eval - GIGAHERTZ = "gigahertz" # eslint-disable-line no-eval + HERTZ = "hertz" + KILOHERTZ = "kilohertz" + MEGAHERTZ = "megahertz" + GIGAHERTZ = "gigahertz" @property def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit Units to use for plotting broadband power densities - """ + """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val.upper()] return val @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power for Plots Unit={value.value}"]) @property def bb_power_bandwidth(self) -> float: @@ -457,9 +501,11 @@ def bb_power_bandwidth(self) -> float: return float(val) @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value: float | str): + def bb_power_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -469,8 +515,11 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return val == true + return (val == true) @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Log Scale={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py index 2c6e541e30d..c3758ae5b2d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class RxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -71,29 +67,31 @@ def receive_frequency(self) -> float: """Receive Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) class MeasurementModeOption(Enum): - AUDIO_SINAD = "Audio SINAD" # eslint-disable-line no-eval - DIGITAL_BER = "Digital BER" # eslint-disable-line no-eval - GPS_CNR = "GPS CNR" # eslint-disable-line no-eval + AUDIO_SINAD = "Audio SINAD" + DIGITAL_BER = "Digital BER" + GPS_CNR = "GPS CNR" @property def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode Defines the mode for the receiver measurement - """ + """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val.upper()] return val @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Mode={value.value}"]) @property def sinad_threshold(self) -> float: @@ -106,8 +104,10 @@ def sinad_threshold(self) -> float: return float(val) @sinad_threshold.setter - def sinad_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SINAD Threshold={value}"]) + def sinad_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SINAD Threshold={value}"]) @property def gps_cnr_threshold(self) -> float: @@ -120,8 +120,10 @@ def gps_cnr_threshold(self) -> float: return float(val) @gps_cnr_threshold.setter - def gps_cnr_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GPS CNR Threshold={value}"]) + def gps_cnr_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"GPS CNR Threshold={value}"]) @property def ber_threshold(self) -> float: @@ -134,8 +136,10 @@ def ber_threshold(self) -> float: return float(val) @ber_threshold.setter - def ber_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BER Threshold={value}"]) + def ber_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BER Threshold={value}"]) @property def default_intended_power(self) -> bool: @@ -145,11 +149,13 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return val == true + return (val == true) @default_intended_power.setter def default_intended_power(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Default Intended Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Default Intended Power={value}"]) @property def intended_signal_power(self) -> float: @@ -162,8 +168,10 @@ def intended_signal_power(self) -> float: return float(val) @intended_signal_power.setter - def intended_signal_power(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Intended Signal Power={value}"]) + def intended_signal_power(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Intended Signal Power={value}"]) @property def freq_deviation(self) -> float: @@ -177,9 +185,11 @@ def freq_deviation(self) -> float: return float(val) @freq_deviation.setter - def freq_deviation(self, value: float | str): + def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation={value}"]) @property def modulation_depth(self) -> float: @@ -192,8 +202,10 @@ def modulation_depth(self) -> float: return float(val) @modulation_depth.setter - def modulation_depth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Depth={value}"]) + def modulation_depth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation Depth={value}"]) @property def measure_selectivity(self) -> bool: @@ -203,11 +215,13 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return val == true + return (val == true) @measure_selectivity.setter def measure_selectivity(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Selectivity={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Selectivity={value}"]) @property def measure_mixer_products(self) -> bool: @@ -217,11 +231,13 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return val == true + return (val == true) @measure_mixer_products.setter def measure_mixer_products(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Mixer Products={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Mixer Products={value}"]) @property def max_rf_order(self) -> int: @@ -235,7 +251,9 @@ def max_rf_order(self) -> int: @max_rf_order.setter def max_rf_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max RF Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max RF Order={value}"]) @property def max_lo_order(self) -> int: @@ -249,7 +267,9 @@ def max_lo_order(self) -> int: @max_lo_order.setter def max_lo_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max LO Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max LO Order={value}"]) @property def include_if(self) -> bool: @@ -259,11 +279,13 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return val == true + return (val == true) @include_if.setter def include_if(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include IF={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include IF={value}"]) @property def measure_saturation(self) -> bool: @@ -273,11 +295,13 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return val == true + return (val == true) @measure_saturation.setter def measure_saturation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Saturation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Saturation={value}"]) @property def use_ams_limits(self) -> bool: @@ -287,11 +311,13 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val == true + return (val == true) @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -305,9 +331,11 @@ def start_frequency(self) -> float: return float(val) @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -321,9 +349,11 @@ def stop_frequency(self) -> float: return float(val) @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def samples(self) -> int: @@ -337,7 +367,9 @@ def samples(self) -> int: @samples.setter def samples(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Samples={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Samples={value}"]) @property def exclude_mixer_products_below_noise(self) -> bool: @@ -347,19 +379,20 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return val == true + return (val == true) @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Exclude Mixer Products Below Noise={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Exclude Mixer Products Below Noise={value}"]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py index 4268c9f5ad1..cb7a3eaba22 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class RxMixerProductNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -49,32 +45,32 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class MixerProductTaperOption(Enum): - CONSTANT = "Constant" # eslint-disable-line no-eval - MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval - DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval + CONSTANT = "Constant" + MIL_STD_461G = "MIL-STD-461G" + DUFF_MODEL = "Duff Model" @property def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper Taper for setting amplitude of mixer products - """ + """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val.upper()] return val @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Taper={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Taper={value.value}"]) @property def mixer_product_susceptibility(self) -> float: @@ -87,10 +83,10 @@ def mixer_product_susceptibility(self) -> float: return float(val) @mixer_product_susceptibility.setter - def mixer_product_susceptibility(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Susceptibility={value}"] - ) + def mixer_product_susceptibility(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Susceptibility={value}"]) @property def spurious_rejection(self) -> float: @@ -103,8 +99,10 @@ def spurious_rejection(self) -> float: return float(val) @spurious_rejection.setter - def spurious_rejection(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spurious Rejection={value}"]) + def spurious_rejection(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spurious Rejection={value}"]) @property def minimum_tuning_frequency(self) -> float: @@ -118,9 +116,11 @@ def minimum_tuning_frequency(self) -> float: return float(val) @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value: float | str): + def minimum_tuning_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minimum Tuning Frequency={value}"]) @property def maximum_tuning_frequency(self) -> float: @@ -134,9 +134,11 @@ def maximum_tuning_frequency(self) -> float: return float(val) @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value: float | str): + def maximum_tuning_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum Tuning Frequency={value}"]) @property def mixer_product_slope(self) -> float: @@ -150,8 +152,10 @@ def mixer_product_slope(self) -> float: return float(val) @mixer_product_slope.setter - def mixer_product_slope(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Slope={value}"]) + def mixer_product_slope(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Slope={value}"]) @property def mixer_product_intercept(self) -> float: @@ -164,8 +168,10 @@ def mixer_product_intercept(self) -> float: return float(val) @mixer_product_intercept.setter - def mixer_product_intercept(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Intercept={value}"]) + def mixer_product_intercept(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Intercept={value}"]) @property def bandwidth_80_db(self) -> float: @@ -180,9 +186,11 @@ def bandwidth_80_db(self) -> float: return float(val) @bandwidth_80_db.setter - def bandwidth_80_db(self, value: float | str): + def bandwidth_80_db(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 80 dB={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 80 dB={value}"]) @property def image_rejection(self) -> float: @@ -195,8 +203,10 @@ def image_rejection(self) -> float: return float(val) @image_rejection.setter - def image_rejection(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Image Rejection={value}"]) + def image_rejection(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Image Rejection={value}"]) @property def maximum_rf_harmonic_order(self) -> int: @@ -210,9 +220,9 @@ def maximum_rf_harmonic_order(self) -> int: @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Maximum RF Harmonic Order={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum RF Harmonic Order={value}"]) @property def maximum_lo_harmonic_order(self) -> int: @@ -226,28 +236,30 @@ def maximum_lo_harmonic_order(self) -> int: @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Maximum LO Harmonic Order={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum LO Harmonic Order={value}"]) class MixingModeOption(Enum): - LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" # eslint-disable-line no-eval - LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" # eslint-disable-line no-eval - LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" # eslint-disable-line no-eval + LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" + LO_BELOW_TUNED_RF_FREQUENCY = "LO Below Tuned (RF) Frequency" + LO_ABOVEBELOW_TUNED_RF_FREQUENCY = "LO Above/Below Tuned (RF) Frequency" @property def mixing_mode(self) -> MixingModeOption: """Mixing Mode Specifies whether the IF frequency is > or < RF channel frequency - """ + """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val.upper()] return val @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixing Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixing Mode={value.value}"]) @property def first_if_frequency(self): @@ -261,57 +273,64 @@ def first_if_frequency(self): @first_if_frequency.setter def first_if_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First IF Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First IF Frequency={value}"]) @property def rf_transition_frequency(self) -> float: """RF Transition Frequency RF Frequency Transition point - """ + """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @rf_transition_frequency.setter - def rf_transition_frequency(self, value: float | str): + def rf_transition_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"RF Transition Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"RF Transition Frequency={value}"]) class UseHighLOOption(Enum): - ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" # eslint-disable-line no-eval - BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" # eslint-disable-line no-eval + ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" + BELOW_TRANSITION_FREQUENCY = "Below Transition Frequency" @property def use_high_lo(self) -> UseHighLOOption: """Use High LO Use High LO above/below the transition frequency - """ + """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val.upper()] return val @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use High LO={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use High LO={value.value}"]) class MixerProductTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" + RELATIVE = "Relative" @property def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units Specifies the units for the Mixer Products - """ + """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val.upper()] return val @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Table Units={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py index 62e4e8f9276..df6a48c060b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class RxSaturationNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,7 +35,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -47,8 +44,9 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py index e49a32513f8..b9449774377 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class RxSelectivityNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,7 +35,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -47,7 +44,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -62,8 +59,11 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return val == true + return (val == true) @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Arithmetic Mean={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Arithmetic Mean={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py index d31eeddfbd7..6ff7afee163 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class RxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -48,13 +44,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -66,26 +62,29 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" + RELATIVE = "Relative" @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spur Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py index a9eabfb4a7a..36bd626f12a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class RxSusceptibilityProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,35 +37,37 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SensitivityUnitsOption(Enum): - DBM = "dBm" # eslint-disable-line no-eval - DBUV = "dBuV" # eslint-disable-line no-eval - MILLIWATTS = "milliwatts" # eslint-disable-line no-eval - MICROVOLTS = "microvolts" # eslint-disable-line no-eval + DBM = "dBm" + DBUV = "dBuV" + MILLIWATTS = "milliwatts" + MICROVOLTS = "microvolts" @property def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units Units to use for the Rx Sensitivity - """ + """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val.upper()] return val @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sensitivity Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sensitivity Units={value.value}"]) @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr Received signal power level at the Rx's antenna terminal Value should be between -1000 and 1000. @@ -78,8 +76,10 @@ def min_receive_signal_pwr_(self) -> float: return float(val) @min_receive_signal_pwr_.setter - def min_receive_signal_pwr_(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min. Receive Signal Pwr ={value}"]) + def min_receive_signal_pwr_(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min. Receive Signal Pwr ={value}"]) @property def snr_at_rx_signal_pwr(self) -> float: @@ -93,8 +93,10 @@ def snr_at_rx_signal_pwr(self) -> float: return float(val) @snr_at_rx_signal_pwr.setter - def snr_at_rx_signal_pwr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR at Rx Signal Pwr={value}"]) + def snr_at_rx_signal_pwr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SNR at Rx Signal Pwr={value}"]) @property def processing_gain(self) -> float: @@ -107,8 +109,10 @@ def processing_gain(self) -> float: return float(val) @processing_gain.setter - def processing_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Processing Gain={value}"]) + def processing_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Processing Gain={value}"]) @property def apply_pg_to_narrowband_only(self) -> bool: @@ -119,13 +123,13 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return val == true + return (val == true) @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Apply PG to Narrowband Only={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Apply PG to Narrowband Only={value}"]) @property def saturation_level(self) -> float: @@ -139,9 +143,11 @@ def saturation_level(self) -> float: return float(val) @saturation_level.setter - def saturation_level(self, value: float | str): + def saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Saturation Level={value}"]) @property def rx_noise_figure(self) -> float: @@ -154,12 +160,14 @@ def rx_noise_figure(self) -> float: return float(val) @rx_noise_figure.setter - def rx_noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rx Noise Figure={value}"]) + def rx_noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rx Noise Figure={value}"]) @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity Rx minimum sensitivity level (dBm) Value should be between -1000 and 1000. @@ -169,13 +177,15 @@ def receiver_sensitivity_(self) -> float: return float(val) @receiver_sensitivity_.setter - def receiver_sensitivity_(self, value: float | str): + def receiver_sensitivity_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver Sensitivity ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Receiver Sensitivity ={value}"]) @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity SNR or SINAD at the specified sensitivity level Value should be between -1000 and 1000. @@ -184,10 +194,10 @@ def snrsinad_at_sensitivity_(self) -> float: return float(val) @snrsinad_at_sensitivity_.setter - def snrsinad_at_sensitivity_(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"SNR/SINAD at Sensitivity ={value}"] - ) + def snrsinad_at_sensitivity_(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SNR/SINAD at Sensitivity ={value}"]) @property def perform_rx_intermod_analysis(self) -> bool: @@ -197,13 +207,13 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return val == true + return (val == true) @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Rx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Rx Intermod Analysis={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -217,15 +227,15 @@ def amplifier_saturation_level(self) -> float: return float(val) @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Rx's 1 dB Compression Point - total power > P1dB saturates the receiver Value should be between -1000 and 1000. @@ -235,9 +245,11 @@ def p1_db_point_ref_input_(self) -> float: return float(val) @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -251,9 +263,11 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def max_intermod_order(self) -> int: @@ -267,4 +281,7 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py index 18b477a6102..79feb22b091 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class SamplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,11 +36,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Min: + "Min: Value should be greater than 1. - "Max: + "Max: Value should be greater than 1. """ return self._get_table_data() @@ -54,23 +50,25 @@ def table_data(self, value): self._set_table_data(value) class SamplingTypeOption(Enum): - SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" # eslint-disable-line no-eval - RANDOM_SAMPLING = "Random Sampling" # eslint-disable-line no-eval - UNIFORM_SAMPLING = "Uniform Sampling" # eslint-disable-line no-eval + SAMPLE_ALL_CHANNELS_IN_RANGES = "Sample All Channels in Range(s)" + RANDOM_SAMPLING = "Random Sampling" + UNIFORM_SAMPLING = "Uniform Sampling" @property def sampling_type(self) -> SamplingTypeOption: """Sampling Type Sampling to apply to this configuration - """ + """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val.upper()] return val @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sampling Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sampling Type={value.value}"]) @property def specify_percentage(self) -> bool: @@ -81,11 +79,13 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return val == true + return (val == true) @specify_percentage.setter def specify_percentage(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Specify Percentage={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Specify Percentage={value}"]) @property def percentage_of_channels(self) -> float: @@ -98,8 +98,10 @@ def percentage_of_channels(self) -> float: return float(val) @percentage_of_channels.setter - def percentage_of_channels(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percentage of Channels={value}"]) + def percentage_of_channels(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Percentage of Channels={value}"]) @property def max__channelsrangeband(self) -> int: @@ -113,9 +115,9 @@ def max__channelsrangeband(self) -> int: @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Max # Channels/Range/Band={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max # Channels/Range/Band={value}"]) @property def seed(self) -> int: @@ -129,7 +131,9 @@ def seed(self) -> int: @seed.setter def seed(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Seed={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Seed={value}"]) @property def total_tx_channels(self) -> int: @@ -137,7 +141,7 @@ def total_tx_channels(self) -> int: Total number of transmit channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Tx Channels") return int(val) @@ -147,7 +151,7 @@ def total_rx_channels(self) -> int: Total number of receive channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Rx Channels") return int(val) @@ -156,6 +160,7 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py index 8c5d7918192..74913b8899c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class SceneGroupNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -63,13 +59,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val == true + return (val == true) @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): @@ -83,7 +79,9 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): @@ -97,25 +95,29 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): - ROLL_PITCH_YAW = "Roll-Pitch-Yaw" # eslint-disable-line no-eval - AZ_EL_TWIST = "Az-El-Twist" # eslint-disable-line no-eval + ROLL_PITCH_YAW = "Roll-Pitch-Yaw" + AZ_EL_TWIST = "Az-El-Twist" @property def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -129,7 +131,9 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): @@ -143,7 +147,9 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def show_axes(self) -> bool: @@ -153,11 +159,13 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val == true + return (val == true) @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def box_color(self): @@ -171,17 +179,22 @@ def box_color(self): @box_color.setter def box_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Box Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Box Color={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py index 1d4975aa6db..8c373b3f3e3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class SelectivityTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -56,13 +52,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -72,11 +70,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -86,46 +86,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -139,7 +145,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -153,38 +161,42 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -198,7 +210,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -212,7 +226,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -226,7 +242,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -237,8 +255,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py index 8553e1f5f7d..959b5cfb018 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class SolutionCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -45,11 +42,13 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -59,11 +58,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -73,21 +74,26 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py index 0a1142dc3d7..0ce64982dff 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class SolutionsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -45,8 +42,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py index 09c0c7eb305..c96f69042b4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class SpurTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -55,13 +51,15 @@ def channel_frequency(self): """Channel Frequency Select band channel frequency to display - """ + """ val = self._get_property("Channel Frequency") return val @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: @@ -69,7 +67,7 @@ def transmit_frequency(self) -> float: The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset) - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -80,13 +78,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,11 +96,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -110,46 +112,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -163,7 +171,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -177,38 +187,42 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -222,7 +236,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -236,7 +252,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -250,7 +268,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -261,8 +281,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py index 136636da3b7..2ba6ea7fb3a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TestNoiseTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -62,7 +58,9 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -76,7 +74,9 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): @@ -84,13 +84,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -100,11 +102,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -114,46 +118,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -167,7 +177,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -181,38 +193,42 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -226,7 +242,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -240,7 +258,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -254,7 +274,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -265,11 +287,13 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -283,9 +307,11 @@ def frequency_1(self) -> float: return float(val) @frequency_1.setter - def frequency_1(self, value: float | str): + def frequency_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -299,9 +325,11 @@ def amplitude_1(self) -> float: return float(val) @amplitude_1.setter - def amplitude_1(self, value: float | str): + def amplitude_1(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -315,9 +343,11 @@ def bandwidth_1(self) -> float: return float(val) @bandwidth_1.setter - def bandwidth_1(self, value: float | str): + def bandwidth_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -331,9 +361,11 @@ def frequency_2(self) -> float: return float(val) @frequency_2.setter - def frequency_2(self, value: float | str): + def frequency_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -347,9 +379,11 @@ def amplitude_2(self) -> float: return float(val) @amplitude_2.setter - def amplitude_2(self, value: float | str): + def amplitude_2(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -363,9 +397,11 @@ def bandwidth_2(self) -> float: return float(val) @bandwidth_2.setter - def bandwidth_2(self, value: float | str): + def bandwidth_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -378,5 +414,8 @@ def noise_level(self) -> float: return float(val) @noise_level.setter - def noise_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) + def noise_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Level={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py index e54ab2654f2..3dc7c0a53b1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py @@ -1,32 +1,30 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TopLevelSimulation(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False EmitNode.__init__(self, emit_obj, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py index 36fc75f89f7..b16d60057e3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TouchstoneCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -56,11 +53,13 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -70,11 +69,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -84,24 +85,28 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def filename(self) -> str: @@ -115,14 +120,16 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File Coupling data generated by Savant and exported as a matched file - """ + """ val = self._get_property("Savant Matched Coupling File") return val @@ -134,11 +141,13 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return val == true + return (val == true) @enable_em_isolation.setter def enable_em_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable EM Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable EM Isolation={value}"]) @property def port_antenna_assignment(self): @@ -146,23 +155,28 @@ def port_antenna_assignment(self): Maps each port in the coupling file to an antenna in the project "A list of values." - """ + """ val = self._get_property("Port-Antenna Assignment") return val @port_antenna_assignment.setter def port_antenna_assignment(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port-Antenna Assignment={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port-Antenna Assignment={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py index 1e7c1aa322e..0d5be899d86 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TRSwitchTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -62,7 +58,9 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -76,7 +74,9 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): @@ -84,13 +84,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -100,11 +102,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -114,46 +118,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -167,7 +177,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -181,38 +193,42 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -226,7 +242,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -240,7 +258,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -254,7 +274,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -265,8 +287,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py index a4a28a05082..0b2d40f13a1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TunableTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -62,7 +58,9 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -76,22 +74,26 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def frequency(self) -> float: """Frequency Tunable filter center frequency - """ + """ val = self._get_property("Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @frequency.setter - def frequency(self, value: float | str): + def frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency={value}"]) @property def data_source(self): @@ -99,13 +101,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -115,11 +119,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -129,46 +135,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -182,7 +194,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -196,38 +210,42 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -241,7 +259,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -255,7 +275,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -269,7 +291,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -280,8 +304,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py index d485cfbbaa8..a7a6a17f37e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,37 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,24 +116,28 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def ground_reflection_coeff(self) -> float: @@ -142,8 +150,10 @@ def ground_reflection_coeff(self) -> float: return float(val) @ground_reflection_coeff.setter - def ground_reflection_coeff(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ground Reflection Coeff.={value}"]) + def ground_reflection_coeff(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ground Reflection Coeff.={value}"]) @property def pointspeak(self) -> int: @@ -157,7 +167,9 @@ def pointspeak(self) -> int: @pointspeak.setter def pointspeak(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Points/Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Points/Peak={value}"]) @property def custom_fading_margin(self) -> float: @@ -171,8 +183,10 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -186,8 +200,10 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -201,28 +217,32 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -236,8 +256,10 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -250,8 +272,10 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -261,11 +285,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -279,8 +305,10 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -293,8 +321,10 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -308,8 +338,10 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -320,13 +352,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -339,8 +371,10 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -353,8 +387,10 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -367,7 +403,8 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py index e4d768d2910..363be46e6ab 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TwoToneTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -62,7 +58,9 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -76,7 +74,9 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): @@ -84,13 +84,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -100,11 +102,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -114,46 +118,52 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): - LINES = "Lines" # eslint-disable-line no-eval - DOTTED = "Dotted" # eslint-disable-line no-eval - DASHED = "Dashed" # eslint-disable-line no-eval - DOT_DASH = "Dot-Dash" # eslint-disable-line no-eval - DOT_DOT_DASH = "Dot-Dot-Dash" # eslint-disable-line no-eval - NONE = "None" # eslint-disable-line no-eval + LINES = "Lines" + DOTTED = "Dotted" + DASHED = "Dashed" + DOT_DASH = "Dot-Dash" + DOT_DOT_DASH = "Dot-Dot-Dash" + NONE = "None" @property def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -167,7 +177,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -181,38 +193,42 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): - NOSYMBOL = "NoSymbol" # eslint-disable-line no-eval - ELLIPSE = "Ellipse" # eslint-disable-line no-eval - RECT = "Rect" # eslint-disable-line no-eval - DIAMOND = "Diamond" # eslint-disable-line no-eval - TRIANGLE = "Triangle" # eslint-disable-line no-eval - DTRIANGLE = "DTriangle" # eslint-disable-line no-eval - LTRIANGLE = "LTriangle" # eslint-disable-line no-eval - RTRIANGLE = "RTriangle" # eslint-disable-line no-eval - CROSS = "Cross" # eslint-disable-line no-eval - XCROSS = "XCross" # eslint-disable-line no-eval - HLINE = "HLine" # eslint-disable-line no-eval - VLINE = "VLine" # eslint-disable-line no-eval - STAR1 = "Star1" # eslint-disable-line no-eval - STAR2 = "Star2" # eslint-disable-line no-eval - HEXAGON = "Hexagon" # eslint-disable-line no-eval + NOSYMBOL = "NoSymbol" + ELLIPSE = "Ellipse" + RECT = "Rect" + DIAMOND = "Diamond" + TRIANGLE = "Triangle" + DTRIANGLE = "DTriangle" + LTRIANGLE = "LTriangle" + RTRIANGLE = "RTriangle" + CROSS = "Cross" + XCROSS = "XCross" + HLINE = "HLine" + VLINE = "VLine" + STAR1 = "Star1" + STAR2 = "Star2" + HEXAGON = "Hexagon" @property def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -226,7 +242,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -240,7 +258,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -254,7 +274,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -265,11 +287,13 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -283,9 +307,11 @@ def frequency_1(self) -> float: return float(val) @frequency_1.setter - def frequency_1(self, value: float | str): + def frequency_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -299,9 +325,11 @@ def amplitude_1(self) -> float: return float(val) @amplitude_1.setter - def amplitude_1(self, value: float | str): + def amplitude_1(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -315,9 +343,11 @@ def bandwidth_1(self) -> float: return float(val) @bandwidth_1.setter - def bandwidth_1(self, value: float | str): + def bandwidth_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -331,9 +361,11 @@ def frequency_2(self) -> float: return float(val) @frequency_2.setter - def frequency_2(self, value: float | str): + def frequency_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -347,9 +379,11 @@ def amplitude_2(self) -> float: return float(val) @amplitude_2.setter - def amplitude_2(self, value: float | str): + def amplitude_2(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -363,9 +397,11 @@ def bandwidth_2(self) -> float: return float(val) @bandwidth_2.setter - def bandwidth_2(self, value: float | str): + def bandwidth_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -378,5 +414,8 @@ def noise_level(self) -> float: return float(val) @noise_level.setter - def noise_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) + def noise_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Level={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py index ab103a45b30..7b10b0d446e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TxBbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -50,9 +46,9 @@ def delete(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): Value should be between -200 and 150. """ return self._get_table_data() @@ -64,31 +60,33 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class NoiseBehaviorOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE_BANDWIDTH = "Relative (Bandwidth)" # eslint-disable-line no-eval - RELATIVE_OFFSET = "Relative (Offset)" # eslint-disable-line no-eval - EQUATION = "Equation" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" + RELATIVE_BANDWIDTH = "Relative (Bandwidth)" + RELATIVE_OFFSET = "Relative (Offset)" + EQUATION = "Equation" @property def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior Specifies the behavior of the parametric noise profile - """ + """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val.upper()] return val @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Behavior={value.value}"]) @property def use_log_linear_interpolation(self) -> bool: @@ -99,10 +97,11 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return val == true + return (val == true) @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Log-Linear Interpolation={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py index 54a57f2f6a9..052dcf7f40e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TxHarmonicNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -49,28 +45,29 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class HarmonicTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" + RELATIVE = "Relative" @property def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units Specifies the units for the Harmonics - """ + """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val.upper()] return val @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py index 21e1fc9cb59..5b7b3dee748 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -69,7 +66,7 @@ def transmit_frequency(self) -> float: """Transmit Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -82,11 +79,13 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val == true + return (val == true) @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -100,9 +99,11 @@ def start_frequency(self) -> float: return float(val) @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -116,9 +117,11 @@ def stop_frequency(self) -> float: return float(val) @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def exclude_harmonics_below_noise(self) -> bool: @@ -128,19 +131,20 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return val == true + return (val == true) @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Exclude Harmonics Below Noise={value}"]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py index 4c85e75b442..622b8f95a8c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TxNbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -49,43 +45,46 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class NarrowbandBehaviorOption(Enum): - ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" # eslint-disable-line no-eval - RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" # eslint-disable-line no-eval + ABSOLUTE_FREQS_AND_POWER = "Absolute Freqs and Power" + RELATIVE_FREQS_AND_ATTENUATION = "Relative Freqs and Attenuation" @property def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior Specifies the behavior of the parametric narrowband emissions mask - """ + """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val.upper()] return val @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Narrowband Behavior={value.value}"]) @property def measurement_frequency(self) -> float: """Measurement Frequency Measurement frequency for the absolute freq/amp pairs. - """ + """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @measurement_frequency.setter - def measurement_frequency(self, value: float | str): + def measurement_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Frequency={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py index 8a8426ae9cb..32cfcb3cd42 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TxSpectralProfEmitterNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -39,7 +36,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -50,15 +47,17 @@ def output_voltage_peak(self) -> float: """Output Voltage Peak Output High Voltage Level: maximum voltage of the digital signal - """ + """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") return float(val) @output_voltage_peak.setter - def output_voltage_peak(self, value: float | str): + def output_voltage_peak(self, value : float|str): value = self._convert_to_internal_units(value, "Voltage") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Voltage Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Voltage Peak={value}"]) @property def include_phase_noise(self) -> bool: @@ -68,11 +67,13 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val == true + return (val == true) @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -85,8 +86,10 @@ def tx_broadband_noise(self) -> float: return float(val) @tx_broadband_noise.setter - def tx_broadband_noise(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Broadband Noise={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -96,13 +99,13 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val == true + return (val == true) @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Tx Intermod Analysis={value}"]) @property def internal_amp_gain(self) -> float: @@ -115,8 +118,10 @@ def internal_amp_gain(self) -> float: return float(val) @internal_amp_gain.setter - def internal_amp_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -129,8 +134,10 @@ def noise_figure(self) -> float: return float(val) @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -144,15 +151,15 @@ def amplifier_saturation_level(self) -> float: return float(val) @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -163,9 +170,11 @@ def p1_db_point_ref_input_(self) -> float: return float(val) @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -179,9 +188,11 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -194,8 +205,10 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -209,4 +222,7 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py index 364180aa1e3..b93cfd62910 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TxSpectralProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,47 +37,51 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpectrumTypeOption(Enum): - NARROWBAND__BROADBAND = "Narrowband & Broadband" # eslint-disable-line no-eval - BROADBAND_ONLY = "Broadband Only" # eslint-disable-line no-eval + NARROWBAND__BROADBAND = "Narrowband & Broadband" + BROADBAND_ONLY = "Broadband Only" @property def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type Specifies EMI Margins to calculate - """ + """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val.upper()] return val @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spectrum Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spectrum Type={value.value}"]) class TxPowerOption(Enum): - PEAK_POWER = "Peak Power" # eslint-disable-line no-eval - AVERAGE_POWER = "Average Power" # eslint-disable-line no-eval + PEAK_POWER = "Peak Power" + AVERAGE_POWER = "Average Power" @property def tx_power(self) -> TxPowerOption: """Tx Power Method used to specify the power - """ + """ val = self._get_property("Tx Power") val = self.TxPowerOption[val.upper()] return val @tx_power.setter def tx_power(self, value: TxPowerOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Power={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Power={value.value}"]) @property def peak_power(self) -> float: @@ -95,9 +95,11 @@ def peak_power(self) -> float: return float(val) @peak_power.setter - def peak_power(self, value: float | str): + def peak_power(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Peak Power={value}"]) @property def average_power(self) -> float: @@ -111,9 +113,11 @@ def average_power(self) -> float: return float(val) @average_power.setter - def average_power(self, value: float | str): + def average_power(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Average Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Average Power={value}"]) @property def include_phase_noise(self) -> bool: @@ -123,11 +127,13 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val == true + return (val == true) @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -140,28 +146,32 @@ def tx_broadband_noise(self) -> float: return float(val) @tx_broadband_noise.setter - def tx_broadband_noise(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Broadband Noise={value}"]) class HarmonicTaperOption(Enum): - CONSTANT = "Constant" # eslint-disable-line no-eval - MIL_STD_461G = "MIL-STD-461G" # eslint-disable-line no-eval - MIL_STD_461G_NAVY = "MIL-STD-461G Navy" # eslint-disable-line no-eval - DUFF_MODEL = "Duff Model" # eslint-disable-line no-eval + CONSTANT = "Constant" + MIL_STD_461G = "MIL-STD-461G" + MIL_STD_461G_NAVY = "MIL-STD-461G Navy" + DUFF_MODEL = "Duff Model" @property def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper Taper type used to set amplitude of harmonics - """ + """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val.upper()] return val @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Taper={value.value}"]) @property def harmonic_amplitude(self) -> float: @@ -174,8 +184,10 @@ def harmonic_amplitude(self) -> float: return float(val) @harmonic_amplitude.setter - def harmonic_amplitude(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Amplitude={value}"]) + def harmonic_amplitude(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Amplitude={value}"]) @property def harmonic_slope(self) -> float: @@ -188,8 +200,10 @@ def harmonic_slope(self) -> float: return float(val) @harmonic_slope.setter - def harmonic_slope(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Slope={value}"]) + def harmonic_slope(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Slope={value}"]) @property def harmonic_intercept(self) -> float: @@ -202,8 +216,10 @@ def harmonic_intercept(self) -> float: return float(val) @harmonic_intercept.setter - def harmonic_intercept(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Intercept={value}"]) + def harmonic_intercept(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Intercept={value}"]) @property def enable_harmonic_bw_expansion(self) -> bool: @@ -214,13 +230,13 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return val == true + return (val == true) @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Enable Harmonic BW Expansion={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Harmonic BW Expansion={value}"]) @property def number_of_harmonics(self) -> int: @@ -234,7 +250,9 @@ def number_of_harmonics(self) -> int: @number_of_harmonics.setter def number_of_harmonics(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Harmonics={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Harmonics={value}"]) @property def second_harmonic_level(self) -> float: @@ -247,8 +265,10 @@ def second_harmonic_level(self) -> float: return float(val) @second_harmonic_level.setter - def second_harmonic_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Second Harmonic Level={value}"]) + def second_harmonic_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Second Harmonic Level={value}"]) @property def third_harmonic_level(self) -> float: @@ -261,8 +281,10 @@ def third_harmonic_level(self) -> float: return float(val) @third_harmonic_level.setter - def third_harmonic_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Third Harmonic Level={value}"]) + def third_harmonic_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Third Harmonic Level={value}"]) @property def other_harmonic_levels(self) -> float: @@ -275,8 +297,10 @@ def other_harmonic_levels(self) -> float: return float(val) @other_harmonic_levels.setter - def other_harmonic_levels(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Other Harmonic Levels={value}"]) + def other_harmonic_levels(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Other Harmonic Levels={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -286,13 +310,13 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val == true + return (val == true) @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Tx Intermod Analysis={value}"]) @property def internal_amp_gain(self) -> float: @@ -305,8 +329,10 @@ def internal_amp_gain(self) -> float: return float(val) @internal_amp_gain.setter - def internal_amp_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -319,8 +345,10 @@ def noise_figure(self) -> float: return float(val) @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -334,15 +362,15 @@ def amplifier_saturation_level(self) -> float: return float(val) @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -353,9 +381,11 @@ def p1_db_point_ref_input_(self) -> float: return float(val) @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -369,9 +399,11 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -384,8 +416,10 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -399,4 +433,7 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py index a9b400f5e1d..695ad89c353 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -48,13 +44,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -66,26 +62,29 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) class SpurTableUnitsOption(Enum): - ABSOLUTE = "Absolute" # eslint-disable-line no-eval - RELATIVE = "Relative" # eslint-disable-line no-eval + ABSOLUTE = "Absolute" + RELATIVE = "Relative" @property def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spur Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py index fa04b213947..1efe52b8870 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class WalfischCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,37 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,60 +116,68 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class PathLossTypeOption(Enum): - LOS_URBAN_CANYON = "LOS (Urban Canyon)" # eslint-disable-line no-eval - NLOS = "NLOS" # eslint-disable-line no-eval + LOS_URBAN_CANYON = "LOS (Urban Canyon)" + NLOS = "NLOS" @property def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type Specify LOS vs NLOS for the Walfisch-Ikegami model - """ + """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val.upper()] return val @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Path Loss Type={value.value}"]) class EnvironmentOption(Enum): - DENSE_METRO = "Dense Metro" # eslint-disable-line no-eval - SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" # eslint-disable-line no-eval + DENSE_METRO = "Dense Metro" + SMALLMEDIUM_CITY_OR_SUBURBAN = "Small/Medium City or Suburban" @property def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Walfisch model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def roof_height(self) -> float: @@ -179,9 +191,11 @@ def roof_height(self) -> float: return float(val) @roof_height.setter - def roof_height(self, value: float | str): + def roof_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Roof Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Roof Height={value}"]) @property def distance_between_buildings(self) -> float: @@ -195,11 +209,11 @@ def distance_between_buildings(self) -> float: return float(val) @distance_between_buildings.setter - def distance_between_buildings(self, value: float | str): + def distance_between_buildings(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Distance Between Buildings={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Distance Between Buildings={value}"]) @property def street_width(self) -> float: @@ -213,9 +227,11 @@ def street_width(self) -> float: return float(val) @street_width.setter - def street_width(self, value: float | str): + def street_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Street Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Street Width={value}"]) @property def incidence_angle(self) -> float: @@ -228,8 +244,10 @@ def incidence_angle(self) -> float: return float(val) @incidence_angle.setter - def incidence_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Incidence Angle={value}"]) + def incidence_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Incidence Angle={value}"]) @property def custom_fading_margin(self) -> float: @@ -243,8 +261,10 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -258,8 +278,10 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -273,28 +295,32 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): - NONE = "None" # eslint-disable-line no-eval - FAST_FADING_ONLY = "Fast Fading Only" # eslint-disable-line no-eval - SHADOWING_ONLY = "Shadowing Only" # eslint-disable-line no-eval - FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" # eslint-disable-line no-eval + NONE = "None" + FAST_FADING_ONLY = "Fast Fading Only" + SHADOWING_ONLY = "Shadowing Only" + FAST_FADING_AND_SHADOWING = "Fast Fading and Shadowing" @property def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -308,8 +334,10 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -322,8 +350,10 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -333,11 +363,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -351,8 +383,10 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -365,8 +399,10 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -380,8 +416,10 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -392,13 +430,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -411,8 +449,10 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -425,8 +465,10 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -439,7 +481,8 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + From 42b3098b4134f494932f98c362607eccdb75d01b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 21 May 2025 16:57:14 +0000 Subject: [PATCH 71/86] CHORE: Auto fixes from pre-commit hooks --- .../emit_core/nodes/generated/Amplifier.py | 97 ++--- .../core/emit_core/nodes/generated/Band.py | 237 +++++------- .../core/emit_core/nodes/generated/Cable.py | 71 ++-- .../emit_core/nodes/generated/Circulator.py | 101 ++---- .../core/emit_core/nodes/generated/Filter.py | 161 +++------ .../emit_core/nodes/generated/Isolator.py | 101 ++---- .../emit_core/nodes/generated/Multiplexer.py | 59 ++- .../emit_core/nodes/generated/TR_Switch.py | 101 ++---- .../emit_core/nodes/generated/Terminator.py | 53 ++- .../emit_core/nodes/generated/Waveform.py | 181 ++++------ .../emit_core/nodes/generated/__init__.py | 318 ++++++++-------- .../emit_core/nodes/generated/antenna_node.py | 341 +++++++----------- .../nodes/generated/antenna_passband.py | 60 ++- .../emit_core/nodes/generated/band_folder.py | 16 +- .../nodes/generated/band_trace_node.py | 93 ++--- .../emit_core/nodes/generated/cad_node.py | 223 ++++-------- .../nodes/generated/categories_view_node.py | 16 +- .../nodes/generated/coupling_link_node.py | 28 +- .../nodes/generated/coupling_trace_node.py | 131 +++---- .../nodes/generated/couplings_node.py | 32 +- .../nodes/generated/custom_coupling_node.py | 60 ++- .../nodes/generated/emi_plot_marker_node.py | 131 +++---- .../nodes/generated/emit_scene_node.py | 39 +- .../nodes/generated/erceg_coupling_node.py | 147 +++----- .../nodes/generated/five_g_channel_model.py | 165 ++++----- .../nodes/generated/hata_coupling_node.py | 147 +++----- .../indoor_propagation_coupling_node.py | 159 ++++---- .../generated/log_distance_coupling_node.py | 153 +++----- .../nodes/generated/mplex_band_trace_node.py | 86 ++--- .../nodes/generated/multiplexer_band.py | 89 ++--- .../nodes/generated/outboard_trace_node.py | 87 ++--- .../parametric_coupling_trace_node.py | 93 ++--- .../nodes/generated/plot_marker_node.py | 143 +++----- .../emit_core/nodes/generated/plot_node.py | 179 ++++----- .../nodes/generated/power_divider.py | 103 ++---- .../nodes/generated/power_trace_node.py | 85 ++--- .../nodes/generated/profile_trace_node.py | 79 ++-- .../propagation_loss_coupling_node.py | 141 +++----- .../emit_core/nodes/generated/radio_node.py | 30 +- .../nodes/generated/read_only_amplifier.py | 21 +- .../nodes/generated/read_only_antenna_node.py | 85 ++--- .../generated/read_only_antenna_passband.py | 18 +- .../nodes/generated/read_only_band.py | 49 +-- .../nodes/generated/read_only_band_folder.py | 16 +- .../nodes/generated/read_only_cable.py | 23 +- .../nodes/generated/read_only_cad_node.py | 43 ++- .../nodes/generated/read_only_circulator.py | 29 +- .../generated/read_only_coupling_link_node.py | 20 +- .../generated/read_only_couplings_node.py | 18 +- .../read_only_custom_coupling_node.py | 34 +- .../generated/read_only_emit_scene_node.py | 23 +- .../read_only_erceg_coupling_node.py | 37 +- .../nodes/generated/read_only_filter.py | 35 +- .../read_only_five_g_channel_model.py | 43 ++- .../generated/read_only_hata_coupling_node.py | 37 +- ...d_only_indoor_propagation_coupling_node.py | 45 +-- .../nodes/generated/read_only_isolator.py | 29 +- .../read_only_log_distance_coupling_node.py | 37 +- .../nodes/generated/read_only_multiplexer.py | 29 +- .../generated/read_only_multiplexer_band.py | 21 +- .../generated/read_only_power_divider.py | 29 +- ...ead_only_propagation_loss_coupling_node.py | 35 +- .../nodes/generated/read_only_radio_node.py | 26 +- .../nodes/generated/read_only_rx_meas_node.py | 35 +- .../read_only_rx_mixer_product_node.py | 27 +- .../generated/read_only_rx_saturation_node.py | 16 +- .../read_only_rx_selectivity_node.py | 18 +- .../nodes/generated/read_only_rx_spur_node.py | 27 +- .../read_only_rx_susceptibility_prof_node.py | 31 +- .../generated/read_only_sampling_node.py | 33 +- .../generated/read_only_scene_group_node.py | 25 +- .../read_only_solution_coupling_node.py | 24 +- .../generated/read_only_solutions_node.py | 18 +- .../nodes/generated/read_only_terminator.py | 25 +- .../read_only_touchstone_coupling_node.py | 32 +- .../nodes/generated/read_only_tr_switch.py | 27 +- ...ad_only_two_ray_path_loss_coupling_node.py | 35 +- .../read_only_tx_bb_emission_node.py | 25 +- .../generated/read_only_tx_harmonic_node.py | 19 +- .../nodes/generated/read_only_tx_meas_node.py | 22 +- .../read_only_tx_nb_emission_node.py | 21 +- ...read_only_tx_spectral_prof_emitter_node.py | 24 +- .../read_only_tx_spectral_prof_node.py | 31 +- .../nodes/generated/read_only_tx_spur_node.py | 27 +- .../read_only_walfisch_coupling_node.py | 39 +- .../nodes/generated/read_only_waveform.py | 37 +- .../nodes/generated/result_plot_node.py | 185 ++++------ .../emit_core/nodes/generated/rx_meas_node.py | 131 +++---- .../nodes/generated/rx_mixer_product_node.py | 123 +++---- .../nodes/generated/rx_saturation_node.py | 20 +- .../nodes/generated/rx_selectivity_node.py | 26 +- .../emit_core/nodes/generated/rx_spur_node.py | 35 +- .../generated/rx_susceptibility_prof_node.py | 117 +++--- .../nodes/generated/sampling_node.py | 57 ++- .../nodes/generated/scene_group_node.py | 63 ++-- .../nodes/generated/selectivity_trace_node.py | 79 ++-- .../nodes/generated/solution_coupling_node.py | 40 +- .../nodes/generated/solutions_node.py | 22 +- .../nodes/generated/spur_trace_node.py | 87 ++--- .../nodes/generated/test_noise_trace_node.py | 129 +++---- .../nodes/generated/top_level_simulation.py | 16 +- .../generated/touchstone_coupling_node.py | 64 ++-- .../nodes/generated/tr_switch_trace_node.py | 87 ++--- .../nodes/generated/tunable_trace_node.py | 95 ++--- .../two_ray_path_loss_coupling_node.py | 151 +++----- .../nodes/generated/two_tone_trace_node.py | 129 +++---- .../nodes/generated/tx_bb_emission_node.py | 39 +- .../nodes/generated/tx_harmonic_node.py | 29 +- .../emit_core/nodes/generated/tx_meas_node.py | 46 ++- .../nodes/generated/tx_nb_emission_node.py | 37 +- .../tx_spectral_prof_emitter_node.py | 90 ++--- .../nodes/generated/tx_spectral_prof_node.py | 161 ++++----- .../emit_core/nodes/generated/tx_spur_node.py | 35 +- .../nodes/generated/walfisch_coupling_node.py | 179 ++++----- 114 files changed, 3433 insertions(+), 4775 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py index d40968c90d2..f6a6773b7a2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Amplifier(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,9 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,25 +70,21 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class AmplifierTypeOption(Enum): TRANSMIT_AMPLIFIER = "Transmit Amplifier" @@ -97,16 +95,14 @@ def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type Configures the amplifier as a Tx or Rx amplifier - """ + """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val.upper()] return val @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Type={value.value}"]) @property def gain(self) -> float: @@ -119,10 +115,8 @@ def gain(self) -> float: return float(val) @gain.setter - def gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Gain={value}"]) + def gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Gain={value}"]) @property def center_frequency(self) -> float: @@ -136,11 +130,9 @@ def center_frequency(self) -> float: return float(val) @center_frequency.setter - def center_frequency(self, value : float|str): + def center_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Center Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Frequency={value}"]) @property def bandwidth(self) -> float: @@ -154,11 +146,9 @@ def bandwidth(self) -> float: return float(val) @bandwidth.setter - def bandwidth(self, value : float|str): + def bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth={value}"]) @property def noise_figure(self) -> float: @@ -171,10 +161,8 @@ def noise_figure(self) -> float: return float(val) @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def saturation_level(self) -> float: @@ -188,11 +176,9 @@ def saturation_level(self) -> float: return float(val) @saturation_level.setter - def saturation_level(self, value : float|str): + def saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) @property def p1_db_point_ref_input(self) -> float: @@ -206,11 +192,9 @@ def p1_db_point_ref_input(self) -> float: return float(val) @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value : float|str): + def p1_db_point_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input={value}"]) @property def ip3_ref_input(self) -> float: @@ -224,11 +208,9 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def shape_factor(self) -> float: @@ -241,10 +223,8 @@ def shape_factor(self) -> float: return float(val) @shape_factor.setter - def shape_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Shape Factor={value}"]) + def shape_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) @property def reverse_isolation(self) -> float: @@ -257,10 +237,8 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -274,7 +252,4 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py index 3001455d9e1..f1125f37ba9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Band.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Band(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -48,15 +52,13 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") return val @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) @property def use_dd_1494_mode(self) -> bool: @@ -66,13 +68,11 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return (val == true) + return val == true @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use DD-1494 Mode={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use DD-1494 Mode={value}"]) @property def use_emission_designator(self) -> bool: @@ -82,35 +82,31 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return (val == true) + return val == true @use_emission_designator.setter def use_emission_designator(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Emission Designator={value}"]) @property def emission_designator(self) -> str: """Emission Designator Enter the Emission Designator to define the bandwidth and modulation - """ + """ val = self._get_property("Emission Designator") return val @emission_designator.setter def emission_designator(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Emission Designator={value}"]) @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW Channel Bandwidth based off the emission designator - """ + """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -120,7 +116,7 @@ def emit_modulation_type(self) -> str: """EMIT Modulation Type Modulation based off the emission designator - """ + """ val = self._get_property("EMIT Modulation Type") return val @@ -133,13 +129,13 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return (val == true) + return val == true @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Override Emission Designator BW={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Override Emission Designator BW={value}"] + ) @property def channel_bandwidth(self) -> float: @@ -153,11 +149,9 @@ def channel_bandwidth(self) -> float: return float(val) @channel_bandwidth.setter - def channel_bandwidth(self, value : float|str): + def channel_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Bandwidth={value}"]) class ModulationOption(Enum): GENERIC = "Generic" @@ -177,16 +171,14 @@ def modulation(self) -> ModulationOption: """Modulation Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Modulation") val = self.ModulationOption[val.upper()] return val @modulation.setter def modulation(self, value: ModulationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation={value.value}"]) @property def max_modulating_freq(self) -> float: @@ -200,11 +192,9 @@ def max_modulating_freq(self) -> float: return float(val) @max_modulating_freq.setter - def max_modulating_freq(self, value : float|str): + def max_modulating_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Modulating Freq.={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Modulating Freq.={value}"]) @property def modulation_index(self) -> float: @@ -217,10 +207,8 @@ def modulation_index(self) -> float: return float(val) @modulation_index.setter - def modulation_index(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation Index={value}"]) + def modulation_index(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Index={value}"]) @property def freq_deviation(self) -> float: @@ -234,11 +222,9 @@ def freq_deviation(self) -> float: return float(val) @freq_deviation.setter - def freq_deviation(self, value : float|str): + def freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) @property def bit_rate(self) -> float: @@ -252,11 +238,9 @@ def bit_rate(self) -> float: return float(val) @bit_rate.setter - def bit_rate(self, value : float|str): + def bit_rate(self, value: float | str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bit Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bit Rate={value}"]) @property def sidelobes(self) -> int: @@ -270,13 +254,11 @@ def sidelobes(self) -> int: @sidelobes.setter def sidelobes(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sidelobes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sidelobes={value}"]) @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation FSK frequency deviation: helps determine spectral profile Value should be greater than 1. @@ -286,11 +268,9 @@ def freq_deviation_(self) -> float: return float(val) @freq_deviation_.setter - def freq_deviation_(self, value : float|str): + def freq_deviation_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation ={value}"]) class PSKTypeOption(Enum): BPSK = "BPSK" @@ -305,16 +285,14 @@ def psk_type(self) -> PSKTypeOption: """PSK Type PSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val.upper()] return val @psk_type.setter def psk_type(self, value: PSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"PSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"PSK Type={value.value}"]) class FSKTypeOption(Enum): FSK_2 = "FSK-2" @@ -326,16 +304,14 @@ def fsk_type(self) -> FSKTypeOption: """FSK Type FSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val.upper()] return val @fsk_type.setter def fsk_type(self, value: FSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FSK Type={value.value}"]) class QAMTypeOption(Enum): QAM_4 = "QAM-4" @@ -349,16 +325,14 @@ def qam_type(self) -> QAMTypeOption: """QAM Type QAM modulation order: helps determine spectral profile - """ + """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val.upper()] return val @qam_type.setter def qam_type(self, value: QAMTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"QAM Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"QAM Type={value.value}"]) class APSKTypeOption(Enum): APSK_4 = "APSK-4" @@ -372,16 +346,14 @@ def apsk_type(self) -> APSKTypeOption: """APSK Type APSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val.upper()] return val @apsk_type.setter def apsk_type(self, value: APSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"APSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"APSK Type={value.value}"]) @property def start_frequency(self) -> float: @@ -395,11 +367,9 @@ def start_frequency(self) -> float: return float(val) @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -413,11 +383,9 @@ def stop_frequency(self) -> float: return float(val) @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -431,11 +399,9 @@ def channel_spacing(self) -> float: return float(val) @channel_spacing.setter - def channel_spacing(self, value : float|str): + def channel_spacing(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) @property def tx_offset(self) -> float: @@ -449,11 +415,9 @@ def tx_offset(self) -> float: return float(val) @tx_offset.setter - def tx_offset(self, value : float|str): + def tx_offset(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Offset={value}"]) class RadarTypeOption(Enum): CW = "CW" @@ -467,16 +431,14 @@ def radar_type(self) -> RadarTypeOption: """Radar Type Radar type: helps determine spectral profile - """ + """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val.upper()] return val @radar_type.setter def radar_type(self, value: RadarTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Radar Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radar Type={value.value}"]) @property def hopping_radar(self) -> bool: @@ -486,13 +448,11 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return (val == true) + return val == true @hopping_radar.setter def hopping_radar(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hopping Radar={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hopping Radar={value}"]) @property def post_october_2020_procurement(self) -> bool: @@ -503,13 +463,13 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return (val == true) + return val == true @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Post October 2020 Procurement={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Post October 2020 Procurement={value}"] + ) @property def hop_range_min_freq(self) -> float: @@ -523,11 +483,9 @@ def hop_range_min_freq(self) -> float: return float(val) @hop_range_min_freq.setter - def hop_range_min_freq(self, value : float|str): + def hop_range_min_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hop Range Min Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Min Freq={value}"]) @property def hop_range_max_freq(self) -> float: @@ -541,11 +499,9 @@ def hop_range_max_freq(self) -> float: return float(val) @hop_range_max_freq.setter - def hop_range_max_freq(self, value : float|str): + def hop_range_max_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hop Range Max Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Max Freq={value}"]) @property def pulse_duration(self) -> float: @@ -559,11 +515,9 @@ def pulse_duration(self) -> float: return float(val) @pulse_duration.setter - def pulse_duration(self, value : float|str): + def pulse_duration(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Duration={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Duration={value}"]) @property def pulse_rise_time(self) -> float: @@ -577,11 +531,9 @@ def pulse_rise_time(self) -> float: return float(val) @pulse_rise_time.setter - def pulse_rise_time(self, value : float|str): + def pulse_rise_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Rise Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Rise Time={value}"]) @property def pulse_fall_time(self) -> float: @@ -595,11 +547,9 @@ def pulse_fall_time(self) -> float: return float(val) @pulse_fall_time.setter - def pulse_fall_time(self, value : float|str): + def pulse_fall_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Fall Time={value}"]) @property def pulse_repetition_rate(self) -> float: @@ -612,10 +562,8 @@ def pulse_repetition_rate(self) -> float: return float(val) @pulse_repetition_rate.setter - def pulse_repetition_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Repetition Rate={value}"]) + def pulse_repetition_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Repetition Rate={value}"]) @property def number_of_chips(self) -> float: @@ -628,10 +576,8 @@ def number_of_chips(self) -> float: return float(val) @number_of_chips.setter - def number_of_chips(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Chips={value}"]) + def number_of_chips(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Chips={value}"]) @property def pulse_compression_ratio(self) -> float: @@ -644,10 +590,8 @@ def pulse_compression_ratio(self) -> float: return float(val) @pulse_compression_ratio.setter - def pulse_compression_ratio(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Compression Ratio={value}"]) + def pulse_compression_ratio(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Compression Ratio={value}"]) @property def fm_chirp_period(self) -> float: @@ -661,11 +605,9 @@ def fm_chirp_period(self) -> float: return float(val) @fm_chirp_period.setter - def fm_chirp_period(self, value : float|str): + def fm_chirp_period(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Chirp Period={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Chirp Period={value}"]) @property def fm_freq_deviation(self) -> float: @@ -679,11 +621,9 @@ def fm_freq_deviation(self) -> float: return float(val) @fm_freq_deviation.setter - def fm_freq_deviation(self, value : float|str): + def fm_freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Freq Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Deviation={value}"]) @property def fm_freq_dev_bandwidth(self) -> float: @@ -698,9 +638,6 @@ def fm_freq_dev_bandwidth(self) -> float: return float(val) @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value : float|str): + def fm_freq_dev_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Freq Dev Bandwidth={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Dev Bandwidth={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py index 6a1be19ecde..5bd9408f86a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Cable(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,9 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,25 +70,21 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -99,16 +97,14 @@ def type(self) -> TypeOption: Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def length(self) -> float: @@ -122,11 +118,9 @@ def length(self) -> float: return float(val) @length.setter - def length(self, value : float|str): + def length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) @property def loss_per_length(self) -> float: @@ -139,10 +133,8 @@ def loss_per_length(self) -> float: return float(val) @loss_per_length.setter - def loss_per_length(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Loss Per Length={value}"]) + def loss_per_length(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Loss Per Length={value}"]) @property def measurement_length(self) -> float: @@ -156,11 +148,9 @@ def measurement_length(self) -> float: return float(val) @measurement_length.setter - def measurement_length(self, value : float|str): + def measurement_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Length={value}"]) @property def resistive_loss_constant(self) -> float: @@ -173,10 +163,8 @@ def resistive_loss_constant(self) -> float: return float(val) @resistive_loss_constant.setter - def resistive_loss_constant(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Resistive Loss Constant={value}"]) + def resistive_loss_constant(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resistive Loss Constant={value}"]) @property def dielectric_loss_constant(self) -> float: @@ -189,17 +177,14 @@ def dielectric_loss_constant(self) -> float: return float(val) @dielectric_loss_constant.setter - def dielectric_loss_constant(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Dielectric Loss Constant={value}"]) + def dielectric_loss_constant(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Dielectric Loss Constant={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py index 21b3e607370..9763d04c085 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Circulator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,9 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,25 +70,21 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -98,16 +96,14 @@ def type(self) -> TypeOption: Type of circulator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -118,16 +114,14 @@ def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the circulator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -140,10 +134,8 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -154,13 +146,11 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return (val == true) + return val == true @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -173,10 +163,8 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -187,13 +175,11 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -206,10 +192,8 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -223,11 +207,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -241,11 +223,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -259,11 +239,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -277,18 +255,15 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py index 967e66a5efa..ed1ebd0933f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Filter(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,9 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,25 +70,21 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -103,16 +101,14 @@ def type(self) -> TypeOption: Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def insertion_loss(self) -> float: @@ -125,10 +121,8 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -141,10 +135,8 @@ def stop_band_attenuation(self) -> float: return float(val) @stop_band_attenuation.setter - def stop_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -158,11 +150,9 @@ def max_pass_band(self) -> float: return float(val) @max_pass_band.setter - def max_pass_band(self, value : float|str): + def max_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -176,11 +166,9 @@ def min_stop_band(self) -> float: return float(val) @min_stop_band.setter - def min_stop_band(self, value : float|str): + def min_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -194,11 +182,9 @@ def max_stop_band(self) -> float: return float(val) @max_stop_band.setter - def max_stop_band(self, value : float|str): + def max_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -212,11 +198,9 @@ def min_pass_band(self) -> float: return float(val) @min_pass_band.setter - def min_pass_band(self, value : float|str): + def min_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -230,11 +214,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -248,11 +230,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -266,11 +246,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -284,15 +262,13 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff Lower cutoff frequency Value should be between 1 and 1e+11. @@ -302,15 +278,13 @@ def lower_cutoff_(self) -> float: return float(val) @lower_cutoff_.setter - def lower_cutoff_(self, value : float|str): + def lower_cutoff_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff ={value}"]) @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band Lower stop band frequency Value should be between 1 and 1e+11. @@ -320,15 +294,13 @@ def lower_stop_band_(self) -> float: return float(val) @lower_stop_band_.setter - def lower_stop_band_(self, value : float|str): + def lower_stop_band_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band ={value}"]) @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band Higher stop band frequency Value should be between 1 and 1e+11. @@ -338,15 +310,13 @@ def higher_stop_band_(self) -> float: return float(val) @higher_stop_band_.setter - def higher_stop_band_(self, value : float|str): + def higher_stop_band_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band ={value}"]) @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff Higher cutoff frequency Value should be between 1 and 1e+11. @@ -356,15 +326,13 @@ def higher_cutoff_(self) -> float: return float(val) @higher_cutoff_.setter - def higher_cutoff_(self, value : float|str): + def higher_cutoff_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff ={value}"]) @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency Lowest tuned frequency Value should be between 1 and 1e+11. @@ -374,15 +342,13 @@ def lowest_tuned_frequency_(self) -> float: return float(val) @lowest_tuned_frequency_.setter - def lowest_tuned_frequency_(self, value : float|str): + def lowest_tuned_frequency_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lowest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lowest Tuned Frequency ={value}"]) @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency Highest tuned frequency Value should be between 1 and 1e+11. @@ -392,11 +358,9 @@ def highest_tuned_frequency_(self) -> float: return float(val) @highest_tuned_frequency_.setter - def highest_tuned_frequency_(self, value : float|str): + def highest_tuned_frequency_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Highest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highest Tuned Frequency ={value}"]) @property def percent_bandwidth(self) -> float: @@ -409,10 +373,8 @@ def percent_bandwidth(self) -> float: return float(val) @percent_bandwidth.setter - def percent_bandwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Percent Bandwidth={value}"]) + def percent_bandwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percent Bandwidth={value}"]) @property def shape_factor(self) -> float: @@ -425,17 +387,14 @@ def shape_factor(self) -> float: return float(val) @shape_factor.setter - def shape_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Shape Factor={value}"]) + def shape_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py index 6aa95b62d73..fa4db3f622a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Isolator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,9 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,25 +70,21 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -98,16 +96,14 @@ def type(self) -> TypeOption: Type of isolator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -118,16 +114,14 @@ def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the isolator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -140,10 +134,8 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -154,13 +146,11 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return (val == true) + return val == true @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -173,10 +163,8 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -187,13 +175,11 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -206,10 +192,8 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -223,11 +207,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -241,11 +223,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -259,11 +239,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -277,18 +255,15 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py index 47b989677c7..d83ddb11f64 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Multiplexer(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -57,9 +61,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -72,25 +74,21 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_PASS_BAND = "By Pass Band" @@ -103,16 +101,14 @@ def type(self) -> TypeOption: simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -123,16 +119,14 @@ def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the multiplexer. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def flip_ports_vertically(self) -> bool: @@ -142,13 +136,11 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return (val == true) + return val == true @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Flip Ports Vertically={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flip Ports Vertically={value}"]) @property def ports(self): @@ -156,22 +148,19 @@ def ports(self): Assigns the child port nodes to the multiplexers ports "A list of values." - """ + """ val = self._get_property("Ports") return val @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py index c68a43a9258..e5eb106983d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TR_Switch(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,9 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,25 +70,21 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TxPortOption(Enum): PORT_1 = "Port 1" @@ -97,16 +95,14 @@ def tx_port(self) -> TxPortOption: """Tx Port Specifies which port on the TR Switch is part of the Tx path. - """ + """ val = self._get_property("Tx Port") val = self.TxPortOption[val.upper()] return val @tx_port.setter def tx_port(self, value: TxPortOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Port={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Port={value.value}"]) class CommonPortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -117,16 +113,16 @@ def common_port_location(self) -> CommonPortLocationOption: """Common Port Location Defines the orientation of the tr switch. - """ + """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val.upper()] return val @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Common Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Common Port Location={value.value}"] + ) @property def insertion_loss(self) -> float: @@ -139,10 +135,8 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_isolation(self) -> bool: @@ -153,13 +147,11 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return (val == true) + return val == true @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -172,10 +164,8 @@ def isolation(self) -> float: return float(val) @isolation.setter - def isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Isolation={value}"]) + def isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -186,13 +176,11 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -205,10 +193,8 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -222,11 +208,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -240,11 +224,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -258,11 +240,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -276,9 +256,6 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py index 857bf484b3c..d4e1ab1d167 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Terminator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,9 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,25 +70,21 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -98,16 +96,14 @@ def type(self) -> TypeOption: Type of terminator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class PortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -118,16 +114,14 @@ def port_location(self) -> PortLocationOption: """Port Location Defines the orientation of the terminator. - """ + """ val = self._get_property("Port Location") val = self.PortLocationOption[val.upper()] return val @port_location.setter def port_location(self, value: PortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port Location={value.value}"]) @property def vswr(self) -> float: @@ -142,17 +136,14 @@ def vswr(self) -> float: return float(val) @vswr.setter - def vswr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"VSWR={value}"]) + def vswr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py index e763d28e2fc..49c8c97666f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Waveform(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -48,15 +52,13 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") return val @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" @@ -70,16 +72,14 @@ def waveform(self) -> WaveformOption: """Waveform Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Waveform") val = self.WaveformOption[val.upper()] return val @waveform.setter def waveform(self, value: WaveformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Waveform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveform={value.value}"]) @property def start_frequency(self) -> float: @@ -93,11 +93,9 @@ def start_frequency(self) -> float: return float(val) @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -111,11 +109,9 @@ def stop_frequency(self) -> float: return float(val) @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -129,11 +125,9 @@ def channel_spacing(self) -> float: return float(val) @channel_spacing.setter - def channel_spacing(self, value : float|str): + def channel_spacing(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) @property def clock_duty_cycle(self) -> float: @@ -146,10 +140,8 @@ def clock_duty_cycle(self) -> float: return float(val) @clock_duty_cycle.setter - def clock_duty_cycle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Clock Duty Cycle={value}"]) + def clock_duty_cycle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Duty Cycle={value}"]) @property def clock_risefall_time(self) -> float: @@ -163,11 +155,9 @@ def clock_risefall_time(self) -> float: return float(val) @clock_risefall_time.setter - def clock_risefall_time(self, value : float|str): + def clock_risefall_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Clock Rise/Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Rise/Fall Time={value}"]) class SpreadingTypeOption(Enum): LOW_SPREAD = "Low Spread" @@ -179,16 +169,14 @@ def spreading_type(self) -> SpreadingTypeOption: """Spreading Type Type of spreading employed by the Spread Spectrum Clock - """ + """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val.upper()] return val @spreading_type.setter def spreading_type(self, value: SpreadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spreading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spreading Type={value.value}"]) @property def spread_percentage(self) -> float: @@ -201,10 +189,8 @@ def spread_percentage(self) -> float: return float(val) @spread_percentage.setter - def spread_percentage(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spread Percentage={value}"]) + def spread_percentage(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spread Percentage={value}"]) @property def imported_spectrum(self) -> str: @@ -216,16 +202,14 @@ def imported_spectrum(self) -> str: @imported_spectrum.setter def imported_spectrum(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Imported Spectrum={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Imported Spectrum={value}"]) @property def raw_data_format(self) -> str: """Raw Data Format Format of the imported raw data - """ + """ val = self._get_property("Raw Data Format") return val @@ -241,11 +225,9 @@ def system_impedance(self) -> float: return float(val) @system_impedance.setter - def system_impedance(self, value : float|str): + def system_impedance(self, value: float | str): value = self._convert_to_internal_units(value, "Resistance") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"System Impedance={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"System Impedance={value}"]) @property def advanced_extraction_params(self) -> bool: @@ -255,13 +237,13 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return (val == true) + return val == true @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Advanced Extraction Params={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Advanced Extraction Params={value}"] + ) @property def nb_window_size(self) -> float: @@ -275,10 +257,8 @@ def nb_window_size(self) -> float: return float(val) @nb_window_size.setter - def nb_window_size(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NB Window Size={value}"]) + def nb_window_size(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Window Size={value}"]) @property def bb_smoothing_factor(self) -> float: @@ -291,10 +271,8 @@ def bb_smoothing_factor(self) -> float: return float(val) @bb_smoothing_factor.setter - def bb_smoothing_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Smoothing Factor={value}"]) + def bb_smoothing_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Smoothing Factor={value}"]) @property def nb_detector_threshold(self) -> float: @@ -307,10 +285,8 @@ def nb_detector_threshold(self) -> float: return float(val) @nb_detector_threshold.setter - def nb_detector_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NB Detector Threshold={value}"]) + def nb_detector_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Detector Threshold={value}"]) class AlgorithmOption(Enum): FFT = "FFT" @@ -321,16 +297,14 @@ def algorithm(self) -> AlgorithmOption: """Algorithm Algorithm used to transform the imported time domain spectrum - """ + """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val.upper()] return val @algorithm.setter def algorithm(self, value: AlgorithmOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Algorithm={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Algorithm={value.value}"]) @property def start_time(self) -> float: @@ -344,28 +318,24 @@ def start_time(self) -> float: return float(val) @start_time.setter - def start_time(self, value : float|str): + def start_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Time={value}"]) @property def stop_time(self) -> float: """Stop Time Final time of the imported time domain spectrum - """ + """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") return float(val) @stop_time.setter - def stop_time(self, value : float|str): + def stop_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Time={value}"]) @property def max_frequency(self) -> float: @@ -379,11 +349,9 @@ def max_frequency(self) -> float: return float(val) @max_frequency.setter - def max_frequency(self, value : float|str): + def max_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Frequency={value}"]) class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" @@ -401,16 +369,14 @@ def window_type(self) -> WindowTypeOption: """Window Type Windowing scheme used for importing time domain spectrum - """ + """ val = self._get_property("Window Type") val = self.WindowTypeOption[val.upper()] return val @window_type.setter def window_type(self, value: WindowTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Window Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Window Type={value.value}"]) @property def kaiser_parameter(self) -> float: @@ -423,10 +389,8 @@ def kaiser_parameter(self) -> float: return float(val) @kaiser_parameter.setter - def kaiser_parameter(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Kaiser Parameter={value}"]) + def kaiser_parameter(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Kaiser Parameter={value}"]) @property def adjust_coherent_gain(self) -> bool: @@ -436,13 +400,11 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return (val == true) + return val == true @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adjust Coherent Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adjust Coherent Gain={value}"]) @property def data_rate(self) -> float: @@ -456,11 +418,9 @@ def data_rate(self) -> float: return float(val) @data_rate.setter - def data_rate(self, value : float|str): + def data_rate(self, value: float | str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Rate={value}"]) @property def num_of_bits(self) -> int: @@ -474,9 +434,7 @@ def num_of_bits(self) -> int: @num_of_bits.setter def num_of_bits(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Num of Bits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Num of Bits={value}"]) @property def use_envelope(self) -> bool: @@ -486,13 +444,11 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return (val == true) + return val == true @use_envelope.setter def use_envelope(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Envelope={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Envelope={value}"]) @property def min_ptsnull(self) -> int: @@ -506,9 +462,7 @@ def min_ptsnull(self) -> int: @min_ptsnull.setter def min_ptsnull(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pts/Null={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pts/Null={value}"]) @property def delay_skew(self) -> float: @@ -522,9 +476,6 @@ def delay_skew(self) -> float: return float(val) @delay_skew.setter - def delay_skew(self, value : float|str): + def delay_skew(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Delay Skew={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Delay Skew={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index 255b60e62e6..1cb32f85690 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,11 +1,35 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from .amplifier import Amplifier from .antenna_node import AntennaNode from .antenna_passband import AntennaPassband from .band import Band from .band_folder import BandFolder from .band_trace_node import BandTraceNode -from .cad_node import CADNode from .cable import Cable +from .cad_node import CADNode from .categories_view_node import CategoriesViewNode from .circulator import Circulator from .coupling_link_node import CouplingLinkNode @@ -33,44 +57,13 @@ from .profile_trace_node import ProfileTraceNode from .propagation_loss_coupling_node import PropagationLossCouplingNode from .radio_node import RadioNode -from .result_plot_node import ResultPlotNode -from .rx_meas_node import RxMeasNode -from .rx_mixer_product_node import RxMixerProductNode -from .rx_saturation_node import RxSaturationNode -from .rx_selectivity_node import RxSelectivityNode -from .rx_spur_node import RxSpurNode -from .rx_susceptibility_prof_node import RxSusceptibilityProfNode -from .sampling_node import SamplingNode -from .scene_group_node import SceneGroupNode -from .selectivity_trace_node import SelectivityTraceNode -from .solution_coupling_node import SolutionCouplingNode -from .solutions_node import SolutionsNode -from .spur_trace_node import SpurTraceNode -from .tr_switch import TR_Switch -from .tr_switch_trace_node import TRSwitchTraceNode -from .terminator import Terminator -from .test_noise_trace_node import TestNoiseTraceNode -from .top_level_simulation import TopLevelSimulation -from .touchstone_coupling_node import TouchstoneCouplingNode -from .tunable_trace_node import TunableTraceNode -from .two_ray_path_loss_coupling_node import TwoRayPathLossCouplingNode -from .two_tone_trace_node import TwoToneTraceNode -from .tx_bb_emission_node import TxBbEmissionNode -from .tx_harmonic_node import TxHarmonicNode -from .tx_meas_node import TxMeasNode -from .tx_nb_emission_node import TxNbEmissionNode -from .tx_spectral_prof_emitter_node import TxSpectralProfEmitterNode -from .tx_spectral_prof_node import TxSpectralProfNode -from .tx_spur_node import TxSpurNode -from .walfisch_coupling_node import WalfischCouplingNode -from .waveform import Waveform from .read_only_amplifier import ReadOnlyAmplifier from .read_only_antenna_node import ReadOnlyAntennaNode from .read_only_antenna_passband import ReadOnlyAntennaPassband from .read_only_band import ReadOnlyBand from .read_only_band_folder import ReadOnlyBandFolder -from .read_only_cad_node import ReadOnlyCADNode from .read_only_cable import ReadOnlyCable +from .read_only_cad_node import ReadOnlyCADNode from .read_only_circulator import ReadOnlyCirculator from .read_only_coupling_link_node import ReadOnlyCouplingLinkNode from .read_only_couplings_node import ReadOnlyCouplingsNode @@ -98,9 +91,9 @@ from .read_only_scene_group_node import ReadOnlySceneGroupNode from .read_only_solution_coupling_node import ReadOnlySolutionCouplingNode from .read_only_solutions_node import ReadOnlySolutionsNode -from .read_only_tr_switch import ReadOnlyTR_Switch from .read_only_terminator import ReadOnlyTerminator from .read_only_touchstone_coupling_node import ReadOnlyTouchstoneCouplingNode +from .read_only_tr_switch import ReadOnlyTR_Switch from .read_only_two_ray_path_loss_coupling_node import ReadOnlyTwoRayPathLossCouplingNode from .read_only_tx_bb_emission_node import ReadOnlyTxBbEmissionNode from .read_only_tx_harmonic_node import ReadOnlyTxHarmonicNode @@ -111,119 +104,150 @@ from .read_only_tx_spur_node import ReadOnlyTxSpurNode from .read_only_walfisch_coupling_node import ReadOnlyWalfischCouplingNode from .read_only_waveform import ReadOnlyWaveform +from .result_plot_node import ResultPlotNode +from .rx_meas_node import RxMeasNode +from .rx_mixer_product_node import RxMixerProductNode +from .rx_saturation_node import RxSaturationNode +from .rx_selectivity_node import RxSelectivityNode +from .rx_spur_node import RxSpurNode +from .rx_susceptibility_prof_node import RxSusceptibilityProfNode +from .sampling_node import SamplingNode +from .scene_group_node import SceneGroupNode +from .selectivity_trace_node import SelectivityTraceNode +from .solution_coupling_node import SolutionCouplingNode +from .solutions_node import SolutionsNode +from .spur_trace_node import SpurTraceNode +from .terminator import Terminator +from .test_noise_trace_node import TestNoiseTraceNode +from .top_level_simulation import TopLevelSimulation +from .touchstone_coupling_node import TouchstoneCouplingNode +from .tr_switch import TR_Switch +from .tr_switch_trace_node import TRSwitchTraceNode +from .tunable_trace_node import TunableTraceNode +from .two_ray_path_loss_coupling_node import TwoRayPathLossCouplingNode +from .two_tone_trace_node import TwoToneTraceNode +from .tx_bb_emission_node import TxBbEmissionNode +from .tx_harmonic_node import TxHarmonicNode +from .tx_meas_node import TxMeasNode +from .tx_nb_emission_node import TxNbEmissionNode +from .tx_spectral_prof_emitter_node import TxSpectralProfEmitterNode +from .tx_spectral_prof_node import TxSpectralProfNode +from .tx_spur_node import TxSpurNode +from .walfisch_coupling_node import WalfischCouplingNode +from .waveform import Waveform __all__ = [ - 'Amplifier', - 'AntennaNode', - 'AntennaPassband', - 'Band', - 'BandFolder', - 'BandTraceNode', - 'CADNode', - 'Cable', - 'CategoriesViewNode', - 'Circulator', - 'CouplingLinkNode', - 'CouplingTraceNode', - 'CouplingsNode', - 'CustomCouplingNode', - 'EmiPlotMarkerNode', - 'EmitSceneNode', - 'ErcegCouplingNode', - 'Filter', - 'FiveGChannelModel', - 'HataCouplingNode', - 'IndoorPropagationCouplingNode', - 'Isolator', - 'LogDistanceCouplingNode', - 'MPlexBandTraceNode', - 'Multiplexer', - 'MultiplexerBand', - 'OutboardTraceNode', - 'ParametricCouplingTraceNode', - 'PlotMarkerNode', - 'PlotNode', - 'PowerDivider', - 'PowerTraceNode', - 'ProfileTraceNode', - 'PropagationLossCouplingNode', - 'RadioNode', - 'ResultPlotNode', - 'RxMeasNode', - 'RxMixerProductNode', - 'RxSaturationNode', - 'RxSelectivityNode', - 'RxSpurNode', - 'RxSusceptibilityProfNode', - 'SamplingNode', - 'SceneGroupNode', - 'SelectivityTraceNode', - 'SolutionCouplingNode', - 'SolutionsNode', - 'SpurTraceNode', - 'TR_Switch', - 'TRSwitchTraceNode', - 'Terminator', - 'TestNoiseTraceNode', - 'TopLevelSimulation', - 'TouchstoneCouplingNode', - 'TunableTraceNode', - 'TwoRayPathLossCouplingNode', - 'TwoToneTraceNode', - 'TxBbEmissionNode', - 'TxHarmonicNode', - 'TxMeasNode', - 'TxNbEmissionNode', - 'TxSpectralProfEmitterNode', - 'TxSpectralProfNode', - 'TxSpurNode', - 'WalfischCouplingNode', - 'Waveform', - 'ReadOnlyAmplifier', - 'ReadOnlyAntennaNode', - 'ReadOnlyAntennaPassband', - 'ReadOnlyBand', - 'ReadOnlyBandFolder', - 'ReadOnlyCADNode', - 'ReadOnlyCable', - 'ReadOnlyCirculator', - 'ReadOnlyCouplingLinkNode', - 'ReadOnlyCouplingsNode', - 'ReadOnlyCustomCouplingNode', - 'ReadOnlyEmitSceneNode', - 'ReadOnlyErcegCouplingNode', - 'ReadOnlyFilter', - 'ReadOnlyFiveGChannelModel', - 'ReadOnlyHataCouplingNode', - 'ReadOnlyIndoorPropagationCouplingNode', - 'ReadOnlyIsolator', - 'ReadOnlyLogDistanceCouplingNode', - 'ReadOnlyMultiplexer', - 'ReadOnlyMultiplexerBand', - 'ReadOnlyPowerDivider', - 'ReadOnlyPropagationLossCouplingNode', - 'ReadOnlyRadioNode', - 'ReadOnlyRxMeasNode', - 'ReadOnlyRxMixerProductNode', - 'ReadOnlyRxSaturationNode', - 'ReadOnlyRxSelectivityNode', - 'ReadOnlyRxSpurNode', - 'ReadOnlyRxSusceptibilityProfNode', - 'ReadOnlySamplingNode', - 'ReadOnlySceneGroupNode', - 'ReadOnlySolutionCouplingNode', - 'ReadOnlySolutionsNode', - 'ReadOnlyTR_Switch', - 'ReadOnlyTerminator', - 'ReadOnlyTouchstoneCouplingNode', - 'ReadOnlyTwoRayPathLossCouplingNode', - 'ReadOnlyTxBbEmissionNode', - 'ReadOnlyTxHarmonicNode', - 'ReadOnlyTxMeasNode', - 'ReadOnlyTxNbEmissionNode', - 'ReadOnlyTxSpectralProfEmitterNode', - 'ReadOnlyTxSpectralProfNode', - 'ReadOnlyTxSpurNode', - 'ReadOnlyWalfischCouplingNode', - 'ReadOnlyWaveform', + "Amplifier", + "AntennaNode", + "AntennaPassband", + "Band", + "BandFolder", + "BandTraceNode", + "CADNode", + "Cable", + "CategoriesViewNode", + "Circulator", + "CouplingLinkNode", + "CouplingTraceNode", + "CouplingsNode", + "CustomCouplingNode", + "EmiPlotMarkerNode", + "EmitSceneNode", + "ErcegCouplingNode", + "Filter", + "FiveGChannelModel", + "HataCouplingNode", + "IndoorPropagationCouplingNode", + "Isolator", + "LogDistanceCouplingNode", + "MPlexBandTraceNode", + "Multiplexer", + "MultiplexerBand", + "OutboardTraceNode", + "ParametricCouplingTraceNode", + "PlotMarkerNode", + "PlotNode", + "PowerDivider", + "PowerTraceNode", + "ProfileTraceNode", + "PropagationLossCouplingNode", + "RadioNode", + "ResultPlotNode", + "RxMeasNode", + "RxMixerProductNode", + "RxSaturationNode", + "RxSelectivityNode", + "RxSpurNode", + "RxSusceptibilityProfNode", + "SamplingNode", + "SceneGroupNode", + "SelectivityTraceNode", + "SolutionCouplingNode", + "SolutionsNode", + "SpurTraceNode", + "TR_Switch", + "TRSwitchTraceNode", + "Terminator", + "TestNoiseTraceNode", + "TopLevelSimulation", + "TouchstoneCouplingNode", + "TunableTraceNode", + "TwoRayPathLossCouplingNode", + "TwoToneTraceNode", + "TxBbEmissionNode", + "TxHarmonicNode", + "TxMeasNode", + "TxNbEmissionNode", + "TxSpectralProfEmitterNode", + "TxSpectralProfNode", + "TxSpurNode", + "WalfischCouplingNode", + "Waveform", + "ReadOnlyAmplifier", + "ReadOnlyAntennaNode", + "ReadOnlyAntennaPassband", + "ReadOnlyBand", + "ReadOnlyBandFolder", + "ReadOnlyCADNode", + "ReadOnlyCable", + "ReadOnlyCirculator", + "ReadOnlyCouplingLinkNode", + "ReadOnlyCouplingsNode", + "ReadOnlyCustomCouplingNode", + "ReadOnlyEmitSceneNode", + "ReadOnlyErcegCouplingNode", + "ReadOnlyFilter", + "ReadOnlyFiveGChannelModel", + "ReadOnlyHataCouplingNode", + "ReadOnlyIndoorPropagationCouplingNode", + "ReadOnlyIsolator", + "ReadOnlyLogDistanceCouplingNode", + "ReadOnlyMultiplexer", + "ReadOnlyMultiplexerBand", + "ReadOnlyPowerDivider", + "ReadOnlyPropagationLossCouplingNode", + "ReadOnlyRadioNode", + "ReadOnlyRxMeasNode", + "ReadOnlyRxMixerProductNode", + "ReadOnlyRxSaturationNode", + "ReadOnlyRxSelectivityNode", + "ReadOnlyRxSpurNode", + "ReadOnlyRxSusceptibilityProfNode", + "ReadOnlySamplingNode", + "ReadOnlySceneGroupNode", + "ReadOnlySolutionCouplingNode", + "ReadOnlySolutionsNode", + "ReadOnlyTR_Switch", + "ReadOnlyTerminator", + "ReadOnlyTouchstoneCouplingNode", + "ReadOnlyTwoRayPathLossCouplingNode", + "ReadOnlyTxBbEmissionNode", + "ReadOnlyTxHarmonicNode", + "ReadOnlyTxMeasNode", + "ReadOnlyTxNbEmissionNode", + "ReadOnlyTxSpectralProfEmitterNode", + "ReadOnlyTxSpectralProfNode", + "ReadOnlyTxSpurNode", + "ReadOnlyWalfischCouplingNode", + "ReadOnlyWaveform", ] diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py index db7dbccfe04..813ae024e36 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class AntennaNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -55,15 +59,13 @@ def tags(self) -> str: """Tags Space delimited list of tags for coupling selections - """ + """ val = self._get_property("Tags") return val @tags.setter def tags(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tags={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tags={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -74,13 +76,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return val == true @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -94,9 +96,7 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -110,9 +110,7 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -123,16 +121,14 @@ def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -146,9 +142,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -162,9 +156,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def position_defined(self) -> bool: @@ -174,13 +166,11 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return (val == true) + return val == true @position_defined.setter def position_defined(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position Defined={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Defined={value}"]) @property def antenna_temperature(self) -> float: @@ -193,25 +183,21 @@ def antenna_temperature(self) -> float: return float(val) @antenna_temperature.setter - def antenna_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna Temperature={value}"]) + def antenna_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna Temperature={value}"]) @property def type(self): """Type Defines the type of antenna - """ + """ val = self._get_property("Type") return val @type.setter def type(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value}"]) @property def antenna_file(self) -> str: @@ -223,9 +209,7 @@ def antenna_file(self) -> str: @antenna_file.setter def antenna_file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna File={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna File={value}"]) @property def project_name(self) -> str: @@ -239,9 +223,7 @@ def project_name(self) -> str: @project_name.setter def project_name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Project Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Project Name={value}"]) @property def peak_gain(self) -> float: @@ -254,10 +236,8 @@ def peak_gain(self) -> float: return float(val) @peak_gain.setter - def peak_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Peak Gain={value}"]) + def peak_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Gain={value}"]) class BoresightOption(Enum): XAXIS = "+X Axis" @@ -269,16 +249,14 @@ def boresight(self) -> BoresightOption: """Boresight Select peak beam direction in local coordinates - """ + """ val = self._get_property("Boresight") val = self.BoresightOption[val.upper()] return val @boresight.setter def boresight(self, value: BoresightOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Boresight={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Boresight={value.value}"]) @property def vertical_beamwidth(self) -> float: @@ -291,10 +269,8 @@ def vertical_beamwidth(self) -> float: return float(val) @vertical_beamwidth.setter - def vertical_beamwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Beamwidth={value}"]) + def vertical_beamwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Beamwidth={value}"]) @property def horizontal_beamwidth(self) -> float: @@ -307,10 +283,8 @@ def horizontal_beamwidth(self) -> float: return float(val) @horizontal_beamwidth.setter - def horizontal_beamwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Beamwidth={value}"]) + def horizontal_beamwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Beamwidth={value}"]) @property def extra_sidelobe(self) -> bool: @@ -320,13 +294,11 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return (val == true) + return val == true @extra_sidelobe.setter def extra_sidelobe(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Extra Sidelobe={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Extra Sidelobe={value}"]) @property def first_sidelobe_level(self) -> float: @@ -340,10 +312,8 @@ def first_sidelobe_level(self) -> float: return float(val) @first_sidelobe_level.setter - def first_sidelobe_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Level={value}"]) + def first_sidelobe_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Level={value}"]) @property def first_sidelobe_vert_bw(self) -> float: @@ -356,10 +326,8 @@ def first_sidelobe_vert_bw(self) -> float: return float(val) @first_sidelobe_vert_bw.setter - def first_sidelobe_vert_bw(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Vert. BW={value}"]) + def first_sidelobe_vert_bw(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Vert. BW={value}"]) @property def first_sidelobe_hor_bw(self) -> float: @@ -372,10 +340,8 @@ def first_sidelobe_hor_bw(self) -> float: return float(val) @first_sidelobe_hor_bw.setter - def first_sidelobe_hor_bw(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Hor. BW={value}"]) + def first_sidelobe_hor_bw(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Hor. BW={value}"]) @property def outerbacklobe_level(self) -> float: @@ -388,10 +354,8 @@ def outerbacklobe_level(self) -> float: return float(val) @outerbacklobe_level.setter - def outerbacklobe_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Outer/Backlobe Level={value}"]) + def outerbacklobe_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Outer/Backlobe Level={value}"]) @property def resonant_frequency(self) -> float: @@ -406,11 +370,9 @@ def resonant_frequency(self) -> float: return float(val) @resonant_frequency.setter - def resonant_frequency(self, value : float|str): + def resonant_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Resonant Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resonant Frequency={value}"]) @property def slot_length(self) -> float: @@ -424,11 +386,9 @@ def slot_length(self) -> float: return float(val) @slot_length.setter - def slot_length(self, value : float|str): + def slot_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Slot Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Slot Length={value}"]) @property def mouth_width(self) -> float: @@ -442,11 +402,9 @@ def mouth_width(self) -> float: return float(val) @mouth_width.setter - def mouth_width(self, value : float|str): + def mouth_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Width={value}"]) @property def mouth_height(self) -> float: @@ -460,11 +418,9 @@ def mouth_height(self) -> float: return float(val) @mouth_height.setter - def mouth_height(self, value : float|str): + def mouth_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Height={value}"]) @property def waveguide_width(self) -> float: @@ -479,11 +435,9 @@ def waveguide_width(self) -> float: return float(val) @waveguide_width.setter - def waveguide_width(self, value : float|str): + def waveguide_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Waveguide Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveguide Width={value}"]) @property def width_flare_half_angle(self) -> float: @@ -497,10 +451,8 @@ def width_flare_half_angle(self) -> float: return float(val) @width_flare_half_angle.setter - def width_flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Width Flare Half-angle={value}"]) + def width_flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width Flare Half-angle={value}"]) @property def height_flare_half_angle(self) -> float: @@ -514,10 +466,8 @@ def height_flare_half_angle(self) -> float: return float(val) @height_flare_half_angle.setter - def height_flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Height Flare Half-angle={value}"]) + def height_flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height Flare Half-angle={value}"]) @property def mouth_diameter(self) -> float: @@ -531,11 +481,9 @@ def mouth_diameter(self) -> float: return float(val) @mouth_diameter.setter - def mouth_diameter(self, value : float|str): + def mouth_diameter(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Diameter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Diameter={value}"]) @property def flare_half_angle(self) -> float: @@ -549,10 +497,8 @@ def flare_half_angle(self) -> float: return float(val) @flare_half_angle.setter - def flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Flare Half-angle={value}"]) + def flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flare Half-angle={value}"]) @property def vswr(self) -> float: @@ -566,10 +512,8 @@ def vswr(self) -> float: return float(val) @vswr.setter - def vswr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"VSWR={value}"]) + def vswr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) class AntennaPolarizationOption(Enum): VERTICAL = "Vertical" @@ -582,16 +526,16 @@ def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val.upper()] return val @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna Polarization={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Antenna Polarization={value.value}"] + ) class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" @@ -602,16 +546,14 @@ def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode Choose the Cross Dipole type - """ + """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val.upper()] return val @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Cross Dipole Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Cross Dipole Mode={value.value}"]) class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" @@ -622,16 +564,16 @@ def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val.upper()] return val @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Cross Dipole Polarization={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Cross Dipole Polarization={value.value}"] + ) @property def override_height(self) -> bool: @@ -642,13 +584,11 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return (val == true) + return val == true @override_height.setter def override_height(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Override Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Override Height={value}"]) @property def offset_height(self) -> float: @@ -662,11 +602,9 @@ def offset_height(self) -> float: return float(val) @offset_height.setter - def offset_height(self, value : float|str): + def offset_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Offset Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset Height={value}"]) @property def auto_height_offset(self) -> bool: @@ -677,13 +615,11 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return (val == true) + return val == true @auto_height_offset.setter def auto_height_offset(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Auto Height Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Auto Height Offset={value}"]) @property def conform__adjust_antenna(self) -> bool: @@ -693,13 +629,11 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return (val == true) + return val == true @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform / Adjust Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform / Adjust Antenna={value}"]) @property def element_offset(self): @@ -713,9 +647,7 @@ def element_offset(self): @element_offset.setter def element_offset(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Element Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Element Offset={value}"]) class ConformtoPlatformOption(Enum): NONE = "None" @@ -727,16 +659,16 @@ def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform Select method of automated conforming applied after Element Offset - """ + """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val.upper()] return val @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform to Platform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Conform to Platform={value.value}"] + ) class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" @@ -748,16 +680,14 @@ def reference_plane(self) -> ReferencePlaneOption: """Reference Plane Select reference plane for determining original element heights - """ + """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val.upper()] return val @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reference Plane={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reference Plane={value.value}"]) @property def conform_element_orientation(self) -> bool: @@ -768,13 +698,13 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return (val == true) + return val == true @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform Element Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Conform Element Orientation={value}"] + ) @property def show_axes(self) -> bool: @@ -784,13 +714,11 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return val == true @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def show_icon(self) -> bool: @@ -800,13 +728,11 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return (val == true) + return val == true @show_icon.setter def show_icon(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Icon={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Icon={value}"]) @property def size(self) -> float: @@ -819,10 +745,8 @@ def size(self) -> float: return float(val) @size.setter - def size(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Size={value}"]) + def size(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Size={value}"]) @property def color(self): @@ -836,16 +760,14 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def el_sample_interval(self) -> float: """El Sample Interval Space between elevation-angle samples of pattern - """ + """ val = self._get_property("El Sample Interval") return float(val) @@ -854,7 +776,7 @@ def az_sample_interval(self) -> float: """Az Sample Interval Space between azimuth-angle samples of pattern - """ + """ val = self._get_property("Az Sample Interval") return float(val) @@ -866,14 +788,14 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return (val == true) + return val == true @property def frequency_domain(self): """Frequency Domain Frequency sample(s) defining antenna - """ + """ val = self._get_property("Frequency Domain") return val @@ -882,7 +804,7 @@ def number_of_electric_sources(self) -> int: """Number of Electric Sources Number of freestanding electric current sources defining antenna - """ + """ val = self._get_property("Number of Electric Sources") return int(val) @@ -891,7 +813,7 @@ def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources Number of freestanding magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Magnetic Sources") return int(val) @@ -901,7 +823,7 @@ def number_of_imaged_electric_sources(self) -> int: Number of imaged, half-space radiating electric current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Electric Sources") return int(val) @@ -911,7 +833,7 @@ def number_of_imaged_magnetic_sources(self) -> int: Number of imaged, half-space radiating magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Magnetic Sources") return int(val) @@ -921,7 +843,7 @@ def waveguide_height(self) -> float: Implied waveguide height (along local x-axis) where the flared horn walls meet the feed - """ + """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") return float(val) @@ -931,7 +853,7 @@ def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency Implied lowest operating frequency of pyramidal horn antenna - """ + """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -941,7 +863,7 @@ def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency Implied lowest operating frequency of conical horn antenna - """ + """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -957,16 +879,16 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: Select the method for stability-enhancing truncation of spherical wave expansion terms - """ + """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val.upper()] return val @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SWE Mode Truncation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"SWE Mode Truncation={value.value}"] + ) @property def max_n_index(self) -> int: @@ -980,24 +902,20 @@ def max_n_index(self) -> int: @max_n_index.setter def max_n_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max N Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max N Index={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) @property def show_composite_passband(self) -> bool: @@ -1007,13 +925,11 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return (val == true) + return val == true @show_composite_passband.setter def show_composite_passband(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Composite Passband={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Composite Passband={value}"]) @property def use_phase_center(self) -> bool: @@ -1023,20 +939,18 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return (val == true) + return val == true @use_phase_center.setter def use_phase_center(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Phase Center={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Phase Center={value}"]) @property def coordinate_systems(self) -> str: """Coordinate Systems Specifies the coordinate system for the phase center of this antenna - """ + """ val = self._get_property("Coordinate Systems") return val @@ -1059,4 +973,3 @@ def phasecenterorientation(self): """ val = self._get_property("PhaseCenterOrientation") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py index b2677b1f6a8..58c7ebbb47c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class AntennaPassband(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -48,7 +51,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -65,10 +68,8 @@ def passband_loss(self) -> float: return float(val) @passband_loss.setter - def passband_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Passband Loss={value}"]) + def passband_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Passband Loss={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -81,10 +82,8 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out of Band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out of Band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -98,11 +97,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -116,11 +113,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -134,11 +129,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -152,24 +145,19 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py b/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py index 25c5a5270e3..528817256e3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class BandFolder(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -48,4 +51,3 @@ def duplicate(self, new_name: str): def delete(self): """Delete this node""" self._delete() - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py index 820a5a4919c..87de24c5913 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class BandTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,15 +56,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) class TxorRxOption(Enum): TX = "Tx" @@ -71,31 +73,27 @@ def tx_or_rx(self) -> TxorRxOption: """Tx or Rx Specifies whether the trace is a Tx or Rx channel - """ + """ val = self._get_property("Tx or Rx") val = self.TxorRxOption[val.upper()] return val @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx or Rx={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx or Rx={value.value}"]) @property def channel_frequency(self): """Channel Frequency Select band channel frequency to display - """ + """ val = self._get_property("Channel Frequency") return val @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: @@ -103,7 +101,7 @@ def transmit_frequency(self) -> float: The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset) - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -116,13 +114,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -132,28 +128,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -168,16 +160,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -191,9 +181,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -207,9 +195,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -233,16 +219,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -256,9 +240,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -272,9 +254,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -288,9 +268,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -301,11 +279,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py index 8b6284c8804..bf08b1c8fba 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class CADNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -77,16 +81,14 @@ def model_type(self) -> ModelTypeOption: """Model Type Select type of parametric model to create - """ + """ val = self._get_property("Model Type") val = self.ModelTypeOption[val.upper()] return val @model_type.setter def model_type(self, value: ModelTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Model Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Model Type={value.value}"]) @property def length(self) -> float: @@ -100,11 +102,9 @@ def length(self) -> float: return float(val) @length.setter - def length(self, value : float|str): + def length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) @property def width(self) -> float: @@ -118,11 +118,9 @@ def width(self) -> float: return float(val) @width.setter - def width(self, value : float|str): + def width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width={value}"]) @property def height(self) -> float: @@ -136,11 +134,9 @@ def height(self) -> float: return float(val) @height.setter - def height(self, value : float|str): + def height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height={value}"]) @property def angle(self) -> float: @@ -153,10 +149,8 @@ def angle(self) -> float: return float(val) @angle.setter - def angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Angle={value}"]) + def angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Angle={value}"]) @property def top_side(self) -> float: @@ -170,11 +164,9 @@ def top_side(self) -> float: return float(val) @top_side.setter - def top_side(self, value : float|str): + def top_side(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Top Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Side={value}"]) @property def top_radius(self) -> float: @@ -188,11 +180,9 @@ def top_radius(self) -> float: return float(val) @top_radius.setter - def top_radius(self, value : float|str): + def top_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Top Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Radius={value}"]) @property def side(self) -> float: @@ -206,11 +196,9 @@ def side(self) -> float: return float(val) @side.setter - def side(self, value : float|str): + def side(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Side={value}"]) @property def radius(self) -> float: @@ -224,11 +212,9 @@ def radius(self) -> float: return float(val) @radius.setter - def radius(self, value : float|str): + def radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radius={value}"]) @property def base_radius(self) -> float: @@ -242,11 +228,9 @@ def base_radius(self) -> float: return float(val) @base_radius.setter - def base_radius(self, value : float|str): + def base_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Radius={value}"]) @property def center_radius(self) -> float: @@ -260,11 +244,9 @@ def center_radius(self) -> float: return float(val) @center_radius.setter - def center_radius(self, value : float|str): + def center_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Center Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Radius={value}"]) @property def x_axis_ellipsoid_radius(self) -> float: @@ -278,11 +260,9 @@ def x_axis_ellipsoid_radius(self) -> float: return float(val) @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value : float|str): + def x_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Axis Ellipsoid Radius={value}"]) @property def y_axis_ellipsoid_radius(self) -> float: @@ -296,11 +276,9 @@ def y_axis_ellipsoid_radius(self) -> float: return float(val) @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value : float|str): + def y_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Axis Ellipsoid Radius={value}"]) @property def z_axis_ellipsoid_radius(self) -> float: @@ -314,11 +292,9 @@ def z_axis_ellipsoid_radius(self) -> float: return float(val) @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value : float|str): + def z_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Z Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Z Axis Ellipsoid Radius={value}"]) @property def focal_length(self) -> float: @@ -332,28 +308,24 @@ def focal_length(self) -> float: return float(val) @focal_length.setter - def focal_length(self, value : float|str): + def focal_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Focal Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Focal Length={value}"]) @property def offset(self) -> float: """Offset Offset of parabolic reflector - """ + """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") return float(val) @offset.setter - def offset(self, value : float|str): + def offset(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset={value}"]) @property def x_direction_taper(self) -> float: @@ -367,10 +339,8 @@ def x_direction_taper(self) -> float: return float(val) @x_direction_taper.setter - def x_direction_taper(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X Direction Taper={value}"]) + def x_direction_taper(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Direction Taper={value}"]) @property def y_direction_taper(self) -> float: @@ -384,10 +354,8 @@ def y_direction_taper(self) -> float: return float(val) @y_direction_taper.setter - def y_direction_taper(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y Direction Taper={value}"]) + def y_direction_taper(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Direction Taper={value}"]) @property def prism_direction(self): @@ -401,9 +369,7 @@ def prism_direction(self): @prism_direction.setter def prism_direction(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Prism Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Prism Direction={value}"]) @property def closed_top(self) -> bool: @@ -413,13 +379,11 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return (val == true) + return val == true @closed_top.setter def closed_top(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Closed Top={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Top={value}"]) @property def closed_base(self) -> bool: @@ -429,13 +393,11 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return (val == true) + return val == true @closed_base.setter def closed_base(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Closed Base={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Base={value}"]) @property def mesh_density(self) -> int: @@ -450,9 +412,7 @@ def mesh_density(self) -> int: @mesh_density.setter def mesh_density(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mesh Density={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Density={value}"]) @property def use_symmetric_mesh(self) -> bool: @@ -463,13 +423,11 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return (val == true) + return val == true @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Symmetric Mesh={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Symmetric Mesh={value}"]) class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -480,16 +438,14 @@ def mesh_option(self) -> MeshOptionOption: """Mesh Option Select from different meshing options - """ + """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val.upper()] return val @mesh_option.setter def mesh_option(self, value: MeshOptionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mesh Option={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Option={value.value}"]) @property def coating_index(self) -> int: @@ -503,9 +459,7 @@ def coating_index(self) -> int: @coating_index.setter def coating_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Coating Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Coating Index={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -516,13 +470,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return val == true @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -536,9 +490,7 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -552,9 +504,7 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -565,16 +515,14 @@ def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -588,9 +536,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -604,9 +550,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def visible(self) -> bool: @@ -616,13 +560,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -635,16 +577,14 @@ def render_mode(self) -> RenderModeOption: """Render Mode Select drawing style for surfaces - """ + """ val = self._get_property("Render Mode") val = self.RenderModeOption[val.upper()] return val @render_mode.setter def render_mode(self, value: RenderModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Render Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Render Mode={value.value}"]) @property def show_axes(self) -> bool: @@ -654,13 +594,11 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return val == true @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def min(self): @@ -687,7 +625,7 @@ def number_of_surfaces(self) -> int: """Number of Surfaces Number of surfaces in the model - """ + """ val = self._get_property("Number of Surfaces") return int(val) @@ -703,22 +641,17 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py index 0cc7e14fba0..f6c5ee604ce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py @@ -1,30 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class CategoriesViewNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False EmitNode.__init__(self, emit_obj, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py index 1c6c57fab1a..e8c782cc450 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class CouplingLinkNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,13 +44,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def ports(self): @@ -55,13 +56,10 @@ def ports(self): Maps each port in the link to an antenna in the project "A list of values." - """ + """ val = self._get_property("Ports") return val @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ports={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py index 52b38e3a31a..8f27d86e9fe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class CouplingTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -48,29 +52,23 @@ def delete(self): @property def transmitter(self) -> EmitNode: - """Transmitter - """ + """Transmitter""" val = self._get_property("Transmitter") return val @transmitter.setter def transmitter(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Transmitter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Transmitter={value}"]) @property def receiver(self) -> EmitNode: - """Receiver - """ + """Receiver""" val = self._get_property("Receiver") return val @receiver.setter def receiver(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Receiver={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver={value}"]) @property def data_source(self): @@ -78,15 +76,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,13 +92,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -112,28 +106,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -148,16 +138,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -171,9 +159,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -187,9 +173,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -213,16 +197,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -236,9 +218,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -252,9 +232,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -268,9 +246,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -281,13 +257,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def highlight_regions(self) -> bool: @@ -297,13 +271,11 @@ def highlight_regions(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Highlight Regions") - return (val == true) + return val == true @highlight_regions.setter def highlight_regions(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Highlight Regions={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highlight Regions={value}"]) @property def show_region_labels(self) -> bool: @@ -313,13 +285,11 @@ def show_region_labels(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Region Labels") - return (val == true) + return val == true @show_region_labels.setter def show_region_labels(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Region Labels={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Region Labels={value}"]) @property def font(self): @@ -333,9 +303,7 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -349,9 +317,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -365,9 +331,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -377,13 +341,11 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return (val == true) + return val == true @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -397,9 +359,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -413,7 +373,4 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py index 8543cb64576..e5e8bfc8bf4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class CouplingsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -30,7 +33,7 @@ def __init__(self, emit_obj, result_id, node_id): def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" - return self._import(file_name,"TouchstoneCoupling") + return self._import(file_name, "TouchstoneCoupling") def add_custom_coupling(self): """Add a new node to define custom coupling between antennas""" @@ -80,10 +83,8 @@ def minimum_allowed_coupling(self) -> float: return float(val) @minimum_allowed_coupling.setter - def minimum_allowed_coupling(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minimum Allowed Coupling={value}"]) + def minimum_allowed_coupling(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Allowed Coupling={value}"]) @property def global_default_coupling(self) -> float: @@ -96,17 +97,14 @@ def global_default_coupling(self) -> float: return float(val) @global_default_coupling.setter - def global_default_coupling(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Global Default Coupling={value}"]) + def global_default_coupling(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Global Default Coupling={value}"]) @property def antenna_tags(self) -> str: """Antenna Tags All tags currently used by all antennas in the project - """ + """ val = self._get_property("Antenna Tags") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py index 6a5209ba075..fff9314625f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class CustomCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def rename(self, new_name: str): """Rename this node""" @@ -51,11 +54,11 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Value (dB): + "Value (dB): Value should be between -1000 and 0. """ return self._get_table_data() @@ -72,43 +75,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -118,13 +115,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -134,26 +129,21 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py index c324a974b16..65306c2efda 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class EmiPlotMarkerNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def attached(self): @@ -68,22 +70,20 @@ def attached(self): Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False) - """ + """ val = self._get_property("Attached") return val @attached.setter def attached(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) @property def position_x(self) -> float: """Position X Position of the marker on the X-axis (frequency axis). - """ + """ val = self._get_property("Position X") return float(val) @@ -92,7 +92,7 @@ def position_y(self) -> float: """Position Y Position of the marker on the Y-axis (result axis). - """ + """ val = self._get_property("Position Y") return float(val) @@ -105,13 +105,11 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return (val == true) + return val == true @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -125,10 +123,8 @@ def position_from_left(self) -> float: return float(val) @position_from_left.setter - def position_from_left(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Left={value}"]) + def position_from_left(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -142,25 +138,21 @@ def position_from_top(self) -> float: return float(val) @position_from_top.setter - def position_from_top(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Top={value}"]) + def position_from_top(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) @property def text(self) -> str: """Text Set the text of the label - """ + """ val = self._get_property("Text") return val @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -172,16 +164,16 @@ def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position Specify horizontal position of the label as compared to the symbol - """ + """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val.upper()] return val @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Horizontal Position={value.value}"] + ) class VerticalPositionOption(Enum): TOP = "Top" @@ -193,16 +185,14 @@ def vertical_position(self) -> VerticalPositionOption: """Vertical Position Specify vertical position of the label as compared to the symbol - """ + """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val.upper()] return val @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -214,16 +204,14 @@ def text_alignment(self) -> TextAlignmentOption: """Text Alignment Specify justification applied to multi-line text - """ + """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val.upper()] return val @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) @property def font(self): @@ -237,9 +225,7 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -253,9 +239,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -269,9 +253,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -281,13 +263,11 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return (val == true) + return val == true @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -301,9 +281,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -317,9 +295,7 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -344,16 +320,14 @@ def symbol(self) -> SymbolOption: """Symbol Specify symbol displayed next to the label - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -367,9 +341,7 @@ def arrow_direction(self) -> int: @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -383,9 +355,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -399,9 +369,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -415,9 +383,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -428,11 +394,8 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return (val == true) + return val == true @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py index 8c8ab894f69..799d2b928fc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class EmitSceneNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,15 +42,13 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class GroundPlaneNormalOption(Enum): X_AXIS = "X Axis" @@ -58,16 +60,16 @@ def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal Specifies the axis of the normal to the ground plane - """ + """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val.upper()] return val @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ground Plane Normal={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"] + ) @property def gp_position_along_normal(self) -> float: @@ -75,15 +77,12 @@ def gp_position_along_normal(self) -> float: Offset of ground plane in direction normal to the ground planes orientation - """ + """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return float(val) @gp_position_along_normal.setter - def gp_position_along_normal(self, value : float|str): + def gp_position_along_normal(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"GP Position Along Normal={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GP Position Along Normal={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py index bf15e444452..935b7871aed 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ErcegCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class TerrainCategoryOption(Enum): TYPE_A = "Type A" @@ -149,16 +141,14 @@ def terrain_category(self) -> TerrainCategoryOption: """Terrain Category Specify the terrain category type for the Erceg model - """ + """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val.upper()] return val @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Terrain Category={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Terrain Category={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -172,10 +162,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -189,10 +177,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -206,10 +192,8 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -222,16 +206,14 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -245,10 +227,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -261,10 +241,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -274,13 +252,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -294,10 +270,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -310,10 +284,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -327,10 +299,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -341,13 +311,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -360,10 +330,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -376,10 +344,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -392,8 +358,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py b/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py index a85d3a565ce..768956c991c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class FiveGChannelModel(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): URBAN_MICROCELL = "Urban Microcell" @@ -149,16 +141,14 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment for the 5G channel model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def los(self) -> bool: @@ -168,13 +158,11 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return (val == true) + return val == true @los.setter def los(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"LOS={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"LOS={value}"]) @property def include_bpl(self) -> bool: @@ -184,13 +172,11 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return (val == true) + return val == true @include_bpl.setter def include_bpl(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include BPL={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include BPL={value}"]) class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -201,16 +187,14 @@ def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model Specify the NYU Building Penetration Loss model - """ + """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val.upper()] return val @nyu_bpl_model.setter def nyu_bpl_model(self, value: NYUBPLModelOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NYU BPL Model={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NYU BPL Model={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -224,10 +208,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -241,10 +223,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -258,10 +238,8 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -274,16 +252,14 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -297,10 +273,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -313,10 +287,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -326,13 +298,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -346,10 +316,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -362,10 +330,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -379,10 +345,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -393,13 +357,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -412,10 +376,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -428,10 +390,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -444,8 +404,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py index c26782c7ed0..1c92cfcc0d6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class HataCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): LARGE_CITY = "Large City" @@ -150,16 +142,14 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Hata model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -173,10 +163,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -190,10 +178,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -207,10 +193,8 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -223,16 +207,14 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -246,10 +228,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -262,10 +242,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -275,13 +253,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -295,10 +271,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -311,10 +285,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -328,10 +300,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -342,13 +312,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -361,10 +331,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -377,10 +345,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -393,8 +359,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py index 567d7204906..629ef32b5a7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class IndoorPropagationCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -48,13 +52,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Power Loss Coefficient: + "Power Loss Coefficient: Value should be between 0 and 100. - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): Value should be between 0 and 1000. """ return self._get_table_data() @@ -71,43 +75,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -117,13 +115,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -133,28 +129,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class BuildingTypeOption(Enum): RESIDENTIAL_APARTMENT = "Residential Apartment" @@ -168,16 +160,14 @@ def building_type(self) -> BuildingTypeOption: """Building Type Specify the building type for the Indoor Propagation model - """ + """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val.upper()] return val @building_type.setter def building_type(self, value: BuildingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Building Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Building Type={value.value}"]) @property def number_of_floors(self) -> int: @@ -191,9 +181,7 @@ def number_of_floors(self) -> int: @number_of_floors.setter def number_of_floors(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Floors={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Floors={value}"]) @property def custom_fading_margin(self) -> float: @@ -207,10 +195,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -224,10 +210,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -241,10 +225,8 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -257,16 +239,14 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -280,10 +260,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -296,10 +274,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -309,13 +285,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -329,10 +303,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -345,10 +317,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -362,10 +332,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -376,13 +344,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -395,10 +363,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -411,10 +377,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -427,8 +391,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py index 0ffaa2c9fb0..ed0fb430a5b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class LogDistanceCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): FREE_SPACE = "Free Space" @@ -153,16 +145,14 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Log Distance model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def path_loss_exponent(self) -> float: @@ -175,10 +165,8 @@ def path_loss_exponent(self) -> float: return float(val) @path_loss_exponent.setter - def path_loss_exponent(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Path Loss Exponent={value}"]) + def path_loss_exponent(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Exponent={value}"]) @property def custom_fading_margin(self) -> float: @@ -192,10 +180,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -209,10 +195,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -226,10 +210,8 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -242,16 +224,14 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -265,10 +245,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -281,10 +259,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -294,13 +270,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -314,10 +288,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -330,10 +302,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -347,10 +317,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -361,13 +329,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -380,10 +348,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -396,10 +362,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -412,8 +376,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py index 3c4369fee9d..5dff8cb6f6c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class MPlexBandTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -51,17 +55,14 @@ class PowerDirectionOption(Enum): @property def power_direction(self) -> PowerDirectionOption: - """Power Direction - """ + """Power Direction""" val = self._get_property("Power Direction") val = self.PowerDirectionOption[val.upper()] return val @power_direction.setter def power_direction(self, value: PowerDirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Power Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Power Direction={value.value}"]) @property def data_source(self): @@ -69,15 +70,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -87,13 +86,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -103,28 +100,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -139,16 +132,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -162,9 +153,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -178,9 +167,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -204,16 +191,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -227,9 +212,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -243,9 +226,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -259,9 +240,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -272,11 +251,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py index c7114eac22d..8ca10018d4a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class MultiplexerBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -59,16 +63,14 @@ def type(self) -> TypeOption: file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def filename(self) -> str: @@ -82,9 +84,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def insertion_loss(self) -> float: @@ -97,10 +97,8 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -113,10 +111,8 @@ def stop_band_attenuation(self) -> float: return float(val) @stop_band_attenuation.setter - def stop_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -130,11 +126,9 @@ def max_pass_band(self) -> float: return float(val) @max_pass_band.setter - def max_pass_band(self, value : float|str): + def max_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -148,11 +142,9 @@ def min_stop_band(self) -> float: return float(val) @min_stop_band.setter - def min_stop_band(self, value : float|str): + def min_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -166,11 +158,9 @@ def max_stop_band(self) -> float: return float(val) @max_stop_band.setter - def max_stop_band(self, value : float|str): + def max_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -184,11 +174,9 @@ def min_pass_band(self) -> float: return float(val) @min_pass_band.setter - def min_pass_band(self, value : float|str): + def min_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -202,11 +190,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -220,11 +206,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -238,11 +222,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -256,18 +238,15 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py index 81bea8af4a9..46cf852a6a1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class OutboardTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,9 +62,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -74,9 +76,7 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -84,15 +84,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -102,13 +100,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -118,28 +114,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -154,16 +146,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -177,9 +167,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -193,9 +181,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -219,16 +205,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -242,9 +226,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -258,9 +240,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -274,9 +254,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -287,11 +265,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py index 8be3b249ac2..dd698469760 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ParametricCouplingTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -48,29 +52,23 @@ def delete(self): @property def antenna_a(self) -> EmitNode: - """Antenna A - """ + """Antenna A""" val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: - """Antenna B - """ + """Antenna B""" val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def data_source(self): @@ -78,15 +76,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,13 +92,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -112,28 +106,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -148,16 +138,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -171,9 +159,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -187,9 +173,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -213,16 +197,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -236,9 +218,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -252,9 +232,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -268,9 +246,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -281,11 +257,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py index 9fb1b11a02e..143821a9ebc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class PlotMarkerNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def attached(self) -> bool: @@ -71,43 +73,37 @@ def attached(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Attached") - return (val == true) + return val == true @attached.setter def attached(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) @property def position_x(self) -> float: """Position X Position of the marker on the X-axis (frequency axis). - """ + """ val = self._get_property("Position X") return float(val) @position_x.setter - def position_x(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position X={value}"]) + def position_x(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position X={value}"]) @property def position_y(self) -> float: """Position Y Position of the marker on the Y-axis (result axis). - """ + """ val = self._get_property("Position Y") return float(val) @position_y.setter - def position_y(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position Y={value}"]) + def position_y(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Y={value}"]) @property def floating_label(self) -> bool: @@ -118,13 +114,11 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return (val == true) + return val == true @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -138,10 +132,8 @@ def position_from_left(self) -> float: return float(val) @position_from_left.setter - def position_from_left(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Left={value}"]) + def position_from_left(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -155,25 +147,21 @@ def position_from_top(self) -> float: return float(val) @position_from_top.setter - def position_from_top(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Top={value}"]) + def position_from_top(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) @property def text(self) -> str: """Text Set the text of the label - """ + """ val = self._get_property("Text") return val @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -185,16 +173,16 @@ def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position Specify horizontal position of the label as compared to the symbol - """ + """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val.upper()] return val @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Horizontal Position={value.value}"] + ) class VerticalPositionOption(Enum): TOP = "Top" @@ -206,16 +194,14 @@ def vertical_position(self) -> VerticalPositionOption: """Vertical Position Specify vertical position of the label as compared to the symbol - """ + """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val.upper()] return val @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -227,16 +213,14 @@ def text_alignment(self) -> TextAlignmentOption: """Text Alignment Specify justification applied to multi-line text - """ + """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val.upper()] return val @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) @property def font(self): @@ -250,9 +234,7 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -266,9 +248,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -282,9 +262,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -294,13 +272,11 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return (val == true) + return val == true @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -314,9 +290,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -330,9 +304,7 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -357,16 +329,14 @@ def symbol(self) -> SymbolOption: """Symbol Specify symbol displayed next to the label - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -380,9 +350,7 @@ def arrow_direction(self) -> int: @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -396,9 +364,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -412,9 +378,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -428,9 +392,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -441,11 +403,8 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return (val == true) + return val == true @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py index 54b1d5d909d..f94dad83147 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class PlotNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,15 +58,13 @@ def title(self) -> str: """Title Enter title at the top of the plot, room will be made for it - """ + """ val = self._get_property("Title") return val @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) @property def title_font(self): @@ -76,9 +78,7 @@ def title_font(self): @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -88,13 +88,11 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return (val == true) + return val == true @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) @property def legend_font(self): @@ -108,9 +106,7 @@ def legend_font(self): @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) @property def display_cad_overlay(self) -> bool: @@ -120,13 +116,11 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return (val == true) + return val == true @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -139,25 +133,21 @@ def opacity(self) -> float: return float(val) @opacity.setter - def opacity(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Opacity={value}"]) + def opacity(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset Adjust vertical position of CAD model overlay - """ + """ val = self._get_property("Vertical Offset") return float(val) @vertical_offset.setter - def vertical_offset(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Offset={value}"]) + def vertical_offset(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -171,10 +161,8 @@ def range_axis_rotation(self) -> float: return float(val) @range_axis_rotation.setter - def range_axis_rotation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -184,73 +172,63 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return (val == true) + return val == true @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min Set lower extent of horizontal axis - """ + """ val = self._get_property("X-axis Min") return float(val) @x_axis_min.setter - def x_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Min={value}"]) + def x_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max Set upper extent of horizontal axis - """ + """ val = self._get_property("X-axis Max") return float(val) @x_axis_max.setter - def x_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Max={value}"]) + def x_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min Set lower extent of vertical axis - """ + """ val = self._get_property("Y-axis Min") return float(val) @y_axis_min.setter - def y_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Min={value}"]) + def y_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max Set upper extent of vertical axis - """ + """ val = self._get_property("Y-axis Max") return float(val) @y_axis_max.setter - def y_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Max={value}"]) + def y_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -264,10 +242,8 @@ def y_axis_range(self) -> float: return float(val) @y_axis_range.setter - def y_axis_range(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Range={value}"]) + def y_axis_range(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -281,9 +257,7 @@ def max_major_ticks_x(self) -> int: @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -298,9 +272,7 @@ def max_minor_ticks_x(self) -> int: @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -314,9 +286,7 @@ def max_major_ticks_y(self) -> int: @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -331,9 +301,7 @@ def max_minor_ticks_y(self) -> int: @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -347,9 +315,7 @@ def axis_label_font(self): @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -363,9 +329,7 @@ def axis_tick_label_font(self): @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -380,16 +344,16 @@ def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style Select line style of major-tick grid lines - """ + """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val.upper()] return val @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] + ) @property def major_grid_color(self): @@ -403,9 +367,7 @@ def major_grid_color(self): @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -420,16 +382,16 @@ def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style Select line style of minor-tick grid lines - """ + """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val.upper()] return val @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] + ) @property def minor_grid_color(self): @@ -443,9 +405,7 @@ def minor_grid_color(self): @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -459,9 +419,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -474,16 +432,16 @@ def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit Units to use for plotting broadband power densities - """ + """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val.upper()] return val @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power for Plots Unit={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] + ) @property def bb_power_bandwidth(self) -> float: @@ -497,11 +455,9 @@ def bb_power_bandwidth(self) -> float: return float(val) @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value : float|str): + def bb_power_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -511,11 +467,8 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return (val == true) + return val == true @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Log Scale={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py b/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py index 5b0711394c0..9e50f7900ce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class PowerDivider(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,9 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,25 +70,21 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -99,16 +97,14 @@ def type(self) -> TypeOption: Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class OrientationOption(Enum): DIVIDER = "Divider" @@ -119,16 +115,14 @@ def orientation(self) -> OrientationOption: """Orientation Defines the orientation of the Power Divider. - """ + """ val = self._get_property("Orientation") val = self.OrientationOption[val.upper()] return val @orientation.setter def orientation(self, value: OrientationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value.value}"]) @property def insertion_loss_above_ideal(self) -> float: @@ -142,10 +136,10 @@ def insertion_loss_above_ideal(self) -> float: return float(val) @insertion_loss_above_ideal.setter - def insertion_loss_above_ideal(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss Above Ideal={value}"]) + def insertion_loss_above_ideal(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Insertion Loss Above Ideal={value}"] + ) @property def finite_isolation(self) -> bool: @@ -156,13 +150,11 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return (val == true) + return val == true @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -175,10 +167,8 @@ def isolation(self) -> float: return float(val) @isolation.setter - def isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Isolation={value}"]) + def isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -189,13 +179,11 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -208,10 +196,8 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -225,11 +211,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -243,11 +227,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -261,11 +243,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -279,18 +259,15 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py index b4323f7f68f..aeaeeb96f3f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class PowerTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -55,16 +59,14 @@ def direction(self) -> DirectionOption: """Direction Direction of power flow (towards or away from the transmitter) to plot - """ + """ val = self._get_property("Direction") val = self.DirectionOption[val.upper()] return val @direction.setter def direction(self, value: DirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Direction={value.value}"]) @property def data_source(self): @@ -72,15 +74,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -90,13 +90,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -106,28 +104,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -142,16 +136,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -165,9 +157,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -181,9 +171,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -207,16 +195,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -230,9 +216,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -246,9 +230,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -262,9 +244,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -275,11 +255,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py index fa7135e351b..dcde8cf4d8c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ProfileTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,15 +56,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -70,13 +72,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -86,28 +86,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -122,16 +118,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -145,9 +139,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -161,9 +153,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -187,16 +177,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -210,9 +198,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -226,9 +212,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -242,9 +226,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -255,11 +237,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py index 6f495e88296..e58e04ae852 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class PropagationLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def custom_fading_margin(self) -> float: @@ -151,10 +143,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -168,10 +158,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -185,10 +173,8 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -201,16 +187,14 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -224,10 +208,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -240,10 +222,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -253,13 +233,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -273,10 +251,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -289,10 +265,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -306,10 +280,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -320,13 +292,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -339,10 +311,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -355,10 +325,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -371,8 +339,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py index 12cc5aa7711..6ebf43aadb1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RadioNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -51,11 +54,11 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Name: - "Type: - """ + "Name: + "Type: + """ return self._get_table_data() @table_data.setter @@ -67,13 +70,10 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py index 564926c4d22..ca7352de82a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyAmplifier(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,7 +58,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -67,7 +71,7 @@ def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type Configures the amplifier as a Tx or Rx amplifier - """ + """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val.upper()] return val @@ -176,4 +180,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return int(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py index 83cdf3dc504..ea4ac8d426b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyAntennaNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -39,7 +43,7 @@ def tags(self) -> str: """Tags Space delimited list of tags for coupling selections - """ + """ val = self._get_property("Tags") return val @@ -52,7 +56,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return val == true @property def position(self): @@ -83,7 +87,7 @@ def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @@ -116,7 +120,7 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return (val == true) + return val == true @property def antenna_temperature(self) -> float: @@ -133,7 +137,7 @@ def type(self): """Type Defines the type of antenna - """ + """ val = self._get_property("Type") return val @@ -175,7 +179,7 @@ def boresight(self) -> BoresightOption: """Boresight Select peak beam direction in local coordinates - """ + """ val = self._get_property("Boresight") val = self.BoresightOption[val.upper()] return val @@ -208,7 +212,7 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return (val == true) + return val == true @property def first_sidelobe_level(self) -> float: @@ -374,7 +378,7 @@ def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val.upper()] return val @@ -388,7 +392,7 @@ def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode Choose the Cross Dipole type - """ + """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val.upper()] return val @@ -402,7 +406,7 @@ def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val.upper()] return val @@ -416,7 +420,7 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return (val == true) + return val == true @property def offset_height(self) -> float: @@ -438,7 +442,7 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return (val == true) + return val == true @property def conform__adjust_antenna(self) -> bool: @@ -448,7 +452,7 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return (val == true) + return val == true @property def element_offset(self): @@ -470,7 +474,7 @@ def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform Select method of automated conforming applied after Element Offset - """ + """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val.upper()] return val @@ -485,7 +489,7 @@ def reference_plane(self) -> ReferencePlaneOption: """Reference Plane Select reference plane for determining original element heights - """ + """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val.upper()] return val @@ -499,7 +503,7 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return (val == true) + return val == true @property def show_axes(self) -> bool: @@ -509,7 +513,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return val == true @property def show_icon(self) -> bool: @@ -519,7 +523,7 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return (val == true) + return val == true @property def size(self) -> float: @@ -546,7 +550,7 @@ def el_sample_interval(self) -> float: """El Sample Interval Space between elevation-angle samples of pattern - """ + """ val = self._get_property("El Sample Interval") return float(val) @@ -555,7 +559,7 @@ def az_sample_interval(self) -> float: """Az Sample Interval Space between azimuth-angle samples of pattern - """ + """ val = self._get_property("Az Sample Interval") return float(val) @@ -567,14 +571,14 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return (val == true) + return val == true @property def frequency_domain(self): """Frequency Domain Frequency sample(s) defining antenna - """ + """ val = self._get_property("Frequency Domain") return val @@ -583,7 +587,7 @@ def number_of_electric_sources(self) -> int: """Number of Electric Sources Number of freestanding electric current sources defining antenna - """ + """ val = self._get_property("Number of Electric Sources") return int(val) @@ -592,7 +596,7 @@ def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources Number of freestanding magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Magnetic Sources") return int(val) @@ -602,7 +606,7 @@ def number_of_imaged_electric_sources(self) -> int: Number of imaged, half-space radiating electric current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Electric Sources") return int(val) @@ -612,7 +616,7 @@ def number_of_imaged_magnetic_sources(self) -> int: Number of imaged, half-space radiating magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Magnetic Sources") return int(val) @@ -622,7 +626,7 @@ def waveguide_height(self) -> float: Implied waveguide height (along local x-axis) where the flared horn walls meet the feed - """ + """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") return float(val) @@ -632,7 +636,7 @@ def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency Implied lowest operating frequency of pyramidal horn antenna - """ + """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -642,7 +646,7 @@ def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency Implied lowest operating frequency of conical horn antenna - """ + """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -658,7 +662,7 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: Select the method for stability-enhancing truncation of spherical wave expansion terms - """ + """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val.upper()] return val @@ -678,7 +682,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -690,7 +694,7 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return (val == true) + return val == true @property def use_phase_center(self) -> bool: @@ -700,14 +704,14 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return (val == true) + return val == true @property def coordinate_systems(self) -> str: """Coordinate Systems Specifies the coordinate system for the phase center of this antenna - """ + """ val = self._get_property("Coordinate Systems") return val @@ -730,4 +734,3 @@ def phasecenterorientation(self): """ val = self._get_property("PhaseCenterOrientation") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py index cf8b02d8aec..c1f7e8dd5bd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyAntennaPassband(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -102,7 +105,6 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py index 40b4ff1e74c..9bd6a9010db 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -39,7 +43,7 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") return val @@ -51,7 +55,7 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return (val == true) + return val == true @property def use_emission_designator(self) -> bool: @@ -61,14 +65,14 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return (val == true) + return val == true @property def emission_designator(self) -> str: """Emission Designator Enter the Emission Designator to define the bandwidth and modulation - """ + """ val = self._get_property("Emission Designator") return val @@ -77,7 +81,7 @@ def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW Channel Bandwidth based off the emission designator - """ + """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -87,7 +91,7 @@ def emit_modulation_type(self) -> str: """EMIT Modulation Type Modulation based off the emission designator - """ + """ val = self._get_property("EMIT Modulation Type") return val @@ -100,7 +104,7 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return (val == true) + return val == true @property def channel_bandwidth(self) -> float: @@ -131,7 +135,7 @@ def modulation(self) -> ModulationOption: """Modulation Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Modulation") val = self.ModulationOption[val.upper()] return val @@ -191,7 +195,7 @@ def sidelobes(self) -> int: @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation FSK frequency deviation: helps determine spectral profile Value should be greater than 1. @@ -213,7 +217,7 @@ def psk_type(self) -> PSKTypeOption: """PSK Type PSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val.upper()] return val @@ -228,7 +232,7 @@ def fsk_type(self) -> FSKTypeOption: """FSK Type FSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val.upper()] return val @@ -245,7 +249,7 @@ def qam_type(self) -> QAMTypeOption: """QAM Type QAM modulation order: helps determine spectral profile - """ + """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val.upper()] return val @@ -262,7 +266,7 @@ def apsk_type(self) -> APSKTypeOption: """APSK Type APSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val.upper()] return val @@ -323,7 +327,7 @@ def radar_type(self) -> RadarTypeOption: """Radar Type Radar type: helps determine spectral profile - """ + """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val.upper()] return val @@ -336,7 +340,7 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return (val == true) + return val == true @property def post_october_2020_procurement(self) -> bool: @@ -347,7 +351,7 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return (val == true) + return val == true @property def hop_range_min_freq(self) -> float: @@ -467,4 +471,3 @@ def fm_freq_dev_bandwidth(self) -> float: val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py index 88c4224e281..6aa83ad1ada 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyBandFolder(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -32,4 +35,3 @@ def __init__(self, emit_obj, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py index ac453c217f1..7d776e8011e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyCable(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,7 +58,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -69,7 +73,7 @@ def type(self) -> TypeOption: Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -131,7 +135,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py index 0a4cfa219df..b51bbda501a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyCADNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -65,7 +69,7 @@ def model_type(self) -> ModelTypeOption: """Model Type Select type of parametric model to create - """ + """ val = self._get_property("Model Type") val = self.ModelTypeOption[val.upper()] return val @@ -228,7 +232,7 @@ def offset(self) -> float: """Offset Offset of parabolic reflector - """ + """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") return float(val) @@ -273,7 +277,7 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return (val == true) + return val == true @property def closed_base(self) -> bool: @@ -283,7 +287,7 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return (val == true) + return val == true @property def mesh_density(self) -> int: @@ -305,7 +309,7 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return (val == true) + return val == true class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -316,7 +320,7 @@ def mesh_option(self) -> MeshOptionOption: """Mesh Option Select from different meshing options - """ + """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val.upper()] return val @@ -340,7 +344,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return val == true @property def position(self): @@ -371,7 +375,7 @@ def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @@ -404,7 +408,7 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -417,7 +421,7 @@ def render_mode(self) -> RenderModeOption: """Render Mode Select drawing style for surfaces - """ + """ val = self._get_property("Render Mode") val = self.RenderModeOption[val.upper()] return val @@ -430,7 +434,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return val == true @property def min(self): @@ -457,7 +461,7 @@ def number_of_surfaces(self) -> int: """Number of Surfaces Number of surfaces in the model - """ + """ val = self._get_property("Number of Surfaces") return int(val) @@ -476,7 +480,6 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py index 5c2c7abb986..5217a9c9330 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyCirculator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,7 +58,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -68,7 +72,7 @@ def type(self) -> TypeOption: Type of circulator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -82,7 +86,7 @@ def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the circulator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @@ -106,7 +110,7 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return (val == true) + return val == true @property def reverse_isolation(self) -> float: @@ -127,7 +131,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @property def out_of_band_attenuation(self) -> float: @@ -188,7 +192,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py index 12ac821d777..1aaaf0aa9a8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +44,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def ports(self): @@ -49,7 +52,6 @@ def ports(self): Maps each port in the link to an antenna in the project "A list of values." - """ + """ val = self._get_property("Ports") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py index 1098e5f28d5..2612058943c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyCouplingsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,7 +57,6 @@ def antenna_tags(self) -> str: """Antenna Tags All tags currently used by all antennas in the project - """ + """ val = self._get_property("Antenna Tags") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py index 4d506ca453b..1233eb221b3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,11 +38,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Value (dB): + "Value (dB): Value should be between -1000 and 0. """ return self._get_table_data() @@ -52,14 +55,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -68,7 +71,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -80,7 +83,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -90,14 +93,13 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py index cef4f2deb62..b4e8c6526e1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -34,7 +38,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -48,7 +52,7 @@ def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal Specifies the axis of the normal to the ground plane - """ + """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val.upper()] return val @@ -59,8 +63,7 @@ def gp_position_along_normal(self) -> float: Offset of ground plane in direction normal to the ground planes orientation - """ + """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py index 08c7ada730f..3dbb6977ca2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,14 +46,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @@ -58,7 +62,7 @@ def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -80,14 +84,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -101,7 +105,7 @@ def terrain_category(self) -> TerrainCategoryOption: """Terrain Category Specify the terrain category type for the Erceg model - """ + """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val.upper()] return val @@ -150,7 +154,7 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -184,7 +188,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -227,7 +231,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -258,4 +262,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py index d4e8ff24e69..c76d25b367a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyFilter(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,7 +58,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -73,7 +77,7 @@ def type(self) -> TypeOption: Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -188,7 +192,7 @@ def higher_stop_band(self) -> float: @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff Lower cutoff frequency Value should be between 1 and 1e+11. @@ -199,7 +203,7 @@ def lower_cutoff_(self) -> float: @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band Lower stop band frequency Value should be between 1 and 1e+11. @@ -210,7 +214,7 @@ def lower_stop_band_(self) -> float: @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band Higher stop band frequency Value should be between 1 and 1e+11. @@ -221,7 +225,7 @@ def higher_stop_band_(self) -> float: @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff Higher cutoff frequency Value should be between 1 and 1e+11. @@ -232,7 +236,7 @@ def higher_cutoff_(self) -> float: @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency Lowest tuned frequency Value should be between 1 and 1e+11. @@ -243,7 +247,7 @@ def lowest_tuned_frequency_(self) -> float: @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency Highest tuned frequency Value should be between 1 and 1e+11. @@ -277,7 +281,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py index be425b02af9..ad9a48eb6c6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,14 +46,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @@ -58,7 +62,7 @@ def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -80,14 +84,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -101,7 +105,7 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment for the 5G channel model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @@ -114,7 +118,7 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return (val == true) + return val == true @property def include_bpl(self) -> bool: @@ -124,7 +128,7 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return (val == true) + return val == true class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -135,7 +139,7 @@ def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model Specify the NYU Building Penetration Loss model - """ + """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val.upper()] return val @@ -184,7 +188,7 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -218,7 +222,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -261,7 +265,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -292,4 +296,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py index c9b2c934acd..a49f4c8f965 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,14 +46,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @@ -58,7 +62,7 @@ def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -80,14 +84,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -102,7 +106,7 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Hata model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @@ -151,7 +155,7 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -185,7 +189,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -228,7 +232,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -259,4 +263,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py index 5060d4ff921..face93c9d77 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,13 +40,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Power Loss Coefficient: + "Power Loss Coefficient: Value should be between 0 and 100. - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): Value should be between 0 and 1000. """ return self._get_table_data() @@ -55,14 +59,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -71,7 +75,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -83,7 +87,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -93,14 +97,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -116,7 +120,7 @@ def building_type(self) -> BuildingTypeOption: """Building Type Specify the building type for the Indoor Propagation model - """ + """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val.upper()] return val @@ -175,7 +179,7 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -209,7 +213,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -252,7 +256,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -283,4 +287,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py index 55f492f6ee2..2d894cdd5db 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyIsolator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,7 +58,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -68,7 +72,7 @@ def type(self) -> TypeOption: Type of isolator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -82,7 +86,7 @@ def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the isolator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @@ -106,7 +110,7 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return (val == true) + return val == true @property def reverse_isolation(self) -> float: @@ -127,7 +131,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @property def out_of_band_attenuation(self) -> float: @@ -188,7 +192,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py index b2165628930..cbe6f5aebb4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,14 +46,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -58,7 +62,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -80,14 +84,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -105,7 +109,7 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Log Distance model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @@ -164,7 +168,7 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -198,7 +202,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -241,7 +245,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -272,4 +276,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py index eaeffe4aa64..b666ad2f617 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyMultiplexer(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,7 +58,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -69,7 +73,7 @@ def type(self) -> TypeOption: simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -83,7 +87,7 @@ def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the multiplexer. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @@ -96,7 +100,7 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return (val == true) + return val == true @property def ports(self): @@ -104,7 +108,7 @@ def ports(self): Assigns the child port nodes to the multiplexers ports "A list of values." - """ + """ val = self._get_property("Ports") return val @@ -113,7 +117,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py index a27fa73966b..042867b531e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -47,7 +51,7 @@ def type(self) -> TypeOption: file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -175,7 +179,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py index 11a3b933ef9..0546b885efe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyPowerDivider(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,7 +58,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -69,7 +73,7 @@ def type(self) -> TypeOption: Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -83,7 +87,7 @@ def orientation(self) -> OrientationOption: """Orientation Defines the orientation of the Power Divider. - """ + """ val = self._get_property("Orientation") val = self.OrientationOption[val.upper()] return val @@ -108,7 +112,7 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return (val == true) + return val == true @property def isolation(self) -> float: @@ -129,7 +133,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @property def out_of_band_attenuation(self) -> float: @@ -190,7 +194,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py index d893151e8ab..4ccb6b3595e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,14 +46,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -58,7 +62,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -80,14 +84,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -135,7 +139,7 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -169,7 +173,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -212,7 +216,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -243,4 +247,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py index 4d49888006c..6dd413f7188 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRadioNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,11 +38,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Name: - "Type: - """ + "Name: + "Type: + """ return self._get_table_data() @property @@ -47,7 +50,6 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py index e3fa487c5a3..7d5d03423fc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -59,7 +63,7 @@ def receive_frequency(self) -> float: """Receive Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -74,7 +78,7 @@ def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode Defines the mode for the receiver measurement - """ + """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val.upper()] return val @@ -117,7 +121,7 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return (val == true) + return val == true @property def intended_signal_power(self) -> float: @@ -158,7 +162,7 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return (val == true) + return val == true @property def measure_mixer_products(self) -> bool: @@ -168,7 +172,7 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return (val == true) + return val == true @property def max_rf_order(self) -> int: @@ -198,7 +202,7 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return (val == true) + return val == true @property def measure_saturation(self) -> bool: @@ -208,7 +212,7 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return (val == true) + return val == true @property def use_ams_limits(self) -> bool: @@ -218,7 +222,7 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return (val == true) + return val == true @property def start_frequency(self) -> float: @@ -260,5 +264,4 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return (val == true) - + return val == true diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py index 7fc6010f99a..8d57af7c8f0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -44,7 +48,7 @@ def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper Taper for setting amplitude of mixer products - """ + """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val.upper()] return val @@ -164,7 +168,7 @@ def mixing_mode(self) -> MixingModeOption: """Mixing Mode Specifies whether the IF frequency is > or < RF channel frequency - """ + """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val.upper()] return val @@ -184,7 +188,7 @@ def rf_transition_frequency(self) -> float: """RF Transition Frequency RF Frequency Transition point - """ + """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -198,7 +202,7 @@ def use_high_lo(self) -> UseHighLOOption: """Use High LO Use High LO above/below the transition frequency - """ + """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val.upper()] return val @@ -212,8 +216,7 @@ def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units Specifies the units for the Mixer Products - """ + """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val.upper()] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py index 5e22eca60c2..45328a8b5fe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -32,4 +35,3 @@ def __init__(self, emit_obj, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py index a3944914964..fab53dbb400 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,5 +45,4 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return (val == true) - + return val == true diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py index bc475a26c1d..4bd4d1773f6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,13 +40,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -56,8 +60,7 @@ def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py index acf4640a5f6..421fcb92f79 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -45,14 +49,14 @@ def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units Units to use for the Rx Sensitivity - """ + """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val.upper()] return val @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr Received signal power level at the Rx's antenna terminal Value should be between -1000 and 1000. @@ -90,7 +94,7 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return (val == true) + return val == true @property def saturation_level(self) -> float: @@ -115,7 +119,7 @@ def rx_noise_figure(self) -> float: @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity Rx minimum sensitivity level (dBm) Value should be between -1000 and 1000. @@ -126,7 +130,7 @@ def receiver_sensitivity_(self) -> float: @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity SNR or SINAD at the specified sensitivity level Value should be between -1000 and 1000. @@ -142,7 +146,7 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return (val == true) + return val == true @property def amplifier_saturation_level(self) -> float: @@ -157,7 +161,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Rx's 1 dB Compression Point - total power > P1dB saturates the receiver Value should be between -1000 and 1000. @@ -186,4 +190,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return int(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py index f95424ebcf8..ee589ac1c98 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlySamplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,11 +40,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Min: + "Min: Value should be greater than 1. - "Max: + "Max: Value should be greater than 1. """ return self._get_table_data() @@ -55,7 +59,7 @@ def sampling_type(self) -> SamplingTypeOption: """Sampling Type Sampling to apply to this configuration - """ + """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val.upper()] return val @@ -69,7 +73,7 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return (val == true) + return val == true @property def percentage_of_channels(self) -> float: @@ -107,7 +111,7 @@ def total_tx_channels(self) -> int: Total number of transmit channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Tx Channels") return int(val) @@ -117,7 +121,7 @@ def total_rx_channels(self) -> int: Total number of receive channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Rx Channels") return int(val) @@ -126,7 +130,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py index 7214b8aa191..805ffbddaa2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlySceneGroupNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -43,7 +47,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return val == true @property def position(self): @@ -74,7 +78,7 @@ def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @@ -107,7 +111,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return val == true @property def box_color(self): @@ -124,7 +128,6 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py index 5ca19668655..3bf6d1f23bb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,7 +45,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def enable_refinement(self) -> bool: @@ -52,7 +55,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -62,14 +65,13 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py index cb6390f154e..4200a3fc267 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlySolutionsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,5 +45,4 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) - + return val == true diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py index c1acb6619c6..3b925264c88 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTerminator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,7 +58,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -68,7 +72,7 @@ def type(self) -> TypeOption: Type of terminator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -82,7 +86,7 @@ def port_location(self) -> PortLocationOption: """Port Location Defines the orientation of the terminator. - """ + """ val = self._get_property("Port Location") val = self.PortLocationOption[val.upper()] return val @@ -104,7 +108,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py index 8a161344db3..3e67009dd63 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +44,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def enable_refinement(self) -> bool: @@ -51,7 +54,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -61,14 +64,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -87,7 +90,7 @@ def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File Coupling data generated by Savant and exported as a matched file - """ + """ val = self._get_property("Savant Matched Coupling File") return val @@ -99,7 +102,7 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return (val == true) + return val == true @property def port_antenna_assignment(self): @@ -107,7 +110,7 @@ def port_antenna_assignment(self): Maps each port in the coupling file to an antenna in the project "A list of values." - """ + """ val = self._get_property("Port-Antenna Assignment") return val @@ -116,7 +119,6 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py index 3ee1c4a4ed8..00c3fb673f4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTR_Switch(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,7 +58,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -67,7 +71,7 @@ def tx_port(self) -> TxPortOption: """Tx Port Specifies which port on the TR Switch is part of the Tx path. - """ + """ val = self._get_property("Tx Port") val = self.TxPortOption[val.upper()] return val @@ -81,7 +85,7 @@ def common_port_location(self) -> CommonPortLocationOption: """Common Port Location Defines the orientation of the tr switch. - """ + """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val.upper()] return val @@ -105,7 +109,7 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return (val == true) + return val == true @property def isolation(self) -> float: @@ -126,7 +130,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @property def out_of_band_attenuation(self) -> float: @@ -181,4 +185,3 @@ def higher_stop_band(self) -> float: val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py index 39a5d895309..34637d0ef01 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,14 +46,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -58,7 +62,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -80,14 +84,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -155,7 +159,7 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -189,7 +193,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -232,7 +236,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -263,4 +267,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py index 04fec1e128d..28cf7035056 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,9 +42,9 @@ def parent(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): Value should be between -200 and 150. """ return self._get_table_data() @@ -56,7 +60,7 @@ def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior Specifies the behavior of the parametric noise profile - """ + """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val.upper()] return val @@ -70,5 +74,4 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return (val == true) - + return val == true diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py index 520126b07e6..58a5a5c9dba 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -43,8 +47,7 @@ def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units Specifies the units for the Harmonics - """ + """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val.upper()] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py index 9d8729dc36b..a69caa5e6e5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,7 +61,7 @@ def transmit_frequency(self) -> float: """Transmit Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -71,7 +74,7 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return (val == true) + return val == true @property def start_frequency(self) -> float: @@ -103,5 +106,4 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return (val == true) - + return val == true diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py index ecb068c242e..d3b922e9cc3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -43,7 +47,7 @@ def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior Specifies the behavior of the parametric narrowband emissions mask - """ + """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val.upper()] return val @@ -53,8 +57,7 @@ def measurement_frequency(self) -> float: """Measurement Frequency Measurement frequency for the absolute freq/amp pairs. - """ + """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py index f551a2e6781..f8924491de9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxSpectralProfEmitterNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,7 +41,7 @@ def output_voltage_peak(self) -> float: """Output Voltage Peak Output High Voltage Level: maximum voltage of the digital signal - """ + """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") return float(val) @@ -51,7 +54,7 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return (val == true) + return val == true @property def tx_broadband_noise(self) -> float: @@ -71,7 +74,7 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return (val == true) + return val == true @property def internal_amp_gain(self) -> float: @@ -106,7 +109,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -146,4 +149,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return int(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py index 506153c3046..63c76bc35c8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -43,7 +47,7 @@ def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type Specifies EMI Margins to calculate - """ + """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val.upper()] return val @@ -57,7 +61,7 @@ def tx_power(self) -> TxPowerOption: """Tx Power Method used to specify the power - """ + """ val = self._get_property("Tx Power") val = self.TxPowerOption[val.upper()] return val @@ -92,7 +96,7 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return (val == true) + return val == true @property def tx_broadband_noise(self) -> float: @@ -115,7 +119,7 @@ def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper Taper type used to set amplitude of harmonics - """ + """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val.upper()] return val @@ -159,7 +163,7 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return (val == true) + return val == true @property def number_of_harmonics(self) -> int: @@ -209,7 +213,7 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return (val == true) + return val == true @property def internal_amp_gain(self) -> float: @@ -244,7 +248,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -284,4 +288,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return int(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py index 9ad76c5cd08..feea24d14d4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,13 +40,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -56,8 +60,7 @@ def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py index 3754d8f77d0..669578eaf1d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,14 +46,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @@ -58,7 +62,7 @@ def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -80,14 +84,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -100,7 +104,7 @@ def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type Specify LOS vs NLOS for the Walfisch-Ikegami model - """ + """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val.upper()] return val @@ -114,7 +118,7 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Walfisch model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @@ -206,7 +210,7 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -240,7 +244,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -283,7 +287,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -314,4 +318,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py index 3bb0a69747f..61953d03414 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyWaveform(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -39,7 +43,7 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") return val @@ -55,7 +59,7 @@ def waveform(self) -> WaveformOption: """Waveform Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Waveform") val = self.WaveformOption[val.upper()] return val @@ -124,7 +128,7 @@ def spreading_type(self) -> SpreadingTypeOption: """Spreading Type Type of spreading employed by the Spread Spectrum Clock - """ + """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val.upper()] return val @@ -152,7 +156,7 @@ def raw_data_format(self) -> str: """Raw Data Format Format of the imported raw data - """ + """ val = self._get_property("Raw Data Format") return val @@ -175,7 +179,7 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return (val == true) + return val == true @property def nb_window_size(self) -> float: @@ -217,7 +221,7 @@ def algorithm(self) -> AlgorithmOption: """Algorithm Algorithm used to transform the imported time domain spectrum - """ + """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val.upper()] return val @@ -238,7 +242,7 @@ def stop_time(self) -> float: """Stop Time Final time of the imported time domain spectrum - """ + """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") return float(val) @@ -270,7 +274,7 @@ def window_type(self) -> WindowTypeOption: """Window Type Windowing scheme used for importing time domain spectrum - """ + """ val = self._get_property("Window Type") val = self.WindowTypeOption[val.upper()] return val @@ -293,7 +297,7 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return (val == true) + return val == true @property def data_rate(self) -> float: @@ -324,7 +328,7 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return (val == true) + return val == true @property def min_ptsnull(self) -> int: @@ -346,4 +350,3 @@ def delay_skew(self) -> float: val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py index c47722ba6d7..f10db08d685 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ResultPlotNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,15 +46,13 @@ def title(self) -> str: """Title Enter title at the top of the plot, room will be made for it - """ + """ val = self._get_property("Title") return val @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) @property def title_font(self): @@ -64,9 +66,7 @@ def title_font(self): @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -76,13 +76,11 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return (val == true) + return val == true @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) @property def legend_font(self): @@ -96,9 +94,7 @@ def legend_font(self): @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) @property def show_emi_thresholds(self) -> bool: @@ -108,13 +104,11 @@ def show_emi_thresholds(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show EMI Thresholds") - return (val == true) + return val == true @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show EMI Thresholds={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show EMI Thresholds={value}"]) @property def display_cad_overlay(self) -> bool: @@ -124,13 +118,11 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return (val == true) + return val == true @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -143,25 +135,21 @@ def opacity(self) -> float: return float(val) @opacity.setter - def opacity(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Opacity={value}"]) + def opacity(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset Adjust vertical position of CAD model overlay - """ + """ val = self._get_property("Vertical Offset") return float(val) @vertical_offset.setter - def vertical_offset(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Offset={value}"]) + def vertical_offset(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -175,10 +163,8 @@ def range_axis_rotation(self) -> float: return float(val) @range_axis_rotation.setter - def range_axis_rotation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -188,73 +174,63 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return (val == true) + return val == true @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min Set lower extent of horizontal axis - """ + """ val = self._get_property("X-axis Min") return float(val) @x_axis_min.setter - def x_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Min={value}"]) + def x_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max Set upper extent of horizontal axis - """ + """ val = self._get_property("X-axis Max") return float(val) @x_axis_max.setter - def x_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Max={value}"]) + def x_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min Set lower extent of vertical axis - """ + """ val = self._get_property("Y-axis Min") return float(val) @y_axis_min.setter - def y_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Min={value}"]) + def y_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max Set upper extent of vertical axis - """ + """ val = self._get_property("Y-axis Max") return float(val) @y_axis_max.setter - def y_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Max={value}"]) + def y_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -268,10 +244,8 @@ def y_axis_range(self) -> float: return float(val) @y_axis_range.setter - def y_axis_range(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Range={value}"]) + def y_axis_range(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -285,9 +259,7 @@ def max_major_ticks_x(self) -> int: @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -302,9 +274,7 @@ def max_minor_ticks_x(self) -> int: @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -318,9 +288,7 @@ def max_major_ticks_y(self) -> int: @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -335,9 +303,7 @@ def max_minor_ticks_y(self) -> int: @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -351,9 +317,7 @@ def axis_label_font(self): @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -367,9 +331,7 @@ def axis_tick_label_font(self): @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -384,16 +346,16 @@ def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style Select line style of major-tick grid lines - """ + """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val.upper()] return val @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] + ) @property def major_grid_color(self): @@ -407,9 +369,7 @@ def major_grid_color(self): @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -424,16 +384,16 @@ def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style Select line style of minor-tick grid lines - """ + """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val.upper()] return val @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] + ) @property def minor_grid_color(self): @@ -447,9 +407,7 @@ def minor_grid_color(self): @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -463,9 +421,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -478,16 +434,16 @@ def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit Units to use for plotting broadband power densities - """ + """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val.upper()] return val @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power for Plots Unit={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] + ) @property def bb_power_bandwidth(self) -> float: @@ -501,11 +457,9 @@ def bb_power_bandwidth(self) -> float: return float(val) @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value : float|str): + def bb_power_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -515,11 +469,8 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return (val == true) + return val == true @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Log Scale={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py index c3758ae5b2d..9065d91119a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -67,7 +71,7 @@ def receive_frequency(self) -> float: """Receive Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -82,16 +86,14 @@ def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode Defines the mode for the receiver measurement - """ + """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val.upper()] return val @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Mode={value.value}"]) @property def sinad_threshold(self) -> float: @@ -104,10 +106,8 @@ def sinad_threshold(self) -> float: return float(val) @sinad_threshold.setter - def sinad_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SINAD Threshold={value}"]) + def sinad_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SINAD Threshold={value}"]) @property def gps_cnr_threshold(self) -> float: @@ -120,10 +120,8 @@ def gps_cnr_threshold(self) -> float: return float(val) @gps_cnr_threshold.setter - def gps_cnr_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"GPS CNR Threshold={value}"]) + def gps_cnr_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GPS CNR Threshold={value}"]) @property def ber_threshold(self) -> float: @@ -136,10 +134,8 @@ def ber_threshold(self) -> float: return float(val) @ber_threshold.setter - def ber_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BER Threshold={value}"]) + def ber_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BER Threshold={value}"]) @property def default_intended_power(self) -> bool: @@ -149,13 +145,11 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return (val == true) + return val == true @default_intended_power.setter def default_intended_power(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Default Intended Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Default Intended Power={value}"]) @property def intended_signal_power(self) -> float: @@ -168,10 +162,8 @@ def intended_signal_power(self) -> float: return float(val) @intended_signal_power.setter - def intended_signal_power(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Intended Signal Power={value}"]) + def intended_signal_power(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Intended Signal Power={value}"]) @property def freq_deviation(self) -> float: @@ -185,11 +177,9 @@ def freq_deviation(self) -> float: return float(val) @freq_deviation.setter - def freq_deviation(self, value : float|str): + def freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) @property def modulation_depth(self) -> float: @@ -202,10 +192,8 @@ def modulation_depth(self) -> float: return float(val) @modulation_depth.setter - def modulation_depth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation Depth={value}"]) + def modulation_depth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Depth={value}"]) @property def measure_selectivity(self) -> bool: @@ -215,13 +203,11 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return (val == true) + return val == true @measure_selectivity.setter def measure_selectivity(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Selectivity={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Selectivity={value}"]) @property def measure_mixer_products(self) -> bool: @@ -231,13 +217,11 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return (val == true) + return val == true @measure_mixer_products.setter def measure_mixer_products(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Mixer Products={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Mixer Products={value}"]) @property def max_rf_order(self) -> int: @@ -251,9 +235,7 @@ def max_rf_order(self) -> int: @max_rf_order.setter def max_rf_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max RF Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max RF Order={value}"]) @property def max_lo_order(self) -> int: @@ -267,9 +249,7 @@ def max_lo_order(self) -> int: @max_lo_order.setter def max_lo_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max LO Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max LO Order={value}"]) @property def include_if(self) -> bool: @@ -279,13 +259,11 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return (val == true) + return val == true @include_if.setter def include_if(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include IF={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include IF={value}"]) @property def measure_saturation(self) -> bool: @@ -295,13 +273,11 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return (val == true) + return val == true @measure_saturation.setter def measure_saturation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Saturation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Saturation={value}"]) @property def use_ams_limits(self) -> bool: @@ -311,13 +287,11 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return (val == true) + return val == true @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -331,11 +305,9 @@ def start_frequency(self) -> float: return float(val) @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -349,11 +321,9 @@ def stop_frequency(self) -> float: return float(val) @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def samples(self) -> int: @@ -367,9 +337,7 @@ def samples(self) -> int: @samples.setter def samples(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Samples={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Samples={value}"]) @property def exclude_mixer_products_below_noise(self) -> bool: @@ -379,20 +347,19 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return (val == true) + return val == true @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Exclude Mixer Products Below Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Exclude Mixer Products Below Noise={value}"] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py index cb7a3eaba22..6c6f3aa83b8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RxMixerProductNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -45,7 +49,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -61,16 +65,16 @@ def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper Taper for setting amplitude of mixer products - """ + """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val.upper()] return val @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Taper={value.value}"] + ) @property def mixer_product_susceptibility(self) -> float: @@ -83,10 +87,10 @@ def mixer_product_susceptibility(self) -> float: return float(val) @mixer_product_susceptibility.setter - def mixer_product_susceptibility(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Susceptibility={value}"]) + def mixer_product_susceptibility(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Susceptibility={value}"] + ) @property def spurious_rejection(self) -> float: @@ -99,10 +103,8 @@ def spurious_rejection(self) -> float: return float(val) @spurious_rejection.setter - def spurious_rejection(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spurious Rejection={value}"]) + def spurious_rejection(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spurious Rejection={value}"]) @property def minimum_tuning_frequency(self) -> float: @@ -116,11 +118,9 @@ def minimum_tuning_frequency(self) -> float: return float(val) @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value : float|str): + def minimum_tuning_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minimum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Tuning Frequency={value}"]) @property def maximum_tuning_frequency(self) -> float: @@ -134,11 +134,9 @@ def maximum_tuning_frequency(self) -> float: return float(val) @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value : float|str): + def maximum_tuning_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum Tuning Frequency={value}"]) @property def mixer_product_slope(self) -> float: @@ -152,10 +150,8 @@ def mixer_product_slope(self) -> float: return float(val) @mixer_product_slope.setter - def mixer_product_slope(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Slope={value}"]) + def mixer_product_slope(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Slope={value}"]) @property def mixer_product_intercept(self) -> float: @@ -168,10 +164,8 @@ def mixer_product_intercept(self) -> float: return float(val) @mixer_product_intercept.setter - def mixer_product_intercept(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Intercept={value}"]) + def mixer_product_intercept(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Intercept={value}"]) @property def bandwidth_80_db(self) -> float: @@ -186,11 +180,9 @@ def bandwidth_80_db(self) -> float: return float(val) @bandwidth_80_db.setter - def bandwidth_80_db(self, value : float|str): + def bandwidth_80_db(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 80 dB={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 80 dB={value}"]) @property def image_rejection(self) -> float: @@ -203,10 +195,8 @@ def image_rejection(self) -> float: return float(val) @image_rejection.setter - def image_rejection(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Image Rejection={value}"]) + def image_rejection(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Image Rejection={value}"]) @property def maximum_rf_harmonic_order(self) -> int: @@ -220,9 +210,9 @@ def maximum_rf_harmonic_order(self) -> int: @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum RF Harmonic Order={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Maximum RF Harmonic Order={value}"] + ) @property def maximum_lo_harmonic_order(self) -> int: @@ -236,9 +226,9 @@ def maximum_lo_harmonic_order(self) -> int: @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum LO Harmonic Order={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Maximum LO Harmonic Order={value}"] + ) class MixingModeOption(Enum): LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" @@ -250,16 +240,14 @@ def mixing_mode(self) -> MixingModeOption: """Mixing Mode Specifies whether the IF frequency is > or < RF channel frequency - """ + """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val.upper()] return val @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixing Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixing Mode={value.value}"]) @property def first_if_frequency(self): @@ -273,26 +261,22 @@ def first_if_frequency(self): @first_if_frequency.setter def first_if_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First IF Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First IF Frequency={value}"]) @property def rf_transition_frequency(self) -> float: """RF Transition Frequency RF Frequency Transition point - """ + """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @rf_transition_frequency.setter - def rf_transition_frequency(self, value : float|str): + def rf_transition_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"RF Transition Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"RF Transition Frequency={value}"]) class UseHighLOOption(Enum): ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" @@ -303,16 +287,14 @@ def use_high_lo(self) -> UseHighLOOption: """Use High LO Use High LO above/below the transition frequency - """ + """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val.upper()] return val @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use High LO={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use High LO={value.value}"]) class MixerProductTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -323,14 +305,13 @@ def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units Specifies the units for the Mixer Products - """ + """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val.upper()] return val @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Table Units={value.value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py index df6a48c060b..62e4e8f9276 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RxSaturationNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,9 +47,8 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py index b9449774377..e49a32513f8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RxSelectivityNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,7 +47,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -59,11 +62,8 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return (val == true) + return val == true @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Arithmetic Mean={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Arithmetic Mean={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py index 6ff7afee163..5781b89806a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,13 +48,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -62,7 +66,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -77,14 +81,11 @@ def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spur Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py index 36bd626f12a..a96bdbf133a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RxSusceptibilityProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -54,20 +58,18 @@ def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units Units to use for the Rx Sensitivity - """ + """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val.upper()] return val @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sensitivity Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sensitivity Units={value.value}"]) @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr Received signal power level at the Rx's antenna terminal Value should be between -1000 and 1000. @@ -76,10 +78,8 @@ def min_receive_signal_pwr_(self) -> float: return float(val) @min_receive_signal_pwr_.setter - def min_receive_signal_pwr_(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min. Receive Signal Pwr ={value}"]) + def min_receive_signal_pwr_(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min. Receive Signal Pwr ={value}"]) @property def snr_at_rx_signal_pwr(self) -> float: @@ -93,10 +93,8 @@ def snr_at_rx_signal_pwr(self) -> float: return float(val) @snr_at_rx_signal_pwr.setter - def snr_at_rx_signal_pwr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SNR at Rx Signal Pwr={value}"]) + def snr_at_rx_signal_pwr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR at Rx Signal Pwr={value}"]) @property def processing_gain(self) -> float: @@ -109,10 +107,8 @@ def processing_gain(self) -> float: return float(val) @processing_gain.setter - def processing_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Processing Gain={value}"]) + def processing_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Processing Gain={value}"]) @property def apply_pg_to_narrowband_only(self) -> bool: @@ -123,13 +119,13 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return (val == true) + return val == true @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Apply PG to Narrowband Only={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Apply PG to Narrowband Only={value}"] + ) @property def saturation_level(self) -> float: @@ -143,11 +139,9 @@ def saturation_level(self) -> float: return float(val) @saturation_level.setter - def saturation_level(self, value : float|str): + def saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) @property def rx_noise_figure(self) -> float: @@ -160,14 +154,12 @@ def rx_noise_figure(self) -> float: return float(val) @rx_noise_figure.setter - def rx_noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rx Noise Figure={value}"]) + def rx_noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rx Noise Figure={value}"]) @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity Rx minimum sensitivity level (dBm) Value should be between -1000 and 1000. @@ -177,15 +169,13 @@ def receiver_sensitivity_(self) -> float: return float(val) @receiver_sensitivity_.setter - def receiver_sensitivity_(self, value : float|str): + def receiver_sensitivity_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Receiver Sensitivity ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver Sensitivity ={value}"]) @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity SNR or SINAD at the specified sensitivity level Value should be between -1000 and 1000. @@ -194,10 +184,10 @@ def snrsinad_at_sensitivity_(self) -> float: return float(val) @snrsinad_at_sensitivity_.setter - def snrsinad_at_sensitivity_(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SNR/SINAD at Sensitivity ={value}"]) + def snrsinad_at_sensitivity_(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"SNR/SINAD at Sensitivity ={value}"] + ) @property def perform_rx_intermod_analysis(self) -> bool: @@ -207,13 +197,13 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return (val == true) + return val == true @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Rx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Rx Intermod Analysis={value}"] + ) @property def amplifier_saturation_level(self) -> float: @@ -227,15 +217,15 @@ def amplifier_saturation_level(self) -> float: return float(val) @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Rx's 1 dB Compression Point - total power > P1dB saturates the receiver Value should be between -1000 and 1000. @@ -245,11 +235,9 @@ def p1_db_point_ref_input_(self) -> float: return float(val) @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -263,11 +251,9 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def max_intermod_order(self) -> int: @@ -281,7 +267,4 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py index 79feb22b091..83601ce93d3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class SamplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,11 +40,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Min: + "Min: Value should be greater than 1. - "Max: + "Max: Value should be greater than 1. """ return self._get_table_data() @@ -59,16 +63,14 @@ def sampling_type(self) -> SamplingTypeOption: """Sampling Type Sampling to apply to this configuration - """ + """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val.upper()] return val @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sampling Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sampling Type={value.value}"]) @property def specify_percentage(self) -> bool: @@ -79,13 +81,11 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return (val == true) + return val == true @specify_percentage.setter def specify_percentage(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Specify Percentage={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Specify Percentage={value}"]) @property def percentage_of_channels(self) -> float: @@ -98,10 +98,8 @@ def percentage_of_channels(self) -> float: return float(val) @percentage_of_channels.setter - def percentage_of_channels(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Percentage of Channels={value}"]) + def percentage_of_channels(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percentage of Channels={value}"]) @property def max__channelsrangeband(self) -> int: @@ -115,9 +113,9 @@ def max__channelsrangeband(self) -> int: @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max # Channels/Range/Band={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Max # Channels/Range/Band={value}"] + ) @property def seed(self) -> int: @@ -131,9 +129,7 @@ def seed(self) -> int: @seed.setter def seed(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Seed={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Seed={value}"]) @property def total_tx_channels(self) -> int: @@ -141,7 +137,7 @@ def total_tx_channels(self) -> int: Total number of transmit channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Tx Channels") return int(val) @@ -151,7 +147,7 @@ def total_rx_channels(self) -> int: Total number of receive channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Rx Channels") return int(val) @@ -160,7 +156,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py index 74913b8899c..ac6fdaf6c9f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class SceneGroupNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -59,13 +63,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return val == true @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -79,9 +83,7 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -95,9 +97,7 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -108,16 +108,14 @@ def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -131,9 +129,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -147,9 +143,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def show_axes(self) -> bool: @@ -159,13 +153,11 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return val == true @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def box_color(self): @@ -179,22 +171,17 @@ def box_color(self): @box_color.setter def box_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Box Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Box Color={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py index 8c373b3f3e3..2ecbd8ba9aa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class SelectivityTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,15 +56,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -70,13 +72,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -86,28 +86,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -122,16 +118,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -145,9 +139,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -161,9 +153,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -187,16 +177,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -210,9 +198,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -226,9 +212,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -242,9 +226,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -255,11 +237,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py index 959b5cfb018..8553e1f5f7d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class SolutionCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,13 +45,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -58,13 +59,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -74,26 +73,21 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py index 0ce64982dff..0a1142dc3d7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class SolutionsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,11 +45,8 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py index c96f69042b4..f28ef3e2373 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class SpurTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -51,15 +55,13 @@ def channel_frequency(self): """Channel Frequency Select band channel frequency to display - """ + """ val = self._get_property("Channel Frequency") return val @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: @@ -67,7 +69,7 @@ def transmit_frequency(self) -> float: The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset) - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -78,15 +80,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,13 +96,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -112,28 +110,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -148,16 +142,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -171,9 +163,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -187,9 +177,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -213,16 +201,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -236,9 +222,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -252,9 +236,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -268,9 +250,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -281,11 +261,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py index 2ba6ea7fb3a..ddf4699a654 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TestNoiseTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,9 +62,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -74,9 +76,7 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -84,15 +84,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -102,13 +100,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -118,28 +114,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -154,16 +146,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -177,9 +167,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -193,9 +181,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -219,16 +205,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -242,9 +226,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -258,9 +240,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -274,9 +254,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -287,13 +265,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -307,11 +283,9 @@ def frequency_1(self) -> float: return float(val) @frequency_1.setter - def frequency_1(self, value : float|str): + def frequency_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -325,11 +299,9 @@ def amplitude_1(self) -> float: return float(val) @amplitude_1.setter - def amplitude_1(self, value : float|str): + def amplitude_1(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -343,11 +315,9 @@ def bandwidth_1(self) -> float: return float(val) @bandwidth_1.setter - def bandwidth_1(self, value : float|str): + def bandwidth_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -361,11 +331,9 @@ def frequency_2(self) -> float: return float(val) @frequency_2.setter - def frequency_2(self, value : float|str): + def frequency_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -379,11 +347,9 @@ def amplitude_2(self) -> float: return float(val) @amplitude_2.setter - def amplitude_2(self, value : float|str): + def amplitude_2(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -397,11 +363,9 @@ def bandwidth_2(self) -> float: return float(val) @bandwidth_2.setter - def bandwidth_2(self, value : float|str): + def bandwidth_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -414,8 +378,5 @@ def noise_level(self) -> float: return float(val) @noise_level.setter - def noise_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Level={value}"]) - + def noise_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py index 3dc7c0a53b1..e54ab2654f2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py @@ -1,30 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TopLevelSimulation(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False EmitNode.__init__(self, emit_obj, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py index b16d60057e3..36fc75f89f7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TouchstoneCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -53,13 +56,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -69,13 +70,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -85,28 +84,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def filename(self) -> str: @@ -120,16 +115,14 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File Coupling data generated by Savant and exported as a matched file - """ + """ val = self._get_property("Savant Matched Coupling File") return val @@ -141,13 +134,11 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return (val == true) + return val == true @enable_em_isolation.setter def enable_em_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable EM Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable EM Isolation={value}"]) @property def port_antenna_assignment(self): @@ -155,28 +146,23 @@ def port_antenna_assignment(self): Maps each port in the coupling file to an antenna in the project "A list of values." - """ + """ val = self._get_property("Port-Antenna Assignment") return val @port_antenna_assignment.setter def port_antenna_assignment(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port-Antenna Assignment={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port-Antenna Assignment={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py index 0d5be899d86..f2b9ac91d4b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TRSwitchTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,9 +62,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -74,9 +76,7 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -84,15 +84,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -102,13 +100,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -118,28 +114,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -154,16 +146,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -177,9 +167,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -193,9 +181,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -219,16 +205,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -242,9 +226,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -258,9 +240,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -274,9 +254,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -287,11 +265,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py index 0b2d40f13a1..9c2bcce1a83 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TunableTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,9 +62,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -74,26 +76,22 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def frequency(self) -> float: """Frequency Tunable filter center frequency - """ + """ val = self._get_property("Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @frequency.setter - def frequency(self, value : float|str): + def frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency={value}"]) @property def data_source(self): @@ -101,15 +99,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -119,13 +115,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -135,28 +129,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -171,16 +161,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -194,9 +182,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -210,9 +196,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -236,16 +220,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -259,9 +241,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -275,9 +255,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -291,9 +269,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -304,11 +280,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py index a7a6a17f37e..c1bbc47eeec 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def ground_reflection_coeff(self) -> float: @@ -150,10 +142,8 @@ def ground_reflection_coeff(self) -> float: return float(val) @ground_reflection_coeff.setter - def ground_reflection_coeff(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ground Reflection Coeff.={value}"]) + def ground_reflection_coeff(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ground Reflection Coeff.={value}"]) @property def pointspeak(self) -> int: @@ -167,9 +157,7 @@ def pointspeak(self) -> int: @pointspeak.setter def pointspeak(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Points/Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Points/Peak={value}"]) @property def custom_fading_margin(self) -> float: @@ -183,10 +171,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -200,10 +186,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -217,10 +201,8 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -233,16 +215,14 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -256,10 +236,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -272,10 +250,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -285,13 +261,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -305,10 +279,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -321,10 +293,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -338,10 +308,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -352,13 +320,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -371,10 +339,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -387,10 +353,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -403,8 +367,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py index 363be46e6ab..38ce5bb542b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TwoToneTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,9 +62,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -74,9 +76,7 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -84,15 +84,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -102,13 +100,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -118,28 +114,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -154,16 +146,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -177,9 +167,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -193,9 +181,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -219,16 +205,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -242,9 +226,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -258,9 +240,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -274,9 +254,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -287,13 +265,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -307,11 +283,9 @@ def frequency_1(self) -> float: return float(val) @frequency_1.setter - def frequency_1(self, value : float|str): + def frequency_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -325,11 +299,9 @@ def amplitude_1(self) -> float: return float(val) @amplitude_1.setter - def amplitude_1(self, value : float|str): + def amplitude_1(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -343,11 +315,9 @@ def bandwidth_1(self) -> float: return float(val) @bandwidth_1.setter - def bandwidth_1(self, value : float|str): + def bandwidth_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -361,11 +331,9 @@ def frequency_2(self) -> float: return float(val) @frequency_2.setter - def frequency_2(self, value : float|str): + def frequency_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -379,11 +347,9 @@ def amplitude_2(self) -> float: return float(val) @amplitude_2.setter - def amplitude_2(self, value : float|str): + def amplitude_2(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -397,11 +363,9 @@ def bandwidth_2(self) -> float: return float(val) @bandwidth_2.setter - def bandwidth_2(self, value : float|str): + def bandwidth_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -414,8 +378,5 @@ def noise_level(self) -> float: return float(val) @noise_level.setter - def noise_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Level={value}"]) - + def noise_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py index 7b10b0d446e..986abbfbb87 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxBbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -46,9 +50,9 @@ def delete(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): Value should be between -200 and 150. """ return self._get_table_data() @@ -60,7 +64,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -77,16 +81,14 @@ def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior Specifies the behavior of the parametric noise profile - """ + """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val.upper()] return val @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Behavior={value.value}"]) @property def use_log_linear_interpolation(self) -> bool: @@ -97,11 +99,10 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return (val == true) + return val == true @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Log-Linear Interpolation={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py index 052dcf7f40e..5b0f94761b9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxHarmonicNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -45,7 +49,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -60,14 +64,13 @@ def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units Specifies the units for the Harmonics - """ + """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val.upper()] return val @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py index 5b7b3dee748..21e1fc9cb59 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -66,7 +69,7 @@ def transmit_frequency(self) -> float: """Transmit Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -79,13 +82,11 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return (val == true) + return val == true @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -99,11 +100,9 @@ def start_frequency(self) -> float: return float(val) @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -117,11 +116,9 @@ def stop_frequency(self) -> float: return float(val) @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def exclude_harmonics_below_noise(self) -> bool: @@ -131,20 +128,19 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return (val == true) + return val == true @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Exclude Harmonics Below Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py index 622b8f95a8c..347faed5fbd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxNbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -45,7 +49,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -60,31 +64,28 @@ def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior Specifies the behavior of the parametric narrowband emissions mask - """ + """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val.upper()] return val @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Narrowband Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"] + ) @property def measurement_frequency(self) -> float: """Measurement Frequency Measurement frequency for the absolute freq/amp pairs. - """ + """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @measurement_frequency.setter - def measurement_frequency(self, value : float|str): + def measurement_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Frequency={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Frequency={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py index 32cfcb3cd42..8a8426ae9cb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxSpectralProfEmitterNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +39,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -47,17 +50,15 @@ def output_voltage_peak(self) -> float: """Output Voltage Peak Output High Voltage Level: maximum voltage of the digital signal - """ + """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") return float(val) @output_voltage_peak.setter - def output_voltage_peak(self, value : float|str): + def output_voltage_peak(self, value: float | str): value = self._convert_to_internal_units(value, "Voltage") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Voltage Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Voltage Peak={value}"]) @property def include_phase_noise(self) -> bool: @@ -67,13 +68,11 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return (val == true) + return val == true @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -86,10 +85,8 @@ def tx_broadband_noise(self) -> float: return float(val) @tx_broadband_noise.setter - def tx_broadband_noise(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -99,13 +96,13 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return (val == true) + return val == true @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Tx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] + ) @property def internal_amp_gain(self) -> float: @@ -118,10 +115,8 @@ def internal_amp_gain(self) -> float: return float(val) @internal_amp_gain.setter - def internal_amp_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -134,10 +129,8 @@ def noise_figure(self) -> float: return float(val) @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -151,15 +144,15 @@ def amplifier_saturation_level(self) -> float: return float(val) @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -170,11 +163,9 @@ def p1_db_point_ref_input_(self) -> float: return float(val) @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -188,11 +179,9 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -205,10 +194,8 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -222,7 +209,4 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py index b93cfd62910..7489fedbb53 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxSpectralProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -52,16 +56,14 @@ def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type Specifies EMI Margins to calculate - """ + """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val.upper()] return val @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spectrum Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spectrum Type={value.value}"]) class TxPowerOption(Enum): PEAK_POWER = "Peak Power" @@ -72,16 +74,14 @@ def tx_power(self) -> TxPowerOption: """Tx Power Method used to specify the power - """ + """ val = self._get_property("Tx Power") val = self.TxPowerOption[val.upper()] return val @tx_power.setter def tx_power(self, value: TxPowerOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Power={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Power={value.value}"]) @property def peak_power(self) -> float: @@ -95,11 +95,9 @@ def peak_power(self) -> float: return float(val) @peak_power.setter - def peak_power(self, value : float|str): + def peak_power(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Peak Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Power={value}"]) @property def average_power(self) -> float: @@ -113,11 +111,9 @@ def average_power(self) -> float: return float(val) @average_power.setter - def average_power(self, value : float|str): + def average_power(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Average Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Average Power={value}"]) @property def include_phase_noise(self) -> bool: @@ -127,13 +123,11 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return (val == true) + return val == true @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -146,10 +140,8 @@ def tx_broadband_noise(self) -> float: return float(val) @tx_broadband_noise.setter - def tx_broadband_noise(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) class HarmonicTaperOption(Enum): CONSTANT = "Constant" @@ -162,16 +154,14 @@ def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper Taper type used to set amplitude of harmonics - """ + """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val.upper()] return val @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Taper={value.value}"]) @property def harmonic_amplitude(self) -> float: @@ -184,10 +174,8 @@ def harmonic_amplitude(self) -> float: return float(val) @harmonic_amplitude.setter - def harmonic_amplitude(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Amplitude={value}"]) + def harmonic_amplitude(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Amplitude={value}"]) @property def harmonic_slope(self) -> float: @@ -200,10 +188,8 @@ def harmonic_slope(self) -> float: return float(val) @harmonic_slope.setter - def harmonic_slope(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Slope={value}"]) + def harmonic_slope(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Slope={value}"]) @property def harmonic_intercept(self) -> float: @@ -216,10 +202,8 @@ def harmonic_intercept(self) -> float: return float(val) @harmonic_intercept.setter - def harmonic_intercept(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Intercept={value}"]) + def harmonic_intercept(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Intercept={value}"]) @property def enable_harmonic_bw_expansion(self) -> bool: @@ -230,13 +214,13 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return (val == true) + return val == true @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Harmonic BW Expansion={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Enable Harmonic BW Expansion={value}"] + ) @property def number_of_harmonics(self) -> int: @@ -250,9 +234,7 @@ def number_of_harmonics(self) -> int: @number_of_harmonics.setter def number_of_harmonics(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Harmonics={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Harmonics={value}"]) @property def second_harmonic_level(self) -> float: @@ -265,10 +247,8 @@ def second_harmonic_level(self) -> float: return float(val) @second_harmonic_level.setter - def second_harmonic_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Second Harmonic Level={value}"]) + def second_harmonic_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Second Harmonic Level={value}"]) @property def third_harmonic_level(self) -> float: @@ -281,10 +261,8 @@ def third_harmonic_level(self) -> float: return float(val) @third_harmonic_level.setter - def third_harmonic_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Third Harmonic Level={value}"]) + def third_harmonic_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Third Harmonic Level={value}"]) @property def other_harmonic_levels(self) -> float: @@ -297,10 +275,8 @@ def other_harmonic_levels(self) -> float: return float(val) @other_harmonic_levels.setter - def other_harmonic_levels(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Other Harmonic Levels={value}"]) + def other_harmonic_levels(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Other Harmonic Levels={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -310,13 +286,13 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return (val == true) + return val == true @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Tx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] + ) @property def internal_amp_gain(self) -> float: @@ -329,10 +305,8 @@ def internal_amp_gain(self) -> float: return float(val) @internal_amp_gain.setter - def internal_amp_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -345,10 +319,8 @@ def noise_figure(self) -> float: return float(val) @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -362,15 +334,15 @@ def amplifier_saturation_level(self) -> float: return float(val) @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -381,11 +353,9 @@ def p1_db_point_ref_input_(self) -> float: return float(val) @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -399,11 +369,9 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -416,10 +384,8 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -433,7 +399,4 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py index 695ad89c353..ccf54f44181 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,13 +48,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -62,7 +66,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -77,14 +81,11 @@ def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spur Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py index 1efe52b8870..ac333cf11ba 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class WalfischCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class PathLossTypeOption(Enum): LOS_URBAN_CANYON = "LOS (Urban Canyon)" @@ -148,16 +140,14 @@ def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type Specify LOS vs NLOS for the Walfisch-Ikegami model - """ + """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val.upper()] return val @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Path Loss Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Type={value.value}"]) class EnvironmentOption(Enum): DENSE_METRO = "Dense Metro" @@ -168,16 +158,14 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Walfisch model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def roof_height(self) -> float: @@ -191,11 +179,9 @@ def roof_height(self) -> float: return float(val) @roof_height.setter - def roof_height(self, value : float|str): + def roof_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Roof Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Roof Height={value}"]) @property def distance_between_buildings(self) -> float: @@ -209,11 +195,11 @@ def distance_between_buildings(self) -> float: return float(val) @distance_between_buildings.setter - def distance_between_buildings(self, value : float|str): + def distance_between_buildings(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Distance Between Buildings={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Distance Between Buildings={value}"] + ) @property def street_width(self) -> float: @@ -227,11 +213,9 @@ def street_width(self) -> float: return float(val) @street_width.setter - def street_width(self, value : float|str): + def street_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Street Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Street Width={value}"]) @property def incidence_angle(self) -> float: @@ -244,10 +228,8 @@ def incidence_angle(self) -> float: return float(val) @incidence_angle.setter - def incidence_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Incidence Angle={value}"]) + def incidence_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Incidence Angle={value}"]) @property def custom_fading_margin(self) -> float: @@ -261,10 +243,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -278,10 +258,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -295,10 +273,8 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -311,16 +287,14 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -334,10 +308,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -350,10 +322,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -363,13 +333,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -383,10 +351,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -399,10 +365,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -416,10 +380,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -430,13 +392,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -449,10 +411,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -465,10 +425,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -481,8 +439,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) From 2f032789339a865ca5410e0cc4e2947e31524cbb Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Wed, 21 May 2025 15:17:56 -0500 Subject: [PATCH 72/86] Use absolute imports, use common AEDT major version guard decorator, fix capitalization of new generated nodes --- .../aedt/core/emit_core/nodes/emit_node.py | 2 +- .../emit_core/nodes/generated/__init__.py | 318 ++++++++-------- .../generated/{Amplifier.py => amplifier.py} | 97 +++-- .../emit_core/nodes/generated/antenna_node.py | 341 +++++++++++------- .../nodes/generated/antenna_passband.py | 60 +-- .../nodes/generated/{Band.py => band.py} | 237 +++++++----- .../emit_core/nodes/generated/band_folder.py | 16 +- .../nodes/generated/band_trace_node.py | 93 +++-- .../nodes/generated/{Cable.py => cable.py} | 71 ++-- .../emit_core/nodes/generated/cad_node.py | 223 ++++++++---- .../nodes/generated/categories_view_node.py | 16 +- .../{Circulator.py => circulator.py} | 101 ++++-- .../nodes/generated/coupling_link_node.py | 28 +- .../nodes/generated/coupling_trace_node.py | 131 ++++--- .../nodes/generated/couplings_node.py | 32 +- .../nodes/generated/custom_coupling_node.py | 60 +-- .../nodes/generated/emi_plot_marker_node.py | 131 ++++--- .../nodes/generated/emit_scene_node.py | 39 +- .../nodes/generated/erceg_coupling_node.py | 147 +++++--- .../nodes/generated/{Filter.py => filter.py} | 161 ++++++--- .../nodes/generated/five_g_channel_model.py | 165 +++++---- .../nodes/generated/hata_coupling_node.py | 147 +++++--- .../indoor_propagation_coupling_node.py | 159 ++++---- .../generated/{Isolator.py => isolator.py} | 101 ++++-- .../generated/log_distance_coupling_node.py | 153 +++++--- .../nodes/generated/mplex_band_trace_node.py | 86 +++-- .../{Multiplexer.py => multiplexer.py} | 59 +-- .../nodes/generated/multiplexer_band.py | 89 +++-- .../nodes/generated/outboard_trace_node.py | 87 +++-- .../parametric_coupling_trace_node.py | 93 +++-- .../nodes/generated/plot_marker_node.py | 143 +++++--- .../emit_core/nodes/generated/plot_node.py | 179 +++++---- .../nodes/generated/power_divider.py | 103 ++++-- .../nodes/generated/power_trace_node.py | 85 +++-- .../nodes/generated/profile_trace_node.py | 79 ++-- .../propagation_loss_coupling_node.py | 141 +++++--- .../emit_core/nodes/generated/radio_node.py | 30 +- .../nodes/generated/read_only_amplifier.py | 21 +- .../nodes/generated/read_only_antenna_node.py | 85 +++-- .../generated/read_only_antenna_passband.py | 18 +- .../nodes/generated/read_only_band.py | 49 ++- .../nodes/generated/read_only_band_folder.py | 16 +- .../nodes/generated/read_only_cable.py | 23 +- .../nodes/generated/read_only_cad_node.py | 43 +-- .../nodes/generated/read_only_circulator.py | 29 +- .../generated/read_only_coupling_link_node.py | 20 +- .../generated/read_only_couplings_node.py | 18 +- .../read_only_custom_coupling_node.py | 34 +- .../generated/read_only_emit_scene_node.py | 23 +- .../read_only_erceg_coupling_node.py | 37 +- .../nodes/generated/read_only_filter.py | 35 +- .../read_only_five_g_channel_model.py | 43 +-- .../generated/read_only_hata_coupling_node.py | 37 +- ...d_only_indoor_propagation_coupling_node.py | 45 ++- .../nodes/generated/read_only_isolator.py | 29 +- .../read_only_log_distance_coupling_node.py | 37 +- .../nodes/generated/read_only_multiplexer.py | 29 +- .../generated/read_only_multiplexer_band.py | 21 +- .../generated/read_only_power_divider.py | 29 +- ...ead_only_propagation_loss_coupling_node.py | 35 +- .../nodes/generated/read_only_radio_node.py | 26 +- .../nodes/generated/read_only_rx_meas_node.py | 35 +- .../read_only_rx_mixer_product_node.py | 27 +- .../generated/read_only_rx_saturation_node.py | 16 +- .../read_only_rx_selectivity_node.py | 18 +- .../nodes/generated/read_only_rx_spur_node.py | 27 +- .../read_only_rx_susceptibility_prof_node.py | 31 +- .../generated/read_only_sampling_node.py | 33 +- .../generated/read_only_scene_group_node.py | 25 +- .../read_only_solution_coupling_node.py | 24 +- .../generated/read_only_solutions_node.py | 18 +- .../nodes/generated/read_only_terminator.py | 25 +- .../read_only_touchstone_coupling_node.py | 32 +- .../nodes/generated/read_only_tr_switch.py | 27 +- ...ad_only_two_ray_path_loss_coupling_node.py | 35 +- .../read_only_tx_bb_emission_node.py | 25 +- .../generated/read_only_tx_harmonic_node.py | 19 +- .../nodes/generated/read_only_tx_meas_node.py | 22 +- .../read_only_tx_nb_emission_node.py | 21 +- ...read_only_tx_spectral_prof_emitter_node.py | 24 +- .../read_only_tx_spectral_prof_node.py | 31 +- .../nodes/generated/read_only_tx_spur_node.py | 27 +- .../read_only_walfisch_coupling_node.py | 39 +- .../nodes/generated/read_only_waveform.py | 37 +- .../nodes/generated/result_plot_node.py | 185 ++++++---- .../emit_core/nodes/generated/rx_meas_node.py | 131 ++++--- .../nodes/generated/rx_mixer_product_node.py | 123 ++++--- .../nodes/generated/rx_saturation_node.py | 20 +- .../nodes/generated/rx_selectivity_node.py | 26 +- .../emit_core/nodes/generated/rx_spur_node.py | 35 +- .../generated/rx_susceptibility_prof_node.py | 117 +++--- .../nodes/generated/sampling_node.py | 57 +-- .../nodes/generated/scene_group_node.py | 63 ++-- .../nodes/generated/selectivity_trace_node.py | 79 ++-- .../nodes/generated/solution_coupling_node.py | 40 +- .../nodes/generated/solutions_node.py | 22 +- .../nodes/generated/spur_trace_node.py | 87 +++-- .../{Terminator.py => terminator.py} | 53 +-- .../nodes/generated/test_noise_trace_node.py | 129 ++++--- .../nodes/generated/top_level_simulation.py | 16 +- .../generated/touchstone_coupling_node.py | 64 ++-- .../generated/{TR_Switch.py => tr_switch.py} | 101 ++++-- .../nodes/generated/tr_switch_trace_node.py | 87 +++-- .../nodes/generated/tunable_trace_node.py | 95 +++-- .../two_ray_path_loss_coupling_node.py | 151 +++++--- .../nodes/generated/two_tone_trace_node.py | 129 ++++--- .../nodes/generated/tx_bb_emission_node.py | 39 +- .../nodes/generated/tx_harmonic_node.py | 29 +- .../emit_core/nodes/generated/tx_meas_node.py | 46 +-- .../nodes/generated/tx_nb_emission_node.py | 37 +- .../tx_spectral_prof_emitter_node.py | 90 +++-- .../nodes/generated/tx_spectral_prof_node.py | 161 +++++---- .../emit_core/nodes/generated/tx_spur_node.py | 35 +- .../nodes/generated/walfisch_coupling_node.py | 179 +++++---- .../generated/{Waveform.py => waveform.py} | 181 ++++++---- .../aedt/core/emit_core/results/revision.py | 48 +-- tests/system/solvers/test_26_emit.py | 2 +- 117 files changed, 4796 insertions(+), 3464 deletions(-) rename src/ansys/aedt/core/emit_core/nodes/generated/{Amplifier.py => amplifier.py} (71%) rename src/ansys/aedt/core/emit_core/nodes/generated/{Band.py => band.py} (71%) rename src/ansys/aedt/core/emit_core/nodes/generated/{Cable.py => cable.py} (72%) rename src/ansys/aedt/core/emit_core/nodes/generated/{Circulator.py => circulator.py} (71%) rename src/ansys/aedt/core/emit_core/nodes/generated/{Filter.py => filter.py} (70%) rename src/ansys/aedt/core/emit_core/nodes/generated/{Isolator.py => isolator.py} (71%) rename src/ansys/aedt/core/emit_core/nodes/generated/{Multiplexer.py => multiplexer.py} (75%) rename src/ansys/aedt/core/emit_core/nodes/generated/{Terminator.py => terminator.py} (74%) rename src/ansys/aedt/core/emit_core/nodes/generated/{TR_Switch.py => tr_switch.py} (70%) rename src/ansys/aedt/core/emit_core/nodes/generated/{Waveform.py => waveform.py} (71%) diff --git a/src/ansys/aedt/core/emit_core/nodes/emit_node.py b/src/ansys/aedt/core/emit_core/nodes/emit_node.py index 2d4e0dffbe0..9c789b5240f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/emit_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/emit_node.py @@ -143,7 +143,7 @@ def _get_node(self, node_id: int): -------- >>> new_node = node._get_node(node_id) """ - from . import generated + from ansys.aedt.core.emit_core.nodes import generated props = self._oRevisionData.GetEmitNodeProperties(self._result_id, node_id, True) props = self.props_to_dict(props) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index 1cb32f85690..255b60e62e6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,35 +1,11 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from .amplifier import Amplifier from .antenna_node import AntennaNode from .antenna_passband import AntennaPassband from .band import Band from .band_folder import BandFolder from .band_trace_node import BandTraceNode -from .cable import Cable from .cad_node import CADNode +from .cable import Cable from .categories_view_node import CategoriesViewNode from .circulator import Circulator from .coupling_link_node import CouplingLinkNode @@ -57,13 +33,44 @@ from .profile_trace_node import ProfileTraceNode from .propagation_loss_coupling_node import PropagationLossCouplingNode from .radio_node import RadioNode +from .result_plot_node import ResultPlotNode +from .rx_meas_node import RxMeasNode +from .rx_mixer_product_node import RxMixerProductNode +from .rx_saturation_node import RxSaturationNode +from .rx_selectivity_node import RxSelectivityNode +from .rx_spur_node import RxSpurNode +from .rx_susceptibility_prof_node import RxSusceptibilityProfNode +from .sampling_node import SamplingNode +from .scene_group_node import SceneGroupNode +from .selectivity_trace_node import SelectivityTraceNode +from .solution_coupling_node import SolutionCouplingNode +from .solutions_node import SolutionsNode +from .spur_trace_node import SpurTraceNode +from .tr_switch import TR_Switch +from .tr_switch_trace_node import TRSwitchTraceNode +from .terminator import Terminator +from .test_noise_trace_node import TestNoiseTraceNode +from .top_level_simulation import TopLevelSimulation +from .touchstone_coupling_node import TouchstoneCouplingNode +from .tunable_trace_node import TunableTraceNode +from .two_ray_path_loss_coupling_node import TwoRayPathLossCouplingNode +from .two_tone_trace_node import TwoToneTraceNode +from .tx_bb_emission_node import TxBbEmissionNode +from .tx_harmonic_node import TxHarmonicNode +from .tx_meas_node import TxMeasNode +from .tx_nb_emission_node import TxNbEmissionNode +from .tx_spectral_prof_emitter_node import TxSpectralProfEmitterNode +from .tx_spectral_prof_node import TxSpectralProfNode +from .tx_spur_node import TxSpurNode +from .walfisch_coupling_node import WalfischCouplingNode +from .waveform import Waveform from .read_only_amplifier import ReadOnlyAmplifier from .read_only_antenna_node import ReadOnlyAntennaNode from .read_only_antenna_passband import ReadOnlyAntennaPassband from .read_only_band import ReadOnlyBand from .read_only_band_folder import ReadOnlyBandFolder -from .read_only_cable import ReadOnlyCable from .read_only_cad_node import ReadOnlyCADNode +from .read_only_cable import ReadOnlyCable from .read_only_circulator import ReadOnlyCirculator from .read_only_coupling_link_node import ReadOnlyCouplingLinkNode from .read_only_couplings_node import ReadOnlyCouplingsNode @@ -91,9 +98,9 @@ from .read_only_scene_group_node import ReadOnlySceneGroupNode from .read_only_solution_coupling_node import ReadOnlySolutionCouplingNode from .read_only_solutions_node import ReadOnlySolutionsNode +from .read_only_tr_switch import ReadOnlyTR_Switch from .read_only_terminator import ReadOnlyTerminator from .read_only_touchstone_coupling_node import ReadOnlyTouchstoneCouplingNode -from .read_only_tr_switch import ReadOnlyTR_Switch from .read_only_two_ray_path_loss_coupling_node import ReadOnlyTwoRayPathLossCouplingNode from .read_only_tx_bb_emission_node import ReadOnlyTxBbEmissionNode from .read_only_tx_harmonic_node import ReadOnlyTxHarmonicNode @@ -104,150 +111,119 @@ from .read_only_tx_spur_node import ReadOnlyTxSpurNode from .read_only_walfisch_coupling_node import ReadOnlyWalfischCouplingNode from .read_only_waveform import ReadOnlyWaveform -from .result_plot_node import ResultPlotNode -from .rx_meas_node import RxMeasNode -from .rx_mixer_product_node import RxMixerProductNode -from .rx_saturation_node import RxSaturationNode -from .rx_selectivity_node import RxSelectivityNode -from .rx_spur_node import RxSpurNode -from .rx_susceptibility_prof_node import RxSusceptibilityProfNode -from .sampling_node import SamplingNode -from .scene_group_node import SceneGroupNode -from .selectivity_trace_node import SelectivityTraceNode -from .solution_coupling_node import SolutionCouplingNode -from .solutions_node import SolutionsNode -from .spur_trace_node import SpurTraceNode -from .terminator import Terminator -from .test_noise_trace_node import TestNoiseTraceNode -from .top_level_simulation import TopLevelSimulation -from .touchstone_coupling_node import TouchstoneCouplingNode -from .tr_switch import TR_Switch -from .tr_switch_trace_node import TRSwitchTraceNode -from .tunable_trace_node import TunableTraceNode -from .two_ray_path_loss_coupling_node import TwoRayPathLossCouplingNode -from .two_tone_trace_node import TwoToneTraceNode -from .tx_bb_emission_node import TxBbEmissionNode -from .tx_harmonic_node import TxHarmonicNode -from .tx_meas_node import TxMeasNode -from .tx_nb_emission_node import TxNbEmissionNode -from .tx_spectral_prof_emitter_node import TxSpectralProfEmitterNode -from .tx_spectral_prof_node import TxSpectralProfNode -from .tx_spur_node import TxSpurNode -from .walfisch_coupling_node import WalfischCouplingNode -from .waveform import Waveform __all__ = [ - "Amplifier", - "AntennaNode", - "AntennaPassband", - "Band", - "BandFolder", - "BandTraceNode", - "CADNode", - "Cable", - "CategoriesViewNode", - "Circulator", - "CouplingLinkNode", - "CouplingTraceNode", - "CouplingsNode", - "CustomCouplingNode", - "EmiPlotMarkerNode", - "EmitSceneNode", - "ErcegCouplingNode", - "Filter", - "FiveGChannelModel", - "HataCouplingNode", - "IndoorPropagationCouplingNode", - "Isolator", - "LogDistanceCouplingNode", - "MPlexBandTraceNode", - "Multiplexer", - "MultiplexerBand", - "OutboardTraceNode", - "ParametricCouplingTraceNode", - "PlotMarkerNode", - "PlotNode", - "PowerDivider", - "PowerTraceNode", - "ProfileTraceNode", - "PropagationLossCouplingNode", - "RadioNode", - "ResultPlotNode", - "RxMeasNode", - "RxMixerProductNode", - "RxSaturationNode", - "RxSelectivityNode", - "RxSpurNode", - "RxSusceptibilityProfNode", - "SamplingNode", - "SceneGroupNode", - "SelectivityTraceNode", - "SolutionCouplingNode", - "SolutionsNode", - "SpurTraceNode", - "TR_Switch", - "TRSwitchTraceNode", - "Terminator", - "TestNoiseTraceNode", - "TopLevelSimulation", - "TouchstoneCouplingNode", - "TunableTraceNode", - "TwoRayPathLossCouplingNode", - "TwoToneTraceNode", - "TxBbEmissionNode", - "TxHarmonicNode", - "TxMeasNode", - "TxNbEmissionNode", - "TxSpectralProfEmitterNode", - "TxSpectralProfNode", - "TxSpurNode", - "WalfischCouplingNode", - "Waveform", - "ReadOnlyAmplifier", - "ReadOnlyAntennaNode", - "ReadOnlyAntennaPassband", - "ReadOnlyBand", - "ReadOnlyBandFolder", - "ReadOnlyCADNode", - "ReadOnlyCable", - "ReadOnlyCirculator", - "ReadOnlyCouplingLinkNode", - "ReadOnlyCouplingsNode", - "ReadOnlyCustomCouplingNode", - "ReadOnlyEmitSceneNode", - "ReadOnlyErcegCouplingNode", - "ReadOnlyFilter", - "ReadOnlyFiveGChannelModel", - "ReadOnlyHataCouplingNode", - "ReadOnlyIndoorPropagationCouplingNode", - "ReadOnlyIsolator", - "ReadOnlyLogDistanceCouplingNode", - "ReadOnlyMultiplexer", - "ReadOnlyMultiplexerBand", - "ReadOnlyPowerDivider", - "ReadOnlyPropagationLossCouplingNode", - "ReadOnlyRadioNode", - "ReadOnlyRxMeasNode", - "ReadOnlyRxMixerProductNode", - "ReadOnlyRxSaturationNode", - "ReadOnlyRxSelectivityNode", - "ReadOnlyRxSpurNode", - "ReadOnlyRxSusceptibilityProfNode", - "ReadOnlySamplingNode", - "ReadOnlySceneGroupNode", - "ReadOnlySolutionCouplingNode", - "ReadOnlySolutionsNode", - "ReadOnlyTR_Switch", - "ReadOnlyTerminator", - "ReadOnlyTouchstoneCouplingNode", - "ReadOnlyTwoRayPathLossCouplingNode", - "ReadOnlyTxBbEmissionNode", - "ReadOnlyTxHarmonicNode", - "ReadOnlyTxMeasNode", - "ReadOnlyTxNbEmissionNode", - "ReadOnlyTxSpectralProfEmitterNode", - "ReadOnlyTxSpectralProfNode", - "ReadOnlyTxSpurNode", - "ReadOnlyWalfischCouplingNode", - "ReadOnlyWaveform", + 'Amplifier', + 'AntennaNode', + 'AntennaPassband', + 'Band', + 'BandFolder', + 'BandTraceNode', + 'CADNode', + 'Cable', + 'CategoriesViewNode', + 'Circulator', + 'CouplingLinkNode', + 'CouplingTraceNode', + 'CouplingsNode', + 'CustomCouplingNode', + 'EmiPlotMarkerNode', + 'EmitSceneNode', + 'ErcegCouplingNode', + 'Filter', + 'FiveGChannelModel', + 'HataCouplingNode', + 'IndoorPropagationCouplingNode', + 'Isolator', + 'LogDistanceCouplingNode', + 'MPlexBandTraceNode', + 'Multiplexer', + 'MultiplexerBand', + 'OutboardTraceNode', + 'ParametricCouplingTraceNode', + 'PlotMarkerNode', + 'PlotNode', + 'PowerDivider', + 'PowerTraceNode', + 'ProfileTraceNode', + 'PropagationLossCouplingNode', + 'RadioNode', + 'ResultPlotNode', + 'RxMeasNode', + 'RxMixerProductNode', + 'RxSaturationNode', + 'RxSelectivityNode', + 'RxSpurNode', + 'RxSusceptibilityProfNode', + 'SamplingNode', + 'SceneGroupNode', + 'SelectivityTraceNode', + 'SolutionCouplingNode', + 'SolutionsNode', + 'SpurTraceNode', + 'TR_Switch', + 'TRSwitchTraceNode', + 'Terminator', + 'TestNoiseTraceNode', + 'TopLevelSimulation', + 'TouchstoneCouplingNode', + 'TunableTraceNode', + 'TwoRayPathLossCouplingNode', + 'TwoToneTraceNode', + 'TxBbEmissionNode', + 'TxHarmonicNode', + 'TxMeasNode', + 'TxNbEmissionNode', + 'TxSpectralProfEmitterNode', + 'TxSpectralProfNode', + 'TxSpurNode', + 'WalfischCouplingNode', + 'Waveform', + 'ReadOnlyAmplifier', + 'ReadOnlyAntennaNode', + 'ReadOnlyAntennaPassband', + 'ReadOnlyBand', + 'ReadOnlyBandFolder', + 'ReadOnlyCADNode', + 'ReadOnlyCable', + 'ReadOnlyCirculator', + 'ReadOnlyCouplingLinkNode', + 'ReadOnlyCouplingsNode', + 'ReadOnlyCustomCouplingNode', + 'ReadOnlyEmitSceneNode', + 'ReadOnlyErcegCouplingNode', + 'ReadOnlyFilter', + 'ReadOnlyFiveGChannelModel', + 'ReadOnlyHataCouplingNode', + 'ReadOnlyIndoorPropagationCouplingNode', + 'ReadOnlyIsolator', + 'ReadOnlyLogDistanceCouplingNode', + 'ReadOnlyMultiplexer', + 'ReadOnlyMultiplexerBand', + 'ReadOnlyPowerDivider', + 'ReadOnlyPropagationLossCouplingNode', + 'ReadOnlyRadioNode', + 'ReadOnlyRxMeasNode', + 'ReadOnlyRxMixerProductNode', + 'ReadOnlyRxSaturationNode', + 'ReadOnlyRxSelectivityNode', + 'ReadOnlyRxSpurNode', + 'ReadOnlyRxSusceptibilityProfNode', + 'ReadOnlySamplingNode', + 'ReadOnlySceneGroupNode', + 'ReadOnlySolutionCouplingNode', + 'ReadOnlySolutionsNode', + 'ReadOnlyTR_Switch', + 'ReadOnlyTerminator', + 'ReadOnlyTouchstoneCouplingNode', + 'ReadOnlyTwoRayPathLossCouplingNode', + 'ReadOnlyTxBbEmissionNode', + 'ReadOnlyTxHarmonicNode', + 'ReadOnlyTxMeasNode', + 'ReadOnlyTxNbEmissionNode', + 'ReadOnlyTxSpectralProfEmitterNode', + 'ReadOnlyTxSpectralProfNode', + 'ReadOnlyTxSpurNode', + 'ReadOnlyWalfischCouplingNode', + 'ReadOnlyWaveform', ] diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/amplifier.py similarity index 71% rename from src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py rename to src/ansys/aedt/core/emit_core/nodes/generated/amplifier.py index f6a6773b7a2..d40968c90d2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/amplifier.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Amplifier(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -57,7 +53,9 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -70,21 +68,25 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class AmplifierTypeOption(Enum): TRANSMIT_AMPLIFIER = "Transmit Amplifier" @@ -95,14 +97,16 @@ def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type Configures the amplifier as a Tx or Rx amplifier - """ + """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val.upper()] return val @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Type={value.value}"]) @property def gain(self) -> float: @@ -115,8 +119,10 @@ def gain(self) -> float: return float(val) @gain.setter - def gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Gain={value}"]) + def gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Gain={value}"]) @property def center_frequency(self) -> float: @@ -130,9 +136,11 @@ def center_frequency(self) -> float: return float(val) @center_frequency.setter - def center_frequency(self, value: float | str): + def center_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Center Frequency={value}"]) @property def bandwidth(self) -> float: @@ -146,9 +154,11 @@ def bandwidth(self) -> float: return float(val) @bandwidth.setter - def bandwidth(self, value: float | str): + def bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth={value}"]) @property def noise_figure(self) -> float: @@ -161,8 +171,10 @@ def noise_figure(self) -> float: return float(val) @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def saturation_level(self) -> float: @@ -176,9 +188,11 @@ def saturation_level(self) -> float: return float(val) @saturation_level.setter - def saturation_level(self, value: float | str): + def saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Saturation Level={value}"]) @property def p1_db_point_ref_input(self) -> float: @@ -192,9 +206,11 @@ def p1_db_point_ref_input(self) -> float: return float(val) @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value: float | str): + def p1_db_point_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input={value}"]) @property def ip3_ref_input(self) -> float: @@ -208,9 +224,11 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def shape_factor(self) -> float: @@ -223,8 +241,10 @@ def shape_factor(self) -> float: return float(val) @shape_factor.setter - def shape_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) + def shape_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Shape Factor={value}"]) @property def reverse_isolation(self) -> float: @@ -237,8 +257,10 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -252,4 +274,7 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py index 813ae024e36..db7dbccfe04 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class AntennaNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -59,13 +55,15 @@ def tags(self) -> str: """Tags Space delimited list of tags for coupling selections - """ + """ val = self._get_property("Tags") return val @tags.setter def tags(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tags={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tags={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -76,13 +74,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val == true + return (val == true) @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): @@ -96,7 +94,9 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): @@ -110,7 +110,9 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -121,14 +123,16 @@ def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -142,7 +146,9 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): @@ -156,7 +162,9 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def position_defined(self) -> bool: @@ -166,11 +174,13 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return val == true + return (val == true) @position_defined.setter def position_defined(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Defined={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position Defined={value}"]) @property def antenna_temperature(self) -> float: @@ -183,21 +193,25 @@ def antenna_temperature(self) -> float: return float(val) @antenna_temperature.setter - def antenna_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna Temperature={value}"]) + def antenna_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna Temperature={value}"]) @property def type(self): """Type Defines the type of antenna - """ + """ val = self._get_property("Type") return val @type.setter def type(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value}"]) @property def antenna_file(self) -> str: @@ -209,7 +223,9 @@ def antenna_file(self) -> str: @antenna_file.setter def antenna_file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna File={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna File={value}"]) @property def project_name(self) -> str: @@ -223,7 +239,9 @@ def project_name(self) -> str: @project_name.setter def project_name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Project Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Project Name={value}"]) @property def peak_gain(self) -> float: @@ -236,8 +254,10 @@ def peak_gain(self) -> float: return float(val) @peak_gain.setter - def peak_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Gain={value}"]) + def peak_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Peak Gain={value}"]) class BoresightOption(Enum): XAXIS = "+X Axis" @@ -249,14 +269,16 @@ def boresight(self) -> BoresightOption: """Boresight Select peak beam direction in local coordinates - """ + """ val = self._get_property("Boresight") val = self.BoresightOption[val.upper()] return val @boresight.setter def boresight(self, value: BoresightOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Boresight={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Boresight={value.value}"]) @property def vertical_beamwidth(self) -> float: @@ -269,8 +291,10 @@ def vertical_beamwidth(self) -> float: return float(val) @vertical_beamwidth.setter - def vertical_beamwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Beamwidth={value}"]) + def vertical_beamwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Beamwidth={value}"]) @property def horizontal_beamwidth(self) -> float: @@ -283,8 +307,10 @@ def horizontal_beamwidth(self) -> float: return float(val) @horizontal_beamwidth.setter - def horizontal_beamwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Beamwidth={value}"]) + def horizontal_beamwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Beamwidth={value}"]) @property def extra_sidelobe(self) -> bool: @@ -294,11 +320,13 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return val == true + return (val == true) @extra_sidelobe.setter def extra_sidelobe(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Extra Sidelobe={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Extra Sidelobe={value}"]) @property def first_sidelobe_level(self) -> float: @@ -312,8 +340,10 @@ def first_sidelobe_level(self) -> float: return float(val) @first_sidelobe_level.setter - def first_sidelobe_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Level={value}"]) + def first_sidelobe_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Level={value}"]) @property def first_sidelobe_vert_bw(self) -> float: @@ -326,8 +356,10 @@ def first_sidelobe_vert_bw(self) -> float: return float(val) @first_sidelobe_vert_bw.setter - def first_sidelobe_vert_bw(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Vert. BW={value}"]) + def first_sidelobe_vert_bw(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Vert. BW={value}"]) @property def first_sidelobe_hor_bw(self) -> float: @@ -340,8 +372,10 @@ def first_sidelobe_hor_bw(self) -> float: return float(val) @first_sidelobe_hor_bw.setter - def first_sidelobe_hor_bw(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Hor. BW={value}"]) + def first_sidelobe_hor_bw(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Hor. BW={value}"]) @property def outerbacklobe_level(self) -> float: @@ -354,8 +388,10 @@ def outerbacklobe_level(self) -> float: return float(val) @outerbacklobe_level.setter - def outerbacklobe_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Outer/Backlobe Level={value}"]) + def outerbacklobe_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Outer/Backlobe Level={value}"]) @property def resonant_frequency(self) -> float: @@ -370,9 +406,11 @@ def resonant_frequency(self) -> float: return float(val) @resonant_frequency.setter - def resonant_frequency(self, value: float | str): + def resonant_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resonant Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Resonant Frequency={value}"]) @property def slot_length(self) -> float: @@ -386,9 +424,11 @@ def slot_length(self) -> float: return float(val) @slot_length.setter - def slot_length(self, value: float | str): + def slot_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Slot Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Slot Length={value}"]) @property def mouth_width(self) -> float: @@ -402,9 +442,11 @@ def mouth_width(self) -> float: return float(val) @mouth_width.setter - def mouth_width(self, value: float | str): + def mouth_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Width={value}"]) @property def mouth_height(self) -> float: @@ -418,9 +460,11 @@ def mouth_height(self) -> float: return float(val) @mouth_height.setter - def mouth_height(self, value: float | str): + def mouth_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Height={value}"]) @property def waveguide_width(self) -> float: @@ -435,9 +479,11 @@ def waveguide_width(self) -> float: return float(val) @waveguide_width.setter - def waveguide_width(self, value: float | str): + def waveguide_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveguide Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Waveguide Width={value}"]) @property def width_flare_half_angle(self) -> float: @@ -451,8 +497,10 @@ def width_flare_half_angle(self) -> float: return float(val) @width_flare_half_angle.setter - def width_flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width Flare Half-angle={value}"]) + def width_flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Width Flare Half-angle={value}"]) @property def height_flare_half_angle(self) -> float: @@ -466,8 +514,10 @@ def height_flare_half_angle(self) -> float: return float(val) @height_flare_half_angle.setter - def height_flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height Flare Half-angle={value}"]) + def height_flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Height Flare Half-angle={value}"]) @property def mouth_diameter(self) -> float: @@ -481,9 +531,11 @@ def mouth_diameter(self) -> float: return float(val) @mouth_diameter.setter - def mouth_diameter(self, value: float | str): + def mouth_diameter(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Diameter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Diameter={value}"]) @property def flare_half_angle(self) -> float: @@ -497,8 +549,10 @@ def flare_half_angle(self) -> float: return float(val) @flare_half_angle.setter - def flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flare Half-angle={value}"]) + def flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Flare Half-angle={value}"]) @property def vswr(self) -> float: @@ -512,8 +566,10 @@ def vswr(self) -> float: return float(val) @vswr.setter - def vswr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) + def vswr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"VSWR={value}"]) class AntennaPolarizationOption(Enum): VERTICAL = "Vertical" @@ -526,16 +582,16 @@ def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val.upper()] return val @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Antenna Polarization={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna Polarization={value.value}"]) class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" @@ -546,14 +602,16 @@ def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode Choose the Cross Dipole type - """ + """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val.upper()] return val @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Cross Dipole Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Cross Dipole Mode={value.value}"]) class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" @@ -564,16 +622,16 @@ def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val.upper()] return val @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Cross Dipole Polarization={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Cross Dipole Polarization={value.value}"]) @property def override_height(self) -> bool: @@ -584,11 +642,13 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return val == true + return (val == true) @override_height.setter def override_height(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Override Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Override Height={value}"]) @property def offset_height(self) -> float: @@ -602,9 +662,11 @@ def offset_height(self) -> float: return float(val) @offset_height.setter - def offset_height(self, value: float | str): + def offset_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Offset Height={value}"]) @property def auto_height_offset(self) -> bool: @@ -615,11 +677,13 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return val == true + return (val == true) @auto_height_offset.setter def auto_height_offset(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Auto Height Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Auto Height Offset={value}"]) @property def conform__adjust_antenna(self) -> bool: @@ -629,11 +693,13 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return val == true + return (val == true) @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform / Adjust Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform / Adjust Antenna={value}"]) @property def element_offset(self): @@ -647,7 +713,9 @@ def element_offset(self): @element_offset.setter def element_offset(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Element Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Element Offset={value}"]) class ConformtoPlatformOption(Enum): NONE = "None" @@ -659,16 +727,16 @@ def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform Select method of automated conforming applied after Element Offset - """ + """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val.upper()] return val @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Conform to Platform={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform to Platform={value.value}"]) class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" @@ -680,14 +748,16 @@ def reference_plane(self) -> ReferencePlaneOption: """Reference Plane Select reference plane for determining original element heights - """ + """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val.upper()] return val @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reference Plane={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reference Plane={value.value}"]) @property def conform_element_orientation(self) -> bool: @@ -698,13 +768,13 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return val == true + return (val == true) @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Conform Element Orientation={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform Element Orientation={value}"]) @property def show_axes(self) -> bool: @@ -714,11 +784,13 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val == true + return (val == true) @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def show_icon(self) -> bool: @@ -728,11 +800,13 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return val == true + return (val == true) @show_icon.setter def show_icon(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Icon={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Icon={value}"]) @property def size(self) -> float: @@ -745,8 +819,10 @@ def size(self) -> float: return float(val) @size.setter - def size(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Size={value}"]) + def size(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Size={value}"]) @property def color(self): @@ -760,14 +836,16 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def el_sample_interval(self) -> float: """El Sample Interval Space between elevation-angle samples of pattern - """ + """ val = self._get_property("El Sample Interval") return float(val) @@ -776,7 +854,7 @@ def az_sample_interval(self) -> float: """Az Sample Interval Space between azimuth-angle samples of pattern - """ + """ val = self._get_property("Az Sample Interval") return float(val) @@ -788,14 +866,14 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return val == true + return (val == true) @property def frequency_domain(self): """Frequency Domain Frequency sample(s) defining antenna - """ + """ val = self._get_property("Frequency Domain") return val @@ -804,7 +882,7 @@ def number_of_electric_sources(self) -> int: """Number of Electric Sources Number of freestanding electric current sources defining antenna - """ + """ val = self._get_property("Number of Electric Sources") return int(val) @@ -813,7 +891,7 @@ def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources Number of freestanding magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Magnetic Sources") return int(val) @@ -823,7 +901,7 @@ def number_of_imaged_electric_sources(self) -> int: Number of imaged, half-space radiating electric current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Electric Sources") return int(val) @@ -833,7 +911,7 @@ def number_of_imaged_magnetic_sources(self) -> int: Number of imaged, half-space radiating magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Magnetic Sources") return int(val) @@ -843,7 +921,7 @@ def waveguide_height(self) -> float: Implied waveguide height (along local x-axis) where the flared horn walls meet the feed - """ + """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") return float(val) @@ -853,7 +931,7 @@ def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency Implied lowest operating frequency of pyramidal horn antenna - """ + """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -863,7 +941,7 @@ def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency Implied lowest operating frequency of conical horn antenna - """ + """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -879,16 +957,16 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: Select the method for stability-enhancing truncation of spherical wave expansion terms - """ + """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val.upper()] return val @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"SWE Mode Truncation={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SWE Mode Truncation={value.value}"]) @property def max_n_index(self) -> int: @@ -902,20 +980,24 @@ def max_n_index(self) -> int: @max_n_index.setter def max_n_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max N Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max N Index={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) @property def show_composite_passband(self) -> bool: @@ -925,11 +1007,13 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return val == true + return (val == true) @show_composite_passband.setter def show_composite_passband(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Composite Passband={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Composite Passband={value}"]) @property def use_phase_center(self) -> bool: @@ -939,18 +1023,20 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return val == true + return (val == true) @use_phase_center.setter def use_phase_center(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Phase Center={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Phase Center={value}"]) @property def coordinate_systems(self) -> str: """Coordinate Systems Specifies the coordinate system for the phase center of this antenna - """ + """ val = self._get_property("Coordinate Systems") return val @@ -973,3 +1059,4 @@ def phasecenterorientation(self): """ val = self._get_property("PhaseCenterOrientation") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py index 58c7ebbb47c..b2677b1f6a8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class AntennaPassband(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -51,7 +48,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -68,8 +65,10 @@ def passband_loss(self) -> float: return float(val) @passband_loss.setter - def passband_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Passband Loss={value}"]) + def passband_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Passband Loss={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -82,8 +81,10 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out of Band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out of Band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -97,9 +98,11 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -113,9 +116,11 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -129,9 +134,11 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -145,19 +152,24 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py b/src/ansys/aedt/core/emit_core/nodes/generated/band.py similarity index 71% rename from src/ansys/aedt/core/emit_core/nodes/generated/Band.py rename to src/ansys/aedt/core/emit_core/nodes/generated/band.py index f1125f37ba9..3001455d9e1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/band.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Band(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +37,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -52,13 +48,15 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") return val @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port={value}"]) @property def use_dd_1494_mode(self) -> bool: @@ -68,11 +66,13 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return val == true + return (val == true) @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use DD-1494 Mode={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use DD-1494 Mode={value}"]) @property def use_emission_designator(self) -> bool: @@ -82,31 +82,35 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return val == true + return (val == true) @use_emission_designator.setter def use_emission_designator(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Emission Designator={value}"]) @property def emission_designator(self) -> str: """Emission Designator Enter the Emission Designator to define the bandwidth and modulation - """ + """ val = self._get_property("Emission Designator") return val @emission_designator.setter def emission_designator(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Emission Designator={value}"]) @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW Channel Bandwidth based off the emission designator - """ + """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -116,7 +120,7 @@ def emit_modulation_type(self) -> str: """EMIT Modulation Type Modulation based off the emission designator - """ + """ val = self._get_property("EMIT Modulation Type") return val @@ -129,13 +133,13 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return val == true + return (val == true) @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Override Emission Designator BW={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Override Emission Designator BW={value}"]) @property def channel_bandwidth(self) -> float: @@ -149,9 +153,11 @@ def channel_bandwidth(self) -> float: return float(val) @channel_bandwidth.setter - def channel_bandwidth(self, value: float | str): + def channel_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Bandwidth={value}"]) class ModulationOption(Enum): GENERIC = "Generic" @@ -171,14 +177,16 @@ def modulation(self) -> ModulationOption: """Modulation Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Modulation") val = self.ModulationOption[val.upper()] return val @modulation.setter def modulation(self, value: ModulationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation={value.value}"]) @property def max_modulating_freq(self) -> float: @@ -192,9 +200,11 @@ def max_modulating_freq(self) -> float: return float(val) @max_modulating_freq.setter - def max_modulating_freq(self, value: float | str): + def max_modulating_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Modulating Freq.={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Modulating Freq.={value}"]) @property def modulation_index(self) -> float: @@ -207,8 +217,10 @@ def modulation_index(self) -> float: return float(val) @modulation_index.setter - def modulation_index(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Index={value}"]) + def modulation_index(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation Index={value}"]) @property def freq_deviation(self) -> float: @@ -222,9 +234,11 @@ def freq_deviation(self) -> float: return float(val) @freq_deviation.setter - def freq_deviation(self, value: float | str): + def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation={value}"]) @property def bit_rate(self) -> float: @@ -238,9 +252,11 @@ def bit_rate(self) -> float: return float(val) @bit_rate.setter - def bit_rate(self, value: float | str): + def bit_rate(self, value : float|str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bit Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bit Rate={value}"]) @property def sidelobes(self) -> int: @@ -254,11 +270,13 @@ def sidelobes(self) -> int: @sidelobes.setter def sidelobes(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sidelobes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sidelobes={value}"]) @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation FSK frequency deviation: helps determine spectral profile Value should be greater than 1. @@ -268,9 +286,11 @@ def freq_deviation_(self) -> float: return float(val) @freq_deviation_.setter - def freq_deviation_(self, value: float | str): + def freq_deviation_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation ={value}"]) class PSKTypeOption(Enum): BPSK = "BPSK" @@ -285,14 +305,16 @@ def psk_type(self) -> PSKTypeOption: """PSK Type PSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val.upper()] return val @psk_type.setter def psk_type(self, value: PSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"PSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"PSK Type={value.value}"]) class FSKTypeOption(Enum): FSK_2 = "FSK-2" @@ -304,14 +326,16 @@ def fsk_type(self) -> FSKTypeOption: """FSK Type FSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val.upper()] return val @fsk_type.setter def fsk_type(self, value: FSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FSK Type={value.value}"]) class QAMTypeOption(Enum): QAM_4 = "QAM-4" @@ -325,14 +349,16 @@ def qam_type(self) -> QAMTypeOption: """QAM Type QAM modulation order: helps determine spectral profile - """ + """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val.upper()] return val @qam_type.setter def qam_type(self, value: QAMTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"QAM Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"QAM Type={value.value}"]) class APSKTypeOption(Enum): APSK_4 = "APSK-4" @@ -346,14 +372,16 @@ def apsk_type(self) -> APSKTypeOption: """APSK Type APSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val.upper()] return val @apsk_type.setter def apsk_type(self, value: APSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"APSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"APSK Type={value.value}"]) @property def start_frequency(self) -> float: @@ -367,9 +395,11 @@ def start_frequency(self) -> float: return float(val) @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -383,9 +413,11 @@ def stop_frequency(self) -> float: return float(val) @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -399,9 +431,11 @@ def channel_spacing(self) -> float: return float(val) @channel_spacing.setter - def channel_spacing(self, value: float | str): + def channel_spacing(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Spacing={value}"]) @property def tx_offset(self) -> float: @@ -415,9 +449,11 @@ def tx_offset(self) -> float: return float(val) @tx_offset.setter - def tx_offset(self, value: float | str): + def tx_offset(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Offset={value}"]) class RadarTypeOption(Enum): CW = "CW" @@ -431,14 +467,16 @@ def radar_type(self) -> RadarTypeOption: """Radar Type Radar type: helps determine spectral profile - """ + """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val.upper()] return val @radar_type.setter def radar_type(self, value: RadarTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radar Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Radar Type={value.value}"]) @property def hopping_radar(self) -> bool: @@ -448,11 +486,13 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return val == true + return (val == true) @hopping_radar.setter def hopping_radar(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hopping Radar={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hopping Radar={value}"]) @property def post_october_2020_procurement(self) -> bool: @@ -463,13 +503,13 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return val == true + return (val == true) @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Post October 2020 Procurement={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Post October 2020 Procurement={value}"]) @property def hop_range_min_freq(self) -> float: @@ -483,9 +523,11 @@ def hop_range_min_freq(self) -> float: return float(val) @hop_range_min_freq.setter - def hop_range_min_freq(self, value: float | str): + def hop_range_min_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Min Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hop Range Min Freq={value}"]) @property def hop_range_max_freq(self) -> float: @@ -499,9 +541,11 @@ def hop_range_max_freq(self) -> float: return float(val) @hop_range_max_freq.setter - def hop_range_max_freq(self, value: float | str): + def hop_range_max_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Max Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hop Range Max Freq={value}"]) @property def pulse_duration(self) -> float: @@ -515,9 +559,11 @@ def pulse_duration(self) -> float: return float(val) @pulse_duration.setter - def pulse_duration(self, value: float | str): + def pulse_duration(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Duration={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Duration={value}"]) @property def pulse_rise_time(self) -> float: @@ -531,9 +577,11 @@ def pulse_rise_time(self) -> float: return float(val) @pulse_rise_time.setter - def pulse_rise_time(self, value: float | str): + def pulse_rise_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Rise Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Rise Time={value}"]) @property def pulse_fall_time(self) -> float: @@ -547,9 +595,11 @@ def pulse_fall_time(self) -> float: return float(val) @pulse_fall_time.setter - def pulse_fall_time(self, value: float | str): + def pulse_fall_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Fall Time={value}"]) @property def pulse_repetition_rate(self) -> float: @@ -562,8 +612,10 @@ def pulse_repetition_rate(self) -> float: return float(val) @pulse_repetition_rate.setter - def pulse_repetition_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Repetition Rate={value}"]) + def pulse_repetition_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Repetition Rate={value}"]) @property def number_of_chips(self) -> float: @@ -576,8 +628,10 @@ def number_of_chips(self) -> float: return float(val) @number_of_chips.setter - def number_of_chips(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Chips={value}"]) + def number_of_chips(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Chips={value}"]) @property def pulse_compression_ratio(self) -> float: @@ -590,8 +644,10 @@ def pulse_compression_ratio(self) -> float: return float(val) @pulse_compression_ratio.setter - def pulse_compression_ratio(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Compression Ratio={value}"]) + def pulse_compression_ratio(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Compression Ratio={value}"]) @property def fm_chirp_period(self) -> float: @@ -605,9 +661,11 @@ def fm_chirp_period(self) -> float: return float(val) @fm_chirp_period.setter - def fm_chirp_period(self, value: float | str): + def fm_chirp_period(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Chirp Period={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Chirp Period={value}"]) @property def fm_freq_deviation(self) -> float: @@ -621,9 +679,11 @@ def fm_freq_deviation(self) -> float: return float(val) @fm_freq_deviation.setter - def fm_freq_deviation(self, value: float | str): + def fm_freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Freq Deviation={value}"]) @property def fm_freq_dev_bandwidth(self) -> float: @@ -638,6 +698,9 @@ def fm_freq_dev_bandwidth(self) -> float: return float(val) @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value: float | str): + def fm_freq_dev_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Dev Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Freq Dev Bandwidth={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py b/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py index 528817256e3..25c5a5270e3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class BandFolder(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -51,3 +48,4 @@ def duplicate(self, new_name: str): def delete(self): """Delete this node""" self._delete() + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py index 87de24c5913..820a5a4919c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class BandTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -56,13 +52,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) class TxorRxOption(Enum): TX = "Tx" @@ -73,27 +71,31 @@ def tx_or_rx(self) -> TxorRxOption: """Tx or Rx Specifies whether the trace is a Tx or Rx channel - """ + """ val = self._get_property("Tx or Rx") val = self.TxorRxOption[val.upper()] return val @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx or Rx={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx or Rx={value.value}"]) @property def channel_frequency(self): """Channel Frequency Select band channel frequency to display - """ + """ val = self._get_property("Channel Frequency") return val @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: @@ -101,7 +103,7 @@ def transmit_frequency(self) -> float: The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset) - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -114,11 +116,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -128,24 +132,28 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -160,14 +168,16 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -181,7 +191,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -195,7 +207,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -219,14 +233,16 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -240,7 +256,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -254,7 +272,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -268,7 +288,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -279,8 +301,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/cable.py similarity index 72% rename from src/ansys/aedt/core/emit_core/nodes/generated/Cable.py rename to src/ansys/aedt/core/emit_core/nodes/generated/cable.py index 5bd9408f86a..6a1be19ecde 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/cable.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Cable(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -57,7 +53,9 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -70,21 +68,25 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -97,14 +99,16 @@ def type(self) -> TypeOption: Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def length(self) -> float: @@ -118,9 +122,11 @@ def length(self) -> float: return float(val) @length.setter - def length(self, value: float | str): + def length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Length={value}"]) @property def loss_per_length(self) -> float: @@ -133,8 +139,10 @@ def loss_per_length(self) -> float: return float(val) @loss_per_length.setter - def loss_per_length(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Loss Per Length={value}"]) + def loss_per_length(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Loss Per Length={value}"]) @property def measurement_length(self) -> float: @@ -148,9 +156,11 @@ def measurement_length(self) -> float: return float(val) @measurement_length.setter - def measurement_length(self, value: float | str): + def measurement_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Length={value}"]) @property def resistive_loss_constant(self) -> float: @@ -163,8 +173,10 @@ def resistive_loss_constant(self) -> float: return float(val) @resistive_loss_constant.setter - def resistive_loss_constant(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resistive Loss Constant={value}"]) + def resistive_loss_constant(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Resistive Loss Constant={value}"]) @property def dielectric_loss_constant(self) -> float: @@ -177,14 +189,17 @@ def dielectric_loss_constant(self) -> float: return float(val) @dielectric_loss_constant.setter - def dielectric_loss_constant(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Dielectric Loss Constant={value}"]) + def dielectric_loss_constant(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Dielectric Loss Constant={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py index bf08b1c8fba..8b6284c8804 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class CADNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -81,14 +77,16 @@ def model_type(self) -> ModelTypeOption: """Model Type Select type of parametric model to create - """ + """ val = self._get_property("Model Type") val = self.ModelTypeOption[val.upper()] return val @model_type.setter def model_type(self, value: ModelTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Model Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Model Type={value.value}"]) @property def length(self) -> float: @@ -102,9 +100,11 @@ def length(self) -> float: return float(val) @length.setter - def length(self, value: float | str): + def length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Length={value}"]) @property def width(self) -> float: @@ -118,9 +118,11 @@ def width(self) -> float: return float(val) @width.setter - def width(self, value: float | str): + def width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Width={value}"]) @property def height(self) -> float: @@ -134,9 +136,11 @@ def height(self) -> float: return float(val) @height.setter - def height(self, value: float | str): + def height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Height={value}"]) @property def angle(self) -> float: @@ -149,8 +153,10 @@ def angle(self) -> float: return float(val) @angle.setter - def angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Angle={value}"]) + def angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Angle={value}"]) @property def top_side(self) -> float: @@ -164,9 +170,11 @@ def top_side(self) -> float: return float(val) @top_side.setter - def top_side(self, value: float | str): + def top_side(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Top Side={value}"]) @property def top_radius(self) -> float: @@ -180,9 +188,11 @@ def top_radius(self) -> float: return float(val) @top_radius.setter - def top_radius(self, value: float | str): + def top_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Top Radius={value}"]) @property def side(self) -> float: @@ -196,9 +206,11 @@ def side(self) -> float: return float(val) @side.setter - def side(self, value: float | str): + def side(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Side={value}"]) @property def radius(self) -> float: @@ -212,9 +224,11 @@ def radius(self) -> float: return float(val) @radius.setter - def radius(self, value: float | str): + def radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Radius={value}"]) @property def base_radius(self) -> float: @@ -228,9 +242,11 @@ def base_radius(self) -> float: return float(val) @base_radius.setter - def base_radius(self, value: float | str): + def base_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Radius={value}"]) @property def center_radius(self) -> float: @@ -244,9 +260,11 @@ def center_radius(self) -> float: return float(val) @center_radius.setter - def center_radius(self, value: float | str): + def center_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Center Radius={value}"]) @property def x_axis_ellipsoid_radius(self) -> float: @@ -260,9 +278,11 @@ def x_axis_ellipsoid_radius(self) -> float: return float(val) @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value: float | str): + def x_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X Axis Ellipsoid Radius={value}"]) @property def y_axis_ellipsoid_radius(self) -> float: @@ -276,9 +296,11 @@ def y_axis_ellipsoid_radius(self) -> float: return float(val) @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value: float | str): + def y_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y Axis Ellipsoid Radius={value}"]) @property def z_axis_ellipsoid_radius(self) -> float: @@ -292,9 +314,11 @@ def z_axis_ellipsoid_radius(self) -> float: return float(val) @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value: float | str): + def z_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Z Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Z Axis Ellipsoid Radius={value}"]) @property def focal_length(self) -> float: @@ -308,24 +332,28 @@ def focal_length(self) -> float: return float(val) @focal_length.setter - def focal_length(self, value: float | str): + def focal_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Focal Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Focal Length={value}"]) @property def offset(self) -> float: """Offset Offset of parabolic reflector - """ + """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") return float(val) @offset.setter - def offset(self, value: float | str): + def offset(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Offset={value}"]) @property def x_direction_taper(self) -> float: @@ -339,8 +367,10 @@ def x_direction_taper(self) -> float: return float(val) @x_direction_taper.setter - def x_direction_taper(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Direction Taper={value}"]) + def x_direction_taper(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X Direction Taper={value}"]) @property def y_direction_taper(self) -> float: @@ -354,8 +384,10 @@ def y_direction_taper(self) -> float: return float(val) @y_direction_taper.setter - def y_direction_taper(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Direction Taper={value}"]) + def y_direction_taper(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y Direction Taper={value}"]) @property def prism_direction(self): @@ -369,7 +401,9 @@ def prism_direction(self): @prism_direction.setter def prism_direction(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Prism Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Prism Direction={value}"]) @property def closed_top(self) -> bool: @@ -379,11 +413,13 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return val == true + return (val == true) @closed_top.setter def closed_top(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Top={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Closed Top={value}"]) @property def closed_base(self) -> bool: @@ -393,11 +429,13 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return val == true + return (val == true) @closed_base.setter def closed_base(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Base={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Closed Base={value}"]) @property def mesh_density(self) -> int: @@ -412,7 +450,9 @@ def mesh_density(self) -> int: @mesh_density.setter def mesh_density(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Density={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mesh Density={value}"]) @property def use_symmetric_mesh(self) -> bool: @@ -423,11 +463,13 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return val == true + return (val == true) @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Symmetric Mesh={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Symmetric Mesh={value}"]) class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -438,14 +480,16 @@ def mesh_option(self) -> MeshOptionOption: """Mesh Option Select from different meshing options - """ + """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val.upper()] return val @mesh_option.setter def mesh_option(self, value: MeshOptionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Option={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mesh Option={value.value}"]) @property def coating_index(self) -> int: @@ -459,7 +503,9 @@ def coating_index(self) -> int: @coating_index.setter def coating_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Coating Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Coating Index={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -470,13 +516,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val == true + return (val == true) @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): @@ -490,7 +536,9 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): @@ -504,7 +552,9 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -515,14 +565,16 @@ def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -536,7 +588,9 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): @@ -550,7 +604,9 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def visible(self) -> bool: @@ -560,11 +616,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -577,14 +635,16 @@ def render_mode(self) -> RenderModeOption: """Render Mode Select drawing style for surfaces - """ + """ val = self._get_property("Render Mode") val = self.RenderModeOption[val.upper()] return val @render_mode.setter def render_mode(self, value: RenderModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Render Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Render Mode={value.value}"]) @property def show_axes(self) -> bool: @@ -594,11 +654,13 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val == true + return (val == true) @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def min(self): @@ -625,7 +687,7 @@ def number_of_surfaces(self) -> int: """Number of Surfaces Number of surfaces in the model - """ + """ val = self._get_property("Number of Surfaces") return int(val) @@ -641,17 +703,22 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py index f6c5ee604ce..0cc7e14fba0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py @@ -1,32 +1,30 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class CategoriesViewNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False EmitNode.__init__(self, emit_obj, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/circulator.py similarity index 71% rename from src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py rename to src/ansys/aedt/core/emit_core/nodes/generated/circulator.py index 9763d04c085..21b3e607370 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/circulator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Circulator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -57,7 +53,9 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -70,21 +68,25 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -96,14 +98,16 @@ def type(self) -> TypeOption: Type of circulator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -114,14 +118,16 @@ def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the circulator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -134,8 +140,10 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -146,11 +154,13 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val == true + return (val == true) @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -163,8 +173,10 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -175,11 +187,13 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val == true + return (val == true) @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -192,8 +206,10 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -207,9 +223,11 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -223,9 +241,11 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -239,9 +259,11 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -255,15 +277,18 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py index e8c782cc450..1c6c57fab1a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class CouplingLinkNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -44,11 +41,13 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def ports(self): @@ -56,10 +55,13 @@ def ports(self): Maps each port in the link to an antenna in the project "A list of values." - """ + """ val = self._get_property("Ports") return val @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ports={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py index 8f27d86e9fe..52b38e3a31a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class CouplingTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,23 +48,29 @@ def delete(self): @property def transmitter(self) -> EmitNode: - """Transmitter""" + """Transmitter + """ val = self._get_property("Transmitter") return val @transmitter.setter def transmitter(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Transmitter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Transmitter={value}"]) @property def receiver(self) -> EmitNode: - """Receiver""" + """Receiver + """ val = self._get_property("Receiver") return val @receiver.setter def receiver(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Receiver={value}"]) @property def data_source(self): @@ -76,13 +78,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -92,11 +96,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -106,24 +112,28 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -138,14 +148,16 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -159,7 +171,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -173,7 +187,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -197,14 +213,16 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -218,7 +236,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -232,7 +252,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -246,7 +268,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -257,11 +281,13 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def highlight_regions(self) -> bool: @@ -271,11 +297,13 @@ def highlight_regions(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Highlight Regions") - return val == true + return (val == true) @highlight_regions.setter def highlight_regions(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highlight Regions={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Highlight Regions={value}"]) @property def show_region_labels(self) -> bool: @@ -285,11 +313,13 @@ def show_region_labels(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Region Labels") - return val == true + return (val == true) @show_region_labels.setter def show_region_labels(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Region Labels={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Region Labels={value}"]) @property def font(self): @@ -303,7 +333,9 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): @@ -317,7 +349,9 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): @@ -331,7 +365,9 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: @@ -341,11 +377,13 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return val == true + return (val == true) @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: @@ -359,7 +397,9 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): @@ -373,4 +413,7 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py index e5e8bfc8bf4..8543cb64576 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class CouplingsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -33,7 +30,7 @@ def __init__(self, emit_obj, result_id, node_id): def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" - return self._import(file_name, "TouchstoneCoupling") + return self._import(file_name,"TouchstoneCoupling") def add_custom_coupling(self): """Add a new node to define custom coupling between antennas""" @@ -83,8 +80,10 @@ def minimum_allowed_coupling(self) -> float: return float(val) @minimum_allowed_coupling.setter - def minimum_allowed_coupling(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Allowed Coupling={value}"]) + def minimum_allowed_coupling(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minimum Allowed Coupling={value}"]) @property def global_default_coupling(self) -> float: @@ -97,14 +96,17 @@ def global_default_coupling(self) -> float: return float(val) @global_default_coupling.setter - def global_default_coupling(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Global Default Coupling={value}"]) + def global_default_coupling(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Global Default Coupling={value}"]) @property def antenna_tags(self) -> str: """Antenna Tags All tags currently used by all antennas in the project - """ + """ val = self._get_property("Antenna Tags") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py index fff9314625f..6a5209ba075 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class CustomCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,7 +35,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def rename(self, new_name: str): """Rename this node""" @@ -54,11 +51,11 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Value (dB): + "Value (dB): Value should be between -1000 and 0. """ return self._get_table_data() @@ -75,37 +72,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -115,11 +118,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -129,21 +134,26 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py index 65306c2efda..c324a974b16 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class EmiPlotMarkerNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,11 +54,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def attached(self): @@ -70,20 +68,22 @@ def attached(self): Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False) - """ + """ val = self._get_property("Attached") return val @attached.setter def attached(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Attached={value}"]) @property def position_x(self) -> float: """Position X Position of the marker on the X-axis (frequency axis). - """ + """ val = self._get_property("Position X") return float(val) @@ -92,7 +92,7 @@ def position_y(self) -> float: """Position Y Position of the marker on the Y-axis (result axis). - """ + """ val = self._get_property("Position Y") return float(val) @@ -105,11 +105,13 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return val == true + return (val == true) @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -123,8 +125,10 @@ def position_from_left(self) -> float: return float(val) @position_from_left.setter - def position_from_left(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) + def position_from_left(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -138,21 +142,25 @@ def position_from_top(self) -> float: return float(val) @position_from_top.setter - def position_from_top(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) + def position_from_top(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Top={value}"]) @property def text(self) -> str: """Text Set the text of the label - """ + """ val = self._get_property("Text") return val @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -164,16 +172,16 @@ def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position Specify horizontal position of the label as compared to the symbol - """ + """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val.upper()] return val @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Horizontal Position={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Position={value.value}"]) class VerticalPositionOption(Enum): TOP = "Top" @@ -185,14 +193,16 @@ def vertical_position(self) -> VerticalPositionOption: """Vertical Position Specify vertical position of the label as compared to the symbol - """ + """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val.upper()] return val @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -204,14 +214,16 @@ def text_alignment(self) -> TextAlignmentOption: """Text Alignment Specify justification applied to multi-line text - """ + """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val.upper()] return val @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text Alignment={value.value}"]) @property def font(self): @@ -225,7 +237,9 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): @@ -239,7 +253,9 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): @@ -253,7 +269,9 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: @@ -263,11 +281,13 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return val == true + return (val == true) @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: @@ -281,7 +301,9 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): @@ -295,7 +317,9 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -320,14 +344,16 @@ def symbol(self) -> SymbolOption: """Symbol Specify symbol displayed next to the label - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -341,7 +367,9 @@ def arrow_direction(self) -> int: @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -355,7 +383,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -369,7 +399,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -383,7 +415,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -394,8 +428,11 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return val == true + return (val == true) @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py index 799d2b928fc..8c8ab894f69 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class EmitSceneNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,13 +38,15 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class GroundPlaneNormalOption(Enum): X_AXIS = "X Axis" @@ -60,16 +58,16 @@ def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal Specifies the axis of the normal to the ground plane - """ + """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val.upper()] return val @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ground Plane Normal={value.value}"]) @property def gp_position_along_normal(self) -> float: @@ -77,12 +75,15 @@ def gp_position_along_normal(self) -> float: Offset of ground plane in direction normal to the ground planes orientation - """ + """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return float(val) @gp_position_along_normal.setter - def gp_position_along_normal(self, value: float | str): + def gp_position_along_normal(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GP Position Along Normal={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"GP Position Along Normal={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py index 935b7871aed..bf15e444452 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ErcegCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,37 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,24 +116,28 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class TerrainCategoryOption(Enum): TYPE_A = "Type A" @@ -141,14 +149,16 @@ def terrain_category(self) -> TerrainCategoryOption: """Terrain Category Specify the terrain category type for the Erceg model - """ + """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val.upper()] return val @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Terrain Category={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Terrain Category={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -162,8 +172,10 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -177,8 +189,10 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -192,8 +206,10 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -206,14 +222,16 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -227,8 +245,10 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -241,8 +261,10 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -252,11 +274,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -270,8 +294,10 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -284,8 +310,10 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -299,8 +327,10 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -311,13 +341,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -330,8 +360,10 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -344,8 +376,10 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -358,7 +392,8 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/filter.py similarity index 70% rename from src/ansys/aedt/core/emit_core/nodes/generated/Filter.py rename to src/ansys/aedt/core/emit_core/nodes/generated/filter.py index ed1ebd0933f..967e66a5efa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/filter.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Filter(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -57,7 +53,9 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -70,21 +68,25 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -101,14 +103,16 @@ def type(self) -> TypeOption: Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def insertion_loss(self) -> float: @@ -121,8 +125,10 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -135,8 +141,10 @@ def stop_band_attenuation(self) -> float: return float(val) @stop_band_attenuation.setter - def stop_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -150,9 +158,11 @@ def max_pass_band(self) -> float: return float(val) @max_pass_band.setter - def max_pass_band(self, value: float | str): + def max_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -166,9 +176,11 @@ def min_stop_band(self) -> float: return float(val) @min_stop_band.setter - def min_stop_band(self, value: float | str): + def min_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -182,9 +194,11 @@ def max_stop_band(self) -> float: return float(val) @max_stop_band.setter - def max_stop_band(self, value: float | str): + def max_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -198,9 +212,11 @@ def min_pass_band(self) -> float: return float(val) @min_pass_band.setter - def min_pass_band(self, value: float | str): + def min_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -214,9 +230,11 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -230,9 +248,11 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -246,9 +266,11 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -262,13 +284,15 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff Lower cutoff frequency Value should be between 1 and 1e+11. @@ -278,13 +302,15 @@ def lower_cutoff_(self) -> float: return float(val) @lower_cutoff_.setter - def lower_cutoff_(self, value: float | str): + def lower_cutoff_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff ={value}"]) @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band Lower stop band frequency Value should be between 1 and 1e+11. @@ -294,13 +320,15 @@ def lower_stop_band_(self) -> float: return float(val) @lower_stop_band_.setter - def lower_stop_band_(self, value: float | str): + def lower_stop_band_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band ={value}"]) @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band Higher stop band frequency Value should be between 1 and 1e+11. @@ -310,13 +338,15 @@ def higher_stop_band_(self) -> float: return float(val) @higher_stop_band_.setter - def higher_stop_band_(self, value: float | str): + def higher_stop_band_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band ={value}"]) @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff Higher cutoff frequency Value should be between 1 and 1e+11. @@ -326,13 +356,15 @@ def higher_cutoff_(self) -> float: return float(val) @higher_cutoff_.setter - def higher_cutoff_(self, value: float | str): + def higher_cutoff_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff ={value}"]) @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency Lowest tuned frequency Value should be between 1 and 1e+11. @@ -342,13 +374,15 @@ def lowest_tuned_frequency_(self) -> float: return float(val) @lowest_tuned_frequency_.setter - def lowest_tuned_frequency_(self, value: float | str): + def lowest_tuned_frequency_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lowest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lowest Tuned Frequency ={value}"]) @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency Highest tuned frequency Value should be between 1 and 1e+11. @@ -358,9 +392,11 @@ def highest_tuned_frequency_(self) -> float: return float(val) @highest_tuned_frequency_.setter - def highest_tuned_frequency_(self, value: float | str): + def highest_tuned_frequency_(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Highest Tuned Frequency ={value}"]) @property def percent_bandwidth(self) -> float: @@ -373,8 +409,10 @@ def percent_bandwidth(self) -> float: return float(val) @percent_bandwidth.setter - def percent_bandwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percent Bandwidth={value}"]) + def percent_bandwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Percent Bandwidth={value}"]) @property def shape_factor(self) -> float: @@ -387,14 +425,17 @@ def shape_factor(self) -> float: return float(val) @shape_factor.setter - def shape_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) + def shape_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Shape Factor={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py b/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py index 768956c991c..a85d3a565ce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class FiveGChannelModel(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,37 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,24 +116,28 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): URBAN_MICROCELL = "Urban Microcell" @@ -141,14 +149,16 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment for the 5G channel model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def los(self) -> bool: @@ -158,11 +168,13 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return val == true + return (val == true) @los.setter def los(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"LOS={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"LOS={value}"]) @property def include_bpl(self) -> bool: @@ -172,11 +184,13 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return val == true + return (val == true) @include_bpl.setter def include_bpl(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include BPL={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include BPL={value}"]) class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -187,14 +201,16 @@ def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model Specify the NYU Building Penetration Loss model - """ + """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val.upper()] return val @nyu_bpl_model.setter def nyu_bpl_model(self, value: NYUBPLModelOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NYU BPL Model={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NYU BPL Model={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -208,8 +224,10 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -223,8 +241,10 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -238,8 +258,10 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -252,14 +274,16 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -273,8 +297,10 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -287,8 +313,10 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -298,11 +326,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -316,8 +346,10 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -330,8 +362,10 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -345,8 +379,10 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -357,13 +393,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -376,8 +412,10 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -390,8 +428,10 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -404,7 +444,8 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py index 1c92cfcc0d6..c26782c7ed0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class HataCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,37 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,24 +116,28 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): LARGE_CITY = "Large City" @@ -142,14 +150,16 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Hata model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -163,8 +173,10 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -178,8 +190,10 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -193,8 +207,10 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -207,14 +223,16 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -228,8 +246,10 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -242,8 +262,10 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -253,11 +275,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -271,8 +295,10 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -285,8 +311,10 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -300,8 +328,10 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -312,13 +342,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -331,8 +361,10 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -345,8 +377,10 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -359,7 +393,8 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py index 629ef32b5a7..567d7204906 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class IndoorPropagationCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,13 +48,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Power Loss Coefficient: + "Power Loss Coefficient: Value should be between 0 and 100. - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): Value should be between 0 and 1000. """ return self._get_table_data() @@ -75,37 +71,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -115,11 +117,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -129,24 +133,28 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class BuildingTypeOption(Enum): RESIDENTIAL_APARTMENT = "Residential Apartment" @@ -160,14 +168,16 @@ def building_type(self) -> BuildingTypeOption: """Building Type Specify the building type for the Indoor Propagation model - """ + """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val.upper()] return val @building_type.setter def building_type(self, value: BuildingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Building Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Building Type={value.value}"]) @property def number_of_floors(self) -> int: @@ -181,7 +191,9 @@ def number_of_floors(self) -> int: @number_of_floors.setter def number_of_floors(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Floors={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Floors={value}"]) @property def custom_fading_margin(self) -> float: @@ -195,8 +207,10 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -210,8 +224,10 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -225,8 +241,10 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -239,14 +257,16 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -260,8 +280,10 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -274,8 +296,10 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -285,11 +309,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -303,8 +329,10 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -317,8 +345,10 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -332,8 +362,10 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -344,13 +376,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -363,8 +395,10 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -377,8 +411,10 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -391,7 +427,8 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/isolator.py similarity index 71% rename from src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py rename to src/ansys/aedt/core/emit_core/nodes/generated/isolator.py index fa4db3f622a..6aa95b62d73 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/isolator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Isolator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -57,7 +53,9 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -70,21 +68,25 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -96,14 +98,16 @@ def type(self) -> TypeOption: Type of isolator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -114,14 +118,16 @@ def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the isolator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -134,8 +140,10 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -146,11 +154,13 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val == true + return (val == true) @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -163,8 +173,10 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -175,11 +187,13 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val == true + return (val == true) @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -192,8 +206,10 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -207,9 +223,11 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -223,9 +241,11 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -239,9 +259,11 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -255,15 +277,18 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py index ed0fb430a5b..0ffaa2c9fb0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class LogDistanceCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,37 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,24 +116,28 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): FREE_SPACE = "Free Space" @@ -145,14 +153,16 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Log Distance model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def path_loss_exponent(self) -> float: @@ -165,8 +175,10 @@ def path_loss_exponent(self) -> float: return float(val) @path_loss_exponent.setter - def path_loss_exponent(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Exponent={value}"]) + def path_loss_exponent(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Path Loss Exponent={value}"]) @property def custom_fading_margin(self) -> float: @@ -180,8 +192,10 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -195,8 +209,10 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -210,8 +226,10 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -224,14 +242,16 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -245,8 +265,10 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -259,8 +281,10 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -270,11 +294,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -288,8 +314,10 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -302,8 +330,10 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -317,8 +347,10 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -329,13 +361,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -348,8 +380,10 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -362,8 +396,10 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -376,7 +412,8 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py index 5dff8cb6f6c..3c4369fee9d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class MPlexBandTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -55,14 +51,17 @@ class PowerDirectionOption(Enum): @property def power_direction(self) -> PowerDirectionOption: - """Power Direction""" + """Power Direction + """ val = self._get_property("Power Direction") val = self.PowerDirectionOption[val.upper()] return val @power_direction.setter def power_direction(self, value: PowerDirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Power Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Power Direction={value.value}"]) @property def data_source(self): @@ -70,13 +69,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -86,11 +87,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -100,24 +103,28 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -132,14 +139,16 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -153,7 +162,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -167,7 +178,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -191,14 +204,16 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -212,7 +227,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -226,7 +243,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -240,7 +259,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -251,8 +272,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer.py similarity index 75% rename from src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py rename to src/ansys/aedt/core/emit_core/nodes/generated/multiplexer.py index d83ddb11f64..47b989677c7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Multiplexer(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -61,7 +57,9 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -74,21 +72,25 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_PASS_BAND = "By Pass Band" @@ -101,14 +103,16 @@ def type(self) -> TypeOption: simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -119,14 +123,16 @@ def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the multiplexer. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def flip_ports_vertically(self) -> bool: @@ -136,11 +142,13 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return val == true + return (val == true) @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flip Ports Vertically={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Flip Ports Vertically={value}"]) @property def ports(self): @@ -148,19 +156,22 @@ def ports(self): Assigns the child port nodes to the multiplexers ports "A list of values." - """ + """ val = self._get_property("Ports") return val @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ports={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py index 8ca10018d4a..c7114eac22d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class MultiplexerBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -63,14 +59,16 @@ def type(self) -> TypeOption: file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def filename(self) -> str: @@ -84,7 +82,9 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def insertion_loss(self) -> float: @@ -97,8 +97,10 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -111,8 +113,10 @@ def stop_band_attenuation(self) -> float: return float(val) @stop_band_attenuation.setter - def stop_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -126,9 +130,11 @@ def max_pass_band(self) -> float: return float(val) @max_pass_band.setter - def max_pass_band(self, value: float | str): + def max_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -142,9 +148,11 @@ def min_stop_band(self) -> float: return float(val) @min_stop_band.setter - def min_stop_band(self, value: float | str): + def min_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -158,9 +166,11 @@ def max_stop_band(self) -> float: return float(val) @max_stop_band.setter - def max_stop_band(self, value: float | str): + def max_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -174,9 +184,11 @@ def min_pass_band(self) -> float: return float(val) @min_pass_band.setter - def min_pass_band(self, value: float | str): + def min_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -190,9 +202,11 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -206,9 +220,11 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -222,9 +238,11 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -238,15 +256,18 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py index 46cf852a6a1..81bea8af4a9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class OutboardTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -62,7 +58,9 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -76,7 +74,9 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): @@ -84,13 +84,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -100,11 +102,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -114,24 +118,28 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -146,14 +154,16 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -167,7 +177,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -181,7 +193,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -205,14 +219,16 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -226,7 +242,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -240,7 +258,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -254,7 +274,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -265,8 +287,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py index dd698469760..8be3b249ac2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ParametricCouplingTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,23 +48,29 @@ def delete(self): @property def antenna_a(self) -> EmitNode: - """Antenna A""" + """Antenna A + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: - """Antenna B""" + """Antenna B + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def data_source(self): @@ -76,13 +78,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -92,11 +96,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -106,24 +112,28 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -138,14 +148,16 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -159,7 +171,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -173,7 +187,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -197,14 +213,16 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -218,7 +236,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -232,7 +252,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -246,7 +268,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -257,8 +281,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py index 143821a9ebc..9fb1b11a02e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class PlotMarkerNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,11 +54,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def attached(self) -> bool: @@ -73,37 +71,43 @@ def attached(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Attached") - return val == true + return (val == true) @attached.setter def attached(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Attached={value}"]) @property def position_x(self) -> float: """Position X Position of the marker on the X-axis (frequency axis). - """ + """ val = self._get_property("Position X") return float(val) @position_x.setter - def position_x(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position X={value}"]) + def position_x(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position X={value}"]) @property def position_y(self) -> float: """Position Y Position of the marker on the Y-axis (result axis). - """ + """ val = self._get_property("Position Y") return float(val) @position_y.setter - def position_y(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Y={value}"]) + def position_y(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position Y={value}"]) @property def floating_label(self) -> bool: @@ -114,11 +118,13 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return val == true + return (val == true) @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -132,8 +138,10 @@ def position_from_left(self) -> float: return float(val) @position_from_left.setter - def position_from_left(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) + def position_from_left(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -147,21 +155,25 @@ def position_from_top(self) -> float: return float(val) @position_from_top.setter - def position_from_top(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) + def position_from_top(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Top={value}"]) @property def text(self) -> str: """Text Set the text of the label - """ + """ val = self._get_property("Text") return val @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -173,16 +185,16 @@ def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position Specify horizontal position of the label as compared to the symbol - """ + """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val.upper()] return val @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Horizontal Position={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Position={value.value}"]) class VerticalPositionOption(Enum): TOP = "Top" @@ -194,14 +206,16 @@ def vertical_position(self) -> VerticalPositionOption: """Vertical Position Specify vertical position of the label as compared to the symbol - """ + """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val.upper()] return val @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -213,14 +227,16 @@ def text_alignment(self) -> TextAlignmentOption: """Text Alignment Specify justification applied to multi-line text - """ + """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val.upper()] return val @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text Alignment={value.value}"]) @property def font(self): @@ -234,7 +250,9 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): @@ -248,7 +266,9 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): @@ -262,7 +282,9 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: @@ -272,11 +294,13 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return val == true + return (val == true) @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: @@ -290,7 +314,9 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): @@ -304,7 +330,9 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -329,14 +357,16 @@ def symbol(self) -> SymbolOption: """Symbol Specify symbol displayed next to the label - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -350,7 +380,9 @@ def arrow_direction(self) -> int: @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -364,7 +396,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -378,7 +412,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -392,7 +428,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -403,8 +441,11 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return val == true + return (val == true) @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py index f94dad83147..54b1d5d909d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class PlotNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,13 +54,15 @@ def title(self) -> str: """Title Enter title at the top of the plot, room will be made for it - """ + """ val = self._get_property("Title") return val @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title={value}"]) @property def title_font(self): @@ -78,7 +76,9 @@ def title_font(self): @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -88,11 +88,13 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return val == true + return (val == true) @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Legend={value}"]) @property def legend_font(self): @@ -106,7 +108,9 @@ def legend_font(self): @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Legend Font={value}"]) @property def display_cad_overlay(self) -> bool: @@ -116,11 +120,13 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return val == true + return (val == true) @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -133,21 +139,25 @@ def opacity(self) -> float: return float(val) @opacity.setter - def opacity(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) + def opacity(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset Adjust vertical position of CAD model overlay - """ + """ val = self._get_property("Vertical Offset") return float(val) @vertical_offset.setter - def vertical_offset(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) + def vertical_offset(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -161,8 +171,10 @@ def range_axis_rotation(self) -> float: return float(val) @range_axis_rotation.setter - def range_axis_rotation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -172,63 +184,73 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return val == true + return (val == true) @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min Set lower extent of horizontal axis - """ + """ val = self._get_property("X-axis Min") return float(val) @x_axis_min.setter - def x_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) + def x_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max Set upper extent of horizontal axis - """ + """ val = self._get_property("X-axis Max") return float(val) @x_axis_max.setter - def x_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) + def x_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min Set lower extent of vertical axis - """ + """ val = self._get_property("Y-axis Min") return float(val) @y_axis_min.setter - def y_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) + def y_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max Set upper extent of vertical axis - """ + """ val = self._get_property("Y-axis Max") return float(val) @y_axis_max.setter - def y_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) + def y_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -242,8 +264,10 @@ def y_axis_range(self) -> float: return float(val) @y_axis_range.setter - def y_axis_range(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) + def y_axis_range(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -257,7 +281,9 @@ def max_major_ticks_x(self) -> int: @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -272,7 +298,9 @@ def max_minor_ticks_x(self) -> int: @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -286,7 +314,9 @@ def max_major_ticks_y(self) -> int: @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -301,7 +331,9 @@ def max_minor_ticks_y(self) -> int: @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -315,7 +347,9 @@ def axis_label_font(self): @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -329,7 +363,9 @@ def axis_tick_label_font(self): @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -344,16 +380,16 @@ def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style Select line style of major-tick grid lines - """ + """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val.upper()] return val @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Line Style={value.value}"]) @property def major_grid_color(self): @@ -367,7 +403,9 @@ def major_grid_color(self): @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -382,16 +420,16 @@ def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style Select line style of minor-tick grid lines - """ + """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val.upper()] return val @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Line Style={value.value}"]) @property def minor_grid_color(self): @@ -405,7 +443,9 @@ def minor_grid_color(self): @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -419,7 +459,9 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -432,16 +474,16 @@ def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit Units to use for plotting broadband power densities - """ + """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val.upper()] return val @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power for Plots Unit={value.value}"]) @property def bb_power_bandwidth(self) -> float: @@ -455,9 +497,11 @@ def bb_power_bandwidth(self) -> float: return float(val) @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value: float | str): + def bb_power_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -467,8 +511,11 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return val == true + return (val == true) @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Log Scale={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py b/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py index 9e50f7900ce..5b0711394c0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class PowerDivider(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -57,7 +53,9 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -70,21 +68,25 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -97,14 +99,16 @@ def type(self) -> TypeOption: Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class OrientationOption(Enum): DIVIDER = "Divider" @@ -115,14 +119,16 @@ def orientation(self) -> OrientationOption: """Orientation Defines the orientation of the Power Divider. - """ + """ val = self._get_property("Orientation") val = self.OrientationOption[val.upper()] return val @orientation.setter def orientation(self, value: OrientationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value.value}"]) @property def insertion_loss_above_ideal(self) -> float: @@ -136,10 +142,10 @@ def insertion_loss_above_ideal(self) -> float: return float(val) @insertion_loss_above_ideal.setter - def insertion_loss_above_ideal(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Insertion Loss Above Ideal={value}"] - ) + def insertion_loss_above_ideal(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss Above Ideal={value}"]) @property def finite_isolation(self) -> bool: @@ -150,11 +156,13 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val == true + return (val == true) @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -167,8 +175,10 @@ def isolation(self) -> float: return float(val) @isolation.setter - def isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) + def isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -179,11 +189,13 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val == true + return (val == true) @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -196,8 +208,10 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -211,9 +225,11 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -227,9 +243,11 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -243,9 +261,11 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -259,15 +279,18 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py index aeaeeb96f3f..b4323f7f68f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class PowerTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -59,14 +55,16 @@ def direction(self) -> DirectionOption: """Direction Direction of power flow (towards or away from the transmitter) to plot - """ + """ val = self._get_property("Direction") val = self.DirectionOption[val.upper()] return val @direction.setter def direction(self, value: DirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Direction={value.value}"]) @property def data_source(self): @@ -74,13 +72,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -90,11 +90,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -104,24 +106,28 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -136,14 +142,16 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -157,7 +165,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -171,7 +181,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -195,14 +207,16 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -216,7 +230,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -230,7 +246,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -244,7 +262,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -255,8 +275,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py index dcde8cf4d8c..fa7135e351b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ProfileTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -56,13 +52,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -72,11 +70,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -86,24 +86,28 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -118,14 +122,16 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -139,7 +145,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -153,7 +161,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -177,14 +187,16 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -198,7 +210,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -212,7 +226,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -226,7 +242,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -237,8 +255,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py index e58e04ae852..6f495e88296 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class PropagationLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,37 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,24 +116,28 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def custom_fading_margin(self) -> float: @@ -143,8 +151,10 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -158,8 +168,10 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -173,8 +185,10 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -187,14 +201,16 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -208,8 +224,10 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -222,8 +240,10 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -233,11 +253,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -251,8 +273,10 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -265,8 +289,10 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -280,8 +306,10 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -292,13 +320,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -311,8 +339,10 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -325,8 +355,10 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -339,7 +371,8 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py index 6ebf43aadb1..12cc5aa7711 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class RadioNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,11 +51,11 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Name: - "Type: - """ + "Name: + "Type: + """ return self._get_table_data() @table_data.setter @@ -70,10 +67,13 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py index ca7352de82a..564926c4d22 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyAmplifier(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -58,7 +54,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -71,7 +67,7 @@ def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type Configures the amplifier as a Tx or Rx amplifier - """ + """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val.upper()] return val @@ -180,3 +176,4 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return int(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py index ea4ac8d426b..83cdf3dc504 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyAntennaNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -43,7 +39,7 @@ def tags(self) -> str: """Tags Space delimited list of tags for coupling selections - """ + """ val = self._get_property("Tags") return val @@ -56,7 +52,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val == true + return (val == true) @property def position(self): @@ -87,7 +83,7 @@ def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @@ -120,7 +116,7 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return val == true + return (val == true) @property def antenna_temperature(self) -> float: @@ -137,7 +133,7 @@ def type(self): """Type Defines the type of antenna - """ + """ val = self._get_property("Type") return val @@ -179,7 +175,7 @@ def boresight(self) -> BoresightOption: """Boresight Select peak beam direction in local coordinates - """ + """ val = self._get_property("Boresight") val = self.BoresightOption[val.upper()] return val @@ -212,7 +208,7 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return val == true + return (val == true) @property def first_sidelobe_level(self) -> float: @@ -378,7 +374,7 @@ def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val.upper()] return val @@ -392,7 +388,7 @@ def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode Choose the Cross Dipole type - """ + """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val.upper()] return val @@ -406,7 +402,7 @@ def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val.upper()] return val @@ -420,7 +416,7 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return val == true + return (val == true) @property def offset_height(self) -> float: @@ -442,7 +438,7 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return val == true + return (val == true) @property def conform__adjust_antenna(self) -> bool: @@ -452,7 +448,7 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return val == true + return (val == true) @property def element_offset(self): @@ -474,7 +470,7 @@ def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform Select method of automated conforming applied after Element Offset - """ + """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val.upper()] return val @@ -489,7 +485,7 @@ def reference_plane(self) -> ReferencePlaneOption: """Reference Plane Select reference plane for determining original element heights - """ + """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val.upper()] return val @@ -503,7 +499,7 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return val == true + return (val == true) @property def show_axes(self) -> bool: @@ -513,7 +509,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val == true + return (val == true) @property def show_icon(self) -> bool: @@ -523,7 +519,7 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return val == true + return (val == true) @property def size(self) -> float: @@ -550,7 +546,7 @@ def el_sample_interval(self) -> float: """El Sample Interval Space between elevation-angle samples of pattern - """ + """ val = self._get_property("El Sample Interval") return float(val) @@ -559,7 +555,7 @@ def az_sample_interval(self) -> float: """Az Sample Interval Space between azimuth-angle samples of pattern - """ + """ val = self._get_property("Az Sample Interval") return float(val) @@ -571,14 +567,14 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return val == true + return (val == true) @property def frequency_domain(self): """Frequency Domain Frequency sample(s) defining antenna - """ + """ val = self._get_property("Frequency Domain") return val @@ -587,7 +583,7 @@ def number_of_electric_sources(self) -> int: """Number of Electric Sources Number of freestanding electric current sources defining antenna - """ + """ val = self._get_property("Number of Electric Sources") return int(val) @@ -596,7 +592,7 @@ def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources Number of freestanding magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Magnetic Sources") return int(val) @@ -606,7 +602,7 @@ def number_of_imaged_electric_sources(self) -> int: Number of imaged, half-space radiating electric current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Electric Sources") return int(val) @@ -616,7 +612,7 @@ def number_of_imaged_magnetic_sources(self) -> int: Number of imaged, half-space radiating magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Magnetic Sources") return int(val) @@ -626,7 +622,7 @@ def waveguide_height(self) -> float: Implied waveguide height (along local x-axis) where the flared horn walls meet the feed - """ + """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") return float(val) @@ -636,7 +632,7 @@ def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency Implied lowest operating frequency of pyramidal horn antenna - """ + """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -646,7 +642,7 @@ def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency Implied lowest operating frequency of conical horn antenna - """ + """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -662,7 +658,7 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: Select the method for stability-enhancing truncation of spherical wave expansion terms - """ + """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val.upper()] return val @@ -682,7 +678,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -694,7 +690,7 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return val == true + return (val == true) @property def use_phase_center(self) -> bool: @@ -704,14 +700,14 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return val == true + return (val == true) @property def coordinate_systems(self) -> str: """Coordinate Systems Specifies the coordinate system for the phase center of this antenna - """ + """ val = self._get_property("Coordinate Systems") return val @@ -734,3 +730,4 @@ def phasecenterorientation(self): """ val = self._get_property("PhaseCenterOrientation") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py index c1f7e8dd5bd..cf8b02d8aec 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyAntennaPassband(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -105,6 +102,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py index 9bd6a9010db..40b4ff1e74c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -43,7 +39,7 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") return val @@ -55,7 +51,7 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return val == true + return (val == true) @property def use_emission_designator(self) -> bool: @@ -65,14 +61,14 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return val == true + return (val == true) @property def emission_designator(self) -> str: """Emission Designator Enter the Emission Designator to define the bandwidth and modulation - """ + """ val = self._get_property("Emission Designator") return val @@ -81,7 +77,7 @@ def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW Channel Bandwidth based off the emission designator - """ + """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -91,7 +87,7 @@ def emit_modulation_type(self) -> str: """EMIT Modulation Type Modulation based off the emission designator - """ + """ val = self._get_property("EMIT Modulation Type") return val @@ -104,7 +100,7 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return val == true + return (val == true) @property def channel_bandwidth(self) -> float: @@ -135,7 +131,7 @@ def modulation(self) -> ModulationOption: """Modulation Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Modulation") val = self.ModulationOption[val.upper()] return val @@ -195,7 +191,7 @@ def sidelobes(self) -> int: @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation FSK frequency deviation: helps determine spectral profile Value should be greater than 1. @@ -217,7 +213,7 @@ def psk_type(self) -> PSKTypeOption: """PSK Type PSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val.upper()] return val @@ -232,7 +228,7 @@ def fsk_type(self) -> FSKTypeOption: """FSK Type FSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val.upper()] return val @@ -249,7 +245,7 @@ def qam_type(self) -> QAMTypeOption: """QAM Type QAM modulation order: helps determine spectral profile - """ + """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val.upper()] return val @@ -266,7 +262,7 @@ def apsk_type(self) -> APSKTypeOption: """APSK Type APSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val.upper()] return val @@ -327,7 +323,7 @@ def radar_type(self) -> RadarTypeOption: """Radar Type Radar type: helps determine spectral profile - """ + """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val.upper()] return val @@ -340,7 +336,7 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return val == true + return (val == true) @property def post_october_2020_procurement(self) -> bool: @@ -351,7 +347,7 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return val == true + return (val == true) @property def hop_range_min_freq(self) -> float: @@ -471,3 +467,4 @@ def fm_freq_dev_bandwidth(self) -> float: val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py index 6aa83ad1ada..88c4224e281 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyBandFolder(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,3 +32,4 @@ def __init__(self, emit_obj, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py index 7d776e8011e..ac453c217f1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyCable(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -58,7 +54,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -73,7 +69,7 @@ def type(self) -> TypeOption: Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -135,6 +131,7 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py index b51bbda501a..0a4cfa219df 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyCADNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -69,7 +65,7 @@ def model_type(self) -> ModelTypeOption: """Model Type Select type of parametric model to create - """ + """ val = self._get_property("Model Type") val = self.ModelTypeOption[val.upper()] return val @@ -232,7 +228,7 @@ def offset(self) -> float: """Offset Offset of parabolic reflector - """ + """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") return float(val) @@ -277,7 +273,7 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return val == true + return (val == true) @property def closed_base(self) -> bool: @@ -287,7 +283,7 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return val == true + return (val == true) @property def mesh_density(self) -> int: @@ -309,7 +305,7 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return val == true + return (val == true) class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -320,7 +316,7 @@ def mesh_option(self) -> MeshOptionOption: """Mesh Option Select from different meshing options - """ + """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val.upper()] return val @@ -344,7 +340,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val == true + return (val == true) @property def position(self): @@ -375,7 +371,7 @@ def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @@ -408,7 +404,7 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -421,7 +417,7 @@ def render_mode(self) -> RenderModeOption: """Render Mode Select drawing style for surfaces - """ + """ val = self._get_property("Render Mode") val = self.RenderModeOption[val.upper()] return val @@ -434,7 +430,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val == true + return (val == true) @property def min(self): @@ -461,7 +457,7 @@ def number_of_surfaces(self) -> int: """Number of Surfaces Number of surfaces in the model - """ + """ val = self._get_property("Number of Surfaces") return int(val) @@ -480,6 +476,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py index 5217a9c9330..5c2c7abb986 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyCirculator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -58,7 +54,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -72,7 +68,7 @@ def type(self) -> TypeOption: Type of circulator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -86,7 +82,7 @@ def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the circulator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @@ -110,7 +106,7 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val == true + return (val == true) @property def reverse_isolation(self) -> float: @@ -131,7 +127,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val == true + return (val == true) @property def out_of_band_attenuation(self) -> float: @@ -192,6 +188,7 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py index 1aaaf0aa9a8..12ac821d777 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -44,7 +41,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def ports(self): @@ -52,6 +49,7 @@ def ports(self): Maps each port in the link to an antenna in the project "A list of values." - """ + """ val = self._get_property("Ports") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py index 2612058943c..1098e5f28d5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyCouplingsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -57,6 +54,7 @@ def antenna_tags(self) -> str: """Antenna Tags All tags currently used by all antennas in the project - """ + """ val = self._get_property("Antenna Tags") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py index 1233eb221b3..4d506ca453b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,11 +35,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Value (dB): + "Value (dB): Value should be between -1000 and 0. """ return self._get_table_data() @@ -55,14 +52,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -71,7 +68,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -83,7 +80,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -93,13 +90,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py index b4e8c6526e1..cef4f2deb62 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,7 +34,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -52,7 +48,7 @@ def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal Specifies the axis of the normal to the ground plane - """ + """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val.upper()] return val @@ -63,7 +59,8 @@ def gp_position_along_normal(self) -> float: Offset of ground plane in direction normal to the ground planes orientation - """ + """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py index 3dbb6977ca2..08c7ada730f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -46,14 +42,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @@ -62,7 +58,7 @@ def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @@ -74,7 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -84,14 +80,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -105,7 +101,7 @@ def terrain_category(self) -> TerrainCategoryOption: """Terrain Category Specify the terrain category type for the Erceg model - """ + """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val.upper()] return val @@ -154,7 +150,7 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -188,7 +184,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @property def rain_availability(self) -> float: @@ -231,7 +227,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @property def temperature(self) -> float: @@ -262,3 +258,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py index c76d25b367a..d4e8ff24e69 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyFilter(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -58,7 +54,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -77,7 +73,7 @@ def type(self) -> TypeOption: Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -192,7 +188,7 @@ def higher_stop_band(self) -> float: @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff Lower cutoff frequency Value should be between 1 and 1e+11. @@ -203,7 +199,7 @@ def lower_cutoff_(self) -> float: @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band Lower stop band frequency Value should be between 1 and 1e+11. @@ -214,7 +210,7 @@ def lower_stop_band_(self) -> float: @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band Higher stop band frequency Value should be between 1 and 1e+11. @@ -225,7 +221,7 @@ def higher_stop_band_(self) -> float: @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff Higher cutoff frequency Value should be between 1 and 1e+11. @@ -236,7 +232,7 @@ def higher_cutoff_(self) -> float: @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency Lowest tuned frequency Value should be between 1 and 1e+11. @@ -247,7 +243,7 @@ def lowest_tuned_frequency_(self) -> float: @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency Highest tuned frequency Value should be between 1 and 1e+11. @@ -281,6 +277,7 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py index ad9a48eb6c6..be425b02af9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -46,14 +42,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @@ -62,7 +58,7 @@ def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @@ -74,7 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -84,14 +80,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -105,7 +101,7 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment for the 5G channel model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @@ -118,7 +114,7 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return val == true + return (val == true) @property def include_bpl(self) -> bool: @@ -128,7 +124,7 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return val == true + return (val == true) class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -139,7 +135,7 @@ def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model Specify the NYU Building Penetration Loss model - """ + """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val.upper()] return val @@ -188,7 +184,7 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -222,7 +218,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @property def rain_availability(self) -> float: @@ -265,7 +261,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @property def temperature(self) -> float: @@ -296,3 +292,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py index a49f4c8f965..c9b2c934acd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -46,14 +42,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @@ -62,7 +58,7 @@ def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @@ -74,7 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -84,14 +80,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -106,7 +102,7 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Hata model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @@ -155,7 +151,7 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -189,7 +185,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @property def rain_availability(self) -> float: @@ -232,7 +228,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @property def temperature(self) -> float: @@ -263,3 +259,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py index face93c9d77..5060d4ff921 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,13 +36,13 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Power Loss Coefficient: + "Power Loss Coefficient: Value should be between 0 and 100. - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): Value should be between 0 and 1000. """ return self._get_table_data() @@ -59,14 +55,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -75,7 +71,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -87,7 +83,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -97,14 +93,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -120,7 +116,7 @@ def building_type(self) -> BuildingTypeOption: """Building Type Specify the building type for the Indoor Propagation model - """ + """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val.upper()] return val @@ -179,7 +175,7 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -213,7 +209,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @property def rain_availability(self) -> float: @@ -256,7 +252,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @property def temperature(self) -> float: @@ -287,3 +283,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py index 2d894cdd5db..55f492f6ee2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyIsolator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -58,7 +54,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -72,7 +68,7 @@ def type(self) -> TypeOption: Type of isolator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -86,7 +82,7 @@ def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the isolator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @@ -110,7 +106,7 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val == true + return (val == true) @property def reverse_isolation(self) -> float: @@ -131,7 +127,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val == true + return (val == true) @property def out_of_band_attenuation(self) -> float: @@ -192,6 +188,7 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py index cbe6f5aebb4..b2165628930 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -46,14 +42,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -62,7 +58,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -74,7 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -84,14 +80,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -109,7 +105,7 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Log Distance model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @@ -168,7 +164,7 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -202,7 +198,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @property def rain_availability(self) -> float: @@ -245,7 +241,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @property def temperature(self) -> float: @@ -276,3 +272,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py index b666ad2f617..eaeffe4aa64 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyMultiplexer(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -58,7 +54,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -73,7 +69,7 @@ def type(self) -> TypeOption: simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -87,7 +83,7 @@ def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the multiplexer. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @@ -100,7 +96,7 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return val == true + return (val == true) @property def ports(self): @@ -108,7 +104,7 @@ def ports(self): Assigns the child port nodes to the multiplexers ports "A list of values." - """ + """ val = self._get_property("Ports") return val @@ -117,6 +113,7 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py index 042867b531e..a27fa73966b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -51,7 +47,7 @@ def type(self) -> TypeOption: file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -179,6 +175,7 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py index 0546b885efe..11a3b933ef9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyPowerDivider(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -58,7 +54,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -73,7 +69,7 @@ def type(self) -> TypeOption: Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -87,7 +83,7 @@ def orientation(self) -> OrientationOption: """Orientation Defines the orientation of the Power Divider. - """ + """ val = self._get_property("Orientation") val = self.OrientationOption[val.upper()] return val @@ -112,7 +108,7 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val == true + return (val == true) @property def isolation(self) -> float: @@ -133,7 +129,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val == true + return (val == true) @property def out_of_band_attenuation(self) -> float: @@ -194,6 +190,7 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py index 4ccb6b3595e..d893151e8ab 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -46,14 +42,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -62,7 +58,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -74,7 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -84,14 +80,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -139,7 +135,7 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -173,7 +169,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @property def rain_availability(self) -> float: @@ -216,7 +212,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @property def temperature(self) -> float: @@ -247,3 +243,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py index 6dd413f7188..4d49888006c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyRadioNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,11 +35,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Name: - "Type: - """ + "Name: + "Type: + """ return self._get_table_data() @property @@ -50,6 +47,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py index 7d5d03423fc..e3fa487c5a3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyRxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -63,7 +59,7 @@ def receive_frequency(self) -> float: """Receive Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -78,7 +74,7 @@ def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode Defines the mode for the receiver measurement - """ + """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val.upper()] return val @@ -121,7 +117,7 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return val == true + return (val == true) @property def intended_signal_power(self) -> float: @@ -162,7 +158,7 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return val == true + return (val == true) @property def measure_mixer_products(self) -> bool: @@ -172,7 +168,7 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return val == true + return (val == true) @property def max_rf_order(self) -> int: @@ -202,7 +198,7 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return val == true + return (val == true) @property def measure_saturation(self) -> bool: @@ -212,7 +208,7 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return val == true + return (val == true) @property def use_ams_limits(self) -> bool: @@ -222,7 +218,7 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val == true + return (val == true) @property def start_frequency(self) -> float: @@ -264,4 +260,5 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return val == true + return (val == true) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py index 8d57af7c8f0..7fc6010f99a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -48,7 +44,7 @@ def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper Taper for setting amplitude of mixer products - """ + """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val.upper()] return val @@ -168,7 +164,7 @@ def mixing_mode(self) -> MixingModeOption: """Mixing Mode Specifies whether the IF frequency is > or < RF channel frequency - """ + """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val.upper()] return val @@ -188,7 +184,7 @@ def rf_transition_frequency(self) -> float: """RF Transition Frequency RF Frequency Transition point - """ + """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -202,7 +198,7 @@ def use_high_lo(self) -> UseHighLOOption: """Use High LO Use High LO above/below the transition frequency - """ + """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val.upper()] return val @@ -216,7 +212,8 @@ def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units Specifies the units for the Mixer Products - """ + """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val.upper()] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py index 45328a8b5fe..5e22eca60c2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,3 +32,4 @@ def __init__(self, emit_obj, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py index fab53dbb400..a3944914964 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -45,4 +42,5 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return val == true + return (val == true) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py index 4bd4d1773f6..bc475a26c1d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyRxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,13 +36,13 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -60,7 +56,8 @@ def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py index 421fcb92f79..acf4640a5f6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -49,14 +45,14 @@ def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units Units to use for the Rx Sensitivity - """ + """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val.upper()] return val @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr Received signal power level at the Rx's antenna terminal Value should be between -1000 and 1000. @@ -94,7 +90,7 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return val == true + return (val == true) @property def saturation_level(self) -> float: @@ -119,7 +115,7 @@ def rx_noise_figure(self) -> float: @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity Rx minimum sensitivity level (dBm) Value should be between -1000 and 1000. @@ -130,7 +126,7 @@ def receiver_sensitivity_(self) -> float: @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity SNR or SINAD at the specified sensitivity level Value should be between -1000 and 1000. @@ -146,7 +142,7 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return val == true + return (val == true) @property def amplifier_saturation_level(self) -> float: @@ -161,7 +157,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Rx's 1 dB Compression Point - total power > P1dB saturates the receiver Value should be between -1000 and 1000. @@ -190,3 +186,4 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return int(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py index ee589ac1c98..f95424ebcf8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlySamplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,11 +36,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Min: + "Min: Value should be greater than 1. - "Max: + "Max: Value should be greater than 1. """ return self._get_table_data() @@ -59,7 +55,7 @@ def sampling_type(self) -> SamplingTypeOption: """Sampling Type Sampling to apply to this configuration - """ + """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val.upper()] return val @@ -73,7 +69,7 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return val == true + return (val == true) @property def percentage_of_channels(self) -> float: @@ -111,7 +107,7 @@ def total_tx_channels(self) -> int: Total number of transmit channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Tx Channels") return int(val) @@ -121,7 +117,7 @@ def total_rx_channels(self) -> int: Total number of receive channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Rx Channels") return int(val) @@ -130,6 +126,7 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py index 805ffbddaa2..7214b8aa191 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlySceneGroupNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -47,7 +43,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val == true + return (val == true) @property def position(self): @@ -78,7 +74,7 @@ def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @@ -111,7 +107,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val == true + return (val == true) @property def box_color(self): @@ -128,6 +124,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py index 3bf6d1f23bb..5ca19668655 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -45,7 +42,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def enable_refinement(self) -> bool: @@ -55,7 +52,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -65,13 +62,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py index 4200a3fc267..cb6390f154e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlySolutionsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -45,4 +42,5 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py index 3b925264c88..c1acb6619c6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTerminator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -58,7 +54,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -72,7 +68,7 @@ def type(self) -> TypeOption: Type of terminator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -86,7 +82,7 @@ def port_location(self) -> PortLocationOption: """Port Location Defines the orientation of the terminator. - """ + """ val = self._get_property("Port Location") val = self.PortLocationOption[val.upper()] return val @@ -108,6 +104,7 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py index 3e67009dd63..8a161344db3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -44,7 +41,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def enable_refinement(self) -> bool: @@ -54,7 +51,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -64,14 +61,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -90,7 +87,7 @@ def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File Coupling data generated by Savant and exported as a matched file - """ + """ val = self._get_property("Savant Matched Coupling File") return val @@ -102,7 +99,7 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return val == true + return (val == true) @property def port_antenna_assignment(self): @@ -110,7 +107,7 @@ def port_antenna_assignment(self): Maps each port in the coupling file to an antenna in the project "A list of values." - """ + """ val = self._get_property("Port-Antenna Assignment") return val @@ -119,6 +116,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py index 00c3fb673f4..3ee1c4a4ed8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTR_Switch(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -58,7 +54,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -71,7 +67,7 @@ def tx_port(self) -> TxPortOption: """Tx Port Specifies which port on the TR Switch is part of the Tx path. - """ + """ val = self._get_property("Tx Port") val = self.TxPortOption[val.upper()] return val @@ -85,7 +81,7 @@ def common_port_location(self) -> CommonPortLocationOption: """Common Port Location Defines the orientation of the tr switch. - """ + """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val.upper()] return val @@ -109,7 +105,7 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val == true + return (val == true) @property def isolation(self) -> float: @@ -130,7 +126,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val == true + return (val == true) @property def out_of_band_attenuation(self) -> float: @@ -185,3 +181,4 @@ def higher_stop_band(self) -> float: val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py index 34637d0ef01..39a5d895309 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -46,14 +42,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -62,7 +58,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -74,7 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -84,14 +80,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -159,7 +155,7 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -193,7 +189,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @property def rain_availability(self) -> float: @@ -236,7 +232,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @property def temperature(self) -> float: @@ -267,3 +263,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py index 28cf7035056..04fec1e128d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,9 +38,9 @@ def parent(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): Value should be between -200 and 150. """ return self._get_table_data() @@ -60,7 +56,7 @@ def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior Specifies the behavior of the parametric noise profile - """ + """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val.upper()] return val @@ -74,4 +70,5 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return val == true + return (val == true) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py index 58a5a5c9dba..520126b07e6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -47,7 +43,8 @@ def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units Specifies the units for the Harmonics - """ + """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val.upper()] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py index a69caa5e6e5..9d8729dc36b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -61,7 +58,7 @@ def transmit_frequency(self) -> float: """Transmit Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -74,7 +71,7 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val == true + return (val == true) @property def start_frequency(self) -> float: @@ -106,4 +103,5 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return val == true + return (val == true) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py index d3b922e9cc3..ecb068c242e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -47,7 +43,7 @@ def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior Specifies the behavior of the parametric narrowband emissions mask - """ + """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val.upper()] return val @@ -57,7 +53,8 @@ def measurement_frequency(self) -> float: """Measurement Frequency Measurement frequency for the absolute freq/amp pairs. - """ + """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py index f8924491de9..f551a2e6781 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTxSpectralProfEmitterNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +38,7 @@ def output_voltage_peak(self) -> float: """Output Voltage Peak Output High Voltage Level: maximum voltage of the digital signal - """ + """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") return float(val) @@ -54,7 +51,7 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val == true + return (val == true) @property def tx_broadband_noise(self) -> float: @@ -74,7 +71,7 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val == true + return (val == true) @property def internal_amp_gain(self) -> float: @@ -109,7 +106,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -149,3 +146,4 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return int(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py index 63c76bc35c8..506153c3046 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -47,7 +43,7 @@ def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type Specifies EMI Margins to calculate - """ + """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val.upper()] return val @@ -61,7 +57,7 @@ def tx_power(self) -> TxPowerOption: """Tx Power Method used to specify the power - """ + """ val = self._get_property("Tx Power") val = self.TxPowerOption[val.upper()] return val @@ -96,7 +92,7 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val == true + return (val == true) @property def tx_broadband_noise(self) -> float: @@ -119,7 +115,7 @@ def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper Taper type used to set amplitude of harmonics - """ + """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val.upper()] return val @@ -163,7 +159,7 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return val == true + return (val == true) @property def number_of_harmonics(self) -> int: @@ -213,7 +209,7 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val == true + return (val == true) @property def internal_amp_gain(self) -> float: @@ -248,7 +244,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -288,3 +284,4 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return int(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py index feea24d14d4..9ad76c5cd08 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,13 +36,13 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -60,7 +56,8 @@ def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py index 669578eaf1d..3754d8f77d0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -46,14 +42,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @@ -62,7 +58,7 @@ def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @@ -74,7 +70,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: @@ -84,14 +80,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -104,7 +100,7 @@ def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type Specify LOS vs NLOS for the Walfisch-Ikegami model - """ + """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val.upper()] return val @@ -118,7 +114,7 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Walfisch model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @@ -210,7 +206,7 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -244,7 +240,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @property def rain_availability(self) -> float: @@ -287,7 +283,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @property def temperature(self) -> float: @@ -318,3 +314,4 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py index 61953d03414..3bb0a69747f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyWaveform(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -43,7 +39,7 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") return val @@ -59,7 +55,7 @@ def waveform(self) -> WaveformOption: """Waveform Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Waveform") val = self.WaveformOption[val.upper()] return val @@ -128,7 +124,7 @@ def spreading_type(self) -> SpreadingTypeOption: """Spreading Type Type of spreading employed by the Spread Spectrum Clock - """ + """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val.upper()] return val @@ -156,7 +152,7 @@ def raw_data_format(self) -> str: """Raw Data Format Format of the imported raw data - """ + """ val = self._get_property("Raw Data Format") return val @@ -179,7 +175,7 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return val == true + return (val == true) @property def nb_window_size(self) -> float: @@ -221,7 +217,7 @@ def algorithm(self) -> AlgorithmOption: """Algorithm Algorithm used to transform the imported time domain spectrum - """ + """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val.upper()] return val @@ -242,7 +238,7 @@ def stop_time(self) -> float: """Stop Time Final time of the imported time domain spectrum - """ + """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") return float(val) @@ -274,7 +270,7 @@ def window_type(self) -> WindowTypeOption: """Window Type Windowing scheme used for importing time domain spectrum - """ + """ val = self._get_property("Window Type") val = self.WindowTypeOption[val.upper()] return val @@ -297,7 +293,7 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return val == true + return (val == true) @property def data_rate(self) -> float: @@ -328,7 +324,7 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return val == true + return (val == true) @property def min_ptsnull(self) -> int: @@ -350,3 +346,4 @@ def delay_skew(self) -> float: val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py index f10db08d685..c47722ba6d7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ResultPlotNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -46,13 +42,15 @@ def title(self) -> str: """Title Enter title at the top of the plot, room will be made for it - """ + """ val = self._get_property("Title") return val @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title={value}"]) @property def title_font(self): @@ -66,7 +64,9 @@ def title_font(self): @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -76,11 +76,13 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return val == true + return (val == true) @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Legend={value}"]) @property def legend_font(self): @@ -94,7 +96,9 @@ def legend_font(self): @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Legend Font={value}"]) @property def show_emi_thresholds(self) -> bool: @@ -104,11 +108,13 @@ def show_emi_thresholds(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show EMI Thresholds") - return val == true + return (val == true) @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show EMI Thresholds={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show EMI Thresholds={value}"]) @property def display_cad_overlay(self) -> bool: @@ -118,11 +124,13 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return val == true + return (val == true) @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -135,21 +143,25 @@ def opacity(self) -> float: return float(val) @opacity.setter - def opacity(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) + def opacity(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset Adjust vertical position of CAD model overlay - """ + """ val = self._get_property("Vertical Offset") return float(val) @vertical_offset.setter - def vertical_offset(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) + def vertical_offset(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -163,8 +175,10 @@ def range_axis_rotation(self) -> float: return float(val) @range_axis_rotation.setter - def range_axis_rotation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -174,63 +188,73 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return val == true + return (val == true) @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min Set lower extent of horizontal axis - """ + """ val = self._get_property("X-axis Min") return float(val) @x_axis_min.setter - def x_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) + def x_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max Set upper extent of horizontal axis - """ + """ val = self._get_property("X-axis Max") return float(val) @x_axis_max.setter - def x_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) + def x_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min Set lower extent of vertical axis - """ + """ val = self._get_property("Y-axis Min") return float(val) @y_axis_min.setter - def y_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) + def y_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max Set upper extent of vertical axis - """ + """ val = self._get_property("Y-axis Max") return float(val) @y_axis_max.setter - def y_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) + def y_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -244,8 +268,10 @@ def y_axis_range(self) -> float: return float(val) @y_axis_range.setter - def y_axis_range(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) + def y_axis_range(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -259,7 +285,9 @@ def max_major_ticks_x(self) -> int: @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -274,7 +302,9 @@ def max_minor_ticks_x(self) -> int: @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -288,7 +318,9 @@ def max_major_ticks_y(self) -> int: @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -303,7 +335,9 @@ def max_minor_ticks_y(self) -> int: @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -317,7 +351,9 @@ def axis_label_font(self): @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -331,7 +367,9 @@ def axis_tick_label_font(self): @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -346,16 +384,16 @@ def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style Select line style of major-tick grid lines - """ + """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val.upper()] return val @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Line Style={value.value}"]) @property def major_grid_color(self): @@ -369,7 +407,9 @@ def major_grid_color(self): @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -384,16 +424,16 @@ def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style Select line style of minor-tick grid lines - """ + """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val.upper()] return val @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Line Style={value.value}"]) @property def minor_grid_color(self): @@ -407,7 +447,9 @@ def minor_grid_color(self): @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -421,7 +463,9 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -434,16 +478,16 @@ def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit Units to use for plotting broadband power densities - """ + """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val.upper()] return val @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power for Plots Unit={value.value}"]) @property def bb_power_bandwidth(self) -> float: @@ -457,9 +501,11 @@ def bb_power_bandwidth(self) -> float: return float(val) @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value: float | str): + def bb_power_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -469,8 +515,11 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return val == true + return (val == true) @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Log Scale={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py index 9065d91119a..c3758ae5b2d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class RxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -71,7 +67,7 @@ def receive_frequency(self) -> float: """Receive Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -86,14 +82,16 @@ def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode Defines the mode for the receiver measurement - """ + """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val.upper()] return val @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Mode={value.value}"]) @property def sinad_threshold(self) -> float: @@ -106,8 +104,10 @@ def sinad_threshold(self) -> float: return float(val) @sinad_threshold.setter - def sinad_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SINAD Threshold={value}"]) + def sinad_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SINAD Threshold={value}"]) @property def gps_cnr_threshold(self) -> float: @@ -120,8 +120,10 @@ def gps_cnr_threshold(self) -> float: return float(val) @gps_cnr_threshold.setter - def gps_cnr_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GPS CNR Threshold={value}"]) + def gps_cnr_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"GPS CNR Threshold={value}"]) @property def ber_threshold(self) -> float: @@ -134,8 +136,10 @@ def ber_threshold(self) -> float: return float(val) @ber_threshold.setter - def ber_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BER Threshold={value}"]) + def ber_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BER Threshold={value}"]) @property def default_intended_power(self) -> bool: @@ -145,11 +149,13 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return val == true + return (val == true) @default_intended_power.setter def default_intended_power(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Default Intended Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Default Intended Power={value}"]) @property def intended_signal_power(self) -> float: @@ -162,8 +168,10 @@ def intended_signal_power(self) -> float: return float(val) @intended_signal_power.setter - def intended_signal_power(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Intended Signal Power={value}"]) + def intended_signal_power(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Intended Signal Power={value}"]) @property def freq_deviation(self) -> float: @@ -177,9 +185,11 @@ def freq_deviation(self) -> float: return float(val) @freq_deviation.setter - def freq_deviation(self, value: float | str): + def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation={value}"]) @property def modulation_depth(self) -> float: @@ -192,8 +202,10 @@ def modulation_depth(self) -> float: return float(val) @modulation_depth.setter - def modulation_depth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Depth={value}"]) + def modulation_depth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation Depth={value}"]) @property def measure_selectivity(self) -> bool: @@ -203,11 +215,13 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return val == true + return (val == true) @measure_selectivity.setter def measure_selectivity(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Selectivity={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Selectivity={value}"]) @property def measure_mixer_products(self) -> bool: @@ -217,11 +231,13 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return val == true + return (val == true) @measure_mixer_products.setter def measure_mixer_products(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Mixer Products={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Mixer Products={value}"]) @property def max_rf_order(self) -> int: @@ -235,7 +251,9 @@ def max_rf_order(self) -> int: @max_rf_order.setter def max_rf_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max RF Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max RF Order={value}"]) @property def max_lo_order(self) -> int: @@ -249,7 +267,9 @@ def max_lo_order(self) -> int: @max_lo_order.setter def max_lo_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max LO Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max LO Order={value}"]) @property def include_if(self) -> bool: @@ -259,11 +279,13 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return val == true + return (val == true) @include_if.setter def include_if(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include IF={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include IF={value}"]) @property def measure_saturation(self) -> bool: @@ -273,11 +295,13 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return val == true + return (val == true) @measure_saturation.setter def measure_saturation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Saturation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Saturation={value}"]) @property def use_ams_limits(self) -> bool: @@ -287,11 +311,13 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val == true + return (val == true) @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -305,9 +331,11 @@ def start_frequency(self) -> float: return float(val) @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -321,9 +349,11 @@ def stop_frequency(self) -> float: return float(val) @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def samples(self) -> int: @@ -337,7 +367,9 @@ def samples(self) -> int: @samples.setter def samples(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Samples={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Samples={value}"]) @property def exclude_mixer_products_below_noise(self) -> bool: @@ -347,19 +379,20 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return val == true + return (val == true) @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Exclude Mixer Products Below Noise={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Exclude Mixer Products Below Noise={value}"]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py index 6c6f3aa83b8..cb7a3eaba22 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class RxMixerProductNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -49,7 +45,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -65,16 +61,16 @@ def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper Taper for setting amplitude of mixer products - """ + """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val.upper()] return val @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Taper={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Taper={value.value}"]) @property def mixer_product_susceptibility(self) -> float: @@ -87,10 +83,10 @@ def mixer_product_susceptibility(self) -> float: return float(val) @mixer_product_susceptibility.setter - def mixer_product_susceptibility(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Susceptibility={value}"] - ) + def mixer_product_susceptibility(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Susceptibility={value}"]) @property def spurious_rejection(self) -> float: @@ -103,8 +99,10 @@ def spurious_rejection(self) -> float: return float(val) @spurious_rejection.setter - def spurious_rejection(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spurious Rejection={value}"]) + def spurious_rejection(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spurious Rejection={value}"]) @property def minimum_tuning_frequency(self) -> float: @@ -118,9 +116,11 @@ def minimum_tuning_frequency(self) -> float: return float(val) @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value: float | str): + def minimum_tuning_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minimum Tuning Frequency={value}"]) @property def maximum_tuning_frequency(self) -> float: @@ -134,9 +134,11 @@ def maximum_tuning_frequency(self) -> float: return float(val) @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value: float | str): + def maximum_tuning_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum Tuning Frequency={value}"]) @property def mixer_product_slope(self) -> float: @@ -150,8 +152,10 @@ def mixer_product_slope(self) -> float: return float(val) @mixer_product_slope.setter - def mixer_product_slope(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Slope={value}"]) + def mixer_product_slope(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Slope={value}"]) @property def mixer_product_intercept(self) -> float: @@ -164,8 +168,10 @@ def mixer_product_intercept(self) -> float: return float(val) @mixer_product_intercept.setter - def mixer_product_intercept(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Intercept={value}"]) + def mixer_product_intercept(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Intercept={value}"]) @property def bandwidth_80_db(self) -> float: @@ -180,9 +186,11 @@ def bandwidth_80_db(self) -> float: return float(val) @bandwidth_80_db.setter - def bandwidth_80_db(self, value: float | str): + def bandwidth_80_db(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 80 dB={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 80 dB={value}"]) @property def image_rejection(self) -> float: @@ -195,8 +203,10 @@ def image_rejection(self) -> float: return float(val) @image_rejection.setter - def image_rejection(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Image Rejection={value}"]) + def image_rejection(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Image Rejection={value}"]) @property def maximum_rf_harmonic_order(self) -> int: @@ -210,9 +220,9 @@ def maximum_rf_harmonic_order(self) -> int: @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Maximum RF Harmonic Order={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum RF Harmonic Order={value}"]) @property def maximum_lo_harmonic_order(self) -> int: @@ -226,9 +236,9 @@ def maximum_lo_harmonic_order(self) -> int: @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Maximum LO Harmonic Order={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum LO Harmonic Order={value}"]) class MixingModeOption(Enum): LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" @@ -240,14 +250,16 @@ def mixing_mode(self) -> MixingModeOption: """Mixing Mode Specifies whether the IF frequency is > or < RF channel frequency - """ + """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val.upper()] return val @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixing Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixing Mode={value.value}"]) @property def first_if_frequency(self): @@ -261,22 +273,26 @@ def first_if_frequency(self): @first_if_frequency.setter def first_if_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First IF Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First IF Frequency={value}"]) @property def rf_transition_frequency(self) -> float: """RF Transition Frequency RF Frequency Transition point - """ + """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @rf_transition_frequency.setter - def rf_transition_frequency(self, value: float | str): + def rf_transition_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"RF Transition Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"RF Transition Frequency={value}"]) class UseHighLOOption(Enum): ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" @@ -287,14 +303,16 @@ def use_high_lo(self) -> UseHighLOOption: """Use High LO Use High LO above/below the transition frequency - """ + """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val.upper()] return val @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use High LO={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use High LO={value.value}"]) class MixerProductTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -305,13 +323,14 @@ def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units Specifies the units for the Mixer Products - """ + """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val.upper()] return val @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Table Units={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py index 62e4e8f9276..df6a48c060b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class RxSaturationNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,7 +35,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -47,8 +44,9 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py index e49a32513f8..b9449774377 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class RxSelectivityNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,7 +35,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -47,7 +44,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -62,8 +59,11 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return val == true + return (val == true) @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Arithmetic Mean={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Arithmetic Mean={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py index 5781b89806a..6ff7afee163 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class RxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -48,13 +44,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -66,7 +62,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -81,11 +77,14 @@ def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spur Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py index a96bdbf133a..36bd626f12a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class RxSusceptibilityProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +37,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -58,18 +54,20 @@ def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units Units to use for the Rx Sensitivity - """ + """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val.upper()] return val @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sensitivity Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sensitivity Units={value.value}"]) @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr Received signal power level at the Rx's antenna terminal Value should be between -1000 and 1000. @@ -78,8 +76,10 @@ def min_receive_signal_pwr_(self) -> float: return float(val) @min_receive_signal_pwr_.setter - def min_receive_signal_pwr_(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min. Receive Signal Pwr ={value}"]) + def min_receive_signal_pwr_(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min. Receive Signal Pwr ={value}"]) @property def snr_at_rx_signal_pwr(self) -> float: @@ -93,8 +93,10 @@ def snr_at_rx_signal_pwr(self) -> float: return float(val) @snr_at_rx_signal_pwr.setter - def snr_at_rx_signal_pwr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR at Rx Signal Pwr={value}"]) + def snr_at_rx_signal_pwr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SNR at Rx Signal Pwr={value}"]) @property def processing_gain(self) -> float: @@ -107,8 +109,10 @@ def processing_gain(self) -> float: return float(val) @processing_gain.setter - def processing_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Processing Gain={value}"]) + def processing_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Processing Gain={value}"]) @property def apply_pg_to_narrowband_only(self) -> bool: @@ -119,13 +123,13 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return val == true + return (val == true) @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Apply PG to Narrowband Only={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Apply PG to Narrowband Only={value}"]) @property def saturation_level(self) -> float: @@ -139,9 +143,11 @@ def saturation_level(self) -> float: return float(val) @saturation_level.setter - def saturation_level(self, value: float | str): + def saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Saturation Level={value}"]) @property def rx_noise_figure(self) -> float: @@ -154,12 +160,14 @@ def rx_noise_figure(self) -> float: return float(val) @rx_noise_figure.setter - def rx_noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rx Noise Figure={value}"]) + def rx_noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rx Noise Figure={value}"]) @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity Rx minimum sensitivity level (dBm) Value should be between -1000 and 1000. @@ -169,13 +177,15 @@ def receiver_sensitivity_(self) -> float: return float(val) @receiver_sensitivity_.setter - def receiver_sensitivity_(self, value: float | str): + def receiver_sensitivity_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver Sensitivity ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Receiver Sensitivity ={value}"]) @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity SNR or SINAD at the specified sensitivity level Value should be between -1000 and 1000. @@ -184,10 +194,10 @@ def snrsinad_at_sensitivity_(self) -> float: return float(val) @snrsinad_at_sensitivity_.setter - def snrsinad_at_sensitivity_(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"SNR/SINAD at Sensitivity ={value}"] - ) + def snrsinad_at_sensitivity_(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SNR/SINAD at Sensitivity ={value}"]) @property def perform_rx_intermod_analysis(self) -> bool: @@ -197,13 +207,13 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return val == true + return (val == true) @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Rx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Rx Intermod Analysis={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -217,15 +227,15 @@ def amplifier_saturation_level(self) -> float: return float(val) @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Rx's 1 dB Compression Point - total power > P1dB saturates the receiver Value should be between -1000 and 1000. @@ -235,9 +245,11 @@ def p1_db_point_ref_input_(self) -> float: return float(val) @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -251,9 +263,11 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def max_intermod_order(self) -> int: @@ -267,4 +281,7 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py index 83601ce93d3..79feb22b091 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class SamplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,11 +36,11 @@ def parent(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 2 columns." - "Min: + "Min: Value should be greater than 1. - "Max: + "Max: Value should be greater than 1. """ return self._get_table_data() @@ -63,14 +59,16 @@ def sampling_type(self) -> SamplingTypeOption: """Sampling Type Sampling to apply to this configuration - """ + """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val.upper()] return val @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sampling Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sampling Type={value.value}"]) @property def specify_percentage(self) -> bool: @@ -81,11 +79,13 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return val == true + return (val == true) @specify_percentage.setter def specify_percentage(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Specify Percentage={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Specify Percentage={value}"]) @property def percentage_of_channels(self) -> float: @@ -98,8 +98,10 @@ def percentage_of_channels(self) -> float: return float(val) @percentage_of_channels.setter - def percentage_of_channels(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percentage of Channels={value}"]) + def percentage_of_channels(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Percentage of Channels={value}"]) @property def max__channelsrangeband(self) -> int: @@ -113,9 +115,9 @@ def max__channelsrangeband(self) -> int: @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Max # Channels/Range/Band={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max # Channels/Range/Band={value}"]) @property def seed(self) -> int: @@ -129,7 +131,9 @@ def seed(self) -> int: @seed.setter def seed(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Seed={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Seed={value}"]) @property def total_tx_channels(self) -> int: @@ -137,7 +141,7 @@ def total_tx_channels(self) -> int: Total number of transmit channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Tx Channels") return int(val) @@ -147,7 +151,7 @@ def total_rx_channels(self) -> int: Total number of receive channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Rx Channels") return int(val) @@ -156,6 +160,7 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py index ac6fdaf6c9f..74913b8899c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class SceneGroupNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -63,13 +59,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val == true + return (val == true) @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): @@ -83,7 +79,9 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): @@ -97,7 +95,9 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -108,14 +108,16 @@ def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -129,7 +131,9 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): @@ -143,7 +147,9 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def show_axes(self) -> bool: @@ -153,11 +159,13 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val == true + return (val == true) @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def box_color(self): @@ -171,17 +179,22 @@ def box_color(self): @box_color.setter def box_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Box Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Box Color={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py index 2ecbd8ba9aa..8c373b3f3e3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class SelectivityTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -56,13 +52,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -72,11 +70,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -86,24 +86,28 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -118,14 +122,16 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -139,7 +145,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -153,7 +161,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -177,14 +187,16 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -198,7 +210,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -212,7 +226,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -226,7 +242,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -237,8 +255,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py index 8553e1f5f7d..959b5cfb018 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class SolutionCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -45,11 +42,13 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -59,11 +58,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -73,21 +74,26 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py index 0a1142dc3d7..0ce64982dff 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class SolutionsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -45,8 +42,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py index f28ef3e2373..c96f69042b4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class SpurTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -55,13 +51,15 @@ def channel_frequency(self): """Channel Frequency Select band channel frequency to display - """ + """ val = self._get_property("Channel Frequency") return val @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: @@ -69,7 +67,7 @@ def transmit_frequency(self) -> float: The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset) - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -80,13 +78,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,11 +96,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -110,24 +112,28 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -142,14 +148,16 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -163,7 +171,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -177,7 +187,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -201,14 +213,16 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -222,7 +236,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -236,7 +252,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -250,7 +268,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -261,8 +281,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/terminator.py similarity index 74% rename from src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py rename to src/ansys/aedt/core/emit_core/nodes/generated/terminator.py index d4e1ab1d167..857bf484b3c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/terminator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Terminator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -57,7 +53,9 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -70,21 +68,25 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -96,14 +98,16 @@ def type(self) -> TypeOption: Type of terminator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class PortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -114,14 +118,16 @@ def port_location(self) -> PortLocationOption: """Port Location Defines the orientation of the terminator. - """ + """ val = self._get_property("Port Location") val = self.PortLocationOption[val.upper()] return val @port_location.setter def port_location(self, value: PortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port Location={value.value}"]) @property def vswr(self) -> float: @@ -136,14 +142,17 @@ def vswr(self) -> float: return float(val) @vswr.setter - def vswr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) + def vswr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"VSWR={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py index ddf4699a654..2ba6ea7fb3a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TestNoiseTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -62,7 +58,9 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -76,7 +74,9 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): @@ -84,13 +84,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -100,11 +102,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -114,24 +118,28 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -146,14 +154,16 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -167,7 +177,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -181,7 +193,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -205,14 +219,16 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -226,7 +242,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -240,7 +258,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -254,7 +274,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -265,11 +287,13 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -283,9 +307,11 @@ def frequency_1(self) -> float: return float(val) @frequency_1.setter - def frequency_1(self, value: float | str): + def frequency_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -299,9 +325,11 @@ def amplitude_1(self) -> float: return float(val) @amplitude_1.setter - def amplitude_1(self, value: float | str): + def amplitude_1(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -315,9 +343,11 @@ def bandwidth_1(self) -> float: return float(val) @bandwidth_1.setter - def bandwidth_1(self, value: float | str): + def bandwidth_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -331,9 +361,11 @@ def frequency_2(self) -> float: return float(val) @frequency_2.setter - def frequency_2(self, value: float | str): + def frequency_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -347,9 +379,11 @@ def amplitude_2(self) -> float: return float(val) @amplitude_2.setter - def amplitude_2(self, value: float | str): + def amplitude_2(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -363,9 +397,11 @@ def bandwidth_2(self) -> float: return float(val) @bandwidth_2.setter - def bandwidth_2(self, value: float | str): + def bandwidth_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -378,5 +414,8 @@ def noise_level(self) -> float: return float(val) @noise_level.setter - def noise_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) + def noise_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Level={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py index e54ab2654f2..3dc7c0a53b1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py @@ -1,32 +1,30 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TopLevelSimulation(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False EmitNode.__init__(self, emit_obj, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py index 36fc75f89f7..b16d60057e3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TouchstoneCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -56,11 +53,13 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -70,11 +69,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -84,24 +85,28 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def filename(self) -> str: @@ -115,14 +120,16 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File Coupling data generated by Savant and exported as a matched file - """ + """ val = self._get_property("Savant Matched Coupling File") return val @@ -134,11 +141,13 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return val == true + return (val == true) @enable_em_isolation.setter def enable_em_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable EM Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable EM Isolation={value}"]) @property def port_antenna_assignment(self): @@ -146,23 +155,28 @@ def port_antenna_assignment(self): Maps each port in the coupling file to an antenna in the project "A list of values." - """ + """ val = self._get_property("Port-Antenna Assignment") return val @port_antenna_assignment.setter def port_antenna_assignment(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port-Antenna Assignment={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port-Antenna Assignment={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch.py similarity index 70% rename from src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py rename to src/ansys/aedt/core/emit_core/nodes/generated/tr_switch.py index e5eb106983d..c68a43a9258 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/TR_Switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TR_Switch(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -57,7 +53,9 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -70,21 +68,25 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TxPortOption(Enum): PORT_1 = "Port 1" @@ -95,14 +97,16 @@ def tx_port(self) -> TxPortOption: """Tx Port Specifies which port on the TR Switch is part of the Tx path. - """ + """ val = self._get_property("Tx Port") val = self.TxPortOption[val.upper()] return val @tx_port.setter def tx_port(self, value: TxPortOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Port={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Port={value.value}"]) class CommonPortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -113,16 +117,16 @@ def common_port_location(self) -> CommonPortLocationOption: """Common Port Location Defines the orientation of the tr switch. - """ + """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val.upper()] return val @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Common Port Location={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Common Port Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -135,8 +139,10 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_isolation(self) -> bool: @@ -147,11 +153,13 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val == true + return (val == true) @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -164,8 +172,10 @@ def isolation(self) -> float: return float(val) @isolation.setter - def isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) + def isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -176,11 +186,13 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val == true + return (val == true) @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -193,8 +205,10 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -208,9 +222,11 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -224,9 +240,11 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -240,9 +258,11 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -256,6 +276,9 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py index f2b9ac91d4b..0d5be899d86 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TRSwitchTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -62,7 +58,9 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -76,7 +74,9 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): @@ -84,13 +84,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -100,11 +102,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -114,24 +118,28 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -146,14 +154,16 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -167,7 +177,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -181,7 +193,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -205,14 +219,16 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -226,7 +242,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -240,7 +258,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -254,7 +274,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -265,8 +287,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py index 9c2bcce1a83..0b2d40f13a1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TunableTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -62,7 +58,9 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -76,22 +74,26 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def frequency(self) -> float: """Frequency Tunable filter center frequency - """ + """ val = self._get_property("Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @frequency.setter - def frequency(self, value: float | str): + def frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency={value}"]) @property def data_source(self): @@ -99,13 +101,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -115,11 +119,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -129,24 +135,28 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -161,14 +171,16 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -182,7 +194,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -196,7 +210,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -220,14 +236,16 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -241,7 +259,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -255,7 +275,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -269,7 +291,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -280,8 +304,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py index c1bbc47eeec..a7a6a17f37e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,37 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,24 +116,28 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def ground_reflection_coeff(self) -> float: @@ -142,8 +150,10 @@ def ground_reflection_coeff(self) -> float: return float(val) @ground_reflection_coeff.setter - def ground_reflection_coeff(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ground Reflection Coeff.={value}"]) + def ground_reflection_coeff(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ground Reflection Coeff.={value}"]) @property def pointspeak(self) -> int: @@ -157,7 +167,9 @@ def pointspeak(self) -> int: @pointspeak.setter def pointspeak(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Points/Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Points/Peak={value}"]) @property def custom_fading_margin(self) -> float: @@ -171,8 +183,10 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -186,8 +200,10 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -201,8 +217,10 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -215,14 +233,16 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -236,8 +256,10 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -250,8 +272,10 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -261,11 +285,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -279,8 +305,10 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -293,8 +321,10 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -308,8 +338,10 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -320,13 +352,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -339,8 +371,10 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -353,8 +387,10 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -367,7 +403,8 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py index 38ce5bb542b..363be46e6ab 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TwoToneTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -62,7 +58,9 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -76,7 +74,9 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): @@ -84,13 +84,15 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -100,11 +102,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -114,24 +118,28 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -146,14 +154,16 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -167,7 +177,9 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): @@ -181,7 +193,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -205,14 +219,16 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -226,7 +242,9 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -240,7 +258,9 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -254,7 +274,9 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -265,11 +287,13 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -283,9 +307,11 @@ def frequency_1(self) -> float: return float(val) @frequency_1.setter - def frequency_1(self, value: float | str): + def frequency_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -299,9 +325,11 @@ def amplitude_1(self) -> float: return float(val) @amplitude_1.setter - def amplitude_1(self, value: float | str): + def amplitude_1(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -315,9 +343,11 @@ def bandwidth_1(self) -> float: return float(val) @bandwidth_1.setter - def bandwidth_1(self, value: float | str): + def bandwidth_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -331,9 +361,11 @@ def frequency_2(self) -> float: return float(val) @frequency_2.setter - def frequency_2(self, value: float | str): + def frequency_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -347,9 +379,11 @@ def amplitude_2(self) -> float: return float(val) @amplitude_2.setter - def amplitude_2(self, value: float | str): + def amplitude_2(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -363,9 +397,11 @@ def bandwidth_2(self) -> float: return float(val) @bandwidth_2.setter - def bandwidth_2(self, value: float | str): + def bandwidth_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -378,5 +414,8 @@ def noise_level(self) -> float: return float(val) @noise_level.setter - def noise_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) + def noise_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Level={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py index 986abbfbb87..7b10b0d446e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TxBbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -50,9 +46,9 @@ def delete(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): Value should be between -200 and 150. """ return self._get_table_data() @@ -64,7 +60,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -81,14 +77,16 @@ def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior Specifies the behavior of the parametric noise profile - """ + """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val.upper()] return val @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Behavior={value.value}"]) @property def use_log_linear_interpolation(self) -> bool: @@ -99,10 +97,11 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return val == true + return (val == true) @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Log-Linear Interpolation={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py index 5b0f94761b9..052dcf7f40e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TxHarmonicNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -49,7 +45,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -64,13 +60,14 @@ def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units Specifies the units for the Harmonics - """ + """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val.upper()] return val @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py index 21e1fc9cb59..5b7b3dee748 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -69,7 +66,7 @@ def transmit_frequency(self) -> float: """Transmit Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -82,11 +79,13 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val == true + return (val == true) @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -100,9 +99,11 @@ def start_frequency(self) -> float: return float(val) @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -116,9 +117,11 @@ def stop_frequency(self) -> float: return float(val) @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def exclude_harmonics_below_noise(self) -> bool: @@ -128,19 +131,20 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return val == true + return (val == true) @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Exclude Harmonics Below Noise={value}"]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py index 347faed5fbd..622b8f95a8c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TxNbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -49,7 +45,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -64,28 +60,31 @@ def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior Specifies the behavior of the parametric narrowband emissions mask - """ + """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val.upper()] return val @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Narrowband Behavior={value.value}"]) @property def measurement_frequency(self) -> float: """Measurement Frequency Measurement frequency for the absolute freq/amp pairs. - """ + """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @measurement_frequency.setter - def measurement_frequency(self, value: float | str): + def measurement_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Frequency={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py index 8a8426ae9cb..32cfcb3cd42 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TxSpectralProfEmitterNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -39,7 +36,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -50,15 +47,17 @@ def output_voltage_peak(self) -> float: """Output Voltage Peak Output High Voltage Level: maximum voltage of the digital signal - """ + """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") return float(val) @output_voltage_peak.setter - def output_voltage_peak(self, value: float | str): + def output_voltage_peak(self, value : float|str): value = self._convert_to_internal_units(value, "Voltage") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Voltage Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Voltage Peak={value}"]) @property def include_phase_noise(self) -> bool: @@ -68,11 +67,13 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val == true + return (val == true) @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -85,8 +86,10 @@ def tx_broadband_noise(self) -> float: return float(val) @tx_broadband_noise.setter - def tx_broadband_noise(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Broadband Noise={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -96,13 +99,13 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val == true + return (val == true) @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Tx Intermod Analysis={value}"]) @property def internal_amp_gain(self) -> float: @@ -115,8 +118,10 @@ def internal_amp_gain(self) -> float: return float(val) @internal_amp_gain.setter - def internal_amp_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -129,8 +134,10 @@ def noise_figure(self) -> float: return float(val) @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -144,15 +151,15 @@ def amplifier_saturation_level(self) -> float: return float(val) @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -163,9 +170,11 @@ def p1_db_point_ref_input_(self) -> float: return float(val) @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -179,9 +188,11 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -194,8 +205,10 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -209,4 +222,7 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py index 7489fedbb53..b93cfd62910 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TxSpectralProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +37,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -56,14 +52,16 @@ def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type Specifies EMI Margins to calculate - """ + """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val.upper()] return val @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spectrum Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spectrum Type={value.value}"]) class TxPowerOption(Enum): PEAK_POWER = "Peak Power" @@ -74,14 +72,16 @@ def tx_power(self) -> TxPowerOption: """Tx Power Method used to specify the power - """ + """ val = self._get_property("Tx Power") val = self.TxPowerOption[val.upper()] return val @tx_power.setter def tx_power(self, value: TxPowerOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Power={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Power={value.value}"]) @property def peak_power(self) -> float: @@ -95,9 +95,11 @@ def peak_power(self) -> float: return float(val) @peak_power.setter - def peak_power(self, value: float | str): + def peak_power(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Peak Power={value}"]) @property def average_power(self) -> float: @@ -111,9 +113,11 @@ def average_power(self) -> float: return float(val) @average_power.setter - def average_power(self, value: float | str): + def average_power(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Average Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Average Power={value}"]) @property def include_phase_noise(self) -> bool: @@ -123,11 +127,13 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val == true + return (val == true) @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -140,8 +146,10 @@ def tx_broadband_noise(self) -> float: return float(val) @tx_broadband_noise.setter - def tx_broadband_noise(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Broadband Noise={value}"]) class HarmonicTaperOption(Enum): CONSTANT = "Constant" @@ -154,14 +162,16 @@ def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper Taper type used to set amplitude of harmonics - """ + """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val.upper()] return val @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Taper={value.value}"]) @property def harmonic_amplitude(self) -> float: @@ -174,8 +184,10 @@ def harmonic_amplitude(self) -> float: return float(val) @harmonic_amplitude.setter - def harmonic_amplitude(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Amplitude={value}"]) + def harmonic_amplitude(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Amplitude={value}"]) @property def harmonic_slope(self) -> float: @@ -188,8 +200,10 @@ def harmonic_slope(self) -> float: return float(val) @harmonic_slope.setter - def harmonic_slope(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Slope={value}"]) + def harmonic_slope(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Slope={value}"]) @property def harmonic_intercept(self) -> float: @@ -202,8 +216,10 @@ def harmonic_intercept(self) -> float: return float(val) @harmonic_intercept.setter - def harmonic_intercept(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Intercept={value}"]) + def harmonic_intercept(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Intercept={value}"]) @property def enable_harmonic_bw_expansion(self) -> bool: @@ -214,13 +230,13 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return val == true + return (val == true) @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Enable Harmonic BW Expansion={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Harmonic BW Expansion={value}"]) @property def number_of_harmonics(self) -> int: @@ -234,7 +250,9 @@ def number_of_harmonics(self) -> int: @number_of_harmonics.setter def number_of_harmonics(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Harmonics={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Harmonics={value}"]) @property def second_harmonic_level(self) -> float: @@ -247,8 +265,10 @@ def second_harmonic_level(self) -> float: return float(val) @second_harmonic_level.setter - def second_harmonic_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Second Harmonic Level={value}"]) + def second_harmonic_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Second Harmonic Level={value}"]) @property def third_harmonic_level(self) -> float: @@ -261,8 +281,10 @@ def third_harmonic_level(self) -> float: return float(val) @third_harmonic_level.setter - def third_harmonic_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Third Harmonic Level={value}"]) + def third_harmonic_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Third Harmonic Level={value}"]) @property def other_harmonic_levels(self) -> float: @@ -275,8 +297,10 @@ def other_harmonic_levels(self) -> float: return float(val) @other_harmonic_levels.setter - def other_harmonic_levels(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Other Harmonic Levels={value}"]) + def other_harmonic_levels(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Other Harmonic Levels={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -286,13 +310,13 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val == true + return (val == true) @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Tx Intermod Analysis={value}"]) @property def internal_amp_gain(self) -> float: @@ -305,8 +329,10 @@ def internal_amp_gain(self) -> float: return float(val) @internal_amp_gain.setter - def internal_amp_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -319,8 +345,10 @@ def noise_figure(self) -> float: return float(val) @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -334,15 +362,15 @@ def amplifier_saturation_level(self) -> float: return float(val) @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -353,9 +381,11 @@ def p1_db_point_ref_input_(self) -> float: return float(val) @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + def p1_db_point_ref_input_(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -369,9 +399,11 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -384,8 +416,10 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -399,4 +433,7 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py index ccf54f44181..695ad89c353 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -48,13 +44,13 @@ def delete(self): @property def table_data(self): - """Table" + """ Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -66,7 +62,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -81,11 +77,14 @@ def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spur Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py index ac333cf11ba..1efe52b8870 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class WalfischCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,37 +54,43 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -98,11 +100,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -112,24 +116,28 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class PathLossTypeOption(Enum): LOS_URBAN_CANYON = "LOS (Urban Canyon)" @@ -140,14 +148,16 @@ def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type Specify LOS vs NLOS for the Walfisch-Ikegami model - """ + """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val.upper()] return val @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Path Loss Type={value.value}"]) class EnvironmentOption(Enum): DENSE_METRO = "Dense Metro" @@ -158,14 +168,16 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Walfisch model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def roof_height(self) -> float: @@ -179,9 +191,11 @@ def roof_height(self) -> float: return float(val) @roof_height.setter - def roof_height(self, value: float | str): + def roof_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Roof Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Roof Height={value}"]) @property def distance_between_buildings(self) -> float: @@ -195,11 +209,11 @@ def distance_between_buildings(self) -> float: return float(val) @distance_between_buildings.setter - def distance_between_buildings(self, value: float | str): + def distance_between_buildings(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Distance Between Buildings={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Distance Between Buildings={value}"]) @property def street_width(self) -> float: @@ -213,9 +227,11 @@ def street_width(self) -> float: return float(val) @street_width.setter - def street_width(self, value: float | str): + def street_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Street Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Street Width={value}"]) @property def incidence_angle(self) -> float: @@ -228,8 +244,10 @@ def incidence_angle(self) -> float: return float(val) @incidence_angle.setter - def incidence_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Incidence Angle={value}"]) + def incidence_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Incidence Angle={value}"]) @property def custom_fading_margin(self) -> float: @@ -243,8 +261,10 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -258,8 +278,10 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -273,8 +295,10 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -287,14 +311,16 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -308,8 +334,10 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -322,8 +350,10 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -333,11 +363,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -351,8 +383,10 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -365,8 +399,10 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -380,8 +416,10 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -392,13 +430,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: @@ -411,8 +449,10 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -425,8 +465,10 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -439,7 +481,8 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/waveform.py similarity index 71% rename from src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py rename to src/ansys/aedt/core/emit_core/nodes/generated/waveform.py index 49c8c97666f..e763d28e2fc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/Waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/waveform.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Waveform(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +37,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -52,13 +48,15 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") return val @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port={value}"]) class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" @@ -72,14 +70,16 @@ def waveform(self) -> WaveformOption: """Waveform Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Waveform") val = self.WaveformOption[val.upper()] return val @waveform.setter def waveform(self, value: WaveformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Waveform={value.value}"]) @property def start_frequency(self) -> float: @@ -93,9 +93,11 @@ def start_frequency(self) -> float: return float(val) @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -109,9 +111,11 @@ def stop_frequency(self) -> float: return float(val) @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -125,9 +129,11 @@ def channel_spacing(self) -> float: return float(val) @channel_spacing.setter - def channel_spacing(self, value: float | str): + def channel_spacing(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Spacing={value}"]) @property def clock_duty_cycle(self) -> float: @@ -140,8 +146,10 @@ def clock_duty_cycle(self) -> float: return float(val) @clock_duty_cycle.setter - def clock_duty_cycle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Duty Cycle={value}"]) + def clock_duty_cycle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Clock Duty Cycle={value}"]) @property def clock_risefall_time(self) -> float: @@ -155,9 +163,11 @@ def clock_risefall_time(self) -> float: return float(val) @clock_risefall_time.setter - def clock_risefall_time(self, value: float | str): + def clock_risefall_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Rise/Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Clock Rise/Fall Time={value}"]) class SpreadingTypeOption(Enum): LOW_SPREAD = "Low Spread" @@ -169,14 +179,16 @@ def spreading_type(self) -> SpreadingTypeOption: """Spreading Type Type of spreading employed by the Spread Spectrum Clock - """ + """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val.upper()] return val @spreading_type.setter def spreading_type(self, value: SpreadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spreading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spreading Type={value.value}"]) @property def spread_percentage(self) -> float: @@ -189,8 +201,10 @@ def spread_percentage(self) -> float: return float(val) @spread_percentage.setter - def spread_percentage(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spread Percentage={value}"]) + def spread_percentage(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spread Percentage={value}"]) @property def imported_spectrum(self) -> str: @@ -202,14 +216,16 @@ def imported_spectrum(self) -> str: @imported_spectrum.setter def imported_spectrum(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Imported Spectrum={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Imported Spectrum={value}"]) @property def raw_data_format(self) -> str: """Raw Data Format Format of the imported raw data - """ + """ val = self._get_property("Raw Data Format") return val @@ -225,9 +241,11 @@ def system_impedance(self) -> float: return float(val) @system_impedance.setter - def system_impedance(self, value: float | str): + def system_impedance(self, value : float|str): value = self._convert_to_internal_units(value, "Resistance") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"System Impedance={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"System Impedance={value}"]) @property def advanced_extraction_params(self) -> bool: @@ -237,13 +255,13 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return val == true + return (val == true) @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Advanced Extraction Params={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Advanced Extraction Params={value}"]) @property def nb_window_size(self) -> float: @@ -257,8 +275,10 @@ def nb_window_size(self) -> float: return float(val) @nb_window_size.setter - def nb_window_size(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Window Size={value}"]) + def nb_window_size(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NB Window Size={value}"]) @property def bb_smoothing_factor(self) -> float: @@ -271,8 +291,10 @@ def bb_smoothing_factor(self) -> float: return float(val) @bb_smoothing_factor.setter - def bb_smoothing_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Smoothing Factor={value}"]) + def bb_smoothing_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Smoothing Factor={value}"]) @property def nb_detector_threshold(self) -> float: @@ -285,8 +307,10 @@ def nb_detector_threshold(self) -> float: return float(val) @nb_detector_threshold.setter - def nb_detector_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Detector Threshold={value}"]) + def nb_detector_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NB Detector Threshold={value}"]) class AlgorithmOption(Enum): FFT = "FFT" @@ -297,14 +321,16 @@ def algorithm(self) -> AlgorithmOption: """Algorithm Algorithm used to transform the imported time domain spectrum - """ + """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val.upper()] return val @algorithm.setter def algorithm(self, value: AlgorithmOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Algorithm={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Algorithm={value.value}"]) @property def start_time(self) -> float: @@ -318,24 +344,28 @@ def start_time(self) -> float: return float(val) @start_time.setter - def start_time(self, value: float | str): + def start_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Time={value}"]) @property def stop_time(self) -> float: """Stop Time Final time of the imported time domain spectrum - """ + """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") return float(val) @stop_time.setter - def stop_time(self, value: float | str): + def stop_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Time={value}"]) @property def max_frequency(self) -> float: @@ -349,9 +379,11 @@ def max_frequency(self) -> float: return float(val) @max_frequency.setter - def max_frequency(self, value: float | str): + def max_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Frequency={value}"]) class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" @@ -369,14 +401,16 @@ def window_type(self) -> WindowTypeOption: """Window Type Windowing scheme used for importing time domain spectrum - """ + """ val = self._get_property("Window Type") val = self.WindowTypeOption[val.upper()] return val @window_type.setter def window_type(self, value: WindowTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Window Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Window Type={value.value}"]) @property def kaiser_parameter(self) -> float: @@ -389,8 +423,10 @@ def kaiser_parameter(self) -> float: return float(val) @kaiser_parameter.setter - def kaiser_parameter(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Kaiser Parameter={value}"]) + def kaiser_parameter(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Kaiser Parameter={value}"]) @property def adjust_coherent_gain(self) -> bool: @@ -400,11 +436,13 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return val == true + return (val == true) @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adjust Coherent Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adjust Coherent Gain={value}"]) @property def data_rate(self) -> float: @@ -418,9 +456,11 @@ def data_rate(self) -> float: return float(val) @data_rate.setter - def data_rate(self, value: float | str): + def data_rate(self, value : float|str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Rate={value}"]) @property def num_of_bits(self) -> int: @@ -434,7 +474,9 @@ def num_of_bits(self) -> int: @num_of_bits.setter def num_of_bits(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Num of Bits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Num of Bits={value}"]) @property def use_envelope(self) -> bool: @@ -444,11 +486,13 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return val == true + return (val == true) @use_envelope.setter def use_envelope(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Envelope={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Envelope={value}"]) @property def min_ptsnull(self) -> int: @@ -462,7 +506,9 @@ def min_ptsnull(self) -> int: @min_ptsnull.setter def min_ptsnull(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pts/Null={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pts/Null={value}"]) @property def delay_skew(self) -> float: @@ -476,6 +522,9 @@ def delay_skew(self) -> float: return float(val) @delay_skew.setter - def delay_skew(self, value: float | str): + def delay_skew(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Delay Skew={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Delay Skew={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/results/revision.py b/src/ansys/aedt/core/emit_core/results/revision.py index 85f9b0981b2..37620c385d8 100644 --- a/src/ansys/aedt/core/emit_core/results/revision.py +++ b/src/ansys/aedt/core/emit_core/results/revision.py @@ -30,25 +30,12 @@ from ansys.aedt.core.emit_core.emit_constants import ResultType from ansys.aedt.core.emit_core.emit_constants import TxRxMode from ansys.aedt.core.emit_core.nodes import generated -from ansys.aedt.core.emit_core.nodes.EmitNode import EmitNode +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode from ansys.aedt.core.emit_core.nodes.generated import CouplingsNode from ansys.aedt.core.emit_core.nodes.generated import EmitSceneNode from ansys.aedt.core.emit_core.nodes.generated import ResultPlotNode from ansys.aedt.core.generic.general_methods import pyaedt_function_handler - - -def error_if_below_aedt_version(version: int): - def decorator(func): - def wrapper(self, *args, **kwargs): - if self.aedt_version >= version: - result = func(self, *args, **kwargs) - return result - else: - raise RuntimeError(f"This function is only supported in AEDT version {version} and later.") - - return wrapper - - return decorator +from ansys.aedt.core.internal.checks import min_aedt_version class Revision: @@ -83,6 +70,9 @@ def __init__(self, parent_results, emit_obj, name=None): self.emit_project = emit_obj """EMIT project.""" + self.odesktop = emit_obj.odesktop + """Desktop object.""" + self.parent_results = parent_results """Parent Results object.""" @@ -842,7 +832,7 @@ def get_license_session(self): return engine.license_session() @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.2") def _get_all_component_names(self) -> list[str]: """Gets all component names from this revision. @@ -859,7 +849,7 @@ def _get_all_component_names(self) -> list[str]: return component_names @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.2") def _get_all_top_level_node_ids(self) -> list[int]: """Gets all top level node ids from this revision. @@ -903,7 +893,7 @@ def _get_all_top_level_node_ids(self) -> list[int]: return top_level_node_ids @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.2") def get_all_top_level_nodes(self) -> list[EmitNode]: """Gets all top level nodes from this revision. @@ -921,7 +911,7 @@ def get_all_top_level_nodes(self) -> list[EmitNode]: return top_level_nodes @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.2") def get_all_component_nodes(self) -> list[EmitNode]: """Gets all component nodes from this revision. @@ -940,7 +930,7 @@ def get_all_component_nodes(self) -> list[EmitNode]: return component_nodes @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.2") def _get_all_node_ids(self) -> list[int]: """Gets all node ids from this revision. @@ -978,7 +968,7 @@ def _get_all_node_ids(self) -> list[int]: return node_ids @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.2") def _get_node(self, node_id: int) -> EmitNode: """Gets a node for this revision with the given id. @@ -1011,7 +1001,7 @@ def _get_node(self, node_id: int) -> EmitNode: return node @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.2") def get_all_nodes(self) -> list[EmitNode]: """Gets all nodes for this revision. @@ -1030,7 +1020,7 @@ def get_all_nodes(self) -> list[EmitNode]: # Methods to get specific top level nodes @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.2") def get_scene_node(self) -> EmitSceneNode: """Gets the Scene node for this revision. @@ -1048,7 +1038,7 @@ def get_scene_node(self) -> EmitSceneNode: return scene_node @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.2") def get_coupling_data_node(self) -> CouplingsNode: """Gets the Coupling Data node for this revision. @@ -1066,7 +1056,7 @@ def get_coupling_data_node(self) -> CouplingsNode: return coupling_data_node @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.2") def get_simulation_node(self) -> EmitNode: """Gets the Simulation node for this revision. @@ -1084,7 +1074,7 @@ def get_simulation_node(self) -> EmitNode: return simulation_node @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.2") def get_preferences_node(self) -> EmitNode: """Gets the Preferences node for this revision. @@ -1102,7 +1092,7 @@ def get_preferences_node(self) -> EmitNode: return preferences_node @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.2") def get_result_plot_node(self) -> ResultPlotNode: """Gets the Result Plot node for this revision. @@ -1120,7 +1110,7 @@ def get_result_plot_node(self) -> ResultPlotNode: return result_plot_node @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.2") def get_result_categorization_node(self) -> EmitNode: """Gets the Result Categorization node for this revision. @@ -1140,7 +1130,7 @@ def get_result_categorization_node(self) -> EmitNode: return result_categorization_node @pyaedt_function_handler - @error_if_below_aedt_version(251) + @min_aedt_version("2025.2") def _get_disconnected_radios(self) -> list[str]: """Gets a list of disconnected radios for this revision. diff --git a/tests/system/solvers/test_26_emit.py b/tests/system/solvers/test_26_emit.py index 2b5184b885b..fb2e7ead946 100644 --- a/tests/system/solvers/test_26_emit.py +++ b/tests/system/solvers/test_26_emit.py @@ -49,7 +49,7 @@ from ansys.aedt.core.emit_core.emit_constants import ResultType from ansys.aedt.core.emit_core.emit_constants import TxRxMode from ansys.aedt.core.emit_core.nodes import generated - from ansys.aedt.core.emit_core.nodes.EmitNode import EmitNode + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode from ansys.aedt.core.emit_core.nodes.generated import * from ansys.aedt.core.emit_core.results.revision import Revision from ansys.aedt.core.modeler.circuits.primitives_emit import EmitAntennaComponent From 17c3fe2254131e830c92c8a9d634cbc0d4f81290 Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Wed, 21 May 2025 15:19:14 -0500 Subject: [PATCH 73/86] Remove test file --- src/ansys/aedt/core/Test.py | 52 ------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 src/ansys/aedt/core/Test.py diff --git a/src/ansys/aedt/core/Test.py b/src/ansys/aedt/core/Test.py deleted file mode 100644 index c01d7d88e6a..00000000000 --- a/src/ansys/aedt/core/Test.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -import tempfile - -import ansys.aedt.core - -from emit_core.emit_constants import EmiCategoryFilter - -AEDT_VERSION = "2025.1" -NG_MODE = False - -temp_folder = tempfile.TemporaryDirectory(suffix=".ansys") - -project_name = ansys.aedt.core.generate_unique_project_name(root_name=temp_folder.name, project_name="antenna_cosite") -d = ansys.aedt.core.launch_desktop(AEDT_VERSION, NG_MODE, new_desktop=True) - -emit = ansys.aedt.core.Emit(project_name, version=AEDT_VERSION) - -# add a couple quick radios -radio = emit.modeler.components.create_component("New Radio") -radio = emit.modeler.components.create_component("New Radio") - -rev = emit.results.analyze() -cats = rev.get_emi_category_filter_enabled(EmiCategoryFilter.IN_CHANNEL_TX_INTERMOD) -# n1limit = rev.n_to_1_limit -# receivers = rev.get_receiver_names() -pass - -emit.save_project() -emit.release_desktop() From 72efa757a53f770daa150681286922048f545633 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 21 May 2025 20:21:08 +0000 Subject: [PATCH 74/86] CHORE: Auto fixes from pre-commit hooks --- .../emit_core/nodes/generated/__init__.py | 318 ++++++++-------- .../emit_core/nodes/generated/amplifier.py | 97 ++--- .../emit_core/nodes/generated/antenna_node.py | 341 +++++++----------- .../nodes/generated/antenna_passband.py | 60 ++- .../core/emit_core/nodes/generated/band.py | 237 +++++------- .../emit_core/nodes/generated/band_folder.py | 16 +- .../nodes/generated/band_trace_node.py | 93 ++--- .../core/emit_core/nodes/generated/cable.py | 71 ++-- .../emit_core/nodes/generated/cad_node.py | 223 ++++-------- .../nodes/generated/categories_view_node.py | 16 +- .../emit_core/nodes/generated/circulator.py | 101 ++---- .../nodes/generated/coupling_link_node.py | 28 +- .../nodes/generated/coupling_trace_node.py | 131 +++---- .../nodes/generated/couplings_node.py | 32 +- .../nodes/generated/custom_coupling_node.py | 60 ++- .../nodes/generated/emi_plot_marker_node.py | 131 +++---- .../nodes/generated/emit_scene_node.py | 39 +- .../nodes/generated/erceg_coupling_node.py | 147 +++----- .../core/emit_core/nodes/generated/filter.py | 161 +++------ .../nodes/generated/five_g_channel_model.py | 165 ++++----- .../nodes/generated/hata_coupling_node.py | 147 +++----- .../indoor_propagation_coupling_node.py | 159 ++++---- .../emit_core/nodes/generated/isolator.py | 101 ++---- .../generated/log_distance_coupling_node.py | 153 +++----- .../nodes/generated/mplex_band_trace_node.py | 86 ++--- .../emit_core/nodes/generated/multiplexer.py | 59 ++- .../nodes/generated/multiplexer_band.py | 89 ++--- .../nodes/generated/outboard_trace_node.py | 87 ++--- .../parametric_coupling_trace_node.py | 93 ++--- .../nodes/generated/plot_marker_node.py | 143 +++----- .../emit_core/nodes/generated/plot_node.py | 179 ++++----- .../nodes/generated/power_divider.py | 103 ++---- .../nodes/generated/power_trace_node.py | 85 ++--- .../nodes/generated/profile_trace_node.py | 79 ++-- .../propagation_loss_coupling_node.py | 141 +++----- .../emit_core/nodes/generated/radio_node.py | 30 +- .../nodes/generated/read_only_amplifier.py | 21 +- .../nodes/generated/read_only_antenna_node.py | 85 ++--- .../generated/read_only_antenna_passband.py | 18 +- .../nodes/generated/read_only_band.py | 49 +-- .../nodes/generated/read_only_band_folder.py | 16 +- .../nodes/generated/read_only_cable.py | 23 +- .../nodes/generated/read_only_cad_node.py | 43 ++- .../nodes/generated/read_only_circulator.py | 29 +- .../generated/read_only_coupling_link_node.py | 20 +- .../generated/read_only_couplings_node.py | 18 +- .../read_only_custom_coupling_node.py | 34 +- .../generated/read_only_emit_scene_node.py | 23 +- .../read_only_erceg_coupling_node.py | 37 +- .../nodes/generated/read_only_filter.py | 35 +- .../read_only_five_g_channel_model.py | 43 ++- .../generated/read_only_hata_coupling_node.py | 37 +- ...d_only_indoor_propagation_coupling_node.py | 45 +-- .../nodes/generated/read_only_isolator.py | 29 +- .../read_only_log_distance_coupling_node.py | 37 +- .../nodes/generated/read_only_multiplexer.py | 29 +- .../generated/read_only_multiplexer_band.py | 21 +- .../generated/read_only_power_divider.py | 29 +- ...ead_only_propagation_loss_coupling_node.py | 35 +- .../nodes/generated/read_only_radio_node.py | 26 +- .../nodes/generated/read_only_rx_meas_node.py | 35 +- .../read_only_rx_mixer_product_node.py | 27 +- .../generated/read_only_rx_saturation_node.py | 16 +- .../read_only_rx_selectivity_node.py | 18 +- .../nodes/generated/read_only_rx_spur_node.py | 27 +- .../read_only_rx_susceptibility_prof_node.py | 31 +- .../generated/read_only_sampling_node.py | 33 +- .../generated/read_only_scene_group_node.py | 25 +- .../read_only_solution_coupling_node.py | 24 +- .../generated/read_only_solutions_node.py | 18 +- .../nodes/generated/read_only_terminator.py | 25 +- .../read_only_touchstone_coupling_node.py | 32 +- .../nodes/generated/read_only_tr_switch.py | 27 +- ...ad_only_two_ray_path_loss_coupling_node.py | 35 +- .../read_only_tx_bb_emission_node.py | 25 +- .../generated/read_only_tx_harmonic_node.py | 19 +- .../nodes/generated/read_only_tx_meas_node.py | 22 +- .../read_only_tx_nb_emission_node.py | 21 +- ...read_only_tx_spectral_prof_emitter_node.py | 24 +- .../read_only_tx_spectral_prof_node.py | 31 +- .../nodes/generated/read_only_tx_spur_node.py | 27 +- .../read_only_walfisch_coupling_node.py | 39 +- .../nodes/generated/read_only_waveform.py | 37 +- .../nodes/generated/result_plot_node.py | 185 ++++------ .../emit_core/nodes/generated/rx_meas_node.py | 131 +++---- .../nodes/generated/rx_mixer_product_node.py | 123 +++---- .../nodes/generated/rx_saturation_node.py | 20 +- .../nodes/generated/rx_selectivity_node.py | 26 +- .../emit_core/nodes/generated/rx_spur_node.py | 35 +- .../generated/rx_susceptibility_prof_node.py | 117 +++--- .../nodes/generated/sampling_node.py | 57 ++- .../nodes/generated/scene_group_node.py | 63 ++-- .../nodes/generated/selectivity_trace_node.py | 79 ++-- .../nodes/generated/solution_coupling_node.py | 40 +- .../nodes/generated/solutions_node.py | 22 +- .../nodes/generated/spur_trace_node.py | 87 ++--- .../emit_core/nodes/generated/terminator.py | 53 ++- .../nodes/generated/test_noise_trace_node.py | 129 +++---- .../nodes/generated/top_level_simulation.py | 16 +- .../generated/touchstone_coupling_node.py | 64 ++-- .../emit_core/nodes/generated/tr_switch.py | 101 ++---- .../nodes/generated/tr_switch_trace_node.py | 87 ++--- .../nodes/generated/tunable_trace_node.py | 95 ++--- .../two_ray_path_loss_coupling_node.py | 151 +++----- .../nodes/generated/two_tone_trace_node.py | 129 +++---- .../nodes/generated/tx_bb_emission_node.py | 39 +- .../nodes/generated/tx_harmonic_node.py | 29 +- .../emit_core/nodes/generated/tx_meas_node.py | 46 ++- .../nodes/generated/tx_nb_emission_node.py | 37 +- .../tx_spectral_prof_emitter_node.py | 90 ++--- .../nodes/generated/tx_spectral_prof_node.py | 161 ++++----- .../emit_core/nodes/generated/tx_spur_node.py | 35 +- .../nodes/generated/walfisch_coupling_node.py | 179 ++++----- .../emit_core/nodes/generated/waveform.py | 181 ++++------ 114 files changed, 3433 insertions(+), 4775 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index 255b60e62e6..1cb32f85690 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,11 +1,35 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from .amplifier import Amplifier from .antenna_node import AntennaNode from .antenna_passband import AntennaPassband from .band import Band from .band_folder import BandFolder from .band_trace_node import BandTraceNode -from .cad_node import CADNode from .cable import Cable +from .cad_node import CADNode from .categories_view_node import CategoriesViewNode from .circulator import Circulator from .coupling_link_node import CouplingLinkNode @@ -33,44 +57,13 @@ from .profile_trace_node import ProfileTraceNode from .propagation_loss_coupling_node import PropagationLossCouplingNode from .radio_node import RadioNode -from .result_plot_node import ResultPlotNode -from .rx_meas_node import RxMeasNode -from .rx_mixer_product_node import RxMixerProductNode -from .rx_saturation_node import RxSaturationNode -from .rx_selectivity_node import RxSelectivityNode -from .rx_spur_node import RxSpurNode -from .rx_susceptibility_prof_node import RxSusceptibilityProfNode -from .sampling_node import SamplingNode -from .scene_group_node import SceneGroupNode -from .selectivity_trace_node import SelectivityTraceNode -from .solution_coupling_node import SolutionCouplingNode -from .solutions_node import SolutionsNode -from .spur_trace_node import SpurTraceNode -from .tr_switch import TR_Switch -from .tr_switch_trace_node import TRSwitchTraceNode -from .terminator import Terminator -from .test_noise_trace_node import TestNoiseTraceNode -from .top_level_simulation import TopLevelSimulation -from .touchstone_coupling_node import TouchstoneCouplingNode -from .tunable_trace_node import TunableTraceNode -from .two_ray_path_loss_coupling_node import TwoRayPathLossCouplingNode -from .two_tone_trace_node import TwoToneTraceNode -from .tx_bb_emission_node import TxBbEmissionNode -from .tx_harmonic_node import TxHarmonicNode -from .tx_meas_node import TxMeasNode -from .tx_nb_emission_node import TxNbEmissionNode -from .tx_spectral_prof_emitter_node import TxSpectralProfEmitterNode -from .tx_spectral_prof_node import TxSpectralProfNode -from .tx_spur_node import TxSpurNode -from .walfisch_coupling_node import WalfischCouplingNode -from .waveform import Waveform from .read_only_amplifier import ReadOnlyAmplifier from .read_only_antenna_node import ReadOnlyAntennaNode from .read_only_antenna_passband import ReadOnlyAntennaPassband from .read_only_band import ReadOnlyBand from .read_only_band_folder import ReadOnlyBandFolder -from .read_only_cad_node import ReadOnlyCADNode from .read_only_cable import ReadOnlyCable +from .read_only_cad_node import ReadOnlyCADNode from .read_only_circulator import ReadOnlyCirculator from .read_only_coupling_link_node import ReadOnlyCouplingLinkNode from .read_only_couplings_node import ReadOnlyCouplingsNode @@ -98,9 +91,9 @@ from .read_only_scene_group_node import ReadOnlySceneGroupNode from .read_only_solution_coupling_node import ReadOnlySolutionCouplingNode from .read_only_solutions_node import ReadOnlySolutionsNode -from .read_only_tr_switch import ReadOnlyTR_Switch from .read_only_terminator import ReadOnlyTerminator from .read_only_touchstone_coupling_node import ReadOnlyTouchstoneCouplingNode +from .read_only_tr_switch import ReadOnlyTR_Switch from .read_only_two_ray_path_loss_coupling_node import ReadOnlyTwoRayPathLossCouplingNode from .read_only_tx_bb_emission_node import ReadOnlyTxBbEmissionNode from .read_only_tx_harmonic_node import ReadOnlyTxHarmonicNode @@ -111,119 +104,150 @@ from .read_only_tx_spur_node import ReadOnlyTxSpurNode from .read_only_walfisch_coupling_node import ReadOnlyWalfischCouplingNode from .read_only_waveform import ReadOnlyWaveform +from .result_plot_node import ResultPlotNode +from .rx_meas_node import RxMeasNode +from .rx_mixer_product_node import RxMixerProductNode +from .rx_saturation_node import RxSaturationNode +from .rx_selectivity_node import RxSelectivityNode +from .rx_spur_node import RxSpurNode +from .rx_susceptibility_prof_node import RxSusceptibilityProfNode +from .sampling_node import SamplingNode +from .scene_group_node import SceneGroupNode +from .selectivity_trace_node import SelectivityTraceNode +from .solution_coupling_node import SolutionCouplingNode +from .solutions_node import SolutionsNode +from .spur_trace_node import SpurTraceNode +from .terminator import Terminator +from .test_noise_trace_node import TestNoiseTraceNode +from .top_level_simulation import TopLevelSimulation +from .touchstone_coupling_node import TouchstoneCouplingNode +from .tr_switch import TR_Switch +from .tr_switch_trace_node import TRSwitchTraceNode +from .tunable_trace_node import TunableTraceNode +from .two_ray_path_loss_coupling_node import TwoRayPathLossCouplingNode +from .two_tone_trace_node import TwoToneTraceNode +from .tx_bb_emission_node import TxBbEmissionNode +from .tx_harmonic_node import TxHarmonicNode +from .tx_meas_node import TxMeasNode +from .tx_nb_emission_node import TxNbEmissionNode +from .tx_spectral_prof_emitter_node import TxSpectralProfEmitterNode +from .tx_spectral_prof_node import TxSpectralProfNode +from .tx_spur_node import TxSpurNode +from .walfisch_coupling_node import WalfischCouplingNode +from .waveform import Waveform __all__ = [ - 'Amplifier', - 'AntennaNode', - 'AntennaPassband', - 'Band', - 'BandFolder', - 'BandTraceNode', - 'CADNode', - 'Cable', - 'CategoriesViewNode', - 'Circulator', - 'CouplingLinkNode', - 'CouplingTraceNode', - 'CouplingsNode', - 'CustomCouplingNode', - 'EmiPlotMarkerNode', - 'EmitSceneNode', - 'ErcegCouplingNode', - 'Filter', - 'FiveGChannelModel', - 'HataCouplingNode', - 'IndoorPropagationCouplingNode', - 'Isolator', - 'LogDistanceCouplingNode', - 'MPlexBandTraceNode', - 'Multiplexer', - 'MultiplexerBand', - 'OutboardTraceNode', - 'ParametricCouplingTraceNode', - 'PlotMarkerNode', - 'PlotNode', - 'PowerDivider', - 'PowerTraceNode', - 'ProfileTraceNode', - 'PropagationLossCouplingNode', - 'RadioNode', - 'ResultPlotNode', - 'RxMeasNode', - 'RxMixerProductNode', - 'RxSaturationNode', - 'RxSelectivityNode', - 'RxSpurNode', - 'RxSusceptibilityProfNode', - 'SamplingNode', - 'SceneGroupNode', - 'SelectivityTraceNode', - 'SolutionCouplingNode', - 'SolutionsNode', - 'SpurTraceNode', - 'TR_Switch', - 'TRSwitchTraceNode', - 'Terminator', - 'TestNoiseTraceNode', - 'TopLevelSimulation', - 'TouchstoneCouplingNode', - 'TunableTraceNode', - 'TwoRayPathLossCouplingNode', - 'TwoToneTraceNode', - 'TxBbEmissionNode', - 'TxHarmonicNode', - 'TxMeasNode', - 'TxNbEmissionNode', - 'TxSpectralProfEmitterNode', - 'TxSpectralProfNode', - 'TxSpurNode', - 'WalfischCouplingNode', - 'Waveform', - 'ReadOnlyAmplifier', - 'ReadOnlyAntennaNode', - 'ReadOnlyAntennaPassband', - 'ReadOnlyBand', - 'ReadOnlyBandFolder', - 'ReadOnlyCADNode', - 'ReadOnlyCable', - 'ReadOnlyCirculator', - 'ReadOnlyCouplingLinkNode', - 'ReadOnlyCouplingsNode', - 'ReadOnlyCustomCouplingNode', - 'ReadOnlyEmitSceneNode', - 'ReadOnlyErcegCouplingNode', - 'ReadOnlyFilter', - 'ReadOnlyFiveGChannelModel', - 'ReadOnlyHataCouplingNode', - 'ReadOnlyIndoorPropagationCouplingNode', - 'ReadOnlyIsolator', - 'ReadOnlyLogDistanceCouplingNode', - 'ReadOnlyMultiplexer', - 'ReadOnlyMultiplexerBand', - 'ReadOnlyPowerDivider', - 'ReadOnlyPropagationLossCouplingNode', - 'ReadOnlyRadioNode', - 'ReadOnlyRxMeasNode', - 'ReadOnlyRxMixerProductNode', - 'ReadOnlyRxSaturationNode', - 'ReadOnlyRxSelectivityNode', - 'ReadOnlyRxSpurNode', - 'ReadOnlyRxSusceptibilityProfNode', - 'ReadOnlySamplingNode', - 'ReadOnlySceneGroupNode', - 'ReadOnlySolutionCouplingNode', - 'ReadOnlySolutionsNode', - 'ReadOnlyTR_Switch', - 'ReadOnlyTerminator', - 'ReadOnlyTouchstoneCouplingNode', - 'ReadOnlyTwoRayPathLossCouplingNode', - 'ReadOnlyTxBbEmissionNode', - 'ReadOnlyTxHarmonicNode', - 'ReadOnlyTxMeasNode', - 'ReadOnlyTxNbEmissionNode', - 'ReadOnlyTxSpectralProfEmitterNode', - 'ReadOnlyTxSpectralProfNode', - 'ReadOnlyTxSpurNode', - 'ReadOnlyWalfischCouplingNode', - 'ReadOnlyWaveform', + "Amplifier", + "AntennaNode", + "AntennaPassband", + "Band", + "BandFolder", + "BandTraceNode", + "CADNode", + "Cable", + "CategoriesViewNode", + "Circulator", + "CouplingLinkNode", + "CouplingTraceNode", + "CouplingsNode", + "CustomCouplingNode", + "EmiPlotMarkerNode", + "EmitSceneNode", + "ErcegCouplingNode", + "Filter", + "FiveGChannelModel", + "HataCouplingNode", + "IndoorPropagationCouplingNode", + "Isolator", + "LogDistanceCouplingNode", + "MPlexBandTraceNode", + "Multiplexer", + "MultiplexerBand", + "OutboardTraceNode", + "ParametricCouplingTraceNode", + "PlotMarkerNode", + "PlotNode", + "PowerDivider", + "PowerTraceNode", + "ProfileTraceNode", + "PropagationLossCouplingNode", + "RadioNode", + "ResultPlotNode", + "RxMeasNode", + "RxMixerProductNode", + "RxSaturationNode", + "RxSelectivityNode", + "RxSpurNode", + "RxSusceptibilityProfNode", + "SamplingNode", + "SceneGroupNode", + "SelectivityTraceNode", + "SolutionCouplingNode", + "SolutionsNode", + "SpurTraceNode", + "TR_Switch", + "TRSwitchTraceNode", + "Terminator", + "TestNoiseTraceNode", + "TopLevelSimulation", + "TouchstoneCouplingNode", + "TunableTraceNode", + "TwoRayPathLossCouplingNode", + "TwoToneTraceNode", + "TxBbEmissionNode", + "TxHarmonicNode", + "TxMeasNode", + "TxNbEmissionNode", + "TxSpectralProfEmitterNode", + "TxSpectralProfNode", + "TxSpurNode", + "WalfischCouplingNode", + "Waveform", + "ReadOnlyAmplifier", + "ReadOnlyAntennaNode", + "ReadOnlyAntennaPassband", + "ReadOnlyBand", + "ReadOnlyBandFolder", + "ReadOnlyCADNode", + "ReadOnlyCable", + "ReadOnlyCirculator", + "ReadOnlyCouplingLinkNode", + "ReadOnlyCouplingsNode", + "ReadOnlyCustomCouplingNode", + "ReadOnlyEmitSceneNode", + "ReadOnlyErcegCouplingNode", + "ReadOnlyFilter", + "ReadOnlyFiveGChannelModel", + "ReadOnlyHataCouplingNode", + "ReadOnlyIndoorPropagationCouplingNode", + "ReadOnlyIsolator", + "ReadOnlyLogDistanceCouplingNode", + "ReadOnlyMultiplexer", + "ReadOnlyMultiplexerBand", + "ReadOnlyPowerDivider", + "ReadOnlyPropagationLossCouplingNode", + "ReadOnlyRadioNode", + "ReadOnlyRxMeasNode", + "ReadOnlyRxMixerProductNode", + "ReadOnlyRxSaturationNode", + "ReadOnlyRxSelectivityNode", + "ReadOnlyRxSpurNode", + "ReadOnlyRxSusceptibilityProfNode", + "ReadOnlySamplingNode", + "ReadOnlySceneGroupNode", + "ReadOnlySolutionCouplingNode", + "ReadOnlySolutionsNode", + "ReadOnlyTR_Switch", + "ReadOnlyTerminator", + "ReadOnlyTouchstoneCouplingNode", + "ReadOnlyTwoRayPathLossCouplingNode", + "ReadOnlyTxBbEmissionNode", + "ReadOnlyTxHarmonicNode", + "ReadOnlyTxMeasNode", + "ReadOnlyTxNbEmissionNode", + "ReadOnlyTxSpectralProfEmitterNode", + "ReadOnlyTxSpectralProfNode", + "ReadOnlyTxSpurNode", + "ReadOnlyWalfischCouplingNode", + "ReadOnlyWaveform", ] diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/amplifier.py index d40968c90d2..f6a6773b7a2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/amplifier.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Amplifier(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,9 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,25 +70,21 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class AmplifierTypeOption(Enum): TRANSMIT_AMPLIFIER = "Transmit Amplifier" @@ -97,16 +95,14 @@ def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type Configures the amplifier as a Tx or Rx amplifier - """ + """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val.upper()] return val @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Type={value.value}"]) @property def gain(self) -> float: @@ -119,10 +115,8 @@ def gain(self) -> float: return float(val) @gain.setter - def gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Gain={value}"]) + def gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Gain={value}"]) @property def center_frequency(self) -> float: @@ -136,11 +130,9 @@ def center_frequency(self) -> float: return float(val) @center_frequency.setter - def center_frequency(self, value : float|str): + def center_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Center Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Frequency={value}"]) @property def bandwidth(self) -> float: @@ -154,11 +146,9 @@ def bandwidth(self) -> float: return float(val) @bandwidth.setter - def bandwidth(self, value : float|str): + def bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth={value}"]) @property def noise_figure(self) -> float: @@ -171,10 +161,8 @@ def noise_figure(self) -> float: return float(val) @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def saturation_level(self) -> float: @@ -188,11 +176,9 @@ def saturation_level(self) -> float: return float(val) @saturation_level.setter - def saturation_level(self, value : float|str): + def saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) @property def p1_db_point_ref_input(self) -> float: @@ -206,11 +192,9 @@ def p1_db_point_ref_input(self) -> float: return float(val) @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value : float|str): + def p1_db_point_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input={value}"]) @property def ip3_ref_input(self) -> float: @@ -224,11 +208,9 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def shape_factor(self) -> float: @@ -241,10 +223,8 @@ def shape_factor(self) -> float: return float(val) @shape_factor.setter - def shape_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Shape Factor={value}"]) + def shape_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) @property def reverse_isolation(self) -> float: @@ -257,10 +237,8 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -274,7 +252,4 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py index db7dbccfe04..813ae024e36 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class AntennaNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -55,15 +59,13 @@ def tags(self) -> str: """Tags Space delimited list of tags for coupling selections - """ + """ val = self._get_property("Tags") return val @tags.setter def tags(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tags={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tags={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -74,13 +76,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return val == true @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -94,9 +96,7 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -110,9 +110,7 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -123,16 +121,14 @@ def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -146,9 +142,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -162,9 +156,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def position_defined(self) -> bool: @@ -174,13 +166,11 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return (val == true) + return val == true @position_defined.setter def position_defined(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position Defined={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Defined={value}"]) @property def antenna_temperature(self) -> float: @@ -193,25 +183,21 @@ def antenna_temperature(self) -> float: return float(val) @antenna_temperature.setter - def antenna_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna Temperature={value}"]) + def antenna_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna Temperature={value}"]) @property def type(self): """Type Defines the type of antenna - """ + """ val = self._get_property("Type") return val @type.setter def type(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value}"]) @property def antenna_file(self) -> str: @@ -223,9 +209,7 @@ def antenna_file(self) -> str: @antenna_file.setter def antenna_file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna File={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna File={value}"]) @property def project_name(self) -> str: @@ -239,9 +223,7 @@ def project_name(self) -> str: @project_name.setter def project_name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Project Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Project Name={value}"]) @property def peak_gain(self) -> float: @@ -254,10 +236,8 @@ def peak_gain(self) -> float: return float(val) @peak_gain.setter - def peak_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Peak Gain={value}"]) + def peak_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Gain={value}"]) class BoresightOption(Enum): XAXIS = "+X Axis" @@ -269,16 +249,14 @@ def boresight(self) -> BoresightOption: """Boresight Select peak beam direction in local coordinates - """ + """ val = self._get_property("Boresight") val = self.BoresightOption[val.upper()] return val @boresight.setter def boresight(self, value: BoresightOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Boresight={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Boresight={value.value}"]) @property def vertical_beamwidth(self) -> float: @@ -291,10 +269,8 @@ def vertical_beamwidth(self) -> float: return float(val) @vertical_beamwidth.setter - def vertical_beamwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Beamwidth={value}"]) + def vertical_beamwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Beamwidth={value}"]) @property def horizontal_beamwidth(self) -> float: @@ -307,10 +283,8 @@ def horizontal_beamwidth(self) -> float: return float(val) @horizontal_beamwidth.setter - def horizontal_beamwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Beamwidth={value}"]) + def horizontal_beamwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Beamwidth={value}"]) @property def extra_sidelobe(self) -> bool: @@ -320,13 +294,11 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return (val == true) + return val == true @extra_sidelobe.setter def extra_sidelobe(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Extra Sidelobe={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Extra Sidelobe={value}"]) @property def first_sidelobe_level(self) -> float: @@ -340,10 +312,8 @@ def first_sidelobe_level(self) -> float: return float(val) @first_sidelobe_level.setter - def first_sidelobe_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Level={value}"]) + def first_sidelobe_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Level={value}"]) @property def first_sidelobe_vert_bw(self) -> float: @@ -356,10 +326,8 @@ def first_sidelobe_vert_bw(self) -> float: return float(val) @first_sidelobe_vert_bw.setter - def first_sidelobe_vert_bw(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Vert. BW={value}"]) + def first_sidelobe_vert_bw(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Vert. BW={value}"]) @property def first_sidelobe_hor_bw(self) -> float: @@ -372,10 +340,8 @@ def first_sidelobe_hor_bw(self) -> float: return float(val) @first_sidelobe_hor_bw.setter - def first_sidelobe_hor_bw(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Hor. BW={value}"]) + def first_sidelobe_hor_bw(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Hor. BW={value}"]) @property def outerbacklobe_level(self) -> float: @@ -388,10 +354,8 @@ def outerbacklobe_level(self) -> float: return float(val) @outerbacklobe_level.setter - def outerbacklobe_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Outer/Backlobe Level={value}"]) + def outerbacklobe_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Outer/Backlobe Level={value}"]) @property def resonant_frequency(self) -> float: @@ -406,11 +370,9 @@ def resonant_frequency(self) -> float: return float(val) @resonant_frequency.setter - def resonant_frequency(self, value : float|str): + def resonant_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Resonant Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resonant Frequency={value}"]) @property def slot_length(self) -> float: @@ -424,11 +386,9 @@ def slot_length(self) -> float: return float(val) @slot_length.setter - def slot_length(self, value : float|str): + def slot_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Slot Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Slot Length={value}"]) @property def mouth_width(self) -> float: @@ -442,11 +402,9 @@ def mouth_width(self) -> float: return float(val) @mouth_width.setter - def mouth_width(self, value : float|str): + def mouth_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Width={value}"]) @property def mouth_height(self) -> float: @@ -460,11 +418,9 @@ def mouth_height(self) -> float: return float(val) @mouth_height.setter - def mouth_height(self, value : float|str): + def mouth_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Height={value}"]) @property def waveguide_width(self) -> float: @@ -479,11 +435,9 @@ def waveguide_width(self) -> float: return float(val) @waveguide_width.setter - def waveguide_width(self, value : float|str): + def waveguide_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Waveguide Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveguide Width={value}"]) @property def width_flare_half_angle(self) -> float: @@ -497,10 +451,8 @@ def width_flare_half_angle(self) -> float: return float(val) @width_flare_half_angle.setter - def width_flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Width Flare Half-angle={value}"]) + def width_flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width Flare Half-angle={value}"]) @property def height_flare_half_angle(self) -> float: @@ -514,10 +466,8 @@ def height_flare_half_angle(self) -> float: return float(val) @height_flare_half_angle.setter - def height_flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Height Flare Half-angle={value}"]) + def height_flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height Flare Half-angle={value}"]) @property def mouth_diameter(self) -> float: @@ -531,11 +481,9 @@ def mouth_diameter(self) -> float: return float(val) @mouth_diameter.setter - def mouth_diameter(self, value : float|str): + def mouth_diameter(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Diameter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Diameter={value}"]) @property def flare_half_angle(self) -> float: @@ -549,10 +497,8 @@ def flare_half_angle(self) -> float: return float(val) @flare_half_angle.setter - def flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Flare Half-angle={value}"]) + def flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flare Half-angle={value}"]) @property def vswr(self) -> float: @@ -566,10 +512,8 @@ def vswr(self) -> float: return float(val) @vswr.setter - def vswr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"VSWR={value}"]) + def vswr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) class AntennaPolarizationOption(Enum): VERTICAL = "Vertical" @@ -582,16 +526,16 @@ def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val.upper()] return val @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna Polarization={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Antenna Polarization={value.value}"] + ) class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" @@ -602,16 +546,14 @@ def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode Choose the Cross Dipole type - """ + """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val.upper()] return val @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Cross Dipole Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Cross Dipole Mode={value.value}"]) class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" @@ -622,16 +564,16 @@ def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val.upper()] return val @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Cross Dipole Polarization={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Cross Dipole Polarization={value.value}"] + ) @property def override_height(self) -> bool: @@ -642,13 +584,11 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return (val == true) + return val == true @override_height.setter def override_height(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Override Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Override Height={value}"]) @property def offset_height(self) -> float: @@ -662,11 +602,9 @@ def offset_height(self) -> float: return float(val) @offset_height.setter - def offset_height(self, value : float|str): + def offset_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Offset Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset Height={value}"]) @property def auto_height_offset(self) -> bool: @@ -677,13 +615,11 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return (val == true) + return val == true @auto_height_offset.setter def auto_height_offset(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Auto Height Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Auto Height Offset={value}"]) @property def conform__adjust_antenna(self) -> bool: @@ -693,13 +629,11 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return (val == true) + return val == true @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform / Adjust Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform / Adjust Antenna={value}"]) @property def element_offset(self): @@ -713,9 +647,7 @@ def element_offset(self): @element_offset.setter def element_offset(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Element Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Element Offset={value}"]) class ConformtoPlatformOption(Enum): NONE = "None" @@ -727,16 +659,16 @@ def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform Select method of automated conforming applied after Element Offset - """ + """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val.upper()] return val @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform to Platform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Conform to Platform={value.value}"] + ) class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" @@ -748,16 +680,14 @@ def reference_plane(self) -> ReferencePlaneOption: """Reference Plane Select reference plane for determining original element heights - """ + """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val.upper()] return val @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reference Plane={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reference Plane={value.value}"]) @property def conform_element_orientation(self) -> bool: @@ -768,13 +698,13 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return (val == true) + return val == true @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform Element Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Conform Element Orientation={value}"] + ) @property def show_axes(self) -> bool: @@ -784,13 +714,11 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return val == true @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def show_icon(self) -> bool: @@ -800,13 +728,11 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return (val == true) + return val == true @show_icon.setter def show_icon(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Icon={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Icon={value}"]) @property def size(self) -> float: @@ -819,10 +745,8 @@ def size(self) -> float: return float(val) @size.setter - def size(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Size={value}"]) + def size(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Size={value}"]) @property def color(self): @@ -836,16 +760,14 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def el_sample_interval(self) -> float: """El Sample Interval Space between elevation-angle samples of pattern - """ + """ val = self._get_property("El Sample Interval") return float(val) @@ -854,7 +776,7 @@ def az_sample_interval(self) -> float: """Az Sample Interval Space between azimuth-angle samples of pattern - """ + """ val = self._get_property("Az Sample Interval") return float(val) @@ -866,14 +788,14 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return (val == true) + return val == true @property def frequency_domain(self): """Frequency Domain Frequency sample(s) defining antenna - """ + """ val = self._get_property("Frequency Domain") return val @@ -882,7 +804,7 @@ def number_of_electric_sources(self) -> int: """Number of Electric Sources Number of freestanding electric current sources defining antenna - """ + """ val = self._get_property("Number of Electric Sources") return int(val) @@ -891,7 +813,7 @@ def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources Number of freestanding magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Magnetic Sources") return int(val) @@ -901,7 +823,7 @@ def number_of_imaged_electric_sources(self) -> int: Number of imaged, half-space radiating electric current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Electric Sources") return int(val) @@ -911,7 +833,7 @@ def number_of_imaged_magnetic_sources(self) -> int: Number of imaged, half-space radiating magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Magnetic Sources") return int(val) @@ -921,7 +843,7 @@ def waveguide_height(self) -> float: Implied waveguide height (along local x-axis) where the flared horn walls meet the feed - """ + """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") return float(val) @@ -931,7 +853,7 @@ def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency Implied lowest operating frequency of pyramidal horn antenna - """ + """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -941,7 +863,7 @@ def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency Implied lowest operating frequency of conical horn antenna - """ + """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -957,16 +879,16 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: Select the method for stability-enhancing truncation of spherical wave expansion terms - """ + """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val.upper()] return val @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SWE Mode Truncation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"SWE Mode Truncation={value.value}"] + ) @property def max_n_index(self) -> int: @@ -980,24 +902,20 @@ def max_n_index(self) -> int: @max_n_index.setter def max_n_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max N Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max N Index={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) @property def show_composite_passband(self) -> bool: @@ -1007,13 +925,11 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return (val == true) + return val == true @show_composite_passband.setter def show_composite_passband(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Composite Passband={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Composite Passband={value}"]) @property def use_phase_center(self) -> bool: @@ -1023,20 +939,18 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return (val == true) + return val == true @use_phase_center.setter def use_phase_center(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Phase Center={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Phase Center={value}"]) @property def coordinate_systems(self) -> str: """Coordinate Systems Specifies the coordinate system for the phase center of this antenna - """ + """ val = self._get_property("Coordinate Systems") return val @@ -1059,4 +973,3 @@ def phasecenterorientation(self): """ val = self._get_property("PhaseCenterOrientation") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py index b2677b1f6a8..58c7ebbb47c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class AntennaPassband(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -48,7 +51,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -65,10 +68,8 @@ def passband_loss(self) -> float: return float(val) @passband_loss.setter - def passband_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Passband Loss={value}"]) + def passband_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Passband Loss={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -81,10 +82,8 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out of Band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out of Band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -98,11 +97,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -116,11 +113,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -134,11 +129,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -152,24 +145,19 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/band.py b/src/ansys/aedt/core/emit_core/nodes/generated/band.py index 3001455d9e1..f1125f37ba9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/band.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Band(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -48,15 +52,13 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") return val @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) @property def use_dd_1494_mode(self) -> bool: @@ -66,13 +68,11 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return (val == true) + return val == true @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use DD-1494 Mode={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use DD-1494 Mode={value}"]) @property def use_emission_designator(self) -> bool: @@ -82,35 +82,31 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return (val == true) + return val == true @use_emission_designator.setter def use_emission_designator(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Emission Designator={value}"]) @property def emission_designator(self) -> str: """Emission Designator Enter the Emission Designator to define the bandwidth and modulation - """ + """ val = self._get_property("Emission Designator") return val @emission_designator.setter def emission_designator(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Emission Designator={value}"]) @property def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW Channel Bandwidth based off the emission designator - """ + """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -120,7 +116,7 @@ def emit_modulation_type(self) -> str: """EMIT Modulation Type Modulation based off the emission designator - """ + """ val = self._get_property("EMIT Modulation Type") return val @@ -133,13 +129,13 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return (val == true) + return val == true @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Override Emission Designator BW={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Override Emission Designator BW={value}"] + ) @property def channel_bandwidth(self) -> float: @@ -153,11 +149,9 @@ def channel_bandwidth(self) -> float: return float(val) @channel_bandwidth.setter - def channel_bandwidth(self, value : float|str): + def channel_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Bandwidth={value}"]) class ModulationOption(Enum): GENERIC = "Generic" @@ -177,16 +171,14 @@ def modulation(self) -> ModulationOption: """Modulation Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Modulation") val = self.ModulationOption[val.upper()] return val @modulation.setter def modulation(self, value: ModulationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation={value.value}"]) @property def max_modulating_freq(self) -> float: @@ -200,11 +192,9 @@ def max_modulating_freq(self) -> float: return float(val) @max_modulating_freq.setter - def max_modulating_freq(self, value : float|str): + def max_modulating_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Modulating Freq.={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Modulating Freq.={value}"]) @property def modulation_index(self) -> float: @@ -217,10 +207,8 @@ def modulation_index(self) -> float: return float(val) @modulation_index.setter - def modulation_index(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation Index={value}"]) + def modulation_index(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Index={value}"]) @property def freq_deviation(self) -> float: @@ -234,11 +222,9 @@ def freq_deviation(self) -> float: return float(val) @freq_deviation.setter - def freq_deviation(self, value : float|str): + def freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) @property def bit_rate(self) -> float: @@ -252,11 +238,9 @@ def bit_rate(self) -> float: return float(val) @bit_rate.setter - def bit_rate(self, value : float|str): + def bit_rate(self, value: float | str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bit Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bit Rate={value}"]) @property def sidelobes(self) -> int: @@ -270,13 +254,11 @@ def sidelobes(self) -> int: @sidelobes.setter def sidelobes(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sidelobes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sidelobes={value}"]) @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation FSK frequency deviation: helps determine spectral profile Value should be greater than 1. @@ -286,11 +268,9 @@ def freq_deviation_(self) -> float: return float(val) @freq_deviation_.setter - def freq_deviation_(self, value : float|str): + def freq_deviation_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation ={value}"]) class PSKTypeOption(Enum): BPSK = "BPSK" @@ -305,16 +285,14 @@ def psk_type(self) -> PSKTypeOption: """PSK Type PSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val.upper()] return val @psk_type.setter def psk_type(self, value: PSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"PSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"PSK Type={value.value}"]) class FSKTypeOption(Enum): FSK_2 = "FSK-2" @@ -326,16 +304,14 @@ def fsk_type(self) -> FSKTypeOption: """FSK Type FSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val.upper()] return val @fsk_type.setter def fsk_type(self, value: FSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FSK Type={value.value}"]) class QAMTypeOption(Enum): QAM_4 = "QAM-4" @@ -349,16 +325,14 @@ def qam_type(self) -> QAMTypeOption: """QAM Type QAM modulation order: helps determine spectral profile - """ + """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val.upper()] return val @qam_type.setter def qam_type(self, value: QAMTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"QAM Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"QAM Type={value.value}"]) class APSKTypeOption(Enum): APSK_4 = "APSK-4" @@ -372,16 +346,14 @@ def apsk_type(self) -> APSKTypeOption: """APSK Type APSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val.upper()] return val @apsk_type.setter def apsk_type(self, value: APSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"APSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"APSK Type={value.value}"]) @property def start_frequency(self) -> float: @@ -395,11 +367,9 @@ def start_frequency(self) -> float: return float(val) @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -413,11 +383,9 @@ def stop_frequency(self) -> float: return float(val) @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -431,11 +399,9 @@ def channel_spacing(self) -> float: return float(val) @channel_spacing.setter - def channel_spacing(self, value : float|str): + def channel_spacing(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) @property def tx_offset(self) -> float: @@ -449,11 +415,9 @@ def tx_offset(self) -> float: return float(val) @tx_offset.setter - def tx_offset(self, value : float|str): + def tx_offset(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Offset={value}"]) class RadarTypeOption(Enum): CW = "CW" @@ -467,16 +431,14 @@ def radar_type(self) -> RadarTypeOption: """Radar Type Radar type: helps determine spectral profile - """ + """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val.upper()] return val @radar_type.setter def radar_type(self, value: RadarTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Radar Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radar Type={value.value}"]) @property def hopping_radar(self) -> bool: @@ -486,13 +448,11 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return (val == true) + return val == true @hopping_radar.setter def hopping_radar(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hopping Radar={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hopping Radar={value}"]) @property def post_october_2020_procurement(self) -> bool: @@ -503,13 +463,13 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return (val == true) + return val == true @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Post October 2020 Procurement={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Post October 2020 Procurement={value}"] + ) @property def hop_range_min_freq(self) -> float: @@ -523,11 +483,9 @@ def hop_range_min_freq(self) -> float: return float(val) @hop_range_min_freq.setter - def hop_range_min_freq(self, value : float|str): + def hop_range_min_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hop Range Min Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Min Freq={value}"]) @property def hop_range_max_freq(self) -> float: @@ -541,11 +499,9 @@ def hop_range_max_freq(self) -> float: return float(val) @hop_range_max_freq.setter - def hop_range_max_freq(self, value : float|str): + def hop_range_max_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hop Range Max Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Max Freq={value}"]) @property def pulse_duration(self) -> float: @@ -559,11 +515,9 @@ def pulse_duration(self) -> float: return float(val) @pulse_duration.setter - def pulse_duration(self, value : float|str): + def pulse_duration(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Duration={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Duration={value}"]) @property def pulse_rise_time(self) -> float: @@ -577,11 +531,9 @@ def pulse_rise_time(self) -> float: return float(val) @pulse_rise_time.setter - def pulse_rise_time(self, value : float|str): + def pulse_rise_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Rise Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Rise Time={value}"]) @property def pulse_fall_time(self) -> float: @@ -595,11 +547,9 @@ def pulse_fall_time(self) -> float: return float(val) @pulse_fall_time.setter - def pulse_fall_time(self, value : float|str): + def pulse_fall_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Fall Time={value}"]) @property def pulse_repetition_rate(self) -> float: @@ -612,10 +562,8 @@ def pulse_repetition_rate(self) -> float: return float(val) @pulse_repetition_rate.setter - def pulse_repetition_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Repetition Rate={value}"]) + def pulse_repetition_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Repetition Rate={value}"]) @property def number_of_chips(self) -> float: @@ -628,10 +576,8 @@ def number_of_chips(self) -> float: return float(val) @number_of_chips.setter - def number_of_chips(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Chips={value}"]) + def number_of_chips(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Chips={value}"]) @property def pulse_compression_ratio(self) -> float: @@ -644,10 +590,8 @@ def pulse_compression_ratio(self) -> float: return float(val) @pulse_compression_ratio.setter - def pulse_compression_ratio(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Compression Ratio={value}"]) + def pulse_compression_ratio(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Compression Ratio={value}"]) @property def fm_chirp_period(self) -> float: @@ -661,11 +605,9 @@ def fm_chirp_period(self) -> float: return float(val) @fm_chirp_period.setter - def fm_chirp_period(self, value : float|str): + def fm_chirp_period(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Chirp Period={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Chirp Period={value}"]) @property def fm_freq_deviation(self) -> float: @@ -679,11 +621,9 @@ def fm_freq_deviation(self) -> float: return float(val) @fm_freq_deviation.setter - def fm_freq_deviation(self, value : float|str): + def fm_freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Freq Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Deviation={value}"]) @property def fm_freq_dev_bandwidth(self) -> float: @@ -698,9 +638,6 @@ def fm_freq_dev_bandwidth(self) -> float: return float(val) @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value : float|str): + def fm_freq_dev_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Freq Dev Bandwidth={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Dev Bandwidth={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py b/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py index 25c5a5270e3..528817256e3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class BandFolder(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -48,4 +51,3 @@ def duplicate(self, new_name: str): def delete(self): """Delete this node""" self._delete() - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py index 820a5a4919c..87de24c5913 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class BandTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,15 +56,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) class TxorRxOption(Enum): TX = "Tx" @@ -71,31 +73,27 @@ def tx_or_rx(self) -> TxorRxOption: """Tx or Rx Specifies whether the trace is a Tx or Rx channel - """ + """ val = self._get_property("Tx or Rx") val = self.TxorRxOption[val.upper()] return val @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx or Rx={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx or Rx={value.value}"]) @property def channel_frequency(self): """Channel Frequency Select band channel frequency to display - """ + """ val = self._get_property("Channel Frequency") return val @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: @@ -103,7 +101,7 @@ def transmit_frequency(self) -> float: The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset) - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -116,13 +114,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -132,28 +128,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -168,16 +160,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -191,9 +181,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -207,9 +195,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -233,16 +219,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -256,9 +240,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -272,9 +254,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -288,9 +268,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -301,11 +279,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/cable.py index 6a1be19ecde..5bd9408f86a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/cable.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Cable(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,9 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,25 +70,21 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -99,16 +97,14 @@ def type(self) -> TypeOption: Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def length(self) -> float: @@ -122,11 +118,9 @@ def length(self) -> float: return float(val) @length.setter - def length(self, value : float|str): + def length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) @property def loss_per_length(self) -> float: @@ -139,10 +133,8 @@ def loss_per_length(self) -> float: return float(val) @loss_per_length.setter - def loss_per_length(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Loss Per Length={value}"]) + def loss_per_length(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Loss Per Length={value}"]) @property def measurement_length(self) -> float: @@ -156,11 +148,9 @@ def measurement_length(self) -> float: return float(val) @measurement_length.setter - def measurement_length(self, value : float|str): + def measurement_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Length={value}"]) @property def resistive_loss_constant(self) -> float: @@ -173,10 +163,8 @@ def resistive_loss_constant(self) -> float: return float(val) @resistive_loss_constant.setter - def resistive_loss_constant(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Resistive Loss Constant={value}"]) + def resistive_loss_constant(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resistive Loss Constant={value}"]) @property def dielectric_loss_constant(self) -> float: @@ -189,17 +177,14 @@ def dielectric_loss_constant(self) -> float: return float(val) @dielectric_loss_constant.setter - def dielectric_loss_constant(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Dielectric Loss Constant={value}"]) + def dielectric_loss_constant(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Dielectric Loss Constant={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py index 8b6284c8804..bf08b1c8fba 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class CADNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -77,16 +81,14 @@ def model_type(self) -> ModelTypeOption: """Model Type Select type of parametric model to create - """ + """ val = self._get_property("Model Type") val = self.ModelTypeOption[val.upper()] return val @model_type.setter def model_type(self, value: ModelTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Model Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Model Type={value.value}"]) @property def length(self) -> float: @@ -100,11 +102,9 @@ def length(self) -> float: return float(val) @length.setter - def length(self, value : float|str): + def length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) @property def width(self) -> float: @@ -118,11 +118,9 @@ def width(self) -> float: return float(val) @width.setter - def width(self, value : float|str): + def width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width={value}"]) @property def height(self) -> float: @@ -136,11 +134,9 @@ def height(self) -> float: return float(val) @height.setter - def height(self, value : float|str): + def height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height={value}"]) @property def angle(self) -> float: @@ -153,10 +149,8 @@ def angle(self) -> float: return float(val) @angle.setter - def angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Angle={value}"]) + def angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Angle={value}"]) @property def top_side(self) -> float: @@ -170,11 +164,9 @@ def top_side(self) -> float: return float(val) @top_side.setter - def top_side(self, value : float|str): + def top_side(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Top Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Side={value}"]) @property def top_radius(self) -> float: @@ -188,11 +180,9 @@ def top_radius(self) -> float: return float(val) @top_radius.setter - def top_radius(self, value : float|str): + def top_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Top Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Radius={value}"]) @property def side(self) -> float: @@ -206,11 +196,9 @@ def side(self) -> float: return float(val) @side.setter - def side(self, value : float|str): + def side(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Side={value}"]) @property def radius(self) -> float: @@ -224,11 +212,9 @@ def radius(self) -> float: return float(val) @radius.setter - def radius(self, value : float|str): + def radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radius={value}"]) @property def base_radius(self) -> float: @@ -242,11 +228,9 @@ def base_radius(self) -> float: return float(val) @base_radius.setter - def base_radius(self, value : float|str): + def base_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Radius={value}"]) @property def center_radius(self) -> float: @@ -260,11 +244,9 @@ def center_radius(self) -> float: return float(val) @center_radius.setter - def center_radius(self, value : float|str): + def center_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Center Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Radius={value}"]) @property def x_axis_ellipsoid_radius(self) -> float: @@ -278,11 +260,9 @@ def x_axis_ellipsoid_radius(self) -> float: return float(val) @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value : float|str): + def x_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Axis Ellipsoid Radius={value}"]) @property def y_axis_ellipsoid_radius(self) -> float: @@ -296,11 +276,9 @@ def y_axis_ellipsoid_radius(self) -> float: return float(val) @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value : float|str): + def y_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Axis Ellipsoid Radius={value}"]) @property def z_axis_ellipsoid_radius(self) -> float: @@ -314,11 +292,9 @@ def z_axis_ellipsoid_radius(self) -> float: return float(val) @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value : float|str): + def z_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Z Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Z Axis Ellipsoid Radius={value}"]) @property def focal_length(self) -> float: @@ -332,28 +308,24 @@ def focal_length(self) -> float: return float(val) @focal_length.setter - def focal_length(self, value : float|str): + def focal_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Focal Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Focal Length={value}"]) @property def offset(self) -> float: """Offset Offset of parabolic reflector - """ + """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") return float(val) @offset.setter - def offset(self, value : float|str): + def offset(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset={value}"]) @property def x_direction_taper(self) -> float: @@ -367,10 +339,8 @@ def x_direction_taper(self) -> float: return float(val) @x_direction_taper.setter - def x_direction_taper(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X Direction Taper={value}"]) + def x_direction_taper(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Direction Taper={value}"]) @property def y_direction_taper(self) -> float: @@ -384,10 +354,8 @@ def y_direction_taper(self) -> float: return float(val) @y_direction_taper.setter - def y_direction_taper(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y Direction Taper={value}"]) + def y_direction_taper(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Direction Taper={value}"]) @property def prism_direction(self): @@ -401,9 +369,7 @@ def prism_direction(self): @prism_direction.setter def prism_direction(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Prism Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Prism Direction={value}"]) @property def closed_top(self) -> bool: @@ -413,13 +379,11 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return (val == true) + return val == true @closed_top.setter def closed_top(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Closed Top={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Top={value}"]) @property def closed_base(self) -> bool: @@ -429,13 +393,11 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return (val == true) + return val == true @closed_base.setter def closed_base(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Closed Base={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Base={value}"]) @property def mesh_density(self) -> int: @@ -450,9 +412,7 @@ def mesh_density(self) -> int: @mesh_density.setter def mesh_density(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mesh Density={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Density={value}"]) @property def use_symmetric_mesh(self) -> bool: @@ -463,13 +423,11 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return (val == true) + return val == true @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Symmetric Mesh={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Symmetric Mesh={value}"]) class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -480,16 +438,14 @@ def mesh_option(self) -> MeshOptionOption: """Mesh Option Select from different meshing options - """ + """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val.upper()] return val @mesh_option.setter def mesh_option(self, value: MeshOptionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mesh Option={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Option={value.value}"]) @property def coating_index(self) -> int: @@ -503,9 +459,7 @@ def coating_index(self) -> int: @coating_index.setter def coating_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Coating Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Coating Index={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -516,13 +470,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return val == true @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -536,9 +490,7 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -552,9 +504,7 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -565,16 +515,14 @@ def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -588,9 +536,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -604,9 +550,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def visible(self) -> bool: @@ -616,13 +560,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -635,16 +577,14 @@ def render_mode(self) -> RenderModeOption: """Render Mode Select drawing style for surfaces - """ + """ val = self._get_property("Render Mode") val = self.RenderModeOption[val.upper()] return val @render_mode.setter def render_mode(self, value: RenderModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Render Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Render Mode={value.value}"]) @property def show_axes(self) -> bool: @@ -654,13 +594,11 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return val == true @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def min(self): @@ -687,7 +625,7 @@ def number_of_surfaces(self) -> int: """Number of Surfaces Number of surfaces in the model - """ + """ val = self._get_property("Number of Surfaces") return int(val) @@ -703,22 +641,17 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py index 0cc7e14fba0..f6c5ee604ce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py @@ -1,30 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class CategoriesViewNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False EmitNode.__init__(self, emit_obj, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/circulator.py index 21b3e607370..9763d04c085 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/circulator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Circulator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,9 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,25 +70,21 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -98,16 +96,14 @@ def type(self) -> TypeOption: Type of circulator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -118,16 +114,14 @@ def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the circulator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -140,10 +134,8 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -154,13 +146,11 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return (val == true) + return val == true @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -173,10 +163,8 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -187,13 +175,11 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -206,10 +192,8 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -223,11 +207,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -241,11 +223,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -259,11 +239,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -277,18 +255,15 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py index 1c6c57fab1a..e8c782cc450 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class CouplingLinkNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,13 +44,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def ports(self): @@ -55,13 +56,10 @@ def ports(self): Maps each port in the link to an antenna in the project "A list of values." - """ + """ val = self._get_property("Ports") return val @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ports={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py index 52b38e3a31a..8f27d86e9fe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class CouplingTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -48,29 +52,23 @@ def delete(self): @property def transmitter(self) -> EmitNode: - """Transmitter - """ + """Transmitter""" val = self._get_property("Transmitter") return val @transmitter.setter def transmitter(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Transmitter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Transmitter={value}"]) @property def receiver(self) -> EmitNode: - """Receiver - """ + """Receiver""" val = self._get_property("Receiver") return val @receiver.setter def receiver(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Receiver={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver={value}"]) @property def data_source(self): @@ -78,15 +76,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,13 +92,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -112,28 +106,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -148,16 +138,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -171,9 +159,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -187,9 +173,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -213,16 +197,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -236,9 +218,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -252,9 +232,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -268,9 +246,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -281,13 +257,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def highlight_regions(self) -> bool: @@ -297,13 +271,11 @@ def highlight_regions(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Highlight Regions") - return (val == true) + return val == true @highlight_regions.setter def highlight_regions(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Highlight Regions={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highlight Regions={value}"]) @property def show_region_labels(self) -> bool: @@ -313,13 +285,11 @@ def show_region_labels(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Region Labels") - return (val == true) + return val == true @show_region_labels.setter def show_region_labels(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Region Labels={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Region Labels={value}"]) @property def font(self): @@ -333,9 +303,7 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -349,9 +317,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -365,9 +331,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -377,13 +341,11 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return (val == true) + return val == true @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -397,9 +359,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -413,7 +373,4 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py index 8543cb64576..e5e8bfc8bf4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class CouplingsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -30,7 +33,7 @@ def __init__(self, emit_obj, result_id, node_id): def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" - return self._import(file_name,"TouchstoneCoupling") + return self._import(file_name, "TouchstoneCoupling") def add_custom_coupling(self): """Add a new node to define custom coupling between antennas""" @@ -80,10 +83,8 @@ def minimum_allowed_coupling(self) -> float: return float(val) @minimum_allowed_coupling.setter - def minimum_allowed_coupling(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minimum Allowed Coupling={value}"]) + def minimum_allowed_coupling(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Allowed Coupling={value}"]) @property def global_default_coupling(self) -> float: @@ -96,17 +97,14 @@ def global_default_coupling(self) -> float: return float(val) @global_default_coupling.setter - def global_default_coupling(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Global Default Coupling={value}"]) + def global_default_coupling(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Global Default Coupling={value}"]) @property def antenna_tags(self) -> str: """Antenna Tags All tags currently used by all antennas in the project - """ + """ val = self._get_property("Antenna Tags") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py index 6a5209ba075..fff9314625f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class CustomCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def rename(self, new_name: str): """Rename this node""" @@ -51,11 +54,11 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Value (dB): + "Value (dB): Value should be between -1000 and 0. """ return self._get_table_data() @@ -72,43 +75,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -118,13 +115,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -134,26 +129,21 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py index c324a974b16..65306c2efda 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class EmiPlotMarkerNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def attached(self): @@ -68,22 +70,20 @@ def attached(self): Attach marker to a fixed X-Y point on the plot (True), or to a fixed point on the plot window (False) - """ + """ val = self._get_property("Attached") return val @attached.setter def attached(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) @property def position_x(self) -> float: """Position X Position of the marker on the X-axis (frequency axis). - """ + """ val = self._get_property("Position X") return float(val) @@ -92,7 +92,7 @@ def position_y(self) -> float: """Position Y Position of the marker on the Y-axis (result axis). - """ + """ val = self._get_property("Position Y") return float(val) @@ -105,13 +105,11 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return (val == true) + return val == true @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -125,10 +123,8 @@ def position_from_left(self) -> float: return float(val) @position_from_left.setter - def position_from_left(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Left={value}"]) + def position_from_left(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -142,25 +138,21 @@ def position_from_top(self) -> float: return float(val) @position_from_top.setter - def position_from_top(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Top={value}"]) + def position_from_top(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) @property def text(self) -> str: """Text Set the text of the label - """ + """ val = self._get_property("Text") return val @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -172,16 +164,16 @@ def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position Specify horizontal position of the label as compared to the symbol - """ + """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val.upper()] return val @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Horizontal Position={value.value}"] + ) class VerticalPositionOption(Enum): TOP = "Top" @@ -193,16 +185,14 @@ def vertical_position(self) -> VerticalPositionOption: """Vertical Position Specify vertical position of the label as compared to the symbol - """ + """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val.upper()] return val @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -214,16 +204,14 @@ def text_alignment(self) -> TextAlignmentOption: """Text Alignment Specify justification applied to multi-line text - """ + """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val.upper()] return val @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) @property def font(self): @@ -237,9 +225,7 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -253,9 +239,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -269,9 +253,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -281,13 +263,11 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return (val == true) + return val == true @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -301,9 +281,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -317,9 +295,7 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -344,16 +320,14 @@ def symbol(self) -> SymbolOption: """Symbol Specify symbol displayed next to the label - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -367,9 +341,7 @@ def arrow_direction(self) -> int: @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -383,9 +355,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -399,9 +369,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -415,9 +383,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -428,11 +394,8 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return (val == true) + return val == true @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py index 8c8ab894f69..799d2b928fc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class EmitSceneNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,15 +42,13 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class GroundPlaneNormalOption(Enum): X_AXIS = "X Axis" @@ -58,16 +60,16 @@ def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal Specifies the axis of the normal to the ground plane - """ + """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val.upper()] return val @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ground Plane Normal={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"] + ) @property def gp_position_along_normal(self) -> float: @@ -75,15 +77,12 @@ def gp_position_along_normal(self) -> float: Offset of ground plane in direction normal to the ground planes orientation - """ + """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return float(val) @gp_position_along_normal.setter - def gp_position_along_normal(self, value : float|str): + def gp_position_along_normal(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"GP Position Along Normal={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GP Position Along Normal={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py index bf15e444452..935b7871aed 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ErcegCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class TerrainCategoryOption(Enum): TYPE_A = "Type A" @@ -149,16 +141,14 @@ def terrain_category(self) -> TerrainCategoryOption: """Terrain Category Specify the terrain category type for the Erceg model - """ + """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val.upper()] return val @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Terrain Category={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Terrain Category={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -172,10 +162,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -189,10 +177,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -206,10 +192,8 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -222,16 +206,14 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -245,10 +227,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -261,10 +241,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -274,13 +252,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -294,10 +270,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -310,10 +284,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -327,10 +299,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -341,13 +311,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -360,10 +330,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -376,10 +344,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -392,8 +358,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/filter.py index 967e66a5efa..ed1ebd0933f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/filter.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Filter(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,9 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,25 +70,21 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -103,16 +101,14 @@ def type(self) -> TypeOption: Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def insertion_loss(self) -> float: @@ -125,10 +121,8 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -141,10 +135,8 @@ def stop_band_attenuation(self) -> float: return float(val) @stop_band_attenuation.setter - def stop_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -158,11 +150,9 @@ def max_pass_band(self) -> float: return float(val) @max_pass_band.setter - def max_pass_band(self, value : float|str): + def max_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -176,11 +166,9 @@ def min_stop_band(self) -> float: return float(val) @min_stop_band.setter - def min_stop_band(self, value : float|str): + def min_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -194,11 +182,9 @@ def max_stop_band(self) -> float: return float(val) @max_stop_band.setter - def max_stop_band(self, value : float|str): + def max_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -212,11 +198,9 @@ def min_pass_band(self) -> float: return float(val) @min_pass_band.setter - def min_pass_band(self, value : float|str): + def min_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -230,11 +214,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -248,11 +230,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -266,11 +246,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -284,15 +262,13 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff Lower cutoff frequency Value should be between 1 and 1e+11. @@ -302,15 +278,13 @@ def lower_cutoff_(self) -> float: return float(val) @lower_cutoff_.setter - def lower_cutoff_(self, value : float|str): + def lower_cutoff_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff ={value}"]) @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band Lower stop band frequency Value should be between 1 and 1e+11. @@ -320,15 +294,13 @@ def lower_stop_band_(self) -> float: return float(val) @lower_stop_band_.setter - def lower_stop_band_(self, value : float|str): + def lower_stop_band_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band ={value}"]) @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band Higher stop band frequency Value should be between 1 and 1e+11. @@ -338,15 +310,13 @@ def higher_stop_band_(self) -> float: return float(val) @higher_stop_band_.setter - def higher_stop_band_(self, value : float|str): + def higher_stop_band_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band ={value}"]) @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff Higher cutoff frequency Value should be between 1 and 1e+11. @@ -356,15 +326,13 @@ def higher_cutoff_(self) -> float: return float(val) @higher_cutoff_.setter - def higher_cutoff_(self, value : float|str): + def higher_cutoff_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff ={value}"]) @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency Lowest tuned frequency Value should be between 1 and 1e+11. @@ -374,15 +342,13 @@ def lowest_tuned_frequency_(self) -> float: return float(val) @lowest_tuned_frequency_.setter - def lowest_tuned_frequency_(self, value : float|str): + def lowest_tuned_frequency_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lowest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lowest Tuned Frequency ={value}"]) @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency Highest tuned frequency Value should be between 1 and 1e+11. @@ -392,11 +358,9 @@ def highest_tuned_frequency_(self) -> float: return float(val) @highest_tuned_frequency_.setter - def highest_tuned_frequency_(self, value : float|str): + def highest_tuned_frequency_(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Highest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highest Tuned Frequency ={value}"]) @property def percent_bandwidth(self) -> float: @@ -409,10 +373,8 @@ def percent_bandwidth(self) -> float: return float(val) @percent_bandwidth.setter - def percent_bandwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Percent Bandwidth={value}"]) + def percent_bandwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percent Bandwidth={value}"]) @property def shape_factor(self) -> float: @@ -425,17 +387,14 @@ def shape_factor(self) -> float: return float(val) @shape_factor.setter - def shape_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Shape Factor={value}"]) + def shape_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py b/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py index a85d3a565ce..768956c991c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class FiveGChannelModel(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): URBAN_MICROCELL = "Urban Microcell" @@ -149,16 +141,14 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment for the 5G channel model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def los(self) -> bool: @@ -168,13 +158,11 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return (val == true) + return val == true @los.setter def los(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"LOS={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"LOS={value}"]) @property def include_bpl(self) -> bool: @@ -184,13 +172,11 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return (val == true) + return val == true @include_bpl.setter def include_bpl(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include BPL={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include BPL={value}"]) class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -201,16 +187,14 @@ def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model Specify the NYU Building Penetration Loss model - """ + """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val.upper()] return val @nyu_bpl_model.setter def nyu_bpl_model(self, value: NYUBPLModelOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NYU BPL Model={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NYU BPL Model={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -224,10 +208,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -241,10 +223,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -258,10 +238,8 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -274,16 +252,14 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -297,10 +273,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -313,10 +287,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -326,13 +298,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -346,10 +316,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -362,10 +330,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -379,10 +345,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -393,13 +357,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -412,10 +376,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -428,10 +390,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -444,8 +404,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py index c26782c7ed0..1c92cfcc0d6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class HataCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): LARGE_CITY = "Large City" @@ -150,16 +142,14 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Hata model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -173,10 +163,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -190,10 +178,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -207,10 +193,8 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -223,16 +207,14 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -246,10 +228,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -262,10 +242,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -275,13 +253,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -295,10 +271,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -311,10 +285,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -328,10 +300,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -342,13 +312,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -361,10 +331,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -377,10 +345,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -393,8 +359,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py index 567d7204906..629ef32b5a7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class IndoorPropagationCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -48,13 +52,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Power Loss Coefficient: + "Power Loss Coefficient: Value should be between 0 and 100. - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): Value should be between 0 and 1000. """ return self._get_table_data() @@ -71,43 +75,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -117,13 +115,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -133,28 +129,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class BuildingTypeOption(Enum): RESIDENTIAL_APARTMENT = "Residential Apartment" @@ -168,16 +160,14 @@ def building_type(self) -> BuildingTypeOption: """Building Type Specify the building type for the Indoor Propagation model - """ + """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val.upper()] return val @building_type.setter def building_type(self, value: BuildingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Building Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Building Type={value.value}"]) @property def number_of_floors(self) -> int: @@ -191,9 +181,7 @@ def number_of_floors(self) -> int: @number_of_floors.setter def number_of_floors(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Floors={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Floors={value}"]) @property def custom_fading_margin(self) -> float: @@ -207,10 +195,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -224,10 +210,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -241,10 +225,8 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -257,16 +239,14 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -280,10 +260,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -296,10 +274,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -309,13 +285,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -329,10 +303,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -345,10 +317,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -362,10 +332,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -376,13 +344,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -395,10 +363,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -411,10 +377,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -427,8 +391,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/isolator.py index 6aa95b62d73..fa4db3f622a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/isolator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Isolator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,9 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,25 +70,21 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -98,16 +96,14 @@ def type(self) -> TypeOption: Type of isolator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -118,16 +114,14 @@ def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the isolator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -140,10 +134,8 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -154,13 +146,11 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return (val == true) + return val == true @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -173,10 +163,8 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -187,13 +175,11 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -206,10 +192,8 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -223,11 +207,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -241,11 +223,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -259,11 +239,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -277,18 +255,15 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py index 0ffaa2c9fb0..ed0fb430a5b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class LogDistanceCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): FREE_SPACE = "Free Space" @@ -153,16 +145,14 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Log Distance model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def path_loss_exponent(self) -> float: @@ -175,10 +165,8 @@ def path_loss_exponent(self) -> float: return float(val) @path_loss_exponent.setter - def path_loss_exponent(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Path Loss Exponent={value}"]) + def path_loss_exponent(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Exponent={value}"]) @property def custom_fading_margin(self) -> float: @@ -192,10 +180,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -209,10 +195,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -226,10 +210,8 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -242,16 +224,14 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -265,10 +245,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -281,10 +259,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -294,13 +270,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -314,10 +288,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -330,10 +302,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -347,10 +317,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -361,13 +329,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -380,10 +348,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -396,10 +362,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -412,8 +376,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py index 3c4369fee9d..5dff8cb6f6c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class MPlexBandTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -51,17 +55,14 @@ class PowerDirectionOption(Enum): @property def power_direction(self) -> PowerDirectionOption: - """Power Direction - """ + """Power Direction""" val = self._get_property("Power Direction") val = self.PowerDirectionOption[val.upper()] return val @power_direction.setter def power_direction(self, value: PowerDirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Power Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Power Direction={value.value}"]) @property def data_source(self): @@ -69,15 +70,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -87,13 +86,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -103,28 +100,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -139,16 +132,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -162,9 +153,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -178,9 +167,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -204,16 +191,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -227,9 +212,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -243,9 +226,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -259,9 +240,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -272,11 +251,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer.py index 47b989677c7..d83ddb11f64 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Multiplexer(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -57,9 +61,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -72,25 +74,21 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_PASS_BAND = "By Pass Band" @@ -103,16 +101,14 @@ def type(self) -> TypeOption: simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -123,16 +119,14 @@ def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the multiplexer. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def flip_ports_vertically(self) -> bool: @@ -142,13 +136,11 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return (val == true) + return val == true @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Flip Ports Vertically={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flip Ports Vertically={value}"]) @property def ports(self): @@ -156,22 +148,19 @@ def ports(self): Assigns the child port nodes to the multiplexers ports "A list of values." - """ + """ val = self._get_property("Ports") return val @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py index c7114eac22d..8ca10018d4a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class MultiplexerBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -59,16 +63,14 @@ def type(self) -> TypeOption: file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def filename(self) -> str: @@ -82,9 +84,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def insertion_loss(self) -> float: @@ -97,10 +97,8 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -113,10 +111,8 @@ def stop_band_attenuation(self) -> float: return float(val) @stop_band_attenuation.setter - def stop_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -130,11 +126,9 @@ def max_pass_band(self) -> float: return float(val) @max_pass_band.setter - def max_pass_band(self, value : float|str): + def max_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -148,11 +142,9 @@ def min_stop_band(self) -> float: return float(val) @min_stop_band.setter - def min_stop_band(self, value : float|str): + def min_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -166,11 +158,9 @@ def max_stop_band(self) -> float: return float(val) @max_stop_band.setter - def max_stop_band(self, value : float|str): + def max_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -184,11 +174,9 @@ def min_pass_band(self) -> float: return float(val) @min_pass_band.setter - def min_pass_band(self, value : float|str): + def min_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -202,11 +190,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -220,11 +206,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -238,11 +222,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -256,18 +238,15 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py index 81bea8af4a9..46cf852a6a1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class OutboardTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,9 +62,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -74,9 +76,7 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -84,15 +84,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -102,13 +100,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -118,28 +114,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -154,16 +146,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -177,9 +167,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -193,9 +181,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -219,16 +205,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -242,9 +226,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -258,9 +240,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -274,9 +254,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -287,11 +265,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py index 8be3b249ac2..dd698469760 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ParametricCouplingTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -48,29 +52,23 @@ def delete(self): @property def antenna_a(self) -> EmitNode: - """Antenna A - """ + """Antenna A""" val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: - """Antenna B - """ + """Antenna B""" val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def data_source(self): @@ -78,15 +76,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,13 +92,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -112,28 +106,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -148,16 +138,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -171,9 +159,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -187,9 +173,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -213,16 +197,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -236,9 +218,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -252,9 +232,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -268,9 +246,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -281,11 +257,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py index 9fb1b11a02e..143821a9ebc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class PlotMarkerNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,13 +58,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def attached(self) -> bool: @@ -71,43 +73,37 @@ def attached(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Attached") - return (val == true) + return val == true @attached.setter def attached(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) @property def position_x(self) -> float: """Position X Position of the marker on the X-axis (frequency axis). - """ + """ val = self._get_property("Position X") return float(val) @position_x.setter - def position_x(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position X={value}"]) + def position_x(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position X={value}"]) @property def position_y(self) -> float: """Position Y Position of the marker on the Y-axis (result axis). - """ + """ val = self._get_property("Position Y") return float(val) @position_y.setter - def position_y(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position Y={value}"]) + def position_y(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Y={value}"]) @property def floating_label(self) -> bool: @@ -118,13 +114,11 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return (val == true) + return val == true @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -138,10 +132,8 @@ def position_from_left(self) -> float: return float(val) @position_from_left.setter - def position_from_left(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Left={value}"]) + def position_from_left(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -155,25 +147,21 @@ def position_from_top(self) -> float: return float(val) @position_from_top.setter - def position_from_top(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Top={value}"]) + def position_from_top(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) @property def text(self) -> str: """Text Set the text of the label - """ + """ val = self._get_property("Text") return val @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -185,16 +173,16 @@ def horizontal_position(self) -> HorizontalPositionOption: """Horizontal Position Specify horizontal position of the label as compared to the symbol - """ + """ val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val.upper()] return val @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Horizontal Position={value.value}"] + ) class VerticalPositionOption(Enum): TOP = "Top" @@ -206,16 +194,14 @@ def vertical_position(self) -> VerticalPositionOption: """Vertical Position Specify vertical position of the label as compared to the symbol - """ + """ val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val.upper()] return val @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -227,16 +213,14 @@ def text_alignment(self) -> TextAlignmentOption: """Text Alignment Specify justification applied to multi-line text - """ + """ val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val.upper()] return val @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) @property def font(self): @@ -250,9 +234,7 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -266,9 +248,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -282,9 +262,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -294,13 +272,11 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return (val == true) + return val == true @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -314,9 +290,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -330,9 +304,7 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -357,16 +329,14 @@ def symbol(self) -> SymbolOption: """Symbol Specify symbol displayed next to the label - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -380,9 +350,7 @@ def arrow_direction(self) -> int: @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -396,9 +364,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -412,9 +378,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -428,9 +392,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -441,11 +403,8 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return (val == true) + return val == true @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py index 54b1d5d909d..f94dad83147 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class PlotNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,15 +58,13 @@ def title(self) -> str: """Title Enter title at the top of the plot, room will be made for it - """ + """ val = self._get_property("Title") return val @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) @property def title_font(self): @@ -76,9 +78,7 @@ def title_font(self): @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -88,13 +88,11 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return (val == true) + return val == true @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) @property def legend_font(self): @@ -108,9 +106,7 @@ def legend_font(self): @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) @property def display_cad_overlay(self) -> bool: @@ -120,13 +116,11 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return (val == true) + return val == true @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -139,25 +133,21 @@ def opacity(self) -> float: return float(val) @opacity.setter - def opacity(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Opacity={value}"]) + def opacity(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset Adjust vertical position of CAD model overlay - """ + """ val = self._get_property("Vertical Offset") return float(val) @vertical_offset.setter - def vertical_offset(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Offset={value}"]) + def vertical_offset(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -171,10 +161,8 @@ def range_axis_rotation(self) -> float: return float(val) @range_axis_rotation.setter - def range_axis_rotation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -184,73 +172,63 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return (val == true) + return val == true @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min Set lower extent of horizontal axis - """ + """ val = self._get_property("X-axis Min") return float(val) @x_axis_min.setter - def x_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Min={value}"]) + def x_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max Set upper extent of horizontal axis - """ + """ val = self._get_property("X-axis Max") return float(val) @x_axis_max.setter - def x_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Max={value}"]) + def x_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min Set lower extent of vertical axis - """ + """ val = self._get_property("Y-axis Min") return float(val) @y_axis_min.setter - def y_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Min={value}"]) + def y_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max Set upper extent of vertical axis - """ + """ val = self._get_property("Y-axis Max") return float(val) @y_axis_max.setter - def y_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Max={value}"]) + def y_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -264,10 +242,8 @@ def y_axis_range(self) -> float: return float(val) @y_axis_range.setter - def y_axis_range(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Range={value}"]) + def y_axis_range(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -281,9 +257,7 @@ def max_major_ticks_x(self) -> int: @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -298,9 +272,7 @@ def max_minor_ticks_x(self) -> int: @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -314,9 +286,7 @@ def max_major_ticks_y(self) -> int: @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -331,9 +301,7 @@ def max_minor_ticks_y(self) -> int: @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -347,9 +315,7 @@ def axis_label_font(self): @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -363,9 +329,7 @@ def axis_tick_label_font(self): @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -380,16 +344,16 @@ def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style Select line style of major-tick grid lines - """ + """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val.upper()] return val @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] + ) @property def major_grid_color(self): @@ -403,9 +367,7 @@ def major_grid_color(self): @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -420,16 +382,16 @@ def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style Select line style of minor-tick grid lines - """ + """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val.upper()] return val @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] + ) @property def minor_grid_color(self): @@ -443,9 +405,7 @@ def minor_grid_color(self): @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -459,9 +419,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -474,16 +432,16 @@ def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit Units to use for plotting broadband power densities - """ + """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val.upper()] return val @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power for Plots Unit={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] + ) @property def bb_power_bandwidth(self) -> float: @@ -497,11 +455,9 @@ def bb_power_bandwidth(self) -> float: return float(val) @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value : float|str): + def bb_power_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -511,11 +467,8 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return (val == true) + return val == true @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Log Scale={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py b/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py index 5b0711394c0..9e50f7900ce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class PowerDivider(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,9 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,25 +70,21 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -99,16 +97,14 @@ def type(self) -> TypeOption: Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class OrientationOption(Enum): DIVIDER = "Divider" @@ -119,16 +115,14 @@ def orientation(self) -> OrientationOption: """Orientation Defines the orientation of the Power Divider. - """ + """ val = self._get_property("Orientation") val = self.OrientationOption[val.upper()] return val @orientation.setter def orientation(self, value: OrientationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value.value}"]) @property def insertion_loss_above_ideal(self) -> float: @@ -142,10 +136,10 @@ def insertion_loss_above_ideal(self) -> float: return float(val) @insertion_loss_above_ideal.setter - def insertion_loss_above_ideal(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss Above Ideal={value}"]) + def insertion_loss_above_ideal(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Insertion Loss Above Ideal={value}"] + ) @property def finite_isolation(self) -> bool: @@ -156,13 +150,11 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return (val == true) + return val == true @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -175,10 +167,8 @@ def isolation(self) -> float: return float(val) @isolation.setter - def isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Isolation={value}"]) + def isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -189,13 +179,11 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -208,10 +196,8 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -225,11 +211,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -243,11 +227,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -261,11 +243,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -279,18 +259,15 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py index b4323f7f68f..aeaeeb96f3f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class PowerTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -55,16 +59,14 @@ def direction(self) -> DirectionOption: """Direction Direction of power flow (towards or away from the transmitter) to plot - """ + """ val = self._get_property("Direction") val = self.DirectionOption[val.upper()] return val @direction.setter def direction(self, value: DirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Direction={value.value}"]) @property def data_source(self): @@ -72,15 +74,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -90,13 +90,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -106,28 +104,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -142,16 +136,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -165,9 +157,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -181,9 +171,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -207,16 +195,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -230,9 +216,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -246,9 +230,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -262,9 +244,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -275,11 +255,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py index fa7135e351b..dcde8cf4d8c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ProfileTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,15 +56,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -70,13 +72,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -86,28 +86,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -122,16 +118,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -145,9 +139,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -161,9 +153,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -187,16 +177,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -210,9 +198,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -226,9 +212,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -242,9 +226,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -255,11 +237,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py index 6f495e88296..e58e04ae852 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class PropagationLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def custom_fading_margin(self) -> float: @@ -151,10 +143,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -168,10 +158,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -185,10 +173,8 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -201,16 +187,14 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -224,10 +208,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -240,10 +222,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -253,13 +233,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -273,10 +251,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -289,10 +265,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -306,10 +280,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -320,13 +292,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -339,10 +311,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -355,10 +325,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -371,8 +339,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py index 12cc5aa7711..6ebf43aadb1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RadioNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -51,11 +54,11 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Name: - "Type: - """ + "Name: + "Type: + """ return self._get_table_data() @table_data.setter @@ -67,13 +70,10 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py index 564926c4d22..ca7352de82a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyAmplifier(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,7 +58,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -67,7 +71,7 @@ def amplifier_type(self) -> AmplifierTypeOption: """Amplifier Type Configures the amplifier as a Tx or Rx amplifier - """ + """ val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val.upper()] return val @@ -176,4 +180,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return int(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py index 83cdf3dc504..ea4ac8d426b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyAntennaNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -39,7 +43,7 @@ def tags(self) -> str: """Tags Space delimited list of tags for coupling selections - """ + """ val = self._get_property("Tags") return val @@ -52,7 +56,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return val == true @property def position(self): @@ -83,7 +87,7 @@ def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @@ -116,7 +120,7 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return (val == true) + return val == true @property def antenna_temperature(self) -> float: @@ -133,7 +137,7 @@ def type(self): """Type Defines the type of antenna - """ + """ val = self._get_property("Type") return val @@ -175,7 +179,7 @@ def boresight(self) -> BoresightOption: """Boresight Select peak beam direction in local coordinates - """ + """ val = self._get_property("Boresight") val = self.BoresightOption[val.upper()] return val @@ -208,7 +212,7 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return (val == true) + return val == true @property def first_sidelobe_level(self) -> float: @@ -374,7 +378,7 @@ def antenna_polarization(self) -> AntennaPolarizationOption: """Antenna Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val.upper()] return val @@ -388,7 +392,7 @@ def cross_dipole_mode(self) -> CrossDipoleModeOption: """Cross Dipole Mode Choose the Cross Dipole type - """ + """ val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val.upper()] return val @@ -402,7 +406,7 @@ def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: """Cross Dipole Polarization Choose local-coordinates polarization along boresight - """ + """ val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val.upper()] return val @@ -416,7 +420,7 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return (val == true) + return val == true @property def offset_height(self) -> float: @@ -438,7 +442,7 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return (val == true) + return val == true @property def conform__adjust_antenna(self) -> bool: @@ -448,7 +452,7 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return (val == true) + return val == true @property def element_offset(self): @@ -470,7 +474,7 @@ def conform_to_platform(self) -> ConformtoPlatformOption: """Conform to Platform Select method of automated conforming applied after Element Offset - """ + """ val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val.upper()] return val @@ -485,7 +489,7 @@ def reference_plane(self) -> ReferencePlaneOption: """Reference Plane Select reference plane for determining original element heights - """ + """ val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val.upper()] return val @@ -499,7 +503,7 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return (val == true) + return val == true @property def show_axes(self) -> bool: @@ -509,7 +513,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return val == true @property def show_icon(self) -> bool: @@ -519,7 +523,7 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return (val == true) + return val == true @property def size(self) -> float: @@ -546,7 +550,7 @@ def el_sample_interval(self) -> float: """El Sample Interval Space between elevation-angle samples of pattern - """ + """ val = self._get_property("El Sample Interval") return float(val) @@ -555,7 +559,7 @@ def az_sample_interval(self) -> float: """Az Sample Interval Space between azimuth-angle samples of pattern - """ + """ val = self._get_property("Az Sample Interval") return float(val) @@ -567,14 +571,14 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return (val == true) + return val == true @property def frequency_domain(self): """Frequency Domain Frequency sample(s) defining antenna - """ + """ val = self._get_property("Frequency Domain") return val @@ -583,7 +587,7 @@ def number_of_electric_sources(self) -> int: """Number of Electric Sources Number of freestanding electric current sources defining antenna - """ + """ val = self._get_property("Number of Electric Sources") return int(val) @@ -592,7 +596,7 @@ def number_of_magnetic_sources(self) -> int: """Number of Magnetic Sources Number of freestanding magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Magnetic Sources") return int(val) @@ -602,7 +606,7 @@ def number_of_imaged_electric_sources(self) -> int: Number of imaged, half-space radiating electric current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Electric Sources") return int(val) @@ -612,7 +616,7 @@ def number_of_imaged_magnetic_sources(self) -> int: Number of imaged, half-space radiating magnetic current sources defining antenna - """ + """ val = self._get_property("Number of Imaged Magnetic Sources") return int(val) @@ -622,7 +626,7 @@ def waveguide_height(self) -> float: Implied waveguide height (along local x-axis) where the flared horn walls meet the feed - """ + """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") return float(val) @@ -632,7 +636,7 @@ def waveguide_cutoff_frequency(self) -> float: """Waveguide Cutoff Frequency Implied lowest operating frequency of pyramidal horn antenna - """ + """ val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -642,7 +646,7 @@ def aperture_cutoff_frequency(self) -> float: """Aperture Cutoff Frequency Implied lowest operating frequency of conical horn antenna - """ + """ val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -658,7 +662,7 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: Select the method for stability-enhancing truncation of spherical wave expansion terms - """ + """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val.upper()] return val @@ -678,7 +682,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -690,7 +694,7 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return (val == true) + return val == true @property def use_phase_center(self) -> bool: @@ -700,14 +704,14 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return (val == true) + return val == true @property def coordinate_systems(self) -> str: """Coordinate Systems Specifies the coordinate system for the phase center of this antenna - """ + """ val = self._get_property("Coordinate Systems") return val @@ -730,4 +734,3 @@ def phasecenterorientation(self): """ val = self._get_property("PhaseCenterOrientation") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py index cf8b02d8aec..c1f7e8dd5bd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyAntennaPassband(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -102,7 +105,6 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py index 40b4ff1e74c..9bd6a9010db 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -39,7 +43,7 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") return val @@ -51,7 +55,7 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return (val == true) + return val == true @property def use_emission_designator(self) -> bool: @@ -61,14 +65,14 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return (val == true) + return val == true @property def emission_designator(self) -> str: """Emission Designator Enter the Emission Designator to define the bandwidth and modulation - """ + """ val = self._get_property("Emission Designator") return val @@ -77,7 +81,7 @@ def emission_designator_ch_bw(self) -> float: """Emission Designator Ch. BW Channel Bandwidth based off the emission designator - """ + """ val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -87,7 +91,7 @@ def emit_modulation_type(self) -> str: """EMIT Modulation Type Modulation based off the emission designator - """ + """ val = self._get_property("EMIT Modulation Type") return val @@ -100,7 +104,7 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return (val == true) + return val == true @property def channel_bandwidth(self) -> float: @@ -131,7 +135,7 @@ def modulation(self) -> ModulationOption: """Modulation Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Modulation") val = self.ModulationOption[val.upper()] return val @@ -191,7 +195,7 @@ def sidelobes(self) -> int: @property def freq_deviation_(self) -> float: - """Freq. Deviation + """Freq. Deviation FSK frequency deviation: helps determine spectral profile Value should be greater than 1. @@ -213,7 +217,7 @@ def psk_type(self) -> PSKTypeOption: """PSK Type PSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("PSK Type") val = self.PSKTypeOption[val.upper()] return val @@ -228,7 +232,7 @@ def fsk_type(self) -> FSKTypeOption: """FSK Type FSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("FSK Type") val = self.FSKTypeOption[val.upper()] return val @@ -245,7 +249,7 @@ def qam_type(self) -> QAMTypeOption: """QAM Type QAM modulation order: helps determine spectral profile - """ + """ val = self._get_property("QAM Type") val = self.QAMTypeOption[val.upper()] return val @@ -262,7 +266,7 @@ def apsk_type(self) -> APSKTypeOption: """APSK Type APSK modulation order: helps determine spectral profile - """ + """ val = self._get_property("APSK Type") val = self.APSKTypeOption[val.upper()] return val @@ -323,7 +327,7 @@ def radar_type(self) -> RadarTypeOption: """Radar Type Radar type: helps determine spectral profile - """ + """ val = self._get_property("Radar Type") val = self.RadarTypeOption[val.upper()] return val @@ -336,7 +340,7 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return (val == true) + return val == true @property def post_october_2020_procurement(self) -> bool: @@ -347,7 +351,7 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return (val == true) + return val == true @property def hop_range_min_freq(self) -> float: @@ -467,4 +471,3 @@ def fm_freq_dev_bandwidth(self) -> float: val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py index 88c4224e281..6aa83ad1ada 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyBandFolder(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -32,4 +35,3 @@ def __init__(self, emit_obj, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py index ac453c217f1..7d776e8011e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyCable(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,7 +58,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -69,7 +73,7 @@ def type(self) -> TypeOption: Type of cable to use. Options include: By File (measured or simulated), Constant Loss, or Coaxial Cable - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -131,7 +135,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py index 0a4cfa219df..b51bbda501a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyCADNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -65,7 +69,7 @@ def model_type(self) -> ModelTypeOption: """Model Type Select type of parametric model to create - """ + """ val = self._get_property("Model Type") val = self.ModelTypeOption[val.upper()] return val @@ -228,7 +232,7 @@ def offset(self) -> float: """Offset Offset of parabolic reflector - """ + """ val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") return float(val) @@ -273,7 +277,7 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return (val == true) + return val == true @property def closed_base(self) -> bool: @@ -283,7 +287,7 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return (val == true) + return val == true @property def mesh_density(self) -> int: @@ -305,7 +309,7 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return (val == true) + return val == true class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -316,7 +320,7 @@ def mesh_option(self) -> MeshOptionOption: """Mesh Option Select from different meshing options - """ + """ val = self._get_property("Mesh Option") val = self.MeshOptionOption[val.upper()] return val @@ -340,7 +344,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return val == true @property def position(self): @@ -371,7 +375,7 @@ def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @@ -404,7 +408,7 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -417,7 +421,7 @@ def render_mode(self) -> RenderModeOption: """Render Mode Select drawing style for surfaces - """ + """ val = self._get_property("Render Mode") val = self.RenderModeOption[val.upper()] return val @@ -430,7 +434,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return val == true @property def min(self): @@ -457,7 +461,7 @@ def number_of_surfaces(self) -> int: """Number of Surfaces Number of surfaces in the model - """ + """ val = self._get_property("Number of Surfaces") return int(val) @@ -476,7 +480,6 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py index 5c2c7abb986..5217a9c9330 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyCirculator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,7 +58,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -68,7 +72,7 @@ def type(self) -> TypeOption: Type of circulator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -82,7 +86,7 @@ def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the circulator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @@ -106,7 +110,7 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return (val == true) + return val == true @property def reverse_isolation(self) -> float: @@ -127,7 +131,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @property def out_of_band_attenuation(self) -> float: @@ -188,7 +192,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py index 12ac821d777..1aaaf0aa9a8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +44,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def ports(self): @@ -49,7 +52,6 @@ def ports(self): Maps each port in the link to an antenna in the project "A list of values." - """ + """ val = self._get_property("Ports") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py index 1098e5f28d5..2612058943c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyCouplingsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,7 +57,6 @@ def antenna_tags(self) -> str: """Antenna Tags All tags currently used by all antennas in the project - """ + """ val = self._get_property("Antenna Tags") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py index 4d506ca453b..1233eb221b3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,11 +38,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Value (dB): + "Value (dB): Value should be between -1000 and 0. """ return self._get_table_data() @@ -52,14 +55,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -68,7 +71,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -80,7 +83,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -90,14 +93,13 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py index cef4f2deb62..b4e8c6526e1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -34,7 +38,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -48,7 +52,7 @@ def ground_plane_normal(self) -> GroundPlaneNormalOption: """Ground Plane Normal Specifies the axis of the normal to the ground plane - """ + """ val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val.upper()] return val @@ -59,8 +63,7 @@ def gp_position_along_normal(self) -> float: Offset of ground plane in direction normal to the ground planes orientation - """ + """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py index 08c7ada730f..3dbb6977ca2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,14 +46,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @@ -58,7 +62,7 @@ def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -80,14 +84,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -101,7 +105,7 @@ def terrain_category(self) -> TerrainCategoryOption: """Terrain Category Specify the terrain category type for the Erceg model - """ + """ val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val.upper()] return val @@ -150,7 +154,7 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -184,7 +188,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -227,7 +231,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -258,4 +262,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py index d4e8ff24e69..c76d25b367a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyFilter(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,7 +58,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -73,7 +77,7 @@ def type(self) -> TypeOption: Type of filter to define. The filter can be defined by file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -188,7 +192,7 @@ def higher_stop_band(self) -> float: @property def lower_cutoff_(self) -> float: - """Lower Cutoff + """Lower Cutoff Lower cutoff frequency Value should be between 1 and 1e+11. @@ -199,7 +203,7 @@ def lower_cutoff_(self) -> float: @property def lower_stop_band_(self) -> float: - """Lower Stop Band + """Lower Stop Band Lower stop band frequency Value should be between 1 and 1e+11. @@ -210,7 +214,7 @@ def lower_stop_band_(self) -> float: @property def higher_stop_band_(self) -> float: - """Higher Stop Band + """Higher Stop Band Higher stop band frequency Value should be between 1 and 1e+11. @@ -221,7 +225,7 @@ def higher_stop_band_(self) -> float: @property def higher_cutoff_(self) -> float: - """Higher Cutoff + """Higher Cutoff Higher cutoff frequency Value should be between 1 and 1e+11. @@ -232,7 +236,7 @@ def higher_cutoff_(self) -> float: @property def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency + """Lowest Tuned Frequency Lowest tuned frequency Value should be between 1 and 1e+11. @@ -243,7 +247,7 @@ def lowest_tuned_frequency_(self) -> float: @property def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency + """Highest Tuned Frequency Highest tuned frequency Value should be between 1 and 1e+11. @@ -277,7 +281,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py index be425b02af9..ad9a48eb6c6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,14 +46,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @@ -58,7 +62,7 @@ def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -80,14 +84,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -101,7 +105,7 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment for the 5G channel model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @@ -114,7 +118,7 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return (val == true) + return val == true @property def include_bpl(self) -> bool: @@ -124,7 +128,7 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return (val == true) + return val == true class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -135,7 +139,7 @@ def nyu_bpl_model(self) -> NYUBPLModelOption: """NYU BPL Model Specify the NYU Building Penetration Loss model - """ + """ val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val.upper()] return val @@ -184,7 +188,7 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -218,7 +222,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -261,7 +265,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -292,4 +296,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py index c9b2c934acd..a49f4c8f965 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,14 +46,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @@ -58,7 +62,7 @@ def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -80,14 +84,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -102,7 +106,7 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Hata model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @@ -151,7 +155,7 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -185,7 +189,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -228,7 +232,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -259,4 +263,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py index 5060d4ff921..face93c9d77 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,13 +40,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency: + "Frequency: Value should be between 1 and 1e+11. - "Power Loss Coefficient: + "Power Loss Coefficient: Value should be between 0 and 100. - "Floor Penetration Loss (dB): + "Floor Penetration Loss (dB): Value should be between 0 and 1000. """ return self._get_table_data() @@ -55,14 +59,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -71,7 +75,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -83,7 +87,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -93,14 +97,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -116,7 +120,7 @@ def building_type(self) -> BuildingTypeOption: """Building Type Specify the building type for the Indoor Propagation model - """ + """ val = self._get_property("Building Type") val = self.BuildingTypeOption[val.upper()] return val @@ -175,7 +179,7 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -209,7 +213,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -252,7 +256,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -283,4 +287,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py index 55f492f6ee2..2d894cdd5db 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyIsolator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,7 +58,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -68,7 +72,7 @@ def type(self) -> TypeOption: Type of isolator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -82,7 +86,7 @@ def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the isolator. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @@ -106,7 +110,7 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return (val == true) + return val == true @property def reverse_isolation(self) -> float: @@ -127,7 +131,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @property def out_of_band_attenuation(self) -> float: @@ -188,7 +192,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py index b2165628930..cbe6f5aebb4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,14 +46,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -58,7 +62,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -80,14 +84,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -105,7 +109,7 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Log Distance model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @@ -164,7 +168,7 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -198,7 +202,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -241,7 +245,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -272,4 +276,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py index eaeffe4aa64..b666ad2f617 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyMultiplexer(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,7 +58,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -69,7 +73,7 @@ def type(self) -> TypeOption: simulated file for the device) or By Pass Band (parametric or file-based definition for each pass band) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -83,7 +87,7 @@ def port_1_location(self) -> Port1LocationOption: """Port 1 Location Defines the orientation of the multiplexer. - """ + """ val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @@ -96,7 +100,7 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return (val == true) + return val == true @property def ports(self): @@ -104,7 +108,7 @@ def ports(self): Assigns the child port nodes to the multiplexers ports "A list of values." - """ + """ val = self._get_property("Ports") return val @@ -113,7 +117,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py index a27fa73966b..042867b531e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -47,7 +51,7 @@ def type(self) -> TypeOption: file (measured or simulated data) or using one of EMIT's parametric models - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -175,7 +179,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py index 11a3b933ef9..0546b885efe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyPowerDivider(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,7 +58,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -69,7 +73,7 @@ def type(self) -> TypeOption: Type of Power Divider model to use. Options include: By File (measured or simulated), 3 dB (parametric), and Resistive (parametric) - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -83,7 +87,7 @@ def orientation(self) -> OrientationOption: """Orientation Defines the orientation of the Power Divider. - """ + """ val = self._get_property("Orientation") val = self.OrientationOption[val.upper()] return val @@ -108,7 +112,7 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return (val == true) + return val == true @property def isolation(self) -> float: @@ -129,7 +133,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @property def out_of_band_attenuation(self) -> float: @@ -190,7 +194,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py index d893151e8ab..4ccb6b3595e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,14 +46,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -58,7 +62,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -80,14 +84,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -135,7 +139,7 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -169,7 +173,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -212,7 +216,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -243,4 +247,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py index 4d49888006c..6dd413f7188 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRadioNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,11 +38,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Name: - "Type: - """ + "Name: + "Type: + """ return self._get_table_data() @property @@ -47,7 +50,6 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py index e3fa487c5a3..7d5d03423fc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -59,7 +63,7 @@ def receive_frequency(self) -> float: """Receive Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -74,7 +78,7 @@ def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode Defines the mode for the receiver measurement - """ + """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val.upper()] return val @@ -117,7 +121,7 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return (val == true) + return val == true @property def intended_signal_power(self) -> float: @@ -158,7 +162,7 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return (val == true) + return val == true @property def measure_mixer_products(self) -> bool: @@ -168,7 +172,7 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return (val == true) + return val == true @property def max_rf_order(self) -> int: @@ -198,7 +202,7 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return (val == true) + return val == true @property def measure_saturation(self) -> bool: @@ -208,7 +212,7 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return (val == true) + return val == true @property def use_ams_limits(self) -> bool: @@ -218,7 +222,7 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return (val == true) + return val == true @property def start_frequency(self) -> float: @@ -260,5 +264,4 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return (val == true) - + return val == true diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py index 7fc6010f99a..8d57af7c8f0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -44,7 +48,7 @@ def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper Taper for setting amplitude of mixer products - """ + """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val.upper()] return val @@ -164,7 +168,7 @@ def mixing_mode(self) -> MixingModeOption: """Mixing Mode Specifies whether the IF frequency is > or < RF channel frequency - """ + """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val.upper()] return val @@ -184,7 +188,7 @@ def rf_transition_frequency(self) -> float: """RF Transition Frequency RF Frequency Transition point - """ + """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -198,7 +202,7 @@ def use_high_lo(self) -> UseHighLOOption: """Use High LO Use High LO above/below the transition frequency - """ + """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val.upper()] return val @@ -212,8 +216,7 @@ def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units Specifies the units for the Mixer Products - """ + """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val.upper()] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py index 5e22eca60c2..45328a8b5fe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -32,4 +35,3 @@ def __init__(self, emit_obj, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py index a3944914964..fab53dbb400 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,5 +45,4 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return (val == true) - + return val == true diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py index bc475a26c1d..4bd4d1773f6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,13 +40,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -56,8 +60,7 @@ def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py index acf4640a5f6..421fcb92f79 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -45,14 +49,14 @@ def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units Units to use for the Rx Sensitivity - """ + """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val.upper()] return val @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr Received signal power level at the Rx's antenna terminal Value should be between -1000 and 1000. @@ -90,7 +94,7 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return (val == true) + return val == true @property def saturation_level(self) -> float: @@ -115,7 +119,7 @@ def rx_noise_figure(self) -> float: @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity Rx minimum sensitivity level (dBm) Value should be between -1000 and 1000. @@ -126,7 +130,7 @@ def receiver_sensitivity_(self) -> float: @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity SNR or SINAD at the specified sensitivity level Value should be between -1000 and 1000. @@ -142,7 +146,7 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return (val == true) + return val == true @property def amplifier_saturation_level(self) -> float: @@ -157,7 +161,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Rx's 1 dB Compression Point - total power > P1dB saturates the receiver Value should be between -1000 and 1000. @@ -186,4 +190,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return int(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py index f95424ebcf8..ee589ac1c98 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlySamplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,11 +40,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Min: + "Min: Value should be greater than 1. - "Max: + "Max: Value should be greater than 1. """ return self._get_table_data() @@ -55,7 +59,7 @@ def sampling_type(self) -> SamplingTypeOption: """Sampling Type Sampling to apply to this configuration - """ + """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val.upper()] return val @@ -69,7 +73,7 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return (val == true) + return val == true @property def percentage_of_channels(self) -> float: @@ -107,7 +111,7 @@ def total_tx_channels(self) -> int: Total number of transmit channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Tx Channels") return int(val) @@ -117,7 +121,7 @@ def total_rx_channels(self) -> int: Total number of receive channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Rx Channels") return int(val) @@ -126,7 +130,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py index 7214b8aa191..805ffbddaa2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlySceneGroupNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -43,7 +47,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return val == true @property def position(self): @@ -74,7 +78,7 @@ def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @@ -107,7 +111,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return val == true @property def box_color(self): @@ -124,7 +128,6 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py index 5ca19668655..3bf6d1f23bb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,7 +45,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def enable_refinement(self) -> bool: @@ -52,7 +55,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -62,14 +65,13 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py index cb6390f154e..4200a3fc267 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlySolutionsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,5 +45,4 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) - + return val == true diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py index c1acb6619c6..3b925264c88 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTerminator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,7 +58,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -68,7 +72,7 @@ def type(self) -> TypeOption: Type of terminator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @@ -82,7 +86,7 @@ def port_location(self) -> PortLocationOption: """Port Location Defines the orientation of the terminator. - """ + """ val = self._get_property("Port Location") val = self.PortLocationOption[val.upper()] return val @@ -104,7 +108,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py index 8a161344db3..3e67009dd63 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +44,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def enable_refinement(self) -> bool: @@ -51,7 +54,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -61,14 +64,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -87,7 +90,7 @@ def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File Coupling data generated by Savant and exported as a matched file - """ + """ val = self._get_property("Savant Matched Coupling File") return val @@ -99,7 +102,7 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return (val == true) + return val == true @property def port_antenna_assignment(self): @@ -107,7 +110,7 @@ def port_antenna_assignment(self): Maps each port in the coupling file to an antenna in the project "A list of values." - """ + """ val = self._get_property("Port-Antenna Assignment") return val @@ -116,7 +119,6 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py index 3ee1c4a4ed8..00c3fb673f4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTR_Switch(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -54,7 +58,7 @@ def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @@ -67,7 +71,7 @@ def tx_port(self) -> TxPortOption: """Tx Port Specifies which port on the TR Switch is part of the Tx path. - """ + """ val = self._get_property("Tx Port") val = self.TxPortOption[val.upper()] return val @@ -81,7 +85,7 @@ def common_port_location(self) -> CommonPortLocationOption: """Common Port Location Defines the orientation of the tr switch. - """ + """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val.upper()] return val @@ -105,7 +109,7 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return (val == true) + return val == true @property def isolation(self) -> float: @@ -126,7 +130,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @property def out_of_band_attenuation(self) -> float: @@ -181,4 +185,3 @@ def higher_stop_band(self) -> float: val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py index 39a5d895309..34637d0ef01 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,14 +46,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @@ -58,7 +62,7 @@ def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -80,14 +84,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -155,7 +159,7 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -189,7 +193,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -232,7 +236,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -263,4 +267,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py index 04fec1e128d..28cf7035056 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,9 +42,9 @@ def parent(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): Value should be between -200 and 150. """ return self._get_table_data() @@ -56,7 +60,7 @@ def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior Specifies the behavior of the parametric noise profile - """ + """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val.upper()] return val @@ -70,5 +74,4 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return (val == true) - + return val == true diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py index 520126b07e6..58a5a5c9dba 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -43,8 +47,7 @@ def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units Specifies the units for the Harmonics - """ + """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val.upper()] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py index 9d8729dc36b..a69caa5e6e5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,7 +61,7 @@ def transmit_frequency(self) -> float: """Transmit Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -71,7 +74,7 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return (val == true) + return val == true @property def start_frequency(self) -> float: @@ -103,5 +106,4 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return (val == true) - + return val == true diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py index ecb068c242e..d3b922e9cc3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -43,7 +47,7 @@ def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior Specifies the behavior of the parametric narrowband emissions mask - """ + """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val.upper()] return val @@ -53,8 +57,7 @@ def measurement_frequency(self) -> float: """Measurement Frequency Measurement frequency for the absolute freq/amp pairs. - """ + """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py index f551a2e6781..f8924491de9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxSpectralProfEmitterNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,7 +41,7 @@ def output_voltage_peak(self) -> float: """Output Voltage Peak Output High Voltage Level: maximum voltage of the digital signal - """ + """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") return float(val) @@ -51,7 +54,7 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return (val == true) + return val == true @property def tx_broadband_noise(self) -> float: @@ -71,7 +74,7 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return (val == true) + return val == true @property def internal_amp_gain(self) -> float: @@ -106,7 +109,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -146,4 +149,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return int(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py index 506153c3046..63c76bc35c8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -43,7 +47,7 @@ def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type Specifies EMI Margins to calculate - """ + """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val.upper()] return val @@ -57,7 +61,7 @@ def tx_power(self) -> TxPowerOption: """Tx Power Method used to specify the power - """ + """ val = self._get_property("Tx Power") val = self.TxPowerOption[val.upper()] return val @@ -92,7 +96,7 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return (val == true) + return val == true @property def tx_broadband_noise(self) -> float: @@ -115,7 +119,7 @@ def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper Taper type used to set amplitude of harmonics - """ + """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val.upper()] return val @@ -159,7 +163,7 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return (val == true) + return val == true @property def number_of_harmonics(self) -> int: @@ -209,7 +213,7 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return (val == true) + return val == true @property def internal_amp_gain(self) -> float: @@ -244,7 +248,7 @@ def amplifier_saturation_level(self) -> float: @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -284,4 +288,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return int(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py index 9ad76c5cd08..feea24d14d4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,13 +40,13 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -56,8 +60,7 @@ def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py index 3754d8f77d0..669578eaf1d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,14 +46,14 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @@ -58,7 +62,7 @@ def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @@ -70,7 +74,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -80,14 +84,14 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @@ -100,7 +104,7 @@ def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type Specify LOS vs NLOS for the Walfisch-Ikegami model - """ + """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val.upper()] return val @@ -114,7 +118,7 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Walfisch model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @@ -206,7 +210,7 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @@ -240,7 +244,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -283,7 +287,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -314,4 +318,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py index 3bb0a69747f..61953d03414 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyWaveform(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -39,7 +43,7 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") return val @@ -55,7 +59,7 @@ def waveform(self) -> WaveformOption: """Waveform Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Waveform") val = self.WaveformOption[val.upper()] return val @@ -124,7 +128,7 @@ def spreading_type(self) -> SpreadingTypeOption: """Spreading Type Type of spreading employed by the Spread Spectrum Clock - """ + """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val.upper()] return val @@ -152,7 +156,7 @@ def raw_data_format(self) -> str: """Raw Data Format Format of the imported raw data - """ + """ val = self._get_property("Raw Data Format") return val @@ -175,7 +179,7 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return (val == true) + return val == true @property def nb_window_size(self) -> float: @@ -217,7 +221,7 @@ def algorithm(self) -> AlgorithmOption: """Algorithm Algorithm used to transform the imported time domain spectrum - """ + """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val.upper()] return val @@ -238,7 +242,7 @@ def stop_time(self) -> float: """Stop Time Final time of the imported time domain spectrum - """ + """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") return float(val) @@ -270,7 +274,7 @@ def window_type(self) -> WindowTypeOption: """Window Type Windowing scheme used for importing time domain spectrum - """ + """ val = self._get_property("Window Type") val = self.WindowTypeOption[val.upper()] return val @@ -293,7 +297,7 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return (val == true) + return val == true @property def data_rate(self) -> float: @@ -324,7 +328,7 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return (val == true) + return val == true @property def min_ptsnull(self) -> int: @@ -346,4 +350,3 @@ def delay_skew(self) -> float: val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py index c47722ba6d7..f10db08d685 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ResultPlotNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,15 +46,13 @@ def title(self) -> str: """Title Enter title at the top of the plot, room will be made for it - """ + """ val = self._get_property("Title") return val @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) @property def title_font(self): @@ -64,9 +66,7 @@ def title_font(self): @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -76,13 +76,11 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return (val == true) + return val == true @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) @property def legend_font(self): @@ -96,9 +94,7 @@ def legend_font(self): @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) @property def show_emi_thresholds(self) -> bool: @@ -108,13 +104,11 @@ def show_emi_thresholds(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show EMI Thresholds") - return (val == true) + return val == true @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show EMI Thresholds={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show EMI Thresholds={value}"]) @property def display_cad_overlay(self) -> bool: @@ -124,13 +118,11 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return (val == true) + return val == true @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -143,25 +135,21 @@ def opacity(self) -> float: return float(val) @opacity.setter - def opacity(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Opacity={value}"]) + def opacity(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) @property def vertical_offset(self) -> float: """Vertical Offset Adjust vertical position of CAD model overlay - """ + """ val = self._get_property("Vertical Offset") return float(val) @vertical_offset.setter - def vertical_offset(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Offset={value}"]) + def vertical_offset(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -175,10 +163,8 @@ def range_axis_rotation(self) -> float: return float(val) @range_axis_rotation.setter - def range_axis_rotation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -188,73 +174,63 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return (val == true) + return val == true @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: """X-axis Min Set lower extent of horizontal axis - """ + """ val = self._get_property("X-axis Min") return float(val) @x_axis_min.setter - def x_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Min={value}"]) + def x_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: """X-axis Max Set upper extent of horizontal axis - """ + """ val = self._get_property("X-axis Max") return float(val) @x_axis_max.setter - def x_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Max={value}"]) + def x_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: """Y-axis Min Set lower extent of vertical axis - """ + """ val = self._get_property("Y-axis Min") return float(val) @y_axis_min.setter - def y_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Min={value}"]) + def y_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: """Y-axis Max Set upper extent of vertical axis - """ + """ val = self._get_property("Y-axis Max") return float(val) @y_axis_max.setter - def y_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Max={value}"]) + def y_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -268,10 +244,8 @@ def y_axis_range(self) -> float: return float(val) @y_axis_range.setter - def y_axis_range(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Range={value}"]) + def y_axis_range(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -285,9 +259,7 @@ def max_major_ticks_x(self) -> int: @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -302,9 +274,7 @@ def max_minor_ticks_x(self) -> int: @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -318,9 +288,7 @@ def max_major_ticks_y(self) -> int: @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -335,9 +303,7 @@ def max_minor_ticks_y(self) -> int: @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -351,9 +317,7 @@ def axis_label_font(self): @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -367,9 +331,7 @@ def axis_tick_label_font(self): @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -384,16 +346,16 @@ def major_grid_line_style(self) -> MajorGridLineStyleOption: """Major Grid Line Style Select line style of major-tick grid lines - """ + """ val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val.upper()] return val @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] + ) @property def major_grid_color(self): @@ -407,9 +369,7 @@ def major_grid_color(self): @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -424,16 +384,16 @@ def minor_grid_line_style(self) -> MinorGridLineStyleOption: """Minor Grid Line Style Select line style of minor-tick grid lines - """ + """ val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val.upper()] return val @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] + ) @property def minor_grid_color(self): @@ -447,9 +407,7 @@ def minor_grid_color(self): @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -463,9 +421,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -478,16 +434,16 @@ def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: """BB Power for Plots Unit Units to use for plotting broadband power densities - """ + """ val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val.upper()] return val @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power for Plots Unit={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] + ) @property def bb_power_bandwidth(self) -> float: @@ -501,11 +457,9 @@ def bb_power_bandwidth(self) -> float: return float(val) @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value : float|str): + def bb_power_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -515,11 +469,8 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return (val == true) + return val == true @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Log Scale={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py index c3758ae5b2d..9065d91119a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -67,7 +71,7 @@ def receive_frequency(self) -> float: """Receive Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -82,16 +86,14 @@ def measurement_mode(self) -> MeasurementModeOption: """Measurement Mode Defines the mode for the receiver measurement - """ + """ val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val.upper()] return val @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Mode={value.value}"]) @property def sinad_threshold(self) -> float: @@ -104,10 +106,8 @@ def sinad_threshold(self) -> float: return float(val) @sinad_threshold.setter - def sinad_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SINAD Threshold={value}"]) + def sinad_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SINAD Threshold={value}"]) @property def gps_cnr_threshold(self) -> float: @@ -120,10 +120,8 @@ def gps_cnr_threshold(self) -> float: return float(val) @gps_cnr_threshold.setter - def gps_cnr_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"GPS CNR Threshold={value}"]) + def gps_cnr_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GPS CNR Threshold={value}"]) @property def ber_threshold(self) -> float: @@ -136,10 +134,8 @@ def ber_threshold(self) -> float: return float(val) @ber_threshold.setter - def ber_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BER Threshold={value}"]) + def ber_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BER Threshold={value}"]) @property def default_intended_power(self) -> bool: @@ -149,13 +145,11 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return (val == true) + return val == true @default_intended_power.setter def default_intended_power(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Default Intended Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Default Intended Power={value}"]) @property def intended_signal_power(self) -> float: @@ -168,10 +162,8 @@ def intended_signal_power(self) -> float: return float(val) @intended_signal_power.setter - def intended_signal_power(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Intended Signal Power={value}"]) + def intended_signal_power(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Intended Signal Power={value}"]) @property def freq_deviation(self) -> float: @@ -185,11 +177,9 @@ def freq_deviation(self) -> float: return float(val) @freq_deviation.setter - def freq_deviation(self, value : float|str): + def freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) @property def modulation_depth(self) -> float: @@ -202,10 +192,8 @@ def modulation_depth(self) -> float: return float(val) @modulation_depth.setter - def modulation_depth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation Depth={value}"]) + def modulation_depth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Depth={value}"]) @property def measure_selectivity(self) -> bool: @@ -215,13 +203,11 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return (val == true) + return val == true @measure_selectivity.setter def measure_selectivity(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Selectivity={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Selectivity={value}"]) @property def measure_mixer_products(self) -> bool: @@ -231,13 +217,11 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return (val == true) + return val == true @measure_mixer_products.setter def measure_mixer_products(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Mixer Products={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Mixer Products={value}"]) @property def max_rf_order(self) -> int: @@ -251,9 +235,7 @@ def max_rf_order(self) -> int: @max_rf_order.setter def max_rf_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max RF Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max RF Order={value}"]) @property def max_lo_order(self) -> int: @@ -267,9 +249,7 @@ def max_lo_order(self) -> int: @max_lo_order.setter def max_lo_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max LO Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max LO Order={value}"]) @property def include_if(self) -> bool: @@ -279,13 +259,11 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return (val == true) + return val == true @include_if.setter def include_if(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include IF={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include IF={value}"]) @property def measure_saturation(self) -> bool: @@ -295,13 +273,11 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return (val == true) + return val == true @measure_saturation.setter def measure_saturation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Saturation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Saturation={value}"]) @property def use_ams_limits(self) -> bool: @@ -311,13 +287,11 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return (val == true) + return val == true @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -331,11 +305,9 @@ def start_frequency(self) -> float: return float(val) @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -349,11 +321,9 @@ def stop_frequency(self) -> float: return float(val) @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def samples(self) -> int: @@ -367,9 +337,7 @@ def samples(self) -> int: @samples.setter def samples(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Samples={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Samples={value}"]) @property def exclude_mixer_products_below_noise(self) -> bool: @@ -379,20 +347,19 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return (val == true) + return val == true @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Exclude Mixer Products Below Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Exclude Mixer Products Below Noise={value}"] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py index cb7a3eaba22..6c6f3aa83b8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RxMixerProductNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -45,7 +49,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -61,16 +65,16 @@ def mixer_product_taper(self) -> MixerProductTaperOption: """Mixer Product Taper Taper for setting amplitude of mixer products - """ + """ val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val.upper()] return val @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Taper={value.value}"] + ) @property def mixer_product_susceptibility(self) -> float: @@ -83,10 +87,10 @@ def mixer_product_susceptibility(self) -> float: return float(val) @mixer_product_susceptibility.setter - def mixer_product_susceptibility(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Susceptibility={value}"]) + def mixer_product_susceptibility(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Susceptibility={value}"] + ) @property def spurious_rejection(self) -> float: @@ -99,10 +103,8 @@ def spurious_rejection(self) -> float: return float(val) @spurious_rejection.setter - def spurious_rejection(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spurious Rejection={value}"]) + def spurious_rejection(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spurious Rejection={value}"]) @property def minimum_tuning_frequency(self) -> float: @@ -116,11 +118,9 @@ def minimum_tuning_frequency(self) -> float: return float(val) @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value : float|str): + def minimum_tuning_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minimum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Tuning Frequency={value}"]) @property def maximum_tuning_frequency(self) -> float: @@ -134,11 +134,9 @@ def maximum_tuning_frequency(self) -> float: return float(val) @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value : float|str): + def maximum_tuning_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum Tuning Frequency={value}"]) @property def mixer_product_slope(self) -> float: @@ -152,10 +150,8 @@ def mixer_product_slope(self) -> float: return float(val) @mixer_product_slope.setter - def mixer_product_slope(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Slope={value}"]) + def mixer_product_slope(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Slope={value}"]) @property def mixer_product_intercept(self) -> float: @@ -168,10 +164,8 @@ def mixer_product_intercept(self) -> float: return float(val) @mixer_product_intercept.setter - def mixer_product_intercept(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Intercept={value}"]) + def mixer_product_intercept(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Intercept={value}"]) @property def bandwidth_80_db(self) -> float: @@ -186,11 +180,9 @@ def bandwidth_80_db(self) -> float: return float(val) @bandwidth_80_db.setter - def bandwidth_80_db(self, value : float|str): + def bandwidth_80_db(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 80 dB={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 80 dB={value}"]) @property def image_rejection(self) -> float: @@ -203,10 +195,8 @@ def image_rejection(self) -> float: return float(val) @image_rejection.setter - def image_rejection(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Image Rejection={value}"]) + def image_rejection(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Image Rejection={value}"]) @property def maximum_rf_harmonic_order(self) -> int: @@ -220,9 +210,9 @@ def maximum_rf_harmonic_order(self) -> int: @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum RF Harmonic Order={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Maximum RF Harmonic Order={value}"] + ) @property def maximum_lo_harmonic_order(self) -> int: @@ -236,9 +226,9 @@ def maximum_lo_harmonic_order(self) -> int: @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum LO Harmonic Order={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Maximum LO Harmonic Order={value}"] + ) class MixingModeOption(Enum): LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" @@ -250,16 +240,14 @@ def mixing_mode(self) -> MixingModeOption: """Mixing Mode Specifies whether the IF frequency is > or < RF channel frequency - """ + """ val = self._get_property("Mixing Mode") val = self.MixingModeOption[val.upper()] return val @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixing Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixing Mode={value.value}"]) @property def first_if_frequency(self): @@ -273,26 +261,22 @@ def first_if_frequency(self): @first_if_frequency.setter def first_if_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First IF Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First IF Frequency={value}"]) @property def rf_transition_frequency(self) -> float: """RF Transition Frequency RF Frequency Transition point - """ + """ val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @rf_transition_frequency.setter - def rf_transition_frequency(self, value : float|str): + def rf_transition_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"RF Transition Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"RF Transition Frequency={value}"]) class UseHighLOOption(Enum): ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" @@ -303,16 +287,14 @@ def use_high_lo(self) -> UseHighLOOption: """Use High LO Use High LO above/below the transition frequency - """ + """ val = self._get_property("Use High LO") val = self.UseHighLOOption[val.upper()] return val @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use High LO={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use High LO={value.value}"]) class MixerProductTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -323,14 +305,13 @@ def mixer_product_table_units(self) -> MixerProductTableUnitsOption: """Mixer Product Table Units Specifies the units for the Mixer Products - """ + """ val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val.upper()] return val @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Table Units={value.value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py index df6a48c060b..62e4e8f9276 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RxSaturationNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,9 +47,8 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py index b9449774377..e49a32513f8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RxSelectivityNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,7 +47,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -59,11 +62,8 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return (val == true) + return val == true @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Arithmetic Mean={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Arithmetic Mean={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py index 6ff7afee163..5781b89806a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,13 +48,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -62,7 +66,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -77,14 +81,11 @@ def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spur Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py index 36bd626f12a..a96bdbf133a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RxSusceptibilityProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -54,20 +58,18 @@ def sensitivity_units(self) -> SensitivityUnitsOption: """Sensitivity Units Units to use for the Rx Sensitivity - """ + """ val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val.upper()] return val @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sensitivity Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sensitivity Units={value.value}"]) @property def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr + """Min. Receive Signal Pwr Received signal power level at the Rx's antenna terminal Value should be between -1000 and 1000. @@ -76,10 +78,8 @@ def min_receive_signal_pwr_(self) -> float: return float(val) @min_receive_signal_pwr_.setter - def min_receive_signal_pwr_(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min. Receive Signal Pwr ={value}"]) + def min_receive_signal_pwr_(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min. Receive Signal Pwr ={value}"]) @property def snr_at_rx_signal_pwr(self) -> float: @@ -93,10 +93,8 @@ def snr_at_rx_signal_pwr(self) -> float: return float(val) @snr_at_rx_signal_pwr.setter - def snr_at_rx_signal_pwr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SNR at Rx Signal Pwr={value}"]) + def snr_at_rx_signal_pwr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR at Rx Signal Pwr={value}"]) @property def processing_gain(self) -> float: @@ -109,10 +107,8 @@ def processing_gain(self) -> float: return float(val) @processing_gain.setter - def processing_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Processing Gain={value}"]) + def processing_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Processing Gain={value}"]) @property def apply_pg_to_narrowband_only(self) -> bool: @@ -123,13 +119,13 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return (val == true) + return val == true @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Apply PG to Narrowband Only={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Apply PG to Narrowband Only={value}"] + ) @property def saturation_level(self) -> float: @@ -143,11 +139,9 @@ def saturation_level(self) -> float: return float(val) @saturation_level.setter - def saturation_level(self, value : float|str): + def saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) @property def rx_noise_figure(self) -> float: @@ -160,14 +154,12 @@ def rx_noise_figure(self) -> float: return float(val) @rx_noise_figure.setter - def rx_noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rx Noise Figure={value}"]) + def rx_noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rx Noise Figure={value}"]) @property def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity + """Receiver Sensitivity Rx minimum sensitivity level (dBm) Value should be between -1000 and 1000. @@ -177,15 +169,13 @@ def receiver_sensitivity_(self) -> float: return float(val) @receiver_sensitivity_.setter - def receiver_sensitivity_(self, value : float|str): + def receiver_sensitivity_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Receiver Sensitivity ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver Sensitivity ={value}"]) @property def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity + """SNR/SINAD at Sensitivity SNR or SINAD at the specified sensitivity level Value should be between -1000 and 1000. @@ -194,10 +184,10 @@ def snrsinad_at_sensitivity_(self) -> float: return float(val) @snrsinad_at_sensitivity_.setter - def snrsinad_at_sensitivity_(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SNR/SINAD at Sensitivity ={value}"]) + def snrsinad_at_sensitivity_(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"SNR/SINAD at Sensitivity ={value}"] + ) @property def perform_rx_intermod_analysis(self) -> bool: @@ -207,13 +197,13 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return (val == true) + return val == true @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Rx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Rx Intermod Analysis={value}"] + ) @property def amplifier_saturation_level(self) -> float: @@ -227,15 +217,15 @@ def amplifier_saturation_level(self) -> float: return float(val) @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Rx's 1 dB Compression Point - total power > P1dB saturates the receiver Value should be between -1000 and 1000. @@ -245,11 +235,9 @@ def p1_db_point_ref_input_(self) -> float: return float(val) @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -263,11 +251,9 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def max_intermod_order(self) -> int: @@ -281,7 +267,4 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py index 79feb22b091..83601ce93d3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class SamplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,11 +40,11 @@ def parent(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 2 columns." - "Min: + "Min: Value should be greater than 1. - "Max: + "Max: Value should be greater than 1. """ return self._get_table_data() @@ -59,16 +63,14 @@ def sampling_type(self) -> SamplingTypeOption: """Sampling Type Sampling to apply to this configuration - """ + """ val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val.upper()] return val @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sampling Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sampling Type={value.value}"]) @property def specify_percentage(self) -> bool: @@ -79,13 +81,11 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return (val == true) + return val == true @specify_percentage.setter def specify_percentage(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Specify Percentage={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Specify Percentage={value}"]) @property def percentage_of_channels(self) -> float: @@ -98,10 +98,8 @@ def percentage_of_channels(self) -> float: return float(val) @percentage_of_channels.setter - def percentage_of_channels(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Percentage of Channels={value}"]) + def percentage_of_channels(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percentage of Channels={value}"]) @property def max__channelsrangeband(self) -> int: @@ -115,9 +113,9 @@ def max__channelsrangeband(self) -> int: @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max # Channels/Range/Band={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Max # Channels/Range/Band={value}"] + ) @property def seed(self) -> int: @@ -131,9 +129,7 @@ def seed(self) -> int: @seed.setter def seed(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Seed={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Seed={value}"]) @property def total_tx_channels(self) -> int: @@ -141,7 +137,7 @@ def total_tx_channels(self) -> int: Total number of transmit channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Tx Channels") return int(val) @@ -151,7 +147,7 @@ def total_rx_channels(self) -> int: Total number of receive channels this configuration is capable of operating on - """ + """ val = self._get_property("Total Rx Channels") return int(val) @@ -160,7 +156,6 @@ def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py index 74913b8899c..ac6fdaf6c9f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class SceneGroupNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -59,13 +63,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return val == true @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -79,9 +83,7 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -95,9 +97,7 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -108,16 +108,14 @@ def orientation_mode(self) -> OrientationModeOption: """Orientation Mode Select the convention (order of rotations) for configuring orientation - """ + """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] return val @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -131,9 +129,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -147,9 +143,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def show_axes(self) -> bool: @@ -159,13 +153,11 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return val == true @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def box_color(self): @@ -179,22 +171,17 @@ def box_color(self): @box_color.setter def box_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Box Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Box Color={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py index 8c373b3f3e3..2ecbd8ba9aa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class SelectivityTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,15 +56,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -70,13 +72,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -86,28 +86,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -122,16 +118,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -145,9 +139,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -161,9 +153,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -187,16 +177,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -210,9 +198,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -226,9 +212,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -242,9 +226,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -255,11 +237,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py index 959b5cfb018..8553e1f5f7d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class SolutionCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,13 +45,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -58,13 +59,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -74,26 +73,21 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py index 0ce64982dff..0a1142dc3d7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class SolutionsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -42,11 +45,8 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py index c96f69042b4..f28ef3e2373 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class SpurTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -51,15 +55,13 @@ def channel_frequency(self): """Channel Frequency Select band channel frequency to display - """ + """ val = self._get_property("Channel Frequency") return val @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: @@ -67,7 +69,7 @@ def transmit_frequency(self) -> float: The actual transmit frequency (i.e., the Channel Frequency plus the Tx Offset) - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -78,15 +80,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -96,13 +96,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -112,28 +110,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -148,16 +142,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -171,9 +163,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -187,9 +177,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -213,16 +201,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -236,9 +222,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -252,9 +236,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -268,9 +250,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -281,11 +261,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/terminator.py index 857bf484b3c..d4e1ab1d167 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/terminator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Terminator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,9 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,25 +70,21 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -98,16 +96,14 @@ def type(self) -> TypeOption: Type of terminator model to use. Options include: By File (measured or simulated) or Parametric - """ + """ val = self._get_property("Type") val = self.TypeOption[val.upper()] return val @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class PortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -118,16 +114,14 @@ def port_location(self) -> PortLocationOption: """Port Location Defines the orientation of the terminator. - """ + """ val = self._get_property("Port Location") val = self.PortLocationOption[val.upper()] return val @port_location.setter def port_location(self, value: PortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port Location={value.value}"]) @property def vswr(self) -> float: @@ -142,17 +136,14 @@ def vswr(self) -> float: return float(val) @vswr.setter - def vswr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"VSWR={value}"]) + def vswr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) @property def warnings(self) -> str: """Warnings Warning(s) for this node - """ + """ val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py index 2ba6ea7fb3a..ddf4699a654 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TestNoiseTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,9 +62,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -74,9 +76,7 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -84,15 +84,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -102,13 +100,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -118,28 +114,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -154,16 +146,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -177,9 +167,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -193,9 +181,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -219,16 +205,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -242,9 +226,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -258,9 +240,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -274,9 +254,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -287,13 +265,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -307,11 +283,9 @@ def frequency_1(self) -> float: return float(val) @frequency_1.setter - def frequency_1(self, value : float|str): + def frequency_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -325,11 +299,9 @@ def amplitude_1(self) -> float: return float(val) @amplitude_1.setter - def amplitude_1(self, value : float|str): + def amplitude_1(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -343,11 +315,9 @@ def bandwidth_1(self) -> float: return float(val) @bandwidth_1.setter - def bandwidth_1(self, value : float|str): + def bandwidth_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -361,11 +331,9 @@ def frequency_2(self) -> float: return float(val) @frequency_2.setter - def frequency_2(self, value : float|str): + def frequency_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -379,11 +347,9 @@ def amplitude_2(self) -> float: return float(val) @amplitude_2.setter - def amplitude_2(self, value : float|str): + def amplitude_2(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -397,11 +363,9 @@ def bandwidth_2(self) -> float: return float(val) @bandwidth_2.setter - def bandwidth_2(self, value : float|str): + def bandwidth_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -414,8 +378,5 @@ def noise_level(self) -> float: return float(val) @noise_level.setter - def noise_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Level={value}"]) - + def noise_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py index 3dc7c0a53b1..e54ab2654f2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py @@ -1,30 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TopLevelSimulation(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False EmitNode.__init__(self, emit_obj, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py index b16d60057e3..36fc75f89f7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TouchstoneCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -53,13 +56,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -69,13 +70,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -85,28 +84,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def filename(self) -> str: @@ -120,16 +115,14 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def savant_matched_coupling_file(self) -> str: """Savant Matched Coupling File Coupling data generated by Savant and exported as a matched file - """ + """ val = self._get_property("Savant Matched Coupling File") return val @@ -141,13 +134,11 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return (val == true) + return val == true @enable_em_isolation.setter def enable_em_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable EM Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable EM Isolation={value}"]) @property def port_antenna_assignment(self): @@ -155,28 +146,23 @@ def port_antenna_assignment(self): Maps each port in the coupling file to an antenna in the project "A list of values." - """ + """ val = self._get_property("Port-Antenna Assignment") return val @port_antenna_assignment.setter def port_antenna_assignment(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port-Antenna Assignment={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port-Antenna Assignment={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch.py index c68a43a9258..e5eb106983d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TR_Switch(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -53,9 +57,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -68,25 +70,21 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: """Notes Expand to view/edit notes stored with the project - """ + """ val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TxPortOption(Enum): PORT_1 = "Port 1" @@ -97,16 +95,14 @@ def tx_port(self) -> TxPortOption: """Tx Port Specifies which port on the TR Switch is part of the Tx path. - """ + """ val = self._get_property("Tx Port") val = self.TxPortOption[val.upper()] return val @tx_port.setter def tx_port(self, value: TxPortOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Port={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Port={value.value}"]) class CommonPortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -117,16 +113,16 @@ def common_port_location(self) -> CommonPortLocationOption: """Common Port Location Defines the orientation of the tr switch. - """ + """ val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val.upper()] return val @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Common Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Common Port Location={value.value}"] + ) @property def insertion_loss(self) -> float: @@ -139,10 +135,8 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_isolation(self) -> bool: @@ -153,13 +147,11 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return (val == true) + return val == true @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -172,10 +164,8 @@ def isolation(self) -> float: return float(val) @isolation.setter - def isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Isolation={value}"]) + def isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -186,13 +176,11 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -205,10 +193,8 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -222,11 +208,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -240,11 +224,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -258,11 +240,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -276,9 +256,6 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py index 0d5be899d86..f2b9ac91d4b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TRSwitchTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,9 +62,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -74,9 +76,7 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -84,15 +84,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -102,13 +100,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -118,28 +114,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -154,16 +146,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -177,9 +167,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -193,9 +181,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -219,16 +205,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -242,9 +226,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -258,9 +240,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -274,9 +254,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -287,11 +265,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py index 0b2d40f13a1..9c2bcce1a83 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TunableTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,9 +62,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -74,26 +76,22 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def frequency(self) -> float: """Frequency Tunable filter center frequency - """ + """ val = self._get_property("Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @frequency.setter - def frequency(self, value : float|str): + def frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency={value}"]) @property def data_source(self): @@ -101,15 +99,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -119,13 +115,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -135,28 +129,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -171,16 +161,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -194,9 +182,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -210,9 +196,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -236,16 +220,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -259,9 +241,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -275,9 +255,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -291,9 +269,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -304,11 +280,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py index a7a6a17f37e..c1bbc47eeec 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: """Antenna A First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: """Antenna B Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def ground_reflection_coeff(self) -> float: @@ -150,10 +142,8 @@ def ground_reflection_coeff(self) -> float: return float(val) @ground_reflection_coeff.setter - def ground_reflection_coeff(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ground Reflection Coeff.={value}"]) + def ground_reflection_coeff(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ground Reflection Coeff.={value}"]) @property def pointspeak(self) -> int: @@ -167,9 +157,7 @@ def pointspeak(self) -> int: @pointspeak.setter def pointspeak(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Points/Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Points/Peak={value}"]) @property def custom_fading_margin(self) -> float: @@ -183,10 +171,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -200,10 +186,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -217,10 +201,8 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -233,16 +215,14 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -256,10 +236,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -272,10 +250,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -285,13 +261,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -305,10 +279,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -321,10 +293,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -338,10 +308,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -352,13 +320,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -371,10 +339,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -387,10 +353,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -403,8 +367,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py index 363be46e6ab..38ce5bb542b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TwoToneTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,9 +62,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -74,9 +76,7 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -84,15 +84,13 @@ def data_source(self): Identifies tree node serving as data source for plot trace, click link to find it - """ + """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -102,13 +100,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -118,28 +114,24 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: """Name Enter name of plot trace as it will appear in legend - """ + """ val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -154,16 +146,14 @@ def style(self) -> StyleOption: """Style Specify line style of plot trace - """ + """ val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -177,9 +167,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -193,9 +181,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -219,16 +205,14 @@ def symbol(self) -> SymbolOption: """Symbol Select symbol to mark points along plot trace - """ + """ val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -242,9 +226,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -258,9 +240,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -274,9 +254,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -287,13 +265,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -307,11 +283,9 @@ def frequency_1(self) -> float: return float(val) @frequency_1.setter - def frequency_1(self, value : float|str): + def frequency_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -325,11 +299,9 @@ def amplitude_1(self) -> float: return float(val) @amplitude_1.setter - def amplitude_1(self, value : float|str): + def amplitude_1(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -343,11 +315,9 @@ def bandwidth_1(self) -> float: return float(val) @bandwidth_1.setter - def bandwidth_1(self, value : float|str): + def bandwidth_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -361,11 +331,9 @@ def frequency_2(self) -> float: return float(val) @frequency_2.setter - def frequency_2(self, value : float|str): + def frequency_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -379,11 +347,9 @@ def amplitude_2(self) -> float: return float(val) @amplitude_2.setter - def amplitude_2(self, value : float|str): + def amplitude_2(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -397,11 +363,9 @@ def bandwidth_2(self) -> float: return float(val) @bandwidth_2.setter - def bandwidth_2(self, value : float|str): + def bandwidth_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -414,8 +378,5 @@ def noise_level(self) -> float: return float(val) @noise_level.setter - def noise_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Level={value}"]) - + def noise_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py index 7b10b0d446e..986abbfbb87 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxBbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -46,9 +50,9 @@ def delete(self): def table_data(self): """Tx Broadband Noise Profile Table" "Table consists of 2 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Amplitude (dBm/Hz): + "Amplitude (dBm/Hz): Value should be between -200 and 150. """ return self._get_table_data() @@ -60,7 +64,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -77,16 +81,14 @@ def noise_behavior(self) -> NoiseBehaviorOption: """Noise Behavior Specifies the behavior of the parametric noise profile - """ + """ val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val.upper()] return val @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Behavior={value.value}"]) @property def use_log_linear_interpolation(self) -> bool: @@ -97,11 +99,10 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return (val == true) + return val == true @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Log-Linear Interpolation={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py index 052dcf7f40e..5b0f94761b9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxHarmonicNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -45,7 +49,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -60,14 +64,13 @@ def harmonic_table_units(self) -> HarmonicTableUnitsOption: """Harmonic Table Units Specifies the units for the Harmonics - """ + """ val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val.upper()] return val @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py index 5b7b3dee748..21e1fc9cb59 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -66,7 +69,7 @@ def transmit_frequency(self) -> float: """Transmit Frequency Channel associated with the measurement file - """ + """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -79,13 +82,11 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return (val == true) + return val == true @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -99,11 +100,9 @@ def start_frequency(self) -> float: return float(val) @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -117,11 +116,9 @@ def stop_frequency(self) -> float: return float(val) @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def exclude_harmonics_below_noise(self) -> bool: @@ -131,20 +128,19 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return (val == true) + return val == true @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Exclude Harmonics Below Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py index 622b8f95a8c..347faed5fbd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxNbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -45,7 +49,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -60,31 +64,28 @@ def narrowband_behavior(self) -> NarrowbandBehaviorOption: """Narrowband Behavior Specifies the behavior of the parametric narrowband emissions mask - """ + """ val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val.upper()] return val @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Narrowband Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"] + ) @property def measurement_frequency(self) -> float: """Measurement Frequency Measurement frequency for the absolute freq/amp pairs. - """ + """ val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @measurement_frequency.setter - def measurement_frequency(self, value : float|str): + def measurement_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Frequency={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Frequency={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py index 32cfcb3cd42..8a8426ae9cb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxSpectralProfEmitterNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +39,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -47,17 +50,15 @@ def output_voltage_peak(self) -> float: """Output Voltage Peak Output High Voltage Level: maximum voltage of the digital signal - """ + """ val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") return float(val) @output_voltage_peak.setter - def output_voltage_peak(self, value : float|str): + def output_voltage_peak(self, value: float | str): value = self._convert_to_internal_units(value, "Voltage") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Voltage Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Voltage Peak={value}"]) @property def include_phase_noise(self) -> bool: @@ -67,13 +68,11 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return (val == true) + return val == true @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -86,10 +85,8 @@ def tx_broadband_noise(self) -> float: return float(val) @tx_broadband_noise.setter - def tx_broadband_noise(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -99,13 +96,13 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return (val == true) + return val == true @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Tx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] + ) @property def internal_amp_gain(self) -> float: @@ -118,10 +115,8 @@ def internal_amp_gain(self) -> float: return float(val) @internal_amp_gain.setter - def internal_amp_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -134,10 +129,8 @@ def noise_figure(self) -> float: return float(val) @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -151,15 +144,15 @@ def amplifier_saturation_level(self) -> float: return float(val) @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -170,11 +163,9 @@ def p1_db_point_ref_input_(self) -> float: return float(val) @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -188,11 +179,9 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -205,10 +194,8 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -222,7 +209,4 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py index b93cfd62910..7489fedbb53 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxSpectralProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -52,16 +56,14 @@ def spectrum_type(self) -> SpectrumTypeOption: """Spectrum Type Specifies EMI Margins to calculate - """ + """ val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val.upper()] return val @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spectrum Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spectrum Type={value.value}"]) class TxPowerOption(Enum): PEAK_POWER = "Peak Power" @@ -72,16 +74,14 @@ def tx_power(self) -> TxPowerOption: """Tx Power Method used to specify the power - """ + """ val = self._get_property("Tx Power") val = self.TxPowerOption[val.upper()] return val @tx_power.setter def tx_power(self, value: TxPowerOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Power={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Power={value.value}"]) @property def peak_power(self) -> float: @@ -95,11 +95,9 @@ def peak_power(self) -> float: return float(val) @peak_power.setter - def peak_power(self, value : float|str): + def peak_power(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Peak Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Power={value}"]) @property def average_power(self) -> float: @@ -113,11 +111,9 @@ def average_power(self) -> float: return float(val) @average_power.setter - def average_power(self, value : float|str): + def average_power(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Average Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Average Power={value}"]) @property def include_phase_noise(self) -> bool: @@ -127,13 +123,11 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return (val == true) + return val == true @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -146,10 +140,8 @@ def tx_broadband_noise(self) -> float: return float(val) @tx_broadband_noise.setter - def tx_broadband_noise(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) class HarmonicTaperOption(Enum): CONSTANT = "Constant" @@ -162,16 +154,14 @@ def harmonic_taper(self) -> HarmonicTaperOption: """Harmonic Taper Taper type used to set amplitude of harmonics - """ + """ val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val.upper()] return val @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Taper={value.value}"]) @property def harmonic_amplitude(self) -> float: @@ -184,10 +174,8 @@ def harmonic_amplitude(self) -> float: return float(val) @harmonic_amplitude.setter - def harmonic_amplitude(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Amplitude={value}"]) + def harmonic_amplitude(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Amplitude={value}"]) @property def harmonic_slope(self) -> float: @@ -200,10 +188,8 @@ def harmonic_slope(self) -> float: return float(val) @harmonic_slope.setter - def harmonic_slope(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Slope={value}"]) + def harmonic_slope(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Slope={value}"]) @property def harmonic_intercept(self) -> float: @@ -216,10 +202,8 @@ def harmonic_intercept(self) -> float: return float(val) @harmonic_intercept.setter - def harmonic_intercept(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Intercept={value}"]) + def harmonic_intercept(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Intercept={value}"]) @property def enable_harmonic_bw_expansion(self) -> bool: @@ -230,13 +214,13 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return (val == true) + return val == true @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Harmonic BW Expansion={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Enable Harmonic BW Expansion={value}"] + ) @property def number_of_harmonics(self) -> int: @@ -250,9 +234,7 @@ def number_of_harmonics(self) -> int: @number_of_harmonics.setter def number_of_harmonics(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Harmonics={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Harmonics={value}"]) @property def second_harmonic_level(self) -> float: @@ -265,10 +247,8 @@ def second_harmonic_level(self) -> float: return float(val) @second_harmonic_level.setter - def second_harmonic_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Second Harmonic Level={value}"]) + def second_harmonic_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Second Harmonic Level={value}"]) @property def third_harmonic_level(self) -> float: @@ -281,10 +261,8 @@ def third_harmonic_level(self) -> float: return float(val) @third_harmonic_level.setter - def third_harmonic_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Third Harmonic Level={value}"]) + def third_harmonic_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Third Harmonic Level={value}"]) @property def other_harmonic_levels(self) -> float: @@ -297,10 +275,8 @@ def other_harmonic_levels(self) -> float: return float(val) @other_harmonic_levels.setter - def other_harmonic_levels(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Other Harmonic Levels={value}"]) + def other_harmonic_levels(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Other Harmonic Levels={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -310,13 +286,13 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return (val == true) + return val == true @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Tx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] + ) @property def internal_amp_gain(self) -> float: @@ -329,10 +305,8 @@ def internal_amp_gain(self) -> float: return float(val) @internal_amp_gain.setter - def internal_amp_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -345,10 +319,8 @@ def noise_figure(self) -> float: return float(val) @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -362,15 +334,15 @@ def amplifier_saturation_level(self) -> float: return float(val) @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + """P1-dB Point, Ref. Input Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB saturates the internal Tx amplifier @@ -381,11 +353,9 @@ def p1_db_point_ref_input_(self) -> float: return float(val) @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value : float|str): + def p1_db_point_ref_input_(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -399,11 +369,9 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -416,10 +384,8 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -433,7 +399,4 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py index 695ad89c353..ccf54f44181 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,13 +48,13 @@ def delete(self): @property def table_data(self): - """ Table" + """Table" "Table consists of 3 columns." - "Frequency (MHz): + "Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: + "Bandwidth: Value should be greater than 1. - "Power: + "Power: Value should be between -200 and 150. """ return self._get_table_data() @@ -62,7 +66,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -77,14 +81,11 @@ def spur_table_units(self) -> SpurTableUnitsOption: """Spur Table Units Specifies the units for the Spurs - """ + """ val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spur Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py index 1efe52b8870..ac333cf11ba 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class WalfischCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,43 +58,37 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: """Base Antenna First antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: """Mobile Antenna Second antenna of the pair to apply the coupling values to - """ + """ val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -100,13 +98,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -116,28 +112,24 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): """Refinement Domain Points to use when refining the frequency domain. - """ + """ val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class PathLossTypeOption(Enum): LOS_URBAN_CANYON = "LOS (Urban Canyon)" @@ -148,16 +140,14 @@ def path_loss_type(self) -> PathLossTypeOption: """Path Loss Type Specify LOS vs NLOS for the Walfisch-Ikegami model - """ + """ val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val.upper()] return val @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Path Loss Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Type={value.value}"]) class EnvironmentOption(Enum): DENSE_METRO = "Dense Metro" @@ -168,16 +158,14 @@ def environment(self) -> EnvironmentOption: """Environment Specify the environment type for the Walfisch model - """ + """ val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def roof_height(self) -> float: @@ -191,11 +179,9 @@ def roof_height(self) -> float: return float(val) @roof_height.setter - def roof_height(self, value : float|str): + def roof_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Roof Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Roof Height={value}"]) @property def distance_between_buildings(self) -> float: @@ -209,11 +195,11 @@ def distance_between_buildings(self) -> float: return float(val) @distance_between_buildings.setter - def distance_between_buildings(self, value : float|str): + def distance_between_buildings(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Distance Between Buildings={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Distance Between Buildings={value}"] + ) @property def street_width(self) -> float: @@ -227,11 +213,9 @@ def street_width(self) -> float: return float(val) @street_width.setter - def street_width(self, value : float|str): + def street_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Street Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Street Width={value}"]) @property def incidence_angle(self) -> float: @@ -244,10 +228,8 @@ def incidence_angle(self) -> float: return float(val) @incidence_angle.setter - def incidence_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Incidence Angle={value}"]) + def incidence_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Incidence Angle={value}"]) @property def custom_fading_margin(self) -> float: @@ -261,10 +243,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -278,10 +258,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -295,10 +273,8 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -311,16 +287,14 @@ def fading_type(self) -> FadingTypeOption: """Fading Type Specify the type of fading to include - """ + """ val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -334,10 +308,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -350,10 +322,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -363,13 +333,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -383,10 +351,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -399,10 +365,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -416,10 +380,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -430,13 +392,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -449,10 +411,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -465,10 +425,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -481,8 +439,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/waveform.py index e763d28e2fc..49c8c97666f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/waveform.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Waveform(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -48,15 +52,13 @@ def port(self): """Port Radio Port associated with this Band - """ + """ val = self._get_property("Port") return val @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" @@ -70,16 +72,14 @@ def waveform(self) -> WaveformOption: """Waveform Modulation used for the transmitted/received signal - """ + """ val = self._get_property("Waveform") val = self.WaveformOption[val.upper()] return val @waveform.setter def waveform(self, value: WaveformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Waveform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveform={value.value}"]) @property def start_frequency(self) -> float: @@ -93,11 +93,9 @@ def start_frequency(self) -> float: return float(val) @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -111,11 +109,9 @@ def stop_frequency(self) -> float: return float(val) @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -129,11 +125,9 @@ def channel_spacing(self) -> float: return float(val) @channel_spacing.setter - def channel_spacing(self, value : float|str): + def channel_spacing(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) @property def clock_duty_cycle(self) -> float: @@ -146,10 +140,8 @@ def clock_duty_cycle(self) -> float: return float(val) @clock_duty_cycle.setter - def clock_duty_cycle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Clock Duty Cycle={value}"]) + def clock_duty_cycle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Duty Cycle={value}"]) @property def clock_risefall_time(self) -> float: @@ -163,11 +155,9 @@ def clock_risefall_time(self) -> float: return float(val) @clock_risefall_time.setter - def clock_risefall_time(self, value : float|str): + def clock_risefall_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Clock Rise/Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Rise/Fall Time={value}"]) class SpreadingTypeOption(Enum): LOW_SPREAD = "Low Spread" @@ -179,16 +169,14 @@ def spreading_type(self) -> SpreadingTypeOption: """Spreading Type Type of spreading employed by the Spread Spectrum Clock - """ + """ val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val.upper()] return val @spreading_type.setter def spreading_type(self, value: SpreadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spreading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spreading Type={value.value}"]) @property def spread_percentage(self) -> float: @@ -201,10 +189,8 @@ def spread_percentage(self) -> float: return float(val) @spread_percentage.setter - def spread_percentage(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spread Percentage={value}"]) + def spread_percentage(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spread Percentage={value}"]) @property def imported_spectrum(self) -> str: @@ -216,16 +202,14 @@ def imported_spectrum(self) -> str: @imported_spectrum.setter def imported_spectrum(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Imported Spectrum={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Imported Spectrum={value}"]) @property def raw_data_format(self) -> str: """Raw Data Format Format of the imported raw data - """ + """ val = self._get_property("Raw Data Format") return val @@ -241,11 +225,9 @@ def system_impedance(self) -> float: return float(val) @system_impedance.setter - def system_impedance(self, value : float|str): + def system_impedance(self, value: float | str): value = self._convert_to_internal_units(value, "Resistance") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"System Impedance={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"System Impedance={value}"]) @property def advanced_extraction_params(self) -> bool: @@ -255,13 +237,13 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return (val == true) + return val == true @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Advanced Extraction Params={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Advanced Extraction Params={value}"] + ) @property def nb_window_size(self) -> float: @@ -275,10 +257,8 @@ def nb_window_size(self) -> float: return float(val) @nb_window_size.setter - def nb_window_size(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NB Window Size={value}"]) + def nb_window_size(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Window Size={value}"]) @property def bb_smoothing_factor(self) -> float: @@ -291,10 +271,8 @@ def bb_smoothing_factor(self) -> float: return float(val) @bb_smoothing_factor.setter - def bb_smoothing_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Smoothing Factor={value}"]) + def bb_smoothing_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Smoothing Factor={value}"]) @property def nb_detector_threshold(self) -> float: @@ -307,10 +285,8 @@ def nb_detector_threshold(self) -> float: return float(val) @nb_detector_threshold.setter - def nb_detector_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NB Detector Threshold={value}"]) + def nb_detector_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Detector Threshold={value}"]) class AlgorithmOption(Enum): FFT = "FFT" @@ -321,16 +297,14 @@ def algorithm(self) -> AlgorithmOption: """Algorithm Algorithm used to transform the imported time domain spectrum - """ + """ val = self._get_property("Algorithm") val = self.AlgorithmOption[val.upper()] return val @algorithm.setter def algorithm(self, value: AlgorithmOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Algorithm={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Algorithm={value.value}"]) @property def start_time(self) -> float: @@ -344,28 +318,24 @@ def start_time(self) -> float: return float(val) @start_time.setter - def start_time(self, value : float|str): + def start_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Time={value}"]) @property def stop_time(self) -> float: """Stop Time Final time of the imported time domain spectrum - """ + """ val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") return float(val) @stop_time.setter - def stop_time(self, value : float|str): + def stop_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Time={value}"]) @property def max_frequency(self) -> float: @@ -379,11 +349,9 @@ def max_frequency(self) -> float: return float(val) @max_frequency.setter - def max_frequency(self, value : float|str): + def max_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Frequency={value}"]) class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" @@ -401,16 +369,14 @@ def window_type(self) -> WindowTypeOption: """Window Type Windowing scheme used for importing time domain spectrum - """ + """ val = self._get_property("Window Type") val = self.WindowTypeOption[val.upper()] return val @window_type.setter def window_type(self, value: WindowTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Window Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Window Type={value.value}"]) @property def kaiser_parameter(self) -> float: @@ -423,10 +389,8 @@ def kaiser_parameter(self) -> float: return float(val) @kaiser_parameter.setter - def kaiser_parameter(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Kaiser Parameter={value}"]) + def kaiser_parameter(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Kaiser Parameter={value}"]) @property def adjust_coherent_gain(self) -> bool: @@ -436,13 +400,11 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return (val == true) + return val == true @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adjust Coherent Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adjust Coherent Gain={value}"]) @property def data_rate(self) -> float: @@ -456,11 +418,9 @@ def data_rate(self) -> float: return float(val) @data_rate.setter - def data_rate(self, value : float|str): + def data_rate(self, value: float | str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Rate={value}"]) @property def num_of_bits(self) -> int: @@ -474,9 +434,7 @@ def num_of_bits(self) -> int: @num_of_bits.setter def num_of_bits(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Num of Bits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Num of Bits={value}"]) @property def use_envelope(self) -> bool: @@ -486,13 +444,11 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return (val == true) + return val == true @use_envelope.setter def use_envelope(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Envelope={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Envelope={value}"]) @property def min_ptsnull(self) -> int: @@ -506,9 +462,7 @@ def min_ptsnull(self) -> int: @min_ptsnull.setter def min_ptsnull(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pts/Null={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pts/Null={value}"]) @property def delay_skew(self) -> float: @@ -522,9 +476,6 @@ def delay_skew(self) -> float: return float(val) @delay_skew.setter - def delay_skew(self, value : float|str): + def delay_skew(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Delay Skew={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Delay Skew={value}"]) From dcb38aa38d1420bf4efebd560629e0c423d09ef4 Mon Sep 17 00:00:00 2001 From: Bryan Kaylor <104848398+bryankaylor@users.noreply.github.com> Date: Wed, 21 May 2025 17:02:24 -0500 Subject: [PATCH 75/86] Update src/ansys/aedt/core/emit_core/emit_constants.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sébastien Morais <146729917+SMoraisAnsys@users.noreply.github.com> --- src/ansys/aedt/core/emit_core/emit_constants.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/emit_constants.py b/src/ansys/aedt/core/emit_core/emit_constants.py index 0330d9538cc..0c978253070 100644 --- a/src/ansys/aedt/core/emit_core/emit_constants.py +++ b/src/ansys/aedt/core/emit_core/emit_constants.py @@ -157,6 +157,8 @@ def data_rate_conv(value: float, units: str, to_internal: bool = True): Returns: value: data rate converted to/from the internal units """ + if units not in ("bps", "kbps", "Mbps", "Gbps"): + raise ValueError(f"{units} are not valid units for data rate.") if to_internal: if units == "bps": mult = 1.0 @@ -166,8 +168,6 @@ def data_rate_conv(value: float, units: str, to_internal: bool = True): mult = 1e-6 elif units == "Gbps": mult = 1e-9 - else: - raise ValueError(f"{units} are not valid units for data rate.") else: if units == "bps": mult = 1.0 @@ -177,8 +177,6 @@ def data_rate_conv(value: float, units: str, to_internal: bool = True): mult = 1e6 elif units == "Gbps": mult = 1e9 - else: - raise ValueError(f"{units} are not valid units for data rate.") return value * mult From a30cbbb6729c00bad12f77679dbd3d1c7c2a392b Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Fri, 30 May 2025 14:11:39 -0500 Subject: [PATCH 76/86] Fix all docstrings in generated EMIT classes --- .../emit_core/nodes/generated/__init__.py | 318 +++++----- .../emit_core/nodes/generated/amplifier.py | 143 +++-- .../emit_core/nodes/generated/antenna_node.py | 580 +++++++++--------- .../nodes/generated/antenna_passband.py | 89 +-- .../core/emit_core/nodes/generated/band.py | 389 ++++++------ .../emit_core/nodes/generated/band_folder.py | 16 +- .../nodes/generated/band_trace_node.py | 142 ++--- .../core/emit_core/nodes/generated/cable.py | 102 +-- .../emit_core/nodes/generated/cad_node.py | 390 ++++++------ .../nodes/generated/categories_view_node.py | 16 +- .../emit_core/nodes/generated/circulator.py | 159 ++--- .../nodes/generated/coupling_link_node.py | 35 +- .../nodes/generated/coupling_trace_node.py | 192 +++--- .../nodes/generated/couplings_node.py | 43 +- .../nodes/generated/custom_coupling_node.py | 84 ++- .../nodes/generated/emi_plot_marker_node.py | 209 ++++--- .../nodes/generated/emit_scene_node.py | 49 +- .../nodes/generated/erceg_coupling_node.py | 238 +++---- .../core/emit_core/nodes/generated/filter.py | 271 ++++---- .../nodes/generated/five_g_channel_model.py | 265 ++++---- .../nodes/generated/hata_coupling_node.py | 238 +++---- .../indoor_propagation_coupling_node.py | 261 ++++---- .../emit_core/nodes/generated/isolator.py | 159 ++--- .../generated/log_distance_coupling_node.py | 249 ++++---- .../nodes/generated/mplex_band_trace_node.py | 124 ++-- .../emit_core/nodes/generated/multiplexer.py | 87 ++- .../nodes/generated/multiplexer_band.py | 147 ++--- .../nodes/generated/outboard_trace_node.py | 132 ++-- .../parametric_coupling_trace_node.py | 130 ++-- .../nodes/generated/plot_marker_node.py | 222 +++---- .../emit_core/nodes/generated/plot_node.py | 280 +++++---- .../nodes/generated/power_divider.py | 163 ++--- .../nodes/generated/power_trace_node.py | 126 ++-- .../nodes/generated/profile_trace_node.py | 118 ++-- .../propagation_loss_coupling_node.py | 229 +++---- .../emit_core/nodes/generated/radio_node.py | 35 +- .../nodes/generated/read_only_amplifier.py | 67 +- .../nodes/generated/read_only_antenna_node.py | 324 ++++------ .../generated/read_only_antenna_passband.py | 47 +- .../nodes/generated/read_only_band.py | 199 +++--- .../nodes/generated/read_only_band_folder.py | 16 +- .../nodes/generated/read_only_cable.py | 54 +- .../nodes/generated/read_only_cad_node.py | 210 +++---- .../nodes/generated/read_only_circulator.py | 87 +-- .../generated/read_only_coupling_link_node.py | 27 +- .../generated/read_only_couplings_node.py | 29 +- .../read_only_custom_coupling_node.py | 58 +- .../generated/read_only_emit_scene_node.py | 33 +- .../read_only_erceg_coupling_node.py | 128 ++-- .../nodes/generated/read_only_filter.py | 133 ++-- .../read_only_five_g_channel_model.py | 143 ++--- .../generated/read_only_hata_coupling_node.py | 128 ++-- ...d_only_indoor_propagation_coupling_node.py | 147 ++--- .../nodes/generated/read_only_isolator.py | 87 +-- .../read_only_log_distance_coupling_node.py | 133 ++-- .../nodes/generated/read_only_multiplexer.py | 57 +- .../generated/read_only_multiplexer_band.py | 79 +-- .../generated/read_only_power_divider.py | 89 ++- ...ead_only_propagation_loss_coupling_node.py | 123 ++-- .../nodes/generated/read_only_radio_node.py | 31 +- .../nodes/generated/read_only_rx_meas_node.py | 105 ++-- .../read_only_rx_mixer_product_node.py | 83 +-- .../generated/read_only_rx_saturation_node.py | 16 +- .../read_only_rx_selectivity_node.py | 23 +- .../nodes/generated/read_only_rx_spur_node.py | 36 +- .../read_only_rx_susceptibility_prof_node.py | 87 ++- .../generated/read_only_sampling_node.py | 67 +- .../generated/read_only_scene_group_node.py | 59 +- .../read_only_solution_coupling_node.py | 38 +- .../generated/read_only_solutions_node.py | 23 +- .../nodes/generated/read_only_terminator.py | 53 +- .../read_only_touchstone_coupling_node.py | 60 +- .../nodes/generated/read_only_tr_switch.py | 81 +-- ...ad_only_two_ray_path_loss_coupling_node.py | 131 ++-- .../read_only_tx_bb_emission_node.py | 39 +- .../generated/read_only_tx_harmonic_node.py | 22 +- .../nodes/generated/read_only_tx_meas_node.py | 47 +- .../read_only_tx_nb_emission_node.py | 27 +- ...read_only_tx_spectral_prof_emitter_node.py | 59 +- .../read_only_tx_spectral_prof_node.py | 106 ++-- .../nodes/generated/read_only_tx_spur_node.py | 36 +- .../read_only_walfisch_coupling_node.py | 145 ++--- .../nodes/generated/read_only_waveform.py | 146 ++--- .../nodes/generated/result_plot_node.py | 289 +++++---- .../emit_core/nodes/generated/rx_meas_node.py | 201 +++--- .../nodes/generated/rx_mixer_product_node.py | 179 +++--- .../nodes/generated/rx_saturation_node.py | 20 +- .../nodes/generated/rx_selectivity_node.py | 31 +- .../emit_core/nodes/generated/rx_spur_node.py | 44 +- .../generated/rx_susceptibility_prof_node.py | 181 +++--- .../nodes/generated/sampling_node.py | 91 ++- .../nodes/generated/scene_group_node.py | 97 +-- .../nodes/generated/selectivity_trace_node.py | 118 ++-- .../nodes/generated/solution_coupling_node.py | 54 +- .../nodes/generated/solutions_node.py | 27 +- .../nodes/generated/spur_trace_node.py | 133 ++-- .../emit_core/nodes/generated/terminator.py | 81 ++- .../nodes/generated/test_noise_trace_node.py | 199 +++--- .../nodes/generated/top_level_simulation.py | 16 +- .../generated/touchstone_coupling_node.py | 92 ++- .../emit_core/nodes/generated/tr_switch.py | 155 ++--- .../nodes/generated/tr_switch_trace_node.py | 132 ++-- .../nodes/generated/tunable_trace_node.py | 143 +++-- .../two_ray_path_loss_coupling_node.py | 247 ++++---- .../nodes/generated/two_tone_trace_node.py | 199 +++--- .../nodes/generated/tx_bb_emission_node.py | 53 +- .../nodes/generated/tx_harmonic_node.py | 32 +- .../emit_core/nodes/generated/tx_meas_node.py | 71 +-- .../nodes/generated/tx_nb_emission_node.py | 43 +- .../tx_spectral_prof_emitter_node.py | 127 ++-- .../nodes/generated/tx_spectral_prof_node.py | 238 +++---- .../emit_core/nodes/generated/tx_spur_node.py | 44 +- .../nodes/generated/walfisch_coupling_node.py | 285 +++++---- .../emit_core/nodes/generated/waveform.py | 290 ++++----- 114 files changed, 6952 insertions(+), 7308 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index 1cb32f85690..255b60e62e6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,35 +1,11 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-License-Identifier: MIT -# -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - from .amplifier import Amplifier from .antenna_node import AntennaNode from .antenna_passband import AntennaPassband from .band import Band from .band_folder import BandFolder from .band_trace_node import BandTraceNode -from .cable import Cable from .cad_node import CADNode +from .cable import Cable from .categories_view_node import CategoriesViewNode from .circulator import Circulator from .coupling_link_node import CouplingLinkNode @@ -57,13 +33,44 @@ from .profile_trace_node import ProfileTraceNode from .propagation_loss_coupling_node import PropagationLossCouplingNode from .radio_node import RadioNode +from .result_plot_node import ResultPlotNode +from .rx_meas_node import RxMeasNode +from .rx_mixer_product_node import RxMixerProductNode +from .rx_saturation_node import RxSaturationNode +from .rx_selectivity_node import RxSelectivityNode +from .rx_spur_node import RxSpurNode +from .rx_susceptibility_prof_node import RxSusceptibilityProfNode +from .sampling_node import SamplingNode +from .scene_group_node import SceneGroupNode +from .selectivity_trace_node import SelectivityTraceNode +from .solution_coupling_node import SolutionCouplingNode +from .solutions_node import SolutionsNode +from .spur_trace_node import SpurTraceNode +from .tr_switch import TR_Switch +from .tr_switch_trace_node import TRSwitchTraceNode +from .terminator import Terminator +from .test_noise_trace_node import TestNoiseTraceNode +from .top_level_simulation import TopLevelSimulation +from .touchstone_coupling_node import TouchstoneCouplingNode +from .tunable_trace_node import TunableTraceNode +from .two_ray_path_loss_coupling_node import TwoRayPathLossCouplingNode +from .two_tone_trace_node import TwoToneTraceNode +from .tx_bb_emission_node import TxBbEmissionNode +from .tx_harmonic_node import TxHarmonicNode +from .tx_meas_node import TxMeasNode +from .tx_nb_emission_node import TxNbEmissionNode +from .tx_spectral_prof_emitter_node import TxSpectralProfEmitterNode +from .tx_spectral_prof_node import TxSpectralProfNode +from .tx_spur_node import TxSpurNode +from .walfisch_coupling_node import WalfischCouplingNode +from .waveform import Waveform from .read_only_amplifier import ReadOnlyAmplifier from .read_only_antenna_node import ReadOnlyAntennaNode from .read_only_antenna_passband import ReadOnlyAntennaPassband from .read_only_band import ReadOnlyBand from .read_only_band_folder import ReadOnlyBandFolder -from .read_only_cable import ReadOnlyCable from .read_only_cad_node import ReadOnlyCADNode +from .read_only_cable import ReadOnlyCable from .read_only_circulator import ReadOnlyCirculator from .read_only_coupling_link_node import ReadOnlyCouplingLinkNode from .read_only_couplings_node import ReadOnlyCouplingsNode @@ -91,9 +98,9 @@ from .read_only_scene_group_node import ReadOnlySceneGroupNode from .read_only_solution_coupling_node import ReadOnlySolutionCouplingNode from .read_only_solutions_node import ReadOnlySolutionsNode +from .read_only_tr_switch import ReadOnlyTR_Switch from .read_only_terminator import ReadOnlyTerminator from .read_only_touchstone_coupling_node import ReadOnlyTouchstoneCouplingNode -from .read_only_tr_switch import ReadOnlyTR_Switch from .read_only_two_ray_path_loss_coupling_node import ReadOnlyTwoRayPathLossCouplingNode from .read_only_tx_bb_emission_node import ReadOnlyTxBbEmissionNode from .read_only_tx_harmonic_node import ReadOnlyTxHarmonicNode @@ -104,150 +111,119 @@ from .read_only_tx_spur_node import ReadOnlyTxSpurNode from .read_only_walfisch_coupling_node import ReadOnlyWalfischCouplingNode from .read_only_waveform import ReadOnlyWaveform -from .result_plot_node import ResultPlotNode -from .rx_meas_node import RxMeasNode -from .rx_mixer_product_node import RxMixerProductNode -from .rx_saturation_node import RxSaturationNode -from .rx_selectivity_node import RxSelectivityNode -from .rx_spur_node import RxSpurNode -from .rx_susceptibility_prof_node import RxSusceptibilityProfNode -from .sampling_node import SamplingNode -from .scene_group_node import SceneGroupNode -from .selectivity_trace_node import SelectivityTraceNode -from .solution_coupling_node import SolutionCouplingNode -from .solutions_node import SolutionsNode -from .spur_trace_node import SpurTraceNode -from .terminator import Terminator -from .test_noise_trace_node import TestNoiseTraceNode -from .top_level_simulation import TopLevelSimulation -from .touchstone_coupling_node import TouchstoneCouplingNode -from .tr_switch import TR_Switch -from .tr_switch_trace_node import TRSwitchTraceNode -from .tunable_trace_node import TunableTraceNode -from .two_ray_path_loss_coupling_node import TwoRayPathLossCouplingNode -from .two_tone_trace_node import TwoToneTraceNode -from .tx_bb_emission_node import TxBbEmissionNode -from .tx_harmonic_node import TxHarmonicNode -from .tx_meas_node import TxMeasNode -from .tx_nb_emission_node import TxNbEmissionNode -from .tx_spectral_prof_emitter_node import TxSpectralProfEmitterNode -from .tx_spectral_prof_node import TxSpectralProfNode -from .tx_spur_node import TxSpurNode -from .walfisch_coupling_node import WalfischCouplingNode -from .waveform import Waveform __all__ = [ - "Amplifier", - "AntennaNode", - "AntennaPassband", - "Band", - "BandFolder", - "BandTraceNode", - "CADNode", - "Cable", - "CategoriesViewNode", - "Circulator", - "CouplingLinkNode", - "CouplingTraceNode", - "CouplingsNode", - "CustomCouplingNode", - "EmiPlotMarkerNode", - "EmitSceneNode", - "ErcegCouplingNode", - "Filter", - "FiveGChannelModel", - "HataCouplingNode", - "IndoorPropagationCouplingNode", - "Isolator", - "LogDistanceCouplingNode", - "MPlexBandTraceNode", - "Multiplexer", - "MultiplexerBand", - "OutboardTraceNode", - "ParametricCouplingTraceNode", - "PlotMarkerNode", - "PlotNode", - "PowerDivider", - "PowerTraceNode", - "ProfileTraceNode", - "PropagationLossCouplingNode", - "RadioNode", - "ResultPlotNode", - "RxMeasNode", - "RxMixerProductNode", - "RxSaturationNode", - "RxSelectivityNode", - "RxSpurNode", - "RxSusceptibilityProfNode", - "SamplingNode", - "SceneGroupNode", - "SelectivityTraceNode", - "SolutionCouplingNode", - "SolutionsNode", - "SpurTraceNode", - "TR_Switch", - "TRSwitchTraceNode", - "Terminator", - "TestNoiseTraceNode", - "TopLevelSimulation", - "TouchstoneCouplingNode", - "TunableTraceNode", - "TwoRayPathLossCouplingNode", - "TwoToneTraceNode", - "TxBbEmissionNode", - "TxHarmonicNode", - "TxMeasNode", - "TxNbEmissionNode", - "TxSpectralProfEmitterNode", - "TxSpectralProfNode", - "TxSpurNode", - "WalfischCouplingNode", - "Waveform", - "ReadOnlyAmplifier", - "ReadOnlyAntennaNode", - "ReadOnlyAntennaPassband", - "ReadOnlyBand", - "ReadOnlyBandFolder", - "ReadOnlyCADNode", - "ReadOnlyCable", - "ReadOnlyCirculator", - "ReadOnlyCouplingLinkNode", - "ReadOnlyCouplingsNode", - "ReadOnlyCustomCouplingNode", - "ReadOnlyEmitSceneNode", - "ReadOnlyErcegCouplingNode", - "ReadOnlyFilter", - "ReadOnlyFiveGChannelModel", - "ReadOnlyHataCouplingNode", - "ReadOnlyIndoorPropagationCouplingNode", - "ReadOnlyIsolator", - "ReadOnlyLogDistanceCouplingNode", - "ReadOnlyMultiplexer", - "ReadOnlyMultiplexerBand", - "ReadOnlyPowerDivider", - "ReadOnlyPropagationLossCouplingNode", - "ReadOnlyRadioNode", - "ReadOnlyRxMeasNode", - "ReadOnlyRxMixerProductNode", - "ReadOnlyRxSaturationNode", - "ReadOnlyRxSelectivityNode", - "ReadOnlyRxSpurNode", - "ReadOnlyRxSusceptibilityProfNode", - "ReadOnlySamplingNode", - "ReadOnlySceneGroupNode", - "ReadOnlySolutionCouplingNode", - "ReadOnlySolutionsNode", - "ReadOnlyTR_Switch", - "ReadOnlyTerminator", - "ReadOnlyTouchstoneCouplingNode", - "ReadOnlyTwoRayPathLossCouplingNode", - "ReadOnlyTxBbEmissionNode", - "ReadOnlyTxHarmonicNode", - "ReadOnlyTxMeasNode", - "ReadOnlyTxNbEmissionNode", - "ReadOnlyTxSpectralProfEmitterNode", - "ReadOnlyTxSpectralProfNode", - "ReadOnlyTxSpurNode", - "ReadOnlyWalfischCouplingNode", - "ReadOnlyWaveform", + 'Amplifier', + 'AntennaNode', + 'AntennaPassband', + 'Band', + 'BandFolder', + 'BandTraceNode', + 'CADNode', + 'Cable', + 'CategoriesViewNode', + 'Circulator', + 'CouplingLinkNode', + 'CouplingTraceNode', + 'CouplingsNode', + 'CustomCouplingNode', + 'EmiPlotMarkerNode', + 'EmitSceneNode', + 'ErcegCouplingNode', + 'Filter', + 'FiveGChannelModel', + 'HataCouplingNode', + 'IndoorPropagationCouplingNode', + 'Isolator', + 'LogDistanceCouplingNode', + 'MPlexBandTraceNode', + 'Multiplexer', + 'MultiplexerBand', + 'OutboardTraceNode', + 'ParametricCouplingTraceNode', + 'PlotMarkerNode', + 'PlotNode', + 'PowerDivider', + 'PowerTraceNode', + 'ProfileTraceNode', + 'PropagationLossCouplingNode', + 'RadioNode', + 'ResultPlotNode', + 'RxMeasNode', + 'RxMixerProductNode', + 'RxSaturationNode', + 'RxSelectivityNode', + 'RxSpurNode', + 'RxSusceptibilityProfNode', + 'SamplingNode', + 'SceneGroupNode', + 'SelectivityTraceNode', + 'SolutionCouplingNode', + 'SolutionsNode', + 'SpurTraceNode', + 'TR_Switch', + 'TRSwitchTraceNode', + 'Terminator', + 'TestNoiseTraceNode', + 'TopLevelSimulation', + 'TouchstoneCouplingNode', + 'TunableTraceNode', + 'TwoRayPathLossCouplingNode', + 'TwoToneTraceNode', + 'TxBbEmissionNode', + 'TxHarmonicNode', + 'TxMeasNode', + 'TxNbEmissionNode', + 'TxSpectralProfEmitterNode', + 'TxSpectralProfNode', + 'TxSpurNode', + 'WalfischCouplingNode', + 'Waveform', + 'ReadOnlyAmplifier', + 'ReadOnlyAntennaNode', + 'ReadOnlyAntennaPassband', + 'ReadOnlyBand', + 'ReadOnlyBandFolder', + 'ReadOnlyCADNode', + 'ReadOnlyCable', + 'ReadOnlyCirculator', + 'ReadOnlyCouplingLinkNode', + 'ReadOnlyCouplingsNode', + 'ReadOnlyCustomCouplingNode', + 'ReadOnlyEmitSceneNode', + 'ReadOnlyErcegCouplingNode', + 'ReadOnlyFilter', + 'ReadOnlyFiveGChannelModel', + 'ReadOnlyHataCouplingNode', + 'ReadOnlyIndoorPropagationCouplingNode', + 'ReadOnlyIsolator', + 'ReadOnlyLogDistanceCouplingNode', + 'ReadOnlyMultiplexer', + 'ReadOnlyMultiplexerBand', + 'ReadOnlyPowerDivider', + 'ReadOnlyPropagationLossCouplingNode', + 'ReadOnlyRadioNode', + 'ReadOnlyRxMeasNode', + 'ReadOnlyRxMixerProductNode', + 'ReadOnlyRxSaturationNode', + 'ReadOnlyRxSelectivityNode', + 'ReadOnlyRxSpurNode', + 'ReadOnlyRxSusceptibilityProfNode', + 'ReadOnlySamplingNode', + 'ReadOnlySceneGroupNode', + 'ReadOnlySolutionCouplingNode', + 'ReadOnlySolutionsNode', + 'ReadOnlyTR_Switch', + 'ReadOnlyTerminator', + 'ReadOnlyTouchstoneCouplingNode', + 'ReadOnlyTwoRayPathLossCouplingNode', + 'ReadOnlyTxBbEmissionNode', + 'ReadOnlyTxHarmonicNode', + 'ReadOnlyTxMeasNode', + 'ReadOnlyTxNbEmissionNode', + 'ReadOnlyTxSpectralProfEmitterNode', + 'ReadOnlyTxSpectralProfNode', + 'ReadOnlyTxSpurNode', + 'ReadOnlyWalfischCouplingNode', + 'ReadOnlyWaveform', ] diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/amplifier.py index f6a6773b7a2..87b2db36c76 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/amplifier.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Amplifier(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -47,8 +43,7 @@ def delete(self): @property def filename(self) -> str: - """Filename - Name of file defining the outboard component + """Name of file defining the outboard component. Value should be a full file path. """ @@ -57,12 +52,13 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: - """Noise Temperature - System Noise temperature (K) of the component + """System Noise temperature (K) of the component. Value should be between 0 and 1000. """ @@ -70,21 +66,22 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class AmplifierTypeOption(Enum): TRANSMIT_AMPLIFIER = "Transmit Amplifier" @@ -92,22 +89,20 @@ class AmplifierTypeOption(Enum): @property def amplifier_type(self) -> AmplifierTypeOption: - """Amplifier Type - Configures the amplifier as a Tx or Rx amplifier - - """ + """Configures the amplifier as a Tx or Rx amplifier.""" val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val.upper()] return val @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Type={value.value}"]) @property def gain(self) -> float: - """Gain - Amplifier in-band gain + """Amplifier in-band gain. Value should be between 0 and 100. """ @@ -115,45 +110,48 @@ def gain(self) -> float: return float(val) @gain.setter - def gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Gain={value}"]) + def gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Gain={value}"]) @property def center_frequency(self) -> float: - """Center Frequency - Center frequency of amplifiers operational bandwidth + """Center frequency of amplifiers operational bandwidth. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Center Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @center_frequency.setter - def center_frequency(self, value: float | str): + def center_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Center Frequency={value}"]) @property def bandwidth(self) -> float: - """Bandwidth - Frequency region where the gain applies + """Frequency region where the gain applies. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @bandwidth.setter - def bandwidth(self, value: float | str): + def bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth={value}"]) @property def noise_figure(self) -> float: - """Noise Figure - Amplifier noise figure + """Amplifier noise figure. Value should be between 0 and 100. """ @@ -161,13 +159,14 @@ def noise_figure(self) -> float: return float(val) @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def saturation_level(self) -> float: - """Saturation Level - Saturation level + """Saturation level. Value should be between -200 and 200. """ @@ -176,14 +175,15 @@ def saturation_level(self) -> float: return float(val) @saturation_level.setter - def saturation_level(self, value: float | str): + def saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Saturation Level={value}"]) @property def p1_db_point_ref_input(self) -> float: - """P1-dB Point, Ref. Input - Incoming signals > this value saturate the amplifier + """Incoming signals > this value saturate the amplifier. Value should be between -200 and 200. """ @@ -192,14 +192,15 @@ def p1_db_point_ref_input(self) -> float: return float(val) @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value: float | str): + def p1_db_point_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input={value}"]) @property def ip3_ref_input(self) -> float: - """IP3, Ref. Input - 3rd order intercept point + """3rd order intercept point. Value should be between -200 and 200. """ @@ -208,14 +209,15 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def shape_factor(self) -> float: - """Shape Factor - Ratio defining the selectivity of the amplifier + """Ratio defining the selectivity of the amplifier. Value should be between 1 and 100. """ @@ -223,13 +225,14 @@ def shape_factor(self) -> float: return float(val) @shape_factor.setter - def shape_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) + def shape_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Shape Factor={value}"]) @property def reverse_isolation(self) -> float: - """Reverse Isolation - Amplifier reverse isolation + """Amplifier reverse isolation. Value should be between 0 and 200. """ @@ -237,13 +240,14 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: - """Max Intermod Order - Maximum order of intermods to compute + """Maximum order of intermods to compute. Value should be between 3 and 20. """ @@ -252,4 +256,7 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py index 813ae024e36..2b306751766 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class AntennaNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -56,38 +52,37 @@ def delete(self): @property def tags(self) -> str: - """Tags - Space delimited list of tags for coupling selections - - """ + """Space delimited list of tags for coupling selections.""" val = self._get_property("Tags") return val @tags.setter def tags(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tags={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tags={value}"]) @property def show_relative_coordinates(self) -> bool: - """Show Relative Coordinates + """Show Relative Coordinates. + Show antenna position and orientation in parent-node coords (False) or - relative to placement coords (True) + relative to placement coords (True). Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val == true + return (val == true) @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): - """Position - Set position of the antenna in parent-node coordinates + """Set position of the antenna in parent-node coordinates. Value should be x/y/z, delimited by spaces. """ @@ -96,12 +91,13 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): - """Relative Position - Set position of the antenna relative to placement coordinates + """Set position of the antenna relative to placement coordinates. Value should be x/y/z, delimited by spaces. """ @@ -110,7 +106,9 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -118,9 +116,9 @@ class OrientationModeOption(Enum): @property def orientation_mode(self) -> OrientationModeOption: - """Orientation Mode - Select the convention (order of rotations) for configuring orientation + """Orientation Mode. + Select the convention (order of rotations) for configuring orientation. """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] @@ -128,12 +126,13 @@ def orientation_mode(self) -> OrientationModeOption: @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): - """Orientation - Set orientation of the antenna relative to parent-node coordinates + """Set orientation of the antenna relative to parent-node coordinates. Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ @@ -142,12 +141,13 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): - """Relative Orientation - Set orientation of the antenna relative to placement coordinates + """Set orientation of the antenna relative to placement coordinates. Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ @@ -156,26 +156,28 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def position_defined(self) -> bool: - """Position Defined - Toggles on/off the ability to define a position for the antenna + """Toggles on/off the ability to define a position for the antenna. Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return val == true + return (val == true) @position_defined.setter def position_defined(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Defined={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position Defined={value}"]) @property def antenna_temperature(self) -> float: - """Antenna Temperature - Antenna noise temperature + """Antenna noise temperature. Value should be between 0 and 100000. """ @@ -183,38 +185,38 @@ def antenna_temperature(self) -> float: return float(val) @antenna_temperature.setter - def antenna_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna Temperature={value}"]) + def antenna_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna Temperature={value}"]) @property def type(self): - """Type - Defines the type of antenna - - """ + """Defines the type of antenna.""" val = self._get_property("Type") return val @type.setter def type(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value}"]) @property def antenna_file(self) -> str: - """Antenna File - Value should be a full file path. - """ + """Antenna File.""" val = self._get_property("Antenna File") return val @antenna_file.setter def antenna_file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna File={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna File={value}"]) @property def project_name(self) -> str: - """Project Name - Name of imported HFSS Antenna project + """Name of imported HFSS Antenna project. Value should be a full file path. """ @@ -223,12 +225,13 @@ def project_name(self) -> str: @project_name.setter def project_name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Project Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Project Name={value}"]) @property def peak_gain(self) -> float: - """Peak Gain - Set peak gain of antenna (dBi) + """Set peak gain of antenna (dBi). Value should be between -200 and 200. """ @@ -236,8 +239,10 @@ def peak_gain(self) -> float: return float(val) @peak_gain.setter - def peak_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Gain={value}"]) + def peak_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Peak Gain={value}"]) class BoresightOption(Enum): XAXIS = "+X Axis" @@ -246,22 +251,20 @@ class BoresightOption(Enum): @property def boresight(self) -> BoresightOption: - """Boresight - Select peak beam direction in local coordinates - - """ + """Select peak beam direction in local coordinates.""" val = self._get_property("Boresight") val = self.BoresightOption[val.upper()] return val @boresight.setter def boresight(self, value: BoresightOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Boresight={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Boresight={value.value}"]) @property def vertical_beamwidth(self) -> float: - """Vertical Beamwidth - Set half-power beamwidth in local-coordinates elevation plane + """Set half-power beamwidth in local-coordinates elevation plane. Value should be between 0.1 and 360. """ @@ -269,13 +272,14 @@ def vertical_beamwidth(self) -> float: return float(val) @vertical_beamwidth.setter - def vertical_beamwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Beamwidth={value}"]) + def vertical_beamwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Beamwidth={value}"]) @property def horizontal_beamwidth(self) -> float: - """Horizontal Beamwidth - Set half-power beamwidth in local-coordinates azimuth plane + """Set half-power beamwidth in local-coordinates azimuth plane. Value should be between 0.1 and 360. """ @@ -283,28 +287,32 @@ def horizontal_beamwidth(self) -> float: return float(val) @horizontal_beamwidth.setter - def horizontal_beamwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Beamwidth={value}"]) + def horizontal_beamwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Beamwidth={value}"]) @property def extra_sidelobe(self) -> bool: - """Extra Sidelobe - Toggle (on/off) option to define two sidelobe levels + """Toggle (on/off) option to define two sidelobe levels. Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return val == true + return (val == true) @extra_sidelobe.setter def extra_sidelobe(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Extra Sidelobe={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Extra Sidelobe={value}"]) @property def first_sidelobe_level(self) -> float: - """First Sidelobe Level + """First Sidelobe Level. + Set reduction in the gain of Directive Beam antenna for first sidelobe - level + level. Value should be between 0 and 200. """ @@ -312,13 +320,14 @@ def first_sidelobe_level(self) -> float: return float(val) @first_sidelobe_level.setter - def first_sidelobe_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Level={value}"]) + def first_sidelobe_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Level={value}"]) @property def first_sidelobe_vert_bw(self) -> float: - """First Sidelobe Vert. BW - Set beamwidth of first sidelobe beam in theta direction + """Set beamwidth of first sidelobe beam in theta direction. Value should be between 0.1 and 360. """ @@ -326,13 +335,14 @@ def first_sidelobe_vert_bw(self) -> float: return float(val) @first_sidelobe_vert_bw.setter - def first_sidelobe_vert_bw(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Vert. BW={value}"]) + def first_sidelobe_vert_bw(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Vert. BW={value}"]) @property def first_sidelobe_hor_bw(self) -> float: - """First Sidelobe Hor. BW - Set beamwidth of first sidelobe beam in phi direction + """Set beamwidth of first sidelobe beam in phi direction. Value should be between 0.1 and 360. """ @@ -340,13 +350,17 @@ def first_sidelobe_hor_bw(self) -> float: return float(val) @first_sidelobe_hor_bw.setter - def first_sidelobe_hor_bw(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Hor. BW={value}"]) + def first_sidelobe_hor_bw(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First Sidelobe Hor. BW={value}"]) @property def outerbacklobe_level(self) -> float: - """Outer/Backlobe Level - Set reduction in gain of Directive Beam antenna for outer/backlobe level + """Outer/Backlobe Level. + + Set reduction in gain of Directive Beam antenna for outer/backlobe + level. Value should be between 0 and 200. """ @@ -354,96 +368,108 @@ def outerbacklobe_level(self) -> float: return float(val) @outerbacklobe_level.setter - def outerbacklobe_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Outer/Backlobe Level={value}"]) + def outerbacklobe_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Outer/Backlobe Level={value}"]) @property def resonant_frequency(self) -> float: - """Resonant Frequency + """Resonant Frequency. + Set first resonant frequency of wire dipole, monopole, or parametric - antenna + antenna. - Value should be between 1 and 1e+13. + Value should be between 1.0 and 1e13. """ val = self._get_property("Resonant Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @resonant_frequency.setter - def resonant_frequency(self, value: float | str): + def resonant_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resonant Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Resonant Frequency={value}"]) @property def slot_length(self) -> float: - """Slot Length - Set slot length of parametric slot + """Set slot length of parametric slot. - Value should be greater than 1e-06. + Value should be greater than 1e-6. """ val = self._get_property("Slot Length") val = self._convert_from_internal_units(float(val), "Length") return float(val) @slot_length.setter - def slot_length(self, value: float | str): + def slot_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Slot Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Slot Length={value}"]) @property def mouth_width(self) -> float: - """Mouth Width - Set mouth width (along local y-axis) of the horn antenna + """Set mouth width (along local y-axis) of the horn antenna. - Value should be between 1e-06 and 100. + Value should be between 1e-6 and 100. """ val = self._get_property("Mouth Width") val = self._convert_from_internal_units(float(val), "Length") return float(val) @mouth_width.setter - def mouth_width(self, value: float | str): + def mouth_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Width={value}"]) @property def mouth_height(self) -> float: - """Mouth Height - Set mouth height (along local x-axis) of the horn antenna + """Set mouth height (along local x-axis) of the horn antenna. - Value should be between 1e-06 and 100. + Value should be between 1e-6 and 100. """ val = self._get_property("Mouth Height") val = self._convert_from_internal_units(float(val), "Length") return float(val) @mouth_height.setter - def mouth_height(self, value: float | str): + def mouth_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Height={value}"]) @property def waveguide_width(self) -> float: - """Waveguide Width + """Waveguide Width. + Set waveguide width (along local y-axis) where flared horn walls meet - the feed, determines cut-off frequency + the feed, determines cut-off frequency. - Value should be between 1e-06 and 100. + Value should be between 1e-6 and 100. """ val = self._get_property("Waveguide Width") val = self._convert_from_internal_units(float(val), "Length") return float(val) @waveguide_width.setter - def waveguide_width(self, value: float | str): + def waveguide_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveguide Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Waveguide Width={value}"]) @property def width_flare_half_angle(self) -> float: - """Width Flare Half-angle + """Width Flare Half-angle. + Set half-angle (degrees) of flared horn walls measured in local yz-plane - from boresight (z) axis to either wall + from boresight (z) axis to either wall. Value should be between 1 and 89.9. """ @@ -451,14 +477,17 @@ def width_flare_half_angle(self) -> float: return float(val) @width_flare_half_angle.setter - def width_flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width Flare Half-angle={value}"]) + def width_flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Width Flare Half-angle={value}"]) @property def height_flare_half_angle(self) -> float: - """Height Flare Half-angle + """Height Flare Half-angle. + Set half-angle (degrees) of flared horn walls measured in local xz-plane - from boresight (z) axis to either wall + from boresight (z) axis to either wall. Value should be between 1 and 89.9. """ @@ -466,30 +495,34 @@ def height_flare_half_angle(self) -> float: return float(val) @height_flare_half_angle.setter - def height_flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height Flare Half-angle={value}"]) + def height_flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Height Flare Half-angle={value}"]) @property def mouth_diameter(self) -> float: - """Mouth Diameter - Set aperture (mouth) diameter of horn antenna + """Set aperture (mouth) diameter of horn antenna. - Value should be between 1e-06 and 100. + Value should be between 1e-6 and 100. """ val = self._get_property("Mouth Diameter") val = self._convert_from_internal_units(float(val), "Length") return float(val) @mouth_diameter.setter - def mouth_diameter(self, value: float | str): + def mouth_diameter(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Diameter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mouth Diameter={value}"]) @property def flare_half_angle(self) -> float: - """Flare Half-angle + """Flare Half-angle. + Set half-angle (degrees) of conical horn wall measured from boresight - (z) + (z). Value should be between 1 and 89.9. """ @@ -497,14 +530,17 @@ def flare_half_angle(self) -> float: return float(val) @flare_half_angle.setter - def flare_half_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flare Half-angle={value}"]) + def flare_half_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Flare Half-angle={value}"]) @property def vswr(self) -> float: - """VSWR + """VSWR. + The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch - between the antenna and the RF System (or outboard component) + between the antenna and the RF System (or outboard component). Value should be between 1 and 100. """ @@ -512,8 +548,10 @@ def vswr(self) -> float: return float(val) @vswr.setter - def vswr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) + def vswr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"VSWR={value}"]) class AntennaPolarizationOption(Enum): VERTICAL = "Vertical" @@ -523,19 +561,16 @@ class AntennaPolarizationOption(Enum): @property def antenna_polarization(self) -> AntennaPolarizationOption: - """Antenna Polarization - Choose local-coordinates polarization along boresight - - """ + """Choose local-coordinates polarization along boresight.""" val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val.upper()] return val @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Antenna Polarization={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna Polarization={value.value}"]) class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" @@ -543,17 +578,16 @@ class CrossDipoleModeOption(Enum): @property def cross_dipole_mode(self) -> CrossDipoleModeOption: - """Cross Dipole Mode - Choose the Cross Dipole type - - """ + """Choose the Cross Dipole type.""" val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val.upper()] return val @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Cross Dipole Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Cross Dipole Mode={value.value}"]) class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" @@ -561,39 +595,40 @@ class CrossDipolePolarizationOption(Enum): @property def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: - """Cross Dipole Polarization - Choose local-coordinates polarization along boresight - - """ + """Choose local-coordinates polarization along boresight.""" val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val.upper()] return val @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Cross Dipole Polarization={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Cross Dipole Polarization={value.value}"]) @property def override_height(self) -> bool: - """Override Height + """Override Height. + Ignores the default placement of quarter design wavelength over the - ground plane + ground plane. Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return val == true + return (val == true) @override_height.setter def override_height(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Override Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Override Height={value}"]) @property def offset_height(self) -> float: - """Offset Height - Sets the offset height for the current sources above the ground plane + """Offset Height. + + Sets the offset height for the current sources above the ground plane. Value should be greater than 0. """ @@ -602,43 +637,50 @@ def offset_height(self) -> float: return float(val) @offset_height.setter - def offset_height(self, value: float | str): + def offset_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Offset Height={value}"]) @property def auto_height_offset(self) -> bool: - """Auto Height Offset + """Auto Height Offset. + Switch on to automatically place slot current at sub-wavelength offset - height above ground plane + height above ground plane. Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return val == true + return (val == true) @auto_height_offset.setter def auto_height_offset(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Auto Height Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Auto Height Offset={value}"]) @property def conform__adjust_antenna(self) -> bool: - """Conform / Adjust Antenna - Toggle (on/off) conformal adjustment for array antenna elements + """Toggle (on/off) conformal adjustment for array antenna elements. Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return val == true + return (val == true) @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform / Adjust Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform / Adjust Antenna={value}"]) @property def element_offset(self): - """Element Offset - Set vector for shifting element positions in antenna local coordinates + """Element Offset. + + Set vector for shifting element positions in antenna local coordinates. Value should be x/y/z, delimited by spaces. """ @@ -647,7 +689,9 @@ def element_offset(self): @element_offset.setter def element_offset(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Element Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Element Offset={value}"]) class ConformtoPlatformOption(Enum): NONE = "None" @@ -656,19 +700,16 @@ class ConformtoPlatformOption(Enum): @property def conform_to_platform(self) -> ConformtoPlatformOption: - """Conform to Platform - Select method of automated conforming applied after Element Offset - - """ + """Select method of automated conforming applied after Element Offset.""" val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val.upper()] return val @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Conform to Platform={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform to Platform={value.value}"]) class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" @@ -677,67 +718,68 @@ class ReferencePlaneOption(Enum): @property def reference_plane(self) -> ReferencePlaneOption: - """Reference Plane - Select reference plane for determining original element heights - - """ + """Select reference plane for determining original element heights.""" val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val.upper()] return val @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reference Plane={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reference Plane={value.value}"]) @property def conform_element_orientation(self) -> bool: - """Conform Element Orientation + """Conform Element Orientation. + Toggle (on/off) re-orientation of elements to conform to curved - placement surface + placement surface. Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return val == true + return (val == true) @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Conform Element Orientation={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Conform Element Orientation={value}"]) @property def show_axes(self) -> bool: - """Show Axes - Toggle (on/off) display of antenna coordinate axes in 3-D window + """Toggle (on/off) display of antenna coordinate axes in 3-D window. Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val == true + return (val == true) @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def show_icon(self) -> bool: - """Show Icon - Toggle (on/off) display of antenna marker (cone) in 3-D window + """Toggle (on/off) display of antenna marker (cone) in 3-D window. Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return val == true + return (val == true) @show_icon.setter def show_icon(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Icon={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Icon={value}"]) @property def size(self) -> float: - """Size - Adjust relative size of antenna marker (cone) in 3-D window + """Adjust relative size of antenna marker (cone) in 3-D window. Value should be between 0.001 and 1. """ @@ -745,13 +787,14 @@ def size(self) -> float: return float(val) @size.setter - def size(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Size={value}"]) + def size(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Size={value}"]) @property def color(self): - """Color - Set color of antenna marker (cone) in 3-D window + """Set color of antenna marker (cone) in 3-D window. Color should be in RGB form: #RRGGBB. """ @@ -760,89 +803,75 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def el_sample_interval(self) -> float: - """El Sample Interval - Space between elevation-angle samples of pattern - - """ + """Space between elevation-angle samples of pattern.""" val = self._get_property("El Sample Interval") return float(val) @property def az_sample_interval(self) -> float: - """Az Sample Interval - Space between azimuth-angle samples of pattern - - """ + """Space between azimuth-angle samples of pattern.""" val = self._get_property("Az Sample Interval") return float(val) @property def has_frequency_domain(self) -> bool: - """Has Frequency Domain - False if antenna can be used at any frequency + """False if antenna can be used at any frequency. Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return val == true + return (val == true) @property def frequency_domain(self): - """Frequency Domain - Frequency sample(s) defining antenna - - """ + """Frequency sample(s) defining antenna.""" val = self._get_property("Frequency Domain") return val @property def number_of_electric_sources(self) -> int: - """Number of Electric Sources - Number of freestanding electric current sources defining antenna - - """ + """Number of freestanding electric current sources defining antenna.""" val = self._get_property("Number of Electric Sources") return int(val) @property def number_of_magnetic_sources(self) -> int: - """Number of Magnetic Sources - Number of freestanding magnetic current sources defining antenna - - """ + """Number of freestanding magnetic current sources defining antenna.""" val = self._get_property("Number of Magnetic Sources") return int(val) @property def number_of_imaged_electric_sources(self) -> int: - """Number of Imaged Electric Sources - Number of imaged, half-space radiating electric current sources defining - antenna + """Number of Imaged Electric Sources. + Number of imaged, half-space radiating electric current sources defining + antenna. """ val = self._get_property("Number of Imaged Electric Sources") return int(val) @property def number_of_imaged_magnetic_sources(self) -> int: - """Number of Imaged Magnetic Sources - Number of imaged, half-space radiating magnetic current sources defining - antenna + """Number of Imaged Magnetic Sources. + Number of imaged, half-space radiating magnetic current sources defining + antenna. """ val = self._get_property("Number of Imaged Magnetic Sources") return int(val) @property def waveguide_height(self) -> float: - """Waveguide Height - Implied waveguide height (along local x-axis) where the flared horn - walls meet the feed + """Waveguide Height. + Implied waveguide height (along local x-axis) where the flared horn + walls meet the feed. """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") @@ -850,20 +879,14 @@ def waveguide_height(self) -> float: @property def waveguide_cutoff_frequency(self) -> float: - """Waveguide Cutoff Frequency - Implied lowest operating frequency of pyramidal horn antenna - - """ + """Implied lowest operating frequency of pyramidal horn antenna.""" val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @property def aperture_cutoff_frequency(self) -> float: - """Aperture Cutoff Frequency - Implied lowest operating frequency of conical horn antenna - - """ + """Implied lowest operating frequency of conical horn antenna.""" val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -875,10 +898,10 @@ class SWEModeTruncationOption(Enum): @property def swe_mode_truncation(self) -> SWEModeTruncationOption: - """SWE Mode Truncation - Select the method for stability-enhancing truncation of spherical wave - expansion terms + """SWE Mode Truncation. + Select the method for stability-enhancing truncation of spherical wave + expansion terms. """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val.upper()] @@ -886,14 +909,13 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"SWE Mode Truncation={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SWE Mode Truncation={value.value}"]) @property def max_n_index(self) -> int: - """Max N Index - Set maximum allowed index N for spherical wave expansion terms + """Set maximum allowed index N for spherical wave expansion terms. Value should be greater than 1. """ @@ -902,62 +924,64 @@ def max_n_index(self) -> int: @max_n_index.setter def max_n_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max N Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max N Index={value}"]) @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) @property def show_composite_passband(self) -> bool: - """Show Composite Passband - Show plot instead of 3D window + """Show plot instead of 3D window. Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return val == true + return (val == true) @show_composite_passband.setter def show_composite_passband(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Composite Passband={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Composite Passband={value}"]) @property def use_phase_center(self) -> bool: - """Use Phase Center - Use the phase center defined in the HFSS design + """Use the phase center defined in the HFSS design. Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return val == true + return (val == true) @use_phase_center.setter def use_phase_center(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Phase Center={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Phase Center={value}"]) @property def coordinate_systems(self) -> str: - """Coordinate Systems - Specifies the coordinate system for the phase center of this antenna + """Coordinate Systems. + Specifies the coordinate system for the phase center of this antenna. """ val = self._get_property("Coordinate Systems") return val @property def phasecenterposition(self): - """PhaseCenterPosition - Set position of the antennas linked coordinate system. + """Set position of the antennas linked coordinate system. Value should be x/y/z, delimited by spaces. """ @@ -966,10 +990,10 @@ def phasecenterposition(self): @property def phasecenterorientation(self): - """PhaseCenterOrientation - Set orientation of the antennas linked coordinate system. + """Set orientation of the antennas linked coordinate system. Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("PhaseCenterOrientation") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py index 58c7ebbb47c..d23697f3925 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class AntennaPassband(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -51,7 +48,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -59,8 +56,7 @@ def enabled(self, value: bool): @property def passband_loss(self) -> float: - """Passband Loss - Passband loss + """Passband loss. Value should be between 0 and 100. """ @@ -68,13 +64,14 @@ def passband_loss(self) -> float: return float(val) @passband_loss.setter - def passband_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Passband Loss={value}"]) + def passband_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Passband Loss={value}"]) @property def out_of_band_attenuation(self) -> float: - """Out of Band Attenuation - Out of band antenna loss + """Out of band antenna loss. Value should be between 0 and 200. """ @@ -82,82 +79,88 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out of Band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out of Band Attenuation={value}"]) @property def lower_stop_band(self) -> float: - """Lower Stop Band - Lower stop band frequency + """Lower stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: - """Lower Cutoff - Lower cutoff frequency + """Lower cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: - """Higher Cutoff - Higher cutoff frequency + """Higher cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: - """Higher Stop Band - Higher stop band frequency + """Higher stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/band.py b/src/ansys/aedt/core/emit_core/nodes/generated/band.py index f1125f37ba9..35489f08f7e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/band.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Band(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +37,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -49,98 +45,97 @@ def enabled(self, value: bool): @property def port(self): - """Port - Radio Port associated with this Band - - """ + """Radio Port associated with this Band.""" val = self._get_property("Port") return val @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port={value}"]) @property def use_dd_1494_mode(self) -> bool: - """Use DD-1494 Mode - Uses DD-1494 parameters to define the Tx/Rx spectrum + """Uses DD-1494 parameters to define the Tx/Rx spectrum. Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return val == true + return (val == true) @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use DD-1494 Mode={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use DD-1494 Mode={value}"]) @property def use_emission_designator(self) -> bool: - """Use Emission Designator - Uses the Emission Designator to define the bandwidth and modulation + """Use Emission Designator. + + Uses the Emission Designator to define the bandwidth and modulation. Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return val == true + return (val == true) @use_emission_designator.setter def use_emission_designator(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Emission Designator={value}"]) @property def emission_designator(self) -> str: - """Emission Designator - Enter the Emission Designator to define the bandwidth and modulation + """Emission Designator. + Enter the Emission Designator to define the bandwidth and modulation. """ val = self._get_property("Emission Designator") return val @emission_designator.setter def emission_designator(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Emission Designator={value}"]) @property def emission_designator_ch_bw(self) -> float: - """Emission Designator Ch. BW - Channel Bandwidth based off the emission designator - - """ + """Channel Bandwidth based off the emission designator.""" val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @property def emit_modulation_type(self) -> str: - """EMIT Modulation Type - Modulation based off the emission designator - - """ + """Modulation based off the emission designator.""" val = self._get_property("EMIT Modulation Type") return val @property def override_emission_designator_bw(self) -> bool: - """Override Emission Designator BW + """Override Emission Designator BW. + Enables the 3 dB channel bandwidth to equal a value < emission - designator bandwidth + designator bandwidth. Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return val == true + return (val == true) @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Override Emission Designator BW={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Override Emission Designator BW={value}"]) @property def channel_bandwidth(self) -> float: - """Channel Bandwidth - Channel Bandwidth + """Channel Bandwidth. Value should be greater than 1. """ @@ -149,9 +144,11 @@ def channel_bandwidth(self) -> float: return float(val) @channel_bandwidth.setter - def channel_bandwidth(self, value: float | str): + def channel_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Bandwidth={value}"]) class ModulationOption(Enum): GENERIC = "Generic" @@ -168,22 +165,20 @@ class ModulationOption(Enum): @property def modulation(self) -> ModulationOption: - """Modulation - Modulation used for the transmitted/received signal - - """ + """Modulation used for the transmitted/received signal.""" val = self._get_property("Modulation") val = self.ModulationOption[val.upper()] return val @modulation.setter def modulation(self, value: ModulationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation={value.value}"]) @property def max_modulating_freq(self) -> float: - """Max Modulating Freq. - Maximum modulating frequency: helps determine spectral profile + """Maximum modulating frequency: helps determine spectral profile. Value should be greater than 1. """ @@ -192,14 +187,15 @@ def max_modulating_freq(self) -> float: return float(val) @max_modulating_freq.setter - def max_modulating_freq(self, value: float | str): + def max_modulating_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Modulating Freq.={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Modulating Freq.={value}"]) @property def modulation_index(self) -> float: - """Modulation Index - AM modulation index: helps determine spectral profile + """AM modulation index: helps determine spectral profile. Value should be between 0.01 and 1. """ @@ -207,13 +203,14 @@ def modulation_index(self) -> float: return float(val) @modulation_index.setter - def modulation_index(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Index={value}"]) + def modulation_index(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation Index={value}"]) @property def freq_deviation(self) -> float: - """Freq. Deviation - Frequency deviation: helps determine spectral profile + """Frequency deviation: helps determine spectral profile. Value should be greater than 1. """ @@ -222,14 +219,15 @@ def freq_deviation(self) -> float: return float(val) @freq_deviation.setter - def freq_deviation(self, value: float | str): + def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation={value}"]) @property def bit_rate(self) -> float: - """Bit Rate - Maximum bit rate: helps determine width of spectral profile + """Maximum bit rate: helps determine width of spectral profile. Value should be greater than 1. """ @@ -238,14 +236,15 @@ def bit_rate(self) -> float: return float(val) @bit_rate.setter - def bit_rate(self, value: float | str): + def bit_rate(self, value : float|str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bit Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bit Rate={value}"]) @property def sidelobes(self) -> int: - """Sidelobes - Number of sidelobes in spectral profile + """Number of sidelobes in spectral profile. Value should be greater than 0. """ @@ -254,12 +253,13 @@ def sidelobes(self) -> int: @sidelobes.setter def sidelobes(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sidelobes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sidelobes={value}"]) @property - def freq_deviation_(self) -> float: - """Freq. Deviation - FSK frequency deviation: helps determine spectral profile + def freq_deviation(self) -> float: + """FSK frequency deviation: helps determine spectral profile. Value should be greater than 1. """ @@ -267,10 +267,12 @@ def freq_deviation_(self) -> float: val = self._convert_from_internal_units(float(val), "Freq") return float(val) - @freq_deviation_.setter - def freq_deviation_(self, value: float | str): + @freq_deviation.setter + def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation ={value}"]) class PSKTypeOption(Enum): BPSK = "BPSK" @@ -282,17 +284,16 @@ class PSKTypeOption(Enum): @property def psk_type(self) -> PSKTypeOption: - """PSK Type - PSK modulation order: helps determine spectral profile - - """ + """PSK modulation order: helps determine spectral profile.""" val = self._get_property("PSK Type") val = self.PSKTypeOption[val.upper()] return val @psk_type.setter def psk_type(self, value: PSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"PSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"PSK Type={value.value}"]) class FSKTypeOption(Enum): FSK_2 = "FSK-2" @@ -301,17 +302,16 @@ class FSKTypeOption(Enum): @property def fsk_type(self) -> FSKTypeOption: - """FSK Type - FSK modulation order: helps determine spectral profile - - """ + """FSK modulation order: helps determine spectral profile.""" val = self._get_property("FSK Type") val = self.FSKTypeOption[val.upper()] return val @fsk_type.setter def fsk_type(self, value: FSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FSK Type={value.value}"]) class QAMTypeOption(Enum): QAM_4 = "QAM-4" @@ -322,17 +322,16 @@ class QAMTypeOption(Enum): @property def qam_type(self) -> QAMTypeOption: - """QAM Type - QAM modulation order: helps determine spectral profile - - """ + """QAM modulation order: helps determine spectral profile.""" val = self._get_property("QAM Type") val = self.QAMTypeOption[val.upper()] return val @qam_type.setter def qam_type(self, value: QAMTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"QAM Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"QAM Type={value.value}"]) class APSKTypeOption(Enum): APSK_4 = "APSK-4" @@ -343,81 +342,84 @@ class APSKTypeOption(Enum): @property def apsk_type(self) -> APSKTypeOption: - """APSK Type - APSK modulation order: helps determine spectral profile - - """ + """APSK modulation order: helps determine spectral profile.""" val = self._get_property("APSK Type") val = self.APSKTypeOption[val.upper()] return val @apsk_type.setter def apsk_type(self, value: APSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"APSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"APSK Type={value.value}"]) @property def start_frequency(self) -> float: - """Start Frequency - First frequency for this band + """First frequency for this band. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: - """Stop Frequency - Last frequency for this band + """Last frequency for this band. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: - """Channel Spacing - Spacing between channels within this band + """Spacing between channels within this band. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @channel_spacing.setter - def channel_spacing(self, value: float | str): + def channel_spacing(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Spacing={value}"]) @property def tx_offset(self) -> float: - """Tx Offset - Frequency offset between Tx and Rx channels + """Frequency offset between Tx and Rx channels. - Value should be less than 1e+11. + Value should be less than 100e9. """ val = self._get_property("Tx Offset") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @tx_offset.setter - def tx_offset(self, value: float | str): + def tx_offset(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Offset={value}"]) class RadarTypeOption(Enum): CW = "CW" @@ -428,216 +430,233 @@ class RadarTypeOption(Enum): @property def radar_type(self) -> RadarTypeOption: - """Radar Type - Radar type: helps determine spectral profile - - """ + """Radar type: helps determine spectral profile.""" val = self._get_property("Radar Type") val = self.RadarTypeOption[val.upper()] return val @radar_type.setter def radar_type(self, value: RadarTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radar Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Radar Type={value.value}"]) @property def hopping_radar(self) -> bool: - """Hopping Radar - True for hopping radars; false otherwise + """True for hopping radars; false otherwise. Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return val == true + return (val == true) @hopping_radar.setter def hopping_radar(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hopping Radar={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hopping Radar={value}"]) @property def post_october_2020_procurement(self) -> bool: - """Post October 2020 Procurement + """Post October 2020 Procurement. + Procurement date: helps determine spectral profile, particularly the - roll-off + roll-off. Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return val == true + return (val == true) @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Post October 2020 Procurement={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Post October 2020 Procurement={value}"]) @property def hop_range_min_freq(self) -> float: - """Hop Range Min Freq - Sets the minimum frequency of the hopping range + """Sets the minimum frequency of the hopping range. - Value should be between 1 and 1e+11. + Value should be between 1.0 and 100.0e9. """ val = self._get_property("Hop Range Min Freq") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @hop_range_min_freq.setter - def hop_range_min_freq(self, value: float | str): + def hop_range_min_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Min Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hop Range Min Freq={value}"]) @property def hop_range_max_freq(self) -> float: - """Hop Range Max Freq - Sets the maximum frequency of the hopping range + """Sets the maximum frequency of the hopping range. - Value should be between 1 and 1e+11. + Value should be between 1.0 and 100.0e9. """ val = self._get_property("Hop Range Max Freq") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @hop_range_max_freq.setter - def hop_range_max_freq(self, value: float | str): + def hop_range_max_freq(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Max Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Hop Range Max Freq={value}"]) @property def pulse_duration(self) -> float: - """Pulse Duration - Pulse duration + """Pulse duration. - Value should be greater than 0. + Value should be greater than 0.0. """ val = self._get_property("Pulse Duration") val = self._convert_from_internal_units(float(val), "Time") return float(val) @pulse_duration.setter - def pulse_duration(self, value: float | str): + def pulse_duration(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Duration={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Duration={value}"]) @property def pulse_rise_time(self) -> float: - """Pulse Rise Time - Pulse rise time + """Pulse rise time. - Value should be greater than 0. + Value should be greater than 0.0. """ val = self._get_property("Pulse Rise Time") val = self._convert_from_internal_units(float(val), "Time") return float(val) @pulse_rise_time.setter - def pulse_rise_time(self, value: float | str): + def pulse_rise_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Rise Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Rise Time={value}"]) @property def pulse_fall_time(self) -> float: - """Pulse Fall Time - Pulse fall time + """Pulse fall time. - Value should be greater than 0. + Value should be greater than 0.0. """ val = self._get_property("Pulse Fall Time") val = self._convert_from_internal_units(float(val), "Time") return float(val) @pulse_fall_time.setter - def pulse_fall_time(self, value: float | str): + def pulse_fall_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Fall Time={value}"]) @property def pulse_repetition_rate(self) -> float: - """Pulse Repetition Rate - Pulse repetition rate [pulses/sec] + """Pulse repetition rate [pulses/sec]. - Value should be greater than 1. + Value should be greater than 1.0. """ val = self._get_property("Pulse Repetition Rate") return float(val) @pulse_repetition_rate.setter - def pulse_repetition_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Repetition Rate={value}"]) + def pulse_repetition_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Repetition Rate={value}"]) @property def number_of_chips(self) -> float: - """Number of Chips - Total number of chips (subpulses) contained in the pulse + """Total number of chips (subpulses) contained in the pulse. - Value should be greater than 1. + Value should be greater than 1.0. """ val = self._get_property("Number of Chips") return float(val) @number_of_chips.setter - def number_of_chips(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Chips={value}"]) + def number_of_chips(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Chips={value}"]) @property def pulse_compression_ratio(self) -> float: - """Pulse Compression Ratio - Pulse compression ratio + """Pulse compression ratio. - Value should be greater than 1. + Value should be greater than 1.0. """ val = self._get_property("Pulse Compression Ratio") return float(val) @pulse_compression_ratio.setter - def pulse_compression_ratio(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Compression Ratio={value}"]) + def pulse_compression_ratio(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pulse Compression Ratio={value}"]) @property def fm_chirp_period(self) -> float: - """FM Chirp Period - FM Chirp period for the FM/CW radar + """FM Chirp period for the FM/CW radar. - Value should be greater than 0. + Value should be greater than 0.0. """ val = self._get_property("FM Chirp Period") val = self._convert_from_internal_units(float(val), "Time") return float(val) @fm_chirp_period.setter - def fm_chirp_period(self, value: float | str): + def fm_chirp_period(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Chirp Period={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Chirp Period={value}"]) @property def fm_freq_deviation(self) -> float: - """FM Freq Deviation - Total frequency deviation for the carrier frequency for the FM/CW radar + """FM Freq Deviation. + + Total frequency deviation for the carrier frequency for the FM/CW radar. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("FM Freq Deviation") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @fm_freq_deviation.setter - def fm_freq_deviation(self, value: float | str): + def fm_freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Freq Deviation={value}"]) @property def fm_freq_dev_bandwidth(self) -> float: - """FM Freq Dev Bandwidth + """FM Freq Dev Bandwidth. + Bandwidth of freq deviation for FM modulated pulsed waveform (total freq - shift during pulse duration) + shift during pulse duration). - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value: float | str): + def fm_freq_dev_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Dev Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"FM Freq Dev Bandwidth={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py b/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py index 528817256e3..25c5a5270e3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class BandFolder(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -51,3 +48,4 @@ def duplicate(self, new_name: str): def delete(self): """Delete this node""" self._delete() + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py index 87de24c5913..05980fc17fb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class BandTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,17 +48,19 @@ def delete(self): @property def data_source(self): - """Data Source - Identifies tree node serving as data source for plot trace, click link - to find it + """Data Source. + Identifies tree node serving as data source for plot trace, click link + to find it. """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) class TxorRxOption(Enum): TX = "Tx" @@ -70,37 +68,35 @@ class TxorRxOption(Enum): @property def tx_or_rx(self) -> TxorRxOption: - """Tx or Rx - Specifies whether the trace is a Tx or Rx channel - - """ + """Specifies whether the trace is a Tx or Rx channel.""" val = self._get_property("Tx or Rx") val = self.TxorRxOption[val.upper()] return val @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx or Rx={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx or Rx={value.value}"]) @property def channel_frequency(self): - """Channel Frequency - Select band channel frequency to display - - """ + """Select band channel frequency to display.""" val = self._get_property("Channel Frequency") return val @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: - """Transmit Frequency - The actual transmit frequency (i.e., the Channel Frequency plus the Tx - Offset) + """Transmit Frequency. + The actual transmit frequency (i.e., the Channel Frequency plus the Tx + Offset). """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") @@ -108,44 +104,45 @@ def transmit_frequency(self) -> float: @property def visible(self) -> bool: - """Visible - Toggle (on/off) display of this plot trace + """Toggle (on/off) display of this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: - """Custom Legend - Enable/disable custom legend entry for this plot trace + """Enable/disable custom legend entry for this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: - """Name - Enter name of plot trace as it will appear in legend - - """ + """Enter name of plot trace as it will appear in legend.""" val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -157,22 +154,20 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: - """Style - Specify line style of plot trace - - """ + """Specify line style of plot trace.""" val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: - """Line Width - Specify line width of plot trace + """Specify line width of plot trace. Value should be between 1 and 100. """ @@ -181,12 +176,13 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): - """Line Color - Specify line color of plot trace + """Specify line color of plot trace. Color should be in RGB form: #RRGGBB. """ @@ -195,7 +191,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -216,22 +214,20 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: - """Symbol - Select symbol to mark points along plot trace - - """ + """Select symbol to mark points along plot trace.""" val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: - """Symbol Size - Set size (in points) of symbols marking points along plot trace + """Set size (in points) of symbols marking points along plot trace. Value should be between 1 and 1000. """ @@ -240,12 +236,13 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): - """Symbol Color - Specify color of symbols marking points along plot trace + """Specify color of symbols marking points along plot trace. Color should be in RGB form: #RRGGBB. """ @@ -254,12 +251,13 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: - """Symbol Line Width - Set the width of the line used to draw the symbol + """Set the width of the line used to draw the symbol. Value should be between 1 and 20. """ @@ -268,19 +266,25 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: - """Symbol Filled + """Symbol Filled. + If true, the interior of the symbol is filled - has no effect for some - symbol types + symbol types. Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/cable.py index 5bd9408f86a..c3b289b2771 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/cable.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Cable(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -47,8 +43,7 @@ def delete(self): @property def filename(self) -> str: - """Filename - Name of file defining the outboard component + """Name of file defining the outboard component. Value should be a full file path. """ @@ -57,12 +52,13 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: - """Noise Temperature - System Noise temperature (K) of the component + """System Noise temperature (K) of the component. Value should be between 0 and 1000. """ @@ -70,21 +66,22 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -93,10 +90,10 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: - """Type - Type of cable to use. Options include: By File (measured or simulated), - Constant Loss, or Coaxial Cable + """Type. + Type of cable to use. Options include: By File (measured or simulated), + Constant Loss, or Coaxial Cable. """ val = self._get_property("Type") val = self.TypeOption[val.upper()] @@ -104,12 +101,13 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def length(self) -> float: - """Length - Length of cable + """Length of cable. Value should be between 0 and 500. """ @@ -118,14 +116,15 @@ def length(self) -> float: return float(val) @length.setter - def length(self, value: float | str): + def length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Length={value}"]) @property def loss_per_length(self) -> float: - """Loss Per Length - Cable loss per unit length (dB/meter) + """Cable loss per unit length (dB/meter). Value should be between 0 and 20. """ @@ -133,13 +132,14 @@ def loss_per_length(self) -> float: return float(val) @loss_per_length.setter - def loss_per_length(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Loss Per Length={value}"]) + def loss_per_length(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Loss Per Length={value}"]) @property def measurement_length(self) -> float: - """Measurement Length - Length of the cable used for the measurements + """Length of the cable used for the measurements. Value should be between 0 and 500. """ @@ -148,14 +148,15 @@ def measurement_length(self) -> float: return float(val) @measurement_length.setter - def measurement_length(self, value: float | str): + def measurement_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Length={value}"]) @property def resistive_loss_constant(self) -> float: - """Resistive Loss Constant - Coaxial cable resistive loss constant + """Coaxial cable resistive loss constant. Value should be between 0 and 2. """ @@ -163,13 +164,14 @@ def resistive_loss_constant(self) -> float: return float(val) @resistive_loss_constant.setter - def resistive_loss_constant(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resistive Loss Constant={value}"]) + def resistive_loss_constant(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Resistive Loss Constant={value}"]) @property def dielectric_loss_constant(self) -> float: - """Dielectric Loss Constant - Coaxial cable dielectric loss constant + """Coaxial cable dielectric loss constant. Value should be between 0 and 1. """ @@ -177,14 +179,14 @@ def dielectric_loss_constant(self) -> float: return float(val) @dielectric_loss_constant.setter - def dielectric_loss_constant(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Dielectric Loss Constant={value}"]) + def dielectric_loss_constant(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Dielectric Loss Constant={value}"]) @property def warnings(self) -> str: - """Warnings - Warning(s) for this node - - """ + """Warning(s) for this node.""" val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py index bf08b1c8fba..67873f51896 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class CADNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,8 +48,7 @@ def delete(self): @property def file(self) -> str: - """File - Name of the imported CAD file + """Name of the imported CAD file. Value should be a full file path. """ @@ -78,289 +73,308 @@ class ModelTypeOption(Enum): @property def model_type(self) -> ModelTypeOption: - """Model Type - Select type of parametric model to create - - """ + """Select type of parametric model to create.""" val = self._get_property("Model Type") val = self.ModelTypeOption[val.upper()] return val @model_type.setter def model_type(self, value: ModelTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Model Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Model Type={value.value}"]) @property def length(self) -> float: - """Length - Length of the model + """Length of the model. - Value should be greater than 1e-06. + Value should be greater than 0.000001. """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") return float(val) @length.setter - def length(self, value: float | str): + def length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Length={value}"]) @property def width(self) -> float: - """Width - Width of the model + """Width of the model. - Value should be greater than 1e-06. + Value should be greater than 0.000001. """ val = self._get_property("Width") val = self._convert_from_internal_units(float(val), "Length") return float(val) @width.setter - def width(self, value: float | str): + def width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Width={value}"]) @property def height(self) -> float: - """Height - Height of the model + """Height of the model. - Value should be greater than 1e-06. + Value should be greater than 0.000001. """ val = self._get_property("Height") val = self._convert_from_internal_units(float(val), "Length") return float(val) @height.setter - def height(self, value: float | str): + def height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Height={value}"]) @property def angle(self) -> float: - """Angle - Angle (deg) between the plates + """Angle (deg) between the plates. - Value should be between 0 and 360. + Value should be between 0.0 and 360.0. """ val = self._get_property("Angle") return float(val) @angle.setter - def angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Angle={value}"]) + def angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Angle={value}"]) @property def top_side(self) -> float: - """Top Side - Side of the top of a equilateral triangular cylinder model + """Side of the top of a equilateral triangular cylinder model. - Value should be greater than 0. + Value should be greater than 0.0. """ val = self._get_property("Top Side") val = self._convert_from_internal_units(float(val), "Length") return float(val) @top_side.setter - def top_side(self, value: float | str): + def top_side(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Top Side={value}"]) @property def top_radius(self) -> float: - """Top Radius - Radius of the top of a tapered cylinder model + """Radius of the top of a tapered cylinder model. - Value should be greater than 0. + Value should be greater than 0.0. """ val = self._get_property("Top Radius") val = self._convert_from_internal_units(float(val), "Length") return float(val) @top_radius.setter - def top_radius(self, value: float | str): + def top_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Top Radius={value}"]) @property def side(self) -> float: - """Side - Side of the equilateral triangular cylinder + """Side of the equilateral triangular cylinder. - Value should be greater than 1e-06. + Value should be greater than 0.000001. """ val = self._get_property("Side") val = self._convert_from_internal_units(float(val), "Length") return float(val) @side.setter - def side(self, value: float | str): + def side(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Side={value}"]) @property def radius(self) -> float: - """Radius - Radius of the sphere or cylinder + """Radius of the sphere or cylinder. - Value should be greater than 1e-06. + Value should be greater than 0.000001. """ val = self._get_property("Radius") val = self._convert_from_internal_units(float(val), "Length") return float(val) @radius.setter - def radius(self, value: float | str): + def radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Radius={value}"]) @property def base_radius(self) -> float: - """Base Radius - Radius of the base of a tophat model + """Radius of the base of a tophat model. - Value should be greater than 1e-06. + Value should be greater than 0.000001. """ val = self._get_property("Base Radius") val = self._convert_from_internal_units(float(val), "Length") return float(val) @base_radius.setter - def base_radius(self, value: float | str): + def base_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Radius={value}"]) @property def center_radius(self) -> float: - """Center Radius - Radius of the raised portion of a tophat model + """Radius of the raised portion of a tophat model. - Value should be greater than 1e-06. + Value should be greater than 0.000001. """ val = self._get_property("Center Radius") val = self._convert_from_internal_units(float(val), "Length") return float(val) @center_radius.setter - def center_radius(self, value: float | str): + def center_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Center Radius={value}"]) @property def x_axis_ellipsoid_radius(self) -> float: - """X Axis Ellipsoid Radius - Ellipsoid semi-principal radius for the X axis + """Ellipsoid semi-principal radius for the X axis. - Value should be greater than 1e-06. + Value should be greater than 0.000001. """ val = self._get_property("X Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") return float(val) @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value: float | str): + def x_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X Axis Ellipsoid Radius={value}"]) @property def y_axis_ellipsoid_radius(self) -> float: - """Y Axis Ellipsoid Radius - Ellipsoid semi-principal radius for the Y axis + """Ellipsoid semi-principal radius for the Y axis. - Value should be greater than 1e-06. + Value should be greater than 0.000001. """ val = self._get_property("Y Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") return float(val) @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value: float | str): + def y_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y Axis Ellipsoid Radius={value}"]) @property def z_axis_ellipsoid_radius(self) -> float: - """Z Axis Ellipsoid Radius - Ellipsoid semi-principal radius for the Z axis + """Ellipsoid semi-principal radius for the Z axis. - Value should be greater than 1e-06. + Value should be greater than 0.000001. """ val = self._get_property("Z Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") return float(val) @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value: float | str): + def z_axis_ellipsoid_radius(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Z Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Z Axis Ellipsoid Radius={value}"]) @property def focal_length(self) -> float: - """Focal Length - Focal length of a parabolic reflector (f = 1/4a where y=ax^2) + """Focal length of a parabolic reflector (f = 1/4a where y=ax^2). - Value should be greater than 1e-06. + Value should be greater than 0.000001. """ val = self._get_property("Focal Length") val = self._convert_from_internal_units(float(val), "Length") return float(val) @focal_length.setter - def focal_length(self, value: float | str): + def focal_length(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Focal Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Focal Length={value}"]) @property def offset(self) -> float: - """Offset - Offset of parabolic reflector - - """ + """Offset of parabolic reflector.""" val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") return float(val) @offset.setter - def offset(self, value: float | str): + def offset(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Offset={value}"]) @property def x_direction_taper(self) -> float: - """X Direction Taper + """X Direction Taper. + Amount (%) that the prism tapers in the X dimension from one end to the - other + other. - Value should be greater than 0. + Value should be greater than 0.0. """ val = self._get_property("X Direction Taper") return float(val) @x_direction_taper.setter - def x_direction_taper(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Direction Taper={value}"]) + def x_direction_taper(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X Direction Taper={value}"]) @property def y_direction_taper(self) -> float: - """Y Direction Taper + """Y Direction Taper. + Amount (%) that the prism tapers in the Y dimension from one end to the - other + other. - Value should be greater than 0. + Value should be greater than 0.0. """ val = self._get_property("Y Direction Taper") return float(val) @y_direction_taper.setter - def y_direction_taper(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Direction Taper={value}"]) + def y_direction_taper(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y Direction Taper={value}"]) @property def prism_direction(self): - """Prism Direction - Direction vector between the center of the base and center of the top + """Prism Direction. + + Direction vector between the center of the base and center of the top. Value should be x/y/z, delimited by spaces. """ @@ -369,41 +383,46 @@ def prism_direction(self): @prism_direction.setter def prism_direction(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Prism Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Prism Direction={value}"]) @property def closed_top(self) -> bool: - """Closed Top - Control whether the top of the model is closed + """Control whether the top of the model is closed. Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return val == true + return (val == true) @closed_top.setter def closed_top(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Top={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Closed Top={value}"]) @property def closed_base(self) -> bool: - """Closed Base - Control whether the base of the model is closed + """Control whether the base of the model is closed. Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return val == true + return (val == true) @closed_base.setter def closed_base(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Base={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Closed Base={value}"]) @property def mesh_density(self) -> int: - """Mesh Density + """Mesh Density. + Unitless mesh density parameter where higher value improves mesh - smoothness + smoothness. Value should be between 1 and 100. """ @@ -412,22 +431,27 @@ def mesh_density(self) -> int: @mesh_density.setter def mesh_density(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Density={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mesh Density={value}"]) @property def use_symmetric_mesh(self) -> bool: - """Use Symmetric Mesh + """Use Symmetric Mesh. + Convert quads to a symmetric triangle mesh by adding a center point (4 - triangles per quad instead of 2) + triangles per quad instead of 2). Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return val == true + return (val == true) @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Symmetric Mesh={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Symmetric Mesh={value}"]) class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -435,22 +459,20 @@ class MeshOptionOption(Enum): @property def mesh_option(self) -> MeshOptionOption: - """Mesh Option - Select from different meshing options - - """ + """Select from different meshing options.""" val = self._get_property("Mesh Option") val = self.MeshOptionOption[val.upper()] return val @mesh_option.setter def mesh_option(self, value: MeshOptionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Option={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mesh Option={value.value}"]) @property def coating_index(self) -> int: - """Coating Index - Coating index for the parametric model primitive + """Coating index for the parametric model primitive. Value should be between 0 and 100000. """ @@ -459,29 +481,31 @@ def coating_index(self) -> int: @coating_index.setter def coating_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Coating Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Coating Index={value}"]) @property def show_relative_coordinates(self) -> bool: - """Show Relative Coordinates + """Show Relative Coordinates. + Show CAD model node position and orientation in parent-node coords - (False) or relative to placement coords (True) + (False) or relative to placement coords (True). Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val == true + return (val == true) @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): - """Position - Set position of the CAD node in parent-node coordinates + """Set position of the CAD node in parent-node coordinates. Value should be x/y/z, delimited by spaces. """ @@ -490,12 +514,15 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): - """Relative Position - Set position of the CAD model node relative to placement coordinates + """Relative Position. + + Set position of the CAD model node relative to placement coordinates. Value should be x/y/z, delimited by spaces. """ @@ -504,7 +531,9 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -512,9 +541,9 @@ class OrientationModeOption(Enum): @property def orientation_mode(self) -> OrientationModeOption: - """Orientation Mode - Select the convention (order of rotations) for configuring orientation + """Orientation Mode. + Select the convention (order of rotations) for configuring orientation. """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] @@ -522,12 +551,13 @@ def orientation_mode(self) -> OrientationModeOption: @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): - """Orientation - Set orientation of the CAD node in parent-node coordinates + """Set orientation of the CAD node in parent-node coordinates. Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ @@ -536,12 +566,15 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): - """Relative Orientation - Set orientation of the CAD model node relative to placement coordinates + """Relative Orientation. + + Set orientation of the CAD model node relative to placement coordinates. Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ @@ -550,21 +583,24 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def visible(self) -> bool: - """Visible - Toggle (on/off) display of CAD model in 3-D window + """Toggle (on/off) display of CAD model in 3-D window. Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -574,36 +610,35 @@ class RenderModeOption(Enum): @property def render_mode(self) -> RenderModeOption: - """Render Mode - Select drawing style for surfaces - - """ + """Select drawing style for surfaces.""" val = self._get_property("Render Mode") val = self.RenderModeOption[val.upper()] return val @render_mode.setter def render_mode(self, value: RenderModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Render Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Render Mode={value.value}"]) @property def show_axes(self) -> bool: - """Show Axes - Toggle (on/off) display of CAD model coordinate axes in 3-D window + """Toggle (on/off) display of CAD model coordinate axes in 3-D window. Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val == true + return (val == true) @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def min(self): - """Min - Minimum x,y,z extents of CAD model in local coordinates + """Minimum x,y,z extents of CAD model in local coordinates. Value should be x/y/z, delimited by spaces. """ @@ -612,8 +647,7 @@ def min(self): @property def max(self): - """Max - Maximum x,y,z extents of CAD model in local coordinates + """Maximum x,y,z extents of CAD model in local coordinates. Value should be x/y/z, delimited by spaces. """ @@ -622,17 +656,13 @@ def max(self): @property def number_of_surfaces(self) -> int: - """Number of Surfaces - Number of surfaces in the model - - """ + """Number of surfaces in the model.""" val = self._get_property("Number of Surfaces") return int(val) @property def color(self): - """Color - Defines the CAD nodes color + """Defines the CAD nodes color. Color should be in RGB form: #RRGGBB. """ @@ -641,17 +671,19 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py index f6c5ee604ce..0cc7e14fba0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py @@ -1,32 +1,30 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class CategoriesViewNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False EmitNode.__init__(self, emit_obj, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/circulator.py index 9763d04c085..bacf8ad39e4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/circulator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Circulator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -47,8 +43,7 @@ def delete(self): @property def filename(self) -> str: - """Filename - Name of file defining the Isolator/Circulator + """Name of file defining the Isolator/Circulator. Value should be a full file path. """ @@ -57,12 +52,13 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: - """Noise Temperature - System Noise temperature (K) of the component + """System Noise temperature (K) of the component. Value should be between 0 and 1000. """ @@ -70,21 +66,22 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -92,10 +89,10 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: - """Type - Type of circulator model to use. Options include: By File (measured or - simulated) or Parametric + """Type. + Type of circulator model to use. Options include: By File (measured or + simulated) or Parametric. """ val = self._get_property("Type") val = self.TypeOption[val.upper()] @@ -103,7 +100,9 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -111,22 +110,20 @@ class Port1LocationOption(Enum): @property def port_1_location(self) -> Port1LocationOption: - """Port 1 Location - Defines the orientation of the circulator. - - """ + """Defines the orientation of the circulator.""" val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: - """Insertion Loss - Circulator in-band loss in forward direction. + """Circulator in-band loss in forward direction. Value should be between 0 and 100. """ @@ -134,28 +131,32 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: - """Finite Reverse Isolation + """Finite Reverse Isolation. + Use a finite reverse isolation. If disabled, the circulator model is - ideal (infinite reverse isolation). + ideal (infinite reverse isolation). Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val == true + return (val == true) @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: - """Reverse Isolation - Circulator reverse isolation (i.e., loss in the reverse direction). + """Circulator reverse isolation (i.e., loss in the reverse direction). Value should be between 0 and 100. """ @@ -163,28 +164,32 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: - """Finite Bandwidth + """Finite Bandwidth. + Use a finite bandwidth. If disabled, the circulator model is ideal - (infinite bandwidth). + (infinite bandwidth). Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val == true + return (val == true) @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: - """Out-of-band Attenuation - Out-of-band loss (attenuation) + """Out-of-band loss (attenuation). Value should be between 0 and 200. """ @@ -192,78 +197,82 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: - """Lower Stop Band - Lower stop band frequency + """Lower stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: - """Lower Cutoff - Lower cutoff frequency + """Lower cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: - """Higher Cutoff - Higher cutoff frequency + """Higher cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: - """Higher Stop Band - Higher stop band frequency + """Higher stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: - """Warnings - Warning(s) for this node - - """ + """Warning(s) for this node.""" val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py index e8c782cc450..7e0325d0828 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class CouplingLinkNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,28 +35,28 @@ def parent(self): @property def enabled(self) -> bool: - """Enabled - Enable/Disable coupling link + """Enable/Disable coupling link. Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def ports(self): - """Ports - Maps each port in the link to an antenna in the project - - "A list of values." - """ + """Maps each port in the link to an antenna in the project.""" val = self._get_property("Ports") return val @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ports={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py index 8f27d86e9fe..142969a97b0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class CouplingTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,78 +48,85 @@ def delete(self): @property def transmitter(self) -> EmitNode: - """Transmitter""" + """Transmitter.""" val = self._get_property("Transmitter") return val @transmitter.setter def transmitter(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Transmitter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Transmitter={value}"]) @property def receiver(self) -> EmitNode: - """Receiver""" + """Receiver.""" val = self._get_property("Receiver") return val @receiver.setter def receiver(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Receiver={value}"]) @property def data_source(self): - """Data Source - Identifies tree node serving as data source for plot trace, click link - to find it + """Data Source. + Identifies tree node serving as data source for plot trace, click link + to find it. """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: - """Visible - Toggle (on/off) display of this plot trace + """Toggle (on/off) display of this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: - """Custom Legend - Enable/disable custom legend entry for this plot trace + """Enable/disable custom legend entry for this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: - """Name - Enter name of plot trace as it will appear in legend - - """ + """Enter name of plot trace as it will appear in legend.""" val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -135,22 +138,20 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: - """Style - Specify line style of plot trace - - """ + """Specify line style of plot trace.""" val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: - """Line Width - Specify line width of plot trace + """Specify line width of plot trace. Value should be between 1 and 100. """ @@ -159,12 +160,13 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): - """Line Color - Specify line color of plot trace + """Specify line color of plot trace. Color should be in RGB form: #RRGGBB. """ @@ -173,7 +175,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -194,22 +198,20 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: - """Symbol - Select symbol to mark points along plot trace - - """ + """Select symbol to mark points along plot trace.""" val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: - """Symbol Size - Set size (in points) of symbols marking points along plot trace + """Set size (in points) of symbols marking points along plot trace. Value should be between 1 and 1000. """ @@ -218,12 +220,13 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): - """Symbol Color - Specify color of symbols marking points along plot trace + """Specify color of symbols marking points along plot trace. Color should be in RGB form: #RRGGBB. """ @@ -232,12 +235,13 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: - """Symbol Line Width - Set the width of the line used to draw the symbol + """Set the width of the line used to draw the symbol. Value should be between 1 and 20. """ @@ -246,55 +250,61 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: - """Symbol Filled + """Symbol Filled. + If true, the interior of the symbol is filled - has no effect for some - symbol types + symbol types. Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def highlight_regions(self) -> bool: - """Highlight Regions - If true, regions of the trace are highlighted + """If true, regions of the trace are highlighted. Value should be 'true' or 'false'. """ val = self._get_property("Highlight Regions") - return val == true + return (val == true) @highlight_regions.setter def highlight_regions(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highlight Regions={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Highlight Regions={value}"]) @property def show_region_labels(self) -> bool: - """Show Region Labels - If true, regions of the trace are labelled + """If true, regions of the trace are labelled. Value should be 'true' or 'false'. """ val = self._get_property("Show Region Labels") - return val == true + return (val == true) @show_region_labels.setter def show_region_labels(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Region Labels={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Region Labels={value}"]) @property def font(self): - """Font - Specify font used for the label + """Specify font used for the label. Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ @@ -303,12 +313,13 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): - """Color - Specify color of the label text + """Specify color of the label text. Color should be in RGB form: #RRGGBB. """ @@ -317,12 +328,13 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): - """Background Color - Set color of the label text background + """Set color of the label text background. Color should be in RGBA form: #AARRGGBB. """ @@ -331,26 +343,28 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: - """Border - Display a border around the label text + """Display a border around the label text. Value should be 'true' or 'false'. """ val = self._get_property("Border") - return val == true + return (val == true) @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: - """Border Width - Set the width of the border around the label text + """Set the width of the border around the label text. Value should be between 1 and 20. """ @@ -359,12 +373,13 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): - """Border Color - Set color of the border around the label text + """Set color of the border around the label text. Color should be in RGB form: #RRGGBB. """ @@ -373,4 +388,7 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py index e5e8bfc8bf4..f45b7d276f7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class CouplingsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -33,7 +30,7 @@ def __init__(self, emit_obj, result_id, node_id): def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" - return self._import(file_name, "TouchstoneCoupling") + return self._import(file_name,"TouchstoneCoupling") def add_custom_coupling(self): """Add a new node to define custom coupling between antennas""" @@ -73,9 +70,10 @@ def add_5g_channel_model_coupling(self): @property def minimum_allowed_coupling(self) -> float: - """Minimum Allowed Coupling + """Minimum Allowed Coupling. + Global minimum allowed coupling value. All computed coupling within this - project will be >= this value + project will be >= this value. Value should be between -1000 and 1000. """ @@ -83,13 +81,14 @@ def minimum_allowed_coupling(self) -> float: return float(val) @minimum_allowed_coupling.setter - def minimum_allowed_coupling(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Allowed Coupling={value}"]) + def minimum_allowed_coupling(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minimum Allowed Coupling={value}"]) @property def global_default_coupling(self) -> float: - """Global Default Coupling - Default antenna-to-antenna coupling loss value + """Default antenna-to-antenna coupling loss value. Value should be between -1000 and 0. """ @@ -97,14 +96,14 @@ def global_default_coupling(self) -> float: return float(val) @global_default_coupling.setter - def global_default_coupling(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Global Default Coupling={value}"]) + def global_default_coupling(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Global Default Coupling={value}"]) @property def antenna_tags(self) -> str: - """Antenna Tags - All tags currently used by all antennas in the project - - """ + """All tags currently used by all antennas in the project.""" val = self._get_property("Antenna Tags") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py index fff9314625f..b13a176d988 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class CustomCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,7 +35,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def rename(self, new_name: str): """Rename this node""" @@ -54,12 +51,12 @@ def delete(self): @property def table_data(self): - """Table" - "Table consists of 2 columns." - "Frequency: - Value should be between 1 and 1e+11. - "Value (dB): - Value should be between -1000 and 0. + """Table. + Table consists of 2 columns. + Frequency: + Value should be between 1.0 and 100.0e9. + Value (dB): + Value should be between -1000.0 and 0.0. """ return self._get_table_data() @@ -69,81 +66,82 @@ def table_data(self, value): @property def enabled(self) -> bool: - """Enabled - Enable/Disable coupling + """Enable/Disable coupling. Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: - """Antenna A - First antenna of the pair to apply the coupling values to - - """ + """First antenna of the pair to apply the coupling values to.""" val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: - """Antenna B - Second antenna of the pair to apply the coupling values to - - """ + """Second antenna of the pair to apply the coupling values to.""" val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: - """Enable Refinement - Enables/disables refined sampling of the frequency domain. + """Enables/disables refined sampling of the frequency domain. Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: - """Adaptive Sampling - Enables/disables adaptive refinement the frequency domain sampling. + """Enables/disables adaptive refinement the frequency domain sampling. Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): - """Refinement Domain - Points to use when refining the frequency domain. - - """ + """Points to use when refining the frequency domain.""" val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py index 65306c2efda..bf444fdf787 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class EmiPlotMarkerNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,70 +48,71 @@ def delete(self): @property def visible(self) -> bool: - """Visible - Toggle (on/off) this marker + """Toggle (on/off) this marker. Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def attached(self): - """Attached - Attach marker to a fixed X-Y point on the plot (True), or to a fixed - point on the plot window (False) + """Attached. + Attach marker to a fixed X-Y point on the plot (True), or to a fixed + point on the plot window (False). """ val = self._get_property("Attached") return val @attached.setter def attached(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Attached={value}"]) @property def position_x(self) -> float: - """Position X - Position of the marker on the X-axis (frequency axis). - - """ + """Position of the marker on the X-axis (frequency axis).""" val = self._get_property("Position X") return float(val) @property def position_y(self) -> float: - """Position Y - Position of the marker on the Y-axis (result axis). - - """ + """Position of the marker on the Y-axis (result axis).""" val = self._get_property("Position Y") return float(val) @property def floating_label(self) -> bool: - """Floating Label + """Floating Label. + Allow marker label to be positioned at a fixed point on the plot window - (the marker symbol remains fixed to the specified X-Y point) + (the marker symbol remains fixed to the specified X-Y point). Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return val == true + return (val == true) @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Floating Label={value}"]) @property def position_from_left(self) -> float: - """Position from Left + """Position from Left. + Set position of label from left to right as a percentage of the width of - the plot window + the plot window. Value should be between 0 and 100. """ @@ -123,14 +120,17 @@ def position_from_left(self) -> float: return float(val) @position_from_left.setter - def position_from_left(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) + def position_from_left(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Left={value}"]) @property def position_from_top(self) -> float: - """Position from Top + """Position from Top. + Set position of label from top to bottom as a percentage of the height - of the plot window + of the plot window. Value should be between 0 and 100. """ @@ -138,21 +138,22 @@ def position_from_top(self) -> float: return float(val) @position_from_top.setter - def position_from_top(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) + def position_from_top(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Top={value}"]) @property def text(self) -> str: - """Text - Set the text of the label - - """ + """Set the text of the label.""" val = self._get_property("Text") return val @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -161,19 +162,16 @@ class HorizontalPositionOption(Enum): @property def horizontal_position(self) -> HorizontalPositionOption: - """Horizontal Position - Specify horizontal position of the label as compared to the symbol - - """ + """Specify horizontal position of the label as compared to the symbol.""" val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val.upper()] return val @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Horizontal Position={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Position={value.value}"]) class VerticalPositionOption(Enum): TOP = "Top" @@ -182,17 +180,16 @@ class VerticalPositionOption(Enum): @property def vertical_position(self) -> VerticalPositionOption: - """Vertical Position - Specify vertical position of the label as compared to the symbol - - """ + """Specify vertical position of the label as compared to the symbol.""" val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val.upper()] return val @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -201,22 +198,20 @@ class TextAlignmentOption(Enum): @property def text_alignment(self) -> TextAlignmentOption: - """Text Alignment - Specify justification applied to multi-line text - - """ + """Specify justification applied to multi-line text.""" val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val.upper()] return val @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text Alignment={value.value}"]) @property def font(self): - """Font - Specify font used for the label + """Specify font used for the label. Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ @@ -225,12 +220,13 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): - """Color - Specify color of the label text + """Specify color of the label text. Color should be in RGB form: #RRGGBB. """ @@ -239,12 +235,13 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): - """Background Color - Set color of the label text background + """Set color of the label text background. Color should be in RGBA form: #AARRGGBB. """ @@ -253,26 +250,28 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: - """Border - Display a border around the label text + """Display a border around the label text. Value should be 'true' or 'false'. """ val = self._get_property("Border") - return val == true + return (val == true) @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: - """Border Width - Set the width of the border around the label text + """Set the width of the border around the label text. Value should be between 1 and 20. """ @@ -281,12 +280,13 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): - """Border Color - Set color of the border around the label text + """Set color of the border around the label text. Color should be in RGB form: #RRGGBB. """ @@ -295,7 +295,9 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -317,22 +319,20 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: - """Symbol - Specify symbol displayed next to the label - - """ + """Specify symbol displayed next to the label.""" val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: - """Arrow Direction - Set direction of the arrow; zero degrees is up + """Set direction of the arrow; zero degrees is up. Value should be between -360 and 360. """ @@ -341,12 +341,13 @@ def arrow_direction(self) -> int: @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: - """Symbol Size - Set size of the symbol used for this marker + """Set size of the symbol used for this marker. Value should be between 1 and 1000. """ @@ -355,12 +356,13 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): - """Symbol Color - Set color of the symbol used for this marker + """Set color of the symbol used for this marker. Color should be in RGB form: #RRGGBB. """ @@ -369,12 +371,13 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def line_width(self) -> int: - """Line Width - Set the width of the line used to draw the symbol + """Set the width of the line used to draw the symbol. Value should be between 1 and 20. """ @@ -383,19 +386,25 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def filled(self) -> bool: - """Filled + """Filled. + If true, the interior of the symbol is filled - has no effect for some - symbol types + symbol types. Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return val == true + return (val == true) @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py index 799d2b928fc..b7cadb2582c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class EmitSceneNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -39,16 +35,15 @@ def add_group(self): @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class GroundPlaneNormalOption(Enum): X_AXIS = "X Axis" @@ -57,32 +52,32 @@ class GroundPlaneNormalOption(Enum): @property def ground_plane_normal(self) -> GroundPlaneNormalOption: - """Ground Plane Normal - Specifies the axis of the normal to the ground plane - - """ + """Specifies the axis of the normal to the ground plane.""" val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val.upper()] return val @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ground Plane Normal={value.value}"]) @property def gp_position_along_normal(self) -> float: - """GP Position Along Normal - Offset of ground plane in direction normal to the ground planes - orientation + """GP Position Along Normal. + Offset of ground plane in direction normal to the ground planes + orientation. """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return float(val) @gp_position_along_normal.setter - def gp_position_along_normal(self, value: float | str): + def gp_position_along_normal(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GP Position Along Normal={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"GP Position Along Normal={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py index 935b7871aed..54ce88833a3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ErcegCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,84 +48,84 @@ def delete(self): @property def enabled(self) -> bool: - """Enabled - Enable/Disable coupling + """Enable/Disable coupling. Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: - """Base Antenna - First antenna of the pair to apply the coupling values to - - """ + """First antenna of the pair to apply the coupling values to.""" val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: - """Mobile Antenna - Second antenna of the pair to apply the coupling values to - - """ + """Second antenna of the pair to apply the coupling values to.""" val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: - """Enable Refinement - Enables/disables refined sampling of the frequency domain. + """Enables/disables refined sampling of the frequency domain. Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: - """Adaptive Sampling - Enables/disables adaptive refinement the frequency domain sampling. + """Enables/disables adaptive refinement the frequency domain sampling. Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): - """Refinement Domain - Points to use when refining the frequency domain. - - """ + """Points to use when refining the frequency domain.""" val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class TerrainCategoryOption(Enum): TYPE_A = "Type A" @@ -138,23 +134,23 @@ class TerrainCategoryOption(Enum): @property def terrain_category(self) -> TerrainCategoryOption: - """Terrain Category - Specify the terrain category type for the Erceg model - - """ + """Specify the terrain category type for the Erceg model.""" val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val.upper()] return val @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Terrain Category={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Terrain Category={value.value}"]) @property def custom_fading_margin(self) -> float: - """Custom Fading Margin + """Custom Fading Margin. + Sets a custom fading margin to be applied to all coupling defined by - this node + this node. Value should be between 0 and 100. """ @@ -162,14 +158,17 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: - """Polarization Mismatch + """Polarization Mismatch. + Sets a margin for polarization mismatch to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -177,14 +176,17 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: - """Pointing Error Loss + """Pointing Error Loss. + Sets a margin for pointing error loss to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -192,8 +194,10 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -203,66 +207,71 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: - """Fading Type - Specify the type of fading to include - - """ + """Specify the type of fading to include.""" val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: - """Fading Availability + """Fading Availability. + The probability that the propagation loss in dB is below its median - value plus the margin + value plus the margin. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Fading Availability") return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: - """Std Deviation - Standard deviation modeling the random amount of shadowing loss + """Standard deviation modeling the random amount of shadowing loss. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Std Deviation") return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: - """Include Rain Attenuation - Adds a margin for rain attenuation to the computed coupling + """Adds a margin for rain attenuation to the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: - """Rain Availability + """Rain Availability. + Percentage of time attenuation due to range is < computed margin (range - from 99-99.999%) + from 99-99.999%). Value should be between 99 and 99.999. """ @@ -270,95 +279,104 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: - """Rain Rate - Rain rate (mm/hr) exceeded for 0.01% of the time + """Rain rate (mm/hr) exceeded for 0.01% of the time. - Value should be between 0 and 1000. + Value should be between 0.0 and 1000.0. """ val = self._get_property("Rain Rate") return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: - """Polarization Tilt Angle + """Polarization Tilt Angle. + Polarization tilt angle of the transmitted signal relative to the - horizontal + horizontal. - Value should be between 0 and 180. + Value should be between 0.0 and 180.0. """ val = self._get_property("Polarization Tilt Angle") return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: - """Include Atmospheric Absorption + """Include Atmospheric Absorption. + Adds a margin for atmospheric absorption due to oxygen/water vapor to - the computed coupling + the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: - """Temperature - Air temperature in degrees Celsius + """Air temperature in degrees Celsius. - Value should be between -273 and 100. + Value should be between -273.0 and 100.0. """ val = self._get_property("Temperature") return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: - """Total Air Pressure - Total air pressure + """Total air pressure. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Total Air Pressure") return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: - """Water Vapor Concentration - Water vapor concentration + """Water vapor concentration. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Water Vapor Concentration") return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/filter.py index ed1ebd0933f..c6f28c90052 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/filter.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Filter(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -47,8 +43,7 @@ def delete(self): @property def filename(self) -> str: - """Filename - Name of file defining the outboard component + """Name of file defining the outboard component. Value should be a full file path. """ @@ -57,12 +52,13 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: - """Noise Temperature - System Noise temperature (K) of the component + """System Noise temperature (K) of the component. Value should be between 0 and 1000. """ @@ -70,21 +66,22 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -97,10 +94,10 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: - """Type - Type of filter to define. The filter can be defined by file (measured or - simulated data) or using one of EMIT's parametric models + """Type. + Type of filter to define. The filter can be defined by file (measured or + simulated data) or using one of EMIT's parametric models. """ val = self._get_property("Type") val = self.TypeOption[val.upper()] @@ -108,12 +105,13 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def insertion_loss(self) -> float: - """Insertion Loss - Filter pass band loss + """Filter pass band loss. Value should be between 0 and 100. """ @@ -121,13 +119,14 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: - """Stop band Attenuation - Filter stop band loss (attenuation) + """Filter stop band loss (attenuation). Value should be less than 200. """ @@ -135,237 +134,252 @@ def stop_band_attenuation(self) -> float: return float(val) @stop_band_attenuation.setter - def stop_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: - """Max Pass Band - Maximum pass band frequency + """Maximum pass band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @max_pass_band.setter - def max_pass_band(self, value: float | str): + def max_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: - """Min Stop Band - Minimum stop band frequency + """Minimum stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @min_stop_band.setter - def min_stop_band(self, value: float | str): + def min_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: - """Max Stop Band - Maximum stop band frequency + """Maximum stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @max_stop_band.setter - def max_stop_band(self, value: float | str): + def max_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: - """Min Pass Band - Minimum pass band frequency + """Minimum pass band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @min_pass_band.setter - def min_pass_band(self, value: float | str): + def min_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: - """Lower Stop Band - Lower stop band frequency + """Lower stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: - """Lower Cutoff - Lower cutoff frequency + """Lower cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: - """Higher Cutoff - Higher cutoff frequency + """Higher cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: - """Higher Stop Band - Higher stop band frequency + """Higher stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property - def lower_cutoff_(self) -> float: - """Lower Cutoff - Lower cutoff frequency + def lower_cutoff(self) -> float: + """Lower cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") return float(val) - @lower_cutoff_.setter - def lower_cutoff_(self, value: float | str): + @lower_cutoff.setter + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff ={value}"]) @property - def lower_stop_band_(self) -> float: - """Lower Stop Band - Lower stop band frequency + def lower_stop_band(self) -> float: + """Lower stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") return float(val) - @lower_stop_band_.setter - def lower_stop_band_(self, value: float | str): + @lower_stop_band.setter + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band ={value}"]) @property - def higher_stop_band_(self) -> float: - """Higher Stop Band - Higher stop band frequency + def higher_stop_band(self) -> float: + """Higher stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") return float(val) - @higher_stop_band_.setter - def higher_stop_band_(self, value: float | str): + @higher_stop_band.setter + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band ={value}"]) @property - def higher_cutoff_(self) -> float: - """Higher Cutoff - Higher cutoff frequency + def higher_cutoff(self) -> float: + """Higher cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") return float(val) - @higher_cutoff_.setter - def higher_cutoff_(self, value: float | str): + @higher_cutoff.setter + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff ={value}"]) @property - def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency - Lowest tuned frequency + def lowest_tuned_frequency(self) -> float: + """Lowest tuned frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lowest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") return float(val) - @lowest_tuned_frequency_.setter - def lowest_tuned_frequency_(self, value: float | str): + @lowest_tuned_frequency.setter + def lowest_tuned_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lowest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lowest Tuned Frequency ={value}"]) @property - def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency - Highest tuned frequency + def highest_tuned_frequency(self) -> float: + """Highest tuned frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Highest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") return float(val) - @highest_tuned_frequency_.setter - def highest_tuned_frequency_(self, value: float | str): + @highest_tuned_frequency.setter + def highest_tuned_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Highest Tuned Frequency ={value}"]) @property def percent_bandwidth(self) -> float: - """Percent Bandwidth - Tunable filter 3-dB bandwidth + """Tunable filter 3-dB bandwidth. Value should be between 0.001 and 100. """ @@ -373,13 +387,14 @@ def percent_bandwidth(self) -> float: return float(val) @percent_bandwidth.setter - def percent_bandwidth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percent Bandwidth={value}"]) + def percent_bandwidth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Percent Bandwidth={value}"]) @property def shape_factor(self) -> float: - """Shape Factor - Ratio defining the filter rolloff + """Ratio defining the filter rolloff. Value should be between 1 and 100. """ @@ -387,14 +402,14 @@ def shape_factor(self) -> float: return float(val) @shape_factor.setter - def shape_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) + def shape_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Shape Factor={value}"]) @property def warnings(self) -> str: - """Warnings - Warning(s) for this node - - """ + """Warning(s) for this node.""" val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py b/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py index 768956c991c..5ee57a793c6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class FiveGChannelModel(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,84 +48,84 @@ def delete(self): @property def enabled(self) -> bool: - """Enabled - Enable/Disable coupling + """Enable/Disable coupling. Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: - """Base Antenna - First antenna of the pair to apply the coupling values to - - """ + """First antenna of the pair to apply the coupling values to.""" val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: - """Mobile Antenna - Second antenna of the pair to apply the coupling values to - - """ + """Second antenna of the pair to apply the coupling values to.""" val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: - """Enable Refinement - Enables/disables refined sampling of the frequency domain. + """Enables/disables refined sampling of the frequency domain. Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: - """Adaptive Sampling - Enables/disables adaptive refinement the frequency domain sampling. + """Enables/disables adaptive refinement the frequency domain sampling. Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): - """Refinement Domain - Points to use when refining the frequency domain. - - """ + """Points to use when refining the frequency domain.""" val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): URBAN_MICROCELL = "Urban Microcell" @@ -138,45 +134,46 @@ class EnvironmentOption(Enum): @property def environment(self) -> EnvironmentOption: - """Environment - Specify the environment for the 5G channel model - - """ + """Specify the environment for the 5G channel model.""" val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def los(self) -> bool: - """LOS - True if the operating environment is line-of-sight + """True if the operating environment is line-of-sight. Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return val == true + return (val == true) @los.setter def los(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"LOS={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"LOS={value}"]) @property def include_bpl(self) -> bool: - """Include BPL - Includes building penetration loss if true + """Includes building penetration loss if true. Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return val == true + return (val == true) @include_bpl.setter def include_bpl(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include BPL={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include BPL={value}"]) class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -184,23 +181,23 @@ class NYUBPLModelOption(Enum): @property def nyu_bpl_model(self) -> NYUBPLModelOption: - """NYU BPL Model - Specify the NYU Building Penetration Loss model - - """ + """Specify the NYU Building Penetration Loss model.""" val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val.upper()] return val @nyu_bpl_model.setter def nyu_bpl_model(self, value: NYUBPLModelOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NYU BPL Model={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NYU BPL Model={value.value}"]) @property def custom_fading_margin(self) -> float: - """Custom Fading Margin + """Custom Fading Margin. + Sets a custom fading margin to be applied to all coupling defined by - this node + this node. Value should be between 0 and 100. """ @@ -208,14 +205,17 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: - """Polarization Mismatch + """Polarization Mismatch. + Sets a margin for polarization mismatch to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -223,14 +223,17 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: - """Pointing Error Loss + """Pointing Error Loss. + Sets a margin for pointing error loss to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -238,8 +241,10 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -249,66 +254,71 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: - """Fading Type - Specify the type of fading to include - - """ + """Specify the type of fading to include.""" val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: - """Fading Availability + """Fading Availability. + The probability that the propagation loss in dB is below its median - value plus the margin + value plus the margin. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Fading Availability") return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: - """Std Deviation - Standard deviation modeling the random amount of shadowing loss + """Standard deviation modeling the random amount of shadowing loss. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Std Deviation") return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: - """Include Rain Attenuation - Adds a margin for rain attenuation to the computed coupling + """Adds a margin for rain attenuation to the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: - """Rain Availability + """Rain Availability. + Percentage of time attenuation due to range is < computed margin (range - from 99-99.999%) + from 99-99.999%). Value should be between 99 and 99.999. """ @@ -316,95 +326,104 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: - """Rain Rate - Rain rate (mm/hr) exceeded for 0.01% of the time + """Rain rate (mm/hr) exceeded for 0.01% of the time. - Value should be between 0 and 1000. + Value should be between 0.0 and 1000.0. """ val = self._get_property("Rain Rate") return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: - """Polarization Tilt Angle + """Polarization Tilt Angle. + Polarization tilt angle of the transmitted signal relative to the - horizontal + horizontal. - Value should be between 0 and 180. + Value should be between 0.0 and 180.0. """ val = self._get_property("Polarization Tilt Angle") return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: - """Include Atmospheric Absorption + """Include Atmospheric Absorption. + Adds a margin for atmospheric absorption due to oxygen/water vapor to - the computed coupling + the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: - """Temperature - Air temperature in degrees Celsius + """Air temperature in degrees Celsius. - Value should be between -273 and 100. + Value should be between -273.0 and 100.0. """ val = self._get_property("Temperature") return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: - """Total Air Pressure - Total air pressure + """Total air pressure. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Total Air Pressure") return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: - """Water Vapor Concentration - Water vapor concentration + """Water vapor concentration. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Water Vapor Concentration") return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py index 1c92cfcc0d6..b7cd3dbf960 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class HataCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,84 +48,84 @@ def delete(self): @property def enabled(self) -> bool: - """Enabled - Enable/Disable coupling + """Enable/Disable coupling. Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: - """Base Antenna - First antenna of the pair to apply the coupling values to - - """ + """First antenna of the pair to apply the coupling values to.""" val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: - """Mobile Antenna - Second antenna of the pair to apply the coupling values to - - """ + """Second antenna of the pair to apply the coupling values to.""" val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: - """Enable Refinement - Enables/disables refined sampling of the frequency domain. + """Enables/disables refined sampling of the frequency domain. Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: - """Adaptive Sampling - Enables/disables adaptive refinement the frequency domain sampling. + """Enables/disables adaptive refinement the frequency domain sampling. Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): - """Refinement Domain - Points to use when refining the frequency domain. - - """ + """Points to use when refining the frequency domain.""" val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): LARGE_CITY = "Large City" @@ -139,23 +135,23 @@ class EnvironmentOption(Enum): @property def environment(self) -> EnvironmentOption: - """Environment - Specify the environment type for the Hata model - - """ + """Specify the environment type for the Hata model.""" val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def custom_fading_margin(self) -> float: - """Custom Fading Margin + """Custom Fading Margin. + Sets a custom fading margin to be applied to all coupling defined by - this node + this node. Value should be between 0 and 100. """ @@ -163,14 +159,17 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: - """Polarization Mismatch + """Polarization Mismatch. + Sets a margin for polarization mismatch to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -178,14 +177,17 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: - """Pointing Error Loss + """Pointing Error Loss. + Sets a margin for pointing error loss to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -193,8 +195,10 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -204,66 +208,71 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: - """Fading Type - Specify the type of fading to include - - """ + """Specify the type of fading to include.""" val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: - """Fading Availability + """Fading Availability. + The probability that the propagation loss in dB is below its median - value plus the margin + value plus the margin. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Fading Availability") return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: - """Std Deviation - Standard deviation modeling the random amount of shadowing loss + """Standard deviation modeling the random amount of shadowing loss. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Std Deviation") return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: - """Include Rain Attenuation - Adds a margin for rain attenuation to the computed coupling + """Adds a margin for rain attenuation to the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: - """Rain Availability + """Rain Availability. + Percentage of time attenuation due to range is < computed margin (range - from 99-99.999%) + from 99-99.999%). Value should be between 99 and 99.999. """ @@ -271,95 +280,104 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: - """Rain Rate - Rain rate (mm/hr) exceeded for 0.01% of the time + """Rain rate (mm/hr) exceeded for 0.01% of the time. - Value should be between 0 and 1000. + Value should be between 0.0 and 1000.0. """ val = self._get_property("Rain Rate") return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: - """Polarization Tilt Angle + """Polarization Tilt Angle. + Polarization tilt angle of the transmitted signal relative to the - horizontal + horizontal. - Value should be between 0 and 180. + Value should be between 0.0 and 180.0. """ val = self._get_property("Polarization Tilt Angle") return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: - """Include Atmospheric Absorption + """Include Atmospheric Absorption. + Adds a margin for atmospheric absorption due to oxygen/water vapor to - the computed coupling + the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: - """Temperature - Air temperature in degrees Celsius + """Air temperature in degrees Celsius. - Value should be between -273 and 100. + Value should be between -273.0 and 100.0. """ val = self._get_property("Temperature") return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: - """Total Air Pressure - Total air pressure + """Total air pressure. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Total Air Pressure") return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: - """Water Vapor Concentration - Water vapor concentration + """Water vapor concentration. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Water Vapor Concentration") return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py index 629ef32b5a7..675e9c6d785 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class IndoorPropagationCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,14 +48,14 @@ def delete(self): @property def table_data(self): - """Table" - "Table consists of 3 columns." - "Frequency: - Value should be between 1 and 1e+11. - "Power Loss Coefficient: - Value should be between 0 and 100. - "Floor Penetration Loss (dB): - Value should be between 0 and 1000. + """Table. + Table consists of 3 columns. + Frequency: + Value should be between 1.0 and 100.0e9. + Power Loss Coefficient: + Value should be between 0.0 and 100.0. + Floor Penetration Loss (dB): + Value should be between 0.0 and 1000.0. """ return self._get_table_data() @@ -69,84 +65,84 @@ def table_data(self, value): @property def enabled(self) -> bool: - """Enabled - Enable/Disable coupling + """Enable/Disable coupling. Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: - """Antenna A - First antenna of the pair to apply the coupling values to - - """ + """First antenna of the pair to apply the coupling values to.""" val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: - """Antenna B - Second antenna of the pair to apply the coupling values to - - """ + """Second antenna of the pair to apply the coupling values to.""" val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: - """Enable Refinement - Enables/disables refined sampling of the frequency domain. + """Enables/disables refined sampling of the frequency domain. Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: - """Adaptive Sampling - Enables/disables adaptive refinement the frequency domain sampling. + """Enables/disables adaptive refinement the frequency domain sampling. Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): - """Refinement Domain - Points to use when refining the frequency domain. - - """ + """Points to use when refining the frequency domain.""" val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class BuildingTypeOption(Enum): RESIDENTIAL_APARTMENT = "Residential Apartment" @@ -157,22 +153,20 @@ class BuildingTypeOption(Enum): @property def building_type(self) -> BuildingTypeOption: - """Building Type - Specify the building type for the Indoor Propagation model - - """ + """Specify the building type for the Indoor Propagation model.""" val = self._get_property("Building Type") val = self.BuildingTypeOption[val.upper()] return val @building_type.setter def building_type(self, value: BuildingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Building Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Building Type={value.value}"]) @property def number_of_floors(self) -> int: - """Number of Floors - The number of floors separating the antennas. + """The number of floors separating the antennas. Value should be between 1 and 3. """ @@ -181,13 +175,16 @@ def number_of_floors(self) -> int: @number_of_floors.setter def number_of_floors(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Floors={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Floors={value}"]) @property def custom_fading_margin(self) -> float: - """Custom Fading Margin + """Custom Fading Margin. + Sets a custom fading margin to be applied to all coupling defined by - this node + this node. Value should be between 0 and 100. """ @@ -195,14 +192,17 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: - """Polarization Mismatch + """Polarization Mismatch. + Sets a margin for polarization mismatch to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -210,14 +210,17 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: - """Pointing Error Loss + """Pointing Error Loss. + Sets a margin for pointing error loss to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -225,8 +228,10 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -236,66 +241,71 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: - """Fading Type - Specify the type of fading to include - - """ + """Specify the type of fading to include.""" val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: - """Fading Availability + """Fading Availability. + The probability that the propagation loss in dB is below its median - value plus the margin + value plus the margin. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Fading Availability") return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: - """Std Deviation - Standard deviation modeling the random amount of shadowing loss + """Standard deviation modeling the random amount of shadowing loss. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Std Deviation") return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: - """Include Rain Attenuation - Adds a margin for rain attenuation to the computed coupling + """Adds a margin for rain attenuation to the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: - """Rain Availability + """Rain Availability. + Percentage of time attenuation due to range is < computed margin (range - from 99-99.999%) + from 99-99.999%). Value should be between 99 and 99.999. """ @@ -303,95 +313,104 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: - """Rain Rate - Rain rate (mm/hr) exceeded for 0.01% of the time + """Rain rate (mm/hr) exceeded for 0.01% of the time. - Value should be between 0 and 1000. + Value should be between 0.0 and 1000.0. """ val = self._get_property("Rain Rate") return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: - """Polarization Tilt Angle + """Polarization Tilt Angle. + Polarization tilt angle of the transmitted signal relative to the - horizontal + horizontal. - Value should be between 0 and 180. + Value should be between 0.0 and 180.0. """ val = self._get_property("Polarization Tilt Angle") return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: - """Include Atmospheric Absorption + """Include Atmospheric Absorption. + Adds a margin for atmospheric absorption due to oxygen/water vapor to - the computed coupling + the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: - """Temperature - Air temperature in degrees Celsius + """Air temperature in degrees Celsius. - Value should be between -273 and 100. + Value should be between -273.0 and 100.0. """ val = self._get_property("Temperature") return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: - """Total Air Pressure - Total air pressure + """Total air pressure. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Total Air Pressure") return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: - """Water Vapor Concentration - Water vapor concentration + """Water vapor concentration. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Water Vapor Concentration") return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/isolator.py index fa4db3f622a..69453eb93ed 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/isolator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Isolator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -47,8 +43,7 @@ def delete(self): @property def filename(self) -> str: - """Filename - Name of file defining the outboard component + """Name of file defining the outboard component. Value should be a full file path. """ @@ -57,12 +52,13 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: - """Noise Temperature - System Noise temperature (K) of the component + """System Noise temperature (K) of the component. Value should be between 0 and 1000. """ @@ -70,21 +66,22 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -92,10 +89,10 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: - """Type - Type of isolator model to use. Options include: By File (measured or - simulated) or Parametric + """Type. + Type of isolator model to use. Options include: By File (measured or + simulated) or Parametric. """ val = self._get_property("Type") val = self.TypeOption[val.upper()] @@ -103,7 +100,9 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -111,22 +110,20 @@ class Port1LocationOption(Enum): @property def port_1_location(self) -> Port1LocationOption: - """Port 1 Location - Defines the orientation of the isolator. - - """ + """Defines the orientation of the isolator.""" val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: - """Insertion Loss - Isolator in-band loss in forward direction. + """Isolator in-band loss in forward direction. Value should be between 0 and 100. """ @@ -134,28 +131,32 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: - """Finite Reverse Isolation + """Finite Reverse Isolation. + Use a finite reverse isolation. If disabled, the isolator model is - ideal (infinite reverse isolation). + ideal (infinite reverse isolation). Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val == true + return (val == true) @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: - """Reverse Isolation - Isolator reverse isolation (i.e., loss in the reverse direction). + """Isolator reverse isolation (i.e., loss in the reverse direction). Value should be between 0 and 100. """ @@ -163,28 +164,32 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: - """Finite Bandwidth + """Finite Bandwidth. + Use a finite bandwidth. If disabled, the isolator model is ideal - (infinite bandwidth). + (infinite bandwidth). Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val == true + return (val == true) @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: - """Out-of-band Attenuation - Out-of-band loss (attenuation) + """Out-of-band loss (attenuation). Value should be between 0 and 200. """ @@ -192,78 +197,82 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: - """Lower Stop Band - Lower stop band frequency + """Lower stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: - """Lower Cutoff - Lower cutoff frequency + """Lower cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: - """Higher Cutoff - Higher cutoff frequency + """Higher cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: - """Higher Stop Band - Higher stop band frequency + """Higher stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: - """Warnings - Warning(s) for this node - - """ + """Warning(s) for this node.""" val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py index ed0fb430a5b..a9f75e16c5c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class LogDistanceCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,84 +48,84 @@ def delete(self): @property def enabled(self) -> bool: - """Enabled - Enable/Disable coupling + """Enable/Disable coupling. Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: - """Antenna A - First antenna of the pair to apply the coupling values to - - """ + """First antenna of the pair to apply the coupling values to.""" val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: - """Antenna B - Second antenna of the pair to apply the coupling values to - - """ + """Second antenna of the pair to apply the coupling values to.""" val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: - """Enable Refinement - Enables/disables refined sampling of the frequency domain. + """Enables/disables refined sampling of the frequency domain. Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: - """Adaptive Sampling - Enables/disables adaptive refinement the frequency domain sampling. + """Enables/disables adaptive refinement the frequency domain sampling. Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): - """Refinement Domain - Points to use when refining the frequency domain. - - """ + """Points to use when refining the frequency domain.""" val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): FREE_SPACE = "Free Space" @@ -142,37 +138,38 @@ class EnvironmentOption(Enum): @property def environment(self) -> EnvironmentOption: - """Environment - Specify the environment type for the Log Distance model - - """ + """Specify the environment type for the Log Distance model.""" val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def path_loss_exponent(self) -> float: - """Path Loss Exponent - Path Loss Exponent + """Path Loss Exponent. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Path Loss Exponent") return float(val) @path_loss_exponent.setter - def path_loss_exponent(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Exponent={value}"]) + def path_loss_exponent(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Path Loss Exponent={value}"]) @property def custom_fading_margin(self) -> float: - """Custom Fading Margin + """Custom Fading Margin. + Sets a custom fading margin to be applied to all coupling defined by - this node + this node. Value should be between 0 and 100. """ @@ -180,14 +177,17 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: - """Polarization Mismatch + """Polarization Mismatch. + Sets a margin for polarization mismatch to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -195,14 +195,17 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: - """Pointing Error Loss + """Pointing Error Loss. + Sets a margin for pointing error loss to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -210,8 +213,10 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -221,66 +226,71 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: - """Fading Type - Specify the type of fading to include - - """ + """Specify the type of fading to include.""" val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: - """Fading Availability + """Fading Availability. + The probability that the propagation loss in dB is below its median - value plus the margin + value plus the margin. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Fading Availability") return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: - """Std Deviation - Standard deviation modeling the random amount of shadowing loss + """Standard deviation modeling the random amount of shadowing loss. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Std Deviation") return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: - """Include Rain Attenuation - Adds a margin for rain attenuation to the computed coupling + """Adds a margin for rain attenuation to the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: - """Rain Availability + """Rain Availability. + Percentage of time attenuation due to range is < computed margin (range - from 99-99.999%) + from 99-99.999%). Value should be between 99 and 99.999. """ @@ -288,95 +298,104 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: - """Rain Rate - Rain rate (mm/hr) exceeded for 0.01% of the time + """Rain rate (mm/hr) exceeded for 0.01% of the time. - Value should be between 0 and 1000. + Value should be between 0.0 and 1000.0. """ val = self._get_property("Rain Rate") return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: - """Polarization Tilt Angle + """Polarization Tilt Angle. + Polarization tilt angle of the transmitted signal relative to the - horizontal + horizontal. - Value should be between 0 and 180. + Value should be between 0.0 and 180.0. """ val = self._get_property("Polarization Tilt Angle") return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: - """Include Atmospheric Absorption + """Include Atmospheric Absorption. + Adds a margin for atmospheric absorption due to oxygen/water vapor to - the computed coupling + the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: - """Temperature - Air temperature in degrees Celsius + """Air temperature in degrees Celsius. - Value should be between -273 and 100. + Value should be between -273.0 and 100.0. """ val = self._get_property("Temperature") return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: - """Total Air Pressure - Total air pressure + """Total air pressure. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Total Air Pressure") return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: - """Water Vapor Concentration - Water vapor concentration + """Water vapor concentration. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Water Vapor Concentration") return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py index 5dff8cb6f6c..297dffd3064 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class MPlexBandTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -55,69 +51,74 @@ class PowerDirectionOption(Enum): @property def power_direction(self) -> PowerDirectionOption: - """Power Direction""" + """Power Direction.""" val = self._get_property("Power Direction") val = self.PowerDirectionOption[val.upper()] return val @power_direction.setter def power_direction(self, value: PowerDirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Power Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Power Direction={value.value}"]) @property def data_source(self): - """Data Source - Identifies tree node serving as data source for plot trace, click link - to find it + """Data Source. + Identifies tree node serving as data source for plot trace, click link + to find it. """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: - """Visible - Toggle (on/off) display of this plot trace + """Toggle (on/off) display of this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: - """Custom Legend - Enable/disable custom legend entry for this plot trace + """Enable/disable custom legend entry for this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: - """Name - Enter name of plot trace as it will appear in legend - - """ + """Enter name of plot trace as it will appear in legend.""" val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -129,22 +130,20 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: - """Style - Specify line style of plot trace - - """ + """Specify line style of plot trace.""" val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: - """Line Width - Specify line width of plot trace + """Specify line width of plot trace. Value should be between 1 and 100. """ @@ -153,12 +152,13 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): - """Line Color - Specify line color of plot trace + """Specify line color of plot trace. Color should be in RGB form: #RRGGBB. """ @@ -167,7 +167,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -188,22 +190,20 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: - """Symbol - Select symbol to mark points along plot trace - - """ + """Select symbol to mark points along plot trace.""" val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: - """Symbol Size - Set size (in points) of symbols marking points along plot trace + """Set size (in points) of symbols marking points along plot trace. Value should be between 1 and 1000. """ @@ -212,12 +212,13 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): - """Symbol Color - Specify color of symbols marking points along plot trace + """Specify color of symbols marking points along plot trace. Color should be in RGB form: #RRGGBB. """ @@ -226,12 +227,13 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: - """Symbol Line Width - Set the width of the line used to draw the symbol + """Set the width of the line used to draw the symbol. Value should be between 1 and 20. """ @@ -240,19 +242,25 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: - """Symbol Filled + """Symbol Filled. + If true, the interior of the symbol is filled - has no effect for some - symbol types + symbol types. Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer.py index d83ddb11f64..53cbd8b7d75 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Multiplexer(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -51,8 +47,7 @@ def delete(self): @property def filename(self) -> str: - """Filename - Name of file defining the multiplexer + """Name of file defining the multiplexer. Value should be a full file path. """ @@ -61,12 +56,13 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: - """Noise Temperature - System Noise temperature (K) of the component + """System Noise temperature (K) of the component. Value should be between 0 and 1000. """ @@ -74,21 +70,22 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_PASS_BAND = "By Pass Band" @@ -96,11 +93,11 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: - """Type - Type of multiplexer model. Options include: By File (one measured or - simulated file for the device) or By Pass Band (parametric or - file-based definition for each pass band) + """Type. + Type of multiplexer model. Options include: By File (one measured or + simulated file for the device) or By Pass Band (parametric or file-based + definition for each pass band). """ val = self._get_property("Type") val = self.TypeOption[val.upper()] @@ -108,7 +105,9 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -116,51 +115,47 @@ class Port1LocationOption(Enum): @property def port_1_location(self) -> Port1LocationOption: - """Port 1 Location - Defines the orientation of the multiplexer. - - """ + """Defines the orientation of the multiplexer.""" val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port 1 Location={value.value}"]) @property def flip_ports_vertically(self) -> bool: - """Flip Ports Vertically - Reverses the port order on the multi-port side of the multiplexer. + """Reverses the port order on the multi-port side of the multiplexer. Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return val == true + return (val == true) @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flip Ports Vertically={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Flip Ports Vertically={value}"]) @property def ports(self): - """Ports - Assigns the child port nodes to the multiplexers ports - - "A list of values." - """ + """Assigns the child port nodes to the multiplexers ports.""" val = self._get_property("Ports") return val @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ports={value}"]) @property def warnings(self) -> str: - """Warnings - Warning(s) for this node - - """ + """Warning(s) for this node.""" val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py index 8ca10018d4a..fc3d0378f67 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class MultiplexerBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,11 +54,11 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: - """Type - Type of multiplexer pass band to define. The pass band can be defined by - file (measured or simulated data) or using one of EMIT's parametric - models + """Type. + Type of multiplexer pass band to define. The pass band can be defined by + file (measured or simulated data) or using one of EMIT's parametric + models. """ val = self._get_property("Type") val = self.TypeOption[val.upper()] @@ -70,12 +66,13 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) @property def filename(self) -> str: - """Filename - Name of file defining the multiplexer band + """Name of file defining the multiplexer band. Value should be a full file path. """ @@ -84,12 +81,13 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def insertion_loss(self) -> float: - """Insertion Loss - Multiplexer pass band insertion loss + """Multiplexer pass band insertion loss. Value should be between 0 and 100. """ @@ -97,13 +95,14 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: - """Stop band Attenuation - Stop-band loss (attenuation) + """Stop-band loss (attenuation). Value should be between 0 and 200. """ @@ -111,142 +110,150 @@ def stop_band_attenuation(self) -> float: return float(val) @stop_band_attenuation.setter - def stop_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: - """Max Pass Band - Maximum pass band frequency + """Maximum pass band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @max_pass_band.setter - def max_pass_band(self, value: float | str): + def max_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: - """Min Stop Band - Minimum stop band frequency + """Minimum stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @min_stop_band.setter - def min_stop_band(self, value: float | str): + def min_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: - """Max Stop Band - Maximum stop band frequency + """Maximum stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @max_stop_band.setter - def max_stop_band(self, value: float | str): + def max_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: - """Min Pass Band - Minimum pass band frequency + """Minimum pass band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @min_pass_band.setter - def min_pass_band(self, value: float | str): + def min_pass_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: - """Lower Stop Band - Lower stop band frequency + """Lower stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: - """Lower Cutoff - Lower cutoff frequency + """Lower cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: - """Higher Cutoff - Higher cutoff frequency + """Higher cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: - """Higher Stop Band - Higher stop band frequency + """Higher stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: - """Warnings - Warning(s) for this node - - """ + """Warning(s) for this node.""" val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py index 46cf852a6a1..9f4bd7f6aa9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class OutboardTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,8 +48,7 @@ def delete(self): @property def input_port(self) -> int: - """Input Port - Specifies input port for the plotted outboard component + """Specifies input port for the plotted outboard component. Value should be greater than 1. """ @@ -62,12 +57,13 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: - """Output Port - Specifies output port for the plotted outboard component + """Specifies output port for the plotted outboard component. Value should be greater than 1. """ @@ -76,62 +72,67 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): - """Data Source - Identifies tree node serving as data source for plot trace, click link - to find it + """Data Source. + Identifies tree node serving as data source for plot trace, click link + to find it. """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: - """Visible - Toggle (on/off) display of this plot trace + """Toggle (on/off) display of this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: - """Custom Legend - Enable/disable custom legend entry for this plot trace + """Enable/disable custom legend entry for this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: - """Name - Enter name of plot trace as it will appear in legend - - """ + """Enter name of plot trace as it will appear in legend.""" val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -143,22 +144,20 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: - """Style - Specify line style of plot trace - - """ + """Specify line style of plot trace.""" val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: - """Line Width - Specify line width of plot trace + """Specify line width of plot trace. Value should be between 1 and 100. """ @@ -167,12 +166,13 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): - """Line Color - Specify line color of plot trace + """Specify line color of plot trace. Color should be in RGB form: #RRGGBB. """ @@ -181,7 +181,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -202,22 +204,20 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: - """Symbol - Select symbol to mark points along plot trace - - """ + """Select symbol to mark points along plot trace.""" val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: - """Symbol Size - Set size (in points) of symbols marking points along plot trace + """Set size (in points) of symbols marking points along plot trace. Value should be between 1 and 1000. """ @@ -226,12 +226,13 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): - """Symbol Color - Specify color of symbols marking points along plot trace + """Specify color of symbols marking points along plot trace. Color should be in RGB form: #RRGGBB. """ @@ -240,12 +241,13 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: - """Symbol Line Width - Set the width of the line used to draw the symbol + """Set the width of the line used to draw the symbol. Value should be between 1 and 20. """ @@ -254,19 +256,25 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: - """Symbol Filled + """Symbol Filled. + If true, the interior of the symbol is filled - has no effect for some - symbol types + symbol types. Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py index dd698469760..3f9eaa239cf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ParametricCouplingTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,78 +48,85 @@ def delete(self): @property def antenna_a(self) -> EmitNode: - """Antenna A""" + """Antenna A.""" val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: - """Antenna B""" + """Antenna B.""" val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def data_source(self): - """Data Source - Identifies tree node serving as data source for plot trace, click link - to find it + """Data Source. + Identifies tree node serving as data source for plot trace, click link + to find it. """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: - """Visible - Toggle (on/off) display of this plot trace + """Toggle (on/off) display of this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: - """Custom Legend - Enable/disable custom legend entry for this plot trace + """Enable/disable custom legend entry for this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: - """Name - Enter name of plot trace as it will appear in legend - - """ + """Enter name of plot trace as it will appear in legend.""" val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -135,22 +138,20 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: - """Style - Specify line style of plot trace - - """ + """Specify line style of plot trace.""" val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: - """Line Width - Specify line width of plot trace + """Specify line width of plot trace. Value should be between 1 and 100. """ @@ -159,12 +160,13 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): - """Line Color - Specify line color of plot trace + """Specify line color of plot trace. Color should be in RGB form: #RRGGBB. """ @@ -173,7 +175,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -194,22 +198,20 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: - """Symbol - Select symbol to mark points along plot trace - - """ + """Select symbol to mark points along plot trace.""" val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: - """Symbol Size - Set size (in points) of symbols marking points along plot trace + """Set size (in points) of symbols marking points along plot trace. Value should be between 1 and 1000. """ @@ -218,12 +220,13 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): - """Symbol Color - Specify color of symbols marking points along plot trace + """Specify color of symbols marking points along plot trace. Color should be in RGB form: #RRGGBB. """ @@ -232,12 +235,13 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: - """Symbol Line Width - Set the width of the line used to draw the symbol + """Set the width of the line used to draw the symbol. Value should be between 1 and 20. """ @@ -246,19 +250,25 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: - """Symbol Filled + """Symbol Filled. + If true, the interior of the symbol is filled - has no effect for some - symbol types + symbol types. Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py index 143821a9ebc..a7107f8c66e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class PlotMarkerNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,79 +48,85 @@ def delete(self): @property def visible(self) -> bool: - """Visible - Toggle (on/off) this marker + """Toggle (on/off) this marker. Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def attached(self) -> bool: - """Attached + """Attached. + Attach marker to a fixed X-Y point on the plot (True), or to a fixed - point on the plot window (False) + point on the plot window (False). Value should be 'true' or 'false'. """ val = self._get_property("Attached") - return val == true + return (val == true) @attached.setter def attached(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Attached={value}"]) @property def position_x(self) -> float: - """Position X - Position of the marker on the X-axis (frequency axis). - - """ + """Position of the marker on the X-axis (frequency axis).""" val = self._get_property("Position X") return float(val) @position_x.setter - def position_x(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position X={value}"]) + def position_x(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position X={value}"]) @property def position_y(self) -> float: - """Position Y - Position of the marker on the Y-axis (result axis). - - """ + """Position of the marker on the Y-axis (result axis).""" val = self._get_property("Position Y") return float(val) @position_y.setter - def position_y(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Y={value}"]) + def position_y(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position Y={value}"]) @property def floating_label(self) -> bool: - """Floating Label + """Floating Label. + Allow marker label to be positioned at a fixed point on the plot window - (the marker symbol remains fixed to the specified X-Y point) + (the marker symbol remains fixed to the specified X-Y point). Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return val == true + return (val == true) @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Floating Label={value}"]) @property def position_from_left(self) -> float: - """Position from Left + """Position from Left. + Set position of label from left to right as a percentage of the width of - the plot window + the plot window. Value should be between 0 and 100. """ @@ -132,14 +134,17 @@ def position_from_left(self) -> float: return float(val) @position_from_left.setter - def position_from_left(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) + def position_from_left(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Left={value}"]) @property def position_from_top(self) -> float: - """Position from Top + """Position from Top. + Set position of label from top to bottom as a percentage of the height - of the plot window + of the plot window. Value should be between 0 and 100. """ @@ -147,21 +152,22 @@ def position_from_top(self) -> float: return float(val) @position_from_top.setter - def position_from_top(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) + def position_from_top(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position from Top={value}"]) @property def text(self) -> str: - """Text - Set the text of the label - - """ + """Set the text of the label.""" val = self._get_property("Text") return val @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -170,19 +176,16 @@ class HorizontalPositionOption(Enum): @property def horizontal_position(self) -> HorizontalPositionOption: - """Horizontal Position - Specify horizontal position of the label as compared to the symbol - - """ + """Specify horizontal position of the label as compared to the symbol.""" val = self._get_property("Horizontal Position") val = self.HorizontalPositionOption[val.upper()] return val @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Horizontal Position={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Horizontal Position={value.value}"]) class VerticalPositionOption(Enum): TOP = "Top" @@ -191,17 +194,16 @@ class VerticalPositionOption(Enum): @property def vertical_position(self) -> VerticalPositionOption: - """Vertical Position - Specify vertical position of the label as compared to the symbol - - """ + """Specify vertical position of the label as compared to the symbol.""" val = self._get_property("Vertical Position") val = self.VerticalPositionOption[val.upper()] return val @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -210,22 +212,20 @@ class TextAlignmentOption(Enum): @property def text_alignment(self) -> TextAlignmentOption: - """Text Alignment - Specify justification applied to multi-line text - - """ + """Specify justification applied to multi-line text.""" val = self._get_property("Text Alignment") val = self.TextAlignmentOption[val.upper()] return val @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Text Alignment={value.value}"]) @property def font(self): - """Font - Specify font used for the label + """Specify font used for the label. Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ @@ -234,12 +234,13 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Font={value}"]) @property def color(self): - """Color - Specify color of the label text + """Specify color of the label text. Color should be in RGB form: #RRGGBB. """ @@ -248,12 +249,13 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Color={value}"]) @property def background_color(self): - """Background Color - Set color of the label text background + """Set color of the label text background. Color should be in RGBA form: #AARRGGBB. """ @@ -262,26 +264,28 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) @property def border(self) -> bool: - """Border - Display a border around the label text + """Display a border around the label text. Value should be 'true' or 'false'. """ val = self._get_property("Border") - return val == true + return (val == true) @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border={value}"]) @property def border_width(self) -> int: - """Border Width - Set the width of the border around the label text + """Set the width of the border around the label text. Value should be between 1 and 20. """ @@ -290,12 +294,13 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Width={value}"]) @property def border_color(self): - """Border Color - Set color of the border around the label text + """Set color of the border around the label text. Color should be in RGB form: #RRGGBB. """ @@ -304,7 +309,9 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -326,22 +333,20 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: - """Symbol - Specify symbol displayed next to the label - - """ + """Specify symbol displayed next to the label.""" val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: - """Arrow Direction - Set direction of the arrow; zero degrees is up + """Set direction of the arrow; zero degrees is up. Value should be between -360 and 360. """ @@ -350,12 +355,13 @@ def arrow_direction(self) -> int: @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: - """Symbol Size - Set size of the symbol used for this marker + """Set size of the symbol used for this marker. Value should be between 1 and 1000. """ @@ -364,12 +370,13 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): - """Symbol Color - Set color of the symbol used for this marker + """Set color of the symbol used for this marker. Color should be in RGB form: #RRGGBB. """ @@ -378,12 +385,13 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def line_width(self) -> int: - """Line Width - Set the width of the line used to draw the symbol + """Set the width of the line used to draw the symbol. Value should be between 1 and 20. """ @@ -392,19 +400,25 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def filled(self) -> bool: - """Filled + """Filled. + If true, the interior of the symbol is filled - has no effect for some - symbol types + symbol types. Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return val == true + return (val == true) @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py index f94dad83147..af9ce578cf9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class PlotNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -55,21 +51,19 @@ def delete(self): @property def title(self) -> str: - """Title - Enter title at the top of the plot, room will be made for it - - """ + """Enter title at the top of the plot, room will be made for it.""" val = self._get_property("Title") return val @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title={value}"]) @property def title_font(self): - """Title Font - Configure title font family, typeface, and size + """Configure title font family, typeface, and size. Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ @@ -78,26 +72,28 @@ def title_font(self): @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title Font={value}"]) @property def show_legend(self) -> bool: - """Show Legend - Toggle (on/off) display of plot legend + """Toggle (on/off) display of plot legend. Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return val == true + return (val == true) @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Legend={value}"]) @property def legend_font(self): - """Legend Font - Configure legend font family, typeface, and size + """Configure legend font family, typeface, and size. Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ @@ -106,26 +102,28 @@ def legend_font(self): @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Legend Font={value}"]) @property def display_cad_overlay(self) -> bool: - """Display CAD Overlay - Toggle on/off overlay of CAD model in plot + """Toggle on/off overlay of CAD model in plot. Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return val == true + return (val == true) @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: - """Opacity - Adjust opacity of CAD model overlay: 0 Transparent - 1 Opaque + """Adjust opacity of CAD model overlay: 0 Transparent - 1 Opaque. Value should be between 0 and 100. """ @@ -133,27 +131,29 @@ def opacity(self) -> float: return float(val) @opacity.setter - def opacity(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) + def opacity(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Opacity={value}"]) @property def vertical_offset(self) -> float: - """Vertical Offset - Adjust vertical position of CAD model overlay - - """ + """Adjust vertical position of CAD model overlay.""" val = self._get_property("Vertical Offset") return float(val) @vertical_offset.setter - def vertical_offset(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) + def vertical_offset(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: - """Range Axis Rotation + """Range Axis Rotation. + Adjust view angle for CAD model overlay by rotating it about plot - horizontal axis + horizontal axis. Value should be between -180 and 180. """ @@ -161,80 +161,83 @@ def range_axis_rotation(self) -> float: return float(val) @range_axis_rotation.setter - def range_axis_rotation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: - """Lock Axes - Allow or prevent changing of axes when displayed plot traces are updated + """Lock Axes. + + Allow or prevent changing of axes when displayed plot traces are + updated. Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return val == true + return (val == true) @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: - """X-axis Min - Set lower extent of horizontal axis - - """ + """Set lower extent of horizontal axis.""" val = self._get_property("X-axis Min") return float(val) @x_axis_min.setter - def x_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) + def x_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: - """X-axis Max - Set upper extent of horizontal axis - - """ + """Set upper extent of horizontal axis.""" val = self._get_property("X-axis Max") return float(val) @x_axis_max.setter - def x_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) + def x_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: - """Y-axis Min - Set lower extent of vertical axis - - """ + """Set lower extent of vertical axis.""" val = self._get_property("Y-axis Min") return float(val) @y_axis_min.setter - def y_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) + def y_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: - """Y-axis Max - Set upper extent of vertical axis - - """ + """Set upper extent of vertical axis.""" val = self._get_property("Y-axis Max") return float(val) @y_axis_max.setter - def y_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) + def y_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: - """Y-axis Range + """Y-axis Range. + Adjust dB span of vertical axis, makes corresponding adjustment in - Y-axis Min + Y-axis Min. Value should be greater than 0. """ @@ -242,13 +245,16 @@ def y_axis_range(self) -> float: return float(val) @y_axis_range.setter - def y_axis_range(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) + def y_axis_range(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: - """Max Major Ticks X - Set maximum number of major tick-mark intervals along horizontal axis + """Max Major Ticks X. + + Set maximum number of major tick-mark intervals along horizontal axis. Value should be between 1 and 30. """ @@ -257,13 +263,16 @@ def max_major_ticks_x(self) -> int: @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: - """Max Minor Ticks X + """Max Minor Ticks X. + Set maximum number of minor tick-mark intervals between major ticks - along horizontal axis + along horizontal axis. Value should be between 0 and 100. """ @@ -272,12 +281,15 @@ def max_minor_ticks_x(self) -> int: @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: - """Max Major Ticks Y - Set maximum number of major tick-mark intervals along vertical axis + """Max Major Ticks Y. + + Set maximum number of major tick-mark intervals along vertical axis. Value should be between 1 and 30. """ @@ -286,13 +298,16 @@ def max_major_ticks_y(self) -> int: @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: - """Max Minor Ticks Y + """Max Minor Ticks Y. + Set maximum number of minor tick-mark intervals between major ticks - along vertical axis + along vertical axis. Value should be between 0 and 100. """ @@ -301,12 +316,13 @@ def max_minor_ticks_y(self) -> int: @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): - """Axis Label Font - Configure axis text labels font family, typeface, and size + """Configure axis text labels font family, typeface, and size. Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ @@ -315,12 +331,13 @@ def axis_label_font(self): @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): - """Axis Tick Label Font - Configure axis tick numeric labels font family, typeface, and size + """Configure axis tick numeric labels font family, typeface, and size. Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ @@ -329,7 +346,9 @@ def axis_tick_label_font(self): @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -341,24 +360,20 @@ class MajorGridLineStyleOption(Enum): @property def major_grid_line_style(self) -> MajorGridLineStyleOption: - """Major Grid Line Style - Select line style of major-tick grid lines - - """ + """Select line style of major-tick grid lines.""" val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val.upper()] return val @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Line Style={value.value}"]) @property def major_grid_color(self): - """Major Grid Color - Set color of major-tick grid lines + """Set color of major-tick grid lines. Color should be in RGB form: #RRGGBB. """ @@ -367,7 +382,9 @@ def major_grid_color(self): @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -379,24 +396,20 @@ class MinorGridLineStyleOption(Enum): @property def minor_grid_line_style(self) -> MinorGridLineStyleOption: - """Minor Grid Line Style - Select line style of minor-tick grid lines - - """ + """Select line style of minor-tick grid lines.""" val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val.upper()] return val @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Line Style={value.value}"]) @property def minor_grid_color(self): - """Minor Grid Color - Set color of minor-tick grid lines + """Set color of minor-tick grid lines. Color should be in RGB form: #RRGGBB. """ @@ -405,12 +418,13 @@ def minor_grid_color(self): @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Color={value}"]) @property def background_color(self): - """Background Color - Set background color of entire plot + """Set background color of entire plot. Color should be in RGB form: #RRGGBB. """ @@ -419,7 +433,9 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -429,46 +445,46 @@ class BBPowerforPlotsUnitOption(Enum): @property def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: - """BB Power for Plots Unit - Units to use for plotting broadband power densities - - """ + """Units to use for plotting broadband power densities.""" val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val.upper()] return val @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power for Plots Unit={value.value}"]) @property def bb_power_bandwidth(self) -> float: - """BB Power Bandwidth - Resolution bandwidth for broadband power + """Resolution bandwidth for broadband power. - Value should be between 1 and 1e+11. + Value should be between 1.0 and 100e9. """ val = self._get_property("BB Power Bandwidth") val = self._convert_from_internal_units(float(val), "") return float(val) @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value: float | str): + def bb_power_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: - """Log Scale - Toggles on/off using a log scale for the X-Axis + """Toggles on/off using a log scale for the X-Axis. Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return val == true + return (val == true) @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Log Scale={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py b/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py index 9e50f7900ce..77409954b3f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class PowerDivider(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -47,8 +43,7 @@ def delete(self): @property def filename(self) -> str: - """Filename - Name of file defining the Power Divider + """Name of file defining the Power Divider. Value should be a full file path. """ @@ -57,12 +52,13 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: - """Noise Temperature - System Noise temperature (K) of the component + """System Noise temperature (K) of the component. Value should be between 0 and 1000. """ @@ -70,21 +66,22 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -93,10 +90,10 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: - """Type - Type of Power Divider model to use. Options include: By File (measured - or simulated), 3 dB (parametric), and Resistive (parametric) + """Type. + Type of Power Divider model to use. Options include: By File (measured + or simulated), 3 dB (parametric), and Resistive (parametric). """ val = self._get_property("Type") val = self.TypeOption[val.upper()] @@ -104,7 +101,9 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class OrientationOption(Enum): DIVIDER = "Divider" @@ -112,23 +111,23 @@ class OrientationOption(Enum): @property def orientation(self) -> OrientationOption: - """Orientation - Defines the orientation of the Power Divider. - - """ + """Defines the orientation of the Power Divider.""" val = self._get_property("Orientation") val = self.OrientationOption[val.upper()] return val @orientation.setter def orientation(self, value: OrientationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value.value}"]) @property def insertion_loss_above_ideal(self) -> float: - """Insertion Loss Above Ideal + """Insertion Loss Above Ideal. + Additional loss beyond the ideal insertion loss. The ideal insertion - loss is 3 dB for the 3 dB Divider and 6 dB for the Resistive Divider. + loss is 3 dB for the 3 dB Divider and 6 dB for the Resistive Divider. Value should be between 0 and 100. """ @@ -136,30 +135,32 @@ def insertion_loss_above_ideal(self) -> float: return float(val) @insertion_loss_above_ideal.setter - def insertion_loss_above_ideal(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Insertion Loss Above Ideal={value}"] - ) + def insertion_loss_above_ideal(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss Above Ideal={value}"]) @property def finite_isolation(self) -> bool: - """Finite Isolation + """Finite Isolation. + Use a finite isolation between output ports. If disabled, the Power - Divider isolation is ideal (infinite isolation between output ports). + Divider isolation is ideal (infinite isolation between output ports). Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val == true + return (val == true) @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Isolation={value}"]) @property def isolation(self) -> float: - """Isolation - Power Divider isolation between output ports. + """Power Divider isolation between output ports. Value should be between 0 and 100. """ @@ -167,28 +168,32 @@ def isolation(self) -> float: return float(val) @isolation.setter - def isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) + def isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: - """Finite Bandwidth + """Finite Bandwidth. + Use a finite bandwidth. If disabled, the Power Divider model is ideal - (infinite bandwidth). + (infinite bandwidth). Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val == true + return (val == true) @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: - """Out-of-band Attenuation - Out-of-band loss (attenuation) + """Out-of-band loss (attenuation). Value should be between 0 and 200. """ @@ -196,78 +201,82 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: - """Lower Stop Band - Lower stop band frequency + """Lower stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: - """Lower Cutoff - Lower cutoff frequency + """Lower cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: - """Higher Cutoff - Higher cutoff frequency + """Higher cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: - """Higher Stop Band - Higher stop band frequency + """Higher stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: - """Warnings - Warning(s) for this node - - """ + """Warning(s) for this node.""" val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py index aeaeeb96f3f..22bba044b8f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class PowerTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -56,9 +52,9 @@ class DirectionOption(Enum): @property def direction(self) -> DirectionOption: - """Direction - Direction of power flow (towards or away from the transmitter) to plot + """Direction. + Direction of power flow (towards or away from the transmitter) to plot. """ val = self._get_property("Direction") val = self.DirectionOption[val.upper()] @@ -66,62 +62,67 @@ def direction(self) -> DirectionOption: @direction.setter def direction(self, value: DirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Direction={value.value}"]) @property def data_source(self): - """Data Source - Identifies tree node serving as data source for plot trace, click link - to find it + """Data Source. + Identifies tree node serving as data source for plot trace, click link + to find it. """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: - """Visible - Toggle (on/off) display of this plot trace + """Toggle (on/off) display of this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: - """Custom Legend - Enable/disable custom legend entry for this plot trace + """Enable/disable custom legend entry for this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: - """Name - Enter name of plot trace as it will appear in legend - - """ + """Enter name of plot trace as it will appear in legend.""" val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -133,22 +134,20 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: - """Style - Specify line style of plot trace - - """ + """Specify line style of plot trace.""" val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: - """Line Width - Specify line width of plot trace + """Specify line width of plot trace. Value should be between 1 and 100. """ @@ -157,12 +156,13 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): - """Line Color - Specify line color of plot trace + """Specify line color of plot trace. Color should be in RGB form: #RRGGBB. """ @@ -171,7 +171,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -192,22 +194,20 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: - """Symbol - Select symbol to mark points along plot trace - - """ + """Select symbol to mark points along plot trace.""" val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: - """Symbol Size - Set size (in points) of symbols marking points along plot trace + """Set size (in points) of symbols marking points along plot trace. Value should be between 1 and 1000. """ @@ -216,12 +216,13 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): - """Symbol Color - Specify color of symbols marking points along plot trace + """Specify color of symbols marking points along plot trace. Color should be in RGB form: #RRGGBB. """ @@ -230,12 +231,13 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: - """Symbol Line Width - Set the width of the line used to draw the symbol + """Set the width of the line used to draw the symbol. Value should be between 1 and 20. """ @@ -244,19 +246,25 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: - """Symbol Filled + """Symbol Filled. + If true, the interior of the symbol is filled - has no effect for some - symbol types + symbol types. Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py index dcde8cf4d8c..92132195ebe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ProfileTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,58 +48,61 @@ def delete(self): @property def data_source(self): - """Data Source - Identifies tree node serving as data source for plot trace, click link - to find it + """Data Source. + Identifies tree node serving as data source for plot trace, click link + to find it. """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: - """Visible - Toggle (on/off) display of this plot trace + """Toggle (on/off) display of this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: - """Custom Legend - Enable/disable custom legend entry for this plot trace + """Enable/disable custom legend entry for this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: - """Name - Enter name of plot trace as it will appear in legend - - """ + """Enter name of plot trace as it will appear in legend.""" val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -115,22 +114,20 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: - """Style - Specify line style of plot trace - - """ + """Specify line style of plot trace.""" val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: - """Line Width - Specify line width of plot trace + """Specify line width of plot trace. Value should be between 1 and 100. """ @@ -139,12 +136,13 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): - """Line Color - Specify line color of plot trace + """Specify line color of plot trace. Color should be in RGB form: #RRGGBB. """ @@ -153,7 +151,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -174,22 +174,20 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: - """Symbol - Select symbol to mark points along plot trace - - """ + """Select symbol to mark points along plot trace.""" val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: - """Symbol Size - Set size (in points) of symbols marking points along plot trace + """Set size (in points) of symbols marking points along plot trace. Value should be between 1 and 1000. """ @@ -198,12 +196,13 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): - """Symbol Color - Specify color of symbols marking points along plot trace + """Specify color of symbols marking points along plot trace. Color should be in RGB form: #RRGGBB. """ @@ -212,12 +211,13 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: - """Symbol Line Width - Set the width of the line used to draw the symbol + """Set the width of the line used to draw the symbol. Value should be between 1 and 20. """ @@ -226,19 +226,25 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: - """Symbol Filled + """Symbol Filled. + If true, the interior of the symbol is filled - has no effect for some - symbol types + symbol types. Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py index e58e04ae852..43d56ff3f82 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class PropagationLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,90 +48,91 @@ def delete(self): @property def enabled(self) -> bool: - """Enabled - Enable/Disable coupling + """Enable/Disable coupling. Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: - """Antenna A - First antenna of the pair to apply the coupling values to - - """ + """First antenna of the pair to apply the coupling values to.""" val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: - """Antenna B - Second antenna of the pair to apply the coupling values to - - """ + """Second antenna of the pair to apply the coupling values to.""" val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: - """Enable Refinement - Enables/disables refined sampling of the frequency domain. + """Enables/disables refined sampling of the frequency domain. Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: - """Adaptive Sampling - Enables/disables adaptive refinement the frequency domain sampling. + """Enables/disables adaptive refinement the frequency domain sampling. Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): - """Refinement Domain - Points to use when refining the frequency domain. - - """ + """Points to use when refining the frequency domain.""" val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def custom_fading_margin(self) -> float: - """Custom Fading Margin + """Custom Fading Margin. + Sets a custom fading margin to be applied to all coupling defined by - this node + this node. Value should be between 0 and 100. """ @@ -143,14 +140,17 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: - """Polarization Mismatch + """Polarization Mismatch. + Sets a margin for polarization mismatch to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -158,14 +158,17 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: - """Pointing Error Loss + """Pointing Error Loss. + Sets a margin for pointing error loss to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -173,8 +176,10 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -184,66 +189,71 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: - """Fading Type - Specify the type of fading to include - - """ + """Specify the type of fading to include.""" val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: - """Fading Availability + """Fading Availability. + The probability that the propagation loss in dB is below its median - value plus the margin + value plus the margin. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Fading Availability") return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: - """Std Deviation - Standard deviation modeling the random amount of shadowing loss + """Standard deviation modeling the random amount of shadowing loss. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Std Deviation") return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: - """Include Rain Attenuation - Adds a margin for rain attenuation to the computed coupling + """Adds a margin for rain attenuation to the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: - """Rain Availability + """Rain Availability. + Percentage of time attenuation due to range is < computed margin (range - from 99-99.999%) + from 99-99.999%). Value should be between 99 and 99.999. """ @@ -251,95 +261,104 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: - """Rain Rate - Rain rate (mm/hr) exceeded for 0.01% of the time + """Rain rate (mm/hr) exceeded for 0.01% of the time. - Value should be between 0 and 1000. + Value should be between 0.0 and 1000.0. """ val = self._get_property("Rain Rate") return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: - """Polarization Tilt Angle + """Polarization Tilt Angle. + Polarization tilt angle of the transmitted signal relative to the - horizontal + horizontal. - Value should be between 0 and 180. + Value should be between 0.0 and 180.0. """ val = self._get_property("Polarization Tilt Angle") return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: - """Include Atmospheric Absorption + """Include Atmospheric Absorption. + Adds a margin for atmospheric absorption due to oxygen/water vapor to - the computed coupling + the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: - """Temperature - Air temperature in degrees Celsius + """Air temperature in degrees Celsius. - Value should be between -273 and 100. + Value should be between -273.0 and 100.0. """ val = self._get_property("Temperature") return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: - """Total Air Pressure - Total air pressure + """Total air pressure. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Total Air Pressure") return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: - """Water Vapor Concentration - Water vapor concentration + """Water vapor concentration. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Water Vapor Concentration") return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py index 6ebf43aadb1..5308a882610 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class RadioNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,10 +51,12 @@ def delete(self): @property def table_data(self): - """Table" - "Table consists of 2 columns." - "Name: - "Type: + """Table. + Table consists of 2 columns. + Name: + + Type: + """ return self._get_table_data() @@ -67,13 +66,13 @@ def table_data(self, value): @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py index ca7352de82a..d1a5c91bb48 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyAmplifier(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -35,8 +31,7 @@ def __init__(self, emit_obj, result_id, node_id): @property def filename(self) -> str: - """Filename - Name of file defining the outboard component + """Name of file defining the outboard component. Value should be a full file path. """ @@ -45,8 +40,7 @@ def filename(self) -> str: @property def noise_temperature(self) -> float: - """Noise Temperature - System Noise temperature (K) of the component + """System Noise temperature (K) of the component. Value should be between 0 and 1000. """ @@ -55,10 +49,7 @@ def noise_temperature(self) -> float: @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @@ -68,18 +59,14 @@ class AmplifierTypeOption(Enum): @property def amplifier_type(self) -> AmplifierTypeOption: - """Amplifier Type - Configures the amplifier as a Tx or Rx amplifier - - """ + """Configures the amplifier as a Tx or Rx amplifier.""" val = self._get_property("Amplifier Type") val = self.AmplifierTypeOption[val.upper()] return val @property def gain(self) -> float: - """Gain - Amplifier in-band gain + """Amplifier in-band gain. Value should be between 0 and 100. """ @@ -88,10 +75,9 @@ def gain(self) -> float: @property def center_frequency(self) -> float: - """Center Frequency - Center frequency of amplifiers operational bandwidth + """Center frequency of amplifiers operational bandwidth. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Center Frequency") val = self._convert_from_internal_units(float(val), "Freq") @@ -99,10 +85,9 @@ def center_frequency(self) -> float: @property def bandwidth(self) -> float: - """Bandwidth - Frequency region where the gain applies + """Frequency region where the gain applies. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") @@ -110,8 +95,7 @@ def bandwidth(self) -> float: @property def noise_figure(self) -> float: - """Noise Figure - Amplifier noise figure + """Amplifier noise figure. Value should be between 0 and 100. """ @@ -120,8 +104,7 @@ def noise_figure(self) -> float: @property def saturation_level(self) -> float: - """Saturation Level - Saturation level + """Saturation level. Value should be between -200 and 200. """ @@ -131,8 +114,7 @@ def saturation_level(self) -> float: @property def p1_db_point_ref_input(self) -> float: - """P1-dB Point, Ref. Input - Incoming signals > this value saturate the amplifier + """Incoming signals > this value saturate the amplifier. Value should be between -200 and 200. """ @@ -142,8 +124,7 @@ def p1_db_point_ref_input(self) -> float: @property def ip3_ref_input(self) -> float: - """IP3, Ref. Input - 3rd order intercept point + """3rd order intercept point. Value should be between -200 and 200. """ @@ -153,8 +134,7 @@ def ip3_ref_input(self) -> float: @property def shape_factor(self) -> float: - """Shape Factor - Ratio defining the selectivity of the amplifier + """Ratio defining the selectivity of the amplifier. Value should be between 1 and 100. """ @@ -163,8 +143,7 @@ def shape_factor(self) -> float: @property def reverse_isolation(self) -> float: - """Reverse Isolation - Amplifier reverse isolation + """Amplifier reverse isolation. Value should be between 0 and 200. """ @@ -173,10 +152,10 @@ def reverse_isolation(self) -> float: @property def max_intermod_order(self) -> int: - """Max Intermod Order - Maximum order of intermods to compute + """Maximum order of intermods to compute. Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") return int(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py index ea4ac8d426b..86370a2f757 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyAntennaNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,28 +36,25 @@ def parent(self): @property def tags(self) -> str: - """Tags - Space delimited list of tags for coupling selections - - """ + """Space delimited list of tags for coupling selections.""" val = self._get_property("Tags") return val @property def show_relative_coordinates(self) -> bool: - """Show Relative Coordinates + """Show Relative Coordinates. + Show antenna position and orientation in parent-node coords (False) or - relative to placement coords (True) + relative to placement coords (True). Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val == true + return (val == true) @property def position(self): - """Position - Set position of the antenna in parent-node coordinates + """Set position of the antenna in parent-node coordinates. Value should be x/y/z, delimited by spaces. """ @@ -70,8 +63,7 @@ def position(self): @property def relative_position(self): - """Relative Position - Set position of the antenna relative to placement coordinates + """Set position of the antenna relative to placement coordinates. Value should be x/y/z, delimited by spaces. """ @@ -84,9 +76,9 @@ class OrientationModeOption(Enum): @property def orientation_mode(self) -> OrientationModeOption: - """Orientation Mode - Select the convention (order of rotations) for configuring orientation + """Orientation Mode. + Select the convention (order of rotations) for configuring orientation. """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] @@ -94,8 +86,7 @@ def orientation_mode(self) -> OrientationModeOption: @property def orientation(self): - """Orientation - Set orientation of the antenna relative to parent-node coordinates + """Set orientation of the antenna relative to parent-node coordinates. Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ @@ -104,8 +95,7 @@ def orientation(self): @property def relative_orientation(self): - """Relative Orientation - Set orientation of the antenna relative to placement coordinates + """Set orientation of the antenna relative to placement coordinates. Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ @@ -114,18 +104,16 @@ def relative_orientation(self): @property def position_defined(self) -> bool: - """Position Defined - Toggles on/off the ability to define a position for the antenna + """Toggles on/off the ability to define a position for the antenna. Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return val == true + return (val == true) @property def antenna_temperature(self) -> float: - """Antenna Temperature - Antenna noise temperature + """Antenna noise temperature. Value should be between 0 and 100000. """ @@ -134,25 +122,19 @@ def antenna_temperature(self) -> float: @property def type(self): - """Type - Defines the type of antenna - - """ + """Defines the type of antenna.""" val = self._get_property("Type") return val @property def antenna_file(self) -> str: - """Antenna File - Value should be a full file path. - """ + """Antenna File.""" val = self._get_property("Antenna File") return val @property def project_name(self) -> str: - """Project Name - Name of imported HFSS Antenna project + """Name of imported HFSS Antenna project. Value should be a full file path. """ @@ -161,8 +143,7 @@ def project_name(self) -> str: @property def peak_gain(self) -> float: - """Peak Gain - Set peak gain of antenna (dBi) + """Set peak gain of antenna (dBi). Value should be between -200 and 200. """ @@ -176,18 +157,14 @@ class BoresightOption(Enum): @property def boresight(self) -> BoresightOption: - """Boresight - Select peak beam direction in local coordinates - - """ + """Select peak beam direction in local coordinates.""" val = self._get_property("Boresight") val = self.BoresightOption[val.upper()] return val @property def vertical_beamwidth(self) -> float: - """Vertical Beamwidth - Set half-power beamwidth in local-coordinates elevation plane + """Set half-power beamwidth in local-coordinates elevation plane. Value should be between 0.1 and 360. """ @@ -196,8 +173,7 @@ def vertical_beamwidth(self) -> float: @property def horizontal_beamwidth(self) -> float: - """Horizontal Beamwidth - Set half-power beamwidth in local-coordinates azimuth plane + """Set half-power beamwidth in local-coordinates azimuth plane. Value should be between 0.1 and 360. """ @@ -206,19 +182,19 @@ def horizontal_beamwidth(self) -> float: @property def extra_sidelobe(self) -> bool: - """Extra Sidelobe - Toggle (on/off) option to define two sidelobe levels + """Toggle (on/off) option to define two sidelobe levels. Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return val == true + return (val == true) @property def first_sidelobe_level(self) -> float: - """First Sidelobe Level + """First Sidelobe Level. + Set reduction in the gain of Directive Beam antenna for first sidelobe - level + level. Value should be between 0 and 200. """ @@ -227,8 +203,7 @@ def first_sidelobe_level(self) -> float: @property def first_sidelobe_vert_bw(self) -> float: - """First Sidelobe Vert. BW - Set beamwidth of first sidelobe beam in theta direction + """Set beamwidth of first sidelobe beam in theta direction. Value should be between 0.1 and 360. """ @@ -237,8 +212,7 @@ def first_sidelobe_vert_bw(self) -> float: @property def first_sidelobe_hor_bw(self) -> float: - """First Sidelobe Hor. BW - Set beamwidth of first sidelobe beam in phi direction + """Set beamwidth of first sidelobe beam in phi direction. Value should be between 0.1 and 360. """ @@ -247,8 +221,10 @@ def first_sidelobe_hor_bw(self) -> float: @property def outerbacklobe_level(self) -> float: - """Outer/Backlobe Level - Set reduction in gain of Directive Beam antenna for outer/backlobe level + """Outer/Backlobe Level. + + Set reduction in gain of Directive Beam antenna for outer/backlobe + level. Value should be between 0 and 200. """ @@ -257,11 +233,12 @@ def outerbacklobe_level(self) -> float: @property def resonant_frequency(self) -> float: - """Resonant Frequency + """Resonant Frequency. + Set first resonant frequency of wire dipole, monopole, or parametric - antenna + antenna. - Value should be between 1 and 1e+13. + Value should be between 1.0 and 1e13. """ val = self._get_property("Resonant Frequency") val = self._convert_from_internal_units(float(val), "Freq") @@ -269,10 +246,9 @@ def resonant_frequency(self) -> float: @property def slot_length(self) -> float: - """Slot Length - Set slot length of parametric slot + """Set slot length of parametric slot. - Value should be greater than 1e-06. + Value should be greater than 1e-6. """ val = self._get_property("Slot Length") val = self._convert_from_internal_units(float(val), "Length") @@ -280,10 +256,9 @@ def slot_length(self) -> float: @property def mouth_width(self) -> float: - """Mouth Width - Set mouth width (along local y-axis) of the horn antenna + """Set mouth width (along local y-axis) of the horn antenna. - Value should be between 1e-06 and 100. + Value should be between 1e-6 and 100. """ val = self._get_property("Mouth Width") val = self._convert_from_internal_units(float(val), "Length") @@ -291,10 +266,9 @@ def mouth_width(self) -> float: @property def mouth_height(self) -> float: - """Mouth Height - Set mouth height (along local x-axis) of the horn antenna + """Set mouth height (along local x-axis) of the horn antenna. - Value should be between 1e-06 and 100. + Value should be between 1e-6 and 100. """ val = self._get_property("Mouth Height") val = self._convert_from_internal_units(float(val), "Length") @@ -302,11 +276,12 @@ def mouth_height(self) -> float: @property def waveguide_width(self) -> float: - """Waveguide Width + """Waveguide Width. + Set waveguide width (along local y-axis) where flared horn walls meet - the feed, determines cut-off frequency + the feed, determines cut-off frequency. - Value should be between 1e-06 and 100. + Value should be between 1e-6 and 100. """ val = self._get_property("Waveguide Width") val = self._convert_from_internal_units(float(val), "Length") @@ -314,9 +289,10 @@ def waveguide_width(self) -> float: @property def width_flare_half_angle(self) -> float: - """Width Flare Half-angle + """Width Flare Half-angle. + Set half-angle (degrees) of flared horn walls measured in local yz-plane - from boresight (z) axis to either wall + from boresight (z) axis to either wall. Value should be between 1 and 89.9. """ @@ -325,9 +301,10 @@ def width_flare_half_angle(self) -> float: @property def height_flare_half_angle(self) -> float: - """Height Flare Half-angle + """Height Flare Half-angle. + Set half-angle (degrees) of flared horn walls measured in local xz-plane - from boresight (z) axis to either wall + from boresight (z) axis to either wall. Value should be between 1 and 89.9. """ @@ -336,10 +313,9 @@ def height_flare_half_angle(self) -> float: @property def mouth_diameter(self) -> float: - """Mouth Diameter - Set aperture (mouth) diameter of horn antenna + """Set aperture (mouth) diameter of horn antenna. - Value should be between 1e-06 and 100. + Value should be between 1e-6 and 100. """ val = self._get_property("Mouth Diameter") val = self._convert_from_internal_units(float(val), "Length") @@ -347,9 +323,10 @@ def mouth_diameter(self) -> float: @property def flare_half_angle(self) -> float: - """Flare Half-angle + """Flare Half-angle. + Set half-angle (degrees) of conical horn wall measured from boresight - (z) + (z). Value should be between 1 and 89.9. """ @@ -358,9 +335,10 @@ def flare_half_angle(self) -> float: @property def vswr(self) -> float: - """VSWR + """VSWR. + The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch - between the antenna and the RF System (or outboard component) + between the antenna and the RF System (or outboard component). Value should be between 1 and 100. """ @@ -375,10 +353,7 @@ class AntennaPolarizationOption(Enum): @property def antenna_polarization(self) -> AntennaPolarizationOption: - """Antenna Polarization - Choose local-coordinates polarization along boresight - - """ + """Choose local-coordinates polarization along boresight.""" val = self._get_property("Antenna Polarization") val = self.AntennaPolarizationOption[val.upper()] return val @@ -389,10 +364,7 @@ class CrossDipoleModeOption(Enum): @property def cross_dipole_mode(self) -> CrossDipoleModeOption: - """Cross Dipole Mode - Choose the Cross Dipole type - - """ + """Choose the Cross Dipole type.""" val = self._get_property("Cross Dipole Mode") val = self.CrossDipoleModeOption[val.upper()] return val @@ -403,29 +375,28 @@ class CrossDipolePolarizationOption(Enum): @property def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: - """Cross Dipole Polarization - Choose local-coordinates polarization along boresight - - """ + """Choose local-coordinates polarization along boresight.""" val = self._get_property("Cross Dipole Polarization") val = self.CrossDipolePolarizationOption[val.upper()] return val @property def override_height(self) -> bool: - """Override Height + """Override Height. + Ignores the default placement of quarter design wavelength over the - ground plane + ground plane. Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return val == true + return (val == true) @property def offset_height(self) -> float: - """Offset Height - Sets the offset height for the current sources above the ground plane + """Offset Height. + + Sets the offset height for the current sources above the ground plane. Value should be greater than 0. """ @@ -435,29 +406,30 @@ def offset_height(self) -> float: @property def auto_height_offset(self) -> bool: - """Auto Height Offset + """Auto Height Offset. + Switch on to automatically place slot current at sub-wavelength offset - height above ground plane + height above ground plane. Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return val == true + return (val == true) @property def conform__adjust_antenna(self) -> bool: - """Conform / Adjust Antenna - Toggle (on/off) conformal adjustment for array antenna elements + """Toggle (on/off) conformal adjustment for array antenna elements. Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return val == true + return (val == true) @property def element_offset(self): - """Element Offset - Set vector for shifting element positions in antenna local coordinates + """Element Offset. + + Set vector for shifting element positions in antenna local coordinates. Value should be x/y/z, delimited by spaces. """ @@ -471,10 +443,7 @@ class ConformtoPlatformOption(Enum): @property def conform_to_platform(self) -> ConformtoPlatformOption: - """Conform to Platform - Select method of automated conforming applied after Element Offset - - """ + """Select method of automated conforming applied after Element Offset.""" val = self._get_property("Conform to Platform") val = self.ConformtoPlatformOption[val.upper()] return val @@ -486,49 +455,44 @@ class ReferencePlaneOption(Enum): @property def reference_plane(self) -> ReferencePlaneOption: - """Reference Plane - Select reference plane for determining original element heights - - """ + """Select reference plane for determining original element heights.""" val = self._get_property("Reference Plane") val = self.ReferencePlaneOption[val.upper()] return val @property def conform_element_orientation(self) -> bool: - """Conform Element Orientation + """Conform Element Orientation. + Toggle (on/off) re-orientation of elements to conform to curved - placement surface + placement surface. Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return val == true + return (val == true) @property def show_axes(self) -> bool: - """Show Axes - Toggle (on/off) display of antenna coordinate axes in 3-D window + """Toggle (on/off) display of antenna coordinate axes in 3-D window. Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val == true + return (val == true) @property def show_icon(self) -> bool: - """Show Icon - Toggle (on/off) display of antenna marker (cone) in 3-D window + """Toggle (on/off) display of antenna marker (cone) in 3-D window. Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return val == true + return (val == true) @property def size(self) -> float: - """Size - Adjust relative size of antenna marker (cone) in 3-D window + """Adjust relative size of antenna marker (cone) in 3-D window. Value should be between 0.001 and 1. """ @@ -537,8 +501,7 @@ def size(self) -> float: @property def color(self): - """Color - Set color of antenna marker (cone) in 3-D window + """Set color of antenna marker (cone) in 3-D window. Color should be in RGB form: #RRGGBB. """ @@ -547,85 +510,69 @@ def color(self): @property def el_sample_interval(self) -> float: - """El Sample Interval - Space between elevation-angle samples of pattern - - """ + """Space between elevation-angle samples of pattern.""" val = self._get_property("El Sample Interval") return float(val) @property def az_sample_interval(self) -> float: - """Az Sample Interval - Space between azimuth-angle samples of pattern - - """ + """Space between azimuth-angle samples of pattern.""" val = self._get_property("Az Sample Interval") return float(val) @property def has_frequency_domain(self) -> bool: - """Has Frequency Domain - False if antenna can be used at any frequency + """False if antenna can be used at any frequency. Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return val == true + return (val == true) @property def frequency_domain(self): - """Frequency Domain - Frequency sample(s) defining antenna - - """ + """Frequency sample(s) defining antenna.""" val = self._get_property("Frequency Domain") return val @property def number_of_electric_sources(self) -> int: - """Number of Electric Sources - Number of freestanding electric current sources defining antenna - - """ + """Number of freestanding electric current sources defining antenna.""" val = self._get_property("Number of Electric Sources") return int(val) @property def number_of_magnetic_sources(self) -> int: - """Number of Magnetic Sources - Number of freestanding magnetic current sources defining antenna - - """ + """Number of freestanding magnetic current sources defining antenna.""" val = self._get_property("Number of Magnetic Sources") return int(val) @property def number_of_imaged_electric_sources(self) -> int: - """Number of Imaged Electric Sources - Number of imaged, half-space radiating electric current sources defining - antenna + """Number of Imaged Electric Sources. + Number of imaged, half-space radiating electric current sources defining + antenna. """ val = self._get_property("Number of Imaged Electric Sources") return int(val) @property def number_of_imaged_magnetic_sources(self) -> int: - """Number of Imaged Magnetic Sources - Number of imaged, half-space radiating magnetic current sources defining - antenna + """Number of Imaged Magnetic Sources. + Number of imaged, half-space radiating magnetic current sources defining + antenna. """ val = self._get_property("Number of Imaged Magnetic Sources") return int(val) @property def waveguide_height(self) -> float: - """Waveguide Height - Implied waveguide height (along local x-axis) where the flared horn - walls meet the feed + """Waveguide Height. + Implied waveguide height (along local x-axis) where the flared horn + walls meet the feed. """ val = self._get_property("Waveguide Height") val = self._convert_from_internal_units(float(val), "Length") @@ -633,20 +580,14 @@ def waveguide_height(self) -> float: @property def waveguide_cutoff_frequency(self) -> float: - """Waveguide Cutoff Frequency - Implied lowest operating frequency of pyramidal horn antenna - - """ + """Implied lowest operating frequency of pyramidal horn antenna.""" val = self._get_property("Waveguide Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @property def aperture_cutoff_frequency(self) -> float: - """Aperture Cutoff Frequency - Implied lowest operating frequency of conical horn antenna - - """ + """Implied lowest operating frequency of conical horn antenna.""" val = self._get_property("Aperture Cutoff Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -658,10 +599,10 @@ class SWEModeTruncationOption(Enum): @property def swe_mode_truncation(self) -> SWEModeTruncationOption: - """SWE Mode Truncation - Select the method for stability-enhancing truncation of spherical wave - expansion terms + """SWE Mode Truncation. + Select the method for stability-enhancing truncation of spherical wave + expansion terms. """ val = self._get_property("SWE Mode Truncation") val = self.SWEModeTruncationOption[val.upper()] @@ -669,8 +610,7 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: @property def max_n_index(self) -> int: - """Max N Index - Set maximum allowed index N for spherical wave expansion terms + """Set maximum allowed index N for spherical wave expansion terms. Value should be greater than 1. """ @@ -679,46 +619,40 @@ def max_n_index(self) -> int: @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @property def show_composite_passband(self) -> bool: - """Show Composite Passband - Show plot instead of 3D window + """Show plot instead of 3D window. Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return val == true + return (val == true) @property def use_phase_center(self) -> bool: - """Use Phase Center - Use the phase center defined in the HFSS design + """Use the phase center defined in the HFSS design. Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return val == true + return (val == true) @property def coordinate_systems(self) -> str: - """Coordinate Systems - Specifies the coordinate system for the phase center of this antenna + """Coordinate Systems. + Specifies the coordinate system for the phase center of this antenna. """ val = self._get_property("Coordinate Systems") return val @property def phasecenterposition(self): - """PhaseCenterPosition - Set position of the antennas linked coordinate system. + """Set position of the antennas linked coordinate system. Value should be x/y/z, delimited by spaces. """ @@ -727,10 +661,10 @@ def phasecenterposition(self): @property def phasecenterorientation(self): - """PhaseCenterOrientation - Set orientation of the antennas linked coordinate system. + """Set orientation of the antennas linked coordinate system. Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ val = self._get_property("PhaseCenterOrientation") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py index c1f7e8dd5bd..9f0068b5956 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyAntennaPassband(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,8 +35,7 @@ def parent(self): @property def passband_loss(self) -> float: - """Passband Loss - Passband loss + """Passband loss. Value should be between 0 and 100. """ @@ -48,8 +44,7 @@ def passband_loss(self) -> float: @property def out_of_band_attenuation(self) -> float: - """Out of Band Attenuation - Out of band antenna loss + """Out of band antenna loss. Value should be between 0 and 200. """ @@ -58,10 +53,9 @@ def out_of_band_attenuation(self) -> float: @property def lower_stop_band(self) -> float: - """Lower Stop Band - Lower stop band frequency + """Lower stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") @@ -69,10 +63,9 @@ def lower_stop_band(self) -> float: @property def lower_cutoff(self) -> float: - """Lower Cutoff - Lower cutoff frequency + """Lower cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") @@ -80,10 +73,9 @@ def lower_cutoff(self) -> float: @property def higher_cutoff(self) -> float: - """Higher Cutoff - Higher cutoff frequency + """Higher cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") @@ -91,10 +83,9 @@ def higher_cutoff(self) -> float: @property def higher_stop_band(self) -> float: - """Higher Stop Band - Higher stop band frequency + """Higher stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") @@ -102,9 +93,7 @@ def higher_stop_band(self) -> float: @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py index 9bd6a9010db..5154ebf1c5d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,76 +36,67 @@ def parent(self): @property def port(self): - """Port - Radio Port associated with this Band - - """ + """Radio Port associated with this Band.""" val = self._get_property("Port") return val @property def use_dd_1494_mode(self) -> bool: - """Use DD-1494 Mode - Uses DD-1494 parameters to define the Tx/Rx spectrum + """Uses DD-1494 parameters to define the Tx/Rx spectrum. Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return val == true + return (val == true) @property def use_emission_designator(self) -> bool: - """Use Emission Designator - Uses the Emission Designator to define the bandwidth and modulation + """Use Emission Designator. + + Uses the Emission Designator to define the bandwidth and modulation. Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return val == true + return (val == true) @property def emission_designator(self) -> str: - """Emission Designator - Enter the Emission Designator to define the bandwidth and modulation + """Emission Designator. + Enter the Emission Designator to define the bandwidth and modulation. """ val = self._get_property("Emission Designator") return val @property def emission_designator_ch_bw(self) -> float: - """Emission Designator Ch. BW - Channel Bandwidth based off the emission designator - - """ + """Channel Bandwidth based off the emission designator.""" val = self._get_property("Emission Designator Ch. BW") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @property def emit_modulation_type(self) -> str: - """EMIT Modulation Type - Modulation based off the emission designator - - """ + """Modulation based off the emission designator.""" val = self._get_property("EMIT Modulation Type") return val @property def override_emission_designator_bw(self) -> bool: - """Override Emission Designator BW + """Override Emission Designator BW. + Enables the 3 dB channel bandwidth to equal a value < emission - designator bandwidth + designator bandwidth. Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return val == true + return (val == true) @property def channel_bandwidth(self) -> float: - """Channel Bandwidth - Channel Bandwidth + """Channel Bandwidth. Value should be greater than 1. """ @@ -132,18 +119,14 @@ class ModulationOption(Enum): @property def modulation(self) -> ModulationOption: - """Modulation - Modulation used for the transmitted/received signal - - """ + """Modulation used for the transmitted/received signal.""" val = self._get_property("Modulation") val = self.ModulationOption[val.upper()] return val @property def max_modulating_freq(self) -> float: - """Max Modulating Freq. - Maximum modulating frequency: helps determine spectral profile + """Maximum modulating frequency: helps determine spectral profile. Value should be greater than 1. """ @@ -153,8 +136,7 @@ def max_modulating_freq(self) -> float: @property def modulation_index(self) -> float: - """Modulation Index - AM modulation index: helps determine spectral profile + """AM modulation index: helps determine spectral profile. Value should be between 0.01 and 1. """ @@ -163,8 +145,7 @@ def modulation_index(self) -> float: @property def freq_deviation(self) -> float: - """Freq. Deviation - Frequency deviation: helps determine spectral profile + """Frequency deviation: helps determine spectral profile. Value should be greater than 1. """ @@ -174,8 +155,7 @@ def freq_deviation(self) -> float: @property def bit_rate(self) -> float: - """Bit Rate - Maximum bit rate: helps determine width of spectral profile + """Maximum bit rate: helps determine width of spectral profile. Value should be greater than 1. """ @@ -185,8 +165,7 @@ def bit_rate(self) -> float: @property def sidelobes(self) -> int: - """Sidelobes - Number of sidelobes in spectral profile + """Number of sidelobes in spectral profile. Value should be greater than 0. """ @@ -194,9 +173,8 @@ def sidelobes(self) -> int: return int(val) @property - def freq_deviation_(self) -> float: - """Freq. Deviation - FSK frequency deviation: helps determine spectral profile + def freq_deviation(self) -> float: + """FSK frequency deviation: helps determine spectral profile. Value should be greater than 1. """ @@ -214,10 +192,7 @@ class PSKTypeOption(Enum): @property def psk_type(self) -> PSKTypeOption: - """PSK Type - PSK modulation order: helps determine spectral profile - - """ + """PSK modulation order: helps determine spectral profile.""" val = self._get_property("PSK Type") val = self.PSKTypeOption[val.upper()] return val @@ -229,10 +204,7 @@ class FSKTypeOption(Enum): @property def fsk_type(self) -> FSKTypeOption: - """FSK Type - FSK modulation order: helps determine spectral profile - - """ + """FSK modulation order: helps determine spectral profile.""" val = self._get_property("FSK Type") val = self.FSKTypeOption[val.upper()] return val @@ -246,10 +218,7 @@ class QAMTypeOption(Enum): @property def qam_type(self) -> QAMTypeOption: - """QAM Type - QAM modulation order: helps determine spectral profile - - """ + """QAM modulation order: helps determine spectral profile.""" val = self._get_property("QAM Type") val = self.QAMTypeOption[val.upper()] return val @@ -263,20 +232,16 @@ class APSKTypeOption(Enum): @property def apsk_type(self) -> APSKTypeOption: - """APSK Type - APSK modulation order: helps determine spectral profile - - """ + """APSK modulation order: helps determine spectral profile.""" val = self._get_property("APSK Type") val = self.APSKTypeOption[val.upper()] return val @property def start_frequency(self) -> float: - """Start Frequency - First frequency for this band + """First frequency for this band. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") @@ -284,10 +249,9 @@ def start_frequency(self) -> float: @property def stop_frequency(self) -> float: - """Stop Frequency - Last frequency for this band + """Last frequency for this band. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") @@ -295,10 +259,9 @@ def stop_frequency(self) -> float: @property def channel_spacing(self) -> float: - """Channel Spacing - Spacing between channels within this band + """Spacing between channels within this band. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") @@ -306,10 +269,9 @@ def channel_spacing(self) -> float: @property def tx_offset(self) -> float: - """Tx Offset - Frequency offset between Tx and Rx channels + """Frequency offset between Tx and Rx channels. - Value should be less than 1e+11. + Value should be less than 100e9. """ val = self._get_property("Tx Offset") val = self._convert_from_internal_units(float(val), "Freq") @@ -324,41 +286,37 @@ class RadarTypeOption(Enum): @property def radar_type(self) -> RadarTypeOption: - """Radar Type - Radar type: helps determine spectral profile - - """ + """Radar type: helps determine spectral profile.""" val = self._get_property("Radar Type") val = self.RadarTypeOption[val.upper()] return val @property def hopping_radar(self) -> bool: - """Hopping Radar - True for hopping radars; false otherwise + """True for hopping radars; false otherwise. Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return val == true + return (val == true) @property def post_october_2020_procurement(self) -> bool: - """Post October 2020 Procurement + """Post October 2020 Procurement. + Procurement date: helps determine spectral profile, particularly the - roll-off + roll-off. Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return val == true + return (val == true) @property def hop_range_min_freq(self) -> float: - """Hop Range Min Freq - Sets the minimum frequency of the hopping range + """Sets the minimum frequency of the hopping range. - Value should be between 1 and 1e+11. + Value should be between 1.0 and 100.0e9. """ val = self._get_property("Hop Range Min Freq") val = self._convert_from_internal_units(float(val), "Freq") @@ -366,10 +324,9 @@ def hop_range_min_freq(self) -> float: @property def hop_range_max_freq(self) -> float: - """Hop Range Max Freq - Sets the maximum frequency of the hopping range + """Sets the maximum frequency of the hopping range. - Value should be between 1 and 1e+11. + Value should be between 1.0 and 100.0e9. """ val = self._get_property("Hop Range Max Freq") val = self._convert_from_internal_units(float(val), "Freq") @@ -377,10 +334,9 @@ def hop_range_max_freq(self) -> float: @property def pulse_duration(self) -> float: - """Pulse Duration - Pulse duration + """Pulse duration. - Value should be greater than 0. + Value should be greater than 0.0. """ val = self._get_property("Pulse Duration") val = self._convert_from_internal_units(float(val), "Time") @@ -388,10 +344,9 @@ def pulse_duration(self) -> float: @property def pulse_rise_time(self) -> float: - """Pulse Rise Time - Pulse rise time + """Pulse rise time. - Value should be greater than 0. + Value should be greater than 0.0. """ val = self._get_property("Pulse Rise Time") val = self._convert_from_internal_units(float(val), "Time") @@ -399,10 +354,9 @@ def pulse_rise_time(self) -> float: @property def pulse_fall_time(self) -> float: - """Pulse Fall Time - Pulse fall time + """Pulse fall time. - Value should be greater than 0. + Value should be greater than 0.0. """ val = self._get_property("Pulse Fall Time") val = self._convert_from_internal_units(float(val), "Time") @@ -410,40 +364,36 @@ def pulse_fall_time(self) -> float: @property def pulse_repetition_rate(self) -> float: - """Pulse Repetition Rate - Pulse repetition rate [pulses/sec] + """Pulse repetition rate [pulses/sec]. - Value should be greater than 1. + Value should be greater than 1.0. """ val = self._get_property("Pulse Repetition Rate") return float(val) @property def number_of_chips(self) -> float: - """Number of Chips - Total number of chips (subpulses) contained in the pulse + """Total number of chips (subpulses) contained in the pulse. - Value should be greater than 1. + Value should be greater than 1.0. """ val = self._get_property("Number of Chips") return float(val) @property def pulse_compression_ratio(self) -> float: - """Pulse Compression Ratio - Pulse compression ratio + """Pulse compression ratio. - Value should be greater than 1. + Value should be greater than 1.0. """ val = self._get_property("Pulse Compression Ratio") return float(val) @property def fm_chirp_period(self) -> float: - """FM Chirp Period - FM Chirp period for the FM/CW radar + """FM Chirp period for the FM/CW radar. - Value should be greater than 0. + Value should be greater than 0.0. """ val = self._get_property("FM Chirp Period") val = self._convert_from_internal_units(float(val), "Time") @@ -451,10 +401,11 @@ def fm_chirp_period(self) -> float: @property def fm_freq_deviation(self) -> float: - """FM Freq Deviation - Total frequency deviation for the carrier frequency for the FM/CW radar + """FM Freq Deviation. + + Total frequency deviation for the carrier frequency for the FM/CW radar. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("FM Freq Deviation") val = self._convert_from_internal_units(float(val), "Freq") @@ -462,12 +413,14 @@ def fm_freq_deviation(self) -> float: @property def fm_freq_dev_bandwidth(self) -> float: - """FM Freq Dev Bandwidth + """FM Freq Dev Bandwidth. + Bandwidth of freq deviation for FM modulated pulsed waveform (total freq - shift during pulse duration) + shift during pulse duration). - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py index 6aa83ad1ada..88c4224e281 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyBandFolder(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,3 +32,4 @@ def __init__(self, emit_obj, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py index 7d776e8011e..d19ff047b48 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyCable(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -35,8 +31,7 @@ def __init__(self, emit_obj, result_id, node_id): @property def filename(self) -> str: - """Filename - Name of file defining the outboard component + """Name of file defining the outboard component. Value should be a full file path. """ @@ -45,8 +40,7 @@ def filename(self) -> str: @property def noise_temperature(self) -> float: - """Noise Temperature - System Noise temperature (K) of the component + """System Noise temperature (K) of the component. Value should be between 0 and 1000. """ @@ -55,10 +49,7 @@ def noise_temperature(self) -> float: @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @@ -69,10 +60,10 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: - """Type - Type of cable to use. Options include: By File (measured or simulated), - Constant Loss, or Coaxial Cable + """Type. + Type of cable to use. Options include: By File (measured or simulated), + Constant Loss, or Coaxial Cable. """ val = self._get_property("Type") val = self.TypeOption[val.upper()] @@ -80,8 +71,7 @@ def type(self) -> TypeOption: @property def length(self) -> float: - """Length - Length of cable + """Length of cable. Value should be between 0 and 500. """ @@ -91,8 +81,7 @@ def length(self) -> float: @property def loss_per_length(self) -> float: - """Loss Per Length - Cable loss per unit length (dB/meter) + """Cable loss per unit length (dB/meter). Value should be between 0 and 20. """ @@ -101,8 +90,7 @@ def loss_per_length(self) -> float: @property def measurement_length(self) -> float: - """Measurement Length - Length of the cable used for the measurements + """Length of the cable used for the measurements. Value should be between 0 and 500. """ @@ -112,8 +100,7 @@ def measurement_length(self) -> float: @property def resistive_loss_constant(self) -> float: - """Resistive Loss Constant - Coaxial cable resistive loss constant + """Coaxial cable resistive loss constant. Value should be between 0 and 2. """ @@ -122,8 +109,7 @@ def resistive_loss_constant(self) -> float: @property def dielectric_loss_constant(self) -> float: - """Dielectric Loss Constant - Coaxial cable dielectric loss constant + """Coaxial cable dielectric loss constant. Value should be between 0 and 1. """ @@ -132,9 +118,7 @@ def dielectric_loss_constant(self) -> float: @property def warnings(self) -> str: - """Warnings - Warning(s) for this node - - """ + """Warning(s) for this node.""" val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py index b51bbda501a..7acacc0ae3d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyCADNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,8 +36,7 @@ def parent(self): @property def file(self) -> str: - """File - Name of the imported CAD file + """Name of the imported CAD file. Value should be a full file path. """ @@ -66,20 +61,16 @@ class ModelTypeOption(Enum): @property def model_type(self) -> ModelTypeOption: - """Model Type - Select type of parametric model to create - - """ + """Select type of parametric model to create.""" val = self._get_property("Model Type") val = self.ModelTypeOption[val.upper()] return val @property def length(self) -> float: - """Length - Length of the model + """Length of the model. - Value should be greater than 1e-06. + Value should be greater than 0.000001. """ val = self._get_property("Length") val = self._convert_from_internal_units(float(val), "Length") @@ -87,10 +78,9 @@ def length(self) -> float: @property def width(self) -> float: - """Width - Width of the model + """Width of the model. - Value should be greater than 1e-06. + Value should be greater than 0.000001. """ val = self._get_property("Width") val = self._convert_from_internal_units(float(val), "Length") @@ -98,10 +88,9 @@ def width(self) -> float: @property def height(self) -> float: - """Height - Height of the model + """Height of the model. - Value should be greater than 1e-06. + Value should be greater than 0.000001. """ val = self._get_property("Height") val = self._convert_from_internal_units(float(val), "Length") @@ -109,20 +98,18 @@ def height(self) -> float: @property def angle(self) -> float: - """Angle - Angle (deg) between the plates + """Angle (deg) between the plates. - Value should be between 0 and 360. + Value should be between 0.0 and 360.0. """ val = self._get_property("Angle") return float(val) @property def top_side(self) -> float: - """Top Side - Side of the top of a equilateral triangular cylinder model + """Side of the top of a equilateral triangular cylinder model. - Value should be greater than 0. + Value should be greater than 0.0. """ val = self._get_property("Top Side") val = self._convert_from_internal_units(float(val), "Length") @@ -130,10 +117,9 @@ def top_side(self) -> float: @property def top_radius(self) -> float: - """Top Radius - Radius of the top of a tapered cylinder model + """Radius of the top of a tapered cylinder model. - Value should be greater than 0. + Value should be greater than 0.0. """ val = self._get_property("Top Radius") val = self._convert_from_internal_units(float(val), "Length") @@ -141,10 +127,9 @@ def top_radius(self) -> float: @property def side(self) -> float: - """Side - Side of the equilateral triangular cylinder + """Side of the equilateral triangular cylinder. - Value should be greater than 1e-06. + Value should be greater than 0.000001. """ val = self._get_property("Side") val = self._convert_from_internal_units(float(val), "Length") @@ -152,10 +137,9 @@ def side(self) -> float: @property def radius(self) -> float: - """Radius - Radius of the sphere or cylinder + """Radius of the sphere or cylinder. - Value should be greater than 1e-06. + Value should be greater than 0.000001. """ val = self._get_property("Radius") val = self._convert_from_internal_units(float(val), "Length") @@ -163,10 +147,9 @@ def radius(self) -> float: @property def base_radius(self) -> float: - """Base Radius - Radius of the base of a tophat model + """Radius of the base of a tophat model. - Value should be greater than 1e-06. + Value should be greater than 0.000001. """ val = self._get_property("Base Radius") val = self._convert_from_internal_units(float(val), "Length") @@ -174,10 +157,9 @@ def base_radius(self) -> float: @property def center_radius(self) -> float: - """Center Radius - Radius of the raised portion of a tophat model + """Radius of the raised portion of a tophat model. - Value should be greater than 1e-06. + Value should be greater than 0.000001. """ val = self._get_property("Center Radius") val = self._convert_from_internal_units(float(val), "Length") @@ -185,10 +167,9 @@ def center_radius(self) -> float: @property def x_axis_ellipsoid_radius(self) -> float: - """X Axis Ellipsoid Radius - Ellipsoid semi-principal radius for the X axis + """Ellipsoid semi-principal radius for the X axis. - Value should be greater than 1e-06. + Value should be greater than 0.000001. """ val = self._get_property("X Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") @@ -196,10 +177,9 @@ def x_axis_ellipsoid_radius(self) -> float: @property def y_axis_ellipsoid_radius(self) -> float: - """Y Axis Ellipsoid Radius - Ellipsoid semi-principal radius for the Y axis + """Ellipsoid semi-principal radius for the Y axis. - Value should be greater than 1e-06. + Value should be greater than 0.000001. """ val = self._get_property("Y Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") @@ -207,10 +187,9 @@ def y_axis_ellipsoid_radius(self) -> float: @property def z_axis_ellipsoid_radius(self) -> float: - """Z Axis Ellipsoid Radius - Ellipsoid semi-principal radius for the Z axis + """Ellipsoid semi-principal radius for the Z axis. - Value should be greater than 1e-06. + Value should be greater than 0.000001. """ val = self._get_property("Z Axis Ellipsoid Radius") val = self._convert_from_internal_units(float(val), "Length") @@ -218,10 +197,9 @@ def z_axis_ellipsoid_radius(self) -> float: @property def focal_length(self) -> float: - """Focal Length - Focal length of a parabolic reflector (f = 1/4a where y=ax^2) + """Focal length of a parabolic reflector (f = 1/4a where y=ax^2). - Value should be greater than 1e-06. + Value should be greater than 0.000001. """ val = self._get_property("Focal Length") val = self._convert_from_internal_units(float(val), "Length") @@ -229,40 +207,40 @@ def focal_length(self) -> float: @property def offset(self) -> float: - """Offset - Offset of parabolic reflector - - """ + """Offset of parabolic reflector.""" val = self._get_property("Offset") val = self._convert_from_internal_units(float(val), "Length") return float(val) @property def x_direction_taper(self) -> float: - """X Direction Taper + """X Direction Taper. + Amount (%) that the prism tapers in the X dimension from one end to the - other + other. - Value should be greater than 0. + Value should be greater than 0.0. """ val = self._get_property("X Direction Taper") return float(val) @property def y_direction_taper(self) -> float: - """Y Direction Taper + """Y Direction Taper. + Amount (%) that the prism tapers in the Y dimension from one end to the - other + other. - Value should be greater than 0. + Value should be greater than 0.0. """ val = self._get_property("Y Direction Taper") return float(val) @property def prism_direction(self): - """Prism Direction - Direction vector between the center of the base and center of the top + """Prism Direction. + + Direction vector between the center of the base and center of the top. Value should be x/y/z, delimited by spaces. """ @@ -271,29 +249,28 @@ def prism_direction(self): @property def closed_top(self) -> bool: - """Closed Top - Control whether the top of the model is closed + """Control whether the top of the model is closed. Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return val == true + return (val == true) @property def closed_base(self) -> bool: - """Closed Base - Control whether the base of the model is closed + """Control whether the base of the model is closed. Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return val == true + return (val == true) @property def mesh_density(self) -> int: - """Mesh Density + """Mesh Density. + Unitless mesh density parameter where higher value improves mesh - smoothness + smoothness. Value should be between 1 and 100. """ @@ -302,14 +279,15 @@ def mesh_density(self) -> int: @property def use_symmetric_mesh(self) -> bool: - """Use Symmetric Mesh + """Use Symmetric Mesh. + Convert quads to a symmetric triangle mesh by adding a center point (4 - triangles per quad instead of 2) + triangles per quad instead of 2). Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return val == true + return (val == true) class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -317,18 +295,14 @@ class MeshOptionOption(Enum): @property def mesh_option(self) -> MeshOptionOption: - """Mesh Option - Select from different meshing options - - """ + """Select from different meshing options.""" val = self._get_property("Mesh Option") val = self.MeshOptionOption[val.upper()] return val @property def coating_index(self) -> int: - """Coating Index - Coating index for the parametric model primitive + """Coating index for the parametric model primitive. Value should be between 0 and 100000. """ @@ -337,19 +311,19 @@ def coating_index(self) -> int: @property def show_relative_coordinates(self) -> bool: - """Show Relative Coordinates + """Show Relative Coordinates. + Show CAD model node position and orientation in parent-node coords - (False) or relative to placement coords (True) + (False) or relative to placement coords (True). Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val == true + return (val == true) @property def position(self): - """Position - Set position of the CAD node in parent-node coordinates + """Set position of the CAD node in parent-node coordinates. Value should be x/y/z, delimited by spaces. """ @@ -358,8 +332,9 @@ def position(self): @property def relative_position(self): - """Relative Position - Set position of the CAD model node relative to placement coordinates + """Relative Position. + + Set position of the CAD model node relative to placement coordinates. Value should be x/y/z, delimited by spaces. """ @@ -372,9 +347,9 @@ class OrientationModeOption(Enum): @property def orientation_mode(self) -> OrientationModeOption: - """Orientation Mode - Select the convention (order of rotations) for configuring orientation + """Orientation Mode. + Select the convention (order of rotations) for configuring orientation. """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] @@ -382,8 +357,7 @@ def orientation_mode(self) -> OrientationModeOption: @property def orientation(self): - """Orientation - Set orientation of the CAD node in parent-node coordinates + """Set orientation of the CAD node in parent-node coordinates. Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ @@ -392,8 +366,9 @@ def orientation(self): @property def relative_orientation(self): - """Relative Orientation - Set orientation of the CAD model node relative to placement coordinates + """Relative Orientation. + + Set orientation of the CAD model node relative to placement coordinates. Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ @@ -402,13 +377,12 @@ def relative_orientation(self): @property def visible(self) -> bool: - """Visible - Toggle (on/off) display of CAD model in 3-D window + """Toggle (on/off) display of CAD model in 3-D window. Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -418,28 +392,23 @@ class RenderModeOption(Enum): @property def render_mode(self) -> RenderModeOption: - """Render Mode - Select drawing style for surfaces - - """ + """Select drawing style for surfaces.""" val = self._get_property("Render Mode") val = self.RenderModeOption[val.upper()] return val @property def show_axes(self) -> bool: - """Show Axes - Toggle (on/off) display of CAD model coordinate axes in 3-D window + """Toggle (on/off) display of CAD model coordinate axes in 3-D window. Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val == true + return (val == true) @property def min(self): - """Min - Minimum x,y,z extents of CAD model in local coordinates + """Minimum x,y,z extents of CAD model in local coordinates. Value should be x/y/z, delimited by spaces. """ @@ -448,8 +417,7 @@ def min(self): @property def max(self): - """Max - Maximum x,y,z extents of CAD model in local coordinates + """Maximum x,y,z extents of CAD model in local coordinates. Value should be x/y/z, delimited by spaces. """ @@ -458,17 +426,13 @@ def max(self): @property def number_of_surfaces(self) -> int: - """Number of Surfaces - Number of surfaces in the model - - """ + """Number of surfaces in the model.""" val = self._get_property("Number of Surfaces") return int(val) @property def color(self): - """Color - Defines the CAD nodes color + """Defines the CAD nodes color. Color should be in RGB form: #RRGGBB. """ @@ -477,9 +441,7 @@ def color(self): @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py index 5217a9c9330..aaf36909c0e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyCirculator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -35,8 +31,7 @@ def __init__(self, emit_obj, result_id, node_id): @property def filename(self) -> str: - """Filename - Name of file defining the Isolator/Circulator + """Name of file defining the Isolator/Circulator. Value should be a full file path. """ @@ -45,8 +40,7 @@ def filename(self) -> str: @property def noise_temperature(self) -> float: - """Noise Temperature - System Noise temperature (K) of the component + """System Noise temperature (K) of the component. Value should be between 0 and 1000. """ @@ -55,10 +49,7 @@ def noise_temperature(self) -> float: @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @@ -68,10 +59,10 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: - """Type - Type of circulator model to use. Options include: By File (measured or - simulated) or Parametric + """Type. + Type of circulator model to use. Options include: By File (measured or + simulated) or Parametric. """ val = self._get_property("Type") val = self.TypeOption[val.upper()] @@ -83,18 +74,14 @@ class Port1LocationOption(Enum): @property def port_1_location(self) -> Port1LocationOption: - """Port 1 Location - Defines the orientation of the circulator. - - """ + """Defines the orientation of the circulator.""" val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @property def insertion_loss(self) -> float: - """Insertion Loss - Circulator in-band loss in forward direction. + """Circulator in-band loss in forward direction. Value should be between 0 and 100. """ @@ -103,19 +90,19 @@ def insertion_loss(self) -> float: @property def finite_reverse_isolation(self) -> bool: - """Finite Reverse Isolation + """Finite Reverse Isolation. + Use a finite reverse isolation. If disabled, the circulator model is - ideal (infinite reverse isolation). + ideal (infinite reverse isolation). Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val == true + return (val == true) @property def reverse_isolation(self) -> float: - """Reverse Isolation - Circulator reverse isolation (i.e., loss in the reverse direction). + """Circulator reverse isolation (i.e., loss in the reverse direction). Value should be between 0 and 100. """ @@ -124,19 +111,19 @@ def reverse_isolation(self) -> float: @property def finite_bandwidth(self) -> bool: - """Finite Bandwidth + """Finite Bandwidth. + Use a finite bandwidth. If disabled, the circulator model is ideal - (infinite bandwidth). + (infinite bandwidth). Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val == true + return (val == true) @property def out_of_band_attenuation(self) -> float: - """Out-of-band Attenuation - Out-of-band loss (attenuation) + """Out-of-band loss (attenuation). Value should be between 0 and 200. """ @@ -145,10 +132,9 @@ def out_of_band_attenuation(self) -> float: @property def lower_stop_band(self) -> float: - """Lower Stop Band - Lower stop band frequency + """Lower stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") @@ -156,10 +142,9 @@ def lower_stop_band(self) -> float: @property def lower_cutoff(self) -> float: - """Lower Cutoff - Lower cutoff frequency + """Lower cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") @@ -167,10 +152,9 @@ def lower_cutoff(self) -> float: @property def higher_cutoff(self) -> float: - """Higher Cutoff - Higher cutoff frequency + """Higher cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") @@ -178,10 +162,9 @@ def higher_cutoff(self) -> float: @property def higher_stop_band(self) -> float: - """Higher Stop Band - Higher stop band frequency + """Higher stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") @@ -189,9 +172,7 @@ def higher_stop_band(self) -> float: @property def warnings(self) -> str: - """Warnings - Warning(s) for this node - - """ + """Warning(s) for this node.""" val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py index 1aaaf0aa9a8..6e844aeb233 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,20 +35,16 @@ def parent(self): @property def enabled(self) -> bool: - """Enabled - Enable/Disable coupling link + """Enable/Disable coupling link. Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def ports(self): - """Ports - Maps each port in the link to an antenna in the project - - "A list of values." - """ + """Maps each port in the link to an antenna in the project.""" val = self._get_property("Ports") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py index 2612058943c..789d2b6dffe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyCouplingsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -33,9 +30,10 @@ def __init__(self, emit_obj, result_id, node_id): @property def minimum_allowed_coupling(self) -> float: - """Minimum Allowed Coupling + """Minimum Allowed Coupling. + Global minimum allowed coupling value. All computed coupling within this - project will be >= this value + project will be >= this value. Value should be between -1000 and 1000. """ @@ -44,8 +42,7 @@ def minimum_allowed_coupling(self) -> float: @property def global_default_coupling(self) -> float: - """Global Default Coupling - Default antenna-to-antenna coupling loss value + """Default antenna-to-antenna coupling loss value. Value should be between -1000 and 0. """ @@ -54,9 +51,7 @@ def global_default_coupling(self) -> float: @property def antenna_tags(self) -> str: - """Antenna Tags - All tags currently used by all antennas in the project - - """ + """All tags currently used by all antennas in the project.""" val = self._get_property("Antenna Tags") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py index 1233eb221b3..020d880a854 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,68 +35,57 @@ def parent(self): @property def table_data(self): - """Table" - "Table consists of 2 columns." - "Frequency: - Value should be between 1 and 1e+11. - "Value (dB): - Value should be between -1000 and 0. + """Table. + Table consists of 2 columns. + Frequency: + Value should be between 1.0 and 100.0e9. + Value (dB): + Value should be between -1000.0 and 0.0. """ return self._get_table_data() @property def enabled(self) -> bool: - """Enabled - Enable/Disable coupling + """Enable/Disable coupling. Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def antenna_a(self) -> EmitNode: - """Antenna A - First antenna of the pair to apply the coupling values to - - """ + """First antenna of the pair to apply the coupling values to.""" val = self._get_property("Antenna A") return val @property def antenna_b(self) -> EmitNode: - """Antenna B - Second antenna of the pair to apply the coupling values to - - """ + """Second antenna of the pair to apply the coupling values to.""" val = self._get_property("Antenna B") return val @property def enable_refinement(self) -> bool: - """Enable Refinement - Enables/disables refined sampling of the frequency domain. + """Enables/disables refined sampling of the frequency domain. Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: - """Adaptive Sampling - Enables/disables adaptive refinement the frequency domain sampling. + """Enables/disables adaptive refinement the frequency domain sampling. Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): - """Refinement Domain - Points to use when refining the frequency domain. - - """ + """Points to use when refining the frequency domain.""" val = self._get_property("Refinement Domain") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py index b4e8c6526e1..e1ac1c6e09b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,10 +31,7 @@ def __init__(self, emit_obj, result_id, node_id): @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @@ -49,21 +42,19 @@ class GroundPlaneNormalOption(Enum): @property def ground_plane_normal(self) -> GroundPlaneNormalOption: - """Ground Plane Normal - Specifies the axis of the normal to the ground plane - - """ + """Specifies the axis of the normal to the ground plane.""" val = self._get_property("Ground Plane Normal") val = self.GroundPlaneNormalOption[val.upper()] return val @property def gp_position_along_normal(self) -> float: - """GP Position Along Normal - Offset of ground plane in direction normal to the ground planes - orientation + """GP Position Along Normal. + Offset of ground plane in direction normal to the ground planes + orientation. """ val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py index 3dbb6977ca2..5dc98f2df54 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,58 +36,46 @@ def parent(self): @property def enabled(self) -> bool: - """Enabled - Enable/Disable coupling + """Enable/Disable coupling. Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def base_antenna(self) -> EmitNode: - """Base Antenna - First antenna of the pair to apply the coupling values to - - """ + """First antenna of the pair to apply the coupling values to.""" val = self._get_property("Base Antenna") return val @property def mobile_antenna(self) -> EmitNode: - """Mobile Antenna - Second antenna of the pair to apply the coupling values to - - """ + """Second antenna of the pair to apply the coupling values to.""" val = self._get_property("Mobile Antenna") return val @property def enable_refinement(self) -> bool: - """Enable Refinement - Enables/disables refined sampling of the frequency domain. + """Enables/disables refined sampling of the frequency domain. Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: - """Adaptive Sampling - Enables/disables adaptive refinement the frequency domain sampling. + """Enables/disables adaptive refinement the frequency domain sampling. Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): - """Refinement Domain - Points to use when refining the frequency domain. - - """ + """Points to use when refining the frequency domain.""" val = self._get_property("Refinement Domain") return val @@ -102,19 +86,17 @@ class TerrainCategoryOption(Enum): @property def terrain_category(self) -> TerrainCategoryOption: - """Terrain Category - Specify the terrain category type for the Erceg model - - """ + """Specify the terrain category type for the Erceg model.""" val = self._get_property("Terrain Category") val = self.TerrainCategoryOption[val.upper()] return val @property def custom_fading_margin(self) -> float: - """Custom Fading Margin + """Custom Fading Margin. + Sets a custom fading margin to be applied to all coupling defined by - this node + this node. Value should be between 0 and 100. """ @@ -123,9 +105,10 @@ def custom_fading_margin(self) -> float: @property def polarization_mismatch(self) -> float: - """Polarization Mismatch + """Polarization Mismatch. + Sets a margin for polarization mismatch to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -134,9 +117,10 @@ def polarization_mismatch(self) -> float: @property def pointing_error_loss(self) -> float: - """Pointing Error Loss + """Pointing Error Loss. + Sets a margin for pointing error loss to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -151,50 +135,47 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: - """Fading Type - Specify the type of fading to include - - """ + """Specify the type of fading to include.""" val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @property def fading_availability(self) -> float: - """Fading Availability + """Fading Availability. + The probability that the propagation loss in dB is below its median - value plus the margin + value plus the margin. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Fading Availability") return float(val) @property def std_deviation(self) -> float: - """Std Deviation - Standard deviation modeling the random amount of shadowing loss + """Standard deviation modeling the random amount of shadowing loss. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Std Deviation") return float(val) @property def include_rain_attenuation(self) -> bool: - """Include Rain Attenuation - Adds a margin for rain attenuation to the computed coupling + """Adds a margin for rain attenuation to the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @property def rain_availability(self) -> float: - """Rain Availability + """Rain Availability. + Percentage of time attenuation due to range is < computed margin (range - from 99-99.999%) + from 99-99.999%). Value should be between 99 and 99.999. """ @@ -203,62 +184,61 @@ def rain_availability(self) -> float: @property def rain_rate(self) -> float: - """Rain Rate - Rain rate (mm/hr) exceeded for 0.01% of the time + """Rain rate (mm/hr) exceeded for 0.01% of the time. - Value should be between 0 and 1000. + Value should be between 0.0 and 1000.0. """ val = self._get_property("Rain Rate") return float(val) @property def polarization_tilt_angle(self) -> float: - """Polarization Tilt Angle + """Polarization Tilt Angle. + Polarization tilt angle of the transmitted signal relative to the - horizontal + horizontal. - Value should be between 0 and 180. + Value should be between 0.0 and 180.0. """ val = self._get_property("Polarization Tilt Angle") return float(val) @property def include_atmospheric_absorption(self) -> bool: - """Include Atmospheric Absorption + """Include Atmospheric Absorption. + Adds a margin for atmospheric absorption due to oxygen/water vapor to - the computed coupling + the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @property def temperature(self) -> float: - """Temperature - Air temperature in degrees Celsius + """Air temperature in degrees Celsius. - Value should be between -273 and 100. + Value should be between -273.0 and 100.0. """ val = self._get_property("Temperature") return float(val) @property def total_air_pressure(self) -> float: - """Total Air Pressure - Total air pressure + """Total air pressure. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Total Air Pressure") return float(val) @property def water_vapor_concentration(self) -> float: - """Water Vapor Concentration - Water vapor concentration + """Water vapor concentration. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Water Vapor Concentration") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py index c76d25b367a..9bbaf0d4c52 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyFilter(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -35,8 +31,7 @@ def __init__(self, emit_obj, result_id, node_id): @property def filename(self) -> str: - """Filename - Name of file defining the outboard component + """Name of file defining the outboard component. Value should be a full file path. """ @@ -45,8 +40,7 @@ def filename(self) -> str: @property def noise_temperature(self) -> float: - """Noise Temperature - System Noise temperature (K) of the component + """System Noise temperature (K) of the component. Value should be between 0 and 1000. """ @@ -55,10 +49,7 @@ def noise_temperature(self) -> float: @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @@ -73,10 +64,10 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: - """Type - Type of filter to define. The filter can be defined by file (measured or - simulated data) or using one of EMIT's parametric models + """Type. + Type of filter to define. The filter can be defined by file (measured or + simulated data) or using one of EMIT's parametric models. """ val = self._get_property("Type") val = self.TypeOption[val.upper()] @@ -84,8 +75,7 @@ def type(self) -> TypeOption: @property def insertion_loss(self) -> float: - """Insertion Loss - Filter pass band loss + """Filter pass band loss. Value should be between 0 and 100. """ @@ -94,8 +84,7 @@ def insertion_loss(self) -> float: @property def stop_band_attenuation(self) -> float: - """Stop band Attenuation - Filter stop band loss (attenuation) + """Filter stop band loss (attenuation). Value should be less than 200. """ @@ -104,10 +93,9 @@ def stop_band_attenuation(self) -> float: @property def max_pass_band(self) -> float: - """Max Pass Band - Maximum pass band frequency + """Maximum pass band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") @@ -115,10 +103,9 @@ def max_pass_band(self) -> float: @property def min_stop_band(self) -> float: - """Min Stop Band - Minimum stop band frequency + """Minimum stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") @@ -126,10 +113,9 @@ def min_stop_band(self) -> float: @property def max_stop_band(self) -> float: - """Max Stop Band - Maximum stop band frequency + """Maximum stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") @@ -137,10 +123,9 @@ def max_stop_band(self) -> float: @property def min_pass_band(self) -> float: - """Min Pass Band - Minimum pass band frequency + """Minimum pass band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") @@ -148,10 +133,9 @@ def min_pass_band(self) -> float: @property def lower_stop_band(self) -> float: - """Lower Stop Band - Lower stop band frequency + """Lower stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") @@ -159,10 +143,9 @@ def lower_stop_band(self) -> float: @property def lower_cutoff(self) -> float: - """Lower Cutoff - Lower cutoff frequency + """Lower cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") @@ -170,10 +153,9 @@ def lower_cutoff(self) -> float: @property def higher_cutoff(self) -> float: - """Higher Cutoff - Higher cutoff frequency + """Higher cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") @@ -181,76 +163,69 @@ def higher_cutoff(self) -> float: @property def higher_stop_band(self) -> float: - """Higher Stop Band - Higher stop band frequency + """Higher stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @property - def lower_cutoff_(self) -> float: - """Lower Cutoff - Lower cutoff frequency + def lower_cutoff(self) -> float: + """Lower cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @property - def lower_stop_band_(self) -> float: - """Lower Stop Band - Lower stop band frequency + def lower_stop_band(self) -> float: + """Lower stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @property - def higher_stop_band_(self) -> float: - """Higher Stop Band - Higher stop band frequency + def higher_stop_band(self) -> float: + """Higher stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Stop Band ") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @property - def higher_cutoff_(self) -> float: - """Higher Cutoff - Higher cutoff frequency + def higher_cutoff(self) -> float: + """Higher cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Cutoff ") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @property - def lowest_tuned_frequency_(self) -> float: - """Lowest Tuned Frequency - Lowest tuned frequency + def lowest_tuned_frequency(self) -> float: + """Lowest tuned frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lowest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @property - def highest_tuned_frequency_(self) -> float: - """Highest Tuned Frequency - Highest tuned frequency + def highest_tuned_frequency(self) -> float: + """Highest tuned frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Highest Tuned Frequency ") val = self._convert_from_internal_units(float(val), "Freq") @@ -258,8 +233,7 @@ def highest_tuned_frequency_(self) -> float: @property def percent_bandwidth(self) -> float: - """Percent Bandwidth - Tunable filter 3-dB bandwidth + """Tunable filter 3-dB bandwidth. Value should be between 0.001 and 100. """ @@ -268,8 +242,7 @@ def percent_bandwidth(self) -> float: @property def shape_factor(self) -> float: - """Shape Factor - Ratio defining the filter rolloff + """Ratio defining the filter rolloff. Value should be between 1 and 100. """ @@ -278,9 +251,7 @@ def shape_factor(self) -> float: @property def warnings(self) -> str: - """Warnings - Warning(s) for this node - - """ + """Warning(s) for this node.""" val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py index ad9a48eb6c6..06e81aa9736 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,58 +36,46 @@ def parent(self): @property def enabled(self) -> bool: - """Enabled - Enable/Disable coupling + """Enable/Disable coupling. Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def base_antenna(self) -> EmitNode: - """Base Antenna - First antenna of the pair to apply the coupling values to - - """ + """First antenna of the pair to apply the coupling values to.""" val = self._get_property("Base Antenna") return val @property def mobile_antenna(self) -> EmitNode: - """Mobile Antenna - Second antenna of the pair to apply the coupling values to - - """ + """Second antenna of the pair to apply the coupling values to.""" val = self._get_property("Mobile Antenna") return val @property def enable_refinement(self) -> bool: - """Enable Refinement - Enables/disables refined sampling of the frequency domain. + """Enables/disables refined sampling of the frequency domain. Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: - """Adaptive Sampling - Enables/disables adaptive refinement the frequency domain sampling. + """Enables/disables adaptive refinement the frequency domain sampling. Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): - """Refinement Domain - Points to use when refining the frequency domain. - - """ + """Points to use when refining the frequency domain.""" val = self._get_property("Refinement Domain") return val @@ -102,33 +86,28 @@ class EnvironmentOption(Enum): @property def environment(self) -> EnvironmentOption: - """Environment - Specify the environment for the 5G channel model - - """ + """Specify the environment for the 5G channel model.""" val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @property def los(self) -> bool: - """LOS - True if the operating environment is line-of-sight + """True if the operating environment is line-of-sight. Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return val == true + return (val == true) @property def include_bpl(self) -> bool: - """Include BPL - Includes building penetration loss if true + """Includes building penetration loss if true. Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return val == true + return (val == true) class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -136,19 +115,17 @@ class NYUBPLModelOption(Enum): @property def nyu_bpl_model(self) -> NYUBPLModelOption: - """NYU BPL Model - Specify the NYU Building Penetration Loss model - - """ + """Specify the NYU Building Penetration Loss model.""" val = self._get_property("NYU BPL Model") val = self.NYUBPLModelOption[val.upper()] return val @property def custom_fading_margin(self) -> float: - """Custom Fading Margin + """Custom Fading Margin. + Sets a custom fading margin to be applied to all coupling defined by - this node + this node. Value should be between 0 and 100. """ @@ -157,9 +134,10 @@ def custom_fading_margin(self) -> float: @property def polarization_mismatch(self) -> float: - """Polarization Mismatch + """Polarization Mismatch. + Sets a margin for polarization mismatch to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -168,9 +146,10 @@ def polarization_mismatch(self) -> float: @property def pointing_error_loss(self) -> float: - """Pointing Error Loss + """Pointing Error Loss. + Sets a margin for pointing error loss to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -185,50 +164,47 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: - """Fading Type - Specify the type of fading to include - - """ + """Specify the type of fading to include.""" val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @property def fading_availability(self) -> float: - """Fading Availability + """Fading Availability. + The probability that the propagation loss in dB is below its median - value plus the margin + value plus the margin. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Fading Availability") return float(val) @property def std_deviation(self) -> float: - """Std Deviation - Standard deviation modeling the random amount of shadowing loss + """Standard deviation modeling the random amount of shadowing loss. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Std Deviation") return float(val) @property def include_rain_attenuation(self) -> bool: - """Include Rain Attenuation - Adds a margin for rain attenuation to the computed coupling + """Adds a margin for rain attenuation to the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @property def rain_availability(self) -> float: - """Rain Availability + """Rain Availability. + Percentage of time attenuation due to range is < computed margin (range - from 99-99.999%) + from 99-99.999%). Value should be between 99 and 99.999. """ @@ -237,62 +213,61 @@ def rain_availability(self) -> float: @property def rain_rate(self) -> float: - """Rain Rate - Rain rate (mm/hr) exceeded for 0.01% of the time + """Rain rate (mm/hr) exceeded for 0.01% of the time. - Value should be between 0 and 1000. + Value should be between 0.0 and 1000.0. """ val = self._get_property("Rain Rate") return float(val) @property def polarization_tilt_angle(self) -> float: - """Polarization Tilt Angle + """Polarization Tilt Angle. + Polarization tilt angle of the transmitted signal relative to the - horizontal + horizontal. - Value should be between 0 and 180. + Value should be between 0.0 and 180.0. """ val = self._get_property("Polarization Tilt Angle") return float(val) @property def include_atmospheric_absorption(self) -> bool: - """Include Atmospheric Absorption + """Include Atmospheric Absorption. + Adds a margin for atmospheric absorption due to oxygen/water vapor to - the computed coupling + the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @property def temperature(self) -> float: - """Temperature - Air temperature in degrees Celsius + """Air temperature in degrees Celsius. - Value should be between -273 and 100. + Value should be between -273.0 and 100.0. """ val = self._get_property("Temperature") return float(val) @property def total_air_pressure(self) -> float: - """Total Air Pressure - Total air pressure + """Total air pressure. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Total Air Pressure") return float(val) @property def water_vapor_concentration(self) -> float: - """Water Vapor Concentration - Water vapor concentration + """Water vapor concentration. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Water Vapor Concentration") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py index a49f4c8f965..25e9d2c3e64 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,58 +36,46 @@ def parent(self): @property def enabled(self) -> bool: - """Enabled - Enable/Disable coupling + """Enable/Disable coupling. Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def base_antenna(self) -> EmitNode: - """Base Antenna - First antenna of the pair to apply the coupling values to - - """ + """First antenna of the pair to apply the coupling values to.""" val = self._get_property("Base Antenna") return val @property def mobile_antenna(self) -> EmitNode: - """Mobile Antenna - Second antenna of the pair to apply the coupling values to - - """ + """Second antenna of the pair to apply the coupling values to.""" val = self._get_property("Mobile Antenna") return val @property def enable_refinement(self) -> bool: - """Enable Refinement - Enables/disables refined sampling of the frequency domain. + """Enables/disables refined sampling of the frequency domain. Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: - """Adaptive Sampling - Enables/disables adaptive refinement the frequency domain sampling. + """Enables/disables adaptive refinement the frequency domain sampling. Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): - """Refinement Domain - Points to use when refining the frequency domain. - - """ + """Points to use when refining the frequency domain.""" val = self._get_property("Refinement Domain") return val @@ -103,19 +87,17 @@ class EnvironmentOption(Enum): @property def environment(self) -> EnvironmentOption: - """Environment - Specify the environment type for the Hata model - - """ + """Specify the environment type for the Hata model.""" val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @property def custom_fading_margin(self) -> float: - """Custom Fading Margin + """Custom Fading Margin. + Sets a custom fading margin to be applied to all coupling defined by - this node + this node. Value should be between 0 and 100. """ @@ -124,9 +106,10 @@ def custom_fading_margin(self) -> float: @property def polarization_mismatch(self) -> float: - """Polarization Mismatch + """Polarization Mismatch. + Sets a margin for polarization mismatch to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -135,9 +118,10 @@ def polarization_mismatch(self) -> float: @property def pointing_error_loss(self) -> float: - """Pointing Error Loss + """Pointing Error Loss. + Sets a margin for pointing error loss to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -152,50 +136,47 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: - """Fading Type - Specify the type of fading to include - - """ + """Specify the type of fading to include.""" val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @property def fading_availability(self) -> float: - """Fading Availability + """Fading Availability. + The probability that the propagation loss in dB is below its median - value plus the margin + value plus the margin. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Fading Availability") return float(val) @property def std_deviation(self) -> float: - """Std Deviation - Standard deviation modeling the random amount of shadowing loss + """Standard deviation modeling the random amount of shadowing loss. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Std Deviation") return float(val) @property def include_rain_attenuation(self) -> bool: - """Include Rain Attenuation - Adds a margin for rain attenuation to the computed coupling + """Adds a margin for rain attenuation to the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @property def rain_availability(self) -> float: - """Rain Availability + """Rain Availability. + Percentage of time attenuation due to range is < computed margin (range - from 99-99.999%) + from 99-99.999%). Value should be between 99 and 99.999. """ @@ -204,62 +185,61 @@ def rain_availability(self) -> float: @property def rain_rate(self) -> float: - """Rain Rate - Rain rate (mm/hr) exceeded for 0.01% of the time + """Rain rate (mm/hr) exceeded for 0.01% of the time. - Value should be between 0 and 1000. + Value should be between 0.0 and 1000.0. """ val = self._get_property("Rain Rate") return float(val) @property def polarization_tilt_angle(self) -> float: - """Polarization Tilt Angle + """Polarization Tilt Angle. + Polarization tilt angle of the transmitted signal relative to the - horizontal + horizontal. - Value should be between 0 and 180. + Value should be between 0.0 and 180.0. """ val = self._get_property("Polarization Tilt Angle") return float(val) @property def include_atmospheric_absorption(self) -> bool: - """Include Atmospheric Absorption + """Include Atmospheric Absorption. + Adds a margin for atmospheric absorption due to oxygen/water vapor to - the computed coupling + the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @property def temperature(self) -> float: - """Temperature - Air temperature in degrees Celsius + """Air temperature in degrees Celsius. - Value should be between -273 and 100. + Value should be between -273.0 and 100.0. """ val = self._get_property("Temperature") return float(val) @property def total_air_pressure(self) -> float: - """Total Air Pressure - Total air pressure + """Total air pressure. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Total Air Pressure") return float(val) @property def water_vapor_concentration(self) -> float: - """Water Vapor Concentration - Water vapor concentration + """Water vapor concentration. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Water Vapor Concentration") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py index face93c9d77..0bfd1495ae8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,71 +36,59 @@ def parent(self): @property def table_data(self): - """Table" - "Table consists of 3 columns." - "Frequency: - Value should be between 1 and 1e+11. - "Power Loss Coefficient: - Value should be between 0 and 100. - "Floor Penetration Loss (dB): - Value should be between 0 and 1000. + """Table. + Table consists of 3 columns. + Frequency: + Value should be between 1.0 and 100.0e9. + Power Loss Coefficient: + Value should be between 0.0 and 100.0. + Floor Penetration Loss (dB): + Value should be between 0.0 and 1000.0. """ return self._get_table_data() @property def enabled(self) -> bool: - """Enabled - Enable/Disable coupling + """Enable/Disable coupling. Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def antenna_a(self) -> EmitNode: - """Antenna A - First antenna of the pair to apply the coupling values to - - """ + """First antenna of the pair to apply the coupling values to.""" val = self._get_property("Antenna A") return val @property def antenna_b(self) -> EmitNode: - """Antenna B - Second antenna of the pair to apply the coupling values to - - """ + """Second antenna of the pair to apply the coupling values to.""" val = self._get_property("Antenna B") return val @property def enable_refinement(self) -> bool: - """Enable Refinement - Enables/disables refined sampling of the frequency domain. + """Enables/disables refined sampling of the frequency domain. Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: - """Adaptive Sampling - Enables/disables adaptive refinement the frequency domain sampling. + """Enables/disables adaptive refinement the frequency domain sampling. Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): - """Refinement Domain - Points to use when refining the frequency domain. - - """ + """Points to use when refining the frequency domain.""" val = self._get_property("Refinement Domain") return val @@ -117,18 +101,14 @@ class BuildingTypeOption(Enum): @property def building_type(self) -> BuildingTypeOption: - """Building Type - Specify the building type for the Indoor Propagation model - - """ + """Specify the building type for the Indoor Propagation model.""" val = self._get_property("Building Type") val = self.BuildingTypeOption[val.upper()] return val @property def number_of_floors(self) -> int: - """Number of Floors - The number of floors separating the antennas. + """The number of floors separating the antennas. Value should be between 1 and 3. """ @@ -137,9 +117,10 @@ def number_of_floors(self) -> int: @property def custom_fading_margin(self) -> float: - """Custom Fading Margin + """Custom Fading Margin. + Sets a custom fading margin to be applied to all coupling defined by - this node + this node. Value should be between 0 and 100. """ @@ -148,9 +129,10 @@ def custom_fading_margin(self) -> float: @property def polarization_mismatch(self) -> float: - """Polarization Mismatch + """Polarization Mismatch. + Sets a margin for polarization mismatch to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -159,9 +141,10 @@ def polarization_mismatch(self) -> float: @property def pointing_error_loss(self) -> float: - """Pointing Error Loss + """Pointing Error Loss. + Sets a margin for pointing error loss to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -176,50 +159,47 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: - """Fading Type - Specify the type of fading to include - - """ + """Specify the type of fading to include.""" val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @property def fading_availability(self) -> float: - """Fading Availability + """Fading Availability. + The probability that the propagation loss in dB is below its median - value plus the margin + value plus the margin. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Fading Availability") return float(val) @property def std_deviation(self) -> float: - """Std Deviation - Standard deviation modeling the random amount of shadowing loss + """Standard deviation modeling the random amount of shadowing loss. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Std Deviation") return float(val) @property def include_rain_attenuation(self) -> bool: - """Include Rain Attenuation - Adds a margin for rain attenuation to the computed coupling + """Adds a margin for rain attenuation to the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @property def rain_availability(self) -> float: - """Rain Availability + """Rain Availability. + Percentage of time attenuation due to range is < computed margin (range - from 99-99.999%) + from 99-99.999%). Value should be between 99 and 99.999. """ @@ -228,62 +208,61 @@ def rain_availability(self) -> float: @property def rain_rate(self) -> float: - """Rain Rate - Rain rate (mm/hr) exceeded for 0.01% of the time + """Rain rate (mm/hr) exceeded for 0.01% of the time. - Value should be between 0 and 1000. + Value should be between 0.0 and 1000.0. """ val = self._get_property("Rain Rate") return float(val) @property def polarization_tilt_angle(self) -> float: - """Polarization Tilt Angle + """Polarization Tilt Angle. + Polarization tilt angle of the transmitted signal relative to the - horizontal + horizontal. - Value should be between 0 and 180. + Value should be between 0.0 and 180.0. """ val = self._get_property("Polarization Tilt Angle") return float(val) @property def include_atmospheric_absorption(self) -> bool: - """Include Atmospheric Absorption + """Include Atmospheric Absorption. + Adds a margin for atmospheric absorption due to oxygen/water vapor to - the computed coupling + the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @property def temperature(self) -> float: - """Temperature - Air temperature in degrees Celsius + """Air temperature in degrees Celsius. - Value should be between -273 and 100. + Value should be between -273.0 and 100.0. """ val = self._get_property("Temperature") return float(val) @property def total_air_pressure(self) -> float: - """Total Air Pressure - Total air pressure + """Total air pressure. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Total Air Pressure") return float(val) @property def water_vapor_concentration(self) -> float: - """Water Vapor Concentration - Water vapor concentration + """Water vapor concentration. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Water Vapor Concentration") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py index 2d894cdd5db..f5ae03eed22 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyIsolator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -35,8 +31,7 @@ def __init__(self, emit_obj, result_id, node_id): @property def filename(self) -> str: - """Filename - Name of file defining the outboard component + """Name of file defining the outboard component. Value should be a full file path. """ @@ -45,8 +40,7 @@ def filename(self) -> str: @property def noise_temperature(self) -> float: - """Noise Temperature - System Noise temperature (K) of the component + """System Noise temperature (K) of the component. Value should be between 0 and 1000. """ @@ -55,10 +49,7 @@ def noise_temperature(self) -> float: @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @@ -68,10 +59,10 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: - """Type - Type of isolator model to use. Options include: By File (measured or - simulated) or Parametric + """Type. + Type of isolator model to use. Options include: By File (measured or + simulated) or Parametric. """ val = self._get_property("Type") val = self.TypeOption[val.upper()] @@ -83,18 +74,14 @@ class Port1LocationOption(Enum): @property def port_1_location(self) -> Port1LocationOption: - """Port 1 Location - Defines the orientation of the isolator. - - """ + """Defines the orientation of the isolator.""" val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @property def insertion_loss(self) -> float: - """Insertion Loss - Isolator in-band loss in forward direction. + """Isolator in-band loss in forward direction. Value should be between 0 and 100. """ @@ -103,19 +90,19 @@ def insertion_loss(self) -> float: @property def finite_reverse_isolation(self) -> bool: - """Finite Reverse Isolation + """Finite Reverse Isolation. + Use a finite reverse isolation. If disabled, the isolator model is - ideal (infinite reverse isolation). + ideal (infinite reverse isolation). Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return val == true + return (val == true) @property def reverse_isolation(self) -> float: - """Reverse Isolation - Isolator reverse isolation (i.e., loss in the reverse direction). + """Isolator reverse isolation (i.e., loss in the reverse direction). Value should be between 0 and 100. """ @@ -124,19 +111,19 @@ def reverse_isolation(self) -> float: @property def finite_bandwidth(self) -> bool: - """Finite Bandwidth + """Finite Bandwidth. + Use a finite bandwidth. If disabled, the isolator model is ideal - (infinite bandwidth). + (infinite bandwidth). Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val == true + return (val == true) @property def out_of_band_attenuation(self) -> float: - """Out-of-band Attenuation - Out-of-band loss (attenuation) + """Out-of-band loss (attenuation). Value should be between 0 and 200. """ @@ -145,10 +132,9 @@ def out_of_band_attenuation(self) -> float: @property def lower_stop_band(self) -> float: - """Lower Stop Band - Lower stop band frequency + """Lower stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") @@ -156,10 +142,9 @@ def lower_stop_band(self) -> float: @property def lower_cutoff(self) -> float: - """Lower Cutoff - Lower cutoff frequency + """Lower cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") @@ -167,10 +152,9 @@ def lower_cutoff(self) -> float: @property def higher_cutoff(self) -> float: - """Higher Cutoff - Higher cutoff frequency + """Higher cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") @@ -178,10 +162,9 @@ def higher_cutoff(self) -> float: @property def higher_stop_band(self) -> float: - """Higher Stop Band - Higher stop band frequency + """Higher stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") @@ -189,9 +172,7 @@ def higher_stop_band(self) -> float: @property def warnings(self) -> str: - """Warnings - Warning(s) for this node - - """ + """Warning(s) for this node.""" val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py index cbe6f5aebb4..1bba149cf56 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,58 +36,46 @@ def parent(self): @property def enabled(self) -> bool: - """Enabled - Enable/Disable coupling + """Enable/Disable coupling. Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def antenna_a(self) -> EmitNode: - """Antenna A - First antenna of the pair to apply the coupling values to - - """ + """First antenna of the pair to apply the coupling values to.""" val = self._get_property("Antenna A") return val @property def antenna_b(self) -> EmitNode: - """Antenna B - Second antenna of the pair to apply the coupling values to - - """ + """Second antenna of the pair to apply the coupling values to.""" val = self._get_property("Antenna B") return val @property def enable_refinement(self) -> bool: - """Enable Refinement - Enables/disables refined sampling of the frequency domain. + """Enables/disables refined sampling of the frequency domain. Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: - """Adaptive Sampling - Enables/disables adaptive refinement the frequency domain sampling. + """Enables/disables adaptive refinement the frequency domain sampling. Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): - """Refinement Domain - Points to use when refining the frequency domain. - - """ + """Points to use when refining the frequency domain.""" val = self._get_property("Refinement Domain") return val @@ -106,29 +90,26 @@ class EnvironmentOption(Enum): @property def environment(self) -> EnvironmentOption: - """Environment - Specify the environment type for the Log Distance model - - """ + """Specify the environment type for the Log Distance model.""" val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @property def path_loss_exponent(self) -> float: - """Path Loss Exponent - Path Loss Exponent + """Path Loss Exponent. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Path Loss Exponent") return float(val) @property def custom_fading_margin(self) -> float: - """Custom Fading Margin + """Custom Fading Margin. + Sets a custom fading margin to be applied to all coupling defined by - this node + this node. Value should be between 0 and 100. """ @@ -137,9 +118,10 @@ def custom_fading_margin(self) -> float: @property def polarization_mismatch(self) -> float: - """Polarization Mismatch + """Polarization Mismatch. + Sets a margin for polarization mismatch to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -148,9 +130,10 @@ def polarization_mismatch(self) -> float: @property def pointing_error_loss(self) -> float: - """Pointing Error Loss + """Pointing Error Loss. + Sets a margin for pointing error loss to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -165,50 +148,47 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: - """Fading Type - Specify the type of fading to include - - """ + """Specify the type of fading to include.""" val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @property def fading_availability(self) -> float: - """Fading Availability + """Fading Availability. + The probability that the propagation loss in dB is below its median - value plus the margin + value plus the margin. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Fading Availability") return float(val) @property def std_deviation(self) -> float: - """Std Deviation - Standard deviation modeling the random amount of shadowing loss + """Standard deviation modeling the random amount of shadowing loss. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Std Deviation") return float(val) @property def include_rain_attenuation(self) -> bool: - """Include Rain Attenuation - Adds a margin for rain attenuation to the computed coupling + """Adds a margin for rain attenuation to the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @property def rain_availability(self) -> float: - """Rain Availability + """Rain Availability. + Percentage of time attenuation due to range is < computed margin (range - from 99-99.999%) + from 99-99.999%). Value should be between 99 and 99.999. """ @@ -217,62 +197,61 @@ def rain_availability(self) -> float: @property def rain_rate(self) -> float: - """Rain Rate - Rain rate (mm/hr) exceeded for 0.01% of the time + """Rain rate (mm/hr) exceeded for 0.01% of the time. - Value should be between 0 and 1000. + Value should be between 0.0 and 1000.0. """ val = self._get_property("Rain Rate") return float(val) @property def polarization_tilt_angle(self) -> float: - """Polarization Tilt Angle + """Polarization Tilt Angle. + Polarization tilt angle of the transmitted signal relative to the - horizontal + horizontal. - Value should be between 0 and 180. + Value should be between 0.0 and 180.0. """ val = self._get_property("Polarization Tilt Angle") return float(val) @property def include_atmospheric_absorption(self) -> bool: - """Include Atmospheric Absorption + """Include Atmospheric Absorption. + Adds a margin for atmospheric absorption due to oxygen/water vapor to - the computed coupling + the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @property def temperature(self) -> float: - """Temperature - Air temperature in degrees Celsius + """Air temperature in degrees Celsius. - Value should be between -273 and 100. + Value should be between -273.0 and 100.0. """ val = self._get_property("Temperature") return float(val) @property def total_air_pressure(self) -> float: - """Total Air Pressure - Total air pressure + """Total air pressure. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Total Air Pressure") return float(val) @property def water_vapor_concentration(self) -> float: - """Water Vapor Concentration - Water vapor concentration + """Water vapor concentration. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Water Vapor Concentration") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py index b666ad2f617..c5fa2c6c575 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyMultiplexer(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -35,8 +31,7 @@ def __init__(self, emit_obj, result_id, node_id): @property def filename(self) -> str: - """Filename - Name of file defining the multiplexer + """Name of file defining the multiplexer. Value should be a full file path. """ @@ -45,8 +40,7 @@ def filename(self) -> str: @property def noise_temperature(self) -> float: - """Noise Temperature - System Noise temperature (K) of the component + """System Noise temperature (K) of the component. Value should be between 0 and 1000. """ @@ -55,10 +49,7 @@ def noise_temperature(self) -> float: @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @@ -68,11 +59,11 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: - """Type - Type of multiplexer model. Options include: By File (one measured or - simulated file for the device) or By Pass Band (parametric or - file-based definition for each pass band) + """Type. + Type of multiplexer model. Options include: By File (one measured or + simulated file for the device) or By Pass Band (parametric or file-based + definition for each pass band). """ val = self._get_property("Type") val = self.TypeOption[val.upper()] @@ -84,39 +75,29 @@ class Port1LocationOption(Enum): @property def port_1_location(self) -> Port1LocationOption: - """Port 1 Location - Defines the orientation of the multiplexer. - - """ + """Defines the orientation of the multiplexer.""" val = self._get_property("Port 1 Location") val = self.Port1LocationOption[val.upper()] return val @property def flip_ports_vertically(self) -> bool: - """Flip Ports Vertically - Reverses the port order on the multi-port side of the multiplexer. + """Reverses the port order on the multi-port side of the multiplexer. Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return val == true + return (val == true) @property def ports(self): - """Ports - Assigns the child port nodes to the multiplexers ports - - "A list of values." - """ + """Assigns the child port nodes to the multiplexers ports.""" val = self._get_property("Ports") return val @property def warnings(self) -> str: - """Warnings - Warning(s) for this node - - """ + """Warning(s) for this node.""" val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py index 042867b531e..46377814292 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -46,11 +42,11 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: - """Type - Type of multiplexer pass band to define. The pass band can be defined by - file (measured or simulated data) or using one of EMIT's parametric - models + """Type. + Type of multiplexer pass band to define. The pass band can be defined by + file (measured or simulated data) or using one of EMIT's parametric + models. """ val = self._get_property("Type") val = self.TypeOption[val.upper()] @@ -58,8 +54,7 @@ def type(self) -> TypeOption: @property def filename(self) -> str: - """Filename - Name of file defining the multiplexer band + """Name of file defining the multiplexer band. Value should be a full file path. """ @@ -68,8 +63,7 @@ def filename(self) -> str: @property def insertion_loss(self) -> float: - """Insertion Loss - Multiplexer pass band insertion loss + """Multiplexer pass band insertion loss. Value should be between 0 and 100. """ @@ -78,8 +72,7 @@ def insertion_loss(self) -> float: @property def stop_band_attenuation(self) -> float: - """Stop band Attenuation - Stop-band loss (attenuation) + """Stop-band loss (attenuation). Value should be between 0 and 200. """ @@ -88,10 +81,9 @@ def stop_band_attenuation(self) -> float: @property def max_pass_band(self) -> float: - """Max Pass Band - Maximum pass band frequency + """Maximum pass band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Max Pass Band") val = self._convert_from_internal_units(float(val), "Freq") @@ -99,10 +91,9 @@ def max_pass_band(self) -> float: @property def min_stop_band(self) -> float: - """Min Stop Band - Minimum stop band frequency + """Minimum stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Min Stop Band") val = self._convert_from_internal_units(float(val), "Freq") @@ -110,10 +101,9 @@ def min_stop_band(self) -> float: @property def max_stop_band(self) -> float: - """Max Stop Band - Maximum stop band frequency + """Maximum stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Max Stop Band") val = self._convert_from_internal_units(float(val), "Freq") @@ -121,10 +111,9 @@ def max_stop_band(self) -> float: @property def min_pass_band(self) -> float: - """Min Pass Band - Minimum pass band frequency + """Minimum pass band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Min Pass Band") val = self._convert_from_internal_units(float(val), "Freq") @@ -132,10 +121,9 @@ def min_pass_band(self) -> float: @property def lower_stop_band(self) -> float: - """Lower Stop Band - Lower stop band frequency + """Lower stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") @@ -143,10 +131,9 @@ def lower_stop_band(self) -> float: @property def lower_cutoff(self) -> float: - """Lower Cutoff - Lower cutoff frequency + """Lower cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") @@ -154,10 +141,9 @@ def lower_cutoff(self) -> float: @property def higher_cutoff(self) -> float: - """Higher Cutoff - Higher cutoff frequency + """Higher cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") @@ -165,10 +151,9 @@ def higher_cutoff(self) -> float: @property def higher_stop_band(self) -> float: - """Higher Stop Band - Higher stop band frequency + """Higher stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") @@ -176,9 +161,7 @@ def higher_stop_band(self) -> float: @property def warnings(self) -> str: - """Warnings - Warning(s) for this node - - """ + """Warning(s) for this node.""" val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py index 0546b885efe..a10364ba83c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyPowerDivider(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -35,8 +31,7 @@ def __init__(self, emit_obj, result_id, node_id): @property def filename(self) -> str: - """Filename - Name of file defining the Power Divider + """Name of file defining the Power Divider. Value should be a full file path. """ @@ -45,8 +40,7 @@ def filename(self) -> str: @property def noise_temperature(self) -> float: - """Noise Temperature - System Noise temperature (K) of the component + """System Noise temperature (K) of the component. Value should be between 0 and 1000. """ @@ -55,10 +49,7 @@ def noise_temperature(self) -> float: @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @@ -69,10 +60,10 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: - """Type - Type of Power Divider model to use. Options include: By File (measured - or simulated), 3 dB (parametric), and Resistive (parametric) + """Type. + Type of Power Divider model to use. Options include: By File (measured + or simulated), 3 dB (parametric), and Resistive (parametric). """ val = self._get_property("Type") val = self.TypeOption[val.upper()] @@ -84,19 +75,17 @@ class OrientationOption(Enum): @property def orientation(self) -> OrientationOption: - """Orientation - Defines the orientation of the Power Divider. - - """ + """Defines the orientation of the Power Divider.""" val = self._get_property("Orientation") val = self.OrientationOption[val.upper()] return val @property def insertion_loss_above_ideal(self) -> float: - """Insertion Loss Above Ideal + """Insertion Loss Above Ideal. + Additional loss beyond the ideal insertion loss. The ideal insertion - loss is 3 dB for the 3 dB Divider and 6 dB for the Resistive Divider. + loss is 3 dB for the 3 dB Divider and 6 dB for the Resistive Divider. Value should be between 0 and 100. """ @@ -105,19 +94,19 @@ def insertion_loss_above_ideal(self) -> float: @property def finite_isolation(self) -> bool: - """Finite Isolation + """Finite Isolation. + Use a finite isolation between output ports. If disabled, the Power - Divider isolation is ideal (infinite isolation between output ports). + Divider isolation is ideal (infinite isolation between output ports). Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val == true + return (val == true) @property def isolation(self) -> float: - """Isolation - Power Divider isolation between output ports. + """Power Divider isolation between output ports. Value should be between 0 and 100. """ @@ -126,19 +115,19 @@ def isolation(self) -> float: @property def finite_bandwidth(self) -> bool: - """Finite Bandwidth + """Finite Bandwidth. + Use a finite bandwidth. If disabled, the Power Divider model is ideal - (infinite bandwidth). + (infinite bandwidth). Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val == true + return (val == true) @property def out_of_band_attenuation(self) -> float: - """Out-of-band Attenuation - Out-of-band loss (attenuation) + """Out-of-band loss (attenuation). Value should be between 0 and 200. """ @@ -147,10 +136,9 @@ def out_of_band_attenuation(self) -> float: @property def lower_stop_band(self) -> float: - """Lower Stop Band - Lower stop band frequency + """Lower stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") @@ -158,10 +146,9 @@ def lower_stop_band(self) -> float: @property def lower_cutoff(self) -> float: - """Lower Cutoff - Lower cutoff frequency + """Lower cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") @@ -169,10 +156,9 @@ def lower_cutoff(self) -> float: @property def higher_cutoff(self) -> float: - """Higher Cutoff - Higher cutoff frequency + """Higher cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") @@ -180,10 +166,9 @@ def higher_cutoff(self) -> float: @property def higher_stop_band(self) -> float: - """Higher Stop Band - Higher stop band frequency + """Higher stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") @@ -191,9 +176,7 @@ def higher_stop_band(self) -> float: @property def warnings(self) -> str: - """Warnings - Warning(s) for this node - - """ + """Warning(s) for this node.""" val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py index 4ccb6b3595e..9b0512e4d60 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,66 +36,55 @@ def parent(self): @property def enabled(self) -> bool: - """Enabled - Enable/Disable coupling + """Enable/Disable coupling. Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def antenna_a(self) -> EmitNode: - """Antenna A - First antenna of the pair to apply the coupling values to - - """ + """First antenna of the pair to apply the coupling values to.""" val = self._get_property("Antenna A") return val @property def antenna_b(self) -> EmitNode: - """Antenna B - Second antenna of the pair to apply the coupling values to - - """ + """Second antenna of the pair to apply the coupling values to.""" val = self._get_property("Antenna B") return val @property def enable_refinement(self) -> bool: - """Enable Refinement - Enables/disables refined sampling of the frequency domain. + """Enables/disables refined sampling of the frequency domain. Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: - """Adaptive Sampling - Enables/disables adaptive refinement the frequency domain sampling. + """Enables/disables adaptive refinement the frequency domain sampling. Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): - """Refinement Domain - Points to use when refining the frequency domain. - - """ + """Points to use when refining the frequency domain.""" val = self._get_property("Refinement Domain") return val @property def custom_fading_margin(self) -> float: - """Custom Fading Margin + """Custom Fading Margin. + Sets a custom fading margin to be applied to all coupling defined by - this node + this node. Value should be between 0 and 100. """ @@ -108,9 +93,10 @@ def custom_fading_margin(self) -> float: @property def polarization_mismatch(self) -> float: - """Polarization Mismatch + """Polarization Mismatch. + Sets a margin for polarization mismatch to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -119,9 +105,10 @@ def polarization_mismatch(self) -> float: @property def pointing_error_loss(self) -> float: - """Pointing Error Loss + """Pointing Error Loss. + Sets a margin for pointing error loss to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -136,50 +123,47 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: - """Fading Type - Specify the type of fading to include - - """ + """Specify the type of fading to include.""" val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @property def fading_availability(self) -> float: - """Fading Availability + """Fading Availability. + The probability that the propagation loss in dB is below its median - value plus the margin + value plus the margin. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Fading Availability") return float(val) @property def std_deviation(self) -> float: - """Std Deviation - Standard deviation modeling the random amount of shadowing loss + """Standard deviation modeling the random amount of shadowing loss. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Std Deviation") return float(val) @property def include_rain_attenuation(self) -> bool: - """Include Rain Attenuation - Adds a margin for rain attenuation to the computed coupling + """Adds a margin for rain attenuation to the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @property def rain_availability(self) -> float: - """Rain Availability + """Rain Availability. + Percentage of time attenuation due to range is < computed margin (range - from 99-99.999%) + from 99-99.999%). Value should be between 99 and 99.999. """ @@ -188,62 +172,61 @@ def rain_availability(self) -> float: @property def rain_rate(self) -> float: - """Rain Rate - Rain rate (mm/hr) exceeded for 0.01% of the time + """Rain rate (mm/hr) exceeded for 0.01% of the time. - Value should be between 0 and 1000. + Value should be between 0.0 and 1000.0. """ val = self._get_property("Rain Rate") return float(val) @property def polarization_tilt_angle(self) -> float: - """Polarization Tilt Angle + """Polarization Tilt Angle. + Polarization tilt angle of the transmitted signal relative to the - horizontal + horizontal. - Value should be between 0 and 180. + Value should be between 0.0 and 180.0. """ val = self._get_property("Polarization Tilt Angle") return float(val) @property def include_atmospheric_absorption(self) -> bool: - """Include Atmospheric Absorption + """Include Atmospheric Absorption. + Adds a margin for atmospheric absorption due to oxygen/water vapor to - the computed coupling + the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @property def temperature(self) -> float: - """Temperature - Air temperature in degrees Celsius + """Air temperature in degrees Celsius. - Value should be between -273 and 100. + Value should be between -273.0 and 100.0. """ val = self._get_property("Temperature") return float(val) @property def total_air_pressure(self) -> float: - """Total Air Pressure - Total air pressure + """Total air pressure. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Total Air Pressure") return float(val) @property def water_vapor_concentration(self) -> float: - """Water Vapor Concentration - Water vapor concentration + """Water vapor concentration. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Water Vapor Concentration") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py index 6dd413f7188..b2005a7c031 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyRadioNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,18 +35,18 @@ def parent(self): @property def table_data(self): - """Table" - "Table consists of 2 columns." - "Name: - "Type: + """Table. + Table consists of 2 columns. + Name: + + Type: + """ return self._get_table_data() @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py index 7d5d03423fc..7e4c22a0f68 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyRxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,8 +36,7 @@ def parent(self): @property def file(self) -> str: - """File - Name of the measurement source + """Name of the measurement source. Value should be a full file path. """ @@ -50,8 +45,7 @@ def file(self) -> str: @property def source_file(self) -> str: - """Source File - Name of the measurement source + """Name of the measurement source. Value should be a full file path. """ @@ -60,10 +54,7 @@ def source_file(self) -> str: @property def receive_frequency(self) -> float: - """Receive Frequency - Channel associated with the measurement file - - """ + """Channel associated with the measurement file.""" val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -75,18 +66,14 @@ class MeasurementModeOption(Enum): @property def measurement_mode(self) -> MeasurementModeOption: - """Measurement Mode - Defines the mode for the receiver measurement - - """ + """Defines the mode for the receiver measurement.""" val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val.upper()] return val @property def sinad_threshold(self) -> float: - """SINAD Threshold - SINAD Threshold used for the receiver measurements + """SINAD Threshold used for the receiver measurements. Value should be between 5 and 20. """ @@ -95,8 +82,7 @@ def sinad_threshold(self) -> float: @property def gps_cnr_threshold(self) -> float: - """GPS CNR Threshold - GPS CNR Threshold used for the receiver measurements + """GPS CNR Threshold used for the receiver measurements. Value should be between 15 and 30. """ @@ -105,8 +91,7 @@ def gps_cnr_threshold(self) -> float: @property def ber_threshold(self) -> float: - """BER Threshold - BER Threshold used for the receiver measurements + """BER Threshold used for the receiver measurements. Value should be between -12 and -1. """ @@ -115,18 +100,16 @@ def ber_threshold(self) -> float: @property def default_intended_power(self) -> bool: - """Default Intended Power - Specify the intended signal + """Specify the intended signal. Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return val == true + return (val == true) @property def intended_signal_power(self) -> float: - """Intended Signal Power - Specify the power level of the intended signal + """Specify the power level of the intended signal. Value should be between -140 and -50. """ @@ -135,8 +118,7 @@ def intended_signal_power(self) -> float: @property def freq_deviation(self) -> float: - """Freq. Deviation - Specify the frequency deviation of the intended signal + """Specify the frequency deviation of the intended signal. Value should be between 1000 and 200000. """ @@ -146,8 +128,7 @@ def freq_deviation(self) -> float: @property def modulation_depth(self) -> float: - """Modulation Depth - Specify the modulation depth of the intended signal + """Specify the modulation depth of the intended signal. Value should be between 10 and 100. """ @@ -156,28 +137,25 @@ def modulation_depth(self) -> float: @property def measure_selectivity(self) -> bool: - """Measure Selectivity - Enable/disable the measurement of the receiver's selectivity + """Enable/disable the measurement of the receiver's selectivity. Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return val == true + return (val == true) @property def measure_mixer_products(self) -> bool: - """Measure Mixer Products - Enable/disable the measurement of the receiver's mixer products + """Enable/disable the measurement of the receiver's mixer products. Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return val == true + return (val == true) @property def max_rf_order(self) -> int: - """Max RF Order - Max RF Order of the mixer products to measure + """Max RF Order of the mixer products to measure. Value should be greater than 1. """ @@ -186,8 +164,7 @@ def max_rf_order(self) -> int: @property def max_lo_order(self) -> int: - """Max LO Order - Max LO Order of the mixer products to measure + """Max LO Order of the mixer products to measure. Value should be greater than 1. """ @@ -196,40 +173,36 @@ def max_lo_order(self) -> int: @property def include_if(self) -> bool: - """Include IF - Enable/disable the measurement of the IF channel + """Enable/disable the measurement of the IF channel. Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return val == true + return (val == true) @property def measure_saturation(self) -> bool: - """Measure Saturation - Enable/disable measurement of the receiver's saturation level + """Enable/disable measurement of the receiver's saturation level. Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return val == true + return (val == true) @property def use_ams_limits(self) -> bool: - """Use AMS Limits - Allow AMS to determine the limits for measuring saturation + """Allow AMS to determine the limits for measuring saturation. Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val == true + return (val == true) @property def start_frequency(self) -> float: - """Start Frequency - Starting frequency for the measurement sweep + """Starting frequency for the measurement sweep. - Value should be greater than 1e+06. + Value should be greater than 1e6. """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") @@ -237,10 +210,9 @@ def start_frequency(self) -> float: @property def stop_frequency(self) -> float: - """Stop Frequency - Stopping frequency for the measurement sweep + """Stopping frequency for the measurement sweep. - Value should be less than 6e+09. + Value should be less than 6e9. """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") @@ -248,8 +220,7 @@ def stop_frequency(self) -> float: @property def samples(self) -> int: - """Samples - Number of measurement samples for each frequency + """Number of measurement samples for each frequency. Value should be between 2 and 100. """ @@ -258,10 +229,10 @@ def samples(self) -> int: @property def exclude_mixer_products_below_noise(self) -> bool: - """Exclude Mixer Products Below Noise - Include/Exclude Mixer Products below the noise + """Include/Exclude Mixer Products below the noise. Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return val == true + return (val == true) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py index 8d57af7c8f0..34d30b8dbb6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -45,18 +41,14 @@ class MixerProductTaperOption(Enum): @property def mixer_product_taper(self) -> MixerProductTaperOption: - """Mixer Product Taper - Taper for setting amplitude of mixer products - - """ + """Taper for setting amplitude of mixer products.""" val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val.upper()] return val @property def mixer_product_susceptibility(self) -> float: - """Mixer Product Susceptibility - Mixer product amplitudes (relative to the in-band susceptibility) + """Mixer product amplitudes (relative to the in-band susceptibility). Value should be between -200 and 200. """ @@ -65,8 +57,7 @@ def mixer_product_susceptibility(self) -> float: @property def spurious_rejection(self) -> float: - """Spurious Rejection - Mixer product amplitudes (relative to the in-band susceptibility) + """Mixer product amplitudes (relative to the in-band susceptibility). Value should be between -200 and 200. """ @@ -75,10 +66,9 @@ def spurious_rejection(self) -> float: @property def minimum_tuning_frequency(self) -> float: - """Minimum Tuning Frequency - Minimum tuning frequency of Rx's local oscillator + """Minimum tuning frequency of Rx's local oscillator. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Minimum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") @@ -86,10 +76,9 @@ def minimum_tuning_frequency(self) -> float: @property def maximum_tuning_frequency(self) -> float: - """Maximum Tuning Frequency - Maximum tuning frequency of Rx's local oscillator + """Maximum tuning frequency of Rx's local oscillator. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Maximum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") @@ -97,9 +86,10 @@ def maximum_tuning_frequency(self) -> float: @property def mixer_product_slope(self) -> float: - """Mixer Product Slope + """Mixer Product Slope. + Rate of decrease for amplitude of Rx's local oscillator harmonics - (dB/decade) + (dB/decade). Value should be between 0 and 100. """ @@ -108,8 +98,7 @@ def mixer_product_slope(self) -> float: @property def mixer_product_intercept(self) -> float: - """Mixer Product Intercept - Mixer product intercept (dBc) + """Mixer product intercept (dBc). Value should be between 0 and 100. """ @@ -118,9 +107,10 @@ def mixer_product_intercept(self) -> float: @property def bandwidth_80_db(self) -> float: - """Bandwidth 80 dB + """Bandwidth 80 dB. + Bandwidth where Rx's susceptibility envelope is 80 dB above in-band - susceptibility level + susceptibility level. Value should be greater than 1. """ @@ -130,8 +120,7 @@ def bandwidth_80_db(self) -> float: @property def image_rejection(self) -> float: - """Image Rejection - Image frequency amplitude (relative to the in-band susceptibility) + """Image frequency amplitude (relative to the in-band susceptibility). Value should be between -200 and 200. """ @@ -140,8 +129,7 @@ def image_rejection(self) -> float: @property def maximum_rf_harmonic_order(self) -> int: - """Maximum RF Harmonic Order - Maximum order of RF frequency + """Maximum order of RF frequency. Value should be between 1 and 100. """ @@ -150,8 +138,7 @@ def maximum_rf_harmonic_order(self) -> int: @property def maximum_lo_harmonic_order(self) -> int: - """Maximum LO Harmonic Order - Maximum order of the LO frequency + """Maximum order of the LO frequency. Value should be between 1 and 100. """ @@ -165,18 +152,14 @@ class MixingModeOption(Enum): @property def mixing_mode(self) -> MixingModeOption: - """Mixing Mode - Specifies whether the IF frequency is > or < RF channel frequency - - """ + """Specifies whether the IF frequency is > or < RF channel frequency.""" val = self._get_property("Mixing Mode") val = self.MixingModeOption[val.upper()] return val @property def first_if_frequency(self): - """First IF Frequency - Intermediate frequency for Rx's 1st conversion stage + """Intermediate frequency for Rx's 1st conversion stage. Value should be a mathematical expression. """ @@ -185,10 +168,7 @@ def first_if_frequency(self): @property def rf_transition_frequency(self) -> float: - """RF Transition Frequency - RF Frequency Transition point - - """ + """RF Frequency Transition point.""" val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -199,10 +179,7 @@ class UseHighLOOption(Enum): @property def use_high_lo(self) -> UseHighLOOption: - """Use High LO - Use High LO above/below the transition frequency - - """ + """Use High LO above/below the transition frequency.""" val = self._get_property("Use High LO") val = self.UseHighLOOption[val.upper()] return val @@ -213,10 +190,8 @@ class MixerProductTableUnitsOption(Enum): @property def mixer_product_table_units(self) -> MixerProductTableUnitsOption: - """Mixer Product Table Units - Specifies the units for the Mixer Products - - """ + """Specifies the units for the Mixer Products.""" val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val.upper()] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py index 45328a8b5fe..5e22eca60c2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,3 +32,4 @@ def __init__(self, emit_obj, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py index fab53dbb400..fb88761efbb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,11 +35,13 @@ def parent(self): @property def use_arithmetic_mean(self) -> bool: - """Use Arithmetic Mean + """Use Arithmetic Mean. + Uses arithmetic mean to center bandwidths about the tuned channel - frequency + frequency. Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return val == true + return (val == true) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py index 4bd4d1773f6..3d5981f486d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyRxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,14 +36,14 @@ def parent(self): @property def table_data(self): - """Table" - "Table consists of 3 columns." - "Frequency (MHz): + """Table. + Table consists of 3 columns. + Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: - Value should be greater than 1. - "Power: - Value should be between -200 and 150. + Bandwidth: + Value should be greater than 1.0. + Power: + Value should be between -200.0 and 150.0. """ return self._get_table_data() @@ -57,10 +53,8 @@ class SpurTableUnitsOption(Enum): @property def spur_table_units(self) -> SpurTableUnitsOption: - """Spur Table Units - Specifies the units for the Spurs - - """ + """Specifies the units for the Spurs.""" val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py index 421fcb92f79..92131408647 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -46,29 +42,26 @@ class SensitivityUnitsOption(Enum): @property def sensitivity_units(self) -> SensitivityUnitsOption: - """Sensitivity Units - Units to use for the Rx Sensitivity - - """ + """Units to use for the Rx Sensitivity.""" val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val.upper()] return val @property - def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr - Received signal power level at the Rx's antenna terminal + def min_receive_signal_pwr(self) -> float: + """Received signal power level at the Rx's antenna terminal. Value should be between -1000 and 1000. """ - val = self._get_property("Min. Receive Signal Pwr ") + val = self._get_property("Min. Receive Signal Pwr") return float(val) @property def snr_at_rx_signal_pwr(self) -> float: - """SNR at Rx Signal Pwr + """SNR at Rx Signal Pwr. + Signal-to-Noise Ratio (dB) at specified received signal power at the - Rx's antenna terminal + Rx's antenna terminal. Value should be between -1000 and 1000. """ @@ -77,8 +70,7 @@ def snr_at_rx_signal_pwr(self) -> float: @property def processing_gain(self) -> float: - """Processing Gain - Rx processing gain (dB) of (optional) despreader + """Rx processing gain (dB) of (optional) despreader. Value should be between -1000 and 1000. """ @@ -87,19 +79,19 @@ def processing_gain(self) -> float: @property def apply_pg_to_narrowband_only(self) -> bool: - """Apply PG to Narrowband Only + """Apply PG to Narrowband Only. + Processing gain captures the despreading effect and applies to NB - signals only (not BB noise) when enabled + signals only (not BB noise) when enabled. Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return val == true + return (val == true) @property def saturation_level(self) -> float: - """Saturation Level - Rx input saturation level + """Rx input saturation level. Value should be between -1000 and 1000. """ @@ -109,8 +101,7 @@ def saturation_level(self) -> float: @property def rx_noise_figure(self) -> float: - """Rx Noise Figure - Rx noise figure (dB) + """Rx noise figure (dB). Value should be between 0 and 1000. """ @@ -118,40 +109,36 @@ def rx_noise_figure(self) -> float: return float(val) @property - def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity - Rx minimum sensitivity level (dBm) + def receiver_sensitivity(self) -> float: + """Rx minimum sensitivity level (dBm). Value should be between -1000 and 1000. """ - val = self._get_property("Receiver Sensitivity ") + val = self._get_property("Receiver Sensitivity") val = self._convert_from_internal_units(float(val), "Power") return float(val) @property - def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity - SNR or SINAD at the specified sensitivity level + def snrsinad_at_sensitivity(self) -> float: + """SNR or SINAD at the specified sensitivity level. Value should be between -1000 and 1000. """ - val = self._get_property("SNR/SINAD at Sensitivity ") + val = self._get_property("SNR/SINAD at Sensitivity") return float(val) @property def perform_rx_intermod_analysis(self) -> bool: - """Perform Rx Intermod Analysis - Performs a non-linear intermod analysis for the Rx + """Performs a non-linear intermod analysis for the Rx. Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return val == true + return (val == true) @property def amplifier_saturation_level(self) -> float: - """Amplifier Saturation Level - Internal Rx Amplifier's Saturation Level + """Internal Rx Amplifier's Saturation Level. Value should be between -200 and 200. """ @@ -160,20 +147,20 @@ def amplifier_saturation_level(self) -> float: return float(val) @property - def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input - Rx's 1 dB Compression Point - total power > P1dB saturates the receiver + def p1_db_point_ref_input(self) -> float: + """P1-dB Point, Ref. Input. + + Rx's 1 dB Compression Point - total power > P1dB saturates the receiver. Value should be between -1000 and 1000. """ - val = self._get_property("P1-dB Point, Ref. Input ") + val = self._get_property("P1-dB Point, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") return float(val) @property def ip3_ref_input(self) -> float: - """IP3, Ref. Input - Internal Rx Amplifier's 3rd order intercept point + """Internal Rx Amplifier's 3rd order intercept point. Value should be between -1000 and 1000. """ @@ -183,10 +170,10 @@ def ip3_ref_input(self) -> float: @property def max_intermod_order(self) -> int: - """Max Intermod Order - Internal Rx Amplifier's maximum intermod order to compute + """Internal Rx Amplifier's maximum intermod order to compute. Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") return int(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py index ee589ac1c98..9de48ee0f79 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlySamplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,12 +36,12 @@ def parent(self): @property def table_data(self): - """Table" - "Table consists of 2 columns." - "Min: - Value should be greater than 1. - "Max: - Value should be greater than 1. + """Table. + Table consists of 2 columns. + Min: + Value should be greater than 1.0. + Max: + Value should be greater than 1.0. """ return self._get_table_data() @@ -56,29 +52,26 @@ class SamplingTypeOption(Enum): @property def sampling_type(self) -> SamplingTypeOption: - """Sampling Type - Sampling to apply to this configuration - - """ + """Sampling to apply to this configuration.""" val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val.upper()] return val @property def specify_percentage(self) -> bool: - """Specify Percentage + """Specify Percentage. + Specify the number of channels to simulate via a percentage of the total - available band channels + available band channels. Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return val == true + return (val == true) @property def percentage_of_channels(self) -> float: - """Percentage of Channels - Percentage of the Band Channels to simulate + """Percentage of the Band Channels to simulate. Value should be between 1 and 100. """ @@ -87,8 +80,7 @@ def percentage_of_channels(self) -> float: @property def max__channelsrangeband(self) -> int: - """Max # Channels/Range/Band - Maximum number of Band Channels to simulate + """Maximum number of Band Channels to simulate. Value should be between 1 and 100000. """ @@ -97,8 +89,7 @@ def max__channelsrangeband(self) -> int: @property def seed(self) -> int: - """Seed - Seed for random channel generator + """Seed for random channel generator. Value should be greater than 0. """ @@ -107,29 +98,27 @@ def seed(self) -> int: @property def total_tx_channels(self) -> int: - """Total Tx Channels - Total number of transmit channels this configuration is capable of - operating on + """Total Tx Channels. + Total number of transmit channels this configuration is capable of + operating on. """ val = self._get_property("Total Tx Channels") return int(val) @property def total_rx_channels(self) -> int: - """Total Rx Channels - Total number of receive channels this configuration is capable of - operating on + """Total Rx Channels. + Total number of receive channels this configuration is capable of + operating on. """ val = self._get_property("Total Rx Channels") return int(val) @property def warnings(self) -> str: - """Warnings - Warning(s) for this node - - """ + """Warning(s) for this node.""" val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py index 805ffbddaa2..5eb5e2ac1f6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlySceneGroupNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,19 +36,19 @@ def parent(self): @property def show_relative_coordinates(self) -> bool: - """Show Relative Coordinates + """Show Relative Coordinates. + Show Scene Group position and orientation in parent-node coords (False) - or relative to placement coords (True) + or relative to placement coords (True). Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val == true + return (val == true) @property def position(self): - """Position - Set position of the Scene Group in parent-node coordinates + """Set position of the Scene Group in parent-node coordinates. Value should be x/y/z, delimited by spaces. """ @@ -61,8 +57,7 @@ def position(self): @property def relative_position(self): - """Relative Position - Set position of the Scene Group relative to placement coordinates + """Set position of the Scene Group relative to placement coordinates. Value should be x/y/z, delimited by spaces. """ @@ -75,9 +70,9 @@ class OrientationModeOption(Enum): @property def orientation_mode(self) -> OrientationModeOption: - """Orientation Mode - Select the convention (order of rotations) for configuring orientation + """Orientation Mode. + Select the convention (order of rotations) for configuring orientation. """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] @@ -85,8 +80,9 @@ def orientation_mode(self) -> OrientationModeOption: @property def orientation(self): - """Orientation - Set orientation of the Scene Group relative to parent-node coordinates + """Orientation. + + Set orientation of the Scene Group relative to parent-node coordinates. Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ @@ -95,8 +91,9 @@ def orientation(self): @property def relative_orientation(self): - """Relative Orientation - Set orientation of the Scene Group relative to placement coordinates + """Relative Orientation. + + Set orientation of the Scene Group relative to placement coordinates. Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ @@ -105,18 +102,18 @@ def relative_orientation(self): @property def show_axes(self) -> bool: - """Show Axes - Toggle (on/off) display of Scene Group coordinate axes in 3-D window + """Show Axes. + + Toggle (on/off) display of Scene Group coordinate axes in 3-D window. Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val == true + return (val == true) @property def box_color(self): - """Box Color - Set color of the bounding box of the Scene Group + """Set color of the bounding box of the Scene Group. Color should be in RGB form: #RRGGBB. """ @@ -125,9 +122,7 @@ def box_color(self): @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py index 3bf6d1f23bb..6a5b42e095c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,40 +35,37 @@ def parent(self): @property def enabled(self) -> bool: - """Enabled + """Enabled. + Enable/Disable coupling (A sweep disabled in HFSS/Layout cannot be - enabled in EMIT) + enabled in EMIT). Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def enable_refinement(self) -> bool: - """Enable Refinement - Enables/disables refined sampling of the frequency domain. + """Enables/disables refined sampling of the frequency domain. Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: - """Adaptive Sampling - Enables/disables adaptive refinement the frequency domain sampling. + """Enables/disables adaptive refinement the frequency domain sampling. Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): - """Refinement Domain - Points to use when refining the frequency domain. - - """ + """Points to use when refining the frequency domain.""" val = self._get_property("Refinement Domain") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py index 4200a3fc267..d323d3c793f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlySolutionsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,11 +35,13 @@ def parent(self): @property def enabled(self) -> bool: - """Enabled + """Enabled. + Enable/Disable coupling (A setup disabled in HFSS/Layout cannot be - enabled in EMIT) + enabled in EMIT). Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py index 3b925264c88..08543ce2bae 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTerminator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -35,8 +31,7 @@ def __init__(self, emit_obj, result_id, node_id): @property def filename(self) -> str: - """Filename - Name of file defining the Terminator + """Name of file defining the Terminator. Value should be a full file path. """ @@ -45,8 +40,7 @@ def filename(self) -> str: @property def noise_temperature(self) -> float: - """Noise Temperature - System Noise temperature (K) of the component + """System Noise temperature (K) of the component. Value should be between 0 and 1000. """ @@ -55,10 +49,7 @@ def noise_temperature(self) -> float: @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @@ -68,10 +59,10 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: - """Type - Type of terminator model to use. Options include: By File (measured or - simulated) or Parametric + """Type. + Type of terminator model to use. Options include: By File (measured or + simulated) or Parametric. """ val = self._get_property("Type") val = self.TypeOption[val.upper()] @@ -83,31 +74,27 @@ class PortLocationOption(Enum): @property def port_location(self) -> PortLocationOption: - """Port Location - Defines the orientation of the terminator. - - """ + """Defines the orientation of the terminator.""" val = self._get_property("Port Location") val = self.PortLocationOption[val.upper()] return val @property def vswr(self) -> float: - """VSWR + """VSWR. + The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch - between the terminator and the connected component (RF System, Antenna, - etc) + between the terminator and the connected component (RF System, Antenna, + etc). - Value should be between 1 and 100. + Value should be between 1.0 and 100. """ val = self._get_property("VSWR") return float(val) @property def warnings(self) -> str: - """Warnings - Warning(s) for this node - - """ + """Warning(s) for this node.""" val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py index 3e67009dd63..3dcb2d277ce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,47 +35,40 @@ def parent(self): @property def enabled(self) -> bool: - """Enabled - Enable/Disable coupling + """Enable/Disable coupling. Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def enable_refinement(self) -> bool: - """Enable Refinement - Enables/disables refined sampling of the frequency domain. + """Enables/disables refined sampling of the frequency domain. Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: - """Adaptive Sampling - Enables/disables adaptive refinement the frequency domain sampling. + """Enables/disables adaptive refinement the frequency domain sampling. Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): - """Refinement Domain - Points to use when refining the frequency domain. - - """ + """Points to use when refining the frequency domain.""" val = self._get_property("Refinement Domain") return val @property def filename(self) -> str: - """Filename - Name of file with coupling data. + """Name of file with coupling data. Value should be a full file path. """ @@ -87,38 +77,28 @@ def filename(self) -> str: @property def savant_matched_coupling_file(self) -> str: - """Savant Matched Coupling File - Coupling data generated by Savant and exported as a matched file - - """ + """Coupling data generated by Savant and exported as a matched file.""" val = self._get_property("Savant Matched Coupling File") return val @property def enable_em_isolation(self) -> bool: - """Enable EM Isolation - Enables/disables EM isolation + """Enables/disables EM isolation. Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return val == true + return (val == true) @property def port_antenna_assignment(self): - """Port-Antenna Assignment - Maps each port in the coupling file to an antenna in the project - - "A list of values." - """ + """Maps each port in the coupling file to an antenna in the project.""" val = self._get_property("Port-Antenna Assignment") return val @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py index 00c3fb673f4..d011b854fb9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTR_Switch(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -35,8 +31,7 @@ def __init__(self, emit_obj, result_id, node_id): @property def filename(self) -> str: - """Filename - Name of file defining the outboard component + """Name of file defining the outboard component. Value should be a full file path. """ @@ -45,8 +40,7 @@ def filename(self) -> str: @property def noise_temperature(self) -> float: - """Noise Temperature - System Noise temperature (K) of the component + """System Noise temperature (K) of the component. Value should be between 0 and 1000. """ @@ -55,10 +49,7 @@ def noise_temperature(self) -> float: @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @@ -68,10 +59,7 @@ class TxPortOption(Enum): @property def tx_port(self) -> TxPortOption: - """Tx Port - Specifies which port on the TR Switch is part of the Tx path. - - """ + """Specifies which port on the TR Switch is part of the Tx path.""" val = self._get_property("Tx Port") val = self.TxPortOption[val.upper()] return val @@ -82,18 +70,14 @@ class CommonPortLocationOption(Enum): @property def common_port_location(self) -> CommonPortLocationOption: - """Common Port Location - Defines the orientation of the tr switch. - - """ + """Defines the orientation of the tr switch.""" val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val.upper()] return val @property def insertion_loss(self) -> float: - """Insertion Loss - TR Switch in-band loss in forward direction. + """TR Switch in-band loss in forward direction. Value should be between 0 and 100. """ @@ -102,19 +86,19 @@ def insertion_loss(self) -> float: @property def finite_isolation(self) -> bool: - """Finite Isolation + """Finite Isolation. + Use a finite isolation. If disabled, the tr switch model is ideal - (infinite isolation). + (infinite isolation). Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val == true + return (val == true) @property def isolation(self) -> float: - """Isolation - TR Switch reverse isolation (i.e., loss between the Tx/Rx ports). + """TR Switch reverse isolation (i.e., loss between the Tx/Rx ports). Value should be between 0 and 100. """ @@ -123,19 +107,19 @@ def isolation(self) -> float: @property def finite_bandwidth(self) -> bool: - """Finite Bandwidth + """Finite Bandwidth. + Use a finite bandwidth. If disabled, the tr switch model is ideal - (infinite bandwidth). + (infinite bandwidth). Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val == true + return (val == true) @property def out_of_band_attenuation(self) -> float: - """Out-of-band Attenuation - Out-of-band loss (attenuation) + """Out-of-band loss (attenuation). Value should be between 0 and 200. """ @@ -144,10 +128,9 @@ def out_of_band_attenuation(self) -> float: @property def lower_stop_band(self) -> float: - """Lower Stop Band - Lower stop band frequency + """Lower stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") @@ -155,10 +138,9 @@ def lower_stop_band(self) -> float: @property def lower_cutoff(self) -> float: - """Lower Cutoff - Lower cutoff frequency + """Lower cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") @@ -166,10 +148,9 @@ def lower_cutoff(self) -> float: @property def higher_cutoff(self) -> float: - """Higher Cutoff - Higher cutoff frequency + """Higher cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") @@ -177,11 +158,11 @@ def higher_cutoff(self) -> float: @property def higher_stop_band(self) -> float: - """Higher Stop Band - Higher stop band frequency + """Higher stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py index 34637d0ef01..f55cb38e637 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,65 +36,52 @@ def parent(self): @property def enabled(self) -> bool: - """Enabled - Enable/Disable coupling + """Enable/Disable coupling. Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def antenna_a(self) -> EmitNode: - """Antenna A - First antenna of the pair to apply the coupling values to - - """ + """First antenna of the pair to apply the coupling values to.""" val = self._get_property("Antenna A") return val @property def antenna_b(self) -> EmitNode: - """Antenna B - Second antenna of the pair to apply the coupling values to - - """ + """Second antenna of the pair to apply the coupling values to.""" val = self._get_property("Antenna B") return val @property def enable_refinement(self) -> bool: - """Enable Refinement - Enables/disables refined sampling of the frequency domain. + """Enables/disables refined sampling of the frequency domain. Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: - """Adaptive Sampling - Enables/disables adaptive refinement the frequency domain sampling. + """Enables/disables adaptive refinement the frequency domain sampling. Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): - """Refinement Domain - Points to use when refining the frequency domain. - - """ + """Points to use when refining the frequency domain.""" val = self._get_property("Refinement Domain") return val @property def ground_reflection_coeff(self) -> float: - """Ground Reflection Coeff. - The ground reflection coefficient + """The ground reflection coefficient. Value should be between -100 and 100. """ @@ -107,8 +90,9 @@ def ground_reflection_coeff(self) -> float: @property def pointspeak(self) -> int: - """Points/Peak - Number of points used to model each peak in frequency vs loss curve + """Points/Peak. + + Number of points used to model each peak in frequency vs loss curve. Value should be between 3 and 100. """ @@ -117,9 +101,10 @@ def pointspeak(self) -> int: @property def custom_fading_margin(self) -> float: - """Custom Fading Margin + """Custom Fading Margin. + Sets a custom fading margin to be applied to all coupling defined by - this node + this node. Value should be between 0 and 100. """ @@ -128,9 +113,10 @@ def custom_fading_margin(self) -> float: @property def polarization_mismatch(self) -> float: - """Polarization Mismatch + """Polarization Mismatch. + Sets a margin for polarization mismatch to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -139,9 +125,10 @@ def polarization_mismatch(self) -> float: @property def pointing_error_loss(self) -> float: - """Pointing Error Loss + """Pointing Error Loss. + Sets a margin for pointing error loss to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -156,50 +143,47 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: - """Fading Type - Specify the type of fading to include - - """ + """Specify the type of fading to include.""" val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @property def fading_availability(self) -> float: - """Fading Availability + """Fading Availability. + The probability that the propagation loss in dB is below its median - value plus the margin + value plus the margin. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Fading Availability") return float(val) @property def std_deviation(self) -> float: - """Std Deviation - Standard deviation modeling the random amount of shadowing loss + """Standard deviation modeling the random amount of shadowing loss. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Std Deviation") return float(val) @property def include_rain_attenuation(self) -> bool: - """Include Rain Attenuation - Adds a margin for rain attenuation to the computed coupling + """Adds a margin for rain attenuation to the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @property def rain_availability(self) -> float: - """Rain Availability + """Rain Availability. + Percentage of time attenuation due to range is < computed margin (range - from 99-99.999%) + from 99-99.999%). Value should be between 99 and 99.999. """ @@ -208,62 +192,61 @@ def rain_availability(self) -> float: @property def rain_rate(self) -> float: - """Rain Rate - Rain rate (mm/hr) exceeded for 0.01% of the time + """Rain rate (mm/hr) exceeded for 0.01% of the time. - Value should be between 0 and 1000. + Value should be between 0.0 and 1000.0. """ val = self._get_property("Rain Rate") return float(val) @property def polarization_tilt_angle(self) -> float: - """Polarization Tilt Angle + """Polarization Tilt Angle. + Polarization tilt angle of the transmitted signal relative to the - horizontal + horizontal. - Value should be between 0 and 180. + Value should be between 0.0 and 180.0. """ val = self._get_property("Polarization Tilt Angle") return float(val) @property def include_atmospheric_absorption(self) -> bool: - """Include Atmospheric Absorption + """Include Atmospheric Absorption. + Adds a margin for atmospheric absorption due to oxygen/water vapor to - the computed coupling + the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @property def temperature(self) -> float: - """Temperature - Air temperature in degrees Celsius + """Air temperature in degrees Celsius. - Value should be between -273 and 100. + Value should be between -273.0 and 100.0. """ val = self._get_property("Temperature") return float(val) @property def total_air_pressure(self) -> float: - """Total Air Pressure - Total air pressure + """Total air pressure. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Total Air Pressure") return float(val) @property def water_vapor_concentration(self) -> float: - """Water Vapor Concentration - Water vapor concentration + """Water vapor concentration. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Water Vapor Concentration") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py index 28cf7035056..7aa1aef61be 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,12 +36,12 @@ def parent(self): @property def table_data(self): - """Tx Broadband Noise Profile Table" - "Table consists of 2 columns." - "Frequency (MHz): + """Tx Broadband Noise Profile Table. + Table consists of 2 columns. + Frequency (MHz): Value should be a mathematical expression. - "Amplitude (dBm/Hz): - Value should be between -200 and 150. + Amplitude (dBm/Hz): + Value should be between -200.0 and 150.0. """ return self._get_table_data() @@ -57,21 +53,20 @@ class NoiseBehaviorOption(Enum): @property def noise_behavior(self) -> NoiseBehaviorOption: - """Noise Behavior - Specifies the behavior of the parametric noise profile - - """ + """Specifies the behavior of the parametric noise profile.""" val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val.upper()] return val @property def use_log_linear_interpolation(self) -> bool: - """Use Log-Linear Interpolation + """Use Log-Linear Interpolation. + If true, linear interpolation in the log domain is used. If false, - linear interpolation in the linear domain is used. + linear interpolation in the linear domain is used. Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return val == true + return (val == true) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py index 58a5a5c9dba..0dc3d99a473 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -44,10 +40,8 @@ class HarmonicTableUnitsOption(Enum): @property def harmonic_table_units(self) -> HarmonicTableUnitsOption: - """Harmonic Table Units - Specifies the units for the Harmonics - - """ + """Specifies the units for the Harmonics.""" val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val.upper()] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py index a69caa5e6e5..73c1cbd9cfc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,8 +35,7 @@ def parent(self): @property def file(self) -> str: - """File - Name of the measurement source + """Name of the measurement source. Value should be a full file path. """ @@ -48,8 +44,7 @@ def file(self) -> str: @property def source_file(self) -> str: - """Source File - Name of the measurement source + """Name of the measurement source. Value should be a full file path. """ @@ -58,30 +53,25 @@ def source_file(self) -> str: @property def transmit_frequency(self) -> float: - """Transmit Frequency - Channel associated with the measurement file - - """ + """Channel associated with the measurement file.""" val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @property def use_ams_limits(self) -> bool: - """Use AMS Limits - Allow AMS to define the frequency limits for the measurements + """Allow AMS to define the frequency limits for the measurements. Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val == true + return (val == true) @property def start_frequency(self) -> float: - """Start Frequency - Starting frequency for the measurement sweep + """Starting frequency for the measurement sweep. - Value should be greater than 1e+06. + Value should be greater than 1e6. """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") @@ -89,10 +79,9 @@ def start_frequency(self) -> float: @property def stop_frequency(self) -> float: - """Stop Frequency - Stopping frequency for the measurement sweep + """Stopping frequency for the measurement sweep. - Value should be less than 6e+09. + Value should be less than 6e9. """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") @@ -100,10 +89,10 @@ def stop_frequency(self) -> float: @property def exclude_harmonics_below_noise(self) -> bool: - """Exclude Harmonics Below Noise - Include/Exclude Harmonics below the noise + """Include/Exclude Harmonics below the noise. Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return val == true + return (val == true) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py index d3b922e9cc3..7c2d43c0aa1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -44,20 +40,15 @@ class NarrowbandBehaviorOption(Enum): @property def narrowband_behavior(self) -> NarrowbandBehaviorOption: - """Narrowband Behavior - Specifies the behavior of the parametric narrowband emissions mask - - """ + """Specifies the behavior of the parametric narrowband emissions mask.""" val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val.upper()] return val @property def measurement_frequency(self) -> float: - """Measurement Frequency - Measurement frequency for the absolute freq/amp pairs. - - """ + """Measurement frequency for the absolute freq/amp pairs.""" val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py index f8924491de9..f216fd72a52 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTxSpectralProfEmitterNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,28 +35,23 @@ def parent(self): @property def output_voltage_peak(self) -> float: - """Output Voltage Peak - Output High Voltage Level: maximum voltage of the digital signal - - """ + """Output High Voltage Level: maximum voltage of the digital signal.""" val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") return float(val) @property def include_phase_noise(self) -> bool: - """Include Phase Noise - Include oscillator phase noise in Tx spectral profile + """Include oscillator phase noise in Tx spectral profile. Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val == true + return (val == true) @property def tx_broadband_noise(self) -> float: - """Tx Broadband Noise - Transmitters broadband noise level + """Transmitters broadband noise level. Value should be less than 1000. """ @@ -68,18 +60,16 @@ def tx_broadband_noise(self) -> float: @property def perform_tx_intermod_analysis(self) -> bool: - """Perform Tx Intermod Analysis - Performs a non-linear intermod analysis for the Tx + """Performs a non-linear intermod analysis for the Tx. Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val == true + return (val == true) @property def internal_amp_gain(self) -> float: - """Internal Amp Gain - Internal Tx Amplifier's Gain + """Internal Tx Amplifier's Gain. Value should be between -1000 and 1000. """ @@ -88,8 +78,7 @@ def internal_amp_gain(self) -> float: @property def noise_figure(self) -> float: - """Noise Figure - Internal Tx Amplifier's noise figure + """Internal Tx Amplifier's noise figure. Value should be between 0 and 50. """ @@ -98,8 +87,7 @@ def noise_figure(self) -> float: @property def amplifier_saturation_level(self) -> float: - """Amplifier Saturation Level - Internal Tx Amplifier's Saturation Level + """Internal Tx Amplifier's Saturation Level. Value should be between -200 and 200. """ @@ -108,10 +96,11 @@ def amplifier_saturation_level(self) -> float: return float(val) @property - def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + def p1_db_point_ref_input(self) -> float: + """P1-dB Point, Ref. Input . + Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB - saturates the internal Tx amplifier + saturates the internal Tx amplifier. Value should be between -200 and 200. """ @@ -121,8 +110,7 @@ def p1_db_point_ref_input_(self) -> float: @property def ip3_ref_input(self) -> float: - """IP3, Ref. Input - Internal Tx Amplifier's 3rd order intercept point + """Internal Tx Amplifier's 3rd order intercept point. Value should be between -200 and 200. """ @@ -132,8 +120,7 @@ def ip3_ref_input(self) -> float: @property def reverse_isolation(self) -> float: - """Reverse Isolation - Internal Tx Amplifier's Reverse Isolation + """Internal Tx Amplifier's Reverse Isolation. Value should be between -200 and 200. """ @@ -142,10 +129,10 @@ def reverse_isolation(self) -> float: @property def max_intermod_order(self) -> int: - """Max Intermod Order - Internal Tx Amplifier's maximum intermod order to compute + """Internal Tx Amplifier's maximum intermod order to compute. Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") return int(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py index 63c76bc35c8..aa763da3119 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -44,10 +40,7 @@ class SpectrumTypeOption(Enum): @property def spectrum_type(self) -> SpectrumTypeOption: - """Spectrum Type - Specifies EMI Margins to calculate - - """ + """Specifies EMI Margins to calculate.""" val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val.upper()] return val @@ -58,18 +51,14 @@ class TxPowerOption(Enum): @property def tx_power(self) -> TxPowerOption: - """Tx Power - Method used to specify the power - - """ + """Method used to specify the power.""" val = self._get_property("Tx Power") val = self.TxPowerOption[val.upper()] return val @property def peak_power(self) -> float: - """Peak Power - Tx's carrier frequency peak power + """Tx's carrier frequency peak power. Value should be between -1000 and 1000. """ @@ -79,8 +68,7 @@ def peak_power(self) -> float: @property def average_power(self) -> float: - """Average Power - Tx's fundamental level specified by average power + """Tx's fundamental level specified by average power. Value should be between -1000 and 1000. """ @@ -90,18 +78,16 @@ def average_power(self) -> float: @property def include_phase_noise(self) -> bool: - """Include Phase Noise - Include oscillator phase noise in Tx spectral profile + """Include oscillator phase noise in Tx spectral profile. Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val == true + return (val == true) @property def tx_broadband_noise(self) -> float: - """Tx Broadband Noise - Transmitters broadband noise level + """Transmitters broadband noise level. Value should be less than 1000. """ @@ -116,18 +102,14 @@ class HarmonicTaperOption(Enum): @property def harmonic_taper(self) -> HarmonicTaperOption: - """Harmonic Taper - Taper type used to set amplitude of harmonics - - """ + """Taper type used to set amplitude of harmonics.""" val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val.upper()] return val @property def harmonic_amplitude(self) -> float: - """Harmonic Amplitude - Amplitude (relative to the carrier power) of harmonics + """Amplitude (relative to the carrier power) of harmonics. Value should be between -1000 and 0. """ @@ -136,8 +118,7 @@ def harmonic_amplitude(self) -> float: @property def harmonic_slope(self) -> float: - """Harmonic Slope - Rate of decrease for harmonics' amplitudes (dB/decade) + """Rate of decrease for harmonics' amplitudes (dB/decade). Value should be between -1000 and 0. """ @@ -146,8 +127,7 @@ def harmonic_slope(self) -> float: @property def harmonic_intercept(self) -> float: - """Harmonic Intercept - Amplitude intercept at the fundamental (dBc) + """Amplitude intercept at the fundamental (dBc). Value should be between -1000 and 0. """ @@ -156,19 +136,19 @@ def harmonic_intercept(self) -> float: @property def enable_harmonic_bw_expansion(self) -> bool: - """Enable Harmonic BW Expansion + """Enable Harmonic BW Expansion. + If (True), bandwidth of harmonics increases proportional to the harmonic - number + number. Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return val == true + return (val == true) @property def number_of_harmonics(self) -> int: - """Number of Harmonics - Maximum number of harmonics modeled + """Maximum number of harmonics modeled. Value should be between 1 and 1000. """ @@ -177,8 +157,7 @@ def number_of_harmonics(self) -> int: @property def second_harmonic_level(self) -> float: - """Second Harmonic Level - Amplitude (relative to the carrier power) of the 2nd harmonic + """Amplitude (relative to the carrier power) of the 2nd harmonic. Value should be between -1000 and 0. """ @@ -187,8 +166,7 @@ def second_harmonic_level(self) -> float: @property def third_harmonic_level(self) -> float: - """Third Harmonic Level - Amplitude (relative to the carrier power) of the 3rd harmonic + """Amplitude (relative to the carrier power) of the 3rd harmonic. Value should be between -1000 and 0. """ @@ -197,8 +175,9 @@ def third_harmonic_level(self) -> float: @property def other_harmonic_levels(self) -> float: - """Other Harmonic Levels - Amplitude (relative to the carrier power) of the higher order harmonics + """Other Harmonic Levels. + + Amplitude (relative to the carrier power) of the higher order harmonics. Value should be between -1000 and 0. """ @@ -207,18 +186,16 @@ def other_harmonic_levels(self) -> float: @property def perform_tx_intermod_analysis(self) -> bool: - """Perform Tx Intermod Analysis - Performs a non-linear intermod analysis for the Tx + """Performs a non-linear intermod analysis for the Tx. Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val == true + return (val == true) @property def internal_amp_gain(self) -> float: - """Internal Amp Gain - Internal Tx Amplifier's Gain + """Internal Tx Amplifier's Gain. Value should be between -1000 and 1000. """ @@ -227,8 +204,7 @@ def internal_amp_gain(self) -> float: @property def noise_figure(self) -> float: - """Noise Figure - Internal Tx Amplifier's noise figure + """Internal Tx Amplifier's noise figure. Value should be between 0 and 50. """ @@ -237,8 +213,7 @@ def noise_figure(self) -> float: @property def amplifier_saturation_level(self) -> float: - """Amplifier Saturation Level - Internal Tx Amplifier's Saturation Level + """Internal Tx Amplifier's Saturation Level. Value should be between -200 and 200. """ @@ -247,10 +222,11 @@ def amplifier_saturation_level(self) -> float: return float(val) @property - def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + def p1_db_point_ref_input(self) -> float: + """P1-dB Point, Ref. Input . + Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB - saturates the internal Tx amplifier + saturates the internal Tx amplifier. Value should be between -200 and 200. """ @@ -260,8 +236,7 @@ def p1_db_point_ref_input_(self) -> float: @property def ip3_ref_input(self) -> float: - """IP3, Ref. Input - Internal Tx Amplifier's 3rd order intercept point + """Internal Tx Amplifier's 3rd order intercept point. Value should be between -200 and 200. """ @@ -271,8 +246,7 @@ def ip3_ref_input(self) -> float: @property def reverse_isolation(self) -> float: - """Reverse Isolation - Internal Tx Amplifier's Reverse Isolation + """Internal Tx Amplifier's Reverse Isolation. Value should be between -200 and 200. """ @@ -281,10 +255,10 @@ def reverse_isolation(self) -> float: @property def max_intermod_order(self) -> int: - """Max Intermod Order - Internal Tx Amplifier's maximum intermod order to compute + """Internal Tx Amplifier's maximum intermod order to compute. Value should be between 3 and 20. """ val = self._get_property("Max Intermod Order") return int(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py index feea24d14d4..979db993892 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyTxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,14 +36,14 @@ def parent(self): @property def table_data(self): - """Table" - "Table consists of 3 columns." - "Frequency (MHz): + """Table. + Table consists of 3 columns. + Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: - Value should be greater than 1. - "Power: - Value should be between -200 and 150. + Bandwidth: + Value should be greater than 1.0. + Power: + Value should be between -200.0 and 150.0. """ return self._get_table_data() @@ -57,10 +53,8 @@ class SpurTableUnitsOption(Enum): @property def spur_table_units(self) -> SpurTableUnitsOption: - """Spur Table Units - Specifies the units for the Spurs - - """ + """Specifies the units for the Spurs.""" val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py index 669578eaf1d..6642582b276 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,58 +36,46 @@ def parent(self): @property def enabled(self) -> bool: - """Enabled - Enable/Disable coupling + """Enable/Disable coupling. Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @property def base_antenna(self) -> EmitNode: - """Base Antenna - First antenna of the pair to apply the coupling values to - - """ + """First antenna of the pair to apply the coupling values to.""" val = self._get_property("Base Antenna") return val @property def mobile_antenna(self) -> EmitNode: - """Mobile Antenna - Second antenna of the pair to apply the coupling values to - - """ + """Second antenna of the pair to apply the coupling values to.""" val = self._get_property("Mobile Antenna") return val @property def enable_refinement(self) -> bool: - """Enable Refinement - Enables/disables refined sampling of the frequency domain. + """Enables/disables refined sampling of the frequency domain. Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @property def adaptive_sampling(self) -> bool: - """Adaptive Sampling - Enables/disables adaptive refinement the frequency domain sampling. + """Enables/disables adaptive refinement the frequency domain sampling. Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @property def refinement_domain(self): - """Refinement Domain - Points to use when refining the frequency domain. - - """ + """Points to use when refining the frequency domain.""" val = self._get_property("Refinement Domain") return val @@ -101,10 +85,7 @@ class PathLossTypeOption(Enum): @property def path_loss_type(self) -> PathLossTypeOption: - """Path Loss Type - Specify LOS vs NLOS for the Walfisch-Ikegami model - - """ + """Specify LOS vs NLOS for the Walfisch-Ikegami model.""" val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val.upper()] return val @@ -115,18 +96,14 @@ class EnvironmentOption(Enum): @property def environment(self) -> EnvironmentOption: - """Environment - Specify the environment type for the Walfisch model - - """ + """Specify the environment type for the Walfisch model.""" val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @property def roof_height(self) -> float: - """Roof Height - The height of the building where the antenna is located. + """The height of the building where the antenna is located. Value should be between 0 and 100. """ @@ -136,8 +113,7 @@ def roof_height(self) -> float: @property def distance_between_buildings(self) -> float: - """Distance Between Buildings - The distance between two buildings. + """The distance between two buildings. Value should be between 0 and 100. """ @@ -147,8 +123,7 @@ def distance_between_buildings(self) -> float: @property def street_width(self) -> float: - """Street Width - Width of the street. + """Width of the street. Value should be between 0 and 100. """ @@ -158,8 +133,7 @@ def street_width(self) -> float: @property def incidence_angle(self) -> float: - """Incidence Angle - Angle between the street orientation and direction of incidence. + """Angle between the street orientation and direction of incidence. Value should be between 0 and 90. """ @@ -168,9 +142,10 @@ def incidence_angle(self) -> float: @property def custom_fading_margin(self) -> float: - """Custom Fading Margin + """Custom Fading Margin. + Sets a custom fading margin to be applied to all coupling defined by - this node + this node. Value should be between 0 and 100. """ @@ -179,9 +154,10 @@ def custom_fading_margin(self) -> float: @property def polarization_mismatch(self) -> float: - """Polarization Mismatch + """Polarization Mismatch. + Sets a margin for polarization mismatch to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -190,9 +166,10 @@ def polarization_mismatch(self) -> float: @property def pointing_error_loss(self) -> float: - """Pointing Error Loss + """Pointing Error Loss. + Sets a margin for pointing error loss to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -207,50 +184,47 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: - """Fading Type - Specify the type of fading to include - - """ + """Specify the type of fading to include.""" val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @property def fading_availability(self) -> float: - """Fading Availability + """Fading Availability. + The probability that the propagation loss in dB is below its median - value plus the margin + value plus the margin. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Fading Availability") return float(val) @property def std_deviation(self) -> float: - """Std Deviation - Standard deviation modeling the random amount of shadowing loss + """Standard deviation modeling the random amount of shadowing loss. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Std Deviation") return float(val) @property def include_rain_attenuation(self) -> bool: - """Include Rain Attenuation - Adds a margin for rain attenuation to the computed coupling + """Adds a margin for rain attenuation to the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @property def rain_availability(self) -> float: - """Rain Availability + """Rain Availability. + Percentage of time attenuation due to range is < computed margin (range - from 99-99.999%) + from 99-99.999%). Value should be between 99 and 99.999. """ @@ -259,62 +233,61 @@ def rain_availability(self) -> float: @property def rain_rate(self) -> float: - """Rain Rate - Rain rate (mm/hr) exceeded for 0.01% of the time + """Rain rate (mm/hr) exceeded for 0.01% of the time. - Value should be between 0 and 1000. + Value should be between 0.0 and 1000.0. """ val = self._get_property("Rain Rate") return float(val) @property def polarization_tilt_angle(self) -> float: - """Polarization Tilt Angle + """Polarization Tilt Angle. + Polarization tilt angle of the transmitted signal relative to the - horizontal + horizontal. - Value should be between 0 and 180. + Value should be between 0.0 and 180.0. """ val = self._get_property("Polarization Tilt Angle") return float(val) @property def include_atmospheric_absorption(self) -> bool: - """Include Atmospheric Absorption + """Include Atmospheric Absorption. + Adds a margin for atmospheric absorption due to oxygen/water vapor to - the computed coupling + the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @property def temperature(self) -> float: - """Temperature - Air temperature in degrees Celsius + """Air temperature in degrees Celsius. - Value should be between -273 and 100. + Value should be between -273.0 and 100.0. """ val = self._get_property("Temperature") return float(val) @property def total_air_pressure(self) -> float: - """Total Air Pressure - Total air pressure + """Total air pressure. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Total Air Pressure") return float(val) @property def water_vapor_concentration(self) -> float: - """Water Vapor Concentration - Water vapor concentration + """Water vapor concentration. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Water Vapor Concentration") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py index 61953d03414..55421742282 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ReadOnlyWaveform(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,10 +36,7 @@ def parent(self): @property def port(self): - """Port - Radio Port associated with this Band - - """ + """Radio Port associated with this Band.""" val = self._get_property("Port") return val @@ -56,20 +49,16 @@ class WaveformOption(Enum): @property def waveform(self) -> WaveformOption: - """Waveform - Modulation used for the transmitted/received signal - - """ + """Modulation used for the transmitted/received signal.""" val = self._get_property("Waveform") val = self.WaveformOption[val.upper()] return val @property def start_frequency(self) -> float: - """Start Frequency - First frequency for this band + """First frequency for this band. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") @@ -77,10 +66,9 @@ def start_frequency(self) -> float: @property def stop_frequency(self) -> float: - """Stop Frequency - Last frequency for this band + """Last frequency for this band. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") @@ -88,10 +76,9 @@ def stop_frequency(self) -> float: @property def channel_spacing(self) -> float: - """Channel Spacing - Spacing between channels within this band + """Spacing between channels within this band. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") @@ -99,20 +86,18 @@ def channel_spacing(self) -> float: @property def clock_duty_cycle(self) -> float: - """Clock Duty Cycle - Clock signals duty cycle + """Clock signals duty cycle. - Value should be between 0.001 and 1. + Value should be between 0.001 and 1.0. """ val = self._get_property("Clock Duty Cycle") return float(val) @property def clock_risefall_time(self) -> float: - """Clock Rise/Fall Time - Clock signals rise/fall time + """Clock signals rise/fall time. - Value should be greater than 0. + Value should be greater than 0.0. """ val = self._get_property("Clock Rise/Fall Time") val = self._convert_from_internal_units(float(val), "Time") @@ -125,18 +110,14 @@ class SpreadingTypeOption(Enum): @property def spreading_type(self) -> SpreadingTypeOption: - """Spreading Type - Type of spreading employed by the Spread Spectrum Clock - - """ + """Type of spreading employed by the Spread Spectrum Clock.""" val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val.upper()] return val @property def spread_percentage(self) -> float: - """Spread Percentage - Peak-to-peak spread percentage + """Peak-to-peak spread percentage. Value should be between 0 and 100. """ @@ -145,27 +126,21 @@ def spread_percentage(self) -> float: @property def imported_spectrum(self) -> str: - """Imported Spectrum - Value should be a full file path. - """ + """Imported Spectrum.""" val = self._get_property("Imported Spectrum") return val @property def raw_data_format(self) -> str: - """Raw Data Format - Format of the imported raw data - - """ + """Format of the imported raw data.""" val = self._get_property("Raw Data Format") return val @property def system_impedance(self) -> float: - """System Impedance - System impedance for the imported data + """System impedance for the imported data. - Value should be between 0 and 1e+06. + Value should be between 0.0 and 1.0e6. """ val = self._get_property("System Impedance") val = self._convert_from_internal_units(float(val), "Resistance") @@ -173,19 +148,19 @@ def system_impedance(self) -> float: @property def advanced_extraction_params(self) -> bool: - """Advanced Extraction Params - Show/hide advanced extraction params + """Show/hide advanced extraction params. Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return val == true + return (val == true) @property def nb_window_size(self) -> float: - """NB Window Size + """NB Window Size. + Window size for computing the moving average during narrowband signal - detection + detection. Value should be greater than 3. """ @@ -194,8 +169,9 @@ def nb_window_size(self) -> float: @property def bb_smoothing_factor(self) -> float: - """BB Smoothing Factor - Reduces the number of frequency points used for the broadband noise + """BB Smoothing Factor. + + Reduces the number of frequency points used for the broadband noise. Value should be greater than 1. """ @@ -204,8 +180,7 @@ def bb_smoothing_factor(self) -> float: @property def nb_detector_threshold(self) -> float: - """NB Detector Threshold - Narrowband Detector threshold standard deviation + """Narrowband Detector threshold standard deviation. Value should be between 2 and 10. """ @@ -218,20 +193,16 @@ class AlgorithmOption(Enum): @property def algorithm(self) -> AlgorithmOption: - """Algorithm - Algorithm used to transform the imported time domain spectrum - - """ + """Algorithm used to transform the imported time domain spectrum.""" val = self._get_property("Algorithm") val = self.AlgorithmOption[val.upper()] return val @property def start_time(self) -> float: - """Start Time - Initial time of the imported spectrum + """Initial time of the imported spectrum. - Value should be greater than 0. + Value should be greater than 0.0. """ val = self._get_property("Start Time") val = self._convert_from_internal_units(float(val), "Time") @@ -239,20 +210,16 @@ def start_time(self) -> float: @property def stop_time(self) -> float: - """Stop Time - Final time of the imported time domain spectrum - - """ + """Final time of the imported time domain spectrum.""" val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") return float(val) @property def max_frequency(self) -> float: - """Max Frequency - Frequency cutoff of the imported time domain spectrum + """Frequency cutoff of the imported time domain spectrum. - Value should be between 1 and 1e+11. + Value should be between 1.0 and 100.0e9. """ val = self._get_property("Max Frequency") val = self._convert_from_internal_units(float(val), "Freq") @@ -271,38 +238,32 @@ class WindowTypeOption(Enum): @property def window_type(self) -> WindowTypeOption: - """Window Type - Windowing scheme used for importing time domain spectrum - - """ + """Windowing scheme used for importing time domain spectrum.""" val = self._get_property("Window Type") val = self.WindowTypeOption[val.upper()] return val @property def kaiser_parameter(self) -> float: - """Kaiser Parameter - Shape factor applied to the transform + """Shape factor applied to the transform. - Value should be greater than 0. + Value should be greater than 0.0. """ val = self._get_property("Kaiser Parameter") return float(val) @property def adjust_coherent_gain(self) -> bool: - """Adjust Coherent Gain - Shape factor applied to the transform + """Shape factor applied to the transform. Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return val == true + return (val == true) @property def data_rate(self) -> float: - """Data Rate - Maximum data rate: helps determine shape of spectral profile + """Maximum data rate: helps determine shape of spectral profile. Value should be greater than 1. """ @@ -312,8 +273,7 @@ def data_rate(self) -> float: @property def num_of_bits(self) -> int: - """Num of Bits - Length of the Pseudo Random Binary Sequence + """Length of the Pseudo Random Binary Sequence. Value should be between 1 and 1000. """ @@ -322,18 +282,16 @@ def num_of_bits(self) -> int: @property def use_envelope(self) -> bool: - """Use Envelope - Model the waveform as a worst case envelope. + """Model the waveform as a worst case envelope. Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return val == true + return (val == true) @property def min_ptsnull(self) -> int: - """Min Pts/Null - Minimum number of points to use between each null frequency + """Minimum number of points to use between each null frequency. Value should be between 2 and 50. """ @@ -342,11 +300,11 @@ def min_ptsnull(self) -> int: @property def delay_skew(self) -> float: - """Delay Skew - Delay Skew of the differential signal pairs + """Delay Skew of the differential signal pairs. - Value should be greater than 0. + Value should be greater than 0.0. """ val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") return float(val) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py index f10db08d685..5e090da16fa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class ResultPlotNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -43,21 +39,19 @@ def export_model(self, file_name): @property def title(self) -> str: - """Title - Enter title at the top of the plot, room will be made for it - - """ + """Enter title at the top of the plot, room will be made for it.""" val = self._get_property("Title") return val @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title={value}"]) @property def title_font(self): - """Title Font - Configure title font family, typeface, and size + """Configure title font family, typeface, and size. Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ @@ -66,26 +60,28 @@ def title_font(self): @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Title Font={value}"]) @property def show_legend(self) -> bool: - """Show Legend - Toggle (on/off) display of plot legend + """Toggle (on/off) display of plot legend. Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return val == true + return (val == true) @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Legend={value}"]) @property def legend_font(self): - """Legend Font - Configure legend font family, typeface, and size + """Configure legend font family, typeface, and size. Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ @@ -94,40 +90,43 @@ def legend_font(self): @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Legend Font={value}"]) @property def show_emi_thresholds(self) -> bool: - """Show EMI Thresholds - Toggles on/off visibility of the EMI Thresholds + """Toggles on/off visibility of the EMI Thresholds. Value should be 'true' or 'false'. """ val = self._get_property("Show EMI Thresholds") - return val == true + return (val == true) @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show EMI Thresholds={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show EMI Thresholds={value}"]) @property def display_cad_overlay(self) -> bool: - """Display CAD Overlay - Toggle on/off overlay of CAD model in plot + """Toggle on/off overlay of CAD model in plot. Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return val == true + return (val == true) @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: - """Opacity - Adjust opacity of CAD model overlay: 0 Transparent - 1 Opaque + """Adjust opacity of CAD model overlay: 0 Transparent - 1 Opaque. Value should be between 0 and 100. """ @@ -135,27 +134,29 @@ def opacity(self) -> float: return float(val) @opacity.setter - def opacity(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) + def opacity(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Opacity={value}"]) @property def vertical_offset(self) -> float: - """Vertical Offset - Adjust vertical position of CAD model overlay - - """ + """Adjust vertical position of CAD model overlay.""" val = self._get_property("Vertical Offset") return float(val) @vertical_offset.setter - def vertical_offset(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) + def vertical_offset(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: - """Range Axis Rotation + """Range Axis Rotation. + Adjust view angle for CAD model overlay by rotating it about plot - horizontal axis + horizontal axis. Value should be between -180 and 180. """ @@ -163,80 +164,83 @@ def range_axis_rotation(self) -> float: return float(val) @range_axis_rotation.setter - def range_axis_rotation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: - """Lock Axes - Allow or prevent changing of axes when displayed plot traces are updated + """Lock Axes. + + Allow or prevent changing of axes when displayed plot traces are + updated. Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return val == true + return (val == true) @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: - """X-axis Min - Set lower extent of horizontal axis - - """ + """Set lower extent of horizontal axis.""" val = self._get_property("X-axis Min") return float(val) @x_axis_min.setter - def x_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) + def x_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: - """X-axis Max - Set upper extent of horizontal axis - - """ + """Set upper extent of horizontal axis.""" val = self._get_property("X-axis Max") return float(val) @x_axis_max.setter - def x_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) + def x_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: - """Y-axis Min - Set lower extent of vertical axis - - """ + """Set lower extent of vertical axis.""" val = self._get_property("Y-axis Min") return float(val) @y_axis_min.setter - def y_axis_min(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) + def y_axis_min(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: - """Y-axis Max - Set upper extent of vertical axis - - """ + """Set upper extent of vertical axis.""" val = self._get_property("Y-axis Max") return float(val) @y_axis_max.setter - def y_axis_max(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) + def y_axis_max(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: - """Y-axis Range + """Y-axis Range. + Adjust dB span of vertical axis, makes corresponding adjustment in - Y-axis Min + Y-axis Min. Value should be greater than 0. """ @@ -244,13 +248,16 @@ def y_axis_range(self) -> float: return float(val) @y_axis_range.setter - def y_axis_range(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) + def y_axis_range(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: - """Max Major Ticks X - Set maximum number of major tick-mark intervals along horizontal axis + """Max Major Ticks X. + + Set maximum number of major tick-mark intervals along horizontal axis. Value should be between 1 and 30. """ @@ -259,13 +266,16 @@ def max_major_ticks_x(self) -> int: @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: - """Max Minor Ticks X + """Max Minor Ticks X. + Set maximum number of minor tick-mark intervals between major ticks - along horizontal axis + along horizontal axis. Value should be between 0 and 100. """ @@ -274,12 +284,15 @@ def max_minor_ticks_x(self) -> int: @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: - """Max Major Ticks Y - Set maximum number of major tick-mark intervals along vertical axis + """Max Major Ticks Y. + + Set maximum number of major tick-mark intervals along vertical axis. Value should be between 1 and 30. """ @@ -288,13 +301,16 @@ def max_major_ticks_y(self) -> int: @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: - """Max Minor Ticks Y + """Max Minor Ticks Y. + Set maximum number of minor tick-mark intervals between major ticks - along vertical axis + along vertical axis. Value should be between 0 and 100. """ @@ -303,12 +319,13 @@ def max_minor_ticks_y(self) -> int: @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): - """Axis Label Font - Configure axis text labels font family, typeface, and size + """Configure axis text labels font family, typeface, and size. Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ @@ -317,12 +334,13 @@ def axis_label_font(self): @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): - """Axis Tick Label Font - Configure axis tick numeric labels font family, typeface, and size + """Configure axis tick numeric labels font family, typeface, and size. Value formated like 'Sans Serif,10,-1,5,50,0,0,0,0,0'. """ @@ -331,7 +349,9 @@ def axis_tick_label_font(self): @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -343,24 +363,20 @@ class MajorGridLineStyleOption(Enum): @property def major_grid_line_style(self) -> MajorGridLineStyleOption: - """Major Grid Line Style - Select line style of major-tick grid lines - - """ + """Select line style of major-tick grid lines.""" val = self._get_property("Major Grid Line Style") val = self.MajorGridLineStyleOption[val.upper()] return val @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Line Style={value.value}"]) @property def major_grid_color(self): - """Major Grid Color - Set color of major-tick grid lines + """Set color of major-tick grid lines. Color should be in RGB form: #RRGGBB. """ @@ -369,7 +385,9 @@ def major_grid_color(self): @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -381,24 +399,20 @@ class MinorGridLineStyleOption(Enum): @property def minor_grid_line_style(self) -> MinorGridLineStyleOption: - """Minor Grid Line Style - Select line style of minor-tick grid lines - - """ + """Select line style of minor-tick grid lines.""" val = self._get_property("Minor Grid Line Style") val = self.MinorGridLineStyleOption[val.upper()] return val @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Line Style={value.value}"]) @property def minor_grid_color(self): - """Minor Grid Color - Set color of minor-tick grid lines + """Set color of minor-tick grid lines. Color should be in RGB form: #RRGGBB. """ @@ -407,12 +421,13 @@ def minor_grid_color(self): @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minor Grid Color={value}"]) @property def background_color(self): - """Background Color - Set background color of entire plot + """Set background color of entire plot. Color should be in RGB form: #RRGGBB. """ @@ -421,7 +436,9 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -431,46 +448,46 @@ class BBPowerforPlotsUnitOption(Enum): @property def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: - """BB Power for Plots Unit - Units to use for plotting broadband power densities - - """ + """Units to use for plotting broadband power densities.""" val = self._get_property("BB Power for Plots Unit") val = self.BBPowerforPlotsUnitOption[val.upper()] return val @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power for Plots Unit={value.value}"]) @property def bb_power_bandwidth(self) -> float: - """BB Power Bandwidth - Resolution bandwidth for broadband power + """Resolution bandwidth for broadband power. - Value should be between 1 and 1e+11. + Value should be between 1.0 and 100e9. """ val = self._get_property("BB Power Bandwidth") val = self._convert_from_internal_units(float(val), "") return float(val) @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value: float | str): + def bb_power_bandwidth(self, value : float|str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: - """Log Scale - Toggles on/off using a log scale for the X-Axis + """Toggles on/off using a log scale for the X-Axis. Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return val == true + return (val == true) @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Log Scale={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py index 9065d91119a..48b7fb3ac4d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class RxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -48,8 +44,7 @@ def delete(self): @property def file(self) -> str: - """File - Name of the measurement source + """Name of the measurement source. Value should be a full file path. """ @@ -58,8 +53,7 @@ def file(self) -> str: @property def source_file(self) -> str: - """Source File - Name of the measurement source + """Name of the measurement source. Value should be a full file path. """ @@ -68,10 +62,7 @@ def source_file(self) -> str: @property def receive_frequency(self) -> float: - """Receive Frequency - Channel associated with the measurement file - - """ + """Channel associated with the measurement file.""" val = self._get_property("Receive Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @@ -83,22 +74,20 @@ class MeasurementModeOption(Enum): @property def measurement_mode(self) -> MeasurementModeOption: - """Measurement Mode - Defines the mode for the receiver measurement - - """ + """Defines the mode for the receiver measurement.""" val = self._get_property("Measurement Mode") val = self.MeasurementModeOption[val.upper()] return val @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Mode={value.value}"]) @property def sinad_threshold(self) -> float: - """SINAD Threshold - SINAD Threshold used for the receiver measurements + """SINAD Threshold used for the receiver measurements. Value should be between 5 and 20. """ @@ -106,13 +95,14 @@ def sinad_threshold(self) -> float: return float(val) @sinad_threshold.setter - def sinad_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SINAD Threshold={value}"]) + def sinad_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SINAD Threshold={value}"]) @property def gps_cnr_threshold(self) -> float: - """GPS CNR Threshold - GPS CNR Threshold used for the receiver measurements + """GPS CNR Threshold used for the receiver measurements. Value should be between 15 and 30. """ @@ -120,13 +110,14 @@ def gps_cnr_threshold(self) -> float: return float(val) @gps_cnr_threshold.setter - def gps_cnr_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GPS CNR Threshold={value}"]) + def gps_cnr_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"GPS CNR Threshold={value}"]) @property def ber_threshold(self) -> float: - """BER Threshold - BER Threshold used for the receiver measurements + """BER Threshold used for the receiver measurements. Value should be between -12 and -1. """ @@ -134,27 +125,29 @@ def ber_threshold(self) -> float: return float(val) @ber_threshold.setter - def ber_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BER Threshold={value}"]) + def ber_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BER Threshold={value}"]) @property def default_intended_power(self) -> bool: - """Default Intended Power - Specify the intended signal + """Specify the intended signal. Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return val == true + return (val == true) @default_intended_power.setter def default_intended_power(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Default Intended Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Default Intended Power={value}"]) @property def intended_signal_power(self) -> float: - """Intended Signal Power - Specify the power level of the intended signal + """Specify the power level of the intended signal. Value should be between -140 and -50. """ @@ -162,13 +155,14 @@ def intended_signal_power(self) -> float: return float(val) @intended_signal_power.setter - def intended_signal_power(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Intended Signal Power={value}"]) + def intended_signal_power(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Intended Signal Power={value}"]) @property def freq_deviation(self) -> float: - """Freq. Deviation - Specify the frequency deviation of the intended signal + """Specify the frequency deviation of the intended signal. Value should be between 1000 and 200000. """ @@ -177,14 +171,15 @@ def freq_deviation(self) -> float: return float(val) @freq_deviation.setter - def freq_deviation(self, value: float | str): + def freq_deviation(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Freq. Deviation={value}"]) @property def modulation_depth(self) -> float: - """Modulation Depth - Specify the modulation depth of the intended signal + """Specify the modulation depth of the intended signal. Value should be between 10 and 100. """ @@ -192,41 +187,44 @@ def modulation_depth(self) -> float: return float(val) @modulation_depth.setter - def modulation_depth(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Depth={value}"]) + def modulation_depth(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Modulation Depth={value}"]) @property def measure_selectivity(self) -> bool: - """Measure Selectivity - Enable/disable the measurement of the receiver's selectivity + """Enable/disable the measurement of the receiver's selectivity. Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return val == true + return (val == true) @measure_selectivity.setter def measure_selectivity(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Selectivity={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Selectivity={value}"]) @property def measure_mixer_products(self) -> bool: - """Measure Mixer Products - Enable/disable the measurement of the receiver's mixer products + """Enable/disable the measurement of the receiver's mixer products. Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return val == true + return (val == true) @measure_mixer_products.setter def measure_mixer_products(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Mixer Products={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Mixer Products={value}"]) @property def max_rf_order(self) -> int: - """Max RF Order - Max RF Order of the mixer products to measure + """Max RF Order of the mixer products to measure. Value should be greater than 1. """ @@ -235,12 +233,13 @@ def max_rf_order(self) -> int: @max_rf_order.setter def max_rf_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max RF Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max RF Order={value}"]) @property def max_lo_order(self) -> int: - """Max LO Order - Max LO Order of the mixer products to measure + """Max LO Order of the mixer products to measure. Value should be greater than 1. """ @@ -249,86 +248,92 @@ def max_lo_order(self) -> int: @max_lo_order.setter def max_lo_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max LO Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max LO Order={value}"]) @property def include_if(self) -> bool: - """Include IF - Enable/disable the measurement of the IF channel + """Enable/disable the measurement of the IF channel. Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return val == true + return (val == true) @include_if.setter def include_if(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include IF={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include IF={value}"]) @property def measure_saturation(self) -> bool: - """Measure Saturation - Enable/disable measurement of the receiver's saturation level + """Enable/disable measurement of the receiver's saturation level. Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return val == true + return (val == true) @measure_saturation.setter def measure_saturation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Saturation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measure Saturation={value}"]) @property def use_ams_limits(self) -> bool: - """Use AMS Limits - Allow AMS to determine the limits for measuring saturation + """Allow AMS to determine the limits for measuring saturation. Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val == true + return (val == true) @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: - """Start Frequency - Starting frequency for the measurement sweep + """Starting frequency for the measurement sweep. - Value should be greater than 1e+06. + Value should be greater than 1e6. """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: - """Stop Frequency - Stopping frequency for the measurement sweep + """Stopping frequency for the measurement sweep. - Value should be less than 6e+09. + Value should be less than 6e9. """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def samples(self) -> int: - """Samples - Number of measurement samples for each frequency + """Number of measurement samples for each frequency. Value should be between 2 and 100. """ @@ -337,29 +342,31 @@ def samples(self) -> int: @samples.setter def samples(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Samples={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Samples={value}"]) @property def exclude_mixer_products_below_noise(self) -> bool: - """Exclude Mixer Products Below Noise - Include/Exclude Mixer Products below the noise + """Include/Exclude Mixer Products below the noise. Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return val == true + return (val == true) @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Exclude Mixer Products Below Noise={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Exclude Mixer Products Below Noise={value}"]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py index 6c6f3aa83b8..b1b666c7a3b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class RxMixerProductNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -49,7 +45,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -62,24 +58,20 @@ class MixerProductTaperOption(Enum): @property def mixer_product_taper(self) -> MixerProductTaperOption: - """Mixer Product Taper - Taper for setting amplitude of mixer products - - """ + """Taper for setting amplitude of mixer products.""" val = self._get_property("Mixer Product Taper") val = self.MixerProductTaperOption[val.upper()] return val @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Taper={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Taper={value.value}"]) @property def mixer_product_susceptibility(self) -> float: - """Mixer Product Susceptibility - Mixer product amplitudes (relative to the in-band susceptibility) + """Mixer product amplitudes (relative to the in-band susceptibility). Value should be between -200 and 200. """ @@ -87,15 +79,14 @@ def mixer_product_susceptibility(self) -> float: return float(val) @mixer_product_susceptibility.setter - def mixer_product_susceptibility(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Susceptibility={value}"] - ) + def mixer_product_susceptibility(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Susceptibility={value}"]) @property def spurious_rejection(self) -> float: - """Spurious Rejection - Mixer product amplitudes (relative to the in-band susceptibility) + """Mixer product amplitudes (relative to the in-band susceptibility). Value should be between -200 and 200. """ @@ -103,46 +94,51 @@ def spurious_rejection(self) -> float: return float(val) @spurious_rejection.setter - def spurious_rejection(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spurious Rejection={value}"]) + def spurious_rejection(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spurious Rejection={value}"]) @property def minimum_tuning_frequency(self) -> float: - """Minimum Tuning Frequency - Minimum tuning frequency of Rx's local oscillator + """Minimum tuning frequency of Rx's local oscillator. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Minimum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value: float | str): + def minimum_tuning_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Minimum Tuning Frequency={value}"]) @property def maximum_tuning_frequency(self) -> float: - """Maximum Tuning Frequency - Maximum tuning frequency of Rx's local oscillator + """Maximum tuning frequency of Rx's local oscillator. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Maximum Tuning Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value: float | str): + def maximum_tuning_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum Tuning Frequency={value}"]) @property def mixer_product_slope(self) -> float: - """Mixer Product Slope + """Mixer Product Slope. + Rate of decrease for amplitude of Rx's local oscillator harmonics - (dB/decade) + (dB/decade). Value should be between 0 and 100. """ @@ -150,13 +146,14 @@ def mixer_product_slope(self) -> float: return float(val) @mixer_product_slope.setter - def mixer_product_slope(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Slope={value}"]) + def mixer_product_slope(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Slope={value}"]) @property def mixer_product_intercept(self) -> float: - """Mixer Product Intercept - Mixer product intercept (dBc) + """Mixer product intercept (dBc). Value should be between 0 and 100. """ @@ -164,14 +161,17 @@ def mixer_product_intercept(self) -> float: return float(val) @mixer_product_intercept.setter - def mixer_product_intercept(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Intercept={value}"]) + def mixer_product_intercept(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Intercept={value}"]) @property def bandwidth_80_db(self) -> float: - """Bandwidth 80 dB + """Bandwidth 80 dB. + Bandwidth where Rx's susceptibility envelope is 80 dB above in-band - susceptibility level + susceptibility level. Value should be greater than 1. """ @@ -180,14 +180,15 @@ def bandwidth_80_db(self) -> float: return float(val) @bandwidth_80_db.setter - def bandwidth_80_db(self, value: float | str): + def bandwidth_80_db(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 80 dB={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 80 dB={value}"]) @property def image_rejection(self) -> float: - """Image Rejection - Image frequency amplitude (relative to the in-band susceptibility) + """Image frequency amplitude (relative to the in-band susceptibility). Value should be between -200 and 200. """ @@ -195,13 +196,14 @@ def image_rejection(self) -> float: return float(val) @image_rejection.setter - def image_rejection(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Image Rejection={value}"]) + def image_rejection(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Image Rejection={value}"]) @property def maximum_rf_harmonic_order(self) -> int: - """Maximum RF Harmonic Order - Maximum order of RF frequency + """Maximum order of RF frequency. Value should be between 1 and 100. """ @@ -210,14 +212,13 @@ def maximum_rf_harmonic_order(self) -> int: @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Maximum RF Harmonic Order={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum RF Harmonic Order={value}"]) @property def maximum_lo_harmonic_order(self) -> int: - """Maximum LO Harmonic Order - Maximum order of the LO frequency + """Maximum order of the LO frequency. Value should be between 1 and 100. """ @@ -226,9 +227,9 @@ def maximum_lo_harmonic_order(self) -> int: @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Maximum LO Harmonic Order={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Maximum LO Harmonic Order={value}"]) class MixingModeOption(Enum): LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" @@ -237,22 +238,20 @@ class MixingModeOption(Enum): @property def mixing_mode(self) -> MixingModeOption: - """Mixing Mode - Specifies whether the IF frequency is > or < RF channel frequency - - """ + """Specifies whether the IF frequency is > or < RF channel frequency.""" val = self._get_property("Mixing Mode") val = self.MixingModeOption[val.upper()] return val @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixing Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixing Mode={value.value}"]) @property def first_if_frequency(self): - """First IF Frequency - Intermediate frequency for Rx's 1st conversion stage + """Intermediate frequency for Rx's 1st conversion stage. Value should be a mathematical expression. """ @@ -261,22 +260,23 @@ def first_if_frequency(self): @first_if_frequency.setter def first_if_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First IF Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"First IF Frequency={value}"]) @property def rf_transition_frequency(self) -> float: - """RF Transition Frequency - RF Frequency Transition point - - """ + """RF Frequency Transition point.""" val = self._get_property("RF Transition Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @rf_transition_frequency.setter - def rf_transition_frequency(self, value: float | str): + def rf_transition_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"RF Transition Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"RF Transition Frequency={value}"]) class UseHighLOOption(Enum): ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" @@ -284,17 +284,16 @@ class UseHighLOOption(Enum): @property def use_high_lo(self) -> UseHighLOOption: - """Use High LO - Use High LO above/below the transition frequency - - """ + """Use High LO above/below the transition frequency.""" val = self._get_property("Use High LO") val = self.UseHighLOOption[val.upper()] return val @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use High LO={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use High LO={value.value}"]) class MixerProductTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -302,16 +301,14 @@ class MixerProductTableUnitsOption(Enum): @property def mixer_product_table_units(self) -> MixerProductTableUnitsOption: - """Mixer Product Table Units - Specifies the units for the Mixer Products - - """ + """Specifies the units for the Mixer Products.""" val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val.upper()] return val @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Mixer Product Table Units={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mixer Product Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py index 62e4e8f9276..df6a48c060b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class RxSaturationNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,7 +35,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -47,8 +44,9 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py index e49a32513f8..2a50c884f53 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class RxSelectivityNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,7 +35,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -47,7 +44,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -55,15 +52,19 @@ def enabled(self, value: bool): @property def use_arithmetic_mean(self) -> bool: - """Use Arithmetic Mean + """Use Arithmetic Mean. + Uses arithmetic mean to center bandwidths about the tuned channel - frequency + frequency. Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return val == true + return (val == true) @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Arithmetic Mean={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Arithmetic Mean={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py index 5781b89806a..b62e05867c7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class RxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -48,14 +44,14 @@ def delete(self): @property def table_data(self): - """Table" - "Table consists of 3 columns." - "Frequency (MHz): + """Table. + Table consists of 3 columns. + Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: - Value should be greater than 1. - "Power: - Value should be between -200 and 150. + Bandwidth: + Value should be greater than 1.0. + Power: + Value should be between -200.0 and 150.0. """ return self._get_table_data() @@ -66,7 +62,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -78,14 +74,14 @@ class SpurTableUnitsOption(Enum): @property def spur_table_units(self) -> SpurTableUnitsOption: - """Spur Table Units - Specifies the units for the Spurs - - """ + """Specifies the units for the Spurs.""" val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spur Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py index a96bdbf133a..d6fbe59699d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class RxSusceptibilityProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +37,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -55,37 +51,38 @@ class SensitivityUnitsOption(Enum): @property def sensitivity_units(self) -> SensitivityUnitsOption: - """Sensitivity Units - Units to use for the Rx Sensitivity - - """ + """Units to use for the Rx Sensitivity.""" val = self._get_property("Sensitivity Units") val = self.SensitivityUnitsOption[val.upper()] return val @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sensitivity Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sensitivity Units={value.value}"]) @property - def min_receive_signal_pwr_(self) -> float: - """Min. Receive Signal Pwr - Received signal power level at the Rx's antenna terminal + def min_receive_signal_pwr(self) -> float: + """Received signal power level at the Rx's antenna terminal. Value should be between -1000 and 1000. """ - val = self._get_property("Min. Receive Signal Pwr ") + val = self._get_property("Min. Receive Signal Pwr") return float(val) - @min_receive_signal_pwr_.setter - def min_receive_signal_pwr_(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min. Receive Signal Pwr ={value}"]) + @min_receive_signal_pwr.setter + def min_receive_signal_pwr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min. Receive Signal Pwr={value}"]) @property def snr_at_rx_signal_pwr(self) -> float: - """SNR at Rx Signal Pwr + """SNR at Rx Signal Pwr. + Signal-to-Noise Ratio (dB) at specified received signal power at the - Rx's antenna terminal + Rx's antenna terminal. Value should be between -1000 and 1000. """ @@ -93,13 +90,14 @@ def snr_at_rx_signal_pwr(self) -> float: return float(val) @snr_at_rx_signal_pwr.setter - def snr_at_rx_signal_pwr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR at Rx Signal Pwr={value}"]) + def snr_at_rx_signal_pwr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SNR at Rx Signal Pwr={value}"]) @property def processing_gain(self) -> float: - """Processing Gain - Rx processing gain (dB) of (optional) despreader + """Rx processing gain (dB) of (optional) despreader. Value should be between -1000 and 1000. """ @@ -107,30 +105,32 @@ def processing_gain(self) -> float: return float(val) @processing_gain.setter - def processing_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Processing Gain={value}"]) + def processing_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Processing Gain={value}"]) @property def apply_pg_to_narrowband_only(self) -> bool: - """Apply PG to Narrowband Only + """Apply PG to Narrowband Only. + Processing gain captures the despreading effect and applies to NB - signals only (not BB noise) when enabled + signals only (not BB noise) when enabled. Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return val == true + return (val == true) @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Apply PG to Narrowband Only={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Apply PG to Narrowband Only={value}"]) @property def saturation_level(self) -> float: - """Saturation Level - Rx input saturation level + """Rx input saturation level. Value should be between -1000 and 1000. """ @@ -139,14 +139,15 @@ def saturation_level(self) -> float: return float(val) @saturation_level.setter - def saturation_level(self, value: float | str): + def saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Saturation Level={value}"]) @property def rx_noise_figure(self) -> float: - """Rx Noise Figure - Rx noise figure (dB) + """Rx noise figure (dB). Value should be between 0 and 1000. """ @@ -154,61 +155,61 @@ def rx_noise_figure(self) -> float: return float(val) @rx_noise_figure.setter - def rx_noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rx Noise Figure={value}"]) + def rx_noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rx Noise Figure={value}"]) @property - def receiver_sensitivity_(self) -> float: - """Receiver Sensitivity - Rx minimum sensitivity level (dBm) + def receiver_sensitivity(self) -> float: + """Rx minimum sensitivity level (dBm). Value should be between -1000 and 1000. """ - val = self._get_property("Receiver Sensitivity ") + val = self._get_property("Receiver Sensitivity") val = self._convert_from_internal_units(float(val), "Power") return float(val) - @receiver_sensitivity_.setter - def receiver_sensitivity_(self, value: float | str): + @receiver_sensitivity.setter + def receiver_sensitivity(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver Sensitivity ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Receiver Sensitivity={value}"]) @property - def snrsinad_at_sensitivity_(self) -> float: - """SNR/SINAD at Sensitivity - SNR or SINAD at the specified sensitivity level + def snrsinad_at_sensitivity(self) -> float: + """SNR or SINAD at the specified sensitivity level. Value should be between -1000 and 1000. """ - val = self._get_property("SNR/SINAD at Sensitivity ") + val = self._get_property("SNR/SINAD at Sensitivity") return float(val) - @snrsinad_at_sensitivity_.setter - def snrsinad_at_sensitivity_(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"SNR/SINAD at Sensitivity ={value}"] - ) + @snrsinad_at_sensitivity.setter + def snrsinad_at_sensitivity(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"SNR/SINAD at Sensitivity={value}"]) @property def perform_rx_intermod_analysis(self) -> bool: - """Perform Rx Intermod Analysis - Performs a non-linear intermod analysis for the Rx + """Performs a non-linear intermod analysis for the Rx. Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return val == true + return (val == true) @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Rx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Rx Intermod Analysis={value}"]) @property def amplifier_saturation_level(self) -> float: - """Amplifier Saturation Level - Internal Rx Amplifier's Saturation Level + """Internal Rx Amplifier's Saturation Level. Value should be between -200 and 200. """ @@ -217,32 +218,34 @@ def amplifier_saturation_level(self) -> float: return float(val) @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property - def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input - Rx's 1 dB Compression Point - total power > P1dB saturates the receiver + def p1_db_point_ref_input(self) -> float: + """P1-dB Point, Ref. Input. + + Rx's 1 dB Compression Point - total power > P1dB saturates the receiver. Value should be between -1000 and 1000. """ - val = self._get_property("P1-dB Point, Ref. Input ") + val = self._get_property("P1-dB Point, Ref. Input") val = self._convert_from_internal_units(float(val), "Power") return float(val) - @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + @p1_db_point_ref_input.setter + def p1_db_point_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input={value}"]) @property def ip3_ref_input(self) -> float: - """IP3, Ref. Input - Internal Rx Amplifier's 3rd order intercept point + """Internal Rx Amplifier's 3rd order intercept point. Value should be between -1000 and 1000. """ @@ -251,14 +254,15 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def max_intermod_order(self) -> int: - """Max Intermod Order - Internal Rx Amplifier's maximum intermod order to compute + """Internal Rx Amplifier's maximum intermod order to compute. Value should be between 3 and 20. """ @@ -267,4 +271,7 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py index 83601ce93d3..f02e4da0b79 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class SamplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,12 +36,12 @@ def parent(self): @property def table_data(self): - """Table" - "Table consists of 2 columns." - "Min: - Value should be greater than 1. - "Max: - Value should be greater than 1. + """Table. + Table consists of 2 columns. + Min: + Value should be greater than 1.0. + Max: + Value should be greater than 1.0. """ return self._get_table_data() @@ -60,37 +56,38 @@ class SamplingTypeOption(Enum): @property def sampling_type(self) -> SamplingTypeOption: - """Sampling Type - Sampling to apply to this configuration - - """ + """Sampling to apply to this configuration.""" val = self._get_property("Sampling Type") val = self.SamplingTypeOption[val.upper()] return val @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sampling Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Sampling Type={value.value}"]) @property def specify_percentage(self) -> bool: - """Specify Percentage + """Specify Percentage. + Specify the number of channels to simulate via a percentage of the total - available band channels + available band channels. Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return val == true + return (val == true) @specify_percentage.setter def specify_percentage(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Specify Percentage={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Specify Percentage={value}"]) @property def percentage_of_channels(self) -> float: - """Percentage of Channels - Percentage of the Band Channels to simulate + """Percentage of the Band Channels to simulate. Value should be between 1 and 100. """ @@ -98,13 +95,14 @@ def percentage_of_channels(self) -> float: return float(val) @percentage_of_channels.setter - def percentage_of_channels(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percentage of Channels={value}"]) + def percentage_of_channels(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Percentage of Channels={value}"]) @property def max__channelsrangeband(self) -> int: - """Max # Channels/Range/Band - Maximum number of Band Channels to simulate + """Maximum number of Band Channels to simulate. Value should be between 1 and 100000. """ @@ -113,14 +111,13 @@ def max__channelsrangeband(self) -> int: @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Max # Channels/Range/Band={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max # Channels/Range/Band={value}"]) @property def seed(self) -> int: - """Seed - Seed for random channel generator + """Seed for random channel generator. Value should be greater than 0. """ @@ -129,33 +126,33 @@ def seed(self) -> int: @seed.setter def seed(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Seed={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Seed={value}"]) @property def total_tx_channels(self) -> int: - """Total Tx Channels - Total number of transmit channels this configuration is capable of - operating on + """Total Tx Channels. + Total number of transmit channels this configuration is capable of + operating on. """ val = self._get_property("Total Tx Channels") return int(val) @property def total_rx_channels(self) -> int: - """Total Rx Channels - Total number of receive channels this configuration is capable of - operating on + """Total Rx Channels. + Total number of receive channels this configuration is capable of + operating on. """ val = self._get_property("Total Rx Channels") return int(val) @property def warnings(self) -> str: - """Warnings - Warning(s) for this node - - """ + """Warning(s) for this node.""" val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py index ac6fdaf6c9f..890c2bf3460 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class SceneGroupNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -56,25 +52,25 @@ def delete(self): @property def show_relative_coordinates(self) -> bool: - """Show Relative Coordinates + """Show Relative Coordinates. + Show Scene Group position and orientation in parent-node coords (False) - or relative to placement coords (True) + or relative to placement coords (True). Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val == true + return (val == true) @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Relative Coordinates={value}"]) @property def position(self): - """Position - Set position of the Scene Group in parent-node coordinates + """Set position of the Scene Group in parent-node coordinates. Value should be x/y/z, delimited by spaces. """ @@ -83,12 +79,13 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Position={value}"]) @property def relative_position(self): - """Relative Position - Set position of the Scene Group relative to placement coordinates + """Set position of the Scene Group relative to placement coordinates. Value should be x/y/z, delimited by spaces. """ @@ -97,7 +94,9 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -105,9 +104,9 @@ class OrientationModeOption(Enum): @property def orientation_mode(self) -> OrientationModeOption: - """Orientation Mode - Select the convention (order of rotations) for configuring orientation + """Orientation Mode. + Select the convention (order of rotations) for configuring orientation. """ val = self._get_property("Orientation Mode") val = self.OrientationModeOption[val.upper()] @@ -115,12 +114,15 @@ def orientation_mode(self) -> OrientationModeOption: @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation Mode={value.value}"]) @property def orientation(self): - """Orientation - Set orientation of the Scene Group relative to parent-node coordinates + """Orientation. + + Set orientation of the Scene Group relative to parent-node coordinates. Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ @@ -129,12 +131,15 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Orientation={value}"]) @property def relative_orientation(self): - """Relative Orientation - Set orientation of the Scene Group relative to placement coordinates + """Relative Orientation. + + Set orientation of the Scene Group relative to placement coordinates. Value format is determined by 'Orientation Mode', in degrees and delimited by spaces. """ @@ -143,26 +148,30 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Relative Orientation={value}"]) @property def show_axes(self) -> bool: - """Show Axes - Toggle (on/off) display of Scene Group coordinate axes in 3-D window + """Show Axes. + + Toggle (on/off) display of Scene Group coordinate axes in 3-D window. Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val == true + return (val == true) @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Show Axes={value}"]) @property def box_color(self): - """Box Color - Set color of the bounding box of the Scene Group + """Set color of the bounding box of the Scene Group. Color should be in RGB form: #RRGGBB. """ @@ -171,17 +180,19 @@ def box_color(self): @box_color.setter def box_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Box Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Box Color={value}"]) @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py index 2ecbd8ba9aa..cab9ac9566f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class SelectivityTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,58 +48,61 @@ def delete(self): @property def data_source(self): - """Data Source - Identifies tree node serving as data source for plot trace, click link - to find it + """Data Source. + Identifies tree node serving as data source for plot trace, click link + to find it. """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: - """Visible - Toggle (on/off) display of this plot trace + """Toggle (on/off) display of this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: - """Custom Legend - Enable/disable custom legend entry for this plot trace + """Enable/disable custom legend entry for this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: - """Name - Enter name of plot trace as it will appear in legend - - """ + """Enter name of plot trace as it will appear in legend.""" val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -115,22 +114,20 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: - """Style - Specify line style of plot trace - - """ + """Specify line style of plot trace.""" val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: - """Line Width - Specify line width of plot trace + """Specify line width of plot trace. Value should be between 1 and 100. """ @@ -139,12 +136,13 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): - """Line Color - Specify line color of plot trace + """Specify line color of plot trace. Color should be in RGB form: #RRGGBB. """ @@ -153,7 +151,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -174,22 +174,20 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: - """Symbol - Select symbol to mark points along plot trace - - """ + """Select symbol to mark points along plot trace.""" val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: - """Symbol Size - Set size (in points) of symbols marking points along plot trace + """Set size (in points) of symbols marking points along plot trace. Value should be between 1 and 1000. """ @@ -198,12 +196,13 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): - """Symbol Color - Specify color of symbols marking points along plot trace + """Specify color of symbols marking points along plot trace. Color should be in RGB form: #RRGGBB. """ @@ -212,12 +211,13 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: - """Symbol Line Width - Set the width of the line used to draw the symbol + """Set the width of the line used to draw the symbol. Value should be between 1 and 20. """ @@ -226,19 +226,25 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: - """Symbol Filled + """Symbol Filled. + If true, the interior of the symbol is filled - has no effect for some - symbol types + symbol types. Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py index 8553e1f5f7d..0ed36abedf4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class SolutionCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,56 +35,61 @@ def parent(self): @property def enabled(self) -> bool: - """Enabled + """Enabled. + Enable/Disable coupling (A sweep disabled in HFSS/Layout cannot be - enabled in EMIT) + enabled in EMIT). Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: - """Enable Refinement - Enables/disables refined sampling of the frequency domain. + """Enables/disables refined sampling of the frequency domain. Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: - """Adaptive Sampling - Enables/disables adaptive refinement the frequency domain sampling. + """Enables/disables adaptive refinement the frequency domain sampling. Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): - """Refinement Domain - Points to use when refining the frequency domain. - - """ + """Points to use when refining the frequency domain.""" val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py index 0a1142dc3d7..87647899c2f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class SolutionsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,15 +35,19 @@ def parent(self): @property def enabled(self) -> bool: - """Enabled + """Enabled. + Enable/Disable coupling (A setup disabled in HFSS/Layout cannot be - enabled in EMIT) + enabled in EMIT). Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py index f28ef3e2373..9e1c10abd65 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class SpurTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,23 +48,22 @@ def delete(self): @property def channel_frequency(self): - """Channel Frequency - Select band channel frequency to display - - """ + """Select band channel frequency to display.""" val = self._get_property("Channel Frequency") return val @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: - """Transmit Frequency - The actual transmit frequency (i.e., the Channel Frequency plus the Tx - Offset) + """Transmit Frequency. + The actual transmit frequency (i.e., the Channel Frequency plus the Tx + Offset). """ val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") @@ -76,58 +71,61 @@ def transmit_frequency(self) -> float: @property def data_source(self): - """Data Source - Identifies tree node serving as data source for plot trace, click link - to find it + """Data Source. + Identifies tree node serving as data source for plot trace, click link + to find it. """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: - """Visible - Toggle (on/off) display of this plot trace + """Toggle (on/off) display of this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: - """Custom Legend - Enable/disable custom legend entry for this plot trace + """Enable/disable custom legend entry for this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: - """Name - Enter name of plot trace as it will appear in legend - - """ + """Enter name of plot trace as it will appear in legend.""" val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -139,22 +137,20 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: - """Style - Specify line style of plot trace - - """ + """Specify line style of plot trace.""" val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: - """Line Width - Specify line width of plot trace + """Specify line width of plot trace. Value should be between 1 and 100. """ @@ -163,12 +159,13 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): - """Line Color - Specify line color of plot trace + """Specify line color of plot trace. Color should be in RGB form: #RRGGBB. """ @@ -177,7 +174,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -198,22 +197,20 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: - """Symbol - Select symbol to mark points along plot trace - - """ + """Select symbol to mark points along plot trace.""" val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: - """Symbol Size - Set size (in points) of symbols marking points along plot trace + """Set size (in points) of symbols marking points along plot trace. Value should be between 1 and 1000. """ @@ -222,12 +219,13 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): - """Symbol Color - Specify color of symbols marking points along plot trace + """Specify color of symbols marking points along plot trace. Color should be in RGB form: #RRGGBB. """ @@ -236,12 +234,13 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: - """Symbol Line Width - Set the width of the line used to draw the symbol + """Set the width of the line used to draw the symbol. Value should be between 1 and 20. """ @@ -250,19 +249,25 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: - """Symbol Filled + """Symbol Filled. + If true, the interior of the symbol is filled - has no effect for some - symbol types + symbol types. Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/terminator.py index d4e1ab1d167..7f7156c2731 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/terminator.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Terminator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -47,8 +43,7 @@ def delete(self): @property def filename(self) -> str: - """Filename - Name of file defining the Terminator + """Name of file defining the Terminator. Value should be a full file path. """ @@ -57,12 +52,13 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: - """Noise Temperature - System Noise temperature (K) of the component + """System Noise temperature (K) of the component. Value should be between 0 and 1000. """ @@ -70,21 +66,22 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -92,10 +89,10 @@ class TypeOption(Enum): @property def type(self) -> TypeOption: - """Type - Type of terminator model to use. Options include: By File (measured or - simulated) or Parametric + """Type. + Type of terminator model to use. Options include: By File (measured or + simulated) or Parametric. """ val = self._get_property("Type") val = self.TypeOption[val.upper()] @@ -103,7 +100,9 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Type={value.value}"]) class PortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -111,39 +110,39 @@ class PortLocationOption(Enum): @property def port_location(self) -> PortLocationOption: - """Port Location - Defines the orientation of the terminator. - - """ + """Defines the orientation of the terminator.""" val = self._get_property("Port Location") val = self.PortLocationOption[val.upper()] return val @port_location.setter def port_location(self, value: PortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port Location={value.value}"]) @property def vswr(self) -> float: - """VSWR + """VSWR. + The Voltage Standing Wave Ratio (VSWR) due to the impedance mismatch - between the terminator and the connected component (RF System, Antenna, - etc) + between the terminator and the connected component (RF System, Antenna, + etc). - Value should be between 1 and 100. + Value should be between 1.0 and 100. """ val = self._get_property("VSWR") return float(val) @vswr.setter - def vswr(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) + def vswr(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"VSWR={value}"]) @property def warnings(self) -> str: - """Warnings - Warning(s) for this node - - """ + """Warning(s) for this node.""" val = self._get_property("Warnings") return val + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py index ddf4699a654..2921ab0cecf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TestNoiseTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,8 +48,7 @@ def delete(self): @property def input_port(self) -> int: - """Input Port - Specifies input port for the plotted outboard component + """Specifies input port for the plotted outboard component. Value should be greater than 1. """ @@ -62,12 +57,13 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: - """Output Port - Specifies output port for the plotted outboard component + """Specifies output port for the plotted outboard component. Value should be greater than 1. """ @@ -76,62 +72,67 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): - """Data Source - Identifies tree node serving as data source for plot trace, click link - to find it + """Data Source. + Identifies tree node serving as data source for plot trace, click link + to find it. """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: - """Visible - Toggle (on/off) display of this plot trace + """Toggle (on/off) display of this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: - """Custom Legend - Enable/disable custom legend entry for this plot trace + """Enable/disable custom legend entry for this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: - """Name - Enter name of plot trace as it will appear in legend - - """ + """Enter name of plot trace as it will appear in legend.""" val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -143,22 +144,20 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: - """Style - Specify line style of plot trace - - """ + """Specify line style of plot trace.""" val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: - """Line Width - Specify line width of plot trace + """Specify line width of plot trace. Value should be between 1 and 100. """ @@ -167,12 +166,13 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): - """Line Color - Specify line color of plot trace + """Specify line color of plot trace. Color should be in RGB form: #RRGGBB. """ @@ -181,7 +181,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -202,22 +204,20 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: - """Symbol - Select symbol to mark points along plot trace - - """ + """Select symbol to mark points along plot trace.""" val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: - """Symbol Size - Set size (in points) of symbols marking points along plot trace + """Set size (in points) of symbols marking points along plot trace. Value should be between 1 and 1000. """ @@ -226,12 +226,13 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): - """Symbol Color - Specify color of symbols marking points along plot trace + """Specify color of symbols marking points along plot trace. Color should be in RGB form: #RRGGBB. """ @@ -240,12 +241,13 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: - """Symbol Line Width - Set the width of the line used to draw the symbol + """Set the width of the line used to draw the symbol. Value should be between 1 and 20. """ @@ -254,43 +256,48 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: - """Symbol Filled + """Symbol Filled. + If true, the interior of the symbol is filled - has no effect for some - symbol types + symbol types. Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: - """Frequency 1 - 1st test tone frequency + """1st test tone frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Frequency 1") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @frequency_1.setter - def frequency_1(self, value: float | str): + def frequency_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: - """Amplitude 1 - 1st test tone amplitude + """1st test tone amplitude. Value should be between -100 and 200. """ @@ -299,14 +306,15 @@ def amplitude_1(self) -> float: return float(val) @amplitude_1.setter - def amplitude_1(self, value: float | str): + def amplitude_1(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: - """Bandwidth 1 - 1st test tone bandwidth + """1st test tone bandwidth. Value should be greater than 1. """ @@ -315,30 +323,32 @@ def bandwidth_1(self) -> float: return float(val) @bandwidth_1.setter - def bandwidth_1(self, value: float | str): + def bandwidth_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: - """Frequency 2 - 2nd test tone frequency + """2nd test tone frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Frequency 2") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @frequency_2.setter - def frequency_2(self, value: float | str): + def frequency_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: - """Amplitude 2 - 2nd test tone amplitude + """2nd test tone amplitude. Value should be between -100 and 200. """ @@ -347,14 +357,15 @@ def amplitude_2(self) -> float: return float(val) @amplitude_2.setter - def amplitude_2(self, value: float | str): + def amplitude_2(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: - """Bandwidth 2 - 2nd test tone bandwidth + """2nd test tone bandwidth. Value should be greater than 1. """ @@ -363,14 +374,15 @@ def bandwidth_2(self) -> float: return float(val) @bandwidth_2.setter - def bandwidth_2(self, value: float | str): + def bandwidth_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: - """Noise Level - Broadband noise level + """Broadband noise level. Value should be between -200 and 0. """ @@ -378,5 +390,8 @@ def noise_level(self) -> float: return float(val) @noise_level.setter - def noise_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) + def noise_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Level={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py index e54ab2654f2..3dc7c0a53b1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py @@ -1,32 +1,30 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TopLevelSimulation(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False EmitNode.__init__(self, emit_obj, result_id, node_id) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py index 36fc75f89f7..dc1028801a7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TouchstoneCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -50,63 +47,64 @@ def delete(self): @property def enabled(self) -> bool: - """Enabled - Enable/Disable coupling + """Enable/Disable coupling. Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: - """Enable Refinement - Enables/disables refined sampling of the frequency domain. + """Enables/disables refined sampling of the frequency domain. Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: - """Adaptive Sampling - Enables/disables adaptive refinement the frequency domain sampling. + """Enables/disables adaptive refinement the frequency domain sampling. Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): - """Refinement Domain - Points to use when refining the frequency domain. - - """ + """Points to use when refining the frequency domain.""" val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def filename(self) -> str: - """Filename - Name of file with coupling data. + """Name of file with coupling data. Value should be a full file path. """ @@ -115,54 +113,52 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def savant_matched_coupling_file(self) -> str: - """Savant Matched Coupling File - Coupling data generated by Savant and exported as a matched file - - """ + """Coupling data generated by Savant and exported as a matched file.""" val = self._get_property("Savant Matched Coupling File") return val @property def enable_em_isolation(self) -> bool: - """Enable EM Isolation - Enables/disables EM isolation + """Enables/disables EM isolation. Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return val == true + return (val == true) @enable_em_isolation.setter def enable_em_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable EM Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable EM Isolation={value}"]) @property def port_antenna_assignment(self): - """Port-Antenna Assignment - Maps each port in the coupling file to an antenna in the project - - "A list of values." - """ + """Maps each port in the coupling file to an antenna in the project.""" val = self._get_property("Port-Antenna Assignment") return val @port_antenna_assignment.setter def port_antenna_assignment(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port-Antenna Assignment={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port-Antenna Assignment={value}"]) @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch.py index e5eb106983d..e0a06aba11d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TR_Switch(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -47,8 +43,7 @@ def delete(self): @property def filename(self) -> str: - """Filename - Name of file defining the outboard component + """Name of file defining the outboard component. Value should be a full file path. """ @@ -57,12 +52,13 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Filename={value}"]) @property def noise_temperature(self) -> float: - """Noise Temperature - System Noise temperature (K) of the component + """System Noise temperature (K) of the component. Value should be between 0 and 1000. """ @@ -70,21 +66,22 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) + def noise_temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Temperature={value}"]) @property def notes(self) -> str: - """Notes - Expand to view/edit notes stored with the project - - """ + """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Notes={value}"]) class TxPortOption(Enum): PORT_1 = "Port 1" @@ -92,17 +89,16 @@ class TxPortOption(Enum): @property def tx_port(self) -> TxPortOption: - """Tx Port - Specifies which port on the TR Switch is part of the Tx path. - - """ + """Specifies which port on the TR Switch is part of the Tx path.""" val = self._get_property("Tx Port") val = self.TxPortOption[val.upper()] return val @tx_port.setter def tx_port(self, value: TxPortOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Port={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Port={value.value}"]) class CommonPortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -110,24 +106,20 @@ class CommonPortLocationOption(Enum): @property def common_port_location(self) -> CommonPortLocationOption: - """Common Port Location - Defines the orientation of the tr switch. - - """ + """Defines the orientation of the tr switch.""" val = self._get_property("Common Port Location") val = self.CommonPortLocationOption[val.upper()] return val @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Common Port Location={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Common Port Location={value.value}"]) @property def insertion_loss(self) -> float: - """Insertion Loss - TR Switch in-band loss in forward direction. + """TR Switch in-band loss in forward direction. Value should be between 0 and 100. """ @@ -135,28 +127,32 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) + def insertion_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Insertion Loss={value}"]) @property def finite_isolation(self) -> bool: - """Finite Isolation + """Finite Isolation. + Use a finite isolation. If disabled, the tr switch model is ideal - (infinite isolation). + (infinite isolation). Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return val == true + return (val == true) @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Isolation={value}"]) @property def isolation(self) -> float: - """Isolation - TR Switch reverse isolation (i.e., loss between the Tx/Rx ports). + """TR Switch reverse isolation (i.e., loss between the Tx/Rx ports). Value should be between 0 and 100. """ @@ -164,28 +160,32 @@ def isolation(self) -> float: return float(val) @isolation.setter - def isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) + def isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: - """Finite Bandwidth + """Finite Bandwidth. + Use a finite bandwidth. If disabled, the tr switch model is ideal - (infinite bandwidth). + (infinite bandwidth). Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return val == true + return (val == true) @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: - """Out-of-band Attenuation - Out-of-band loss (attenuation) + """Out-of-band loss (attenuation). Value should be between 0 and 200. """ @@ -193,69 +193,76 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: - """Lower Stop Band - Lower stop band frequency + """Lower stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @lower_stop_band.setter - def lower_stop_band(self, value: float | str): + def lower_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: - """Lower Cutoff - Lower cutoff frequency + """Lower cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Lower Cutoff") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @lower_cutoff.setter - def lower_cutoff(self, value: float | str): + def lower_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: - """Higher Cutoff - Higher cutoff frequency + """Higher cutoff frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Cutoff") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @higher_cutoff.setter - def higher_cutoff(self, value: float | str): + def higher_cutoff(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: - """Higher Stop Band - Higher stop band frequency + """Higher stop band frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @higher_stop_band.setter - def higher_stop_band(self, value: float | str): + def higher_stop_band(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Higher Stop Band={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py index f2b9ac91d4b..d63c8951e29 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TRSwitchTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,8 +48,7 @@ def delete(self): @property def input_port(self) -> int: - """Input Port - Specifies input port for the plotted outboard component + """Specifies input port for the plotted outboard component. Value should be greater than 1. """ @@ -62,12 +57,13 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: - """Output Port - Specifies output port for the plotted outboard component + """Specifies output port for the plotted outboard component. Value should be greater than 1. """ @@ -76,62 +72,67 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): - """Data Source - Identifies tree node serving as data source for plot trace, click link - to find it + """Data Source. + Identifies tree node serving as data source for plot trace, click link + to find it. """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: - """Visible - Toggle (on/off) display of this plot trace + """Toggle (on/off) display of this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: - """Custom Legend - Enable/disable custom legend entry for this plot trace + """Enable/disable custom legend entry for this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: - """Name - Enter name of plot trace as it will appear in legend - - """ + """Enter name of plot trace as it will appear in legend.""" val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -143,22 +144,20 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: - """Style - Specify line style of plot trace - - """ + """Specify line style of plot trace.""" val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: - """Line Width - Specify line width of plot trace + """Specify line width of plot trace. Value should be between 1 and 100. """ @@ -167,12 +166,13 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): - """Line Color - Specify line color of plot trace + """Specify line color of plot trace. Color should be in RGB form: #RRGGBB. """ @@ -181,7 +181,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -202,22 +204,20 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: - """Symbol - Select symbol to mark points along plot trace - - """ + """Select symbol to mark points along plot trace.""" val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: - """Symbol Size - Set size (in points) of symbols marking points along plot trace + """Set size (in points) of symbols marking points along plot trace. Value should be between 1 and 1000. """ @@ -226,12 +226,13 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): - """Symbol Color - Specify color of symbols marking points along plot trace + """Specify color of symbols marking points along plot trace. Color should be in RGB form: #RRGGBB. """ @@ -240,12 +241,13 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: - """Symbol Line Width - Set the width of the line used to draw the symbol + """Set the width of the line used to draw the symbol. Value should be between 1 and 20. """ @@ -254,19 +256,25 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: - """Symbol Filled + """Symbol Filled. + If true, the interior of the symbol is filled - has no effect for some - symbol types + symbol types. Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py index 9c2bcce1a83..fe49372333b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TunableTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,8 +48,7 @@ def delete(self): @property def input_port(self) -> int: - """Input Port - Specifies input port for the plotted outboard component + """Specifies input port for the plotted outboard component. Value should be greater than 1. """ @@ -62,12 +57,13 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: - """Output Port - Specifies output port for the plotted outboard component + """Specifies output port for the plotted outboard component. Value should be greater than 1. """ @@ -76,77 +72,81 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def frequency(self) -> float: - """Frequency - Tunable filter center frequency - - """ + """Tunable filter center frequency.""" val = self._get_property("Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @frequency.setter - def frequency(self, value: float | str): + def frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency={value}"]) @property def data_source(self): - """Data Source - Identifies tree node serving as data source for plot trace, click link - to find it + """Data Source. + Identifies tree node serving as data source for plot trace, click link + to find it. """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: - """Visible - Toggle (on/off) display of this plot trace + """Toggle (on/off) display of this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: - """Custom Legend - Enable/disable custom legend entry for this plot trace + """Enable/disable custom legend entry for this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: - """Name - Enter name of plot trace as it will appear in legend - - """ + """Enter name of plot trace as it will appear in legend.""" val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -158,22 +158,20 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: - """Style - Specify line style of plot trace - - """ + """Specify line style of plot trace.""" val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: - """Line Width - Specify line width of plot trace + """Specify line width of plot trace. Value should be between 1 and 100. """ @@ -182,12 +180,13 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): - """Line Color - Specify line color of plot trace + """Specify line color of plot trace. Color should be in RGB form: #RRGGBB. """ @@ -196,7 +195,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -217,22 +218,20 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: - """Symbol - Select symbol to mark points along plot trace - - """ + """Select symbol to mark points along plot trace.""" val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: - """Symbol Size - Set size (in points) of symbols marking points along plot trace + """Set size (in points) of symbols marking points along plot trace. Value should be between 1 and 1000. """ @@ -241,12 +240,13 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): - """Symbol Color - Specify color of symbols marking points along plot trace + """Specify color of symbols marking points along plot trace. Color should be in RGB form: #RRGGBB. """ @@ -255,12 +255,13 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: - """Symbol Line Width - Set the width of the line used to draw the symbol + """Set the width of the line used to draw the symbol. Value should be between 1 and 20. """ @@ -269,19 +270,25 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: - """Symbol Filled + """Symbol Filled. + If true, the interior of the symbol is filled - has no effect for some - symbol types + symbol types. Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py index c1bbc47eeec..a554f564578 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,89 +48,88 @@ def delete(self): @property def enabled(self) -> bool: - """Enabled - Enable/Disable coupling + """Enable/Disable coupling. Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: - """Antenna A - First antenna of the pair to apply the coupling values to - - """ + """First antenna of the pair to apply the coupling values to.""" val = self._get_property("Antenna A") return val @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: - """Antenna B - Second antenna of the pair to apply the coupling values to - - """ + """Second antenna of the pair to apply the coupling values to.""" val = self._get_property("Antenna B") return val @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: - """Enable Refinement - Enables/disables refined sampling of the frequency domain. + """Enables/disables refined sampling of the frequency domain. Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: - """Adaptive Sampling - Enables/disables adaptive refinement the frequency domain sampling. + """Enables/disables adaptive refinement the frequency domain sampling. Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): - """Refinement Domain - Points to use when refining the frequency domain. - - """ + """Points to use when refining the frequency domain.""" val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) @property def ground_reflection_coeff(self) -> float: - """Ground Reflection Coeff. - The ground reflection coefficient + """The ground reflection coefficient. Value should be between -100 and 100. """ @@ -142,13 +137,16 @@ def ground_reflection_coeff(self) -> float: return float(val) @ground_reflection_coeff.setter - def ground_reflection_coeff(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ground Reflection Coeff.={value}"]) + def ground_reflection_coeff(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Ground Reflection Coeff.={value}"]) @property def pointspeak(self) -> int: - """Points/Peak - Number of points used to model each peak in frequency vs loss curve + """Points/Peak. + + Number of points used to model each peak in frequency vs loss curve. Value should be between 3 and 100. """ @@ -157,13 +155,16 @@ def pointspeak(self) -> int: @pointspeak.setter def pointspeak(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Points/Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Points/Peak={value}"]) @property def custom_fading_margin(self) -> float: - """Custom Fading Margin + """Custom Fading Margin. + Sets a custom fading margin to be applied to all coupling defined by - this node + this node. Value should be between 0 and 100. """ @@ -171,14 +172,17 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: - """Polarization Mismatch + """Polarization Mismatch. + Sets a margin for polarization mismatch to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -186,14 +190,17 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: - """Pointing Error Loss + """Pointing Error Loss. + Sets a margin for pointing error loss to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -201,8 +208,10 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -212,66 +221,71 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: - """Fading Type - Specify the type of fading to include - - """ + """Specify the type of fading to include.""" val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: - """Fading Availability + """Fading Availability. + The probability that the propagation loss in dB is below its median - value plus the margin + value plus the margin. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Fading Availability") return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: - """Std Deviation - Standard deviation modeling the random amount of shadowing loss + """Standard deviation modeling the random amount of shadowing loss. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Std Deviation") return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: - """Include Rain Attenuation - Adds a margin for rain attenuation to the computed coupling + """Adds a margin for rain attenuation to the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: - """Rain Availability + """Rain Availability. + Percentage of time attenuation due to range is < computed margin (range - from 99-99.999%) + from 99-99.999%). Value should be between 99 and 99.999. """ @@ -279,95 +293,104 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: - """Rain Rate - Rain rate (mm/hr) exceeded for 0.01% of the time + """Rain rate (mm/hr) exceeded for 0.01% of the time. - Value should be between 0 and 1000. + Value should be between 0.0 and 1000.0. """ val = self._get_property("Rain Rate") return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: - """Polarization Tilt Angle + """Polarization Tilt Angle. + Polarization tilt angle of the transmitted signal relative to the - horizontal + horizontal. - Value should be between 0 and 180. + Value should be between 0.0 and 180.0. """ val = self._get_property("Polarization Tilt Angle") return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: - """Include Atmospheric Absorption + """Include Atmospheric Absorption. + Adds a margin for atmospheric absorption due to oxygen/water vapor to - the computed coupling + the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: - """Temperature - Air temperature in degrees Celsius + """Air temperature in degrees Celsius. - Value should be between -273 and 100. + Value should be between -273.0 and 100.0. """ val = self._get_property("Temperature") return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: - """Total Air Pressure - Total air pressure + """Total air pressure. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Total Air Pressure") return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: - """Water Vapor Concentration - Water vapor concentration + """Water vapor concentration. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Water Vapor Concentration") return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py index 38ce5bb542b..3a6197fbba8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TwoToneTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,8 +48,7 @@ def delete(self): @property def input_port(self) -> int: - """Input Port - Specifies input port for the plotted outboard component + """Specifies input port for the plotted outboard component. Value should be greater than 1. """ @@ -62,12 +57,13 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Input Port={value}"]) @property def output_port(self) -> int: - """Output Port - Specifies output port for the plotted outboard component + """Specifies output port for the plotted outboard component. Value should be greater than 1. """ @@ -76,62 +72,67 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Port={value}"]) @property def data_source(self): - """Data Source - Identifies tree node serving as data source for plot trace, click link - to find it + """Data Source. + Identifies tree node serving as data source for plot trace, click link + to find it. """ val = self._get_property("Data Source") return val @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Source={value}"]) @property def visible(self) -> bool: - """Visible - Toggle (on/off) display of this plot trace + """Toggle (on/off) display of this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return val == true + return (val == true) @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Visible={value}"]) @property def custom_legend(self) -> bool: - """Custom Legend - Enable/disable custom legend entry for this plot trace + """Enable/disable custom legend entry for this plot trace. Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return val == true + return (val == true) @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Legend={value}"]) @property def name(self) -> str: - """Name - Enter name of plot trace as it will appear in legend - - """ + """Enter name of plot trace as it will appear in legend.""" val = self._get_property("Name") return val @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -143,22 +144,20 @@ class StyleOption(Enum): @property def style(self) -> StyleOption: - """Style - Specify line style of plot trace - - """ + """Specify line style of plot trace.""" val = self._get_property("Style") val = self.StyleOption[val.upper()] return val @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Style={value.value}"]) @property def line_width(self) -> int: - """Line Width - Specify line width of plot trace + """Specify line width of plot trace. Value should be between 1 and 100. """ @@ -167,12 +166,13 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Width={value}"]) @property def line_color(self): - """Line Color - Specify line color of plot trace + """Specify line color of plot trace. Color should be in RGB form: #RRGGBB. """ @@ -181,7 +181,9 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -202,22 +204,20 @@ class SymbolOption(Enum): @property def symbol(self) -> SymbolOption: - """Symbol - Select symbol to mark points along plot trace - - """ + """Select symbol to mark points along plot trace.""" val = self._get_property("Symbol") val = self.SymbolOption[val.upper()] return val @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: - """Symbol Size - Set size (in points) of symbols marking points along plot trace + """Set size (in points) of symbols marking points along plot trace. Value should be between 1 and 1000. """ @@ -226,12 +226,13 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Size={value}"]) @property def symbol_color(self): - """Symbol Color - Specify color of symbols marking points along plot trace + """Specify color of symbols marking points along plot trace. Color should be in RGB form: #RRGGBB. """ @@ -240,12 +241,13 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: - """Symbol Line Width - Set the width of the line used to draw the symbol + """Set the width of the line used to draw the symbol. Value should be between 1 and 20. """ @@ -254,43 +256,48 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: - """Symbol Filled + """Symbol Filled. + If true, the interior of the symbol is filled - has no effect for some - symbol types + symbol types. Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return val == true + return (val == true) @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: - """Frequency 1 - 1st test tone frequency + """1st test tone frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Frequency 1") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @frequency_1.setter - def frequency_1(self, value: float | str): + def frequency_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: - """Amplitude 1 - 1st test tone amplitude + """1st test tone amplitude. Value should be between -100 and 200. """ @@ -299,14 +306,15 @@ def amplitude_1(self) -> float: return float(val) @amplitude_1.setter - def amplitude_1(self, value: float | str): + def amplitude_1(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: - """Bandwidth 1 - 1st test tone bandwidth + """1st test tone bandwidth. Value should be greater than 1. """ @@ -315,30 +323,32 @@ def bandwidth_1(self) -> float: return float(val) @bandwidth_1.setter - def bandwidth_1(self, value: float | str): + def bandwidth_1(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: - """Frequency 2 - 2nd test tone frequency + """2nd test tone frequency. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Frequency 2") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @frequency_2.setter - def frequency_2(self, value: float | str): + def frequency_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: - """Amplitude 2 - 2nd test tone amplitude + """2nd test tone amplitude. Value should be between -100 and 200. """ @@ -347,14 +357,15 @@ def amplitude_2(self) -> float: return float(val) @amplitude_2.setter - def amplitude_2(self, value: float | str): + def amplitude_2(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: - """Bandwidth 2 - 2nd test tone bandwidth + """2nd test tone bandwidth. Value should be greater than 1. """ @@ -363,14 +374,15 @@ def bandwidth_2(self) -> float: return float(val) @bandwidth_2.setter - def bandwidth_2(self, value: float | str): + def bandwidth_2(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: - """Noise Level - Broadband noise level + """Broadband noise level. Value should be between -200 and 0. """ @@ -378,5 +390,8 @@ def noise_level(self) -> float: return float(val) @noise_level.setter - def noise_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) + def noise_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Level={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py index 986abbfbb87..45aaca77b44 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TxBbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -48,12 +44,12 @@ def delete(self): @property def table_data(self): - """Tx Broadband Noise Profile Table" - "Table consists of 2 columns." - "Frequency (MHz): + """Tx Broadband Noise Profile Table. + Table consists of 2 columns. + Frequency (MHz): Value should be a mathematical expression. - "Amplitude (dBm/Hz): - Value should be between -200 and 150. + Amplitude (dBm/Hz): + Value should be between -200.0 and 150.0. """ return self._get_table_data() @@ -64,7 +60,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -78,31 +74,32 @@ class NoiseBehaviorOption(Enum): @property def noise_behavior(self) -> NoiseBehaviorOption: - """Noise Behavior - Specifies the behavior of the parametric noise profile - - """ + """Specifies the behavior of the parametric noise profile.""" val = self._get_property("Noise Behavior") val = self.NoiseBehaviorOption[val.upper()] return val @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Behavior={value.value}"]) @property def use_log_linear_interpolation(self) -> bool: - """Use Log-Linear Interpolation + """Use Log-Linear Interpolation. + If true, linear interpolation in the log domain is used. If false, - linear interpolation in the linear domain is used. + linear interpolation in the linear domain is used. Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return val == true + return (val == true) @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Log-Linear Interpolation={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py index 5b0f94761b9..ac0309aa384 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TxHarmonicNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -49,7 +45,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -61,16 +57,14 @@ class HarmonicTableUnitsOption(Enum): @property def harmonic_table_units(self) -> HarmonicTableUnitsOption: - """Harmonic Table Units - Specifies the units for the Harmonics - - """ + """Specifies the units for the Harmonics.""" val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val.upper()] return val @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py index 21e1fc9cb59..417ea4d2cce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -46,8 +43,7 @@ def delete(self): @property def file(self) -> str: - """File - Name of the measurement source + """Name of the measurement source. Value should be a full file path. """ @@ -56,8 +52,7 @@ def file(self) -> str: @property def source_file(self) -> str: - """Source File - Name of the measurement source + """Name of the measurement source. Value should be a full file path. """ @@ -66,81 +61,81 @@ def source_file(self) -> str: @property def transmit_frequency(self) -> float: - """Transmit Frequency - Channel associated with the measurement file - - """ + """Channel associated with the measurement file.""" val = self._get_property("Transmit Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @property def use_ams_limits(self) -> bool: - """Use AMS Limits - Allow AMS to define the frequency limits for the measurements + """Allow AMS to define the frequency limits for the measurements. Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return val == true + return (val == true) @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: - """Start Frequency - Starting frequency for the measurement sweep + """Starting frequency for the measurement sweep. - Value should be greater than 1e+06. + Value should be greater than 1e6. """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: - """Stop Frequency - Stopping frequency for the measurement sweep + """Stopping frequency for the measurement sweep. - Value should be less than 6e+09. + Value should be less than 6e9. """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def exclude_harmonics_below_noise(self) -> bool: - """Exclude Harmonics Below Noise - Include/Exclude Harmonics below the noise + """Include/Exclude Harmonics below the noise. Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return val == true + return (val == true) @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Exclude Harmonics Below Noise={value}"]) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py index 347faed5fbd..d34873d9388 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TxNbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -49,7 +45,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -61,31 +57,28 @@ class NarrowbandBehaviorOption(Enum): @property def narrowband_behavior(self) -> NarrowbandBehaviorOption: - """Narrowband Behavior - Specifies the behavior of the parametric narrowband emissions mask - - """ + """Specifies the behavior of the parametric narrowband emissions mask.""" val = self._get_property("Narrowband Behavior") val = self.NarrowbandBehaviorOption[val.upper()] return val @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Narrowband Behavior={value.value}"]) @property def measurement_frequency(self) -> float: - """Measurement Frequency - Measurement frequency for the absolute freq/amp pairs. - - """ + """Measurement frequency for the absolute freq/amp pairs.""" val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @measurement_frequency.setter - def measurement_frequency(self, value: float | str): + def measurement_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Measurement Frequency={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py index 8a8426ae9cb..efc51c291d9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py @@ -1,31 +1,28 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TxSpectralProfEmitterNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -39,7 +36,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -47,37 +44,36 @@ def enabled(self, value: bool): @property def output_voltage_peak(self) -> float: - """Output Voltage Peak - Output High Voltage Level: maximum voltage of the digital signal - - """ + """Output High Voltage Level: maximum voltage of the digital signal.""" val = self._get_property("Output Voltage Peak") val = self._convert_from_internal_units(float(val), "Voltage") return float(val) @output_voltage_peak.setter - def output_voltage_peak(self, value: float | str): + def output_voltage_peak(self, value : float|str): value = self._convert_to_internal_units(value, "Voltage") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Voltage Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Output Voltage Peak={value}"]) @property def include_phase_noise(self) -> bool: - """Include Phase Noise - Include oscillator phase noise in Tx spectral profile + """Include oscillator phase noise in Tx spectral profile. Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val == true + return (val == true) @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: - """Tx Broadband Noise - Transmitters broadband noise level + """Transmitters broadband noise level. Value should be less than 1000. """ @@ -85,29 +81,29 @@ def tx_broadband_noise(self) -> float: return float(val) @tx_broadband_noise.setter - def tx_broadband_noise(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Broadband Noise={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: - """Perform Tx Intermod Analysis - Performs a non-linear intermod analysis for the Tx + """Performs a non-linear intermod analysis for the Tx. Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val == true + return (val == true) @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Tx Intermod Analysis={value}"]) @property def internal_amp_gain(self) -> float: - """Internal Amp Gain - Internal Tx Amplifier's Gain + """Internal Tx Amplifier's Gain. Value should be between -1000 and 1000. """ @@ -115,13 +111,14 @@ def internal_amp_gain(self) -> float: return float(val) @internal_amp_gain.setter - def internal_amp_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: - """Noise Figure - Internal Tx Amplifier's noise figure + """Internal Tx Amplifier's noise figure. Value should be between 0 and 50. """ @@ -129,13 +126,14 @@ def noise_figure(self) -> float: return float(val) @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: - """Amplifier Saturation Level - Internal Tx Amplifier's Saturation Level + """Internal Tx Amplifier's Saturation Level. Value should be between -200 and 200. """ @@ -144,17 +142,18 @@ def amplifier_saturation_level(self) -> float: return float(val) @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property - def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + def p1_db_point_ref_input(self) -> float: + """P1-dB Point, Ref. Input . + Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB - saturates the internal Tx amplifier + saturates the internal Tx amplifier. Value should be between -200 and 200. """ @@ -162,15 +161,16 @@ def p1_db_point_ref_input_(self) -> float: val = self._convert_from_internal_units(float(val), "Power") return float(val) - @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + @p1_db_point_ref_input.setter + def p1_db_point_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: - """IP3, Ref. Input - Internal Tx Amplifier's 3rd order intercept point + """Internal Tx Amplifier's 3rd order intercept point. Value should be between -200 and 200. """ @@ -179,14 +179,15 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: - """Reverse Isolation - Internal Tx Amplifier's Reverse Isolation + """Internal Tx Amplifier's Reverse Isolation. Value should be between -200 and 200. """ @@ -194,13 +195,14 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: - """Max Intermod Order - Internal Tx Amplifier's maximum intermod order to compute + """Internal Tx Amplifier's maximum intermod order to compute. Value should be between 3 and 20. """ @@ -209,4 +211,7 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py index 7489fedbb53..7165138f0d0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TxSpectralProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +37,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -53,17 +49,16 @@ class SpectrumTypeOption(Enum): @property def spectrum_type(self) -> SpectrumTypeOption: - """Spectrum Type - Specifies EMI Margins to calculate - - """ + """Specifies EMI Margins to calculate.""" val = self._get_property("Spectrum Type") val = self.SpectrumTypeOption[val.upper()] return val @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spectrum Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spectrum Type={value.value}"]) class TxPowerOption(Enum): PEAK_POWER = "Peak Power" @@ -71,22 +66,20 @@ class TxPowerOption(Enum): @property def tx_power(self) -> TxPowerOption: - """Tx Power - Method used to specify the power - - """ + """Method used to specify the power.""" val = self._get_property("Tx Power") val = self.TxPowerOption[val.upper()] return val @tx_power.setter def tx_power(self, value: TxPowerOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Power={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Power={value.value}"]) @property def peak_power(self) -> float: - """Peak Power - Tx's carrier frequency peak power + """Tx's carrier frequency peak power. Value should be between -1000 and 1000. """ @@ -95,14 +88,15 @@ def peak_power(self) -> float: return float(val) @peak_power.setter - def peak_power(self, value: float | str): + def peak_power(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Peak Power={value}"]) @property def average_power(self) -> float: - """Average Power - Tx's fundamental level specified by average power + """Tx's fundamental level specified by average power. Value should be between -1000 and 1000. """ @@ -111,28 +105,30 @@ def average_power(self) -> float: return float(val) @average_power.setter - def average_power(self, value: float | str): + def average_power(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Average Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Average Power={value}"]) @property def include_phase_noise(self) -> bool: - """Include Phase Noise - Include oscillator phase noise in Tx spectral profile + """Include oscillator phase noise in Tx spectral profile. Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return val == true + return (val == true) @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: - """Tx Broadband Noise - Transmitters broadband noise level + """Transmitters broadband noise level. Value should be less than 1000. """ @@ -140,8 +136,10 @@ def tx_broadband_noise(self) -> float: return float(val) @tx_broadband_noise.setter - def tx_broadband_noise(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Tx Broadband Noise={value}"]) class HarmonicTaperOption(Enum): CONSTANT = "Constant" @@ -151,22 +149,20 @@ class HarmonicTaperOption(Enum): @property def harmonic_taper(self) -> HarmonicTaperOption: - """Harmonic Taper - Taper type used to set amplitude of harmonics - - """ + """Taper type used to set amplitude of harmonics.""" val = self._get_property("Harmonic Taper") val = self.HarmonicTaperOption[val.upper()] return val @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Taper={value.value}"]) @property def harmonic_amplitude(self) -> float: - """Harmonic Amplitude - Amplitude (relative to the carrier power) of harmonics + """Amplitude (relative to the carrier power) of harmonics. Value should be between -1000 and 0. """ @@ -174,13 +170,14 @@ def harmonic_amplitude(self) -> float: return float(val) @harmonic_amplitude.setter - def harmonic_amplitude(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Amplitude={value}"]) + def harmonic_amplitude(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Amplitude={value}"]) @property def harmonic_slope(self) -> float: - """Harmonic Slope - Rate of decrease for harmonics' amplitudes (dB/decade) + """Rate of decrease for harmonics' amplitudes (dB/decade). Value should be between -1000 and 0. """ @@ -188,13 +185,14 @@ def harmonic_slope(self) -> float: return float(val) @harmonic_slope.setter - def harmonic_slope(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Slope={value}"]) + def harmonic_slope(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Slope={value}"]) @property def harmonic_intercept(self) -> float: - """Harmonic Intercept - Amplitude intercept at the fundamental (dBc) + """Amplitude intercept at the fundamental (dBc). Value should be between -1000 and 0. """ @@ -202,30 +200,32 @@ def harmonic_intercept(self) -> float: return float(val) @harmonic_intercept.setter - def harmonic_intercept(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Intercept={value}"]) + def harmonic_intercept(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Harmonic Intercept={value}"]) @property def enable_harmonic_bw_expansion(self) -> bool: - """Enable Harmonic BW Expansion + """Enable Harmonic BW Expansion. + If (True), bandwidth of harmonics increases proportional to the harmonic - number + number. Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return val == true + return (val == true) @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Enable Harmonic BW Expansion={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Harmonic BW Expansion={value}"]) @property def number_of_harmonics(self) -> int: - """Number of Harmonics - Maximum number of harmonics modeled + """Maximum number of harmonics modeled. Value should be between 1 and 1000. """ @@ -234,12 +234,13 @@ def number_of_harmonics(self) -> int: @number_of_harmonics.setter def number_of_harmonics(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Harmonics={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Number of Harmonics={value}"]) @property def second_harmonic_level(self) -> float: - """Second Harmonic Level - Amplitude (relative to the carrier power) of the 2nd harmonic + """Amplitude (relative to the carrier power) of the 2nd harmonic. Value should be between -1000 and 0. """ @@ -247,13 +248,14 @@ def second_harmonic_level(self) -> float: return float(val) @second_harmonic_level.setter - def second_harmonic_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Second Harmonic Level={value}"]) + def second_harmonic_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Second Harmonic Level={value}"]) @property def third_harmonic_level(self) -> float: - """Third Harmonic Level - Amplitude (relative to the carrier power) of the 3rd harmonic + """Amplitude (relative to the carrier power) of the 3rd harmonic. Value should be between -1000 and 0. """ @@ -261,13 +263,16 @@ def third_harmonic_level(self) -> float: return float(val) @third_harmonic_level.setter - def third_harmonic_level(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Third Harmonic Level={value}"]) + def third_harmonic_level(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Third Harmonic Level={value}"]) @property def other_harmonic_levels(self) -> float: - """Other Harmonic Levels - Amplitude (relative to the carrier power) of the higher order harmonics + """Other Harmonic Levels. + + Amplitude (relative to the carrier power) of the higher order harmonics. Value should be between -1000 and 0. """ @@ -275,29 +280,29 @@ def other_harmonic_levels(self) -> float: return float(val) @other_harmonic_levels.setter - def other_harmonic_levels(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Other Harmonic Levels={value}"]) + def other_harmonic_levels(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Other Harmonic Levels={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: - """Perform Tx Intermod Analysis - Performs a non-linear intermod analysis for the Tx + """Performs a non-linear intermod analysis for the Tx. Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return val == true + return (val == true) @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Perform Tx Intermod Analysis={value}"]) @property def internal_amp_gain(self) -> float: - """Internal Amp Gain - Internal Tx Amplifier's Gain + """Internal Tx Amplifier's Gain. Value should be between -1000 and 1000. """ @@ -305,13 +310,14 @@ def internal_amp_gain(self) -> float: return float(val) @internal_amp_gain.setter - def internal_amp_gain(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: - """Noise Figure - Internal Tx Amplifier's noise figure + """Internal Tx Amplifier's noise figure. Value should be between 0 and 50. """ @@ -319,13 +325,14 @@ def noise_figure(self) -> float: return float(val) @noise_figure.setter - def noise_figure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) + def noise_figure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: - """Amplifier Saturation Level - Internal Tx Amplifier's Saturation Level + """Internal Tx Amplifier's Saturation Level. Value should be between -200 and 200. """ @@ -334,17 +341,18 @@ def amplifier_saturation_level(self) -> float: return float(val) @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value: float | str): + def amplifier_saturation_level(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Amplifier Saturation Level={value}"]) @property - def p1_db_point_ref_input_(self) -> float: - """P1-dB Point, Ref. Input + def p1_db_point_ref_input(self) -> float: + """P1-dB Point, Ref. Input . + Internal Tx Amplifier's 1 dB Compression Point - total power > P1dB - saturates the internal Tx amplifier + saturates the internal Tx amplifier. Value should be between -200 and 200. """ @@ -352,15 +360,16 @@ def p1_db_point_ref_input_(self) -> float: val = self._convert_from_internal_units(float(val), "Power") return float(val) - @p1_db_point_ref_input_.setter - def p1_db_point_ref_input_(self, value: float | str): + @p1_db_point_ref_input.setter + def p1_db_point_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: - """IP3, Ref. Input - Internal Tx Amplifier's 3rd order intercept point + """Internal Tx Amplifier's 3rd order intercept point. Value should be between -200 and 200. """ @@ -369,14 +378,15 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value: float | str): + def ip3_ref_input(self, value : float|str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: - """Reverse Isolation - Internal Tx Amplifier's Reverse Isolation + """Internal Tx Amplifier's Reverse Isolation. Value should be between -200 and 200. """ @@ -384,13 +394,14 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: - """Max Intermod Order - Internal Tx Amplifier's maximum intermod order to compute + """Internal Tx Amplifier's maximum intermod order to compute. Value should be between 3 and 20. """ @@ -399,4 +410,7 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Intermod Order={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py index ccf54f44181..2b78a4a9190 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class TxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,7 +36,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name, "Csv") + return self._import(file_name,"Csv") def delete(self): """Delete this node""" @@ -48,14 +44,14 @@ def delete(self): @property def table_data(self): - """Table" - "Table consists of 3 columns." - "Frequency (MHz): + """Table. + Table consists of 3 columns. + Frequency (MHz): Value should be a mathematical expression. - "Bandwidth: - Value should be greater than 1. - "Power: - Value should be between -200 and 150. + Bandwidth: + Value should be greater than 1.0. + Power: + Value should be between -200.0 and 150.0. """ return self._get_table_data() @@ -66,7 +62,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -78,14 +74,14 @@ class SpurTableUnitsOption(Enum): @property def spur_table_units(self) -> SpurTableUnitsOption: - """Spur Table Units - Specifies the units for the Spurs - - """ + """Specifies the units for the Spurs.""" val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spur Table Units={value.value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py index ac333cf11ba..01c0ec4a911 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class WalfischCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,84 +48,84 @@ def delete(self): @property def enabled(self) -> bool: - """Enabled - Enable/Disable coupling + """Enable/Disable coupling. Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return val == true + return (val == true) @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: - """Base Antenna - First antenna of the pair to apply the coupling values to - - """ + """First antenna of the pair to apply the coupling values to.""" val = self._get_property("Base Antenna") return val @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: - """Mobile Antenna - Second antenna of the pair to apply the coupling values to - - """ + """Second antenna of the pair to apply the coupling values to.""" val = self._get_property("Mobile Antenna") return val @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: - """Enable Refinement - Enables/disables refined sampling of the frequency domain. + """Enables/disables refined sampling of the frequency domain. Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return val == true + return (val == true) @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: - """Adaptive Sampling - Enables/disables adaptive refinement the frequency domain sampling. + """Enables/disables adaptive refinement the frequency domain sampling. Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return val == true + return (val == true) @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): - """Refinement Domain - Points to use when refining the frequency domain. - - """ + """Points to use when refining the frequency domain.""" val = self._get_property("Refinement Domain") return val @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Refinement Domain={value}"]) class PathLossTypeOption(Enum): LOS_URBAN_CANYON = "LOS (Urban Canyon)" @@ -137,17 +133,16 @@ class PathLossTypeOption(Enum): @property def path_loss_type(self) -> PathLossTypeOption: - """Path Loss Type - Specify LOS vs NLOS for the Walfisch-Ikegami model - - """ + """Specify LOS vs NLOS for the Walfisch-Ikegami model.""" val = self._get_property("Path Loss Type") val = self.PathLossTypeOption[val.upper()] return val @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Path Loss Type={value.value}"]) class EnvironmentOption(Enum): DENSE_METRO = "Dense Metro" @@ -155,22 +150,20 @@ class EnvironmentOption(Enum): @property def environment(self) -> EnvironmentOption: - """Environment - Specify the environment type for the Walfisch model - - """ + """Specify the environment type for the Walfisch model.""" val = self._get_property("Environment") val = self.EnvironmentOption[val.upper()] return val @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Environment={value.value}"]) @property def roof_height(self) -> float: - """Roof Height - The height of the building where the antenna is located. + """The height of the building where the antenna is located. Value should be between 0 and 100. """ @@ -179,14 +172,15 @@ def roof_height(self) -> float: return float(val) @roof_height.setter - def roof_height(self, value: float | str): + def roof_height(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Roof Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Roof Height={value}"]) @property def distance_between_buildings(self) -> float: - """Distance Between Buildings - The distance between two buildings. + """The distance between two buildings. Value should be between 0 and 100. """ @@ -195,16 +189,15 @@ def distance_between_buildings(self) -> float: return float(val) @distance_between_buildings.setter - def distance_between_buildings(self, value: float | str): + def distance_between_buildings(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Distance Between Buildings={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Distance Between Buildings={value}"]) @property def street_width(self) -> float: - """Street Width - Width of the street. + """Width of the street. Value should be between 0 and 100. """ @@ -213,14 +206,15 @@ def street_width(self) -> float: return float(val) @street_width.setter - def street_width(self, value: float | str): + def street_width(self, value : float|str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Street Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Street Width={value}"]) @property def incidence_angle(self) -> float: - """Incidence Angle - Angle between the street orientation and direction of incidence. + """Angle between the street orientation and direction of incidence. Value should be between 0 and 90. """ @@ -228,14 +222,17 @@ def incidence_angle(self) -> float: return float(val) @incidence_angle.setter - def incidence_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Incidence Angle={value}"]) + def incidence_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Incidence Angle={value}"]) @property def custom_fading_margin(self) -> float: - """Custom Fading Margin + """Custom Fading Margin. + Sets a custom fading margin to be applied to all coupling defined by - this node + this node. Value should be between 0 and 100. """ @@ -243,14 +240,17 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: - """Polarization Mismatch + """Polarization Mismatch. + Sets a margin for polarization mismatch to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -258,14 +258,17 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: - """Pointing Error Loss + """Pointing Error Loss. + Sets a margin for pointing error loss to be applied to all coupling - defined by this node + defined by this node. Value should be between 0 and 100. """ @@ -273,8 +276,10 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -284,66 +289,71 @@ class FadingTypeOption(Enum): @property def fading_type(self) -> FadingTypeOption: - """Fading Type - Specify the type of fading to include - - """ + """Specify the type of fading to include.""" val = self._get_property("Fading Type") val = self.FadingTypeOption[val.upper()] return val @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: - """Fading Availability + """Fading Availability. + The probability that the propagation loss in dB is below its median - value plus the margin + value plus the margin. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Fading Availability") return float(val) @fading_availability.setter - def fading_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) + def fading_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: - """Std Deviation - Standard deviation modeling the random amount of shadowing loss + """Standard deviation modeling the random amount of shadowing loss. - Value should be between 0 and 100. + Value should be between 0.0 and 100.0. """ val = self._get_property("Std Deviation") return float(val) @std_deviation.setter - def std_deviation(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) + def std_deviation(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: - """Include Rain Attenuation - Adds a margin for rain attenuation to the computed coupling + """Adds a margin for rain attenuation to the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return val == true + return (val == true) @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: - """Rain Availability + """Rain Availability. + Percentage of time attenuation due to range is < computed margin (range - from 99-99.999%) + from 99-99.999%). Value should be between 99 and 99.999. """ @@ -351,95 +361,104 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) + def rain_availability(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: - """Rain Rate - Rain rate (mm/hr) exceeded for 0.01% of the time + """Rain rate (mm/hr) exceeded for 0.01% of the time. - Value should be between 0 and 1000. + Value should be between 0.0 and 1000.0. """ val = self._get_property("Rain Rate") return float(val) @rain_rate.setter - def rain_rate(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) + def rain_rate(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: - """Polarization Tilt Angle + """Polarization Tilt Angle. + Polarization tilt angle of the transmitted signal relative to the - horizontal + horizontal. - Value should be between 0 and 180. + Value should be between 0.0 and 180.0. """ val = self._get_property("Polarization Tilt Angle") return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: - """Include Atmospheric Absorption + """Include Atmospheric Absorption. + Adds a margin for atmospheric absorption due to oxygen/water vapor to - the computed coupling + the computed coupling. Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return val == true + return (val == true) @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Include Atmospheric Absorption={value}"]) @property def temperature(self) -> float: - """Temperature - Air temperature in degrees Celsius + """Air temperature in degrees Celsius. - Value should be between -273 and 100. + Value should be between -273.0 and 100.0. """ val = self._get_property("Temperature") return float(val) @temperature.setter - def temperature(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) + def temperature(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: - """Total Air Pressure - Total air pressure + """Total air pressure. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Total Air Pressure") return float(val) @total_air_pressure.setter - def total_air_pressure(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: - """Water Vapor Concentration - Water vapor concentration + """Water vapor concentration. - Value should be between 0 and 2000. + Value should be between 0.0 and 2000.0. """ val = self._get_property("Water Vapor Concentration") return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value: float): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] - ) + def water_vapor_concentration(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Water Vapor Concentration={value}"]) + diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/waveform.py index 49c8c97666f..3283d754c38 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/waveform.py @@ -1,33 +1,29 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. -# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX-License-Identifier: MIT +# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX - License - Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal +# of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: +# furnished to do so, subject to the following conditions : # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - from enum import Enum - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - class Waveform(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +37,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') @enabled.setter def enabled(self, value: bool): @@ -49,16 +45,15 @@ def enabled(self, value: bool): @property def port(self): - """Port - Radio Port associated with this Band - - """ + """Radio Port associated with this Band.""" val = self._get_property("Port") return val @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Port={value}"]) class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" @@ -69,95 +64,99 @@ class WaveformOption(Enum): @property def waveform(self) -> WaveformOption: - """Waveform - Modulation used for the transmitted/received signal - - """ + """Modulation used for the transmitted/received signal.""" val = self._get_property("Waveform") val = self.WaveformOption[val.upper()] return val @waveform.setter def waveform(self, value: WaveformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Waveform={value.value}"]) @property def start_frequency(self) -> float: - """Start Frequency - First frequency for this band + """First frequency for this band. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Start Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @start_frequency.setter - def start_frequency(self, value: float | str): + def start_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: - """Stop Frequency - Last frequency for this band + """Last frequency for this band. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Stop Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @stop_frequency.setter - def stop_frequency(self, value: float | str): + def stop_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: - """Channel Spacing - Spacing between channels within this band + """Spacing between channels within this band. - Value should be between 1 and 1e+11. + Value should be between 1 and 100e9. """ val = self._get_property("Channel Spacing") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @channel_spacing.setter - def channel_spacing(self, value: float | str): + def channel_spacing(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Channel Spacing={value}"]) @property def clock_duty_cycle(self) -> float: - """Clock Duty Cycle - Clock signals duty cycle + """Clock signals duty cycle. - Value should be between 0.001 and 1. + Value should be between 0.001 and 1.0. """ val = self._get_property("Clock Duty Cycle") return float(val) @clock_duty_cycle.setter - def clock_duty_cycle(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Duty Cycle={value}"]) + def clock_duty_cycle(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Clock Duty Cycle={value}"]) @property def clock_risefall_time(self) -> float: - """Clock Rise/Fall Time - Clock signals rise/fall time + """Clock signals rise/fall time. - Value should be greater than 0. + Value should be greater than 0.0. """ val = self._get_property("Clock Rise/Fall Time") val = self._convert_from_internal_units(float(val), "Time") return float(val) @clock_risefall_time.setter - def clock_risefall_time(self, value: float | str): + def clock_risefall_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Rise/Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Clock Rise/Fall Time={value}"]) class SpreadingTypeOption(Enum): LOW_SPREAD = "Low Spread" @@ -166,22 +165,20 @@ class SpreadingTypeOption(Enum): @property def spreading_type(self) -> SpreadingTypeOption: - """Spreading Type - Type of spreading employed by the Spread Spectrum Clock - - """ + """Type of spreading employed by the Spread Spectrum Clock.""" val = self._get_property("Spreading Type") val = self.SpreadingTypeOption[val.upper()] return val @spreading_type.setter def spreading_type(self, value: SpreadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spreading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spreading Type={value.value}"]) @property def spread_percentage(self) -> float: - """Spread Percentage - Peak-to-peak spread percentage + """Peak-to-peak spread percentage. Value should be between 0 and 100. """ @@ -189,67 +186,67 @@ def spread_percentage(self) -> float: return float(val) @spread_percentage.setter - def spread_percentage(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spread Percentage={value}"]) + def spread_percentage(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Spread Percentage={value}"]) @property def imported_spectrum(self) -> str: - """Imported Spectrum - Value should be a full file path. - """ + """Imported Spectrum.""" val = self._get_property("Imported Spectrum") return val @imported_spectrum.setter def imported_spectrum(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Imported Spectrum={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Imported Spectrum={value}"]) @property def raw_data_format(self) -> str: - """Raw Data Format - Format of the imported raw data - - """ + """Format of the imported raw data.""" val = self._get_property("Raw Data Format") return val @property def system_impedance(self) -> float: - """System Impedance - System impedance for the imported data + """System impedance for the imported data. - Value should be between 0 and 1e+06. + Value should be between 0.0 and 1.0e6. """ val = self._get_property("System Impedance") val = self._convert_from_internal_units(float(val), "Resistance") return float(val) @system_impedance.setter - def system_impedance(self, value: float | str): + def system_impedance(self, value : float|str): value = self._convert_to_internal_units(value, "Resistance") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"System Impedance={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"System Impedance={value}"]) @property def advanced_extraction_params(self) -> bool: - """Advanced Extraction Params - Show/hide advanced extraction params + """Show/hide advanced extraction params. Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return val == true + return (val == true) @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): - self._oRevisionData.SetEmitNodeProperties( - self._result_id, self._node_id, [f"Advanced Extraction Params={value}"] - ) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Advanced Extraction Params={value}"]) @property def nb_window_size(self) -> float: - """NB Window Size + """NB Window Size. + Window size for computing the moving average during narrowband signal - detection + detection. Value should be greater than 3. """ @@ -257,13 +254,16 @@ def nb_window_size(self) -> float: return float(val) @nb_window_size.setter - def nb_window_size(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Window Size={value}"]) + def nb_window_size(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NB Window Size={value}"]) @property def bb_smoothing_factor(self) -> float: - """BB Smoothing Factor - Reduces the number of frequency points used for the broadband noise + """BB Smoothing Factor. + + Reduces the number of frequency points used for the broadband noise. Value should be greater than 1. """ @@ -271,13 +271,14 @@ def bb_smoothing_factor(self) -> float: return float(val) @bb_smoothing_factor.setter - def bb_smoothing_factor(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Smoothing Factor={value}"]) + def bb_smoothing_factor(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"BB Smoothing Factor={value}"]) @property def nb_detector_threshold(self) -> float: - """NB Detector Threshold - Narrowband Detector threshold standard deviation + """Narrowband Detector threshold standard deviation. Value should be between 2 and 10. """ @@ -285,8 +286,10 @@ def nb_detector_threshold(self) -> float: return float(val) @nb_detector_threshold.setter - def nb_detector_threshold(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Detector Threshold={value}"]) + def nb_detector_threshold(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"NB Detector Threshold={value}"]) class AlgorithmOption(Enum): FFT = "FFT" @@ -294,64 +297,64 @@ class AlgorithmOption(Enum): @property def algorithm(self) -> AlgorithmOption: - """Algorithm - Algorithm used to transform the imported time domain spectrum - - """ + """Algorithm used to transform the imported time domain spectrum.""" val = self._get_property("Algorithm") val = self.AlgorithmOption[val.upper()] return val @algorithm.setter def algorithm(self, value: AlgorithmOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Algorithm={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Algorithm={value.value}"]) @property def start_time(self) -> float: - """Start Time - Initial time of the imported spectrum + """Initial time of the imported spectrum. - Value should be greater than 0. + Value should be greater than 0.0. """ val = self._get_property("Start Time") val = self._convert_from_internal_units(float(val), "Time") return float(val) @start_time.setter - def start_time(self, value: float | str): + def start_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Start Time={value}"]) @property def stop_time(self) -> float: - """Stop Time - Final time of the imported time domain spectrum - - """ + """Final time of the imported time domain spectrum.""" val = self._get_property("Stop Time") val = self._convert_from_internal_units(float(val), "Time") return float(val) @stop_time.setter - def stop_time(self, value: float | str): + def stop_time(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Stop Time={value}"]) @property def max_frequency(self) -> float: - """Max Frequency - Frequency cutoff of the imported time domain spectrum + """Frequency cutoff of the imported time domain spectrum. - Value should be between 1 and 1e+11. + Value should be between 1.0 and 100.0e9. """ val = self._get_property("Max Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) @max_frequency.setter - def max_frequency(self, value: float | str): + def max_frequency(self, value : float|str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Max Frequency={value}"]) class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" @@ -366,50 +369,50 @@ class WindowTypeOption(Enum): @property def window_type(self) -> WindowTypeOption: - """Window Type - Windowing scheme used for importing time domain spectrum - - """ + """Windowing scheme used for importing time domain spectrum.""" val = self._get_property("Window Type") val = self.WindowTypeOption[val.upper()] return val @window_type.setter def window_type(self, value: WindowTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Window Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Window Type={value.value}"]) @property def kaiser_parameter(self) -> float: - """Kaiser Parameter - Shape factor applied to the transform + """Shape factor applied to the transform. - Value should be greater than 0. + Value should be greater than 0.0. """ val = self._get_property("Kaiser Parameter") return float(val) @kaiser_parameter.setter - def kaiser_parameter(self, value: float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Kaiser Parameter={value}"]) + def kaiser_parameter(self, value : float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Kaiser Parameter={value}"]) @property def adjust_coherent_gain(self) -> bool: - """Adjust Coherent Gain - Shape factor applied to the transform + """Shape factor applied to the transform. Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return val == true + return (val == true) @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adjust Coherent Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Adjust Coherent Gain={value}"]) @property def data_rate(self) -> float: - """Data Rate - Maximum data rate: helps determine shape of spectral profile + """Maximum data rate: helps determine shape of spectral profile. Value should be greater than 1. """ @@ -418,14 +421,15 @@ def data_rate(self) -> float: return float(val) @data_rate.setter - def data_rate(self, value: float | str): + def data_rate(self, value : float|str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Data Rate={value}"]) @property def num_of_bits(self) -> int: - """Num of Bits - Length of the Pseudo Random Binary Sequence + """Length of the Pseudo Random Binary Sequence. Value should be between 1 and 1000. """ @@ -434,26 +438,28 @@ def num_of_bits(self) -> int: @num_of_bits.setter def num_of_bits(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Num of Bits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Num of Bits={value}"]) @property def use_envelope(self) -> bool: - """Use Envelope - Model the waveform as a worst case envelope. + """Model the waveform as a worst case envelope. Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return val == true + return (val == true) @use_envelope.setter def use_envelope(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Envelope={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Use Envelope={value}"]) @property def min_ptsnull(self) -> int: - """Min Pts/Null - Minimum number of points to use between each null frequency + """Minimum number of points to use between each null frequency. Value should be between 2 and 50. """ @@ -462,20 +468,24 @@ def min_ptsnull(self) -> int: @min_ptsnull.setter def min_ptsnull(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pts/Null={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Min Pts/Null={value}"]) @property def delay_skew(self) -> float: - """Delay Skew - Delay Skew of the differential signal pairs + """Delay Skew of the differential signal pairs. - Value should be greater than 0. + Value should be greater than 0.0. """ val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") return float(val) @delay_skew.setter - def delay_skew(self, value: float | str): + def delay_skew(self, value : float|str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Delay Skew={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, + self._node_id, + [f"Delay Skew={value}"]) + From ec05d6934885870d20d6fb64ef99db536db79988 Mon Sep 17 00:00:00 2001 From: Bryan Kaylor Date: Fri, 30 May 2025 14:15:15 -0500 Subject: [PATCH 77/86] Fix power unit in radio_component test --- tests/system/solvers/test_26_emit.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/system/solvers/test_26_emit.py b/tests/system/solvers/test_26_emit.py index fb2e7ead946..d19fa38a8d4 100644 --- a/tests/system/solvers/test_26_emit.py +++ b/tests/system/solvers/test_26_emit.py @@ -283,9 +283,8 @@ def test_04_radio_component(self, add_app): assert "Frequency should be within 1Hz to 100 GHz." in str(e) # test power unit conversions - # TODO(bkaylor): What should the unit here be? - # band_power = radio.band_tx_power(band) - # assert band_power == 40.0 + band_power = radio.band_tx_power(band, "dBm") + assert band_power == 40.0 band_power = radio.band_tx_power(band, "dBW") assert band_power == 10.0 band_power = radio.band_tx_power(band, "mW") From 6b1ba5af484124fc462a05274296713040cb224d Mon Sep 17 00:00:00 2001 From: raghajaf Date: Mon, 9 Jun 2025 15:06:40 -0400 Subject: [PATCH 78/86] Initial commit --- src/ansys/aedt/core/emit.py | 13 + .../aedt/core/emit_core/emit_schematic.py | 238 ++++++++++++++++++ .../modeler/circuits/primitives_circuit.py | 109 ++++---- .../core/modeler/circuits/primitives_emit.py | 126 ++++++++-- tests/system/solvers/test_26_emit.py | 83 +++++- 5 files changed, 503 insertions(+), 66 deletions(-) create mode 100644 src/ansys/aedt/core/emit_core/emit_schematic.py diff --git a/src/ansys/aedt/core/emit.py b/src/ansys/aedt/core/emit.py index 11604bd51cf..fd63904f2ef 100644 --- a/src/ansys/aedt/core/emit.py +++ b/src/ansys/aedt/core/emit.py @@ -29,6 +29,7 @@ from ansys.aedt.core.emit_core.couplings import CouplingsEmit from ansys.aedt.core.emit_core.emit_constants import EMIT_VALID_UNITS from ansys.aedt.core.emit_core.emit_constants import emit_unit_type_string_to_enum +from ansys.aedt.core.emit_core.emit_schematic import EmitSchematic from ansys.aedt.core.emit_core.results.results import Results from ansys.aedt.core.generic.general_methods import pyaedt_function_handler from ansys.aedt.core.modeler.schematic import ModelerEmit @@ -172,6 +173,7 @@ def __init__( ) self._modeler = ModelerEmit(self) self._couplings = CouplingsEmit(self) + self._schematic = EmitSchematic(self) if self._aedt_version > "2023.1": # the next 2 lines of code are needed to point # the EMIT object to the correct EmiApiPython @@ -210,6 +212,17 @@ def couplings(self): """ return self._couplings + @property + def schematic(self): + """EMIT Schematic. + + Returns + ------- + :class:`ansys.aedt.core.emit_core.emit_schematic.EmitSchematic` + EMIT schematic. + """ + return self._schematic + @pyaedt_function_handler() def version(self, detailed=False): """ diff --git a/src/ansys/aedt/core/emit_core/emit_schematic.py b/src/ansys/aedt/core/emit_core/emit_schematic.py new file mode 100644 index 00000000000..b6a4cc9d778 --- /dev/null +++ b/src/ansys/aedt/core/emit_core/emit_schematic.py @@ -0,0 +1,238 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + + +from ansys.aedt.core.generic.general_methods import pyaedt_function_handler + + +class EmitSchematic: + """Represents the EMIT schematic and provides methods to interact with it.""" + + def __init__(self, emit_instance): + """Initialize the EmitSchematic class. + + Parameters + ---------- + emit_instance : Emit + Instance of the Emit class. + """ + self.emit_instance = emit_instance + + @property + def _emit_com_module(self): + """Retrieve the EmitCom module from the Emit instance. + + Returns + ------- + object + The EmitCom module. + + Raises + ------ + RuntimeError + If the EmitCom module cannot be retrieved. + """ + if not hasattr(self.emit_instance, "_odesign"): + raise RuntimeError("Emit instance does not have a valid '_odesign' attribute.") + try: + return self.emit_instance._odesign.GetModule("EmitCom") + except Exception as e: + raise RuntimeError(f"Failed to retrieve EmitCom module: {e}") + + @pyaedt_function_handler + def create_component(self, component_type: str, name: str = None, library: str = None) -> int: + """Create a component. + + Parameters + ---------- + component_type : str + Type of the component to create. + name : str, optional + Name of the component to create. AEDT defaults used if not provided. + library : str, optional + Name of the component library. Defaults to an empty string if not provided. + + Returns + ------- + int + The ID of the created component. + + Raises + ------ + ValueError + If the component type is empty or no matching component is found. + RuntimeError + If the component creation fails. + """ + if not component_type: + raise ValueError("The 'component_type' argument is required.") + + name = name or "" + library = library or "" + + try: + # Retrieve matching components from the catalog + matching_components = self.emit_instance.modeler.components.components_catalog[component_type] + + if not matching_components: + self.emit_instance.logger.error(f"No component found for type '{component_type}'.") + raise ValueError(f"No component found for type '{component_type}'.") + + if len(matching_components) == 1: + # Use the single matching component + component = matching_components[0] + self.emit_instance.logger.info( + f"Using component '{component.name}' from library '{component.component_library}" + f"' for type '{component_type}'." + ) + else: + # Attempt to find an exact match + component = next((comp for comp in matching_components if comp.name == component_type), None) + if not component: + self.emit_instance.logger.error( + f"Multiple components found for type '{component_type}', but no exact match." + " Please specify a unique component." + ) + raise ValueError(f"Multiple components found for type '{component_type}', but no exact match.") + self.emit_instance.logger.info( + f"Using exact match component '{component.name}' from library '{component.component_library}" + "' for type '{component_type}'." + ) + + # Create the component using the EmitCom module + new_component_id = self._emit_com_module.CreateEmitComponent( + name, component.name, component.component_library + ) + return new_component_id + except Exception as e: + self.emit_instance.logger.error(f"Failed to create component '{name}' of type '{component_type}': {e}") + raise RuntimeError(f"Failed to create component of type '{component_type}': {e}") + + @pyaedt_function_handler + def create_radio_antenna( + self, radio_type: str, radio_name: str = None, antenna_name: str = None, library: str = None + ) -> tuple[int, int]: + """Create a new radio and antenna and connect them. + + Parameters + ---------- + radio_type : str + Type of radio to create. For example, "Bluetooth". Must match + a radio name in the specified library. + radio_name : str, optional + Name to assign to the new radio. If ``None``, then an instance + name is assigned automatically. The default is ``None``. + antenna_name : str, optional + Name to assign to the new antenna. If ``None``, then an instance + name is assigned automatically. The default is ``None``. + library : str, optional + Name of the component library. If ``None``, then the default + library is used. The default is ``None``. + + Returns + ------- + tuple + A tuple containing the IDs of the created radio and antenna. + + Raises + ------ + RuntimeError + If the radio or antenna creation fails. + """ + radio_name = radio_name or "" + antenna_name = antenna_name or "" + library = library or "" + + try: + new_radio_id = self.create_component(radio_type, radio_name, library) + new_antenna_id = self.create_component("Antenna", antenna_name, "Antennas") + if new_radio_id and new_antenna_id: + self.connect_components(new_antenna_id, new_radio_id) # Connect antenna to radio + return new_radio_id, new_antenna_id + except Exception as e: + self.emit_instance.logger.error(f"Failed to create radio of type '{radio_type}' or antenna: {e}") + raise RuntimeError(f"Failed to create radio of type '{radio_type}' or antenna: {e}") + + @pyaedt_function_handler + def connect_components(self, component_id_1: int, component_id_2: int): + """Connect two components in the schematic. + + Parameters + ---------- + component_id_1 : str + ID of the first component. + component_id_2 : str + ID of the second component. + + Raises + ------ + RuntimeError + If the connection fails. + """ + try: + component_name_1 = self.get_component_properties(component_id_1, "Name") + component_name_2 = self.get_component_properties(component_id_2, "Name") + self.emit_instance._oeditor.PlaceComponent(component_name_1, component_name_2) + self.emit_instance.logger.info( + f"Successfully connected components '{component_name_1}' and '{component_name_2}'." + ) + except Exception as e: + self.emit_instance.logger.error( + f"Failed to connect components '{component_id_1}' and '{component_id_2}': {e}" + ) + raise RuntimeError(f"Failed to connect components '{component_id_1}' and '{component_id_2}': {e}") + + @pyaedt_function_handler + def get_component_properties(self, component_id: int, property_key: str = None) -> dict: + """Get properties of a component. + + Parameters + ---------- + component_id : int + ID of the component. + property_key : str, optional + Specific property key to retrieve. If ``None``, all properties are returned. + + Returns + ------- + dict or str + Dictionary containing all properties of the component if `property_key` is ``None``. + Otherwise, the value of the specified property key. + + Raises + ------ + KeyError + If the specified property key is not found. + """ + try: + props = self._emit_com_module.GetEmitNodeProperties(0, component_id, True) + props_dict = {prop.split("=", 1)[0]: prop.split("=", 1)[1] for prop in props} + if property_key is None: + return props_dict + if property_key in props_dict: + return props_dict[property_key] + raise KeyError(f"Property key '{property_key}' not found.") + except Exception as e: + self.emit_instance.logger.error(f"Failed to retrieve properties for component '{component_id}': {e}") + raise RuntimeError(f"Failed to retrieve properties for component '{component_id}': {e}") diff --git a/src/ansys/aedt/core/modeler/circuits/primitives_circuit.py b/src/ansys/aedt/core/modeler/circuits/primitives_circuit.py index 015c8d1e53d..4cf2efa87e3 100644 --- a/src/ansys/aedt/core/modeler/circuits/primitives_circuit.py +++ b/src/ansys/aedt/core/modeler/circuits/primitives_circuit.py @@ -233,7 +233,7 @@ def _convert_point_to_meter(self, point): else: try: xpos = Quantity(xpos) - except: + except Exception: raise ValueError("Units must be in length units") if is_number(ypos): ypos = Quantity(ypos, self.schematic_units) @@ -242,7 +242,7 @@ def _convert_point_to_meter(self, point): else: try: ypos = Quantity(ypos) - except: + except Exception: raise ValueError("Units must be in length units") if xpos.unit_system != "Length" or ypos.unit_system != "Length": raise ValueError("Units must be in length units") @@ -353,13 +353,13 @@ def create_interface_port(self, name, location=None, angle=0): return False xpos, ypos = self._get_location(location) - id = self.create_unique_id() - arg1 = ["NAME:IPortProps", "Name:=", name, "Id:=", id] + # id = self.create_unique_id() + arg1 = ["NAME:IPortProps", "Name:=", name] arg2 = ["NAME:Attributes", "Page:=", 1, "X:=", xpos, "Y:=", ypos, "Angle:=", angle, "Flip:=", False] - id = self.oeditor.CreateIPort(arg1, arg2) + comp_name = self.oeditor.CreateIPort(arg1, arg2) - id = int(id.split(";")[1]) - self.add_id_to_component(id) + id = int(comp_name.split(";")[1]) + self.add_id_to_component(id, comp_name) # return id, self.components[id].composed_name for el in self.components: if ("IPort@" + name + ";" + str(id)) in self.components[el].composed_name: @@ -395,9 +395,9 @@ def create_page_port(self, name, location=None, angle=0, label_position="Auto"): location = [] if location is None else location xpos, ypos = self._get_location(location) - id = self.create_unique_id() - id = self.oeditor.CreatePagePort( - ["NAME:PagePortProps", "Name:=", name, "Id:=", id], + # id = self.create_unique_id() + comp_name = self.oeditor.CreatePagePort( + ["NAME:PagePortProps", "Name:=", name], [ "NAME:Attributes", "Page:=", @@ -413,9 +413,9 @@ def create_page_port(self, name, location=None, angle=0, label_position="Auto"): ], ) - id = int(id.split(";")[1]) + id = int(comp_name.split(";")[1]) # self.refresh_all_ids() - self.add_id_to_component(id) + self.add_id_to_component(id, comp_name) if label_position == "Auto": if angle == 270: new_loc = "Top" @@ -469,14 +469,14 @@ def create_gnd(self, location=None, angle=0, page=1): location = [] xpos, ypos = self._get_location(location) - id = self.create_unique_id() + # id = self.create_unique_id() angle = math.pi * angle / 180 name = self.oeditor.CreateGround( - ["NAME:GroundProps", "Id:=", id], + ["NAME:GroundProps"], ["NAME:Attributes", "Page:=", page, "X:=", xpos, "Y:=", ypos, "Angle:=", angle, "Flip:=", False], ) id = int(name.split(";")[1]) - self.add_id_to_component(id) + self.add_id_to_component(id, name) # return id, self.components[id].composed_name for el in self.components: if name in self.components[el].composed_name: @@ -1025,14 +1025,14 @@ def create_touchstone_component( if location is None: location = [] xpos, ypos = self._get_location(location) - id = self.create_unique_id() + # id = self.create_unique_id() if Path(model_name).exists(): model_name = self.create_model_from_touchstone(str(model_name), show_bitmap=show_bitmap) - arg1 = ["NAME:ComponentProps", "Name:=", model_name, "Id:=", str(id)] + arg1 = ["NAME:ComponentProps", "Name:=", model_name] arg2 = ["NAME:Attributes", "Page:=", 1, "X:=", xpos, "Y:=", ypos, "Angle:=", angle, "Flip:=", False] - id = self.oeditor.CreateComponent(arg1, arg2) - id = int(id.split(";")[1]) - self.add_id_to_component(id) + comp_name = self.oeditor.CreateComponent(arg1, arg2) + id = int(comp_name.split(";")[1]) + self.add_id_to_component(id, comp_name) return self.components[id] @pyaedt_function_handler() @@ -1079,11 +1079,12 @@ def create_nexxim_state_space_component( if location is None: location = [] xpos, ypos = self._get_location(location) - id = self.create_unique_id() - arg1 = ["NAME:ComponentProps", "Name:=", str(model_name), "Id:=", str(id)] + # id = self.create_unique_id() + arg1 = ["NAME:ComponentProps", "Name:=", str(model_name)] arg2 = ["NAME:Attributes", "Page:=", 1, "X:=", xpos, "Y:=", ypos, "Angle:=", angle, "Flip:=", False] - self.oeditor.CreateComponent(arg1, arg2) - self.add_id_to_component(id) + comp_name = self.oeditor.CreateComponent(arg1, arg2) + id = int(comp_name.split(";")[1]) + self.add_id_to_component(id, comp_name) return self.components[id] @pyaedt_function_handler(inst_name="name") @@ -1135,23 +1136,23 @@ def create_component( >>> from ansys.aedt.core import TwinBuilder >>> aedtapp = TwinBuilder() - >>> cmp = aedtapp.modeler.schematic.create_component(component_library="",component_name="ExcitationComponent") - >>> cmp.set_property("ShowPin",True) + >>> cmp = aedtapp.modeler.schematic.create_component(component_library="", component_name="ExcitationComponent") + >>> cmp.set_property("ShowPin", True) >>> aedtapp.release_desktop(True, True) """ - id = self.create_unique_id() + # id = self.create_unique_id() if component_library: inst_name = self.design_libray + "\\" + component_library + ":" + component_name else: inst_name = component_name - arg1 = ["NAME:ComponentProps", "Name:=", inst_name, "Id:=", str(id)] + arg1 = ["NAME:ComponentProps", "Name:=", inst_name] xpos, ypos = self._get_location(location) angle = math.pi * angle / 180 arg2 = ["NAME:Attributes", "Page:=", page, "X:=", xpos, "Y:=", ypos, "Angle:=", angle, "Flip:=", False] - id = self.oeditor.CreateComponent(arg1, arg2) - id = int(id.split(";")[1]) + comp_name = self.oeditor.CreateComponent(arg1, arg2) + id = int(comp_name.split(";")[1]) # self.refresh_all_ids() - self.add_id_to_component(id) + self.add_id_to_component(id, comp_name) if name: self.components[id].set_property("InstanceName", name) if use_instance_id_netlist: @@ -1388,7 +1389,7 @@ def refresh_all_ids(self): return len(self.components) @pyaedt_function_handler() - def add_id_to_component(self, id): + def add_id_to_component(self, id, name=None): """Add an ID to a component. Parameters @@ -1402,6 +1403,20 @@ def add_id_to_component(self, id): Number of components. """ + if name: + name = name.split(";") + if len(name) > 1 and str(id) == name[1]: + o = CircuitComponent(self, tabname=self.tab_name) + o.name = name[0] + if len(name) > 2: + o.id = int(name[1]) + o.schematic_id = int(name[2]) + objID = o.id + else: + o.schematic_id = int(name[1]) + objID = o.schematic_id + self.components[objID] = o + return len(self.components) obj = self.oeditor.GetAllElements() for el in obj: name = el.split(";") @@ -1540,9 +1555,9 @@ def create_line(self, points, color=0, width=0): >>> oEditor.CreateLine """ points = [str(tuple(self._convert_point_to_meter(i))) for i in points] - id = self.create_unique_id() + # id = self.create_unique_id() return self.oeditor.CreateLine( - ["NAME:LineData", "Points:=", points, "LineWidth:=", width, "Color:=", color, "Id:=", id], + ["NAME:LineData", "Points:=", points, "LineWidth:=", width, "Color:=", color], ["NAME:Attributes", "Page:=", 1], ) @@ -1570,8 +1585,8 @@ def create_wire(self, points, name="", page=1): >>> oEditor.CreateWire """ points = [str(tuple(self._convert_point_to_meter(i))) for i in points] - wire_id = self.create_unique_id() - arg1 = ["NAME:WireData", "Name:=", name, "Id:=", wire_id, "Points:=", points] + # wire_id = self.create_unique_id() + arg1 = ["NAME:WireData", "Name:=", name, "Points:=", points] arg2 = ["NAME:Attributes", "Page:=", page] try: wire_id = self.oeditor.CreateWire(arg1, arg2) @@ -1661,15 +1676,21 @@ def __getitem__(self, compname): Circuit Component Info. """ - items = self.find_components("*" + compname) - if items and len(items) == 1: - return self.components[items[0]] - elif len(items) > 1: - self._component_manager._logger.warning("Multiple components found.") - return None + if self._component_manager.design_type == "EMIT": + items = self.find_components("*" + compname + "*") + # Return a list of components + return [self.components[item] for item in items] if items else [] else: - self._component_manager._logger.warning("Component not found.") - return None + items = self.find_components("*" + compname) + # Return a single component or None + if items and len(items) == 1: + return self.components[items[0]] + elif len(items) > 1: + self._component_manager._logger.warning("Multiple components found.") + return None + else: + self._component_manager._logger.warning("Component not found.") + return None def __init__(self, component_manager): self._component_manager = component_manager diff --git a/src/ansys/aedt/core/modeler/circuits/primitives_emit.py b/src/ansys/aedt/core/modeler/circuits/primitives_emit.py index ab034f98d43..39b15828b7a 100644 --- a/src/ansys/aedt/core/modeler/circuits/primitives_emit.py +++ b/src/ansys/aedt/core/modeler/circuits/primitives_emit.py @@ -28,6 +28,7 @@ from ansys.aedt.core.emit_core import emit_constants as emit_consts import ansys.aedt.core.generic.constants as consts from ansys.aedt.core.generic.general_methods import pyaedt_function_handler +from ansys.aedt.core.modeler.circuits.primitives_circuit import ComponentCatalog class EmitComponents(object): @@ -170,6 +171,10 @@ def __getitem__(self, compname): return None + @property + def _logger(self): + return self._app.logger + def __len__(self): return len(self.components) @@ -181,7 +186,40 @@ def __init__(self, parent, modeler): self.modeler = modeler self._currentId = 0 self.components = defaultdict(EmitComponent) + self.include_personal_lib = False self.refresh_all_ids() + self._components_catalog = None + self._app = modeler._app + + @property + def include_personal_library(self, value=None): + """Include personal library.""" + if value is not None: + self.include_personal_lib = value + return self.include_personal_lib + + @include_personal_library.setter + def include_personal_library(self, value): + self.include_personal_lib = value + + @property + def design_libray(self): + """Design library.""" + if self.include_personal_lib: + return "PersonalLib" + return "EMIT Elements" + + @property + def components_catalog(self): + """System library component catalog with all information. + + Returns + ------- + :class:`ansys.aedt.core.modeler.cad.primitivesCircuit.ComponentCatalog` + """ + if not self._components_catalog: + self._components_catalog = ComponentCatalog(self) + return self._components_catalog @pyaedt_function_handler() def create_component(self, component_type, name=None, library=None): @@ -409,6 +447,9 @@ def __init__(self, components, component_name): self.root_prop_node = None """Root node of the component.""" + self.units = components._parent.get_units() + """Units for the component.""" + @property def composed_name(self): """Component name. Needed for compatibility.""" @@ -704,7 +745,7 @@ def get_position(self, units=""): # Check the units specified are a valid EMIT length if not units or units not in emit_consts.EMIT_VALID_UNITS["Length"]: - units = "meter" + units = self.units["Length"] position = ( consts.unit_converter(float(parts[0]), "Length", "meter", units), consts.unit_converter(float(parts[1]), "Length", "meter", units), @@ -776,14 +817,14 @@ def band_start_frequency(self, band_node, units=""): ---------- band_node : Instance of the band node. units : str, optional - If ``None`` specified, SI units (Hz) are used. + If ``None`` specified, global units are used. Returns ------- Float Start frequency of the band node.""" if not units or units not in emit_consts.EMIT_VALID_UNITS["Frequency"]: - units = "Hz" + units = self.units["Frequency"] return consts.unit_converter(float(band_node.props["StartFrequency"]), "Freq", "Hz", units) def band_stop_frequency(self, band_node, units=""): @@ -793,14 +834,14 @@ def band_stop_frequency(self, band_node, units=""): ---------- band_node : Instance of the band node. units : str, optional - If ``None`` specified, SI units (Hz) are used. + If ``None`` specified, global units are used. Returns ------- Float Stop frequency of the band node.""" if not units or units not in emit_consts.EMIT_VALID_UNITS["Frequency"]: - units = "Hz" + units = self.units["Frequency"] return consts.unit_converter(float(band_node.props["StopFrequency"]), "Freq", "Hz", units) def set_band_start_frequency(self, band_node, band_start_freq, units=""): @@ -825,9 +866,9 @@ def set_band_start_frequency(self, band_node, band_start_freq, units=""): >>> from ansys.aedt.core import Emit >>> aedtapp = Emit(new_desktop=False) >>> radio = aedtapp.modeler.components.create_component("New Radio") - >>> band = radio.bands()[0] + >>> band = radio.bands()[0] >>> start_freq = 10 - >>> units = 'MHz' + >>> units = "MHz" >>> radio.set_band_start_frequency(band, start_freq, units=units) """ @@ -871,9 +912,9 @@ def set_band_stop_frequency(self, band_node, band_stop_freq, units=""): >>> from ansys.aedt.core import Emit >>> aedtapp = Emit(new_desktop=False) >>> radio = aedtapp.modeler.components.create_component("New Radio") - >>> band = radio.bands()[0] + >>> band = radio.bands()[0] >>> stop_freq = 10 - >>> units = 'MHz' + >>> units = "MHz" >>> radio.set_band_stop_frequency(band, stop_freq, units=units) """ # if "Band" not in band_node.props["Type"]: @@ -893,6 +934,54 @@ def set_band_stop_frequency(self, band_node, band_stop_freq, units=""): prop_list = {"StopFrequency": freq_string} band_node._set_prop_value(prop_list) + # def duplicate_band(self, band_node_to_duplicate): + # """ + # [Incomplete 10/19/2023] + # Parameters + # ---------- + # band_node_to_duplicate + # + # Returns + # ------- + # + # """ + # # append number to the name of the band to duplicate. + # print('Duplicating...') + # + # + # # return band node + # def convert_channels_to_multi_bands(self, band_node): + # """ + # [Incomplete 10/19/2023] + # Parameters + # ---------- + # band_node + # + # Returns + # ------- + # + # """ + # # get the channels. Say returns 10 channels in the band_node + # # Name = r.bands()[0].children[0].props['Name'] + # # band_node.props['Name'] + # # Start = r.bands()[0].props['StartFrequency'] + # band_start_frequency = float(band_node.props['StartFrequency']) + # # Stop = r.bands()[0].props['StopFrequency'] + # band_stop_frequency = float(band_node.props['StopFrequency']) + # # Spacing = r.bands()[0].props['ChannelSpacing'] + # channel_spacing = float(band_node.props['ChannelSpacing']) + # # for each channel + # # 1) create a band (duplicate original one) + # # 2) set band start and stop frequencies + # for channel in list(range(int(band_start_frequency), int(band_stop_frequency), int(channel_spacing))): + # baby_band_start = channel + # baby_band_stop = channel+channel_spacing + # baby_band_node = self.duplicate_band(band_node) # return band name or some handle to it + # self.set_band_start_frequency(baby_band_node, baby_band_start) + # self.set_band_stop_frequency(baby_band_node, baby_band_stop) + # # set start and stop freq for that band name + # # to be + def band_channel_bandwidth(self, band_node, units=""): """Get the channel bandwidth of the band node. @@ -900,14 +989,14 @@ def band_channel_bandwidth(self, band_node, units=""): ---------- band_node : Instance of the band node. units : str, optional - If ``None`` specified, SI units (Hz) are used. + If ``None`` specified, global units are used. Returns ------- Float Channel bandwidth of the band node.""" if not units or units not in emit_consts.EMIT_VALID_UNITS["Frequency"]: - units = "Hz" + units = self.units["Frequency"] return consts.unit_converter(float(band_node.props["ChannelBandwidth"]), "Freq", "Hz", units) def band_tx_power(self, band_node, units=""): @@ -917,15 +1006,14 @@ def band_tx_power(self, band_node, units=""): ---------- band_node : Instance of the band node. units : str - Units to use for the tx power. If none specified, - SI units (W) are used + Units to use for the tx power. Returns ------- Float Transmit power of the band node.""" if not units or units not in emit_consts.EMIT_VALID_UNITS["Power"]: - units = "W" + units = self.units["Power"] for child in band_node.children: if child.props["Type"] == "TxSpectralProfNode": return consts.unit_converter(float(child.props["FundamentalAmplitude"]), "Power", "dBm", units) @@ -1054,7 +1142,7 @@ def set_band_power_level(self, power, units=""): power : float Peak amplitude of the fundamental [dBm]. units : str, optional - Units of the input power. If None specified, SI units (W) are used. + Units of the input power. If None specified, global units are used. Return ------ @@ -1064,8 +1152,8 @@ def set_band_power_level(self, power, units=""): raise TypeError(f"{self.node_name} must be a band.") # Need to store power in dBm if not units or units not in emit_consts.EMIT_VALID_UNITS["Power"]: - units = "W" - power_string = f'{consts.unit_converter(power, "Power", units, "dBm")}' + units = self.parent_component.units["Power"] + power_string = f"{consts.unit_converter(power, 'Power', units, 'dBm')}" prop_list = {"FundamentalAmplitude": power_string} for child in self.children: if child.props["Type"] == "TxSpectralProfNode": @@ -1079,7 +1167,7 @@ def get_band_power_level(self, units=""): Parameters ---------- units : str, optional - Units to use for the power. If None specified, SI units (W) are used. + Units to use for the power. If None specified, global units are used. Return ------ @@ -1090,7 +1178,7 @@ def get_band_power_level(self, units=""): raise TypeError(f"{self.node_name} must be a band.") # Power is stored in dBm, convert to desired units if not units or units not in emit_consts.EMIT_VALID_UNITS["Power"]: - units = "W" + units = self.parent_component.units["Power"] for child in self.children: if child.props["Type"] == "TxSpectralProfNode": power = child.props["FundamentalAmplitude"] diff --git a/tests/system/solvers/test_26_emit.py b/tests/system/solvers/test_26_emit.py index d19fa38a8d4..982a40bf785 100644 --- a/tests/system/solvers/test_26_emit.py +++ b/tests/system/solvers/test_26_emit.py @@ -30,6 +30,7 @@ import sys import tempfile import types +from unittest.mock import MagicMock from ansys.aedt.core.generic import constants as consts from ansys.aedt.core.generic.general_methods import is_linux @@ -49,9 +50,10 @@ from ansys.aedt.core.emit_core.emit_constants import ResultType from ansys.aedt.core.emit_core.emit_constants import TxRxMode from ansys.aedt.core.emit_core.nodes import generated - from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - from ansys.aedt.core.emit_core.nodes.generated import * - from ansys.aedt.core.emit_core.results.revision import Revision + + # from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + # from ansys.aedt.core.emit_core.nodes.generated import * + # from ansys.aedt.core.emit_core.results.revision import Revision from ansys.aedt.core.modeler.circuits.primitives_emit import EmitAntennaComponent from ansys.aedt.core.modeler.circuits.primitives_emit import EmitComponent from ansys.aedt.core.modeler.circuits.primitives_emit import EmitComponents @@ -1620,3 +1622,78 @@ def test_nodes_from_top_level(nodes, nodes_tested, results, results_of_get_props nodes_untested = [node for node in all_nodes if (node not in nodes_tested)] assert len(nodes_tested) > len(nodes_untested) + + @pytest.mark.skipif(config["desktopVersion"] < "2022.2", reason="Skipped on versions earlier than 2025 R2.") + def test_27_components_catalog(self, add_app): + self.aedtapp = add_app(project_name="catalog-list", application=Emit) + comp_list = self.aedtapp.modeler.components.components_catalog["LTE"] + assert len(comp_list) == 14 + assert comp_list[12].name == "LTE BTS" + assert comp_list[13].name == "LTE Mobile Station" + + @pytest.mark.skipif(config["desktopVersion"] < "2025.2", reason="Skipped on versions earlier than 2025 R2.") + def test_28_create_component(self, add_app): + self.aedtapp = add_app(project_name="create_component", application=Emit) + self.aedtapp.logger.info = MagicMock() + new_radio = self.aedtapp.schematic.create_component("MICS") + assert new_radio == 3 + self.aedtapp.logger.info.assert_called_with( + r"Using component 'MICS' from library 'Radios\Commercial Unlicensed Systems\Medical' for type 'MICS'." + ) + with pytest.raises(TypeError) as e: + self.aedtapp.schematic.create_component() + assert "EmitSchematic.create_component() missing 1 required positional argument: 'component_type'" in str( + e.value + ) + with pytest.raises(RuntimeError) as e: + self.aedtapp.schematic.create_component("WrongComponent") + assert ( + "Failed to create component of type 'WrongComponent': No component found for type 'WrongComponent'." + ) in str(e.value) + with pytest.raises(RuntimeError) as e: + self.aedtapp.schematic.create_component("lte") + assert ( + "Failed to create component of type 'lte': Multiple components found for type 'lte', but no exact match." + ) in str(e.value) + + @pytest.mark.skipif(config["desktopVersion"] < "2025.2", reason="Skipped on versions earlier than 2025 R2.") + def test_29_create_radio_antenna(self, add_app): + self.aedtapp = add_app(project_name="radio_antenna", application=Emit) + new_radio, new_antenna = self.aedtapp.schematic.create_radio_antenna("MICS", "Radio", "Antenna") + assert new_radio == 3 + assert new_antenna == 4 + with pytest.raises(RuntimeError) as e: + self.aedtapp.schematic.create_radio_antenna("WrongComponent", "Radio", "Antenna") + assert "Failed to create radio of type 'WrongComponent'" in str(e.value) + + @pytest.mark.skipif(config["desktopVersion"] < "2025.2", reason="Skipped on versions earlier than 2025 R2.") + def test_30_connect_components(self, add_app): + self.aedtapp = add_app(project_name="connect_components", application=Emit) + self.aedtapp.logger.info = MagicMock() + new_radio = self.aedtapp.schematic.create_component("MICS") + new_antenna = self.aedtapp.schematic.create_component("Antenna") + self.aedtapp.schematic.connect_components(new_radio, new_antenna) + self.aedtapp.logger.info.assert_called_with("Successfully connected components 'MICS' and 'Antenna'.") + with pytest.raises(RuntimeError) as e: + self.aedtapp.schematic.connect_components(new_radio, 6) + assert ( + "Failed to connect components '3' and '6': Failed to retrieve properties for component '6': " + "Failed to execute gRPC AEDT command: GetEmitNodeProperties" + ) in str(e.value) + + @pytest.mark.skipif(config["desktopVersion"] < "2025.2", reason="Skipped on versions earlier than 2025 R2.") + def test_31_get_component_properties(self, add_app): + self.aedtapp = add_app(project_name="component_properties", application=Emit) + new_radio = self.aedtapp.schematic.create_component("MICS") + new_radio_props = self.aedtapp.schematic.get_component_properties(new_radio) + assert isinstance(new_radio_props, dict) + assert new_radio_props["Name"] == "MICS" + assert new_radio_props["Type"] == "RadioNode" + assert new_radio_props["IconAlias"] == ":Radio" + new_radio_name = self.aedtapp.schematic.get_component_properties(new_radio, "Name") + assert new_radio_name == "MICS" + with pytest.raises(RuntimeError) as e: + self.aedtapp.schematic.get_component_properties(new_radio, "WrongProp") + assert ("Failed to retrieve properties for component '3': \"Property key 'WrongProp' not found.\"") in str( + e.value + ) From cfbd191e37c3751dde67b8a1eac4fcba438d6147 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Mon, 9 Jun 2025 19:46:21 +0000 Subject: [PATCH 79/86] chore: adding changelog file 6249.added.md [dependabot-skip] --- doc/changelog.d/6249.added.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/6249.added.md diff --git a/doc/changelog.d/6249.added.md b/doc/changelog.d/6249.added.md new file mode 100644 index 00000000000..8a6130ddc65 --- /dev/null +++ b/doc/changelog.d/6249.added.md @@ -0,0 +1 @@ +emit_schematic_feature \ No newline at end of file From 6e749c8e14d42caf381e2ec9b0cf99b5d16acb0a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Jun 2025 19:46:23 +0000 Subject: [PATCH 80/86] CHORE: Auto fixes from pre-commit hooks --- .../emit_core/nodes/generated/__init__.py | 318 ++++++++++-------- .../emit_core/nodes/generated/amplifier.py | 93 ++--- .../emit_core/nodes/generated/antenna_node.py | 297 ++++++---------- .../nodes/generated/antenna_passband.py | 58 ++-- .../core/emit_core/nodes/generated/band.py | 215 +++++------- .../emit_core/nodes/generated/band_folder.py | 16 +- .../nodes/generated/band_trace_node.py | 79 ++--- .../core/emit_core/nodes/generated/cable.py | 65 ++-- .../emit_core/nodes/generated/cad_node.py | 209 ++++-------- .../nodes/generated/categories_view_node.py | 16 +- .../emit_core/nodes/generated/circulator.py | 93 ++--- .../nodes/generated/coupling_link_node.py | 26 +- .../nodes/generated/coupling_trace_node.py | 117 +++---- .../nodes/generated/couplings_node.py | 30 +- .../nodes/generated/custom_coupling_node.py | 52 ++- .../nodes/generated/emi_plot_marker_node.py | 115 +++---- .../nodes/generated/emit_scene_node.py | 33 +- .../nodes/generated/erceg_coupling_node.py | 137 +++----- .../core/emit_core/nodes/generated/filter.py | 143 +++----- .../nodes/generated/five_g_channel_model.py | 153 +++------ .../nodes/generated/hata_coupling_node.py | 137 +++----- .../indoor_propagation_coupling_node.py | 147 +++----- .../emit_core/nodes/generated/isolator.py | 93 ++--- .../generated/log_distance_coupling_node.py | 143 +++----- .../nodes/generated/mplex_band_trace_node.py | 75 ++--- .../emit_core/nodes/generated/multiplexer.py | 49 ++- .../nodes/generated/multiplexer_band.py | 85 ++--- .../nodes/generated/outboard_trace_node.py | 79 ++--- .../parametric_coupling_trace_node.py | 79 ++--- .../nodes/generated/plot_marker_node.py | 129 +++---- .../emit_core/nodes/generated/plot_node.py | 161 ++++----- .../nodes/generated/power_divider.py | 95 ++---- .../nodes/generated/power_trace_node.py | 75 ++--- .../nodes/generated/profile_trace_node.py | 71 ++-- .../propagation_loss_coupling_node.py | 133 +++----- .../emit_core/nodes/generated/radio_node.py | 28 +- .../nodes/generated/read_only_amplifier.py | 17 +- .../nodes/generated/read_only_antenna_node.py | 41 +-- .../generated/read_only_antenna_passband.py | 16 +- .../nodes/generated/read_only_band.py | 27 +- .../nodes/generated/read_only_band_folder.py | 16 +- .../nodes/generated/read_only_cable.py | 17 +- .../nodes/generated/read_only_cad_node.py | 29 +- .../nodes/generated/read_only_circulator.py | 21 +- .../generated/read_only_coupling_link_node.py | 18 +- .../generated/read_only_couplings_node.py | 16 +- .../read_only_custom_coupling_node.py | 26 +- .../generated/read_only_emit_scene_node.py | 17 +- .../read_only_erceg_coupling_node.py | 27 +- .../nodes/generated/read_only_filter.py | 17 +- .../read_only_five_g_channel_model.py | 31 +- .../generated/read_only_hata_coupling_node.py | 27 +- ...d_only_indoor_propagation_coupling_node.py | 33 +- .../nodes/generated/read_only_isolator.py | 21 +- .../read_only_log_distance_coupling_node.py | 27 +- .../nodes/generated/read_only_multiplexer.py | 19 +- .../generated/read_only_multiplexer_band.py | 17 +- .../generated/read_only_power_divider.py | 21 +- ...ead_only_propagation_loss_coupling_node.py | 27 +- .../nodes/generated/read_only_radio_node.py | 24 +- .../nodes/generated/read_only_rx_meas_node.py | 31 +- .../read_only_rx_mixer_product_node.py | 17 +- .../generated/read_only_rx_saturation_node.py | 16 +- .../read_only_rx_selectivity_node.py | 18 +- .../nodes/generated/read_only_rx_spur_node.py | 23 +- .../read_only_rx_susceptibility_prof_node.py | 21 +- .../generated/read_only_sampling_node.py | 23 +- .../generated/read_only_scene_group_node.py | 21 +- .../read_only_solution_coupling_node.py | 22 +- .../generated/read_only_solutions_node.py | 18 +- .../nodes/generated/read_only_terminator.py | 17 +- .../read_only_touchstone_coupling_node.py | 24 +- .../nodes/generated/read_only_tr_switch.py | 21 +- ...ad_only_two_ray_path_loss_coupling_node.py | 27 +- .../read_only_tx_bb_emission_node.py | 23 +- .../generated/read_only_tx_harmonic_node.py | 17 +- .../nodes/generated/read_only_tx_meas_node.py | 20 +- .../read_only_tx_nb_emission_node.py | 17 +- ...read_only_tx_spectral_prof_emitter_node.py | 20 +- .../read_only_tx_spectral_prof_node.py | 23 +- .../nodes/generated/read_only_tx_spur_node.py | 23 +- .../read_only_walfisch_coupling_node.py | 27 +- .../nodes/generated/read_only_waveform.py | 23 +- .../nodes/generated/result_plot_node.py | 167 ++++----- .../emit_core/nodes/generated/rx_meas_node.py | 127 +++---- .../nodes/generated/rx_mixer_product_node.py | 113 +++---- .../nodes/generated/rx_saturation_node.py | 20 +- .../nodes/generated/rx_selectivity_node.py | 26 +- .../emit_core/nodes/generated/rx_spur_node.py | 31 +- .../generated/rx_susceptibility_prof_node.py | 105 +++--- .../nodes/generated/sampling_node.py | 47 ++- .../nodes/generated/scene_group_node.py | 59 ++-- .../nodes/generated/selectivity_trace_node.py | 71 ++-- .../nodes/generated/solution_coupling_node.py | 38 +-- .../nodes/generated/solutions_node.py | 22 +- .../nodes/generated/spur_trace_node.py | 75 ++--- .../emit_core/nodes/generated/terminator.py | 45 +-- .../nodes/generated/test_noise_trace_node.py | 121 +++---- .../nodes/generated/top_level_simulation.py | 16 +- .../generated/touchstone_coupling_node.py | 56 ++- .../emit_core/nodes/generated/tr_switch.py | 95 ++---- .../nodes/generated/tr_switch_trace_node.py | 79 ++--- .../nodes/generated/tunable_trace_node.py | 85 ++--- .../two_ray_path_loss_coupling_node.py | 143 +++----- .../nodes/generated/two_tone_trace_node.py | 121 +++---- .../nodes/generated/tx_bb_emission_node.py | 37 +- .../nodes/generated/tx_harmonic_node.py | 27 +- .../emit_core/nodes/generated/tx_meas_node.py | 44 ++- .../nodes/generated/tx_nb_emission_node.py | 33 +- .../tx_spectral_prof_emitter_node.py | 86 ++--- .../nodes/generated/tx_spectral_prof_node.py | 153 ++++----- .../emit_core/nodes/generated/tx_spur_node.py | 31 +- .../nodes/generated/walfisch_coupling_node.py | 167 ++++----- .../emit_core/nodes/generated/waveform.py | 167 ++++----- 114 files changed, 2978 insertions(+), 4317 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py index 255b60e62e6..1cb32f85690 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/__init__.py @@ -1,11 +1,35 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + from .amplifier import Amplifier from .antenna_node import AntennaNode from .antenna_passband import AntennaPassband from .band import Band from .band_folder import BandFolder from .band_trace_node import BandTraceNode -from .cad_node import CADNode from .cable import Cable +from .cad_node import CADNode from .categories_view_node import CategoriesViewNode from .circulator import Circulator from .coupling_link_node import CouplingLinkNode @@ -33,44 +57,13 @@ from .profile_trace_node import ProfileTraceNode from .propagation_loss_coupling_node import PropagationLossCouplingNode from .radio_node import RadioNode -from .result_plot_node import ResultPlotNode -from .rx_meas_node import RxMeasNode -from .rx_mixer_product_node import RxMixerProductNode -from .rx_saturation_node import RxSaturationNode -from .rx_selectivity_node import RxSelectivityNode -from .rx_spur_node import RxSpurNode -from .rx_susceptibility_prof_node import RxSusceptibilityProfNode -from .sampling_node import SamplingNode -from .scene_group_node import SceneGroupNode -from .selectivity_trace_node import SelectivityTraceNode -from .solution_coupling_node import SolutionCouplingNode -from .solutions_node import SolutionsNode -from .spur_trace_node import SpurTraceNode -from .tr_switch import TR_Switch -from .tr_switch_trace_node import TRSwitchTraceNode -from .terminator import Terminator -from .test_noise_trace_node import TestNoiseTraceNode -from .top_level_simulation import TopLevelSimulation -from .touchstone_coupling_node import TouchstoneCouplingNode -from .tunable_trace_node import TunableTraceNode -from .two_ray_path_loss_coupling_node import TwoRayPathLossCouplingNode -from .two_tone_trace_node import TwoToneTraceNode -from .tx_bb_emission_node import TxBbEmissionNode -from .tx_harmonic_node import TxHarmonicNode -from .tx_meas_node import TxMeasNode -from .tx_nb_emission_node import TxNbEmissionNode -from .tx_spectral_prof_emitter_node import TxSpectralProfEmitterNode -from .tx_spectral_prof_node import TxSpectralProfNode -from .tx_spur_node import TxSpurNode -from .walfisch_coupling_node import WalfischCouplingNode -from .waveform import Waveform from .read_only_amplifier import ReadOnlyAmplifier from .read_only_antenna_node import ReadOnlyAntennaNode from .read_only_antenna_passband import ReadOnlyAntennaPassband from .read_only_band import ReadOnlyBand from .read_only_band_folder import ReadOnlyBandFolder -from .read_only_cad_node import ReadOnlyCADNode from .read_only_cable import ReadOnlyCable +from .read_only_cad_node import ReadOnlyCADNode from .read_only_circulator import ReadOnlyCirculator from .read_only_coupling_link_node import ReadOnlyCouplingLinkNode from .read_only_couplings_node import ReadOnlyCouplingsNode @@ -98,9 +91,9 @@ from .read_only_scene_group_node import ReadOnlySceneGroupNode from .read_only_solution_coupling_node import ReadOnlySolutionCouplingNode from .read_only_solutions_node import ReadOnlySolutionsNode -from .read_only_tr_switch import ReadOnlyTR_Switch from .read_only_terminator import ReadOnlyTerminator from .read_only_touchstone_coupling_node import ReadOnlyTouchstoneCouplingNode +from .read_only_tr_switch import ReadOnlyTR_Switch from .read_only_two_ray_path_loss_coupling_node import ReadOnlyTwoRayPathLossCouplingNode from .read_only_tx_bb_emission_node import ReadOnlyTxBbEmissionNode from .read_only_tx_harmonic_node import ReadOnlyTxHarmonicNode @@ -111,119 +104,150 @@ from .read_only_tx_spur_node import ReadOnlyTxSpurNode from .read_only_walfisch_coupling_node import ReadOnlyWalfischCouplingNode from .read_only_waveform import ReadOnlyWaveform +from .result_plot_node import ResultPlotNode +from .rx_meas_node import RxMeasNode +from .rx_mixer_product_node import RxMixerProductNode +from .rx_saturation_node import RxSaturationNode +from .rx_selectivity_node import RxSelectivityNode +from .rx_spur_node import RxSpurNode +from .rx_susceptibility_prof_node import RxSusceptibilityProfNode +from .sampling_node import SamplingNode +from .scene_group_node import SceneGroupNode +from .selectivity_trace_node import SelectivityTraceNode +from .solution_coupling_node import SolutionCouplingNode +from .solutions_node import SolutionsNode +from .spur_trace_node import SpurTraceNode +from .terminator import Terminator +from .test_noise_trace_node import TestNoiseTraceNode +from .top_level_simulation import TopLevelSimulation +from .touchstone_coupling_node import TouchstoneCouplingNode +from .tr_switch import TR_Switch +from .tr_switch_trace_node import TRSwitchTraceNode +from .tunable_trace_node import TunableTraceNode +from .two_ray_path_loss_coupling_node import TwoRayPathLossCouplingNode +from .two_tone_trace_node import TwoToneTraceNode +from .tx_bb_emission_node import TxBbEmissionNode +from .tx_harmonic_node import TxHarmonicNode +from .tx_meas_node import TxMeasNode +from .tx_nb_emission_node import TxNbEmissionNode +from .tx_spectral_prof_emitter_node import TxSpectralProfEmitterNode +from .tx_spectral_prof_node import TxSpectralProfNode +from .tx_spur_node import TxSpurNode +from .walfisch_coupling_node import WalfischCouplingNode +from .waveform import Waveform __all__ = [ - 'Amplifier', - 'AntennaNode', - 'AntennaPassband', - 'Band', - 'BandFolder', - 'BandTraceNode', - 'CADNode', - 'Cable', - 'CategoriesViewNode', - 'Circulator', - 'CouplingLinkNode', - 'CouplingTraceNode', - 'CouplingsNode', - 'CustomCouplingNode', - 'EmiPlotMarkerNode', - 'EmitSceneNode', - 'ErcegCouplingNode', - 'Filter', - 'FiveGChannelModel', - 'HataCouplingNode', - 'IndoorPropagationCouplingNode', - 'Isolator', - 'LogDistanceCouplingNode', - 'MPlexBandTraceNode', - 'Multiplexer', - 'MultiplexerBand', - 'OutboardTraceNode', - 'ParametricCouplingTraceNode', - 'PlotMarkerNode', - 'PlotNode', - 'PowerDivider', - 'PowerTraceNode', - 'ProfileTraceNode', - 'PropagationLossCouplingNode', - 'RadioNode', - 'ResultPlotNode', - 'RxMeasNode', - 'RxMixerProductNode', - 'RxSaturationNode', - 'RxSelectivityNode', - 'RxSpurNode', - 'RxSusceptibilityProfNode', - 'SamplingNode', - 'SceneGroupNode', - 'SelectivityTraceNode', - 'SolutionCouplingNode', - 'SolutionsNode', - 'SpurTraceNode', - 'TR_Switch', - 'TRSwitchTraceNode', - 'Terminator', - 'TestNoiseTraceNode', - 'TopLevelSimulation', - 'TouchstoneCouplingNode', - 'TunableTraceNode', - 'TwoRayPathLossCouplingNode', - 'TwoToneTraceNode', - 'TxBbEmissionNode', - 'TxHarmonicNode', - 'TxMeasNode', - 'TxNbEmissionNode', - 'TxSpectralProfEmitterNode', - 'TxSpectralProfNode', - 'TxSpurNode', - 'WalfischCouplingNode', - 'Waveform', - 'ReadOnlyAmplifier', - 'ReadOnlyAntennaNode', - 'ReadOnlyAntennaPassband', - 'ReadOnlyBand', - 'ReadOnlyBandFolder', - 'ReadOnlyCADNode', - 'ReadOnlyCable', - 'ReadOnlyCirculator', - 'ReadOnlyCouplingLinkNode', - 'ReadOnlyCouplingsNode', - 'ReadOnlyCustomCouplingNode', - 'ReadOnlyEmitSceneNode', - 'ReadOnlyErcegCouplingNode', - 'ReadOnlyFilter', - 'ReadOnlyFiveGChannelModel', - 'ReadOnlyHataCouplingNode', - 'ReadOnlyIndoorPropagationCouplingNode', - 'ReadOnlyIsolator', - 'ReadOnlyLogDistanceCouplingNode', - 'ReadOnlyMultiplexer', - 'ReadOnlyMultiplexerBand', - 'ReadOnlyPowerDivider', - 'ReadOnlyPropagationLossCouplingNode', - 'ReadOnlyRadioNode', - 'ReadOnlyRxMeasNode', - 'ReadOnlyRxMixerProductNode', - 'ReadOnlyRxSaturationNode', - 'ReadOnlyRxSelectivityNode', - 'ReadOnlyRxSpurNode', - 'ReadOnlyRxSusceptibilityProfNode', - 'ReadOnlySamplingNode', - 'ReadOnlySceneGroupNode', - 'ReadOnlySolutionCouplingNode', - 'ReadOnlySolutionsNode', - 'ReadOnlyTR_Switch', - 'ReadOnlyTerminator', - 'ReadOnlyTouchstoneCouplingNode', - 'ReadOnlyTwoRayPathLossCouplingNode', - 'ReadOnlyTxBbEmissionNode', - 'ReadOnlyTxHarmonicNode', - 'ReadOnlyTxMeasNode', - 'ReadOnlyTxNbEmissionNode', - 'ReadOnlyTxSpectralProfEmitterNode', - 'ReadOnlyTxSpectralProfNode', - 'ReadOnlyTxSpurNode', - 'ReadOnlyWalfischCouplingNode', - 'ReadOnlyWaveform', + "Amplifier", + "AntennaNode", + "AntennaPassband", + "Band", + "BandFolder", + "BandTraceNode", + "CADNode", + "Cable", + "CategoriesViewNode", + "Circulator", + "CouplingLinkNode", + "CouplingTraceNode", + "CouplingsNode", + "CustomCouplingNode", + "EmiPlotMarkerNode", + "EmitSceneNode", + "ErcegCouplingNode", + "Filter", + "FiveGChannelModel", + "HataCouplingNode", + "IndoorPropagationCouplingNode", + "Isolator", + "LogDistanceCouplingNode", + "MPlexBandTraceNode", + "Multiplexer", + "MultiplexerBand", + "OutboardTraceNode", + "ParametricCouplingTraceNode", + "PlotMarkerNode", + "PlotNode", + "PowerDivider", + "PowerTraceNode", + "ProfileTraceNode", + "PropagationLossCouplingNode", + "RadioNode", + "ResultPlotNode", + "RxMeasNode", + "RxMixerProductNode", + "RxSaturationNode", + "RxSelectivityNode", + "RxSpurNode", + "RxSusceptibilityProfNode", + "SamplingNode", + "SceneGroupNode", + "SelectivityTraceNode", + "SolutionCouplingNode", + "SolutionsNode", + "SpurTraceNode", + "TR_Switch", + "TRSwitchTraceNode", + "Terminator", + "TestNoiseTraceNode", + "TopLevelSimulation", + "TouchstoneCouplingNode", + "TunableTraceNode", + "TwoRayPathLossCouplingNode", + "TwoToneTraceNode", + "TxBbEmissionNode", + "TxHarmonicNode", + "TxMeasNode", + "TxNbEmissionNode", + "TxSpectralProfEmitterNode", + "TxSpectralProfNode", + "TxSpurNode", + "WalfischCouplingNode", + "Waveform", + "ReadOnlyAmplifier", + "ReadOnlyAntennaNode", + "ReadOnlyAntennaPassband", + "ReadOnlyBand", + "ReadOnlyBandFolder", + "ReadOnlyCADNode", + "ReadOnlyCable", + "ReadOnlyCirculator", + "ReadOnlyCouplingLinkNode", + "ReadOnlyCouplingsNode", + "ReadOnlyCustomCouplingNode", + "ReadOnlyEmitSceneNode", + "ReadOnlyErcegCouplingNode", + "ReadOnlyFilter", + "ReadOnlyFiveGChannelModel", + "ReadOnlyHataCouplingNode", + "ReadOnlyIndoorPropagationCouplingNode", + "ReadOnlyIsolator", + "ReadOnlyLogDistanceCouplingNode", + "ReadOnlyMultiplexer", + "ReadOnlyMultiplexerBand", + "ReadOnlyPowerDivider", + "ReadOnlyPropagationLossCouplingNode", + "ReadOnlyRadioNode", + "ReadOnlyRxMeasNode", + "ReadOnlyRxMixerProductNode", + "ReadOnlyRxSaturationNode", + "ReadOnlyRxSelectivityNode", + "ReadOnlyRxSpurNode", + "ReadOnlyRxSusceptibilityProfNode", + "ReadOnlySamplingNode", + "ReadOnlySceneGroupNode", + "ReadOnlySolutionCouplingNode", + "ReadOnlySolutionsNode", + "ReadOnlyTR_Switch", + "ReadOnlyTerminator", + "ReadOnlyTouchstoneCouplingNode", + "ReadOnlyTwoRayPathLossCouplingNode", + "ReadOnlyTxBbEmissionNode", + "ReadOnlyTxHarmonicNode", + "ReadOnlyTxMeasNode", + "ReadOnlyTxNbEmissionNode", + "ReadOnlyTxSpectralProfEmitterNode", + "ReadOnlyTxSpectralProfNode", + "ReadOnlyTxSpurNode", + "ReadOnlyWalfischCouplingNode", + "ReadOnlyWaveform", ] diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/amplifier.py index 87b2db36c76..a2b80a1a794 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/amplifier.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Amplifier(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -52,9 +56,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -66,10 +68,8 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: @@ -79,9 +79,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class AmplifierTypeOption(Enum): TRANSMIT_AMPLIFIER = "Transmit Amplifier" @@ -96,9 +94,7 @@ def amplifier_type(self) -> AmplifierTypeOption: @amplifier_type.setter def amplifier_type(self, value: AmplifierTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplifier Type={value.value}"]) @property def gain(self) -> float: @@ -110,10 +106,8 @@ def gain(self) -> float: return float(val) @gain.setter - def gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Gain={value}"]) + def gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Gain={value}"]) @property def center_frequency(self) -> float: @@ -126,11 +120,9 @@ def center_frequency(self) -> float: return float(val) @center_frequency.setter - def center_frequency(self, value : float|str): + def center_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Center Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Frequency={value}"]) @property def bandwidth(self) -> float: @@ -143,11 +135,9 @@ def bandwidth(self) -> float: return float(val) @bandwidth.setter - def bandwidth(self, value : float|str): + def bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth={value}"]) @property def noise_figure(self) -> float: @@ -159,10 +149,8 @@ def noise_figure(self) -> float: return float(val) @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def saturation_level(self) -> float: @@ -175,11 +163,9 @@ def saturation_level(self) -> float: return float(val) @saturation_level.setter - def saturation_level(self, value : float|str): + def saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) @property def p1_db_point_ref_input(self) -> float: @@ -192,11 +178,9 @@ def p1_db_point_ref_input(self) -> float: return float(val) @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value : float|str): + def p1_db_point_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input={value}"]) @property def ip3_ref_input(self) -> float: @@ -209,11 +193,9 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def shape_factor(self) -> float: @@ -225,10 +207,8 @@ def shape_factor(self) -> float: return float(val) @shape_factor.setter - def shape_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Shape Factor={value}"]) + def shape_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) @property def reverse_isolation(self) -> float: @@ -240,10 +220,8 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -256,7 +234,4 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py index 2b306751766..cc198a0a33f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class AntennaNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,9 +62,7 @@ def tags(self) -> str: @tags.setter def tags(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tags={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tags={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -72,13 +74,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return val == true @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -91,9 +93,7 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -106,9 +106,7 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -126,9 +124,7 @@ def orientation_mode(self) -> OrientationModeOption: @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -141,9 +137,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -156,9 +150,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def position_defined(self) -> bool: @@ -167,13 +159,11 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return (val == true) + return val == true @position_defined.setter def position_defined(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position Defined={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Defined={value}"]) @property def antenna_temperature(self) -> float: @@ -185,10 +175,8 @@ def antenna_temperature(self) -> float: return float(val) @antenna_temperature.setter - def antenna_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna Temperature={value}"]) + def antenna_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna Temperature={value}"]) @property def type(self): @@ -198,9 +186,7 @@ def type(self): @type.setter def type(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value}"]) @property def antenna_file(self) -> str: @@ -210,9 +196,7 @@ def antenna_file(self) -> str: @antenna_file.setter def antenna_file(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna File={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna File={value}"]) @property def project_name(self) -> str: @@ -225,9 +209,7 @@ def project_name(self) -> str: @project_name.setter def project_name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Project Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Project Name={value}"]) @property def peak_gain(self) -> float: @@ -239,10 +221,8 @@ def peak_gain(self) -> float: return float(val) @peak_gain.setter - def peak_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Peak Gain={value}"]) + def peak_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Gain={value}"]) class BoresightOption(Enum): XAXIS = "+X Axis" @@ -258,9 +238,7 @@ def boresight(self) -> BoresightOption: @boresight.setter def boresight(self, value: BoresightOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Boresight={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Boresight={value.value}"]) @property def vertical_beamwidth(self) -> float: @@ -272,10 +250,8 @@ def vertical_beamwidth(self) -> float: return float(val) @vertical_beamwidth.setter - def vertical_beamwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Beamwidth={value}"]) + def vertical_beamwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Beamwidth={value}"]) @property def horizontal_beamwidth(self) -> float: @@ -287,10 +263,8 @@ def horizontal_beamwidth(self) -> float: return float(val) @horizontal_beamwidth.setter - def horizontal_beamwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Beamwidth={value}"]) + def horizontal_beamwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Horizontal Beamwidth={value}"]) @property def extra_sidelobe(self) -> bool: @@ -299,13 +273,11 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return (val == true) + return val == true @extra_sidelobe.setter def extra_sidelobe(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Extra Sidelobe={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Extra Sidelobe={value}"]) @property def first_sidelobe_level(self) -> float: @@ -320,10 +292,8 @@ def first_sidelobe_level(self) -> float: return float(val) @first_sidelobe_level.setter - def first_sidelobe_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Level={value}"]) + def first_sidelobe_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Level={value}"]) @property def first_sidelobe_vert_bw(self) -> float: @@ -335,10 +305,8 @@ def first_sidelobe_vert_bw(self) -> float: return float(val) @first_sidelobe_vert_bw.setter - def first_sidelobe_vert_bw(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Vert. BW={value}"]) + def first_sidelobe_vert_bw(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Vert. BW={value}"]) @property def first_sidelobe_hor_bw(self) -> float: @@ -350,10 +318,8 @@ def first_sidelobe_hor_bw(self) -> float: return float(val) @first_sidelobe_hor_bw.setter - def first_sidelobe_hor_bw(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First Sidelobe Hor. BW={value}"]) + def first_sidelobe_hor_bw(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First Sidelobe Hor. BW={value}"]) @property def outerbacklobe_level(self) -> float: @@ -368,10 +334,8 @@ def outerbacklobe_level(self) -> float: return float(val) @outerbacklobe_level.setter - def outerbacklobe_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Outer/Backlobe Level={value}"]) + def outerbacklobe_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Outer/Backlobe Level={value}"]) @property def resonant_frequency(self) -> float: @@ -387,11 +351,9 @@ def resonant_frequency(self) -> float: return float(val) @resonant_frequency.setter - def resonant_frequency(self, value : float|str): + def resonant_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Resonant Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resonant Frequency={value}"]) @property def slot_length(self) -> float: @@ -404,11 +366,9 @@ def slot_length(self) -> float: return float(val) @slot_length.setter - def slot_length(self, value : float|str): + def slot_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Slot Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Slot Length={value}"]) @property def mouth_width(self) -> float: @@ -421,11 +381,9 @@ def mouth_width(self) -> float: return float(val) @mouth_width.setter - def mouth_width(self, value : float|str): + def mouth_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Width={value}"]) @property def mouth_height(self) -> float: @@ -438,11 +396,9 @@ def mouth_height(self) -> float: return float(val) @mouth_height.setter - def mouth_height(self, value : float|str): + def mouth_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Height={value}"]) @property def waveguide_width(self) -> float: @@ -458,11 +414,9 @@ def waveguide_width(self) -> float: return float(val) @waveguide_width.setter - def waveguide_width(self, value : float|str): + def waveguide_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Waveguide Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveguide Width={value}"]) @property def width_flare_half_angle(self) -> float: @@ -477,10 +431,8 @@ def width_flare_half_angle(self) -> float: return float(val) @width_flare_half_angle.setter - def width_flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Width Flare Half-angle={value}"]) + def width_flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width Flare Half-angle={value}"]) @property def height_flare_half_angle(self) -> float: @@ -495,10 +447,8 @@ def height_flare_half_angle(self) -> float: return float(val) @height_flare_half_angle.setter - def height_flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Height Flare Half-angle={value}"]) + def height_flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height Flare Half-angle={value}"]) @property def mouth_diameter(self) -> float: @@ -511,11 +461,9 @@ def mouth_diameter(self) -> float: return float(val) @mouth_diameter.setter - def mouth_diameter(self, value : float|str): + def mouth_diameter(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mouth Diameter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mouth Diameter={value}"]) @property def flare_half_angle(self) -> float: @@ -530,10 +478,8 @@ def flare_half_angle(self) -> float: return float(val) @flare_half_angle.setter - def flare_half_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Flare Half-angle={value}"]) + def flare_half_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flare Half-angle={value}"]) @property def vswr(self) -> float: @@ -548,10 +494,8 @@ def vswr(self) -> float: return float(val) @vswr.setter - def vswr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"VSWR={value}"]) + def vswr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) class AntennaPolarizationOption(Enum): VERTICAL = "Vertical" @@ -568,9 +512,9 @@ def antenna_polarization(self) -> AntennaPolarizationOption: @antenna_polarization.setter def antenna_polarization(self, value: AntennaPolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna Polarization={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Antenna Polarization={value.value}"] + ) class CrossDipoleModeOption(Enum): FREESTANDING = "Freestanding" @@ -585,9 +529,7 @@ def cross_dipole_mode(self) -> CrossDipoleModeOption: @cross_dipole_mode.setter def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Cross Dipole Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Cross Dipole Mode={value.value}"]) class CrossDipolePolarizationOption(Enum): RHCP = "RHCP" @@ -602,9 +544,9 @@ def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: @cross_dipole_polarization.setter def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Cross Dipole Polarization={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Cross Dipole Polarization={value.value}"] + ) @property def override_height(self) -> bool: @@ -616,13 +558,11 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return (val == true) + return val == true @override_height.setter def override_height(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Override Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Override Height={value}"]) @property def offset_height(self) -> float: @@ -637,11 +577,9 @@ def offset_height(self) -> float: return float(val) @offset_height.setter - def offset_height(self, value : float|str): + def offset_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Offset Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset Height={value}"]) @property def auto_height_offset(self) -> bool: @@ -653,13 +591,11 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return (val == true) + return val == true @auto_height_offset.setter def auto_height_offset(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Auto Height Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Auto Height Offset={value}"]) @property def conform__adjust_antenna(self) -> bool: @@ -668,13 +604,11 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return (val == true) + return val == true @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform / Adjust Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Conform / Adjust Antenna={value}"]) @property def element_offset(self): @@ -689,9 +623,7 @@ def element_offset(self): @element_offset.setter def element_offset(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Element Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Element Offset={value}"]) class ConformtoPlatformOption(Enum): NONE = "None" @@ -707,9 +639,9 @@ def conform_to_platform(self) -> ConformtoPlatformOption: @conform_to_platform.setter def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform to Platform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Conform to Platform={value.value}"] + ) class ReferencePlaneOption(Enum): XY_PLANE = "XY Plane" @@ -725,9 +657,7 @@ def reference_plane(self) -> ReferencePlaneOption: @reference_plane.setter def reference_plane(self, value: ReferencePlaneOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reference Plane={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reference Plane={value.value}"]) @property def conform_element_orientation(self) -> bool: @@ -739,13 +669,13 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return (val == true) + return val == true @conform_element_orientation.setter def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform Element Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Conform Element Orientation={value}"] + ) @property def show_axes(self) -> bool: @@ -754,13 +684,11 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return val == true @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def show_icon(self) -> bool: @@ -769,13 +697,11 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return (val == true) + return val == true @show_icon.setter def show_icon(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Icon={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Icon={value}"]) @property def size(self) -> float: @@ -787,10 +713,8 @@ def size(self) -> float: return float(val) @size.setter - def size(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Size={value}"]) + def size(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Size={value}"]) @property def color(self): @@ -803,9 +727,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def el_sample_interval(self) -> float: @@ -826,7 +748,7 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return (val == true) + return val == true @property def frequency_domain(self): @@ -909,9 +831,9 @@ def swe_mode_truncation(self) -> SWEModeTruncationOption: @swe_mode_truncation.setter def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SWE Mode Truncation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"SWE Mode Truncation={value.value}"] + ) @property def max_n_index(self) -> int: @@ -924,9 +846,7 @@ def max_n_index(self) -> int: @max_n_index.setter def max_n_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max N Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max N Index={value}"]) @property def notes(self) -> str: @@ -936,9 +856,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) @property def show_composite_passband(self) -> bool: @@ -947,13 +865,11 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return (val == true) + return val == true @show_composite_passband.setter def show_composite_passband(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Composite Passband={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Composite Passband={value}"]) @property def use_phase_center(self) -> bool: @@ -962,13 +878,11 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return (val == true) + return val == true @use_phase_center.setter def use_phase_center(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Phase Center={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Phase Center={value}"]) @property def coordinate_systems(self) -> str: @@ -996,4 +910,3 @@ def phasecenterorientation(self): """ val = self._get_property("PhaseCenterOrientation") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py index d23697f3925..48ea986c691 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_passband.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class AntennaPassband(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -48,7 +51,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -64,10 +67,8 @@ def passband_loss(self) -> float: return float(val) @passband_loss.setter - def passband_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Passband Loss={value}"]) + def passband_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Passband Loss={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -79,10 +80,8 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out of Band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out of Band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -95,11 +94,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -112,11 +109,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -129,11 +124,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -146,11 +139,9 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def notes(self) -> str: @@ -160,7 +151,4 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/band.py b/src/ansys/aedt/core/emit_core/nodes/generated/band.py index 35489f08f7e..6f1529efb0b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/band.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Band(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -51,9 +55,7 @@ def port(self): @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) @property def use_dd_1494_mode(self) -> bool: @@ -62,13 +64,11 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return (val == true) + return val == true @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use DD-1494 Mode={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use DD-1494 Mode={value}"]) @property def use_emission_designator(self) -> bool: @@ -79,13 +79,11 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return (val == true) + return val == true @use_emission_designator.setter def use_emission_designator(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Emission Designator={value}"]) @property def emission_designator(self) -> str: @@ -98,9 +96,7 @@ def emission_designator(self) -> str: @emission_designator.setter def emission_designator(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Emission Designator={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Emission Designator={value}"]) @property def emission_designator_ch_bw(self) -> float: @@ -125,13 +121,13 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return (val == true) + return val == true @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Override Emission Designator BW={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Override Emission Designator BW={value}"] + ) @property def channel_bandwidth(self) -> float: @@ -144,11 +140,9 @@ def channel_bandwidth(self) -> float: return float(val) @channel_bandwidth.setter - def channel_bandwidth(self, value : float|str): + def channel_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Bandwidth={value}"]) class ModulationOption(Enum): GENERIC = "Generic" @@ -172,9 +166,7 @@ def modulation(self) -> ModulationOption: @modulation.setter def modulation(self, value: ModulationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation={value.value}"]) @property def max_modulating_freq(self) -> float: @@ -187,11 +179,9 @@ def max_modulating_freq(self) -> float: return float(val) @max_modulating_freq.setter - def max_modulating_freq(self, value : float|str): + def max_modulating_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Modulating Freq.={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Modulating Freq.={value}"]) @property def modulation_index(self) -> float: @@ -203,10 +193,8 @@ def modulation_index(self) -> float: return float(val) @modulation_index.setter - def modulation_index(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation Index={value}"]) + def modulation_index(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Index={value}"]) @property def freq_deviation(self) -> float: @@ -219,11 +207,9 @@ def freq_deviation(self) -> float: return float(val) @freq_deviation.setter - def freq_deviation(self, value : float|str): + def freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) @property def bit_rate(self) -> float: @@ -236,11 +222,9 @@ def bit_rate(self) -> float: return float(val) @bit_rate.setter - def bit_rate(self, value : float|str): + def bit_rate(self, value: float | str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bit Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bit Rate={value}"]) @property def sidelobes(self) -> int: @@ -253,9 +237,7 @@ def sidelobes(self) -> int: @sidelobes.setter def sidelobes(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sidelobes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sidelobes={value}"]) @property def freq_deviation(self) -> float: @@ -268,11 +250,9 @@ def freq_deviation(self) -> float: return float(val) @freq_deviation.setter - def freq_deviation(self, value : float|str): + def freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation ={value}"]) class PSKTypeOption(Enum): BPSK = "BPSK" @@ -291,9 +271,7 @@ def psk_type(self) -> PSKTypeOption: @psk_type.setter def psk_type(self, value: PSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"PSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"PSK Type={value.value}"]) class FSKTypeOption(Enum): FSK_2 = "FSK-2" @@ -309,9 +287,7 @@ def fsk_type(self) -> FSKTypeOption: @fsk_type.setter def fsk_type(self, value: FSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FSK Type={value.value}"]) class QAMTypeOption(Enum): QAM_4 = "QAM-4" @@ -329,9 +305,7 @@ def qam_type(self) -> QAMTypeOption: @qam_type.setter def qam_type(self, value: QAMTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"QAM Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"QAM Type={value.value}"]) class APSKTypeOption(Enum): APSK_4 = "APSK-4" @@ -349,9 +323,7 @@ def apsk_type(self) -> APSKTypeOption: @apsk_type.setter def apsk_type(self, value: APSKTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"APSK Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"APSK Type={value.value}"]) @property def start_frequency(self) -> float: @@ -364,11 +336,9 @@ def start_frequency(self) -> float: return float(val) @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -381,11 +351,9 @@ def stop_frequency(self) -> float: return float(val) @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -398,11 +366,9 @@ def channel_spacing(self) -> float: return float(val) @channel_spacing.setter - def channel_spacing(self, value : float|str): + def channel_spacing(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) @property def tx_offset(self) -> float: @@ -415,11 +381,9 @@ def tx_offset(self) -> float: return float(val) @tx_offset.setter - def tx_offset(self, value : float|str): + def tx_offset(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Offset={value}"]) class RadarTypeOption(Enum): CW = "CW" @@ -437,9 +401,7 @@ def radar_type(self) -> RadarTypeOption: @radar_type.setter def radar_type(self, value: RadarTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Radar Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radar Type={value.value}"]) @property def hopping_radar(self) -> bool: @@ -448,13 +410,11 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return (val == true) + return val == true @hopping_radar.setter def hopping_radar(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hopping Radar={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hopping Radar={value}"]) @property def post_october_2020_procurement(self) -> bool: @@ -466,13 +426,13 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return (val == true) + return val == true @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Post October 2020 Procurement={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Post October 2020 Procurement={value}"] + ) @property def hop_range_min_freq(self) -> float: @@ -485,11 +445,9 @@ def hop_range_min_freq(self) -> float: return float(val) @hop_range_min_freq.setter - def hop_range_min_freq(self, value : float|str): + def hop_range_min_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hop Range Min Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Min Freq={value}"]) @property def hop_range_max_freq(self) -> float: @@ -502,11 +460,9 @@ def hop_range_max_freq(self) -> float: return float(val) @hop_range_max_freq.setter - def hop_range_max_freq(self, value : float|str): + def hop_range_max_freq(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Hop Range Max Freq={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Hop Range Max Freq={value}"]) @property def pulse_duration(self) -> float: @@ -519,11 +475,9 @@ def pulse_duration(self) -> float: return float(val) @pulse_duration.setter - def pulse_duration(self, value : float|str): + def pulse_duration(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Duration={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Duration={value}"]) @property def pulse_rise_time(self) -> float: @@ -536,11 +490,9 @@ def pulse_rise_time(self) -> float: return float(val) @pulse_rise_time.setter - def pulse_rise_time(self, value : float|str): + def pulse_rise_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Rise Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Rise Time={value}"]) @property def pulse_fall_time(self) -> float: @@ -553,11 +505,9 @@ def pulse_fall_time(self) -> float: return float(val) @pulse_fall_time.setter - def pulse_fall_time(self, value : float|str): + def pulse_fall_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Fall Time={value}"]) @property def pulse_repetition_rate(self) -> float: @@ -569,10 +519,8 @@ def pulse_repetition_rate(self) -> float: return float(val) @pulse_repetition_rate.setter - def pulse_repetition_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Repetition Rate={value}"]) + def pulse_repetition_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Repetition Rate={value}"]) @property def number_of_chips(self) -> float: @@ -584,10 +532,8 @@ def number_of_chips(self) -> float: return float(val) @number_of_chips.setter - def number_of_chips(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Chips={value}"]) + def number_of_chips(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Chips={value}"]) @property def pulse_compression_ratio(self) -> float: @@ -599,10 +545,8 @@ def pulse_compression_ratio(self) -> float: return float(val) @pulse_compression_ratio.setter - def pulse_compression_ratio(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pulse Compression Ratio={value}"]) + def pulse_compression_ratio(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pulse Compression Ratio={value}"]) @property def fm_chirp_period(self) -> float: @@ -615,11 +559,9 @@ def fm_chirp_period(self) -> float: return float(val) @fm_chirp_period.setter - def fm_chirp_period(self, value : float|str): + def fm_chirp_period(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Chirp Period={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Chirp Period={value}"]) @property def fm_freq_deviation(self) -> float: @@ -634,11 +576,9 @@ def fm_freq_deviation(self) -> float: return float(val) @fm_freq_deviation.setter - def fm_freq_deviation(self, value : float|str): + def fm_freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Freq Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Deviation={value}"]) @property def fm_freq_dev_bandwidth(self) -> float: @@ -654,9 +594,6 @@ def fm_freq_dev_bandwidth(self) -> float: return float(val) @fm_freq_dev_bandwidth.setter - def fm_freq_dev_bandwidth(self, value : float|str): + def fm_freq_dev_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"FM Freq Dev Bandwidth={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"FM Freq Dev Bandwidth={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py b/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py index 25c5a5270e3..528817256e3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/band_folder.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class BandFolder(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -48,4 +51,3 @@ def duplicate(self, new_name: str): def delete(self): """Delete this node""" self._delete() - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py index 05980fc17fb..4c4f65840aa 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class BandTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,9 +62,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) class TxorRxOption(Enum): TX = "Tx" @@ -75,9 +77,7 @@ def tx_or_rx(self) -> TxorRxOption: @tx_or_rx.setter def tx_or_rx(self, value: TxorRxOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx or Rx={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx or Rx={value.value}"]) @property def channel_frequency(self): @@ -87,9 +87,7 @@ def channel_frequency(self): @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: @@ -109,13 +107,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -124,13 +120,11 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: @@ -140,9 +134,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -161,9 +153,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -176,9 +166,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -191,9 +179,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -221,9 +207,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -236,9 +220,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -251,9 +233,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -266,9 +246,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -280,11 +258,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/cable.py index c3b289b2771..199bcf38831 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/cable.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Cable(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -52,9 +56,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -66,10 +68,8 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: @@ -79,9 +79,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -101,9 +99,7 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def length(self) -> float: @@ -116,11 +112,9 @@ def length(self) -> float: return float(val) @length.setter - def length(self, value : float|str): + def length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) @property def loss_per_length(self) -> float: @@ -132,10 +126,8 @@ def loss_per_length(self) -> float: return float(val) @loss_per_length.setter - def loss_per_length(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Loss Per Length={value}"]) + def loss_per_length(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Loss Per Length={value}"]) @property def measurement_length(self) -> float: @@ -148,11 +140,9 @@ def measurement_length(self) -> float: return float(val) @measurement_length.setter - def measurement_length(self, value : float|str): + def measurement_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Length={value}"]) @property def resistive_loss_constant(self) -> float: @@ -164,10 +154,8 @@ def resistive_loss_constant(self) -> float: return float(val) @resistive_loss_constant.setter - def resistive_loss_constant(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Resistive Loss Constant={value}"]) + def resistive_loss_constant(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Resistive Loss Constant={value}"]) @property def dielectric_loss_constant(self) -> float: @@ -179,14 +167,11 @@ def dielectric_loss_constant(self) -> float: return float(val) @dielectric_loss_constant.setter - def dielectric_loss_constant(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Dielectric Loss Constant={value}"]) + def dielectric_loss_constant(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Dielectric Loss Constant={value}"]) @property def warnings(self) -> str: """Warning(s) for this node.""" val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py index 67873f51896..1cbfade403d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class CADNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -80,9 +84,7 @@ def model_type(self) -> ModelTypeOption: @model_type.setter def model_type(self, value: ModelTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Model Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Model Type={value.value}"]) @property def length(self) -> float: @@ -95,11 +97,9 @@ def length(self) -> float: return float(val) @length.setter - def length(self, value : float|str): + def length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Length={value}"]) @property def width(self) -> float: @@ -112,11 +112,9 @@ def width(self) -> float: return float(val) @width.setter - def width(self, value : float|str): + def width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Width={value}"]) @property def height(self) -> float: @@ -129,11 +127,9 @@ def height(self) -> float: return float(val) @height.setter - def height(self, value : float|str): + def height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Height={value}"]) @property def angle(self) -> float: @@ -145,10 +141,8 @@ def angle(self) -> float: return float(val) @angle.setter - def angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Angle={value}"]) + def angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Angle={value}"]) @property def top_side(self) -> float: @@ -161,11 +155,9 @@ def top_side(self) -> float: return float(val) @top_side.setter - def top_side(self, value : float|str): + def top_side(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Top Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Side={value}"]) @property def top_radius(self) -> float: @@ -178,11 +170,9 @@ def top_radius(self) -> float: return float(val) @top_radius.setter - def top_radius(self, value : float|str): + def top_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Top Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Top Radius={value}"]) @property def side(self) -> float: @@ -195,11 +185,9 @@ def side(self) -> float: return float(val) @side.setter - def side(self, value : float|str): + def side(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Side={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Side={value}"]) @property def radius(self) -> float: @@ -212,11 +200,9 @@ def radius(self) -> float: return float(val) @radius.setter - def radius(self, value : float|str): + def radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Radius={value}"]) @property def base_radius(self) -> float: @@ -229,11 +215,9 @@ def base_radius(self) -> float: return float(val) @base_radius.setter - def base_radius(self, value : float|str): + def base_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Radius={value}"]) @property def center_radius(self) -> float: @@ -246,11 +230,9 @@ def center_radius(self) -> float: return float(val) @center_radius.setter - def center_radius(self, value : float|str): + def center_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Center Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Center Radius={value}"]) @property def x_axis_ellipsoid_radius(self) -> float: @@ -263,11 +245,9 @@ def x_axis_ellipsoid_radius(self) -> float: return float(val) @x_axis_ellipsoid_radius.setter - def x_axis_ellipsoid_radius(self, value : float|str): + def x_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Axis Ellipsoid Radius={value}"]) @property def y_axis_ellipsoid_radius(self) -> float: @@ -280,11 +260,9 @@ def y_axis_ellipsoid_radius(self) -> float: return float(val) @y_axis_ellipsoid_radius.setter - def y_axis_ellipsoid_radius(self, value : float|str): + def y_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Axis Ellipsoid Radius={value}"]) @property def z_axis_ellipsoid_radius(self) -> float: @@ -297,11 +275,9 @@ def z_axis_ellipsoid_radius(self) -> float: return float(val) @z_axis_ellipsoid_radius.setter - def z_axis_ellipsoid_radius(self, value : float|str): + def z_axis_ellipsoid_radius(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Z Axis Ellipsoid Radius={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Z Axis Ellipsoid Radius={value}"]) @property def focal_length(self) -> float: @@ -314,11 +290,9 @@ def focal_length(self) -> float: return float(val) @focal_length.setter - def focal_length(self, value : float|str): + def focal_length(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Focal Length={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Focal Length={value}"]) @property def offset(self) -> float: @@ -328,11 +302,9 @@ def offset(self) -> float: return float(val) @offset.setter - def offset(self, value : float|str): + def offset(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Offset={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Offset={value}"]) @property def x_direction_taper(self) -> float: @@ -347,10 +319,8 @@ def x_direction_taper(self) -> float: return float(val) @x_direction_taper.setter - def x_direction_taper(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X Direction Taper={value}"]) + def x_direction_taper(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X Direction Taper={value}"]) @property def y_direction_taper(self) -> float: @@ -365,10 +335,8 @@ def y_direction_taper(self) -> float: return float(val) @y_direction_taper.setter - def y_direction_taper(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y Direction Taper={value}"]) + def y_direction_taper(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y Direction Taper={value}"]) @property def prism_direction(self): @@ -383,9 +351,7 @@ def prism_direction(self): @prism_direction.setter def prism_direction(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Prism Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Prism Direction={value}"]) @property def closed_top(self) -> bool: @@ -394,13 +360,11 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return (val == true) + return val == true @closed_top.setter def closed_top(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Closed Top={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Top={value}"]) @property def closed_base(self) -> bool: @@ -409,13 +373,11 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return (val == true) + return val == true @closed_base.setter def closed_base(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Closed Base={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Closed Base={value}"]) @property def mesh_density(self) -> int: @@ -431,9 +393,7 @@ def mesh_density(self) -> int: @mesh_density.setter def mesh_density(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mesh Density={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Density={value}"]) @property def use_symmetric_mesh(self) -> bool: @@ -445,13 +405,11 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return (val == true) + return val == true @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Symmetric Mesh={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Symmetric Mesh={value}"]) class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -466,9 +424,7 @@ def mesh_option(self) -> MeshOptionOption: @mesh_option.setter def mesh_option(self, value: MeshOptionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mesh Option={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mesh Option={value.value}"]) @property def coating_index(self) -> int: @@ -481,9 +437,7 @@ def coating_index(self) -> int: @coating_index.setter def coating_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Coating Index={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Coating Index={value}"]) @property def show_relative_coordinates(self) -> bool: @@ -495,13 +449,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return val == true @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -514,9 +468,7 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -531,9 +483,7 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -551,9 +501,7 @@ def orientation_mode(self) -> OrientationModeOption: @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -566,9 +514,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -583,9 +529,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def visible(self) -> bool: @@ -594,13 +538,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -617,9 +559,7 @@ def render_mode(self) -> RenderModeOption: @render_mode.setter def render_mode(self, value: RenderModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Render Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Render Mode={value.value}"]) @property def show_axes(self) -> bool: @@ -628,13 +568,11 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return val == true @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def min(self): @@ -671,9 +609,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def notes(self) -> str: @@ -683,7 +619,4 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py index 0cc7e14fba0..f6c5ee604ce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/categories_view_node.py @@ -1,30 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class CategoriesViewNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False EmitNode.__init__(self, emit_obj, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/circulator.py index bacf8ad39e4..c4bdad21819 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/circulator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Circulator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -52,9 +56,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -66,10 +68,8 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: @@ -79,9 +79,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -100,9 +98,7 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -117,9 +113,7 @@ def port_1_location(self) -> Port1LocationOption: @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -131,10 +125,8 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -146,13 +138,11 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return (val == true) + return val == true @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -164,10 +154,8 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -179,13 +167,11 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -197,10 +183,8 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -213,11 +197,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -230,11 +212,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -247,11 +227,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -264,15 +242,12 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warning(s) for this node.""" val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py index 7e0325d0828..e405be54839 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class CouplingLinkNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,13 +43,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def ports(self): @@ -56,7 +57,4 @@ def ports(self): @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ports={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py index 142969a97b0..b28364b1819 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class CouplingTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,9 +58,7 @@ def transmitter(self) -> EmitNode: @transmitter.setter def transmitter(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Transmitter={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Transmitter={value}"]) @property def receiver(self) -> EmitNode: @@ -66,9 +68,7 @@ def receiver(self) -> EmitNode: @receiver.setter def receiver(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Receiver={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver={value}"]) @property def data_source(self): @@ -82,9 +82,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -93,13 +91,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -108,13 +104,11 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: @@ -124,9 +118,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -145,9 +137,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -160,9 +150,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -175,9 +163,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -205,9 +191,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -220,9 +204,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -235,9 +217,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -250,9 +230,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -264,13 +242,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def highlight_regions(self) -> bool: @@ -279,13 +255,11 @@ def highlight_regions(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Highlight Regions") - return (val == true) + return val == true @highlight_regions.setter def highlight_regions(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Highlight Regions={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highlight Regions={value}"]) @property def show_region_labels(self) -> bool: @@ -294,13 +268,11 @@ def show_region_labels(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Region Labels") - return (val == true) + return val == true @show_region_labels.setter def show_region_labels(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Region Labels={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Region Labels={value}"]) @property def font(self): @@ -313,9 +285,7 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -328,9 +298,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -343,9 +311,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -354,13 +320,11 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return (val == true) + return val == true @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -373,9 +337,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -388,7 +350,4 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py index f45b7d276f7..38cd126aa1d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/couplings_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class CouplingsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -30,7 +33,7 @@ def __init__(self, emit_obj, result_id, node_id): def import_touchstone(self, file_name): """Open an Existing S-Matrix Data File""" - return self._import(file_name,"TouchstoneCoupling") + return self._import(file_name, "TouchstoneCoupling") def add_custom_coupling(self): """Add a new node to define custom coupling between antennas""" @@ -81,10 +84,8 @@ def minimum_allowed_coupling(self) -> float: return float(val) @minimum_allowed_coupling.setter - def minimum_allowed_coupling(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minimum Allowed Coupling={value}"]) + def minimum_allowed_coupling(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Allowed Coupling={value}"]) @property def global_default_coupling(self) -> float: @@ -96,14 +97,11 @@ def global_default_coupling(self) -> float: return float(val) @global_default_coupling.setter - def global_default_coupling(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Global Default Coupling={value}"]) + def global_default_coupling(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Global Default Coupling={value}"]) @property def antenna_tags(self) -> str: """All tags currently used by all antennas in the project.""" val = self._get_property("Antenna Tags") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py index b13a176d988..7291baf4541 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class CustomCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def rename(self, new_name: str): """Rename this node""" @@ -53,9 +56,9 @@ def delete(self): def table_data(self): """Table. Table consists of 2 columns. - Frequency: + Frequency: Value should be between 1.0 and 100.0e9. - Value (dB): + Value (dB): Value should be between -1000.0 and 0.0. """ return self._get_table_data() @@ -71,13 +74,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: @@ -87,9 +88,7 @@ def antenna_a(self) -> EmitNode: @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: @@ -99,9 +98,7 @@ def antenna_b(self) -> EmitNode: @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -110,13 +107,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -125,13 +120,11 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): @@ -141,7 +134,4 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py index bf444fdf787..826c7abaff2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class EmiPlotMarkerNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -53,13 +57,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def attached(self): @@ -73,9 +75,7 @@ def attached(self): @attached.setter def attached(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) @property def position_x(self) -> float: @@ -99,13 +99,11 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return (val == true) + return val == true @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -120,10 +118,8 @@ def position_from_left(self) -> float: return float(val) @position_from_left.setter - def position_from_left(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Left={value}"]) + def position_from_left(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -138,10 +134,8 @@ def position_from_top(self) -> float: return float(val) @position_from_top.setter - def position_from_top(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Top={value}"]) + def position_from_top(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) @property def text(self) -> str: @@ -151,9 +145,7 @@ def text(self) -> str: @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -169,9 +161,9 @@ def horizontal_position(self) -> HorizontalPositionOption: @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Horizontal Position={value.value}"] + ) class VerticalPositionOption(Enum): TOP = "Top" @@ -187,9 +179,7 @@ def vertical_position(self) -> VerticalPositionOption: @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -205,9 +195,7 @@ def text_alignment(self) -> TextAlignmentOption: @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) @property def font(self): @@ -220,9 +208,7 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -235,9 +221,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -250,9 +234,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -261,13 +243,11 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return (val == true) + return val == true @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -280,9 +260,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -295,9 +273,7 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -326,9 +302,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -341,9 +315,7 @@ def arrow_direction(self) -> int: @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -356,9 +328,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -371,9 +341,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -386,9 +354,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -400,11 +366,8 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return (val == true) + return val == true @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py index b7cadb2582c..66aecf33bc8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/emit_scene_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class EmitSceneNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,9 +45,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class GroundPlaneNormalOption(Enum): X_AXIS = "X Axis" @@ -59,9 +61,9 @@ def ground_plane_normal(self) -> GroundPlaneNormalOption: @ground_plane_normal.setter def ground_plane_normal(self, value: GroundPlaneNormalOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ground Plane Normal={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Ground Plane Normal={value.value}"] + ) @property def gp_position_along_normal(self) -> float: @@ -75,9 +77,6 @@ def gp_position_along_normal(self) -> float: return float(val) @gp_position_along_normal.setter - def gp_position_along_normal(self, value : float|str): + def gp_position_along_normal(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"GP Position Along Normal={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GP Position Along Normal={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py index 54ce88833a3..cde48706460 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ErcegCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -53,13 +57,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: @@ -69,9 +71,7 @@ def base_antenna(self) -> EmitNode: @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: @@ -81,9 +81,7 @@ def mobile_antenna(self) -> EmitNode: @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -92,13 +90,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -107,13 +103,11 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): @@ -123,9 +117,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class TerrainCategoryOption(Enum): TYPE_A = "Type A" @@ -141,9 +133,7 @@ def terrain_category(self) -> TerrainCategoryOption: @terrain_category.setter def terrain_category(self, value: TerrainCategoryOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Terrain Category={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Terrain Category={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -158,10 +148,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -176,10 +164,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -194,10 +180,8 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -214,9 +198,7 @@ def fading_type(self) -> FadingTypeOption: @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -231,10 +213,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -246,10 +226,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -258,13 +236,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -279,10 +255,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -294,10 +268,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -312,10 +284,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -327,13 +297,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -345,10 +315,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -360,10 +328,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -375,8 +341,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/filter.py index c6f28c90052..488f1627073 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/filter.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Filter(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -52,9 +56,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -66,10 +68,8 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: @@ -79,9 +79,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -105,9 +103,7 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def insertion_loss(self) -> float: @@ -119,10 +115,8 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -134,10 +128,8 @@ def stop_band_attenuation(self) -> float: return float(val) @stop_band_attenuation.setter - def stop_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -150,11 +142,9 @@ def max_pass_band(self) -> float: return float(val) @max_pass_band.setter - def max_pass_band(self, value : float|str): + def max_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -167,11 +157,9 @@ def min_stop_band(self) -> float: return float(val) @min_stop_band.setter - def min_stop_band(self, value : float|str): + def min_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -184,11 +172,9 @@ def max_stop_band(self) -> float: return float(val) @max_stop_band.setter - def max_stop_band(self, value : float|str): + def max_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -201,11 +187,9 @@ def min_pass_band(self) -> float: return float(val) @min_pass_band.setter - def min_pass_band(self, value : float|str): + def min_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -218,11 +202,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -235,11 +217,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -252,11 +232,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -269,11 +247,9 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -286,11 +262,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff ={value}"]) @property def lower_stop_band(self) -> float: @@ -303,11 +277,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band ={value}"]) @property def higher_stop_band(self) -> float: @@ -320,11 +292,9 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band ={value}"]) @property def higher_cutoff(self) -> float: @@ -337,11 +307,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff ={value}"]) @property def lowest_tuned_frequency(self) -> float: @@ -354,11 +322,9 @@ def lowest_tuned_frequency(self) -> float: return float(val) @lowest_tuned_frequency.setter - def lowest_tuned_frequency(self, value : float|str): + def lowest_tuned_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lowest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lowest Tuned Frequency ={value}"]) @property def highest_tuned_frequency(self) -> float: @@ -371,11 +337,9 @@ def highest_tuned_frequency(self) -> float: return float(val) @highest_tuned_frequency.setter - def highest_tuned_frequency(self, value : float|str): + def highest_tuned_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Highest Tuned Frequency ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Highest Tuned Frequency ={value}"]) @property def percent_bandwidth(self) -> float: @@ -387,10 +351,8 @@ def percent_bandwidth(self) -> float: return float(val) @percent_bandwidth.setter - def percent_bandwidth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Percent Bandwidth={value}"]) + def percent_bandwidth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percent Bandwidth={value}"]) @property def shape_factor(self) -> float: @@ -402,14 +364,11 @@ def shape_factor(self) -> float: return float(val) @shape_factor.setter - def shape_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Shape Factor={value}"]) + def shape_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Shape Factor={value}"]) @property def warnings(self) -> str: """Warning(s) for this node.""" val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py b/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py index 5ee57a793c6..49685eacd29 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class FiveGChannelModel(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -53,13 +57,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: @@ -69,9 +71,7 @@ def base_antenna(self) -> EmitNode: @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: @@ -81,9 +81,7 @@ def mobile_antenna(self) -> EmitNode: @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -92,13 +90,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -107,13 +103,11 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): @@ -123,9 +117,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): URBAN_MICROCELL = "Urban Microcell" @@ -141,9 +133,7 @@ def environment(self) -> EnvironmentOption: @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def los(self) -> bool: @@ -152,13 +142,11 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return (val == true) + return val == true @los.setter def los(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"LOS={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"LOS={value}"]) @property def include_bpl(self) -> bool: @@ -167,13 +155,11 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return (val == true) + return val == true @include_bpl.setter def include_bpl(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include BPL={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include BPL={value}"]) class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -188,9 +174,7 @@ def nyu_bpl_model(self) -> NYUBPLModelOption: @nyu_bpl_model.setter def nyu_bpl_model(self, value: NYUBPLModelOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NYU BPL Model={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NYU BPL Model={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -205,10 +189,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -223,10 +205,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -241,10 +221,8 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -261,9 +239,7 @@ def fading_type(self) -> FadingTypeOption: @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -278,10 +254,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -293,10 +267,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -305,13 +277,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -326,10 +296,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -341,10 +309,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -359,10 +325,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -374,13 +338,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -392,10 +356,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -407,10 +369,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -422,8 +382,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py index b7cd3dbf960..18f8496f624 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class HataCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -53,13 +57,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: @@ -69,9 +71,7 @@ def base_antenna(self) -> EmitNode: @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: @@ -81,9 +81,7 @@ def mobile_antenna(self) -> EmitNode: @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -92,13 +90,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -107,13 +103,11 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): @@ -123,9 +117,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): LARGE_CITY = "Large City" @@ -142,9 +134,7 @@ def environment(self) -> EnvironmentOption: @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def custom_fading_margin(self) -> float: @@ -159,10 +149,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -177,10 +165,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -195,10 +181,8 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -215,9 +199,7 @@ def fading_type(self) -> FadingTypeOption: @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -232,10 +214,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -247,10 +227,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -259,13 +237,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -280,10 +256,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -295,10 +269,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -313,10 +285,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -328,13 +298,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -346,10 +316,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -361,10 +329,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -376,8 +342,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py index 675e9c6d785..07d322e8385 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class IndoorPropagationCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -50,11 +54,11 @@ def delete(self): def table_data(self): """Table. Table consists of 3 columns. - Frequency: + Frequency: Value should be between 1.0 and 100.0e9. - Power Loss Coefficient: + Power Loss Coefficient: Value should be between 0.0 and 100.0. - Floor Penetration Loss (dB): + Floor Penetration Loss (dB): Value should be between 0.0 and 1000.0. """ return self._get_table_data() @@ -70,13 +74,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: @@ -86,9 +88,7 @@ def antenna_a(self) -> EmitNode: @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: @@ -98,9 +98,7 @@ def antenna_b(self) -> EmitNode: @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -109,13 +107,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -124,13 +120,11 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): @@ -140,9 +134,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class BuildingTypeOption(Enum): RESIDENTIAL_APARTMENT = "Residential Apartment" @@ -160,9 +152,7 @@ def building_type(self) -> BuildingTypeOption: @building_type.setter def building_type(self, value: BuildingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Building Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Building Type={value.value}"]) @property def number_of_floors(self) -> int: @@ -175,9 +165,7 @@ def number_of_floors(self) -> int: @number_of_floors.setter def number_of_floors(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Floors={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Floors={value}"]) @property def custom_fading_margin(self) -> float: @@ -192,10 +180,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -210,10 +196,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -228,10 +212,8 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -248,9 +230,7 @@ def fading_type(self) -> FadingTypeOption: @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -265,10 +245,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -280,10 +258,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -292,13 +268,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -313,10 +287,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -328,10 +300,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -346,10 +316,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -361,13 +329,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -379,10 +347,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -394,10 +360,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -409,8 +373,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/isolator.py index 69453eb93ed..944835b1274 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/isolator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Isolator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -52,9 +56,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -66,10 +68,8 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: @@ -79,9 +79,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -100,9 +98,7 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -117,9 +113,7 @@ def port_1_location(self) -> Port1LocationOption: @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def insertion_loss(self) -> float: @@ -131,10 +125,8 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_reverse_isolation(self) -> bool: @@ -146,13 +138,11 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return (val == true) + return val == true @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Reverse Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Reverse Isolation={value}"]) @property def reverse_isolation(self) -> float: @@ -164,10 +154,8 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -179,13 +167,11 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -197,10 +183,8 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -213,11 +197,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -230,11 +212,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -247,11 +227,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -264,15 +242,12 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warning(s) for this node.""" val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py index a9f75e16c5c..e167b77669b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class LogDistanceCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -53,13 +57,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: @@ -69,9 +71,7 @@ def antenna_a(self) -> EmitNode: @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: @@ -81,9 +81,7 @@ def antenna_b(self) -> EmitNode: @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -92,13 +90,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -107,13 +103,11 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): @@ -123,9 +117,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class EnvironmentOption(Enum): FREE_SPACE = "Free Space" @@ -145,9 +137,7 @@ def environment(self) -> EnvironmentOption: @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def path_loss_exponent(self) -> float: @@ -159,10 +149,8 @@ def path_loss_exponent(self) -> float: return float(val) @path_loss_exponent.setter - def path_loss_exponent(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Path Loss Exponent={value}"]) + def path_loss_exponent(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Exponent={value}"]) @property def custom_fading_margin(self) -> float: @@ -177,10 +165,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -195,10 +181,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -213,10 +197,8 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -233,9 +215,7 @@ def fading_type(self) -> FadingTypeOption: @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -250,10 +230,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -265,10 +243,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -277,13 +253,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -298,10 +272,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -313,10 +285,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -331,10 +301,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -346,13 +314,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -364,10 +332,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -379,10 +345,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -394,8 +358,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py index 297dffd3064..38ac1746877 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class MPlexBandTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,9 +62,7 @@ def power_direction(self) -> PowerDirectionOption: @power_direction.setter def power_direction(self, value: PowerDirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Power Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Power Direction={value.value}"]) @property def data_source(self): @@ -74,9 +76,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -85,13 +85,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -100,13 +98,11 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: @@ -116,9 +112,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -137,9 +131,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -152,9 +144,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -167,9 +157,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -197,9 +185,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -212,9 +198,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -227,9 +211,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -242,9 +224,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -256,11 +236,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer.py index 53cbd8b7d75..5c794fd04e3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Multiplexer(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -56,9 +60,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -70,10 +72,8 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: @@ -83,9 +83,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_PASS_BAND = "By Pass Band" @@ -105,9 +103,7 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class Port1LocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -122,9 +118,7 @@ def port_1_location(self) -> Port1LocationOption: @port_1_location.setter def port_1_location(self, value: Port1LocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port 1 Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port 1 Location={value.value}"]) @property def flip_ports_vertically(self) -> bool: @@ -133,13 +127,11 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return (val == true) + return val == true @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Flip Ports Vertically={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Flip Ports Vertically={value}"]) @property def ports(self): @@ -149,13 +141,10 @@ def ports(self): @ports.setter def ports(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ports={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ports={value}"]) @property def warnings(self) -> str: """Warning(s) for this node.""" val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py index fc3d0378f67..eb4777a6e88 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer_band.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class MultiplexerBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -66,9 +70,7 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) @property def filename(self) -> str: @@ -81,9 +83,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def insertion_loss(self) -> float: @@ -95,10 +95,8 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def stop_band_attenuation(self) -> float: @@ -110,10 +108,8 @@ def stop_band_attenuation(self) -> float: return float(val) @stop_band_attenuation.setter - def stop_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop band Attenuation={value}"]) + def stop_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop band Attenuation={value}"]) @property def max_pass_band(self) -> float: @@ -126,11 +122,9 @@ def max_pass_band(self) -> float: return float(val) @max_pass_band.setter - def max_pass_band(self, value : float|str): + def max_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Pass Band={value}"]) @property def min_stop_band(self) -> float: @@ -143,11 +137,9 @@ def min_stop_band(self) -> float: return float(val) @min_stop_band.setter - def min_stop_band(self, value : float|str): + def min_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Stop Band={value}"]) @property def max_stop_band(self) -> float: @@ -160,11 +152,9 @@ def max_stop_band(self) -> float: return float(val) @max_stop_band.setter - def max_stop_band(self, value : float|str): + def max_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Stop Band={value}"]) @property def min_pass_band(self) -> float: @@ -177,11 +167,9 @@ def min_pass_band(self) -> float: return float(val) @min_pass_band.setter - def min_pass_band(self, value : float|str): + def min_pass_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pass Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pass Band={value}"]) @property def lower_stop_band(self) -> float: @@ -194,11 +182,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -211,11 +197,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -228,11 +212,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -245,15 +227,12 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warning(s) for this node.""" val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py index 9f4bd7f6aa9..4223d62d111 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class OutboardTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -57,9 +61,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -72,9 +74,7 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -88,9 +88,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -99,13 +97,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -114,13 +110,11 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: @@ -130,9 +124,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -151,9 +143,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -166,9 +156,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -181,9 +169,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -211,9 +197,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -226,9 +210,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -241,9 +223,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -256,9 +236,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -270,11 +248,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py index 3f9eaa239cf..6761a31e52b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ParametricCouplingTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,9 +58,7 @@ def antenna_a(self) -> EmitNode: @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: @@ -66,9 +68,7 @@ def antenna_b(self) -> EmitNode: @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def data_source(self): @@ -82,9 +82,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -93,13 +91,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -108,13 +104,11 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: @@ -124,9 +118,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -145,9 +137,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -160,9 +150,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -175,9 +163,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -205,9 +191,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -220,9 +204,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -235,9 +217,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -250,9 +230,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -264,11 +242,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py index a7107f8c66e..372889120a6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class PlotMarkerNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -53,13 +57,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def attached(self) -> bool: @@ -71,13 +73,11 @@ def attached(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Attached") - return (val == true) + return val == true @attached.setter def attached(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Attached={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Attached={value}"]) @property def position_x(self) -> float: @@ -86,10 +86,8 @@ def position_x(self) -> float: return float(val) @position_x.setter - def position_x(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position X={value}"]) + def position_x(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position X={value}"]) @property def position_y(self) -> float: @@ -98,10 +96,8 @@ def position_y(self) -> float: return float(val) @position_y.setter - def position_y(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position Y={value}"]) + def position_y(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position Y={value}"]) @property def floating_label(self) -> bool: @@ -113,13 +109,11 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return (val == true) + return val == true @floating_label.setter def floating_label(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Floating Label={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Floating Label={value}"]) @property def position_from_left(self) -> float: @@ -134,10 +128,8 @@ def position_from_left(self) -> float: return float(val) @position_from_left.setter - def position_from_left(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Left={value}"]) + def position_from_left(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Left={value}"]) @property def position_from_top(self) -> float: @@ -152,10 +144,8 @@ def position_from_top(self) -> float: return float(val) @position_from_top.setter - def position_from_top(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position from Top={value}"]) + def position_from_top(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position from Top={value}"]) @property def text(self) -> str: @@ -165,9 +155,7 @@ def text(self) -> str: @text.setter def text(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text={value}"]) class HorizontalPositionOption(Enum): LEFT = "Left" @@ -183,9 +171,9 @@ def horizontal_position(self) -> HorizontalPositionOption: @horizontal_position.setter def horizontal_position(self, value: HorizontalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Horizontal Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Horizontal Position={value.value}"] + ) class VerticalPositionOption(Enum): TOP = "Top" @@ -201,9 +189,7 @@ def vertical_position(self) -> VerticalPositionOption: @vertical_position.setter def vertical_position(self, value: VerticalPositionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Position={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Position={value.value}"]) class TextAlignmentOption(Enum): LEFT = "Left" @@ -219,9 +205,7 @@ def text_alignment(self) -> TextAlignmentOption: @text_alignment.setter def text_alignment(self, value: TextAlignmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Text Alignment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Text Alignment={value.value}"]) @property def font(self): @@ -234,9 +218,7 @@ def font(self): @font.setter def font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Font={value}"]) @property def color(self): @@ -249,9 +231,7 @@ def color(self): @color.setter def color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Color={value}"]) @property def background_color(self): @@ -264,9 +244,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) @property def border(self) -> bool: @@ -275,13 +253,11 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return (val == true) + return val == true @border.setter def border(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border={value}"]) @property def border_width(self) -> int: @@ -294,9 +270,7 @@ def border_width(self) -> int: @border_width.setter def border_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Width={value}"]) @property def border_color(self): @@ -309,9 +283,7 @@ def border_color(self): @border_color.setter def border_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Border Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Border Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -340,9 +312,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def arrow_direction(self) -> int: @@ -355,9 +325,7 @@ def arrow_direction(self) -> int: @arrow_direction.setter def arrow_direction(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Arrow Direction={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Arrow Direction={value}"]) @property def symbol_size(self) -> int: @@ -370,9 +338,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -385,9 +351,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def line_width(self) -> int: @@ -400,9 +364,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def filled(self) -> bool: @@ -414,11 +376,8 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return (val == true) + return val == true @filled.setter def filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py index af9ce578cf9..2ef37b1b57c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class PlotNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -57,9 +61,7 @@ def title(self) -> str: @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) @property def title_font(self): @@ -72,9 +74,7 @@ def title_font(self): @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -83,13 +83,11 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return (val == true) + return val == true @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) @property def legend_font(self): @@ -102,9 +100,7 @@ def legend_font(self): @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) @property def display_cad_overlay(self) -> bool: @@ -113,13 +109,11 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return (val == true) + return val == true @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -131,10 +125,8 @@ def opacity(self) -> float: return float(val) @opacity.setter - def opacity(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Opacity={value}"]) + def opacity(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) @property def vertical_offset(self) -> float: @@ -143,10 +135,8 @@ def vertical_offset(self) -> float: return float(val) @vertical_offset.setter - def vertical_offset(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Offset={value}"]) + def vertical_offset(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -161,10 +151,8 @@ def range_axis_rotation(self) -> float: return float(val) @range_axis_rotation.setter - def range_axis_rotation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -176,13 +164,11 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return (val == true) + return val == true @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: @@ -191,10 +177,8 @@ def x_axis_min(self) -> float: return float(val) @x_axis_min.setter - def x_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Min={value}"]) + def x_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: @@ -203,10 +187,8 @@ def x_axis_max(self) -> float: return float(val) @x_axis_max.setter - def x_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Max={value}"]) + def x_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: @@ -215,10 +197,8 @@ def y_axis_min(self) -> float: return float(val) @y_axis_min.setter - def y_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Min={value}"]) + def y_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: @@ -227,10 +207,8 @@ def y_axis_max(self) -> float: return float(val) @y_axis_max.setter - def y_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Max={value}"]) + def y_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -245,10 +223,8 @@ def y_axis_range(self) -> float: return float(val) @y_axis_range.setter - def y_axis_range(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Range={value}"]) + def y_axis_range(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -263,9 +239,7 @@ def max_major_ticks_x(self) -> int: @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -281,9 +255,7 @@ def max_minor_ticks_x(self) -> int: @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -298,9 +270,7 @@ def max_major_ticks_y(self) -> int: @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -316,9 +286,7 @@ def max_minor_ticks_y(self) -> int: @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -331,9 +299,7 @@ def axis_label_font(self): @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -346,9 +312,7 @@ def axis_tick_label_font(self): @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -367,9 +331,9 @@ def major_grid_line_style(self) -> MajorGridLineStyleOption: @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] + ) @property def major_grid_color(self): @@ -382,9 +346,7 @@ def major_grid_color(self): @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -403,9 +365,9 @@ def minor_grid_line_style(self) -> MinorGridLineStyleOption: @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] + ) @property def minor_grid_color(self): @@ -418,9 +380,7 @@ def minor_grid_color(self): @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -433,9 +393,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -452,9 +410,9 @@ def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power for Plots Unit={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] + ) @property def bb_power_bandwidth(self) -> float: @@ -467,11 +425,9 @@ def bb_power_bandwidth(self) -> float: return float(val) @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value : float|str): + def bb_power_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -480,11 +436,8 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return (val == true) + return val == true @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Log Scale={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py b/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py index 77409954b3f..2aa6f1ae4b8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class PowerDivider(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -52,9 +56,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -66,10 +68,8 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: @@ -79,9 +79,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -101,9 +99,7 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class OrientationOption(Enum): DIVIDER = "Divider" @@ -118,9 +114,7 @@ def orientation(self) -> OrientationOption: @orientation.setter def orientation(self, value: OrientationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value.value}"]) @property def insertion_loss_above_ideal(self) -> float: @@ -135,10 +129,10 @@ def insertion_loss_above_ideal(self) -> float: return float(val) @insertion_loss_above_ideal.setter - def insertion_loss_above_ideal(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss Above Ideal={value}"]) + def insertion_loss_above_ideal(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Insertion Loss Above Ideal={value}"] + ) @property def finite_isolation(self) -> bool: @@ -150,13 +144,11 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return (val == true) + return val == true @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -168,10 +160,8 @@ def isolation(self) -> float: return float(val) @isolation.setter - def isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Isolation={value}"]) + def isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -183,13 +173,11 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -201,10 +189,8 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -217,11 +203,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -234,11 +218,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -251,11 +233,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -268,15 +248,12 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) @property def warnings(self) -> str: """Warning(s) for this node.""" val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py index 22bba044b8f..f7be3575e08 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class PowerTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -62,9 +66,7 @@ def direction(self) -> DirectionOption: @direction.setter def direction(self, value: DirectionOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Direction={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Direction={value.value}"]) @property def data_source(self): @@ -78,9 +80,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -89,13 +89,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -104,13 +102,11 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: @@ -120,9 +116,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -141,9 +135,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -156,9 +148,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -171,9 +161,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -201,9 +189,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -216,9 +202,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -231,9 +215,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -246,9 +228,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -260,11 +240,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py index 92132195ebe..b8844eb9555 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ProfileTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,9 +62,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -69,13 +71,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -84,13 +84,11 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: @@ -100,9 +98,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -121,9 +117,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -136,9 +130,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -151,9 +143,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -181,9 +171,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -196,9 +184,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -211,9 +197,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -226,9 +210,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -240,11 +222,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py index 43d56ff3f82..975ee34ad1d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class PropagationLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -53,13 +57,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: @@ -69,9 +71,7 @@ def antenna_a(self) -> EmitNode: @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: @@ -81,9 +81,7 @@ def antenna_b(self) -> EmitNode: @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -92,13 +90,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -107,13 +103,11 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): @@ -123,9 +117,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def custom_fading_margin(self) -> float: @@ -140,10 +132,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -158,10 +148,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -176,10 +164,8 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -196,9 +182,7 @@ def fading_type(self) -> FadingTypeOption: @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -213,10 +197,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -228,10 +210,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -240,13 +220,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -261,10 +239,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -276,10 +252,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -294,10 +268,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -309,13 +281,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -327,10 +299,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -342,10 +312,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -357,8 +325,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py index 5308a882610..10124fcd1ad 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/radio_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RadioNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -53,10 +56,10 @@ def delete(self): def table_data(self): """Table. Table consists of 2 columns. - Name: - - Type: - + Name: + + Type: + """ return self._get_table_data() @@ -72,7 +75,4 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py index d1a5c91bb48..e0126f43ca9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_amplifier.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyAmplifier(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -158,4 +162,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return int(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py index 86370a2f757..2a41c8cff95 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyAntennaNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -50,7 +54,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return val == true @property def position(self): @@ -109,7 +113,7 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return (val == true) + return val == true @property def antenna_temperature(self) -> float: @@ -187,7 +191,7 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return (val == true) + return val == true @property def first_sidelobe_level(self) -> float: @@ -390,7 +394,7 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return (val == true) + return val == true @property def offset_height(self) -> float: @@ -414,7 +418,7 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return (val == true) + return val == true @property def conform__adjust_antenna(self) -> bool: @@ -423,7 +427,7 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return (val == true) + return val == true @property def element_offset(self): @@ -470,7 +474,7 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return (val == true) + return val == true @property def show_axes(self) -> bool: @@ -479,7 +483,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return val == true @property def show_icon(self) -> bool: @@ -488,7 +492,7 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return (val == true) + return val == true @property def size(self) -> float: @@ -527,7 +531,7 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return (val == true) + return val == true @property def frequency_domain(self): @@ -630,7 +634,7 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return (val == true) + return val == true @property def use_phase_center(self) -> bool: @@ -639,7 +643,7 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return (val == true) + return val == true @property def coordinate_systems(self) -> str: @@ -667,4 +671,3 @@ def phasecenterorientation(self): """ val = self._get_property("PhaseCenterOrientation") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py index 9f0068b5956..04539f1f495 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_passband.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyAntennaPassband(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -96,4 +99,3 @@ def notes(self) -> str: """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py index 5154ebf1c5d..c138d107919 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -47,7 +51,7 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return (val == true) + return val == true @property def use_emission_designator(self) -> bool: @@ -58,7 +62,7 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return (val == true) + return val == true @property def emission_designator(self) -> str: @@ -92,7 +96,7 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return (val == true) + return val == true @property def channel_bandwidth(self) -> float: @@ -298,7 +302,7 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return (val == true) + return val == true @property def post_october_2020_procurement(self) -> bool: @@ -310,7 +314,7 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return (val == true) + return val == true @property def hop_range_min_freq(self) -> float: @@ -423,4 +427,3 @@ def fm_freq_dev_bandwidth(self) -> float: val = self._get_property("FM Freq Dev Bandwidth") val = self._convert_from_internal_units(float(val), "Freq") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py index 88c4224e281..6aa83ad1ada 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band_folder.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyBandFolder(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -32,4 +35,3 @@ def __init__(self, emit_obj, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py index d19ff047b48..05cb690a00d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cable.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyCable(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -121,4 +125,3 @@ def warnings(self) -> str: """Warning(s) for this node.""" val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py index 7acacc0ae3d..d34ebed2290 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyCADNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -254,7 +258,7 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return (val == true) + return val == true @property def closed_base(self) -> bool: @@ -263,7 +267,7 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return (val == true) + return val == true @property def mesh_density(self) -> int: @@ -287,7 +291,7 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return (val == true) + return val == true class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -319,7 +323,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return val == true @property def position(self): @@ -382,7 +386,7 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -404,7 +408,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return val == true @property def min(self): @@ -444,4 +448,3 @@ def notes(self) -> str: """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py index aaf36909c0e..d2445060b36 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyCirculator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -98,7 +102,7 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return (val == true) + return val == true @property def reverse_isolation(self) -> float: @@ -119,7 +123,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @property def out_of_band_attenuation(self) -> float: @@ -175,4 +179,3 @@ def warnings(self) -> str: """Warning(s) for this node.""" val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py index 6e844aeb233..401179dff60 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyCouplingLinkNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,11 +43,10 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def ports(self): """Maps each port in the link to an antenna in the project.""" val = self._get_property("Ports") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py index 789d2b6dffe..c40b4bc14c9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_couplings_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyCouplingsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,4 +57,3 @@ def antenna_tags(self) -> str: """All tags currently used by all antennas in the project.""" val = self._get_property("Antenna Tags") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py index 020d880a854..02ff63002ce 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyCustomCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -37,9 +40,9 @@ def parent(self): def table_data(self): """Table. Table consists of 2 columns. - Frequency: + Frequency: Value should be between 1.0 and 100.0e9. - Value (dB): + Value (dB): Value should be between -1000.0 and 0.0. """ return self._get_table_data() @@ -51,7 +54,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def antenna_a(self) -> EmitNode: @@ -72,7 +75,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -81,11 +84,10 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Points to use when refining the frequency domain.""" val = self._get_property("Refinement Domain") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py index e1ac1c6e09b..7b7fe4af8de 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_emit_scene_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyEmitSceneNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -57,4 +61,3 @@ def gp_position_along_normal(self) -> float: val = self._get_property("GP Position Along Normal") val = self._convert_from_internal_units(float(val), "Length") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py index 5dc98f2df54..d3ab8cef208 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyErcegCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +45,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def base_antenna(self) -> EmitNode: @@ -62,7 +66,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -71,7 +75,7 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): @@ -168,7 +172,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -213,7 +217,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -241,4 +245,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py index 9bbaf0d4c52..8098a709c80 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_filter.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyFilter(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -254,4 +258,3 @@ def warnings(self) -> str: """Warning(s) for this node.""" val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py index 06e81aa9736..105bb5c2abe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyFiveGChannelModel(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +45,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def base_antenna(self) -> EmitNode: @@ -62,7 +66,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -71,7 +75,7 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): @@ -98,7 +102,7 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return (val == true) + return val == true @property def include_bpl(self) -> bool: @@ -107,7 +111,7 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return (val == true) + return val == true class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -197,7 +201,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -242,7 +246,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -270,4 +274,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py index 25e9d2c3e64..39ffc5ef454 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyHataCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +45,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def base_antenna(self) -> EmitNode: @@ -62,7 +66,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -71,7 +75,7 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): @@ -169,7 +173,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -214,7 +218,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -242,4 +246,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py index 0bfd1495ae8..dc6a231564d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyIndoorPropagationCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,11 +42,11 @@ def parent(self): def table_data(self): """Table. Table consists of 3 columns. - Frequency: + Frequency: Value should be between 1.0 and 100.0e9. - Power Loss Coefficient: + Power Loss Coefficient: Value should be between 0.0 and 100.0. - Floor Penetration Loss (dB): + Floor Penetration Loss (dB): Value should be between 0.0 and 1000.0. """ return self._get_table_data() @@ -54,7 +58,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def antenna_a(self) -> EmitNode: @@ -75,7 +79,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -84,7 +88,7 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): @@ -192,7 +196,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -237,7 +241,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -265,4 +269,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py index f5ae03eed22..3b813d84762 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyIsolator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -98,7 +102,7 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return (val == true) + return val == true @property def reverse_isolation(self) -> float: @@ -119,7 +123,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @property def out_of_band_attenuation(self) -> float: @@ -175,4 +179,3 @@ def warnings(self) -> str: """Warning(s) for this node.""" val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py index 1bba149cf56..704241244d6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyLogDistanceCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +45,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def antenna_a(self) -> EmitNode: @@ -62,7 +66,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -71,7 +75,7 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): @@ -181,7 +185,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -226,7 +230,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -254,4 +258,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py index c5fa2c6c575..7fa1bfe3ebd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyMultiplexer(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -87,7 +91,7 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return (val == true) + return val == true @property def ports(self): @@ -100,4 +104,3 @@ def warnings(self) -> str: """Warning(s) for this node.""" val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py index 46377814292..d288092aafb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer_band.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyMultiplexerBand(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -164,4 +168,3 @@ def warnings(self) -> str: """Warning(s) for this node.""" val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py index a10364ba83c..8cd25bcbf1b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyPowerDivider(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -102,7 +106,7 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return (val == true) + return val == true @property def isolation(self) -> float: @@ -123,7 +127,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @property def out_of_band_attenuation(self) -> float: @@ -179,4 +183,3 @@ def warnings(self) -> str: """Warning(s) for this node.""" val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py index 9b0512e4d60..368e1feba46 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyPropagationLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +45,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def antenna_a(self) -> EmitNode: @@ -62,7 +66,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -71,7 +75,7 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): @@ -156,7 +160,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -201,7 +205,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -229,4 +233,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py index b2005a7c031..73a1b526d89 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_radio_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRadioNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -37,10 +40,10 @@ def parent(self): def table_data(self): """Table. Table consists of 2 columns. - Name: - - Type: - + Name: + + Type: + """ return self._get_table_data() @@ -49,4 +52,3 @@ def notes(self) -> str: """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py index 7e4c22a0f68..661a8626ebc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -105,7 +109,7 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return (val == true) + return val == true @property def intended_signal_power(self) -> float: @@ -142,7 +146,7 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return (val == true) + return val == true @property def measure_mixer_products(self) -> bool: @@ -151,7 +155,7 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return (val == true) + return val == true @property def max_rf_order(self) -> int: @@ -178,7 +182,7 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return (val == true) + return val == true @property def measure_saturation(self) -> bool: @@ -187,7 +191,7 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return (val == true) + return val == true @property def use_ams_limits(self) -> bool: @@ -196,7 +200,7 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return (val == true) + return val == true @property def start_frequency(self) -> float: @@ -234,5 +238,4 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return (val == true) - + return val == true diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py index 34d30b8dbb6..46ef817aefb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_mixer_product_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRxMixerProductNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -194,4 +198,3 @@ def mixer_product_table_units(self) -> MixerProductTableUnitsOption: val = self._get_property("Mixer Product Table Units") val = self.MixerProductTableUnitsOption[val.upper()] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py index 5e22eca60c2..45328a8b5fe 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_saturation_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRxSaturationNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -32,4 +35,3 @@ def __init__(self, emit_obj, result_id, node_id): def parent(self): """The parent of this emit node.""" return self._parent - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py index fb88761efbb..3c671091caf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRxSelectivityNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -43,5 +46,4 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return (val == true) - + return val == true diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py index 3d5981f486d..2b6d8f043ea 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_spur_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,11 +42,11 @@ def parent(self): def table_data(self): """Table. Table consists of 3 columns. - Frequency (MHz): + Frequency (MHz): Value should be a mathematical expression. - Bandwidth: + Bandwidth: Value should be greater than 1.0. - Power: + Power: Value should be between -200.0 and 150.0. """ return self._get_table_data() @@ -57,4 +61,3 @@ def spur_table_units(self) -> SpurTableUnitsOption: val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py index 92131408647..0e7ee87cfd9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyRxSusceptibilityProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -87,7 +91,7 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return (val == true) + return val == true @property def saturation_level(self) -> float: @@ -134,7 +138,7 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return (val == true) + return val == true @property def amplifier_saturation_level(self) -> float: @@ -176,4 +180,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return int(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py index 9de48ee0f79..cf28cff7483 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlySamplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,9 +42,9 @@ def parent(self): def table_data(self): """Table. Table consists of 2 columns. - Min: + Min: Value should be greater than 1.0. - Max: + Max: Value should be greater than 1.0. """ return self._get_table_data() @@ -67,7 +71,7 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return (val == true) + return val == true @property def percentage_of_channels(self) -> float: @@ -121,4 +125,3 @@ def warnings(self) -> str: """Warning(s) for this node.""" val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py index 5eb5e2ac1f6..435d080210b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlySceneGroupNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -44,7 +48,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return val == true @property def position(self): @@ -109,7 +113,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return val == true @property def box_color(self): @@ -125,4 +129,3 @@ def notes(self) -> str: """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py index 6a5b42e095c..47e5437003c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlySolutionCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -43,7 +46,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def enable_refinement(self) -> bool: @@ -52,7 +55,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -61,11 +64,10 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): """Points to use when refining the frequency domain.""" val = self._get_property("Refinement Domain") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py index d323d3c793f..1875416ba75 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlySolutionsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -43,5 +46,4 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) - + return val == true diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py index 08543ce2bae..745328179c4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_terminator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTerminator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -97,4 +101,3 @@ def warnings(self) -> str: """Warning(s) for this node.""" val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py index 3dcb2d277ce..816565b7415 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTouchstoneCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -40,7 +43,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def enable_refinement(self) -> bool: @@ -49,7 +52,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -58,7 +61,7 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): @@ -88,7 +91,7 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return (val == true) + return val == true @property def port_antenna_assignment(self): @@ -101,4 +104,3 @@ def notes(self) -> str: """Expand to view/edit notes stored with the project.""" val = self._get_property("Notes") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py index d011b854fb9..ce7e802635b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTR_Switch(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -94,7 +98,7 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return (val == true) + return val == true @property def isolation(self) -> float: @@ -115,7 +119,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @property def out_of_band_attenuation(self) -> float: @@ -165,4 +169,3 @@ def higher_stop_band(self) -> float: val = self._get_property("Higher Stop Band") val = self._convert_from_internal_units(float(val), "Freq") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py index f55cb38e637..e13f31e2b97 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTwoRayPathLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +45,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def antenna_a(self) -> EmitNode: @@ -62,7 +66,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -71,7 +75,7 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): @@ -176,7 +180,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -221,7 +225,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -249,4 +253,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py index 7aa1aef61be..1afedfdae73 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxBbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,9 +42,9 @@ def parent(self): def table_data(self): """Tx Broadband Noise Profile Table. Table consists of 2 columns. - Frequency (MHz): + Frequency (MHz): Value should be a mathematical expression. - Amplitude (dBm/Hz): + Amplitude (dBm/Hz): Value should be between -200.0 and 150.0. """ return self._get_table_data() @@ -68,5 +72,4 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return (val == true) - + return val == true diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py index 0dc3d99a473..1930d67407b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_harmonic_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxHarmonicNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -44,4 +48,3 @@ def harmonic_table_units(self) -> HarmonicTableUnitsOption: val = self._get_property("Harmonic Table Units") val = self.HarmonicTableUnitsOption[val.upper()] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py index 73c1cbd9cfc..c0634ca21b1 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -65,7 +68,7 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return (val == true) + return val == true @property def start_frequency(self) -> float: @@ -94,5 +97,4 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return (val == true) - + return val == true diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py index 7c2d43c0aa1..4eb1e749b64 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_nb_emission_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxNbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -51,4 +55,3 @@ def measurement_frequency(self) -> float: val = self._get_property("Measurement Frequency") val = self._convert_from_internal_units(float(val), "Freq") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py index f216fd72a52..68c521ec488 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxSpectralProfEmitterNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -47,7 +50,7 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return (val == true) + return val == true @property def tx_broadband_noise(self) -> float: @@ -65,7 +68,7 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return (val == true) + return val == true @property def internal_amp_gain(self) -> float: @@ -135,4 +138,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return int(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py index aa763da3119..379afee1a05 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxSpectralProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -83,7 +87,7 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return (val == true) + return val == true @property def tx_broadband_noise(self) -> float: @@ -144,7 +148,7 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return (val == true) + return val == true @property def number_of_harmonics(self) -> int: @@ -191,7 +195,7 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return (val == true) + return val == true @property def internal_amp_gain(self) -> float: @@ -261,4 +265,3 @@ def max_intermod_order(self) -> int: """ val = self._get_property("Max Intermod Order") return int(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py index 979db993892..16b1e9d70cd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spur_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyTxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,11 +42,11 @@ def parent(self): def table_data(self): """Table. Table consists of 3 columns. - Frequency (MHz): + Frequency (MHz): Value should be a mathematical expression. - Bandwidth: + Bandwidth: Value should be greater than 1.0. - Power: + Power: Value should be between -200.0 and 150.0. """ return self._get_table_data() @@ -57,4 +61,3 @@ def spur_table_units(self) -> SpurTableUnitsOption: val = self._get_property("Spur Table Units") val = self.SpurTableUnitsOption[val.upper()] return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py index 6642582b276..bc1124dcc0f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyWalfischCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -41,7 +45,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @property def base_antenna(self) -> EmitNode: @@ -62,7 +66,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @property def adaptive_sampling(self) -> bool: @@ -71,7 +75,7 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @property def refinement_domain(self): @@ -217,7 +221,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @property def rain_availability(self) -> float: @@ -262,7 +266,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @property def temperature(self) -> float: @@ -290,4 +294,3 @@ def water_vapor_concentration(self) -> float: """ val = self._get_property("Water Vapor Concentration") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py index 55421742282..ef9e488bfca 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ReadOnlyWaveform(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -153,7 +157,7 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return (val == true) + return val == true @property def nb_window_size(self) -> float: @@ -259,7 +263,7 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return (val == true) + return val == true @property def data_rate(self) -> float: @@ -287,7 +291,7 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return (val == true) + return val == true @property def min_ptsnull(self) -> int: @@ -307,4 +311,3 @@ def delay_skew(self) -> float: val = self._get_property("Delay Skew") val = self._convert_from_internal_units(float(val), "Time") return float(val) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py index 5e090da16fa..b0247071c0a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class ResultPlotNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -45,9 +49,7 @@ def title(self) -> str: @title.setter def title(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title={value}"]) @property def title_font(self): @@ -60,9 +62,7 @@ def title_font(self): @title_font.setter def title_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Title Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Title Font={value}"]) @property def show_legend(self) -> bool: @@ -71,13 +71,11 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return (val == true) + return val == true @show_legend.setter def show_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Legend={value}"]) @property def legend_font(self): @@ -90,9 +88,7 @@ def legend_font(self): @legend_font.setter def legend_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Legend Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Legend Font={value}"]) @property def show_emi_thresholds(self) -> bool: @@ -101,13 +97,11 @@ def show_emi_thresholds(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show EMI Thresholds") - return (val == true) + return val == true @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show EMI Thresholds={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show EMI Thresholds={value}"]) @property def display_cad_overlay(self) -> bool: @@ -116,13 +110,11 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return (val == true) + return val == true @display_cad_overlay.setter def display_cad_overlay(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Display CAD Overlay={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Display CAD Overlay={value}"]) @property def opacity(self) -> float: @@ -134,10 +126,8 @@ def opacity(self) -> float: return float(val) @opacity.setter - def opacity(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Opacity={value}"]) + def opacity(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Opacity={value}"]) @property def vertical_offset(self) -> float: @@ -146,10 +136,8 @@ def vertical_offset(self) -> float: return float(val) @vertical_offset.setter - def vertical_offset(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Vertical Offset={value}"]) + def vertical_offset(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Vertical Offset={value}"]) @property def range_axis_rotation(self) -> float: @@ -164,10 +152,8 @@ def range_axis_rotation(self) -> float: return float(val) @range_axis_rotation.setter - def range_axis_rotation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Range Axis Rotation={value}"]) + def range_axis_rotation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Range Axis Rotation={value}"]) @property def lock_axes(self) -> bool: @@ -179,13 +165,11 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return (val == true) + return val == true @lock_axes.setter def lock_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lock Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lock Axes={value}"]) @property def x_axis_min(self) -> float: @@ -194,10 +178,8 @@ def x_axis_min(self) -> float: return float(val) @x_axis_min.setter - def x_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Min={value}"]) + def x_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Min={value}"]) @property def x_axis_max(self) -> float: @@ -206,10 +188,8 @@ def x_axis_max(self) -> float: return float(val) @x_axis_max.setter - def x_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"X-axis Max={value}"]) + def x_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"X-axis Max={value}"]) @property def y_axis_min(self) -> float: @@ -218,10 +198,8 @@ def y_axis_min(self) -> float: return float(val) @y_axis_min.setter - def y_axis_min(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Min={value}"]) + def y_axis_min(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Min={value}"]) @property def y_axis_max(self) -> float: @@ -230,10 +208,8 @@ def y_axis_max(self) -> float: return float(val) @y_axis_max.setter - def y_axis_max(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Max={value}"]) + def y_axis_max(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Max={value}"]) @property def y_axis_range(self) -> float: @@ -248,10 +224,8 @@ def y_axis_range(self) -> float: return float(val) @y_axis_range.setter - def y_axis_range(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Y-axis Range={value}"]) + def y_axis_range(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Y-axis Range={value}"]) @property def max_major_ticks_x(self) -> int: @@ -266,9 +240,7 @@ def max_major_ticks_x(self) -> int: @max_major_ticks_x.setter def max_major_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks X={value}"]) @property def max_minor_ticks_x(self) -> int: @@ -284,9 +256,7 @@ def max_minor_ticks_x(self) -> int: @max_minor_ticks_x.setter def max_minor_ticks_x(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks X={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks X={value}"]) @property def max_major_ticks_y(self) -> int: @@ -301,9 +271,7 @@ def max_major_ticks_y(self) -> int: @max_major_ticks_y.setter def max_major_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Major Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Major Ticks Y={value}"]) @property def max_minor_ticks_y(self) -> int: @@ -319,9 +287,7 @@ def max_minor_ticks_y(self) -> int: @max_minor_ticks_y.setter def max_minor_ticks_y(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Minor Ticks Y={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Minor Ticks Y={value}"]) @property def axis_label_font(self): @@ -334,9 +300,7 @@ def axis_label_font(self): @axis_label_font.setter def axis_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Label Font={value}"]) @property def axis_tick_label_font(self): @@ -349,9 +313,7 @@ def axis_tick_label_font(self): @axis_tick_label_font.setter def axis_tick_label_font(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Axis Tick Label Font={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Axis Tick Label Font={value}"]) class MajorGridLineStyleOption(Enum): LINES = "Lines" @@ -370,9 +332,9 @@ def major_grid_line_style(self) -> MajorGridLineStyleOption: @major_grid_line_style.setter def major_grid_line_style(self, value: MajorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Major Grid Line Style={value.value}"] + ) @property def major_grid_color(self): @@ -385,9 +347,7 @@ def major_grid_color(self): @major_grid_color.setter def major_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Major Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Major Grid Color={value}"]) class MinorGridLineStyleOption(Enum): LINES = "Lines" @@ -406,9 +366,9 @@ def minor_grid_line_style(self) -> MinorGridLineStyleOption: @minor_grid_line_style.setter def minor_grid_line_style(self, value: MinorGridLineStyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Line Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Minor Grid Line Style={value.value}"] + ) @property def minor_grid_color(self): @@ -421,9 +381,7 @@ def minor_grid_color(self): @minor_grid_color.setter def minor_grid_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minor Grid Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minor Grid Color={value}"]) @property def background_color(self): @@ -436,9 +394,7 @@ def background_color(self): @background_color.setter def background_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Background Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Background Color={value}"]) class BBPowerforPlotsUnitOption(Enum): HERTZ = "hertz" @@ -455,9 +411,9 @@ def bb_power_for_plots_unit(self) -> BBPowerforPlotsUnitOption: @bb_power_for_plots_unit.setter def bb_power_for_plots_unit(self, value: BBPowerforPlotsUnitOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power for Plots Unit={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"BB Power for Plots Unit={value.value}"] + ) @property def bb_power_bandwidth(self) -> float: @@ -470,11 +426,9 @@ def bb_power_bandwidth(self) -> float: return float(val) @bb_power_bandwidth.setter - def bb_power_bandwidth(self, value : float|str): + def bb_power_bandwidth(self, value: float | str): value = self._convert_to_internal_units(value, "") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Power Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Power Bandwidth={value}"]) @property def log_scale(self) -> bool: @@ -483,11 +437,8 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return (val == true) + return val == true @log_scale.setter def log_scale(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Log Scale={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Log Scale={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py index 48b7fb3ac4d..bb7327a4654 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -81,9 +85,7 @@ def measurement_mode(self) -> MeasurementModeOption: @measurement_mode.setter def measurement_mode(self, value: MeasurementModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Mode={value.value}"]) @property def sinad_threshold(self) -> float: @@ -95,10 +97,8 @@ def sinad_threshold(self) -> float: return float(val) @sinad_threshold.setter - def sinad_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SINAD Threshold={value}"]) + def sinad_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SINAD Threshold={value}"]) @property def gps_cnr_threshold(self) -> float: @@ -110,10 +110,8 @@ def gps_cnr_threshold(self) -> float: return float(val) @gps_cnr_threshold.setter - def gps_cnr_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"GPS CNR Threshold={value}"]) + def gps_cnr_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"GPS CNR Threshold={value}"]) @property def ber_threshold(self) -> float: @@ -125,10 +123,8 @@ def ber_threshold(self) -> float: return float(val) @ber_threshold.setter - def ber_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BER Threshold={value}"]) + def ber_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BER Threshold={value}"]) @property def default_intended_power(self) -> bool: @@ -137,13 +133,11 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return (val == true) + return val == true @default_intended_power.setter def default_intended_power(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Default Intended Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Default Intended Power={value}"]) @property def intended_signal_power(self) -> float: @@ -155,10 +149,8 @@ def intended_signal_power(self) -> float: return float(val) @intended_signal_power.setter - def intended_signal_power(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Intended Signal Power={value}"]) + def intended_signal_power(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Intended Signal Power={value}"]) @property def freq_deviation(self) -> float: @@ -171,11 +163,9 @@ def freq_deviation(self) -> float: return float(val) @freq_deviation.setter - def freq_deviation(self, value : float|str): + def freq_deviation(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Freq. Deviation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Freq. Deviation={value}"]) @property def modulation_depth(self) -> float: @@ -187,10 +177,8 @@ def modulation_depth(self) -> float: return float(val) @modulation_depth.setter - def modulation_depth(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Modulation Depth={value}"]) + def modulation_depth(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Modulation Depth={value}"]) @property def measure_selectivity(self) -> bool: @@ -199,13 +187,11 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return (val == true) + return val == true @measure_selectivity.setter def measure_selectivity(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Selectivity={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Selectivity={value}"]) @property def measure_mixer_products(self) -> bool: @@ -214,13 +200,11 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return (val == true) + return val == true @measure_mixer_products.setter def measure_mixer_products(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Mixer Products={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Mixer Products={value}"]) @property def max_rf_order(self) -> int: @@ -233,9 +217,7 @@ def max_rf_order(self) -> int: @max_rf_order.setter def max_rf_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max RF Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max RF Order={value}"]) @property def max_lo_order(self) -> int: @@ -248,9 +230,7 @@ def max_lo_order(self) -> int: @max_lo_order.setter def max_lo_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max LO Order={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max LO Order={value}"]) @property def include_if(self) -> bool: @@ -259,13 +239,11 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return (val == true) + return val == true @include_if.setter def include_if(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include IF={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include IF={value}"]) @property def measure_saturation(self) -> bool: @@ -274,13 +252,11 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return (val == true) + return val == true @measure_saturation.setter def measure_saturation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measure Saturation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measure Saturation={value}"]) @property def use_ams_limits(self) -> bool: @@ -289,13 +265,11 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return (val == true) + return val == true @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -308,11 +282,9 @@ def start_frequency(self) -> float: return float(val) @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -325,11 +297,9 @@ def stop_frequency(self) -> float: return float(val) @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def samples(self) -> int: @@ -342,9 +312,7 @@ def samples(self) -> int: @samples.setter def samples(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Samples={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Samples={value}"]) @property def exclude_mixer_products_below_noise(self) -> bool: @@ -353,20 +321,19 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return (val == true) + return val == true @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Exclude Mixer Products Below Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Exclude Mixer Products Below Noise={value}"] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py index b1b666c7a3b..e4946d32b5b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_mixer_product_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RxMixerProductNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -45,7 +49,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -65,9 +69,9 @@ def mixer_product_taper(self) -> MixerProductTaperOption: @mixer_product_taper.setter def mixer_product_taper(self, value: MixerProductTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Taper={value.value}"] + ) @property def mixer_product_susceptibility(self) -> float: @@ -79,10 +83,10 @@ def mixer_product_susceptibility(self) -> float: return float(val) @mixer_product_susceptibility.setter - def mixer_product_susceptibility(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Susceptibility={value}"]) + def mixer_product_susceptibility(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Susceptibility={value}"] + ) @property def spurious_rejection(self) -> float: @@ -94,10 +98,8 @@ def spurious_rejection(self) -> float: return float(val) @spurious_rejection.setter - def spurious_rejection(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spurious Rejection={value}"]) + def spurious_rejection(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spurious Rejection={value}"]) @property def minimum_tuning_frequency(self) -> float: @@ -110,11 +112,9 @@ def minimum_tuning_frequency(self) -> float: return float(val) @minimum_tuning_frequency.setter - def minimum_tuning_frequency(self, value : float|str): + def minimum_tuning_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Minimum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Minimum Tuning Frequency={value}"]) @property def maximum_tuning_frequency(self) -> float: @@ -127,11 +127,9 @@ def maximum_tuning_frequency(self) -> float: return float(val) @maximum_tuning_frequency.setter - def maximum_tuning_frequency(self, value : float|str): + def maximum_tuning_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum Tuning Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Maximum Tuning Frequency={value}"]) @property def mixer_product_slope(self) -> float: @@ -146,10 +144,8 @@ def mixer_product_slope(self) -> float: return float(val) @mixer_product_slope.setter - def mixer_product_slope(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Slope={value}"]) + def mixer_product_slope(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Slope={value}"]) @property def mixer_product_intercept(self) -> float: @@ -161,10 +157,8 @@ def mixer_product_intercept(self) -> float: return float(val) @mixer_product_intercept.setter - def mixer_product_intercept(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Intercept={value}"]) + def mixer_product_intercept(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixer Product Intercept={value}"]) @property def bandwidth_80_db(self) -> float: @@ -180,11 +174,9 @@ def bandwidth_80_db(self) -> float: return float(val) @bandwidth_80_db.setter - def bandwidth_80_db(self, value : float|str): + def bandwidth_80_db(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 80 dB={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 80 dB={value}"]) @property def image_rejection(self) -> float: @@ -196,10 +188,8 @@ def image_rejection(self) -> float: return float(val) @image_rejection.setter - def image_rejection(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Image Rejection={value}"]) + def image_rejection(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Image Rejection={value}"]) @property def maximum_rf_harmonic_order(self) -> int: @@ -212,9 +202,9 @@ def maximum_rf_harmonic_order(self) -> int: @maximum_rf_harmonic_order.setter def maximum_rf_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum RF Harmonic Order={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Maximum RF Harmonic Order={value}"] + ) @property def maximum_lo_harmonic_order(self) -> int: @@ -227,9 +217,9 @@ def maximum_lo_harmonic_order(self) -> int: @maximum_lo_harmonic_order.setter def maximum_lo_harmonic_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Maximum LO Harmonic Order={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Maximum LO Harmonic Order={value}"] + ) class MixingModeOption(Enum): LO_ABOVE_TUNED_RF_FREQUENCY = "LO Above Tuned (RF) Frequency" @@ -245,9 +235,7 @@ def mixing_mode(self) -> MixingModeOption: @mixing_mode.setter def mixing_mode(self, value: MixingModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixing Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mixing Mode={value.value}"]) @property def first_if_frequency(self): @@ -260,9 +248,7 @@ def first_if_frequency(self): @first_if_frequency.setter def first_if_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"First IF Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"First IF Frequency={value}"]) @property def rf_transition_frequency(self) -> float: @@ -272,11 +258,9 @@ def rf_transition_frequency(self) -> float: return float(val) @rf_transition_frequency.setter - def rf_transition_frequency(self, value : float|str): + def rf_transition_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"RF Transition Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"RF Transition Frequency={value}"]) class UseHighLOOption(Enum): ABOVE_TRANSITION_FREQUENCY = "Above Transition Frequency" @@ -291,9 +275,7 @@ def use_high_lo(self) -> UseHighLOOption: @use_high_lo.setter def use_high_lo(self, value: UseHighLOOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use High LO={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use High LO={value.value}"]) class MixerProductTableUnitsOption(Enum): ABSOLUTE = "Absolute" @@ -308,7 +290,6 @@ def mixer_product_table_units(self) -> MixerProductTableUnitsOption: @mixer_product_table_units.setter def mixer_product_table_units(self, value: MixerProductTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mixer Product Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Mixer Product Table Units={value.value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py index df6a48c060b..62e4e8f9276 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_saturation_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RxSaturationNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,9 +47,8 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py index 2a50c884f53..d8949544e68 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RxSelectivityNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -35,7 +38,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -44,7 +47,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -60,11 +63,8 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return (val == true) + return val == true @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Arithmetic Mean={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Arithmetic Mean={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py index b62e05867c7..1e94f1933ff 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_spur_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -46,11 +50,11 @@ def delete(self): def table_data(self): """Table. Table consists of 3 columns. - Frequency (MHz): + Frequency (MHz): Value should be a mathematical expression. - Bandwidth: + Bandwidth: Value should be greater than 1.0. - Power: + Power: Value should be between -200.0 and 150.0. """ return self._get_table_data() @@ -62,7 +66,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -81,7 +85,4 @@ def spur_table_units(self) -> SpurTableUnitsOption: @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spur Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py index d6fbe59699d..704f4ae6ddb 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class RxSusceptibilityProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -58,9 +62,7 @@ def sensitivity_units(self) -> SensitivityUnitsOption: @sensitivity_units.setter def sensitivity_units(self, value: SensitivityUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sensitivity Units={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sensitivity Units={value.value}"]) @property def min_receive_signal_pwr(self) -> float: @@ -72,10 +74,8 @@ def min_receive_signal_pwr(self) -> float: return float(val) @min_receive_signal_pwr.setter - def min_receive_signal_pwr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min. Receive Signal Pwr={value}"]) + def min_receive_signal_pwr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min. Receive Signal Pwr={value}"]) @property def snr_at_rx_signal_pwr(self) -> float: @@ -90,10 +90,8 @@ def snr_at_rx_signal_pwr(self) -> float: return float(val) @snr_at_rx_signal_pwr.setter - def snr_at_rx_signal_pwr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SNR at Rx Signal Pwr={value}"]) + def snr_at_rx_signal_pwr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR at Rx Signal Pwr={value}"]) @property def processing_gain(self) -> float: @@ -105,10 +103,8 @@ def processing_gain(self) -> float: return float(val) @processing_gain.setter - def processing_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Processing Gain={value}"]) + def processing_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Processing Gain={value}"]) @property def apply_pg_to_narrowband_only(self) -> bool: @@ -120,13 +116,13 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return (val == true) + return val == true @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Apply PG to Narrowband Only={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Apply PG to Narrowband Only={value}"] + ) @property def saturation_level(self) -> float: @@ -139,11 +135,9 @@ def saturation_level(self) -> float: return float(val) @saturation_level.setter - def saturation_level(self, value : float|str): + def saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Saturation Level={value}"]) @property def rx_noise_figure(self) -> float: @@ -155,10 +149,8 @@ def rx_noise_figure(self) -> float: return float(val) @rx_noise_figure.setter - def rx_noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rx Noise Figure={value}"]) + def rx_noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rx Noise Figure={value}"]) @property def receiver_sensitivity(self) -> float: @@ -171,11 +163,9 @@ def receiver_sensitivity(self) -> float: return float(val) @receiver_sensitivity.setter - def receiver_sensitivity(self, value : float|str): + def receiver_sensitivity(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Receiver Sensitivity={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Receiver Sensitivity={value}"]) @property def snrsinad_at_sensitivity(self) -> float: @@ -187,10 +177,8 @@ def snrsinad_at_sensitivity(self) -> float: return float(val) @snrsinad_at_sensitivity.setter - def snrsinad_at_sensitivity(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SNR/SINAD at Sensitivity={value}"]) + def snrsinad_at_sensitivity(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"SNR/SINAD at Sensitivity={value}"]) @property def perform_rx_intermod_analysis(self) -> bool: @@ -199,13 +187,13 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return (val == true) + return val == true @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Rx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Rx Intermod Analysis={value}"] + ) @property def amplifier_saturation_level(self) -> float: @@ -218,11 +206,11 @@ def amplifier_saturation_level(self) -> float: return float(val) @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input(self) -> float: @@ -237,11 +225,9 @@ def p1_db_point_ref_input(self) -> float: return float(val) @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value : float|str): + def p1_db_point_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input={value}"]) @property def ip3_ref_input(self) -> float: @@ -254,11 +240,9 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def max_intermod_order(self) -> int: @@ -271,7 +255,4 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py index f02e4da0b79..7bdb3ae30e5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class SamplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -38,9 +42,9 @@ def parent(self): def table_data(self): """Table. Table consists of 2 columns. - Min: + Min: Value should be greater than 1.0. - Max: + Max: Value should be greater than 1.0. """ return self._get_table_data() @@ -63,9 +67,7 @@ def sampling_type(self) -> SamplingTypeOption: @sampling_type.setter def sampling_type(self, value: SamplingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Sampling Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Sampling Type={value.value}"]) @property def specify_percentage(self) -> bool: @@ -77,13 +79,11 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return (val == true) + return val == true @specify_percentage.setter def specify_percentage(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Specify Percentage={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Specify Percentage={value}"]) @property def percentage_of_channels(self) -> float: @@ -95,10 +95,8 @@ def percentage_of_channels(self) -> float: return float(val) @percentage_of_channels.setter - def percentage_of_channels(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Percentage of Channels={value}"]) + def percentage_of_channels(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Percentage of Channels={value}"]) @property def max__channelsrangeband(self) -> int: @@ -111,9 +109,9 @@ def max__channelsrangeband(self) -> int: @max__channelsrangeband.setter def max__channelsrangeband(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max # Channels/Range/Band={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Max # Channels/Range/Band={value}"] + ) @property def seed(self) -> int: @@ -126,9 +124,7 @@ def seed(self) -> int: @seed.setter def seed(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Seed={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Seed={value}"]) @property def total_tx_channels(self) -> int: @@ -155,4 +151,3 @@ def warnings(self) -> str: """Warning(s) for this node.""" val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py index 890c2bf3460..664a425a136 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class SceneGroupNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -60,13 +64,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return val == true @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Relative Coordinates={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Show Relative Coordinates={value}"] + ) @property def position(self): @@ -79,9 +83,7 @@ def position(self): @position.setter def position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Position={value}"]) @property def relative_position(self): @@ -94,9 +96,7 @@ def relative_position(self): @relative_position.setter def relative_position(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Position={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Position={value}"]) class OrientationModeOption(Enum): ROLL_PITCH_YAW = "Roll-Pitch-Yaw" @@ -114,9 +114,7 @@ def orientation_mode(self) -> OrientationModeOption: @orientation_mode.setter def orientation_mode(self, value: OrientationModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation Mode={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation Mode={value.value}"]) @property def orientation(self): @@ -131,9 +129,7 @@ def orientation(self): @orientation.setter def orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Orientation={value}"]) @property def relative_orientation(self): @@ -148,9 +144,7 @@ def relative_orientation(self): @relative_orientation.setter def relative_orientation(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Relative Orientation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Relative Orientation={value}"]) @property def show_axes(self) -> bool: @@ -161,13 +155,11 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return val == true @show_axes.setter def show_axes(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Show Axes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Show Axes={value}"]) @property def box_color(self): @@ -180,9 +172,7 @@ def box_color(self): @box_color.setter def box_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Box Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Box Color={value}"]) @property def notes(self) -> str: @@ -192,7 +182,4 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py index cab9ac9566f..a815c8c8496 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class SelectivityTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -58,9 +62,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -69,13 +71,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -84,13 +84,11 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: @@ -100,9 +98,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -121,9 +117,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -136,9 +130,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -151,9 +143,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -181,9 +171,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -196,9 +184,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -211,9 +197,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -226,9 +210,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -240,11 +222,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py index 0ed36abedf4..4b6f706b54e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class SolutionCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -43,13 +46,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -58,13 +59,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -73,13 +72,11 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): @@ -89,7 +86,4 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py index 87647899c2f..df582638b37 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class SolutionsNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -43,11 +46,8 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py index 9e1c10abd65..bc701b69326 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class SpurTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -54,9 +58,7 @@ def channel_frequency(self): @channel_frequency.setter def channel_frequency(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Frequency={value}"]) @property def transmit_frequency(self) -> float: @@ -81,9 +83,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -92,13 +92,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -107,13 +105,11 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: @@ -123,9 +119,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -144,9 +138,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -159,9 +151,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -174,9 +164,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -204,9 +192,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -219,9 +205,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -234,9 +218,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -249,9 +231,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -263,11 +243,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/terminator.py b/src/ansys/aedt/core/emit_core/nodes/generated/terminator.py index 7f7156c2731..1bb49082441 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/terminator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/terminator.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Terminator(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -52,9 +56,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -66,10 +68,8 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: @@ -79,9 +79,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TypeOption(Enum): BY_FILE = "By File" @@ -100,9 +98,7 @@ def type(self) -> TypeOption: @type.setter def type(self, value: TypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Type={value.value}"]) class PortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -117,9 +113,7 @@ def port_location(self) -> PortLocationOption: @port_location.setter def port_location(self, value: PortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port Location={value.value}"]) @property def vswr(self) -> float: @@ -135,14 +129,11 @@ def vswr(self) -> float: return float(val) @vswr.setter - def vswr(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"VSWR={value}"]) + def vswr(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"VSWR={value}"]) @property def warnings(self) -> str: """Warning(s) for this node.""" val = self._get_property("Warnings") return val - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py index 2921ab0cecf..e3f9a47d2b9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TestNoiseTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -57,9 +61,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -72,9 +74,7 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -88,9 +88,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -99,13 +97,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -114,13 +110,11 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: @@ -130,9 +124,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -151,9 +143,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -166,9 +156,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -181,9 +169,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -211,9 +197,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -226,9 +210,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -241,9 +223,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -256,9 +236,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -270,13 +248,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -289,11 +265,9 @@ def frequency_1(self) -> float: return float(val) @frequency_1.setter - def frequency_1(self, value : float|str): + def frequency_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -306,11 +280,9 @@ def amplitude_1(self) -> float: return float(val) @amplitude_1.setter - def amplitude_1(self, value : float|str): + def amplitude_1(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -323,11 +295,9 @@ def bandwidth_1(self) -> float: return float(val) @bandwidth_1.setter - def bandwidth_1(self, value : float|str): + def bandwidth_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -340,11 +310,9 @@ def frequency_2(self) -> float: return float(val) @frequency_2.setter - def frequency_2(self, value : float|str): + def frequency_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -357,11 +325,9 @@ def amplitude_2(self) -> float: return float(val) @amplitude_2.setter - def amplitude_2(self, value : float|str): + def amplitude_2(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -374,11 +340,9 @@ def bandwidth_2(self) -> float: return float(val) @bandwidth_2.setter - def bandwidth_2(self, value : float|str): + def bandwidth_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -390,8 +354,5 @@ def noise_level(self) -> float: return float(val) @noise_level.setter - def noise_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Level={value}"]) - + def noise_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py b/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py index 3dc7c0a53b1..e54ab2654f2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/top_level_simulation.py @@ -1,30 +1,32 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TopLevelSimulation(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False EmitNode.__init__(self, emit_obj, result_id, node_id) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py index dc1028801a7..c571863c107 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TouchstoneCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -52,13 +55,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def enable_refinement(self) -> bool: @@ -67,13 +68,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -82,13 +81,11 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): @@ -98,9 +95,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def filename(self) -> str: @@ -113,9 +108,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def savant_matched_coupling_file(self) -> str: @@ -130,13 +123,11 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return (val == true) + return val == true @enable_em_isolation.setter def enable_em_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable EM Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable EM Isolation={value}"]) @property def port_antenna_assignment(self): @@ -146,9 +137,7 @@ def port_antenna_assignment(self): @port_antenna_assignment.setter def port_antenna_assignment(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port-Antenna Assignment={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port-Antenna Assignment={value}"]) @property def notes(self) -> str: @@ -158,7 +147,4 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch.py index e0a06aba11d..979e06d145f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TR_Switch(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = True @@ -52,9 +56,7 @@ def filename(self) -> str: @filename.setter def filename(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Filename={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Filename={value}"]) @property def noise_temperature(self) -> float: @@ -66,10 +68,8 @@ def noise_temperature(self) -> float: return float(val) @noise_temperature.setter - def noise_temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Temperature={value}"]) + def noise_temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Temperature={value}"]) @property def notes(self) -> str: @@ -79,9 +79,7 @@ def notes(self) -> str: @notes.setter def notes(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Notes={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Notes={value}"]) class TxPortOption(Enum): PORT_1 = "Port 1" @@ -96,9 +94,7 @@ def tx_port(self) -> TxPortOption: @tx_port.setter def tx_port(self, value: TxPortOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Port={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Port={value.value}"]) class CommonPortLocationOption(Enum): RADIO_SIDE = "Radio Side" @@ -113,9 +109,9 @@ def common_port_location(self) -> CommonPortLocationOption: @common_port_location.setter def common_port_location(self, value: CommonPortLocationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Common Port Location={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Common Port Location={value.value}"] + ) @property def insertion_loss(self) -> float: @@ -127,10 +123,8 @@ def insertion_loss(self) -> float: return float(val) @insertion_loss.setter - def insertion_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Insertion Loss={value}"]) + def insertion_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Insertion Loss={value}"]) @property def finite_isolation(self) -> bool: @@ -142,13 +136,11 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return (val == true) + return val == true @finite_isolation.setter def finite_isolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Isolation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Isolation={value}"]) @property def isolation(self) -> float: @@ -160,10 +152,8 @@ def isolation(self) -> float: return float(val) @isolation.setter - def isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Isolation={value}"]) + def isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Isolation={value}"]) @property def finite_bandwidth(self) -> bool: @@ -175,13 +165,11 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return val == true @finite_bandwidth.setter def finite_bandwidth(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Finite Bandwidth={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Finite Bandwidth={value}"]) @property def out_of_band_attenuation(self) -> float: @@ -193,10 +181,8 @@ def out_of_band_attenuation(self) -> float: return float(val) @out_of_band_attenuation.setter - def out_of_band_attenuation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Out-of-band Attenuation={value}"]) + def out_of_band_attenuation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Out-of-band Attenuation={value}"]) @property def lower_stop_band(self) -> float: @@ -209,11 +195,9 @@ def lower_stop_band(self) -> float: return float(val) @lower_stop_band.setter - def lower_stop_band(self, value : float|str): + def lower_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Stop Band={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Stop Band={value}"]) @property def lower_cutoff(self) -> float: @@ -226,11 +210,9 @@ def lower_cutoff(self) -> float: return float(val) @lower_cutoff.setter - def lower_cutoff(self, value : float|str): + def lower_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Lower Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Lower Cutoff={value}"]) @property def higher_cutoff(self) -> float: @@ -243,11 +225,9 @@ def higher_cutoff(self) -> float: return float(val) @higher_cutoff.setter - def higher_cutoff(self, value : float|str): + def higher_cutoff(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Cutoff={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Cutoff={value}"]) @property def higher_stop_band(self) -> float: @@ -260,9 +240,6 @@ def higher_stop_band(self) -> float: return float(val) @higher_stop_band.setter - def higher_stop_band(self, value : float|str): + def higher_stop_band(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Higher Stop Band={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Higher Stop Band={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py index d63c8951e29..3a0b6dd3578 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TRSwitchTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -57,9 +61,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -72,9 +74,7 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -88,9 +88,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -99,13 +97,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -114,13 +110,11 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: @@ -130,9 +124,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -151,9 +143,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -166,9 +156,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -181,9 +169,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -211,9 +197,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -226,9 +210,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -241,9 +223,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -256,9 +236,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -270,11 +248,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py index fe49372333b..8b3914c8b7f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TunableTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -57,9 +61,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -72,9 +74,7 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def frequency(self) -> float: @@ -84,11 +84,9 @@ def frequency(self) -> float: return float(val) @frequency.setter - def frequency(self, value : float|str): + def frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency={value}"]) @property def data_source(self): @@ -102,9 +100,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -113,13 +109,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -128,13 +122,11 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: @@ -144,9 +136,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -165,9 +155,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -180,9 +168,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -195,9 +181,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -225,9 +209,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -240,9 +222,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -255,9 +235,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -270,9 +248,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -284,11 +260,8 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py index a554f564578..49fb44201ef 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TwoRayPathLossCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -53,13 +57,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def antenna_a(self) -> EmitNode: @@ -69,9 +71,7 @@ def antenna_a(self) -> EmitNode: @antenna_a.setter def antenna_a(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna A={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna A={value}"]) @property def antenna_b(self) -> EmitNode: @@ -81,9 +81,7 @@ def antenna_b(self) -> EmitNode: @antenna_b.setter def antenna_b(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Antenna B={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Antenna B={value}"]) @property def enable_refinement(self) -> bool: @@ -92,13 +90,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -107,13 +103,11 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): @@ -123,9 +117,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) @property def ground_reflection_coeff(self) -> float: @@ -137,10 +129,8 @@ def ground_reflection_coeff(self) -> float: return float(val) @ground_reflection_coeff.setter - def ground_reflection_coeff(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Ground Reflection Coeff.={value}"]) + def ground_reflection_coeff(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Ground Reflection Coeff.={value}"]) @property def pointspeak(self) -> int: @@ -155,9 +145,7 @@ def pointspeak(self) -> int: @pointspeak.setter def pointspeak(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Points/Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Points/Peak={value}"]) @property def custom_fading_margin(self) -> float: @@ -172,10 +160,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -190,10 +176,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -208,10 +192,8 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -228,9 +210,7 @@ def fading_type(self) -> FadingTypeOption: @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -245,10 +225,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -260,10 +238,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -272,13 +248,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -293,10 +267,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -308,10 +280,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -326,10 +296,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -341,13 +309,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -359,10 +327,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -374,10 +340,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -389,8 +353,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py index 3a6197fbba8..3e26c45e4d2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TwoToneTraceNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -57,9 +61,7 @@ def input_port(self) -> int: @input_port.setter def input_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Input Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Input Port={value}"]) @property def output_port(self) -> int: @@ -72,9 +74,7 @@ def output_port(self) -> int: @output_port.setter def output_port(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Port={value}"]) @property def data_source(self): @@ -88,9 +88,7 @@ def data_source(self): @data_source.setter def data_source(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Source={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Source={value}"]) @property def visible(self) -> bool: @@ -99,13 +97,11 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return val == true @visible.setter def visible(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Visible={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Visible={value}"]) @property def custom_legend(self) -> bool: @@ -114,13 +110,11 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return val == true @custom_legend.setter def custom_legend(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Legend={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Legend={value}"]) @property def name(self) -> str: @@ -130,9 +124,7 @@ def name(self) -> str: @name.setter def name(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Name={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Name={value}"]) class StyleOption(Enum): LINES = "Lines" @@ -151,9 +143,7 @@ def style(self) -> StyleOption: @style.setter def style(self, value: StyleOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Style={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Style={value.value}"]) @property def line_width(self) -> int: @@ -166,9 +156,7 @@ def line_width(self) -> int: @line_width.setter def line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Width={value}"]) @property def line_color(self): @@ -181,9 +169,7 @@ def line_color(self): @line_color.setter def line_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Line Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Line Color={value}"]) class SymbolOption(Enum): NOSYMBOL = "NoSymbol" @@ -211,9 +197,7 @@ def symbol(self) -> SymbolOption: @symbol.setter def symbol(self, value: SymbolOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol={value.value}"]) @property def symbol_size(self) -> int: @@ -226,9 +210,7 @@ def symbol_size(self) -> int: @symbol_size.setter def symbol_size(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Size={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Size={value}"]) @property def symbol_color(self): @@ -241,9 +223,7 @@ def symbol_color(self): @symbol_color.setter def symbol_color(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Color={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Color={value}"]) @property def symbol_line_width(self) -> int: @@ -256,9 +236,7 @@ def symbol_line_width(self) -> int: @symbol_line_width.setter def symbol_line_width(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Line Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Line Width={value}"]) @property def symbol_filled(self) -> bool: @@ -270,13 +248,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return val == true @symbol_filled.setter def symbol_filled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Symbol Filled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Symbol Filled={value}"]) @property def frequency_1(self) -> float: @@ -289,11 +265,9 @@ def frequency_1(self) -> float: return float(val) @frequency_1.setter - def frequency_1(self, value : float|str): + def frequency_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 1={value}"]) @property def amplitude_1(self) -> float: @@ -306,11 +280,9 @@ def amplitude_1(self) -> float: return float(val) @amplitude_1.setter - def amplitude_1(self, value : float|str): + def amplitude_1(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 1={value}"]) @property def bandwidth_1(self) -> float: @@ -323,11 +295,9 @@ def bandwidth_1(self) -> float: return float(val) @bandwidth_1.setter - def bandwidth_1(self, value : float|str): + def bandwidth_1(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 1={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 1={value}"]) @property def frequency_2(self) -> float: @@ -340,11 +310,9 @@ def frequency_2(self) -> float: return float(val) @frequency_2.setter - def frequency_2(self, value : float|str): + def frequency_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Frequency 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Frequency 2={value}"]) @property def amplitude_2(self) -> float: @@ -357,11 +325,9 @@ def amplitude_2(self) -> float: return float(val) @amplitude_2.setter - def amplitude_2(self, value : float|str): + def amplitude_2(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplitude 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Amplitude 2={value}"]) @property def bandwidth_2(self) -> float: @@ -374,11 +340,9 @@ def bandwidth_2(self) -> float: return float(val) @bandwidth_2.setter - def bandwidth_2(self, value : float|str): + def bandwidth_2(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Bandwidth 2={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Bandwidth 2={value}"]) @property def noise_level(self) -> float: @@ -390,8 +354,5 @@ def noise_level(self) -> float: return float(val) @noise_level.setter - def noise_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Level={value}"]) - + def noise_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Level={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py index 45aaca77b44..c28b0bc3c27 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxBbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -46,9 +50,9 @@ def delete(self): def table_data(self): """Tx Broadband Noise Profile Table. Table consists of 2 columns. - Frequency (MHz): + Frequency (MHz): Value should be a mathematical expression. - Amplitude (dBm/Hz): + Amplitude (dBm/Hz): Value should be between -200.0 and 150.0. """ return self._get_table_data() @@ -60,7 +64,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -81,9 +85,7 @@ def noise_behavior(self) -> NoiseBehaviorOption: @noise_behavior.setter def noise_behavior(self, value: NoiseBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Behavior={value.value}"]) @property def use_log_linear_interpolation(self) -> bool: @@ -95,11 +97,10 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return (val == true) + return val == true @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Log-Linear Interpolation={value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Use Log-Linear Interpolation={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py index ac0309aa384..8236eb8e1e6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_harmonic_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxHarmonicNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -45,7 +49,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -64,7 +68,6 @@ def harmonic_table_units(self) -> HarmonicTableUnitsOption: @harmonic_table_units.setter def harmonic_table_units(self, value: HarmonicTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Harmonic Table Units={value.value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py index 417ea4d2cce..4387238cb4b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxMeasNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -73,13 +76,11 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return (val == true) + return val == true @use_ams_limits.setter def use_ams_limits(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use AMS Limits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use AMS Limits={value}"]) @property def start_frequency(self) -> float: @@ -92,11 +93,9 @@ def start_frequency(self) -> float: return float(val) @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -109,11 +108,9 @@ def stop_frequency(self) -> float: return float(val) @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def exclude_harmonics_below_noise(self) -> bool: @@ -122,20 +119,19 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return (val == true) + return val == true @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Exclude Harmonics Below Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Exclude Harmonics Below Noise={value}"] + ) @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"enabled= + {value}"]) - diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py index d34873d9388..f60b8d4bbae 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_nb_emission_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxNbEmissionNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -45,7 +49,7 @@ def delete(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -64,9 +68,9 @@ def narrowband_behavior(self) -> NarrowbandBehaviorOption: @narrowband_behavior.setter def narrowband_behavior(self, value: NarrowbandBehaviorOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Narrowband Behavior={value.value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Narrowband Behavior={value.value}"] + ) @property def measurement_frequency(self) -> float: @@ -76,9 +80,6 @@ def measurement_frequency(self) -> float: return float(val) @measurement_frequency.setter - def measurement_frequency(self, value : float|str): + def measurement_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Measurement Frequency={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Measurement Frequency={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py index efc51c291d9..9220b3d596a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py @@ -1,28 +1,31 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxSpectralProfEmitterNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +39,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -50,11 +53,9 @@ def output_voltage_peak(self) -> float: return float(val) @output_voltage_peak.setter - def output_voltage_peak(self, value : float|str): + def output_voltage_peak(self, value: float | str): value = self._convert_to_internal_units(value, "Voltage") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Output Voltage Peak={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Output Voltage Peak={value}"]) @property def include_phase_noise(self) -> bool: @@ -63,13 +64,11 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return (val == true) + return val == true @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -81,10 +80,8 @@ def tx_broadband_noise(self) -> float: return float(val) @tx_broadband_noise.setter - def tx_broadband_noise(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -93,13 +90,13 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return (val == true) + return val == true @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Tx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] + ) @property def internal_amp_gain(self) -> float: @@ -111,10 +108,8 @@ def internal_amp_gain(self) -> float: return float(val) @internal_amp_gain.setter - def internal_amp_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -126,10 +121,8 @@ def noise_figure(self) -> float: return float(val) @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -142,11 +135,11 @@ def amplifier_saturation_level(self) -> float: return float(val) @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input(self) -> float: @@ -162,11 +155,9 @@ def p1_db_point_ref_input(self) -> float: return float(val) @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value : float|str): + def p1_db_point_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -179,11 +170,9 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -195,10 +184,8 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -211,7 +198,4 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py index 7165138f0d0..1a1282c9f1b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxSpectralProfNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -56,9 +60,7 @@ def spectrum_type(self) -> SpectrumTypeOption: @spectrum_type.setter def spectrum_type(self, value: SpectrumTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spectrum Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spectrum Type={value.value}"]) class TxPowerOption(Enum): PEAK_POWER = "Peak Power" @@ -73,9 +75,7 @@ def tx_power(self) -> TxPowerOption: @tx_power.setter def tx_power(self, value: TxPowerOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Power={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Power={value.value}"]) @property def peak_power(self) -> float: @@ -88,11 +88,9 @@ def peak_power(self) -> float: return float(val) @peak_power.setter - def peak_power(self, value : float|str): + def peak_power(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Peak Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Peak Power={value}"]) @property def average_power(self) -> float: @@ -105,11 +103,9 @@ def average_power(self) -> float: return float(val) @average_power.setter - def average_power(self, value : float|str): + def average_power(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Average Power={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Average Power={value}"]) @property def include_phase_noise(self) -> bool: @@ -118,13 +114,11 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return (val == true) + return val == true @include_phase_noise.setter def include_phase_noise(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Phase Noise={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Phase Noise={value}"]) @property def tx_broadband_noise(self) -> float: @@ -136,10 +130,8 @@ def tx_broadband_noise(self) -> float: return float(val) @tx_broadband_noise.setter - def tx_broadband_noise(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Tx Broadband Noise={value}"]) + def tx_broadband_noise(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Tx Broadband Noise={value}"]) class HarmonicTaperOption(Enum): CONSTANT = "Constant" @@ -156,9 +148,7 @@ def harmonic_taper(self) -> HarmonicTaperOption: @harmonic_taper.setter def harmonic_taper(self, value: HarmonicTaperOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Taper={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Taper={value.value}"]) @property def harmonic_amplitude(self) -> float: @@ -170,10 +160,8 @@ def harmonic_amplitude(self) -> float: return float(val) @harmonic_amplitude.setter - def harmonic_amplitude(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Amplitude={value}"]) + def harmonic_amplitude(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Amplitude={value}"]) @property def harmonic_slope(self) -> float: @@ -185,10 +173,8 @@ def harmonic_slope(self) -> float: return float(val) @harmonic_slope.setter - def harmonic_slope(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Slope={value}"]) + def harmonic_slope(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Slope={value}"]) @property def harmonic_intercept(self) -> float: @@ -200,10 +186,8 @@ def harmonic_intercept(self) -> float: return float(val) @harmonic_intercept.setter - def harmonic_intercept(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Harmonic Intercept={value}"]) + def harmonic_intercept(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Harmonic Intercept={value}"]) @property def enable_harmonic_bw_expansion(self) -> bool: @@ -215,13 +199,13 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return (val == true) + return val == true @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Harmonic BW Expansion={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Enable Harmonic BW Expansion={value}"] + ) @property def number_of_harmonics(self) -> int: @@ -234,9 +218,7 @@ def number_of_harmonics(self) -> int: @number_of_harmonics.setter def number_of_harmonics(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Number of Harmonics={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Number of Harmonics={value}"]) @property def second_harmonic_level(self) -> float: @@ -248,10 +230,8 @@ def second_harmonic_level(self) -> float: return float(val) @second_harmonic_level.setter - def second_harmonic_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Second Harmonic Level={value}"]) + def second_harmonic_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Second Harmonic Level={value}"]) @property def third_harmonic_level(self) -> float: @@ -263,10 +243,8 @@ def third_harmonic_level(self) -> float: return float(val) @third_harmonic_level.setter - def third_harmonic_level(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Third Harmonic Level={value}"]) + def third_harmonic_level(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Third Harmonic Level={value}"]) @property def other_harmonic_levels(self) -> float: @@ -280,10 +258,8 @@ def other_harmonic_levels(self) -> float: return float(val) @other_harmonic_levels.setter - def other_harmonic_levels(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Other Harmonic Levels={value}"]) + def other_harmonic_levels(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Other Harmonic Levels={value}"]) @property def perform_tx_intermod_analysis(self) -> bool: @@ -292,13 +268,13 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return (val == true) + return val == true @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Perform Tx Intermod Analysis={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Perform Tx Intermod Analysis={value}"] + ) @property def internal_amp_gain(self) -> float: @@ -310,10 +286,8 @@ def internal_amp_gain(self) -> float: return float(val) @internal_amp_gain.setter - def internal_amp_gain(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Internal Amp Gain={value}"]) + def internal_amp_gain(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Internal Amp Gain={value}"]) @property def noise_figure(self) -> float: @@ -325,10 +299,8 @@ def noise_figure(self) -> float: return float(val) @noise_figure.setter - def noise_figure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Noise Figure={value}"]) + def noise_figure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Noise Figure={value}"]) @property def amplifier_saturation_level(self) -> float: @@ -341,11 +313,11 @@ def amplifier_saturation_level(self) -> float: return float(val) @amplifier_saturation_level.setter - def amplifier_saturation_level(self, value : float|str): + def amplifier_saturation_level(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Amplifier Saturation Level={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Amplifier Saturation Level={value}"] + ) @property def p1_db_point_ref_input(self) -> float: @@ -361,11 +333,9 @@ def p1_db_point_ref_input(self) -> float: return float(val) @p1_db_point_ref_input.setter - def p1_db_point_ref_input(self, value : float|str): + def p1_db_point_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"P1-dB Point, Ref. Input ={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"P1-dB Point, Ref. Input ={value}"]) @property def ip3_ref_input(self) -> float: @@ -378,11 +348,9 @@ def ip3_ref_input(self) -> float: return float(val) @ip3_ref_input.setter - def ip3_ref_input(self, value : float|str): + def ip3_ref_input(self, value: float | str): value = self._convert_to_internal_units(value, "Power") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"IP3, Ref. Input={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"IP3, Ref. Input={value}"]) @property def reverse_isolation(self) -> float: @@ -394,10 +362,8 @@ def reverse_isolation(self) -> float: return float(val) @reverse_isolation.setter - def reverse_isolation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reverse Isolation={value}"]) + def reverse_isolation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Reverse Isolation={value}"]) @property def max_intermod_order(self) -> int: @@ -410,7 +376,4 @@ def max_intermod_order(self) -> int: @max_intermod_order.setter def max_intermod_order(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Intermod Order={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Intermod Order={value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py index 2b78a4a9190..88807a7a55a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spur_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class TxSpurNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -36,7 +40,7 @@ def parent(self): def import_csv_file(self, file_name): """Import a CSV File...""" - return self._import(file_name,"Csv") + return self._import(file_name, "Csv") def delete(self): """Delete this node""" @@ -46,11 +50,11 @@ def delete(self): def table_data(self): """Table. Table consists of 3 columns. - Frequency (MHz): + Frequency (MHz): Value should be a mathematical expression. - Bandwidth: + Bandwidth: Value should be greater than 1.0. - Power: + Power: Value should be between -200.0 and 150.0. """ return self._get_table_data() @@ -62,7 +66,7 @@ def table_data(self, value): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -81,7 +85,4 @@ def spur_table_units(self) -> SpurTableUnitsOption: @spur_table_units.setter def spur_table_units(self, value: SpurTableUnitsOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spur Table Units={value.value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spur Table Units={value.value}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py index 01c0ec4a911..efa9d1ed585 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class WalfischCouplingNode(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -53,13 +57,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return val == true @enabled.setter def enabled(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enabled={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enabled={value}"]) @property def base_antenna(self) -> EmitNode: @@ -69,9 +71,7 @@ def base_antenna(self) -> EmitNode: @base_antenna.setter def base_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Base Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Base Antenna={value}"]) @property def mobile_antenna(self) -> EmitNode: @@ -81,9 +81,7 @@ def mobile_antenna(self) -> EmitNode: @mobile_antenna.setter def mobile_antenna(self, value: EmitNode): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Mobile Antenna={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Mobile Antenna={value}"]) @property def enable_refinement(self) -> bool: @@ -92,13 +90,11 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return val == true @enable_refinement.setter def enable_refinement(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Enable Refinement={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Enable Refinement={value}"]) @property def adaptive_sampling(self) -> bool: @@ -107,13 +103,11 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return val == true @adaptive_sampling.setter def adaptive_sampling(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adaptive Sampling={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adaptive Sampling={value}"]) @property def refinement_domain(self): @@ -123,9 +117,7 @@ def refinement_domain(self): @refinement_domain.setter def refinement_domain(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Refinement Domain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Refinement Domain={value}"]) class PathLossTypeOption(Enum): LOS_URBAN_CANYON = "LOS (Urban Canyon)" @@ -140,9 +132,7 @@ def path_loss_type(self) -> PathLossTypeOption: @path_loss_type.setter def path_loss_type(self, value: PathLossTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Path Loss Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Path Loss Type={value.value}"]) class EnvironmentOption(Enum): DENSE_METRO = "Dense Metro" @@ -157,9 +147,7 @@ def environment(self) -> EnvironmentOption: @environment.setter def environment(self, value: EnvironmentOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Environment={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Environment={value.value}"]) @property def roof_height(self) -> float: @@ -172,11 +160,9 @@ def roof_height(self) -> float: return float(val) @roof_height.setter - def roof_height(self, value : float|str): + def roof_height(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Roof Height={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Roof Height={value}"]) @property def distance_between_buildings(self) -> float: @@ -189,11 +175,11 @@ def distance_between_buildings(self) -> float: return float(val) @distance_between_buildings.setter - def distance_between_buildings(self, value : float|str): + def distance_between_buildings(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Distance Between Buildings={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Distance Between Buildings={value}"] + ) @property def street_width(self) -> float: @@ -206,11 +192,9 @@ def street_width(self) -> float: return float(val) @street_width.setter - def street_width(self, value : float|str): + def street_width(self, value: float | str): value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Street Width={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Street Width={value}"]) @property def incidence_angle(self) -> float: @@ -222,10 +206,8 @@ def incidence_angle(self) -> float: return float(val) @incidence_angle.setter - def incidence_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Incidence Angle={value}"]) + def incidence_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Incidence Angle={value}"]) @property def custom_fading_margin(self) -> float: @@ -240,10 +222,8 @@ def custom_fading_margin(self) -> float: return float(val) @custom_fading_margin.setter - def custom_fading_margin(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Custom Fading Margin={value}"]) + def custom_fading_margin(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Custom Fading Margin={value}"]) @property def polarization_mismatch(self) -> float: @@ -258,10 +238,8 @@ def polarization_mismatch(self) -> float: return float(val) @polarization_mismatch.setter - def polarization_mismatch(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Mismatch={value}"]) + def polarization_mismatch(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Mismatch={value}"]) @property def pointing_error_loss(self) -> float: @@ -276,10 +254,8 @@ def pointing_error_loss(self) -> float: return float(val) @pointing_error_loss.setter - def pointing_error_loss(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Pointing Error Loss={value}"]) + def pointing_error_loss(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Pointing Error Loss={value}"]) class FadingTypeOption(Enum): NONE = "None" @@ -296,9 +272,7 @@ def fading_type(self) -> FadingTypeOption: @fading_type.setter def fading_type(self, value: FadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Type={value.value}"]) @property def fading_availability(self) -> float: @@ -313,10 +287,8 @@ def fading_availability(self) -> float: return float(val) @fading_availability.setter - def fading_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Fading Availability={value}"]) + def fading_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Fading Availability={value}"]) @property def std_deviation(self) -> float: @@ -328,10 +300,8 @@ def std_deviation(self) -> float: return float(val) @std_deviation.setter - def std_deviation(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Std Deviation={value}"]) + def std_deviation(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Std Deviation={value}"]) @property def include_rain_attenuation(self) -> bool: @@ -340,13 +310,11 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return val == true @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Rain Attenuation={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Include Rain Attenuation={value}"]) @property def rain_availability(self) -> float: @@ -361,10 +329,8 @@ def rain_availability(self) -> float: return float(val) @rain_availability.setter - def rain_availability(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Availability={value}"]) + def rain_availability(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Availability={value}"]) @property def rain_rate(self) -> float: @@ -376,10 +342,8 @@ def rain_rate(self) -> float: return float(val) @rain_rate.setter - def rain_rate(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Rain Rate={value}"]) + def rain_rate(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Rain Rate={value}"]) @property def polarization_tilt_angle(self) -> float: @@ -394,10 +358,8 @@ def polarization_tilt_angle(self) -> float: return float(val) @polarization_tilt_angle.setter - def polarization_tilt_angle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Polarization Tilt Angle={value}"]) + def polarization_tilt_angle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Polarization Tilt Angle={value}"]) @property def include_atmospheric_absorption(self) -> bool: @@ -409,13 +371,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return val == true @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Include Atmospheric Absorption={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Include Atmospheric Absorption={value}"] + ) @property def temperature(self) -> float: @@ -427,10 +389,8 @@ def temperature(self) -> float: return float(val) @temperature.setter - def temperature(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Temperature={value}"]) + def temperature(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Temperature={value}"]) @property def total_air_pressure(self) -> float: @@ -442,10 +402,8 @@ def total_air_pressure(self) -> float: return float(val) @total_air_pressure.setter - def total_air_pressure(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Total Air Pressure={value}"]) + def total_air_pressure(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Total Air Pressure={value}"]) @property def water_vapor_concentration(self) -> float: @@ -457,8 +415,7 @@ def water_vapor_concentration(self) -> float: return float(val) @water_vapor_concentration.setter - def water_vapor_concentration(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Water Vapor Concentration={value}"]) - + def water_vapor_concentration(self, value: float): + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Water Vapor Concentration={value}"] + ) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/waveform.py index 3283d754c38..ec00154860b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/waveform.py @@ -1,29 +1,33 @@ # -*- coding: utf-8 -*- # -# Copyright(C) 2021 - 2025 ANSYS, Inc. and /or its affiliates. -# SPDX - License - Identifier: MIT +# Copyright (C) 2021 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-FileCopyrightText: 2021 - 2025 ANSYS, Inc. and /or its affiliates. +# SPDX-License-Identifier: MIT # # # Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files(the "Software"), to deal +# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions : +# furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + from enum import Enum + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode + class Waveform(EmitNode): def __init__(self, emit_obj, result_id, node_id): self._is_component = False @@ -37,7 +41,7 @@ def parent(self): @property def enabled(self) -> bool: """Enabled state for this node.""" - return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, 'enabled') + return self._oRevisionData.GetEmitNodeProperties(self._result_id, self._node_id, "enabled") @enabled.setter def enabled(self, value: bool): @@ -51,9 +55,7 @@ def port(self): @port.setter def port(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Port={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Port={value}"]) class WaveformOption(Enum): PERIODIC_CLOCK = "Periodic Clock" @@ -71,9 +73,7 @@ def waveform(self) -> WaveformOption: @waveform.setter def waveform(self, value: WaveformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Waveform={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Waveform={value.value}"]) @property def start_frequency(self) -> float: @@ -86,11 +86,9 @@ def start_frequency(self) -> float: return float(val) @start_frequency.setter - def start_frequency(self, value : float|str): + def start_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Frequency={value}"]) @property def stop_frequency(self) -> float: @@ -103,11 +101,9 @@ def stop_frequency(self) -> float: return float(val) @stop_frequency.setter - def stop_frequency(self, value : float|str): + def stop_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Frequency={value}"]) @property def channel_spacing(self) -> float: @@ -120,11 +116,9 @@ def channel_spacing(self) -> float: return float(val) @channel_spacing.setter - def channel_spacing(self, value : float|str): + def channel_spacing(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Channel Spacing={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Channel Spacing={value}"]) @property def clock_duty_cycle(self) -> float: @@ -136,10 +130,8 @@ def clock_duty_cycle(self) -> float: return float(val) @clock_duty_cycle.setter - def clock_duty_cycle(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Clock Duty Cycle={value}"]) + def clock_duty_cycle(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Duty Cycle={value}"]) @property def clock_risefall_time(self) -> float: @@ -152,11 +144,9 @@ def clock_risefall_time(self) -> float: return float(val) @clock_risefall_time.setter - def clock_risefall_time(self, value : float|str): + def clock_risefall_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Clock Rise/Fall Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Clock Rise/Fall Time={value}"]) class SpreadingTypeOption(Enum): LOW_SPREAD = "Low Spread" @@ -172,9 +162,7 @@ def spreading_type(self) -> SpreadingTypeOption: @spreading_type.setter def spreading_type(self, value: SpreadingTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spreading Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spreading Type={value.value}"]) @property def spread_percentage(self) -> float: @@ -186,10 +174,8 @@ def spread_percentage(self) -> float: return float(val) @spread_percentage.setter - def spread_percentage(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Spread Percentage={value}"]) + def spread_percentage(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Spread Percentage={value}"]) @property def imported_spectrum(self) -> str: @@ -199,9 +185,7 @@ def imported_spectrum(self) -> str: @imported_spectrum.setter def imported_spectrum(self, value: str): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Imported Spectrum={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Imported Spectrum={value}"]) @property def raw_data_format(self) -> str: @@ -220,11 +204,9 @@ def system_impedance(self) -> float: return float(val) @system_impedance.setter - def system_impedance(self, value : float|str): + def system_impedance(self, value: float | str): value = self._convert_to_internal_units(value, "Resistance") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"System Impedance={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"System Impedance={value}"]) @property def advanced_extraction_params(self) -> bool: @@ -233,13 +215,13 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return (val == true) + return val == true @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Advanced Extraction Params={value}"]) + self._oRevisionData.SetEmitNodeProperties( + self._result_id, self._node_id, [f"Advanced Extraction Params={value}"] + ) @property def nb_window_size(self) -> float: @@ -254,10 +236,8 @@ def nb_window_size(self) -> float: return float(val) @nb_window_size.setter - def nb_window_size(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NB Window Size={value}"]) + def nb_window_size(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Window Size={value}"]) @property def bb_smoothing_factor(self) -> float: @@ -271,10 +251,8 @@ def bb_smoothing_factor(self) -> float: return float(val) @bb_smoothing_factor.setter - def bb_smoothing_factor(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"BB Smoothing Factor={value}"]) + def bb_smoothing_factor(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"BB Smoothing Factor={value}"]) @property def nb_detector_threshold(self) -> float: @@ -286,10 +264,8 @@ def nb_detector_threshold(self) -> float: return float(val) @nb_detector_threshold.setter - def nb_detector_threshold(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"NB Detector Threshold={value}"]) + def nb_detector_threshold(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"NB Detector Threshold={value}"]) class AlgorithmOption(Enum): FFT = "FFT" @@ -304,9 +280,7 @@ def algorithm(self) -> AlgorithmOption: @algorithm.setter def algorithm(self, value: AlgorithmOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Algorithm={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Algorithm={value.value}"]) @property def start_time(self) -> float: @@ -319,11 +293,9 @@ def start_time(self) -> float: return float(val) @start_time.setter - def start_time(self, value : float|str): + def start_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Start Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Start Time={value}"]) @property def stop_time(self) -> float: @@ -333,11 +305,9 @@ def stop_time(self) -> float: return float(val) @stop_time.setter - def stop_time(self, value : float|str): + def stop_time(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Stop Time={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Stop Time={value}"]) @property def max_frequency(self) -> float: @@ -350,11 +320,9 @@ def max_frequency(self) -> float: return float(val) @max_frequency.setter - def max_frequency(self, value : float|str): + def max_frequency(self, value: float | str): value = self._convert_to_internal_units(value, "Freq") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max Frequency={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Max Frequency={value}"]) class WindowTypeOption(Enum): RECTANGULAR = "Rectangular" @@ -376,9 +344,7 @@ def window_type(self) -> WindowTypeOption: @window_type.setter def window_type(self, value: WindowTypeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Window Type={value.value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Window Type={value.value}"]) @property def kaiser_parameter(self) -> float: @@ -390,10 +356,8 @@ def kaiser_parameter(self) -> float: return float(val) @kaiser_parameter.setter - def kaiser_parameter(self, value : float): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Kaiser Parameter={value}"]) + def kaiser_parameter(self, value: float): + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Kaiser Parameter={value}"]) @property def adjust_coherent_gain(self) -> bool: @@ -402,13 +366,11 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return (val == true) + return val == true @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Adjust Coherent Gain={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Adjust Coherent Gain={value}"]) @property def data_rate(self) -> float: @@ -421,11 +383,9 @@ def data_rate(self) -> float: return float(val) @data_rate.setter - def data_rate(self, value : float|str): + def data_rate(self, value: float | str): value = self._convert_to_internal_units(value, "Data Rate") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Data Rate={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Data Rate={value}"]) @property def num_of_bits(self) -> int: @@ -438,9 +398,7 @@ def num_of_bits(self) -> int: @num_of_bits.setter def num_of_bits(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Num of Bits={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Num of Bits={value}"]) @property def use_envelope(self) -> bool: @@ -449,13 +407,11 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return (val == true) + return val == true @use_envelope.setter def use_envelope(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Use Envelope={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Use Envelope={value}"]) @property def min_ptsnull(self) -> int: @@ -468,9 +424,7 @@ def min_ptsnull(self) -> int: @min_ptsnull.setter def min_ptsnull(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Min Pts/Null={value}"]) + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Min Pts/Null={value}"]) @property def delay_skew(self) -> float: @@ -483,9 +437,6 @@ def delay_skew(self) -> float: return float(val) @delay_skew.setter - def delay_skew(self, value : float|str): + def delay_skew(self, value: float | str): value = self._convert_to_internal_units(value, "Time") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Delay Skew={value}"]) - + self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, [f"Delay Skew={value}"]) From af1b65dece293c50d29f92170c32bb3627657069 Mon Sep 17 00:00:00 2001 From: raghajaf Date: Tue, 10 Jun 2025 15:37:42 -0400 Subject: [PATCH 81/86] updating to return Emit node instead of ID --- .../aedt/core/emit_core/emit_schematic.py | 77 ++++++------------- .../modeler/circuits/primitives_circuit.py | 10 +-- tests/system/solvers/test_26_emit.py | 33 ++------ 3 files changed, 35 insertions(+), 85 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/emit_schematic.py b/src/ansys/aedt/core/emit_core/emit_schematic.py index b6a4cc9d778..2eb83555604 100644 --- a/src/ansys/aedt/core/emit_core/emit_schematic.py +++ b/src/ansys/aedt/core/emit_core/emit_schematic.py @@ -23,6 +23,7 @@ # SOFTWARE. +from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode from ansys.aedt.core.generic.general_methods import pyaedt_function_handler @@ -61,7 +62,7 @@ def _emit_com_module(self): raise RuntimeError(f"Failed to retrieve EmitCom module: {e}") @pyaedt_function_handler - def create_component(self, component_type: str, name: str = None, library: str = None) -> int: + def create_component(self, component_type: str, name: str = None, library: str = None) -> EmitNode: """Create a component. Parameters @@ -75,8 +76,8 @@ def create_component(self, component_type: str, name: str = None, library: str = Returns ------- - int - The ID of the created component. + EmitNode + The EmitNode of the created component. Raises ------ @@ -119,12 +120,14 @@ def create_component(self, component_type: str, name: str = None, library: str = f"Using exact match component '{component.name}' from library '{component.component_library}" "' for type '{component_type}'." ) + revision = self.emit_instance.results.get_revision() # Create the component using the EmitCom module new_component_id = self._emit_com_module.CreateEmitComponent( name, component.name, component.component_library ) - return new_component_id + component_node = revision._get_node(node_id=new_component_id) + return component_node except Exception as e: self.emit_instance.logger.error(f"Failed to create component '{name}' of type '{component_type}': {e}") raise RuntimeError(f"Failed to create component of type '{component_type}': {e}") @@ -132,7 +135,7 @@ def create_component(self, component_type: str, name: str = None, library: str = @pyaedt_function_handler def create_radio_antenna( self, radio_type: str, radio_name: str = None, antenna_name: str = None, library: str = None - ) -> tuple[int, int]: + ) -> tuple[EmitNode, EmitNode]: """Create a new radio and antenna and connect them. Parameters @@ -152,8 +155,8 @@ def create_radio_antenna( Returns ------- - tuple - A tuple containing the IDs of the created radio and antenna. + tuple[EmitNode, EmitNode] + A tuple containing the EmitNode of the created radio and antenna. Raises ------ @@ -165,25 +168,25 @@ def create_radio_antenna( library = library or "" try: - new_radio_id = self.create_component(radio_type, radio_name, library) - new_antenna_id = self.create_component("Antenna", antenna_name, "Antennas") - if new_radio_id and new_antenna_id: - self.connect_components(new_antenna_id, new_radio_id) # Connect antenna to radio - return new_radio_id, new_antenna_id + new_radio = self.create_component(radio_type, radio_name, library) + new_antenna = self.create_component("Antenna", antenna_name, "Antennas") + if new_radio and new_antenna: + self.connect_components(new_antenna.name, new_radio.name) # Connect antenna to radio + return new_radio, new_antenna except Exception as e: self.emit_instance.logger.error(f"Failed to create radio of type '{radio_type}' or antenna: {e}") raise RuntimeError(f"Failed to create radio of type '{radio_type}' or antenna: {e}") @pyaedt_function_handler - def connect_components(self, component_id_1: int, component_id_2: int): + def connect_components(self, component_name_1: str, component_name_2: str) -> None: """Connect two components in the schematic. Parameters ---------- - component_id_1 : str - ID of the first component. - component_id_2 : str - ID of the second component. + component_1 : str + Name of the first component. + component_2 : str + Name of the second component. Raises ------ @@ -191,48 +194,12 @@ def connect_components(self, component_id_1: int, component_id_2: int): If the connection fails. """ try: - component_name_1 = self.get_component_properties(component_id_1, "Name") - component_name_2 = self.get_component_properties(component_id_2, "Name") self.emit_instance._oeditor.PlaceComponent(component_name_1, component_name_2) self.emit_instance.logger.info( f"Successfully connected components '{component_name_1}' and '{component_name_2}'." ) except Exception as e: self.emit_instance.logger.error( - f"Failed to connect components '{component_id_1}' and '{component_id_2}': {e}" + f"Failed to connect components '{component_name_1}' and '{component_name_2}': {e}" ) - raise RuntimeError(f"Failed to connect components '{component_id_1}' and '{component_id_2}': {e}") - - @pyaedt_function_handler - def get_component_properties(self, component_id: int, property_key: str = None) -> dict: - """Get properties of a component. - - Parameters - ---------- - component_id : int - ID of the component. - property_key : str, optional - Specific property key to retrieve. If ``None``, all properties are returned. - - Returns - ------- - dict or str - Dictionary containing all properties of the component if `property_key` is ``None``. - Otherwise, the value of the specified property key. - - Raises - ------ - KeyError - If the specified property key is not found. - """ - try: - props = self._emit_com_module.GetEmitNodeProperties(0, component_id, True) - props_dict = {prop.split("=", 1)[0]: prop.split("=", 1)[1] for prop in props} - if property_key is None: - return props_dict - if property_key in props_dict: - return props_dict[property_key] - raise KeyError(f"Property key '{property_key}' not found.") - except Exception as e: - self.emit_instance.logger.error(f"Failed to retrieve properties for component '{component_id}': {e}") - raise RuntimeError(f"Failed to retrieve properties for component '{component_id}': {e}") + raise RuntimeError(f"Failed to connect components '{component_name_1}' and '{component_name_2}': {e}") diff --git a/src/ansys/aedt/core/modeler/circuits/primitives_circuit.py b/src/ansys/aedt/core/modeler/circuits/primitives_circuit.py index 4cf2efa87e3..74ddc5cd168 100644 --- a/src/ansys/aedt/core/modeler/circuits/primitives_circuit.py +++ b/src/ansys/aedt/core/modeler/circuits/primitives_circuit.py @@ -358,7 +358,7 @@ def create_interface_port(self, name, location=None, angle=0): arg2 = ["NAME:Attributes", "Page:=", 1, "X:=", xpos, "Y:=", ypos, "Angle:=", angle, "Flip:=", False] comp_name = self.oeditor.CreateIPort(arg1, arg2) - id = int(comp_name.split(";")[1]) + comp_id = int(comp_name.split(";")[1]) self.add_id_to_component(id, comp_name) # return id, self.components[id].composed_name for el in self.components: @@ -475,7 +475,7 @@ def create_gnd(self, location=None, angle=0, page=1): ["NAME:GroundProps"], ["NAME:Attributes", "Page:=", page, "X:=", xpos, "Y:=", ypos, "Angle:=", angle, "Flip:=", False], ) - id = int(name.split(";")[1]) + comp_id = int(name.split(";")[1]) self.add_id_to_component(id, name) # return id, self.components[id].composed_name for el in self.components: @@ -1389,12 +1389,12 @@ def refresh_all_ids(self): return len(self.components) @pyaedt_function_handler() - def add_id_to_component(self, id, name=None): + def add_id_to_component(self, comp_id, name=None): """Add an ID to a component. Parameters ---------- - id : int + comp_id : int ID to assign to the component. Returns @@ -1420,7 +1420,7 @@ def add_id_to_component(self, id, name=None): obj = self.oeditor.GetAllElements() for el in obj: name = el.split(";") - if len(name) > 1 and str(id) == name[1]: + if len(name) > 1 and str(comp_id) == name[1]: o = CircuitComponent(self, tabname=self.tab_name) o.name = name[0] if len(name) > 2: diff --git a/tests/system/solvers/test_26_emit.py b/tests/system/solvers/test_26_emit.py index 982a40bf785..8162186daaa 100644 --- a/tests/system/solvers/test_26_emit.py +++ b/tests/system/solvers/test_26_emit.py @@ -50,8 +50,8 @@ from ansys.aedt.core.emit_core.emit_constants import ResultType from ansys.aedt.core.emit_core.emit_constants import TxRxMode from ansys.aedt.core.emit_core.nodes import generated + from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode - # from ansys.aedt.core.emit_core.nodes.emit_node import EmitNode # from ansys.aedt.core.emit_core.nodes.generated import * # from ansys.aedt.core.emit_core.results.revision import Revision from ansys.aedt.core.modeler.circuits.primitives_emit import EmitAntennaComponent @@ -1636,7 +1636,7 @@ def test_28_create_component(self, add_app): self.aedtapp = add_app(project_name="create_component", application=Emit) self.aedtapp.logger.info = MagicMock() new_radio = self.aedtapp.schematic.create_component("MICS") - assert new_radio == 3 + assert isinstance(new_radio, EmitNode) self.aedtapp.logger.info.assert_called_with( r"Using component 'MICS' from library 'Radios\Commercial Unlicensed Systems\Medical' for type 'MICS'." ) @@ -1660,8 +1660,8 @@ def test_28_create_component(self, add_app): def test_29_create_radio_antenna(self, add_app): self.aedtapp = add_app(project_name="radio_antenna", application=Emit) new_radio, new_antenna = self.aedtapp.schematic.create_radio_antenna("MICS", "Radio", "Antenna") - assert new_radio == 3 - assert new_antenna == 4 + assert isinstance(new_radio, EmitNode) + assert isinstance(new_antenna, EmitNode) with pytest.raises(RuntimeError) as e: self.aedtapp.schematic.create_radio_antenna("WrongComponent", "Radio", "Antenna") assert "Failed to create radio of type 'WrongComponent'" in str(e.value) @@ -1672,28 +1672,11 @@ def test_30_connect_components(self, add_app): self.aedtapp.logger.info = MagicMock() new_radio = self.aedtapp.schematic.create_component("MICS") new_antenna = self.aedtapp.schematic.create_component("Antenna") - self.aedtapp.schematic.connect_components(new_radio, new_antenna) + self.aedtapp.schematic.connect_components(new_radio.name, new_antenna.name) self.aedtapp.logger.info.assert_called_with("Successfully connected components 'MICS' and 'Antenna'.") with pytest.raises(RuntimeError) as e: - self.aedtapp.schematic.connect_components(new_radio, 6) + self.aedtapp.schematic.connect_components(new_radio.name, "WrongComponent") assert ( - "Failed to connect components '3' and '6': Failed to retrieve properties for component '6': " - "Failed to execute gRPC AEDT command: GetEmitNodeProperties" + "Failed to connect components 'MICS' and 'WrongComponent': " + "Failed to execute gRPC AEDT command: PlaceComponent" ) in str(e.value) - - @pytest.mark.skipif(config["desktopVersion"] < "2025.2", reason="Skipped on versions earlier than 2025 R2.") - def test_31_get_component_properties(self, add_app): - self.aedtapp = add_app(project_name="component_properties", application=Emit) - new_radio = self.aedtapp.schematic.create_component("MICS") - new_radio_props = self.aedtapp.schematic.get_component_properties(new_radio) - assert isinstance(new_radio_props, dict) - assert new_radio_props["Name"] == "MICS" - assert new_radio_props["Type"] == "RadioNode" - assert new_radio_props["IconAlias"] == ":Radio" - new_radio_name = self.aedtapp.schematic.get_component_properties(new_radio, "Name") - assert new_radio_name == "MICS" - with pytest.raises(RuntimeError) as e: - self.aedtapp.schematic.get_component_properties(new_radio, "WrongProp") - assert ("Failed to retrieve properties for component '3': \"Property key 'WrongProp' not found.\"") in str( - e.value - ) From 2a1ac4f60c9c2a06d6b21c0d55ecdc08cf5ab00b Mon Sep 17 00:00:00 2001 From: jsalant Date: Wed, 11 Jun 2025 12:24:28 -0400 Subject: [PATCH 82/86] update bool get/set Fix antenna_node --- .../emit_core/nodes/generated/antenna_node.py | 338 ++---------------- .../core/emit_core/nodes/generated/band.py | 20 +- .../nodes/generated/band_trace_node.py | 12 +- .../emit_core/nodes/generated/cad_node.py | 24 +- .../emit_core/nodes/generated/circulator.py | 8 +- .../nodes/generated/coupling_link_node.py | 4 +- .../nodes/generated/coupling_trace_node.py | 24 +- .../nodes/generated/custom_coupling_node.py | 12 +- .../nodes/generated/emi_plot_marker_node.py | 16 +- .../nodes/generated/erceg_coupling_node.py | 20 +- .../nodes/generated/five_g_channel_model.py | 28 +- .../nodes/generated/hata_coupling_node.py | 20 +- .../indoor_propagation_coupling_node.py | 20 +- .../emit_core/nodes/generated/isolator.py | 8 +- .../generated/log_distance_coupling_node.py | 20 +- .../nodes/generated/mplex_band_trace_node.py | 12 +- .../emit_core/nodes/generated/multiplexer.py | 4 +- .../nodes/generated/outboard_trace_node.py | 12 +- .../parametric_coupling_trace_node.py | 12 +- .../nodes/generated/plot_marker_node.py | 20 +- .../emit_core/nodes/generated/plot_node.py | 16 +- .../nodes/generated/power_divider.py | 8 +- .../nodes/generated/power_trace_node.py | 12 +- .../nodes/generated/profile_trace_node.py | 12 +- .../propagation_loss_coupling_node.py | 20 +- .../nodes/generated/read_only_antenna_node.py | 234 ++---------- .../nodes/generated/read_only_band.py | 10 +- .../nodes/generated/read_only_cad_node.py | 12 +- .../nodes/generated/read_only_circulator.py | 4 +- .../generated/read_only_coupling_link_node.py | 2 +- .../read_only_custom_coupling_node.py | 6 +- .../read_only_erceg_coupling_node.py | 10 +- .../read_only_five_g_channel_model.py | 14 +- .../generated/read_only_hata_coupling_node.py | 10 +- ...d_only_indoor_propagation_coupling_node.py | 10 +- .../nodes/generated/read_only_isolator.py | 4 +- .../read_only_log_distance_coupling_node.py | 10 +- .../nodes/generated/read_only_multiplexer.py | 2 +- .../generated/read_only_power_divider.py | 4 +- ...ead_only_propagation_loss_coupling_node.py | 10 +- .../nodes/generated/read_only_rx_meas_node.py | 14 +- .../read_only_rx_selectivity_node.py | 2 +- .../read_only_rx_susceptibility_prof_node.py | 4 +- .../generated/read_only_sampling_node.py | 2 +- .../generated/read_only_scene_group_node.py | 4 +- .../read_only_solution_coupling_node.py | 6 +- .../generated/read_only_solutions_node.py | 2 +- .../read_only_touchstone_coupling_node.py | 8 +- .../nodes/generated/read_only_tr_switch.py | 4 +- ...ad_only_two_ray_path_loss_coupling_node.py | 10 +- .../read_only_tx_bb_emission_node.py | 2 +- .../nodes/generated/read_only_tx_meas_node.py | 4 +- ...read_only_tx_spectral_prof_emitter_node.py | 4 +- .../read_only_tx_spectral_prof_node.py | 6 +- .../read_only_walfisch_coupling_node.py | 10 +- .../nodes/generated/read_only_waveform.py | 6 +- .../nodes/generated/result_plot_node.py | 20 +- .../emit_core/nodes/generated/rx_meas_node.py | 28 +- .../nodes/generated/rx_selectivity_node.py | 4 +- .../generated/rx_susceptibility_prof_node.py | 8 +- .../nodes/generated/sampling_node.py | 4 +- .../nodes/generated/scene_group_node.py | 8 +- .../nodes/generated/selectivity_trace_node.py | 12 +- .../nodes/generated/solution_coupling_node.py | 12 +- .../nodes/generated/solutions_node.py | 4 +- .../nodes/generated/spur_trace_node.py | 12 +- .../nodes/generated/test_noise_trace_node.py | 12 +- .../generated/touchstone_coupling_node.py | 16 +- .../emit_core/nodes/generated/tr_switch.py | 8 +- .../nodes/generated/tr_switch_trace_node.py | 12 +- .../nodes/generated/tunable_trace_node.py | 12 +- .../two_ray_path_loss_coupling_node.py | 20 +- .../nodes/generated/two_tone_trace_node.py | 12 +- .../nodes/generated/tx_bb_emission_node.py | 4 +- .../emit_core/nodes/generated/tx_meas_node.py | 8 +- .../tx_spectral_prof_emitter_node.py | 8 +- .../nodes/generated/tx_spectral_prof_node.py | 12 +- .../nodes/generated/walfisch_coupling_node.py | 20 +- .../emit_core/nodes/generated/waveform.py | 12 +- 79 files changed, 471 insertions(+), 929 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py index 2b306751766..c11761f2250 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py @@ -72,13 +72,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return (val == "true") @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Show Relative Coordinates={value}"]) + [f"Show Relative Coordinates={str(value).lower()}"]) @property def position(self): @@ -167,13 +167,13 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return (val == true) + return (val == "true") @position_defined.setter def position_defined(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Position Defined={value}"]) + [f"Position Defined={str(value).lower()}"]) @property def antenna_temperature(self) -> float: @@ -190,17 +190,31 @@ def antenna_temperature(self, value : float): self._node_id, [f"Antenna Temperature={value}"]) - @property - def type(self): + class TypeOption(Enum): + ISOTROPIC = "Isotropic" + BY_FILE = "By File" + HEMITROPIC = "Hemitropic" + SHORT_DIPOLE = "Short Dipole" + HALF_WAVE_DIPOLE = "Half-wave Dipole" + QUARTER_WAVE_MONOPOLE = "Quarter-wave Monopole" + WIRE_DIPOLE = "Wire Dipole" + WIRE_MONOPOLE = "Wire Monopole" + SMALL_LOOP = "Small Loop" + DIRECTIVE_BEAM = "Directive Beam" + PYRAMIDAL_HORN = "Pyramidal Horn" + + @property + def type(self) -> TypeOption: """Defines the type of antenna.""" val = self._get_property("Type") + val = self.TypeOption[val.upper()] return val @type.setter - def type(self, value): + def type(self, value: TypeOption): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Type={value}"]) + [f"Type={value.value}"]) @property def antenna_file(self) -> str: @@ -244,24 +258,6 @@ def peak_gain(self, value : float): self._node_id, [f"Peak Gain={value}"]) - class BoresightOption(Enum): - XAXIS = "+X Axis" - YAXIS = "+Y Axis" - ZAXIS = "+Z Axis" - - @property - def boresight(self) -> BoresightOption: - """Select peak beam direction in local coordinates.""" - val = self._get_property("Boresight") - val = self.BoresightOption[val.upper()] - return val - - @boresight.setter - def boresight(self, value: BoresightOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Boresight={value.value}"]) - @property def vertical_beamwidth(self) -> float: """Set half-power beamwidth in local-coordinates elevation plane. @@ -299,13 +295,13 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return (val == true) + return (val == "true") @extra_sidelobe.setter def extra_sidelobe(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Extra Sidelobe={value}"]) + [f"Extra Sidelobe={str(value).lower()}"]) @property def first_sidelobe_level(self) -> float: @@ -393,23 +389,6 @@ def resonant_frequency(self, value : float|str): self._node_id, [f"Resonant Frequency={value}"]) - @property - def slot_length(self) -> float: - """Set slot length of parametric slot. - - Value should be greater than 1e-6. - """ - val = self._get_property("Slot Length") - val = self._convert_from_internal_units(float(val), "Length") - return float(val) - - @slot_length.setter - def slot_length(self, value : float|str): - value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Slot Length={value}"]) - @property def mouth_width(self) -> float: """Set mouth width (along local y-axis) of the horn antenna. @@ -572,181 +551,6 @@ def antenna_polarization(self, value: AntennaPolarizationOption): self._node_id, [f"Antenna Polarization={value.value}"]) - class CrossDipoleModeOption(Enum): - FREESTANDING = "Freestanding" - OVER_GROUND_PLANE = "Over Ground Plane" - - @property - def cross_dipole_mode(self) -> CrossDipoleModeOption: - """Choose the Cross Dipole type.""" - val = self._get_property("Cross Dipole Mode") - val = self.CrossDipoleModeOption[val.upper()] - return val - - @cross_dipole_mode.setter - def cross_dipole_mode(self, value: CrossDipoleModeOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Cross Dipole Mode={value.value}"]) - - class CrossDipolePolarizationOption(Enum): - RHCP = "RHCP" - LHCP = "LHCP" - - @property - def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: - """Choose local-coordinates polarization along boresight.""" - val = self._get_property("Cross Dipole Polarization") - val = self.CrossDipolePolarizationOption[val.upper()] - return val - - @cross_dipole_polarization.setter - def cross_dipole_polarization(self, value: CrossDipolePolarizationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Cross Dipole Polarization={value.value}"]) - - @property - def override_height(self) -> bool: - """Override Height. - - Ignores the default placement of quarter design wavelength over the - ground plane. - - Value should be 'true' or 'false'. - """ - val = self._get_property("Override Height") - return (val == true) - - @override_height.setter - def override_height(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Override Height={value}"]) - - @property - def offset_height(self) -> float: - """Offset Height. - - Sets the offset height for the current sources above the ground plane. - - Value should be greater than 0. - """ - val = self._get_property("Offset Height") - val = self._convert_from_internal_units(float(val), "Length") - return float(val) - - @offset_height.setter - def offset_height(self, value : float|str): - value = self._convert_to_internal_units(value, "Length") - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Offset Height={value}"]) - - @property - def auto_height_offset(self) -> bool: - """Auto Height Offset. - - Switch on to automatically place slot current at sub-wavelength offset - height above ground plane. - - Value should be 'true' or 'false'. - """ - val = self._get_property("Auto Height Offset") - return (val == true) - - @auto_height_offset.setter - def auto_height_offset(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Auto Height Offset={value}"]) - - @property - def conform__adjust_antenna(self) -> bool: - """Toggle (on/off) conformal adjustment for array antenna elements. - - Value should be 'true' or 'false'. - """ - val = self._get_property("Conform / Adjust Antenna") - return (val == true) - - @conform__adjust_antenna.setter - def conform__adjust_antenna(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform / Adjust Antenna={value}"]) - - @property - def element_offset(self): - """Element Offset. - - Set vector for shifting element positions in antenna local coordinates. - - Value should be x/y/z, delimited by spaces. - """ - val = self._get_property("Element Offset") - return val - - @element_offset.setter - def element_offset(self, value): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Element Offset={value}"]) - - class ConformtoPlatformOption(Enum): - NONE = "None" - ALONG_NORMAL = "Along Normal" - PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" - - @property - def conform_to_platform(self) -> ConformtoPlatformOption: - """Select method of automated conforming applied after Element Offset.""" - val = self._get_property("Conform to Platform") - val = self.ConformtoPlatformOption[val.upper()] - return val - - @conform_to_platform.setter - def conform_to_platform(self, value: ConformtoPlatformOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform to Platform={value.value}"]) - - class ReferencePlaneOption(Enum): - XY_PLANE = "XY Plane" - YZ_PLANE = "YZ Plane" - ZX_PLANE = "ZX Plane" - - @property - def reference_plane(self) -> ReferencePlaneOption: - """Select reference plane for determining original element heights.""" - val = self._get_property("Reference Plane") - val = self.ReferencePlaneOption[val.upper()] - return val - - @reference_plane.setter - def reference_plane(self, value: ReferencePlaneOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Reference Plane={value.value}"]) - - @property - def conform_element_orientation(self) -> bool: - """Conform Element Orientation. - - Toggle (on/off) re-orientation of elements to conform to curved - placement surface. - - Value should be 'true' or 'false'. - """ - val = self._get_property("Conform Element Orientation") - return (val == true) - - @conform_element_orientation.setter - def conform_element_orientation(self, value: bool): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Conform Element Orientation={value}"]) - @property def show_axes(self) -> bool: """Toggle (on/off) display of antenna coordinate axes in 3-D window. @@ -754,13 +558,13 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return (val == "true") @show_axes.setter def show_axes(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Show Axes={value}"]) + [f"Show Axes={str(value).lower()}"]) @property def show_icon(self) -> bool: @@ -769,13 +573,13 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return (val == true) + return (val == "true") @show_icon.setter def show_icon(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Show Icon={value}"]) + [f"Show Icon={str(value).lower()}"]) @property def size(self) -> float: @@ -826,7 +630,7 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return (val == true) + return (val == "true") @property def frequency_domain(self): @@ -834,38 +638,6 @@ def frequency_domain(self): val = self._get_property("Frequency Domain") return val - @property - def number_of_electric_sources(self) -> int: - """Number of freestanding electric current sources defining antenna.""" - val = self._get_property("Number of Electric Sources") - return int(val) - - @property - def number_of_magnetic_sources(self) -> int: - """Number of freestanding magnetic current sources defining antenna.""" - val = self._get_property("Number of Magnetic Sources") - return int(val) - - @property - def number_of_imaged_electric_sources(self) -> int: - """Number of Imaged Electric Sources. - - Number of imaged, half-space radiating electric current sources defining - antenna. - """ - val = self._get_property("Number of Imaged Electric Sources") - return int(val) - - @property - def number_of_imaged_magnetic_sources(self) -> int: - """Number of Imaged Magnetic Sources. - - Number of imaged, half-space radiating magnetic current sources defining - antenna. - """ - val = self._get_property("Number of Imaged Magnetic Sources") - return int(val) - @property def waveguide_height(self) -> float: """Waveguide Height. @@ -884,50 +656,6 @@ def waveguide_cutoff_frequency(self) -> float: val = self._convert_from_internal_units(float(val), "Freq") return float(val) - @property - def aperture_cutoff_frequency(self) -> float: - """Implied lowest operating frequency of conical horn antenna.""" - val = self._get_property("Aperture Cutoff Frequency") - val = self._convert_from_internal_units(float(val), "Freq") - return float(val) - - class SWEModeTruncationOption(Enum): - DYNAMIC = "Dynamic" - FIXED_CUSTOM = "Fixed (Custom)" - NONE = "None" - - @property - def swe_mode_truncation(self) -> SWEModeTruncationOption: - """SWE Mode Truncation. - - Select the method for stability-enhancing truncation of spherical wave - expansion terms. - """ - val = self._get_property("SWE Mode Truncation") - val = self.SWEModeTruncationOption[val.upper()] - return val - - @swe_mode_truncation.setter - def swe_mode_truncation(self, value: SWEModeTruncationOption): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"SWE Mode Truncation={value.value}"]) - - @property - def max_n_index(self) -> int: - """Set maximum allowed index N for spherical wave expansion terms. - - Value should be greater than 1. - """ - val = self._get_property("Max N Index") - return int(val) - - @max_n_index.setter - def max_n_index(self, value: int): - self._oRevisionData.SetEmitNodeProperties(self._result_id, - self._node_id, - [f"Max N Index={value}"]) - @property def notes(self) -> str: """Expand to view/edit notes stored with the project.""" @@ -947,13 +675,13 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return (val == true) + return (val == "true") @show_composite_passband.setter def show_composite_passband(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Show Composite Passband={value}"]) + [f"Show Composite Passband={str(value).lower()}"]) @property def use_phase_center(self) -> bool: @@ -962,13 +690,13 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return (val == true) + return (val == "true") @use_phase_center.setter def use_phase_center(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Use Phase Center={value}"]) + [f"Use Phase Center={str(value).lower()}"]) @property def coordinate_systems(self) -> str: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/band.py b/src/ansys/aedt/core/emit_core/nodes/generated/band.py index 35489f08f7e..e028288aa6c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/band.py @@ -62,13 +62,13 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return (val == true) + return (val == "true") @use_dd_1494_mode.setter def use_dd_1494_mode(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Use DD-1494 Mode={value}"]) + [f"Use DD-1494 Mode={str(value).lower()}"]) @property def use_emission_designator(self) -> bool: @@ -79,13 +79,13 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return (val == true) + return (val == "true") @use_emission_designator.setter def use_emission_designator(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Use Emission Designator={value}"]) + [f"Use Emission Designator={str(value).lower()}"]) @property def emission_designator(self) -> str: @@ -125,13 +125,13 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return (val == true) + return (val == "true") @override_emission_designator_bw.setter def override_emission_designator_bw(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Override Emission Designator BW={value}"]) + [f"Override Emission Designator BW={str(value).lower()}"]) @property def channel_bandwidth(self) -> float: @@ -448,13 +448,13 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return (val == true) + return (val == "true") @hopping_radar.setter def hopping_radar(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Hopping Radar={value}"]) + [f"Hopping Radar={str(value).lower()}"]) @property def post_october_2020_procurement(self) -> bool: @@ -466,13 +466,13 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return (val == true) + return (val == "true") @post_october_2020_procurement.setter def post_october_2020_procurement(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Post October 2020 Procurement={value}"]) + [f"Post October 2020 Procurement={str(value).lower()}"]) @property def hop_range_min_freq(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py index 05980fc17fb..4a1778bec1d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/band_trace_node.py @@ -109,13 +109,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return (val == "true") @visible.setter def visible(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Visible={value}"]) + [f"Visible={str(value).lower()}"]) @property def custom_legend(self) -> bool: @@ -124,13 +124,13 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return (val == "true") @custom_legend.setter def custom_legend(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Custom Legend={value}"]) + [f"Custom Legend={str(value).lower()}"]) @property def name(self) -> str: @@ -280,11 +280,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return (val == "true") @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Symbol Filled={value}"]) + [f"Symbol Filled={str(value).lower()}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py index 67873f51896..7d2dd051699 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/cad_node.py @@ -394,13 +394,13 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return (val == true) + return (val == "true") @closed_top.setter def closed_top(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Closed Top={value}"]) + [f"Closed Top={str(value).lower()}"]) @property def closed_base(self) -> bool: @@ -409,13 +409,13 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return (val == true) + return (val == "true") @closed_base.setter def closed_base(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Closed Base={value}"]) + [f"Closed Base={str(value).lower()}"]) @property def mesh_density(self) -> int: @@ -445,13 +445,13 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return (val == true) + return (val == "true") @use_symmetric_mesh.setter def use_symmetric_mesh(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Use Symmetric Mesh={value}"]) + [f"Use Symmetric Mesh={str(value).lower()}"]) class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -495,13 +495,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return (val == "true") @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Show Relative Coordinates={value}"]) + [f"Show Relative Coordinates={str(value).lower()}"]) @property def position(self): @@ -594,13 +594,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return (val == "true") @visible.setter def visible(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Visible={value}"]) + [f"Visible={str(value).lower()}"]) class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -628,13 +628,13 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return (val == "true") @show_axes.setter def show_axes(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Show Axes={value}"]) + [f"Show Axes={str(value).lower()}"]) @property def min(self): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/circulator.py index bacf8ad39e4..0cea366e651 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/circulator.py @@ -146,13 +146,13 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return (val == true) + return (val == "true") @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Finite Reverse Isolation={value}"]) + [f"Finite Reverse Isolation={str(value).lower()}"]) @property def reverse_isolation(self) -> float: @@ -179,13 +179,13 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return (val == "true") @finite_bandwidth.setter def finite_bandwidth(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Finite Bandwidth={value}"]) + [f"Finite Bandwidth={str(value).lower()}"]) @property def out_of_band_attenuation(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py index 7e0325d0828..06f3868b286 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_link_node.py @@ -40,13 +40,13 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enabled={value}"]) + [f"Enabled={str(value).lower()}"]) @property def ports(self): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py index 142969a97b0..c2ca6ef5d41 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/coupling_trace_node.py @@ -93,13 +93,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return (val == "true") @visible.setter def visible(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Visible={value}"]) + [f"Visible={str(value).lower()}"]) @property def custom_legend(self) -> bool: @@ -108,13 +108,13 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return (val == "true") @custom_legend.setter def custom_legend(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Custom Legend={value}"]) + [f"Custom Legend={str(value).lower()}"]) @property def name(self) -> str: @@ -264,13 +264,13 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return (val == "true") @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Symbol Filled={value}"]) + [f"Symbol Filled={str(value).lower()}"]) @property def highlight_regions(self) -> bool: @@ -279,13 +279,13 @@ def highlight_regions(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Highlight Regions") - return (val == true) + return (val == "true") @highlight_regions.setter def highlight_regions(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Highlight Regions={value}"]) + [f"Highlight Regions={str(value).lower()}"]) @property def show_region_labels(self) -> bool: @@ -294,13 +294,13 @@ def show_region_labels(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Region Labels") - return (val == true) + return (val == "true") @show_region_labels.setter def show_region_labels(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Show Region Labels={value}"]) + [f"Show Region Labels={str(value).lower()}"]) @property def font(self): @@ -354,13 +354,13 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return (val == true) + return (val == "true") @border.setter def border(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Border={value}"]) + [f"Border={str(value).lower()}"]) @property def border_width(self) -> int: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py index b13a176d988..6d5c46bb64f 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/custom_coupling_node.py @@ -71,13 +71,13 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enabled={value}"]) + [f"Enabled={str(value).lower()}"]) @property def antenna_a(self) -> EmitNode: @@ -110,13 +110,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return (val == "true") @enable_refinement.setter def enable_refinement(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enable Refinement={value}"]) + [f"Enable Refinement={str(value).lower()}"]) @property def adaptive_sampling(self) -> bool: @@ -125,13 +125,13 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return (val == "true") @adaptive_sampling.setter def adaptive_sampling(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Adaptive Sampling={value}"]) + [f"Adaptive Sampling={str(value).lower()}"]) @property def refinement_domain(self): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py index bf444fdf787..f0d736912dd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/emi_plot_marker_node.py @@ -53,13 +53,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return (val == "true") @visible.setter def visible(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Visible={value}"]) + [f"Visible={str(value).lower()}"]) @property def attached(self): @@ -99,13 +99,13 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return (val == true) + return (val == "true") @floating_label.setter def floating_label(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Floating Label={value}"]) + [f"Floating Label={str(value).lower()}"]) @property def position_from_left(self) -> float: @@ -261,13 +261,13 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return (val == true) + return (val == "true") @border.setter def border(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Border={value}"]) + [f"Border={str(value).lower()}"]) @property def border_width(self) -> int: @@ -400,11 +400,11 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return (val == true) + return (val == "true") @filled.setter def filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Filled={value}"]) + [f"Filled={str(value).lower()}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py index 54ce88833a3..ed91741e29b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/erceg_coupling_node.py @@ -53,13 +53,13 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enabled={value}"]) + [f"Enabled={str(value).lower()}"]) @property def base_antenna(self) -> EmitNode: @@ -92,13 +92,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return (val == "true") @enable_refinement.setter def enable_refinement(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enable Refinement={value}"]) + [f"Enable Refinement={str(value).lower()}"]) @property def adaptive_sampling(self) -> bool: @@ -107,13 +107,13 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return (val == "true") @adaptive_sampling.setter def adaptive_sampling(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Adaptive Sampling={value}"]) + [f"Adaptive Sampling={str(value).lower()}"]) @property def refinement_domain(self): @@ -258,13 +258,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return (val == "true") @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Include Rain Attenuation={value}"]) + [f"Include Rain Attenuation={str(value).lower()}"]) @property def rain_availability(self) -> float: @@ -327,13 +327,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return (val == "true") @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Include Atmospheric Absorption={value}"]) + [f"Include Atmospheric Absorption={str(value).lower()}"]) @property def temperature(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py b/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py index 5ee57a793c6..f6d3ca10dde 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/five_g_channel_model.py @@ -53,13 +53,13 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enabled={value}"]) + [f"Enabled={str(value).lower()}"]) @property def base_antenna(self) -> EmitNode: @@ -92,13 +92,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return (val == "true") @enable_refinement.setter def enable_refinement(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enable Refinement={value}"]) + [f"Enable Refinement={str(value).lower()}"]) @property def adaptive_sampling(self) -> bool: @@ -107,13 +107,13 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return (val == "true") @adaptive_sampling.setter def adaptive_sampling(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Adaptive Sampling={value}"]) + [f"Adaptive Sampling={str(value).lower()}"]) @property def refinement_domain(self): @@ -152,13 +152,13 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return (val == true) + return (val == "true") @los.setter def los(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"LOS={value}"]) + [f"LOS={str(value).lower()}"]) @property def include_bpl(self) -> bool: @@ -167,13 +167,13 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return (val == true) + return (val == "true") @include_bpl.setter def include_bpl(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Include BPL={value}"]) + [f"Include BPL={str(value).lower()}"]) class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -305,13 +305,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return (val == "true") @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Include Rain Attenuation={value}"]) + [f"Include Rain Attenuation={str(value).lower()}"]) @property def rain_availability(self) -> float: @@ -374,13 +374,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return (val == "true") @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Include Atmospheric Absorption={value}"]) + [f"Include Atmospheric Absorption={str(value).lower()}"]) @property def temperature(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py index b7cd3dbf960..e436688bbff 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/hata_coupling_node.py @@ -53,13 +53,13 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enabled={value}"]) + [f"Enabled={str(value).lower()}"]) @property def base_antenna(self) -> EmitNode: @@ -92,13 +92,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return (val == "true") @enable_refinement.setter def enable_refinement(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enable Refinement={value}"]) + [f"Enable Refinement={str(value).lower()}"]) @property def adaptive_sampling(self) -> bool: @@ -107,13 +107,13 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return (val == "true") @adaptive_sampling.setter def adaptive_sampling(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Adaptive Sampling={value}"]) + [f"Adaptive Sampling={str(value).lower()}"]) @property def refinement_domain(self): @@ -259,13 +259,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return (val == "true") @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Include Rain Attenuation={value}"]) + [f"Include Rain Attenuation={str(value).lower()}"]) @property def rain_availability(self) -> float: @@ -328,13 +328,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return (val == "true") @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Include Atmospheric Absorption={value}"]) + [f"Include Atmospheric Absorption={str(value).lower()}"]) @property def temperature(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py index 675e9c6d785..5b146196178 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/indoor_propagation_coupling_node.py @@ -70,13 +70,13 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enabled={value}"]) + [f"Enabled={str(value).lower()}"]) @property def antenna_a(self) -> EmitNode: @@ -109,13 +109,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return (val == "true") @enable_refinement.setter def enable_refinement(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enable Refinement={value}"]) + [f"Enable Refinement={str(value).lower()}"]) @property def adaptive_sampling(self) -> bool: @@ -124,13 +124,13 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return (val == "true") @adaptive_sampling.setter def adaptive_sampling(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Adaptive Sampling={value}"]) + [f"Adaptive Sampling={str(value).lower()}"]) @property def refinement_domain(self): @@ -292,13 +292,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return (val == "true") @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Include Rain Attenuation={value}"]) + [f"Include Rain Attenuation={str(value).lower()}"]) @property def rain_availability(self) -> float: @@ -361,13 +361,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return (val == "true") @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Include Atmospheric Absorption={value}"]) + [f"Include Atmospheric Absorption={str(value).lower()}"]) @property def temperature(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/isolator.py index 69453eb93ed..7a56962b0a4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/isolator.py @@ -146,13 +146,13 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return (val == true) + return (val == "true") @finite_reverse_isolation.setter def finite_reverse_isolation(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Finite Reverse Isolation={value}"]) + [f"Finite Reverse Isolation={str(value).lower()}"]) @property def reverse_isolation(self) -> float: @@ -179,13 +179,13 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return (val == "true") @finite_bandwidth.setter def finite_bandwidth(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Finite Bandwidth={value}"]) + [f"Finite Bandwidth={str(value).lower()}"]) @property def out_of_band_attenuation(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py index a9f75e16c5c..9cac6a9ea17 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/log_distance_coupling_node.py @@ -53,13 +53,13 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enabled={value}"]) + [f"Enabled={str(value).lower()}"]) @property def antenna_a(self) -> EmitNode: @@ -92,13 +92,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return (val == "true") @enable_refinement.setter def enable_refinement(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enable Refinement={value}"]) + [f"Enable Refinement={str(value).lower()}"]) @property def adaptive_sampling(self) -> bool: @@ -107,13 +107,13 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return (val == "true") @adaptive_sampling.setter def adaptive_sampling(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Adaptive Sampling={value}"]) + [f"Adaptive Sampling={str(value).lower()}"]) @property def refinement_domain(self): @@ -277,13 +277,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return (val == "true") @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Include Rain Attenuation={value}"]) + [f"Include Rain Attenuation={str(value).lower()}"]) @property def rain_availability(self) -> float: @@ -346,13 +346,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return (val == "true") @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Include Atmospheric Absorption={value}"]) + [f"Include Atmospheric Absorption={str(value).lower()}"]) @property def temperature(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py index 297dffd3064..7aeefc39d32 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/mplex_band_trace_node.py @@ -85,13 +85,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return (val == "true") @visible.setter def visible(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Visible={value}"]) + [f"Visible={str(value).lower()}"]) @property def custom_legend(self) -> bool: @@ -100,13 +100,13 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return (val == "true") @custom_legend.setter def custom_legend(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Custom Legend={value}"]) + [f"Custom Legend={str(value).lower()}"]) @property def name(self) -> str: @@ -256,11 +256,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return (val == "true") @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Symbol Filled={value}"]) + [f"Symbol Filled={str(value).lower()}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer.py index 53cbd8b7d75..1289a116a3d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/multiplexer.py @@ -133,13 +133,13 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return (val == true) + return (val == "true") @flip_ports_vertically.setter def flip_ports_vertically(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Flip Ports Vertically={value}"]) + [f"Flip Ports Vertically={str(value).lower()}"]) @property def ports(self): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py index 9f4bd7f6aa9..80dba5c19cf 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/outboard_trace_node.py @@ -99,13 +99,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return (val == "true") @visible.setter def visible(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Visible={value}"]) + [f"Visible={str(value).lower()}"]) @property def custom_legend(self) -> bool: @@ -114,13 +114,13 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return (val == "true") @custom_legend.setter def custom_legend(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Custom Legend={value}"]) + [f"Custom Legend={str(value).lower()}"]) @property def name(self) -> str: @@ -270,11 +270,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return (val == "true") @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Symbol Filled={value}"]) + [f"Symbol Filled={str(value).lower()}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py index 3f9eaa239cf..01f8e765a32 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/parametric_coupling_trace_node.py @@ -93,13 +93,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return (val == "true") @visible.setter def visible(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Visible={value}"]) + [f"Visible={str(value).lower()}"]) @property def custom_legend(self) -> bool: @@ -108,13 +108,13 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return (val == "true") @custom_legend.setter def custom_legend(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Custom Legend={value}"]) + [f"Custom Legend={str(value).lower()}"]) @property def name(self) -> str: @@ -264,11 +264,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return (val == "true") @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Symbol Filled={value}"]) + [f"Symbol Filled={str(value).lower()}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py index a7107f8c66e..eb70eb7ff45 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/plot_marker_node.py @@ -53,13 +53,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return (val == "true") @visible.setter def visible(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Visible={value}"]) + [f"Visible={str(value).lower()}"]) @property def attached(self) -> bool: @@ -71,13 +71,13 @@ def attached(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Attached") - return (val == true) + return (val == "true") @attached.setter def attached(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Attached={value}"]) + [f"Attached={str(value).lower()}"]) @property def position_x(self) -> float: @@ -113,13 +113,13 @@ def floating_label(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Floating Label") - return (val == true) + return (val == "true") @floating_label.setter def floating_label(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Floating Label={value}"]) + [f"Floating Label={str(value).lower()}"]) @property def position_from_left(self) -> float: @@ -275,13 +275,13 @@ def border(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Border") - return (val == true) + return (val == "true") @border.setter def border(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Border={value}"]) + [f"Border={str(value).lower()}"]) @property def border_width(self) -> int: @@ -414,11 +414,11 @@ def filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Filled") - return (val == true) + return (val == "true") @filled.setter def filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Filled={value}"]) + [f"Filled={str(value).lower()}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py index af9ce578cf9..2dd155ce8f9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/plot_node.py @@ -83,13 +83,13 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return (val == true) + return (val == "true") @show_legend.setter def show_legend(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Show Legend={value}"]) + [f"Show Legend={str(value).lower()}"]) @property def legend_font(self): @@ -113,13 +113,13 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return (val == true) + return (val == "true") @display_cad_overlay.setter def display_cad_overlay(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Display CAD Overlay={value}"]) + [f"Display CAD Overlay={str(value).lower()}"]) @property def opacity(self) -> float: @@ -176,13 +176,13 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return (val == true) + return (val == "true") @lock_axes.setter def lock_axes(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Lock Axes={value}"]) + [f"Lock Axes={str(value).lower()}"]) @property def x_axis_min(self) -> float: @@ -480,11 +480,11 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return (val == true) + return (val == "true") @log_scale.setter def log_scale(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Log Scale={value}"]) + [f"Log Scale={str(value).lower()}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py b/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py index 77409954b3f..bb2ae9f9fe7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/power_divider.py @@ -150,13 +150,13 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return (val == true) + return (val == "true") @finite_isolation.setter def finite_isolation(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Finite Isolation={value}"]) + [f"Finite Isolation={str(value).lower()}"]) @property def isolation(self) -> float: @@ -183,13 +183,13 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return (val == "true") @finite_bandwidth.setter def finite_bandwidth(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Finite Bandwidth={value}"]) + [f"Finite Bandwidth={str(value).lower()}"]) @property def out_of_band_attenuation(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py index 22bba044b8f..517cbfe4e37 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/power_trace_node.py @@ -89,13 +89,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return (val == "true") @visible.setter def visible(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Visible={value}"]) + [f"Visible={str(value).lower()}"]) @property def custom_legend(self) -> bool: @@ -104,13 +104,13 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return (val == "true") @custom_legend.setter def custom_legend(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Custom Legend={value}"]) + [f"Custom Legend={str(value).lower()}"]) @property def name(self) -> str: @@ -260,11 +260,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return (val == "true") @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Symbol Filled={value}"]) + [f"Symbol Filled={str(value).lower()}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py index 92132195ebe..7bd59d3357b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/profile_trace_node.py @@ -69,13 +69,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return (val == "true") @visible.setter def visible(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Visible={value}"]) + [f"Visible={str(value).lower()}"]) @property def custom_legend(self) -> bool: @@ -84,13 +84,13 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return (val == "true") @custom_legend.setter def custom_legend(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Custom Legend={value}"]) + [f"Custom Legend={str(value).lower()}"]) @property def name(self) -> str: @@ -240,11 +240,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return (val == "true") @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Symbol Filled={value}"]) + [f"Symbol Filled={str(value).lower()}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py index 43d56ff3f82..38b5a665c31 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/propagation_loss_coupling_node.py @@ -53,13 +53,13 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enabled={value}"]) + [f"Enabled={str(value).lower()}"]) @property def antenna_a(self) -> EmitNode: @@ -92,13 +92,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return (val == "true") @enable_refinement.setter def enable_refinement(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enable Refinement={value}"]) + [f"Enable Refinement={str(value).lower()}"]) @property def adaptive_sampling(self) -> bool: @@ -107,13 +107,13 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return (val == "true") @adaptive_sampling.setter def adaptive_sampling(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Adaptive Sampling={value}"]) + [f"Adaptive Sampling={str(value).lower()}"]) @property def refinement_domain(self): @@ -240,13 +240,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return (val == "true") @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Include Rain Attenuation={value}"]) + [f"Include Rain Attenuation={str(value).lower()}"]) @property def rain_availability(self) -> float: @@ -309,13 +309,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return (val == "true") @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Include Atmospheric Absorption={value}"]) + [f"Include Atmospheric Absorption={str(value).lower()}"]) @property def temperature(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py index 86370a2f757..7da7e73ac0b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_antenna_node.py @@ -50,7 +50,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return (val == "true") @property def position(self): @@ -109,7 +109,7 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return (val == true) + return (val == "true") @property def antenna_temperature(self) -> float: @@ -120,10 +120,24 @@ def antenna_temperature(self) -> float: val = self._get_property("Antenna Temperature") return float(val) - @property - def type(self): + class TypeOption(Enum): + ISOTROPIC = "Isotropic" + BY_FILE = "By File" + HEMITROPIC = "Hemitropic" + SHORT_DIPOLE = "Short Dipole" + HALF_WAVE_DIPOLE = "Half-wave Dipole" + QUARTER_WAVE_MONOPOLE = "Quarter-wave Monopole" + WIRE_DIPOLE = "Wire Dipole" + WIRE_MONOPOLE = "Wire Monopole" + SMALL_LOOP = "Small Loop" + DIRECTIVE_BEAM = "Directive Beam" + PYRAMIDAL_HORN = "Pyramidal Horn" + + @property + def type(self) -> TypeOption: """Defines the type of antenna.""" val = self._get_property("Type") + val = self.TypeOption[val.upper()] return val @property @@ -150,18 +164,6 @@ def peak_gain(self) -> float: val = self._get_property("Peak Gain") return float(val) - class BoresightOption(Enum): - XAXIS = "+X Axis" - YAXIS = "+Y Axis" - ZAXIS = "+Z Axis" - - @property - def boresight(self) -> BoresightOption: - """Select peak beam direction in local coordinates.""" - val = self._get_property("Boresight") - val = self.BoresightOption[val.upper()] - return val - @property def vertical_beamwidth(self) -> float: """Set half-power beamwidth in local-coordinates elevation plane. @@ -187,7 +189,7 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return (val == true) + return (val == "true") @property def first_sidelobe_level(self) -> float: @@ -244,16 +246,6 @@ def resonant_frequency(self) -> float: val = self._convert_from_internal_units(float(val), "Freq") return float(val) - @property - def slot_length(self) -> float: - """Set slot length of parametric slot. - - Value should be greater than 1e-6. - """ - val = self._get_property("Slot Length") - val = self._convert_from_internal_units(float(val), "Length") - return float(val) - @property def mouth_width(self) -> float: """Set mouth width (along local y-axis) of the horn antenna. @@ -358,120 +350,6 @@ def antenna_polarization(self) -> AntennaPolarizationOption: val = self.AntennaPolarizationOption[val.upper()] return val - class CrossDipoleModeOption(Enum): - FREESTANDING = "Freestanding" - OVER_GROUND_PLANE = "Over Ground Plane" - - @property - def cross_dipole_mode(self) -> CrossDipoleModeOption: - """Choose the Cross Dipole type.""" - val = self._get_property("Cross Dipole Mode") - val = self.CrossDipoleModeOption[val.upper()] - return val - - class CrossDipolePolarizationOption(Enum): - RHCP = "RHCP" - LHCP = "LHCP" - - @property - def cross_dipole_polarization(self) -> CrossDipolePolarizationOption: - """Choose local-coordinates polarization along boresight.""" - val = self._get_property("Cross Dipole Polarization") - val = self.CrossDipolePolarizationOption[val.upper()] - return val - - @property - def override_height(self) -> bool: - """Override Height. - - Ignores the default placement of quarter design wavelength over the - ground plane. - - Value should be 'true' or 'false'. - """ - val = self._get_property("Override Height") - return (val == true) - - @property - def offset_height(self) -> float: - """Offset Height. - - Sets the offset height for the current sources above the ground plane. - - Value should be greater than 0. - """ - val = self._get_property("Offset Height") - val = self._convert_from_internal_units(float(val), "Length") - return float(val) - - @property - def auto_height_offset(self) -> bool: - """Auto Height Offset. - - Switch on to automatically place slot current at sub-wavelength offset - height above ground plane. - - Value should be 'true' or 'false'. - """ - val = self._get_property("Auto Height Offset") - return (val == true) - - @property - def conform__adjust_antenna(self) -> bool: - """Toggle (on/off) conformal adjustment for array antenna elements. - - Value should be 'true' or 'false'. - """ - val = self._get_property("Conform / Adjust Antenna") - return (val == true) - - @property - def element_offset(self): - """Element Offset. - - Set vector for shifting element positions in antenna local coordinates. - - Value should be x/y/z, delimited by spaces. - """ - val = self._get_property("Element Offset") - return val - - class ConformtoPlatformOption(Enum): - NONE = "None" - ALONG_NORMAL = "Along Normal" - PERPENDICULAR_TO_PLANE = "Perpendicular to Plane" - - @property - def conform_to_platform(self) -> ConformtoPlatformOption: - """Select method of automated conforming applied after Element Offset.""" - val = self._get_property("Conform to Platform") - val = self.ConformtoPlatformOption[val.upper()] - return val - - class ReferencePlaneOption(Enum): - XY_PLANE = "XY Plane" - YZ_PLANE = "YZ Plane" - ZX_PLANE = "ZX Plane" - - @property - def reference_plane(self) -> ReferencePlaneOption: - """Select reference plane for determining original element heights.""" - val = self._get_property("Reference Plane") - val = self.ReferencePlaneOption[val.upper()] - return val - - @property - def conform_element_orientation(self) -> bool: - """Conform Element Orientation. - - Toggle (on/off) re-orientation of elements to conform to curved - placement surface. - - Value should be 'true' or 'false'. - """ - val = self._get_property("Conform Element Orientation") - return (val == true) - @property def show_axes(self) -> bool: """Toggle (on/off) display of antenna coordinate axes in 3-D window. @@ -479,7 +357,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return (val == "true") @property def show_icon(self) -> bool: @@ -488,7 +366,7 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return (val == true) + return (val == "true") @property def size(self) -> float: @@ -527,7 +405,7 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return (val == true) + return (val == "true") @property def frequency_domain(self): @@ -535,38 +413,6 @@ def frequency_domain(self): val = self._get_property("Frequency Domain") return val - @property - def number_of_electric_sources(self) -> int: - """Number of freestanding electric current sources defining antenna.""" - val = self._get_property("Number of Electric Sources") - return int(val) - - @property - def number_of_magnetic_sources(self) -> int: - """Number of freestanding magnetic current sources defining antenna.""" - val = self._get_property("Number of Magnetic Sources") - return int(val) - - @property - def number_of_imaged_electric_sources(self) -> int: - """Number of Imaged Electric Sources. - - Number of imaged, half-space radiating electric current sources defining - antenna. - """ - val = self._get_property("Number of Imaged Electric Sources") - return int(val) - - @property - def number_of_imaged_magnetic_sources(self) -> int: - """Number of Imaged Magnetic Sources. - - Number of imaged, half-space radiating magnetic current sources defining - antenna. - """ - val = self._get_property("Number of Imaged Magnetic Sources") - return int(val) - @property def waveguide_height(self) -> float: """Waveguide Height. @@ -585,38 +431,6 @@ def waveguide_cutoff_frequency(self) -> float: val = self._convert_from_internal_units(float(val), "Freq") return float(val) - @property - def aperture_cutoff_frequency(self) -> float: - """Implied lowest operating frequency of conical horn antenna.""" - val = self._get_property("Aperture Cutoff Frequency") - val = self._convert_from_internal_units(float(val), "Freq") - return float(val) - - class SWEModeTruncationOption(Enum): - DYNAMIC = "Dynamic" - FIXED_CUSTOM = "Fixed (Custom)" - NONE = "None" - - @property - def swe_mode_truncation(self) -> SWEModeTruncationOption: - """SWE Mode Truncation. - - Select the method for stability-enhancing truncation of spherical wave - expansion terms. - """ - val = self._get_property("SWE Mode Truncation") - val = self.SWEModeTruncationOption[val.upper()] - return val - - @property - def max_n_index(self) -> int: - """Set maximum allowed index N for spherical wave expansion terms. - - Value should be greater than 1. - """ - val = self._get_property("Max N Index") - return int(val) - @property def notes(self) -> str: """Expand to view/edit notes stored with the project.""" @@ -630,7 +444,7 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return (val == true) + return (val == "true") @property def use_phase_center(self) -> bool: @@ -639,7 +453,7 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return (val == true) + return (val == "true") @property def coordinate_systems(self) -> str: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py index 5154ebf1c5d..1739a8c80d9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_band.py @@ -47,7 +47,7 @@ def use_dd_1494_mode(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use DD-1494 Mode") - return (val == true) + return (val == "true") @property def use_emission_designator(self) -> bool: @@ -58,7 +58,7 @@ def use_emission_designator(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Emission Designator") - return (val == true) + return (val == "true") @property def emission_designator(self) -> str: @@ -92,7 +92,7 @@ def override_emission_designator_bw(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Emission Designator BW") - return (val == true) + return (val == "true") @property def channel_bandwidth(self) -> float: @@ -298,7 +298,7 @@ def hopping_radar(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Hopping Radar") - return (val == true) + return (val == "true") @property def post_october_2020_procurement(self) -> bool: @@ -310,7 +310,7 @@ def post_october_2020_procurement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Post October 2020 Procurement") - return (val == true) + return (val == "true") @property def hop_range_min_freq(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py index 7acacc0ae3d..fff947d264e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_cad_node.py @@ -254,7 +254,7 @@ def closed_top(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Top") - return (val == true) + return (val == "true") @property def closed_base(self) -> bool: @@ -263,7 +263,7 @@ def closed_base(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Closed Base") - return (val == true) + return (val == "true") @property def mesh_density(self) -> int: @@ -287,7 +287,7 @@ def use_symmetric_mesh(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Symmetric Mesh") - return (val == true) + return (val == "true") class MeshOptionOption(Enum): IMPROVED = "Improved" @@ -319,7 +319,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return (val == "true") @property def position(self): @@ -382,7 +382,7 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return (val == "true") class RenderModeOption(Enum): FLAT_SHADED = "Flat-Shaded" @@ -404,7 +404,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return (val == "true") @property def min(self): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py index aaf36909c0e..da894800d4c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_circulator.py @@ -98,7 +98,7 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return (val == true) + return (val == "true") @property def reverse_isolation(self) -> float: @@ -119,7 +119,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return (val == "true") @property def out_of_band_attenuation(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py index 6e844aeb233..200cc5730e8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_coupling_link_node.py @@ -40,7 +40,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @property def ports(self): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py index 020d880a854..0a81cc580b0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_custom_coupling_node.py @@ -51,7 +51,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @property def antenna_a(self) -> EmitNode: @@ -72,7 +72,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return (val == "true") @property def adaptive_sampling(self) -> bool: @@ -81,7 +81,7 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return (val == "true") @property def refinement_domain(self): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py index 5dc98f2df54..74534cb6366 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_erceg_coupling_node.py @@ -41,7 +41,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @property def base_antenna(self) -> EmitNode: @@ -62,7 +62,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return (val == "true") @property def adaptive_sampling(self) -> bool: @@ -71,7 +71,7 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return (val == "true") @property def refinement_domain(self): @@ -168,7 +168,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return (val == "true") @property def rain_availability(self) -> float: @@ -213,7 +213,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return (val == "true") @property def temperature(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py index 06e81aa9736..33f56ada9c2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_five_g_channel_model.py @@ -41,7 +41,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @property def base_antenna(self) -> EmitNode: @@ -62,7 +62,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return (val == "true") @property def adaptive_sampling(self) -> bool: @@ -71,7 +71,7 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return (val == "true") @property def refinement_domain(self): @@ -98,7 +98,7 @@ def los(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("LOS") - return (val == true) + return (val == "true") @property def include_bpl(self) -> bool: @@ -107,7 +107,7 @@ def include_bpl(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include BPL") - return (val == true) + return (val == "true") class NYUBPLModelOption(Enum): LOW_LOSS_MODEL = "Low-loss model" @@ -197,7 +197,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return (val == "true") @property def rain_availability(self) -> float: @@ -242,7 +242,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return (val == "true") @property def temperature(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py index 25e9d2c3e64..b562333729d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_hata_coupling_node.py @@ -41,7 +41,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @property def base_antenna(self) -> EmitNode: @@ -62,7 +62,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return (val == "true") @property def adaptive_sampling(self) -> bool: @@ -71,7 +71,7 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return (val == "true") @property def refinement_domain(self): @@ -169,7 +169,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return (val == "true") @property def rain_availability(self) -> float: @@ -214,7 +214,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return (val == "true") @property def temperature(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py index 0bfd1495ae8..3f7c61c72d2 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_indoor_propagation_coupling_node.py @@ -54,7 +54,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @property def antenna_a(self) -> EmitNode: @@ -75,7 +75,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return (val == "true") @property def adaptive_sampling(self) -> bool: @@ -84,7 +84,7 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return (val == "true") @property def refinement_domain(self): @@ -192,7 +192,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return (val == "true") @property def rain_availability(self) -> float: @@ -237,7 +237,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return (val == "true") @property def temperature(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py index f5ae03eed22..df93d0ebef8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_isolator.py @@ -98,7 +98,7 @@ def finite_reverse_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Reverse Isolation") - return (val == true) + return (val == "true") @property def reverse_isolation(self) -> float: @@ -119,7 +119,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return (val == "true") @property def out_of_band_attenuation(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py index 1bba149cf56..67a5260ee9c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_log_distance_coupling_node.py @@ -41,7 +41,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @property def antenna_a(self) -> EmitNode: @@ -62,7 +62,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return (val == "true") @property def adaptive_sampling(self) -> bool: @@ -71,7 +71,7 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return (val == "true") @property def refinement_domain(self): @@ -181,7 +181,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return (val == "true") @property def rain_availability(self) -> float: @@ -226,7 +226,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return (val == "true") @property def temperature(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py index c5fa2c6c575..01c62016b56 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_multiplexer.py @@ -87,7 +87,7 @@ def flip_ports_vertically(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Flip Ports Vertically") - return (val == true) + return (val == "true") @property def ports(self): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py index a10364ba83c..6a4e7daea59 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_power_divider.py @@ -102,7 +102,7 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return (val == true) + return (val == "true") @property def isolation(self) -> float: @@ -123,7 +123,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return (val == "true") @property def out_of_band_attenuation(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py index 9b0512e4d60..476c6abc552 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_propagation_loss_coupling_node.py @@ -41,7 +41,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @property def antenna_a(self) -> EmitNode: @@ -62,7 +62,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return (val == "true") @property def adaptive_sampling(self) -> bool: @@ -71,7 +71,7 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return (val == "true") @property def refinement_domain(self): @@ -156,7 +156,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return (val == "true") @property def rain_availability(self) -> float: @@ -201,7 +201,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return (val == "true") @property def temperature(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py index 7e4c22a0f68..d0b7e113add 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_meas_node.py @@ -105,7 +105,7 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return (val == true) + return (val == "true") @property def intended_signal_power(self) -> float: @@ -142,7 +142,7 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return (val == true) + return (val == "true") @property def measure_mixer_products(self) -> bool: @@ -151,7 +151,7 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return (val == true) + return (val == "true") @property def max_rf_order(self) -> int: @@ -178,7 +178,7 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return (val == true) + return (val == "true") @property def measure_saturation(self) -> bool: @@ -187,7 +187,7 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return (val == true) + return (val == "true") @property def use_ams_limits(self) -> bool: @@ -196,7 +196,7 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return (val == true) + return (val == "true") @property def start_frequency(self) -> float: @@ -234,5 +234,5 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return (val == true) + return (val == "true") diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py index fb88761efbb..4132a3e1c11 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_selectivity_node.py @@ -43,5 +43,5 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return (val == true) + return (val == "true") diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py index 92131408647..e9ef99c88e6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_rx_susceptibility_prof_node.py @@ -87,7 +87,7 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return (val == true) + return (val == "true") @property def saturation_level(self) -> float: @@ -134,7 +134,7 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return (val == true) + return (val == "true") @property def amplifier_saturation_level(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py index 9de48ee0f79..fa46c8ef1ea 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_sampling_node.py @@ -67,7 +67,7 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return (val == true) + return (val == "true") @property def percentage_of_channels(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py index 5eb5e2ac1f6..a3369f6afe0 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_scene_group_node.py @@ -44,7 +44,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return (val == "true") @property def position(self): @@ -109,7 +109,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return (val == "true") @property def box_color(self): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py index 6a5b42e095c..43aa5fe4eb6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solution_coupling_node.py @@ -43,7 +43,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @property def enable_refinement(self) -> bool: @@ -52,7 +52,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return (val == "true") @property def adaptive_sampling(self) -> bool: @@ -61,7 +61,7 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return (val == "true") @property def refinement_domain(self): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py index d323d3c793f..122b58ca219 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_solutions_node.py @@ -43,5 +43,5 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py index 3dcb2d277ce..484dd4067d7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_touchstone_coupling_node.py @@ -40,7 +40,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @property def enable_refinement(self) -> bool: @@ -49,7 +49,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return (val == "true") @property def adaptive_sampling(self) -> bool: @@ -58,7 +58,7 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return (val == "true") @property def refinement_domain(self): @@ -88,7 +88,7 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return (val == true) + return (val == "true") @property def port_antenna_assignment(self): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py index d011b854fb9..dde08a53e2c 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tr_switch.py @@ -94,7 +94,7 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return (val == true) + return (val == "true") @property def isolation(self) -> float: @@ -115,7 +115,7 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return (val == "true") @property def out_of_band_attenuation(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py index f55cb38e637..ebf94af183b 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_two_ray_path_loss_coupling_node.py @@ -41,7 +41,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @property def antenna_a(self) -> EmitNode: @@ -62,7 +62,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return (val == "true") @property def adaptive_sampling(self) -> bool: @@ -71,7 +71,7 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return (val == "true") @property def refinement_domain(self): @@ -176,7 +176,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return (val == "true") @property def rain_availability(self) -> float: @@ -221,7 +221,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return (val == "true") @property def temperature(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py index 7aa1aef61be..51beb022ff7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_bb_emission_node.py @@ -68,5 +68,5 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return (val == true) + return (val == "true") diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py index 73c1cbd9cfc..ba03fa8acbc 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_meas_node.py @@ -65,7 +65,7 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return (val == true) + return (val == "true") @property def start_frequency(self) -> float: @@ -94,5 +94,5 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return (val == true) + return (val == "true") diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py index f216fd72a52..0b3825ce869 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_emitter_node.py @@ -47,7 +47,7 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return (val == true) + return (val == "true") @property def tx_broadband_noise(self) -> float: @@ -65,7 +65,7 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return (val == true) + return (val == "true") @property def internal_amp_gain(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py index aa763da3119..923e876f7a3 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_tx_spectral_prof_node.py @@ -83,7 +83,7 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return (val == true) + return (val == "true") @property def tx_broadband_noise(self) -> float: @@ -144,7 +144,7 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return (val == true) + return (val == "true") @property def number_of_harmonics(self) -> int: @@ -191,7 +191,7 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return (val == true) + return (val == "true") @property def internal_amp_gain(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py index 6642582b276..2c0a0e36f43 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_walfisch_coupling_node.py @@ -41,7 +41,7 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @property def base_antenna(self) -> EmitNode: @@ -62,7 +62,7 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return (val == "true") @property def adaptive_sampling(self) -> bool: @@ -71,7 +71,7 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return (val == "true") @property def refinement_domain(self): @@ -217,7 +217,7 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return (val == "true") @property def rain_availability(self) -> float: @@ -262,7 +262,7 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return (val == "true") @property def temperature(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py index 55421742282..7e174abf1b6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/read_only_waveform.py @@ -153,7 +153,7 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return (val == true) + return (val == "true") @property def nb_window_size(self) -> float: @@ -259,7 +259,7 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return (val == true) + return (val == "true") @property def data_rate(self) -> float: @@ -287,7 +287,7 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return (val == true) + return (val == "true") @property def min_ptsnull(self) -> int: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py index 5e090da16fa..0e549c521f8 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/result_plot_node.py @@ -71,13 +71,13 @@ def show_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Legend") - return (val == true) + return (val == "true") @show_legend.setter def show_legend(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Show Legend={value}"]) + [f"Show Legend={str(value).lower()}"]) @property def legend_font(self): @@ -101,13 +101,13 @@ def show_emi_thresholds(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show EMI Thresholds") - return (val == true) + return (val == "true") @show_emi_thresholds.setter def show_emi_thresholds(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Show EMI Thresholds={value}"]) + [f"Show EMI Thresholds={str(value).lower()}"]) @property def display_cad_overlay(self) -> bool: @@ -116,13 +116,13 @@ def display_cad_overlay(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Display CAD Overlay") - return (val == true) + return (val == "true") @display_cad_overlay.setter def display_cad_overlay(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Display CAD Overlay={value}"]) + [f"Display CAD Overlay={str(value).lower()}"]) @property def opacity(self) -> float: @@ -179,13 +179,13 @@ def lock_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Lock Axes") - return (val == true) + return (val == "true") @lock_axes.setter def lock_axes(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Lock Axes={value}"]) + [f"Lock Axes={str(value).lower()}"]) @property def x_axis_min(self) -> float: @@ -483,11 +483,11 @@ def log_scale(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Log Scale") - return (val == true) + return (val == "true") @log_scale.setter def log_scale(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Log Scale={value}"]) + [f"Log Scale={str(value).lower()}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py index 48b7fb3ac4d..3d0ac139c70 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_meas_node.py @@ -137,13 +137,13 @@ def default_intended_power(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Default Intended Power") - return (val == true) + return (val == "true") @default_intended_power.setter def default_intended_power(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Default Intended Power={value}"]) + [f"Default Intended Power={str(value).lower()}"]) @property def intended_signal_power(self) -> float: @@ -199,13 +199,13 @@ def measure_selectivity(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Selectivity") - return (val == true) + return (val == "true") @measure_selectivity.setter def measure_selectivity(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Measure Selectivity={value}"]) + [f"Measure Selectivity={str(value).lower()}"]) @property def measure_mixer_products(self) -> bool: @@ -214,13 +214,13 @@ def measure_mixer_products(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Mixer Products") - return (val == true) + return (val == "true") @measure_mixer_products.setter def measure_mixer_products(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Measure Mixer Products={value}"]) + [f"Measure Mixer Products={str(value).lower()}"]) @property def max_rf_order(self) -> int: @@ -259,13 +259,13 @@ def include_if(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include IF") - return (val == true) + return (val == "true") @include_if.setter def include_if(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Include IF={value}"]) + [f"Include IF={str(value).lower()}"]) @property def measure_saturation(self) -> bool: @@ -274,13 +274,13 @@ def measure_saturation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Measure Saturation") - return (val == true) + return (val == "true") @measure_saturation.setter def measure_saturation(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Measure Saturation={value}"]) + [f"Measure Saturation={str(value).lower()}"]) @property def use_ams_limits(self) -> bool: @@ -289,13 +289,13 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return (val == true) + return (val == "true") @use_ams_limits.setter def use_ams_limits(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Use AMS Limits={value}"]) + [f"Use AMS Limits={str(value).lower()}"]) @property def start_frequency(self) -> float: @@ -353,13 +353,13 @@ def exclude_mixer_products_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Mixer Products Below Noise") - return (val == true) + return (val == "true") @exclude_mixer_products_below_noise.setter def exclude_mixer_products_below_noise(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Exclude Mixer Products Below Noise={value}"]) + [f"Exclude Mixer Products Below Noise={str(value).lower()}"]) @property def enabled(self) -> bool: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py index 2a50c884f53..ba91736a37e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_selectivity_node.py @@ -60,11 +60,11 @@ def use_arithmetic_mean(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Arithmetic Mean") - return (val == true) + return (val == "true") @use_arithmetic_mean.setter def use_arithmetic_mean(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Use Arithmetic Mean={value}"]) + [f"Use Arithmetic Mean={str(value).lower()}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py index d6fbe59699d..934d2650a96 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/rx_susceptibility_prof_node.py @@ -120,13 +120,13 @@ def apply_pg_to_narrowband_only(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Apply PG to Narrowband Only") - return (val == true) + return (val == "true") @apply_pg_to_narrowband_only.setter def apply_pg_to_narrowband_only(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Apply PG to Narrowband Only={value}"]) + [f"Apply PG to Narrowband Only={str(value).lower()}"]) @property def saturation_level(self) -> float: @@ -199,13 +199,13 @@ def perform_rx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Rx Intermod Analysis") - return (val == true) + return (val == "true") @perform_rx_intermod_analysis.setter def perform_rx_intermod_analysis(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Perform Rx Intermod Analysis={value}"]) + [f"Perform Rx Intermod Analysis={str(value).lower()}"]) @property def amplifier_saturation_level(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py index f02e4da0b79..2ec5fa3f7a4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/sampling_node.py @@ -77,13 +77,13 @@ def specify_percentage(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Specify Percentage") - return (val == true) + return (val == "true") @specify_percentage.setter def specify_percentage(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Specify Percentage={value}"]) + [f"Specify Percentage={str(value).lower()}"]) @property def percentage_of_channels(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py index 890c2bf3460..3f715a149cd 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/scene_group_node.py @@ -60,13 +60,13 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return (val == true) + return (val == "true") @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Show Relative Coordinates={value}"]) + [f"Show Relative Coordinates={str(value).lower()}"]) @property def position(self): @@ -161,13 +161,13 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return (val == true) + return (val == "true") @show_axes.setter def show_axes(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Show Axes={value}"]) + [f"Show Axes={str(value).lower()}"]) @property def box_color(self): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py index cab9ac9566f..e158da33435 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/selectivity_trace_node.py @@ -69,13 +69,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return (val == "true") @visible.setter def visible(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Visible={value}"]) + [f"Visible={str(value).lower()}"]) @property def custom_legend(self) -> bool: @@ -84,13 +84,13 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return (val == "true") @custom_legend.setter def custom_legend(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Custom Legend={value}"]) + [f"Custom Legend={str(value).lower()}"]) @property def name(self) -> str: @@ -240,11 +240,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return (val == "true") @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Symbol Filled={value}"]) + [f"Symbol Filled={str(value).lower()}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py index 0ed36abedf4..1e8c9a8e95a 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/solution_coupling_node.py @@ -43,13 +43,13 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enabled={value}"]) + [f"Enabled={str(value).lower()}"]) @property def enable_refinement(self) -> bool: @@ -58,13 +58,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return (val == "true") @enable_refinement.setter def enable_refinement(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enable Refinement={value}"]) + [f"Enable Refinement={str(value).lower()}"]) @property def adaptive_sampling(self) -> bool: @@ -73,13 +73,13 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return (val == "true") @adaptive_sampling.setter def adaptive_sampling(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Adaptive Sampling={value}"]) + [f"Adaptive Sampling={str(value).lower()}"]) @property def refinement_domain(self): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py index 87647899c2f..f19689a5fb7 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/solutions_node.py @@ -43,11 +43,11 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enabled={value}"]) + [f"Enabled={str(value).lower()}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py index 9e1c10abd65..ca8c92ed492 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/spur_trace_node.py @@ -92,13 +92,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return (val == "true") @visible.setter def visible(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Visible={value}"]) + [f"Visible={str(value).lower()}"]) @property def custom_legend(self) -> bool: @@ -107,13 +107,13 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return (val == "true") @custom_legend.setter def custom_legend(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Custom Legend={value}"]) + [f"Custom Legend={str(value).lower()}"]) @property def name(self) -> str: @@ -263,11 +263,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return (val == "true") @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Symbol Filled={value}"]) + [f"Symbol Filled={str(value).lower()}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py index 2921ab0cecf..616d63e3651 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/test_noise_trace_node.py @@ -99,13 +99,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return (val == "true") @visible.setter def visible(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Visible={value}"]) + [f"Visible={str(value).lower()}"]) @property def custom_legend(self) -> bool: @@ -114,13 +114,13 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return (val == "true") @custom_legend.setter def custom_legend(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Custom Legend={value}"]) + [f"Custom Legend={str(value).lower()}"]) @property def name(self) -> str: @@ -270,13 +270,13 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return (val == "true") @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Symbol Filled={value}"]) + [f"Symbol Filled={str(value).lower()}"]) @property def frequency_1(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py index dc1028801a7..2a7b97f2ab9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/touchstone_coupling_node.py @@ -52,13 +52,13 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enabled={value}"]) + [f"Enabled={str(value).lower()}"]) @property def enable_refinement(self) -> bool: @@ -67,13 +67,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return (val == "true") @enable_refinement.setter def enable_refinement(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enable Refinement={value}"]) + [f"Enable Refinement={str(value).lower()}"]) @property def adaptive_sampling(self) -> bool: @@ -82,13 +82,13 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return (val == "true") @adaptive_sampling.setter def adaptive_sampling(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Adaptive Sampling={value}"]) + [f"Adaptive Sampling={str(value).lower()}"]) @property def refinement_domain(self): @@ -130,13 +130,13 @@ def enable_em_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable EM Isolation") - return (val == true) + return (val == "true") @enable_em_isolation.setter def enable_em_isolation(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enable EM Isolation={value}"]) + [f"Enable EM Isolation={str(value).lower()}"]) @property def port_antenna_assignment(self): diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch.py b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch.py index e0a06aba11d..0173668adf9 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch.py @@ -142,13 +142,13 @@ def finite_isolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Isolation") - return (val == true) + return (val == "true") @finite_isolation.setter def finite_isolation(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Finite Isolation={value}"]) + [f"Finite Isolation={str(value).lower()}"]) @property def isolation(self) -> float: @@ -175,13 +175,13 @@ def finite_bandwidth(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Finite Bandwidth") - return (val == true) + return (val == "true") @finite_bandwidth.setter def finite_bandwidth(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Finite Bandwidth={value}"]) + [f"Finite Bandwidth={str(value).lower()}"]) @property def out_of_band_attenuation(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py index d63c8951e29..68e4496a852 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tr_switch_trace_node.py @@ -99,13 +99,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return (val == "true") @visible.setter def visible(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Visible={value}"]) + [f"Visible={str(value).lower()}"]) @property def custom_legend(self) -> bool: @@ -114,13 +114,13 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return (val == "true") @custom_legend.setter def custom_legend(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Custom Legend={value}"]) + [f"Custom Legend={str(value).lower()}"]) @property def name(self) -> str: @@ -270,11 +270,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return (val == "true") @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Symbol Filled={value}"]) + [f"Symbol Filled={str(value).lower()}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py index fe49372333b..34314992dc6 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tunable_trace_node.py @@ -113,13 +113,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return (val == "true") @visible.setter def visible(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Visible={value}"]) + [f"Visible={str(value).lower()}"]) @property def custom_legend(self) -> bool: @@ -128,13 +128,13 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return (val == "true") @custom_legend.setter def custom_legend(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Custom Legend={value}"]) + [f"Custom Legend={str(value).lower()}"]) @property def name(self) -> str: @@ -284,11 +284,11 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return (val == "true") @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Symbol Filled={value}"]) + [f"Symbol Filled={str(value).lower()}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py index a554f564578..a35d8f0877e 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/two_ray_path_loss_coupling_node.py @@ -53,13 +53,13 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enabled={value}"]) + [f"Enabled={str(value).lower()}"]) @property def antenna_a(self) -> EmitNode: @@ -92,13 +92,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return (val == "true") @enable_refinement.setter def enable_refinement(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enable Refinement={value}"]) + [f"Enable Refinement={str(value).lower()}"]) @property def adaptive_sampling(self) -> bool: @@ -107,13 +107,13 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return (val == "true") @adaptive_sampling.setter def adaptive_sampling(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Adaptive Sampling={value}"]) + [f"Adaptive Sampling={str(value).lower()}"]) @property def refinement_domain(self): @@ -272,13 +272,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return (val == "true") @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Include Rain Attenuation={value}"]) + [f"Include Rain Attenuation={str(value).lower()}"]) @property def rain_availability(self) -> float: @@ -341,13 +341,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return (val == "true") @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Include Atmospheric Absorption={value}"]) + [f"Include Atmospheric Absorption={str(value).lower()}"]) @property def temperature(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py index 3a6197fbba8..f5a7efcd136 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/two_tone_trace_node.py @@ -99,13 +99,13 @@ def visible(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Visible") - return (val == true) + return (val == "true") @visible.setter def visible(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Visible={value}"]) + [f"Visible={str(value).lower()}"]) @property def custom_legend(self) -> bool: @@ -114,13 +114,13 @@ def custom_legend(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Custom Legend") - return (val == true) + return (val == "true") @custom_legend.setter def custom_legend(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Custom Legend={value}"]) + [f"Custom Legend={str(value).lower()}"]) @property def name(self) -> str: @@ -270,13 +270,13 @@ def symbol_filled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Symbol Filled") - return (val == true) + return (val == "true") @symbol_filled.setter def symbol_filled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Symbol Filled={value}"]) + [f"Symbol Filled={str(value).lower()}"]) @property def frequency_1(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py index 45aaca77b44..13b876dcba4 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_bb_emission_node.py @@ -95,11 +95,11 @@ def use_log_linear_interpolation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Log-Linear Interpolation") - return (val == true) + return (val == "true") @use_log_linear_interpolation.setter def use_log_linear_interpolation(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Use Log-Linear Interpolation={value}"]) + [f"Use Log-Linear Interpolation={str(value).lower()}"]) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py index 417ea4d2cce..2967d37a180 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_meas_node.py @@ -73,13 +73,13 @@ def use_ams_limits(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use AMS Limits") - return (val == true) + return (val == "true") @use_ams_limits.setter def use_ams_limits(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Use AMS Limits={value}"]) + [f"Use AMS Limits={str(value).lower()}"]) @property def start_frequency(self) -> float: @@ -122,13 +122,13 @@ def exclude_harmonics_below_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Exclude Harmonics Below Noise") - return (val == true) + return (val == "true") @exclude_harmonics_below_noise.setter def exclude_harmonics_below_noise(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Exclude Harmonics Below Noise={value}"]) + [f"Exclude Harmonics Below Noise={str(value).lower()}"]) @property def enabled(self) -> bool: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py index efc51c291d9..11b47b145f5 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_emitter_node.py @@ -63,13 +63,13 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return (val == true) + return (val == "true") @include_phase_noise.setter def include_phase_noise(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Include Phase Noise={value}"]) + [f"Include Phase Noise={str(value).lower()}"]) @property def tx_broadband_noise(self) -> float: @@ -93,13 +93,13 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return (val == true) + return (val == "true") @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Perform Tx Intermod Analysis={value}"]) + [f"Perform Tx Intermod Analysis={str(value).lower()}"]) @property def internal_amp_gain(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py index 7165138f0d0..81d76205b0d 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/tx_spectral_prof_node.py @@ -118,13 +118,13 @@ def include_phase_noise(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Phase Noise") - return (val == true) + return (val == "true") @include_phase_noise.setter def include_phase_noise(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Include Phase Noise={value}"]) + [f"Include Phase Noise={str(value).lower()}"]) @property def tx_broadband_noise(self) -> float: @@ -215,13 +215,13 @@ def enable_harmonic_bw_expansion(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Harmonic BW Expansion") - return (val == true) + return (val == "true") @enable_harmonic_bw_expansion.setter def enable_harmonic_bw_expansion(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enable Harmonic BW Expansion={value}"]) + [f"Enable Harmonic BW Expansion={str(value).lower()}"]) @property def number_of_harmonics(self) -> int: @@ -292,13 +292,13 @@ def perform_tx_intermod_analysis(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Perform Tx Intermod Analysis") - return (val == true) + return (val == "true") @perform_tx_intermod_analysis.setter def perform_tx_intermod_analysis(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Perform Tx Intermod Analysis={value}"]) + [f"Perform Tx Intermod Analysis={str(value).lower()}"]) @property def internal_amp_gain(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py index 01c0ec4a911..cc36ee3f930 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/walfisch_coupling_node.py @@ -53,13 +53,13 @@ def enabled(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enabled") - return (val == true) + return (val == "true") @enabled.setter def enabled(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enabled={value}"]) + [f"Enabled={str(value).lower()}"]) @property def base_antenna(self) -> EmitNode: @@ -92,13 +92,13 @@ def enable_refinement(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Enable Refinement") - return (val == true) + return (val == "true") @enable_refinement.setter def enable_refinement(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Enable Refinement={value}"]) + [f"Enable Refinement={str(value).lower()}"]) @property def adaptive_sampling(self) -> bool: @@ -107,13 +107,13 @@ def adaptive_sampling(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adaptive Sampling") - return (val == true) + return (val == "true") @adaptive_sampling.setter def adaptive_sampling(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Adaptive Sampling={value}"]) + [f"Adaptive Sampling={str(value).lower()}"]) @property def refinement_domain(self): @@ -340,13 +340,13 @@ def include_rain_attenuation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Rain Attenuation") - return (val == true) + return (val == "true") @include_rain_attenuation.setter def include_rain_attenuation(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Include Rain Attenuation={value}"]) + [f"Include Rain Attenuation={str(value).lower()}"]) @property def rain_availability(self) -> float: @@ -409,13 +409,13 @@ def include_atmospheric_absorption(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Include Atmospheric Absorption") - return (val == true) + return (val == "true") @include_atmospheric_absorption.setter def include_atmospheric_absorption(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Include Atmospheric Absorption={value}"]) + [f"Include Atmospheric Absorption={str(value).lower()}"]) @property def temperature(self) -> float: diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/waveform.py b/src/ansys/aedt/core/emit_core/nodes/generated/waveform.py index 3283d754c38..4c2d601e886 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/waveform.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/waveform.py @@ -233,13 +233,13 @@ def advanced_extraction_params(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Advanced Extraction Params") - return (val == true) + return (val == "true") @advanced_extraction_params.setter def advanced_extraction_params(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Advanced Extraction Params={value}"]) + [f"Advanced Extraction Params={str(value).lower()}"]) @property def nb_window_size(self) -> float: @@ -402,13 +402,13 @@ def adjust_coherent_gain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Adjust Coherent Gain") - return (val == true) + return (val == "true") @adjust_coherent_gain.setter def adjust_coherent_gain(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Adjust Coherent Gain={value}"]) + [f"Adjust Coherent Gain={str(value).lower()}"]) @property def data_rate(self) -> float: @@ -449,13 +449,13 @@ def use_envelope(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Envelope") - return (val == true) + return (val == "true") @use_envelope.setter def use_envelope(self, value: bool): self._oRevisionData.SetEmitNodeProperties(self._result_id, self._node_id, - [f"Use Envelope={value}"]) + [f"Use Envelope={str(value).lower()}"]) @property def min_ptsnull(self) -> int: From 07263575e812cccb4824ef84e6bae9e71d23cdb5 Mon Sep 17 00:00:00 2001 From: raghajaf Date: Fri, 13 Jun 2025 14:30:23 -0400 Subject: [PATCH 83/86] id is replaced by comp_id --- .../modeler/circuits/primitives_circuit.py | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/ansys/aedt/core/modeler/circuits/primitives_circuit.py b/src/ansys/aedt/core/modeler/circuits/primitives_circuit.py index 74ddc5cd168..a2c65de60f9 100644 --- a/src/ansys/aedt/core/modeler/circuits/primitives_circuit.py +++ b/src/ansys/aedt/core/modeler/circuits/primitives_circuit.py @@ -359,10 +359,10 @@ def create_interface_port(self, name, location=None, angle=0): comp_name = self.oeditor.CreateIPort(arg1, arg2) comp_id = int(comp_name.split(";")[1]) - self.add_id_to_component(id, comp_name) + self.add_id_to_component(comp_id, comp_name) # return id, self.components[id].composed_name for el in self.components: - if ("IPort@" + name + ";" + str(id)) in self.components[el].composed_name: + if ("IPort@" + name + ";" + str(comp_id)) in self.components[el].composed_name: return self._app.design_excitations[name] return False @@ -413,9 +413,9 @@ def create_page_port(self, name, location=None, angle=0, label_position="Auto"): ], ) - id = int(comp_name.split(";")[1]) + comp_id = int(comp_name.split(";")[1]) # self.refresh_all_ids() - self.add_id_to_component(id, comp_name) + self.add_id_to_component(comp_id, comp_name) if label_position == "Auto": if angle == 270: new_loc = "Top" @@ -432,7 +432,7 @@ def create_page_port(self, name, location=None, angle=0, label_position="Auto"): "NAME:PropDisplayPropTab", [ "NAME:PropServers", - self.components[id].composed_name, + self.components[comp_id].composed_name, ], [ "NAME:ChangedProps", @@ -441,7 +441,7 @@ def create_page_port(self, name, location=None, angle=0, label_position="Auto"): ], ] ) - return self.components[id] + return self.components[comp_id] @pyaedt_function_handler() def create_gnd(self, location=None, angle=0, page=1): @@ -476,7 +476,7 @@ def create_gnd(self, location=None, angle=0, page=1): ["NAME:Attributes", "Page:=", page, "X:=", xpos, "Y:=", ypos, "Angle:=", angle, "Flip:=", False], ) comp_id = int(name.split(";")[1]) - self.add_id_to_component(id, name) + self.add_id_to_component(comp_id, name) # return id, self.components[id].composed_name for el in self.components: if name in self.components[el].composed_name: @@ -1405,7 +1405,7 @@ def add_id_to_component(self, comp_id, name=None): """ if name: name = name.split(";") - if len(name) > 1 and str(id) == name[1]: + if len(name) > 1 and str(comp_id) == name[1]: o = CircuitComponent(self, tabname=self.tab_name) o.name = name[0] if len(name) > 2: @@ -1714,10 +1714,10 @@ def _index_components(self, library_path=None): for compname, comp_value in comps.items(): root_name = str(Path(file).with_suffix("")) full_path = list(Path(root_name).parts) - id = full_path.index(root) + 1 - if self._component_manager.design_libray in full_path[id:]: - id += 1 - comp_lib = "\\".join(full_path[id:]) + ":" + compname + comp_id = full_path.index(root) + 1 + if self._component_manager.design_libray in full_path[comp_id:]: + comp_id += 1 + comp_lib = "\\".join(full_path[comp_id:]) + ":" + compname self.components[comp_lib] = ComponentInfo( compname, self._component_manager, file, comp_lib.split(":")[0] ) From e1b5f4d6a2778f56bf25262fe690fba136e60d5b Mon Sep 17 00:00:00 2001 From: raghajaf Date: Fri, 13 Jun 2025 14:40:24 -0400 Subject: [PATCH 84/86] true value correction --- .../emit_core/nodes/generated/antenna_node.py | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py index cc198a0a33f..e12511e5877 100644 --- a/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py +++ b/src/ansys/aedt/core/emit_core/nodes/generated/antenna_node.py @@ -74,7 +74,7 @@ def show_relative_coordinates(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Relative Coordinates") - return val == true + return val == "true" @show_relative_coordinates.setter def show_relative_coordinates(self, value: bool): @@ -159,7 +159,7 @@ def position_defined(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Position Defined") - return val == true + return val == "true" @position_defined.setter def position_defined(self, value: bool): @@ -273,7 +273,7 @@ def extra_sidelobe(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Extra Sidelobe") - return val == true + return val == "true" @extra_sidelobe.setter def extra_sidelobe(self, value: bool): @@ -558,7 +558,7 @@ def override_height(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Override Height") - return val == true + return val == "true" @override_height.setter def override_height(self, value: bool): @@ -591,7 +591,7 @@ def auto_height_offset(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Auto Height Offset") - return val == true + return val == "true" @auto_height_offset.setter def auto_height_offset(self, value: bool): @@ -604,7 +604,7 @@ def conform__adjust_antenna(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform / Adjust Antenna") - return val == true + return val == "true" @conform__adjust_antenna.setter def conform__adjust_antenna(self, value: bool): @@ -669,7 +669,7 @@ def conform_element_orientation(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Conform Element Orientation") - return val == true + return val == "true" @conform_element_orientation.setter def conform_element_orientation(self, value: bool): @@ -684,7 +684,7 @@ def show_axes(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Axes") - return val == true + return val == "true" @show_axes.setter def show_axes(self, value: bool): @@ -697,7 +697,7 @@ def show_icon(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Icon") - return val == true + return val == "true" @show_icon.setter def show_icon(self, value: bool): @@ -748,7 +748,7 @@ def has_frequency_domain(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Has Frequency Domain") - return val == true + return val == "true" @property def frequency_domain(self): @@ -865,7 +865,7 @@ def show_composite_passband(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Show Composite Passband") - return val == true + return val == "true" @show_composite_passband.setter def show_composite_passband(self, value: bool): @@ -878,7 +878,7 @@ def use_phase_center(self) -> bool: Value should be 'true' or 'false'. """ val = self._get_property("Use Phase Center") - return val == true + return val == "true" @use_phase_center.setter def use_phase_center(self, value: bool): From 66c72cff86aaeb8a4f6592b616ebb4fa51e89fea Mon Sep 17 00:00:00 2001 From: raghajaf Date: Fri, 13 Jun 2025 14:46:48 -0400 Subject: [PATCH 85/86] id replacement with comp_id --- src/ansys/aedt/core/modeler/circuits/primitives_circuit.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ansys/aedt/core/modeler/circuits/primitives_circuit.py b/src/ansys/aedt/core/modeler/circuits/primitives_circuit.py index a2c65de60f9..c5eb4533aa1 100644 --- a/src/ansys/aedt/core/modeler/circuits/primitives_circuit.py +++ b/src/ansys/aedt/core/modeler/circuits/primitives_circuit.py @@ -1031,9 +1031,9 @@ def create_touchstone_component( arg1 = ["NAME:ComponentProps", "Name:=", model_name] arg2 = ["NAME:Attributes", "Page:=", 1, "X:=", xpos, "Y:=", ypos, "Angle:=", angle, "Flip:=", False] comp_name = self.oeditor.CreateComponent(arg1, arg2) - id = int(comp_name.split(";")[1]) - self.add_id_to_component(id, comp_name) - return self.components[id] + comp_id = int(comp_name.split(";")[1]) + self.add_id_to_component(comp_id, comp_name) + return self.components[comp_id] @pyaedt_function_handler() def create_nexxim_state_space_component( From 5840e0aa891b9634f28c945df3916901ce2b2de6 Mon Sep 17 00:00:00 2001 From: raghajaf Date: Fri, 13 Jun 2025 14:55:33 -0400 Subject: [PATCH 86/86] more id replacement with comp_id --- .../modeler/circuits/primitives_circuit.py | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/ansys/aedt/core/modeler/circuits/primitives_circuit.py b/src/ansys/aedt/core/modeler/circuits/primitives_circuit.py index c5eb4533aa1..1611b700e79 100644 --- a/src/ansys/aedt/core/modeler/circuits/primitives_circuit.py +++ b/src/ansys/aedt/core/modeler/circuits/primitives_circuit.py @@ -292,10 +292,10 @@ def create_unique_id(self): except (IndexError, ValueError): pass secure_random = secrets.SystemRandom() - id = secure_random.randint(1, 65535) - while id in element_ids: - id = secure_random.randint(1, 65535) - return id + comp_id = secure_random.randint(1, 65535) + while comp_id in element_ids: + comp_id = secure_random.randint(1, 65535) + return comp_id @pyaedt_function_handler() def add_pin_iports(self, name, id_num): @@ -1083,9 +1083,9 @@ def create_nexxim_state_space_component( arg1 = ["NAME:ComponentProps", "Name:=", str(model_name)] arg2 = ["NAME:Attributes", "Page:=", 1, "X:=", xpos, "Y:=", ypos, "Angle:=", angle, "Flip:=", False] comp_name = self.oeditor.CreateComponent(arg1, arg2) - id = int(comp_name.split(";")[1]) - self.add_id_to_component(id, comp_name) - return self.components[id] + comp_id = int(comp_name.split(";")[1]) + self.add_id_to_component(comp_id, comp_name) + return self.components[comp_id] @pyaedt_function_handler(inst_name="name") def create_component( @@ -1150,16 +1150,16 @@ def create_component( angle = math.pi * angle / 180 arg2 = ["NAME:Attributes", "Page:=", page, "X:=", xpos, "Y:=", ypos, "Angle:=", angle, "Flip:=", False] comp_name = self.oeditor.CreateComponent(arg1, arg2) - id = int(comp_name.split(";")[1]) + comp_id = int(comp_name.split(";")[1]) # self.refresh_all_ids() self.add_id_to_component(id, comp_name) if name: - self.components[id].set_property("InstanceName", name) + self.components[comp_id].set_property("InstanceName", name) if use_instance_id_netlist: self.enable_use_instance_name(component_library, component_name) elif global_netlist_list: self.enable_global_netlist(component_name, global_netlist_list) - return self.components[id] + return self.components[comp_id] @pyaedt_function_handler(component_name="assignment") def disable_data_netlist(self, assignment): @@ -1284,9 +1284,9 @@ def create_symbol(self, name, pins): ] self.osymbol_manager.Add(arg) - id = 2 + comp_id = 2 i = 1 - id += 2 + comp_id += 2 r = numpins - (h * 2) for pin in pins: arg.append(